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