@readyfor/api-client-pigeon 1.22.0-pr1284.dc25e7e → 1.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dist/chunk-24W5FWW7.mjs +27 -0
  2. package/dist/chunk-45QYVVV2.mjs +44 -0
  3. package/dist/chunk-5XEJOYX6.mjs +0 -0
  4. package/dist/chunk-6337UNDD.mjs +27 -0
  5. package/dist/chunk-CXALAOMT.mjs +48 -0
  6. package/dist/chunk-GVEIZAMY.mjs +359 -0
  7. package/dist/chunk-JVMIOVIM.mjs +29 -0
  8. package/dist/chunk-LMM3AGZ6.mjs +36 -0
  9. package/dist/chunk-MCYE5BYS.mjs +25 -0
  10. package/dist/chunk-MKV3OPBP.mjs +42 -0
  11. package/dist/chunk-MYQ5EIA6.mjs +50 -0
  12. package/dist/chunk-NA23PDIV.mjs +28 -0
  13. package/dist/chunk-P4EIALGR.mjs +24 -0
  14. package/dist/chunk-RWX2GYF3.mjs +39 -0
  15. package/dist/chunk-SBWG7GGI.mjs +52 -0
  16. package/dist/chunk-THNPXV56.mjs +24 -0
  17. package/dist/chunk-TPXQJS55.mjs +44 -0
  18. package/dist/chunk-UHDD26HF.mjs +44 -0
  19. package/dist/chunk-VUG5S4M4.mjs +42 -0
  20. package/dist/chunk-XNOKTUME.mjs +30 -0
  21. package/dist/components.d.mts +1107 -0
  22. package/dist/components.d.ts +1107 -2
  23. package/dist/components.js +444 -284
  24. package/dist/components.mjs +130 -221
  25. package/dist/fetch/campaigns.d.mts +88 -0
  26. package/dist/fetch/campaigns.d.ts +88 -2
  27. package/dist/fetch/campaigns.js +350 -22
  28. package/dist/fetch/campaigns.mjs +12 -18
  29. package/dist/{campaignsCampaignIdImagesId-BzoZ_38r.d.ts → fetch/campaignsCampaignIdImagesId.d.mts} +8 -6
  30. package/dist/fetch/campaignsCampaignIdImagesId.d.ts +12 -2
  31. package/dist/fetch/campaignsCampaignIdImagesId.js +44 -11
  32. package/dist/fetch/campaignsCampaignIdImagesId.mjs +7 -8
  33. package/dist/fetch/campaignsId.d.mts +321 -0
  34. package/dist/fetch/campaignsId.d.ts +321 -2
  35. package/dist/fetch/campaignsId.js +360 -27
  36. package/dist/fetch/campaignsId.mjs +16 -22
  37. package/dist/{campaignsIdDeliveryJob--2Nogu0k.d.ts → fetch/campaignsIdDeliveryJob.d.mts} +12 -7
  38. package/dist/fetch/campaignsIdDeliveryJob.d.ts +19 -2
  39. package/dist/fetch/campaignsIdDeliveryJob.js +56 -17
  40. package/dist/fetch/campaignsIdDeliveryJob.mjs +11 -13
  41. package/dist/{campaignsIdImages-DMSAp5-N.d.ts → fetch/campaignsIdImages.d.mts} +17 -11
  42. package/dist/fetch/campaignsIdImages.d.ts +24 -2
  43. package/dist/fetch/campaignsIdImages.js +341 -15
  44. package/dist/fetch/campaignsIdImages.mjs +8 -12
  45. package/dist/{campaignsIdPreview-C10ENt3B.d.ts → fetch/campaignsIdPreview.d.mts} +10 -8
  46. package/dist/fetch/campaignsIdPreview.d.ts +17 -2
  47. package/dist/fetch/campaignsIdPreview.js +338 -12
  48. package/dist/fetch/campaignsIdPreview.mjs +8 -9
  49. package/dist/{campaignsIdPreviewDeliveryEmail-BxkiUV8X.d.ts → fetch/campaignsIdPreviewDeliveryEmail.d.mts} +13 -7
  50. package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.ts +17 -2
  51. package/dist/fetch/campaignsIdPreviewDeliveryEmail.js +48 -15
  52. package/dist/fetch/campaignsIdPreviewDeliveryEmail.mjs +7 -12
  53. package/dist/fetch/projectsProjectIdOrKeyword.d.mts +27 -0
  54. package/dist/fetch/projectsProjectIdOrKeyword.d.ts +27 -2
  55. package/dist/fetch/projectsProjectIdOrKeyword.js +338 -12
  56. package/dist/fetch/projectsProjectIdOrKeyword.mjs +8 -9
  57. package/dist/fetch/segmentsBehaviorSegments.d.mts +24 -0
  58. package/dist/fetch/segmentsBehaviorSegments.d.ts +24 -2
  59. package/dist/fetch/segmentsBehaviorSegments.js +335 -12
  60. package/dist/fetch/segmentsBehaviorSegments.mjs +8 -9
  61. package/dist/fetch/segmentsProfileSegments.d.mts +24 -0
  62. package/dist/fetch/segmentsProfileSegments.d.ts +24 -2
  63. package/dist/fetch/segmentsProfileSegments.js +335 -12
  64. package/dist/fetch/segmentsProfileSegments.mjs +8 -9
  65. package/dist/{segmentsTargetUsersCount-CjScWKqF.d.ts → fetch/segmentsTargetUsersCount.d.mts} +10 -8
  66. package/dist/fetch/segmentsTargetUsersCount.d.ts +17 -2
  67. package/dist/fetch/segmentsTargetUsersCount.js +339 -12
  68. package/dist/fetch/segmentsTargetUsersCount.mjs +8 -9
  69. package/dist/hooks/index.d.mts +20 -0
  70. package/dist/hooks/index.d.ts +20 -8
  71. package/dist/hooks/index.js +670 -29
  72. package/dist/hooks/index.mjs +71 -8
  73. package/dist/hooks/useCampaigns.d.mts +44 -0
  74. package/dist/hooks/useCampaigns.d.ts +37 -37
  75. package/dist/hooks/useCampaigns.js +404 -33
  76. package/dist/hooks/useCampaigns.mjs +22 -27
  77. package/dist/hooks/useCampaignsId.d.mts +39 -0
  78. package/dist/hooks/useCampaignsId.d.ts +33 -33
  79. package/dist/hooks/useCampaignsId.js +404 -33
  80. package/dist/hooks/useCampaignsId.mjs +22 -27
  81. package/dist/hooks/useCampaignsIdPreview.d.mts +39 -0
  82. package/dist/hooks/useCampaignsIdPreview.d.ts +33 -32
  83. package/dist/hooks/useCampaignsIdPreview.js +404 -33
  84. package/dist/hooks/useCampaignsIdPreview.mjs +22 -27
  85. package/dist/hooks/useProjectsProjectIdOrKeyword.d.mts +39 -0
  86. package/dist/hooks/useProjectsProjectIdOrKeyword.d.ts +33 -33
  87. package/dist/hooks/useProjectsProjectIdOrKeyword.js +410 -33
  88. package/dist/hooks/useProjectsProjectIdOrKeyword.mjs +22 -27
  89. package/dist/hooks/useSegmentsBehaviorSegments.d.mts +38 -0
  90. package/dist/hooks/useSegmentsBehaviorSegments.d.ts +32 -33
  91. package/dist/hooks/useSegmentsBehaviorSegments.js +402 -33
  92. package/dist/hooks/useSegmentsBehaviorSegments.mjs +22 -27
  93. package/dist/hooks/useSegmentsProfileSegments.d.mts +38 -0
  94. package/dist/hooks/useSegmentsProfileSegments.d.ts +32 -33
  95. package/dist/hooks/useSegmentsProfileSegments.js +402 -33
  96. package/dist/hooks/useSegmentsProfileSegments.mjs +22 -27
  97. package/dist/hooks/useSegmentsTargetUsersCount.d.mts +39 -0
  98. package/dist/hooks/useSegmentsTargetUsersCount.d.ts +33 -32
  99. package/dist/hooks/useSegmentsTargetUsersCount.js +412 -33
  100. package/dist/hooks/useSegmentsTargetUsersCount.mjs +22 -27
  101. package/dist/index.d.mts +15 -0
  102. package/dist/index.d.ts +15 -14
  103. package/dist/index.js +703 -106
  104. package/dist/index.mjs +213 -13
  105. package/dist/schemaType.d.mts +887 -0
  106. package/dist/schemaType.d.ts +887 -2
  107. package/dist/schemaType.js +18 -0
  108. package/dist/schemaType.mjs +0 -1
  109. package/package.json +19 -4
  110. package/dist/campaigns-DZNsI5kN.d.ts +0 -82
  111. package/dist/campaignsId-qIqhKTZn.d.ts +0 -309
  112. package/dist/chunk-8l464Juk.js +0 -28
  113. package/dist/components-CkziYCTx.d.ts +0 -1108
  114. package/dist/index-DRYular4.d.ts +0 -1
  115. package/dist/projectsProjectIdOrKeyword-Cayu4ZMd.d.ts +0 -25
  116. package/dist/schemaType-DcWvaCEH.d.ts +0 -782
  117. package/dist/segmentsBehaviorSegments-B6cq3XGV.d.ts +0 -25
  118. package/dist/segmentsProfileSegments-CMzmpqMd.d.ts +0 -25
@@ -0,0 +1,321 @@
1
+ import { paths } from '../schemaType.mjs';
2
+ import { ForceDig } from '@readyfor/api-client-base';
3
+
4
+ type CampaignsIdGetOperation = paths["/api/campaigns/{id}"]["get"];
5
+ type CampaignsIdGetResponse = CampaignsIdGetOperation["responses"]["200"]["content"]["application/json"];
6
+ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
+ campaignDetail: ({
8
+ id: number;
9
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
10
+ title: string | null;
11
+ deliveryScheduledAt: string | null;
12
+ } & {
13
+ kind: "curationMailMagazine";
14
+ curationMailMagazine: ({
15
+ utmCampaign: string | null;
16
+ subject: string | null;
17
+ preHeaderText: string | null;
18
+ deliveredUsersCount: number | null;
19
+ targetFilters: {
20
+ id: number;
21
+ behaviorSegmentCodes: string[];
22
+ profileSegmentCodes: string[];
23
+ }[];
24
+ } & {
25
+ bodyKind: "freeFormat";
26
+ htmlBody: string | null;
27
+ htmlStyle: string | null;
28
+ images: {
29
+ id: number;
30
+ key: string;
31
+ }[];
32
+ }) | ({
33
+ utmCampaign: string | null;
34
+ subject: string | null;
35
+ preHeaderText: string | null;
36
+ deliveredUsersCount: number | null;
37
+ targetFilters: {
38
+ id: number;
39
+ behaviorSegmentCodes: string[];
40
+ profileSegmentCodes: string[];
41
+ }[];
42
+ } & {
43
+ bodyKind: "template";
44
+ projects: {
45
+ id: number;
46
+ readyforProjectId: number;
47
+ slotNumber: number;
48
+ isPaidSlot: boolean;
49
+ title: string | null;
50
+ description: string | null;
51
+ thumbnailUrl: string | null;
52
+ tag: string | null;
53
+ tagUrl: string | null;
54
+ }[];
55
+ banners: {
56
+ id: number;
57
+ slotNumber: number;
58
+ imageUrl: string | null;
59
+ url: string | null;
60
+ }[];
61
+ });
62
+ }) | ({
63
+ id: number;
64
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
65
+ title: string | null;
66
+ deliveryScheduledAt: string | null;
67
+ } & {
68
+ kind: "personalizedMailMagazine";
69
+ personalizedMailMagazine: {
70
+ utmCampaign: string | null;
71
+ target: {
72
+ csvFileName: string;
73
+ targetUsersCount: number;
74
+ excludedUsersCount: number;
75
+ } | null;
76
+ };
77
+ });
78
+ }>;
79
+ type CampaignsIdGetPath = ForceDig<CampaignsIdGetOperation, [
80
+ "parameters",
81
+ "path"
82
+ ]>;
83
+ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: RequestInit) => Promise<{
84
+ campaignDetail: ({
85
+ id: number;
86
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
87
+ title: string | null;
88
+ deliveryScheduledAt: string | null;
89
+ } & {
90
+ kind: "curationMailMagazine";
91
+ curationMailMagazine: ({
92
+ utmCampaign: string | null;
93
+ subject: string | null;
94
+ preHeaderText: string | null;
95
+ deliveredUsersCount: number | null;
96
+ targetFilters: {
97
+ id: number;
98
+ behaviorSegmentCodes: string[];
99
+ profileSegmentCodes: string[];
100
+ }[];
101
+ } & {
102
+ bodyKind: "freeFormat";
103
+ htmlBody: string | null;
104
+ htmlStyle: string | null;
105
+ images: {
106
+ id: number;
107
+ key: string;
108
+ }[];
109
+ }) | ({
110
+ utmCampaign: string | null;
111
+ subject: string | null;
112
+ preHeaderText: string | null;
113
+ deliveredUsersCount: number | null;
114
+ targetFilters: {
115
+ id: number;
116
+ behaviorSegmentCodes: string[];
117
+ profileSegmentCodes: string[];
118
+ }[];
119
+ } & {
120
+ bodyKind: "template";
121
+ projects: {
122
+ id: number;
123
+ readyforProjectId: number;
124
+ slotNumber: number;
125
+ isPaidSlot: boolean;
126
+ title: string | null;
127
+ description: string | null;
128
+ thumbnailUrl: string | null;
129
+ tag: string | null;
130
+ tagUrl: string | null;
131
+ }[];
132
+ banners: {
133
+ id: number;
134
+ slotNumber: number;
135
+ imageUrl: string | null;
136
+ url: string | null;
137
+ }[];
138
+ });
139
+ }) | ({
140
+ id: number;
141
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
142
+ title: string | null;
143
+ deliveryScheduledAt: string | null;
144
+ } & {
145
+ kind: "personalizedMailMagazine";
146
+ personalizedMailMagazine: {
147
+ utmCampaign: string | null;
148
+ target: {
149
+ csvFileName: string;
150
+ targetUsersCount: number;
151
+ excludedUsersCount: number;
152
+ } | null;
153
+ };
154
+ });
155
+ }>;
156
+ type CampaignsIdDeleteOperation = paths["/api/campaigns/{id}"]["delete"];
157
+ declare const buildCampaignsIdDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
158
+ type CampaignsIdDeletePath = ForceDig<CampaignsIdDeleteOperation, [
159
+ "parameters",
160
+ "path"
161
+ ]>;
162
+ declare const deleteCampaignsId: (path: CampaignsIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
163
+ type CampaignsIdPatchOperation = paths["/api/campaigns/{id}"]["patch"];
164
+ type CampaignsIdPatchResponse = CampaignsIdPatchOperation["responses"]["200"]["content"]["application/json"];
165
+ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
166
+ campaignDetail: ({
167
+ id: number;
168
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
169
+ title: string | null;
170
+ deliveryScheduledAt: string | null;
171
+ } & {
172
+ kind: "curationMailMagazine";
173
+ curationMailMagazine: ({
174
+ utmCampaign: string | null;
175
+ subject: string | null;
176
+ preHeaderText: string | null;
177
+ deliveredUsersCount: number | null;
178
+ targetFilters: {
179
+ id: number;
180
+ behaviorSegmentCodes: string[];
181
+ profileSegmentCodes: string[];
182
+ }[];
183
+ } & {
184
+ bodyKind: "freeFormat";
185
+ htmlBody: string | null;
186
+ htmlStyle: string | null;
187
+ images: {
188
+ id: number;
189
+ key: string;
190
+ }[];
191
+ }) | ({
192
+ utmCampaign: string | null;
193
+ subject: string | null;
194
+ preHeaderText: string | null;
195
+ deliveredUsersCount: number | null;
196
+ targetFilters: {
197
+ id: number;
198
+ behaviorSegmentCodes: string[];
199
+ profileSegmentCodes: string[];
200
+ }[];
201
+ } & {
202
+ bodyKind: "template";
203
+ projects: {
204
+ id: number;
205
+ readyforProjectId: number;
206
+ slotNumber: number;
207
+ isPaidSlot: boolean;
208
+ title: string | null;
209
+ description: string | null;
210
+ thumbnailUrl: string | null;
211
+ tag: string | null;
212
+ tagUrl: string | null;
213
+ }[];
214
+ banners: {
215
+ id: number;
216
+ slotNumber: number;
217
+ imageUrl: string | null;
218
+ url: string | null;
219
+ }[];
220
+ });
221
+ }) | ({
222
+ id: number;
223
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
224
+ title: string | null;
225
+ deliveryScheduledAt: string | null;
226
+ } & {
227
+ kind: "personalizedMailMagazine";
228
+ personalizedMailMagazine: {
229
+ utmCampaign: string | null;
230
+ target: {
231
+ csvFileName: string;
232
+ targetUsersCount: number;
233
+ excludedUsersCount: number;
234
+ } | null;
235
+ };
236
+ });
237
+ }>;
238
+ type CampaignsIdPatchPath = ForceDig<CampaignsIdPatchOperation, [
239
+ "parameters",
240
+ "path"
241
+ ]>;
242
+ type CampaignsIdPatchRequestBody = ForceDig<CampaignsIdPatchOperation, [
243
+ "requestBody",
244
+ "content",
245
+ "multipart/form-data"
246
+ ]>;
247
+ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<{
248
+ campaignDetail: ({
249
+ id: number;
250
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
251
+ title: string | null;
252
+ deliveryScheduledAt: string | null;
253
+ } & {
254
+ kind: "curationMailMagazine";
255
+ curationMailMagazine: ({
256
+ utmCampaign: string | null;
257
+ subject: string | null;
258
+ preHeaderText: string | null;
259
+ deliveredUsersCount: number | null;
260
+ targetFilters: {
261
+ id: number;
262
+ behaviorSegmentCodes: string[];
263
+ profileSegmentCodes: string[];
264
+ }[];
265
+ } & {
266
+ bodyKind: "freeFormat";
267
+ htmlBody: string | null;
268
+ htmlStyle: string | null;
269
+ images: {
270
+ id: number;
271
+ key: string;
272
+ }[];
273
+ }) | ({
274
+ utmCampaign: string | null;
275
+ subject: string | null;
276
+ preHeaderText: string | null;
277
+ deliveredUsersCount: number | null;
278
+ targetFilters: {
279
+ id: number;
280
+ behaviorSegmentCodes: string[];
281
+ profileSegmentCodes: string[];
282
+ }[];
283
+ } & {
284
+ bodyKind: "template";
285
+ projects: {
286
+ id: number;
287
+ readyforProjectId: number;
288
+ slotNumber: number;
289
+ isPaidSlot: boolean;
290
+ title: string | null;
291
+ description: string | null;
292
+ thumbnailUrl: string | null;
293
+ tag: string | null;
294
+ tagUrl: string | null;
295
+ }[];
296
+ banners: {
297
+ id: number;
298
+ slotNumber: number;
299
+ imageUrl: string | null;
300
+ url: string | null;
301
+ }[];
302
+ });
303
+ }) | ({
304
+ id: number;
305
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
306
+ title: string | null;
307
+ deliveryScheduledAt: string | null;
308
+ } & {
309
+ kind: "personalizedMailMagazine";
310
+ personalizedMailMagazine: {
311
+ utmCampaign: string | null;
312
+ target: {
313
+ csvFileName: string;
314
+ targetUsersCount: number;
315
+ excludedUsersCount: number;
316
+ } | null;
317
+ };
318
+ });
319
+ }>;
320
+
321
+ export { type CampaignsIdDeletePath, type CampaignsIdGetPath, type CampaignsIdGetResponse, type CampaignsIdPatchPath, type CampaignsIdPatchRequestBody, type CampaignsIdPatchResponse, buildCampaignsIdDeleteFetcher, buildCampaignsIdGetFetcher, buildCampaignsIdPatchFetcher, deleteCampaignsId, getCampaignsId, patchCampaignsId };
@@ -1,2 +1,321 @@
1
- import { a as CampaignsIdPatchRequestBody, c as buildCampaignsIdGetFetcher, d as getCampaignsId, f as patchCampaignsId, i as CampaignsIdPatchPath, l as buildCampaignsIdPatchFetcher, n as CampaignsIdGetPath, o as CampaignsIdPatchResponse, r as CampaignsIdGetResponse, s as buildCampaignsIdDeleteFetcher, t as CampaignsIdDeletePath, u as deleteCampaignsId } from "../campaignsId-qIqhKTZn.js";
2
- export { CampaignsIdDeletePath, CampaignsIdGetPath, CampaignsIdGetResponse, CampaignsIdPatchPath, CampaignsIdPatchRequestBody, CampaignsIdPatchResponse, buildCampaignsIdDeleteFetcher, buildCampaignsIdGetFetcher, buildCampaignsIdPatchFetcher, deleteCampaignsId, getCampaignsId, patchCampaignsId };
1
+ import { paths } from '../schemaType.js';
2
+ import { ForceDig } from '@readyfor/api-client-base';
3
+
4
+ type CampaignsIdGetOperation = paths["/api/campaigns/{id}"]["get"];
5
+ type CampaignsIdGetResponse = CampaignsIdGetOperation["responses"]["200"]["content"]["application/json"];
6
+ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
+ campaignDetail: ({
8
+ id: number;
9
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
10
+ title: string | null;
11
+ deliveryScheduledAt: string | null;
12
+ } & {
13
+ kind: "curationMailMagazine";
14
+ curationMailMagazine: ({
15
+ utmCampaign: string | null;
16
+ subject: string | null;
17
+ preHeaderText: string | null;
18
+ deliveredUsersCount: number | null;
19
+ targetFilters: {
20
+ id: number;
21
+ behaviorSegmentCodes: string[];
22
+ profileSegmentCodes: string[];
23
+ }[];
24
+ } & {
25
+ bodyKind: "freeFormat";
26
+ htmlBody: string | null;
27
+ htmlStyle: string | null;
28
+ images: {
29
+ id: number;
30
+ key: string;
31
+ }[];
32
+ }) | ({
33
+ utmCampaign: string | null;
34
+ subject: string | null;
35
+ preHeaderText: string | null;
36
+ deliveredUsersCount: number | null;
37
+ targetFilters: {
38
+ id: number;
39
+ behaviorSegmentCodes: string[];
40
+ profileSegmentCodes: string[];
41
+ }[];
42
+ } & {
43
+ bodyKind: "template";
44
+ projects: {
45
+ id: number;
46
+ readyforProjectId: number;
47
+ slotNumber: number;
48
+ isPaidSlot: boolean;
49
+ title: string | null;
50
+ description: string | null;
51
+ thumbnailUrl: string | null;
52
+ tag: string | null;
53
+ tagUrl: string | null;
54
+ }[];
55
+ banners: {
56
+ id: number;
57
+ slotNumber: number;
58
+ imageUrl: string | null;
59
+ url: string | null;
60
+ }[];
61
+ });
62
+ }) | ({
63
+ id: number;
64
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
65
+ title: string | null;
66
+ deliveryScheduledAt: string | null;
67
+ } & {
68
+ kind: "personalizedMailMagazine";
69
+ personalizedMailMagazine: {
70
+ utmCampaign: string | null;
71
+ target: {
72
+ csvFileName: string;
73
+ targetUsersCount: number;
74
+ excludedUsersCount: number;
75
+ } | null;
76
+ };
77
+ });
78
+ }>;
79
+ type CampaignsIdGetPath = ForceDig<CampaignsIdGetOperation, [
80
+ "parameters",
81
+ "path"
82
+ ]>;
83
+ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: RequestInit) => Promise<{
84
+ campaignDetail: ({
85
+ id: number;
86
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
87
+ title: string | null;
88
+ deliveryScheduledAt: string | null;
89
+ } & {
90
+ kind: "curationMailMagazine";
91
+ curationMailMagazine: ({
92
+ utmCampaign: string | null;
93
+ subject: string | null;
94
+ preHeaderText: string | null;
95
+ deliveredUsersCount: number | null;
96
+ targetFilters: {
97
+ id: number;
98
+ behaviorSegmentCodes: string[];
99
+ profileSegmentCodes: string[];
100
+ }[];
101
+ } & {
102
+ bodyKind: "freeFormat";
103
+ htmlBody: string | null;
104
+ htmlStyle: string | null;
105
+ images: {
106
+ id: number;
107
+ key: string;
108
+ }[];
109
+ }) | ({
110
+ utmCampaign: string | null;
111
+ subject: string | null;
112
+ preHeaderText: string | null;
113
+ deliveredUsersCount: number | null;
114
+ targetFilters: {
115
+ id: number;
116
+ behaviorSegmentCodes: string[];
117
+ profileSegmentCodes: string[];
118
+ }[];
119
+ } & {
120
+ bodyKind: "template";
121
+ projects: {
122
+ id: number;
123
+ readyforProjectId: number;
124
+ slotNumber: number;
125
+ isPaidSlot: boolean;
126
+ title: string | null;
127
+ description: string | null;
128
+ thumbnailUrl: string | null;
129
+ tag: string | null;
130
+ tagUrl: string | null;
131
+ }[];
132
+ banners: {
133
+ id: number;
134
+ slotNumber: number;
135
+ imageUrl: string | null;
136
+ url: string | null;
137
+ }[];
138
+ });
139
+ }) | ({
140
+ id: number;
141
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
142
+ title: string | null;
143
+ deliveryScheduledAt: string | null;
144
+ } & {
145
+ kind: "personalizedMailMagazine";
146
+ personalizedMailMagazine: {
147
+ utmCampaign: string | null;
148
+ target: {
149
+ csvFileName: string;
150
+ targetUsersCount: number;
151
+ excludedUsersCount: number;
152
+ } | null;
153
+ };
154
+ });
155
+ }>;
156
+ type CampaignsIdDeleteOperation = paths["/api/campaigns/{id}"]["delete"];
157
+ declare const buildCampaignsIdDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
158
+ type CampaignsIdDeletePath = ForceDig<CampaignsIdDeleteOperation, [
159
+ "parameters",
160
+ "path"
161
+ ]>;
162
+ declare const deleteCampaignsId: (path: CampaignsIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
163
+ type CampaignsIdPatchOperation = paths["/api/campaigns/{id}"]["patch"];
164
+ type CampaignsIdPatchResponse = CampaignsIdPatchOperation["responses"]["200"]["content"]["application/json"];
165
+ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
166
+ campaignDetail: ({
167
+ id: number;
168
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
169
+ title: string | null;
170
+ deliveryScheduledAt: string | null;
171
+ } & {
172
+ kind: "curationMailMagazine";
173
+ curationMailMagazine: ({
174
+ utmCampaign: string | null;
175
+ subject: string | null;
176
+ preHeaderText: string | null;
177
+ deliveredUsersCount: number | null;
178
+ targetFilters: {
179
+ id: number;
180
+ behaviorSegmentCodes: string[];
181
+ profileSegmentCodes: string[];
182
+ }[];
183
+ } & {
184
+ bodyKind: "freeFormat";
185
+ htmlBody: string | null;
186
+ htmlStyle: string | null;
187
+ images: {
188
+ id: number;
189
+ key: string;
190
+ }[];
191
+ }) | ({
192
+ utmCampaign: string | null;
193
+ subject: string | null;
194
+ preHeaderText: string | null;
195
+ deliveredUsersCount: number | null;
196
+ targetFilters: {
197
+ id: number;
198
+ behaviorSegmentCodes: string[];
199
+ profileSegmentCodes: string[];
200
+ }[];
201
+ } & {
202
+ bodyKind: "template";
203
+ projects: {
204
+ id: number;
205
+ readyforProjectId: number;
206
+ slotNumber: number;
207
+ isPaidSlot: boolean;
208
+ title: string | null;
209
+ description: string | null;
210
+ thumbnailUrl: string | null;
211
+ tag: string | null;
212
+ tagUrl: string | null;
213
+ }[];
214
+ banners: {
215
+ id: number;
216
+ slotNumber: number;
217
+ imageUrl: string | null;
218
+ url: string | null;
219
+ }[];
220
+ });
221
+ }) | ({
222
+ id: number;
223
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
224
+ title: string | null;
225
+ deliveryScheduledAt: string | null;
226
+ } & {
227
+ kind: "personalizedMailMagazine";
228
+ personalizedMailMagazine: {
229
+ utmCampaign: string | null;
230
+ target: {
231
+ csvFileName: string;
232
+ targetUsersCount: number;
233
+ excludedUsersCount: number;
234
+ } | null;
235
+ };
236
+ });
237
+ }>;
238
+ type CampaignsIdPatchPath = ForceDig<CampaignsIdPatchOperation, [
239
+ "parameters",
240
+ "path"
241
+ ]>;
242
+ type CampaignsIdPatchRequestBody = ForceDig<CampaignsIdPatchOperation, [
243
+ "requestBody",
244
+ "content",
245
+ "multipart/form-data"
246
+ ]>;
247
+ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<{
248
+ campaignDetail: ({
249
+ id: number;
250
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
251
+ title: string | null;
252
+ deliveryScheduledAt: string | null;
253
+ } & {
254
+ kind: "curationMailMagazine";
255
+ curationMailMagazine: ({
256
+ utmCampaign: string | null;
257
+ subject: string | null;
258
+ preHeaderText: string | null;
259
+ deliveredUsersCount: number | null;
260
+ targetFilters: {
261
+ id: number;
262
+ behaviorSegmentCodes: string[];
263
+ profileSegmentCodes: string[];
264
+ }[];
265
+ } & {
266
+ bodyKind: "freeFormat";
267
+ htmlBody: string | null;
268
+ htmlStyle: string | null;
269
+ images: {
270
+ id: number;
271
+ key: string;
272
+ }[];
273
+ }) | ({
274
+ utmCampaign: string | null;
275
+ subject: string | null;
276
+ preHeaderText: string | null;
277
+ deliveredUsersCount: number | null;
278
+ targetFilters: {
279
+ id: number;
280
+ behaviorSegmentCodes: string[];
281
+ profileSegmentCodes: string[];
282
+ }[];
283
+ } & {
284
+ bodyKind: "template";
285
+ projects: {
286
+ id: number;
287
+ readyforProjectId: number;
288
+ slotNumber: number;
289
+ isPaidSlot: boolean;
290
+ title: string | null;
291
+ description: string | null;
292
+ thumbnailUrl: string | null;
293
+ tag: string | null;
294
+ tagUrl: string | null;
295
+ }[];
296
+ banners: {
297
+ id: number;
298
+ slotNumber: number;
299
+ imageUrl: string | null;
300
+ url: string | null;
301
+ }[];
302
+ });
303
+ }) | ({
304
+ id: number;
305
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
306
+ title: string | null;
307
+ deliveryScheduledAt: string | null;
308
+ } & {
309
+ kind: "personalizedMailMagazine";
310
+ personalizedMailMagazine: {
311
+ utmCampaign: string | null;
312
+ target: {
313
+ csvFileName: string;
314
+ targetUsersCount: number;
315
+ excludedUsersCount: number;
316
+ } | null;
317
+ };
318
+ });
319
+ }>;
320
+
321
+ export { type CampaignsIdDeletePath, type CampaignsIdGetPath, type CampaignsIdGetResponse, type CampaignsIdPatchPath, type CampaignsIdPatchRequestBody, type CampaignsIdPatchResponse, buildCampaignsIdDeleteFetcher, buildCampaignsIdGetFetcher, buildCampaignsIdPatchFetcher, deleteCampaignsId, getCampaignsId, patchCampaignsId };