@luxuryescapes/contract-svc-lab-v2 0.1.5 → 0.1.7
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 +277 -0
- package/package.json +1 -1
package/dist/server.d.ts
CHANGED
|
@@ -12,12 +12,23 @@ export interface paths {
|
|
|
12
12
|
"/api/lab/v2/admin/audiences/{id}": {
|
|
13
13
|
/** Get audience metadata by id */
|
|
14
14
|
get: operations["getAudience"];
|
|
15
|
+
/** Delete an unreferenced audience */
|
|
16
|
+
delete: operations["deleteAudience"];
|
|
15
17
|
/** Sparse-update audience name and description */
|
|
16
18
|
patch: operations["updateAudience"];
|
|
17
19
|
};
|
|
20
|
+
"/api/lab/v2/admin/audiences/{id}/member-counts": {
|
|
21
|
+
/** Count unexpired members for an ordinary audience */
|
|
22
|
+
get: operations["countAudienceMembers"];
|
|
23
|
+
};
|
|
18
24
|
"/api/lab/v2/admin/campaigns/{id}": {
|
|
19
25
|
get: operations["getCampaign"];
|
|
20
26
|
put: operations["updateCampaign"];
|
|
27
|
+
delete: operations["deleteCampaign"];
|
|
28
|
+
};
|
|
29
|
+
"/api/lab/v2/admin/campaigns/{id}/configs": {
|
|
30
|
+
get: operations["listCampaignConfigs"];
|
|
31
|
+
put: operations["replaceCampaignConfigs"];
|
|
21
32
|
};
|
|
22
33
|
"/api/lab/v2/admin/campaigns": {
|
|
23
34
|
/** List scheduled campaigns for the admin overview */
|
|
@@ -190,6 +201,50 @@ export interface operations {
|
|
|
190
201
|
};
|
|
191
202
|
};
|
|
192
203
|
};
|
|
204
|
+
/** Delete an unreferenced audience */
|
|
205
|
+
deleteAudience: {
|
|
206
|
+
parameters: {
|
|
207
|
+
path: {
|
|
208
|
+
id: number;
|
|
209
|
+
};
|
|
210
|
+
header: {
|
|
211
|
+
/** Cookie */
|
|
212
|
+
Cookie: string;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
responses: {
|
|
216
|
+
/** 204 response */
|
|
217
|
+
204: {
|
|
218
|
+
content: {
|
|
219
|
+
"application/json": {
|
|
220
|
+
[key: string]: unknown;
|
|
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
|
+
};
|
|
193
248
|
/** Sparse-update audience name and description */
|
|
194
249
|
updateAudience: {
|
|
195
250
|
parameters: {
|
|
@@ -254,6 +309,55 @@ export interface operations {
|
|
|
254
309
|
};
|
|
255
310
|
};
|
|
256
311
|
};
|
|
312
|
+
/** Count unexpired members for an ordinary audience */
|
|
313
|
+
countAudienceMembers: {
|
|
314
|
+
parameters: {
|
|
315
|
+
path: {
|
|
316
|
+
id: number;
|
|
317
|
+
};
|
|
318
|
+
header: {
|
|
319
|
+
/** Cookie */
|
|
320
|
+
Cookie: string;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
responses: {
|
|
324
|
+
/** 200 response */
|
|
325
|
+
200: {
|
|
326
|
+
content: {
|
|
327
|
+
"application/json": {
|
|
328
|
+
status: 200;
|
|
329
|
+
message: string;
|
|
330
|
+
result: {
|
|
331
|
+
audience_id: number;
|
|
332
|
+
member_count: number;
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
/** 400 response */
|
|
338
|
+
400: {
|
|
339
|
+
content: {
|
|
340
|
+
"application/json": {
|
|
341
|
+
status: 400;
|
|
342
|
+
message: string;
|
|
343
|
+
errors?: {
|
|
344
|
+
message: string;
|
|
345
|
+
path?: string;
|
|
346
|
+
}[];
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
/** 404 response */
|
|
351
|
+
404: {
|
|
352
|
+
content: {
|
|
353
|
+
"application/json": {
|
|
354
|
+
status: 404;
|
|
355
|
+
message: string;
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
};
|
|
257
361
|
getCampaign: {
|
|
258
362
|
parameters: {
|
|
259
363
|
path: {
|
|
@@ -396,6 +500,179 @@ export interface operations {
|
|
|
396
500
|
};
|
|
397
501
|
};
|
|
398
502
|
};
|
|
503
|
+
deleteCampaign: {
|
|
504
|
+
parameters: {
|
|
505
|
+
path: {
|
|
506
|
+
id: string;
|
|
507
|
+
};
|
|
508
|
+
header: {
|
|
509
|
+
/** Cookie */
|
|
510
|
+
Cookie: string;
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
responses: {
|
|
514
|
+
/** 200 response */
|
|
515
|
+
200: {
|
|
516
|
+
content: {
|
|
517
|
+
"application/json": {
|
|
518
|
+
status: 200;
|
|
519
|
+
message: string;
|
|
520
|
+
result: {
|
|
521
|
+
[key: string]: unknown;
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
/** 400 response */
|
|
527
|
+
400: {
|
|
528
|
+
content: {
|
|
529
|
+
"application/json": {
|
|
530
|
+
status: 400;
|
|
531
|
+
message: string;
|
|
532
|
+
errors?: {
|
|
533
|
+
message: string;
|
|
534
|
+
path?: string;
|
|
535
|
+
}[];
|
|
536
|
+
};
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
/** 404 response */
|
|
540
|
+
404: {
|
|
541
|
+
content: {
|
|
542
|
+
"application/json": {
|
|
543
|
+
status: 404;
|
|
544
|
+
message: string;
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
listCampaignConfigs: {
|
|
551
|
+
parameters: {
|
|
552
|
+
path: {
|
|
553
|
+
id: string;
|
|
554
|
+
};
|
|
555
|
+
header: {
|
|
556
|
+
/** Cookie */
|
|
557
|
+
Cookie: string;
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
responses: {
|
|
561
|
+
/** 200 response */
|
|
562
|
+
200: {
|
|
563
|
+
content: {
|
|
564
|
+
"application/json": {
|
|
565
|
+
status: 200;
|
|
566
|
+
message: string;
|
|
567
|
+
result: {
|
|
568
|
+
id: number;
|
|
569
|
+
name: string;
|
|
570
|
+
enable: boolean;
|
|
571
|
+
payload: {
|
|
572
|
+
[key: string]: unknown;
|
|
573
|
+
};
|
|
574
|
+
/** Format: date-time */
|
|
575
|
+
created_at: string;
|
|
576
|
+
/** Format: date-time */
|
|
577
|
+
updated_at: string;
|
|
578
|
+
}[];
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
/** 400 response */
|
|
583
|
+
400: {
|
|
584
|
+
content: {
|
|
585
|
+
"application/json": {
|
|
586
|
+
status: 400;
|
|
587
|
+
message: string;
|
|
588
|
+
errors?: {
|
|
589
|
+
message: string;
|
|
590
|
+
path?: string;
|
|
591
|
+
}[];
|
|
592
|
+
};
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
/** 404 response */
|
|
596
|
+
404: {
|
|
597
|
+
content: {
|
|
598
|
+
"application/json": {
|
|
599
|
+
status: 404;
|
|
600
|
+
message: string;
|
|
601
|
+
};
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
replaceCampaignConfigs: {
|
|
607
|
+
parameters: {
|
|
608
|
+
path: {
|
|
609
|
+
id: string;
|
|
610
|
+
};
|
|
611
|
+
header: {
|
|
612
|
+
/** Cookie */
|
|
613
|
+
Cookie: string;
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
responses: {
|
|
617
|
+
/** 200 response */
|
|
618
|
+
200: {
|
|
619
|
+
content: {
|
|
620
|
+
"application/json": {
|
|
621
|
+
status: 200;
|
|
622
|
+
message: string;
|
|
623
|
+
result: {
|
|
624
|
+
id: number;
|
|
625
|
+
name: string;
|
|
626
|
+
enable: boolean;
|
|
627
|
+
payload: {
|
|
628
|
+
[key: string]: unknown;
|
|
629
|
+
};
|
|
630
|
+
/** Format: date-time */
|
|
631
|
+
created_at: string;
|
|
632
|
+
/** Format: date-time */
|
|
633
|
+
updated_at: string;
|
|
634
|
+
}[];
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
/** 400 response */
|
|
639
|
+
400: {
|
|
640
|
+
content: {
|
|
641
|
+
"application/json": {
|
|
642
|
+
status: 400;
|
|
643
|
+
message: string;
|
|
644
|
+
errors?: {
|
|
645
|
+
message: string;
|
|
646
|
+
path?: string;
|
|
647
|
+
}[];
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
};
|
|
651
|
+
/** 404 response */
|
|
652
|
+
404: {
|
|
653
|
+
content: {
|
|
654
|
+
"application/json": {
|
|
655
|
+
status: 404;
|
|
656
|
+
message: string;
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
};
|
|
660
|
+
};
|
|
661
|
+
/** payload */
|
|
662
|
+
requestBody: {
|
|
663
|
+
content: {
|
|
664
|
+
"application/json": {
|
|
665
|
+
configs: {
|
|
666
|
+
name: string;
|
|
667
|
+
enable: boolean;
|
|
668
|
+
payload: {
|
|
669
|
+
[key: string]: unknown;
|
|
670
|
+
};
|
|
671
|
+
}[];
|
|
672
|
+
};
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
};
|
|
399
676
|
/** List scheduled campaigns for the admin overview */
|
|
400
677
|
listCampaigns: {
|
|
401
678
|
parameters: {
|