@readyfor/api-client-pigeon 0.294.0-pr1144.e6277a6 → 0.294.0-pr1149.4ae0186

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.
@@ -5,21 +5,21 @@ type CampaignsGetOperation = paths["/api/campaigns"]["get"];
5
5
  type CampaignsGetResponse = CampaignsGetOperation["responses"]["200"]["content"]["application/json"];
6
6
  declare const buildCampaignsGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
7
  campaigns: ({
8
- kind: "curationMailMagazine";
9
8
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
10
9
  id: number;
11
- bodyKind: "template" | "freeFormat";
12
10
  deliveryAt: string | null;
13
11
  lastEditorName: string;
14
12
  lastEditedAt: string;
13
+ kind: "personalizedMailMagazine";
15
14
  title?: string | null | undefined;
16
15
  } | {
17
- kind: "personalizedMailMagazine";
18
16
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
19
17
  id: number;
20
18
  deliveryAt: string | null;
21
19
  lastEditorName: string;
22
20
  lastEditedAt: string;
21
+ kind: "curationMailMagazine";
22
+ bodyKind: "template" | "freeFormat";
23
23
  title?: string | null | undefined;
24
24
  })[];
25
25
  pagination: {
@@ -39,21 +39,21 @@ type CampaignsGetQuery = ForceDig<CampaignsGetOperation, [
39
39
  ]>;
40
40
  declare const getCampaigns: (query: CampaignsGetQuery, customRequestInit?: RequestInit) => Promise<{
41
41
  campaigns: ({
42
- kind: "curationMailMagazine";
43
42
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
44
43
  id: number;
45
- bodyKind: "template" | "freeFormat";
46
44
  deliveryAt: string | null;
47
45
  lastEditorName: string;
48
46
  lastEditedAt: string;
47
+ kind: "personalizedMailMagazine";
49
48
  title?: string | null | undefined;
50
49
  } | {
51
- kind: "personalizedMailMagazine";
52
50
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
53
51
  id: number;
54
52
  deliveryAt: string | null;
55
53
  lastEditorName: string;
56
54
  lastEditedAt: string;
55
+ kind: "curationMailMagazine";
56
+ bodyKind: "template" | "freeFormat";
57
57
  title?: string | null | undefined;
58
58
  })[];
59
59
  pagination: {
@@ -5,21 +5,21 @@ type CampaignsGetOperation = paths["/api/campaigns"]["get"];
5
5
  type CampaignsGetResponse = CampaignsGetOperation["responses"]["200"]["content"]["application/json"];
6
6
  declare const buildCampaignsGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
7
  campaigns: ({
8
- kind: "curationMailMagazine";
9
8
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
10
9
  id: number;
11
- bodyKind: "template" | "freeFormat";
12
10
  deliveryAt: string | null;
13
11
  lastEditorName: string;
14
12
  lastEditedAt: string;
13
+ kind: "personalizedMailMagazine";
15
14
  title?: string | null | undefined;
16
15
  } | {
17
- kind: "personalizedMailMagazine";
18
16
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
19
17
  id: number;
20
18
  deliveryAt: string | null;
21
19
  lastEditorName: string;
22
20
  lastEditedAt: string;
21
+ kind: "curationMailMagazine";
22
+ bodyKind: "template" | "freeFormat";
23
23
  title?: string | null | undefined;
24
24
  })[];
25
25
  pagination: {
@@ -39,21 +39,21 @@ type CampaignsGetQuery = ForceDig<CampaignsGetOperation, [
39
39
  ]>;
40
40
  declare const getCampaigns: (query: CampaignsGetQuery, customRequestInit?: RequestInit) => Promise<{
41
41
  campaigns: ({
42
- kind: "curationMailMagazine";
43
42
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
44
43
  id: number;
45
- bodyKind: "template" | "freeFormat";
46
44
  deliveryAt: string | null;
47
45
  lastEditorName: string;
48
46
  lastEditedAt: string;
47
+ kind: "personalizedMailMagazine";
49
48
  title?: string | null | undefined;
50
49
  } | {
51
- kind: "personalizedMailMagazine";
52
50
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
53
51
  id: number;
54
52
  deliveryAt: string | null;
55
53
  lastEditorName: string;
56
54
  lastEditedAt: string;
55
+ kind: "curationMailMagazine";
56
+ bodyKind: "template" | "freeFormat";
57
57
  title?: string | null | undefined;
58
58
  })[];
59
59
  pagination: {
@@ -5,7 +5,12 @@ type CampaignsIdGetOperation = paths["/api/campaigns/{id}"]["get"];
5
5
  type CampaignsIdGetResponse = CampaignsIdGetOperation["responses"]["200"]["content"]["application/json"];
6
6
  declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
7
  campaignDetail: {
8
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
9
+ id: number;
10
+ title: string | null;
11
+ kind: "curationMailMagazine";
8
12
  curationMailMagazine: {
13
+ bodyKind: "freeFormat";
9
14
  utmCampaign: string | null;
10
15
  subject: string | null;
11
16
  preHeaderText: string | null;
@@ -15,7 +20,6 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
15
20
  profileSegmentCodes: string[];
16
21
  }[];
17
22
  deliveredUsersCount: number | null;
18
- bodyKind: "freeFormat";
19
23
  htmlBody: string | null;
20
24
  htmlStyle: string | null;
21
25
  images: {
@@ -23,6 +27,7 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
23
27
  key: string;
24
28
  }[];
25
29
  } | {
30
+ bodyKind: "template";
26
31
  utmCampaign: string | null;
27
32
  subject: string | null;
28
33
  preHeaderText: string | null;
@@ -32,13 +37,12 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
32
37
  profileSegmentCodes: string[];
33
38
  }[];
34
39
  deliveredUsersCount: number | null;
35
- bodyKind: "template";
36
40
  projects: {
37
41
  id: number;
42
+ title: string | null;
38
43
  slotNumber: number;
39
44
  readyforProjectId: number;
40
45
  isPaidSlot: boolean;
41
- title: string | null;
42
46
  description: string | null;
43
47
  tag: string | null;
44
48
  tagUrl: string | null;
@@ -51,12 +55,11 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
51
55
  imageUrl: string | null;
52
56
  }[];
53
57
  };
54
- kind: "curationMailMagazine";
58
+ deliveryScheduledAt: string | null;
59
+ } | {
55
60
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
56
61
  id: number;
57
62
  title: string | null;
58
- deliveryScheduledAt: string | null;
59
- } | {
60
63
  personalizedMailMagazine: {
61
64
  utmCampaign: string | null;
62
65
  target: {
@@ -66,9 +69,6 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
66
69
  } | null;
67
70
  };
68
71
  kind: "personalizedMailMagazine";
69
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
70
- id: number;
71
- title: string | null;
72
72
  deliveryScheduledAt: string | null;
73
73
  };
74
74
  }>;
@@ -78,7 +78,12 @@ type CampaignsIdGetPath = ForceDig<CampaignsIdGetOperation, [
78
78
  ]>;
79
79
  declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: RequestInit) => Promise<{
80
80
  campaignDetail: {
81
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
82
+ id: number;
83
+ title: string | null;
84
+ kind: "curationMailMagazine";
81
85
  curationMailMagazine: {
86
+ bodyKind: "freeFormat";
82
87
  utmCampaign: string | null;
83
88
  subject: string | null;
84
89
  preHeaderText: string | null;
@@ -88,7 +93,6 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: Req
88
93
  profileSegmentCodes: string[];
89
94
  }[];
90
95
  deliveredUsersCount: number | null;
91
- bodyKind: "freeFormat";
92
96
  htmlBody: string | null;
93
97
  htmlStyle: string | null;
94
98
  images: {
@@ -96,6 +100,7 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: Req
96
100
  key: string;
97
101
  }[];
98
102
  } | {
103
+ bodyKind: "template";
99
104
  utmCampaign: string | null;
100
105
  subject: string | null;
101
106
  preHeaderText: string | null;
@@ -105,13 +110,12 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: Req
105
110
  profileSegmentCodes: string[];
106
111
  }[];
107
112
  deliveredUsersCount: number | null;
108
- bodyKind: "template";
109
113
  projects: {
110
114
  id: number;
115
+ title: string | null;
111
116
  slotNumber: number;
112
117
  readyforProjectId: number;
113
118
  isPaidSlot: boolean;
114
- title: string | null;
115
119
  description: string | null;
116
120
  tag: string | null;
117
121
  tagUrl: string | null;
@@ -124,12 +128,11 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: Req
124
128
  imageUrl: string | null;
125
129
  }[];
126
130
  };
127
- kind: "curationMailMagazine";
131
+ deliveryScheduledAt: string | null;
132
+ } | {
128
133
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
129
134
  id: number;
130
135
  title: string | null;
131
- deliveryScheduledAt: string | null;
132
- } | {
133
136
  personalizedMailMagazine: {
134
137
  utmCampaign: string | null;
135
138
  target: {
@@ -139,9 +142,6 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: Req
139
142
  } | null;
140
143
  };
141
144
  kind: "personalizedMailMagazine";
142
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
143
- id: number;
144
- title: string | null;
145
145
  deliveryScheduledAt: string | null;
146
146
  };
147
147
  }>;
@@ -156,7 +156,12 @@ type CampaignsIdPatchOperation = paths["/api/campaigns/{id}"]["patch"];
156
156
  type CampaignsIdPatchResponse = CampaignsIdPatchOperation["responses"]["200"]["content"]["application/json"];
157
157
  declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
158
158
  campaignDetail: {
159
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
160
+ id: number;
161
+ title: string | null;
162
+ kind: "curationMailMagazine";
159
163
  curationMailMagazine: {
164
+ bodyKind: "freeFormat";
160
165
  utmCampaign: string | null;
161
166
  subject: string | null;
162
167
  preHeaderText: string | null;
@@ -166,7 +171,6 @@ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (inpu
166
171
  profileSegmentCodes: string[];
167
172
  }[];
168
173
  deliveredUsersCount: number | null;
169
- bodyKind: "freeFormat";
170
174
  htmlBody: string | null;
171
175
  htmlStyle: string | null;
172
176
  images: {
@@ -174,6 +178,7 @@ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (inpu
174
178
  key: string;
175
179
  }[];
176
180
  } | {
181
+ bodyKind: "template";
177
182
  utmCampaign: string | null;
178
183
  subject: string | null;
179
184
  preHeaderText: string | null;
@@ -183,13 +188,12 @@ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (inpu
183
188
  profileSegmentCodes: string[];
184
189
  }[];
185
190
  deliveredUsersCount: number | null;
186
- bodyKind: "template";
187
191
  projects: {
188
192
  id: number;
193
+ title: string | null;
189
194
  slotNumber: number;
190
195
  readyforProjectId: number;
191
196
  isPaidSlot: boolean;
192
- title: string | null;
193
197
  description: string | null;
194
198
  tag: string | null;
195
199
  tagUrl: string | null;
@@ -202,12 +206,11 @@ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (inpu
202
206
  imageUrl: string | null;
203
207
  }[];
204
208
  };
205
- kind: "curationMailMagazine";
209
+ deliveryScheduledAt: string | null;
210
+ } | {
206
211
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
207
212
  id: number;
208
213
  title: string | null;
209
- deliveryScheduledAt: string | null;
210
- } | {
211
214
  personalizedMailMagazine: {
212
215
  utmCampaign: string | null;
213
216
  target: {
@@ -217,9 +220,6 @@ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (inpu
217
220
  } | null;
218
221
  };
219
222
  kind: "personalizedMailMagazine";
220
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
221
- id: number;
222
- title: string | null;
223
223
  deliveryScheduledAt: string | null;
224
224
  };
225
225
  }>;
@@ -234,7 +234,12 @@ type CampaignsIdPatchRequestBody = ForceDig<CampaignsIdPatchOperation, [
234
234
  ]>;
235
235
  declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<{
236
236
  campaignDetail: {
237
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
238
+ id: number;
239
+ title: string | null;
240
+ kind: "curationMailMagazine";
237
241
  curationMailMagazine: {
242
+ bodyKind: "freeFormat";
238
243
  utmCampaign: string | null;
239
244
  subject: string | null;
240
245
  preHeaderText: string | null;
@@ -244,7 +249,6 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormDa
244
249
  profileSegmentCodes: string[];
245
250
  }[];
246
251
  deliveredUsersCount: number | null;
247
- bodyKind: "freeFormat";
248
252
  htmlBody: string | null;
249
253
  htmlStyle: string | null;
250
254
  images: {
@@ -252,6 +256,7 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormDa
252
256
  key: string;
253
257
  }[];
254
258
  } | {
259
+ bodyKind: "template";
255
260
  utmCampaign: string | null;
256
261
  subject: string | null;
257
262
  preHeaderText: string | null;
@@ -261,13 +266,12 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormDa
261
266
  profileSegmentCodes: string[];
262
267
  }[];
263
268
  deliveredUsersCount: number | null;
264
- bodyKind: "template";
265
269
  projects: {
266
270
  id: number;
271
+ title: string | null;
267
272
  slotNumber: number;
268
273
  readyforProjectId: number;
269
274
  isPaidSlot: boolean;
270
- title: string | null;
271
275
  description: string | null;
272
276
  tag: string | null;
273
277
  tagUrl: string | null;
@@ -280,12 +284,11 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormDa
280
284
  imageUrl: string | null;
281
285
  }[];
282
286
  };
283
- kind: "curationMailMagazine";
287
+ deliveryScheduledAt: string | null;
288
+ } | {
284
289
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
285
290
  id: number;
286
291
  title: string | null;
287
- deliveryScheduledAt: string | null;
288
- } | {
289
292
  personalizedMailMagazine: {
290
293
  utmCampaign: string | null;
291
294
  target: {
@@ -295,9 +298,6 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormDa
295
298
  } | null;
296
299
  };
297
300
  kind: "personalizedMailMagazine";
298
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
299
- id: number;
300
- title: string | null;
301
301
  deliveryScheduledAt: string | null;
302
302
  };
303
303
  }>;
@@ -5,7 +5,12 @@ type CampaignsIdGetOperation = paths["/api/campaigns/{id}"]["get"];
5
5
  type CampaignsIdGetResponse = CampaignsIdGetOperation["responses"]["200"]["content"]["application/json"];
6
6
  declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
7
7
  campaignDetail: {
8
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
9
+ id: number;
10
+ title: string | null;
11
+ kind: "curationMailMagazine";
8
12
  curationMailMagazine: {
13
+ bodyKind: "freeFormat";
9
14
  utmCampaign: string | null;
10
15
  subject: string | null;
11
16
  preHeaderText: string | null;
@@ -15,7 +20,6 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
15
20
  profileSegmentCodes: string[];
16
21
  }[];
17
22
  deliveredUsersCount: number | null;
18
- bodyKind: "freeFormat";
19
23
  htmlBody: string | null;
20
24
  htmlStyle: string | null;
21
25
  images: {
@@ -23,6 +27,7 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
23
27
  key: string;
24
28
  }[];
25
29
  } | {
30
+ bodyKind: "template";
26
31
  utmCampaign: string | null;
27
32
  subject: string | null;
28
33
  preHeaderText: string | null;
@@ -32,13 +37,12 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
32
37
  profileSegmentCodes: string[];
33
38
  }[];
34
39
  deliveredUsersCount: number | null;
35
- bodyKind: "template";
36
40
  projects: {
37
41
  id: number;
42
+ title: string | null;
38
43
  slotNumber: number;
39
44
  readyforProjectId: number;
40
45
  isPaidSlot: boolean;
41
- title: string | null;
42
46
  description: string | null;
43
47
  tag: string | null;
44
48
  tagUrl: string | null;
@@ -51,12 +55,11 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
51
55
  imageUrl: string | null;
52
56
  }[];
53
57
  };
54
- kind: "curationMailMagazine";
58
+ deliveryScheduledAt: string | null;
59
+ } | {
55
60
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
56
61
  id: number;
57
62
  title: string | null;
58
- deliveryScheduledAt: string | null;
59
- } | {
60
63
  personalizedMailMagazine: {
61
64
  utmCampaign: string | null;
62
65
  target: {
@@ -66,9 +69,6 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
66
69
  } | null;
67
70
  };
68
71
  kind: "personalizedMailMagazine";
69
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
70
- id: number;
71
- title: string | null;
72
72
  deliveryScheduledAt: string | null;
73
73
  };
74
74
  }>;
@@ -78,7 +78,12 @@ type CampaignsIdGetPath = ForceDig<CampaignsIdGetOperation, [
78
78
  ]>;
79
79
  declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: RequestInit) => Promise<{
80
80
  campaignDetail: {
81
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
82
+ id: number;
83
+ title: string | null;
84
+ kind: "curationMailMagazine";
81
85
  curationMailMagazine: {
86
+ bodyKind: "freeFormat";
82
87
  utmCampaign: string | null;
83
88
  subject: string | null;
84
89
  preHeaderText: string | null;
@@ -88,7 +93,6 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: Req
88
93
  profileSegmentCodes: string[];
89
94
  }[];
90
95
  deliveredUsersCount: number | null;
91
- bodyKind: "freeFormat";
92
96
  htmlBody: string | null;
93
97
  htmlStyle: string | null;
94
98
  images: {
@@ -96,6 +100,7 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: Req
96
100
  key: string;
97
101
  }[];
98
102
  } | {
103
+ bodyKind: "template";
99
104
  utmCampaign: string | null;
100
105
  subject: string | null;
101
106
  preHeaderText: string | null;
@@ -105,13 +110,12 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: Req
105
110
  profileSegmentCodes: string[];
106
111
  }[];
107
112
  deliveredUsersCount: number | null;
108
- bodyKind: "template";
109
113
  projects: {
110
114
  id: number;
115
+ title: string | null;
111
116
  slotNumber: number;
112
117
  readyforProjectId: number;
113
118
  isPaidSlot: boolean;
114
- title: string | null;
115
119
  description: string | null;
116
120
  tag: string | null;
117
121
  tagUrl: string | null;
@@ -124,12 +128,11 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: Req
124
128
  imageUrl: string | null;
125
129
  }[];
126
130
  };
127
- kind: "curationMailMagazine";
131
+ deliveryScheduledAt: string | null;
132
+ } | {
128
133
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
129
134
  id: number;
130
135
  title: string | null;
131
- deliveryScheduledAt: string | null;
132
- } | {
133
136
  personalizedMailMagazine: {
134
137
  utmCampaign: string | null;
135
138
  target: {
@@ -139,9 +142,6 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: Req
139
142
  } | null;
140
143
  };
141
144
  kind: "personalizedMailMagazine";
142
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
143
- id: number;
144
- title: string | null;
145
145
  deliveryScheduledAt: string | null;
146
146
  };
147
147
  }>;
@@ -156,7 +156,12 @@ type CampaignsIdPatchOperation = paths["/api/campaigns/{id}"]["patch"];
156
156
  type CampaignsIdPatchResponse = CampaignsIdPatchOperation["responses"]["200"]["content"]["application/json"];
157
157
  declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
158
158
  campaignDetail: {
159
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
160
+ id: number;
161
+ title: string | null;
162
+ kind: "curationMailMagazine";
159
163
  curationMailMagazine: {
164
+ bodyKind: "freeFormat";
160
165
  utmCampaign: string | null;
161
166
  subject: string | null;
162
167
  preHeaderText: string | null;
@@ -166,7 +171,6 @@ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (inpu
166
171
  profileSegmentCodes: string[];
167
172
  }[];
168
173
  deliveredUsersCount: number | null;
169
- bodyKind: "freeFormat";
170
174
  htmlBody: string | null;
171
175
  htmlStyle: string | null;
172
176
  images: {
@@ -174,6 +178,7 @@ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (inpu
174
178
  key: string;
175
179
  }[];
176
180
  } | {
181
+ bodyKind: "template";
177
182
  utmCampaign: string | null;
178
183
  subject: string | null;
179
184
  preHeaderText: string | null;
@@ -183,13 +188,12 @@ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (inpu
183
188
  profileSegmentCodes: string[];
184
189
  }[];
185
190
  deliveredUsersCount: number | null;
186
- bodyKind: "template";
187
191
  projects: {
188
192
  id: number;
193
+ title: string | null;
189
194
  slotNumber: number;
190
195
  readyforProjectId: number;
191
196
  isPaidSlot: boolean;
192
- title: string | null;
193
197
  description: string | null;
194
198
  tag: string | null;
195
199
  tagUrl: string | null;
@@ -202,12 +206,11 @@ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (inpu
202
206
  imageUrl: string | null;
203
207
  }[];
204
208
  };
205
- kind: "curationMailMagazine";
209
+ deliveryScheduledAt: string | null;
210
+ } | {
206
211
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
207
212
  id: number;
208
213
  title: string | null;
209
- deliveryScheduledAt: string | null;
210
- } | {
211
214
  personalizedMailMagazine: {
212
215
  utmCampaign: string | null;
213
216
  target: {
@@ -217,9 +220,6 @@ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (inpu
217
220
  } | null;
218
221
  };
219
222
  kind: "personalizedMailMagazine";
220
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
221
- id: number;
222
- title: string | null;
223
223
  deliveryScheduledAt: string | null;
224
224
  };
225
225
  }>;
@@ -234,7 +234,12 @@ type CampaignsIdPatchRequestBody = ForceDig<CampaignsIdPatchOperation, [
234
234
  ]>;
235
235
  declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<{
236
236
  campaignDetail: {
237
+ status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
238
+ id: number;
239
+ title: string | null;
240
+ kind: "curationMailMagazine";
237
241
  curationMailMagazine: {
242
+ bodyKind: "freeFormat";
238
243
  utmCampaign: string | null;
239
244
  subject: string | null;
240
245
  preHeaderText: string | null;
@@ -244,7 +249,6 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormDa
244
249
  profileSegmentCodes: string[];
245
250
  }[];
246
251
  deliveredUsersCount: number | null;
247
- bodyKind: "freeFormat";
248
252
  htmlBody: string | null;
249
253
  htmlStyle: string | null;
250
254
  images: {
@@ -252,6 +256,7 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormDa
252
256
  key: string;
253
257
  }[];
254
258
  } | {
259
+ bodyKind: "template";
255
260
  utmCampaign: string | null;
256
261
  subject: string | null;
257
262
  preHeaderText: string | null;
@@ -261,13 +266,12 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormDa
261
266
  profileSegmentCodes: string[];
262
267
  }[];
263
268
  deliveredUsersCount: number | null;
264
- bodyKind: "template";
265
269
  projects: {
266
270
  id: number;
271
+ title: string | null;
267
272
  slotNumber: number;
268
273
  readyforProjectId: number;
269
274
  isPaidSlot: boolean;
270
- title: string | null;
271
275
  description: string | null;
272
276
  tag: string | null;
273
277
  tagUrl: string | null;
@@ -280,12 +284,11 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormDa
280
284
  imageUrl: string | null;
281
285
  }[];
282
286
  };
283
- kind: "curationMailMagazine";
287
+ deliveryScheduledAt: string | null;
288
+ } | {
284
289
  status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
285
290
  id: number;
286
291
  title: string | null;
287
- deliveryScheduledAt: string | null;
288
- } | {
289
292
  personalizedMailMagazine: {
290
293
  utmCampaign: string | null;
291
294
  target: {
@@ -295,9 +298,6 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormDa
295
298
  } | null;
296
299
  };
297
300
  kind: "personalizedMailMagazine";
298
- status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
299
- id: number;
300
- title: string | null;
301
301
  deliveryScheduledAt: string | null;
302
302
  };
303
303
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readyfor/api-client-pigeon",
3
- "version": "0.294.0-pr1144.e6277a6",
3
+ "version": "0.294.0-pr1149.4ae0186",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -36,7 +36,7 @@
36
36
  "swr": "2.3.8",
37
37
  "use-sync-external-store": "1.6.0",
38
38
  "zod": "^3.24.1",
39
- "@readyfor/api-client-base": "0.294.0-pr1144.e6277a6"
39
+ "@readyfor/api-client-base": "0.294.0-pr1149.4ae0186"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "qs": "^6",
@@ -44,7 +44,7 @@
44
44
  "swr": "^2.3.3",
45
45
  "use-sync-external-store": "^1.2.2",
46
46
  "zod": "^3",
47
- "@readyfor/api-client-base": "0.294.0-pr1144.e6277a6"
47
+ "@readyfor/api-client-base": "0.294.0-pr1149.4ae0186"
48
48
  },
49
49
  "peerDependenciesMeta": {
50
50
  "react": {