@readyfor/api-client-pigeon 0.244.0 → 0.244.1
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 +3 -3
- 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
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
useCampaignsIdPreview,
|
|
3
3
|
useCampaignsIdPreviewImmutable,
|
|
4
4
|
useCampaignsIdPreviewInfinite
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-HD6B7N5S.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
|
useCampaignsIdPreview,
|
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
useProjectsProjectIdOrKeyword,
|
|
3
3
|
useProjectsProjectIdOrKeywordImmutable,
|
|
4
4
|
useProjectsProjectIdOrKeywordInfinite
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-2FPDBPJY.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
|
useProjectsProjectIdOrKeyword,
|
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
useSegmentsBehaviorSegments,
|
|
3
3
|
useSegmentsBehaviorSegmentsImmutable,
|
|
4
4
|
useSegmentsBehaviorSegmentsInfinite
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-7JRHKS3K.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
|
useSegmentsBehaviorSegments,
|
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
useSegmentsProfileSegments,
|
|
3
3
|
useSegmentsProfileSegmentsImmutable,
|
|
4
4
|
useSegmentsProfileSegmentsInfinite
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-JWVQXFDL.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
|
useSegmentsProfileSegments,
|
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
useSegmentsTargetUsersCount,
|
|
3
3
|
useSegmentsTargetUsersCountImmutable,
|
|
4
4
|
useSegmentsTargetUsersCountInfinite
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-OLAYQE52.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
|
useSegmentsTargetUsersCount,
|
package/dist/index.js
CHANGED
|
@@ -397,117 +397,198 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
397
397
|
// src/fetch/campaigns.ts
|
|
398
398
|
var import_api_client_base = require("@readyfor/api-client-base");
|
|
399
399
|
var buildCampaignsGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsResponse, { ...requestInit });
|
|
400
|
-
var getCampaigns = (query,
|
|
401
|
-
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns", {}, query)
|
|
402
|
-
|
|
403
|
-
)
|
|
400
|
+
var getCampaigns = (query, customRequestInit) => {
|
|
401
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns", {}, query);
|
|
402
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
403
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" })
|
|
404
|
+
);
|
|
405
|
+
return buildCampaignsGetFetcher(requestInit)(requestInfo);
|
|
406
|
+
};
|
|
404
407
|
var buildCampaignsPostFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(PostCampaignsResponse, { ...requestInit });
|
|
405
|
-
var postCampaigns = (requestBody,
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
}
|
|
408
|
+
var postCampaigns = (requestBody, customRequestInit) => {
|
|
409
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns");
|
|
410
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
411
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, {
|
|
412
|
+
method: "POST",
|
|
413
|
+
headers: { "Content-Type": "application/json" },
|
|
414
|
+
body: JSON.stringify(requestBody)
|
|
415
|
+
})
|
|
416
|
+
);
|
|
417
|
+
return buildCampaignsPostFetcher(requestInit)(requestInfo);
|
|
418
|
+
};
|
|
411
419
|
|
|
412
420
|
// src/fetch/campaignsId.ts
|
|
413
421
|
var import_api_client_base2 = require("@readyfor/api-client-base");
|
|
414
422
|
var buildCampaignsIdGetFetcher = (requestInit) => (0, import_api_client_base2.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
|
|
415
|
-
var getCampaignsId = (path,
|
|
416
|
-
(0, import_api_client_base2.__internal__requestUrl)("/api/campaigns/{id}", path)
|
|
417
|
-
|
|
418
|
-
)
|
|
423
|
+
var getCampaignsId = (path, customRequestInit) => {
|
|
424
|
+
const requestInfo = (0, import_api_client_base2.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
425
|
+
const requestInit = (0, import_api_client_base2.buildRequestInitWithDefaultConfig)(
|
|
426
|
+
(0, import_api_client_base2.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" })
|
|
427
|
+
);
|
|
428
|
+
return buildCampaignsIdGetFetcher(requestInit)(requestInfo);
|
|
429
|
+
};
|
|
419
430
|
var buildCampaignsIdDeleteFetcher = (requestInit) => (0, import_api_client_base2.createVoidFetcher)({ ...requestInit });
|
|
420
|
-
var deleteCampaignsId = (path,
|
|
421
|
-
(0, import_api_client_base2.__internal__requestUrl)("/api/campaigns/{id}", path)
|
|
422
|
-
|
|
423
|
-
)
|
|
431
|
+
var deleteCampaignsId = (path, customRequestInit) => {
|
|
432
|
+
const requestInfo = (0, import_api_client_base2.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
433
|
+
const requestInit = (0, import_api_client_base2.buildRequestInitWithDefaultConfig)(
|
|
434
|
+
(0, import_api_client_base2.mergeRequestInit)(customRequestInit ?? {}, { method: "DELETE" })
|
|
435
|
+
);
|
|
436
|
+
return buildCampaignsIdDeleteFetcher(requestInit)(requestInfo);
|
|
437
|
+
};
|
|
424
438
|
var buildCampaignsIdPatchFetcher = (requestInit) => (0, import_api_client_base2.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
|
|
425
|
-
var patchCampaignsId = (path, requestBody,
|
|
426
|
-
(0, import_api_client_base2.__internal__requestUrl)("/api/campaigns/{id}", path)
|
|
427
|
-
|
|
428
|
-
)
|
|
439
|
+
var patchCampaignsId = (path, requestBody, customRequestInit) => {
|
|
440
|
+
const requestInfo = (0, import_api_client_base2.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
441
|
+
const requestInit = (0, import_api_client_base2.buildRequestInitWithDefaultConfig)(
|
|
442
|
+
(0, import_api_client_base2.mergeRequestInit)(customRequestInit ?? {}, {
|
|
443
|
+
method: "PATCH",
|
|
444
|
+
body: requestBody
|
|
445
|
+
})
|
|
446
|
+
);
|
|
447
|
+
return buildCampaignsIdPatchFetcher(requestInit)(requestInfo);
|
|
448
|
+
};
|
|
429
449
|
|
|
430
450
|
// src/fetch/campaignsIdDeliveryJob.ts
|
|
431
451
|
var import_api_client_base3 = require("@readyfor/api-client-base");
|
|
432
452
|
var buildCampaignsIdDeliveryJobPostFetcher = (requestInit) => (0, import_api_client_base3.createVoidFetcher)({ ...requestInit });
|
|
433
|
-
var postCampaignsIdDeliveryJob = (path,
|
|
434
|
-
(0, import_api_client_base3.__internal__requestUrl)(
|
|
435
|
-
|
|
436
|
-
|
|
453
|
+
var postCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
454
|
+
const requestInfo = (0, import_api_client_base3.__internal__requestUrl)(
|
|
455
|
+
"/api/campaigns/{id}/delivery_job",
|
|
456
|
+
path
|
|
457
|
+
);
|
|
458
|
+
const requestInit = (0, import_api_client_base3.buildRequestInitWithDefaultConfig)(
|
|
459
|
+
(0, import_api_client_base3.mergeRequestInit)(customRequestInit ?? {}, { method: "POST" })
|
|
460
|
+
);
|
|
461
|
+
return buildCampaignsIdDeliveryJobPostFetcher(requestInit)(requestInfo);
|
|
462
|
+
};
|
|
437
463
|
var buildCampaignsIdDeliveryJobDeleteFetcher = (requestInit) => (0, import_api_client_base3.createVoidFetcher)({ ...requestInit });
|
|
438
|
-
var deleteCampaignsIdDeliveryJob = (path,
|
|
439
|
-
(0, import_api_client_base3.__internal__requestUrl)(
|
|
440
|
-
|
|
441
|
-
|
|
464
|
+
var deleteCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
465
|
+
const requestInfo = (0, import_api_client_base3.__internal__requestUrl)(
|
|
466
|
+
"/api/campaigns/{id}/delivery_job",
|
|
467
|
+
path
|
|
468
|
+
);
|
|
469
|
+
const requestInit = (0, import_api_client_base3.buildRequestInitWithDefaultConfig)(
|
|
470
|
+
(0, import_api_client_base3.mergeRequestInit)(customRequestInit ?? {}, { method: "DELETE" })
|
|
471
|
+
);
|
|
472
|
+
return buildCampaignsIdDeliveryJobDeleteFetcher(requestInit)(requestInfo);
|
|
473
|
+
};
|
|
442
474
|
|
|
443
475
|
// src/fetch/campaignsIdPreview.ts
|
|
444
476
|
var import_api_client_base4 = require("@readyfor/api-client-base");
|
|
445
477
|
var buildCampaignsIdPreviewGetFetcher = (requestInit) => (0, import_api_client_base4.createJsonFetcher)(GetCampaignsCampaignIdPreviewResponse, { ...requestInit });
|
|
446
|
-
var getCampaignsIdPreview = (path,
|
|
447
|
-
(0, import_api_client_base4.__internal__requestUrl)(
|
|
448
|
-
|
|
449
|
-
|
|
478
|
+
var getCampaignsIdPreview = (path, customRequestInit) => {
|
|
479
|
+
const requestInfo = (0, import_api_client_base4.__internal__requestUrl)(
|
|
480
|
+
"/api/campaigns/{id}/preview",
|
|
481
|
+
path
|
|
482
|
+
);
|
|
483
|
+
const requestInit = (0, import_api_client_base4.buildRequestInitWithDefaultConfig)(
|
|
484
|
+
(0, import_api_client_base4.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" })
|
|
485
|
+
);
|
|
486
|
+
return buildCampaignsIdPreviewGetFetcher(requestInit)(requestInfo);
|
|
487
|
+
};
|
|
450
488
|
|
|
451
489
|
// src/fetch/campaignsIdPreviewDeliveryEmail.ts
|
|
452
490
|
var import_api_client_base5 = require("@readyfor/api-client-base");
|
|
453
491
|
var buildCampaignsIdPreviewDeliveryEmailPostFetcher = (requestInit) => (0, import_api_client_base5.createVoidFetcher)({ ...requestInit });
|
|
454
|
-
var postCampaignsIdPreviewDeliveryEmail = (path, requestBody,
|
|
455
|
-
(0, import_api_client_base5.__internal__requestUrl)(
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
492
|
+
var postCampaignsIdPreviewDeliveryEmail = (path, requestBody, customRequestInit) => {
|
|
493
|
+
const requestInfo = (0, import_api_client_base5.__internal__requestUrl)(
|
|
494
|
+
"/api/campaigns/{id}/preview_delivery_email",
|
|
495
|
+
path
|
|
496
|
+
);
|
|
497
|
+
const requestInit = (0, import_api_client_base5.buildRequestInitWithDefaultConfig)(
|
|
498
|
+
(0, import_api_client_base5.mergeRequestInit)(customRequestInit ?? {}, {
|
|
499
|
+
method: "POST",
|
|
500
|
+
headers: { "Content-Type": "application/json" },
|
|
501
|
+
body: JSON.stringify(requestBody)
|
|
502
|
+
})
|
|
503
|
+
);
|
|
504
|
+
return buildCampaignsIdPreviewDeliveryEmailPostFetcher(requestInit)(
|
|
505
|
+
requestInfo
|
|
506
|
+
);
|
|
507
|
+
};
|
|
463
508
|
|
|
464
509
|
// src/fetch/campaignsIdImages.ts
|
|
465
510
|
var import_api_client_base6 = require("@readyfor/api-client-base");
|
|
466
511
|
var buildCampaignsIdImagesPostFetcher = (requestInit) => (0, import_api_client_base6.createJsonFetcher)(Image, { ...requestInit });
|
|
467
|
-
var postCampaignsIdImages = (path, requestBody,
|
|
468
|
-
(0, import_api_client_base6.__internal__requestUrl)(
|
|
469
|
-
|
|
470
|
-
|
|
512
|
+
var postCampaignsIdImages = (path, requestBody, customRequestInit) => {
|
|
513
|
+
const requestInfo = (0, import_api_client_base6.__internal__requestUrl)(
|
|
514
|
+
"/api/campaigns/{id}/images",
|
|
515
|
+
path
|
|
516
|
+
);
|
|
517
|
+
const requestInit = (0, import_api_client_base6.buildRequestInitWithDefaultConfig)(
|
|
518
|
+
(0, import_api_client_base6.mergeRequestInit)(customRequestInit ?? {}, {
|
|
519
|
+
method: "POST",
|
|
520
|
+
body: requestBody
|
|
521
|
+
})
|
|
522
|
+
);
|
|
523
|
+
return buildCampaignsIdImagesPostFetcher(requestInit)(requestInfo);
|
|
524
|
+
};
|
|
471
525
|
|
|
472
526
|
// src/fetch/campaignsCampaignIdImagesId.ts
|
|
473
527
|
var import_api_client_base7 = require("@readyfor/api-client-base");
|
|
474
528
|
var buildCampaignsCampaignIdImagesIdDeleteFetcher = (requestInit) => (0, import_api_client_base7.createVoidFetcher)({ ...requestInit });
|
|
475
|
-
var deleteCampaignsCampaignIdImagesId = (path,
|
|
476
|
-
(0, import_api_client_base7.__internal__requestUrl)(
|
|
477
|
-
|
|
478
|
-
|
|
529
|
+
var deleteCampaignsCampaignIdImagesId = (path, customRequestInit) => {
|
|
530
|
+
const requestInfo = (0, import_api_client_base7.__internal__requestUrl)(
|
|
531
|
+
"/api/campaigns/{campaign_id}/images/{id}",
|
|
532
|
+
path
|
|
533
|
+
);
|
|
534
|
+
const requestInit = (0, import_api_client_base7.buildRequestInitWithDefaultConfig)(
|
|
535
|
+
(0, import_api_client_base7.mergeRequestInit)(customRequestInit ?? {}, { method: "DELETE" })
|
|
536
|
+
);
|
|
537
|
+
return buildCampaignsCampaignIdImagesIdDeleteFetcher(requestInit)(
|
|
538
|
+
requestInfo
|
|
539
|
+
);
|
|
540
|
+
};
|
|
479
541
|
|
|
480
542
|
// src/fetch/projectsProjectIdOrKeyword.ts
|
|
481
543
|
var import_api_client_base8 = require("@readyfor/api-client-base");
|
|
482
544
|
var buildProjectsProjectIdOrKeywordGetFetcher = (requestInit) => (0, import_api_client_base8.createJsonFetcher)(GetProjectsProjectIdOrKeywordResponse, { ...requestInit });
|
|
483
|
-
var getProjectsProjectIdOrKeyword = (path,
|
|
484
|
-
(0, import_api_client_base8.__internal__requestUrl)(
|
|
485
|
-
|
|
486
|
-
|
|
545
|
+
var getProjectsProjectIdOrKeyword = (path, customRequestInit) => {
|
|
546
|
+
const requestInfo = (0, import_api_client_base8.__internal__requestUrl)(
|
|
547
|
+
"/api/projects/{project_id_or_keyword}",
|
|
548
|
+
path
|
|
549
|
+
);
|
|
550
|
+
const requestInit = (0, import_api_client_base8.buildRequestInitWithDefaultConfig)(
|
|
551
|
+
(0, import_api_client_base8.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" })
|
|
552
|
+
);
|
|
553
|
+
return buildProjectsProjectIdOrKeywordGetFetcher(requestInit)(requestInfo);
|
|
554
|
+
};
|
|
487
555
|
|
|
488
556
|
// src/fetch/segmentsBehaviorSegments.ts
|
|
489
557
|
var import_api_client_base9 = require("@readyfor/api-client-base");
|
|
490
558
|
var buildSegmentsBehaviorSegmentsGetFetcher = (requestInit) => (0, import_api_client_base9.createJsonFetcher)(GetBehaviorSegmentsResponse, { ...requestInit });
|
|
491
|
-
var getSegmentsBehaviorSegments = (
|
|
492
|
-
(0, import_api_client_base9.__internal__requestUrl)("/api/segments/behavior_segments")
|
|
493
|
-
|
|
494
|
-
)
|
|
559
|
+
var getSegmentsBehaviorSegments = (customRequestInit) => {
|
|
560
|
+
const requestInfo = (0, import_api_client_base9.__internal__requestUrl)("/api/segments/behavior_segments");
|
|
561
|
+
const requestInit = (0, import_api_client_base9.buildRequestInitWithDefaultConfig)(
|
|
562
|
+
(0, import_api_client_base9.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" })
|
|
563
|
+
);
|
|
564
|
+
return buildSegmentsBehaviorSegmentsGetFetcher(requestInit)(requestInfo);
|
|
565
|
+
};
|
|
495
566
|
|
|
496
567
|
// src/fetch/segmentsProfileSegments.ts
|
|
497
568
|
var import_api_client_base10 = require("@readyfor/api-client-base");
|
|
498
569
|
var buildSegmentsProfileSegmentsGetFetcher = (requestInit) => (0, import_api_client_base10.createJsonFetcher)(GetProfileSegmentsResponse, { ...requestInit });
|
|
499
|
-
var getSegmentsProfileSegments = (
|
|
500
|
-
(0, import_api_client_base10.__internal__requestUrl)("/api/segments/profile_segments")
|
|
501
|
-
|
|
502
|
-
)
|
|
570
|
+
var getSegmentsProfileSegments = (customRequestInit) => {
|
|
571
|
+
const requestInfo = (0, import_api_client_base10.__internal__requestUrl)("/api/segments/profile_segments");
|
|
572
|
+
const requestInit = (0, import_api_client_base10.buildRequestInitWithDefaultConfig)(
|
|
573
|
+
(0, import_api_client_base10.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" })
|
|
574
|
+
);
|
|
575
|
+
return buildSegmentsProfileSegmentsGetFetcher(requestInit)(requestInfo);
|
|
576
|
+
};
|
|
503
577
|
|
|
504
578
|
// src/fetch/segmentsTargetUsersCount.ts
|
|
505
579
|
var import_api_client_base11 = require("@readyfor/api-client-base");
|
|
506
580
|
var buildSegmentsTargetUsersCountGetFetcher = (requestInit) => (0, import_api_client_base11.createJsonFetcher)(GetTargetUsersCountResponse, { ...requestInit });
|
|
507
|
-
var getSegmentsTargetUsersCount = (query,
|
|
508
|
-
(0, import_api_client_base11.__internal__requestUrl)(
|
|
509
|
-
|
|
510
|
-
|
|
581
|
+
var getSegmentsTargetUsersCount = (query, customRequestInit) => {
|
|
582
|
+
const requestInfo = (0, import_api_client_base11.__internal__requestUrl)(
|
|
583
|
+
"/api/segments/target_users_count",
|
|
584
|
+
{},
|
|
585
|
+
query
|
|
586
|
+
);
|
|
587
|
+
const requestInit = (0, import_api_client_base11.buildRequestInitWithDefaultConfig)(
|
|
588
|
+
(0, import_api_client_base11.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" })
|
|
589
|
+
);
|
|
590
|
+
return buildSegmentsTargetUsersCountGetFetcher(requestInit)(requestInfo);
|
|
591
|
+
};
|
|
511
592
|
// Annotate the CommonJS export names for ESM import in node:
|
|
512
593
|
0 && (module.exports = {
|
|
513
594
|
BodyKind,
|
package/dist/index.mjs
CHANGED
|
@@ -2,37 +2,37 @@ import "./chunk-5XEJOYX6.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
buildCampaignsIdPreviewGetFetcher,
|
|
4
4
|
getCampaignsIdPreview
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-X2WL4YZH.mjs";
|
|
6
6
|
import {
|
|
7
7
|
buildCampaignsIdPreviewDeliveryEmailPostFetcher,
|
|
8
8
|
postCampaignsIdPreviewDeliveryEmail
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JVMIOVIM.mjs";
|
|
10
10
|
import {
|
|
11
11
|
buildProjectsProjectIdOrKeywordGetFetcher,
|
|
12
12
|
getProjectsProjectIdOrKeyword
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6JHFWIAW.mjs";
|
|
14
14
|
import {
|
|
15
15
|
buildSegmentsBehaviorSegmentsGetFetcher,
|
|
16
16
|
getSegmentsBehaviorSegments
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2ANX7NRV.mjs";
|
|
18
18
|
import {
|
|
19
19
|
buildSegmentsProfileSegmentsGetFetcher,
|
|
20
20
|
getSegmentsProfileSegments
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-6ZETET36.mjs";
|
|
22
22
|
import {
|
|
23
23
|
buildSegmentsTargetUsersCountGetFetcher,
|
|
24
24
|
getSegmentsTargetUsersCount
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-IKRY3IDS.mjs";
|
|
26
26
|
import {
|
|
27
27
|
buildCampaignsGetFetcher,
|
|
28
28
|
buildCampaignsPostFetcher,
|
|
29
29
|
getCampaigns,
|
|
30
30
|
postCampaigns
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-4GY6JZ77.mjs";
|
|
32
32
|
import {
|
|
33
33
|
buildCampaignsCampaignIdImagesIdDeleteFetcher,
|
|
34
34
|
deleteCampaignsCampaignIdImagesId
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-MCYE5BYS.mjs";
|
|
36
36
|
import {
|
|
37
37
|
buildCampaignsIdDeleteFetcher,
|
|
38
38
|
buildCampaignsIdGetFetcher,
|
|
@@ -40,17 +40,17 @@ import {
|
|
|
40
40
|
deleteCampaignsId,
|
|
41
41
|
getCampaignsId,
|
|
42
42
|
patchCampaignsId
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-TP3CBDVX.mjs";
|
|
44
44
|
import {
|
|
45
45
|
buildCampaignsIdDeliveryJobDeleteFetcher,
|
|
46
46
|
buildCampaignsIdDeliveryJobPostFetcher,
|
|
47
47
|
deleteCampaignsIdDeliveryJob,
|
|
48
48
|
postCampaignsIdDeliveryJob
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-LMM3AGZ6.mjs";
|
|
50
50
|
import {
|
|
51
51
|
buildCampaignsIdImagesPostFetcher,
|
|
52
52
|
postCampaignsIdImages
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-OODNPRT4.mjs";
|
|
54
54
|
import {
|
|
55
55
|
BodyKind,
|
|
56
56
|
Campaign,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@readyfor/api-client-pigeon",
|
|
3
|
-
"version": "0.244.
|
|
3
|
+
"version": "0.244.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"build": "tsup"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@readyfor/api-client-base": "0.244.
|
|
34
|
+
"@readyfor/api-client-base": "0.244.1",
|
|
35
35
|
"@types/qs": "6.9.18",
|
|
36
36
|
"@types/react": "19.1.2",
|
|
37
37
|
"@types/use-sync-external-store": "1.5.0",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"!src/**/*.test.tsx"
|
|
76
76
|
]
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "e01feee47f2b26d7433b17237d752921e747aa7f"
|
|
79
79
|
}
|
package/dist/chunk-6DE2SHQZ.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Image
|
|
3
|
-
} from "./chunk-QCIAYUXK.mjs";
|
|
4
|
-
|
|
5
|
-
// src/fetch/campaignsIdImages.ts
|
|
6
|
-
import {
|
|
7
|
-
createJsonFetcher,
|
|
8
|
-
__internal__requestUrl
|
|
9
|
-
} from "@readyfor/api-client-base";
|
|
10
|
-
var buildCampaignsIdImagesPostFetcher = (requestInit) => createJsonFetcher(Image, { ...requestInit });
|
|
11
|
-
var postCampaignsIdImages = (path, requestBody, requestInit) => buildCampaignsIdImagesPostFetcher()(
|
|
12
|
-
__internal__requestUrl("/api/campaigns/{id}/images", path),
|
|
13
|
-
{ ...requestInit, method: "POST", body: requestBody }
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
buildCampaignsIdImagesPostFetcher,
|
|
18
|
-
postCampaignsIdImages
|
|
19
|
-
};
|
package/dist/chunk-BGIB7JQD.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GetTargetUsersCountResponse
|
|
3
|
-
} from "./chunk-QCIAYUXK.mjs";
|
|
4
|
-
|
|
5
|
-
// src/fetch/segmentsTargetUsersCount.ts
|
|
6
|
-
import {
|
|
7
|
-
createJsonFetcher,
|
|
8
|
-
__internal__requestUrl
|
|
9
|
-
} from "@readyfor/api-client-base";
|
|
10
|
-
var buildSegmentsTargetUsersCountGetFetcher = (requestInit) => createJsonFetcher(GetTargetUsersCountResponse, { ...requestInit });
|
|
11
|
-
var getSegmentsTargetUsersCount = (query, requestInit) => buildSegmentsTargetUsersCountGetFetcher()(
|
|
12
|
-
__internal__requestUrl("/api/segments/target_users_count", {}, query),
|
|
13
|
-
{ ...requestInit, method: "GET" }
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
buildSegmentsTargetUsersCountGetFetcher,
|
|
18
|
-
getSegmentsTargetUsersCount
|
|
19
|
-
};
|
package/dist/chunk-D455PCO3.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GetBehaviorSegmentsResponse
|
|
3
|
-
} from "./chunk-QCIAYUXK.mjs";
|
|
4
|
-
|
|
5
|
-
// src/fetch/segmentsBehaviorSegments.ts
|
|
6
|
-
import {
|
|
7
|
-
createJsonFetcher,
|
|
8
|
-
__internal__requestUrl
|
|
9
|
-
} from "@readyfor/api-client-base";
|
|
10
|
-
var buildSegmentsBehaviorSegmentsGetFetcher = (requestInit) => createJsonFetcher(GetBehaviorSegmentsResponse, { ...requestInit });
|
|
11
|
-
var getSegmentsBehaviorSegments = (requestInit) => buildSegmentsBehaviorSegmentsGetFetcher()(
|
|
12
|
-
__internal__requestUrl("/api/segments/behavior_segments"),
|
|
13
|
-
{ ...requestInit, method: "GET" }
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
buildSegmentsBehaviorSegmentsGetFetcher,
|
|
18
|
-
getSegmentsBehaviorSegments
|
|
19
|
-
};
|
package/dist/chunk-DH3UXOBA.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GetCampaignsCampaignIdPreviewResponse
|
|
3
|
-
} from "./chunk-QCIAYUXK.mjs";
|
|
4
|
-
|
|
5
|
-
// src/fetch/campaignsIdPreview.ts
|
|
6
|
-
import {
|
|
7
|
-
createJsonFetcher,
|
|
8
|
-
__internal__requestUrl
|
|
9
|
-
} from "@readyfor/api-client-base";
|
|
10
|
-
var buildCampaignsIdPreviewGetFetcher = (requestInit) => createJsonFetcher(GetCampaignsCampaignIdPreviewResponse, { ...requestInit });
|
|
11
|
-
var getCampaignsIdPreview = (path, requestInit) => buildCampaignsIdPreviewGetFetcher()(
|
|
12
|
-
__internal__requestUrl("/api/campaigns/{id}/preview", path),
|
|
13
|
-
{ ...requestInit, method: "GET" }
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
buildCampaignsIdPreviewGetFetcher,
|
|
18
|
-
getCampaignsIdPreview
|
|
19
|
-
};
|
package/dist/chunk-EYJTETGN.mjs
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CampaignsCampaignIdResponse
|
|
3
|
-
} from "./chunk-QCIAYUXK.mjs";
|
|
4
|
-
|
|
5
|
-
// src/fetch/campaignsId.ts
|
|
6
|
-
import {
|
|
7
|
-
createJsonFetcher,
|
|
8
|
-
__internal__requestUrl,
|
|
9
|
-
createVoidFetcher
|
|
10
|
-
} from "@readyfor/api-client-base";
|
|
11
|
-
var buildCampaignsIdGetFetcher = (requestInit) => createJsonFetcher(CampaignsCampaignIdResponse, { ...requestInit });
|
|
12
|
-
var getCampaignsId = (path, requestInit) => buildCampaignsIdGetFetcher()(
|
|
13
|
-
__internal__requestUrl("/api/campaigns/{id}", path),
|
|
14
|
-
{ ...requestInit, method: "GET" }
|
|
15
|
-
);
|
|
16
|
-
var buildCampaignsIdDeleteFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
|
|
17
|
-
var deleteCampaignsId = (path, requestInit) => buildCampaignsIdDeleteFetcher()(
|
|
18
|
-
__internal__requestUrl("/api/campaigns/{id}", path),
|
|
19
|
-
{ ...requestInit, method: "DELETE" }
|
|
20
|
-
);
|
|
21
|
-
var buildCampaignsIdPatchFetcher = (requestInit) => createJsonFetcher(CampaignsCampaignIdResponse, { ...requestInit });
|
|
22
|
-
var patchCampaignsId = (path, requestBody, requestInit) => buildCampaignsIdPatchFetcher()(
|
|
23
|
-
__internal__requestUrl("/api/campaigns/{id}", path),
|
|
24
|
-
{ ...requestInit, method: "PATCH", body: requestBody }
|
|
25
|
-
);
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
buildCampaignsIdGetFetcher,
|
|
29
|
-
getCampaignsId,
|
|
30
|
-
buildCampaignsIdDeleteFetcher,
|
|
31
|
-
deleteCampaignsId,
|
|
32
|
-
buildCampaignsIdPatchFetcher,
|
|
33
|
-
patchCampaignsId
|
|
34
|
-
};
|