@luxuryescapes/contract-svc-lab-v2 0.1.11 → 0.1.13

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 +285 -3
  2. package/package.json +1 -1
package/dist/server.d.ts CHANGED
@@ -40,6 +40,10 @@ export interface paths {
40
40
  get: operations["listCampaignConfigs"];
41
41
  put: operations["replaceCampaignConfigs"];
42
42
  };
43
+ "/api/lab/v2/admin/campaigns/{id}/uis": {
44
+ get: operations["listCampaignUis"];
45
+ put: operations["replaceCampaignUis"];
46
+ };
43
47
  "/api/lab/v2/admin/campaigns": {
44
48
  /** List scheduled campaigns for the admin overview */
45
49
  get: operations["listCampaigns"];
@@ -874,6 +878,263 @@ export interface operations {
874
878
  };
875
879
  };
876
880
  };
881
+ listCampaignUis: {
882
+ parameters: {
883
+ path: {
884
+ id: string;
885
+ };
886
+ header: {
887
+ /** Cookie */
888
+ Cookie: string;
889
+ };
890
+ };
891
+ responses: {
892
+ /** 200 response */
893
+ 200: {
894
+ content: {
895
+ "application/json": {
896
+ status: 200;
897
+ message: string;
898
+ result: ({
899
+ type: "header_banner";
900
+ id: number;
901
+ enable: boolean;
902
+ match_mode: "include" | "exclude";
903
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
904
+ offer_ids: string[];
905
+ /** Format: date-time */
906
+ created_at: string;
907
+ /** Format: date-time */
908
+ updated_at: string;
909
+ payload: {
910
+ [key: string]: unknown;
911
+ };
912
+ } | {
913
+ type: "popup";
914
+ id: number;
915
+ enable: boolean;
916
+ match_mode: "include" | "exclude";
917
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
918
+ offer_ids: string[];
919
+ /** Format: date-time */
920
+ created_at: string;
921
+ /** Format: date-time */
922
+ updated_at: string;
923
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
924
+ payload: {
925
+ [key: string]: unknown;
926
+ };
927
+ } | {
928
+ type: "snackbar";
929
+ id: number;
930
+ enable: boolean;
931
+ match_mode: "include" | "exclude";
932
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
933
+ offer_ids: string[];
934
+ /** Format: date-time */
935
+ created_at: string;
936
+ /** Format: date-time */
937
+ updated_at: string;
938
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
939
+ payload: {
940
+ [key: string]: unknown;
941
+ };
942
+ })[];
943
+ };
944
+ };
945
+ };
946
+ /** 400 response */
947
+ 400: {
948
+ content: {
949
+ "application/json": {
950
+ status: 400;
951
+ message: string;
952
+ errors?: {
953
+ message: string;
954
+ path?: string;
955
+ }[];
956
+ };
957
+ };
958
+ };
959
+ /** 404 response */
960
+ 404: {
961
+ content: {
962
+ "application/json": {
963
+ status: 404;
964
+ message: string;
965
+ };
966
+ };
967
+ };
968
+ };
969
+ };
970
+ replaceCampaignUis: {
971
+ parameters: {
972
+ path: {
973
+ id: string;
974
+ };
975
+ header: {
976
+ /** Cookie */
977
+ Cookie: string;
978
+ };
979
+ };
980
+ responses: {
981
+ /** 200 response */
982
+ 200: {
983
+ content: {
984
+ "application/json": {
985
+ status: 200;
986
+ message: string;
987
+ result: ({
988
+ type: "header_banner";
989
+ id: number;
990
+ enable: boolean;
991
+ match_mode: "include" | "exclude";
992
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
993
+ offer_ids: string[];
994
+ /** Format: date-time */
995
+ created_at: string;
996
+ /** Format: date-time */
997
+ updated_at: string;
998
+ payload: {
999
+ [key: string]: unknown;
1000
+ };
1001
+ } | {
1002
+ type: "popup";
1003
+ id: number;
1004
+ enable: boolean;
1005
+ match_mode: "include" | "exclude";
1006
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1007
+ offer_ids: string[];
1008
+ /** Format: date-time */
1009
+ created_at: string;
1010
+ /** Format: date-time */
1011
+ updated_at: string;
1012
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1013
+ payload: {
1014
+ [key: string]: unknown;
1015
+ };
1016
+ } | {
1017
+ type: "snackbar";
1018
+ id: number;
1019
+ enable: boolean;
1020
+ match_mode: "include" | "exclude";
1021
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1022
+ offer_ids: string[];
1023
+ /** Format: date-time */
1024
+ created_at: string;
1025
+ /** Format: date-time */
1026
+ updated_at: string;
1027
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1028
+ payload: {
1029
+ [key: string]: unknown;
1030
+ };
1031
+ })[];
1032
+ };
1033
+ };
1034
+ };
1035
+ /** 400 response */
1036
+ 400: {
1037
+ content: {
1038
+ "application/json": {
1039
+ status: 400;
1040
+ message: string;
1041
+ errors?: {
1042
+ message: string;
1043
+ path?: string;
1044
+ }[];
1045
+ };
1046
+ };
1047
+ };
1048
+ /** 404 response */
1049
+ 404: {
1050
+ content: {
1051
+ "application/json": {
1052
+ status: 404;
1053
+ message: string;
1054
+ };
1055
+ };
1056
+ };
1057
+ };
1058
+ /** payload */
1059
+ requestBody: {
1060
+ content: {
1061
+ "application/json": {
1062
+ uis: ({
1063
+ type: "header_banner";
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
+ payload: {
1069
+ kind: "default" | "informational-primary" | "promotional-primary" | "promotional-primary-accent" | "promotional-secondary" | "success" | "warning" | "critical" | "lux-plus";
1070
+ isCustomAppearance: boolean;
1071
+ textColor: string;
1072
+ ctaPrimaryTextColor: string;
1073
+ description: {
1074
+ desktop: string;
1075
+ mobile?: string;
1076
+ };
1077
+ background: {
1078
+ mode: "solid";
1079
+ value: string;
1080
+ };
1081
+ isLuxPlusBanner: boolean;
1082
+ cta?: {
1083
+ desktop?: {
1084
+ label: string;
1085
+ path: string;
1086
+ style: "primary" | "secondary" | "tertiary";
1087
+ };
1088
+ mobile?: {
1089
+ label: string;
1090
+ path: string;
1091
+ style: "primary" | "secondary" | "tertiary";
1092
+ };
1093
+ };
1094
+ iconImageId?: string;
1095
+ };
1096
+ } | {
1097
+ type: "popup";
1098
+ enable: boolean;
1099
+ match_mode: "include" | "exclude";
1100
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1101
+ offer_ids: string[];
1102
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1103
+ payload: {
1104
+ style: "light" | "dark";
1105
+ content: {
1106
+ title: string;
1107
+ description?: string;
1108
+ imageId?: string;
1109
+ tag?: {
1110
+ text: string;
1111
+ variant: "lux-plus" | "dark" | "highlight" | "urgency" | "exclusive";
1112
+ };
1113
+ primaryCta?: {
1114
+ label: string;
1115
+ path: string;
1116
+ };
1117
+ secondaryCta?: {
1118
+ label: string;
1119
+ path: string;
1120
+ };
1121
+ };
1122
+ };
1123
+ } | {
1124
+ type: "snackbar";
1125
+ enable: boolean;
1126
+ match_mode: "include" | "exclude";
1127
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1128
+ offer_ids: string[];
1129
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1130
+ payload: {
1131
+ [key: string]: unknown;
1132
+ };
1133
+ })[];
1134
+ };
1135
+ };
1136
+ };
1137
+ };
877
1138
  /** List scheduled campaigns for the admin overview */
878
1139
  listCampaigns: {
879
1140
  parameters: {
@@ -1048,18 +1309,39 @@ export interface operations {
1048
1309
  [key: string]: unknown;
1049
1310
  };
1050
1311
  }[];
1051
- uis: {
1312
+ uis: ({
1313
+ type: "header_banner";
1052
1314
  id: number;
1053
1315
  experiment_id: number;
1054
- type: "header_banner" | "popup" | "snackbar";
1316
+ match_mode: "include" | "exclude";
1317
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1318
+ offer_ids: string[];
1319
+ payload: {
1320
+ [key: string]: unknown;
1321
+ };
1322
+ } | {
1323
+ type: "popup";
1324
+ id: number;
1325
+ experiment_id: number;
1326
+ match_mode: "include" | "exclude";
1327
+ trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1328
+ offer_ids: string[];
1055
1329
  display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1330
+ payload: {
1331
+ [key: string]: unknown;
1332
+ };
1333
+ } | {
1334
+ type: "snackbar";
1335
+ id: number;
1336
+ experiment_id: number;
1056
1337
  match_mode: "include" | "exclude";
1057
1338
  trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1058
1339
  offer_ids: string[];
1340
+ display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1059
1341
  payload: {
1060
1342
  [key: string]: unknown;
1061
1343
  };
1062
- }[];
1344
+ })[];
1063
1345
  };
1064
1346
  };
1065
1347
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxuryescapes/contract-svc-lab-v2",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "files": [