@luxuryescapes/contract-svc-lab-v2 0.1.5 → 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 +178 -0
- package/package.json +1 -1
package/dist/server.d.ts
CHANGED
|
@@ -18,6 +18,11 @@ export interface paths {
|
|
|
18
18
|
"/api/lab/v2/admin/campaigns/{id}": {
|
|
19
19
|
get: operations["getCampaign"];
|
|
20
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"];
|
|
21
26
|
};
|
|
22
27
|
"/api/lab/v2/admin/campaigns": {
|
|
23
28
|
/** List scheduled campaigns for the admin overview */
|
|
@@ -396,6 +401,179 @@ export interface operations {
|
|
|
396
401
|
};
|
|
397
402
|
};
|
|
398
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
|
+
};
|
|
399
577
|
/** List scheduled campaigns for the admin overview */
|
|
400
578
|
listCampaigns: {
|
|
401
579
|
parameters: {
|