@readyfor/api-client-pigeon 0.240.0-pr981.89e7f00 → 0.240.0-pr982.47c0748
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-JUEVPCCG.mjs → chunk-27GLDQK3.mjs} +1 -1
- package/dist/{chunk-4NGGO3G6.mjs → chunk-2B6GQILG.mjs} +1 -1
- package/dist/{chunk-2UJ4AWWH.mjs → chunk-2MRIEXEQ.mjs} +3 -1
- package/dist/{chunk-KL2DA5QY.mjs → chunk-4YF2M7Y7.mjs} +3 -1
- package/dist/{chunk-U7AEZYNN.mjs → chunk-AQVUMZVL.mjs} +1 -1
- package/dist/{chunk-MB4UQS7V.mjs → chunk-CABZT6BU.mjs} +1 -1
- package/dist/{chunk-NXETGJTF.mjs → chunk-EN3CP4JR.mjs} +1 -1
- package/dist/{chunk-4INIKTKJ.mjs → chunk-HNVHV5GD.mjs} +2 -2
- package/dist/{chunk-RC6SX75E.mjs → chunk-JXZJCPX3.mjs} +1 -1
- package/dist/{chunk-UENEH462.mjs → chunk-NKU3JO55.mjs} +2 -2
- package/dist/{chunk-VGMORDQ4.mjs → chunk-O4CHNDYY.mjs} +1 -1
- package/dist/{chunk-5ULJLAC6.mjs → chunk-QKM5JPTE.mjs} +1 -1
- package/dist/{chunk-3UBBT7E5.mjs → chunk-T3IYQXXP.mjs} +1 -1
- package/dist/{chunk-OWGV4AJG.mjs → chunk-TLGSSZT7.mjs} +1 -1
- package/dist/{chunk-WISELSRL.mjs → chunk-UTUZQQT6.mjs} +1 -1
- package/dist/{chunk-4RIZKNMD.mjs → chunk-UU5WXXGN.mjs} +1 -1
- package/dist/{chunk-URYB6NOK.mjs → chunk-W6D6J2QD.mjs} +1 -1
- package/dist/{chunk-AGTNHB2D.mjs → chunk-YT25LCGA.mjs} +3 -3
- package/dist/fetch/campaigns.d.mts +2 -2
- package/dist/fetch/campaigns.d.ts +2 -2
- package/dist/fetch/campaigns.js +2 -2
- 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 +1 -1
- 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 +3 -3
- 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 +2 -2
- 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 +1 -1
- 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 +3 -1
- 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 +1 -1
- 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 +3 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +19 -15
- package/dist/index.mjs +11 -11
- package/package.json +3 -3
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
__internal__requestUrl,
|
|
9
9
|
buildRequestInitWithDefaultConfig
|
|
10
10
|
} from "@readyfor/api-client-base";
|
|
11
|
-
var buildSegmentsBehaviorSegmentsGetFetcher = (
|
|
11
|
+
var buildSegmentsBehaviorSegmentsGetFetcher = (customRequestInit) => createJsonFetcher(GetBehaviorSegmentsResponse, { ...customRequestInit });
|
|
12
12
|
var getSegmentsBehaviorSegments = (customRequestInit) => {
|
|
13
13
|
const requestInfo = __internal__requestUrl("/api/segments/behavior_segments");
|
|
14
14
|
const requestInit = buildRequestInitWithDefaultConfig({
|
|
@@ -8,7 +8,9 @@ import {
|
|
|
8
8
|
__internal__requestUrl,
|
|
9
9
|
buildRequestInitWithDefaultConfig
|
|
10
10
|
} from "@readyfor/api-client-base";
|
|
11
|
-
var buildProjectsProjectIdOrKeywordGetFetcher = (
|
|
11
|
+
var buildProjectsProjectIdOrKeywordGetFetcher = (customRequestInit) => createJsonFetcher(GetProjectsProjectIdOrKeywordResponse, {
|
|
12
|
+
...customRequestInit
|
|
13
|
+
});
|
|
12
14
|
var getProjectsProjectIdOrKeyword = (path, customRequestInit) => {
|
|
13
15
|
const requestInfo = __internal__requestUrl(
|
|
14
16
|
"/api/projects/{project_id_or_keyword}",
|
|
@@ -8,7 +8,9 @@ import {
|
|
|
8
8
|
__internal__requestUrl,
|
|
9
9
|
buildRequestInitWithDefaultConfig
|
|
10
10
|
} from "@readyfor/api-client-base";
|
|
11
|
-
var buildCampaignsIdPreviewGetFetcher = (
|
|
11
|
+
var buildCampaignsIdPreviewGetFetcher = (customRequestInit) => createJsonFetcher(GetCampaignsCampaignIdPreviewResponse, {
|
|
12
|
+
...customRequestInit
|
|
13
|
+
});
|
|
12
14
|
var getCampaignsIdPreview = (path, customRequestInit) => {
|
|
13
15
|
const requestInfo = __internal__requestUrl(
|
|
14
16
|
"/api/campaigns/{id}/preview",
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
__internal__requestUrl,
|
|
9
9
|
buildRequestInitWithDefaultConfig
|
|
10
10
|
} from "@readyfor/api-client-base";
|
|
11
|
-
var buildSegmentsProfileSegmentsGetFetcher = (
|
|
11
|
+
var buildSegmentsProfileSegmentsGetFetcher = (customRequestInit) => createJsonFetcher(GetProfileSegmentsResponse, { ...customRequestInit });
|
|
12
12
|
var getSegmentsProfileSegments = (customRequestInit) => {
|
|
13
13
|
const requestInfo = __internal__requestUrl("/api/segments/profile_segments");
|
|
14
14
|
const requestInit = buildRequestInitWithDefaultConfig({
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__internal__requestUrl,
|
|
5
5
|
buildRequestInitWithDefaultConfig
|
|
6
6
|
} from "@readyfor/api-client-base";
|
|
7
|
-
var buildCampaignsIdPreviewDeliveryEmailPostFetcher = (
|
|
7
|
+
var buildCampaignsIdPreviewDeliveryEmailPostFetcher = (customRequestInit) => createVoidFetcher({ ...customRequestInit });
|
|
8
8
|
var postCampaignsIdPreviewDeliveryEmail = (path, requestBody, customRequestInit) => {
|
|
9
9
|
const requestInfo = __internal__requestUrl(
|
|
10
10
|
"/api/campaigns/{id}/preview_delivery_email",
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
__internal__requestUrl,
|
|
10
10
|
buildRequestInitWithDefaultConfig
|
|
11
11
|
} from "@readyfor/api-client-base";
|
|
12
|
-
var buildCampaignsGetFetcher = (
|
|
12
|
+
var buildCampaignsGetFetcher = (customRequestInit) => createJsonFetcher(GetCampaignsResponse, { ...customRequestInit });
|
|
13
13
|
var getCampaigns = (query, customRequestInit) => {
|
|
14
14
|
const requestInfo = __internal__requestUrl("/api/campaigns", {}, query);
|
|
15
15
|
const requestInit = buildRequestInitWithDefaultConfig({
|
|
@@ -18,7 +18,7 @@ var getCampaigns = (query, customRequestInit) => {
|
|
|
18
18
|
});
|
|
19
19
|
return buildCampaignsGetFetcher(requestInit)(requestInfo);
|
|
20
20
|
};
|
|
21
|
-
var buildCampaignsPostFetcher = (
|
|
21
|
+
var buildCampaignsPostFetcher = (customRequestInit) => createJsonFetcher(PostCampaignsResponse, { ...customRequestInit });
|
|
22
22
|
var postCampaigns = (requestBody, customRequestInit) => {
|
|
23
23
|
const requestInfo = __internal__requestUrl("/api/campaigns");
|
|
24
24
|
const requestInit = buildRequestInitWithDefaultConfig({
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
__internal__requestUrl,
|
|
9
9
|
buildRequestInitWithDefaultConfig
|
|
10
10
|
} from "@readyfor/api-client-base";
|
|
11
|
-
var buildCampaignsIdImagesPostFetcher = (
|
|
11
|
+
var buildCampaignsIdImagesPostFetcher = (customRequestInit) => createJsonFetcher(Image, { ...customRequestInit });
|
|
12
12
|
var postCampaignsIdImages = (path, requestBody, customRequestInit) => {
|
|
13
13
|
const requestInfo = __internal__requestUrl(
|
|
14
14
|
"/api/campaigns/{id}/images",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__internal__requestUrl,
|
|
5
5
|
buildRequestInitWithDefaultConfig
|
|
6
6
|
} from "@readyfor/api-client-base";
|
|
7
|
-
var buildCampaignsIdDeliveryJobPostFetcher = (
|
|
7
|
+
var buildCampaignsIdDeliveryJobPostFetcher = (customRequestInit) => createVoidFetcher({ ...customRequestInit });
|
|
8
8
|
var postCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
9
9
|
const requestInfo = __internal__requestUrl(
|
|
10
10
|
"/api/campaigns/{id}/delivery_job",
|
|
@@ -16,7 +16,7 @@ var postCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
|
16
16
|
});
|
|
17
17
|
return buildCampaignsIdDeliveryJobPostFetcher(requestInit)(requestInfo);
|
|
18
18
|
};
|
|
19
|
-
var buildCampaignsIdDeliveryJobDeleteFetcher = (
|
|
19
|
+
var buildCampaignsIdDeliveryJobDeleteFetcher = (customRequestInit) => createVoidFetcher({ ...customRequestInit });
|
|
20
20
|
var deleteCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
21
21
|
const requestInfo = __internal__requestUrl(
|
|
22
22
|
"/api/campaigns/{id}/delivery_job",
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
__internal__requestUrl,
|
|
9
9
|
buildRequestInitWithDefaultConfig
|
|
10
10
|
} from "@readyfor/api-client-base";
|
|
11
|
-
var buildSegmentsTargetUsersCountGetFetcher = (
|
|
11
|
+
var buildSegmentsTargetUsersCountGetFetcher = (customRequestInit) => createJsonFetcher(GetTargetUsersCountResponse, { ...customRequestInit });
|
|
12
12
|
var getSegmentsTargetUsersCount = (query, customRequestInit) => {
|
|
13
13
|
const requestInfo = __internal__requestUrl(
|
|
14
14
|
"/api/segments/target_users_count",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__internal__requestUrl,
|
|
5
5
|
buildRequestInitWithDefaultConfig
|
|
6
6
|
} from "@readyfor/api-client-base";
|
|
7
|
-
var buildCampaignsCampaignIdImagesIdDeleteFetcher = (
|
|
7
|
+
var buildCampaignsCampaignIdImagesIdDeleteFetcher = (customRequestInit) => createVoidFetcher({ ...customRequestInit });
|
|
8
8
|
var deleteCampaignsCampaignIdImagesId = (path, customRequestInit) => {
|
|
9
9
|
const requestInfo = __internal__requestUrl(
|
|
10
10
|
"/api/campaigns/{campaign_id}/images/{id}",
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
buildRequestInitWithDefaultConfig,
|
|
10
10
|
createVoidFetcher
|
|
11
11
|
} from "@readyfor/api-client-base";
|
|
12
|
-
var buildCampaignsIdGetFetcher = (
|
|
12
|
+
var buildCampaignsIdGetFetcher = (customRequestInit) => createJsonFetcher(CampaignsCampaignIdResponse, { ...customRequestInit });
|
|
13
13
|
var getCampaignsId = (path, customRequestInit) => {
|
|
14
14
|
const requestInfo = __internal__requestUrl("/api/campaigns/{id}", path);
|
|
15
15
|
const requestInit = buildRequestInitWithDefaultConfig({
|
|
@@ -18,7 +18,7 @@ var getCampaignsId = (path, customRequestInit) => {
|
|
|
18
18
|
});
|
|
19
19
|
return buildCampaignsIdGetFetcher(requestInit)(requestInfo);
|
|
20
20
|
};
|
|
21
|
-
var buildCampaignsIdDeleteFetcher = (
|
|
21
|
+
var buildCampaignsIdDeleteFetcher = (customRequestInit) => createVoidFetcher({ ...customRequestInit });
|
|
22
22
|
var deleteCampaignsId = (path, customRequestInit) => {
|
|
23
23
|
const requestInfo = __internal__requestUrl("/api/campaigns/{id}", path);
|
|
24
24
|
const requestInit = buildRequestInitWithDefaultConfig({
|
|
@@ -27,7 +27,7 @@ var deleteCampaignsId = (path, customRequestInit) => {
|
|
|
27
27
|
});
|
|
28
28
|
return buildCampaignsIdDeleteFetcher(requestInit)(requestInfo);
|
|
29
29
|
};
|
|
30
|
-
var buildCampaignsIdPatchFetcher = (
|
|
30
|
+
var buildCampaignsIdPatchFetcher = (customRequestInit) => createJsonFetcher(CampaignsCampaignIdResponse, { ...customRequestInit });
|
|
31
31
|
var patchCampaignsId = (path, requestBody, customRequestInit) => {
|
|
32
32
|
const requestInfo = __internal__requestUrl("/api/campaigns/{id}", path);
|
|
33
33
|
const requestInit = buildRequestInitWithDefaultConfig({
|
|
@@ -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";
|
|
@@ -69,7 +69,7 @@ declare const getCampaigns: (query: CampaignsGetQuery, customRequestInit?: Reque
|
|
|
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, [
|
|
@@ -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";
|
|
@@ -69,7 +69,7 @@ declare const getCampaigns: (query: CampaignsGetQuery, customRequestInit?: Reque
|
|
|
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, [
|
package/dist/fetch/campaigns.js
CHANGED
|
@@ -307,7 +307,7 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
307
307
|
});
|
|
308
308
|
|
|
309
309
|
// src/fetch/campaigns.ts
|
|
310
|
-
var buildCampaignsGetFetcher = (
|
|
310
|
+
var buildCampaignsGetFetcher = (customRequestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsResponse, { ...customRequestInit });
|
|
311
311
|
var getCampaigns = (query, customRequestInit) => {
|
|
312
312
|
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns", {}, query);
|
|
313
313
|
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
@@ -316,7 +316,7 @@ var getCampaigns = (query, customRequestInit) => {
|
|
|
316
316
|
});
|
|
317
317
|
return buildCampaignsGetFetcher(requestInit)(requestInfo);
|
|
318
318
|
};
|
|
319
|
-
var buildCampaignsPostFetcher = (
|
|
319
|
+
var buildCampaignsPostFetcher = (customRequestInit) => (0, import_api_client_base.createJsonFetcher)(PostCampaignsResponse, { ...customRequestInit });
|
|
320
320
|
var postCampaigns = (requestBody, customRequestInit) => {
|
|
321
321
|
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns");
|
|
322
322
|
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
package/dist/fetch/campaigns.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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"
|
|
@@ -2,7 +2,7 @@ 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"
|
|
@@ -25,7 +25,7 @@ __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 = (
|
|
28
|
+
var buildCampaignsCampaignIdImagesIdDeleteFetcher = (customRequestInit) => (0, import_api_client_base.createVoidFetcher)({ ...customRequestInit });
|
|
29
29
|
var deleteCampaignsCampaignIdImagesId = (path, customRequestInit) => {
|
|
30
30
|
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
31
31
|
"/api/campaigns/{campaign_id}/images/{id}",
|
|
@@ -3,7 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
|
|
|
3
3
|
|
|
4
4
|
type CampaignsIdGetOperation = paths["/api/campaigns/{id}"]["get"];
|
|
5
5
|
type CampaignsIdGetResponse = CampaignsIdGetOperation["responses"]["200"]["content"]["application/json"];
|
|
6
|
-
declare const buildCampaignsIdGetFetcher: (
|
|
6
|
+
declare const buildCampaignsIdGetFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
7
|
campaignDetail: {
|
|
8
8
|
curationMailMagazine: {
|
|
9
9
|
utmCampaign: string | null;
|
|
@@ -146,7 +146,7 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: Req
|
|
|
146
146
|
};
|
|
147
147
|
}>;
|
|
148
148
|
type CampaignsIdDeleteOperation = paths["/api/campaigns/{id}"]["delete"];
|
|
149
|
-
declare const buildCampaignsIdDeleteFetcher: (
|
|
149
|
+
declare const buildCampaignsIdDeleteFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
150
150
|
type CampaignsIdDeletePath = ForceDig<CampaignsIdDeleteOperation, [
|
|
151
151
|
"parameters",
|
|
152
152
|
"path"
|
|
@@ -154,7 +154,7 @@ type CampaignsIdDeletePath = ForceDig<CampaignsIdDeleteOperation, [
|
|
|
154
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
|
-
declare const buildCampaignsIdPatchFetcher: (
|
|
157
|
+
declare const buildCampaignsIdPatchFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
158
158
|
campaignDetail: {
|
|
159
159
|
curationMailMagazine: {
|
|
160
160
|
utmCampaign: string | null;
|
|
@@ -3,7 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
|
|
|
3
3
|
|
|
4
4
|
type CampaignsIdGetOperation = paths["/api/campaigns/{id}"]["get"];
|
|
5
5
|
type CampaignsIdGetResponse = CampaignsIdGetOperation["responses"]["200"]["content"]["application/json"];
|
|
6
|
-
declare const buildCampaignsIdGetFetcher: (
|
|
6
|
+
declare const buildCampaignsIdGetFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
7
|
campaignDetail: {
|
|
8
8
|
curationMailMagazine: {
|
|
9
9
|
utmCampaign: string | null;
|
|
@@ -146,7 +146,7 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: Req
|
|
|
146
146
|
};
|
|
147
147
|
}>;
|
|
148
148
|
type CampaignsIdDeleteOperation = paths["/api/campaigns/{id}"]["delete"];
|
|
149
|
-
declare const buildCampaignsIdDeleteFetcher: (
|
|
149
|
+
declare const buildCampaignsIdDeleteFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
150
150
|
type CampaignsIdDeletePath = ForceDig<CampaignsIdDeleteOperation, [
|
|
151
151
|
"parameters",
|
|
152
152
|
"path"
|
|
@@ -154,7 +154,7 @@ type CampaignsIdDeletePath = ForceDig<CampaignsIdDeleteOperation, [
|
|
|
154
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
|
-
declare const buildCampaignsIdPatchFetcher: (
|
|
157
|
+
declare const buildCampaignsIdPatchFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
158
158
|
campaignDetail: {
|
|
159
159
|
curationMailMagazine: {
|
|
160
160
|
utmCampaign: string | null;
|
|
@@ -309,7 +309,7 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
309
309
|
});
|
|
310
310
|
|
|
311
311
|
// src/fetch/campaignsId.ts
|
|
312
|
-
var buildCampaignsIdGetFetcher = (
|
|
312
|
+
var buildCampaignsIdGetFetcher = (customRequestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...customRequestInit });
|
|
313
313
|
var getCampaignsId = (path, customRequestInit) => {
|
|
314
314
|
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
315
315
|
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
@@ -318,7 +318,7 @@ var getCampaignsId = (path, customRequestInit) => {
|
|
|
318
318
|
});
|
|
319
319
|
return buildCampaignsIdGetFetcher(requestInit)(requestInfo);
|
|
320
320
|
};
|
|
321
|
-
var buildCampaignsIdDeleteFetcher = (
|
|
321
|
+
var buildCampaignsIdDeleteFetcher = (customRequestInit) => (0, import_api_client_base.createVoidFetcher)({ ...customRequestInit });
|
|
322
322
|
var deleteCampaignsId = (path, customRequestInit) => {
|
|
323
323
|
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
324
324
|
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
@@ -327,7 +327,7 @@ var deleteCampaignsId = (path, customRequestInit) => {
|
|
|
327
327
|
});
|
|
328
328
|
return buildCampaignsIdDeleteFetcher(requestInit)(requestInfo);
|
|
329
329
|
};
|
|
330
|
-
var buildCampaignsIdPatchFetcher = (
|
|
330
|
+
var buildCampaignsIdPatchFetcher = (customRequestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...customRequestInit });
|
|
331
331
|
var patchCampaignsId = (path, requestBody, customRequestInit) => {
|
|
332
332
|
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
333
333
|
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
@@ -2,14 +2,14 @@ import { paths } from '../schemaType.mjs';
|
|
|
2
2
|
import { ForceDig } from '@readyfor/api-client-base';
|
|
3
3
|
|
|
4
4
|
type CampaignsIdDeliveryJobPostOperation = paths["/api/campaigns/{id}/delivery_job"]["post"];
|
|
5
|
-
declare const buildCampaignsIdDeliveryJobPostFetcher: (
|
|
5
|
+
declare const buildCampaignsIdDeliveryJobPostFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
6
6
|
type CampaignsIdDeliveryJobPostPath = ForceDig<CampaignsIdDeliveryJobPostOperation, [
|
|
7
7
|
"parameters",
|
|
8
8
|
"path"
|
|
9
9
|
]>;
|
|
10
10
|
declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath, customRequestInit?: RequestInit) => Promise<void>;
|
|
11
11
|
type CampaignsIdDeliveryJobDeleteOperation = paths["/api/campaigns/{id}/delivery_job"]["delete"];
|
|
12
|
-
declare const buildCampaignsIdDeliveryJobDeleteFetcher: (
|
|
12
|
+
declare const buildCampaignsIdDeliveryJobDeleteFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
13
13
|
type CampaignsIdDeliveryJobDeletePath = ForceDig<CampaignsIdDeliveryJobDeleteOperation, [
|
|
14
14
|
"parameters",
|
|
15
15
|
"path"
|
|
@@ -2,14 +2,14 @@ import { paths } from '../schemaType.js';
|
|
|
2
2
|
import { ForceDig } from '@readyfor/api-client-base';
|
|
3
3
|
|
|
4
4
|
type CampaignsIdDeliveryJobPostOperation = paths["/api/campaigns/{id}/delivery_job"]["post"];
|
|
5
|
-
declare const buildCampaignsIdDeliveryJobPostFetcher: (
|
|
5
|
+
declare const buildCampaignsIdDeliveryJobPostFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
6
6
|
type CampaignsIdDeliveryJobPostPath = ForceDig<CampaignsIdDeliveryJobPostOperation, [
|
|
7
7
|
"parameters",
|
|
8
8
|
"path"
|
|
9
9
|
]>;
|
|
10
10
|
declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath, customRequestInit?: RequestInit) => Promise<void>;
|
|
11
11
|
type CampaignsIdDeliveryJobDeleteOperation = paths["/api/campaigns/{id}/delivery_job"]["delete"];
|
|
12
|
-
declare const buildCampaignsIdDeliveryJobDeleteFetcher: (
|
|
12
|
+
declare const buildCampaignsIdDeliveryJobDeleteFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
13
13
|
type CampaignsIdDeliveryJobDeletePath = ForceDig<CampaignsIdDeliveryJobDeleteOperation, [
|
|
14
14
|
"parameters",
|
|
15
15
|
"path"
|
|
@@ -27,7 +27,7 @@ __export(campaignsIdDeliveryJob_exports, {
|
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(campaignsIdDeliveryJob_exports);
|
|
29
29
|
var import_api_client_base = require("@readyfor/api-client-base");
|
|
30
|
-
var buildCampaignsIdDeliveryJobPostFetcher = (
|
|
30
|
+
var buildCampaignsIdDeliveryJobPostFetcher = (customRequestInit) => (0, import_api_client_base.createVoidFetcher)({ ...customRequestInit });
|
|
31
31
|
var postCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
32
32
|
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
33
33
|
"/api/campaigns/{id}/delivery_job",
|
|
@@ -39,7 +39,7 @@ var postCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
|
39
39
|
});
|
|
40
40
|
return buildCampaignsIdDeliveryJobPostFetcher(requestInit)(requestInfo);
|
|
41
41
|
};
|
|
42
|
-
var buildCampaignsIdDeliveryJobDeleteFetcher = (
|
|
42
|
+
var buildCampaignsIdDeliveryJobDeleteFetcher = (customRequestInit) => (0, import_api_client_base.createVoidFetcher)({ ...customRequestInit });
|
|
43
43
|
var deleteCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
44
44
|
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
45
45
|
"/api/campaigns/{id}/delivery_job",
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
buildCampaignsIdDeliveryJobPostFetcher,
|
|
4
4
|
deleteCampaignsIdDeliveryJob,
|
|
5
5
|
postCampaignsIdDeliveryJob
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-NKU3JO55.mjs";
|
|
7
7
|
export {
|
|
8
8
|
buildCampaignsIdDeliveryJobDeleteFetcher,
|
|
9
9
|
buildCampaignsIdDeliveryJobPostFetcher,
|
|
@@ -3,7 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
|
|
|
3
3
|
|
|
4
4
|
type CampaignsIdImagesPostOperation = paths["/api/campaigns/{id}/images"]["post"];
|
|
5
5
|
type CampaignsIdImagesPostResponse = CampaignsIdImagesPostOperation["responses"]["201"]["content"]["application/json"];
|
|
6
|
-
declare const buildCampaignsIdImagesPostFetcher: (
|
|
6
|
+
declare const buildCampaignsIdImagesPostFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
7
|
id: number;
|
|
8
8
|
key: string;
|
|
9
9
|
}>;
|
|
@@ -3,7 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
|
|
|
3
3
|
|
|
4
4
|
type CampaignsIdImagesPostOperation = paths["/api/campaigns/{id}/images"]["post"];
|
|
5
5
|
type CampaignsIdImagesPostResponse = CampaignsIdImagesPostOperation["responses"]["201"]["content"]["application/json"];
|
|
6
|
-
declare const buildCampaignsIdImagesPostFetcher: (
|
|
6
|
+
declare const buildCampaignsIdImagesPostFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
7
|
id: number;
|
|
8
8
|
key: string;
|
|
9
9
|
}>;
|
|
@@ -305,7 +305,7 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
305
305
|
});
|
|
306
306
|
|
|
307
307
|
// src/fetch/campaignsIdImages.ts
|
|
308
|
-
var buildCampaignsIdImagesPostFetcher = (
|
|
308
|
+
var buildCampaignsIdImagesPostFetcher = (customRequestInit) => (0, import_api_client_base.createJsonFetcher)(Image, { ...customRequestInit });
|
|
309
309
|
var postCampaignsIdImages = (path, requestBody, customRequestInit) => {
|
|
310
310
|
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
311
311
|
"/api/campaigns/{id}/images",
|
|
@@ -3,7 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
|
|
|
3
3
|
|
|
4
4
|
type CampaignsIdPreviewGetOperation = paths["/api/campaigns/{id}/preview"]["get"];
|
|
5
5
|
type CampaignsIdPreviewGetResponse = CampaignsIdPreviewGetOperation["responses"]["200"]["content"]["application/json"];
|
|
6
|
-
declare const buildCampaignsIdPreviewGetFetcher: (
|
|
6
|
+
declare const buildCampaignsIdPreviewGetFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
7
|
content: string;
|
|
8
8
|
}>;
|
|
9
9
|
type CampaignsIdPreviewGetPath = ForceDig<CampaignsIdPreviewGetOperation, [
|
|
@@ -3,7 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
|
|
|
3
3
|
|
|
4
4
|
type CampaignsIdPreviewGetOperation = paths["/api/campaigns/{id}/preview"]["get"];
|
|
5
5
|
type CampaignsIdPreviewGetResponse = CampaignsIdPreviewGetOperation["responses"]["200"]["content"]["application/json"];
|
|
6
|
-
declare const buildCampaignsIdPreviewGetFetcher: (
|
|
6
|
+
declare const buildCampaignsIdPreviewGetFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
7
|
content: string;
|
|
8
8
|
}>;
|
|
9
9
|
type CampaignsIdPreviewGetPath = ForceDig<CampaignsIdPreviewGetOperation, [
|
|
@@ -305,7 +305,9 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
305
305
|
});
|
|
306
306
|
|
|
307
307
|
// src/fetch/campaignsIdPreview.ts
|
|
308
|
-
var buildCampaignsIdPreviewGetFetcher = (
|
|
308
|
+
var buildCampaignsIdPreviewGetFetcher = (customRequestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsCampaignIdPreviewResponse, {
|
|
309
|
+
...customRequestInit
|
|
310
|
+
});
|
|
309
311
|
var getCampaignsIdPreview = (path, customRequestInit) => {
|
|
310
312
|
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
311
313
|
"/api/campaigns/{id}/preview",
|
|
@@ -2,7 +2,7 @@ import { paths } from '../schemaType.mjs';
|
|
|
2
2
|
import { ForceDig } from '@readyfor/api-client-base';
|
|
3
3
|
|
|
4
4
|
type CampaignsIdPreviewDeliveryEmailPostOperation = paths["/api/campaigns/{id}/preview_delivery_email"]["post"];
|
|
5
|
-
declare const buildCampaignsIdPreviewDeliveryEmailPostFetcher: (
|
|
5
|
+
declare const buildCampaignsIdPreviewDeliveryEmailPostFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
6
6
|
type CampaignsIdPreviewDeliveryEmailPostPath = ForceDig<CampaignsIdPreviewDeliveryEmailPostOperation, [
|
|
7
7
|
"parameters",
|
|
8
8
|
"path"
|
|
@@ -2,7 +2,7 @@ import { paths } from '../schemaType.js';
|
|
|
2
2
|
import { ForceDig } from '@readyfor/api-client-base';
|
|
3
3
|
|
|
4
4
|
type CampaignsIdPreviewDeliveryEmailPostOperation = paths["/api/campaigns/{id}/preview_delivery_email"]["post"];
|
|
5
|
-
declare const buildCampaignsIdPreviewDeliveryEmailPostFetcher: (
|
|
5
|
+
declare const buildCampaignsIdPreviewDeliveryEmailPostFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
6
6
|
type CampaignsIdPreviewDeliveryEmailPostPath = ForceDig<CampaignsIdPreviewDeliveryEmailPostOperation, [
|
|
7
7
|
"parameters",
|
|
8
8
|
"path"
|
|
@@ -25,7 +25,7 @@ __export(campaignsIdPreviewDeliveryEmail_exports, {
|
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(campaignsIdPreviewDeliveryEmail_exports);
|
|
27
27
|
var import_api_client_base = require("@readyfor/api-client-base");
|
|
28
|
-
var buildCampaignsIdPreviewDeliveryEmailPostFetcher = (
|
|
28
|
+
var buildCampaignsIdPreviewDeliveryEmailPostFetcher = (customRequestInit) => (0, import_api_client_base.createVoidFetcher)({ ...customRequestInit });
|
|
29
29
|
var postCampaignsIdPreviewDeliveryEmail = (path, requestBody, customRequestInit) => {
|
|
30
30
|
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
31
31
|
"/api/campaigns/{id}/preview_delivery_email",
|