@luxuryescapes/contract-svc-lab-v2 0.1.7 → 0.1.9
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 -69
- package/package.json +1 -1
package/dist/server.d.ts
CHANGED
|
@@ -21,6 +21,16 @@ export interface paths {
|
|
|
21
21
|
/** Count unexpired members for an ordinary audience */
|
|
22
22
|
get: operations["countAudienceMembers"];
|
|
23
23
|
};
|
|
24
|
+
"/api/lab/v2/admin/audiences/{id}/members": {
|
|
25
|
+
/** Preview unexpired members with cursor pagination */
|
|
26
|
+
get: operations["listAudienceMembers"];
|
|
27
|
+
/** Upsert up to 10000 members by user_id. Existing members that are not submitted are left unchanged. */
|
|
28
|
+
post: operations["upsertAudienceMembers"];
|
|
29
|
+
};
|
|
30
|
+
"/api/lab/v2/admin/audiences/{id}/member-exports": {
|
|
31
|
+
/** Download a full CSV of every unexpired member for an ordinary audience (header + all rows) */
|
|
32
|
+
get: operations["exportAudienceMembers"];
|
|
33
|
+
};
|
|
24
34
|
"/api/lab/v2/admin/campaigns/{id}": {
|
|
25
35
|
get: operations["getCampaign"];
|
|
26
36
|
put: operations["updateCampaign"];
|
|
@@ -36,10 +46,6 @@ export interface paths {
|
|
|
36
46
|
/** Create an empty scheduled campaign with an optional draft schedule */
|
|
37
47
|
post: operations["createCampaign"];
|
|
38
48
|
};
|
|
39
|
-
"/api/lab/v2/admin/audiences/{id}/members": {
|
|
40
|
-
/** Upsert up to 10000 members by user_id. Existing members that are not submitted are left unchanged. */
|
|
41
|
-
post: operations["upsertAudienceMembers"];
|
|
42
|
-
};
|
|
43
49
|
}
|
|
44
50
|
export interface components {
|
|
45
51
|
schemas: {};
|
|
@@ -358,6 +364,174 @@ export interface operations {
|
|
|
358
364
|
};
|
|
359
365
|
};
|
|
360
366
|
};
|
|
367
|
+
/** Preview unexpired members with cursor pagination */
|
|
368
|
+
listAudienceMembers: {
|
|
369
|
+
parameters: {
|
|
370
|
+
path: {
|
|
371
|
+
id: number;
|
|
372
|
+
};
|
|
373
|
+
query: {
|
|
374
|
+
limit?: number;
|
|
375
|
+
cursor?: string;
|
|
376
|
+
};
|
|
377
|
+
header: {
|
|
378
|
+
/** Cookie */
|
|
379
|
+
Cookie: string;
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
responses: {
|
|
383
|
+
/** 200 response */
|
|
384
|
+
200: {
|
|
385
|
+
content: {
|
|
386
|
+
"application/json": {
|
|
387
|
+
status: 200;
|
|
388
|
+
message: string;
|
|
389
|
+
result: {
|
|
390
|
+
/** Format: uuid */
|
|
391
|
+
user_id: string;
|
|
392
|
+
/** Format: date-time */
|
|
393
|
+
expires_at: string | null;
|
|
394
|
+
}[];
|
|
395
|
+
pagination: {
|
|
396
|
+
limit: number;
|
|
397
|
+
next_cursor: string | null;
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
/** 400 response */
|
|
403
|
+
400: {
|
|
404
|
+
content: {
|
|
405
|
+
"application/json": {
|
|
406
|
+
status: 400;
|
|
407
|
+
message: string;
|
|
408
|
+
errors?: {
|
|
409
|
+
message: string;
|
|
410
|
+
path?: string;
|
|
411
|
+
}[];
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
/** 404 response */
|
|
416
|
+
404: {
|
|
417
|
+
content: {
|
|
418
|
+
"application/json": {
|
|
419
|
+
status: 404;
|
|
420
|
+
message: string;
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
/** Upsert up to 10000 members by user_id. Existing members that are not submitted are left unchanged. */
|
|
427
|
+
upsertAudienceMembers: {
|
|
428
|
+
parameters: {
|
|
429
|
+
path: {
|
|
430
|
+
id: number;
|
|
431
|
+
};
|
|
432
|
+
header: {
|
|
433
|
+
/** Cookie */
|
|
434
|
+
Cookie: string;
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
responses: {
|
|
438
|
+
/** 200 response */
|
|
439
|
+
200: {
|
|
440
|
+
content: {
|
|
441
|
+
"application/json": {
|
|
442
|
+
status: 200;
|
|
443
|
+
message: string;
|
|
444
|
+
result: {
|
|
445
|
+
audience_id: number;
|
|
446
|
+
complete: boolean;
|
|
447
|
+
upserted: number;
|
|
448
|
+
unconfirmed: {
|
|
449
|
+
/** Format: uuid */
|
|
450
|
+
user_id: string;
|
|
451
|
+
}[];
|
|
452
|
+
};
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
/** 400 response */
|
|
457
|
+
400: {
|
|
458
|
+
content: {
|
|
459
|
+
"application/json": {
|
|
460
|
+
status: 400;
|
|
461
|
+
message: string;
|
|
462
|
+
errors?: {
|
|
463
|
+
message: string;
|
|
464
|
+
path?: string;
|
|
465
|
+
}[];
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
/** 404 response */
|
|
470
|
+
404: {
|
|
471
|
+
content: {
|
|
472
|
+
"application/json": {
|
|
473
|
+
status: 404;
|
|
474
|
+
message: string;
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
/** payload */
|
|
480
|
+
requestBody: {
|
|
481
|
+
content: {
|
|
482
|
+
"application/json": {
|
|
483
|
+
members: {
|
|
484
|
+
/** Format: uuid */
|
|
485
|
+
user_id: string;
|
|
486
|
+
/** Format: date-time */
|
|
487
|
+
expires_at?: string | null;
|
|
488
|
+
}[];
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
/** Download a full CSV of every unexpired member for an ordinary audience (header + all rows) */
|
|
494
|
+
exportAudienceMembers: {
|
|
495
|
+
parameters: {
|
|
496
|
+
path: {
|
|
497
|
+
id: number;
|
|
498
|
+
};
|
|
499
|
+
header: {
|
|
500
|
+
/** Cookie */
|
|
501
|
+
Cookie: string;
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
responses: {
|
|
505
|
+
/** 200 response */
|
|
506
|
+
200: {
|
|
507
|
+
content: {
|
|
508
|
+
"application/json": string;
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
/** 400 response */
|
|
512
|
+
400: {
|
|
513
|
+
content: {
|
|
514
|
+
"application/json": {
|
|
515
|
+
status: 400;
|
|
516
|
+
message: string;
|
|
517
|
+
errors?: {
|
|
518
|
+
message: string;
|
|
519
|
+
path?: string;
|
|
520
|
+
}[];
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
/** 404 response */
|
|
525
|
+
404: {
|
|
526
|
+
content: {
|
|
527
|
+
"application/json": {
|
|
528
|
+
status: 404;
|
|
529
|
+
message: string;
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
};
|
|
361
535
|
getCampaign: {
|
|
362
536
|
parameters: {
|
|
363
537
|
path: {
|
|
@@ -812,71 +986,6 @@ export interface operations {
|
|
|
812
986
|
};
|
|
813
987
|
};
|
|
814
988
|
};
|
|
815
|
-
/** Upsert up to 10000 members by user_id. Existing members that are not submitted are left unchanged. */
|
|
816
|
-
upsertAudienceMembers: {
|
|
817
|
-
parameters: {
|
|
818
|
-
path: {
|
|
819
|
-
id: number;
|
|
820
|
-
};
|
|
821
|
-
header: {
|
|
822
|
-
/** Cookie */
|
|
823
|
-
Cookie: string;
|
|
824
|
-
};
|
|
825
|
-
};
|
|
826
|
-
responses: {
|
|
827
|
-
/** 200 response */
|
|
828
|
-
200: {
|
|
829
|
-
content: {
|
|
830
|
-
"application/json": {
|
|
831
|
-
status: 200;
|
|
832
|
-
message: string;
|
|
833
|
-
result: {
|
|
834
|
-
audience_id: number;
|
|
835
|
-
complete: boolean;
|
|
836
|
-
upserted: number;
|
|
837
|
-
unconfirmed: {
|
|
838
|
-
user_id: string;
|
|
839
|
-
}[];
|
|
840
|
-
};
|
|
841
|
-
};
|
|
842
|
-
};
|
|
843
|
-
};
|
|
844
|
-
/** 400 response */
|
|
845
|
-
400: {
|
|
846
|
-
content: {
|
|
847
|
-
"application/json": {
|
|
848
|
-
status: 400;
|
|
849
|
-
message: string;
|
|
850
|
-
errors?: {
|
|
851
|
-
message: string;
|
|
852
|
-
path?: string;
|
|
853
|
-
}[];
|
|
854
|
-
};
|
|
855
|
-
};
|
|
856
|
-
};
|
|
857
|
-
/** 404 response */
|
|
858
|
-
404: {
|
|
859
|
-
content: {
|
|
860
|
-
"application/json": {
|
|
861
|
-
status: 404;
|
|
862
|
-
message: string;
|
|
863
|
-
};
|
|
864
|
-
};
|
|
865
|
-
};
|
|
866
|
-
};
|
|
867
|
-
/** payload */
|
|
868
|
-
requestBody: {
|
|
869
|
-
content: {
|
|
870
|
-
"application/json": {
|
|
871
|
-
members: {
|
|
872
|
-
user_id: string;
|
|
873
|
-
/** Format: date-time */
|
|
874
|
-
expires_at?: string | null;
|
|
875
|
-
}[];
|
|
876
|
-
};
|
|
877
|
-
};
|
|
878
|
-
};
|
|
879
|
-
};
|
|
880
989
|
}
|
|
881
990
|
export interface external {
|
|
882
991
|
}
|