@readyfor/api-client-pigeon 1.49.0-pr1364.92e47e3 → 1.49.0-pr1365.f2dfc6e
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.
|
@@ -10,6 +10,21 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
|
|
|
10
10
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
11
11
|
title: string | null;
|
|
12
12
|
deliveryScheduledAt: string | null;
|
|
13
|
+
} & {
|
|
14
|
+
kind: "personalizedMailMagazine";
|
|
15
|
+
personalizedMailMagazine: {
|
|
16
|
+
utmCampaign: string | null;
|
|
17
|
+
target: {
|
|
18
|
+
csvFileName: string;
|
|
19
|
+
targetUsersCount: number;
|
|
20
|
+
excludedUsersCount: number;
|
|
21
|
+
} | null;
|
|
22
|
+
};
|
|
23
|
+
}) | ({
|
|
24
|
+
id: number;
|
|
25
|
+
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
26
|
+
title: string | null;
|
|
27
|
+
deliveryScheduledAt: string | null;
|
|
13
28
|
} & {
|
|
14
29
|
kind: "curationMailMagazine";
|
|
15
30
|
curationMailMagazine: ({
|
|
@@ -22,24 +37,6 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
|
|
|
22
37
|
behaviorSegmentCodes: string[];
|
|
23
38
|
profileSegmentCodes: string[];
|
|
24
39
|
}[];
|
|
25
|
-
} & {
|
|
26
|
-
bodyKind: "freeFormat";
|
|
27
|
-
htmlBody: string | null;
|
|
28
|
-
htmlStyle: string | null;
|
|
29
|
-
images: {
|
|
30
|
-
id: number;
|
|
31
|
-
key: string;
|
|
32
|
-
}[];
|
|
33
|
-
}) | ({
|
|
34
|
-
utmCampaign: string | null;
|
|
35
|
-
subject: string | null;
|
|
36
|
-
preHeaderText: string | null;
|
|
37
|
-
deliveredUsersCount: number | null;
|
|
38
|
-
targetFilters: {
|
|
39
|
-
id: number;
|
|
40
|
-
behaviorSegmentCodes: string[];
|
|
41
|
-
profileSegmentCodes: string[];
|
|
42
|
-
}[];
|
|
43
40
|
} & {
|
|
44
41
|
bodyKind: "template";
|
|
45
42
|
projects: {
|
|
@@ -59,8 +56,30 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
|
|
|
59
56
|
imageUrl: string | null;
|
|
60
57
|
url: string | null;
|
|
61
58
|
}[];
|
|
59
|
+
}) | ({
|
|
60
|
+
utmCampaign: string | null;
|
|
61
|
+
subject: string | null;
|
|
62
|
+
preHeaderText: string | null;
|
|
63
|
+
deliveredUsersCount: number | null;
|
|
64
|
+
targetFilters: {
|
|
65
|
+
id: number;
|
|
66
|
+
behaviorSegmentCodes: string[];
|
|
67
|
+
profileSegmentCodes: string[];
|
|
68
|
+
}[];
|
|
69
|
+
} & {
|
|
70
|
+
bodyKind: "freeFormat";
|
|
71
|
+
htmlBody: string | null;
|
|
72
|
+
htmlStyle: string | null;
|
|
73
|
+
images: {
|
|
74
|
+
id: number;
|
|
75
|
+
key: string;
|
|
76
|
+
}[];
|
|
62
77
|
});
|
|
63
|
-
})
|
|
78
|
+
});
|
|
79
|
+
}>;
|
|
80
|
+
type CampaignsIdGetPath = ForceDig<CampaignsIdGetOperation, ["parameters", "path"]>;
|
|
81
|
+
declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: RequestInit) => Promise<{
|
|
82
|
+
campaignDetail: ({
|
|
64
83
|
id: number;
|
|
65
84
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
66
85
|
title: string | null;
|
|
@@ -75,11 +94,7 @@ declare const buildCampaignsIdGetFetcher: (requestInit?: RequestInit) => (input:
|
|
|
75
94
|
excludedUsersCount: number;
|
|
76
95
|
} | null;
|
|
77
96
|
};
|
|
78
|
-
})
|
|
79
|
-
}>;
|
|
80
|
-
type CampaignsIdGetPath = ForceDig<CampaignsIdGetOperation, ["parameters", "path"]>;
|
|
81
|
-
declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: RequestInit) => Promise<{
|
|
82
|
-
campaignDetail: ({
|
|
97
|
+
}) | ({
|
|
83
98
|
id: number;
|
|
84
99
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
85
100
|
title: string | null;
|
|
@@ -96,24 +111,6 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: Req
|
|
|
96
111
|
behaviorSegmentCodes: string[];
|
|
97
112
|
profileSegmentCodes: string[];
|
|
98
113
|
}[];
|
|
99
|
-
} & {
|
|
100
|
-
bodyKind: "freeFormat";
|
|
101
|
-
htmlBody: string | null;
|
|
102
|
-
htmlStyle: string | null;
|
|
103
|
-
images: {
|
|
104
|
-
id: number;
|
|
105
|
-
key: string;
|
|
106
|
-
}[];
|
|
107
|
-
}) | ({
|
|
108
|
-
utmCampaign: string | null;
|
|
109
|
-
subject: string | null;
|
|
110
|
-
preHeaderText: string | null;
|
|
111
|
-
deliveredUsersCount: number | null;
|
|
112
|
-
targetFilters: {
|
|
113
|
-
id: number;
|
|
114
|
-
behaviorSegmentCodes: string[];
|
|
115
|
-
profileSegmentCodes: string[];
|
|
116
|
-
}[];
|
|
117
114
|
} & {
|
|
118
115
|
bodyKind: "template";
|
|
119
116
|
projects: {
|
|
@@ -133,8 +130,35 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: Req
|
|
|
133
130
|
imageUrl: string | null;
|
|
134
131
|
url: string | null;
|
|
135
132
|
}[];
|
|
133
|
+
}) | ({
|
|
134
|
+
utmCampaign: string | null;
|
|
135
|
+
subject: string | null;
|
|
136
|
+
preHeaderText: string | null;
|
|
137
|
+
deliveredUsersCount: number | null;
|
|
138
|
+
targetFilters: {
|
|
139
|
+
id: number;
|
|
140
|
+
behaviorSegmentCodes: string[];
|
|
141
|
+
profileSegmentCodes: string[];
|
|
142
|
+
}[];
|
|
143
|
+
} & {
|
|
144
|
+
bodyKind: "freeFormat";
|
|
145
|
+
htmlBody: string | null;
|
|
146
|
+
htmlStyle: string | null;
|
|
147
|
+
images: {
|
|
148
|
+
id: number;
|
|
149
|
+
key: string;
|
|
150
|
+
}[];
|
|
136
151
|
});
|
|
137
|
-
})
|
|
152
|
+
});
|
|
153
|
+
}>;
|
|
154
|
+
type CampaignsIdDeleteOperation = paths["/api/campaigns/{id}"]["delete"];
|
|
155
|
+
declare const buildCampaignsIdDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
156
|
+
type CampaignsIdDeletePath = ForceDig<CampaignsIdDeleteOperation, ["parameters", "path"]>;
|
|
157
|
+
declare const deleteCampaignsId: (path: CampaignsIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
|
|
158
|
+
type CampaignsIdPatchOperation = paths["/api/campaigns/{id}"]["patch"];
|
|
159
|
+
type CampaignsIdPatchResponse = CampaignsIdPatchOperation["responses"]["200"]["content"]["application/json"];
|
|
160
|
+
declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
161
|
+
campaignDetail: ({
|
|
138
162
|
id: number;
|
|
139
163
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
140
164
|
title: string | null;
|
|
@@ -149,16 +173,7 @@ declare const getCampaignsId: (path: CampaignsIdGetPath, customRequestInit?: Req
|
|
|
149
173
|
excludedUsersCount: number;
|
|
150
174
|
} | null;
|
|
151
175
|
};
|
|
152
|
-
})
|
|
153
|
-
}>;
|
|
154
|
-
type CampaignsIdDeleteOperation = paths["/api/campaigns/{id}"]["delete"];
|
|
155
|
-
declare const buildCampaignsIdDeleteFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<void>;
|
|
156
|
-
type CampaignsIdDeletePath = ForceDig<CampaignsIdDeleteOperation, ["parameters", "path"]>;
|
|
157
|
-
declare const deleteCampaignsId: (path: CampaignsIdDeletePath, customRequestInit?: RequestInit) => Promise<void>;
|
|
158
|
-
type CampaignsIdPatchOperation = paths["/api/campaigns/{id}"]["patch"];
|
|
159
|
-
type CampaignsIdPatchResponse = CampaignsIdPatchOperation["responses"]["200"]["content"]["application/json"];
|
|
160
|
-
declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (input: RequestInfo, requestInit?: RequestInit) => Promise<{
|
|
161
|
-
campaignDetail: ({
|
|
176
|
+
}) | ({
|
|
162
177
|
id: number;
|
|
163
178
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
164
179
|
title: string | null;
|
|
@@ -175,24 +190,6 @@ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (inpu
|
|
|
175
190
|
behaviorSegmentCodes: string[];
|
|
176
191
|
profileSegmentCodes: string[];
|
|
177
192
|
}[];
|
|
178
|
-
} & {
|
|
179
|
-
bodyKind: "freeFormat";
|
|
180
|
-
htmlBody: string | null;
|
|
181
|
-
htmlStyle: string | null;
|
|
182
|
-
images: {
|
|
183
|
-
id: number;
|
|
184
|
-
key: string;
|
|
185
|
-
}[];
|
|
186
|
-
}) | ({
|
|
187
|
-
utmCampaign: string | null;
|
|
188
|
-
subject: string | null;
|
|
189
|
-
preHeaderText: string | null;
|
|
190
|
-
deliveredUsersCount: number | null;
|
|
191
|
-
targetFilters: {
|
|
192
|
-
id: number;
|
|
193
|
-
behaviorSegmentCodes: string[];
|
|
194
|
-
profileSegmentCodes: string[];
|
|
195
|
-
}[];
|
|
196
193
|
} & {
|
|
197
194
|
bodyKind: "template";
|
|
198
195
|
projects: {
|
|
@@ -212,8 +209,31 @@ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (inpu
|
|
|
212
209
|
imageUrl: string | null;
|
|
213
210
|
url: string | null;
|
|
214
211
|
}[];
|
|
212
|
+
}) | ({
|
|
213
|
+
utmCampaign: string | null;
|
|
214
|
+
subject: string | null;
|
|
215
|
+
preHeaderText: string | null;
|
|
216
|
+
deliveredUsersCount: number | null;
|
|
217
|
+
targetFilters: {
|
|
218
|
+
id: number;
|
|
219
|
+
behaviorSegmentCodes: string[];
|
|
220
|
+
profileSegmentCodes: string[];
|
|
221
|
+
}[];
|
|
222
|
+
} & {
|
|
223
|
+
bodyKind: "freeFormat";
|
|
224
|
+
htmlBody: string | null;
|
|
225
|
+
htmlStyle: string | null;
|
|
226
|
+
images: {
|
|
227
|
+
id: number;
|
|
228
|
+
key: string;
|
|
229
|
+
}[];
|
|
215
230
|
});
|
|
216
|
-
})
|
|
231
|
+
});
|
|
232
|
+
}>;
|
|
233
|
+
type CampaignsIdPatchPath = ForceDig<CampaignsIdPatchOperation, ["parameters", "path"]>;
|
|
234
|
+
type CampaignsIdPatchRequestBody = ForceDig<CampaignsIdPatchOperation, ["requestBody", "content", "multipart/form-data"]>;
|
|
235
|
+
declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<{
|
|
236
|
+
campaignDetail: ({
|
|
217
237
|
id: number;
|
|
218
238
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
219
239
|
title: string | null;
|
|
@@ -228,12 +248,7 @@ declare const buildCampaignsIdPatchFetcher: (requestInit?: RequestInit) => (inpu
|
|
|
228
248
|
excludedUsersCount: number;
|
|
229
249
|
} | null;
|
|
230
250
|
};
|
|
231
|
-
})
|
|
232
|
-
}>;
|
|
233
|
-
type CampaignsIdPatchPath = ForceDig<CampaignsIdPatchOperation, ["parameters", "path"]>;
|
|
234
|
-
type CampaignsIdPatchRequestBody = ForceDig<CampaignsIdPatchOperation, ["requestBody", "content", "multipart/form-data"]>;
|
|
235
|
-
declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormData, customRequestInit?: RequestInit) => Promise<{
|
|
236
|
-
campaignDetail: ({
|
|
251
|
+
}) | ({
|
|
237
252
|
id: number;
|
|
238
253
|
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
239
254
|
title: string | null;
|
|
@@ -250,24 +265,6 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormDa
|
|
|
250
265
|
behaviorSegmentCodes: string[];
|
|
251
266
|
profileSegmentCodes: string[];
|
|
252
267
|
}[];
|
|
253
|
-
} & {
|
|
254
|
-
bodyKind: "freeFormat";
|
|
255
|
-
htmlBody: string | null;
|
|
256
|
-
htmlStyle: string | null;
|
|
257
|
-
images: {
|
|
258
|
-
id: number;
|
|
259
|
-
key: string;
|
|
260
|
-
}[];
|
|
261
|
-
}) | ({
|
|
262
|
-
utmCampaign: string | null;
|
|
263
|
-
subject: string | null;
|
|
264
|
-
preHeaderText: string | null;
|
|
265
|
-
deliveredUsersCount: number | null;
|
|
266
|
-
targetFilters: {
|
|
267
|
-
id: number;
|
|
268
|
-
behaviorSegmentCodes: string[];
|
|
269
|
-
profileSegmentCodes: string[];
|
|
270
|
-
}[];
|
|
271
268
|
} & {
|
|
272
269
|
bodyKind: "template";
|
|
273
270
|
projects: {
|
|
@@ -287,22 +284,25 @@ declare const patchCampaignsId: (path: CampaignsIdPatchPath, requestBody: FormDa
|
|
|
287
284
|
imageUrl: string | null;
|
|
288
285
|
url: string | null;
|
|
289
286
|
}[];
|
|
290
|
-
})
|
|
291
|
-
}) | ({
|
|
292
|
-
id: number;
|
|
293
|
-
status: "draft" | "scheduled" | "delivering" | "delivered" | "deliveryFailed";
|
|
294
|
-
title: string | null;
|
|
295
|
-
deliveryScheduledAt: string | null;
|
|
296
|
-
} & {
|
|
297
|
-
kind: "personalizedMailMagazine";
|
|
298
|
-
personalizedMailMagazine: {
|
|
287
|
+
}) | ({
|
|
299
288
|
utmCampaign: string | null;
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
289
|
+
subject: string | null;
|
|
290
|
+
preHeaderText: string | null;
|
|
291
|
+
deliveredUsersCount: number | null;
|
|
292
|
+
targetFilters: {
|
|
293
|
+
id: number;
|
|
294
|
+
behaviorSegmentCodes: string[];
|
|
295
|
+
profileSegmentCodes: string[];
|
|
296
|
+
}[];
|
|
297
|
+
} & {
|
|
298
|
+
bodyKind: "freeFormat";
|
|
299
|
+
htmlBody: string | null;
|
|
300
|
+
htmlStyle: string | null;
|
|
301
|
+
images: {
|
|
302
|
+
id: number;
|
|
303
|
+
key: string;
|
|
304
|
+
}[];
|
|
305
|
+
});
|
|
306
306
|
});
|
|
307
307
|
}>;
|
|
308
308
|
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CampaignsIdPatchRequestBody, c as buildCampaignsIdGetFetcher, d as getCampaignsId, f as patchCampaignsId, i as CampaignsIdPatchPath, l as buildCampaignsIdPatchFetcher, n as CampaignsIdGetPath, o as CampaignsIdPatchResponse, r as CampaignsIdGetResponse, s as buildCampaignsIdDeleteFetcher, t as CampaignsIdDeletePath, u as deleteCampaignsId } from "../campaignsId-
|
|
1
|
+
import { a as CampaignsIdPatchRequestBody, c as buildCampaignsIdGetFetcher, d as getCampaignsId, f as patchCampaignsId, i as CampaignsIdPatchPath, l as buildCampaignsIdPatchFetcher, n as CampaignsIdGetPath, o as CampaignsIdPatchResponse, r as CampaignsIdGetResponse, s as buildCampaignsIdDeleteFetcher, t as CampaignsIdDeletePath, u as deleteCampaignsId } from "../campaignsId-B30aPyKZ.js";
|
|
2
2
|
export { CampaignsIdDeletePath, CampaignsIdGetPath, CampaignsIdGetResponse, CampaignsIdPatchPath, CampaignsIdPatchRequestBody, CampaignsIdPatchResponse, buildCampaignsIdDeleteFetcher, buildCampaignsIdGetFetcher, buildCampaignsIdPatchFetcher, deleteCampaignsId, getCampaignsId, patchCampaignsId };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as components } from "../schemaType-C89wY8r-.js";
|
|
2
|
-
import { n as CampaignsIdGetPath, r as CampaignsIdGetResponse } from "../campaignsId-
|
|
2
|
+
import { n as CampaignsIdGetPath, r as CampaignsIdGetResponse } from "../campaignsId-B30aPyKZ.js";
|
|
3
3
|
import { SWRInfiniteConfiguration, SWRInfiniteKeyLoader } from "swr/infinite";
|
|
4
4
|
import { Arguments } from "swr";
|
|
5
5
|
import { Configuration } from "@readyfor/api-client-base/react";
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { $ as PersonalizedMailMagazineFormData, A as CurationMailMagazineFormDat
|
|
|
2
2
|
import { a as paths, i as operations, n as components, o as webhooks, r as external, t as $defs } from "./schemaType-C89wY8r-.js";
|
|
3
3
|
import { a as buildCampaignsGetFetcher, c as postCampaigns, i as CampaignsPostResponse, n as CampaignsGetResponse, o as buildCampaignsPostFetcher, r as CampaignsPostRequestBody, s as getCampaigns, t as CampaignsGetQuery } from "./campaigns-LEBocNQU.js";
|
|
4
4
|
import { n as buildCampaignsCampaignIdImagesIdDeleteFetcher, r as deleteCampaignsCampaignIdImagesId, t as CampaignsCampaignIdImagesIdDeletePath } from "./campaignsCampaignIdImagesId-DIP7fWuW.js";
|
|
5
|
-
import { a as CampaignsIdPatchRequestBody, c as buildCampaignsIdGetFetcher, d as getCampaignsId, f as patchCampaignsId, i as CampaignsIdPatchPath, l as buildCampaignsIdPatchFetcher, n as CampaignsIdGetPath, o as CampaignsIdPatchResponse, r as CampaignsIdGetResponse, s as buildCampaignsIdDeleteFetcher, t as CampaignsIdDeletePath, u as deleteCampaignsId } from "./campaignsId-
|
|
5
|
+
import { a as CampaignsIdPatchRequestBody, c as buildCampaignsIdGetFetcher, d as getCampaignsId, f as patchCampaignsId, i as CampaignsIdPatchPath, l as buildCampaignsIdPatchFetcher, n as CampaignsIdGetPath, o as CampaignsIdPatchResponse, r as CampaignsIdGetResponse, s as buildCampaignsIdDeleteFetcher, t as CampaignsIdDeletePath, u as deleteCampaignsId } from "./campaignsId-B30aPyKZ.js";
|
|
6
6
|
import { a as deleteCampaignsIdDeliveryJob, i as buildCampaignsIdDeliveryJobPostFetcher, n as CampaignsIdDeliveryJobPostPath, o as postCampaignsIdDeliveryJob, r as buildCampaignsIdDeliveryJobDeleteFetcher, t as CampaignsIdDeliveryJobDeletePath } from "./campaignsIdDeliveryJob-DSQt-XKJ.js";
|
|
7
7
|
import { a as postCampaignsIdImages, i as buildCampaignsIdImagesPostFetcher, n as CampaignsIdImagesPostRequestBody, r as CampaignsIdImagesPostResponse, t as CampaignsIdImagesPostPath } from "./campaignsIdImages-FaCqdOz5.js";
|
|
8
8
|
import { i as getCampaignsIdPreview, n as CampaignsIdPreviewGetResponse, r as buildCampaignsIdPreviewGetFetcher, t as CampaignsIdPreviewGetPath } from "./campaignsIdPreview-DwXWXR_K.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@readyfor/api-client-pigeon",
|
|
3
|
-
"version": "1.49.0-
|
|
3
|
+
"version": "1.49.0-pr1365.f2dfc6e",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"swr": "2.4.1",
|
|
37
37
|
"use-sync-external-store": "1.6.0",
|
|
38
38
|
"zod": "^4.3.6",
|
|
39
|
-
"@readyfor/api-client-base": "1.49.0-
|
|
39
|
+
"@readyfor/api-client-base": "1.49.0-pr1365.f2dfc6e"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"qs": "^6",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"swr": "^2.3.3",
|
|
45
45
|
"use-sync-external-store": "^1.2.2",
|
|
46
46
|
"zod": "^4",
|
|
47
|
-
"@readyfor/api-client-base": "1.49.0-
|
|
47
|
+
"@readyfor/api-client-base": "1.49.0-pr1365.f2dfc6e"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|
|
50
50
|
"react": {
|