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