@readyfor/api-client-pigeon 0.240.0 → 0.242.0-pr981.0796eec
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-VJU27CZQ.mjs → chunk-2UJ4AWWH.mjs} +13 -5
- package/dist/{chunk-S2M3EJKW.mjs → chunk-3UBBT7E5.mjs} +1 -1
- package/dist/chunk-4INIKTKJ.mjs +41 -0
- package/dist/{chunk-D455PCO3.mjs → chunk-4NGGO3G6.mjs} +10 -5
- package/dist/{chunk-ZDQDW24D.mjs → chunk-4RIZKNMD.mjs} +1 -1
- package/dist/{chunk-DQW3ZEJN.mjs → chunk-5ULJLAC6.mjs} +1 -1
- package/dist/chunk-AGTNHB2D.mjs +48 -0
- package/dist/{chunk-VUY6GQWT.mjs → chunk-JUEVPCCG.mjs} +1 -1
- package/dist/chunk-KL2DA5QY.mjs +27 -0
- package/dist/chunk-MB4UQS7V.mjs +30 -0
- package/dist/{chunk-3BSY3CC4.mjs → chunk-NXETGJTF.mjs} +1 -1
- package/dist/{chunk-LUUW3QOB.mjs → chunk-OWGV4AJG.mjs} +1 -1
- package/dist/chunk-RC6SX75E.mjs +28 -0
- package/dist/{chunk-NKNUFH54.mjs → chunk-U7AEZYNN.mjs} +10 -5
- package/dist/chunk-UENEH462.mjs +37 -0
- package/dist/{chunk-KL2BCQLU.mjs → chunk-URYB6NOK.mjs} +1 -1
- package/dist/chunk-VGMORDQ4.mjs +28 -0
- package/dist/chunk-WISELSRL.mjs +25 -0
- package/dist/fetch/campaigns.d.mts +2 -2
- package/dist/fetch/campaigns.d.ts +2 -2
- package/dist/fetch/campaigns.js +21 -10
- package/dist/fetch/campaigns.mjs +1 -1
- package/dist/fetch/campaignsCampaignIdImagesId.d.mts +1 -1
- package/dist/fetch/campaignsCampaignIdImagesId.d.ts +1 -1
- package/dist/fetch/campaignsCampaignIdImagesId.js +13 -4
- package/dist/fetch/campaignsCampaignIdImagesId.mjs +1 -1
- package/dist/fetch/campaignsId.d.mts +3 -3
- package/dist/fetch/campaignsId.d.ts +3 -3
- package/dist/fetch/campaignsId.js +25 -12
- package/dist/fetch/campaignsId.mjs +1 -1
- package/dist/fetch/campaignsIdDeliveryJob.d.mts +2 -2
- package/dist/fetch/campaignsIdDeliveryJob.d.ts +2 -2
- package/dist/fetch/campaignsIdDeliveryJob.js +22 -8
- package/dist/fetch/campaignsIdDeliveryJob.mjs +1 -1
- package/dist/fetch/campaignsIdImages.d.mts +1 -1
- package/dist/fetch/campaignsIdImages.d.ts +1 -1
- package/dist/fetch/campaignsIdImages.js +12 -4
- package/dist/fetch/campaignsIdImages.mjs +1 -1
- package/dist/fetch/campaignsIdPreview.d.mts +1 -1
- package/dist/fetch/campaignsIdPreview.d.ts +1 -1
- package/dist/fetch/campaignsIdPreview.js +11 -4
- package/dist/fetch/campaignsIdPreview.mjs +1 -1
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.mts +1 -1
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.ts +1 -1
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.js +16 -7
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.mjs +1 -1
- package/dist/fetch/projectsProjectIdOrKeyword.d.mts +1 -1
- package/dist/fetch/projectsProjectIdOrKeyword.d.ts +1 -1
- package/dist/fetch/projectsProjectIdOrKeyword.js +11 -4
- package/dist/fetch/projectsProjectIdOrKeyword.mjs +1 -1
- package/dist/fetch/segmentsBehaviorSegments.d.mts +1 -1
- package/dist/fetch/segmentsBehaviorSegments.d.ts +1 -1
- package/dist/fetch/segmentsBehaviorSegments.js +8 -4
- package/dist/fetch/segmentsBehaviorSegments.mjs +1 -1
- package/dist/fetch/segmentsProfileSegments.d.mts +1 -1
- package/dist/fetch/segmentsProfileSegments.d.ts +1 -1
- package/dist/fetch/segmentsProfileSegments.js +8 -4
- package/dist/fetch/segmentsProfileSegments.mjs +1 -1
- package/dist/fetch/segmentsTargetUsersCount.d.mts +1 -1
- package/dist/fetch/segmentsTargetUsersCount.d.ts +1 -1
- package/dist/fetch/segmentsTargetUsersCount.js +12 -4
- 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 +159 -65
- package/dist/index.mjs +11 -11
- package/package.json +12 -13
- package/dist/chunk-6DE2SHQZ.mjs +0 -19
- package/dist/chunk-BGIB7JQD.mjs +0 -19
- package/dist/chunk-DH3UXOBA.mjs +0 -19
- package/dist/chunk-EYJTETGN.mjs +0 -34
- package/dist/chunk-KBTZNIQJ.mjs +0 -20
- package/dist/chunk-MFCSQX6F.mjs +0 -29
- package/dist/chunk-NIBXTDD3.mjs +0 -15
- package/dist/chunk-YV4XRZY2.mjs +0 -22
|
@@ -5,13 +5,21 @@ import {
|
|
|
5
5
|
// src/fetch/projectsProjectIdOrKeyword.ts
|
|
6
6
|
import {
|
|
7
7
|
createJsonFetcher,
|
|
8
|
-
__internal__requestUrl
|
|
8
|
+
__internal__requestUrl,
|
|
9
|
+
buildRequestInitWithDefaultConfig
|
|
9
10
|
} from "@readyfor/api-client-base";
|
|
10
11
|
var buildProjectsProjectIdOrKeywordGetFetcher = (requestInit) => createJsonFetcher(GetProjectsProjectIdOrKeywordResponse, { ...requestInit });
|
|
11
|
-
var getProjectsProjectIdOrKeyword = (path,
|
|
12
|
-
__internal__requestUrl(
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
var getProjectsProjectIdOrKeyword = (path, customRequestInit) => {
|
|
13
|
+
const requestInfo = __internal__requestUrl(
|
|
14
|
+
"/api/projects/{project_id_or_keyword}",
|
|
15
|
+
path
|
|
16
|
+
);
|
|
17
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
18
|
+
...customRequestInit,
|
|
19
|
+
method: "GET"
|
|
20
|
+
});
|
|
21
|
+
return buildProjectsProjectIdOrKeywordGetFetcher(requestInit)(requestInfo);
|
|
22
|
+
};
|
|
15
23
|
|
|
16
24
|
export {
|
|
17
25
|
buildProjectsProjectIdOrKeywordGetFetcher,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GetCampaignsResponse,
|
|
3
|
+
PostCampaignsResponse
|
|
4
|
+
} from "./chunk-QCIAYUXK.mjs";
|
|
5
|
+
|
|
6
|
+
// src/fetch/campaigns.ts
|
|
7
|
+
import {
|
|
8
|
+
createJsonFetcher,
|
|
9
|
+
__internal__requestUrl,
|
|
10
|
+
buildRequestInitWithDefaultConfig
|
|
11
|
+
} from "@readyfor/api-client-base";
|
|
12
|
+
var buildCampaignsGetFetcher = (requestInit) => createJsonFetcher(GetCampaignsResponse, { ...requestInit });
|
|
13
|
+
var getCampaigns = (query, customRequestInit) => {
|
|
14
|
+
const requestInfo = __internal__requestUrl("/api/campaigns", {}, query);
|
|
15
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
16
|
+
...customRequestInit,
|
|
17
|
+
method: "GET"
|
|
18
|
+
});
|
|
19
|
+
return buildCampaignsGetFetcher(requestInit)(requestInfo);
|
|
20
|
+
};
|
|
21
|
+
var buildCampaignsPostFetcher = (requestInit) => createJsonFetcher(PostCampaignsResponse, { ...requestInit });
|
|
22
|
+
var postCampaigns = (requestBody, customRequestInit) => {
|
|
23
|
+
const requestInfo = __internal__requestUrl("/api/campaigns");
|
|
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
|
+
});
|
|
33
|
+
return buildCampaignsPostFetcher(requestInit)(requestInfo);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export {
|
|
37
|
+
buildCampaignsGetFetcher,
|
|
38
|
+
getCampaigns,
|
|
39
|
+
buildCampaignsPostFetcher,
|
|
40
|
+
postCampaigns
|
|
41
|
+
};
|
|
@@ -5,13 +5,18 @@ import {
|
|
|
5
5
|
// src/fetch/segmentsBehaviorSegments.ts
|
|
6
6
|
import {
|
|
7
7
|
createJsonFetcher,
|
|
8
|
-
__internal__requestUrl
|
|
8
|
+
__internal__requestUrl,
|
|
9
|
+
buildRequestInitWithDefaultConfig
|
|
9
10
|
} from "@readyfor/api-client-base";
|
|
10
11
|
var buildSegmentsBehaviorSegmentsGetFetcher = (requestInit) => createJsonFetcher(GetBehaviorSegmentsResponse, { ...requestInit });
|
|
11
|
-
var getSegmentsBehaviorSegments = (
|
|
12
|
-
__internal__requestUrl("/api/segments/behavior_segments")
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
var getSegmentsBehaviorSegments = (customRequestInit) => {
|
|
13
|
+
const requestInfo = __internal__requestUrl("/api/segments/behavior_segments");
|
|
14
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
15
|
+
...customRequestInit,
|
|
16
|
+
method: "GET"
|
|
17
|
+
});
|
|
18
|
+
return buildSegmentsBehaviorSegmentsGetFetcher(requestInit)(requestInfo);
|
|
19
|
+
};
|
|
15
20
|
|
|
16
21
|
export {
|
|
17
22
|
buildSegmentsBehaviorSegmentsGetFetcher,
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CampaignsCampaignIdResponse
|
|
3
|
+
} from "./chunk-QCIAYUXK.mjs";
|
|
4
|
+
|
|
5
|
+
// src/fetch/campaignsId.ts
|
|
6
|
+
import {
|
|
7
|
+
createJsonFetcher,
|
|
8
|
+
__internal__requestUrl,
|
|
9
|
+
buildRequestInitWithDefaultConfig,
|
|
10
|
+
createVoidFetcher
|
|
11
|
+
} from "@readyfor/api-client-base";
|
|
12
|
+
var buildCampaignsIdGetFetcher = (requestInit) => createJsonFetcher(CampaignsCampaignIdResponse, { ...requestInit });
|
|
13
|
+
var getCampaignsId = (path, customRequestInit) => {
|
|
14
|
+
const requestInfo = __internal__requestUrl("/api/campaigns/{id}", path);
|
|
15
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
16
|
+
...customRequestInit,
|
|
17
|
+
method: "GET"
|
|
18
|
+
});
|
|
19
|
+
return buildCampaignsIdGetFetcher(requestInit)(requestInfo);
|
|
20
|
+
};
|
|
21
|
+
var buildCampaignsIdDeleteFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
|
|
22
|
+
var deleteCampaignsId = (path, customRequestInit) => {
|
|
23
|
+
const requestInfo = __internal__requestUrl("/api/campaigns/{id}", path);
|
|
24
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
25
|
+
...customRequestInit,
|
|
26
|
+
method: "DELETE"
|
|
27
|
+
});
|
|
28
|
+
return buildCampaignsIdDeleteFetcher(requestInit)(requestInfo);
|
|
29
|
+
};
|
|
30
|
+
var buildCampaignsIdPatchFetcher = (requestInit) => createJsonFetcher(CampaignsCampaignIdResponse, { ...requestInit });
|
|
31
|
+
var patchCampaignsId = (path, requestBody, customRequestInit) => {
|
|
32
|
+
const requestInfo = __internal__requestUrl("/api/campaigns/{id}", path);
|
|
33
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
34
|
+
...customRequestInit,
|
|
35
|
+
method: "PATCH",
|
|
36
|
+
body: requestBody
|
|
37
|
+
});
|
|
38
|
+
return buildCampaignsIdPatchFetcher(requestInit)(requestInfo);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
buildCampaignsIdGetFetcher,
|
|
43
|
+
getCampaignsId,
|
|
44
|
+
buildCampaignsIdDeleteFetcher,
|
|
45
|
+
deleteCampaignsId,
|
|
46
|
+
buildCampaignsIdPatchFetcher,
|
|
47
|
+
patchCampaignsId
|
|
48
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GetCampaignsCampaignIdPreviewResponse
|
|
3
|
+
} from "./chunk-QCIAYUXK.mjs";
|
|
4
|
+
|
|
5
|
+
// src/fetch/campaignsIdPreview.ts
|
|
6
|
+
import {
|
|
7
|
+
createJsonFetcher,
|
|
8
|
+
__internal__requestUrl,
|
|
9
|
+
buildRequestInitWithDefaultConfig
|
|
10
|
+
} from "@readyfor/api-client-base";
|
|
11
|
+
var buildCampaignsIdPreviewGetFetcher = (requestInit) => createJsonFetcher(GetCampaignsCampaignIdPreviewResponse, { ...requestInit });
|
|
12
|
+
var getCampaignsIdPreview = (path, customRequestInit) => {
|
|
13
|
+
const requestInfo = __internal__requestUrl(
|
|
14
|
+
"/api/campaigns/{id}/preview",
|
|
15
|
+
path
|
|
16
|
+
);
|
|
17
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
18
|
+
...customRequestInit,
|
|
19
|
+
method: "GET"
|
|
20
|
+
});
|
|
21
|
+
return buildCampaignsIdPreviewGetFetcher(requestInit)(requestInfo);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
buildCampaignsIdPreviewGetFetcher,
|
|
26
|
+
getCampaignsIdPreview
|
|
27
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// src/fetch/campaignsIdPreviewDeliveryEmail.ts
|
|
2
|
+
import {
|
|
3
|
+
createVoidFetcher,
|
|
4
|
+
__internal__requestUrl,
|
|
5
|
+
buildRequestInitWithDefaultConfig
|
|
6
|
+
} from "@readyfor/api-client-base";
|
|
7
|
+
var buildCampaignsIdPreviewDeliveryEmailPostFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
|
|
8
|
+
var postCampaignsIdPreviewDeliveryEmail = (path, requestBody, customRequestInit) => {
|
|
9
|
+
const requestInfo = __internal__requestUrl(
|
|
10
|
+
"/api/campaigns/{id}/preview_delivery_email",
|
|
11
|
+
path
|
|
12
|
+
);
|
|
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
|
+
});
|
|
22
|
+
return buildCampaignsIdPreviewDeliveryEmailPostFetcher(requestInit)(
|
|
23
|
+
requestInfo
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
buildCampaignsIdPreviewDeliveryEmailPostFetcher,
|
|
29
|
+
postCampaignsIdPreviewDeliveryEmail
|
|
30
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Image
|
|
3
|
+
} from "./chunk-QCIAYUXK.mjs";
|
|
4
|
+
|
|
5
|
+
// src/fetch/campaignsIdImages.ts
|
|
6
|
+
import {
|
|
7
|
+
createJsonFetcher,
|
|
8
|
+
__internal__requestUrl,
|
|
9
|
+
buildRequestInitWithDefaultConfig
|
|
10
|
+
} from "@readyfor/api-client-base";
|
|
11
|
+
var buildCampaignsIdImagesPostFetcher = (requestInit) => createJsonFetcher(Image, { ...requestInit });
|
|
12
|
+
var postCampaignsIdImages = (path, requestBody, customRequestInit) => {
|
|
13
|
+
const requestInfo = __internal__requestUrl(
|
|
14
|
+
"/api/campaigns/{id}/images",
|
|
15
|
+
path
|
|
16
|
+
);
|
|
17
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
18
|
+
...customRequestInit,
|
|
19
|
+
method: "POST",
|
|
20
|
+
body: requestBody
|
|
21
|
+
});
|
|
22
|
+
return buildCampaignsIdImagesPostFetcher(requestInit)(requestInfo);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
buildCampaignsIdImagesPostFetcher,
|
|
27
|
+
postCampaignsIdImages
|
|
28
|
+
};
|
|
@@ -5,13 +5,18 @@ import {
|
|
|
5
5
|
// src/fetch/segmentsProfileSegments.ts
|
|
6
6
|
import {
|
|
7
7
|
createJsonFetcher,
|
|
8
|
-
__internal__requestUrl
|
|
8
|
+
__internal__requestUrl,
|
|
9
|
+
buildRequestInitWithDefaultConfig
|
|
9
10
|
} from "@readyfor/api-client-base";
|
|
10
11
|
var buildSegmentsProfileSegmentsGetFetcher = (requestInit) => createJsonFetcher(GetProfileSegmentsResponse, { ...requestInit });
|
|
11
|
-
var getSegmentsProfileSegments = (
|
|
12
|
-
__internal__requestUrl("/api/segments/profile_segments")
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
var getSegmentsProfileSegments = (customRequestInit) => {
|
|
13
|
+
const requestInfo = __internal__requestUrl("/api/segments/profile_segments");
|
|
14
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
15
|
+
...customRequestInit,
|
|
16
|
+
method: "GET"
|
|
17
|
+
});
|
|
18
|
+
return buildSegmentsProfileSegmentsGetFetcher(requestInit)(requestInfo);
|
|
19
|
+
};
|
|
15
20
|
|
|
16
21
|
export {
|
|
17
22
|
buildSegmentsProfileSegmentsGetFetcher,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// src/fetch/campaignsIdDeliveryJob.ts
|
|
2
|
+
import {
|
|
3
|
+
createVoidFetcher,
|
|
4
|
+
__internal__requestUrl,
|
|
5
|
+
buildRequestInitWithDefaultConfig
|
|
6
|
+
} from "@readyfor/api-client-base";
|
|
7
|
+
var buildCampaignsIdDeliveryJobPostFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
|
|
8
|
+
var postCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
9
|
+
const requestInfo = __internal__requestUrl(
|
|
10
|
+
"/api/campaigns/{id}/delivery_job",
|
|
11
|
+
path
|
|
12
|
+
);
|
|
13
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
14
|
+
...customRequestInit,
|
|
15
|
+
method: "POST"
|
|
16
|
+
});
|
|
17
|
+
return buildCampaignsIdDeliveryJobPostFetcher(requestInit)(requestInfo);
|
|
18
|
+
};
|
|
19
|
+
var buildCampaignsIdDeliveryJobDeleteFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
|
|
20
|
+
var deleteCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
21
|
+
const requestInfo = __internal__requestUrl(
|
|
22
|
+
"/api/campaigns/{id}/delivery_job",
|
|
23
|
+
path
|
|
24
|
+
);
|
|
25
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
26
|
+
...customRequestInit,
|
|
27
|
+
method: "DELETE"
|
|
28
|
+
});
|
|
29
|
+
return buildCampaignsIdDeliveryJobDeleteFetcher(requestInit)(requestInfo);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
buildCampaignsIdDeliveryJobPostFetcher,
|
|
34
|
+
postCampaignsIdDeliveryJob,
|
|
35
|
+
buildCampaignsIdDeliveryJobDeleteFetcher,
|
|
36
|
+
deleteCampaignsIdDeliveryJob
|
|
37
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GetTargetUsersCountResponse
|
|
3
|
+
} from "./chunk-QCIAYUXK.mjs";
|
|
4
|
+
|
|
5
|
+
// src/fetch/segmentsTargetUsersCount.ts
|
|
6
|
+
import {
|
|
7
|
+
createJsonFetcher,
|
|
8
|
+
__internal__requestUrl,
|
|
9
|
+
buildRequestInitWithDefaultConfig
|
|
10
|
+
} from "@readyfor/api-client-base";
|
|
11
|
+
var buildSegmentsTargetUsersCountGetFetcher = (requestInit) => createJsonFetcher(GetTargetUsersCountResponse, { ...requestInit });
|
|
12
|
+
var getSegmentsTargetUsersCount = (query, customRequestInit) => {
|
|
13
|
+
const requestInfo = __internal__requestUrl(
|
|
14
|
+
"/api/segments/target_users_count",
|
|
15
|
+
{},
|
|
16
|
+
query
|
|
17
|
+
);
|
|
18
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
19
|
+
...customRequestInit,
|
|
20
|
+
method: "GET"
|
|
21
|
+
});
|
|
22
|
+
return buildSegmentsTargetUsersCountGetFetcher(requestInit)(requestInfo);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
buildSegmentsTargetUsersCountGetFetcher,
|
|
27
|
+
getSegmentsTargetUsersCount
|
|
28
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// src/fetch/campaignsCampaignIdImagesId.ts
|
|
2
|
+
import {
|
|
3
|
+
createVoidFetcher,
|
|
4
|
+
__internal__requestUrl,
|
|
5
|
+
buildRequestInitWithDefaultConfig
|
|
6
|
+
} from "@readyfor/api-client-base";
|
|
7
|
+
var buildCampaignsCampaignIdImagesIdDeleteFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
|
|
8
|
+
var deleteCampaignsCampaignIdImagesId = (path, customRequestInit) => {
|
|
9
|
+
const requestInfo = __internal__requestUrl(
|
|
10
|
+
"/api/campaigns/{campaign_id}/images/{id}",
|
|
11
|
+
path
|
|
12
|
+
);
|
|
13
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
14
|
+
...customRequestInit,
|
|
15
|
+
method: "DELETE"
|
|
16
|
+
});
|
|
17
|
+
return buildCampaignsCampaignIdImagesIdDeleteFetcher(requestInit)(
|
|
18
|
+
requestInfo
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
buildCampaignsCampaignIdImagesIdDeleteFetcher,
|
|
24
|
+
deleteCampaignsCampaignIdImagesId
|
|
25
|
+
};
|
|
@@ -37,7 +37,7 @@ type CampaignsGetQuery = ForceDig<CampaignsGetOperation, [
|
|
|
37
37
|
"parameters",
|
|
38
38
|
"query"
|
|
39
39
|
]>;
|
|
40
|
-
declare const getCampaigns: (query: CampaignsGetQuery,
|
|
40
|
+
declare const getCampaigns: (query: CampaignsGetQuery, customRequestInit?: RequestInit) => Promise<{
|
|
41
41
|
campaigns: ({
|
|
42
42
|
kind: "curationMailMagazine";
|
|
43
43
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
@@ -77,7 +77,7 @@ type CampaignsPostRequestBody = ForceDig<CampaignsPostOperation, [
|
|
|
77
77
|
"content",
|
|
78
78
|
"application/json"
|
|
79
79
|
]>;
|
|
80
|
-
declare const postCampaigns: (requestBody: CampaignsPostRequestBody,
|
|
80
|
+
declare const postCampaigns: (requestBody: CampaignsPostRequestBody, customRequestInit?: RequestInit) => Promise<{
|
|
81
81
|
id: number;
|
|
82
82
|
}>;
|
|
83
83
|
|
|
@@ -37,7 +37,7 @@ type CampaignsGetQuery = ForceDig<CampaignsGetOperation, [
|
|
|
37
37
|
"parameters",
|
|
38
38
|
"query"
|
|
39
39
|
]>;
|
|
40
|
-
declare const getCampaigns: (query: CampaignsGetQuery,
|
|
40
|
+
declare const getCampaigns: (query: CampaignsGetQuery, customRequestInit?: RequestInit) => Promise<{
|
|
41
41
|
campaigns: ({
|
|
42
42
|
kind: "curationMailMagazine";
|
|
43
43
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
@@ -77,7 +77,7 @@ type CampaignsPostRequestBody = ForceDig<CampaignsPostOperation, [
|
|
|
77
77
|
"content",
|
|
78
78
|
"application/json"
|
|
79
79
|
]>;
|
|
80
|
-
declare const postCampaigns: (requestBody: CampaignsPostRequestBody,
|
|
80
|
+
declare const postCampaigns: (requestBody: CampaignsPostRequestBody, customRequestInit?: RequestInit) => Promise<{
|
|
81
81
|
id: number;
|
|
82
82
|
}>;
|
|
83
83
|
|
package/dist/fetch/campaigns.js
CHANGED
|
@@ -308,17 +308,28 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
308
308
|
|
|
309
309
|
// src/fetch/campaigns.ts
|
|
310
310
|
var buildCampaignsGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsResponse, { ...requestInit });
|
|
311
|
-
var getCampaigns = (query,
|
|
312
|
-
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns", {}, query)
|
|
313
|
-
|
|
314
|
-
|
|
311
|
+
var getCampaigns = (query, customRequestInit) => {
|
|
312
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns", {}, query);
|
|
313
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
314
|
+
...customRequestInit,
|
|
315
|
+
method: "GET"
|
|
316
|
+
});
|
|
317
|
+
return buildCampaignsGetFetcher(requestInit)(requestInfo);
|
|
318
|
+
};
|
|
315
319
|
var buildCampaignsPostFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(PostCampaignsResponse, { ...requestInit });
|
|
316
|
-
var postCampaigns = (requestBody,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
var postCampaigns = (requestBody, customRequestInit) => {
|
|
321
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns");
|
|
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
|
+
});
|
|
331
|
+
return buildCampaignsPostFetcher(requestInit)(requestInfo);
|
|
332
|
+
};
|
|
322
333
|
// Annotate the CommonJS export names for ESM import in node:
|
|
323
334
|
0 && (module.exports = {
|
|
324
335
|
buildCampaignsGetFetcher,
|
package/dist/fetch/campaigns.mjs
CHANGED
|
@@ -7,6 +7,6 @@ type CampaignsCampaignIdImagesIdDeletePath = ForceDig<CampaignsCampaignIdImagesI
|
|
|
7
7
|
"parameters",
|
|
8
8
|
"path"
|
|
9
9
|
]>;
|
|
10
|
-
declare const deleteCampaignsCampaignIdImagesId: (path: CampaignsCampaignIdImagesIdDeletePath,
|
|
10
|
+
declare const deleteCampaignsCampaignIdImagesId: (path: CampaignsCampaignIdImagesIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
|
|
11
11
|
|
|
12
12
|
export { type CampaignsCampaignIdImagesIdDeletePath, buildCampaignsCampaignIdImagesIdDeleteFetcher, deleteCampaignsCampaignIdImagesId };
|
|
@@ -7,6 +7,6 @@ type CampaignsCampaignIdImagesIdDeletePath = ForceDig<CampaignsCampaignIdImagesI
|
|
|
7
7
|
"parameters",
|
|
8
8
|
"path"
|
|
9
9
|
]>;
|
|
10
|
-
declare const deleteCampaignsCampaignIdImagesId: (path: CampaignsCampaignIdImagesIdDeletePath,
|
|
10
|
+
declare const deleteCampaignsCampaignIdImagesId: (path: CampaignsCampaignIdImagesIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
|
|
11
11
|
|
|
12
12
|
export { type CampaignsCampaignIdImagesIdDeletePath, buildCampaignsCampaignIdImagesIdDeleteFetcher, deleteCampaignsCampaignIdImagesId };
|
|
@@ -26,10 +26,19 @@ __export(campaignsCampaignIdImagesId_exports, {
|
|
|
26
26
|
module.exports = __toCommonJS(campaignsCampaignIdImagesId_exports);
|
|
27
27
|
var import_api_client_base = require("@readyfor/api-client-base");
|
|
28
28
|
var buildCampaignsCampaignIdImagesIdDeleteFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
29
|
-
var deleteCampaignsCampaignIdImagesId = (path,
|
|
30
|
-
(0, import_api_client_base.__internal__requestUrl)(
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
var deleteCampaignsCampaignIdImagesId = (path, customRequestInit) => {
|
|
30
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
31
|
+
"/api/campaigns/{campaign_id}/images/{id}",
|
|
32
|
+
path
|
|
33
|
+
);
|
|
34
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
35
|
+
...customRequestInit,
|
|
36
|
+
method: "DELETE"
|
|
37
|
+
});
|
|
38
|
+
return buildCampaignsCampaignIdImagesIdDeleteFetcher(requestInit)(
|
|
39
|
+
requestInfo
|
|
40
|
+
);
|
|
41
|
+
};
|
|
33
42
|
// Annotate the CommonJS export names for ESM import in node:
|
|
34
43
|
0 && (module.exports = {
|
|
35
44
|
buildCampaignsCampaignIdImagesIdDeleteFetcher,
|
|
@@ -76,7 +76,7 @@ type CampaignsIdGetPath = ForceDig<CampaignsIdGetOperation, [
|
|
|
76
76
|
"parameters",
|
|
77
77
|
"path"
|
|
78
78
|
]>;
|
|
79
|
-
declare const getCampaignsId: (path: CampaignsIdGetPath,
|
|
79
|
+
declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: RequestInit) => Promise<{
|
|
80
80
|
campaignDetail: {
|
|
81
81
|
curationMailMagazine: {
|
|
82
82
|
utmCampaign: string | null;
|
|
@@ -151,7 +151,7 @@ type CampaignsIdDeletePath = ForceDig<CampaignsIdDeleteOperation, [
|
|
|
151
151
|
"parameters",
|
|
152
152
|
"path"
|
|
153
153
|
]>;
|
|
154
|
-
declare const deleteCampaignsId: (path: CampaignsIdDeletePath,
|
|
154
|
+
declare const deleteCampaignsId: (path: CampaignsIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
|
|
155
155
|
type CampaignsIdPatchOperation = paths["/api/campaigns/{id}"]["patch"];
|
|
156
156
|
type CampaignsIdPatchResponse = CampaignsIdPatchOperation["responses"]["200"]["content"]["application/json"];
|
|
157
157
|
declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
@@ -232,7 +232,7 @@ type CampaignsIdPatchRequestBody = ForceDig<CampaignsIdPatchOperation, [
|
|
|
232
232
|
"content",
|
|
233
233
|
"multipart/form-data"
|
|
234
234
|
]>;
|
|
235
|
-
declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData,
|
|
235
|
+
declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<{
|
|
236
236
|
campaignDetail: {
|
|
237
237
|
curationMailMagazine: {
|
|
238
238
|
utmCampaign: string | null;
|
|
@@ -76,7 +76,7 @@ type CampaignsIdGetPath = ForceDig<CampaignsIdGetOperation, [
|
|
|
76
76
|
"parameters",
|
|
77
77
|
"path"
|
|
78
78
|
]>;
|
|
79
|
-
declare const getCampaignsId: (path: CampaignsIdGetPath,
|
|
79
|
+
declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: RequestInit) => Promise<{
|
|
80
80
|
campaignDetail: {
|
|
81
81
|
curationMailMagazine: {
|
|
82
82
|
utmCampaign: string | null;
|
|
@@ -151,7 +151,7 @@ type CampaignsIdDeletePath = ForceDig<CampaignsIdDeleteOperation, [
|
|
|
151
151
|
"parameters",
|
|
152
152
|
"path"
|
|
153
153
|
]>;
|
|
154
|
-
declare const deleteCampaignsId: (path: CampaignsIdDeletePath,
|
|
154
|
+
declare const deleteCampaignsId: (path: CampaignsIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
|
|
155
155
|
type CampaignsIdPatchOperation = paths["/api/campaigns/{id}"]["patch"];
|
|
156
156
|
type CampaignsIdPatchResponse = CampaignsIdPatchOperation["responses"]["200"]["content"]["application/json"];
|
|
157
157
|
declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
@@ -232,7 +232,7 @@ type CampaignsIdPatchRequestBody = ForceDig<CampaignsIdPatchOperation, [
|
|
|
232
232
|
"content",
|
|
233
233
|
"multipart/form-data"
|
|
234
234
|
]>;
|
|
235
|
-
declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData,
|
|
235
|
+
declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<{
|
|
236
236
|
campaignDetail: {
|
|
237
237
|
curationMailMagazine: {
|
|
238
238
|
utmCampaign: string | null;
|