@readyfor/api-client-pigeon 0.238.0 → 0.240.0-pr981.599560e
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-VUY6GQWT.mjs → chunk-27GLDQK3.mjs} +1 -1
- package/dist/chunk-2B6GQILG.mjs +24 -0
- package/dist/chunk-2MRIEXEQ.mjs +29 -0
- package/dist/chunk-4YF2M7Y7.mjs +29 -0
- package/dist/chunk-AQVUMZVL.mjs +24 -0
- package/dist/chunk-CABZT6BU.mjs +30 -0
- package/dist/{chunk-3BSY3CC4.mjs → chunk-EN3CP4JR.mjs} +1 -1
- package/dist/chunk-HNVHV5GD.mjs +41 -0
- package/dist/chunk-JXZJCPX3.mjs +28 -0
- package/dist/chunk-NKU3JO55.mjs +37 -0
- package/dist/chunk-O4CHNDYY.mjs +28 -0
- package/dist/{chunk-DQW3ZEJN.mjs → chunk-QKM5JPTE.mjs} +1 -1
- package/dist/{chunk-S2M3EJKW.mjs → chunk-T3IYQXXP.mjs} +1 -1
- package/dist/{chunk-LUUW3QOB.mjs → chunk-TLGSSZT7.mjs} +1 -1
- package/dist/chunk-UTUZQQT6.mjs +25 -0
- package/dist/{chunk-ZDQDW24D.mjs → chunk-UU5WXXGN.mjs} +1 -1
- package/dist/{chunk-KL2BCQLU.mjs → chunk-W6D6J2QD.mjs} +1 -1
- package/dist/chunk-YT25LCGA.mjs +48 -0
- package/dist/fetch/campaigns.d.mts +4 -4
- package/dist/fetch/campaigns.d.ts +4 -4
- package/dist/fetch/campaigns.js +23 -12
- package/dist/fetch/campaigns.mjs +1 -1
- package/dist/fetch/campaignsCampaignIdImagesId.d.mts +2 -2
- package/dist/fetch/campaignsCampaignIdImagesId.d.ts +2 -2
- package/dist/fetch/campaignsCampaignIdImagesId.js +14 -5
- package/dist/fetch/campaignsCampaignIdImagesId.mjs +1 -1
- package/dist/fetch/campaignsId.d.mts +6 -6
- package/dist/fetch/campaignsId.d.ts +6 -6
- package/dist/fetch/campaignsId.js +28 -15
- package/dist/fetch/campaignsId.mjs +1 -1
- package/dist/fetch/campaignsIdDeliveryJob.d.mts +4 -4
- package/dist/fetch/campaignsIdDeliveryJob.d.ts +4 -4
- package/dist/fetch/campaignsIdDeliveryJob.js +24 -10
- package/dist/fetch/campaignsIdDeliveryJob.mjs +1 -1
- package/dist/fetch/campaignsIdImages.d.mts +2 -2
- package/dist/fetch/campaignsIdImages.d.ts +2 -2
- package/dist/fetch/campaignsIdImages.js +13 -5
- package/dist/fetch/campaignsIdImages.mjs +1 -1
- package/dist/fetch/campaignsIdPreview.d.mts +2 -2
- package/dist/fetch/campaignsIdPreview.d.ts +2 -2
- package/dist/fetch/campaignsIdPreview.js +14 -5
- package/dist/fetch/campaignsIdPreview.mjs +1 -1
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.mts +2 -2
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.ts +2 -2
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.js +17 -8
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.mjs +1 -1
- package/dist/fetch/projectsProjectIdOrKeyword.d.mts +2 -2
- package/dist/fetch/projectsProjectIdOrKeyword.d.ts +2 -2
- package/dist/fetch/projectsProjectIdOrKeyword.js +14 -5
- package/dist/fetch/projectsProjectIdOrKeyword.mjs +1 -1
- package/dist/fetch/segmentsBehaviorSegments.d.mts +2 -2
- package/dist/fetch/segmentsBehaviorSegments.d.ts +2 -2
- package/dist/fetch/segmentsBehaviorSegments.js +9 -5
- package/dist/fetch/segmentsBehaviorSegments.mjs +1 -1
- package/dist/fetch/segmentsProfileSegments.d.mts +2 -2
- package/dist/fetch/segmentsProfileSegments.d.ts +2 -2
- package/dist/fetch/segmentsProfileSegments.js +9 -5
- package/dist/fetch/segmentsProfileSegments.mjs +1 -1
- package/dist/fetch/segmentsTargetUsersCount.d.mts +2 -2
- package/dist/fetch/segmentsTargetUsersCount.d.ts +2 -2
- package/dist/fetch/segmentsTargetUsersCount.js +13 -5
- package/dist/fetch/segmentsTargetUsersCount.mjs +1 -1
- package/dist/hooks/index.js +11 -7
- package/dist/hooks/index.mjs +18 -18
- package/dist/hooks/useCampaigns.js +1 -1
- package/dist/hooks/useCampaigns.mjs +12 -12
- package/dist/hooks/useCampaignsId.js +1 -1
- package/dist/hooks/useCampaignsId.mjs +12 -12
- package/dist/hooks/useCampaignsIdPreview.js +3 -1
- package/dist/hooks/useCampaignsIdPreview.mjs +12 -12
- package/dist/hooks/useProjectsProjectIdOrKeyword.js +3 -1
- package/dist/hooks/useProjectsProjectIdOrKeyword.mjs +12 -12
- package/dist/hooks/useSegmentsBehaviorSegments.js +1 -1
- package/dist/hooks/useSegmentsBehaviorSegments.mjs +12 -12
- package/dist/hooks/useSegmentsProfileSegments.js +1 -1
- package/dist/hooks/useSegmentsProfileSegments.mjs +12 -12
- package/dist/hooks/useSegmentsTargetUsersCount.js +1 -1
- package/dist/hooks/useSegmentsTargetUsersCount.mjs +12 -12
- package/dist/index.js +178 -80
- 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-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
|
+
} from "@readyfor/api-client-base";
|
|
11
|
+
var buildSegmentsBehaviorSegmentsGetFetcher = (customRequestInit) => createJsonFetcher(GetBehaviorSegmentsResponse, { ...customRequestInit });
|
|
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
|
+
};
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
buildSegmentsBehaviorSegmentsGetFetcher,
|
|
23
|
+
getSegmentsBehaviorSegments
|
|
24
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
} from "@readyfor/api-client-base";
|
|
11
|
+
var buildProjectsProjectIdOrKeywordGetFetcher = (customRequestInit) => createJsonFetcher(GetProjectsProjectIdOrKeywordResponse, {
|
|
12
|
+
...customRequestInit
|
|
13
|
+
});
|
|
14
|
+
var getProjectsProjectIdOrKeyword = (path, customRequestInit) => {
|
|
15
|
+
const requestInfo = __internal__requestUrl(
|
|
16
|
+
"/api/projects/{project_id_or_keyword}",
|
|
17
|
+
path
|
|
18
|
+
);
|
|
19
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
20
|
+
...customRequestInit,
|
|
21
|
+
method: "GET"
|
|
22
|
+
});
|
|
23
|
+
return buildProjectsProjectIdOrKeywordGetFetcher(requestInit)(requestInfo);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
buildProjectsProjectIdOrKeywordGetFetcher,
|
|
28
|
+
getProjectsProjectIdOrKeyword
|
|
29
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
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 = (customRequestInit) => createJsonFetcher(GetCampaignsCampaignIdPreviewResponse, {
|
|
12
|
+
...customRequestInit
|
|
13
|
+
});
|
|
14
|
+
var getCampaignsIdPreview = (path, customRequestInit) => {
|
|
15
|
+
const requestInfo = __internal__requestUrl(
|
|
16
|
+
"/api/campaigns/{id}/preview",
|
|
17
|
+
path
|
|
18
|
+
);
|
|
19
|
+
const requestInit = buildRequestInitWithDefaultConfig({
|
|
20
|
+
...customRequestInit,
|
|
21
|
+
method: "GET"
|
|
22
|
+
});
|
|
23
|
+
return buildCampaignsIdPreviewGetFetcher(requestInit)(requestInfo);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
buildCampaignsIdPreviewGetFetcher,
|
|
28
|
+
getCampaignsIdPreview
|
|
29
|
+
};
|
|
@@ -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
|
+
} from "@readyfor/api-client-base";
|
|
11
|
+
var buildSegmentsProfileSegmentsGetFetcher = (customRequestInit) => createJsonFetcher(GetProfileSegmentsResponse, { ...customRequestInit });
|
|
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
|
+
};
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
buildSegmentsProfileSegmentsGetFetcher,
|
|
23
|
+
getSegmentsProfileSegments
|
|
24
|
+
};
|
|
@@ -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 = (customRequestInit) => createVoidFetcher({ ...customRequestInit });
|
|
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,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 = (customRequestInit) => createJsonFetcher(GetCampaignsResponse, { ...customRequestInit });
|
|
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 = (customRequestInit) => createJsonFetcher(PostCampaignsResponse, { ...customRequestInit });
|
|
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
|
+
};
|
|
@@ -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 = (customRequestInit) => createJsonFetcher(Image, { ...customRequestInit });
|
|
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
|
+
};
|
|
@@ -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 = (customRequestInit) => createVoidFetcher({ ...customRequestInit });
|
|
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 = (customRequestInit) => createVoidFetcher({ ...customRequestInit });
|
|
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 = (customRequestInit) => createJsonFetcher(GetTargetUsersCountResponse, { ...customRequestInit });
|
|
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 = (customRequestInit) => createVoidFetcher({ ...customRequestInit });
|
|
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
|
+
};
|
|
@@ -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 = (customRequestInit) => createJsonFetcher(CampaignsCampaignIdResponse, { ...customRequestInit });
|
|
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 = (customRequestInit) => createVoidFetcher({ ...customRequestInit });
|
|
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 = (customRequestInit) => createJsonFetcher(CampaignsCampaignIdResponse, { ...customRequestInit });
|
|
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
|
+
};
|
|
@@ -3,7 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
|
|
|
3
3
|
|
|
4
4
|
type CampaignsGetOperation = paths["/api/campaigns"]["get"];
|
|
5
5
|
type CampaignsGetResponse = CampaignsGetOperation["responses"]["200"]["content"]["application/json"];
|
|
6
|
-
declare const buildCampaignsGetFetcher: (
|
|
6
|
+
declare const buildCampaignsGetFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
7
|
campaigns: ({
|
|
8
8
|
kind: "curationMailMagazine";
|
|
9
9
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
@@ -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";
|
|
@@ -69,7 +69,7 @@ declare const getCampaigns: (query: CampaignsGetQuery, requestInit?: RequestInit
|
|
|
69
69
|
}>;
|
|
70
70
|
type CampaignsPostOperation = paths["/api/campaigns"]["post"];
|
|
71
71
|
type CampaignsPostResponse = CampaignsPostOperation["responses"]["201"]["content"]["application/json"];
|
|
72
|
-
declare const buildCampaignsPostFetcher: (
|
|
72
|
+
declare const buildCampaignsPostFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
73
73
|
id: number;
|
|
74
74
|
}>;
|
|
75
75
|
type CampaignsPostRequestBody = ForceDig<CampaignsPostOperation, [
|
|
@@ -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
|
|
|
@@ -3,7 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
|
|
|
3
3
|
|
|
4
4
|
type CampaignsGetOperation = paths["/api/campaigns"]["get"];
|
|
5
5
|
type CampaignsGetResponse = CampaignsGetOperation["responses"]["200"]["content"]["application/json"];
|
|
6
|
-
declare const buildCampaignsGetFetcher: (
|
|
6
|
+
declare const buildCampaignsGetFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
7
|
campaigns: ({
|
|
8
8
|
kind: "curationMailMagazine";
|
|
9
9
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
@@ -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";
|
|
@@ -69,7 +69,7 @@ declare const getCampaigns: (query: CampaignsGetQuery, requestInit?: RequestInit
|
|
|
69
69
|
}>;
|
|
70
70
|
type CampaignsPostOperation = paths["/api/campaigns"]["post"];
|
|
71
71
|
type CampaignsPostResponse = CampaignsPostOperation["responses"]["201"]["content"]["application/json"];
|
|
72
|
-
declare const buildCampaignsPostFetcher: (
|
|
72
|
+
declare const buildCampaignsPostFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
73
73
|
id: number;
|
|
74
74
|
}>;
|
|
75
75
|
type CampaignsPostRequestBody = ForceDig<CampaignsPostOperation, [
|
|
@@ -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
|
@@ -307,18 +307,29 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
307
307
|
});
|
|
308
308
|
|
|
309
309
|
// src/fetch/campaigns.ts
|
|
310
|
-
var buildCampaignsGetFetcher = (
|
|
311
|
-
var getCampaigns = (query,
|
|
312
|
-
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns", {}, query)
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
310
|
+
var buildCampaignsGetFetcher = (customRequestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsResponse, { ...customRequestInit });
|
|
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
|
+
};
|
|
319
|
+
var buildCampaignsPostFetcher = (customRequestInit) => (0, import_api_client_base.createJsonFetcher)(PostCampaignsResponse, { ...customRequestInit });
|
|
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
|
@@ -2,11 +2,11 @@ import { paths } from '../schemaType.mjs';
|
|
|
2
2
|
import { ForceDig } from '@readyfor/api-client-base';
|
|
3
3
|
|
|
4
4
|
type CampaignsCampaignIdImagesIdDeleteOperation = paths["/api/campaigns/{campaign_id}/images/{id}"]["delete"];
|
|
5
|
-
declare const buildCampaignsCampaignIdImagesIdDeleteFetcher: (
|
|
5
|
+
declare const buildCampaignsCampaignIdImagesIdDeleteFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
6
6
|
type CampaignsCampaignIdImagesIdDeletePath = ForceDig<CampaignsCampaignIdImagesIdDeleteOperation, [
|
|
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 };
|
|
@@ -2,11 +2,11 @@ import { paths } from '../schemaType.js';
|
|
|
2
2
|
import { ForceDig } from '@readyfor/api-client-base';
|
|
3
3
|
|
|
4
4
|
type CampaignsCampaignIdImagesIdDeleteOperation = paths["/api/campaigns/{campaign_id}/images/{id}"]["delete"];
|
|
5
|
-
declare const buildCampaignsCampaignIdImagesIdDeleteFetcher: (
|
|
5
|
+
declare const buildCampaignsCampaignIdImagesIdDeleteFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
6
6
|
type CampaignsCampaignIdImagesIdDeletePath = ForceDig<CampaignsCampaignIdImagesIdDeleteOperation, [
|
|
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 };
|
|
@@ -25,11 +25,20 @@ __export(campaignsCampaignIdImagesId_exports, {
|
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(campaignsCampaignIdImagesId_exports);
|
|
27
27
|
var import_api_client_base = require("@readyfor/api-client-base");
|
|
28
|
-
var buildCampaignsCampaignIdImagesIdDeleteFetcher = (
|
|
29
|
-
var deleteCampaignsCampaignIdImagesId = (path,
|
|
30
|
-
(0, import_api_client_base.__internal__requestUrl)(
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
var buildCampaignsCampaignIdImagesIdDeleteFetcher = (customRequestInit) => (0, import_api_client_base.createVoidFetcher)({ ...customRequestInit });
|
|
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,
|