@readyfor/api-client-pigeon 0.240.0-pr982.47c0748 → 0.241.0
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-EN3CP4JR.mjs → chunk-3BSY3CC4.mjs} +1 -1
- package/dist/chunk-6DE2SHQZ.mjs +19 -0
- package/dist/chunk-BGIB7JQD.mjs +19 -0
- package/dist/chunk-D455PCO3.mjs +19 -0
- package/dist/chunk-DH3UXOBA.mjs +19 -0
- package/dist/{chunk-QKM5JPTE.mjs → chunk-DQW3ZEJN.mjs} +1 -1
- package/dist/chunk-EYJTETGN.mjs +34 -0
- package/dist/chunk-KBTZNIQJ.mjs +20 -0
- package/dist/{chunk-W6D6J2QD.mjs → chunk-KL2BCQLU.mjs} +1 -1
- package/dist/{chunk-TLGSSZT7.mjs → chunk-LUUW3QOB.mjs} +1 -1
- package/dist/chunk-MFCSQX6F.mjs +29 -0
- package/dist/chunk-NIBXTDD3.mjs +15 -0
- package/dist/chunk-NKNUFH54.mjs +19 -0
- package/dist/{chunk-T3IYQXXP.mjs → chunk-S2M3EJKW.mjs} +1 -1
- package/dist/chunk-VJU27CZQ.mjs +19 -0
- package/dist/{chunk-27GLDQK3.mjs → chunk-VUY6GQWT.mjs} +1 -1
- package/dist/chunk-YV4XRZY2.mjs +22 -0
- package/dist/{chunk-UU5WXXGN.mjs → chunk-ZDQDW24D.mjs} +1 -1
- package/dist/fetch/campaigns.d.mts +4 -4
- package/dist/fetch/campaigns.d.ts +4 -4
- package/dist/fetch/campaigns.js +12 -23
- 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 +5 -14
- 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 +15 -28
- 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 +10 -24
- 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 +5 -13
- 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 +5 -14
- 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 +8 -17
- 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 +5 -14
- 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 +5 -9
- 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 +5 -9
- 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 +5 -13
- package/dist/fetch/segmentsTargetUsersCount.mjs +1 -1
- package/dist/hooks/index.js +7 -11
- 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 +1 -3
- package/dist/hooks/useCampaignsIdPreview.mjs +12 -12
- package/dist/hooks/useProjectsProjectIdOrKeyword.js +1 -3
- 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 +80 -178
- package/dist/index.mjs +11 -11
- package/package.json +13 -12
- package/dist/chunk-2B6GQILG.mjs +0 -24
- package/dist/chunk-2MRIEXEQ.mjs +0 -29
- package/dist/chunk-4YF2M7Y7.mjs +0 -29
- package/dist/chunk-AQVUMZVL.mjs +0 -24
- package/dist/chunk-CABZT6BU.mjs +0 -30
- package/dist/chunk-HNVHV5GD.mjs +0 -41
- package/dist/chunk-JXZJCPX3.mjs +0 -28
- package/dist/chunk-NKU3JO55.mjs +0 -37
- package/dist/chunk-O4CHNDYY.mjs +0 -28
- package/dist/chunk-UTUZQQT6.mjs +0 -25
- package/dist/chunk-YT25LCGA.mjs +0 -48
package/dist/index.js
CHANGED
|
@@ -396,216 +396,118 @@ 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
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
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
|
-
};
|
|
399
|
+
var buildCampaignsGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsResponse, { ...requestInit });
|
|
400
|
+
var getCampaigns = (query, requestInit) => buildCampaignsGetFetcher()(
|
|
401
|
+
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns", {}, query),
|
|
402
|
+
{ ...requestInit, method: "GET" }
|
|
403
|
+
);
|
|
404
|
+
var buildCampaignsPostFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(PostCampaignsResponse, { ...requestInit });
|
|
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
|
-
var buildCampaignsIdGetFetcher = (
|
|
426
|
-
var getCampaignsId = (path,
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
var
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
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
|
-
};
|
|
414
|
+
var buildCampaignsIdGetFetcher = (requestInit) => (0, import_api_client_base2.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
|
|
415
|
+
var getCampaignsId = (path, requestInit) => buildCampaignsIdGetFetcher()(
|
|
416
|
+
(0, import_api_client_base2.__internal__requestUrl)("/api/campaigns/{id}", path),
|
|
417
|
+
{ ...requestInit, method: "GET" }
|
|
418
|
+
);
|
|
419
|
+
var buildCampaignsIdDeleteFetcher = (requestInit) => (0, import_api_client_base2.createVoidFetcher)({ ...requestInit });
|
|
420
|
+
var deleteCampaignsId = (path, requestInit) => buildCampaignsIdDeleteFetcher()(
|
|
421
|
+
(0, import_api_client_base2.__internal__requestUrl)("/api/campaigns/{id}", path),
|
|
422
|
+
{ ...requestInit, method: "DELETE" }
|
|
423
|
+
);
|
|
424
|
+
var buildCampaignsIdPatchFetcher = (requestInit) => (0, import_api_client_base2.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
|
|
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
|
-
var buildCampaignsIdDeliveryJobPostFetcher = (
|
|
457
|
-
var postCampaignsIdDeliveryJob = (path,
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
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
|
-
};
|
|
432
|
+
var buildCampaignsIdDeliveryJobPostFetcher = (requestInit) => (0, import_api_client_base3.createVoidFetcher)({ ...requestInit });
|
|
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
|
+
);
|
|
437
|
+
var buildCampaignsIdDeliveryJobDeleteFetcher = (requestInit) => (0, import_api_client_base3.createVoidFetcher)({ ...requestInit });
|
|
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
|
-
var buildCampaignsIdPreviewGetFetcher = (
|
|
484
|
-
|
|
485
|
-
})
|
|
486
|
-
|
|
487
|
-
|
|
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
|
-
};
|
|
445
|
+
var buildCampaignsIdPreviewGetFetcher = (requestInit) => (0, import_api_client_base4.createJsonFetcher)(GetCampaignsCampaignIdPreviewResponse, { ...requestInit });
|
|
446
|
+
var getCampaignsIdPreview = (path, requestInit) => buildCampaignsIdPreviewGetFetcher()(
|
|
447
|
+
(0, import_api_client_base4.__internal__requestUrl)("/api/campaigns/{id}/preview", path),
|
|
448
|
+
{ ...requestInit, method: "GET" }
|
|
449
|
+
);
|
|
497
450
|
|
|
498
451
|
// src/fetch/campaignsIdPreviewDeliveryEmail.ts
|
|
499
452
|
var import_api_client_base5 = require("@readyfor/api-client-base");
|
|
500
|
-
var buildCampaignsIdPreviewDeliveryEmailPostFetcher = (
|
|
501
|
-
var postCampaignsIdPreviewDeliveryEmail = (path, requestBody,
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
);
|
|
506
|
-
const requestInit = (0, import_api_client_base5.buildRequestInitWithDefaultConfig)({
|
|
507
|
-
...customRequestInit,
|
|
453
|
+
var buildCampaignsIdPreviewDeliveryEmailPostFetcher = (requestInit) => (0, import_api_client_base5.createVoidFetcher)({ ...requestInit });
|
|
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,
|
|
508
458
|
method: "POST",
|
|
509
|
-
headers: {
|
|
510
|
-
...customRequestInit?.headers,
|
|
511
|
-
"Content-Type": "application/json"
|
|
512
|
-
},
|
|
459
|
+
headers: { ...requestInit?.headers, "Content-Type": "application/json" },
|
|
513
460
|
body: JSON.stringify(requestBody)
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
requestInfo
|
|
517
|
-
);
|
|
518
|
-
};
|
|
461
|
+
}
|
|
462
|
+
);
|
|
519
463
|
|
|
520
464
|
// src/fetch/campaignsIdImages.ts
|
|
521
465
|
var import_api_client_base6 = require("@readyfor/api-client-base");
|
|
522
|
-
var buildCampaignsIdImagesPostFetcher = (
|
|
523
|
-
var postCampaignsIdImages = (path, requestBody,
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
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
|
-
};
|
|
466
|
+
var buildCampaignsIdImagesPostFetcher = (requestInit) => (0, import_api_client_base6.createJsonFetcher)(Image, { ...requestInit });
|
|
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
|
+
);
|
|
535
471
|
|
|
536
472
|
// src/fetch/campaignsCampaignIdImagesId.ts
|
|
537
473
|
var import_api_client_base7 = require("@readyfor/api-client-base");
|
|
538
|
-
var buildCampaignsCampaignIdImagesIdDeleteFetcher = (
|
|
539
|
-
var deleteCampaignsCampaignIdImagesId = (path,
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
);
|
|
544
|
-
const requestInit = (0, import_api_client_base7.buildRequestInitWithDefaultConfig)({
|
|
545
|
-
...customRequestInit,
|
|
546
|
-
method: "DELETE"
|
|
547
|
-
});
|
|
548
|
-
return buildCampaignsCampaignIdImagesIdDeleteFetcher(requestInit)(
|
|
549
|
-
requestInfo
|
|
550
|
-
);
|
|
551
|
-
};
|
|
474
|
+
var buildCampaignsCampaignIdImagesIdDeleteFetcher = (requestInit) => (0, import_api_client_base7.createVoidFetcher)({ ...requestInit });
|
|
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
|
+
);
|
|
552
479
|
|
|
553
480
|
// src/fetch/projectsProjectIdOrKeyword.ts
|
|
554
481
|
var import_api_client_base8 = require("@readyfor/api-client-base");
|
|
555
|
-
var buildProjectsProjectIdOrKeywordGetFetcher = (
|
|
556
|
-
|
|
557
|
-
})
|
|
558
|
-
|
|
559
|
-
|
|
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
|
-
};
|
|
482
|
+
var buildProjectsProjectIdOrKeywordGetFetcher = (requestInit) => (0, import_api_client_base8.createJsonFetcher)(GetProjectsProjectIdOrKeywordResponse, { ...requestInit });
|
|
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
|
+
);
|
|
569
487
|
|
|
570
488
|
// src/fetch/segmentsBehaviorSegments.ts
|
|
571
489
|
var import_api_client_base9 = require("@readyfor/api-client-base");
|
|
572
|
-
var buildSegmentsBehaviorSegmentsGetFetcher = (
|
|
573
|
-
var getSegmentsBehaviorSegments = (
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
method: "GET"
|
|
578
|
-
});
|
|
579
|
-
return buildSegmentsBehaviorSegmentsGetFetcher(requestInit)(requestInfo);
|
|
580
|
-
};
|
|
490
|
+
var buildSegmentsBehaviorSegmentsGetFetcher = (requestInit) => (0, import_api_client_base9.createJsonFetcher)(GetBehaviorSegmentsResponse, { ...requestInit });
|
|
491
|
+
var getSegmentsBehaviorSegments = (requestInit) => buildSegmentsBehaviorSegmentsGetFetcher()(
|
|
492
|
+
(0, import_api_client_base9.__internal__requestUrl)("/api/segments/behavior_segments"),
|
|
493
|
+
{ ...requestInit, method: "GET" }
|
|
494
|
+
);
|
|
581
495
|
|
|
582
496
|
// src/fetch/segmentsProfileSegments.ts
|
|
583
497
|
var import_api_client_base10 = require("@readyfor/api-client-base");
|
|
584
|
-
var buildSegmentsProfileSegmentsGetFetcher = (
|
|
585
|
-
var getSegmentsProfileSegments = (
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
method: "GET"
|
|
590
|
-
});
|
|
591
|
-
return buildSegmentsProfileSegmentsGetFetcher(requestInit)(requestInfo);
|
|
592
|
-
};
|
|
498
|
+
var buildSegmentsProfileSegmentsGetFetcher = (requestInit) => (0, import_api_client_base10.createJsonFetcher)(GetProfileSegmentsResponse, { ...requestInit });
|
|
499
|
+
var getSegmentsProfileSegments = (requestInit) => buildSegmentsProfileSegmentsGetFetcher()(
|
|
500
|
+
(0, import_api_client_base10.__internal__requestUrl)("/api/segments/profile_segments"),
|
|
501
|
+
{ ...requestInit, method: "GET" }
|
|
502
|
+
);
|
|
593
503
|
|
|
594
504
|
// src/fetch/segmentsTargetUsersCount.ts
|
|
595
505
|
var import_api_client_base11 = require("@readyfor/api-client-base");
|
|
596
|
-
var buildSegmentsTargetUsersCountGetFetcher = (
|
|
597
|
-
var getSegmentsTargetUsersCount = (query,
|
|
598
|
-
|
|
599
|
-
|
|
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
|
-
};
|
|
506
|
+
var buildSegmentsTargetUsersCountGetFetcher = (requestInit) => (0, import_api_client_base11.createJsonFetcher)(GetTargetUsersCountResponse, { ...requestInit });
|
|
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
|
+
);
|
|
609
511
|
// Annotate the CommonJS export names for ESM import in node:
|
|
610
512
|
0 && (module.exports = {
|
|
611
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.
|
|
3
|
+
"version": "0.241.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -20,24 +20,27 @@
|
|
|
20
20
|
"require": "./dist/hooks/index.js"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "tsup"
|
|
25
|
+
},
|
|
23
26
|
"devDependencies": {
|
|
27
|
+
"@readyfor/api-client-base": "0.241.0",
|
|
24
28
|
"@types/qs": "6.9.18",
|
|
25
29
|
"@types/react": "19.1.2",
|
|
26
30
|
"@types/use-sync-external-store": "1.5.0",
|
|
27
31
|
"qs": "^6.13.1",
|
|
28
|
-
"react": "
|
|
29
|
-
"swr": "
|
|
30
|
-
"use-sync-external-store": "
|
|
31
|
-
"zod": "^3.24.1"
|
|
32
|
-
"@readyfor/api-client-base": "0.240.0-pr982.47c0748"
|
|
32
|
+
"react": "catalog:react19",
|
|
33
|
+
"swr": "catalog:",
|
|
34
|
+
"use-sync-external-store": "catalog:use-sync-external-store",
|
|
35
|
+
"zod": "^3.24.1"
|
|
33
36
|
},
|
|
34
37
|
"peerDependencies": {
|
|
38
|
+
"@readyfor/api-client-base": "*",
|
|
35
39
|
"qs": "^6",
|
|
36
40
|
"react": ">=18.x <=19.x",
|
|
37
41
|
"swr": "^2.3.3",
|
|
38
42
|
"use-sync-external-store": "^1.2.2",
|
|
39
|
-
"zod": "^3"
|
|
40
|
-
"@readyfor/api-client-base": "0.240.0-pr982.47c0748"
|
|
43
|
+
"zod": "^3"
|
|
41
44
|
},
|
|
42
45
|
"peerDependenciesMeta": {
|
|
43
46
|
"react": {
|
|
@@ -62,7 +65,5 @@
|
|
|
62
65
|
"src"
|
|
63
66
|
]
|
|
64
67
|
},
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
}
|
|
68
|
+
"gitHead": "f1022b2e216e1b8200db48ca5762a61dd16a50d1"
|
|
69
|
+
}
|
package/dist/chunk-2B6GQILG.mjs
DELETED
|
@@ -1,24 +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
|
-
buildRequestInitWithDefaultConfig
|
|
10
|
-
} from "@readyfor/api-client-base";
|
|
11
|
-
var buildSegmentsBehaviorSegmentsGetFetcher = (customRequestInit) => createJsonFetcher(GetBehaviorSegmentsResponse, { ...customRequestInit });
|
|
12
|
-
var getSegmentsBehaviorSegments = (customRequestInit) => {
|
|
13
|
-
const requestInfo = __internal__requestUrl("/api/segments/behavior_segments");
|
|
14
|
-
const requestInit = buildRequestInitWithDefaultConfig({
|
|
15
|
-
...customRequestInit,
|
|
16
|
-
method: "GET"
|
|
17
|
-
});
|
|
18
|
-
return buildSegmentsBehaviorSegmentsGetFetcher(requestInit)(requestInfo);
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export {
|
|
22
|
-
buildSegmentsBehaviorSegmentsGetFetcher,
|
|
23
|
-
getSegmentsBehaviorSegments
|
|
24
|
-
};
|
package/dist/chunk-2MRIEXEQ.mjs
DELETED
|
@@ -1,29 +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
|
-
buildRequestInitWithDefaultConfig
|
|
10
|
-
} from "@readyfor/api-client-base";
|
|
11
|
-
var buildProjectsProjectIdOrKeywordGetFetcher = (customRequestInit) => createJsonFetcher(GetProjectsProjectIdOrKeywordResponse, {
|
|
12
|
-
...customRequestInit
|
|
13
|
-
});
|
|
14
|
-
var getProjectsProjectIdOrKeyword = (path, customRequestInit) => {
|
|
15
|
-
const requestInfo = __internal__requestUrl(
|
|
16
|
-
"/api/projects/{project_id_or_keyword}",
|
|
17
|
-
path
|
|
18
|
-
);
|
|
19
|
-
const requestInit = buildRequestInitWithDefaultConfig({
|
|
20
|
-
...customRequestInit,
|
|
21
|
-
method: "GET"
|
|
22
|
-
});
|
|
23
|
-
return buildProjectsProjectIdOrKeywordGetFetcher(requestInit)(requestInfo);
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export {
|
|
27
|
-
buildProjectsProjectIdOrKeywordGetFetcher,
|
|
28
|
-
getProjectsProjectIdOrKeyword
|
|
29
|
-
};
|
package/dist/chunk-4YF2M7Y7.mjs
DELETED
|
@@ -1,29 +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 = (customRequestInit) => createJsonFetcher(GetCampaignsCampaignIdPreviewResponse, {
|
|
12
|
-
...customRequestInit
|
|
13
|
-
});
|
|
14
|
-
var getCampaignsIdPreview = (path, customRequestInit) => {
|
|
15
|
-
const requestInfo = __internal__requestUrl(
|
|
16
|
-
"/api/campaigns/{id}/preview",
|
|
17
|
-
path
|
|
18
|
-
);
|
|
19
|
-
const requestInit = buildRequestInitWithDefaultConfig({
|
|
20
|
-
...customRequestInit,
|
|
21
|
-
method: "GET"
|
|
22
|
-
});
|
|
23
|
-
return buildCampaignsIdPreviewGetFetcher(requestInit)(requestInfo);
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export {
|
|
27
|
-
buildCampaignsIdPreviewGetFetcher,
|
|
28
|
-
getCampaignsIdPreview
|
|
29
|
-
};
|
package/dist/chunk-AQVUMZVL.mjs
DELETED
|
@@ -1,24 +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
|
-
buildRequestInitWithDefaultConfig
|
|
10
|
-
} from "@readyfor/api-client-base";
|
|
11
|
-
var buildSegmentsProfileSegmentsGetFetcher = (customRequestInit) => createJsonFetcher(GetProfileSegmentsResponse, { ...customRequestInit });
|
|
12
|
-
var getSegmentsProfileSegments = (customRequestInit) => {
|
|
13
|
-
const requestInfo = __internal__requestUrl("/api/segments/profile_segments");
|
|
14
|
-
const requestInit = buildRequestInitWithDefaultConfig({
|
|
15
|
-
...customRequestInit,
|
|
16
|
-
method: "GET"
|
|
17
|
-
});
|
|
18
|
-
return buildSegmentsProfileSegmentsGetFetcher(requestInit)(requestInfo);
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export {
|
|
22
|
-
buildSegmentsProfileSegmentsGetFetcher,
|
|
23
|
-
getSegmentsProfileSegments
|
|
24
|
-
};
|
package/dist/chunk-CABZT6BU.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 = (customRequestInit) => createVoidFetcher({ ...customRequestInit });
|
|
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-HNVHV5GD.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 = (customRequestInit) => createJsonFetcher(GetCampaignsResponse, { ...customRequestInit });
|
|
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 = (customRequestInit) => createJsonFetcher(PostCampaignsResponse, { ...customRequestInit });
|
|
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-JXZJCPX3.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 = (customRequestInit) => createJsonFetcher(Image, { ...customRequestInit });
|
|
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
|
-
};
|