@luxuryescapes/contract-svc-lab-v2 0.1.8 → 0.1.10
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 +111 -2
- package/package.json +1 -1
package/dist/server.d.ts
CHANGED
|
@@ -22,11 +22,15 @@ export interface paths {
|
|
|
22
22
|
get: operations["countAudienceMembers"];
|
|
23
23
|
};
|
|
24
24
|
"/api/lab/v2/admin/audiences/{id}/members": {
|
|
25
|
-
/** Preview unexpired members with
|
|
25
|
+
/** Preview unexpired members with cursor pagination */
|
|
26
26
|
get: operations["listAudienceMembers"];
|
|
27
27
|
/** Upsert up to 10000 members by user_id. Existing members that are not submitted are left unchanged. */
|
|
28
28
|
post: operations["upsertAudienceMembers"];
|
|
29
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
|
+
};
|
|
30
34
|
"/api/lab/v2/admin/campaigns/{id}": {
|
|
31
35
|
get: operations["getCampaign"];
|
|
32
36
|
put: operations["updateCampaign"];
|
|
@@ -42,6 +46,9 @@ export interface paths {
|
|
|
42
46
|
/** Create an empty scheduled campaign with an optional draft schedule */
|
|
43
47
|
post: operations["createCampaign"];
|
|
44
48
|
};
|
|
49
|
+
"/api/lab/v2/evaluate": {
|
|
50
|
+
post: operations["evaluateExperiments"];
|
|
51
|
+
};
|
|
45
52
|
}
|
|
46
53
|
export interface components {
|
|
47
54
|
schemas: {};
|
|
@@ -360,7 +367,7 @@ export interface operations {
|
|
|
360
367
|
};
|
|
361
368
|
};
|
|
362
369
|
};
|
|
363
|
-
/** Preview unexpired members with
|
|
370
|
+
/** Preview unexpired members with cursor pagination */
|
|
364
371
|
listAudienceMembers: {
|
|
365
372
|
parameters: {
|
|
366
373
|
path: {
|
|
@@ -383,6 +390,7 @@ export interface operations {
|
|
|
383
390
|
status: 200;
|
|
384
391
|
message: string;
|
|
385
392
|
result: {
|
|
393
|
+
/** Format: uuid */
|
|
386
394
|
user_id: string;
|
|
387
395
|
/** Format: date-time */
|
|
388
396
|
expires_at: string | null;
|
|
@@ -441,6 +449,7 @@ export interface operations {
|
|
|
441
449
|
complete: boolean;
|
|
442
450
|
upserted: number;
|
|
443
451
|
unconfirmed: {
|
|
452
|
+
/** Format: uuid */
|
|
444
453
|
user_id: string;
|
|
445
454
|
}[];
|
|
446
455
|
};
|
|
@@ -475,6 +484,7 @@ export interface operations {
|
|
|
475
484
|
content: {
|
|
476
485
|
"application/json": {
|
|
477
486
|
members: {
|
|
487
|
+
/** Format: uuid */
|
|
478
488
|
user_id: string;
|
|
479
489
|
/** Format: date-time */
|
|
480
490
|
expires_at?: string | null;
|
|
@@ -483,6 +493,48 @@ export interface operations {
|
|
|
483
493
|
};
|
|
484
494
|
};
|
|
485
495
|
};
|
|
496
|
+
/** Download a full CSV of every unexpired member for an ordinary audience (header + all rows) */
|
|
497
|
+
exportAudienceMembers: {
|
|
498
|
+
parameters: {
|
|
499
|
+
path: {
|
|
500
|
+
id: number;
|
|
501
|
+
};
|
|
502
|
+
header: {
|
|
503
|
+
/** Cookie */
|
|
504
|
+
Cookie: string;
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
responses: {
|
|
508
|
+
/** 200 response */
|
|
509
|
+
200: {
|
|
510
|
+
content: {
|
|
511
|
+
"application/json": string;
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
/** 400 response */
|
|
515
|
+
400: {
|
|
516
|
+
content: {
|
|
517
|
+
"application/json": {
|
|
518
|
+
status: 400;
|
|
519
|
+
message: string;
|
|
520
|
+
errors?: {
|
|
521
|
+
message: string;
|
|
522
|
+
path?: string;
|
|
523
|
+
}[];
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
/** 404 response */
|
|
528
|
+
404: {
|
|
529
|
+
content: {
|
|
530
|
+
"application/json": {
|
|
531
|
+
status: 404;
|
|
532
|
+
message: string;
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
};
|
|
537
|
+
};
|
|
486
538
|
getCampaign: {
|
|
487
539
|
parameters: {
|
|
488
540
|
path: {
|
|
@@ -937,6 +989,63 @@ export interface operations {
|
|
|
937
989
|
};
|
|
938
990
|
};
|
|
939
991
|
};
|
|
992
|
+
evaluateExperiments: {
|
|
993
|
+
parameters: {};
|
|
994
|
+
responses: {
|
|
995
|
+
/** 200 response */
|
|
996
|
+
200: {
|
|
997
|
+
content: {
|
|
998
|
+
"application/json": {
|
|
999
|
+
status: 200;
|
|
1000
|
+
message: string;
|
|
1001
|
+
result: {
|
|
1002
|
+
configs: {
|
|
1003
|
+
name: string;
|
|
1004
|
+
payload: {
|
|
1005
|
+
[key: string]: unknown;
|
|
1006
|
+
};
|
|
1007
|
+
}[];
|
|
1008
|
+
uis: {
|
|
1009
|
+
id: number;
|
|
1010
|
+
experiment_id: number;
|
|
1011
|
+
type: "header_banner" | "popup" | "snackbar";
|
|
1012
|
+
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
1013
|
+
match_mode: "include" | "exclude";
|
|
1014
|
+
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
1015
|
+
offer_ids: string[];
|
|
1016
|
+
payload: {
|
|
1017
|
+
[key: string]: unknown;
|
|
1018
|
+
};
|
|
1019
|
+
}[];
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
};
|
|
1023
|
+
};
|
|
1024
|
+
/** 400 response */
|
|
1025
|
+
400: {
|
|
1026
|
+
content: {
|
|
1027
|
+
"application/json": {
|
|
1028
|
+
status: 400;
|
|
1029
|
+
message: string;
|
|
1030
|
+
errors?: {
|
|
1031
|
+
message: string;
|
|
1032
|
+
path?: string;
|
|
1033
|
+
}[];
|
|
1034
|
+
};
|
|
1035
|
+
};
|
|
1036
|
+
};
|
|
1037
|
+
};
|
|
1038
|
+
/** payload */
|
|
1039
|
+
requestBody: {
|
|
1040
|
+
content: {
|
|
1041
|
+
"application/json": {
|
|
1042
|
+
attributes: {
|
|
1043
|
+
[key: string]: unknown;
|
|
1044
|
+
};
|
|
1045
|
+
};
|
|
1046
|
+
};
|
|
1047
|
+
};
|
|
1048
|
+
};
|
|
940
1049
|
}
|
|
941
1050
|
export interface external {
|
|
942
1051
|
}
|