@readyfor/api-client-pigeon 0.243.0-pr986.3fe5563 → 0.244.0-pr981.aa1d2e5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-2ANX7NRV.mjs +24 -0
- package/dist/{chunk-KL2BCQLU.mjs → chunk-2FPDBPJY.mjs} +1 -1
- package/dist/chunk-4GY6JZ77.mjs +39 -0
- package/dist/chunk-6JHFWIAW.mjs +27 -0
- package/dist/chunk-6ZETET36.mjs +24 -0
- package/dist/{chunk-DQW3ZEJN.mjs → chunk-7JRHKS3K.mjs} +1 -1
- package/dist/{chunk-LUUW3QOB.mjs → chunk-G6IJEAVR.mjs} +1 -1
- package/dist/{chunk-ZDQDW24D.mjs → chunk-HD6B7N5S.mjs} +1 -1
- package/dist/chunk-IKRY3IDS.mjs +28 -0
- package/dist/chunk-JVMIOVIM.mjs +29 -0
- package/dist/{chunk-3BSY3CC4.mjs → chunk-JWVQXFDL.mjs} +1 -1
- package/dist/chunk-LMM3AGZ6.mjs +36 -0
- package/dist/chunk-MCYE5BYS.mjs +25 -0
- package/dist/{chunk-VUY6GQWT.mjs → chunk-NIZUYZOH.mjs} +1 -1
- package/dist/{chunk-S2M3EJKW.mjs → chunk-OLAYQE52.mjs} +1 -1
- package/dist/chunk-OODNPRT4.mjs +30 -0
- package/dist/chunk-TP3CBDVX.mjs +48 -0
- package/dist/chunk-X2WL4YZH.mjs +27 -0
- package/dist/fetch/campaigns.d.mts +2 -2
- package/dist/fetch/campaigns.d.ts +2 -2
- package/dist/fetch/campaigns.js +18 -10
- package/dist/fetch/campaigns.mjs +1 -1
- package/dist/fetch/campaignsCampaignIdImagesId.d.mts +1 -1
- package/dist/fetch/campaignsCampaignIdImagesId.d.ts +1 -1
- package/dist/fetch/campaignsCampaignIdImagesId.js +12 -4
- package/dist/fetch/campaignsCampaignIdImagesId.mjs +1 -1
- package/dist/fetch/campaignsId.d.mts +3 -3
- package/dist/fetch/campaignsId.d.ts +3 -3
- package/dist/fetch/campaignsId.js +24 -12
- package/dist/fetch/campaignsId.mjs +1 -1
- package/dist/fetch/campaignsIdDeliveryJob.d.mts +2 -2
- package/dist/fetch/campaignsIdDeliveryJob.d.ts +2 -2
- package/dist/fetch/campaignsIdDeliveryJob.js +20 -8
- package/dist/fetch/campaignsIdDeliveryJob.mjs +1 -1
- package/dist/fetch/campaignsIdImages.d.mts +1 -1
- package/dist/fetch/campaignsIdImages.d.ts +1 -1
- package/dist/fetch/campaignsIdImages.js +13 -4
- package/dist/fetch/campaignsIdImages.mjs +1 -1
- package/dist/fetch/campaignsIdPreview.d.mts +1 -1
- package/dist/fetch/campaignsIdPreview.d.ts +1 -1
- package/dist/fetch/campaignsIdPreview.js +10 -4
- package/dist/fetch/campaignsIdPreview.mjs +1 -1
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.mts +1 -1
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.ts +1 -1
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.js +16 -9
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.mjs +1 -1
- package/dist/fetch/projectsProjectIdOrKeyword.d.mts +1 -1
- package/dist/fetch/projectsProjectIdOrKeyword.d.ts +1 -1
- package/dist/fetch/projectsProjectIdOrKeyword.js +10 -4
- package/dist/fetch/projectsProjectIdOrKeyword.mjs +1 -1
- package/dist/fetch/segmentsBehaviorSegments.d.mts +1 -1
- package/dist/fetch/segmentsBehaviorSegments.d.ts +1 -1
- package/dist/fetch/segmentsBehaviorSegments.js +7 -4
- package/dist/fetch/segmentsBehaviorSegments.mjs +1 -1
- package/dist/fetch/segmentsProfileSegments.d.mts +1 -1
- package/dist/fetch/segmentsProfileSegments.d.ts +1 -1
- package/dist/fetch/segmentsProfileSegments.js +7 -4
- package/dist/fetch/segmentsProfileSegments.mjs +1 -1
- package/dist/fetch/segmentsTargetUsersCount.d.mts +1 -1
- package/dist/fetch/segmentsTargetUsersCount.d.ts +1 -1
- package/dist/fetch/segmentsTargetUsersCount.js +11 -4
- package/dist/fetch/segmentsTargetUsersCount.mjs +1 -1
- package/dist/hooks/index.mjs +18 -18
- package/dist/hooks/useCampaigns.mjs +12 -12
- package/dist/hooks/useCampaignsId.mjs +12 -12
- package/dist/hooks/useCampaignsIdPreview.mjs +12 -12
- package/dist/hooks/useProjectsProjectIdOrKeyword.mjs +12 -12
- package/dist/hooks/useSegmentsBehaviorSegments.mjs +12 -12
- package/dist/hooks/useSegmentsProfileSegments.mjs +12 -12
- package/dist/hooks/useSegmentsTargetUsersCount.mjs +12 -12
- package/dist/index.js +148 -67
- package/dist/index.mjs +11 -11
- package/package.json +7 -4
- package/dist/chunk-6DE2SHQZ.mjs +0 -19
- package/dist/chunk-BGIB7JQD.mjs +0 -19
- package/dist/chunk-D455PCO3.mjs +0 -19
- package/dist/chunk-DH3UXOBA.mjs +0 -19
- package/dist/chunk-EYJTETGN.mjs +0 -34
- package/dist/chunk-KBTZNIQJ.mjs +0 -20
- package/dist/chunk-MFCSQX6F.mjs +0 -29
- package/dist/chunk-NIBXTDD3.mjs +0 -15
- package/dist/chunk-NKNUFH54.mjs +0 -19
- package/dist/chunk-VJU27CZQ.mjs +0 -19
- package/dist/chunk-YV4XRZY2.mjs +0 -22
|
@@ -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,27 @@ __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
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "POST" })
|
|
38
|
+
);
|
|
39
|
+
return buildCampaignsIdDeliveryJobPostFetcher(requestInit)(requestInfo);
|
|
40
|
+
};
|
|
35
41
|
var buildCampaignsIdDeliveryJobDeleteFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
36
|
-
var deleteCampaignsIdDeliveryJob = (path,
|
|
37
|
-
(0, import_api_client_base.__internal__requestUrl)(
|
|
38
|
-
|
|
39
|
-
|
|
42
|
+
var deleteCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
43
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
44
|
+
"/api/campaigns/{id}/delivery_job",
|
|
45
|
+
path
|
|
46
|
+
);
|
|
47
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
48
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "DELETE" })
|
|
49
|
+
);
|
|
50
|
+
return buildCampaignsIdDeliveryJobDeleteFetcher(requestInit)(requestInfo);
|
|
51
|
+
};
|
|
40
52
|
// Annotate the CommonJS export names for ESM import in node:
|
|
41
53
|
0 && (module.exports = {
|
|
42
54
|
buildCampaignsIdDeliveryJobDeleteFetcher,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
buildCampaignsIdDeliveryJobPostFetcher,
|
|
4
4
|
deleteCampaignsIdDeliveryJob,
|
|
5
5
|
postCampaignsIdDeliveryJob
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-LMM3AGZ6.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,19 @@ 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
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, {
|
|
316
|
+
method: "POST",
|
|
317
|
+
body: requestBody
|
|
318
|
+
})
|
|
319
|
+
);
|
|
320
|
+
return buildCampaignsIdImagesPostFetcher(requestInit)(requestInfo);
|
|
321
|
+
};
|
|
313
322
|
// Annotate the CommonJS export names for ESM import in node:
|
|
314
323
|
0 && (module.exports = {
|
|
315
324
|
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,16 @@ 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
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" })
|
|
316
|
+
);
|
|
317
|
+
return buildCampaignsIdPreviewGetFetcher(requestInit)(requestInfo);
|
|
318
|
+
};
|
|
313
319
|
// Annotate the CommonJS export names for ESM import in node:
|
|
314
320
|
0 && (module.exports = {
|
|
315
321
|
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,22 @@ __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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, {
|
|
36
|
+
method: "POST",
|
|
37
|
+
headers: { "Content-Type": "application/json" },
|
|
38
|
+
body: JSON.stringify(requestBody)
|
|
39
|
+
})
|
|
40
|
+
);
|
|
41
|
+
return buildCampaignsIdPreviewDeliveryEmailPostFetcher(requestInit)(
|
|
42
|
+
requestInfo
|
|
43
|
+
);
|
|
44
|
+
};
|
|
38
45
|
// Annotate the CommonJS export names for ESM import in node:
|
|
39
46
|
0 && (module.exports = {
|
|
40
47
|
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,16 @@ 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
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" })
|
|
316
|
+
);
|
|
317
|
+
return buildProjectsProjectIdOrKeywordGetFetcher(requestInit)(requestInfo);
|
|
318
|
+
};
|
|
313
319
|
// Annotate the CommonJS export names for ESM import in node:
|
|
314
320
|
0 && (module.exports = {
|
|
315
321
|
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,13 @@ 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
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" })
|
|
313
|
+
);
|
|
314
|
+
return buildSegmentsBehaviorSegmentsGetFetcher(requestInit)(requestInfo);
|
|
315
|
+
};
|
|
313
316
|
// Annotate the CommonJS export names for ESM import in node:
|
|
314
317
|
0 && (module.exports = {
|
|
315
318
|
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,13 @@ 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
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" })
|
|
313
|
+
);
|
|
314
|
+
return buildSegmentsProfileSegmentsGetFetcher(requestInit)(requestInfo);
|
|
315
|
+
};
|
|
313
316
|
// Annotate the CommonJS export names for ESM import in node:
|
|
314
317
|
0 && (module.exports = {
|
|
315
318
|
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,17 @@ 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
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" })
|
|
317
|
+
);
|
|
318
|
+
return buildSegmentsTargetUsersCountGetFetcher(requestInit)(requestInfo);
|
|
319
|
+
};
|
|
313
320
|
// Annotate the CommonJS export names for ESM import in node:
|
|
314
321
|
0 && (module.exports = {
|
|
315
322
|
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-NIZUYZOH.mjs";
|
|
6
6
|
import {
|
|
7
7
|
useCampaignsIdPreview,
|
|
8
8
|
useCampaignsIdPreviewImmutable,
|
|
9
9
|
useCampaignsIdPreviewInfinite
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-HD6B7N5S.mjs";
|
|
11
11
|
import {
|
|
12
12
|
useProjectsProjectIdOrKeyword,
|
|
13
13
|
useProjectsProjectIdOrKeywordImmutable,
|
|
14
14
|
useProjectsProjectIdOrKeywordInfinite
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-2FPDBPJY.mjs";
|
|
16
16
|
import {
|
|
17
17
|
useSegmentsBehaviorSegments,
|
|
18
18
|
useSegmentsBehaviorSegmentsImmutable,
|
|
19
19
|
useSegmentsBehaviorSegmentsInfinite
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-7JRHKS3K.mjs";
|
|
21
21
|
import {
|
|
22
22
|
useSegmentsProfileSegments,
|
|
23
23
|
useSegmentsProfileSegmentsImmutable,
|
|
24
24
|
useSegmentsProfileSegmentsInfinite
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-JWVQXFDL.mjs";
|
|
26
26
|
import {
|
|
27
27
|
useSegmentsTargetUsersCount,
|
|
28
28
|
useSegmentsTargetUsersCountImmutable,
|
|
29
29
|
useSegmentsTargetUsersCountInfinite
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-OLAYQE52.mjs";
|
|
31
31
|
import {
|
|
32
32
|
useCampaigns,
|
|
33
33
|
useCampaignsImmutable,
|
|
34
34
|
useCampaignsInfinite
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-G6IJEAVR.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-X2WL4YZH.mjs";
|
|
38
|
+
import "../chunk-JVMIOVIM.mjs";
|
|
39
|
+
import "../chunk-6JHFWIAW.mjs";
|
|
40
|
+
import "../chunk-2ANX7NRV.mjs";
|
|
41
|
+
import "../chunk-6ZETET36.mjs";
|
|
42
|
+
import "../chunk-IKRY3IDS.mjs";
|
|
43
|
+
import "../chunk-4GY6JZ77.mjs";
|
|
44
|
+
import "../chunk-MCYE5BYS.mjs";
|
|
45
|
+
import "../chunk-TP3CBDVX.mjs";
|
|
46
|
+
import "../chunk-LMM3AGZ6.mjs";
|
|
47
|
+
import "../chunk-OODNPRT4.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-G6IJEAVR.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-X2WL4YZH.mjs";
|
|
8
|
+
import "../chunk-JVMIOVIM.mjs";
|
|
9
|
+
import "../chunk-6JHFWIAW.mjs";
|
|
10
|
+
import "../chunk-2ANX7NRV.mjs";
|
|
11
|
+
import "../chunk-6ZETET36.mjs";
|
|
12
|
+
import "../chunk-IKRY3IDS.mjs";
|
|
13
|
+
import "../chunk-4GY6JZ77.mjs";
|
|
14
|
+
import "../chunk-MCYE5BYS.mjs";
|
|
15
|
+
import "../chunk-TP3CBDVX.mjs";
|
|
16
|
+
import "../chunk-LMM3AGZ6.mjs";
|
|
17
|
+
import "../chunk-OODNPRT4.mjs";
|
|
18
18
|
import "../chunk-QCIAYUXK.mjs";
|
|
19
19
|
export {
|
|
20
20
|
useCampaigns,
|
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
useCampaignsId,
|
|
3
3
|
useCampaignsIdImmutable,
|
|
4
4
|
useCampaignsIdInfinite
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-NIZUYZOH.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-X2WL4YZH.mjs";
|
|
8
|
+
import "../chunk-JVMIOVIM.mjs";
|
|
9
|
+
import "../chunk-6JHFWIAW.mjs";
|
|
10
|
+
import "../chunk-2ANX7NRV.mjs";
|
|
11
|
+
import "../chunk-6ZETET36.mjs";
|
|
12
|
+
import "../chunk-IKRY3IDS.mjs";
|
|
13
|
+
import "../chunk-4GY6JZ77.mjs";
|
|
14
|
+
import "../chunk-MCYE5BYS.mjs";
|
|
15
|
+
import "../chunk-TP3CBDVX.mjs";
|
|
16
|
+
import "../chunk-LMM3AGZ6.mjs";
|
|
17
|
+
import "../chunk-OODNPRT4.mjs";
|
|
18
18
|
import "../chunk-QCIAYUXK.mjs";
|
|
19
19
|
export {
|
|
20
20
|
useCampaignsId,
|