@readyfor/api-client-pigeon 0.242.1 → 0.243.0-pr981.418eff9
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-2ANX7NRV.mjs +24 -0
- package/dist/{chunk-KL2BCQLU.mjs → chunk-2FPDBPJY.mjs} +1 -1
- package/dist/chunk-4GY6JZ77.mjs +39 -0
- package/dist/chunk-6JHFWIAW.mjs +27 -0
- package/dist/chunk-6ZETET36.mjs +24 -0
- package/dist/{chunk-DQW3ZEJN.mjs → chunk-7JRHKS3K.mjs} +1 -1
- package/dist/{chunk-LUUW3QOB.mjs → chunk-G6IJEAVR.mjs} +1 -1
- package/dist/{chunk-ZDQDW24D.mjs → chunk-HD6B7N5S.mjs} +1 -1
- package/dist/chunk-IKRY3IDS.mjs +28 -0
- package/dist/chunk-JVMIOVIM.mjs +29 -0
- package/dist/{chunk-3BSY3CC4.mjs → chunk-JWVQXFDL.mjs} +1 -1
- package/dist/chunk-LMM3AGZ6.mjs +36 -0
- package/dist/chunk-MCYE5BYS.mjs +25 -0
- package/dist/{chunk-VUY6GQWT.mjs → chunk-NIZUYZOH.mjs} +1 -1
- package/dist/{chunk-S2M3EJKW.mjs → chunk-OLAYQE52.mjs} +1 -1
- package/dist/chunk-OODNPRT4.mjs +30 -0
- package/dist/chunk-TP3CBDVX.mjs +48 -0
- package/dist/chunk-X2WL4YZH.mjs +27 -0
- package/dist/fetch/campaigns.d.mts +2 -2
- package/dist/fetch/campaigns.d.ts +2 -2
- package/dist/fetch/campaigns.js +18 -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 +12 -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 +24 -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 +20 -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 +13 -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 +10 -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 -9
- 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 +10 -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 +7 -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 +7 -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 +11 -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 +148 -67
- package/dist/index.mjs +11 -11
- package/package.json +16 -14
- package/dist/chunk-6DE2SHQZ.mjs +0 -19
- package/dist/chunk-BGIB7JQD.mjs +0 -19
- package/dist/chunk-D455PCO3.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-NKNUFH54.mjs +0 -19
- package/dist/chunk-VJU27CZQ.mjs +0 -19
- package/dist/chunk-YV4XRZY2.mjs +0 -22
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GetBehaviorSegmentsResponse
|
|
3
|
+
} from "./chunk-QCIAYUXK.mjs";
|
|
4
|
+
|
|
5
|
+
// src/fetch/segmentsBehaviorSegments.ts
|
|
6
|
+
import {
|
|
7
|
+
createJsonFetcher,
|
|
8
|
+
__internal__requestUrl,
|
|
9
|
+
buildRequestInitWithDefaultConfig,
|
|
10
|
+
mergeRequestInit
|
|
11
|
+
} from "@readyfor/api-client-base";
|
|
12
|
+
var buildSegmentsBehaviorSegmentsGetFetcher = (requestInit) => createJsonFetcher(GetBehaviorSegmentsResponse, { ...requestInit });
|
|
13
|
+
var getSegmentsBehaviorSegments = (customRequestInit) => {
|
|
14
|
+
const requestInfo = __internal__requestUrl("/api/segments/behavior_segments");
|
|
15
|
+
const requestInit = buildRequestInitWithDefaultConfig(
|
|
16
|
+
mergeRequestInit(customRequestInit ?? {}, { method: "GET" })
|
|
17
|
+
);
|
|
18
|
+
return buildSegmentsBehaviorSegmentsGetFetcher(requestInit)(requestInfo);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
buildSegmentsBehaviorSegmentsGetFetcher,
|
|
23
|
+
getSegmentsBehaviorSegments
|
|
24
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
mergeRequestInit
|
|
12
|
+
} from "@readyfor/api-client-base";
|
|
13
|
+
var buildCampaignsGetFetcher = (requestInit) => createJsonFetcher(GetCampaignsResponse, { ...requestInit });
|
|
14
|
+
var getCampaigns = (query, customRequestInit) => {
|
|
15
|
+
const requestInfo = __internal__requestUrl("/api/campaigns", {}, query);
|
|
16
|
+
const requestInit = buildRequestInitWithDefaultConfig(
|
|
17
|
+
mergeRequestInit(customRequestInit ?? {}, { 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
|
+
mergeRequestInit(customRequestInit ?? {}, {
|
|
26
|
+
method: "POST",
|
|
27
|
+
headers: { "Content-Type": "application/json" },
|
|
28
|
+
body: JSON.stringify(requestBody)
|
|
29
|
+
})
|
|
30
|
+
);
|
|
31
|
+
return buildCampaignsPostFetcher(requestInit)(requestInfo);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
buildCampaignsGetFetcher,
|
|
36
|
+
getCampaigns,
|
|
37
|
+
buildCampaignsPostFetcher,
|
|
38
|
+
postCampaigns
|
|
39
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GetProjectsProjectIdOrKeywordResponse
|
|
3
|
+
} from "./chunk-QCIAYUXK.mjs";
|
|
4
|
+
|
|
5
|
+
// src/fetch/projectsProjectIdOrKeyword.ts
|
|
6
|
+
import {
|
|
7
|
+
createJsonFetcher,
|
|
8
|
+
__internal__requestUrl,
|
|
9
|
+
buildRequestInitWithDefaultConfig,
|
|
10
|
+
mergeRequestInit
|
|
11
|
+
} from "@readyfor/api-client-base";
|
|
12
|
+
var buildProjectsProjectIdOrKeywordGetFetcher = (requestInit) => createJsonFetcher(GetProjectsProjectIdOrKeywordResponse, { ...requestInit });
|
|
13
|
+
var getProjectsProjectIdOrKeyword = (path, customRequestInit) => {
|
|
14
|
+
const requestInfo = __internal__requestUrl(
|
|
15
|
+
"/api/projects/{project_id_or_keyword}",
|
|
16
|
+
path
|
|
17
|
+
);
|
|
18
|
+
const requestInit = buildRequestInitWithDefaultConfig(
|
|
19
|
+
mergeRequestInit(customRequestInit ?? {}, { method: "GET" })
|
|
20
|
+
);
|
|
21
|
+
return buildProjectsProjectIdOrKeywordGetFetcher(requestInit)(requestInfo);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
buildProjectsProjectIdOrKeywordGetFetcher,
|
|
26
|
+
getProjectsProjectIdOrKeyword
|
|
27
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GetProfileSegmentsResponse
|
|
3
|
+
} from "./chunk-QCIAYUXK.mjs";
|
|
4
|
+
|
|
5
|
+
// src/fetch/segmentsProfileSegments.ts
|
|
6
|
+
import {
|
|
7
|
+
createJsonFetcher,
|
|
8
|
+
__internal__requestUrl,
|
|
9
|
+
buildRequestInitWithDefaultConfig,
|
|
10
|
+
mergeRequestInit
|
|
11
|
+
} from "@readyfor/api-client-base";
|
|
12
|
+
var buildSegmentsProfileSegmentsGetFetcher = (requestInit) => createJsonFetcher(GetProfileSegmentsResponse, { ...requestInit });
|
|
13
|
+
var getSegmentsProfileSegments = (customRequestInit) => {
|
|
14
|
+
const requestInfo = __internal__requestUrl("/api/segments/profile_segments");
|
|
15
|
+
const requestInit = buildRequestInitWithDefaultConfig(
|
|
16
|
+
mergeRequestInit(customRequestInit ?? {}, { method: "GET" })
|
|
17
|
+
);
|
|
18
|
+
return buildSegmentsProfileSegmentsGetFetcher(requestInit)(requestInfo);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
buildSegmentsProfileSegmentsGetFetcher,
|
|
23
|
+
getSegmentsProfileSegments
|
|
24
|
+
};
|
|
@@ -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
|
+
mergeRequestInit
|
|
11
|
+
} from "@readyfor/api-client-base";
|
|
12
|
+
var buildSegmentsTargetUsersCountGetFetcher = (requestInit) => createJsonFetcher(GetTargetUsersCountResponse, { ...requestInit });
|
|
13
|
+
var getSegmentsTargetUsersCount = (query, customRequestInit) => {
|
|
14
|
+
const requestInfo = __internal__requestUrl(
|
|
15
|
+
"/api/segments/target_users_count",
|
|
16
|
+
{},
|
|
17
|
+
query
|
|
18
|
+
);
|
|
19
|
+
const requestInit = buildRequestInitWithDefaultConfig(
|
|
20
|
+
mergeRequestInit(customRequestInit ?? {}, { method: "GET" })
|
|
21
|
+
);
|
|
22
|
+
return buildSegmentsTargetUsersCountGetFetcher(requestInit)(requestInfo);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
buildSegmentsTargetUsersCountGetFetcher,
|
|
27
|
+
getSegmentsTargetUsersCount
|
|
28
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// src/fetch/campaignsIdPreviewDeliveryEmail.ts
|
|
2
|
+
import {
|
|
3
|
+
createVoidFetcher,
|
|
4
|
+
__internal__requestUrl,
|
|
5
|
+
buildRequestInitWithDefaultConfig,
|
|
6
|
+
mergeRequestInit
|
|
7
|
+
} from "@readyfor/api-client-base";
|
|
8
|
+
var buildCampaignsIdPreviewDeliveryEmailPostFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
|
|
9
|
+
var postCampaignsIdPreviewDeliveryEmail = (path, requestBody, customRequestInit) => {
|
|
10
|
+
const requestInfo = __internal__requestUrl(
|
|
11
|
+
"/api/campaigns/{id}/preview_delivery_email",
|
|
12
|
+
path
|
|
13
|
+
);
|
|
14
|
+
const requestInit = buildRequestInitWithDefaultConfig(
|
|
15
|
+
mergeRequestInit(customRequestInit ?? {}, {
|
|
16
|
+
method: "POST",
|
|
17
|
+
headers: { "Content-Type": "application/json" },
|
|
18
|
+
body: JSON.stringify(requestBody)
|
|
19
|
+
})
|
|
20
|
+
);
|
|
21
|
+
return buildCampaignsIdPreviewDeliveryEmailPostFetcher(requestInit)(
|
|
22
|
+
requestInfo
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
buildCampaignsIdPreviewDeliveryEmailPostFetcher,
|
|
28
|
+
postCampaignsIdPreviewDeliveryEmail
|
|
29
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// src/fetch/campaignsIdDeliveryJob.ts
|
|
2
|
+
import {
|
|
3
|
+
createVoidFetcher,
|
|
4
|
+
__internal__requestUrl,
|
|
5
|
+
buildRequestInitWithDefaultConfig,
|
|
6
|
+
mergeRequestInit
|
|
7
|
+
} from "@readyfor/api-client-base";
|
|
8
|
+
var buildCampaignsIdDeliveryJobPostFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
|
|
9
|
+
var postCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
10
|
+
const requestInfo = __internal__requestUrl(
|
|
11
|
+
"/api/campaigns/{id}/delivery_job",
|
|
12
|
+
path
|
|
13
|
+
);
|
|
14
|
+
const requestInit = buildRequestInitWithDefaultConfig(
|
|
15
|
+
mergeRequestInit(customRequestInit ?? {}, { 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
|
+
mergeRequestInit(customRequestInit ?? {}, { method: "DELETE" })
|
|
27
|
+
);
|
|
28
|
+
return buildCampaignsIdDeliveryJobDeleteFetcher(requestInit)(requestInfo);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
buildCampaignsIdDeliveryJobPostFetcher,
|
|
33
|
+
postCampaignsIdDeliveryJob,
|
|
34
|
+
buildCampaignsIdDeliveryJobDeleteFetcher,
|
|
35
|
+
deleteCampaignsIdDeliveryJob
|
|
36
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// src/fetch/campaignsCampaignIdImagesId.ts
|
|
2
|
+
import {
|
|
3
|
+
createVoidFetcher,
|
|
4
|
+
__internal__requestUrl,
|
|
5
|
+
buildRequestInitWithDefaultConfig,
|
|
6
|
+
mergeRequestInit
|
|
7
|
+
} from "@readyfor/api-client-base";
|
|
8
|
+
var buildCampaignsCampaignIdImagesIdDeleteFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
|
|
9
|
+
var deleteCampaignsCampaignIdImagesId = (path, customRequestInit) => {
|
|
10
|
+
const requestInfo = __internal__requestUrl(
|
|
11
|
+
"/api/campaigns/{campaign_id}/images/{id}",
|
|
12
|
+
path
|
|
13
|
+
);
|
|
14
|
+
const requestInit = buildRequestInitWithDefaultConfig(
|
|
15
|
+
mergeRequestInit(customRequestInit ?? {}, { method: "DELETE" })
|
|
16
|
+
);
|
|
17
|
+
return buildCampaignsCampaignIdImagesIdDeleteFetcher(requestInit)(
|
|
18
|
+
requestInfo
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
buildCampaignsCampaignIdImagesIdDeleteFetcher,
|
|
24
|
+
deleteCampaignsCampaignIdImagesId
|
|
25
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
mergeRequestInit
|
|
11
|
+
} from "@readyfor/api-client-base";
|
|
12
|
+
var buildCampaignsIdImagesPostFetcher = (requestInit) => createJsonFetcher(Image, { ...requestInit });
|
|
13
|
+
var postCampaignsIdImages = (path, requestBody, customRequestInit) => {
|
|
14
|
+
const requestInfo = __internal__requestUrl(
|
|
15
|
+
"/api/campaigns/{id}/images",
|
|
16
|
+
path
|
|
17
|
+
);
|
|
18
|
+
const requestInit = buildRequestInitWithDefaultConfig(
|
|
19
|
+
mergeRequestInit(customRequestInit ?? {}, {
|
|
20
|
+
method: "POST",
|
|
21
|
+
body: requestBody
|
|
22
|
+
})
|
|
23
|
+
);
|
|
24
|
+
return buildCampaignsIdImagesPostFetcher(requestInit)(requestInfo);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
buildCampaignsIdImagesPostFetcher,
|
|
29
|
+
postCampaignsIdImages
|
|
30
|
+
};
|
|
@@ -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
|
+
mergeRequestInit,
|
|
11
|
+
createVoidFetcher
|
|
12
|
+
} from "@readyfor/api-client-base";
|
|
13
|
+
var buildCampaignsIdGetFetcher = (requestInit) => createJsonFetcher(CampaignsCampaignIdResponse, { ...requestInit });
|
|
14
|
+
var getCampaignsId = (path, customRequestInit) => {
|
|
15
|
+
const requestInfo = __internal__requestUrl("/api/campaigns/{id}", path);
|
|
16
|
+
const requestInit = buildRequestInitWithDefaultConfig(
|
|
17
|
+
mergeRequestInit(customRequestInit ?? {}, { 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
|
+
mergeRequestInit(customRequestInit ?? {}, { method: "DELETE" })
|
|
26
|
+
);
|
|
27
|
+
return buildCampaignsIdDeleteFetcher(requestInit)(requestInfo);
|
|
28
|
+
};
|
|
29
|
+
var buildCampaignsIdPatchFetcher = (requestInit) => createJsonFetcher(CampaignsCampaignIdResponse, { ...requestInit });
|
|
30
|
+
var patchCampaignsId = (path, requestBody, customRequestInit) => {
|
|
31
|
+
const requestInfo = __internal__requestUrl("/api/campaigns/{id}", path);
|
|
32
|
+
const requestInit = buildRequestInitWithDefaultConfig(
|
|
33
|
+
mergeRequestInit(customRequestInit ?? {}, {
|
|
34
|
+
method: "PATCH",
|
|
35
|
+
body: requestBody
|
|
36
|
+
})
|
|
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
|
+
mergeRequestInit
|
|
11
|
+
} from "@readyfor/api-client-base";
|
|
12
|
+
var buildCampaignsIdPreviewGetFetcher = (requestInit) => createJsonFetcher(GetCampaignsCampaignIdPreviewResponse, { ...requestInit });
|
|
13
|
+
var getCampaignsIdPreview = (path, customRequestInit) => {
|
|
14
|
+
const requestInfo = __internal__requestUrl(
|
|
15
|
+
"/api/campaigns/{id}/preview",
|
|
16
|
+
path
|
|
17
|
+
);
|
|
18
|
+
const requestInit = buildRequestInitWithDefaultConfig(
|
|
19
|
+
mergeRequestInit(customRequestInit ?? {}, { method: "GET" })
|
|
20
|
+
);
|
|
21
|
+
return buildCampaignsIdPreviewGetFetcher(requestInit)(requestInfo);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
buildCampaignsIdPreviewGetFetcher,
|
|
26
|
+
getCampaignsIdPreview
|
|
27
|
+
};
|
|
@@ -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,25 @@ 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
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" })
|
|
315
|
+
);
|
|
316
|
+
return buildCampaignsGetFetcher(requestInit)(requestInfo);
|
|
317
|
+
};
|
|
315
318
|
var buildCampaignsPostFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(PostCampaignsResponse, { ...requestInit });
|
|
316
|
-
var postCampaigns = (requestBody,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
}
|
|
319
|
+
var postCampaigns = (requestBody, customRequestInit) => {
|
|
320
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns");
|
|
321
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
322
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, {
|
|
323
|
+
method: "POST",
|
|
324
|
+
headers: { "Content-Type": "application/json" },
|
|
325
|
+
body: JSON.stringify(requestBody)
|
|
326
|
+
})
|
|
327
|
+
);
|
|
328
|
+
return buildCampaignsPostFetcher(requestInit)(requestInfo);
|
|
329
|
+
};
|
|
322
330
|
// Annotate the CommonJS export names for ESM import in node:
|
|
323
331
|
0 && (module.exports = {
|
|
324
332
|
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,18 @@ __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
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "DELETE" })
|
|
36
|
+
);
|
|
37
|
+
return buildCampaignsCampaignIdImagesIdDeleteFetcher(requestInit)(
|
|
38
|
+
requestInfo
|
|
39
|
+
);
|
|
40
|
+
};
|
|
33
41
|
// Annotate the CommonJS export names for ESM import in node:
|
|
34
42
|
0 && (module.exports = {
|
|
35
43
|
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;
|
|
@@ -310,20 +310,32 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
310
310
|
|
|
311
311
|
// src/fetch/campaignsId.ts
|
|
312
312
|
var buildCampaignsIdGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
|
|
313
|
-
var getCampaignsId = (path,
|
|
314
|
-
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path)
|
|
315
|
-
|
|
316
|
-
)
|
|
313
|
+
var getCampaignsId = (path, customRequestInit) => {
|
|
314
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
315
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
316
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" })
|
|
317
|
+
);
|
|
318
|
+
return buildCampaignsIdGetFetcher(requestInit)(requestInfo);
|
|
319
|
+
};
|
|
317
320
|
var buildCampaignsIdDeleteFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
318
|
-
var deleteCampaignsId = (path,
|
|
319
|
-
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path)
|
|
320
|
-
|
|
321
|
-
)
|
|
321
|
+
var deleteCampaignsId = (path, customRequestInit) => {
|
|
322
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
323
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
324
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "DELETE" })
|
|
325
|
+
);
|
|
326
|
+
return buildCampaignsIdDeleteFetcher(requestInit)(requestInfo);
|
|
327
|
+
};
|
|
322
328
|
var buildCampaignsIdPatchFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
|
|
323
|
-
var patchCampaignsId = (path, requestBody,
|
|
324
|
-
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path)
|
|
325
|
-
|
|
326
|
-
)
|
|
329
|
+
var patchCampaignsId = (path, requestBody, customRequestInit) => {
|
|
330
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
331
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
332
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, {
|
|
333
|
+
method: "PATCH",
|
|
334
|
+
body: requestBody
|
|
335
|
+
})
|
|
336
|
+
);
|
|
337
|
+
return buildCampaignsIdPatchFetcher(requestInit)(requestInfo);
|
|
338
|
+
};
|
|
327
339
|
// Annotate the CommonJS export names for ESM import in node:
|
|
328
340
|
0 && (module.exports = {
|
|
329
341
|
buildCampaignsIdDeleteFetcher,
|