@readyfor/api-client-pigeon 0.239.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
@@ -3,7 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
3
3
 
4
4
  type CampaignsIdGetOperation = paths["/api/campaigns/{id}"]["get"];
5
5
  type CampaignsIdGetResponse = CampaignsIdGetOperation["responses"]["200"]["content"]["application/json"];
6
- declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
6
+ declare const buildCampaignsIdGetFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
7
  campaignDetail: {
8
8
  curationMailMagazine: {
9
9
  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, requestInit?: RequestInit) => Promise<{
79
+ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: RequestInit) => Promise<{
80
80
  campaignDetail: {
81
81
  curationMailMagazine: {
82
82
  utmCampaign: string | null;
@@ -146,15 +146,15 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, requestInit?: RequestIn
146
146
  };
147
147
  }>;
148
148
  type CampaignsIdDeleteOperation = paths["/api/campaigns/{id}"]["delete"];
149
- declare const buildCampaignsIdDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
149
+ declare const buildCampaignsIdDeleteFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
150
150
  type CampaignsIdDeletePath = ForceDig<CampaignsIdDeleteOperation, [
151
151
  "parameters",
152
152
  "path"
153
153
  ]>;
154
- declare const deleteCampaignsId: (path: CampaignsIdDeletePath, requestInit?: RequestInit) => Promise<void>;
154
+ declare const deleteCampaignsId: (path: CampaignsIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
155
155
  type CampaignsIdPatchOperation = paths["/api/campaigns/{id}"]["patch"];
156
156
  type CampaignsIdPatchResponse = CampaignsIdPatchOperation["responses"]["200"]["content"]["application/json"];
157
- declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
157
+ declare const buildCampaignsIdPatchFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
158
158
  campaignDetail: {
159
159
  curationMailMagazine: {
160
160
  utmCampaign: string | null;
@@ -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, requestInit?: RequestInit) => Promise<{
235
+ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<{
236
236
  campaignDetail: {
237
237
  curationMailMagazine: {
238
238
  utmCampaign: string | null;
@@ -3,7 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
3
3
 
4
4
  type CampaignsIdGetOperation = paths["/api/campaigns/{id}"]["get"];
5
5
  type CampaignsIdGetResponse = CampaignsIdGetOperation["responses"]["200"]["content"]["application/json"];
6
- declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
6
+ declare const buildCampaignsIdGetFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
7
  campaignDetail: {
8
8
  curationMailMagazine: {
9
9
  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, requestInit?: RequestInit) => Promise<{
79
+ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: RequestInit) => Promise<{
80
80
  campaignDetail: {
81
81
  curationMailMagazine: {
82
82
  utmCampaign: string | null;
@@ -146,15 +146,15 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, requestInit?: RequestIn
146
146
  };
147
147
  }>;
148
148
  type CampaignsIdDeleteOperation = paths["/api/campaigns/{id}"]["delete"];
149
- declare const buildCampaignsIdDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
149
+ declare const buildCampaignsIdDeleteFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
150
150
  type CampaignsIdDeletePath = ForceDig<CampaignsIdDeleteOperation, [
151
151
  "parameters",
152
152
  "path"
153
153
  ]>;
154
- declare const deleteCampaignsId: (path: CampaignsIdDeletePath, requestInit?: RequestInit) => Promise<void>;
154
+ declare const deleteCampaignsId: (path: CampaignsIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
155
155
  type CampaignsIdPatchOperation = paths["/api/campaigns/{id}"]["patch"];
156
156
  type CampaignsIdPatchResponse = CampaignsIdPatchOperation["responses"]["200"]["content"]["application/json"];
157
- declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
157
+ declare const buildCampaignsIdPatchFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
158
158
  campaignDetail: {
159
159
  curationMailMagazine: {
160
160
  utmCampaign: string | null;
@@ -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, requestInit?: RequestInit) => Promise<{
235
+ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<{
236
236
  campaignDetail: {
237
237
  curationMailMagazine: {
238
238
  utmCampaign: string | null;
@@ -309,21 +309,34 @@ var GetCampaignsResponse = import_zod.z.object({
309
309
  });
310
310
 
311
311
  // src/fetch/campaignsId.ts
312
- var buildCampaignsIdGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
313
- var getCampaignsId = (path, requestInit) => buildCampaignsIdGetFetcher()(
314
- (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path),
315
- { ...requestInit, method: "GET" }
316
- );
317
- var buildCampaignsIdDeleteFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
318
- var deleteCampaignsId = (path, requestInit) => buildCampaignsIdDeleteFetcher()(
319
- (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path),
320
- { ...requestInit, method: "DELETE" }
321
- );
322
- var buildCampaignsIdPatchFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
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
- );
312
+ var buildCampaignsIdGetFetcher = (customRequestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...customRequestInit });
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
+ };
321
+ var buildCampaignsIdDeleteFetcher = (customRequestInit) => (0, import_api_client_base.createVoidFetcher)({ ...customRequestInit });
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
+ };
330
+ var buildCampaignsIdPatchFetcher = (customRequestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...customRequestInit });
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
+ };
327
340
  // Annotate the CommonJS export names for ESM import in node:
328
341
  0 && (module.exports = {
329
342
  buildCampaignsIdDeleteFetcher,
@@ -5,7 +5,7 @@ import {
5
5
  deleteCampaignsId,
6
6
  getCampaignsId,
7
7
  patchCampaignsId
8
- } from "../chunk-EYJTETGN.mjs";
8
+ } from "../chunk-YT25LCGA.mjs";
9
9
  import "../chunk-QCIAYUXK.mjs";
10
10
  export {
11
11
  buildCampaignsIdDeleteFetcher,
@@ -2,18 +2,18 @@ import { paths } from '../schemaType.mjs';
2
2
  import { ForceDig } from '@readyfor/api-client-base';
3
3
 
4
4
  type CampaignsIdDeliveryJobPostOperation = paths["/api/campaigns/{id}/delivery_job"]["post"];
5
- declare const buildCampaignsIdDeliveryJobPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
5
+ declare const buildCampaignsIdDeliveryJobPostFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
6
6
  type CampaignsIdDeliveryJobPostPath = ForceDig<CampaignsIdDeliveryJobPostOperation, [
7
7
  "parameters",
8
8
  "path"
9
9
  ]>;
10
- declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath, requestInit?: RequestInit) => Promise<void>;
10
+ declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath, customRequestInit?: RequestInit) => Promise<void>;
11
11
  type CampaignsIdDeliveryJobDeleteOperation = paths["/api/campaigns/{id}/delivery_job"]["delete"];
12
- declare const buildCampaignsIdDeliveryJobDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
12
+ declare const buildCampaignsIdDeliveryJobDeleteFetcher: (customRequestInit?: 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, requestInit?: RequestInit) => Promise<void>;
17
+ declare const deleteCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobDeletePath, customRequestInit?: RequestInit) => Promise<void>;
18
18
 
19
19
  export { type CampaignsIdDeliveryJobDeletePath, type CampaignsIdDeliveryJobPostPath, buildCampaignsIdDeliveryJobDeleteFetcher, buildCampaignsIdDeliveryJobPostFetcher, deleteCampaignsIdDeliveryJob, postCampaignsIdDeliveryJob };
@@ -2,18 +2,18 @@ import { paths } from '../schemaType.js';
2
2
  import { ForceDig } from '@readyfor/api-client-base';
3
3
 
4
4
  type CampaignsIdDeliveryJobPostOperation = paths["/api/campaigns/{id}/delivery_job"]["post"];
5
- declare const buildCampaignsIdDeliveryJobPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
5
+ declare const buildCampaignsIdDeliveryJobPostFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
6
6
  type CampaignsIdDeliveryJobPostPath = ForceDig<CampaignsIdDeliveryJobPostOperation, [
7
7
  "parameters",
8
8
  "path"
9
9
  ]>;
10
- declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath, requestInit?: RequestInit) => Promise<void>;
10
+ declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath, customRequestInit?: RequestInit) => Promise<void>;
11
11
  type CampaignsIdDeliveryJobDeleteOperation = paths["/api/campaigns/{id}/delivery_job"]["delete"];
12
- declare const buildCampaignsIdDeliveryJobDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
12
+ declare const buildCampaignsIdDeliveryJobDeleteFetcher: (customRequestInit?: 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, requestInit?: RequestInit) => Promise<void>;
17
+ declare const deleteCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobDeletePath, customRequestInit?: RequestInit) => Promise<void>;
18
18
 
19
19
  export { type CampaignsIdDeliveryJobDeletePath, type CampaignsIdDeliveryJobPostPath, buildCampaignsIdDeliveryJobDeleteFetcher, buildCampaignsIdDeliveryJobPostFetcher, deleteCampaignsIdDeliveryJob, postCampaignsIdDeliveryJob };
@@ -27,16 +27,30 @@ __export(campaignsIdDeliveryJob_exports, {
27
27
  });
28
28
  module.exports = __toCommonJS(campaignsIdDeliveryJob_exports);
29
29
  var import_api_client_base = require("@readyfor/api-client-base");
30
- var buildCampaignsIdDeliveryJobPostFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
31
- var postCampaignsIdDeliveryJob = (path, requestInit) => buildCampaignsIdDeliveryJobPostFetcher()(
32
- (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/delivery_job", path),
33
- { ...requestInit, method: "POST" }
34
- );
35
- var buildCampaignsIdDeliveryJobDeleteFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
36
- var deleteCampaignsIdDeliveryJob = (path, requestInit) => buildCampaignsIdDeliveryJobDeleteFetcher()(
37
- (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/delivery_job", path),
38
- { ...requestInit, method: "DELETE" }
39
- );
30
+ var buildCampaignsIdDeliveryJobPostFetcher = (customRequestInit) => (0, import_api_client_base.createVoidFetcher)({ ...customRequestInit });
31
+ var postCampaignsIdDeliveryJob = (path, customRequestInit) => {
32
+ const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
33
+ "/api/campaigns/{id}/delivery_job",
34
+ path
35
+ );
36
+ const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
37
+ ...customRequestInit,
38
+ method: "POST"
39
+ });
40
+ return buildCampaignsIdDeliveryJobPostFetcher(requestInit)(requestInfo);
41
+ };
42
+ var buildCampaignsIdDeliveryJobDeleteFetcher = (customRequestInit) => (0, import_api_client_base.createVoidFetcher)({ ...customRequestInit });
43
+ var deleteCampaignsIdDeliveryJob = (path, customRequestInit) => {
44
+ const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
45
+ "/api/campaigns/{id}/delivery_job",
46
+ path
47
+ );
48
+ const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
49
+ ...customRequestInit,
50
+ method: "DELETE"
51
+ });
52
+ return buildCampaignsIdDeliveryJobDeleteFetcher(requestInit)(requestInfo);
53
+ };
40
54
  // Annotate the CommonJS export names for ESM import in node:
41
55
  0 && (module.exports = {
42
56
  buildCampaignsIdDeliveryJobDeleteFetcher,
@@ -3,7 +3,7 @@ import {
3
3
  buildCampaignsIdDeliveryJobPostFetcher,
4
4
  deleteCampaignsIdDeliveryJob,
5
5
  postCampaignsIdDeliveryJob
6
- } from "../chunk-YV4XRZY2.mjs";
6
+ } from "../chunk-NKU3JO55.mjs";
7
7
  export {
8
8
  buildCampaignsIdDeliveryJobDeleteFetcher,
9
9
  buildCampaignsIdDeliveryJobPostFetcher,
@@ -3,7 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
3
3
 
4
4
  type CampaignsIdImagesPostOperation = paths["/api/campaigns/{id}/images"]["post"];
5
5
  type CampaignsIdImagesPostResponse = CampaignsIdImagesPostOperation["responses"]["201"]["content"]["application/json"];
6
- declare const buildCampaignsIdImagesPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
6
+ declare const buildCampaignsIdImagesPostFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
7
  id: number;
8
8
  key: string;
9
9
  }>;
@@ -16,7 +16,7 @@ type CampaignsIdImagesPostRequestBody = ForceDig<CampaignsIdImagesPostOperation,
16
16
  "content",
17
17
  "multipart/form-data"
18
18
  ]>;
19
- declare const postCampaignsIdImages: (path: CampaignsIdImagesPostPath, requestBody: FormData, requestInit?: RequestInit) => Promise<{
19
+ declare const postCampaignsIdImages: (path: CampaignsIdImagesPostPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<{
20
20
  id: number;
21
21
  key: string;
22
22
  }>;
@@ -3,7 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
3
3
 
4
4
  type CampaignsIdImagesPostOperation = paths["/api/campaigns/{id}/images"]["post"];
5
5
  type CampaignsIdImagesPostResponse = CampaignsIdImagesPostOperation["responses"]["201"]["content"]["application/json"];
6
- declare const buildCampaignsIdImagesPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
6
+ declare const buildCampaignsIdImagesPostFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
7
  id: number;
8
8
  key: string;
9
9
  }>;
@@ -16,7 +16,7 @@ type CampaignsIdImagesPostRequestBody = ForceDig<CampaignsIdImagesPostOperation,
16
16
  "content",
17
17
  "multipart/form-data"
18
18
  ]>;
19
- declare const postCampaignsIdImages: (path: CampaignsIdImagesPostPath, requestBody: FormData, requestInit?: RequestInit) => Promise<{
19
+ declare const postCampaignsIdImages: (path: CampaignsIdImagesPostPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<{
20
20
  id: number;
21
21
  key: string;
22
22
  }>;
@@ -305,11 +305,19 @@ var GetCampaignsResponse = import_zod.z.object({
305
305
  });
306
306
 
307
307
  // src/fetch/campaignsIdImages.ts
308
- var buildCampaignsIdImagesPostFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(Image, { ...requestInit });
309
- var postCampaignsIdImages = (path, requestBody, requestInit) => buildCampaignsIdImagesPostFetcher()(
310
- (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/images", path),
311
- { ...requestInit, method: "POST", body: requestBody }
312
- );
308
+ var buildCampaignsIdImagesPostFetcher = (customRequestInit) => (0, import_api_client_base.createJsonFetcher)(Image, { ...customRequestInit });
309
+ var postCampaignsIdImages = (path, requestBody, customRequestInit) => {
310
+ const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
311
+ "/api/campaigns/{id}/images",
312
+ path
313
+ );
314
+ const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
315
+ ...customRequestInit,
316
+ method: "POST",
317
+ body: requestBody
318
+ });
319
+ return buildCampaignsIdImagesPostFetcher(requestInit)(requestInfo);
320
+ };
313
321
  // Annotate the CommonJS export names for ESM import in node:
314
322
  0 && (module.exports = {
315
323
  buildCampaignsIdImagesPostFetcher,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildCampaignsIdImagesPostFetcher,
3
3
  postCampaignsIdImages
4
- } from "../chunk-6DE2SHQZ.mjs";
4
+ } from "../chunk-JXZJCPX3.mjs";
5
5
  import "../chunk-QCIAYUXK.mjs";
6
6
  export {
7
7
  buildCampaignsIdImagesPostFetcher,
@@ -3,14 +3,14 @@ import { ForceDig } from '@readyfor/api-client-base';
3
3
 
4
4
  type CampaignsIdPreviewGetOperation = paths["/api/campaigns/{id}/preview"]["get"];
5
5
  type CampaignsIdPreviewGetResponse = CampaignsIdPreviewGetOperation["responses"]["200"]["content"]["application/json"];
6
- declare const buildCampaignsIdPreviewGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
6
+ declare const buildCampaignsIdPreviewGetFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
7
  content: string;
8
8
  }>;
9
9
  type CampaignsIdPreviewGetPath = ForceDig<CampaignsIdPreviewGetOperation, [
10
10
  "parameters",
11
11
  "path"
12
12
  ]>;
13
- declare const getCampaignsIdPreview: (path: CampaignsIdPreviewGetPath, requestInit?: RequestInit) => Promise<{
13
+ declare const getCampaignsIdPreview: (path: CampaignsIdPreviewGetPath, customRequestInit?: RequestInit) => Promise<{
14
14
  content: string;
15
15
  }>;
16
16
 
@@ -3,14 +3,14 @@ import { ForceDig } from '@readyfor/api-client-base';
3
3
 
4
4
  type CampaignsIdPreviewGetOperation = paths["/api/campaigns/{id}/preview"]["get"];
5
5
  type CampaignsIdPreviewGetResponse = CampaignsIdPreviewGetOperation["responses"]["200"]["content"]["application/json"];
6
- declare const buildCampaignsIdPreviewGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
6
+ declare const buildCampaignsIdPreviewGetFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
7
  content: string;
8
8
  }>;
9
9
  type CampaignsIdPreviewGetPath = ForceDig<CampaignsIdPreviewGetOperation, [
10
10
  "parameters",
11
11
  "path"
12
12
  ]>;
13
- declare const getCampaignsIdPreview: (path: CampaignsIdPreviewGetPath, requestInit?: RequestInit) => Promise<{
13
+ declare const getCampaignsIdPreview: (path: CampaignsIdPreviewGetPath, customRequestInit?: RequestInit) => Promise<{
14
14
  content: string;
15
15
  }>;
16
16
 
@@ -305,11 +305,20 @@ var GetCampaignsResponse = import_zod.z.object({
305
305
  });
306
306
 
307
307
  // src/fetch/campaignsIdPreview.ts
308
- var buildCampaignsIdPreviewGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsCampaignIdPreviewResponse, { ...requestInit });
309
- var getCampaignsIdPreview = (path, requestInit) => buildCampaignsIdPreviewGetFetcher()(
310
- (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/preview", path),
311
- { ...requestInit, method: "GET" }
312
- );
308
+ var buildCampaignsIdPreviewGetFetcher = (customRequestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsCampaignIdPreviewResponse, {
309
+ ...customRequestInit
310
+ });
311
+ var getCampaignsIdPreview = (path, customRequestInit) => {
312
+ const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
313
+ "/api/campaigns/{id}/preview",
314
+ path
315
+ );
316
+ const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
317
+ ...customRequestInit,
318
+ method: "GET"
319
+ });
320
+ return buildCampaignsIdPreviewGetFetcher(requestInit)(requestInfo);
321
+ };
313
322
  // Annotate the CommonJS export names for ESM import in node:
314
323
  0 && (module.exports = {
315
324
  buildCampaignsIdPreviewGetFetcher,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildCampaignsIdPreviewGetFetcher,
3
3
  getCampaignsIdPreview
4
- } from "../chunk-DH3UXOBA.mjs";
4
+ } from "../chunk-4YF2M7Y7.mjs";
5
5
  import "../chunk-QCIAYUXK.mjs";
6
6
  export {
7
7
  buildCampaignsIdPreviewGetFetcher,
@@ -2,7 +2,7 @@ import { paths } from '../schemaType.mjs';
2
2
  import { ForceDig } from '@readyfor/api-client-base';
3
3
 
4
4
  type CampaignsIdPreviewDeliveryEmailPostOperation = paths["/api/campaigns/{id}/preview_delivery_email"]["post"];
5
- declare const buildCampaignsIdPreviewDeliveryEmailPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
5
+ declare const buildCampaignsIdPreviewDeliveryEmailPostFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
6
6
  type CampaignsIdPreviewDeliveryEmailPostPath = ForceDig<CampaignsIdPreviewDeliveryEmailPostOperation, [
7
7
  "parameters",
8
8
  "path"
@@ -12,6 +12,6 @@ type CampaignsIdPreviewDeliveryEmailPostRequestBody = ForceDig<CampaignsIdPrevie
12
12
  "content",
13
13
  "application/json"
14
14
  ]>;
15
- declare const postCampaignsIdPreviewDeliveryEmail: (path: CampaignsIdPreviewDeliveryEmailPostPath, requestBody: CampaignsIdPreviewDeliveryEmailPostRequestBody, requestInit?: RequestInit) => Promise<void>;
15
+ declare const postCampaignsIdPreviewDeliveryEmail: (path: CampaignsIdPreviewDeliveryEmailPostPath, requestBody: CampaignsIdPreviewDeliveryEmailPostRequestBody, customRequestInit?: RequestInit) => Promise<void>;
16
16
 
17
17
  export { type CampaignsIdPreviewDeliveryEmailPostPath, type CampaignsIdPreviewDeliveryEmailPostRequestBody, buildCampaignsIdPreviewDeliveryEmailPostFetcher, postCampaignsIdPreviewDeliveryEmail };
@@ -2,7 +2,7 @@ import { paths } from '../schemaType.js';
2
2
  import { ForceDig } from '@readyfor/api-client-base';
3
3
 
4
4
  type CampaignsIdPreviewDeliveryEmailPostOperation = paths["/api/campaigns/{id}/preview_delivery_email"]["post"];
5
- declare const buildCampaignsIdPreviewDeliveryEmailPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
5
+ declare const buildCampaignsIdPreviewDeliveryEmailPostFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
6
6
  type CampaignsIdPreviewDeliveryEmailPostPath = ForceDig<CampaignsIdPreviewDeliveryEmailPostOperation, [
7
7
  "parameters",
8
8
  "path"
@@ -12,6 +12,6 @@ type CampaignsIdPreviewDeliveryEmailPostRequestBody = ForceDig<CampaignsIdPrevie
12
12
  "content",
13
13
  "application/json"
14
14
  ]>;
15
- declare const postCampaignsIdPreviewDeliveryEmail: (path: CampaignsIdPreviewDeliveryEmailPostPath, requestBody: CampaignsIdPreviewDeliveryEmailPostRequestBody, requestInit?: RequestInit) => Promise<void>;
15
+ declare const postCampaignsIdPreviewDeliveryEmail: (path: CampaignsIdPreviewDeliveryEmailPostPath, requestBody: CampaignsIdPreviewDeliveryEmailPostRequestBody, customRequestInit?: RequestInit) => Promise<void>;
16
16
 
17
17
  export { type CampaignsIdPreviewDeliveryEmailPostPath, type CampaignsIdPreviewDeliveryEmailPostRequestBody, buildCampaignsIdPreviewDeliveryEmailPostFetcher, postCampaignsIdPreviewDeliveryEmail };
@@ -25,16 +25,25 @@ __export(campaignsIdPreviewDeliveryEmail_exports, {
25
25
  });
26
26
  module.exports = __toCommonJS(campaignsIdPreviewDeliveryEmail_exports);
27
27
  var import_api_client_base = require("@readyfor/api-client-base");
28
- var buildCampaignsIdPreviewDeliveryEmailPostFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
29
- var postCampaignsIdPreviewDeliveryEmail = (path, requestBody, requestInit) => buildCampaignsIdPreviewDeliveryEmailPostFetcher()(
30
- (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}/preview_delivery_email", path),
31
- {
32
- ...requestInit,
28
+ var buildCampaignsIdPreviewDeliveryEmailPostFetcher = (customRequestInit) => (0, import_api_client_base.createVoidFetcher)({ ...customRequestInit });
29
+ var postCampaignsIdPreviewDeliveryEmail = (path, requestBody, customRequestInit) => {
30
+ const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
31
+ "/api/campaigns/{id}/preview_delivery_email",
32
+ path
33
+ );
34
+ const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
35
+ ...customRequestInit,
33
36
  method: "POST",
34
- headers: { ...requestInit?.headers, "Content-Type": "application/json" },
37
+ headers: {
38
+ ...customRequestInit?.headers,
39
+ "Content-Type": "application/json"
40
+ },
35
41
  body: JSON.stringify(requestBody)
36
- }
37
- );
42
+ });
43
+ return buildCampaignsIdPreviewDeliveryEmailPostFetcher(requestInit)(
44
+ requestInfo
45
+ );
46
+ };
38
47
  // Annotate the CommonJS export names for ESM import in node:
39
48
  0 && (module.exports = {
40
49
  buildCampaignsIdPreviewDeliveryEmailPostFetcher,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildCampaignsIdPreviewDeliveryEmailPostFetcher,
3
3
  postCampaignsIdPreviewDeliveryEmail
4
- } from "../chunk-KBTZNIQJ.mjs";
4
+ } from "../chunk-CABZT6BU.mjs";
5
5
  export {
6
6
  buildCampaignsIdPreviewDeliveryEmailPostFetcher,
7
7
  postCampaignsIdPreviewDeliveryEmail
@@ -3,7 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
3
3
 
4
4
  type ProjectsProjectIdOrKeywordGetOperation = paths["/api/projects/{project_id_or_keyword}"]["get"];
5
5
  type ProjectsProjectIdOrKeywordGetResponse = ProjectsProjectIdOrKeywordGetOperation["responses"]["200"]["content"]["application/json"];
6
- declare const buildProjectsProjectIdOrKeywordGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
6
+ declare const buildProjectsProjectIdOrKeywordGetFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
7
  project: {
8
8
  title: string;
9
9
  projectId: number;
@@ -15,7 +15,7 @@ type ProjectsProjectIdOrKeywordGetPath = ForceDig<ProjectsProjectIdOrKeywordGetO
15
15
  "parameters",
16
16
  "path"
17
17
  ]>;
18
- declare const getProjectsProjectIdOrKeyword: (path: ProjectsProjectIdOrKeywordGetPath, requestInit?: RequestInit) => Promise<{
18
+ declare const getProjectsProjectIdOrKeyword: (path: ProjectsProjectIdOrKeywordGetPath, customRequestInit?: RequestInit) => Promise<{
19
19
  project: {
20
20
  title: string;
21
21
  projectId: number;
@@ -3,7 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
3
3
 
4
4
  type ProjectsProjectIdOrKeywordGetOperation = paths["/api/projects/{project_id_or_keyword}"]["get"];
5
5
  type ProjectsProjectIdOrKeywordGetResponse = ProjectsProjectIdOrKeywordGetOperation["responses"]["200"]["content"]["application/json"];
6
- declare const buildProjectsProjectIdOrKeywordGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
6
+ declare const buildProjectsProjectIdOrKeywordGetFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
7
  project: {
8
8
  title: string;
9
9
  projectId: number;
@@ -15,7 +15,7 @@ type ProjectsProjectIdOrKeywordGetPath = ForceDig<ProjectsProjectIdOrKeywordGetO
15
15
  "parameters",
16
16
  "path"
17
17
  ]>;
18
- declare const getProjectsProjectIdOrKeyword: (path: ProjectsProjectIdOrKeywordGetPath, requestInit?: RequestInit) => Promise<{
18
+ declare const getProjectsProjectIdOrKeyword: (path: ProjectsProjectIdOrKeywordGetPath, customRequestInit?: RequestInit) => Promise<{
19
19
  project: {
20
20
  title: string;
21
21
  projectId: number;
@@ -305,11 +305,20 @@ var GetCampaignsResponse = import_zod.z.object({
305
305
  });
306
306
 
307
307
  // src/fetch/projectsProjectIdOrKeyword.ts
308
- var buildProjectsProjectIdOrKeywordGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetProjectsProjectIdOrKeywordResponse, { ...requestInit });
309
- var getProjectsProjectIdOrKeyword = (path, requestInit) => buildProjectsProjectIdOrKeywordGetFetcher()(
310
- (0, import_api_client_base.__internal__requestUrl)("/api/projects/{project_id_or_keyword}", path),
311
- { ...requestInit, method: "GET" }
312
- );
308
+ var buildProjectsProjectIdOrKeywordGetFetcher = (customRequestInit) => (0, import_api_client_base.createJsonFetcher)(GetProjectsProjectIdOrKeywordResponse, {
309
+ ...customRequestInit
310
+ });
311
+ var getProjectsProjectIdOrKeyword = (path, customRequestInit) => {
312
+ const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
313
+ "/api/projects/{project_id_or_keyword}",
314
+ path
315
+ );
316
+ const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
317
+ ...customRequestInit,
318
+ method: "GET"
319
+ });
320
+ return buildProjectsProjectIdOrKeywordGetFetcher(requestInit)(requestInfo);
321
+ };
313
322
  // Annotate the CommonJS export names for ESM import in node:
314
323
  0 && (module.exports = {
315
324
  buildProjectsProjectIdOrKeywordGetFetcher,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildProjectsProjectIdOrKeywordGetFetcher,
3
3
  getProjectsProjectIdOrKeyword
4
- } from "../chunk-VJU27CZQ.mjs";
4
+ } from "../chunk-2MRIEXEQ.mjs";
5
5
  import "../chunk-QCIAYUXK.mjs";
6
6
  export {
7
7
  buildProjectsProjectIdOrKeywordGetFetcher,
@@ -2,7 +2,7 @@ import { paths } from '../schemaType.mjs';
2
2
 
3
3
  type SegmentsBehaviorSegmentsGetOperation = paths["/api/segments/behavior_segments"]["get"];
4
4
  type SegmentsBehaviorSegmentsGetResponse = SegmentsBehaviorSegmentsGetOperation["responses"]["200"]["content"]["application/json"];
5
- declare const buildSegmentsBehaviorSegmentsGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
5
+ declare const buildSegmentsBehaviorSegmentsGetFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
6
6
  behaviorSegments: {
7
7
  code: string;
8
8
  description: string | null;
@@ -11,7 +11,7 @@ declare const buildSegmentsBehaviorSegmentsGetFetcher: (requestInit?: RequestIni
11
11
  displayOrder: number | null;
12
12
  }[];
13
13
  }>;
14
- declare const getSegmentsBehaviorSegments: (requestInit?: RequestInit) => Promise<{
14
+ declare const getSegmentsBehaviorSegments: (customRequestInit?: RequestInit) => Promise<{
15
15
  behaviorSegments: {
16
16
  code: string;
17
17
  description: string | null;
@@ -2,7 +2,7 @@ import { paths } from '../schemaType.js';
2
2
 
3
3
  type SegmentsBehaviorSegmentsGetOperation = paths["/api/segments/behavior_segments"]["get"];
4
4
  type SegmentsBehaviorSegmentsGetResponse = SegmentsBehaviorSegmentsGetOperation["responses"]["200"]["content"]["application/json"];
5
- declare const buildSegmentsBehaviorSegmentsGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
5
+ declare const buildSegmentsBehaviorSegmentsGetFetcher: (customRequestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
6
6
  behaviorSegments: {
7
7
  code: string;
8
8
  description: string | null;
@@ -11,7 +11,7 @@ declare const buildSegmentsBehaviorSegmentsGetFetcher: (requestInit?: RequestIni
11
11
  displayOrder: number | null;
12
12
  }[];
13
13
  }>;
14
- declare const getSegmentsBehaviorSegments: (requestInit?: RequestInit) => Promise<{
14
+ declare const getSegmentsBehaviorSegments: (customRequestInit?: RequestInit) => Promise<{
15
15
  behaviorSegments: {
16
16
  code: string;
17
17
  description: string | null;
@@ -305,11 +305,15 @@ var GetCampaignsResponse = import_zod.z.object({
305
305
  });
306
306
 
307
307
  // src/fetch/segmentsBehaviorSegments.ts
308
- var buildSegmentsBehaviorSegmentsGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetBehaviorSegmentsResponse, { ...requestInit });
309
- var getSegmentsBehaviorSegments = (requestInit) => buildSegmentsBehaviorSegmentsGetFetcher()(
310
- (0, import_api_client_base.__internal__requestUrl)("/api/segments/behavior_segments"),
311
- { ...requestInit, method: "GET" }
312
- );
308
+ var buildSegmentsBehaviorSegmentsGetFetcher = (customRequestInit) => (0, import_api_client_base.createJsonFetcher)(GetBehaviorSegmentsResponse, { ...customRequestInit });
309
+ var getSegmentsBehaviorSegments = (customRequestInit) => {
310
+ const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/segments/behavior_segments");
311
+ const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)({
312
+ ...customRequestInit,
313
+ method: "GET"
314
+ });
315
+ return buildSegmentsBehaviorSegmentsGetFetcher(requestInit)(requestInfo);
316
+ };
313
317
  // Annotate the CommonJS export names for ESM import in node:
314
318
  0 && (module.exports = {
315
319
  buildSegmentsBehaviorSegmentsGetFetcher,