(projectKey: string, environmentKey: string, toggleKey: string, data: ITargetingParams)
| 70 | }; |
| 71 | |
| 72 | export const approveToggle = async (projectKey: string, environmentKey: string, toggleKey: string, data: ITargetingParams) => { |
| 73 | const url = `${ |
| 74 | API.approvalTargetingURI |
| 75 | .replace(':projectKey', projectKey) |
| 76 | .replace(':environmentKey', environmentKey) |
| 77 | .replace(':toggleKey', toggleKey) |
| 78 | }`; |
| 79 | |
| 80 | return request(url, { |
| 81 | method: 'POST', |
| 82 | headers: { |
| 83 | ...ApplicationJson() |
| 84 | }, |
| 85 | body: JSON.stringify(data) |
| 86 | }); |
| 87 | }; |
| 88 | |
| 89 | export const createToggle = async (projectKey: string, data: IToggle) => { |
| 90 | const url = `${ |
no test coverage detected