@luxuryescapes/contract-svc-lab-v2 0.1.12 → 0.1.14

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.
Files changed (2) hide show
  1. package/dist/server.d.ts +157 -15
  2. package/package.json +1 -1
package/dist/server.d.ts CHANGED
@@ -55,7 +55,55 @@ export interface paths {
55
55
  };
56
56
  }
57
57
  export interface components {
58
- schemas: {};
58
+ schemas: {
59
+ HeaderBannerDescription: {
60
+ desktop: string;
61
+ mobile?: string;
62
+ };
63
+ HeaderBannerBackground: {
64
+ mode: "solid";
65
+ value: string;
66
+ };
67
+ HeaderBannerCta: {
68
+ label: string;
69
+ path: string;
70
+ style: "primary" | "secondary" | "tertiary";
71
+ };
72
+ HeaderBannerPayload: {
73
+ kind: "default" | "informational-primary" | "promotional-primary" | "promotional-primary-accent" | "promotional-secondary" | "success" | "warning" | "critical" | "lux-plus";
74
+ isCustomAppearance: boolean;
75
+ textColor: string;
76
+ ctaPrimaryTextColor: string;
77
+ description: components["schemas"]["HeaderBannerDescription"];
78
+ background: components["schemas"]["HeaderBannerBackground"];
79
+ isLuxPlusBanner: boolean;
80
+ cta?: {
81
+ desktop?: components["schemas"]["HeaderBannerCta"];
82
+ mobile?: components["schemas"]["HeaderBannerCta"];
83
+ };
84
+ iconImageId?: string;
85
+ };
86
+ PopupTag: {
87
+ text: string;
88
+ variant: "lux-plus" | "dark" | "highlight" | "urgency" | "exclusive";
89
+ };
90
+ PopupCta: {
91
+ label: string;
92
+ path: string;
93
+ };
94
+ PopupContent: {
95
+ title: string;
96
+ description?: string;
97
+ imageId?: string;
98
+ tag?: components["schemas"]["PopupTag"];
99
+ primaryCta?: components["schemas"]["PopupCta"];
100
+ secondaryCta?: components["schemas"]["PopupCta"];
101
+ };
102
+ PopupPayload: {
103
+ style: "light" | "dark";
104
+ content: components["schemas"]["PopupContent"];
105
+ };
106
+ };
59
107
  }
60
108
  export interface operations {
61
109
  /** List audiences with offset pagination, name filter, and sorting */
@@ -895,22 +943,51 @@ export interface operations {
895
943
  "application/json": {
896
944
  status: 200;
897
945
  message: string;
898
- result: {
946
+ result: ({
947
+ type: "header_banner";
899
948
  id: number;
900
- type: "header_banner" | "popup" | "snackbar";
901
949
  enable: boolean;
902
- display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
903
950
  match_mode: "include" | "exclude";
904
951
  trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
905
952
  offer_ids: string[];
953
+ /** Format: date-time */
954
+ created_at: string;
955
+ /** Format: date-time */
956
+ updated_at: string;
906
957
  payload: {
907
958
  [key: string]: unknown;
908
959
  };
960
+ } | {
961
+ type: "popup";
962
+ id: number;
963
+ enable: boolean;
964
+ match_mode: "include" | "exclude";
965
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
966
+ offer_ids: string[];
909
967
  /** Format: date-time */
910
968
  created_at: string;
911
969
  /** Format: date-time */
912
970
  updated_at: string;
913
- }[];
971
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
972
+ payload: {
973
+ [key: string]: unknown;
974
+ };
975
+ } | {
976
+ type: "snackbar";
977
+ id: number;
978
+ enable: boolean;
979
+ match_mode: "include" | "exclude";
980
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
981
+ offer_ids: string[];
982
+ /** Format: date-time */
983
+ created_at: string;
984
+ /** Format: date-time */
985
+ updated_at: string;
986
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
987
+ payload: {
988
+ [key: string]: unknown;
989
+ };
990
+ })[];
914
991
  };
915
992
  };
916
993
  };
@@ -955,22 +1032,51 @@ export interface operations {
955
1032
  "application/json": {
956
1033
  status: 200;
957
1034
  message: string;
958
- result: {
1035
+ result: ({
1036
+ type: "header_banner";
959
1037
  id: number;
960
- type: "header_banner" | "popup" | "snackbar";
961
1038
  enable: boolean;
962
- display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
963
1039
  match_mode: "include" | "exclude";
964
1040
  trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
965
1041
  offer_ids: string[];
1042
+ /** Format: date-time */
1043
+ created_at: string;
1044
+ /** Format: date-time */
1045
+ updated_at: string;
966
1046
  payload: {
967
1047
  [key: string]: unknown;
968
1048
  };
1049
+ } | {
1050
+ type: "popup";
1051
+ id: number;
1052
+ enable: boolean;
1053
+ match_mode: "include" | "exclude";
1054
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1055
+ offer_ids: string[];
969
1056
  /** Format: date-time */
970
1057
  created_at: string;
971
1058
  /** Format: date-time */
972
1059
  updated_at: string;
973
- }[];
1060
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1061
+ payload: {
1062
+ [key: string]: unknown;
1063
+ };
1064
+ } | {
1065
+ type: "snackbar";
1066
+ id: number;
1067
+ enable: boolean;
1068
+ match_mode: "include" | "exclude";
1069
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1070
+ offer_ids: string[];
1071
+ /** Format: date-time */
1072
+ created_at: string;
1073
+ /** Format: date-time */
1074
+ updated_at: string;
1075
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1076
+ payload: {
1077
+ [key: string]: unknown;
1078
+ };
1079
+ })[];
974
1080
  };
975
1081
  };
976
1082
  };
@@ -1001,17 +1107,32 @@ export interface operations {
1001
1107
  requestBody: {
1002
1108
  content: {
1003
1109
  "application/json": {
1004
- uis: {
1005
- type: "header_banner" | "popup" | "snackbar";
1110
+ uis: ({
1111
+ type: "header_banner";
1112
+ enable: boolean;
1113
+ match_mode: "include" | "exclude";
1114
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1115
+ offer_ids: string[];
1116
+ payload: components["schemas"]["HeaderBannerPayload"];
1117
+ } | {
1118
+ type: "popup";
1006
1119
  enable: boolean;
1120
+ match_mode: "include" | "exclude";
1121
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1122
+ offer_ids: string[];
1007
1123
  display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1124
+ payload: components["schemas"]["PopupPayload"];
1125
+ } | {
1126
+ type: "snackbar";
1127
+ enable: boolean;
1008
1128
  match_mode: "include" | "exclude";
1009
1129
  trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1010
1130
  offer_ids: string[];
1131
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1011
1132
  payload: {
1012
1133
  [key: string]: unknown;
1013
1134
  };
1014
- }[];
1135
+ })[];
1015
1136
  };
1016
1137
  };
1017
1138
  };
@@ -1190,18 +1311,39 @@ export interface operations {
1190
1311
  [key: string]: unknown;
1191
1312
  };
1192
1313
  }[];
1193
- uis: {
1314
+ uis: ({
1315
+ type: "header_banner";
1194
1316
  id: number;
1195
1317
  experiment_id: number;
1196
- type: "header_banner" | "popup" | "snackbar";
1318
+ match_mode: "include" | "exclude";
1319
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1320
+ offer_ids: string[];
1321
+ payload: {
1322
+ [key: string]: unknown;
1323
+ };
1324
+ } | {
1325
+ type: "popup";
1326
+ id: number;
1327
+ experiment_id: number;
1328
+ match_mode: "include" | "exclude";
1329
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1330
+ offer_ids: string[];
1197
1331
  display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1332
+ payload: {
1333
+ [key: string]: unknown;
1334
+ };
1335
+ } | {
1336
+ type: "snackbar";
1337
+ id: number;
1338
+ experiment_id: number;
1198
1339
  match_mode: "include" | "exclude";
1199
1340
  trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1200
1341
  offer_ids: string[];
1342
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1201
1343
  payload: {
1202
1344
  [key: string]: unknown;
1203
1345
  };
1204
- }[];
1346
+ })[];
1205
1347
  };
1206
1348
  };
1207
1349
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxuryescapes/contract-svc-lab-v2",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "files": [