@readyfor/api-client-pigeon 0.243.0-pr981.52c46aa → 0.243.0-pr981.f3ebbce
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-6JHFWIAW.mjs → chunk-2UJ4AWWH.mjs} +5 -5
- package/dist/{chunk-OLAYQE52.mjs → chunk-3UBBT7E5.mjs} +1 -1
- package/dist/{chunk-4GY6JZ77.mjs → chunk-4INIKTKJ.mjs} +14 -12
- package/dist/{chunk-2ANX7NRV.mjs → chunk-4NGGO3G6.mjs} +5 -5
- package/dist/{chunk-HD6B7N5S.mjs → chunk-4RIZKNMD.mjs} +1 -1
- package/dist/{chunk-7JRHKS3K.mjs → chunk-5ULJLAC6.mjs} +1 -1
- package/dist/{chunk-TP3CBDVX.mjs → chunk-AGTNHB2D.mjs} +13 -13
- package/dist/{chunk-NIZUYZOH.mjs → chunk-JUEVPCCG.mjs} +1 -1
- package/dist/{chunk-X2WL4YZH.mjs → chunk-KL2DA5QY.mjs} +5 -5
- package/dist/{chunk-JVMIOVIM.mjs → chunk-MB4UQS7V.mjs} +10 -9
- package/dist/{chunk-JWVQXFDL.mjs → chunk-NXETGJTF.mjs} +1 -1
- package/dist/{chunk-G6IJEAVR.mjs → chunk-OWGV4AJG.mjs} +1 -1
- package/dist/{chunk-OODNPRT4.mjs → chunk-RC6SX75E.mjs} +6 -8
- package/dist/{chunk-6ZETET36.mjs → chunk-U7AEZYNN.mjs} +5 -5
- package/dist/{chunk-LMM3AGZ6.mjs → chunk-UENEH462.mjs} +9 -8
- package/dist/{chunk-2FPDBPJY.mjs → chunk-URYB6NOK.mjs} +1 -1
- package/dist/{chunk-IKRY3IDS.mjs → chunk-VGMORDQ4.mjs} +5 -5
- package/dist/{chunk-MCYE5BYS.mjs → chunk-WISELSRL.mjs} +5 -5
- package/dist/fetch/campaigns.js +13 -10
- package/dist/fetch/campaigns.mjs +1 -1
- package/dist/fetch/campaignsCampaignIdImagesId.js +4 -3
- package/dist/fetch/campaignsCampaignIdImagesId.mjs +1 -1
- package/dist/fetch/campaignsId.js +13 -12
- package/dist/fetch/campaignsId.mjs +1 -1
- package/dist/fetch/campaignsIdDeliveryJob.js +8 -6
- package/dist/fetch/campaignsIdDeliveryJob.mjs +1 -1
- package/dist/fetch/campaignsIdImages.js +5 -6
- package/dist/fetch/campaignsIdImages.mjs +1 -1
- package/dist/fetch/campaignsIdPreview.js +4 -3
- package/dist/fetch/campaignsIdPreview.mjs +1 -1
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.js +9 -7
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.mjs +1 -1
- package/dist/fetch/projectsProjectIdOrKeyword.js +4 -3
- package/dist/fetch/projectsProjectIdOrKeyword.mjs +1 -1
- package/dist/fetch/segmentsBehaviorSegments.js +4 -3
- package/dist/fetch/segmentsBehaviorSegments.mjs +1 -1
- package/dist/fetch/segmentsProfileSegments.js +4 -3
- package/dist/fetch/segmentsProfileSegments.mjs +1 -1
- package/dist/fetch/segmentsTargetUsersCount.js +4 -3
- package/dist/fetch/segmentsTargetUsersCount.mjs +1 -1
- package/dist/hooks/index.mjs +18 -18
- package/dist/hooks/useCampaigns.mjs +12 -12
- package/dist/hooks/useCampaignsId.mjs +12 -12
- package/dist/hooks/useCampaignsIdPreview.mjs +12 -12
- package/dist/hooks/useProjectsProjectIdOrKeyword.mjs +12 -12
- package/dist/hooks/useSegmentsBehaviorSegments.mjs +12 -12
- package/dist/hooks/useSegmentsProfileSegments.mjs +12 -12
- package/dist/hooks/useSegmentsTargetUsersCount.mjs +12 -12
- package/dist/index.js +72 -59
- package/dist/index.mjs +11 -11
- package/package.json +3 -3
|
@@ -6,8 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
createJsonFetcher,
|
|
8
8
|
__internal__requestUrl,
|
|
9
|
-
buildRequestInitWithDefaultConfig
|
|
10
|
-
mergeRequestInit
|
|
9
|
+
buildRequestInitWithDefaultConfig
|
|
11
10
|
} from "@readyfor/api-client-base";
|
|
12
11
|
var buildProjectsProjectIdOrKeywordGetFetcher = (requestInit) => createJsonFetcher(GetProjectsProjectIdOrKeywordResponse, { ...requestInit });
|
|
13
12
|
var getProjectsProjectIdOrKeyword = (path, customRequestInit) => {
|
|
@@ -15,9 +14,10 @@ var getProjectsProjectIdOrKeyword = (path, customRequestInit) => {
|
|
|
15
14
|
"/api/projects/{project_id_or_keyword}",
|
|
16
15
|
path
|
|
17
16
|
);
|
|
18
|
-
const requestInit = buildRequestInitWithDefaultConfig(
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
18
|
+
...customRequestInit,
|
|
19
|
+
method: "GET"
|
|
20
|
+
});
|
|
21
21
|
return buildProjectsProjectIdOrKeywordGetFetcher(requestInit)(requestInfo);
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -7,27 +7,29 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
createJsonFetcher,
|
|
9
9
|
__internal__requestUrl,
|
|
10
|
-
buildRequestInitWithDefaultConfig
|
|
11
|
-
mergeRequestInit
|
|
10
|
+
buildRequestInitWithDefaultConfig
|
|
12
11
|
} from "@readyfor/api-client-base";
|
|
13
12
|
var buildCampaignsGetFetcher = (requestInit) => createJsonFetcher(GetCampaignsResponse, { ...requestInit });
|
|
14
13
|
var getCampaigns = (query, customRequestInit) => {
|
|
15
14
|
const requestInfo = __internal__requestUrl("/api/campaigns", {}, query);
|
|
16
|
-
const requestInit = buildRequestInitWithDefaultConfig(
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
16
|
+
...customRequestInit,
|
|
17
|
+
method: "GET"
|
|
18
|
+
});
|
|
19
19
|
return buildCampaignsGetFetcher(requestInit)(requestInfo);
|
|
20
20
|
};
|
|
21
21
|
var buildCampaignsPostFetcher = (requestInit) => createJsonFetcher(PostCampaignsResponse, { ...requestInit });
|
|
22
22
|
var postCampaigns = (requestBody, customRequestInit) => {
|
|
23
23
|
const requestInfo = __internal__requestUrl("/api/campaigns");
|
|
24
|
-
const requestInit = buildRequestInitWithDefaultConfig(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
25
|
+
...customRequestInit,
|
|
26
|
+
method: "POST",
|
|
27
|
+
headers: {
|
|
28
|
+
...customRequestInit?.headers,
|
|
29
|
+
"Content-Type": "application/json"
|
|
30
|
+
},
|
|
31
|
+
body: JSON.stringify(requestBody)
|
|
32
|
+
});
|
|
31
33
|
return buildCampaignsPostFetcher(requestInit)(requestInfo);
|
|
32
34
|
};
|
|
33
35
|
|
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
createJsonFetcher,
|
|
8
8
|
__internal__requestUrl,
|
|
9
|
-
buildRequestInitWithDefaultConfig
|
|
10
|
-
mergeRequestInit
|
|
9
|
+
buildRequestInitWithDefaultConfig
|
|
11
10
|
} from "@readyfor/api-client-base";
|
|
12
11
|
var buildSegmentsBehaviorSegmentsGetFetcher = (requestInit) => createJsonFetcher(GetBehaviorSegmentsResponse, { ...requestInit });
|
|
13
12
|
var getSegmentsBehaviorSegments = (customRequestInit) => {
|
|
14
13
|
const requestInfo = __internal__requestUrl("/api/segments/behavior_segments");
|
|
15
|
-
const requestInit = buildRequestInitWithDefaultConfig(
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
15
|
+
...customRequestInit,
|
|
16
|
+
method: "GET"
|
|
17
|
+
});
|
|
18
18
|
return buildSegmentsBehaviorSegmentsGetFetcher(requestInit)(requestInfo);
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -7,34 +7,34 @@ import {
|
|
|
7
7
|
createJsonFetcher,
|
|
8
8
|
__internal__requestUrl,
|
|
9
9
|
buildRequestInitWithDefaultConfig,
|
|
10
|
-
mergeRequestInit,
|
|
11
10
|
createVoidFetcher
|
|
12
11
|
} from "@readyfor/api-client-base";
|
|
13
12
|
var buildCampaignsIdGetFetcher = (requestInit) => createJsonFetcher(CampaignsCampaignIdResponse, { ...requestInit });
|
|
14
13
|
var getCampaignsId = (path, customRequestInit) => {
|
|
15
14
|
const requestInfo = __internal__requestUrl("/api/campaigns/{id}", path);
|
|
16
|
-
const requestInit = buildRequestInitWithDefaultConfig(
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
16
|
+
...customRequestInit,
|
|
17
|
+
method: "GET"
|
|
18
|
+
});
|
|
19
19
|
return buildCampaignsIdGetFetcher(requestInit)(requestInfo);
|
|
20
20
|
};
|
|
21
21
|
var buildCampaignsIdDeleteFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
|
|
22
22
|
var deleteCampaignsId = (path, customRequestInit) => {
|
|
23
23
|
const requestInfo = __internal__requestUrl("/api/campaigns/{id}", path);
|
|
24
|
-
const requestInit = buildRequestInitWithDefaultConfig(
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
25
|
+
...customRequestInit,
|
|
26
|
+
method: "DELETE"
|
|
27
|
+
});
|
|
27
28
|
return buildCampaignsIdDeleteFetcher(requestInit)(requestInfo);
|
|
28
29
|
};
|
|
29
30
|
var buildCampaignsIdPatchFetcher = (requestInit) => createJsonFetcher(CampaignsCampaignIdResponse, { ...requestInit });
|
|
30
31
|
var patchCampaignsId = (path, requestBody, customRequestInit) => {
|
|
31
32
|
const requestInfo = __internal__requestUrl("/api/campaigns/{id}", path);
|
|
32
|
-
const requestInit = buildRequestInitWithDefaultConfig(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
);
|
|
33
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
34
|
+
...customRequestInit,
|
|
35
|
+
method: "PATCH",
|
|
36
|
+
body: requestBody
|
|
37
|
+
});
|
|
38
38
|
return buildCampaignsIdPatchFetcher(requestInit)(requestInfo);
|
|
39
39
|
};
|
|
40
40
|
|
|
@@ -6,8 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
createJsonFetcher,
|
|
8
8
|
__internal__requestUrl,
|
|
9
|
-
buildRequestInitWithDefaultConfig
|
|
10
|
-
mergeRequestInit
|
|
9
|
+
buildRequestInitWithDefaultConfig
|
|
11
10
|
} from "@readyfor/api-client-base";
|
|
12
11
|
var buildCampaignsIdPreviewGetFetcher = (requestInit) => createJsonFetcher(GetCampaignsCampaignIdPreviewResponse, { ...requestInit });
|
|
13
12
|
var getCampaignsIdPreview = (path, customRequestInit) => {
|
|
@@ -15,9 +14,10 @@ var getCampaignsIdPreview = (path, customRequestInit) => {
|
|
|
15
14
|
"/api/campaigns/{id}/preview",
|
|
16
15
|
path
|
|
17
16
|
);
|
|
18
|
-
const requestInit = buildRequestInitWithDefaultConfig(
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
18
|
+
...customRequestInit,
|
|
19
|
+
method: "GET"
|
|
20
|
+
});
|
|
21
21
|
return buildCampaignsIdPreviewGetFetcher(requestInit)(requestInfo);
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createVoidFetcher,
|
|
4
4
|
__internal__requestUrl,
|
|
5
|
-
buildRequestInitWithDefaultConfig
|
|
6
|
-
mergeRequestInit
|
|
5
|
+
buildRequestInitWithDefaultConfig
|
|
7
6
|
} from "@readyfor/api-client-base";
|
|
8
7
|
var buildCampaignsIdPreviewDeliveryEmailPostFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
|
|
9
8
|
var postCampaignsIdPreviewDeliveryEmail = (path, requestBody, customRequestInit) => {
|
|
@@ -11,13 +10,15 @@ var postCampaignsIdPreviewDeliveryEmail = (path, requestBody, customRequestInit)
|
|
|
11
10
|
"/api/campaigns/{id}/preview_delivery_email",
|
|
12
11
|
path
|
|
13
12
|
);
|
|
14
|
-
const requestInit = buildRequestInitWithDefaultConfig(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
14
|
+
...customRequestInit,
|
|
15
|
+
method: "POST",
|
|
16
|
+
headers: {
|
|
17
|
+
...customRequestInit?.headers,
|
|
18
|
+
"Content-Type": "application/json"
|
|
19
|
+
},
|
|
20
|
+
body: JSON.stringify(requestBody)
|
|
21
|
+
});
|
|
21
22
|
return buildCampaignsIdPreviewDeliveryEmailPostFetcher(requestInit)(
|
|
22
23
|
requestInfo
|
|
23
24
|
);
|
|
@@ -6,8 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
createJsonFetcher,
|
|
8
8
|
__internal__requestUrl,
|
|
9
|
-
buildRequestInitWithDefaultConfig
|
|
10
|
-
mergeRequestInit
|
|
9
|
+
buildRequestInitWithDefaultConfig
|
|
11
10
|
} from "@readyfor/api-client-base";
|
|
12
11
|
var buildCampaignsIdImagesPostFetcher = (requestInit) => createJsonFetcher(Image, { ...requestInit });
|
|
13
12
|
var postCampaignsIdImages = (path, requestBody, customRequestInit) => {
|
|
@@ -15,12 +14,11 @@ var postCampaignsIdImages = (path, requestBody, customRequestInit) => {
|
|
|
15
14
|
"/api/campaigns/{id}/images",
|
|
16
15
|
path
|
|
17
16
|
);
|
|
18
|
-
const requestInit = buildRequestInitWithDefaultConfig(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
);
|
|
17
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
18
|
+
...customRequestInit,
|
|
19
|
+
method: "POST",
|
|
20
|
+
body: requestBody
|
|
21
|
+
});
|
|
24
22
|
return buildCampaignsIdImagesPostFetcher(requestInit)(requestInfo);
|
|
25
23
|
};
|
|
26
24
|
|
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
createJsonFetcher,
|
|
8
8
|
__internal__requestUrl,
|
|
9
|
-
buildRequestInitWithDefaultConfig
|
|
10
|
-
mergeRequestInit
|
|
9
|
+
buildRequestInitWithDefaultConfig
|
|
11
10
|
} from "@readyfor/api-client-base";
|
|
12
11
|
var buildSegmentsProfileSegmentsGetFetcher = (requestInit) => createJsonFetcher(GetProfileSegmentsResponse, { ...requestInit });
|
|
13
12
|
var getSegmentsProfileSegments = (customRequestInit) => {
|
|
14
13
|
const requestInfo = __internal__requestUrl("/api/segments/profile_segments");
|
|
15
|
-
const requestInit = buildRequestInitWithDefaultConfig(
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
15
|
+
...customRequestInit,
|
|
16
|
+
method: "GET"
|
|
17
|
+
});
|
|
18
18
|
return buildSegmentsProfileSegmentsGetFetcher(requestInit)(requestInfo);
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createVoidFetcher,
|
|
4
4
|
__internal__requestUrl,
|
|
5
|
-
buildRequestInitWithDefaultConfig
|
|
6
|
-
mergeRequestInit
|
|
5
|
+
buildRequestInitWithDefaultConfig
|
|
7
6
|
} from "@readyfor/api-client-base";
|
|
8
7
|
var buildCampaignsIdDeliveryJobPostFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
|
|
9
8
|
var postCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
@@ -11,9 +10,10 @@ var postCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
|
11
10
|
"/api/campaigns/{id}/delivery_job",
|
|
12
11
|
path
|
|
13
12
|
);
|
|
14
|
-
const requestInit = buildRequestInitWithDefaultConfig(
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
14
|
+
...customRequestInit,
|
|
15
|
+
method: "POST"
|
|
16
|
+
});
|
|
17
17
|
return buildCampaignsIdDeliveryJobPostFetcher(requestInit)(requestInfo);
|
|
18
18
|
};
|
|
19
19
|
var buildCampaignsIdDeliveryJobDeleteFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
|
|
@@ -22,9 +22,10 @@ var deleteCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
|
22
22
|
"/api/campaigns/{id}/delivery_job",
|
|
23
23
|
path
|
|
24
24
|
);
|
|
25
|
-
const requestInit = buildRequestInitWithDefaultConfig(
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
26
|
+
...customRequestInit,
|
|
27
|
+
method: "DELETE"
|
|
28
|
+
});
|
|
28
29
|
return buildCampaignsIdDeliveryJobDeleteFetcher(requestInit)(requestInfo);
|
|
29
30
|
};
|
|
30
31
|
|
|
@@ -6,8 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
createJsonFetcher,
|
|
8
8
|
__internal__requestUrl,
|
|
9
|
-
buildRequestInitWithDefaultConfig
|
|
10
|
-
mergeRequestInit
|
|
9
|
+
buildRequestInitWithDefaultConfig
|
|
11
10
|
} from "@readyfor/api-client-base";
|
|
12
11
|
var buildSegmentsTargetUsersCountGetFetcher = (requestInit) => createJsonFetcher(GetTargetUsersCountResponse, { ...requestInit });
|
|
13
12
|
var getSegmentsTargetUsersCount = (query, customRequestInit) => {
|
|
@@ -16,9 +15,10 @@ var getSegmentsTargetUsersCount = (query, customRequestInit) => {
|
|
|
16
15
|
{},
|
|
17
16
|
query
|
|
18
17
|
);
|
|
19
|
-
const requestInit = buildRequestInitWithDefaultConfig(
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
19
|
+
...customRequestInit,
|
|
20
|
+
method: "GET"
|
|
21
|
+
});
|
|
22
22
|
return buildSegmentsTargetUsersCountGetFetcher(requestInit)(requestInfo);
|
|
23
23
|
};
|
|
24
24
|
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createVoidFetcher,
|
|
4
4
|
__internal__requestUrl,
|
|
5
|
-
buildRequestInitWithDefaultConfig
|
|
6
|
-
mergeRequestInit
|
|
5
|
+
buildRequestInitWithDefaultConfig
|
|
7
6
|
} from "@readyfor/api-client-base";
|
|
8
7
|
var buildCampaignsCampaignIdImagesIdDeleteFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
|
|
9
8
|
var deleteCampaignsCampaignIdImagesId = (path, customRequestInit) => {
|
|
@@ -11,9 +10,10 @@ var deleteCampaignsCampaignIdImagesId = (path, customRequestInit) => {
|
|
|
11
10
|
"/api/campaigns/{campaign_id}/images/{id}",
|
|
12
11
|
path
|
|
13
12
|
);
|
|
14
|
-
const requestInit = buildRequestInitWithDefaultConfig(
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
14
|
+
...customRequestInit,
|
|
15
|
+
method: "DELETE"
|
|
16
|
+
});
|
|
17
17
|
return buildCampaignsCampaignIdImagesIdDeleteFetcher(requestInit)(
|
|
18
18
|
requestInfo
|
|
19
19
|
);
|
package/dist/fetch/campaigns.js
CHANGED
|
@@ -310,21 +310,24 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
310
310
|
var buildCampaignsGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsResponse, { ...requestInit });
|
|
311
311
|
var getCampaigns = (query, customRequestInit) => {
|
|
312
312
|
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns", {}, query);
|
|
313
|
-
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
314
|
-
|
|
315
|
-
|
|
313
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
314
|
+
...customRequestInit,
|
|
315
|
+
method: "GET"
|
|
316
|
+
});
|
|
316
317
|
return buildCampaignsGetFetcher(requestInit)(requestInfo);
|
|
317
318
|
};
|
|
318
319
|
var buildCampaignsPostFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(PostCampaignsResponse, { ...requestInit });
|
|
319
320
|
var postCampaigns = (requestBody, customRequestInit) => {
|
|
320
321
|
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns");
|
|
321
|
-
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
322
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
323
|
+
...customRequestInit,
|
|
324
|
+
method: "POST",
|
|
325
|
+
headers: {
|
|
326
|
+
...customRequestInit?.headers,
|
|
327
|
+
"Content-Type": "application/json"
|
|
328
|
+
},
|
|
329
|
+
body: JSON.stringify(requestBody)
|
|
330
|
+
});
|
|
328
331
|
return buildCampaignsPostFetcher(requestInit)(requestInfo);
|
|
329
332
|
};
|
|
330
333
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/fetch/campaigns.mjs
CHANGED
|
@@ -31,9 +31,10 @@ var deleteCampaignsCampaignIdImagesId = (path, customRequestInit) => {
|
|
|
31
31
|
"/api/campaigns/{campaign_id}/images/{id}",
|
|
32
32
|
path
|
|
33
33
|
);
|
|
34
|
-
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
35
|
+
...customRequestInit,
|
|
36
|
+
method: "DELETE"
|
|
37
|
+
});
|
|
37
38
|
return buildCampaignsCampaignIdImagesIdDeleteFetcher(requestInit)(
|
|
38
39
|
requestInfo
|
|
39
40
|
);
|
|
@@ -312,28 +312,29 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
312
312
|
var buildCampaignsIdGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
|
|
313
313
|
var getCampaignsId = (path, customRequestInit) => {
|
|
314
314
|
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
315
|
-
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
316
|
-
|
|
317
|
-
|
|
315
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
316
|
+
...customRequestInit,
|
|
317
|
+
method: "GET"
|
|
318
|
+
});
|
|
318
319
|
return buildCampaignsIdGetFetcher(requestInit)(requestInfo);
|
|
319
320
|
};
|
|
320
321
|
var buildCampaignsIdDeleteFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
321
322
|
var deleteCampaignsId = (path, customRequestInit) => {
|
|
322
323
|
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
323
|
-
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
324
|
-
|
|
325
|
-
|
|
324
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
325
|
+
...customRequestInit,
|
|
326
|
+
method: "DELETE"
|
|
327
|
+
});
|
|
326
328
|
return buildCampaignsIdDeleteFetcher(requestInit)(requestInfo);
|
|
327
329
|
};
|
|
328
330
|
var buildCampaignsIdPatchFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
|
|
329
331
|
var patchCampaignsId = (path, requestBody, customRequestInit) => {
|
|
330
332
|
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
331
|
-
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
);
|
|
333
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
334
|
+
...customRequestInit,
|
|
335
|
+
method: "PATCH",
|
|
336
|
+
body: requestBody
|
|
337
|
+
});
|
|
337
338
|
return buildCampaignsIdPatchFetcher(requestInit)(requestInfo);
|
|
338
339
|
};
|
|
339
340
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -33,9 +33,10 @@ var postCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
|
33
33
|
"/api/campaigns/{id}/delivery_job",
|
|
34
34
|
path
|
|
35
35
|
);
|
|
36
|
-
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
37
|
+
...customRequestInit,
|
|
38
|
+
method: "POST"
|
|
39
|
+
});
|
|
39
40
|
return buildCampaignsIdDeliveryJobPostFetcher(requestInit)(requestInfo);
|
|
40
41
|
};
|
|
41
42
|
var buildCampaignsIdDeliveryJobDeleteFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
@@ -44,9 +45,10 @@ var deleteCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
|
44
45
|
"/api/campaigns/{id}/delivery_job",
|
|
45
46
|
path
|
|
46
47
|
);
|
|
47
|
-
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
49
|
+
...customRequestInit,
|
|
50
|
+
method: "DELETE"
|
|
51
|
+
});
|
|
50
52
|
return buildCampaignsIdDeliveryJobDeleteFetcher(requestInit)(requestInfo);
|
|
51
53
|
};
|
|
52
54
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
buildCampaignsIdDeliveryJobPostFetcher,
|
|
4
4
|
deleteCampaignsIdDeliveryJob,
|
|
5
5
|
postCampaignsIdDeliveryJob
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-UENEH462.mjs";
|
|
7
7
|
export {
|
|
8
8
|
buildCampaignsIdDeliveryJobDeleteFetcher,
|
|
9
9
|
buildCampaignsIdDeliveryJobPostFetcher,
|
|
@@ -311,12 +311,11 @@ var postCampaignsIdImages = (path, requestBody, customRequestInit) => {
|
|
|
311
311
|
"/api/campaigns/{id}/images",
|
|
312
312
|
path
|
|
313
313
|
);
|
|
314
|
-
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
);
|
|
314
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
315
|
+
...customRequestInit,
|
|
316
|
+
method: "POST",
|
|
317
|
+
body: requestBody
|
|
318
|
+
});
|
|
320
319
|
return buildCampaignsIdImagesPostFetcher(requestInit)(requestInfo);
|
|
321
320
|
};
|
|
322
321
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -311,9 +311,10 @@ var getCampaignsIdPreview = (path, customRequestInit) => {
|
|
|
311
311
|
"/api/campaigns/{id}/preview",
|
|
312
312
|
path
|
|
313
313
|
);
|
|
314
|
-
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
315
|
-
|
|
316
|
-
|
|
314
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
315
|
+
...customRequestInit,
|
|
316
|
+
method: "GET"
|
|
317
|
+
});
|
|
317
318
|
return buildCampaignsIdPreviewGetFetcher(requestInit)(requestInfo);
|
|
318
319
|
};
|
|
319
320
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -31,13 +31,15 @@ var postCampaignsIdPreviewDeliveryEmail = (path, requestBody, customRequestInit)
|
|
|
31
31
|
"/api/campaigns/{id}/preview_delivery_email",
|
|
32
32
|
path
|
|
33
33
|
);
|
|
34
|
-
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
35
|
+
...customRequestInit,
|
|
36
|
+
method: "POST",
|
|
37
|
+
headers: {
|
|
38
|
+
...customRequestInit?.headers,
|
|
39
|
+
"Content-Type": "application/json"
|
|
40
|
+
},
|
|
41
|
+
body: JSON.stringify(requestBody)
|
|
42
|
+
});
|
|
41
43
|
return buildCampaignsIdPreviewDeliveryEmailPostFetcher(requestInit)(
|
|
42
44
|
requestInfo
|
|
43
45
|
);
|