@luxuryescapes/contract-svc-lab-v2 0.1.4 → 0.1.6
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 +244 -0
- package/package.json +1 -1
package/dist/server.d.ts
CHANGED
|
@@ -12,10 +12,17 @@ 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"];
|
|
15
17
|
};
|
|
16
18
|
"/api/lab/v2/admin/campaigns/{id}": {
|
|
17
19
|
get: operations["getCampaign"];
|
|
18
20
|
put: operations["updateCampaign"];
|
|
21
|
+
delete: operations["deleteCampaign"];
|
|
22
|
+
};
|
|
23
|
+
"/api/lab/v2/admin/campaigns/{id}/configs": {
|
|
24
|
+
get: operations["listCampaignConfigs"];
|
|
25
|
+
put: operations["replaceCampaignConfigs"];
|
|
19
26
|
};
|
|
20
27
|
"/api/lab/v2/admin/campaigns": {
|
|
21
28
|
/** List scheduled campaigns for the admin overview */
|
|
@@ -188,6 +195,70 @@ export interface operations {
|
|
|
188
195
|
};
|
|
189
196
|
};
|
|
190
197
|
};
|
|
198
|
+
/** Sparse-update audience name and description */
|
|
199
|
+
updateAudience: {
|
|
200
|
+
parameters: {
|
|
201
|
+
path: {
|
|
202
|
+
id: number;
|
|
203
|
+
};
|
|
204
|
+
header: {
|
|
205
|
+
/** Cookie */
|
|
206
|
+
Cookie: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
responses: {
|
|
210
|
+
/** 200 response */
|
|
211
|
+
200: {
|
|
212
|
+
content: {
|
|
213
|
+
"application/json": {
|
|
214
|
+
status: 200;
|
|
215
|
+
message: string;
|
|
216
|
+
result: {
|
|
217
|
+
id: number;
|
|
218
|
+
name: string;
|
|
219
|
+
description: string | null;
|
|
220
|
+
system: boolean;
|
|
221
|
+
/** Format: date-time */
|
|
222
|
+
created_at: string;
|
|
223
|
+
/** Format: date-time */
|
|
224
|
+
updated_at: string;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
/** 400 response */
|
|
230
|
+
400: {
|
|
231
|
+
content: {
|
|
232
|
+
"application/json": {
|
|
233
|
+
status: 400;
|
|
234
|
+
message: string;
|
|
235
|
+
errors?: {
|
|
236
|
+
message: string;
|
|
237
|
+
path?: string;
|
|
238
|
+
}[];
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
/** 404 response */
|
|
243
|
+
404: {
|
|
244
|
+
content: {
|
|
245
|
+
"application/json": {
|
|
246
|
+
status: 404;
|
|
247
|
+
message: string;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
/** payload */
|
|
253
|
+
requestBody: {
|
|
254
|
+
content: {
|
|
255
|
+
"application/json": {
|
|
256
|
+
name?: string;
|
|
257
|
+
description?: string | null;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
};
|
|
191
262
|
getCampaign: {
|
|
192
263
|
parameters: {
|
|
193
264
|
path: {
|
|
@@ -330,6 +401,179 @@ export interface operations {
|
|
|
330
401
|
};
|
|
331
402
|
};
|
|
332
403
|
};
|
|
404
|
+
deleteCampaign: {
|
|
405
|
+
parameters: {
|
|
406
|
+
path: {
|
|
407
|
+
id: string;
|
|
408
|
+
};
|
|
409
|
+
header: {
|
|
410
|
+
/** Cookie */
|
|
411
|
+
Cookie: string;
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
responses: {
|
|
415
|
+
/** 200 response */
|
|
416
|
+
200: {
|
|
417
|
+
content: {
|
|
418
|
+
"application/json": {
|
|
419
|
+
status: 200;
|
|
420
|
+
message: string;
|
|
421
|
+
result: {
|
|
422
|
+
[key: string]: unknown;
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
/** 400 response */
|
|
428
|
+
400: {
|
|
429
|
+
content: {
|
|
430
|
+
"application/json": {
|
|
431
|
+
status: 400;
|
|
432
|
+
message: string;
|
|
433
|
+
errors?: {
|
|
434
|
+
message: string;
|
|
435
|
+
path?: string;
|
|
436
|
+
}[];
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
/** 404 response */
|
|
441
|
+
404: {
|
|
442
|
+
content: {
|
|
443
|
+
"application/json": {
|
|
444
|
+
status: 404;
|
|
445
|
+
message: string;
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
listCampaignConfigs: {
|
|
452
|
+
parameters: {
|
|
453
|
+
path: {
|
|
454
|
+
id: string;
|
|
455
|
+
};
|
|
456
|
+
header: {
|
|
457
|
+
/** Cookie */
|
|
458
|
+
Cookie: string;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
responses: {
|
|
462
|
+
/** 200 response */
|
|
463
|
+
200: {
|
|
464
|
+
content: {
|
|
465
|
+
"application/json": {
|
|
466
|
+
status: 200;
|
|
467
|
+
message: string;
|
|
468
|
+
result: {
|
|
469
|
+
id: number;
|
|
470
|
+
name: string;
|
|
471
|
+
enable: boolean;
|
|
472
|
+
payload: {
|
|
473
|
+
[key: string]: unknown;
|
|
474
|
+
};
|
|
475
|
+
/** Format: date-time */
|
|
476
|
+
created_at: string;
|
|
477
|
+
/** Format: date-time */
|
|
478
|
+
updated_at: string;
|
|
479
|
+
}[];
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
/** 400 response */
|
|
484
|
+
400: {
|
|
485
|
+
content: {
|
|
486
|
+
"application/json": {
|
|
487
|
+
status: 400;
|
|
488
|
+
message: string;
|
|
489
|
+
errors?: {
|
|
490
|
+
message: string;
|
|
491
|
+
path?: string;
|
|
492
|
+
}[];
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
/** 404 response */
|
|
497
|
+
404: {
|
|
498
|
+
content: {
|
|
499
|
+
"application/json": {
|
|
500
|
+
status: 404;
|
|
501
|
+
message: string;
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
replaceCampaignConfigs: {
|
|
508
|
+
parameters: {
|
|
509
|
+
path: {
|
|
510
|
+
id: string;
|
|
511
|
+
};
|
|
512
|
+
header: {
|
|
513
|
+
/** Cookie */
|
|
514
|
+
Cookie: string;
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
responses: {
|
|
518
|
+
/** 200 response */
|
|
519
|
+
200: {
|
|
520
|
+
content: {
|
|
521
|
+
"application/json": {
|
|
522
|
+
status: 200;
|
|
523
|
+
message: string;
|
|
524
|
+
result: {
|
|
525
|
+
id: number;
|
|
526
|
+
name: string;
|
|
527
|
+
enable: boolean;
|
|
528
|
+
payload: {
|
|
529
|
+
[key: string]: unknown;
|
|
530
|
+
};
|
|
531
|
+
/** Format: date-time */
|
|
532
|
+
created_at: string;
|
|
533
|
+
/** Format: date-time */
|
|
534
|
+
updated_at: string;
|
|
535
|
+
}[];
|
|
536
|
+
};
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
/** 400 response */
|
|
540
|
+
400: {
|
|
541
|
+
content: {
|
|
542
|
+
"application/json": {
|
|
543
|
+
status: 400;
|
|
544
|
+
message: string;
|
|
545
|
+
errors?: {
|
|
546
|
+
message: string;
|
|
547
|
+
path?: string;
|
|
548
|
+
}[];
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
/** 404 response */
|
|
553
|
+
404: {
|
|
554
|
+
content: {
|
|
555
|
+
"application/json": {
|
|
556
|
+
status: 404;
|
|
557
|
+
message: string;
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
};
|
|
562
|
+
/** payload */
|
|
563
|
+
requestBody: {
|
|
564
|
+
content: {
|
|
565
|
+
"application/json": {
|
|
566
|
+
configs: {
|
|
567
|
+
name: string;
|
|
568
|
+
enable: boolean;
|
|
569
|
+
payload: {
|
|
570
|
+
[key: string]: unknown;
|
|
571
|
+
};
|
|
572
|
+
}[];
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
};
|
|
333
577
|
/** List scheduled campaigns for the admin overview */
|
|
334
578
|
listCampaigns: {
|
|
335
579
|
parameters: {
|