@readyfor/api-client-pigeon 0.237.0-pr959.ab7545f → 0.237.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-B22NIVP6.mjs → chunk-3BSY3CC4.mjs} +1 -1
- package/dist/chunk-6DE2SHQZ.mjs +19 -0
- package/dist/{chunk-EU35TDAI.mjs → chunk-BGIB7JQD.mjs} +1 -1
- package/dist/{chunk-A27E5C24.mjs → chunk-D455PCO3.mjs} +1 -1
- package/dist/{chunk-HXNGO56J.mjs → chunk-DH3UXOBA.mjs} +1 -1
- package/dist/{chunk-A24CWOKX.mjs → chunk-DQW3ZEJN.mjs} +1 -1
- package/dist/{chunk-VP2N74DP.mjs → chunk-EYJTETGN.mjs} +1 -1
- package/dist/chunk-KBTZNIQJ.mjs +20 -0
- package/dist/{chunk-3X4E4U2O.mjs → chunk-KL2BCQLU.mjs} +1 -1
- package/dist/{chunk-N2OKUVZR.mjs → chunk-LUUW3QOB.mjs} +1 -1
- package/dist/{chunk-6HAZ74NE.mjs → chunk-MFCSQX6F.mjs} +1 -1
- package/dist/chunk-NIBXTDD3.mjs +15 -0
- package/dist/{chunk-SMZ4TQUF.mjs → chunk-NKNUFH54.mjs} +1 -1
- package/dist/{chunk-HXXKAZDM.mjs → chunk-QCIAYUXK.mjs} +139 -61
- package/dist/{chunk-X6SJMFUO.mjs → chunk-S2M3EJKW.mjs} +1 -1
- package/dist/{chunk-B6LDGLWA.mjs → chunk-VJU27CZQ.mjs} +1 -1
- package/dist/{chunk-6NDIJ4ES.mjs → chunk-VUY6GQWT.mjs} +1 -1
- package/dist/{chunk-6M2YBD2O.mjs → chunk-ZDQDW24D.mjs} +1 -1
- package/dist/components.d.mts +1811 -199
- package/dist/components.d.ts +1811 -199
- package/dist/components.js +147 -54
- package/dist/components.mjs +31 -1
- package/dist/fetch/campaigns.d.mts +24 -6
- package/dist/fetch/campaigns.d.ts +24 -6
- package/dist/fetch/campaigns.js +117 -54
- package/dist/fetch/campaigns.mjs +2 -2
- package/dist/fetch/campaignsCampaignIdImagesId.d.mts +12 -0
- package/dist/fetch/campaignsCampaignIdImagesId.d.ts +12 -0
- package/dist/fetch/campaignsCampaignIdImagesId.js +37 -0
- package/dist/fetch/campaignsCampaignIdImagesId.mjs +8 -0
- package/dist/fetch/campaignsId.d.mts +76 -4
- package/dist/fetch/campaignsId.d.ts +76 -4
- package/dist/fetch/campaignsId.js +117 -54
- package/dist/fetch/campaignsId.mjs +2 -2
- package/dist/fetch/campaignsIdImages.d.mts +24 -0
- package/dist/fetch/campaignsIdImages.d.ts +24 -0
- package/dist/fetch/campaignsIdImages.js +317 -0
- package/dist/fetch/campaignsIdImages.mjs +9 -0
- package/dist/fetch/campaignsIdPreview.js +117 -54
- package/dist/fetch/campaignsIdPreview.mjs +2 -2
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.mts +17 -0
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.d.ts +17 -0
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.js +42 -0
- package/dist/fetch/campaignsIdPreviewDeliveryEmail.mjs +8 -0
- package/dist/fetch/projectsProjectIdOrKeyword.js +117 -54
- package/dist/fetch/projectsProjectIdOrKeyword.mjs +2 -2
- package/dist/fetch/segmentsBehaviorSegments.js +117 -54
- package/dist/fetch/segmentsBehaviorSegments.mjs +2 -2
- package/dist/fetch/segmentsProfileSegments.js +117 -54
- package/dist/fetch/segmentsProfileSegments.mjs +2 -2
- package/dist/fetch/segmentsTargetUsersCount.js +117 -54
- package/dist/fetch/segmentsTargetUsersCount.mjs +2 -2
- package/dist/hooks/index.js +162 -90
- package/dist/hooks/index.mjs +31 -28
- package/dist/hooks/useCampaigns.js +134 -62
- package/dist/hooks/useCampaigns.mjs +13 -10
- package/dist/hooks/useCampaignsId.js +134 -62
- package/dist/hooks/useCampaignsId.mjs +13 -10
- package/dist/hooks/useCampaignsIdPreview.js +134 -62
- package/dist/hooks/useCampaignsIdPreview.mjs +13 -10
- package/dist/hooks/useProjectsProjectIdOrKeyword.js +135 -63
- package/dist/hooks/useProjectsProjectIdOrKeyword.mjs +13 -10
- package/dist/hooks/useSegmentsBehaviorSegments.js +135 -63
- package/dist/hooks/useSegmentsBehaviorSegments.mjs +13 -10
- package/dist/hooks/useSegmentsProfileSegments.js +135 -63
- package/dist/hooks/useSegmentsProfileSegments.mjs +13 -10
- package/dist/hooks/useSegmentsTargetUsersCount.js +135 -63
- package/dist/hooks/useSegmentsTargetUsersCount.mjs +13 -10
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +202 -68
- package/dist/index.mjs +63 -15
- package/dist/schemaType.d.mts +203 -53
- package/dist/schemaType.d.ts +203 -53
- package/package.json +12 -11
- /package/dist/{chunk-OAIF3WPC.mjs → chunk-5XEJOYX6.mjs} +0 -0
package/dist/fetch/campaigns.js
CHANGED
|
@@ -35,21 +35,23 @@ var UploadImageFormData = import_zod.z.object({
|
|
|
35
35
|
kind: import_zod.z.literal("upload"),
|
|
36
36
|
data: import_zod.z.union([import_zod.z.any(), import_zod.z.any()])
|
|
37
37
|
});
|
|
38
|
-
var PersonalizedMailMagazineTargetUploadCsvRecordFormData = import_zod.z.object({
|
|
39
|
-
userId: import_zod.z.number(),
|
|
40
|
-
projectIds: import_zod.z.string()
|
|
41
|
-
});
|
|
42
38
|
var ImageFormData = import_zod.z.union([
|
|
43
39
|
UploadImageFormData,
|
|
44
40
|
DeleteImageFormData
|
|
45
41
|
]);
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
var CurationMailMagazineTargetFilterFormData = import_zod.z.object({
|
|
43
|
+
id: import_zod.z.union([import_zod.z.number(), import_zod.z.null()]),
|
|
44
|
+
behaviorSegmentCodes: import_zod.z.array(import_zod.z.string()),
|
|
45
|
+
profileSegmentCodes: import_zod.z.array(import_zod.z.string())
|
|
50
46
|
});
|
|
51
|
-
var
|
|
52
|
-
|
|
47
|
+
var PersonalizedMailMagazineTargetUploadCsvRecordFormData = import_zod.z.object({
|
|
48
|
+
userId: import_zod.z.number(),
|
|
49
|
+
projectIds: import_zod.z.string()
|
|
50
|
+
});
|
|
51
|
+
var CurationMailMagazineTargetFilter = import_zod.z.object({
|
|
52
|
+
id: import_zod.z.number(),
|
|
53
|
+
behaviorSegmentCodes: import_zod.z.array(import_zod.z.string()),
|
|
54
|
+
profileSegmentCodes: import_zod.z.array(import_zod.z.string())
|
|
53
55
|
});
|
|
54
56
|
var CurationMailMagazineBannerFormData = import_zod.z.object({
|
|
55
57
|
id: import_zod.z.union([import_zod.z.number(), import_zod.z.null()]),
|
|
@@ -68,15 +70,28 @@ var CurationMailMagazineProjectFormData = import_zod.z.object({
|
|
|
68
70
|
tag: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
69
71
|
tagUrl: import_zod.z.union([import_zod.z.string(), import_zod.z.null()])
|
|
70
72
|
});
|
|
71
|
-
var
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
var CurationMailMagazineFormDataBase = import_zod.z.object({
|
|
74
|
+
utmCampaign: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
75
|
+
subject: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
76
|
+
preHeaderText: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
77
|
+
targetFilters: import_zod.z.array(CurationMailMagazineTargetFilterFormData)
|
|
78
|
+
});
|
|
79
|
+
var PersonalizedMailMagazineTargetUploadCsvFormData = import_zod.z.object({
|
|
80
|
+
kind: import_zod.z.literal("uploadCsv"),
|
|
81
|
+
fileName: import_zod.z.string(),
|
|
82
|
+
records: import_zod.z.array(PersonalizedMailMagazineTargetUploadCsvRecordFormData)
|
|
83
|
+
});
|
|
84
|
+
var PersonalizedMailMagazineTargetDeleteCsvFormData = import_zod.z.object({
|
|
85
|
+
kind: import_zod.z.literal("deleteTargetCsv")
|
|
86
|
+
});
|
|
87
|
+
var Image = import_zod.z.object({ id: import_zod.z.number(), key: import_zod.z.string() });
|
|
88
|
+
var CurationMailMagazineDetailBase = import_zod.z.object({
|
|
89
|
+
utmCampaign: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
90
|
+
subject: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
91
|
+
preHeaderText: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
92
|
+
deliveredUsersCount: import_zod.z.union([import_zod.z.number(), import_zod.z.null()]),
|
|
93
|
+
targetFilters: import_zod.z.array(CurationMailMagazineTargetFilter)
|
|
75
94
|
});
|
|
76
|
-
var PersonalizedMailMagazineTargetCsvFormData = import_zod.z.union([
|
|
77
|
-
PersonalizedMailMagazineTargetDeleteCsvFormData,
|
|
78
|
-
PersonalizedMailMagazineTargetUploadCsvFormData
|
|
79
|
-
]);
|
|
80
95
|
var CurationMailMagazineBanner = import_zod.z.object({
|
|
81
96
|
id: import_zod.z.number(),
|
|
82
97
|
slotNumber: import_zod.z.number(),
|
|
@@ -94,37 +109,56 @@ var CurationMailMagazineTargetProject = import_zod.z.object({
|
|
|
94
109
|
tag: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
95
110
|
tagUrl: import_zod.z.union([import_zod.z.string(), import_zod.z.null()])
|
|
96
111
|
});
|
|
97
|
-
var
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
112
|
+
var CurationMailMagazineFormDataBodyKindTemplate = CurationMailMagazineFormDataBase.merge(
|
|
113
|
+
import_zod.z.object({
|
|
114
|
+
bodyKind: import_zod.z.literal("template"),
|
|
115
|
+
projects: import_zod.z.array(CurationMailMagazineProjectFormData),
|
|
116
|
+
banners: import_zod.z.array(CurationMailMagazineBannerFormData)
|
|
117
|
+
})
|
|
118
|
+
);
|
|
119
|
+
var CurationMailMagazineFormDataBodyKindFreeFormat = CurationMailMagazineFormDataBase.merge(
|
|
120
|
+
import_zod.z.object({
|
|
121
|
+
bodyKind: import_zod.z.literal("freeFormat"),
|
|
122
|
+
htmlBody: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
123
|
+
htmlStyle: import_zod.z.union([import_zod.z.string(), import_zod.z.null()])
|
|
124
|
+
})
|
|
125
|
+
);
|
|
126
|
+
var PersonalizedMailMagazineTargetCsvFormData = import_zod.z.union([
|
|
127
|
+
PersonalizedMailMagazineTargetDeleteCsvFormData,
|
|
128
|
+
PersonalizedMailMagazineTargetUploadCsvFormData
|
|
129
|
+
]);
|
|
130
|
+
var CurationMailMagazineDetailBodyKindFreeFormat = CurationMailMagazineDetailBase.merge(
|
|
131
|
+
import_zod.z.object({
|
|
132
|
+
bodyKind: import_zod.z.literal("freeFormat"),
|
|
133
|
+
htmlBody: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
134
|
+
htmlStyle: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
135
|
+
images: import_zod.z.array(Image)
|
|
136
|
+
})
|
|
137
|
+
);
|
|
138
|
+
var CurationMailMagazineDetailBodyKindTemplate = CurationMailMagazineDetailBase.merge(
|
|
139
|
+
import_zod.z.object({
|
|
140
|
+
bodyKind: import_zod.z.literal("template"),
|
|
141
|
+
projects: import_zod.z.array(CurationMailMagazineTargetProject),
|
|
142
|
+
banners: import_zod.z.array(CurationMailMagazineBanner)
|
|
143
|
+
})
|
|
144
|
+
);
|
|
102
145
|
var PersonalizedMailMagazineDetailTarget = import_zod.z.object({
|
|
103
146
|
csvFileName: import_zod.z.string(),
|
|
104
147
|
targetUsersCount: import_zod.z.number(),
|
|
105
148
|
excludedUsersCount: import_zod.z.number()
|
|
106
149
|
});
|
|
107
|
-
var CurationMailMagazineFormData = import_zod.z.
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
targetFilters: import_zod.z.array(CurationMailMagazineTargetFilterFormData),
|
|
112
|
-
projects: import_zod.z.array(CurationMailMagazineProjectFormData),
|
|
113
|
-
banners: import_zod.z.array(CurationMailMagazineBannerFormData)
|
|
114
|
-
});
|
|
150
|
+
var CurationMailMagazineFormData = import_zod.z.union([
|
|
151
|
+
CurationMailMagazineFormDataBodyKindFreeFormat,
|
|
152
|
+
CurationMailMagazineFormDataBodyKindTemplate
|
|
153
|
+
]);
|
|
115
154
|
var PersonalizedMailMagazineFormData = import_zod.z.object({
|
|
116
155
|
utmCampaign: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
117
156
|
targetCsv: import_zod.z.union([PersonalizedMailMagazineTargetCsvFormData, import_zod.z.null()])
|
|
118
157
|
});
|
|
119
|
-
var CurationMailMagazineDetail = import_zod.z.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
deliveredUsersCount: import_zod.z.union([import_zod.z.number(), import_zod.z.null()]),
|
|
124
|
-
targetFilters: import_zod.z.array(CurationMailMagazineTargetFilter),
|
|
125
|
-
projects: import_zod.z.array(CurationMailMagazineTargetProject),
|
|
126
|
-
banners: import_zod.z.array(CurationMailMagazineBanner)
|
|
127
|
-
});
|
|
158
|
+
var CurationMailMagazineDetail = import_zod.z.union([
|
|
159
|
+
CurationMailMagazineDetailBodyKindTemplate,
|
|
160
|
+
CurationMailMagazineDetailBodyKindFreeFormat
|
|
161
|
+
]);
|
|
128
162
|
var CampaignStatus = import_zod.z.union([
|
|
129
163
|
import_zod.z.literal("draft"),
|
|
130
164
|
import_zod.z.literal("scheduled"),
|
|
@@ -162,16 +196,30 @@ var CampaignDetailKindDataPersonalizedMailMagazine = import_zod.z.object({
|
|
|
162
196
|
kind: import_zod.z.literal("personalizedMailMagazine"),
|
|
163
197
|
personalizedMailMagazine: PersonalizedMailMagazineDetail
|
|
164
198
|
});
|
|
199
|
+
var BodyKind = import_zod.z.union([
|
|
200
|
+
import_zod.z.literal("template"),
|
|
201
|
+
import_zod.z.literal("freeFormat")
|
|
202
|
+
]);
|
|
203
|
+
var CampaignBase = import_zod.z.object({
|
|
204
|
+
id: import_zod.z.number(),
|
|
205
|
+
title: import_zod.z.optional(import_zod.z.union([import_zod.z.string(), import_zod.z.null()])),
|
|
206
|
+
status: CampaignStatus,
|
|
207
|
+
deliveryAt: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
208
|
+
lastEditorName: import_zod.z.string(),
|
|
209
|
+
lastEditedAt: import_zod.z.string()
|
|
210
|
+
});
|
|
165
211
|
var CampaignWithCurationMailMagazineFormData = CampaignBaseFormData.merge(CampaignKindDataCurationMailMagazineFormData);
|
|
166
212
|
var CampaignWithPersonalizedMailMagazineFormData = CampaignBaseFormData.merge(CampaignKindDataPersonalizedMailMagazineFormData);
|
|
167
213
|
var CampaignDetailWithCurationMailMagazine = CampaignDetailBase.merge(
|
|
168
214
|
CampaignDetailKindDataCurationMailMagazine
|
|
169
215
|
);
|
|
170
216
|
var CampaignDetailWithPersonalizedMailMagazine = CampaignDetailBase.merge(CampaignDetailKindDataPersonalizedMailMagazine);
|
|
171
|
-
var
|
|
172
|
-
import_zod.z.literal("curationMailMagazine"),
|
|
173
|
-
|
|
174
|
-
|
|
217
|
+
var CurationMailMagazineCampaign = CampaignBase.merge(
|
|
218
|
+
import_zod.z.object({ kind: import_zod.z.literal("curationMailMagazine"), bodyKind: BodyKind })
|
|
219
|
+
);
|
|
220
|
+
var PersonalizedMailMagazineCampaign = CampaignBase.merge(
|
|
221
|
+
import_zod.z.object({ kind: import_zod.z.literal("personalizedMailMagazine") })
|
|
222
|
+
);
|
|
175
223
|
var Segment = import_zod.z.object({
|
|
176
224
|
code: import_zod.z.string(),
|
|
177
225
|
label: import_zod.z.string(),
|
|
@@ -193,6 +241,13 @@ var CampaignDetail = import_zod.z.union([
|
|
|
193
241
|
CampaignDetailWithPersonalizedMailMagazine,
|
|
194
242
|
CampaignDetailWithCurationMailMagazine
|
|
195
243
|
]);
|
|
244
|
+
var CreateCampaignKindPersonalizedMailMagazineFormData = import_zod.z.object({
|
|
245
|
+
kind: import_zod.z.literal("personalizedMailMagazine")
|
|
246
|
+
});
|
|
247
|
+
var CreateCampaignKindCurationMailMagazineFormData = import_zod.z.object({
|
|
248
|
+
kind: import_zod.z.literal("curationMailMagazine"),
|
|
249
|
+
bodyKind: BodyKind
|
|
250
|
+
});
|
|
196
251
|
var Pagination = import_zod.z.object({
|
|
197
252
|
totalPages: import_zod.z.number(),
|
|
198
253
|
totalCount: import_zod.z.number(),
|
|
@@ -203,15 +258,10 @@ var Pagination = import_zod.z.object({
|
|
|
203
258
|
isFirstPage: import_zod.z.boolean(),
|
|
204
259
|
isLastPage: import_zod.z.boolean()
|
|
205
260
|
});
|
|
206
|
-
var Campaign = import_zod.z.
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
kind: CampaignKind,
|
|
211
|
-
deliveryAt: import_zod.z.union([import_zod.z.string(), import_zod.z.null()]),
|
|
212
|
-
lastEditorName: import_zod.z.string(),
|
|
213
|
-
lastEditedAt: import_zod.z.string()
|
|
214
|
-
});
|
|
261
|
+
var Campaign = import_zod.z.union([
|
|
262
|
+
PersonalizedMailMagazineCampaign,
|
|
263
|
+
CurationMailMagazineCampaign
|
|
264
|
+
]);
|
|
215
265
|
var TargetFilterSegments = import_zod.z.object({
|
|
216
266
|
behaviorSegmentCodes: import_zod.z.array(import_zod.z.string()),
|
|
217
267
|
profileSegmentCodes: import_zod.z.array(import_zod.z.string())
|
|
@@ -226,6 +276,12 @@ var GetBehaviorSegmentsResponse = import_zod.z.object({
|
|
|
226
276
|
var GetProjectsProjectIdOrKeywordResponse = import_zod.z.object({
|
|
227
277
|
project: ReadyforProject
|
|
228
278
|
});
|
|
279
|
+
var PostCampaignsCampaignIdImagesReqeustBody = import_zod.z.object({
|
|
280
|
+
image: import_zod.z.union([import_zod.z.any(), import_zod.z.any()])
|
|
281
|
+
});
|
|
282
|
+
var PostCampaignsCampaignIdPreviewDeliveryEmailRequestBody = import_zod.z.object({
|
|
283
|
+
emails: import_zod.z.array(import_zod.z.string())
|
|
284
|
+
});
|
|
229
285
|
var GetCampaignsCampaignIdPreviewResponse = import_zod.z.object({
|
|
230
286
|
content: import_zod.z.string()
|
|
231
287
|
});
|
|
@@ -236,7 +292,14 @@ var PatchCampaignsCampaignIdRequestBody = import_zod.z.object({
|
|
|
236
292
|
var CampaignsCampaignIdResponse = import_zod.z.object({
|
|
237
293
|
campaignDetail: CampaignDetail
|
|
238
294
|
});
|
|
239
|
-
var
|
|
295
|
+
var CampaignKind = import_zod.z.union([
|
|
296
|
+
import_zod.z.literal("curationMailMagazine"),
|
|
297
|
+
import_zod.z.literal("personalizedMailMagazine")
|
|
298
|
+
]);
|
|
299
|
+
var PostCampaignsRequestBody = import_zod.z.union([
|
|
300
|
+
CreateCampaignKindCurationMailMagazineFormData,
|
|
301
|
+
CreateCampaignKindPersonalizedMailMagazineFormData
|
|
302
|
+
]);
|
|
240
303
|
var PostCampaignsResponse = import_zod.z.object({ id: import_zod.z.number() });
|
|
241
304
|
var GetCampaignsResponse = import_zod.z.object({
|
|
242
305
|
campaigns: import_zod.z.array(Campaign),
|
package/dist/fetch/campaigns.mjs
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
buildCampaignsPostFetcher,
|
|
4
4
|
getCampaigns,
|
|
5
5
|
postCampaigns
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-MFCSQX6F.mjs";
|
|
7
|
+
import "../chunk-QCIAYUXK.mjs";
|
|
8
8
|
export {
|
|
9
9
|
buildCampaignsGetFetcher,
|
|
10
10
|
buildCampaignsPostFetcher,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { paths } from '../schemaType.mjs';
|
|
2
|
+
import { ForceDig } from '@readyfor/api-client-base';
|
|
3
|
+
|
|
4
|
+
type CampaignsCampaignIdImagesIdDeleteOperation = paths["/api/campaigns/{campaign_id}/images/{id}"]["delete"];
|
|
5
|
+
declare const buildCampaignsCampaignIdImagesIdDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
6
|
+
type CampaignsCampaignIdImagesIdDeletePath = ForceDig<CampaignsCampaignIdImagesIdDeleteOperation, [
|
|
7
|
+
"parameters",
|
|
8
|
+
"path"
|
|
9
|
+
]>;
|
|
10
|
+
declare const deleteCampaignsCampaignIdImagesId: (path: CampaignsCampaignIdImagesIdDeletePath, requestInit?: RequestInit) => Promise<void>;
|
|
11
|
+
|
|
12
|
+
export { type CampaignsCampaignIdImagesIdDeletePath, buildCampaignsCampaignIdImagesIdDeleteFetcher, deleteCampaignsCampaignIdImagesId };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { paths } from '../schemaType.js';
|
|
2
|
+
import { ForceDig } from '@readyfor/api-client-base';
|
|
3
|
+
|
|
4
|
+
type CampaignsCampaignIdImagesIdDeleteOperation = paths["/api/campaigns/{campaign_id}/images/{id}"]["delete"];
|
|
5
|
+
declare const buildCampaignsCampaignIdImagesIdDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
6
|
+
type CampaignsCampaignIdImagesIdDeletePath = ForceDig<CampaignsCampaignIdImagesIdDeleteOperation, [
|
|
7
|
+
"parameters",
|
|
8
|
+
"path"
|
|
9
|
+
]>;
|
|
10
|
+
declare const deleteCampaignsCampaignIdImagesId: (path: CampaignsCampaignIdImagesIdDeletePath, requestInit?: RequestInit) => Promise<void>;
|
|
11
|
+
|
|
12
|
+
export { type CampaignsCampaignIdImagesIdDeletePath, buildCampaignsCampaignIdImagesIdDeleteFetcher, deleteCampaignsCampaignIdImagesId };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/fetch/campaignsCampaignIdImagesId.ts
|
|
21
|
+
var campaignsCampaignIdImagesId_exports = {};
|
|
22
|
+
__export(campaignsCampaignIdImagesId_exports, {
|
|
23
|
+
buildCampaignsCampaignIdImagesIdDeleteFetcher: () => buildCampaignsCampaignIdImagesIdDeleteFetcher,
|
|
24
|
+
deleteCampaignsCampaignIdImagesId: () => deleteCampaignsCampaignIdImagesId
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(campaignsCampaignIdImagesId_exports);
|
|
27
|
+
var import_api_client_base = require("@readyfor/api-client-base");
|
|
28
|
+
var buildCampaignsCampaignIdImagesIdDeleteFetcher = (requestInit) => (0, import_api_client_base.createVoidFetcher)({ ...requestInit });
|
|
29
|
+
var deleteCampaignsCampaignIdImagesId = (path, requestInit) => buildCampaignsCampaignIdImagesIdDeleteFetcher()(
|
|
30
|
+
(0, import_api_client_base.__internal__requestUrl)("/api/campaigns/{campaign_id}/images/{id}", path),
|
|
31
|
+
{ ...requestInit, method: "DELETE" }
|
|
32
|
+
);
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
buildCampaignsCampaignIdImagesIdDeleteFetcher,
|
|
36
|
+
deleteCampaignsCampaignIdImagesId
|
|
37
|
+
});
|
|
@@ -14,6 +14,25 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
|
|
|
14
14
|
behaviorSegmentCodes: string[];
|
|
15
15
|
profileSegmentCodes: string[];
|
|
16
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";
|
|
17
36
|
projects: {
|
|
18
37
|
id: number;
|
|
19
38
|
slotNumber: number;
|
|
@@ -31,7 +50,6 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
|
|
|
31
50
|
url: string | null;
|
|
32
51
|
imageUrl: string | null;
|
|
33
52
|
}[];
|
|
34
|
-
deliveredUsersCount: number | null;
|
|
35
53
|
};
|
|
36
54
|
kind: "curationMailMagazine";
|
|
37
55
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
@@ -69,6 +87,25 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, requestInit?: RequestIn
|
|
|
69
87
|
behaviorSegmentCodes: string[];
|
|
70
88
|
profileSegmentCodes: string[];
|
|
71
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";
|
|
72
109
|
projects: {
|
|
73
110
|
id: number;
|
|
74
111
|
slotNumber: number;
|
|
@@ -86,7 +123,6 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, requestInit?: RequestIn
|
|
|
86
123
|
url: string | null;
|
|
87
124
|
imageUrl: string | null;
|
|
88
125
|
}[];
|
|
89
|
-
deliveredUsersCount: number | null;
|
|
90
126
|
};
|
|
91
127
|
kind: "curationMailMagazine";
|
|
92
128
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
@@ -129,6 +165,25 @@ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (inpu
|
|
|
129
165
|
behaviorSegmentCodes: string[];
|
|
130
166
|
profileSegmentCodes: string[];
|
|
131
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";
|
|
132
187
|
projects: {
|
|
133
188
|
id: number;
|
|
134
189
|
slotNumber: number;
|
|
@@ -146,7 +201,6 @@ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (inpu
|
|
|
146
201
|
url: string | null;
|
|
147
202
|
imageUrl: string | null;
|
|
148
203
|
}[];
|
|
149
|
-
deliveredUsersCount: number | null;
|
|
150
204
|
};
|
|
151
205
|
kind: "curationMailMagazine";
|
|
152
206
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
@@ -189,6 +243,25 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormDa
|
|
|
189
243
|
behaviorSegmentCodes: string[];
|
|
190
244
|
profileSegmentCodes: string[];
|
|
191
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";
|
|
192
265
|
projects: {
|
|
193
266
|
id: number;
|
|
194
267
|
slotNumber: number;
|
|
@@ -206,7 +279,6 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormDa
|
|
|
206
279
|
url: string | null;
|
|
207
280
|
imageUrl: string | null;
|
|
208
281
|
}[];
|
|
209
|
-
deliveredUsersCount: number | null;
|
|
210
282
|
};
|
|
211
283
|
kind: "curationMailMagazine";
|
|
212
284
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
@@ -14,6 +14,25 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
|
|
|
14
14
|
behaviorSegmentCodes: string[];
|
|
15
15
|
profileSegmentCodes: string[];
|
|
16
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";
|
|
17
36
|
projects: {
|
|
18
37
|
id: number;
|
|
19
38
|
slotNumber: number;
|
|
@@ -31,7 +50,6 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
|
|
|
31
50
|
url: string | null;
|
|
32
51
|
imageUrl: string | null;
|
|
33
52
|
}[];
|
|
34
|
-
deliveredUsersCount: number | null;
|
|
35
53
|
};
|
|
36
54
|
kind: "curationMailMagazine";
|
|
37
55
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
@@ -69,6 +87,25 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, requestInit?: RequestIn
|
|
|
69
87
|
behaviorSegmentCodes: string[];
|
|
70
88
|
profileSegmentCodes: string[];
|
|
71
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";
|
|
72
109
|
projects: {
|
|
73
110
|
id: number;
|
|
74
111
|
slotNumber: number;
|
|
@@ -86,7 +123,6 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, requestInit?: RequestIn
|
|
|
86
123
|
url: string | null;
|
|
87
124
|
imageUrl: string | null;
|
|
88
125
|
}[];
|
|
89
|
-
deliveredUsersCount: number | null;
|
|
90
126
|
};
|
|
91
127
|
kind: "curationMailMagazine";
|
|
92
128
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
@@ -129,6 +165,25 @@ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (inpu
|
|
|
129
165
|
behaviorSegmentCodes: string[];
|
|
130
166
|
profileSegmentCodes: string[];
|
|
131
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";
|
|
132
187
|
projects: {
|
|
133
188
|
id: number;
|
|
134
189
|
slotNumber: number;
|
|
@@ -146,7 +201,6 @@ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (inpu
|
|
|
146
201
|
url: string | null;
|
|
147
202
|
imageUrl: string | null;
|
|
148
203
|
}[];
|
|
149
|
-
deliveredUsersCount: number | null;
|
|
150
204
|
};
|
|
151
205
|
kind: "curationMailMagazine";
|
|
152
206
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
@@ -189,6 +243,25 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormDa
|
|
|
189
243
|
behaviorSegmentCodes: string[];
|
|
190
244
|
profileSegmentCodes: string[];
|
|
191
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";
|
|
192
265
|
projects: {
|
|
193
266
|
id: number;
|
|
194
267
|
slotNumber: number;
|
|
@@ -206,7 +279,6 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormDa
|
|
|
206
279
|
url: string | null;
|
|
207
280
|
imageUrl: string | null;
|
|
208
281
|
}[];
|
|
209
|
-
deliveredUsersCount: number | null;
|
|
210
282
|
};
|
|
211
283
|
kind: "curationMailMagazine";
|
|
212
284
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|