@readyfor/api-client-pigeon 0.240.0 → 0.242.0-pr981.0796eec
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-VJU27CZQ.mjs → chunk-2UJ4AWWH.mjs} +13 -5
- package/dist/{chunk-S2M3EJKW.mjs → chunk-3UBBT7E5.mjs} +1 -1
- package/dist/chunk-4INIKTKJ.mjs +41 -0
- package/dist/{chunk-D455PCO3.mjs → chunk-4NGGO3G6.mjs} +10 -5
- package/dist/{chunk-ZDQDW24D.mjs → chunk-4RIZKNMD.mjs} +1 -1
- package/dist/{chunk-DQW3ZEJN.mjs → chunk-5ULJLAC6.mjs} +1 -1
- package/dist/chunk-AGTNHB2D.mjs +48 -0
- package/dist/{chunk-VUY6GQWT.mjs → chunk-JUEVPCCG.mjs} +1 -1
- package/dist/chunk-KL2DA5QY.mjs +27 -0
- package/dist/chunk-MB4UQS7V.mjs +30 -0
- package/dist/{chunk-3BSY3CC4.mjs → chunk-NXETGJTF.mjs} +1 -1
- package/dist/{chunk-LUUW3QOB.mjs → chunk-OWGV4AJG.mjs} +1 -1
- package/dist/chunk-RC6SX75E.mjs +28 -0
- package/dist/{chunk-NKNUFH54.mjs → chunk-U7AEZYNN.mjs} +10 -5
- package/dist/chunk-UENEH462.mjs +37 -0
- package/dist/{chunk-KL2BCQLU.mjs → chunk-URYB6NOK.mjs} +1 -1
- package/dist/chunk-VGMORDQ4.mjs +28 -0
- package/dist/chunk-WISELSRL.mjs +25 -0
- package/dist/fetch/campaigns.d.mts +2 -2
- package/dist/fetch/campaigns.d.ts +2 -2
- package/dist/fetch/campaigns.js +21 -10
- package/dist/fetch/campaigns.mjs +1 -1
- package/dist/fetch/campaignsCampaignIdImagesId.d.mts +1 -1
- package/dist/fetch/campaignsCampaignIdImagesId.d.ts +1 -1
- package/dist/fetch/campaignsCampaignIdImagesId.js +13 -4
- package/dist/fetch/campaignsCampaignIdImagesId.mjs +1 -1
- package/dist/fetch/campaignsId.d.mts +3 -3
- package/dist/fetch/campaignsId.d.ts +3 -3
- package/dist/fetch/campaignsId.js +25 -12
- package/dist/fetch/campaignsId.mjs +1 -1
- package/dist/fetch/campaignsIdDeliveryJob.d.mts +2 -2
- package/dist/fetch/campaignsIdDeliveryJob.d.ts +2 -2
- package/dist/fetch/campaignsIdDeliveryJob.js +22 -8
- package/dist/fetch/campaignsIdDeliveryJob.mjs +1 -1
- package/dist/fetch/campaignsIdImages.d.mts +1 -1
- package/dist/fetch/campaignsIdImages.d.ts +1 -1
- package/dist/fetch/campaignsIdImages.js +12 -4
- package/dist/fetch/campaignsIdImages.mjs +1 -1
- package/dist/fetch/campaignsIdPreview.d.mts +1 -1
- package/dist/fetch/campaignsIdPreview.d.ts +1 -1
- package/dist/fetch/campaignsIdPreview.js +11 -4
- package/dist/fetch/campaignsIdPreview.mjs +1 -1
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.mts +1 -1
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.ts +1 -1
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.js +16 -7
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.mjs +1 -1
- package/dist/fetch/projectsProjectIdOrKeyword.d.mts +1 -1
- package/dist/fetch/projectsProjectIdOrKeyword.d.ts +1 -1
- package/dist/fetch/projectsProjectIdOrKeyword.js +11 -4
- package/dist/fetch/projectsProjectIdOrKeyword.mjs +1 -1
- package/dist/fetch/segmentsBehaviorSegments.d.mts +1 -1
- package/dist/fetch/segmentsBehaviorSegments.d.ts +1 -1
- package/dist/fetch/segmentsBehaviorSegments.js +8 -4
- package/dist/fetch/segmentsBehaviorSegments.mjs +1 -1
- package/dist/fetch/segmentsProfileSegments.d.mts +1 -1
- package/dist/fetch/segmentsProfileSegments.d.ts +1 -1
- package/dist/fetch/segmentsProfileSegments.js +8 -4
- package/dist/fetch/segmentsProfileSegments.mjs +1 -1
- package/dist/fetch/segmentsTargetUsersCount.d.mts +1 -1
- package/dist/fetch/segmentsTargetUsersCount.d.ts +1 -1
- package/dist/fetch/segmentsTargetUsersCount.js +12 -4
- package/dist/fetch/segmentsTargetUsersCount.mjs +1 -1
- package/dist/hooks/index.mjs +18 -18
- package/dist/hooks/useCampaigns.mjs +12 -12
- package/dist/hooks/useCampaignsId.mjs +12 -12
- package/dist/hooks/useCampaignsIdPreview.mjs +12 -12
- package/dist/hooks/useProjectsProjectIdOrKeyword.mjs +12 -12
- package/dist/hooks/useSegmentsBehaviorSegments.mjs +12 -12
- package/dist/hooks/useSegmentsProfileSegments.mjs +12 -12
- package/dist/hooks/useSegmentsTargetUsersCount.mjs +12 -12
- package/dist/index.js +159 -65
- package/dist/index.mjs +11 -11
- package/package.json +12 -13
- package/dist/chunk-6DE2SHQZ.mjs +0 -19
- package/dist/chunk-BGIB7JQD.mjs +0 -19
- package/dist/chunk-DH3UXOBA.mjs +0 -19
- package/dist/chunk-EYJTETGN.mjs +0 -34
- package/dist/chunk-KBTZNIQJ.mjs +0 -20
- package/dist/chunk-MFCSQX6F.mjs +0 -29
- package/dist/chunk-NIBXTDD3.mjs +0 -15
- package/dist/chunk-YV4XRZY2.mjs +0 -22
|
@@ -310,20 +310,33 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
310
310
|
|
|
311
311
|
// src/fetch/campaignsId.ts
|
|
312
312
|
var buildCampaignsIdGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
|
|
313
|
-
var getCampaignsId = (path,
|
|
314
|
-
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path)
|
|
315
|
-
|
|
316
|
-
|
|
313
|
+
var getCampaignsId = (path, customRequestInit) => {
|
|
314
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
315
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
316
|
+
...customRequestInit,
|
|
317
|
+
method: "GET"
|
|
318
|
+
});
|
|
319
|
+
return buildCampaignsIdGetFetcher(requestInit)(requestInfo);
|
|
320
|
+
};
|
|
317
321
|
var buildCampaignsIdDeleteFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
318
|
-
var deleteCampaignsId = (path,
|
|
319
|
-
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path)
|
|
320
|
-
|
|
321
|
-
|
|
322
|
+
var deleteCampaignsId = (path, customRequestInit) => {
|
|
323
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
324
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
325
|
+
...customRequestInit,
|
|
326
|
+
method: "DELETE"
|
|
327
|
+
});
|
|
328
|
+
return buildCampaignsIdDeleteFetcher(requestInit)(requestInfo);
|
|
329
|
+
};
|
|
322
330
|
var buildCampaignsIdPatchFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
|
|
323
|
-
var patchCampaignsId = (path, requestBody,
|
|
324
|
-
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path)
|
|
325
|
-
|
|
326
|
-
|
|
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
|
+
};
|
|
327
340
|
// Annotate the CommonJS export names for ESM import in node:
|
|
328
341
|
0 && (module.exports = {
|
|
329
342
|
buildCampaignsIdDeleteFetcher,
|
|
@@ -7,13 +7,13 @@ type CampaignsIdDeliveryJobPostPath = ForceDig<CampaignsIdDeliveryJobPostOperati
|
|
|
7
7
|
"parameters",
|
|
8
8
|
"path"
|
|
9
9
|
]>;
|
|
10
|
-
declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath,
|
|
10
|
+
declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath, customRequestInit?: RequestInit) => Promise<void>;
|
|
11
11
|
type CampaignsIdDeliveryJobDeleteOperation = paths["/api/campaigns/{id}/delivery_job"]["delete"];
|
|
12
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, customRequestInit?: RequestInit) => Promise<void>;
|
|
18
18
|
|
|
19
19
|
export { type CampaignsIdDeliveryJobDeletePath, type CampaignsIdDeliveryJobPostPath, buildCampaignsIdDeliveryJobDeleteFetcher, buildCampaignsIdDeliveryJobPostFetcher, deleteCampaignsIdDeliveryJob, postCampaignsIdDeliveryJob };
|
|
@@ -7,13 +7,13 @@ type CampaignsIdDeliveryJobPostPath = ForceDig<CampaignsIdDeliveryJobPostOperati
|
|
|
7
7
|
"parameters",
|
|
8
8
|
"path"
|
|
9
9
|
]>;
|
|
10
|
-
declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath,
|
|
10
|
+
declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath, customRequestInit?: RequestInit) => Promise<void>;
|
|
11
11
|
type CampaignsIdDeliveryJobDeleteOperation = paths["/api/campaigns/{id}/delivery_job"]["delete"];
|
|
12
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, customRequestInit?: RequestInit) => Promise<void>;
|
|
18
18
|
|
|
19
19
|
export { type CampaignsIdDeliveryJobDeletePath, type CampaignsIdDeliveryJobPostPath, buildCampaignsIdDeliveryJobDeleteFetcher, buildCampaignsIdDeliveryJobPostFetcher, deleteCampaignsIdDeliveryJob, postCampaignsIdDeliveryJob };
|
|
@@ -28,15 +28,29 @@ __export(campaignsIdDeliveryJob_exports, {
|
|
|
28
28
|
module.exports = __toCommonJS(campaignsIdDeliveryJob_exports);
|
|
29
29
|
var import_api_client_base = require("@readyfor/api-client-base");
|
|
30
30
|
var buildCampaignsIdDeliveryJobPostFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
31
|
-
var postCampaignsIdDeliveryJob = (path,
|
|
32
|
-
(0, import_api_client_base.__internal__requestUrl)(
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
var postCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
32
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
33
|
+
"/api/campaigns/{id}/delivery_job",
|
|
34
|
+
path
|
|
35
|
+
);
|
|
36
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
37
|
+
...customRequestInit,
|
|
38
|
+
method: "POST"
|
|
39
|
+
});
|
|
40
|
+
return buildCampaignsIdDeliveryJobPostFetcher(requestInit)(requestInfo);
|
|
41
|
+
};
|
|
35
42
|
var buildCampaignsIdDeliveryJobDeleteFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
36
|
-
var deleteCampaignsIdDeliveryJob = (path,
|
|
37
|
-
(0, import_api_client_base.__internal__requestUrl)(
|
|
38
|
-
|
|
39
|
-
|
|
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
|
+
};
|
|
40
54
|
// Annotate the CommonJS export names for ESM import in node:
|
|
41
55
|
0 && (module.exports = {
|
|
42
56
|
buildCampaignsIdDeliveryJobDeleteFetcher,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
buildCampaignsIdDeliveryJobPostFetcher,
|
|
4
4
|
deleteCampaignsIdDeliveryJob,
|
|
5
5
|
postCampaignsIdDeliveryJob
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-UENEH462.mjs";
|
|
7
7
|
export {
|
|
8
8
|
buildCampaignsIdDeliveryJobDeleteFetcher,
|
|
9
9
|
buildCampaignsIdDeliveryJobPostFetcher,
|
|
@@ -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, customRequestInit?: RequestInit) => Promise<{
|
|
20
20
|
id: number;
|
|
21
21
|
key: string;
|
|
22
22
|
}>;
|
|
@@ -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, customRequestInit?: RequestInit) => Promise<{
|
|
20
20
|
id: number;
|
|
21
21
|
key: string;
|
|
22
22
|
}>;
|
|
@@ -306,10 +306,18 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
306
306
|
|
|
307
307
|
// src/fetch/campaignsIdImages.ts
|
|
308
308
|
var buildCampaignsIdImagesPostFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(Image, { ...requestInit });
|
|
309
|
-
var postCampaignsIdImages = (path, requestBody,
|
|
310
|
-
(0, import_api_client_base.__internal__requestUrl)(
|
|
311
|
-
|
|
312
|
-
|
|
309
|
+
var postCampaignsIdImages = (path, requestBody, customRequestInit) => {
|
|
310
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
311
|
+
"/api/campaigns/{id}/images",
|
|
312
|
+
path
|
|
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
|
+
};
|
|
313
321
|
// Annotate the CommonJS export names for ESM import in node:
|
|
314
322
|
0 && (module.exports = {
|
|
315
323
|
buildCampaignsIdImagesPostFetcher,
|
|
@@ -10,7 +10,7 @@ type CampaignsIdPreviewGetPath = ForceDig<CampaignsIdPreviewGetOperation, [
|
|
|
10
10
|
"parameters",
|
|
11
11
|
"path"
|
|
12
12
|
]>;
|
|
13
|
-
declare const getCampaignsIdPreview: (path: CampaignsIdPreviewGetPath,
|
|
13
|
+
declare const getCampaignsIdPreview: (path: CampaignsIdPreviewGetPath, customRequestInit?: RequestInit) => Promise<{
|
|
14
14
|
content: string;
|
|
15
15
|
}>;
|
|
16
16
|
|
|
@@ -10,7 +10,7 @@ type CampaignsIdPreviewGetPath = ForceDig<CampaignsIdPreviewGetOperation, [
|
|
|
10
10
|
"parameters",
|
|
11
11
|
"path"
|
|
12
12
|
]>;
|
|
13
|
-
declare const getCampaignsIdPreview: (path: CampaignsIdPreviewGetPath,
|
|
13
|
+
declare const getCampaignsIdPreview: (path: CampaignsIdPreviewGetPath, customRequestInit?: RequestInit) => Promise<{
|
|
14
14
|
content: string;
|
|
15
15
|
}>;
|
|
16
16
|
|
|
@@ -306,10 +306,17 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
306
306
|
|
|
307
307
|
// src/fetch/campaignsIdPreview.ts
|
|
308
308
|
var buildCampaignsIdPreviewGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsCampaignIdPreviewResponse, { ...requestInit });
|
|
309
|
-
var getCampaignsIdPreview = (path,
|
|
310
|
-
(0, import_api_client_base.__internal__requestUrl)(
|
|
311
|
-
|
|
312
|
-
|
|
309
|
+
var getCampaignsIdPreview = (path, customRequestInit) => {
|
|
310
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
311
|
+
"/api/campaigns/{id}/preview",
|
|
312
|
+
path
|
|
313
|
+
);
|
|
314
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
315
|
+
...customRequestInit,
|
|
316
|
+
method: "GET"
|
|
317
|
+
});
|
|
318
|
+
return buildCampaignsIdPreviewGetFetcher(requestInit)(requestInfo);
|
|
319
|
+
};
|
|
313
320
|
// Annotate the CommonJS export names for ESM import in node:
|
|
314
321
|
0 && (module.exports = {
|
|
315
322
|
buildCampaignsIdPreviewGetFetcher,
|
|
@@ -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, customRequestInit?: RequestInit) => Promise<void>;
|
|
16
16
|
|
|
17
17
|
export { type CampaignsIdPreviewDeliveryEmailPostPath, type CampaignsIdPreviewDeliveryEmailPostRequestBody, buildCampaignsIdPreviewDeliveryEmailPostFetcher, postCampaignsIdPreviewDeliveryEmail };
|
|
@@ -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, customRequestInit?: RequestInit) => Promise<void>;
|
|
16
16
|
|
|
17
17
|
export { type CampaignsIdPreviewDeliveryEmailPostPath, type CampaignsIdPreviewDeliveryEmailPostRequestBody, buildCampaignsIdPreviewDeliveryEmailPostFetcher, postCampaignsIdPreviewDeliveryEmail };
|
|
@@ -26,15 +26,24 @@ __export(campaignsIdPreviewDeliveryEmail_exports, {
|
|
|
26
26
|
module.exports = __toCommonJS(campaignsIdPreviewDeliveryEmail_exports);
|
|
27
27
|
var import_api_client_base = require("@readyfor/api-client-base");
|
|
28
28
|
var buildCampaignsIdPreviewDeliveryEmailPostFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
29
|
-
var postCampaignsIdPreviewDeliveryEmail = (path, requestBody,
|
|
30
|
-
(0, import_api_client_base.__internal__requestUrl)(
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
var postCampaignsIdPreviewDeliveryEmail = (path, requestBody, customRequestInit) => {
|
|
30
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
31
|
+
"/api/campaigns/{id}/preview_delivery_email",
|
|
32
|
+
path
|
|
33
|
+
);
|
|
34
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
35
|
+
...customRequestInit,
|
|
33
36
|
method: "POST",
|
|
34
|
-
headers: {
|
|
37
|
+
headers: {
|
|
38
|
+
...customRequestInit?.headers,
|
|
39
|
+
"Content-Type": "application/json"
|
|
40
|
+
},
|
|
35
41
|
body: JSON.stringify(requestBody)
|
|
36
|
-
}
|
|
37
|
-
)
|
|
42
|
+
});
|
|
43
|
+
return buildCampaignsIdPreviewDeliveryEmailPostFetcher(requestInit)(
|
|
44
|
+
requestInfo
|
|
45
|
+
);
|
|
46
|
+
};
|
|
38
47
|
// Annotate the CommonJS export names for ESM import in node:
|
|
39
48
|
0 && (module.exports = {
|
|
40
49
|
buildCampaignsIdPreviewDeliveryEmailPostFetcher,
|
|
@@ -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, customRequestInit?: RequestInit) => Promise<{
|
|
19
19
|
project: {
|
|
20
20
|
title: string;
|
|
21
21
|
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, customRequestInit?: RequestInit) => Promise<{
|
|
19
19
|
project: {
|
|
20
20
|
title: string;
|
|
21
21
|
projectId: number;
|
|
@@ -306,10 +306,17 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
306
306
|
|
|
307
307
|
// src/fetch/projectsProjectIdOrKeyword.ts
|
|
308
308
|
var buildProjectsProjectIdOrKeywordGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetProjectsProjectIdOrKeywordResponse, { ...requestInit });
|
|
309
|
-
var getProjectsProjectIdOrKeyword = (path,
|
|
310
|
-
(0, import_api_client_base.__internal__requestUrl)(
|
|
311
|
-
|
|
312
|
-
|
|
309
|
+
var getProjectsProjectIdOrKeyword = (path, customRequestInit) => {
|
|
310
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
311
|
+
"/api/projects/{project_id_or_keyword}",
|
|
312
|
+
path
|
|
313
|
+
);
|
|
314
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
315
|
+
...customRequestInit,
|
|
316
|
+
method: "GET"
|
|
317
|
+
});
|
|
318
|
+
return buildProjectsProjectIdOrKeywordGetFetcher(requestInit)(requestInfo);
|
|
319
|
+
};
|
|
313
320
|
// Annotate the CommonJS export names for ESM import in node:
|
|
314
321
|
0 && (module.exports = {
|
|
315
322
|
buildProjectsProjectIdOrKeywordGetFetcher,
|
|
@@ -11,7 +11,7 @@ declare const buildSegmentsBehaviorSegmentsGetFetcher: (requestInit?: RequestIni
|
|
|
11
11
|
displayOrder: number | null;
|
|
12
12
|
}[];
|
|
13
13
|
}>;
|
|
14
|
-
declare const getSegmentsBehaviorSegments: (
|
|
14
|
+
declare const getSegmentsBehaviorSegments: (customRequestInit?: RequestInit) => Promise<{
|
|
15
15
|
behaviorSegments: {
|
|
16
16
|
code: string;
|
|
17
17
|
description: string | null;
|
|
@@ -11,7 +11,7 @@ declare const buildSegmentsBehaviorSegmentsGetFetcher: (requestInit?: RequestIni
|
|
|
11
11
|
displayOrder: number | null;
|
|
12
12
|
}[];
|
|
13
13
|
}>;
|
|
14
|
-
declare const getSegmentsBehaviorSegments: (
|
|
14
|
+
declare const getSegmentsBehaviorSegments: (customRequestInit?: RequestInit) => Promise<{
|
|
15
15
|
behaviorSegments: {
|
|
16
16
|
code: string;
|
|
17
17
|
description: string | null;
|
|
@@ -306,10 +306,14 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
306
306
|
|
|
307
307
|
// src/fetch/segmentsBehaviorSegments.ts
|
|
308
308
|
var buildSegmentsBehaviorSegmentsGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetBehaviorSegmentsResponse, { ...requestInit });
|
|
309
|
-
var getSegmentsBehaviorSegments = (
|
|
310
|
-
(0, import_api_client_base.__internal__requestUrl)("/api/segments/behavior_segments")
|
|
311
|
-
|
|
312
|
-
|
|
309
|
+
var getSegmentsBehaviorSegments = (customRequestInit) => {
|
|
310
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/segments/behavior_segments");
|
|
311
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
312
|
+
...customRequestInit,
|
|
313
|
+
method: "GET"
|
|
314
|
+
});
|
|
315
|
+
return buildSegmentsBehaviorSegmentsGetFetcher(requestInit)(requestInfo);
|
|
316
|
+
};
|
|
313
317
|
// Annotate the CommonJS export names for ESM import in node:
|
|
314
318
|
0 && (module.exports = {
|
|
315
319
|
buildSegmentsBehaviorSegmentsGetFetcher,
|
|
@@ -11,7 +11,7 @@ declare const buildSegmentsProfileSegmentsGetFetcher: (requestInit?: RequestInit
|
|
|
11
11
|
displayOrder: number | null;
|
|
12
12
|
}[];
|
|
13
13
|
}>;
|
|
14
|
-
declare const getSegmentsProfileSegments: (
|
|
14
|
+
declare const getSegmentsProfileSegments: (customRequestInit?: RequestInit) => Promise<{
|
|
15
15
|
profileSegments: {
|
|
16
16
|
code: string;
|
|
17
17
|
description: string | null;
|
|
@@ -11,7 +11,7 @@ declare const buildSegmentsProfileSegmentsGetFetcher: (requestInit?: RequestInit
|
|
|
11
11
|
displayOrder: number | null;
|
|
12
12
|
}[];
|
|
13
13
|
}>;
|
|
14
|
-
declare const getSegmentsProfileSegments: (
|
|
14
|
+
declare const getSegmentsProfileSegments: (customRequestInit?: RequestInit) => Promise<{
|
|
15
15
|
profileSegments: {
|
|
16
16
|
code: string;
|
|
17
17
|
description: string | null;
|
|
@@ -306,10 +306,14 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
306
306
|
|
|
307
307
|
// src/fetch/segmentsProfileSegments.ts
|
|
308
308
|
var buildSegmentsProfileSegmentsGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetProfileSegmentsResponse, { ...requestInit });
|
|
309
|
-
var getSegmentsProfileSegments = (
|
|
310
|
-
(0, import_api_client_base.__internal__requestUrl)("/api/segments/profile_segments")
|
|
311
|
-
|
|
312
|
-
|
|
309
|
+
var getSegmentsProfileSegments = (customRequestInit) => {
|
|
310
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/segments/profile_segments");
|
|
311
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
312
|
+
...customRequestInit,
|
|
313
|
+
method: "GET"
|
|
314
|
+
});
|
|
315
|
+
return buildSegmentsProfileSegmentsGetFetcher(requestInit)(requestInfo);
|
|
316
|
+
};
|
|
313
317
|
// Annotate the CommonJS export names for ESM import in node:
|
|
314
318
|
0 && (module.exports = {
|
|
315
319
|
buildSegmentsProfileSegmentsGetFetcher,
|
|
@@ -10,7 +10,7 @@ type SegmentsTargetUsersCountGetQuery = ForceDig<SegmentsTargetUsersCountGetOper
|
|
|
10
10
|
"parameters",
|
|
11
11
|
"query"
|
|
12
12
|
]>;
|
|
13
|
-
declare const getSegmentsTargetUsersCount: (query: SegmentsTargetUsersCountGetQuery,
|
|
13
|
+
declare const getSegmentsTargetUsersCount: (query: SegmentsTargetUsersCountGetQuery, customRequestInit?: RequestInit) => Promise<{
|
|
14
14
|
count: number;
|
|
15
15
|
}>;
|
|
16
16
|
|
|
@@ -10,7 +10,7 @@ type SegmentsTargetUsersCountGetQuery = ForceDig<SegmentsTargetUsersCountGetOper
|
|
|
10
10
|
"parameters",
|
|
11
11
|
"query"
|
|
12
12
|
]>;
|
|
13
|
-
declare const getSegmentsTargetUsersCount: (query: SegmentsTargetUsersCountGetQuery,
|
|
13
|
+
declare const getSegmentsTargetUsersCount: (query: SegmentsTargetUsersCountGetQuery, customRequestInit?: RequestInit) => Promise<{
|
|
14
14
|
count: number;
|
|
15
15
|
}>;
|
|
16
16
|
|
|
@@ -306,10 +306,18 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
306
306
|
|
|
307
307
|
// src/fetch/segmentsTargetUsersCount.ts
|
|
308
308
|
var buildSegmentsTargetUsersCountGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetTargetUsersCountResponse, { ...requestInit });
|
|
309
|
-
var getSegmentsTargetUsersCount = (query,
|
|
310
|
-
(0, import_api_client_base.__internal__requestUrl)(
|
|
311
|
-
|
|
312
|
-
|
|
309
|
+
var getSegmentsTargetUsersCount = (query, customRequestInit) => {
|
|
310
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
311
|
+
"/api/segments/target_users_count",
|
|
312
|
+
{},
|
|
313
|
+
query
|
|
314
|
+
);
|
|
315
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
316
|
+
...customRequestInit,
|
|
317
|
+
method: "GET"
|
|
318
|
+
});
|
|
319
|
+
return buildSegmentsTargetUsersCountGetFetcher(requestInit)(requestInfo);
|
|
320
|
+
};
|
|
313
321
|
// Annotate the CommonJS export names for ESM import in node:
|
|
314
322
|
0 && (module.exports = {
|
|
315
323
|
buildSegmentsTargetUsersCountGetFetcher,
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -2,49 +2,49 @@ import {
|
|
|
2
2
|
useCampaignsId,
|
|
3
3
|
useCampaignsIdImmutable,
|
|
4
4
|
useCampaignsIdInfinite
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-JUEVPCCG.mjs";
|
|
6
6
|
import {
|
|
7
7
|
useCampaignsIdPreview,
|
|
8
8
|
useCampaignsIdPreviewImmutable,
|
|
9
9
|
useCampaignsIdPreviewInfinite
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-4RIZKNMD.mjs";
|
|
11
11
|
import {
|
|
12
12
|
useProjectsProjectIdOrKeyword,
|
|
13
13
|
useProjectsProjectIdOrKeywordImmutable,
|
|
14
14
|
useProjectsProjectIdOrKeywordInfinite
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-URYB6NOK.mjs";
|
|
16
16
|
import {
|
|
17
17
|
useSegmentsBehaviorSegments,
|
|
18
18
|
useSegmentsBehaviorSegmentsImmutable,
|
|
19
19
|
useSegmentsBehaviorSegmentsInfinite
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-5ULJLAC6.mjs";
|
|
21
21
|
import {
|
|
22
22
|
useSegmentsProfileSegments,
|
|
23
23
|
useSegmentsProfileSegmentsImmutable,
|
|
24
24
|
useSegmentsProfileSegmentsInfinite
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-NXETGJTF.mjs";
|
|
26
26
|
import {
|
|
27
27
|
useSegmentsTargetUsersCount,
|
|
28
28
|
useSegmentsTargetUsersCountImmutable,
|
|
29
29
|
useSegmentsTargetUsersCountInfinite
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-3UBBT7E5.mjs";
|
|
31
31
|
import {
|
|
32
32
|
useCampaigns,
|
|
33
33
|
useCampaignsImmutable,
|
|
34
34
|
useCampaignsInfinite
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-OWGV4AJG.mjs";
|
|
36
36
|
import "../chunk-5XEJOYX6.mjs";
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-
|
|
43
|
-
import "../chunk-
|
|
44
|
-
import "../chunk-
|
|
45
|
-
import "../chunk-
|
|
46
|
-
import "../chunk-
|
|
47
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-KL2DA5QY.mjs";
|
|
38
|
+
import "../chunk-MB4UQS7V.mjs";
|
|
39
|
+
import "../chunk-2UJ4AWWH.mjs";
|
|
40
|
+
import "../chunk-4NGGO3G6.mjs";
|
|
41
|
+
import "../chunk-U7AEZYNN.mjs";
|
|
42
|
+
import "../chunk-VGMORDQ4.mjs";
|
|
43
|
+
import "../chunk-4INIKTKJ.mjs";
|
|
44
|
+
import "../chunk-WISELSRL.mjs";
|
|
45
|
+
import "../chunk-AGTNHB2D.mjs";
|
|
46
|
+
import "../chunk-UENEH462.mjs";
|
|
47
|
+
import "../chunk-RC6SX75E.mjs";
|
|
48
48
|
import "../chunk-QCIAYUXK.mjs";
|
|
49
49
|
export {
|
|
50
50
|
useCampaigns,
|
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
useCampaigns,
|
|
3
3
|
useCampaignsImmutable,
|
|
4
4
|
useCampaignsInfinite
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-OWGV4AJG.mjs";
|
|
6
6
|
import "../chunk-5XEJOYX6.mjs";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-KL2DA5QY.mjs";
|
|
8
|
+
import "../chunk-MB4UQS7V.mjs";
|
|
9
|
+
import "../chunk-2UJ4AWWH.mjs";
|
|
10
|
+
import "../chunk-4NGGO3G6.mjs";
|
|
11
|
+
import "../chunk-U7AEZYNN.mjs";
|
|
12
|
+
import "../chunk-VGMORDQ4.mjs";
|
|
13
|
+
import "../chunk-4INIKTKJ.mjs";
|
|
14
|
+
import "../chunk-WISELSRL.mjs";
|
|
15
|
+
import "../chunk-AGTNHB2D.mjs";
|
|
16
|
+
import "../chunk-UENEH462.mjs";
|
|
17
|
+
import "../chunk-RC6SX75E.mjs";
|
|
18
18
|
import "../chunk-QCIAYUXK.mjs";
|
|
19
19
|
export {
|
|
20
20
|
useCampaigns,
|