@luxuryescapes/contract-svc-lab-v2 0.1.7 → 0.1.8
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 +129 -69
- package/package.json +1 -1
package/dist/server.d.ts
CHANGED
|
@@ -21,6 +21,12 @@ 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 a cursor */
|
|
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
|
+
};
|
|
24
30
|
"/api/lab/v2/admin/campaigns/{id}": {
|
|
25
31
|
get: operations["getCampaign"];
|
|
26
32
|
put: operations["updateCampaign"];
|
|
@@ -36,10 +42,6 @@ export interface paths {
|
|
|
36
42
|
/** Create an empty scheduled campaign with an optional draft schedule */
|
|
37
43
|
post: operations["createCampaign"];
|
|
38
44
|
};
|
|
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
45
|
}
|
|
44
46
|
export interface components {
|
|
45
47
|
schemas: {};
|
|
@@ -358,6 +360,129 @@ export interface operations {
|
|
|
358
360
|
};
|
|
359
361
|
};
|
|
360
362
|
};
|
|
363
|
+
/** Preview unexpired members with a cursor */
|
|
364
|
+
listAudienceMembers: {
|
|
365
|
+
parameters: {
|
|
366
|
+
path: {
|
|
367
|
+
id: number;
|
|
368
|
+
};
|
|
369
|
+
query: {
|
|
370
|
+
limit?: number;
|
|
371
|
+
cursor?: string;
|
|
372
|
+
};
|
|
373
|
+
header: {
|
|
374
|
+
/** Cookie */
|
|
375
|
+
Cookie: string;
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
responses: {
|
|
379
|
+
/** 200 response */
|
|
380
|
+
200: {
|
|
381
|
+
content: {
|
|
382
|
+
"application/json": {
|
|
383
|
+
status: 200;
|
|
384
|
+
message: string;
|
|
385
|
+
result: {
|
|
386
|
+
user_id: string;
|
|
387
|
+
/** Format: date-time */
|
|
388
|
+
expires_at: string | null;
|
|
389
|
+
}[];
|
|
390
|
+
pagination: {
|
|
391
|
+
limit: number;
|
|
392
|
+
next_cursor: string | null;
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
/** 400 response */
|
|
398
|
+
400: {
|
|
399
|
+
content: {
|
|
400
|
+
"application/json": {
|
|
401
|
+
status: 400;
|
|
402
|
+
message: string;
|
|
403
|
+
errors?: {
|
|
404
|
+
message: string;
|
|
405
|
+
path?: string;
|
|
406
|
+
}[];
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
/** 404 response */
|
|
411
|
+
404: {
|
|
412
|
+
content: {
|
|
413
|
+
"application/json": {
|
|
414
|
+
status: 404;
|
|
415
|
+
message: string;
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
/** Upsert up to 10000 members by user_id. Existing members that are not submitted are left unchanged. */
|
|
422
|
+
upsertAudienceMembers: {
|
|
423
|
+
parameters: {
|
|
424
|
+
path: {
|
|
425
|
+
id: number;
|
|
426
|
+
};
|
|
427
|
+
header: {
|
|
428
|
+
/** Cookie */
|
|
429
|
+
Cookie: string;
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
responses: {
|
|
433
|
+
/** 200 response */
|
|
434
|
+
200: {
|
|
435
|
+
content: {
|
|
436
|
+
"application/json": {
|
|
437
|
+
status: 200;
|
|
438
|
+
message: string;
|
|
439
|
+
result: {
|
|
440
|
+
audience_id: number;
|
|
441
|
+
complete: boolean;
|
|
442
|
+
upserted: number;
|
|
443
|
+
unconfirmed: {
|
|
444
|
+
user_id: string;
|
|
445
|
+
}[];
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
/** 400 response */
|
|
451
|
+
400: {
|
|
452
|
+
content: {
|
|
453
|
+
"application/json": {
|
|
454
|
+
status: 400;
|
|
455
|
+
message: string;
|
|
456
|
+
errors?: {
|
|
457
|
+
message: string;
|
|
458
|
+
path?: string;
|
|
459
|
+
}[];
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
/** 404 response */
|
|
464
|
+
404: {
|
|
465
|
+
content: {
|
|
466
|
+
"application/json": {
|
|
467
|
+
status: 404;
|
|
468
|
+
message: string;
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
/** payload */
|
|
474
|
+
requestBody: {
|
|
475
|
+
content: {
|
|
476
|
+
"application/json": {
|
|
477
|
+
members: {
|
|
478
|
+
user_id: string;
|
|
479
|
+
/** Format: date-time */
|
|
480
|
+
expires_at?: string | null;
|
|
481
|
+
}[];
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
};
|
|
361
486
|
getCampaign: {
|
|
362
487
|
parameters: {
|
|
363
488
|
path: {
|
|
@@ -812,71 +937,6 @@ export interface operations {
|
|
|
812
937
|
};
|
|
813
938
|
};
|
|
814
939
|
};
|
|
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
940
|
}
|
|
881
941
|
export interface external {
|
|
882
942
|
}
|