@readyfor/api-client-pigeon 0.243.0-pr981.f3ebbce → 0.243.0-pr985.545a27b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/{chunk-NXETGJTF.mjs → chunk-3BSY3CC4.mjs} +1 -1
  2. package/dist/chunk-6DE2SHQZ.mjs +19 -0
  3. package/dist/chunk-BGIB7JQD.mjs +19 -0
  4. package/dist/{chunk-4NGGO3G6.mjs → chunk-D455PCO3.mjs} +5 -10
  5. package/dist/chunk-DH3UXOBA.mjs +19 -0
  6. package/dist/{chunk-5ULJLAC6.mjs → chunk-DQW3ZEJN.mjs} +1 -1
  7. package/dist/chunk-EYJTETGN.mjs +34 -0
  8. package/dist/chunk-KBTZNIQJ.mjs +20 -0
  9. package/dist/{chunk-URYB6NOK.mjs → chunk-KL2BCQLU.mjs} +1 -1
  10. package/dist/{chunk-OWGV4AJG.mjs → chunk-LUUW3QOB.mjs} +1 -1
  11. package/dist/chunk-MFCSQX6F.mjs +29 -0
  12. package/dist/chunk-NIBXTDD3.mjs +15 -0
  13. package/dist/{chunk-U7AEZYNN.mjs → chunk-NKNUFH54.mjs} +5 -10
  14. package/dist/{chunk-3UBBT7E5.mjs → chunk-S2M3EJKW.mjs} +1 -1
  15. package/dist/{chunk-2UJ4AWWH.mjs → chunk-VJU27CZQ.mjs} +5 -13
  16. package/dist/{chunk-JUEVPCCG.mjs → chunk-VUY6GQWT.mjs} +1 -1
  17. package/dist/chunk-YV4XRZY2.mjs +22 -0
  18. package/dist/{chunk-4RIZKNMD.mjs → chunk-ZDQDW24D.mjs} +1 -1
  19. package/dist/fetch/campaigns.d.mts +2 -2
  20. package/dist/fetch/campaigns.d.ts +2 -2
  21. package/dist/fetch/campaigns.js +10 -21
  22. package/dist/fetch/campaigns.mjs +1 -1
  23. package/dist/fetch/campaignsCampaignIdImagesId.d.mts +1 -1
  24. package/dist/fetch/campaignsCampaignIdImagesId.d.ts +1 -1
  25. package/dist/fetch/campaignsCampaignIdImagesId.js +4 -13
  26. package/dist/fetch/campaignsCampaignIdImagesId.mjs +1 -1
  27. package/dist/fetch/campaignsId.d.mts +3 -3
  28. package/dist/fetch/campaignsId.d.ts +3 -3
  29. package/dist/fetch/campaignsId.js +12 -25
  30. package/dist/fetch/campaignsId.mjs +1 -1
  31. package/dist/fetch/campaignsIdDeliveryJob.d.mts +2 -2
  32. package/dist/fetch/campaignsIdDeliveryJob.d.ts +2 -2
  33. package/dist/fetch/campaignsIdDeliveryJob.js +8 -22
  34. package/dist/fetch/campaignsIdDeliveryJob.mjs +1 -1
  35. package/dist/fetch/campaignsIdImages.d.mts +1 -1
  36. package/dist/fetch/campaignsIdImages.d.ts +1 -1
  37. package/dist/fetch/campaignsIdImages.js +4 -12
  38. package/dist/fetch/campaignsIdImages.mjs +1 -1
  39. package/dist/fetch/campaignsIdPreview.d.mts +1 -1
  40. package/dist/fetch/campaignsIdPreview.d.ts +1 -1
  41. package/dist/fetch/campaignsIdPreview.js +4 -11
  42. package/dist/fetch/campaignsIdPreview.mjs +1 -1
  43. package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.mts +1 -1
  44. package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.ts +1 -1
  45. package/dist/fetch/campaignsIdPreviewDeliveryEmail.js +7 -16
  46. package/dist/fetch/campaignsIdPreviewDeliveryEmail.mjs +1 -1
  47. package/dist/fetch/projectsProjectIdOrKeyword.d.mts +1 -1
  48. package/dist/fetch/projectsProjectIdOrKeyword.d.ts +1 -1
  49. package/dist/fetch/projectsProjectIdOrKeyword.js +4 -11
  50. package/dist/fetch/projectsProjectIdOrKeyword.mjs +1 -1
  51. package/dist/fetch/segmentsBehaviorSegments.d.mts +1 -1
  52. package/dist/fetch/segmentsBehaviorSegments.d.ts +1 -1
  53. package/dist/fetch/segmentsBehaviorSegments.js +4 -8
  54. package/dist/fetch/segmentsBehaviorSegments.mjs +1 -1
  55. package/dist/fetch/segmentsProfileSegments.d.mts +1 -1
  56. package/dist/fetch/segmentsProfileSegments.d.ts +1 -1
  57. package/dist/fetch/segmentsProfileSegments.js +4 -8
  58. package/dist/fetch/segmentsProfileSegments.mjs +1 -1
  59. package/dist/fetch/segmentsTargetUsersCount.d.mts +1 -1
  60. package/dist/fetch/segmentsTargetUsersCount.d.ts +1 -1
  61. package/dist/fetch/segmentsTargetUsersCount.js +4 -12
  62. package/dist/fetch/segmentsTargetUsersCount.mjs +1 -1
  63. package/dist/hooks/index.mjs +18 -18
  64. package/dist/hooks/useCampaigns.mjs +12 -12
  65. package/dist/hooks/useCampaignsId.mjs +12 -12
  66. package/dist/hooks/useCampaignsIdPreview.mjs +12 -12
  67. package/dist/hooks/useProjectsProjectIdOrKeyword.mjs +12 -12
  68. package/dist/hooks/useSegmentsBehaviorSegments.mjs +12 -12
  69. package/dist/hooks/useSegmentsProfileSegments.mjs +12 -12
  70. package/dist/hooks/useSegmentsTargetUsersCount.mjs +12 -12
  71. package/dist/index.js +65 -159
  72. package/dist/index.mjs +11 -11
  73. package/package.json +7 -4
  74. package/dist/chunk-4INIKTKJ.mjs +0 -41
  75. package/dist/chunk-AGTNHB2D.mjs +0 -48
  76. package/dist/chunk-KL2DA5QY.mjs +0 -27
  77. package/dist/chunk-MB4UQS7V.mjs +0 -30
  78. package/dist/chunk-RC6SX75E.mjs +0 -28
  79. package/dist/chunk-UENEH462.mjs +0 -37
  80. package/dist/chunk-VGMORDQ4.mjs +0 -28
  81. package/dist/chunk-WISELSRL.mjs +0 -25
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildSegmentsProfileSegmentsGetFetcher
3
- } from "./chunk-U7AEZYNN.mjs";
3
+ } from "./chunk-NKNUFH54.mjs";
4
4
 
5
5
  // src/hooks/useSegmentsProfileSegments.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -0,0 +1,19 @@
1
+ import {
2
+ Image
3
+ } from "./chunk-QCIAYUXK.mjs";
4
+
5
+ // src/fetch/campaignsIdImages.ts
6
+ import {
7
+ createJsonFetcher,
8
+ __internal__requestUrl
9
+ } from "@readyfor/api-client-base";
10
+ var buildCampaignsIdImagesPostFetcher = (requestInit) => createJsonFetcher(Image, { ...requestInit });
11
+ var postCampaignsIdImages = (path, requestBody, requestInit) => buildCampaignsIdImagesPostFetcher()(
12
+ __internal__requestUrl("/api/campaigns/{id}/images", path),
13
+ { ...requestInit, method: "POST", body: requestBody }
14
+ );
15
+
16
+ export {
17
+ buildCampaignsIdImagesPostFetcher,
18
+ postCampaignsIdImages
19
+ };
@@ -0,0 +1,19 @@
1
+ import {
2
+ GetTargetUsersCountResponse
3
+ } from "./chunk-QCIAYUXK.mjs";
4
+
5
+ // src/fetch/segmentsTargetUsersCount.ts
6
+ import {
7
+ createJsonFetcher,
8
+ __internal__requestUrl
9
+ } from "@readyfor/api-client-base";
10
+ var buildSegmentsTargetUsersCountGetFetcher = (requestInit) => createJsonFetcher(GetTargetUsersCountResponse, { ...requestInit });
11
+ var getSegmentsTargetUsersCount = (query, requestInit) => buildSegmentsTargetUsersCountGetFetcher()(
12
+ __internal__requestUrl("/api/segments/target_users_count", {}, query),
13
+ { ...requestInit, method: "GET" }
14
+ );
15
+
16
+ export {
17
+ buildSegmentsTargetUsersCountGetFetcher,
18
+ getSegmentsTargetUsersCount
19
+ };
@@ -5,18 +5,13 @@ import {
5
5
  // src/fetch/segmentsBehaviorSegments.ts
6
6
  import {
7
7
  createJsonFetcher,
8
- __internal__requestUrl,
9
- buildRequestInitWithDefaultConfig
8
+ __internal__requestUrl
10
9
  } from "@readyfor/api-client-base";
11
10
  var buildSegmentsBehaviorSegmentsGetFetcher = (requestInit) => createJsonFetcher(GetBehaviorSegmentsResponse, { ...requestInit });
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
- };
11
+ var getSegmentsBehaviorSegments = (requestInit) => buildSegmentsBehaviorSegmentsGetFetcher()(
12
+ __internal__requestUrl("/api/segments/behavior_segments"),
13
+ { ...requestInit, method: "GET" }
14
+ );
20
15
 
21
16
  export {
22
17
  buildSegmentsBehaviorSegmentsGetFetcher,
@@ -0,0 +1,19 @@
1
+ import {
2
+ GetCampaignsCampaignIdPreviewResponse
3
+ } from "./chunk-QCIAYUXK.mjs";
4
+
5
+ // src/fetch/campaignsIdPreview.ts
6
+ import {
7
+ createJsonFetcher,
8
+ __internal__requestUrl
9
+ } from "@readyfor/api-client-base";
10
+ var buildCampaignsIdPreviewGetFetcher = (requestInit) => createJsonFetcher(GetCampaignsCampaignIdPreviewResponse, { ...requestInit });
11
+ var getCampaignsIdPreview = (path, requestInit) => buildCampaignsIdPreviewGetFetcher()(
12
+ __internal__requestUrl("/api/campaigns/{id}/preview", path),
13
+ { ...requestInit, method: "GET" }
14
+ );
15
+
16
+ export {
17
+ buildCampaignsIdPreviewGetFetcher,
18
+ getCampaignsIdPreview
19
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildSegmentsBehaviorSegmentsGetFetcher
3
- } from "./chunk-4NGGO3G6.mjs";
3
+ } from "./chunk-D455PCO3.mjs";
4
4
 
5
5
  // src/hooks/useSegmentsBehaviorSegments.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -0,0 +1,34 @@
1
+ import {
2
+ CampaignsCampaignIdResponse
3
+ } from "./chunk-QCIAYUXK.mjs";
4
+
5
+ // src/fetch/campaignsId.ts
6
+ import {
7
+ createJsonFetcher,
8
+ __internal__requestUrl,
9
+ createVoidFetcher
10
+ } from "@readyfor/api-client-base";
11
+ var buildCampaignsIdGetFetcher = (requestInit) => createJsonFetcher(CampaignsCampaignIdResponse, { ...requestInit });
12
+ var getCampaignsId = (path, requestInit) => buildCampaignsIdGetFetcher()(
13
+ __internal__requestUrl("/api/campaigns/{id}", path),
14
+ { ...requestInit, method: "GET" }
15
+ );
16
+ var buildCampaignsIdDeleteFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
17
+ var deleteCampaignsId = (path, requestInit) => buildCampaignsIdDeleteFetcher()(
18
+ __internal__requestUrl("/api/campaigns/{id}", path),
19
+ { ...requestInit, method: "DELETE" }
20
+ );
21
+ var buildCampaignsIdPatchFetcher = (requestInit) => createJsonFetcher(CampaignsCampaignIdResponse, { ...requestInit });
22
+ var patchCampaignsId = (path, requestBody, requestInit) => buildCampaignsIdPatchFetcher()(
23
+ __internal__requestUrl("/api/campaigns/{id}", path),
24
+ { ...requestInit, method: "PATCH", body: requestBody }
25
+ );
26
+
27
+ export {
28
+ buildCampaignsIdGetFetcher,
29
+ getCampaignsId,
30
+ buildCampaignsIdDeleteFetcher,
31
+ deleteCampaignsId,
32
+ buildCampaignsIdPatchFetcher,
33
+ patchCampaignsId
34
+ };
@@ -0,0 +1,20 @@
1
+ // src/fetch/campaignsIdPreviewDeliveryEmail.ts
2
+ import {
3
+ createVoidFetcher,
4
+ __internal__requestUrl
5
+ } from "@readyfor/api-client-base";
6
+ var buildCampaignsIdPreviewDeliveryEmailPostFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
7
+ var postCampaignsIdPreviewDeliveryEmail = (path, requestBody, requestInit) => buildCampaignsIdPreviewDeliveryEmailPostFetcher()(
8
+ __internal__requestUrl("/api/campaigns/{id}/preview_delivery_email", path),
9
+ {
10
+ ...requestInit,
11
+ method: "POST",
12
+ headers: { ...requestInit?.headers, "Content-Type": "application/json" },
13
+ body: JSON.stringify(requestBody)
14
+ }
15
+ );
16
+
17
+ export {
18
+ buildCampaignsIdPreviewDeliveryEmailPostFetcher,
19
+ postCampaignsIdPreviewDeliveryEmail
20
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildProjectsProjectIdOrKeywordGetFetcher
3
- } from "./chunk-2UJ4AWWH.mjs";
3
+ } from "./chunk-VJU27CZQ.mjs";
4
4
 
5
5
  // src/hooks/useProjectsProjectIdOrKeyword.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildCampaignsGetFetcher
3
- } from "./chunk-4INIKTKJ.mjs";
3
+ } from "./chunk-MFCSQX6F.mjs";
4
4
 
5
5
  // src/hooks/useCampaigns.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -0,0 +1,29 @@
1
+ import {
2
+ GetCampaignsResponse,
3
+ PostCampaignsResponse
4
+ } from "./chunk-QCIAYUXK.mjs";
5
+
6
+ // src/fetch/campaigns.ts
7
+ import {
8
+ createJsonFetcher,
9
+ __internal__requestUrl
10
+ } from "@readyfor/api-client-base";
11
+ var buildCampaignsGetFetcher = (requestInit) => createJsonFetcher(GetCampaignsResponse, { ...requestInit });
12
+ var getCampaigns = (query, requestInit) => buildCampaignsGetFetcher()(
13
+ __internal__requestUrl("/api/campaigns", {}, query),
14
+ { ...requestInit, method: "GET" }
15
+ );
16
+ var buildCampaignsPostFetcher = (requestInit) => createJsonFetcher(PostCampaignsResponse, { ...requestInit });
17
+ var postCampaigns = (requestBody, requestInit) => buildCampaignsPostFetcher()(__internal__requestUrl("/api/campaigns"), {
18
+ ...requestInit,
19
+ method: "POST",
20
+ headers: { ...requestInit?.headers, "Content-Type": "application/json" },
21
+ body: JSON.stringify(requestBody)
22
+ });
23
+
24
+ export {
25
+ buildCampaignsGetFetcher,
26
+ getCampaigns,
27
+ buildCampaignsPostFetcher,
28
+ postCampaigns
29
+ };
@@ -0,0 +1,15 @@
1
+ // src/fetch/campaignsCampaignIdImagesId.ts
2
+ import {
3
+ createVoidFetcher,
4
+ __internal__requestUrl
5
+ } from "@readyfor/api-client-base";
6
+ var buildCampaignsCampaignIdImagesIdDeleteFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
7
+ var deleteCampaignsCampaignIdImagesId = (path, requestInit) => buildCampaignsCampaignIdImagesIdDeleteFetcher()(
8
+ __internal__requestUrl("/api/campaigns/{campaign_id}/images/{id}", path),
9
+ { ...requestInit, method: "DELETE" }
10
+ );
11
+
12
+ export {
13
+ buildCampaignsCampaignIdImagesIdDeleteFetcher,
14
+ deleteCampaignsCampaignIdImagesId
15
+ };
@@ -5,18 +5,13 @@ import {
5
5
  // src/fetch/segmentsProfileSegments.ts
6
6
  import {
7
7
  createJsonFetcher,
8
- __internal__requestUrl,
9
- buildRequestInitWithDefaultConfig
8
+ __internal__requestUrl
10
9
  } from "@readyfor/api-client-base";
11
10
  var buildSegmentsProfileSegmentsGetFetcher = (requestInit) => createJsonFetcher(GetProfileSegmentsResponse, { ...requestInit });
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
- };
11
+ var getSegmentsProfileSegments = (requestInit) => buildSegmentsProfileSegmentsGetFetcher()(
12
+ __internal__requestUrl("/api/segments/profile_segments"),
13
+ { ...requestInit, method: "GET" }
14
+ );
20
15
 
21
16
  export {
22
17
  buildSegmentsProfileSegmentsGetFetcher,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildSegmentsTargetUsersCountGetFetcher
3
- } from "./chunk-VGMORDQ4.mjs";
3
+ } from "./chunk-BGIB7JQD.mjs";
4
4
 
5
5
  // src/hooks/useSegmentsTargetUsersCount.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -5,21 +5,13 @@ import {
5
5
  // src/fetch/projectsProjectIdOrKeyword.ts
6
6
  import {
7
7
  createJsonFetcher,
8
- __internal__requestUrl,
9
- buildRequestInitWithDefaultConfig
8
+ __internal__requestUrl
10
9
  } from "@readyfor/api-client-base";
11
10
  var buildProjectsProjectIdOrKeywordGetFetcher = (requestInit) => createJsonFetcher(GetProjectsProjectIdOrKeywordResponse, { ...requestInit });
12
- var getProjectsProjectIdOrKeyword = (path, customRequestInit) => {
13
- const requestInfo = __internal__requestUrl(
14
- "/api/projects/{project_id_or_keyword}",
15
- path
16
- );
17
- const requestInit = buildRequestInitWithDefaultConfig({
18
- ...customRequestInit,
19
- method: "GET"
20
- });
21
- return buildProjectsProjectIdOrKeywordGetFetcher(requestInit)(requestInfo);
22
- };
11
+ var getProjectsProjectIdOrKeyword = (path, requestInit) => buildProjectsProjectIdOrKeywordGetFetcher()(
12
+ __internal__requestUrl("/api/projects/{project_id_or_keyword}", path),
13
+ { ...requestInit, method: "GET" }
14
+ );
23
15
 
24
16
  export {
25
17
  buildProjectsProjectIdOrKeywordGetFetcher,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildCampaignsIdGetFetcher
3
- } from "./chunk-AGTNHB2D.mjs";
3
+ } from "./chunk-EYJTETGN.mjs";
4
4
 
5
5
  // src/hooks/useCampaignsId.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -0,0 +1,22 @@
1
+ // src/fetch/campaignsIdDeliveryJob.ts
2
+ import {
3
+ createVoidFetcher,
4
+ __internal__requestUrl
5
+ } from "@readyfor/api-client-base";
6
+ var buildCampaignsIdDeliveryJobPostFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
7
+ var postCampaignsIdDeliveryJob = (path, requestInit) => buildCampaignsIdDeliveryJobPostFetcher()(
8
+ __internal__requestUrl("/api/campaigns/{id}/delivery_job", path),
9
+ { ...requestInit, method: "POST" }
10
+ );
11
+ var buildCampaignsIdDeliveryJobDeleteFetcher = (requestInit) => createVoidFetcher({ ...requestInit });
12
+ var deleteCampaignsIdDeliveryJob = (path, requestInit) => buildCampaignsIdDeliveryJobDeleteFetcher()(
13
+ __internal__requestUrl("/api/campaigns/{id}/delivery_job", path),
14
+ { ...requestInit, method: "DELETE" }
15
+ );
16
+
17
+ export {
18
+ buildCampaignsIdDeliveryJobPostFetcher,
19
+ postCampaignsIdDeliveryJob,
20
+ buildCampaignsIdDeliveryJobDeleteFetcher,
21
+ deleteCampaignsIdDeliveryJob
22
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildCampaignsIdPreviewGetFetcher
3
- } from "./chunk-KL2DA5QY.mjs";
3
+ } from "./chunk-DH3UXOBA.mjs";
4
4
 
5
5
  // src/hooks/useCampaignsIdPreview.ts
6
6
  import useSWRImmutable from "swr/immutable";
@@ -37,7 +37,7 @@ type CampaignsGetQuery = ForceDig<CampaignsGetOperation, [
37
37
  "parameters",
38
38
  "query"
39
39
  ]>;
40
- declare const getCampaigns: (query: CampaignsGetQuery, customRequestInit?: RequestInit) => Promise<{
40
+ declare const getCampaigns: (query: CampaignsGetQuery, requestInit?: RequestInit) => Promise<{
41
41
  campaigns: ({
42
42
  kind: "curationMailMagazine";
43
43
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
@@ -77,7 +77,7 @@ type CampaignsPostRequestBody = ForceDig<CampaignsPostOperation, [
77
77
  "content",
78
78
  "application/json"
79
79
  ]>;
80
- declare const postCampaigns: (requestBody: CampaignsPostRequestBody, customRequestInit?: RequestInit) => Promise<{
80
+ declare const postCampaigns: (requestBody: CampaignsPostRequestBody, requestInit?: RequestInit) => Promise<{
81
81
  id: number;
82
82
  }>;
83
83
 
@@ -37,7 +37,7 @@ type CampaignsGetQuery = ForceDig<CampaignsGetOperation, [
37
37
  "parameters",
38
38
  "query"
39
39
  ]>;
40
- declare const getCampaigns: (query: CampaignsGetQuery, customRequestInit?: RequestInit) => Promise<{
40
+ declare const getCampaigns: (query: CampaignsGetQuery, requestInit?: RequestInit) => Promise<{
41
41
  campaigns: ({
42
42
  kind: "curationMailMagazine";
43
43
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
@@ -77,7 +77,7 @@ type CampaignsPostRequestBody = ForceDig<CampaignsPostOperation, [
77
77
  "content",
78
78
  "application/json"
79
79
  ]>;
80
- declare const postCampaigns: (requestBody: CampaignsPostRequestBody, customRequestInit?: RequestInit) => Promise<{
80
+ declare const postCampaigns: (requestBody: CampaignsPostRequestBody, requestInit?: RequestInit) => Promise<{
81
81
  id: number;
82
82
  }>;
83
83
 
@@ -308,28 +308,17 @@ var GetCampaignsResponse = import_zod.z.object({
308
308
 
309
309
  // src/fetch/campaigns.ts
310
310
  var buildCampaignsGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsResponse, { ...requestInit });
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
- };
311
+ var getCampaigns = (query, requestInit) => buildCampaignsGetFetcher()(
312
+ (0, import_api_client_base.__internal__requestUrl)("/api/campaigns", {}, query),
313
+ { ...requestInit, method: "GET" }
314
+ );
319
315
  var buildCampaignsPostFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(PostCampaignsResponse, { ...requestInit });
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
- };
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
+ });
333
322
  // Annotate the CommonJS export names for ESM import in node:
334
323
  0 && (module.exports = {
335
324
  buildCampaignsGetFetcher,
@@ -3,7 +3,7 @@ import {
3
3
  buildCampaignsPostFetcher,
4
4
  getCampaigns,
5
5
  postCampaigns
6
- } from "../chunk-4INIKTKJ.mjs";
6
+ } from "../chunk-MFCSQX6F.mjs";
7
7
  import "../chunk-QCIAYUXK.mjs";
8
8
  export {
9
9
  buildCampaignsGetFetcher,
@@ -7,6 +7,6 @@ type CampaignsCampaignIdImagesIdDeletePath = ForceDig<CampaignsCampaignIdImagesI
7
7
  "parameters",
8
8
  "path"
9
9
  ]>;
10
- declare const deleteCampaignsCampaignIdImagesId: (path: CampaignsCampaignIdImagesIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
10
+ declare const deleteCampaignsCampaignIdImagesId: (path: CampaignsCampaignIdImagesIdDeletePath, requestInit?: RequestInit) => Promise<void>;
11
11
 
12
12
  export { type CampaignsCampaignIdImagesIdDeletePath, buildCampaignsCampaignIdImagesIdDeleteFetcher, deleteCampaignsCampaignIdImagesId };
@@ -7,6 +7,6 @@ type CampaignsCampaignIdImagesIdDeletePath = ForceDig<CampaignsCampaignIdImagesI
7
7
  "parameters",
8
8
  "path"
9
9
  ]>;
10
- declare const deleteCampaignsCampaignIdImagesId: (path: CampaignsCampaignIdImagesIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
10
+ declare const deleteCampaignsCampaignIdImagesId: (path: CampaignsCampaignIdImagesIdDeletePath, requestInit?: RequestInit) => Promise<void>;
11
11
 
12
12
  export { type CampaignsCampaignIdImagesIdDeletePath, buildCampaignsCampaignIdImagesIdDeleteFetcher, deleteCampaignsCampaignIdImagesId };
@@ -26,19 +26,10 @@ __export(campaignsCampaignIdImagesId_exports, {
26
26
  module.exports = __toCommonJS(campaignsCampaignIdImagesId_exports);
27
27
  var import_api_client_base = require("@readyfor/api-client-base");
28
28
  var buildCampaignsCampaignIdImagesIdDeleteFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
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
- };
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
+ );
42
33
  // Annotate the CommonJS export names for ESM import in node:
43
34
  0 && (module.exports = {
44
35
  buildCampaignsCampaignIdImagesIdDeleteFetcher,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildCampaignsCampaignIdImagesIdDeleteFetcher,
3
3
  deleteCampaignsCampaignIdImagesId
4
- } from "../chunk-WISELSRL.mjs";
4
+ } from "../chunk-NIBXTDD3.mjs";
5
5
  export {
6
6
  buildCampaignsCampaignIdImagesIdDeleteFetcher,
7
7
  deleteCampaignsCampaignIdImagesId
@@ -76,7 +76,7 @@ type CampaignsIdGetPath = ForceDig<CampaignsIdGetOperation, [
76
76
  "parameters",
77
77
  "path"
78
78
  ]>;
79
- declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: RequestInit) => Promise<{
79
+ declare const getCampaignsId: (path: CampaignsIdGetPath, requestInit?: RequestInit) => Promise<{
80
80
  campaignDetail: {
81
81
  curationMailMagazine: {
82
82
  utmCampaign: string | null;
@@ -151,7 +151,7 @@ type CampaignsIdDeletePath = ForceDig<CampaignsIdDeleteOperation, [
151
151
  "parameters",
152
152
  "path"
153
153
  ]>;
154
- declare const deleteCampaignsId: (path: CampaignsIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
154
+ declare const deleteCampaignsId: (path: CampaignsIdDeletePath, requestInit?: RequestInit) => Promise<void>;
155
155
  type CampaignsIdPatchOperation = paths["/api/campaigns/{id}"]["patch"];
156
156
  type CampaignsIdPatchResponse = CampaignsIdPatchOperation["responses"]["200"]["content"]["application/json"];
157
157
  declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
@@ -232,7 +232,7 @@ type CampaignsIdPatchRequestBody = ForceDig<CampaignsIdPatchOperation, [
232
232
  "content",
233
233
  "multipart/form-data"
234
234
  ]>;
235
- declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<{
235
+ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, requestInit?: RequestInit) => Promise<{
236
236
  campaignDetail: {
237
237
  curationMailMagazine: {
238
238
  utmCampaign: string | null;
@@ -76,7 +76,7 @@ type CampaignsIdGetPath = ForceDig<CampaignsIdGetOperation, [
76
76
  "parameters",
77
77
  "path"
78
78
  ]>;
79
- declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: RequestInit) => Promise<{
79
+ declare const getCampaignsId: (path: CampaignsIdGetPath, requestInit?: RequestInit) => Promise<{
80
80
  campaignDetail: {
81
81
  curationMailMagazine: {
82
82
  utmCampaign: string | null;
@@ -151,7 +151,7 @@ type CampaignsIdDeletePath = ForceDig<CampaignsIdDeleteOperation, [
151
151
  "parameters",
152
152
  "path"
153
153
  ]>;
154
- declare const deleteCampaignsId: (path: CampaignsIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
154
+ declare const deleteCampaignsId: (path: CampaignsIdDeletePath, requestInit?: RequestInit) => Promise<void>;
155
155
  type CampaignsIdPatchOperation = paths["/api/campaigns/{id}"]["patch"];
156
156
  type CampaignsIdPatchResponse = CampaignsIdPatchOperation["responses"]["200"]["content"]["application/json"];
157
157
  declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
@@ -232,7 +232,7 @@ type CampaignsIdPatchRequestBody = ForceDig<CampaignsIdPatchOperation, [
232
232
  "content",
233
233
  "multipart/form-data"
234
234
  ]>;
235
- declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<{
235
+ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, requestInit?: RequestInit) => Promise<{
236
236
  campaignDetail: {
237
237
  curationMailMagazine: {
238
238
  utmCampaign: string | null;
@@ -310,33 +310,20 @@ var GetCampaignsResponse = import_zod.z.object({
310
310
 
311
311
  // src/fetch/campaignsId.ts
312
312
  var buildCampaignsIdGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
313
- var getCampaignsId = (path, customRequestInit) => {
314
- const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
315
- const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
316
- ...customRequestInit,
317
- method: "GET"
318
- });
319
- return buildCampaignsIdGetFetcher(requestInit)(requestInfo);
320
- };
313
+ var getCampaignsId = (path, requestInit) => buildCampaignsIdGetFetcher()(
314
+ (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path),
315
+ { ...requestInit, method: "GET" }
316
+ );
321
317
  var buildCampaignsIdDeleteFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
322
- var deleteCampaignsId = (path, customRequestInit) => {
323
- const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
324
- const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
325
- ...customRequestInit,
326
- method: "DELETE"
327
- });
328
- return buildCampaignsIdDeleteFetcher(requestInit)(requestInfo);
329
- };
318
+ var deleteCampaignsId = (path, requestInit) => buildCampaignsIdDeleteFetcher()(
319
+ (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path),
320
+ { ...requestInit, method: "DELETE" }
321
+ );
330
322
  var buildCampaignsIdPatchFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
331
- var patchCampaignsId = (path, requestBody, customRequestInit) => {
332
- const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
333
- const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
334
- ...customRequestInit,
335
- method: "PATCH",
336
- body: requestBody
337
- });
338
- return buildCampaignsIdPatchFetcher(requestInit)(requestInfo);
339
- };
323
+ var patchCampaignsId = (path, requestBody, requestInit) => buildCampaignsIdPatchFetcher()(
324
+ (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path),
325
+ { ...requestInit, method: "PATCH", body: requestBody }
326
+ );
340
327
  // Annotate the CommonJS export names for ESM import in node:
341
328
  0 && (module.exports = {
342
329
  buildCampaignsIdDeleteFetcher,
@@ -5,7 +5,7 @@ import {
5
5
  deleteCampaignsId,
6
6
  getCampaignsId,
7
7
  patchCampaignsId
8
- } from "../chunk-AGTNHB2D.mjs";
8
+ } from "../chunk-EYJTETGN.mjs";
9
9
  import "../chunk-QCIAYUXK.mjs";
10
10
  export {
11
11
  buildCampaignsIdDeleteFetcher,
@@ -7,13 +7,13 @@ type CampaignsIdDeliveryJobPostPath = ForceDig<CampaignsIdDeliveryJobPostOperati
7
7
  "parameters",
8
8
  "path"
9
9
  ]>;
10
- declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath, customRequestInit?: RequestInit) => Promise<void>;
10
+ declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath, requestInit?: RequestInit) => Promise<void>;
11
11
  type CampaignsIdDeliveryJobDeleteOperation = paths["/api/campaigns/{id}/delivery_job"]["delete"];
12
12
  declare const buildCampaignsIdDeliveryJobDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
13
13
  type CampaignsIdDeliveryJobDeletePath = ForceDig<CampaignsIdDeliveryJobDeleteOperation, [
14
14
  "parameters",
15
15
  "path"
16
16
  ]>;
17
- declare const deleteCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobDeletePath, customRequestInit?: RequestInit) => Promise<void>;
17
+ declare const deleteCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobDeletePath, requestInit?: RequestInit) => Promise<void>;
18
18
 
19
19
  export { type CampaignsIdDeliveryJobDeletePath, type CampaignsIdDeliveryJobPostPath, buildCampaignsIdDeliveryJobDeleteFetcher, buildCampaignsIdDeliveryJobPostFetcher, deleteCampaignsIdDeliveryJob, postCampaignsIdDeliveryJob };
@@ -7,13 +7,13 @@ type CampaignsIdDeliveryJobPostPath = ForceDig<CampaignsIdDeliveryJobPostOperati
7
7
  "parameters",
8
8
  "path"
9
9
  ]>;
10
- declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath, customRequestInit?: RequestInit) => Promise<void>;
10
+ declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath, requestInit?: RequestInit) => Promise<void>;
11
11
  type CampaignsIdDeliveryJobDeleteOperation = paths["/api/campaigns/{id}/delivery_job"]["delete"];
12
12
  declare const buildCampaignsIdDeliveryJobDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
13
13
  type CampaignsIdDeliveryJobDeletePath = ForceDig<CampaignsIdDeliveryJobDeleteOperation, [
14
14
  "parameters",
15
15
  "path"
16
16
  ]>;
17
- declare const deleteCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobDeletePath, customRequestInit?: RequestInit) => Promise<void>;
17
+ declare const deleteCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobDeletePath, requestInit?: RequestInit) => Promise<void>;
18
18
 
19
19
  export { type CampaignsIdDeliveryJobDeletePath, type CampaignsIdDeliveryJobPostPath, buildCampaignsIdDeliveryJobDeleteFetcher, buildCampaignsIdDeliveryJobPostFetcher, deleteCampaignsIdDeliveryJob, postCampaignsIdDeliveryJob };