@readyfor/api-client-pigeon 0.238.0 → 0.240.0-pr981.599560e
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-VUY6GQWT.mjs → chunk-27GLDQK3.mjs} +1 -1
- package/dist/chunk-2B6GQILG.mjs +24 -0
- package/dist/chunk-2MRIEXEQ.mjs +29 -0
- package/dist/chunk-4YF2M7Y7.mjs +29 -0
- package/dist/chunk-AQVUMZVL.mjs +24 -0
- package/dist/chunk-CABZT6BU.mjs +30 -0
- package/dist/{chunk-3BSY3CC4.mjs → chunk-EN3CP4JR.mjs} +1 -1
- package/dist/chunk-HNVHV5GD.mjs +41 -0
- package/dist/chunk-JXZJCPX3.mjs +28 -0
- package/dist/chunk-NKU3JO55.mjs +37 -0
- package/dist/chunk-O4CHNDYY.mjs +28 -0
- package/dist/{chunk-DQW3ZEJN.mjs → chunk-QKM5JPTE.mjs} +1 -1
- package/dist/{chunk-S2M3EJKW.mjs → chunk-T3IYQXXP.mjs} +1 -1
- package/dist/{chunk-LUUW3QOB.mjs → chunk-TLGSSZT7.mjs} +1 -1
- package/dist/chunk-UTUZQQT6.mjs +25 -0
- package/dist/{chunk-ZDQDW24D.mjs → chunk-UU5WXXGN.mjs} +1 -1
- package/dist/{chunk-KL2BCQLU.mjs → chunk-W6D6J2QD.mjs} +1 -1
- package/dist/chunk-YT25LCGA.mjs +48 -0
- package/dist/fetch/campaigns.d.mts +4 -4
- package/dist/fetch/campaigns.d.ts +4 -4
- package/dist/fetch/campaigns.js +23 -12
- package/dist/fetch/campaigns.mjs +1 -1
- package/dist/fetch/campaignsCampaignIdImagesId.d.mts +2 -2
- package/dist/fetch/campaignsCampaignIdImagesId.d.ts +2 -2
- package/dist/fetch/campaignsCampaignIdImagesId.js +14 -5
- package/dist/fetch/campaignsCampaignIdImagesId.mjs +1 -1
- package/dist/fetch/campaignsId.d.mts +6 -6
- package/dist/fetch/campaignsId.d.ts +6 -6
- package/dist/fetch/campaignsId.js +28 -15
- package/dist/fetch/campaignsId.mjs +1 -1
- package/dist/fetch/campaignsIdDeliveryJob.d.mts +4 -4
- package/dist/fetch/campaignsIdDeliveryJob.d.ts +4 -4
- package/dist/fetch/campaignsIdDeliveryJob.js +24 -10
- package/dist/fetch/campaignsIdDeliveryJob.mjs +1 -1
- package/dist/fetch/campaignsIdImages.d.mts +2 -2
- package/dist/fetch/campaignsIdImages.d.ts +2 -2
- package/dist/fetch/campaignsIdImages.js +13 -5
- package/dist/fetch/campaignsIdImages.mjs +1 -1
- package/dist/fetch/campaignsIdPreview.d.mts +2 -2
- package/dist/fetch/campaignsIdPreview.d.ts +2 -2
- package/dist/fetch/campaignsIdPreview.js +14 -5
- package/dist/fetch/campaignsIdPreview.mjs +1 -1
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.mts +2 -2
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.ts +2 -2
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.js +17 -8
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.mjs +1 -1
- package/dist/fetch/projectsProjectIdOrKeyword.d.mts +2 -2
- package/dist/fetch/projectsProjectIdOrKeyword.d.ts +2 -2
- package/dist/fetch/projectsProjectIdOrKeyword.js +14 -5
- package/dist/fetch/projectsProjectIdOrKeyword.mjs +1 -1
- package/dist/fetch/segmentsBehaviorSegments.d.mts +2 -2
- package/dist/fetch/segmentsBehaviorSegments.d.ts +2 -2
- package/dist/fetch/segmentsBehaviorSegments.js +9 -5
- package/dist/fetch/segmentsBehaviorSegments.mjs +1 -1
- package/dist/fetch/segmentsProfileSegments.d.mts +2 -2
- package/dist/fetch/segmentsProfileSegments.d.ts +2 -2
- package/dist/fetch/segmentsProfileSegments.js +9 -5
- package/dist/fetch/segmentsProfileSegments.mjs +1 -1
- package/dist/fetch/segmentsTargetUsersCount.d.mts +2 -2
- package/dist/fetch/segmentsTargetUsersCount.d.ts +2 -2
- package/dist/fetch/segmentsTargetUsersCount.js +13 -5
- package/dist/fetch/segmentsTargetUsersCount.mjs +1 -1
- package/dist/hooks/index.js +11 -7
- package/dist/hooks/index.mjs +18 -18
- package/dist/hooks/useCampaigns.js +1 -1
- package/dist/hooks/useCampaigns.mjs +12 -12
- package/dist/hooks/useCampaignsId.js +1 -1
- package/dist/hooks/useCampaignsId.mjs +12 -12
- package/dist/hooks/useCampaignsIdPreview.js +3 -1
- package/dist/hooks/useCampaignsIdPreview.mjs +12 -12
- package/dist/hooks/useProjectsProjectIdOrKeyword.js +3 -1
- package/dist/hooks/useProjectsProjectIdOrKeyword.mjs +12 -12
- package/dist/hooks/useSegmentsBehaviorSegments.js +1 -1
- package/dist/hooks/useSegmentsBehaviorSegments.mjs +12 -12
- package/dist/hooks/useSegmentsProfileSegments.js +1 -1
- package/dist/hooks/useSegmentsProfileSegments.mjs +12 -12
- package/dist/hooks/useSegmentsTargetUsersCount.js +1 -1
- package/dist/hooks/useSegmentsTargetUsersCount.mjs +12 -12
- package/dist/index.js +178 -80
- 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-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
package/dist/index.js
CHANGED
|
@@ -396,118 +396,216 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
396
396
|
|
|
397
397
|
// src/fetch/campaigns.ts
|
|
398
398
|
var import_api_client_base = require("@readyfor/api-client-base");
|
|
399
|
-
var buildCampaignsGetFetcher = (
|
|
400
|
-
var getCampaigns = (query,
|
|
401
|
-
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns", {}, query)
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
399
|
+
var buildCampaignsGetFetcher = (customRequestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsResponse, { ...customRequestInit });
|
|
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
|
+
};
|
|
408
|
+
var buildCampaignsPostFetcher = (customRequestInit) => (0, import_api_client_base.createJsonFetcher)(PostCampaignsResponse, { ...customRequestInit });
|
|
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
|
-
var buildCampaignsIdGetFetcher = (
|
|
415
|
-
var getCampaignsId = (path,
|
|
416
|
-
(0, import_api_client_base2.__internal__requestUrl)("/api/campaigns/{id}", path)
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
(
|
|
422
|
-
|
|
423
|
-
);
|
|
424
|
-
var
|
|
425
|
-
|
|
426
|
-
(0, import_api_client_base2.
|
|
427
|
-
|
|
428
|
-
|
|
425
|
+
var buildCampaignsIdGetFetcher = (customRequestInit) => (0, import_api_client_base2.createJsonFetcher)(CampaignsCampaignIdResponse, { ...customRequestInit });
|
|
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
|
+
};
|
|
434
|
+
var buildCampaignsIdDeleteFetcher = (customRequestInit) => (0, import_api_client_base2.createVoidFetcher)({ ...customRequestInit });
|
|
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
|
+
};
|
|
443
|
+
var buildCampaignsIdPatchFetcher = (customRequestInit) => (0, import_api_client_base2.createJsonFetcher)(CampaignsCampaignIdResponse, { ...customRequestInit });
|
|
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
|
-
var buildCampaignsIdDeliveryJobPostFetcher = (
|
|
433
|
-
var postCampaignsIdDeliveryJob = (path,
|
|
434
|
-
(0, import_api_client_base3.__internal__requestUrl)(
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
);
|
|
456
|
+
var buildCampaignsIdDeliveryJobPostFetcher = (customRequestInit) => (0, import_api_client_base3.createVoidFetcher)({ ...customRequestInit });
|
|
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
|
+
};
|
|
468
|
+
var buildCampaignsIdDeliveryJobDeleteFetcher = (customRequestInit) => (0, import_api_client_base3.createVoidFetcher)({ ...customRequestInit });
|
|
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
|
-
var buildCampaignsIdPreviewGetFetcher = (
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
)
|
|
483
|
+
var buildCampaignsIdPreviewGetFetcher = (customRequestInit) => (0, import_api_client_base4.createJsonFetcher)(GetCampaignsCampaignIdPreviewResponse, {
|
|
484
|
+
...customRequestInit
|
|
485
|
+
});
|
|
486
|
+
var getCampaignsIdPreview = (path, customRequestInit) => {
|
|
487
|
+
const requestInfo = (0, import_api_client_base4.__internal__requestUrl)(
|
|
488
|
+
"/api/campaigns/{id}/preview",
|
|
489
|
+
path
|
|
490
|
+
);
|
|
491
|
+
const requestInit = (0, import_api_client_base4.buildRequestInitWithDefaultConfig)({
|
|
492
|
+
...customRequestInit,
|
|
493
|
+
method: "GET"
|
|
494
|
+
});
|
|
495
|
+
return buildCampaignsIdPreviewGetFetcher(requestInit)(requestInfo);
|
|
496
|
+
};
|
|
450
497
|
|
|
451
498
|
// src/fetch/campaignsIdPreviewDeliveryEmail.ts
|
|
452
499
|
var import_api_client_base5 = require("@readyfor/api-client-base");
|
|
453
|
-
var buildCampaignsIdPreviewDeliveryEmailPostFetcher = (
|
|
454
|
-
var postCampaignsIdPreviewDeliveryEmail = (path, requestBody,
|
|
455
|
-
(0, import_api_client_base5.__internal__requestUrl)(
|
|
456
|
-
|
|
457
|
-
|
|
500
|
+
var buildCampaignsIdPreviewDeliveryEmailPostFetcher = (customRequestInit) => (0, import_api_client_base5.createVoidFetcher)({ ...customRequestInit });
|
|
501
|
+
var postCampaignsIdPreviewDeliveryEmail = (path, requestBody, customRequestInit) => {
|
|
502
|
+
const requestInfo = (0, import_api_client_base5.__internal__requestUrl)(
|
|
503
|
+
"/api/campaigns/{id}/preview_delivery_email",
|
|
504
|
+
path
|
|
505
|
+
);
|
|
506
|
+
const requestInit = (0, import_api_client_base5.buildRequestInitWithDefaultConfig)({
|
|
507
|
+
...customRequestInit,
|
|
458
508
|
method: "POST",
|
|
459
|
-
headers: {
|
|
509
|
+
headers: {
|
|
510
|
+
...customRequestInit?.headers,
|
|
511
|
+
"Content-Type": "application/json"
|
|
512
|
+
},
|
|
460
513
|
body: JSON.stringify(requestBody)
|
|
461
|
-
}
|
|
462
|
-
)
|
|
514
|
+
});
|
|
515
|
+
return buildCampaignsIdPreviewDeliveryEmailPostFetcher(requestInit)(
|
|
516
|
+
requestInfo
|
|
517
|
+
);
|
|
518
|
+
};
|
|
463
519
|
|
|
464
520
|
// src/fetch/campaignsIdImages.ts
|
|
465
521
|
var import_api_client_base6 = require("@readyfor/api-client-base");
|
|
466
|
-
var buildCampaignsIdImagesPostFetcher = (
|
|
467
|
-
var postCampaignsIdImages = (path, requestBody,
|
|
468
|
-
(0, import_api_client_base6.__internal__requestUrl)(
|
|
469
|
-
|
|
470
|
-
|
|
522
|
+
var buildCampaignsIdImagesPostFetcher = (customRequestInit) => (0, import_api_client_base6.createJsonFetcher)(Image, { ...customRequestInit });
|
|
523
|
+
var postCampaignsIdImages = (path, requestBody, customRequestInit) => {
|
|
524
|
+
const requestInfo = (0, import_api_client_base6.__internal__requestUrl)(
|
|
525
|
+
"/api/campaigns/{id}/images",
|
|
526
|
+
path
|
|
527
|
+
);
|
|
528
|
+
const requestInit = (0, import_api_client_base6.buildRequestInitWithDefaultConfig)({
|
|
529
|
+
...customRequestInit,
|
|
530
|
+
method: "POST",
|
|
531
|
+
body: requestBody
|
|
532
|
+
});
|
|
533
|
+
return buildCampaignsIdImagesPostFetcher(requestInit)(requestInfo);
|
|
534
|
+
};
|
|
471
535
|
|
|
472
536
|
// src/fetch/campaignsCampaignIdImagesId.ts
|
|
473
537
|
var import_api_client_base7 = require("@readyfor/api-client-base");
|
|
474
|
-
var buildCampaignsCampaignIdImagesIdDeleteFetcher = (
|
|
475
|
-
var deleteCampaignsCampaignIdImagesId = (path,
|
|
476
|
-
(0, import_api_client_base7.__internal__requestUrl)(
|
|
477
|
-
|
|
478
|
-
|
|
538
|
+
var buildCampaignsCampaignIdImagesIdDeleteFetcher = (customRequestInit) => (0, import_api_client_base7.createVoidFetcher)({ ...customRequestInit });
|
|
539
|
+
var deleteCampaignsCampaignIdImagesId = (path, customRequestInit) => {
|
|
540
|
+
const requestInfo = (0, import_api_client_base7.__internal__requestUrl)(
|
|
541
|
+
"/api/campaigns/{campaign_id}/images/{id}",
|
|
542
|
+
path
|
|
543
|
+
);
|
|
544
|
+
const requestInit = (0, import_api_client_base7.buildRequestInitWithDefaultConfig)({
|
|
545
|
+
...customRequestInit,
|
|
546
|
+
method: "DELETE"
|
|
547
|
+
});
|
|
548
|
+
return buildCampaignsCampaignIdImagesIdDeleteFetcher(requestInit)(
|
|
549
|
+
requestInfo
|
|
550
|
+
);
|
|
551
|
+
};
|
|
479
552
|
|
|
480
553
|
// src/fetch/projectsProjectIdOrKeyword.ts
|
|
481
554
|
var import_api_client_base8 = require("@readyfor/api-client-base");
|
|
482
|
-
var buildProjectsProjectIdOrKeywordGetFetcher = (
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
)
|
|
555
|
+
var buildProjectsProjectIdOrKeywordGetFetcher = (customRequestInit) => (0, import_api_client_base8.createJsonFetcher)(GetProjectsProjectIdOrKeywordResponse, {
|
|
556
|
+
...customRequestInit
|
|
557
|
+
});
|
|
558
|
+
var getProjectsProjectIdOrKeyword = (path, customRequestInit) => {
|
|
559
|
+
const requestInfo = (0, import_api_client_base8.__internal__requestUrl)(
|
|
560
|
+
"/api/projects/{project_id_or_keyword}",
|
|
561
|
+
path
|
|
562
|
+
);
|
|
563
|
+
const requestInit = (0, import_api_client_base8.buildRequestInitWithDefaultConfig)({
|
|
564
|
+
...customRequestInit,
|
|
565
|
+
method: "GET"
|
|
566
|
+
});
|
|
567
|
+
return buildProjectsProjectIdOrKeywordGetFetcher(requestInit)(requestInfo);
|
|
568
|
+
};
|
|
487
569
|
|
|
488
570
|
// src/fetch/segmentsBehaviorSegments.ts
|
|
489
571
|
var import_api_client_base9 = require("@readyfor/api-client-base");
|
|
490
|
-
var buildSegmentsBehaviorSegmentsGetFetcher = (
|
|
491
|
-
var getSegmentsBehaviorSegments = (
|
|
492
|
-
(0, import_api_client_base9.__internal__requestUrl)("/api/segments/behavior_segments")
|
|
493
|
-
|
|
494
|
-
|
|
572
|
+
var buildSegmentsBehaviorSegmentsGetFetcher = (customRequestInit) => (0, import_api_client_base9.createJsonFetcher)(GetBehaviorSegmentsResponse, { ...customRequestInit });
|
|
573
|
+
var getSegmentsBehaviorSegments = (customRequestInit) => {
|
|
574
|
+
const requestInfo = (0, import_api_client_base9.__internal__requestUrl)("/api/segments/behavior_segments");
|
|
575
|
+
const requestInit = (0, import_api_client_base9.buildRequestInitWithDefaultConfig)({
|
|
576
|
+
...customRequestInit,
|
|
577
|
+
method: "GET"
|
|
578
|
+
});
|
|
579
|
+
return buildSegmentsBehaviorSegmentsGetFetcher(requestInit)(requestInfo);
|
|
580
|
+
};
|
|
495
581
|
|
|
496
582
|
// src/fetch/segmentsProfileSegments.ts
|
|
497
583
|
var import_api_client_base10 = require("@readyfor/api-client-base");
|
|
498
|
-
var buildSegmentsProfileSegmentsGetFetcher = (
|
|
499
|
-
var getSegmentsProfileSegments = (
|
|
500
|
-
(0, import_api_client_base10.__internal__requestUrl)("/api/segments/profile_segments")
|
|
501
|
-
|
|
502
|
-
|
|
584
|
+
var buildSegmentsProfileSegmentsGetFetcher = (customRequestInit) => (0, import_api_client_base10.createJsonFetcher)(GetProfileSegmentsResponse, { ...customRequestInit });
|
|
585
|
+
var getSegmentsProfileSegments = (customRequestInit) => {
|
|
586
|
+
const requestInfo = (0, import_api_client_base10.__internal__requestUrl)("/api/segments/profile_segments");
|
|
587
|
+
const requestInit = (0, import_api_client_base10.buildRequestInitWithDefaultConfig)({
|
|
588
|
+
...customRequestInit,
|
|
589
|
+
method: "GET"
|
|
590
|
+
});
|
|
591
|
+
return buildSegmentsProfileSegmentsGetFetcher(requestInit)(requestInfo);
|
|
592
|
+
};
|
|
503
593
|
|
|
504
594
|
// src/fetch/segmentsTargetUsersCount.ts
|
|
505
595
|
var import_api_client_base11 = require("@readyfor/api-client-base");
|
|
506
|
-
var buildSegmentsTargetUsersCountGetFetcher = (
|
|
507
|
-
var getSegmentsTargetUsersCount = (query,
|
|
508
|
-
(0, import_api_client_base11.__internal__requestUrl)(
|
|
509
|
-
|
|
510
|
-
|
|
596
|
+
var buildSegmentsTargetUsersCountGetFetcher = (customRequestInit) => (0, import_api_client_base11.createJsonFetcher)(GetTargetUsersCountResponse, { ...customRequestInit });
|
|
597
|
+
var getSegmentsTargetUsersCount = (query, customRequestInit) => {
|
|
598
|
+
const requestInfo = (0, import_api_client_base11.__internal__requestUrl)(
|
|
599
|
+
"/api/segments/target_users_count",
|
|
600
|
+
{},
|
|
601
|
+
query
|
|
602
|
+
);
|
|
603
|
+
const requestInit = (0, import_api_client_base11.buildRequestInitWithDefaultConfig)({
|
|
604
|
+
...customRequestInit,
|
|
605
|
+
method: "GET"
|
|
606
|
+
});
|
|
607
|
+
return buildSegmentsTargetUsersCountGetFetcher(requestInit)(requestInfo);
|
|
608
|
+
};
|
|
511
609
|
// Annotate the CommonJS export names for ESM import in node:
|
|
512
610
|
0 && (module.exports = {
|
|
513
611
|
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-4YF2M7Y7.mjs";
|
|
6
6
|
import {
|
|
7
7
|
buildCampaignsIdPreviewDeliveryEmailPostFetcher,
|
|
8
8
|
postCampaignsIdPreviewDeliveryEmail
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CABZT6BU.mjs";
|
|
10
10
|
import {
|
|
11
11
|
buildProjectsProjectIdOrKeywordGetFetcher,
|
|
12
12
|
getProjectsProjectIdOrKeyword
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2MRIEXEQ.mjs";
|
|
14
14
|
import {
|
|
15
15
|
buildSegmentsBehaviorSegmentsGetFetcher,
|
|
16
16
|
getSegmentsBehaviorSegments
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2B6GQILG.mjs";
|
|
18
18
|
import {
|
|
19
19
|
buildSegmentsProfileSegmentsGetFetcher,
|
|
20
20
|
getSegmentsProfileSegments
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-AQVUMZVL.mjs";
|
|
22
22
|
import {
|
|
23
23
|
buildSegmentsTargetUsersCountGetFetcher,
|
|
24
24
|
getSegmentsTargetUsersCount
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-O4CHNDYY.mjs";
|
|
26
26
|
import {
|
|
27
27
|
buildCampaignsGetFetcher,
|
|
28
28
|
buildCampaignsPostFetcher,
|
|
29
29
|
getCampaigns,
|
|
30
30
|
postCampaigns
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-HNVHV5GD.mjs";
|
|
32
32
|
import {
|
|
33
33
|
buildCampaignsCampaignIdImagesIdDeleteFetcher,
|
|
34
34
|
deleteCampaignsCampaignIdImagesId
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-UTUZQQT6.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-YT25LCGA.mjs";
|
|
44
44
|
import {
|
|
45
45
|
buildCampaignsIdDeliveryJobDeleteFetcher,
|
|
46
46
|
buildCampaignsIdDeliveryJobPostFetcher,
|
|
47
47
|
deleteCampaignsIdDeliveryJob,
|
|
48
48
|
postCampaignsIdDeliveryJob
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-NKU3JO55.mjs";
|
|
50
50
|
import {
|
|
51
51
|
buildCampaignsIdImagesPostFetcher,
|
|
52
52
|
postCampaignsIdImages
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-JXZJCPX3.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.240.0-pr981.599560e",
|
|
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.238.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.240.0-pr981.599560e"
|
|
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.240.0-pr981.599560e"
|
|
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
|
-
};
|
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
|
-
};
|
package/dist/chunk-KBTZNIQJ.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// src/fetch/campaignsIdPreviewDeliveryEmail.ts
|
|
2
|
-
import {
|
|
3
|
-
createVoidFetcher,
|
|
4
|
-
__internal__requestUrl
|
|
5
|
-
} from "@readyfor/api-client-base";
|
|
6
|
-
var buildCampaignsIdPreviewDeliveryEmailPostFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
|
|
7
|
-
var postCampaignsIdPreviewDeliveryEmail = (path, requestBody, requestInit) => buildCampaignsIdPreviewDeliveryEmailPostFetcher()(
|
|
8
|
-
__internal__requestUrl("/api/campaigns/{id}/preview_delivery_email", path),
|
|
9
|
-
{
|
|
10
|
-
...requestInit,
|
|
11
|
-
method: "POST",
|
|
12
|
-
headers: { ...requestInit?.headers, "Content-Type": "application/json" },
|
|
13
|
-
body: JSON.stringify(requestBody)
|
|
14
|
-
}
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
buildCampaignsIdPreviewDeliveryEmailPostFetcher,
|
|
19
|
-
postCampaignsIdPreviewDeliveryEmail
|
|
20
|
-
};
|
package/dist/chunk-MFCSQX6F.mjs
DELETED
|
@@ -1,29 +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
|
-
} from "@readyfor/api-client-base";
|
|
11
|
-
var buildCampaignsGetFetcher = (requestInit) => createJsonFetcher(GetCampaignsResponse, { ...requestInit });
|
|
12
|
-
var getCampaigns = (query, requestInit) => buildCampaignsGetFetcher()(
|
|
13
|
-
__internal__requestUrl("/api/campaigns", {}, query),
|
|
14
|
-
{ ...requestInit, method: "GET" }
|
|
15
|
-
);
|
|
16
|
-
var buildCampaignsPostFetcher = (requestInit) => createJsonFetcher(PostCampaignsResponse, { ...requestInit });
|
|
17
|
-
var postCampaigns = (requestBody, requestInit) => buildCampaignsPostFetcher()(__internal__requestUrl("/api/campaigns"), {
|
|
18
|
-
...requestInit,
|
|
19
|
-
method: "POST",
|
|
20
|
-
headers: { ...requestInit?.headers, "Content-Type": "application/json" },
|
|
21
|
-
body: JSON.stringify(requestBody)
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export {
|
|
25
|
-
buildCampaignsGetFetcher,
|
|
26
|
-
getCampaigns,
|
|
27
|
-
buildCampaignsPostFetcher,
|
|
28
|
-
postCampaigns
|
|
29
|
-
};
|
package/dist/chunk-NIBXTDD3.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// src/fetch/campaignsCampaignIdImagesId.ts
|
|
2
|
-
import {
|
|
3
|
-
createVoidFetcher,
|
|
4
|
-
__internal__requestUrl
|
|
5
|
-
} from "@readyfor/api-client-base";
|
|
6
|
-
var buildCampaignsCampaignIdImagesIdDeleteFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
|
|
7
|
-
var deleteCampaignsCampaignIdImagesId = (path, requestInit) => buildCampaignsCampaignIdImagesIdDeleteFetcher()(
|
|
8
|
-
__internal__requestUrl("/api/campaigns/{campaign_id}/images/{id}", path),
|
|
9
|
-
{ ...requestInit, method: "DELETE" }
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
buildCampaignsCampaignIdImagesIdDeleteFetcher,
|
|
14
|
-
deleteCampaignsCampaignIdImagesId
|
|
15
|
-
};
|
package/dist/chunk-NKNUFH54.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GetProfileSegmentsResponse
|
|
3
|
-
} from "./chunk-QCIAYUXK.mjs";
|
|
4
|
-
|
|
5
|
-
// src/fetch/segmentsProfileSegments.ts
|
|
6
|
-
import {
|
|
7
|
-
createJsonFetcher,
|
|
8
|
-
__internal__requestUrl
|
|
9
|
-
} from "@readyfor/api-client-base";
|
|
10
|
-
var buildSegmentsProfileSegmentsGetFetcher = (requestInit) => createJsonFetcher(GetProfileSegmentsResponse, { ...requestInit });
|
|
11
|
-
var getSegmentsProfileSegments = (requestInit) => buildSegmentsProfileSegmentsGetFetcher()(
|
|
12
|
-
__internal__requestUrl("/api/segments/profile_segments"),
|
|
13
|
-
{ ...requestInit, method: "GET" }
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
buildSegmentsProfileSegmentsGetFetcher,
|
|
18
|
-
getSegmentsProfileSegments
|
|
19
|
-
};
|
package/dist/chunk-VJU27CZQ.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GetProjectsProjectIdOrKeywordResponse
|
|
3
|
-
} from "./chunk-QCIAYUXK.mjs";
|
|
4
|
-
|
|
5
|
-
// src/fetch/projectsProjectIdOrKeyword.ts
|
|
6
|
-
import {
|
|
7
|
-
createJsonFetcher,
|
|
8
|
-
__internal__requestUrl
|
|
9
|
-
} from "@readyfor/api-client-base";
|
|
10
|
-
var buildProjectsProjectIdOrKeywordGetFetcher = (requestInit) => createJsonFetcher(GetProjectsProjectIdOrKeywordResponse, { ...requestInit });
|
|
11
|
-
var getProjectsProjectIdOrKeyword = (path, requestInit) => buildProjectsProjectIdOrKeywordGetFetcher()(
|
|
12
|
-
__internal__requestUrl("/api/projects/{project_id_or_keyword}", path),
|
|
13
|
-
{ ...requestInit, method: "GET" }
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
buildProjectsProjectIdOrKeywordGetFetcher,
|
|
18
|
-
getProjectsProjectIdOrKeyword
|
|
19
|
-
};
|