@readyfor/api-client-pigeon 0.244.0 → 0.244.1-pr987.5f93ac7

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 (86) hide show
  1. package/dist/chunk-2ANX7NRV.mjs +24 -0
  2. package/dist/{chunk-KL2BCQLU.mjs → chunk-2FPDBPJY.mjs} +1 -1
  3. package/dist/chunk-4GY6JZ77.mjs +39 -0
  4. package/dist/chunk-6JHFWIAW.mjs +27 -0
  5. package/dist/chunk-6ZETET36.mjs +24 -0
  6. package/dist/{chunk-DQW3ZEJN.mjs → chunk-7JRHKS3K.mjs} +1 -1
  7. package/dist/{chunk-LUUW3QOB.mjs → chunk-G6IJEAVR.mjs} +1 -1
  8. package/dist/{chunk-ZDQDW24D.mjs → chunk-HD6B7N5S.mjs} +1 -1
  9. package/dist/chunk-IKRY3IDS.mjs +28 -0
  10. package/dist/chunk-JVMIOVIM.mjs +29 -0
  11. package/dist/{chunk-3BSY3CC4.mjs → chunk-JWVQXFDL.mjs} +1 -1
  12. package/dist/chunk-LMM3AGZ6.mjs +36 -0
  13. package/dist/chunk-MCYE5BYS.mjs +25 -0
  14. package/dist/{chunk-VUY6GQWT.mjs → chunk-NIZUYZOH.mjs} +1 -1
  15. package/dist/{chunk-S2M3EJKW.mjs → chunk-OLAYQE52.mjs} +1 -1
  16. package/dist/chunk-OODNPRT4.mjs +30 -0
  17. package/dist/chunk-TP3CBDVX.mjs +48 -0
  18. package/dist/chunk-X2WL4YZH.mjs +27 -0
  19. package/dist/components.d.mts +649 -4987
  20. package/dist/components.d.ts +649 -4987
  21. package/dist/fetch/campaigns.d.mts +4 -66
  22. package/dist/fetch/campaigns.d.ts +4 -66
  23. package/dist/fetch/campaigns.js +18 -10
  24. package/dist/fetch/campaigns.mjs +1 -1
  25. package/dist/fetch/campaignsCampaignIdImagesId.d.mts +1 -1
  26. package/dist/fetch/campaignsCampaignIdImagesId.d.ts +1 -1
  27. package/dist/fetch/campaignsCampaignIdImagesId.js +12 -4
  28. package/dist/fetch/campaignsCampaignIdImagesId.mjs +1 -1
  29. package/dist/fetch/campaignsId.d.mts +5 -277
  30. package/dist/fetch/campaignsId.d.ts +5 -277
  31. package/dist/fetch/campaignsId.js +24 -12
  32. package/dist/fetch/campaignsId.mjs +1 -1
  33. package/dist/fetch/campaignsIdDeliveryJob.d.mts +2 -2
  34. package/dist/fetch/campaignsIdDeliveryJob.d.ts +2 -2
  35. package/dist/fetch/campaignsIdDeliveryJob.js +20 -8
  36. package/dist/fetch/campaignsIdDeliveryJob.mjs +1 -1
  37. package/dist/fetch/campaignsIdImages.d.mts +2 -8
  38. package/dist/fetch/campaignsIdImages.d.ts +2 -8
  39. package/dist/fetch/campaignsIdImages.js +13 -4
  40. package/dist/fetch/campaignsIdImages.mjs +1 -1
  41. package/dist/fetch/campaignsIdPreview.d.mts +2 -6
  42. package/dist/fetch/campaignsIdPreview.d.ts +2 -6
  43. package/dist/fetch/campaignsIdPreview.js +10 -4
  44. package/dist/fetch/campaignsIdPreview.mjs +1 -1
  45. package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.mts +1 -1
  46. package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.ts +1 -1
  47. package/dist/fetch/campaignsIdPreviewDeliveryEmail.js +16 -9
  48. package/dist/fetch/campaignsIdPreviewDeliveryEmail.mjs +1 -1
  49. package/dist/fetch/projectsProjectIdOrKeyword.d.mts +2 -16
  50. package/dist/fetch/projectsProjectIdOrKeyword.d.ts +2 -16
  51. package/dist/fetch/projectsProjectIdOrKeyword.js +10 -4
  52. package/dist/fetch/projectsProjectIdOrKeyword.mjs +1 -1
  53. package/dist/fetch/segmentsBehaviorSegments.d.mts +2 -18
  54. package/dist/fetch/segmentsBehaviorSegments.d.ts +2 -18
  55. package/dist/fetch/segmentsBehaviorSegments.js +7 -4
  56. package/dist/fetch/segmentsBehaviorSegments.mjs +1 -1
  57. package/dist/fetch/segmentsProfileSegments.d.mts +2 -18
  58. package/dist/fetch/segmentsProfileSegments.d.ts +2 -18
  59. package/dist/fetch/segmentsProfileSegments.js +7 -4
  60. package/dist/fetch/segmentsProfileSegments.mjs +1 -1
  61. package/dist/fetch/segmentsTargetUsersCount.d.mts +2 -6
  62. package/dist/fetch/segmentsTargetUsersCount.d.ts +2 -6
  63. package/dist/fetch/segmentsTargetUsersCount.js +11 -4
  64. package/dist/fetch/segmentsTargetUsersCount.mjs +1 -1
  65. package/dist/hooks/index.mjs +18 -18
  66. package/dist/hooks/useCampaigns.mjs +12 -12
  67. package/dist/hooks/useCampaignsId.mjs +12 -12
  68. package/dist/hooks/useCampaignsIdPreview.mjs +12 -12
  69. package/dist/hooks/useProjectsProjectIdOrKeyword.mjs +12 -12
  70. package/dist/hooks/useSegmentsBehaviorSegments.mjs +12 -12
  71. package/dist/hooks/useSegmentsProfileSegments.mjs +12 -12
  72. package/dist/hooks/useSegmentsTargetUsersCount.mjs +12 -12
  73. package/dist/index.js +148 -67
  74. package/dist/index.mjs +11 -11
  75. package/package.json +12 -13
  76. package/dist/chunk-6DE2SHQZ.mjs +0 -19
  77. package/dist/chunk-BGIB7JQD.mjs +0 -19
  78. package/dist/chunk-D455PCO3.mjs +0 -19
  79. package/dist/chunk-DH3UXOBA.mjs +0 -19
  80. package/dist/chunk-EYJTETGN.mjs +0 -34
  81. package/dist/chunk-KBTZNIQJ.mjs +0 -20
  82. package/dist/chunk-MFCSQX6F.mjs +0 -29
  83. package/dist/chunk-NIBXTDD3.mjs +0 -15
  84. package/dist/chunk-NKNUFH54.mjs +0 -19
  85. package/dist/chunk-VJU27CZQ.mjs +0 -19
  86. package/dist/chunk-YV4XRZY2.mjs +0 -22
@@ -3,82 +3,20 @@ 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<{
7
- campaigns: ({
8
- kind: "curationMailMagazine";
9
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
10
- id: number;
11
- bodyKind: "template" | "freeFormat";
12
- deliveryAt: string | null;
13
- lastEditorName: string;
14
- lastEditedAt: string;
15
- title?: string | null | undefined;
16
- } | {
17
- kind: "personalizedMailMagazine";
18
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
19
- id: number;
20
- deliveryAt: string | null;
21
- lastEditorName: string;
22
- lastEditedAt: string;
23
- title?: string | null | undefined;
24
- })[];
25
- pagination: {
26
- totalPages: number;
27
- totalCount: number;
28
- currentPerPage: number;
29
- currentPage: number;
30
- prevPage: number | null;
31
- nextPage: number | null;
32
- isFirstPage: boolean;
33
- isLastPage: boolean;
34
- };
35
- }>;
6
+ declare const buildCampaignsGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<any>;
36
7
  type CampaignsGetQuery = ForceDig<CampaignsGetOperation, [
37
8
  "parameters",
38
9
  "query"
39
10
  ]>;
40
- declare const getCampaigns: (query: CampaignsGetQuery, requestInit?: RequestInit) => Promise<{
41
- campaigns: ({
42
- kind: "curationMailMagazine";
43
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
44
- id: number;
45
- bodyKind: "template" | "freeFormat";
46
- deliveryAt: string | null;
47
- lastEditorName: string;
48
- lastEditedAt: string;
49
- title?: string | null | undefined;
50
- } | {
51
- kind: "personalizedMailMagazine";
52
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
53
- id: number;
54
- deliveryAt: string | null;
55
- lastEditorName: string;
56
- lastEditedAt: string;
57
- title?: string | null | undefined;
58
- })[];
59
- pagination: {
60
- totalPages: number;
61
- totalCount: number;
62
- currentPerPage: number;
63
- currentPage: number;
64
- prevPage: number | null;
65
- nextPage: number | null;
66
- isFirstPage: boolean;
67
- isLastPage: boolean;
68
- };
69
- }>;
11
+ declare const getCampaigns: (query: CampaignsGetQuery, customRequestInit?: RequestInit) => Promise<any>;
70
12
  type CampaignsPostOperation = paths["/api/campaigns"]["post"];
71
13
  type CampaignsPostResponse = CampaignsPostOperation["responses"]["201"]["content"]["application/json"];
72
- declare const buildCampaignsPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
73
- id: number;
74
- }>;
14
+ declare const buildCampaignsPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<any>;
75
15
  type CampaignsPostRequestBody = ForceDig<CampaignsPostOperation, [
76
16
  "requestBody",
77
17
  "content",
78
18
  "application/json"
79
19
  ]>;
80
- declare const postCampaigns: (requestBody: CampaignsPostRequestBody, requestInit?: RequestInit) => Promise<{
81
- id: number;
82
- }>;
20
+ declare const postCampaigns: (requestBody: CampaignsPostRequestBody, customRequestInit?: RequestInit) => Promise<any>;
83
21
 
84
22
  export { type CampaignsGetQuery, type CampaignsGetResponse, type CampaignsPostRequestBody, type CampaignsPostResponse, buildCampaignsGetFetcher, buildCampaignsPostFetcher, getCampaigns, postCampaigns };
@@ -3,82 +3,20 @@ 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<{
7
- campaigns: ({
8
- kind: "curationMailMagazine";
9
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
10
- id: number;
11
- bodyKind: "template" | "freeFormat";
12
- deliveryAt: string | null;
13
- lastEditorName: string;
14
- lastEditedAt: string;
15
- title?: string | null | undefined;
16
- } | {
17
- kind: "personalizedMailMagazine";
18
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
19
- id: number;
20
- deliveryAt: string | null;
21
- lastEditorName: string;
22
- lastEditedAt: string;
23
- title?: string | null | undefined;
24
- })[];
25
- pagination: {
26
- totalPages: number;
27
- totalCount: number;
28
- currentPerPage: number;
29
- currentPage: number;
30
- prevPage: number | null;
31
- nextPage: number | null;
32
- isFirstPage: boolean;
33
- isLastPage: boolean;
34
- };
35
- }>;
6
+ declare const buildCampaignsGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<any>;
36
7
  type CampaignsGetQuery = ForceDig<CampaignsGetOperation, [
37
8
  "parameters",
38
9
  "query"
39
10
  ]>;
40
- declare const getCampaigns: (query: CampaignsGetQuery, requestInit?: RequestInit) => Promise<{
41
- campaigns: ({
42
- kind: "curationMailMagazine";
43
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
44
- id: number;
45
- bodyKind: "template" | "freeFormat";
46
- deliveryAt: string | null;
47
- lastEditorName: string;
48
- lastEditedAt: string;
49
- title?: string | null | undefined;
50
- } | {
51
- kind: "personalizedMailMagazine";
52
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
53
- id: number;
54
- deliveryAt: string | null;
55
- lastEditorName: string;
56
- lastEditedAt: string;
57
- title?: string | null | undefined;
58
- })[];
59
- pagination: {
60
- totalPages: number;
61
- totalCount: number;
62
- currentPerPage: number;
63
- currentPage: number;
64
- prevPage: number | null;
65
- nextPage: number | null;
66
- isFirstPage: boolean;
67
- isLastPage: boolean;
68
- };
69
- }>;
11
+ declare const getCampaigns: (query: CampaignsGetQuery, customRequestInit?: RequestInit) => Promise<any>;
70
12
  type CampaignsPostOperation = paths["/api/campaigns"]["post"];
71
13
  type CampaignsPostResponse = CampaignsPostOperation["responses"]["201"]["content"]["application/json"];
72
- declare const buildCampaignsPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
73
- id: number;
74
- }>;
14
+ declare const buildCampaignsPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<any>;
75
15
  type CampaignsPostRequestBody = ForceDig<CampaignsPostOperation, [
76
16
  "requestBody",
77
17
  "content",
78
18
  "application/json"
79
19
  ]>;
80
- declare const postCampaigns: (requestBody: CampaignsPostRequestBody, requestInit?: RequestInit) => Promise<{
81
- id: number;
82
- }>;
20
+ declare const postCampaigns: (requestBody: CampaignsPostRequestBody, customRequestInit?: RequestInit) => Promise<any>;
83
21
 
84
22
  export { type CampaignsGetQuery, type CampaignsGetResponse, type CampaignsPostRequestBody, type CampaignsPostResponse, buildCampaignsGetFetcher, buildCampaignsPostFetcher, getCampaigns, postCampaigns };
@@ -308,17 +308,25 @@ 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, requestInit) => buildCampaignsGetFetcher()(
312
- (0, import_api_client_base.__internal__requestUrl)("/api/campaigns", {}, query),
313
- { ...requestInit, method: "GET" }
314
- );
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
+ (0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" })
315
+ );
316
+ return buildCampaignsGetFetcher(requestInit)(requestInfo);
317
+ };
315
318
  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
- });
319
+ var postCampaigns = (requestBody, customRequestInit) => {
320
+ const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns");
321
+ const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
322
+ (0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, {
323
+ method: "POST",
324
+ headers: { "Content-Type": "application/json" },
325
+ body: JSON.stringify(requestBody)
326
+ })
327
+ );
328
+ return buildCampaignsPostFetcher(requestInit)(requestInfo);
329
+ };
322
330
  // Annotate the CommonJS export names for ESM import in node:
323
331
  0 && (module.exports = {
324
332
  buildCampaignsGetFetcher,
@@ -3,7 +3,7 @@ import {
3
3
  buildCampaignsPostFetcher,
4
4
  getCampaigns,
5
5
  postCampaigns
6
- } from "../chunk-MFCSQX6F.mjs";
6
+ } from "../chunk-4GY6JZ77.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, requestInit?: RequestInit) => Promise<void>;
10
+ declare const deleteCampaignsCampaignIdImagesId: (path: CampaignsCampaignIdImagesIdDeletePath, customRequestInit?: 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, requestInit?: RequestInit) => Promise<void>;
10
+ declare const deleteCampaignsCampaignIdImagesId: (path: CampaignsCampaignIdImagesIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
11
11
 
12
12
  export { type CampaignsCampaignIdImagesIdDeletePath, buildCampaignsCampaignIdImagesIdDeleteFetcher, deleteCampaignsCampaignIdImagesId };
@@ -26,10 +26,18 @@ __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, requestInit) => buildCampaignsCampaignIdImagesIdDeleteFetcher()(
30
- (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{campaign_id}/images/{id}", path),
31
- { ...requestInit, method: "DELETE" }
32
- );
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
+ (0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "DELETE" })
36
+ );
37
+ return buildCampaignsCampaignIdImagesIdDeleteFetcher(requestInit)(
38
+ requestInfo
39
+ );
40
+ };
33
41
  // Annotate the CommonJS export names for ESM import in node:
34
42
  0 && (module.exports = {
35
43
  buildCampaignsCampaignIdImagesIdDeleteFetcher,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildCampaignsCampaignIdImagesIdDeleteFetcher,
3
3
  deleteCampaignsCampaignIdImagesId
4
- } from "../chunk-NIBXTDD3.mjs";
4
+ } from "../chunk-MCYE5BYS.mjs";
5
5
  export {
6
6
  buildCampaignsCampaignIdImagesIdDeleteFetcher,
7
7
  deleteCampaignsCampaignIdImagesId
@@ -3,226 +3,22 @@ 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<{
7
- campaignDetail: {
8
- curationMailMagazine: {
9
- utmCampaign: string | null;
10
- subject: string | null;
11
- preHeaderText: string | null;
12
- targetFilters: {
13
- id: number;
14
- behaviorSegmentCodes: string[];
15
- profileSegmentCodes: string[];
16
- }[];
17
- deliveredUsersCount: number | null;
18
- bodyKind: "freeFormat";
19
- htmlBody: string | null;
20
- htmlStyle: string | null;
21
- images: {
22
- id: number;
23
- key: string;
24
- }[];
25
- } | {
26
- utmCampaign: string | null;
27
- subject: string | null;
28
- preHeaderText: string | null;
29
- targetFilters: {
30
- id: number;
31
- behaviorSegmentCodes: string[];
32
- profileSegmentCodes: string[];
33
- }[];
34
- deliveredUsersCount: number | null;
35
- bodyKind: "template";
36
- projects: {
37
- id: number;
38
- slotNumber: number;
39
- readyforProjectId: number;
40
- isPaidSlot: boolean;
41
- title: string | null;
42
- description: string | null;
43
- tag: string | null;
44
- tagUrl: string | null;
45
- thumbnailUrl: string | null;
46
- }[];
47
- banners: {
48
- id: number;
49
- slotNumber: number;
50
- url: string | null;
51
- imageUrl: string | null;
52
- }[];
53
- };
54
- kind: "curationMailMagazine";
55
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
56
- id: number;
57
- title: string | null;
58
- deliveryScheduledAt: string | null;
59
- } | {
60
- personalizedMailMagazine: {
61
- utmCampaign: string | null;
62
- target: {
63
- csvFileName: string;
64
- targetUsersCount: number;
65
- excludedUsersCount: number;
66
- } | null;
67
- };
68
- kind: "personalizedMailMagazine";
69
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
70
- id: number;
71
- title: string | null;
72
- deliveryScheduledAt: string | null;
73
- };
74
- }>;
6
+ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<any>;
75
7
  type CampaignsIdGetPath = ForceDig<CampaignsIdGetOperation, [
76
8
  "parameters",
77
9
  "path"
78
10
  ]>;
79
- declare const getCampaignsId: (path: CampaignsIdGetPath, requestInit?: RequestInit) => Promise<{
80
- campaignDetail: {
81
- curationMailMagazine: {
82
- utmCampaign: string | null;
83
- subject: string | null;
84
- preHeaderText: string | null;
85
- targetFilters: {
86
- id: number;
87
- behaviorSegmentCodes: string[];
88
- profileSegmentCodes: string[];
89
- }[];
90
- deliveredUsersCount: number | null;
91
- bodyKind: "freeFormat";
92
- htmlBody: string | null;
93
- htmlStyle: string | null;
94
- images: {
95
- id: number;
96
- key: string;
97
- }[];
98
- } | {
99
- utmCampaign: string | null;
100
- subject: string | null;
101
- preHeaderText: string | null;
102
- targetFilters: {
103
- id: number;
104
- behaviorSegmentCodes: string[];
105
- profileSegmentCodes: string[];
106
- }[];
107
- deliveredUsersCount: number | null;
108
- bodyKind: "template";
109
- projects: {
110
- id: number;
111
- slotNumber: number;
112
- readyforProjectId: number;
113
- isPaidSlot: boolean;
114
- title: string | null;
115
- description: string | null;
116
- tag: string | null;
117
- tagUrl: string | null;
118
- thumbnailUrl: string | null;
119
- }[];
120
- banners: {
121
- id: number;
122
- slotNumber: number;
123
- url: string | null;
124
- imageUrl: string | null;
125
- }[];
126
- };
127
- kind: "curationMailMagazine";
128
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
129
- id: number;
130
- title: string | null;
131
- deliveryScheduledAt: string | null;
132
- } | {
133
- personalizedMailMagazine: {
134
- utmCampaign: string | null;
135
- target: {
136
- csvFileName: string;
137
- targetUsersCount: number;
138
- excludedUsersCount: number;
139
- } | null;
140
- };
141
- kind: "personalizedMailMagazine";
142
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
143
- id: number;
144
- title: string | null;
145
- deliveryScheduledAt: string | null;
146
- };
147
- }>;
11
+ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: RequestInit) => Promise<any>;
148
12
  type CampaignsIdDeleteOperation = paths["/api/campaigns/{id}"]["delete"];
149
13
  declare const buildCampaignsIdDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
150
14
  type CampaignsIdDeletePath = ForceDig<CampaignsIdDeleteOperation, [
151
15
  "parameters",
152
16
  "path"
153
17
  ]>;
154
- declare const deleteCampaignsId: (path: CampaignsIdDeletePath, requestInit?: RequestInit) => Promise<void>;
18
+ declare const deleteCampaignsId: (path: CampaignsIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
155
19
  type CampaignsIdPatchOperation = paths["/api/campaigns/{id}"]["patch"];
156
20
  type CampaignsIdPatchResponse = CampaignsIdPatchOperation["responses"]["200"]["content"]["application/json"];
157
- declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
158
- campaignDetail: {
159
- curationMailMagazine: {
160
- utmCampaign: string | null;
161
- subject: string | null;
162
- preHeaderText: string | null;
163
- targetFilters: {
164
- id: number;
165
- behaviorSegmentCodes: string[];
166
- profileSegmentCodes: string[];
167
- }[];
168
- deliveredUsersCount: number | null;
169
- bodyKind: "freeFormat";
170
- htmlBody: string | null;
171
- htmlStyle: string | null;
172
- images: {
173
- id: number;
174
- key: string;
175
- }[];
176
- } | {
177
- utmCampaign: string | null;
178
- subject: string | null;
179
- preHeaderText: string | null;
180
- targetFilters: {
181
- id: number;
182
- behaviorSegmentCodes: string[];
183
- profileSegmentCodes: string[];
184
- }[];
185
- deliveredUsersCount: number | null;
186
- bodyKind: "template";
187
- projects: {
188
- id: number;
189
- slotNumber: number;
190
- readyforProjectId: number;
191
- isPaidSlot: boolean;
192
- title: string | null;
193
- description: string | null;
194
- tag: string | null;
195
- tagUrl: string | null;
196
- thumbnailUrl: string | null;
197
- }[];
198
- banners: {
199
- id: number;
200
- slotNumber: number;
201
- url: string | null;
202
- imageUrl: string | null;
203
- }[];
204
- };
205
- kind: "curationMailMagazine";
206
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
207
- id: number;
208
- title: string | null;
209
- deliveryScheduledAt: string | null;
210
- } | {
211
- personalizedMailMagazine: {
212
- utmCampaign: string | null;
213
- target: {
214
- csvFileName: string;
215
- targetUsersCount: number;
216
- excludedUsersCount: number;
217
- } | null;
218
- };
219
- kind: "personalizedMailMagazine";
220
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
221
- id: number;
222
- title: string | null;
223
- deliveryScheduledAt: string | null;
224
- };
225
- }>;
21
+ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<any>;
226
22
  type CampaignsIdPatchPath = ForceDig<CampaignsIdPatchOperation, [
227
23
  "parameters",
228
24
  "path"
@@ -232,74 +28,6 @@ type CampaignsIdPatchRequestBody = ForceDig<CampaignsIdPatchOperation, [
232
28
  "content",
233
29
  "multipart/form-data"
234
30
  ]>;
235
- declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, requestInit?: RequestInit) => Promise<{
236
- campaignDetail: {
237
- curationMailMagazine: {
238
- utmCampaign: string | null;
239
- subject: string | null;
240
- preHeaderText: string | null;
241
- targetFilters: {
242
- id: number;
243
- behaviorSegmentCodes: string[];
244
- profileSegmentCodes: string[];
245
- }[];
246
- deliveredUsersCount: number | null;
247
- bodyKind: "freeFormat";
248
- htmlBody: string | null;
249
- htmlStyle: string | null;
250
- images: {
251
- id: number;
252
- key: string;
253
- }[];
254
- } | {
255
- utmCampaign: string | null;
256
- subject: string | null;
257
- preHeaderText: string | null;
258
- targetFilters: {
259
- id: number;
260
- behaviorSegmentCodes: string[];
261
- profileSegmentCodes: string[];
262
- }[];
263
- deliveredUsersCount: number | null;
264
- bodyKind: "template";
265
- projects: {
266
- id: number;
267
- slotNumber: number;
268
- readyforProjectId: number;
269
- isPaidSlot: boolean;
270
- title: string | null;
271
- description: string | null;
272
- tag: string | null;
273
- tagUrl: string | null;
274
- thumbnailUrl: string | null;
275
- }[];
276
- banners: {
277
- id: number;
278
- slotNumber: number;
279
- url: string | null;
280
- imageUrl: string | null;
281
- }[];
282
- };
283
- kind: "curationMailMagazine";
284
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
285
- id: number;
286
- title: string | null;
287
- deliveryScheduledAt: string | null;
288
- } | {
289
- personalizedMailMagazine: {
290
- utmCampaign: string | null;
291
- target: {
292
- csvFileName: string;
293
- targetUsersCount: number;
294
- excludedUsersCount: number;
295
- } | null;
296
- };
297
- kind: "personalizedMailMagazine";
298
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
299
- id: number;
300
- title: string | null;
301
- deliveryScheduledAt: string | null;
302
- };
303
- }>;
31
+ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<any>;
304
32
 
305
33
  export { type CampaignsIdDeletePath, type CampaignsIdGetPath, type CampaignsIdGetResponse, type CampaignsIdPatchPath, type CampaignsIdPatchRequestBody, type CampaignsIdPatchResponse, buildCampaignsIdDeleteFetcher, buildCampaignsIdGetFetcher, buildCampaignsIdPatchFetcher, deleteCampaignsId, getCampaignsId, patchCampaignsId };