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