(projectKey: string, segmentKey: string)
| 25 | }; |
| 26 | |
| 27 | export const getSegmentDetail = async<T> (projectKey: string, segmentKey: string) => { |
| 28 | const url = `${ |
| 29 | API.getSegmentURI |
| 30 | .replace(':projectKey', projectKey) |
| 31 | .replace(':segmentKey', segmentKey) |
| 32 | }`; |
| 33 | |
| 34 | return request<T>(url, { |
| 35 | method: 'GET', |
| 36 | headers: { |
| 37 | ...ApplicationJson() |
| 38 | }, |
| 39 | }); |
| 40 | }; |
| 41 | |
| 42 | export const addSegment = async (projectKey: string, data?: ISegmentInfo) => { |
| 43 | const url = `${ |
no test coverage detected