@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.
- package/dist/chunk-24W5FWW7.mjs +27 -0
- package/dist/chunk-45QYVVV2.mjs +44 -0
- package/dist/chunk-5XEJOYX6.mjs +0 -0
- package/dist/chunk-6337UNDD.mjs +27 -0
- package/dist/chunk-CXALAOMT.mjs +48 -0
- package/dist/chunk-GVEIZAMY.mjs +359 -0
- package/dist/chunk-JVMIOVIM.mjs +29 -0
- package/dist/chunk-LMM3AGZ6.mjs +36 -0
- package/dist/chunk-MCYE5BYS.mjs +25 -0
- package/dist/chunk-MKV3OPBP.mjs +42 -0
- package/dist/chunk-MYQ5EIA6.mjs +50 -0
- package/dist/chunk-NA23PDIV.mjs +28 -0
- package/dist/chunk-P4EIALGR.mjs +24 -0
- package/dist/chunk-RWX2GYF3.mjs +39 -0
- package/dist/chunk-SBWG7GGI.mjs +52 -0
- package/dist/chunk-THNPXV56.mjs +24 -0
- package/dist/chunk-TPXQJS55.mjs +44 -0
- package/dist/chunk-UHDD26HF.mjs +44 -0
- package/dist/chunk-VUG5S4M4.mjs +42 -0
- package/dist/chunk-XNOKTUME.mjs +30 -0
- package/dist/components.d.mts +1107 -0
- package/dist/components.d.ts +1107 -2
- package/dist/components.js +444 -284
- package/dist/components.mjs +130 -221
- package/dist/fetch/campaigns.d.mts +88 -0
- package/dist/fetch/campaigns.d.ts +88 -2
- package/dist/fetch/campaigns.js +350 -22
- package/dist/fetch/campaigns.mjs +12 -18
- package/dist/{campaignsCampaignIdImagesId-BzoZ_38r.d.ts → fetch/campaignsCampaignIdImagesId.d.mts} +8 -6
- package/dist/fetch/campaignsCampaignIdImagesId.d.ts +12 -2
- package/dist/fetch/campaignsCampaignIdImagesId.js +44 -11
- package/dist/fetch/campaignsCampaignIdImagesId.mjs +7 -8
- package/dist/fetch/campaignsId.d.mts +321 -0
- package/dist/fetch/campaignsId.d.ts +321 -2
- package/dist/fetch/campaignsId.js +360 -27
- package/dist/fetch/campaignsId.mjs +16 -22
- package/dist/{campaignsIdDeliveryJob--2Nogu0k.d.ts → fetch/campaignsIdDeliveryJob.d.mts} +12 -7
- package/dist/fetch/campaignsIdDeliveryJob.d.ts +19 -2
- package/dist/fetch/campaignsIdDeliveryJob.js +56 -17
- package/dist/fetch/campaignsIdDeliveryJob.mjs +11 -13
- package/dist/{campaignsIdImages-DMSAp5-N.d.ts → fetch/campaignsIdImages.d.mts} +17 -11
- package/dist/fetch/campaignsIdImages.d.ts +24 -2
- package/dist/fetch/campaignsIdImages.js +341 -15
- package/dist/fetch/campaignsIdImages.mjs +8 -12
- package/dist/{campaignsIdPreview-C10ENt3B.d.ts → fetch/campaignsIdPreview.d.mts} +10 -8
- package/dist/fetch/campaignsIdPreview.d.ts +17 -2
- package/dist/fetch/campaignsIdPreview.js +338 -12
- package/dist/fetch/campaignsIdPreview.mjs +8 -9
- package/dist/{campaignsIdPreviewDeliveryEmail-BxkiUV8X.d.ts → fetch/campaignsIdPreviewDeliveryEmail.d.mts} +13 -7
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.ts +17 -2
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.js +48 -15
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.mjs +7 -12
- package/dist/fetch/projectsProjectIdOrKeyword.d.mts +27 -0
- package/dist/fetch/projectsProjectIdOrKeyword.d.ts +27 -2
- package/dist/fetch/projectsProjectIdOrKeyword.js +338 -12
- package/dist/fetch/projectsProjectIdOrKeyword.mjs +8 -9
- package/dist/fetch/segmentsBehaviorSegments.d.mts +24 -0
- package/dist/fetch/segmentsBehaviorSegments.d.ts +24 -2
- package/dist/fetch/segmentsBehaviorSegments.js +335 -12
- package/dist/fetch/segmentsBehaviorSegments.mjs +8 -9
- package/dist/fetch/segmentsProfileSegments.d.mts +24 -0
- package/dist/fetch/segmentsProfileSegments.d.ts +24 -2
- package/dist/fetch/segmentsProfileSegments.js +335 -12
- package/dist/fetch/segmentsProfileSegments.mjs +8 -9
- package/dist/{segmentsTargetUsersCount-CjScWKqF.d.ts → fetch/segmentsTargetUsersCount.d.mts} +10 -8
- package/dist/fetch/segmentsTargetUsersCount.d.ts +17 -2
- package/dist/fetch/segmentsTargetUsersCount.js +339 -12
- package/dist/fetch/segmentsTargetUsersCount.mjs +8 -9
- package/dist/hooks/index.d.mts +20 -0
- package/dist/hooks/index.d.ts +20 -8
- package/dist/hooks/index.js +670 -29
- package/dist/hooks/index.mjs +71 -8
- package/dist/hooks/useCampaigns.d.mts +44 -0
- package/dist/hooks/useCampaigns.d.ts +37 -37
- package/dist/hooks/useCampaigns.js +404 -33
- package/dist/hooks/useCampaigns.mjs +22 -27
- package/dist/hooks/useCampaignsId.d.mts +39 -0
- package/dist/hooks/useCampaignsId.d.ts +33 -33
- package/dist/hooks/useCampaignsId.js +404 -33
- package/dist/hooks/useCampaignsId.mjs +22 -27
- package/dist/hooks/useCampaignsIdPreview.d.mts +39 -0
- package/dist/hooks/useCampaignsIdPreview.d.ts +33 -32
- package/dist/hooks/useCampaignsIdPreview.js +404 -33
- package/dist/hooks/useCampaignsIdPreview.mjs +22 -27
- package/dist/hooks/useProjectsProjectIdOrKeyword.d.mts +39 -0
- package/dist/hooks/useProjectsProjectIdOrKeyword.d.ts +33 -33
- package/dist/hooks/useProjectsProjectIdOrKeyword.js +410 -33
- package/dist/hooks/useProjectsProjectIdOrKeyword.mjs +22 -27
- package/dist/hooks/useSegmentsBehaviorSegments.d.mts +38 -0
- package/dist/hooks/useSegmentsBehaviorSegments.d.ts +32 -33
- package/dist/hooks/useSegmentsBehaviorSegments.js +402 -33
- package/dist/hooks/useSegmentsBehaviorSegments.mjs +22 -27
- package/dist/hooks/useSegmentsProfileSegments.d.mts +38 -0
- package/dist/hooks/useSegmentsProfileSegments.d.ts +32 -33
- package/dist/hooks/useSegmentsProfileSegments.js +402 -33
- package/dist/hooks/useSegmentsProfileSegments.mjs +22 -27
- package/dist/hooks/useSegmentsTargetUsersCount.d.mts +39 -0
- package/dist/hooks/useSegmentsTargetUsersCount.d.ts +33 -32
- package/dist/hooks/useSegmentsTargetUsersCount.js +412 -33
- package/dist/hooks/useSegmentsTargetUsersCount.mjs +22 -27
- package/dist/index.d.mts +15 -0
- package/dist/index.d.ts +15 -14
- package/dist/index.js +703 -106
- package/dist/index.mjs +213 -13
- package/dist/schemaType.d.mts +887 -0
- package/dist/schemaType.d.ts +887 -2
- package/dist/schemaType.js +18 -0
- package/dist/schemaType.mjs +0 -1
- package/package.json +19 -4
- package/dist/campaigns-DZNsI5kN.d.ts +0 -82
- package/dist/campaignsId-qIqhKTZn.d.ts +0 -309
- package/dist/chunk-8l464Juk.js +0 -28
- package/dist/components-CkziYCTx.d.ts +0 -1108
- package/dist/index-DRYular4.d.ts +0 -1
- package/dist/projectsProjectIdOrKeyword-Cayu4ZMd.d.ts +0 -25
- package/dist/schemaType-DcWvaCEH.d.ts +0 -782
- package/dist/segmentsBehaviorSegments-B6cq3XGV.d.ts +0 -25
- 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 {
|
|
2
|
-
|
|
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 };
|