@luxuryescapes/contract-svc-lab-v2 0.1.21 → 0.1.23
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 +133 -204
- package/package.json +1 -1
package/dist/server.d.ts
CHANGED
|
@@ -36,13 +36,10 @@ export interface paths {
|
|
|
36
36
|
put: operations["updateCampaign"];
|
|
37
37
|
delete: operations["deleteCampaign"];
|
|
38
38
|
};
|
|
39
|
-
"/api/lab/v2/admin/campaigns/{id}/
|
|
40
|
-
get: operations["
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"/api/lab/v2/admin/campaigns/{id}/uis": {
|
|
44
|
-
get: operations["listCampaignUis"];
|
|
45
|
-
put: operations["replaceCampaignUis"];
|
|
39
|
+
"/api/lab/v2/admin/campaigns/{id}/items": {
|
|
40
|
+
get: operations["listCampaignItems"];
|
|
41
|
+
/** Items are matched by config name or UI type: matched items are edited in place and keep their id, new ones are created, omitted ones are deleted. */
|
|
42
|
+
put: operations["replaceCampaignItems"];
|
|
46
43
|
};
|
|
47
44
|
"/api/lab/v2/admin/campaigns": {
|
|
48
45
|
/** List scheduled campaigns for the admin overview */
|
|
@@ -807,7 +804,7 @@ export interface operations {
|
|
|
807
804
|
};
|
|
808
805
|
};
|
|
809
806
|
};
|
|
810
|
-
|
|
807
|
+
listCampaignItems: {
|
|
811
808
|
parameters: {
|
|
812
809
|
path: {
|
|
813
810
|
id: string;
|
|
@@ -825,17 +822,63 @@ export interface operations {
|
|
|
825
822
|
status: 200;
|
|
826
823
|
message: string;
|
|
827
824
|
result: {
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
825
|
+
configs: {
|
|
826
|
+
/** Format: uuid */
|
|
827
|
+
id: string;
|
|
828
|
+
name: string;
|
|
829
|
+
enable: boolean;
|
|
830
|
+
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
831
|
+
payload: {
|
|
832
|
+
[key: string]: unknown;
|
|
833
|
+
};
|
|
834
|
+
/** Format: date-time */
|
|
835
|
+
created_at: string;
|
|
836
|
+
/** Format: date-time */
|
|
837
|
+
updated_at: string;
|
|
838
|
+
}[];
|
|
839
|
+
uis: ({
|
|
840
|
+
type: "header_banner";
|
|
841
|
+
/** Format: uuid */
|
|
842
|
+
id: string;
|
|
843
|
+
enable: boolean;
|
|
844
|
+
match_mode: "include" | "exclude";
|
|
845
|
+
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
846
|
+
offer_ids: string[];
|
|
847
|
+
/** Format: date-time */
|
|
848
|
+
created_at: string;
|
|
849
|
+
/** Format: date-time */
|
|
850
|
+
updated_at: string;
|
|
851
|
+
payload: components["schemas"]["HeaderBannerPayload"];
|
|
852
|
+
} | {
|
|
853
|
+
type: "popup";
|
|
854
|
+
/** Format: uuid */
|
|
855
|
+
id: string;
|
|
856
|
+
enable: boolean;
|
|
857
|
+
match_mode: "include" | "exclude";
|
|
858
|
+
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
859
|
+
offer_ids: string[];
|
|
860
|
+
/** Format: date-time */
|
|
861
|
+
created_at: string;
|
|
862
|
+
/** Format: date-time */
|
|
863
|
+
updated_at: string;
|
|
864
|
+
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
865
|
+
payload: components["schemas"]["PopupPayload"];
|
|
866
|
+
} | {
|
|
867
|
+
type: "snackbar";
|
|
868
|
+
/** Format: uuid */
|
|
869
|
+
id: string;
|
|
870
|
+
enable: boolean;
|
|
871
|
+
match_mode: "include" | "exclude";
|
|
872
|
+
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
873
|
+
offer_ids: string[];
|
|
874
|
+
/** Format: date-time */
|
|
875
|
+
created_at: string;
|
|
876
|
+
/** Format: date-time */
|
|
877
|
+
updated_at: string;
|
|
878
|
+
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
879
|
+
payload: components["schemas"]["SnackbarPayload"];
|
|
880
|
+
})[];
|
|
881
|
+
};
|
|
839
882
|
};
|
|
840
883
|
};
|
|
841
884
|
};
|
|
@@ -863,7 +906,8 @@ export interface operations {
|
|
|
863
906
|
};
|
|
864
907
|
};
|
|
865
908
|
};
|
|
866
|
-
|
|
909
|
+
/** Items are matched by config name or UI type: matched items are edited in place and keep their id, new ones are created, omitted ones are deleted. */
|
|
910
|
+
replaceCampaignItems: {
|
|
867
911
|
parameters: {
|
|
868
912
|
path: {
|
|
869
913
|
id: string;
|
|
@@ -881,17 +925,63 @@ export interface operations {
|
|
|
881
925
|
status: 200;
|
|
882
926
|
message: string;
|
|
883
927
|
result: {
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
928
|
+
configs: {
|
|
929
|
+
/** Format: uuid */
|
|
930
|
+
id: string;
|
|
931
|
+
name: string;
|
|
932
|
+
enable: boolean;
|
|
933
|
+
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
934
|
+
payload: {
|
|
935
|
+
[key: string]: unknown;
|
|
936
|
+
};
|
|
937
|
+
/** Format: date-time */
|
|
938
|
+
created_at: string;
|
|
939
|
+
/** Format: date-time */
|
|
940
|
+
updated_at: string;
|
|
941
|
+
}[];
|
|
942
|
+
uis: ({
|
|
943
|
+
type: "header_banner";
|
|
944
|
+
/** Format: uuid */
|
|
945
|
+
id: string;
|
|
946
|
+
enable: boolean;
|
|
947
|
+
match_mode: "include" | "exclude";
|
|
948
|
+
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
949
|
+
offer_ids: string[];
|
|
950
|
+
/** Format: date-time */
|
|
951
|
+
created_at: string;
|
|
952
|
+
/** Format: date-time */
|
|
953
|
+
updated_at: string;
|
|
954
|
+
payload: components["schemas"]["HeaderBannerPayload"];
|
|
955
|
+
} | {
|
|
956
|
+
type: "popup";
|
|
957
|
+
/** Format: uuid */
|
|
958
|
+
id: string;
|
|
959
|
+
enable: boolean;
|
|
960
|
+
match_mode: "include" | "exclude";
|
|
961
|
+
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
962
|
+
offer_ids: string[];
|
|
963
|
+
/** Format: date-time */
|
|
964
|
+
created_at: string;
|
|
965
|
+
/** Format: date-time */
|
|
966
|
+
updated_at: string;
|
|
967
|
+
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
968
|
+
payload: components["schemas"]["PopupPayload"];
|
|
969
|
+
} | {
|
|
970
|
+
type: "snackbar";
|
|
971
|
+
/** Format: uuid */
|
|
972
|
+
id: string;
|
|
973
|
+
enable: boolean;
|
|
974
|
+
match_mode: "include" | "exclude";
|
|
975
|
+
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
976
|
+
offer_ids: string[];
|
|
977
|
+
/** Format: date-time */
|
|
978
|
+
created_at: string;
|
|
979
|
+
/** Format: date-time */
|
|
980
|
+
updated_at: string;
|
|
981
|
+
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
982
|
+
payload: components["schemas"]["SnackbarPayload"];
|
|
983
|
+
})[];
|
|
984
|
+
};
|
|
895
985
|
};
|
|
896
986
|
};
|
|
897
987
|
};
|
|
@@ -925,183 +1015,11 @@ export interface operations {
|
|
|
925
1015
|
configs: {
|
|
926
1016
|
name: string;
|
|
927
1017
|
enable: boolean;
|
|
1018
|
+
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
928
1019
|
payload: {
|
|
929
1020
|
[key: string]: unknown;
|
|
930
1021
|
};
|
|
931
1022
|
}[];
|
|
932
|
-
};
|
|
933
|
-
};
|
|
934
|
-
};
|
|
935
|
-
};
|
|
936
|
-
listCampaignUis: {
|
|
937
|
-
parameters: {
|
|
938
|
-
path: {
|
|
939
|
-
id: string;
|
|
940
|
-
};
|
|
941
|
-
header: {
|
|
942
|
-
/** Cookie */
|
|
943
|
-
Cookie: string;
|
|
944
|
-
};
|
|
945
|
-
};
|
|
946
|
-
responses: {
|
|
947
|
-
/** 200 response */
|
|
948
|
-
200: {
|
|
949
|
-
content: {
|
|
950
|
-
"application/json": {
|
|
951
|
-
status: 200;
|
|
952
|
-
message: string;
|
|
953
|
-
result: ({
|
|
954
|
-
type: "header_banner";
|
|
955
|
-
id: number;
|
|
956
|
-
enable: boolean;
|
|
957
|
-
match_mode: "include" | "exclude";
|
|
958
|
-
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
959
|
-
offer_ids: string[];
|
|
960
|
-
/** Format: date-time */
|
|
961
|
-
created_at: string;
|
|
962
|
-
/** Format: date-time */
|
|
963
|
-
updated_at: string;
|
|
964
|
-
payload: components["schemas"]["HeaderBannerPayload"];
|
|
965
|
-
} | {
|
|
966
|
-
type: "popup";
|
|
967
|
-
id: number;
|
|
968
|
-
enable: boolean;
|
|
969
|
-
match_mode: "include" | "exclude";
|
|
970
|
-
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
971
|
-
offer_ids: string[];
|
|
972
|
-
/** Format: date-time */
|
|
973
|
-
created_at: string;
|
|
974
|
-
/** Format: date-time */
|
|
975
|
-
updated_at: string;
|
|
976
|
-
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
977
|
-
payload: components["schemas"]["PopupPayload"];
|
|
978
|
-
} | {
|
|
979
|
-
type: "snackbar";
|
|
980
|
-
id: number;
|
|
981
|
-
enable: boolean;
|
|
982
|
-
match_mode: "include" | "exclude";
|
|
983
|
-
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
984
|
-
offer_ids: string[];
|
|
985
|
-
/** Format: date-time */
|
|
986
|
-
created_at: string;
|
|
987
|
-
/** Format: date-time */
|
|
988
|
-
updated_at: string;
|
|
989
|
-
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
990
|
-
payload: components["schemas"]["SnackbarPayload"];
|
|
991
|
-
})[];
|
|
992
|
-
};
|
|
993
|
-
};
|
|
994
|
-
};
|
|
995
|
-
/** 400 response */
|
|
996
|
-
400: {
|
|
997
|
-
content: {
|
|
998
|
-
"application/json": {
|
|
999
|
-
status: 400;
|
|
1000
|
-
message: string;
|
|
1001
|
-
errors?: {
|
|
1002
|
-
message: string;
|
|
1003
|
-
path?: string;
|
|
1004
|
-
}[];
|
|
1005
|
-
};
|
|
1006
|
-
};
|
|
1007
|
-
};
|
|
1008
|
-
/** 404 response */
|
|
1009
|
-
404: {
|
|
1010
|
-
content: {
|
|
1011
|
-
"application/json": {
|
|
1012
|
-
status: 404;
|
|
1013
|
-
message: string;
|
|
1014
|
-
};
|
|
1015
|
-
};
|
|
1016
|
-
};
|
|
1017
|
-
};
|
|
1018
|
-
};
|
|
1019
|
-
replaceCampaignUis: {
|
|
1020
|
-
parameters: {
|
|
1021
|
-
path: {
|
|
1022
|
-
id: string;
|
|
1023
|
-
};
|
|
1024
|
-
header: {
|
|
1025
|
-
/** Cookie */
|
|
1026
|
-
Cookie: string;
|
|
1027
|
-
};
|
|
1028
|
-
};
|
|
1029
|
-
responses: {
|
|
1030
|
-
/** 200 response */
|
|
1031
|
-
200: {
|
|
1032
|
-
content: {
|
|
1033
|
-
"application/json": {
|
|
1034
|
-
status: 200;
|
|
1035
|
-
message: string;
|
|
1036
|
-
result: ({
|
|
1037
|
-
type: "header_banner";
|
|
1038
|
-
id: number;
|
|
1039
|
-
enable: boolean;
|
|
1040
|
-
match_mode: "include" | "exclude";
|
|
1041
|
-
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
1042
|
-
offer_ids: string[];
|
|
1043
|
-
/** Format: date-time */
|
|
1044
|
-
created_at: string;
|
|
1045
|
-
/** Format: date-time */
|
|
1046
|
-
updated_at: string;
|
|
1047
|
-
payload: components["schemas"]["HeaderBannerPayload"];
|
|
1048
|
-
} | {
|
|
1049
|
-
type: "popup";
|
|
1050
|
-
id: number;
|
|
1051
|
-
enable: boolean;
|
|
1052
|
-
match_mode: "include" | "exclude";
|
|
1053
|
-
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
1054
|
-
offer_ids: string[];
|
|
1055
|
-
/** Format: date-time */
|
|
1056
|
-
created_at: string;
|
|
1057
|
-
/** Format: date-time */
|
|
1058
|
-
updated_at: string;
|
|
1059
|
-
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
1060
|
-
payload: components["schemas"]["PopupPayload"];
|
|
1061
|
-
} | {
|
|
1062
|
-
type: "snackbar";
|
|
1063
|
-
id: number;
|
|
1064
|
-
enable: boolean;
|
|
1065
|
-
match_mode: "include" | "exclude";
|
|
1066
|
-
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
1067
|
-
offer_ids: string[];
|
|
1068
|
-
/** Format: date-time */
|
|
1069
|
-
created_at: string;
|
|
1070
|
-
/** Format: date-time */
|
|
1071
|
-
updated_at: string;
|
|
1072
|
-
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
1073
|
-
payload: components["schemas"]["SnackbarPayload"];
|
|
1074
|
-
})[];
|
|
1075
|
-
};
|
|
1076
|
-
};
|
|
1077
|
-
};
|
|
1078
|
-
/** 400 response */
|
|
1079
|
-
400: {
|
|
1080
|
-
content: {
|
|
1081
|
-
"application/json": {
|
|
1082
|
-
status: 400;
|
|
1083
|
-
message: string;
|
|
1084
|
-
errors?: {
|
|
1085
|
-
message: string;
|
|
1086
|
-
path?: string;
|
|
1087
|
-
}[];
|
|
1088
|
-
};
|
|
1089
|
-
};
|
|
1090
|
-
};
|
|
1091
|
-
/** 404 response */
|
|
1092
|
-
404: {
|
|
1093
|
-
content: {
|
|
1094
|
-
"application/json": {
|
|
1095
|
-
status: 404;
|
|
1096
|
-
message: string;
|
|
1097
|
-
};
|
|
1098
|
-
};
|
|
1099
|
-
};
|
|
1100
|
-
};
|
|
1101
|
-
/** payload */
|
|
1102
|
-
requestBody: {
|
|
1103
|
-
content: {
|
|
1104
|
-
"application/json": {
|
|
1105
1023
|
uis: ({
|
|
1106
1024
|
type: "header_banner";
|
|
1107
1025
|
enable: boolean;
|
|
@@ -1360,16 +1278,25 @@ export interface operations {
|
|
|
1360
1278
|
"application/json": {
|
|
1361
1279
|
status: 200;
|
|
1362
1280
|
message: string;
|
|
1281
|
+
/** @description Metadata only. Fetch each payload by id from its own endpoint: send no credentials, no Authorization header and no brand query param, and keep the query string stable, so the CDN can cache it. Metadata can be up to 5 minutes newer than a cached payload: on a 404 or an unrecognised payload, render nothing. During SSR, fetch only above-the-fold payloads; fetch popups, snackbars and other configs in the browser on demand. */
|
|
1363
1282
|
result: {
|
|
1283
|
+
/** @description Ordered by campaign priority (scheduled, then always-on) and not deduplicated. For a given config name, use the first entry whose trigger_points is empty or contains your trigger point. */
|
|
1364
1284
|
configs: {
|
|
1285
|
+
/** Format: uuid */
|
|
1286
|
+
id: string;
|
|
1365
1287
|
name: string;
|
|
1288
|
+
/** @description Empty means global: the entry applies at every trigger point. */
|
|
1289
|
+
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
1290
|
+
experiment_id: number;
|
|
1366
1291
|
}[];
|
|
1292
|
+
/** @description Ordered by campaign priority (scheduled, then always-on) and not deduplicated. For a given UI type, use the first entry whose trigger_points is empty or contains your trigger point. */
|
|
1367
1293
|
uis: ({
|
|
1368
1294
|
type: "header_banner";
|
|
1369
1295
|
/** Format: uuid */
|
|
1370
1296
|
id: string;
|
|
1371
1297
|
experiment_id: number;
|
|
1372
1298
|
match_mode: "include" | "exclude";
|
|
1299
|
+
/** @description Empty means global: the entry applies at every trigger point. */
|
|
1373
1300
|
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
1374
1301
|
offer_ids: string[];
|
|
1375
1302
|
} | {
|
|
@@ -1378,6 +1305,7 @@ export interface operations {
|
|
|
1378
1305
|
id: string;
|
|
1379
1306
|
experiment_id: number;
|
|
1380
1307
|
match_mode: "include" | "exclude";
|
|
1308
|
+
/** @description Empty means global: the entry applies at every trigger point. */
|
|
1381
1309
|
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
1382
1310
|
offer_ids: string[];
|
|
1383
1311
|
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
@@ -1387,6 +1315,7 @@ export interface operations {
|
|
|
1387
1315
|
id: string;
|
|
1388
1316
|
experiment_id: number;
|
|
1389
1317
|
match_mode: "include" | "exclude";
|
|
1318
|
+
/** @description Empty means global: the entry applies at every trigger point. */
|
|
1390
1319
|
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
1391
1320
|
offer_ids: string[];
|
|
1392
1321
|
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|