@luxuryescapes/contract-svc-lab-v2 0.1.2 → 0.1.4
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/server.d.ts +291 -0
- package/package.json +1 -1
package/dist/server.d.ts
CHANGED
|
@@ -13,6 +13,16 @@ export interface paths {
|
|
|
13
13
|
/** Get audience metadata by id */
|
|
14
14
|
get: operations["getAudience"];
|
|
15
15
|
};
|
|
16
|
+
"/api/lab/v2/admin/campaigns/{id}": {
|
|
17
|
+
get: operations["getCampaign"];
|
|
18
|
+
put: operations["updateCampaign"];
|
|
19
|
+
};
|
|
20
|
+
"/api/lab/v2/admin/campaigns": {
|
|
21
|
+
/** List scheduled campaigns for the admin overview */
|
|
22
|
+
get: operations["listCampaigns"];
|
|
23
|
+
/** Create an empty scheduled campaign with an optional draft schedule */
|
|
24
|
+
post: operations["createCampaign"];
|
|
25
|
+
};
|
|
16
26
|
"/api/lab/v2/admin/audiences/{id}/members": {
|
|
17
27
|
/** Upsert up to 10000 members by user_id. Existing members that are not submitted are left unchanged. */
|
|
18
28
|
post: operations["upsertAudienceMembers"];
|
|
@@ -178,6 +188,287 @@ export interface operations {
|
|
|
178
188
|
};
|
|
179
189
|
};
|
|
180
190
|
};
|
|
191
|
+
getCampaign: {
|
|
192
|
+
parameters: {
|
|
193
|
+
path: {
|
|
194
|
+
id: string;
|
|
195
|
+
};
|
|
196
|
+
header: {
|
|
197
|
+
/** Cookie */
|
|
198
|
+
Cookie: string;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
responses: {
|
|
202
|
+
/** 200 response */
|
|
203
|
+
200: {
|
|
204
|
+
content: {
|
|
205
|
+
"application/json": {
|
|
206
|
+
status: 200;
|
|
207
|
+
message: string;
|
|
208
|
+
result: {
|
|
209
|
+
id: number;
|
|
210
|
+
name: string;
|
|
211
|
+
priority: number;
|
|
212
|
+
enable: boolean;
|
|
213
|
+
rollout: number;
|
|
214
|
+
seed: number;
|
|
215
|
+
schedule: {
|
|
216
|
+
/** Format: date-time */
|
|
217
|
+
starts_at: string | null;
|
|
218
|
+
/** Format: date-time */
|
|
219
|
+
ends_at: string | null;
|
|
220
|
+
timezone: string;
|
|
221
|
+
};
|
|
222
|
+
/** Format: date-time */
|
|
223
|
+
created_at: string;
|
|
224
|
+
/** Format: date-time */
|
|
225
|
+
updated_at: string;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
/** 400 response */
|
|
231
|
+
400: {
|
|
232
|
+
content: {
|
|
233
|
+
"application/json": {
|
|
234
|
+
status: 400;
|
|
235
|
+
message: string;
|
|
236
|
+
errors?: {
|
|
237
|
+
message: string;
|
|
238
|
+
path?: string;
|
|
239
|
+
}[];
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
/** 404 response */
|
|
244
|
+
404: {
|
|
245
|
+
content: {
|
|
246
|
+
"application/json": {
|
|
247
|
+
status: 404;
|
|
248
|
+
message: string;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
updateCampaign: {
|
|
255
|
+
parameters: {
|
|
256
|
+
path: {
|
|
257
|
+
id: string;
|
|
258
|
+
};
|
|
259
|
+
header: {
|
|
260
|
+
/** Cookie */
|
|
261
|
+
Cookie: string;
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
responses: {
|
|
265
|
+
/** 200 response */
|
|
266
|
+
200: {
|
|
267
|
+
content: {
|
|
268
|
+
"application/json": {
|
|
269
|
+
status: 200;
|
|
270
|
+
message: string;
|
|
271
|
+
result: {
|
|
272
|
+
id: number;
|
|
273
|
+
name: string;
|
|
274
|
+
priority: number;
|
|
275
|
+
enable: boolean;
|
|
276
|
+
rollout: number;
|
|
277
|
+
seed: number;
|
|
278
|
+
schedule: {
|
|
279
|
+
/** Format: date-time */
|
|
280
|
+
starts_at: string | null;
|
|
281
|
+
/** Format: date-time */
|
|
282
|
+
ends_at: string | null;
|
|
283
|
+
timezone: string;
|
|
284
|
+
};
|
|
285
|
+
/** Format: date-time */
|
|
286
|
+
created_at: string;
|
|
287
|
+
/** Format: date-time */
|
|
288
|
+
updated_at: string;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
/** 400 response */
|
|
294
|
+
400: {
|
|
295
|
+
content: {
|
|
296
|
+
"application/json": {
|
|
297
|
+
status: 400;
|
|
298
|
+
message: string;
|
|
299
|
+
errors?: {
|
|
300
|
+
message: string;
|
|
301
|
+
path?: string;
|
|
302
|
+
}[];
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
/** 404 response */
|
|
307
|
+
404: {
|
|
308
|
+
content: {
|
|
309
|
+
"application/json": {
|
|
310
|
+
status: 404;
|
|
311
|
+
message: string;
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
/** payload */
|
|
317
|
+
requestBody: {
|
|
318
|
+
content: {
|
|
319
|
+
"application/json": {
|
|
320
|
+
name: string;
|
|
321
|
+
priority: number;
|
|
322
|
+
schedule: {
|
|
323
|
+
/** Format: date-time */
|
|
324
|
+
starts_at: string | null;
|
|
325
|
+
/** Format: date-time */
|
|
326
|
+
ends_at: string | null;
|
|
327
|
+
timezone: string;
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
/** List scheduled campaigns for the admin overview */
|
|
334
|
+
listCampaigns: {
|
|
335
|
+
parameters: {
|
|
336
|
+
query: {
|
|
337
|
+
/** Number of items to skip before starting to collect the result set */
|
|
338
|
+
offset?: number;
|
|
339
|
+
/** Number of items to return */
|
|
340
|
+
limit?: number;
|
|
341
|
+
/** Property to sort by */
|
|
342
|
+
sort_by?: "created_at" | "name" | "priority" | "id";
|
|
343
|
+
/** Sort order */
|
|
344
|
+
sort_order?: "asc" | "desc";
|
|
345
|
+
/** Filter term to filter results */
|
|
346
|
+
filter?: string;
|
|
347
|
+
};
|
|
348
|
+
header: {
|
|
349
|
+
/** Cookie */
|
|
350
|
+
Cookie: string;
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
responses: {
|
|
354
|
+
/** 200 response */
|
|
355
|
+
200: {
|
|
356
|
+
content: {
|
|
357
|
+
"application/json": {
|
|
358
|
+
status: 200;
|
|
359
|
+
message: string;
|
|
360
|
+
result: {
|
|
361
|
+
id: number;
|
|
362
|
+
name: string;
|
|
363
|
+
priority: number;
|
|
364
|
+
enable: boolean;
|
|
365
|
+
rollout: number;
|
|
366
|
+
seed: number;
|
|
367
|
+
schedule: {
|
|
368
|
+
/** Format: date-time */
|
|
369
|
+
starts_at: string | null;
|
|
370
|
+
/** Format: date-time */
|
|
371
|
+
ends_at: string | null;
|
|
372
|
+
timezone: string;
|
|
373
|
+
};
|
|
374
|
+
/** Format: date-time */
|
|
375
|
+
created_at: string;
|
|
376
|
+
/** Format: date-time */
|
|
377
|
+
updated_at: string;
|
|
378
|
+
}[];
|
|
379
|
+
pagination: {
|
|
380
|
+
limit: number;
|
|
381
|
+
offset: number;
|
|
382
|
+
total_items: number;
|
|
383
|
+
has_next: boolean;
|
|
384
|
+
has_previous: boolean;
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
/** 400 response */
|
|
390
|
+
400: {
|
|
391
|
+
content: {
|
|
392
|
+
"application/json": {
|
|
393
|
+
status: 400;
|
|
394
|
+
message: string;
|
|
395
|
+
errors?: {
|
|
396
|
+
message: string;
|
|
397
|
+
path?: string;
|
|
398
|
+
}[];
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
/** Create an empty scheduled campaign with an optional draft schedule */
|
|
405
|
+
createCampaign: {
|
|
406
|
+
parameters: {
|
|
407
|
+
header: {
|
|
408
|
+
/** Cookie */
|
|
409
|
+
Cookie: string;
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
responses: {
|
|
413
|
+
/** 201 response */
|
|
414
|
+
201: {
|
|
415
|
+
content: {
|
|
416
|
+
"application/json": {
|
|
417
|
+
status: 201;
|
|
418
|
+
message: string;
|
|
419
|
+
result: {
|
|
420
|
+
id: number;
|
|
421
|
+
name: string;
|
|
422
|
+
priority: number;
|
|
423
|
+
enable: boolean;
|
|
424
|
+
rollout: number;
|
|
425
|
+
seed: number;
|
|
426
|
+
schedule: {
|
|
427
|
+
/** Format: date-time */
|
|
428
|
+
starts_at: string | null;
|
|
429
|
+
/** Format: date-time */
|
|
430
|
+
ends_at: string | null;
|
|
431
|
+
timezone: string;
|
|
432
|
+
};
|
|
433
|
+
/** Format: date-time */
|
|
434
|
+
created_at: string;
|
|
435
|
+
/** Format: date-time */
|
|
436
|
+
updated_at: string;
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
/** 400 response */
|
|
442
|
+
400: {
|
|
443
|
+
content: {
|
|
444
|
+
"application/json": {
|
|
445
|
+
status: 400;
|
|
446
|
+
message: string;
|
|
447
|
+
errors?: {
|
|
448
|
+
message: string;
|
|
449
|
+
path?: string;
|
|
450
|
+
}[];
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
/** payload */
|
|
456
|
+
requestBody: {
|
|
457
|
+
content: {
|
|
458
|
+
"application/json": {
|
|
459
|
+
name: string;
|
|
460
|
+
priority?: number;
|
|
461
|
+
schedule?: {
|
|
462
|
+
/** Format: date-time */
|
|
463
|
+
starts_at?: string | null;
|
|
464
|
+
/** Format: date-time */
|
|
465
|
+
ends_at?: string | null;
|
|
466
|
+
timezone?: string;
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
};
|
|
181
472
|
/** Upsert up to 10000 members by user_id. Existing members that are not submitted are left unchanged. */
|
|
182
473
|
upsertAudienceMembers: {
|
|
183
474
|
parameters: {
|