@readyfor/api-client-pigeon 0.240.0-pr981.9ef5d0f → 0.240.0
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-EN3CP4JR.mjs → chunk-3BSY3CC4.mjs} +1 -1
- package/dist/chunk-6DE2SHQZ.mjs +19 -0
- package/dist/chunk-BGIB7JQD.mjs +19 -0
- package/dist/chunk-D455PCO3.mjs +19 -0
- package/dist/chunk-DH3UXOBA.mjs +19 -0
- package/dist/{chunk-QKM5JPTE.mjs → chunk-DQW3ZEJN.mjs} +1 -1
- package/dist/chunk-EYJTETGN.mjs +34 -0
- package/dist/chunk-KBTZNIQJ.mjs +20 -0
- package/dist/{chunk-W6D6J2QD.mjs → chunk-KL2BCQLU.mjs} +1 -1
- package/dist/{chunk-TLGSSZT7.mjs → chunk-LUUW3QOB.mjs} +1 -1
- package/dist/chunk-MFCSQX6F.mjs +29 -0
- package/dist/chunk-NIBXTDD3.mjs +15 -0
- package/dist/chunk-NKNUFH54.mjs +19 -0
- package/dist/{chunk-T3IYQXXP.mjs → chunk-S2M3EJKW.mjs} +1 -1
- package/dist/chunk-VJU27CZQ.mjs +19 -0
- package/dist/{chunk-27GLDQK3.mjs → chunk-VUY6GQWT.mjs} +1 -1
- package/dist/chunk-YV4XRZY2.mjs +22 -0
- package/dist/{chunk-UU5WXXGN.mjs → chunk-ZDQDW24D.mjs} +1 -1
- package/dist/fetch/campaigns.d.mts +4 -4
- package/dist/fetch/campaigns.d.ts +4 -4
- package/dist/fetch/campaigns.js +12 -23
- 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 +5 -14
- 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 +15 -28
- 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 +10 -24
- 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 +5 -13
- 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 +5 -14
- 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 +8 -17
- 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 +5 -14
- 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 +5 -9
- 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 +5 -9
- 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 +5 -13
- package/dist/fetch/segmentsTargetUsersCount.mjs +1 -1
- package/dist/hooks/index.js +7 -11
- 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 +1 -3
- package/dist/hooks/useCampaignsIdPreview.mjs +12 -12
- package/dist/hooks/useProjectsProjectIdOrKeyword.js +1 -3
- 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 +80 -178
- package/dist/index.mjs +11 -11
- package/package.json +13 -12
- package/dist/chunk-2B6GQILG.mjs +0 -24
- package/dist/chunk-2MRIEXEQ.mjs +0 -29
- package/dist/chunk-4YF2M7Y7.mjs +0 -29
- package/dist/chunk-AQVUMZVL.mjs +0 -24
- package/dist/chunk-CABZT6BU.mjs +0 -30
- package/dist/chunk-HNVHV5GD.mjs +0 -41
- package/dist/chunk-JXZJCPX3.mjs +0 -28
- package/dist/chunk-NKU3JO55.mjs +0 -37
- package/dist/chunk-O4CHNDYY.mjs +0 -28
- package/dist/chunk-UTUZQQT6.mjs +0 -25
- package/dist/chunk-YT25LCGA.mjs +0 -48
|
@@ -309,34 +309,21 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
309
309
|
});
|
|
310
310
|
|
|
311
311
|
// src/fetch/campaignsId.ts
|
|
312
|
-
var buildCampaignsIdGetFetcher = (
|
|
313
|
-
var getCampaignsId = (path,
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
var
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
});
|
|
328
|
-
return buildCampaignsIdDeleteFetcher(requestInit)(requestInfo);
|
|
329
|
-
};
|
|
330
|
-
var buildCampaignsIdPatchFetcher = (customRequestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...customRequestInit });
|
|
331
|
-
var patchCampaignsId = (path, requestBody, customRequestInit) => {
|
|
332
|
-
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
333
|
-
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
334
|
-
...customRequestInit,
|
|
335
|
-
method: "PATCH",
|
|
336
|
-
body: requestBody
|
|
337
|
-
});
|
|
338
|
-
return buildCampaignsIdPatchFetcher(requestInit)(requestInfo);
|
|
339
|
-
};
|
|
312
|
+
var buildCampaignsIdGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
|
|
313
|
+
var getCampaignsId = (path, requestInit) => buildCampaignsIdGetFetcher()(
|
|
314
|
+
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path),
|
|
315
|
+
{ ...requestInit, method: "GET" }
|
|
316
|
+
);
|
|
317
|
+
var buildCampaignsIdDeleteFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
318
|
+
var deleteCampaignsId = (path, requestInit) => buildCampaignsIdDeleteFetcher()(
|
|
319
|
+
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path),
|
|
320
|
+
{ ...requestInit, method: "DELETE" }
|
|
321
|
+
);
|
|
322
|
+
var buildCampaignsIdPatchFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
|
|
323
|
+
var patchCampaignsId = (path, requestBody, requestInit) => buildCampaignsIdPatchFetcher()(
|
|
324
|
+
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path),
|
|
325
|
+
{ ...requestInit, method: "PATCH", body: requestBody }
|
|
326
|
+
);
|
|
340
327
|
// Annotate the CommonJS export names for ESM import in node:
|
|
341
328
|
0 && (module.exports = {
|
|
342
329
|
buildCampaignsIdDeleteFetcher,
|
|
@@ -2,18 +2,18 @@ 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: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
6
6
|
type CampaignsIdDeliveryJobPostPath = ForceDig<CampaignsIdDeliveryJobPostOperation, [
|
|
7
7
|
"parameters",
|
|
8
8
|
"path"
|
|
9
9
|
]>;
|
|
10
|
-
declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath,
|
|
10
|
+
declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath, requestInit?: RequestInit) => Promise<void>;
|
|
11
11
|
type CampaignsIdDeliveryJobDeleteOperation = paths["/api/campaigns/{id}/delivery_job"]["delete"];
|
|
12
|
-
declare const buildCampaignsIdDeliveryJobDeleteFetcher: (
|
|
12
|
+
declare const buildCampaignsIdDeliveryJobDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
13
13
|
type CampaignsIdDeliveryJobDeletePath = ForceDig<CampaignsIdDeliveryJobDeleteOperation, [
|
|
14
14
|
"parameters",
|
|
15
15
|
"path"
|
|
16
16
|
]>;
|
|
17
|
-
declare const deleteCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobDeletePath,
|
|
17
|
+
declare const deleteCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobDeletePath, requestInit?: RequestInit) => Promise<void>;
|
|
18
18
|
|
|
19
19
|
export { type CampaignsIdDeliveryJobDeletePath, type CampaignsIdDeliveryJobPostPath, buildCampaignsIdDeliveryJobDeleteFetcher, buildCampaignsIdDeliveryJobPostFetcher, deleteCampaignsIdDeliveryJob, postCampaignsIdDeliveryJob };
|
|
@@ -2,18 +2,18 @@ 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: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
6
6
|
type CampaignsIdDeliveryJobPostPath = ForceDig<CampaignsIdDeliveryJobPostOperation, [
|
|
7
7
|
"parameters",
|
|
8
8
|
"path"
|
|
9
9
|
]>;
|
|
10
|
-
declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath,
|
|
10
|
+
declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath, requestInit?: RequestInit) => Promise<void>;
|
|
11
11
|
type CampaignsIdDeliveryJobDeleteOperation = paths["/api/campaigns/{id}/delivery_job"]["delete"];
|
|
12
|
-
declare const buildCampaignsIdDeliveryJobDeleteFetcher: (
|
|
12
|
+
declare const buildCampaignsIdDeliveryJobDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
13
13
|
type CampaignsIdDeliveryJobDeletePath = ForceDig<CampaignsIdDeliveryJobDeleteOperation, [
|
|
14
14
|
"parameters",
|
|
15
15
|
"path"
|
|
16
16
|
]>;
|
|
17
|
-
declare const deleteCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobDeletePath,
|
|
17
|
+
declare const deleteCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobDeletePath, requestInit?: RequestInit) => Promise<void>;
|
|
18
18
|
|
|
19
19
|
export { type CampaignsIdDeliveryJobDeletePath, type CampaignsIdDeliveryJobPostPath, buildCampaignsIdDeliveryJobDeleteFetcher, buildCampaignsIdDeliveryJobPostFetcher, deleteCampaignsIdDeliveryJob, postCampaignsIdDeliveryJob };
|
|
@@ -27,30 +27,16 @@ __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 = (
|
|
31
|
-
var postCampaignsIdDeliveryJob = (path,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return buildCampaignsIdDeliveryJobPostFetcher(requestInit)(requestInfo);
|
|
41
|
-
};
|
|
42
|
-
var buildCampaignsIdDeliveryJobDeleteFetcher = (customRequestInit) => (0, import_api_client_base.createVoidFetcher)({ ...customRequestInit });
|
|
43
|
-
var deleteCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
44
|
-
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
45
|
-
"/api/campaigns/{id}/delivery_job",
|
|
46
|
-
path
|
|
47
|
-
);
|
|
48
|
-
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
49
|
-
...customRequestInit,
|
|
50
|
-
method: "DELETE"
|
|
51
|
-
});
|
|
52
|
-
return buildCampaignsIdDeliveryJobDeleteFetcher(requestInit)(requestInfo);
|
|
53
|
-
};
|
|
30
|
+
var buildCampaignsIdDeliveryJobPostFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
31
|
+
var postCampaignsIdDeliveryJob = (path, requestInit) => buildCampaignsIdDeliveryJobPostFetcher()(
|
|
32
|
+
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/delivery_job", path),
|
|
33
|
+
{ ...requestInit, method: "POST" }
|
|
34
|
+
);
|
|
35
|
+
var buildCampaignsIdDeliveryJobDeleteFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
36
|
+
var deleteCampaignsIdDeliveryJob = (path, requestInit) => buildCampaignsIdDeliveryJobDeleteFetcher()(
|
|
37
|
+
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/delivery_job", path),
|
|
38
|
+
{ ...requestInit, method: "DELETE" }
|
|
39
|
+
);
|
|
54
40
|
// Annotate the CommonJS export names for ESM import in node:
|
|
55
41
|
0 && (module.exports = {
|
|
56
42
|
buildCampaignsIdDeliveryJobDeleteFetcher,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
buildCampaignsIdDeliveryJobPostFetcher,
|
|
4
4
|
deleteCampaignsIdDeliveryJob,
|
|
5
5
|
postCampaignsIdDeliveryJob
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-YV4XRZY2.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: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
7
|
id: number;
|
|
8
8
|
key: string;
|
|
9
9
|
}>;
|
|
@@ -16,7 +16,7 @@ type CampaignsIdImagesPostRequestBody = ForceDig<CampaignsIdImagesPostOperation,
|
|
|
16
16
|
"content",
|
|
17
17
|
"multipart/form-data"
|
|
18
18
|
]>;
|
|
19
|
-
declare const postCampaignsIdImages: (path: CampaignsIdImagesPostPath, requestBody: FormData,
|
|
19
|
+
declare const postCampaignsIdImages: (path: CampaignsIdImagesPostPath, requestBody: FormData, requestInit?: RequestInit) => Promise<{
|
|
20
20
|
id: number;
|
|
21
21
|
key: string;
|
|
22
22
|
}>;
|
|
@@ -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: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
7
|
id: number;
|
|
8
8
|
key: string;
|
|
9
9
|
}>;
|
|
@@ -16,7 +16,7 @@ type CampaignsIdImagesPostRequestBody = ForceDig<CampaignsIdImagesPostOperation,
|
|
|
16
16
|
"content",
|
|
17
17
|
"multipart/form-data"
|
|
18
18
|
]>;
|
|
19
|
-
declare const postCampaignsIdImages: (path: CampaignsIdImagesPostPath, requestBody: FormData,
|
|
19
|
+
declare const postCampaignsIdImages: (path: CampaignsIdImagesPostPath, requestBody: FormData, requestInit?: RequestInit) => Promise<{
|
|
20
20
|
id: number;
|
|
21
21
|
key: string;
|
|
22
22
|
}>;
|
|
@@ -305,19 +305,11 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
305
305
|
});
|
|
306
306
|
|
|
307
307
|
// src/fetch/campaignsIdImages.ts
|
|
308
|
-
var buildCampaignsIdImagesPostFetcher = (
|
|
309
|
-
var postCampaignsIdImages = (path, requestBody,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
);
|
|
314
|
-
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
315
|
-
...customRequestInit,
|
|
316
|
-
method: "POST",
|
|
317
|
-
body: requestBody
|
|
318
|
-
});
|
|
319
|
-
return buildCampaignsIdImagesPostFetcher(requestInit)(requestInfo);
|
|
320
|
-
};
|
|
308
|
+
var buildCampaignsIdImagesPostFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(Image, { ...requestInit });
|
|
309
|
+
var postCampaignsIdImages = (path, requestBody, requestInit) => buildCampaignsIdImagesPostFetcher()(
|
|
310
|
+
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/images", path),
|
|
311
|
+
{ ...requestInit, method: "POST", body: requestBody }
|
|
312
|
+
);
|
|
321
313
|
// Annotate the CommonJS export names for ESM import in node:
|
|
322
314
|
0 && (module.exports = {
|
|
323
315
|
buildCampaignsIdImagesPostFetcher,
|
|
@@ -3,14 +3,14 @@ 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: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
7
|
content: string;
|
|
8
8
|
}>;
|
|
9
9
|
type CampaignsIdPreviewGetPath = ForceDig<CampaignsIdPreviewGetOperation, [
|
|
10
10
|
"parameters",
|
|
11
11
|
"path"
|
|
12
12
|
]>;
|
|
13
|
-
declare const getCampaignsIdPreview: (path: CampaignsIdPreviewGetPath,
|
|
13
|
+
declare const getCampaignsIdPreview: (path: CampaignsIdPreviewGetPath, requestInit?: RequestInit) => Promise<{
|
|
14
14
|
content: string;
|
|
15
15
|
}>;
|
|
16
16
|
|
|
@@ -3,14 +3,14 @@ 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: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
7
|
content: string;
|
|
8
8
|
}>;
|
|
9
9
|
type CampaignsIdPreviewGetPath = ForceDig<CampaignsIdPreviewGetOperation, [
|
|
10
10
|
"parameters",
|
|
11
11
|
"path"
|
|
12
12
|
]>;
|
|
13
|
-
declare const getCampaignsIdPreview: (path: CampaignsIdPreviewGetPath,
|
|
13
|
+
declare const getCampaignsIdPreview: (path: CampaignsIdPreviewGetPath, requestInit?: RequestInit) => Promise<{
|
|
14
14
|
content: string;
|
|
15
15
|
}>;
|
|
16
16
|
|
|
@@ -305,20 +305,11 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
305
305
|
});
|
|
306
306
|
|
|
307
307
|
// src/fetch/campaignsIdPreview.ts
|
|
308
|
-
var buildCampaignsIdPreviewGetFetcher = (
|
|
309
|
-
|
|
310
|
-
})
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
"/api/campaigns/{id}/preview",
|
|
314
|
-
path
|
|
315
|
-
);
|
|
316
|
-
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
317
|
-
...customRequestInit,
|
|
318
|
-
method: "GET"
|
|
319
|
-
});
|
|
320
|
-
return buildCampaignsIdPreviewGetFetcher(requestInit)(requestInfo);
|
|
321
|
-
};
|
|
308
|
+
var buildCampaignsIdPreviewGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsCampaignIdPreviewResponse, { ...requestInit });
|
|
309
|
+
var getCampaignsIdPreview = (path, requestInit) => buildCampaignsIdPreviewGetFetcher()(
|
|
310
|
+
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/preview", path),
|
|
311
|
+
{ ...requestInit, method: "GET" }
|
|
312
|
+
);
|
|
322
313
|
// Annotate the CommonJS export names for ESM import in node:
|
|
323
314
|
0 && (module.exports = {
|
|
324
315
|
buildCampaignsIdPreviewGetFetcher,
|
|
@@ -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: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
6
6
|
type CampaignsIdPreviewDeliveryEmailPostPath = ForceDig<CampaignsIdPreviewDeliveryEmailPostOperation, [
|
|
7
7
|
"parameters",
|
|
8
8
|
"path"
|
|
@@ -12,6 +12,6 @@ type CampaignsIdPreviewDeliveryEmailPostRequestBody = ForceDig<CampaignsIdPrevie
|
|
|
12
12
|
"content",
|
|
13
13
|
"application/json"
|
|
14
14
|
]>;
|
|
15
|
-
declare const postCampaignsIdPreviewDeliveryEmail: (path: CampaignsIdPreviewDeliveryEmailPostPath, requestBody: CampaignsIdPreviewDeliveryEmailPostRequestBody,
|
|
15
|
+
declare const postCampaignsIdPreviewDeliveryEmail: (path: CampaignsIdPreviewDeliveryEmailPostPath, requestBody: CampaignsIdPreviewDeliveryEmailPostRequestBody, requestInit?: RequestInit) => Promise<void>;
|
|
16
16
|
|
|
17
17
|
export { type CampaignsIdPreviewDeliveryEmailPostPath, type CampaignsIdPreviewDeliveryEmailPostRequestBody, buildCampaignsIdPreviewDeliveryEmailPostFetcher, postCampaignsIdPreviewDeliveryEmail };
|
|
@@ -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: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
6
6
|
type CampaignsIdPreviewDeliveryEmailPostPath = ForceDig<CampaignsIdPreviewDeliveryEmailPostOperation, [
|
|
7
7
|
"parameters",
|
|
8
8
|
"path"
|
|
@@ -12,6 +12,6 @@ type CampaignsIdPreviewDeliveryEmailPostRequestBody = ForceDig<CampaignsIdPrevie
|
|
|
12
12
|
"content",
|
|
13
13
|
"application/json"
|
|
14
14
|
]>;
|
|
15
|
-
declare const postCampaignsIdPreviewDeliveryEmail: (path: CampaignsIdPreviewDeliveryEmailPostPath, requestBody: CampaignsIdPreviewDeliveryEmailPostRequestBody,
|
|
15
|
+
declare const postCampaignsIdPreviewDeliveryEmail: (path: CampaignsIdPreviewDeliveryEmailPostPath, requestBody: CampaignsIdPreviewDeliveryEmailPostRequestBody, requestInit?: RequestInit) => Promise<void>;
|
|
16
16
|
|
|
17
17
|
export { type CampaignsIdPreviewDeliveryEmailPostPath, type CampaignsIdPreviewDeliveryEmailPostRequestBody, buildCampaignsIdPreviewDeliveryEmailPostFetcher, postCampaignsIdPreviewDeliveryEmail };
|
|
@@ -25,25 +25,16 @@ __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 = (
|
|
29
|
-
var postCampaignsIdPreviewDeliveryEmail = (path, requestBody,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
);
|
|
34
|
-
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
35
|
-
...customRequestInit,
|
|
28
|
+
var buildCampaignsIdPreviewDeliveryEmailPostFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
29
|
+
var postCampaignsIdPreviewDeliveryEmail = (path, requestBody, requestInit) => buildCampaignsIdPreviewDeliveryEmailPostFetcher()(
|
|
30
|
+
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/preview_delivery_email", path),
|
|
31
|
+
{
|
|
32
|
+
...requestInit,
|
|
36
33
|
method: "POST",
|
|
37
|
-
headers: {
|
|
38
|
-
...customRequestInit?.headers,
|
|
39
|
-
"Content-Type": "application/json"
|
|
40
|
-
},
|
|
34
|
+
headers: { ...requestInit?.headers, "Content-Type": "application/json" },
|
|
41
35
|
body: JSON.stringify(requestBody)
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
requestInfo
|
|
45
|
-
);
|
|
46
|
-
};
|
|
36
|
+
}
|
|
37
|
+
);
|
|
47
38
|
// Annotate the CommonJS export names for ESM import in node:
|
|
48
39
|
0 && (module.exports = {
|
|
49
40
|
buildCampaignsIdPreviewDeliveryEmailPostFetcher,
|
|
@@ -3,7 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
|
|
|
3
3
|
|
|
4
4
|
type ProjectsProjectIdOrKeywordGetOperation = paths["/api/projects/{project_id_or_keyword}"]["get"];
|
|
5
5
|
type ProjectsProjectIdOrKeywordGetResponse = ProjectsProjectIdOrKeywordGetOperation["responses"]["200"]["content"]["application/json"];
|
|
6
|
-
declare const buildProjectsProjectIdOrKeywordGetFetcher: (
|
|
6
|
+
declare const buildProjectsProjectIdOrKeywordGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
7
|
project: {
|
|
8
8
|
title: string;
|
|
9
9
|
projectId: number;
|
|
@@ -15,7 +15,7 @@ type ProjectsProjectIdOrKeywordGetPath = ForceDig<ProjectsProjectIdOrKeywordGetO
|
|
|
15
15
|
"parameters",
|
|
16
16
|
"path"
|
|
17
17
|
]>;
|
|
18
|
-
declare const getProjectsProjectIdOrKeyword: (path: ProjectsProjectIdOrKeywordGetPath,
|
|
18
|
+
declare const getProjectsProjectIdOrKeyword: (path: ProjectsProjectIdOrKeywordGetPath, requestInit?: RequestInit) => Promise<{
|
|
19
19
|
project: {
|
|
20
20
|
title: string;
|
|
21
21
|
projectId: number;
|
|
@@ -3,7 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
|
|
|
3
3
|
|
|
4
4
|
type ProjectsProjectIdOrKeywordGetOperation = paths["/api/projects/{project_id_or_keyword}"]["get"];
|
|
5
5
|
type ProjectsProjectIdOrKeywordGetResponse = ProjectsProjectIdOrKeywordGetOperation["responses"]["200"]["content"]["application/json"];
|
|
6
|
-
declare const buildProjectsProjectIdOrKeywordGetFetcher: (
|
|
6
|
+
declare const buildProjectsProjectIdOrKeywordGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
7
7
|
project: {
|
|
8
8
|
title: string;
|
|
9
9
|
projectId: number;
|
|
@@ -15,7 +15,7 @@ type ProjectsProjectIdOrKeywordGetPath = ForceDig<ProjectsProjectIdOrKeywordGetO
|
|
|
15
15
|
"parameters",
|
|
16
16
|
"path"
|
|
17
17
|
]>;
|
|
18
|
-
declare const getProjectsProjectIdOrKeyword: (path: ProjectsProjectIdOrKeywordGetPath,
|
|
18
|
+
declare const getProjectsProjectIdOrKeyword: (path: ProjectsProjectIdOrKeywordGetPath, requestInit?: RequestInit) => Promise<{
|
|
19
19
|
project: {
|
|
20
20
|
title: string;
|
|
21
21
|
projectId: number;
|
|
@@ -305,20 +305,11 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
305
305
|
});
|
|
306
306
|
|
|
307
307
|
// src/fetch/projectsProjectIdOrKeyword.ts
|
|
308
|
-
var buildProjectsProjectIdOrKeywordGetFetcher = (
|
|
309
|
-
|
|
310
|
-
})
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
"/api/projects/{project_id_or_keyword}",
|
|
314
|
-
path
|
|
315
|
-
);
|
|
316
|
-
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
317
|
-
...customRequestInit,
|
|
318
|
-
method: "GET"
|
|
319
|
-
});
|
|
320
|
-
return buildProjectsProjectIdOrKeywordGetFetcher(requestInit)(requestInfo);
|
|
321
|
-
};
|
|
308
|
+
var buildProjectsProjectIdOrKeywordGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetProjectsProjectIdOrKeywordResponse, { ...requestInit });
|
|
309
|
+
var getProjectsProjectIdOrKeyword = (path, requestInit) => buildProjectsProjectIdOrKeywordGetFetcher()(
|
|
310
|
+
(0, import_api_client_base.__internal__requestUrl)("/api/projects/{project_id_or_keyword}", path),
|
|
311
|
+
{ ...requestInit, method: "GET" }
|
|
312
|
+
);
|
|
322
313
|
// Annotate the CommonJS export names for ESM import in node:
|
|
323
314
|
0 && (module.exports = {
|
|
324
315
|
buildProjectsProjectIdOrKeywordGetFetcher,
|
|
@@ -2,7 +2,7 @@ import { paths } from '../schemaType.mjs';
|
|
|
2
2
|
|
|
3
3
|
type SegmentsBehaviorSegmentsGetOperation = paths["/api/segments/behavior_segments"]["get"];
|
|
4
4
|
type SegmentsBehaviorSegmentsGetResponse = SegmentsBehaviorSegmentsGetOperation["responses"]["200"]["content"]["application/json"];
|
|
5
|
-
declare const buildSegmentsBehaviorSegmentsGetFetcher: (
|
|
5
|
+
declare const buildSegmentsBehaviorSegmentsGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
6
6
|
behaviorSegments: {
|
|
7
7
|
code: string;
|
|
8
8
|
description: string | null;
|
|
@@ -11,7 +11,7 @@ declare const buildSegmentsBehaviorSegmentsGetFetcher: (customRequestInit?: Requ
|
|
|
11
11
|
displayOrder: number | null;
|
|
12
12
|
}[];
|
|
13
13
|
}>;
|
|
14
|
-
declare const getSegmentsBehaviorSegments: (
|
|
14
|
+
declare const getSegmentsBehaviorSegments: (requestInit?: RequestInit) => Promise<{
|
|
15
15
|
behaviorSegments: {
|
|
16
16
|
code: string;
|
|
17
17
|
description: string | null;
|
|
@@ -2,7 +2,7 @@ import { paths } from '../schemaType.js';
|
|
|
2
2
|
|
|
3
3
|
type SegmentsBehaviorSegmentsGetOperation = paths["/api/segments/behavior_segments"]["get"];
|
|
4
4
|
type SegmentsBehaviorSegmentsGetResponse = SegmentsBehaviorSegmentsGetOperation["responses"]["200"]["content"]["application/json"];
|
|
5
|
-
declare const buildSegmentsBehaviorSegmentsGetFetcher: (
|
|
5
|
+
declare const buildSegmentsBehaviorSegmentsGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
6
6
|
behaviorSegments: {
|
|
7
7
|
code: string;
|
|
8
8
|
description: string | null;
|
|
@@ -11,7 +11,7 @@ declare const buildSegmentsBehaviorSegmentsGetFetcher: (customRequestInit?: Requ
|
|
|
11
11
|
displayOrder: number | null;
|
|
12
12
|
}[];
|
|
13
13
|
}>;
|
|
14
|
-
declare const getSegmentsBehaviorSegments: (
|
|
14
|
+
declare const getSegmentsBehaviorSegments: (requestInit?: RequestInit) => Promise<{
|
|
15
15
|
behaviorSegments: {
|
|
16
16
|
code: string;
|
|
17
17
|
description: string | null;
|
|
@@ -305,15 +305,11 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
305
305
|
});
|
|
306
306
|
|
|
307
307
|
// src/fetch/segmentsBehaviorSegments.ts
|
|
308
|
-
var buildSegmentsBehaviorSegmentsGetFetcher = (
|
|
309
|
-
var getSegmentsBehaviorSegments = (
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
method: "GET"
|
|
314
|
-
});
|
|
315
|
-
return buildSegmentsBehaviorSegmentsGetFetcher(requestInit)(requestInfo);
|
|
316
|
-
};
|
|
308
|
+
var buildSegmentsBehaviorSegmentsGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetBehaviorSegmentsResponse, { ...requestInit });
|
|
309
|
+
var getSegmentsBehaviorSegments = (requestInit) => buildSegmentsBehaviorSegmentsGetFetcher()(
|
|
310
|
+
(0, import_api_client_base.__internal__requestUrl)("/api/segments/behavior_segments"),
|
|
311
|
+
{ ...requestInit, method: "GET" }
|
|
312
|
+
);
|
|
317
313
|
// Annotate the CommonJS export names for ESM import in node:
|
|
318
314
|
0 && (module.exports = {
|
|
319
315
|
buildSegmentsBehaviorSegmentsGetFetcher,
|
|
@@ -2,7 +2,7 @@ import { paths } from '../schemaType.mjs';
|
|
|
2
2
|
|
|
3
3
|
type SegmentsProfileSegmentsGetOperation = paths["/api/segments/profile_segments"]["get"];
|
|
4
4
|
type SegmentsProfileSegmentsGetResponse = SegmentsProfileSegmentsGetOperation["responses"]["200"]["content"]["application/json"];
|
|
5
|
-
declare const buildSegmentsProfileSegmentsGetFetcher: (
|
|
5
|
+
declare const buildSegmentsProfileSegmentsGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
6
6
|
profileSegments: {
|
|
7
7
|
code: string;
|
|
8
8
|
description: string | null;
|
|
@@ -11,7 +11,7 @@ declare const buildSegmentsProfileSegmentsGetFetcher: (customRequestInit?: Reque
|
|
|
11
11
|
displayOrder: number | null;
|
|
12
12
|
}[];
|
|
13
13
|
}>;
|
|
14
|
-
declare const getSegmentsProfileSegments: (
|
|
14
|
+
declare const getSegmentsProfileSegments: (requestInit?: RequestInit) => Promise<{
|
|
15
15
|
profileSegments: {
|
|
16
16
|
code: string;
|
|
17
17
|
description: string | null;
|
|
@@ -2,7 +2,7 @@ import { paths } from '../schemaType.js';
|
|
|
2
2
|
|
|
3
3
|
type SegmentsProfileSegmentsGetOperation = paths["/api/segments/profile_segments"]["get"];
|
|
4
4
|
type SegmentsProfileSegmentsGetResponse = SegmentsProfileSegmentsGetOperation["responses"]["200"]["content"]["application/json"];
|
|
5
|
-
declare const buildSegmentsProfileSegmentsGetFetcher: (
|
|
5
|
+
declare const buildSegmentsProfileSegmentsGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
6
6
|
profileSegments: {
|
|
7
7
|
code: string;
|
|
8
8
|
description: string | null;
|
|
@@ -11,7 +11,7 @@ declare const buildSegmentsProfileSegmentsGetFetcher: (customRequestInit?: Reque
|
|
|
11
11
|
displayOrder: number | null;
|
|
12
12
|
}[];
|
|
13
13
|
}>;
|
|
14
|
-
declare const getSegmentsProfileSegments: (
|
|
14
|
+
declare const getSegmentsProfileSegments: (requestInit?: RequestInit) => Promise<{
|
|
15
15
|
profileSegments: {
|
|
16
16
|
code: string;
|
|
17
17
|
description: string | null;
|
|
@@ -305,15 +305,11 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
305
305
|
});
|
|
306
306
|
|
|
307
307
|
// src/fetch/segmentsProfileSegments.ts
|
|
308
|
-
var buildSegmentsProfileSegmentsGetFetcher = (
|
|
309
|
-
var getSegmentsProfileSegments = (
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
method: "GET"
|
|
314
|
-
});
|
|
315
|
-
return buildSegmentsProfileSegmentsGetFetcher(requestInit)(requestInfo);
|
|
316
|
-
};
|
|
308
|
+
var buildSegmentsProfileSegmentsGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetProfileSegmentsResponse, { ...requestInit });
|
|
309
|
+
var getSegmentsProfileSegments = (requestInit) => buildSegmentsProfileSegmentsGetFetcher()(
|
|
310
|
+
(0, import_api_client_base.__internal__requestUrl)("/api/segments/profile_segments"),
|
|
311
|
+
{ ...requestInit, method: "GET" }
|
|
312
|
+
);
|
|
317
313
|
// Annotate the CommonJS export names for ESM import in node:
|
|
318
314
|
0 && (module.exports = {
|
|
319
315
|
buildSegmentsProfileSegmentsGetFetcher,
|