@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.
Files changed (92) hide show
  1. package/dist/{chunk-VUY6GQWT.mjs → chunk-27GLDQK3.mjs} +1 -1
  2. package/dist/chunk-2B6GQILG.mjs +24 -0
  3. package/dist/chunk-2MRIEXEQ.mjs +29 -0
  4. package/dist/chunk-4YF2M7Y7.mjs +29 -0
  5. package/dist/chunk-AQVUMZVL.mjs +24 -0
  6. package/dist/chunk-CABZT6BU.mjs +30 -0
  7. package/dist/{chunk-3BSY3CC4.mjs → chunk-EN3CP4JR.mjs} +1 -1
  8. package/dist/chunk-HNVHV5GD.mjs +41 -0
  9. package/dist/chunk-JXZJCPX3.mjs +28 -0
  10. package/dist/chunk-NKU3JO55.mjs +37 -0
  11. package/dist/chunk-O4CHNDYY.mjs +28 -0
  12. package/dist/{chunk-DQW3ZEJN.mjs → chunk-QKM5JPTE.mjs} +1 -1
  13. package/dist/{chunk-S2M3EJKW.mjs → chunk-T3IYQXXP.mjs} +1 -1
  14. package/dist/{chunk-LUUW3QOB.mjs → chunk-TLGSSZT7.mjs} +1 -1
  15. package/dist/chunk-UTUZQQT6.mjs +25 -0
  16. package/dist/{chunk-ZDQDW24D.mjs → chunk-UU5WXXGN.mjs} +1 -1
  17. package/dist/{chunk-KL2BCQLU.mjs → chunk-W6D6J2QD.mjs} +1 -1
  18. package/dist/chunk-YT25LCGA.mjs +48 -0
  19. package/dist/fetch/campaigns.d.mts +4 -4
  20. package/dist/fetch/campaigns.d.ts +4 -4
  21. package/dist/fetch/campaigns.js +23 -12
  22. package/dist/fetch/campaigns.mjs +1 -1
  23. package/dist/fetch/campaignsCampaignIdImagesId.d.mts +2 -2
  24. package/dist/fetch/campaignsCampaignIdImagesId.d.ts +2 -2
  25. package/dist/fetch/campaignsCampaignIdImagesId.js +14 -5
  26. package/dist/fetch/campaignsCampaignIdImagesId.mjs +1 -1
  27. package/dist/fetch/campaignsId.d.mts +6 -6
  28. package/dist/fetch/campaignsId.d.ts +6 -6
  29. package/dist/fetch/campaignsId.js +28 -15
  30. package/dist/fetch/campaignsId.mjs +1 -1
  31. package/dist/fetch/campaignsIdDeliveryJob.d.mts +4 -4
  32. package/dist/fetch/campaignsIdDeliveryJob.d.ts +4 -4
  33. package/dist/fetch/campaignsIdDeliveryJob.js +24 -10
  34. package/dist/fetch/campaignsIdDeliveryJob.mjs +1 -1
  35. package/dist/fetch/campaignsIdImages.d.mts +2 -2
  36. package/dist/fetch/campaignsIdImages.d.ts +2 -2
  37. package/dist/fetch/campaignsIdImages.js +13 -5
  38. package/dist/fetch/campaignsIdImages.mjs +1 -1
  39. package/dist/fetch/campaignsIdPreview.d.mts +2 -2
  40. package/dist/fetch/campaignsIdPreview.d.ts +2 -2
  41. package/dist/fetch/campaignsIdPreview.js +14 -5
  42. package/dist/fetch/campaignsIdPreview.mjs +1 -1
  43. package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.mts +2 -2
  44. package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.ts +2 -2
  45. package/dist/fetch/campaignsIdPreviewDeliveryEmail.js +17 -8
  46. package/dist/fetch/campaignsIdPreviewDeliveryEmail.mjs +1 -1
  47. package/dist/fetch/projectsProjectIdOrKeyword.d.mts +2 -2
  48. package/dist/fetch/projectsProjectIdOrKeyword.d.ts +2 -2
  49. package/dist/fetch/projectsProjectIdOrKeyword.js +14 -5
  50. package/dist/fetch/projectsProjectIdOrKeyword.mjs +1 -1
  51. package/dist/fetch/segmentsBehaviorSegments.d.mts +2 -2
  52. package/dist/fetch/segmentsBehaviorSegments.d.ts +2 -2
  53. package/dist/fetch/segmentsBehaviorSegments.js +9 -5
  54. package/dist/fetch/segmentsBehaviorSegments.mjs +1 -1
  55. package/dist/fetch/segmentsProfileSegments.d.mts +2 -2
  56. package/dist/fetch/segmentsProfileSegments.d.ts +2 -2
  57. package/dist/fetch/segmentsProfileSegments.js +9 -5
  58. package/dist/fetch/segmentsProfileSegments.mjs +1 -1
  59. package/dist/fetch/segmentsTargetUsersCount.d.mts +2 -2
  60. package/dist/fetch/segmentsTargetUsersCount.d.ts +2 -2
  61. package/dist/fetch/segmentsTargetUsersCount.js +13 -5
  62. package/dist/fetch/segmentsTargetUsersCount.mjs +1 -1
  63. package/dist/hooks/index.js +11 -7
  64. package/dist/hooks/index.mjs +18 -18
  65. package/dist/hooks/useCampaigns.js +1 -1
  66. package/dist/hooks/useCampaigns.mjs +12 -12
  67. package/dist/hooks/useCampaignsId.js +1 -1
  68. package/dist/hooks/useCampaignsId.mjs +12 -12
  69. package/dist/hooks/useCampaignsIdPreview.js +3 -1
  70. package/dist/hooks/useCampaignsIdPreview.mjs +12 -12
  71. package/dist/hooks/useProjectsProjectIdOrKeyword.js +3 -1
  72. package/dist/hooks/useProjectsProjectIdOrKeyword.mjs +12 -12
  73. package/dist/hooks/useSegmentsBehaviorSegments.js +1 -1
  74. package/dist/hooks/useSegmentsBehaviorSegments.mjs +12 -12
  75. package/dist/hooks/useSegmentsProfileSegments.js +1 -1
  76. package/dist/hooks/useSegmentsProfileSegments.mjs +12 -12
  77. package/dist/hooks/useSegmentsTargetUsersCount.js +1 -1
  78. package/dist/hooks/useSegmentsTargetUsersCount.mjs +12 -12
  79. package/dist/index.js +178 -80
  80. package/dist/index.mjs +11 -11
  81. package/package.json +12 -13
  82. package/dist/chunk-6DE2SHQZ.mjs +0 -19
  83. package/dist/chunk-BGIB7JQD.mjs +0 -19
  84. package/dist/chunk-D455PCO3.mjs +0 -19
  85. package/dist/chunk-DH3UXOBA.mjs +0 -19
  86. package/dist/chunk-EYJTETGN.mjs +0 -34
  87. package/dist/chunk-KBTZNIQJ.mjs +0 -20
  88. package/dist/chunk-MFCSQX6F.mjs +0 -29
  89. package/dist/chunk-NIBXTDD3.mjs +0 -15
  90. package/dist/chunk-NKNUFH54.mjs +0 -19
  91. package/dist/chunk-VJU27CZQ.mjs +0 -19
  92. package/dist/chunk-YV4XRZY2.mjs +0 -22
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildCampaignsIdGetFetcher
3
- } from "./chunk-EYJTETGN.mjs";
3
+ } from "./chunk-YT25LCGA.mjs";
4
4
 
5
5
  // src/hooks/useCampaignsId.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -0,0 +1,24 @@
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
+ };
@@ -0,0 +1,29 @@
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
+ };
@@ -0,0 +1,29 @@
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
+ };
@@ -0,0 +1,24 @@
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
+ };
@@ -0,0 +1,30 @@
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
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildSegmentsProfileSegmentsGetFetcher
3
- } from "./chunk-NKNUFH54.mjs";
3
+ } from "./chunk-AQVUMZVL.mjs";
4
4
 
5
5
  // src/hooks/useSegmentsProfileSegments.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -0,0 +1,41 @@
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
+ };
@@ -0,0 +1,28 @@
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
+ };
@@ -0,0 +1,37 @@
1
+ // src/fetch/campaignsIdDeliveryJob.ts
2
+ import {
3
+ createVoidFetcher,
4
+ __internal__requestUrl,
5
+ buildRequestInitWithDefaultConfig
6
+ } from "@readyfor/api-client-base";
7
+ var buildCampaignsIdDeliveryJobPostFetcher = (customRequestInit) => createVoidFetcher({ ...customRequestInit });
8
+ var postCampaignsIdDeliveryJob = (path, customRequestInit) => {
9
+ const requestInfo = __internal__requestUrl(
10
+ "/api/campaigns/{id}/delivery_job",
11
+ path
12
+ );
13
+ const requestInit = buildRequestInitWithDefaultConfig({
14
+ ...customRequestInit,
15
+ method: "POST"
16
+ });
17
+ return buildCampaignsIdDeliveryJobPostFetcher(requestInit)(requestInfo);
18
+ };
19
+ var buildCampaignsIdDeliveryJobDeleteFetcher = (customRequestInit) => createVoidFetcher({ ...customRequestInit });
20
+ var deleteCampaignsIdDeliveryJob = (path, customRequestInit) => {
21
+ const requestInfo = __internal__requestUrl(
22
+ "/api/campaigns/{id}/delivery_job",
23
+ path
24
+ );
25
+ const requestInit = buildRequestInitWithDefaultConfig({
26
+ ...customRequestInit,
27
+ method: "DELETE"
28
+ });
29
+ return buildCampaignsIdDeliveryJobDeleteFetcher(requestInit)(requestInfo);
30
+ };
31
+
32
+ export {
33
+ buildCampaignsIdDeliveryJobPostFetcher,
34
+ postCampaignsIdDeliveryJob,
35
+ buildCampaignsIdDeliveryJobDeleteFetcher,
36
+ deleteCampaignsIdDeliveryJob
37
+ };
@@ -0,0 +1,28 @@
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
+ } from "@readyfor/api-client-base";
11
+ var buildSegmentsTargetUsersCountGetFetcher = (customRequestInit) => createJsonFetcher(GetTargetUsersCountResponse, { ...customRequestInit });
12
+ var getSegmentsTargetUsersCount = (query, customRequestInit) => {
13
+ const requestInfo = __internal__requestUrl(
14
+ "/api/segments/target_users_count",
15
+ {},
16
+ query
17
+ );
18
+ const requestInit = buildRequestInitWithDefaultConfig({
19
+ ...customRequestInit,
20
+ method: "GET"
21
+ });
22
+ return buildSegmentsTargetUsersCountGetFetcher(requestInit)(requestInfo);
23
+ };
24
+
25
+ export {
26
+ buildSegmentsTargetUsersCountGetFetcher,
27
+ getSegmentsTargetUsersCount
28
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildSegmentsBehaviorSegmentsGetFetcher
3
- } from "./chunk-D455PCO3.mjs";
3
+ } from "./chunk-2B6GQILG.mjs";
4
4
 
5
5
  // src/hooks/useSegmentsBehaviorSegments.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildSegmentsTargetUsersCountGetFetcher
3
- } from "./chunk-BGIB7JQD.mjs";
3
+ } from "./chunk-O4CHNDYY.mjs";
4
4
 
5
5
  // src/hooks/useSegmentsTargetUsersCount.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildCampaignsGetFetcher
3
- } from "./chunk-MFCSQX6F.mjs";
3
+ } from "./chunk-HNVHV5GD.mjs";
4
4
 
5
5
  // src/hooks/useCampaigns.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -0,0 +1,25 @@
1
+ // src/fetch/campaignsCampaignIdImagesId.ts
2
+ import {
3
+ createVoidFetcher,
4
+ __internal__requestUrl,
5
+ buildRequestInitWithDefaultConfig
6
+ } from "@readyfor/api-client-base";
7
+ var buildCampaignsCampaignIdImagesIdDeleteFetcher = (customRequestInit) => createVoidFetcher({ ...customRequestInit });
8
+ var deleteCampaignsCampaignIdImagesId = (path, customRequestInit) => {
9
+ const requestInfo = __internal__requestUrl(
10
+ "/api/campaigns/{campaign_id}/images/{id}",
11
+ path
12
+ );
13
+ const requestInit = buildRequestInitWithDefaultConfig({
14
+ ...customRequestInit,
15
+ method: "DELETE"
16
+ });
17
+ return buildCampaignsCampaignIdImagesIdDeleteFetcher(requestInit)(
18
+ requestInfo
19
+ );
20
+ };
21
+
22
+ export {
23
+ buildCampaignsCampaignIdImagesIdDeleteFetcher,
24
+ deleteCampaignsCampaignIdImagesId
25
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildCampaignsIdPreviewGetFetcher
3
- } from "./chunk-DH3UXOBA.mjs";
3
+ } from "./chunk-4YF2M7Y7.mjs";
4
4
 
5
5
  // src/hooks/useCampaignsIdPreview.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildProjectsProjectIdOrKeywordGetFetcher
3
- } from "./chunk-VJU27CZQ.mjs";
3
+ } from "./chunk-2MRIEXEQ.mjs";
4
4
 
5
5
  // src/hooks/useProjectsProjectIdOrKeyword.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -0,0 +1,48 @@
1
+ import {
2
+ CampaignsCampaignIdResponse
3
+ } from "./chunk-QCIAYUXK.mjs";
4
+
5
+ // src/fetch/campaignsId.ts
6
+ import {
7
+ createJsonFetcher,
8
+ __internal__requestUrl,
9
+ buildRequestInitWithDefaultConfig,
10
+ createVoidFetcher
11
+ } from "@readyfor/api-client-base";
12
+ var buildCampaignsIdGetFetcher = (customRequestInit) => createJsonFetcher(CampaignsCampaignIdResponse, { ...customRequestInit });
13
+ var getCampaignsId = (path, customRequestInit) => {
14
+ const requestInfo = __internal__requestUrl("/api/campaigns/{id}", path);
15
+ const requestInit = buildRequestInitWithDefaultConfig({
16
+ ...customRequestInit,
17
+ method: "GET"
18
+ });
19
+ return buildCampaignsIdGetFetcher(requestInit)(requestInfo);
20
+ };
21
+ var buildCampaignsIdDeleteFetcher = (customRequestInit) => createVoidFetcher({ ...customRequestInit });
22
+ var deleteCampaignsId = (path, customRequestInit) => {
23
+ const requestInfo = __internal__requestUrl("/api/campaigns/{id}", path);
24
+ const requestInit = buildRequestInitWithDefaultConfig({
25
+ ...customRequestInit,
26
+ method: "DELETE"
27
+ });
28
+ return buildCampaignsIdDeleteFetcher(requestInit)(requestInfo);
29
+ };
30
+ var buildCampaignsIdPatchFetcher = (customRequestInit) => createJsonFetcher(CampaignsCampaignIdResponse, { ...customRequestInit });
31
+ var patchCampaignsId = (path, requestBody, customRequestInit) => {
32
+ const requestInfo = __internal__requestUrl("/api/campaigns/{id}", path);
33
+ const requestInit = buildRequestInitWithDefaultConfig({
34
+ ...customRequestInit,
35
+ method: "PATCH",
36
+ body: requestBody
37
+ });
38
+ return buildCampaignsIdPatchFetcher(requestInit)(requestInfo);
39
+ };
40
+
41
+ export {
42
+ buildCampaignsIdGetFetcher,
43
+ getCampaignsId,
44
+ buildCampaignsIdDeleteFetcher,
45
+ deleteCampaignsId,
46
+ buildCampaignsIdPatchFetcher,
47
+ patchCampaignsId
48
+ };
@@ -3,7 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
3
3
 
4
4
  type CampaignsGetOperation = paths["/api/campaigns"]["get"];
5
5
  type CampaignsGetResponse = CampaignsGetOperation["responses"]["200"]["content"]["application/json"];
6
- declare const buildCampaignsGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
6
+ declare const buildCampaignsGetFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
7
  campaigns: ({
8
8
  kind: "curationMailMagazine";
9
9
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
@@ -37,7 +37,7 @@ type CampaignsGetQuery = ForceDig<CampaignsGetOperation, [
37
37
  "parameters",
38
38
  "query"
39
39
  ]>;
40
- declare const getCampaigns: (query: CampaignsGetQuery, requestInit?: RequestInit) => Promise<{
40
+ declare const getCampaigns: (query: CampaignsGetQuery, customRequestInit?: RequestInit) => Promise<{
41
41
  campaigns: ({
42
42
  kind: "curationMailMagazine";
43
43
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
@@ -69,7 +69,7 @@ declare const getCampaigns: (query: CampaignsGetQuery, requestInit?: RequestInit
69
69
  }>;
70
70
  type CampaignsPostOperation = paths["/api/campaigns"]["post"];
71
71
  type CampaignsPostResponse = CampaignsPostOperation["responses"]["201"]["content"]["application/json"];
72
- declare const buildCampaignsPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
72
+ declare const buildCampaignsPostFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
73
73
  id: number;
74
74
  }>;
75
75
  type CampaignsPostRequestBody = ForceDig<CampaignsPostOperation, [
@@ -77,7 +77,7 @@ type CampaignsPostRequestBody = ForceDig<CampaignsPostOperation, [
77
77
  "content",
78
78
  "application/json"
79
79
  ]>;
80
- declare const postCampaigns: (requestBody: CampaignsPostRequestBody, requestInit?: RequestInit) => Promise<{
80
+ declare const postCampaigns: (requestBody: CampaignsPostRequestBody, customRequestInit?: RequestInit) => Promise<{
81
81
  id: number;
82
82
  }>;
83
83
 
@@ -3,7 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
3
3
 
4
4
  type CampaignsGetOperation = paths["/api/campaigns"]["get"];
5
5
  type CampaignsGetResponse = CampaignsGetOperation["responses"]["200"]["content"]["application/json"];
6
- declare const buildCampaignsGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
6
+ declare const buildCampaignsGetFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
7
  campaigns: ({
8
8
  kind: "curationMailMagazine";
9
9
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
@@ -37,7 +37,7 @@ type CampaignsGetQuery = ForceDig<CampaignsGetOperation, [
37
37
  "parameters",
38
38
  "query"
39
39
  ]>;
40
- declare const getCampaigns: (query: CampaignsGetQuery, requestInit?: RequestInit) => Promise<{
40
+ declare const getCampaigns: (query: CampaignsGetQuery, customRequestInit?: RequestInit) => Promise<{
41
41
  campaigns: ({
42
42
  kind: "curationMailMagazine";
43
43
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
@@ -69,7 +69,7 @@ declare const getCampaigns: (query: CampaignsGetQuery, requestInit?: RequestInit
69
69
  }>;
70
70
  type CampaignsPostOperation = paths["/api/campaigns"]["post"];
71
71
  type CampaignsPostResponse = CampaignsPostOperation["responses"]["201"]["content"]["application/json"];
72
- declare const buildCampaignsPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
72
+ declare const buildCampaignsPostFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
73
73
  id: number;
74
74
  }>;
75
75
  type CampaignsPostRequestBody = ForceDig<CampaignsPostOperation, [
@@ -77,7 +77,7 @@ type CampaignsPostRequestBody = ForceDig<CampaignsPostOperation, [
77
77
  "content",
78
78
  "application/json"
79
79
  ]>;
80
- declare const postCampaigns: (requestBody: CampaignsPostRequestBody, requestInit?: RequestInit) => Promise<{
80
+ declare const postCampaigns: (requestBody: CampaignsPostRequestBody, customRequestInit?: RequestInit) => Promise<{
81
81
  id: number;
82
82
  }>;
83
83
 
@@ -307,18 +307,29 @@ var GetCampaignsResponse = import_zod.z.object({
307
307
  });
308
308
 
309
309
  // src/fetch/campaigns.ts
310
- var buildCampaignsGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsResponse, { ...requestInit });
311
- var getCampaigns = (query, requestInit) => buildCampaignsGetFetcher()(
312
- (0, import_api_client_base.__internal__requestUrl)("/api/campaigns", {}, query),
313
- { ...requestInit, method: "GET" }
314
- );
315
- var buildCampaignsPostFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(PostCampaignsResponse, { ...requestInit });
316
- var postCampaigns = (requestBody, requestInit) => buildCampaignsPostFetcher()((0, import_api_client_base.__internal__requestUrl)("/api/campaigns"), {
317
- ...requestInit,
318
- method: "POST",
319
- headers: { ...requestInit?.headers, "Content-Type": "application/json" },
320
- body: JSON.stringify(requestBody)
321
- });
310
+ var buildCampaignsGetFetcher = (customRequestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsResponse, { ...customRequestInit });
311
+ var getCampaigns = (query, customRequestInit) => {
312
+ const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns", {}, query);
313
+ const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
314
+ ...customRequestInit,
315
+ method: "GET"
316
+ });
317
+ return buildCampaignsGetFetcher(requestInit)(requestInfo);
318
+ };
319
+ var buildCampaignsPostFetcher = (customRequestInit) => (0, import_api_client_base.createJsonFetcher)(PostCampaignsResponse, { ...customRequestInit });
320
+ var postCampaigns = (requestBody, customRequestInit) => {
321
+ const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns");
322
+ const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
323
+ ...customRequestInit,
324
+ method: "POST",
325
+ headers: {
326
+ ...customRequestInit?.headers,
327
+ "Content-Type": "application/json"
328
+ },
329
+ body: JSON.stringify(requestBody)
330
+ });
331
+ return buildCampaignsPostFetcher(requestInit)(requestInfo);
332
+ };
322
333
  // Annotate the CommonJS export names for ESM import in node:
323
334
  0 && (module.exports = {
324
335
  buildCampaignsGetFetcher,
@@ -3,7 +3,7 @@ import {
3
3
  buildCampaignsPostFetcher,
4
4
  getCampaigns,
5
5
  postCampaigns
6
- } from "../chunk-MFCSQX6F.mjs";
6
+ } from "../chunk-HNVHV5GD.mjs";
7
7
  import "../chunk-QCIAYUXK.mjs";
8
8
  export {
9
9
  buildCampaignsGetFetcher,
@@ -2,11 +2,11 @@ import { paths } from '../schemaType.mjs';
2
2
  import { ForceDig } from '@readyfor/api-client-base';
3
3
 
4
4
  type CampaignsCampaignIdImagesIdDeleteOperation = paths["/api/campaigns/{campaign_id}/images/{id}"]["delete"];
5
- declare const buildCampaignsCampaignIdImagesIdDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
5
+ declare const buildCampaignsCampaignIdImagesIdDeleteFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
6
6
  type CampaignsCampaignIdImagesIdDeletePath = ForceDig<CampaignsCampaignIdImagesIdDeleteOperation, [
7
7
  "parameters",
8
8
  "path"
9
9
  ]>;
10
- declare const deleteCampaignsCampaignIdImagesId: (path: CampaignsCampaignIdImagesIdDeletePath, requestInit?: RequestInit) => Promise<void>;
10
+ declare const deleteCampaignsCampaignIdImagesId: (path: CampaignsCampaignIdImagesIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
11
11
 
12
12
  export { type CampaignsCampaignIdImagesIdDeletePath, buildCampaignsCampaignIdImagesIdDeleteFetcher, deleteCampaignsCampaignIdImagesId };
@@ -2,11 +2,11 @@ import { paths } from '../schemaType.js';
2
2
  import { ForceDig } from '@readyfor/api-client-base';
3
3
 
4
4
  type CampaignsCampaignIdImagesIdDeleteOperation = paths["/api/campaigns/{campaign_id}/images/{id}"]["delete"];
5
- declare const buildCampaignsCampaignIdImagesIdDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
5
+ declare const buildCampaignsCampaignIdImagesIdDeleteFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
6
6
  type CampaignsCampaignIdImagesIdDeletePath = ForceDig<CampaignsCampaignIdImagesIdDeleteOperation, [
7
7
  "parameters",
8
8
  "path"
9
9
  ]>;
10
- declare const deleteCampaignsCampaignIdImagesId: (path: CampaignsCampaignIdImagesIdDeletePath, requestInit?: RequestInit) => Promise<void>;
10
+ declare const deleteCampaignsCampaignIdImagesId: (path: CampaignsCampaignIdImagesIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
11
11
 
12
12
  export { type CampaignsCampaignIdImagesIdDeletePath, buildCampaignsCampaignIdImagesIdDeleteFetcher, deleteCampaignsCampaignIdImagesId };
@@ -25,11 +25,20 @@ __export(campaignsCampaignIdImagesId_exports, {
25
25
  });
26
26
  module.exports = __toCommonJS(campaignsCampaignIdImagesId_exports);
27
27
  var import_api_client_base = require("@readyfor/api-client-base");
28
- var buildCampaignsCampaignIdImagesIdDeleteFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
29
- var deleteCampaignsCampaignIdImagesId = (path, requestInit) => buildCampaignsCampaignIdImagesIdDeleteFetcher()(
30
- (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{campaign_id}/images/{id}", path),
31
- { ...requestInit, method: "DELETE" }
32
- );
28
+ var buildCampaignsCampaignIdImagesIdDeleteFetcher = (customRequestInit) => (0, import_api_client_base.createVoidFetcher)({ ...customRequestInit });
29
+ var deleteCampaignsCampaignIdImagesId = (path, customRequestInit) => {
30
+ const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
31
+ "/api/campaigns/{campaign_id}/images/{id}",
32
+ path
33
+ );
34
+ const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
35
+ ...customRequestInit,
36
+ method: "DELETE"
37
+ });
38
+ return buildCampaignsCampaignIdImagesIdDeleteFetcher(requestInit)(
39
+ requestInfo
40
+ );
41
+ };
33
42
  // Annotate the CommonJS export names for ESM import in node:
34
43
  0 && (module.exports = {
35
44
  buildCampaignsCampaignIdImagesIdDeleteFetcher,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildCampaignsCampaignIdImagesIdDeleteFetcher,
3
3
  deleteCampaignsCampaignIdImagesId
4
- } from "../chunk-NIBXTDD3.mjs";
4
+ } from "../chunk-UTUZQQT6.mjs";
5
5
  export {
6
6
  buildCampaignsCampaignIdImagesIdDeleteFetcher,
7
7
  deleteCampaignsCampaignIdImagesId