@readyfor/api-client-pigeon 0.241.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
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
useCampaignsId,
|
|
3
3
|
useCampaignsIdImmutable,
|
|
4
4
|
useCampaignsIdInfinite
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-JUEVPCCG.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
|
useCampaignsId,
|
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
useCampaignsIdPreview,
|
|
3
3
|
useCampaignsIdPreviewImmutable,
|
|
4
4
|
useCampaignsIdPreviewInfinite
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-4RIZKNMD.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
|
useCampaignsIdPreview,
|
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
useProjectsProjectIdOrKeyword,
|
|
3
3
|
useProjectsProjectIdOrKeywordImmutable,
|
|
4
4
|
useProjectsProjectIdOrKeywordInfinite
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-URYB6NOK.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
|
useProjectsProjectIdOrKeyword,
|
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
useSegmentsBehaviorSegments,
|
|
3
3
|
useSegmentsBehaviorSegmentsImmutable,
|
|
4
4
|
useSegmentsBehaviorSegmentsInfinite
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-5ULJLAC6.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
|
useSegmentsBehaviorSegments,
|
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
useSegmentsProfileSegments,
|
|
3
3
|
useSegmentsProfileSegmentsImmutable,
|
|
4
4
|
useSegmentsProfileSegmentsInfinite
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-NXETGJTF.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
|
useSegmentsProfileSegments,
|
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
useSegmentsTargetUsersCount,
|
|
3
3
|
useSegmentsTargetUsersCountImmutable,
|
|
4
4
|
useSegmentsTargetUsersCountInfinite
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-3UBBT7E5.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
|
useSegmentsTargetUsersCount,
|
package/dist/index.js
CHANGED
|
@@ -397,117 +397,211 @@ 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
|
+
...customRequestInit,
|
|
404
|
+
method: "GET"
|
|
405
|
+
});
|
|
406
|
+
return buildCampaignsGetFetcher(requestInit)(requestInfo);
|
|
407
|
+
};
|
|
404
408
|
var buildCampaignsPostFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(PostCampaignsResponse, { ...requestInit });
|
|
405
|
-
var postCampaigns = (requestBody,
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
409
|
+
var postCampaigns = (requestBody, customRequestInit) => {
|
|
410
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns");
|
|
411
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
|
|
412
|
+
...customRequestInit,
|
|
413
|
+
method: "POST",
|
|
414
|
+
headers: {
|
|
415
|
+
...customRequestInit?.headers,
|
|
416
|
+
"Content-Type": "application/json"
|
|
417
|
+
},
|
|
418
|
+
body: JSON.stringify(requestBody)
|
|
419
|
+
});
|
|
420
|
+
return buildCampaignsPostFetcher(requestInit)(requestInfo);
|
|
421
|
+
};
|
|
411
422
|
|
|
412
423
|
// src/fetch/campaignsId.ts
|
|
413
424
|
var import_api_client_base2 = require("@readyfor/api-client-base");
|
|
414
425
|
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
|
-
|
|
426
|
+
var getCampaignsId = (path, customRequestInit) => {
|
|
427
|
+
const requestInfo = (0, import_api_client_base2.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
428
|
+
const requestInit = (0, import_api_client_base2.buildRequestInitWithDefaultConfig)({
|
|
429
|
+
...customRequestInit,
|
|
430
|
+
method: "GET"
|
|
431
|
+
});
|
|
432
|
+
return buildCampaignsIdGetFetcher(requestInit)(requestInfo);
|
|
433
|
+
};
|
|
419
434
|
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
|
-
|
|
435
|
+
var deleteCampaignsId = (path, customRequestInit) => {
|
|
436
|
+
const requestInfo = (0, import_api_client_base2.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
437
|
+
const requestInit = (0, import_api_client_base2.buildRequestInitWithDefaultConfig)({
|
|
438
|
+
...customRequestInit,
|
|
439
|
+
method: "DELETE"
|
|
440
|
+
});
|
|
441
|
+
return buildCampaignsIdDeleteFetcher(requestInit)(requestInfo);
|
|
442
|
+
};
|
|
424
443
|
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
|
-
|
|
444
|
+
var patchCampaignsId = (path, requestBody, customRequestInit) => {
|
|
445
|
+
const requestInfo = (0, import_api_client_base2.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
446
|
+
const requestInit = (0, import_api_client_base2.buildRequestInitWithDefaultConfig)({
|
|
447
|
+
...customRequestInit,
|
|
448
|
+
method: "PATCH",
|
|
449
|
+
body: requestBody
|
|
450
|
+
});
|
|
451
|
+
return buildCampaignsIdPatchFetcher(requestInit)(requestInfo);
|
|
452
|
+
};
|
|
429
453
|
|
|
430
454
|
// src/fetch/campaignsIdDeliveryJob.ts
|
|
431
455
|
var import_api_client_base3 = require("@readyfor/api-client-base");
|
|
432
456
|
var buildCampaignsIdDeliveryJobPostFetcher = (requestInit) => (0, import_api_client_base3.createVoidFetcher)({ ...requestInit });
|
|
433
|
-
var postCampaignsIdDeliveryJob = (path,
|
|
434
|
-
(0, import_api_client_base3.__internal__requestUrl)(
|
|
435
|
-
|
|
436
|
-
|
|
457
|
+
var postCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
458
|
+
const requestInfo = (0, import_api_client_base3.__internal__requestUrl)(
|
|
459
|
+
"/api/campaigns/{id}/delivery_job",
|
|
460
|
+
path
|
|
461
|
+
);
|
|
462
|
+
const requestInit = (0, import_api_client_base3.buildRequestInitWithDefaultConfig)({
|
|
463
|
+
...customRequestInit,
|
|
464
|
+
method: "POST"
|
|
465
|
+
});
|
|
466
|
+
return buildCampaignsIdDeliveryJobPostFetcher(requestInit)(requestInfo);
|
|
467
|
+
};
|
|
437
468
|
var buildCampaignsIdDeliveryJobDeleteFetcher = (requestInit) => (0, import_api_client_base3.createVoidFetcher)({ ...requestInit });
|
|
438
|
-
var deleteCampaignsIdDeliveryJob = (path,
|
|
439
|
-
(0, import_api_client_base3.__internal__requestUrl)(
|
|
440
|
-
|
|
441
|
-
|
|
469
|
+
var deleteCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
470
|
+
const requestInfo = (0, import_api_client_base3.__internal__requestUrl)(
|
|
471
|
+
"/api/campaigns/{id}/delivery_job",
|
|
472
|
+
path
|
|
473
|
+
);
|
|
474
|
+
const requestInit = (0, import_api_client_base3.buildRequestInitWithDefaultConfig)({
|
|
475
|
+
...customRequestInit,
|
|
476
|
+
method: "DELETE"
|
|
477
|
+
});
|
|
478
|
+
return buildCampaignsIdDeliveryJobDeleteFetcher(requestInit)(requestInfo);
|
|
479
|
+
};
|
|
442
480
|
|
|
443
481
|
// src/fetch/campaignsIdPreview.ts
|
|
444
482
|
var import_api_client_base4 = require("@readyfor/api-client-base");
|
|
445
483
|
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
|
-
|
|
484
|
+
var getCampaignsIdPreview = (path, customRequestInit) => {
|
|
485
|
+
const requestInfo = (0, import_api_client_base4.__internal__requestUrl)(
|
|
486
|
+
"/api/campaigns/{id}/preview",
|
|
487
|
+
path
|
|
488
|
+
);
|
|
489
|
+
const requestInit = (0, import_api_client_base4.buildRequestInitWithDefaultConfig)({
|
|
490
|
+
...customRequestInit,
|
|
491
|
+
method: "GET"
|
|
492
|
+
});
|
|
493
|
+
return buildCampaignsIdPreviewGetFetcher(requestInit)(requestInfo);
|
|
494
|
+
};
|
|
450
495
|
|
|
451
496
|
// src/fetch/campaignsIdPreviewDeliveryEmail.ts
|
|
452
497
|
var import_api_client_base5 = require("@readyfor/api-client-base");
|
|
453
498
|
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
|
-
|
|
499
|
+
var postCampaignsIdPreviewDeliveryEmail = (path, requestBody, customRequestInit) => {
|
|
500
|
+
const requestInfo = (0, import_api_client_base5.__internal__requestUrl)(
|
|
501
|
+
"/api/campaigns/{id}/preview_delivery_email",
|
|
502
|
+
path
|
|
503
|
+
);
|
|
504
|
+
const requestInit = (0, import_api_client_base5.buildRequestInitWithDefaultConfig)({
|
|
505
|
+
...customRequestInit,
|
|
458
506
|
method: "POST",
|
|
459
|
-
headers: {
|
|
507
|
+
headers: {
|
|
508
|
+
...customRequestInit?.headers,
|
|
509
|
+
"Content-Type": "application/json"
|
|
510
|
+
},
|
|
460
511
|
body: JSON.stringify(requestBody)
|
|
461
|
-
}
|
|
462
|
-
)
|
|
512
|
+
});
|
|
513
|
+
return buildCampaignsIdPreviewDeliveryEmailPostFetcher(requestInit)(
|
|
514
|
+
requestInfo
|
|
515
|
+
);
|
|
516
|
+
};
|
|
463
517
|
|
|
464
518
|
// src/fetch/campaignsIdImages.ts
|
|
465
519
|
var import_api_client_base6 = require("@readyfor/api-client-base");
|
|
466
520
|
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
|
-
|
|
521
|
+
var postCampaignsIdImages = (path, requestBody, customRequestInit) => {
|
|
522
|
+
const requestInfo = (0, import_api_client_base6.__internal__requestUrl)(
|
|
523
|
+
"/api/campaigns/{id}/images",
|
|
524
|
+
path
|
|
525
|
+
);
|
|
526
|
+
const requestInit = (0, import_api_client_base6.buildRequestInitWithDefaultConfig)({
|
|
527
|
+
...customRequestInit,
|
|
528
|
+
method: "POST",
|
|
529
|
+
body: requestBody
|
|
530
|
+
});
|
|
531
|
+
return buildCampaignsIdImagesPostFetcher(requestInit)(requestInfo);
|
|
532
|
+
};
|
|
471
533
|
|
|
472
534
|
// src/fetch/campaignsCampaignIdImagesId.ts
|
|
473
535
|
var import_api_client_base7 = require("@readyfor/api-client-base");
|
|
474
536
|
var buildCampaignsCampaignIdImagesIdDeleteFetcher = (requestInit) => (0, import_api_client_base7.createVoidFetcher)({ ...requestInit });
|
|
475
|
-
var deleteCampaignsCampaignIdImagesId = (path,
|
|
476
|
-
(0, import_api_client_base7.__internal__requestUrl)(
|
|
477
|
-
|
|
478
|
-
|
|
537
|
+
var deleteCampaignsCampaignIdImagesId = (path, customRequestInit) => {
|
|
538
|
+
const requestInfo = (0, import_api_client_base7.__internal__requestUrl)(
|
|
539
|
+
"/api/campaigns/{campaign_id}/images/{id}",
|
|
540
|
+
path
|
|
541
|
+
);
|
|
542
|
+
const requestInit = (0, import_api_client_base7.buildRequestInitWithDefaultConfig)({
|
|
543
|
+
...customRequestInit,
|
|
544
|
+
method: "DELETE"
|
|
545
|
+
});
|
|
546
|
+
return buildCampaignsCampaignIdImagesIdDeleteFetcher(requestInit)(
|
|
547
|
+
requestInfo
|
|
548
|
+
);
|
|
549
|
+
};
|
|
479
550
|
|
|
480
551
|
// src/fetch/projectsProjectIdOrKeyword.ts
|
|
481
552
|
var import_api_client_base8 = require("@readyfor/api-client-base");
|
|
482
553
|
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
|
-
|
|
554
|
+
var getProjectsProjectIdOrKeyword = (path, customRequestInit) => {
|
|
555
|
+
const requestInfo = (0, import_api_client_base8.__internal__requestUrl)(
|
|
556
|
+
"/api/projects/{project_id_or_keyword}",
|
|
557
|
+
path
|
|
558
|
+
);
|
|
559
|
+
const requestInit = (0, import_api_client_base8.buildRequestInitWithDefaultConfig)({
|
|
560
|
+
...customRequestInit,
|
|
561
|
+
method: "GET"
|
|
562
|
+
});
|
|
563
|
+
return buildProjectsProjectIdOrKeywordGetFetcher(requestInit)(requestInfo);
|
|
564
|
+
};
|
|
487
565
|
|
|
488
566
|
// src/fetch/segmentsBehaviorSegments.ts
|
|
489
567
|
var import_api_client_base9 = require("@readyfor/api-client-base");
|
|
490
568
|
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
|
-
|
|
569
|
+
var getSegmentsBehaviorSegments = (customRequestInit) => {
|
|
570
|
+
const requestInfo = (0, import_api_client_base9.__internal__requestUrl)("/api/segments/behavior_segments");
|
|
571
|
+
const requestInit = (0, import_api_client_base9.buildRequestInitWithDefaultConfig)({
|
|
572
|
+
...customRequestInit,
|
|
573
|
+
method: "GET"
|
|
574
|
+
});
|
|
575
|
+
return buildSegmentsBehaviorSegmentsGetFetcher(requestInit)(requestInfo);
|
|
576
|
+
};
|
|
495
577
|
|
|
496
578
|
// src/fetch/segmentsProfileSegments.ts
|
|
497
579
|
var import_api_client_base10 = require("@readyfor/api-client-base");
|
|
498
580
|
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
|
-
|
|
581
|
+
var getSegmentsProfileSegments = (customRequestInit) => {
|
|
582
|
+
const requestInfo = (0, import_api_client_base10.__internal__requestUrl)("/api/segments/profile_segments");
|
|
583
|
+
const requestInit = (0, import_api_client_base10.buildRequestInitWithDefaultConfig)({
|
|
584
|
+
...customRequestInit,
|
|
585
|
+
method: "GET"
|
|
586
|
+
});
|
|
587
|
+
return buildSegmentsProfileSegmentsGetFetcher(requestInit)(requestInfo);
|
|
588
|
+
};
|
|
503
589
|
|
|
504
590
|
// src/fetch/segmentsTargetUsersCount.ts
|
|
505
591
|
var import_api_client_base11 = require("@readyfor/api-client-base");
|
|
506
592
|
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
|
-
|
|
593
|
+
var getSegmentsTargetUsersCount = (query, customRequestInit) => {
|
|
594
|
+
const requestInfo = (0, import_api_client_base11.__internal__requestUrl)(
|
|
595
|
+
"/api/segments/target_users_count",
|
|
596
|
+
{},
|
|
597
|
+
query
|
|
598
|
+
);
|
|
599
|
+
const requestInit = (0, import_api_client_base11.buildRequestInitWithDefaultConfig)({
|
|
600
|
+
...customRequestInit,
|
|
601
|
+
method: "GET"
|
|
602
|
+
});
|
|
603
|
+
return buildSegmentsTargetUsersCountGetFetcher(requestInit)(requestInfo);
|
|
604
|
+
};
|
|
511
605
|
// Annotate the CommonJS export names for ESM import in node:
|
|
512
606
|
0 && (module.exports = {
|
|
513
607
|
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-KL2DA5QY.mjs";
|
|
6
6
|
import {
|
|
7
7
|
buildCampaignsIdPreviewDeliveryEmailPostFetcher,
|
|
8
8
|
postCampaignsIdPreviewDeliveryEmail
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MB4UQS7V.mjs";
|
|
10
10
|
import {
|
|
11
11
|
buildProjectsProjectIdOrKeywordGetFetcher,
|
|
12
12
|
getProjectsProjectIdOrKeyword
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2UJ4AWWH.mjs";
|
|
14
14
|
import {
|
|
15
15
|
buildSegmentsBehaviorSegmentsGetFetcher,
|
|
16
16
|
getSegmentsBehaviorSegments
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4NGGO3G6.mjs";
|
|
18
18
|
import {
|
|
19
19
|
buildSegmentsProfileSegmentsGetFetcher,
|
|
20
20
|
getSegmentsProfileSegments
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-U7AEZYNN.mjs";
|
|
22
22
|
import {
|
|
23
23
|
buildSegmentsTargetUsersCountGetFetcher,
|
|
24
24
|
getSegmentsTargetUsersCount
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-VGMORDQ4.mjs";
|
|
26
26
|
import {
|
|
27
27
|
buildCampaignsGetFetcher,
|
|
28
28
|
buildCampaignsPostFetcher,
|
|
29
29
|
getCampaigns,
|
|
30
30
|
postCampaigns
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-4INIKTKJ.mjs";
|
|
32
32
|
import {
|
|
33
33
|
buildCampaignsCampaignIdImagesIdDeleteFetcher,
|
|
34
34
|
deleteCampaignsCampaignIdImagesId
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-WISELSRL.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-AGTNHB2D.mjs";
|
|
44
44
|
import {
|
|
45
45
|
buildCampaignsIdDeliveryJobDeleteFetcher,
|
|
46
46
|
buildCampaignsIdDeliveryJobPostFetcher,
|
|
47
47
|
deleteCampaignsIdDeliveryJob,
|
|
48
48
|
postCampaignsIdDeliveryJob
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-UENEH462.mjs";
|
|
50
50
|
import {
|
|
51
51
|
buildCampaignsIdImagesPostFetcher,
|
|
52
52
|
postCampaignsIdImages
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-RC6SX75E.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.
|
|
3
|
+
"version": "0.242.0-pr981.0796eec",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -20,27 +20,24 @@
|
|
|
20
20
|
"require": "./dist/hooks/index.js"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"build": "tsup"
|
|
25
|
-
},
|
|
26
23
|
"devDependencies": {
|
|
27
|
-
"@readyfor/api-client-base": "0.241.0",
|
|
28
24
|
"@types/qs": "6.9.18",
|
|
29
25
|
"@types/react": "19.1.2",
|
|
30
26
|
"@types/use-sync-external-store": "1.5.0",
|
|
31
27
|
"qs": "^6.13.1",
|
|
32
|
-
"react": "
|
|
33
|
-
"swr": "
|
|
34
|
-
"use-sync-external-store": "
|
|
35
|
-
"zod": "^3.24.1"
|
|
28
|
+
"react": "19.1.0",
|
|
29
|
+
"swr": "2.3.3",
|
|
30
|
+
"use-sync-external-store": "1.5.0",
|
|
31
|
+
"zod": "^3.24.1",
|
|
32
|
+
"@readyfor/api-client-base": "0.242.0-pr981.0796eec"
|
|
36
33
|
},
|
|
37
34
|
"peerDependencies": {
|
|
38
|
-
"@readyfor/api-client-base": "*",
|
|
39
35
|
"qs": "^6",
|
|
40
36
|
"react": ">=18.x <=19.x",
|
|
41
37
|
"swr": "^2.3.3",
|
|
42
38
|
"use-sync-external-store": "^1.2.2",
|
|
43
|
-
"zod": "^3"
|
|
39
|
+
"zod": "^3",
|
|
40
|
+
"@readyfor/api-client-base": "0.242.0-pr981.0796eec"
|
|
44
41
|
},
|
|
45
42
|
"peerDependenciesMeta": {
|
|
46
43
|
"react": {
|
|
@@ -65,5 +62,7 @@
|
|
|
65
62
|
"src"
|
|
66
63
|
]
|
|
67
64
|
},
|
|
68
|
-
"
|
|
69
|
-
|
|
65
|
+
"scripts": {
|
|
66
|
+
"build": "tsup"
|
|
67
|
+
}
|
|
68
|
+
}
|
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
|
-
};
|