@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.
- package/dist/chunk-2ANX7NRV.mjs +24 -0
- package/dist/{chunk-KL2BCQLU.mjs → chunk-2FPDBPJY.mjs} +1 -1
- package/dist/chunk-4GY6JZ77.mjs +39 -0
- package/dist/chunk-6JHFWIAW.mjs +27 -0
- package/dist/chunk-6ZETET36.mjs +24 -0
- package/dist/{chunk-DQW3ZEJN.mjs → chunk-7JRHKS3K.mjs} +1 -1
- package/dist/{chunk-LUUW3QOB.mjs → chunk-G6IJEAVR.mjs} +1 -1
- package/dist/{chunk-ZDQDW24D.mjs → chunk-HD6B7N5S.mjs} +1 -1
- package/dist/chunk-IKRY3IDS.mjs +28 -0
- package/dist/chunk-JVMIOVIM.mjs +29 -0
- package/dist/{chunk-3BSY3CC4.mjs → chunk-JWVQXFDL.mjs} +1 -1
- package/dist/chunk-LMM3AGZ6.mjs +36 -0
- package/dist/chunk-MCYE5BYS.mjs +25 -0
- package/dist/{chunk-VUY6GQWT.mjs → chunk-NIZUYZOH.mjs} +1 -1
- package/dist/{chunk-S2M3EJKW.mjs → chunk-OLAYQE52.mjs} +1 -1
- package/dist/chunk-OODNPRT4.mjs +30 -0
- package/dist/chunk-TP3CBDVX.mjs +48 -0
- package/dist/chunk-X2WL4YZH.mjs +27 -0
- package/dist/components.d.mts +649 -4987
- package/dist/components.d.ts +649 -4987
- package/dist/fetch/campaigns.d.mts +4 -66
- package/dist/fetch/campaigns.d.ts +4 -66
- package/dist/fetch/campaigns.js +18 -10
- package/dist/fetch/campaigns.mjs +1 -1
- package/dist/fetch/campaignsCampaignIdImagesId.d.mts +1 -1
- package/dist/fetch/campaignsCampaignIdImagesId.d.ts +1 -1
- package/dist/fetch/campaignsCampaignIdImagesId.js +12 -4
- package/dist/fetch/campaignsCampaignIdImagesId.mjs +1 -1
- package/dist/fetch/campaignsId.d.mts +5 -277
- package/dist/fetch/campaignsId.d.ts +5 -277
- package/dist/fetch/campaignsId.js +24 -12
- package/dist/fetch/campaignsId.mjs +1 -1
- package/dist/fetch/campaignsIdDeliveryJob.d.mts +2 -2
- package/dist/fetch/campaignsIdDeliveryJob.d.ts +2 -2
- package/dist/fetch/campaignsIdDeliveryJob.js +20 -8
- package/dist/fetch/campaignsIdDeliveryJob.mjs +1 -1
- package/dist/fetch/campaignsIdImages.d.mts +2 -8
- package/dist/fetch/campaignsIdImages.d.ts +2 -8
- package/dist/fetch/campaignsIdImages.js +13 -4
- package/dist/fetch/campaignsIdImages.mjs +1 -1
- package/dist/fetch/campaignsIdPreview.d.mts +2 -6
- package/dist/fetch/campaignsIdPreview.d.ts +2 -6
- package/dist/fetch/campaignsIdPreview.js +10 -4
- package/dist/fetch/campaignsIdPreview.mjs +1 -1
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.mts +1 -1
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.ts +1 -1
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.js +16 -9
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.mjs +1 -1
- package/dist/fetch/projectsProjectIdOrKeyword.d.mts +2 -16
- package/dist/fetch/projectsProjectIdOrKeyword.d.ts +2 -16
- package/dist/fetch/projectsProjectIdOrKeyword.js +10 -4
- package/dist/fetch/projectsProjectIdOrKeyword.mjs +1 -1
- package/dist/fetch/segmentsBehaviorSegments.d.mts +2 -18
- package/dist/fetch/segmentsBehaviorSegments.d.ts +2 -18
- package/dist/fetch/segmentsBehaviorSegments.js +7 -4
- package/dist/fetch/segmentsBehaviorSegments.mjs +1 -1
- package/dist/fetch/segmentsProfileSegments.d.mts +2 -18
- package/dist/fetch/segmentsProfileSegments.d.ts +2 -18
- package/dist/fetch/segmentsProfileSegments.js +7 -4
- package/dist/fetch/segmentsProfileSegments.mjs +1 -1
- package/dist/fetch/segmentsTargetUsersCount.d.mts +2 -6
- package/dist/fetch/segmentsTargetUsersCount.d.ts +2 -6
- package/dist/fetch/segmentsTargetUsersCount.js +11 -4
- package/dist/fetch/segmentsTargetUsersCount.mjs +1 -1
- package/dist/hooks/index.mjs +18 -18
- package/dist/hooks/useCampaigns.mjs +12 -12
- package/dist/hooks/useCampaignsId.mjs +12 -12
- package/dist/hooks/useCampaignsIdPreview.mjs +12 -12
- package/dist/hooks/useProjectsProjectIdOrKeyword.mjs +12 -12
- package/dist/hooks/useSegmentsBehaviorSegments.mjs +12 -12
- package/dist/hooks/useSegmentsProfileSegments.mjs +12 -12
- package/dist/hooks/useSegmentsTargetUsersCount.mjs +12 -12
- package/dist/index.js +148 -67
- package/dist/index.mjs +11 -11
- package/package.json +12 -13
- package/dist/chunk-6DE2SHQZ.mjs +0 -19
- package/dist/chunk-BGIB7JQD.mjs +0 -19
- package/dist/chunk-D455PCO3.mjs +0 -19
- package/dist/chunk-DH3UXOBA.mjs +0 -19
- package/dist/chunk-EYJTETGN.mjs +0 -34
- package/dist/chunk-KBTZNIQJ.mjs +0 -20
- package/dist/chunk-MFCSQX6F.mjs +0 -29
- package/dist/chunk-NIBXTDD3.mjs +0 -15
- package/dist/chunk-NKNUFH54.mjs +0 -19
- package/dist/chunk-VJU27CZQ.mjs +0 -19
- package/dist/chunk-YV4XRZY2.mjs +0 -22
|
@@ -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,
|
|
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,
|
|
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,
|
|
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 };
|
|
@@ -310,20 +310,32 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
310
310
|
|
|
311
311
|
// src/fetch/campaignsId.ts
|
|
312
312
|
var buildCampaignsIdGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
|
|
313
|
-
var getCampaignsId = (path,
|
|
314
|
-
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path)
|
|
315
|
-
|
|
316
|
-
)
|
|
313
|
+
var getCampaignsId = (path, customRequestInit) => {
|
|
314
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
315
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
316
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" })
|
|
317
|
+
);
|
|
318
|
+
return buildCampaignsIdGetFetcher(requestInit)(requestInfo);
|
|
319
|
+
};
|
|
317
320
|
var buildCampaignsIdDeleteFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
318
|
-
var deleteCampaignsId = (path,
|
|
319
|
-
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path)
|
|
320
|
-
|
|
321
|
-
)
|
|
321
|
+
var deleteCampaignsId = (path, customRequestInit) => {
|
|
322
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
323
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
324
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "DELETE" })
|
|
325
|
+
);
|
|
326
|
+
return buildCampaignsIdDeleteFetcher(requestInit)(requestInfo);
|
|
327
|
+
};
|
|
322
328
|
var buildCampaignsIdPatchFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(CampaignsCampaignIdResponse, { ...requestInit });
|
|
323
|
-
var patchCampaignsId = (path, requestBody,
|
|
324
|
-
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path)
|
|
325
|
-
|
|
326
|
-
)
|
|
329
|
+
var patchCampaignsId = (path, requestBody, customRequestInit) => {
|
|
330
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{id}", path);
|
|
331
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
332
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, {
|
|
333
|
+
method: "PATCH",
|
|
334
|
+
body: requestBody
|
|
335
|
+
})
|
|
336
|
+
);
|
|
337
|
+
return buildCampaignsIdPatchFetcher(requestInit)(requestInfo);
|
|
338
|
+
};
|
|
327
339
|
// Annotate the CommonJS export names for ESM import in node:
|
|
328
340
|
0 && (module.exports = {
|
|
329
341
|
buildCampaignsIdDeleteFetcher,
|
|
@@ -7,13 +7,13 @@ type CampaignsIdDeliveryJobPostPath = ForceDig<CampaignsIdDeliveryJobPostOperati
|
|
|
7
7
|
"parameters",
|
|
8
8
|
"path"
|
|
9
9
|
]>;
|
|
10
|
-
declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath,
|
|
10
|
+
declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath, customRequestInit?: RequestInit) => Promise<void>;
|
|
11
11
|
type CampaignsIdDeliveryJobDeleteOperation = paths["/api/campaigns/{id}/delivery_job"]["delete"];
|
|
12
12
|
declare const buildCampaignsIdDeliveryJobDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
13
13
|
type CampaignsIdDeliveryJobDeletePath = ForceDig<CampaignsIdDeliveryJobDeleteOperation, [
|
|
14
14
|
"parameters",
|
|
15
15
|
"path"
|
|
16
16
|
]>;
|
|
17
|
-
declare const deleteCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobDeletePath,
|
|
17
|
+
declare const deleteCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobDeletePath, customRequestInit?: RequestInit) => Promise<void>;
|
|
18
18
|
|
|
19
19
|
export { type CampaignsIdDeliveryJobDeletePath, type CampaignsIdDeliveryJobPostPath, buildCampaignsIdDeliveryJobDeleteFetcher, buildCampaignsIdDeliveryJobPostFetcher, deleteCampaignsIdDeliveryJob, postCampaignsIdDeliveryJob };
|
|
@@ -7,13 +7,13 @@ type CampaignsIdDeliveryJobPostPath = ForceDig<CampaignsIdDeliveryJobPostOperati
|
|
|
7
7
|
"parameters",
|
|
8
8
|
"path"
|
|
9
9
|
]>;
|
|
10
|
-
declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath,
|
|
10
|
+
declare const postCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobPostPath, customRequestInit?: RequestInit) => Promise<void>;
|
|
11
11
|
type CampaignsIdDeliveryJobDeleteOperation = paths["/api/campaigns/{id}/delivery_job"]["delete"];
|
|
12
12
|
declare const buildCampaignsIdDeliveryJobDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
13
13
|
type CampaignsIdDeliveryJobDeletePath = ForceDig<CampaignsIdDeliveryJobDeleteOperation, [
|
|
14
14
|
"parameters",
|
|
15
15
|
"path"
|
|
16
16
|
]>;
|
|
17
|
-
declare const deleteCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobDeletePath,
|
|
17
|
+
declare const deleteCampaignsIdDeliveryJob: (path: CampaignsIdDeliveryJobDeletePath, customRequestInit?: RequestInit) => Promise<void>;
|
|
18
18
|
|
|
19
19
|
export { type CampaignsIdDeliveryJobDeletePath, type CampaignsIdDeliveryJobPostPath, buildCampaignsIdDeliveryJobDeleteFetcher, buildCampaignsIdDeliveryJobPostFetcher, deleteCampaignsIdDeliveryJob, postCampaignsIdDeliveryJob };
|
|
@@ -28,15 +28,27 @@ __export(campaignsIdDeliveryJob_exports, {
|
|
|
28
28
|
module.exports = __toCommonJS(campaignsIdDeliveryJob_exports);
|
|
29
29
|
var import_api_client_base = require("@readyfor/api-client-base");
|
|
30
30
|
var buildCampaignsIdDeliveryJobPostFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
31
|
-
var postCampaignsIdDeliveryJob = (path,
|
|
32
|
-
(0, import_api_client_base.__internal__requestUrl)(
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
var postCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
32
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
33
|
+
"/api/campaigns/{id}/delivery_job",
|
|
34
|
+
path
|
|
35
|
+
);
|
|
36
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
37
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "POST" })
|
|
38
|
+
);
|
|
39
|
+
return buildCampaignsIdDeliveryJobPostFetcher(requestInit)(requestInfo);
|
|
40
|
+
};
|
|
35
41
|
var buildCampaignsIdDeliveryJobDeleteFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
36
|
-
var deleteCampaignsIdDeliveryJob = (path,
|
|
37
|
-
(0, import_api_client_base.__internal__requestUrl)(
|
|
38
|
-
|
|
39
|
-
|
|
42
|
+
var deleteCampaignsIdDeliveryJob = (path, customRequestInit) => {
|
|
43
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
44
|
+
"/api/campaigns/{id}/delivery_job",
|
|
45
|
+
path
|
|
46
|
+
);
|
|
47
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
48
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "DELETE" })
|
|
49
|
+
);
|
|
50
|
+
return buildCampaignsIdDeliveryJobDeleteFetcher(requestInit)(requestInfo);
|
|
51
|
+
};
|
|
40
52
|
// Annotate the CommonJS export names for ESM import in node:
|
|
41
53
|
0 && (module.exports = {
|
|
42
54
|
buildCampaignsIdDeliveryJobDeleteFetcher,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
buildCampaignsIdDeliveryJobPostFetcher,
|
|
4
4
|
deleteCampaignsIdDeliveryJob,
|
|
5
5
|
postCampaignsIdDeliveryJob
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-LMM3AGZ6.mjs";
|
|
7
7
|
export {
|
|
8
8
|
buildCampaignsIdDeliveryJobDeleteFetcher,
|
|
9
9
|
buildCampaignsIdDeliveryJobPostFetcher,
|
|
@@ -3,10 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
|
|
|
3
3
|
|
|
4
4
|
type CampaignsIdImagesPostOperation = paths["/api/campaigns/{id}/images"]["post"];
|
|
5
5
|
type CampaignsIdImagesPostResponse = CampaignsIdImagesPostOperation["responses"]["201"]["content"]["application/json"];
|
|
6
|
-
declare const buildCampaignsIdImagesPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<
|
|
7
|
-
id: number;
|
|
8
|
-
key: string;
|
|
9
|
-
}>;
|
|
6
|
+
declare const buildCampaignsIdImagesPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<any>;
|
|
10
7
|
type CampaignsIdImagesPostPath = ForceDig<CampaignsIdImagesPostOperation, [
|
|
11
8
|
"parameters",
|
|
12
9
|
"path"
|
|
@@ -16,9 +13,6 @@ type CampaignsIdImagesPostRequestBody = ForceDig<CampaignsIdImagesPostOperation,
|
|
|
16
13
|
"content",
|
|
17
14
|
"multipart/form-data"
|
|
18
15
|
]>;
|
|
19
|
-
declare const postCampaignsIdImages: (path: CampaignsIdImagesPostPath, requestBody: FormData,
|
|
20
|
-
id: number;
|
|
21
|
-
key: string;
|
|
22
|
-
}>;
|
|
16
|
+
declare const postCampaignsIdImages: (path: CampaignsIdImagesPostPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<any>;
|
|
23
17
|
|
|
24
18
|
export { type CampaignsIdImagesPostPath, type CampaignsIdImagesPostRequestBody, type CampaignsIdImagesPostResponse, buildCampaignsIdImagesPostFetcher, postCampaignsIdImages };
|
|
@@ -3,10 +3,7 @@ import { ForceDig } from '@readyfor/api-client-base';
|
|
|
3
3
|
|
|
4
4
|
type CampaignsIdImagesPostOperation = paths["/api/campaigns/{id}/images"]["post"];
|
|
5
5
|
type CampaignsIdImagesPostResponse = CampaignsIdImagesPostOperation["responses"]["201"]["content"]["application/json"];
|
|
6
|
-
declare const buildCampaignsIdImagesPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<
|
|
7
|
-
id: number;
|
|
8
|
-
key: string;
|
|
9
|
-
}>;
|
|
6
|
+
declare const buildCampaignsIdImagesPostFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<any>;
|
|
10
7
|
type CampaignsIdImagesPostPath = ForceDig<CampaignsIdImagesPostOperation, [
|
|
11
8
|
"parameters",
|
|
12
9
|
"path"
|
|
@@ -16,9 +13,6 @@ type CampaignsIdImagesPostRequestBody = ForceDig<CampaignsIdImagesPostOperation,
|
|
|
16
13
|
"content",
|
|
17
14
|
"multipart/form-data"
|
|
18
15
|
]>;
|
|
19
|
-
declare const postCampaignsIdImages: (path: CampaignsIdImagesPostPath, requestBody: FormData,
|
|
20
|
-
id: number;
|
|
21
|
-
key: string;
|
|
22
|
-
}>;
|
|
16
|
+
declare const postCampaignsIdImages: (path: CampaignsIdImagesPostPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<any>;
|
|
23
17
|
|
|
24
18
|
export { type CampaignsIdImagesPostPath, type CampaignsIdImagesPostRequestBody, type CampaignsIdImagesPostResponse, buildCampaignsIdImagesPostFetcher, postCampaignsIdImages };
|
|
@@ -306,10 +306,19 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
306
306
|
|
|
307
307
|
// src/fetch/campaignsIdImages.ts
|
|
308
308
|
var buildCampaignsIdImagesPostFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(Image, { ...requestInit });
|
|
309
|
-
var postCampaignsIdImages = (path, requestBody,
|
|
310
|
-
(0, import_api_client_base.__internal__requestUrl)(
|
|
311
|
-
|
|
312
|
-
|
|
309
|
+
var postCampaignsIdImages = (path, requestBody, customRequestInit) => {
|
|
310
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
311
|
+
"/api/campaigns/{id}/images",
|
|
312
|
+
path
|
|
313
|
+
);
|
|
314
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
315
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, {
|
|
316
|
+
method: "POST",
|
|
317
|
+
body: requestBody
|
|
318
|
+
})
|
|
319
|
+
);
|
|
320
|
+
return buildCampaignsIdImagesPostFetcher(requestInit)(requestInfo);
|
|
321
|
+
};
|
|
313
322
|
// Annotate the CommonJS export names for ESM import in node:
|
|
314
323
|
0 && (module.exports = {
|
|
315
324
|
buildCampaignsIdImagesPostFetcher,
|
|
@@ -3,15 +3,11 @@ import { ForceDig } from '@readyfor/api-client-base';
|
|
|
3
3
|
|
|
4
4
|
type CampaignsIdPreviewGetOperation = paths["/api/campaigns/{id}/preview"]["get"];
|
|
5
5
|
type CampaignsIdPreviewGetResponse = CampaignsIdPreviewGetOperation["responses"]["200"]["content"]["application/json"];
|
|
6
|
-
declare const buildCampaignsIdPreviewGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<
|
|
7
|
-
content: string;
|
|
8
|
-
}>;
|
|
6
|
+
declare const buildCampaignsIdPreviewGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<any>;
|
|
9
7
|
type CampaignsIdPreviewGetPath = ForceDig<CampaignsIdPreviewGetOperation, [
|
|
10
8
|
"parameters",
|
|
11
9
|
"path"
|
|
12
10
|
]>;
|
|
13
|
-
declare const getCampaignsIdPreview: (path: CampaignsIdPreviewGetPath,
|
|
14
|
-
content: string;
|
|
15
|
-
}>;
|
|
11
|
+
declare const getCampaignsIdPreview: (path: CampaignsIdPreviewGetPath, customRequestInit?: RequestInit) => Promise<any>;
|
|
16
12
|
|
|
17
13
|
export { type CampaignsIdPreviewGetPath, type CampaignsIdPreviewGetResponse, buildCampaignsIdPreviewGetFetcher, getCampaignsIdPreview };
|
|
@@ -3,15 +3,11 @@ import { ForceDig } from '@readyfor/api-client-base';
|
|
|
3
3
|
|
|
4
4
|
type CampaignsIdPreviewGetOperation = paths["/api/campaigns/{id}/preview"]["get"];
|
|
5
5
|
type CampaignsIdPreviewGetResponse = CampaignsIdPreviewGetOperation["responses"]["200"]["content"]["application/json"];
|
|
6
|
-
declare const buildCampaignsIdPreviewGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<
|
|
7
|
-
content: string;
|
|
8
|
-
}>;
|
|
6
|
+
declare const buildCampaignsIdPreviewGetFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<any>;
|
|
9
7
|
type CampaignsIdPreviewGetPath = ForceDig<CampaignsIdPreviewGetOperation, [
|
|
10
8
|
"parameters",
|
|
11
9
|
"path"
|
|
12
10
|
]>;
|
|
13
|
-
declare const getCampaignsIdPreview: (path: CampaignsIdPreviewGetPath,
|
|
14
|
-
content: string;
|
|
15
|
-
}>;
|
|
11
|
+
declare const getCampaignsIdPreview: (path: CampaignsIdPreviewGetPath, customRequestInit?: RequestInit) => Promise<any>;
|
|
16
12
|
|
|
17
13
|
export { type CampaignsIdPreviewGetPath, type CampaignsIdPreviewGetResponse, buildCampaignsIdPreviewGetFetcher, getCampaignsIdPreview };
|
|
@@ -306,10 +306,16 @@ var GetCampaignsResponse = import_zod.z.object({
|
|
|
306
306
|
|
|
307
307
|
// src/fetch/campaignsIdPreview.ts
|
|
308
308
|
var buildCampaignsIdPreviewGetFetcher = (requestInit) => (0, import_api_client_base.createJsonFetcher)(GetCampaignsCampaignIdPreviewResponse, { ...requestInit });
|
|
309
|
-
var getCampaignsIdPreview = (path,
|
|
310
|
-
(0, import_api_client_base.__internal__requestUrl)(
|
|
311
|
-
|
|
312
|
-
|
|
309
|
+
var getCampaignsIdPreview = (path, customRequestInit) => {
|
|
310
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
311
|
+
"/api/campaigns/{id}/preview",
|
|
312
|
+
path
|
|
313
|
+
);
|
|
314
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
315
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, { method: "GET" })
|
|
316
|
+
);
|
|
317
|
+
return buildCampaignsIdPreviewGetFetcher(requestInit)(requestInfo);
|
|
318
|
+
};
|
|
313
319
|
// Annotate the CommonJS export names for ESM import in node:
|
|
314
320
|
0 && (module.exports = {
|
|
315
321
|
buildCampaignsIdPreviewGetFetcher,
|
|
@@ -12,6 +12,6 @@ type CampaignsIdPreviewDeliveryEmailPostRequestBody = ForceDig<CampaignsIdPrevie
|
|
|
12
12
|
"content",
|
|
13
13
|
"application/json"
|
|
14
14
|
]>;
|
|
15
|
-
declare const postCampaignsIdPreviewDeliveryEmail: (path: CampaignsIdPreviewDeliveryEmailPostPath, requestBody: CampaignsIdPreviewDeliveryEmailPostRequestBody,
|
|
15
|
+
declare const postCampaignsIdPreviewDeliveryEmail: (path: CampaignsIdPreviewDeliveryEmailPostPath, requestBody: CampaignsIdPreviewDeliveryEmailPostRequestBody, customRequestInit?: RequestInit) => Promise<void>;
|
|
16
16
|
|
|
17
17
|
export { type CampaignsIdPreviewDeliveryEmailPostPath, type CampaignsIdPreviewDeliveryEmailPostRequestBody, buildCampaignsIdPreviewDeliveryEmailPostFetcher, postCampaignsIdPreviewDeliveryEmail };
|
|
@@ -12,6 +12,6 @@ type CampaignsIdPreviewDeliveryEmailPostRequestBody = ForceDig<CampaignsIdPrevie
|
|
|
12
12
|
"content",
|
|
13
13
|
"application/json"
|
|
14
14
|
]>;
|
|
15
|
-
declare const postCampaignsIdPreviewDeliveryEmail: (path: CampaignsIdPreviewDeliveryEmailPostPath, requestBody: CampaignsIdPreviewDeliveryEmailPostRequestBody,
|
|
15
|
+
declare const postCampaignsIdPreviewDeliveryEmail: (path: CampaignsIdPreviewDeliveryEmailPostPath, requestBody: CampaignsIdPreviewDeliveryEmailPostRequestBody, customRequestInit?: RequestInit) => Promise<void>;
|
|
16
16
|
|
|
17
17
|
export { type CampaignsIdPreviewDeliveryEmailPostPath, type CampaignsIdPreviewDeliveryEmailPostRequestBody, buildCampaignsIdPreviewDeliveryEmailPostFetcher, postCampaignsIdPreviewDeliveryEmail };
|
|
@@ -26,15 +26,22 @@ __export(campaignsIdPreviewDeliveryEmail_exports, {
|
|
|
26
26
|
module.exports = __toCommonJS(campaignsIdPreviewDeliveryEmail_exports);
|
|
27
27
|
var import_api_client_base = require("@readyfor/api-client-base");
|
|
28
28
|
var buildCampaignsIdPreviewDeliveryEmailPostFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
29
|
-
var postCampaignsIdPreviewDeliveryEmail = (path, requestBody,
|
|
30
|
-
(0, import_api_client_base.__internal__requestUrl)(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
var postCampaignsIdPreviewDeliveryEmail = (path, requestBody, customRequestInit) => {
|
|
30
|
+
const requestInfo = (0, import_api_client_base.__internal__requestUrl)(
|
|
31
|
+
"/api/campaigns/{id}/preview_delivery_email",
|
|
32
|
+
path
|
|
33
|
+
);
|
|
34
|
+
const requestInit = (0, import_api_client_base.buildRequestInitWithDefaultConfig)(
|
|
35
|
+
(0, import_api_client_base.mergeRequestInit)(customRequestInit ?? {}, {
|
|
36
|
+
method: "POST",
|
|
37
|
+
headers: { "Content-Type": "application/json" },
|
|
38
|
+
body: JSON.stringify(requestBody)
|
|
39
|
+
})
|
|
40
|
+
);
|
|
41
|
+
return buildCampaignsIdPreviewDeliveryEmailPostFetcher(requestInit)(
|
|
42
|
+
requestInfo
|
|
43
|
+
);
|
|
44
|
+
};
|
|
38
45
|
// Annotate the CommonJS export names for ESM import in node:
|
|
39
46
|
0 && (module.exports = {
|
|
40
47
|
buildCampaignsIdPreviewDeliveryEmailPostFetcher,
|