@luxuryescapes/contract-svc-lab-v2 0.1.10 → 0.1.12
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 +185 -0
- package/package.json +4 -5
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"];
|
|
@@ -559,6 +563,14 @@ export interface operations {
|
|
|
559
563
|
enable: boolean;
|
|
560
564
|
rollout: number;
|
|
561
565
|
seed: number;
|
|
566
|
+
targeting_conditions: {
|
|
567
|
+
[key: string]: unknown;
|
|
568
|
+
} | null;
|
|
569
|
+
audience_targeting_join: boolean;
|
|
570
|
+
audiences: {
|
|
571
|
+
id: number;
|
|
572
|
+
is_exclude: boolean;
|
|
573
|
+
}[];
|
|
562
574
|
schedule: {
|
|
563
575
|
/** Format: date-time */
|
|
564
576
|
starts_at: string | null;
|
|
@@ -622,6 +634,14 @@ export interface operations {
|
|
|
622
634
|
enable: boolean;
|
|
623
635
|
rollout: number;
|
|
624
636
|
seed: number;
|
|
637
|
+
targeting_conditions: {
|
|
638
|
+
[key: string]: unknown;
|
|
639
|
+
} | null;
|
|
640
|
+
audience_targeting_join: boolean;
|
|
641
|
+
audiences: {
|
|
642
|
+
id: number;
|
|
643
|
+
is_exclude: boolean;
|
|
644
|
+
}[];
|
|
625
645
|
schedule: {
|
|
626
646
|
/** Format: date-time */
|
|
627
647
|
starts_at: string | null;
|
|
@@ -673,6 +693,14 @@ export interface operations {
|
|
|
673
693
|
ends_at: string | null;
|
|
674
694
|
timezone: string;
|
|
675
695
|
};
|
|
696
|
+
targeting_conditions: {
|
|
697
|
+
[key: string]: unknown;
|
|
698
|
+
} | null;
|
|
699
|
+
audience_targeting_join: boolean;
|
|
700
|
+
audiences: {
|
|
701
|
+
id: number;
|
|
702
|
+
is_exclude: boolean;
|
|
703
|
+
}[];
|
|
676
704
|
};
|
|
677
705
|
};
|
|
678
706
|
};
|
|
@@ -850,6 +878,144 @@ export interface operations {
|
|
|
850
878
|
};
|
|
851
879
|
};
|
|
852
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
|
+
id: number;
|
|
900
|
+
type: "header_banner" | "popup" | "snackbar";
|
|
901
|
+
enable: boolean;
|
|
902
|
+
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
903
|
+
match_mode: "include" | "exclude";
|
|
904
|
+
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
905
|
+
offer_ids: string[];
|
|
906
|
+
payload: {
|
|
907
|
+
[key: string]: unknown;
|
|
908
|
+
};
|
|
909
|
+
/** Format: date-time */
|
|
910
|
+
created_at: string;
|
|
911
|
+
/** Format: date-time */
|
|
912
|
+
updated_at: string;
|
|
913
|
+
}[];
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
/** 400 response */
|
|
918
|
+
400: {
|
|
919
|
+
content: {
|
|
920
|
+
"application/json": {
|
|
921
|
+
status: 400;
|
|
922
|
+
message: string;
|
|
923
|
+
errors?: {
|
|
924
|
+
message: string;
|
|
925
|
+
path?: string;
|
|
926
|
+
}[];
|
|
927
|
+
};
|
|
928
|
+
};
|
|
929
|
+
};
|
|
930
|
+
/** 404 response */
|
|
931
|
+
404: {
|
|
932
|
+
content: {
|
|
933
|
+
"application/json": {
|
|
934
|
+
status: 404;
|
|
935
|
+
message: string;
|
|
936
|
+
};
|
|
937
|
+
};
|
|
938
|
+
};
|
|
939
|
+
};
|
|
940
|
+
};
|
|
941
|
+
replaceCampaignUis: {
|
|
942
|
+
parameters: {
|
|
943
|
+
path: {
|
|
944
|
+
id: string;
|
|
945
|
+
};
|
|
946
|
+
header: {
|
|
947
|
+
/** Cookie */
|
|
948
|
+
Cookie: string;
|
|
949
|
+
};
|
|
950
|
+
};
|
|
951
|
+
responses: {
|
|
952
|
+
/** 200 response */
|
|
953
|
+
200: {
|
|
954
|
+
content: {
|
|
955
|
+
"application/json": {
|
|
956
|
+
status: 200;
|
|
957
|
+
message: string;
|
|
958
|
+
result: {
|
|
959
|
+
id: number;
|
|
960
|
+
type: "header_banner" | "popup" | "snackbar";
|
|
961
|
+
enable: boolean;
|
|
962
|
+
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
963
|
+
match_mode: "include" | "exclude";
|
|
964
|
+
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
965
|
+
offer_ids: string[];
|
|
966
|
+
payload: {
|
|
967
|
+
[key: string]: unknown;
|
|
968
|
+
};
|
|
969
|
+
/** Format: date-time */
|
|
970
|
+
created_at: string;
|
|
971
|
+
/** Format: date-time */
|
|
972
|
+
updated_at: string;
|
|
973
|
+
}[];
|
|
974
|
+
};
|
|
975
|
+
};
|
|
976
|
+
};
|
|
977
|
+
/** 400 response */
|
|
978
|
+
400: {
|
|
979
|
+
content: {
|
|
980
|
+
"application/json": {
|
|
981
|
+
status: 400;
|
|
982
|
+
message: string;
|
|
983
|
+
errors?: {
|
|
984
|
+
message: string;
|
|
985
|
+
path?: string;
|
|
986
|
+
}[];
|
|
987
|
+
};
|
|
988
|
+
};
|
|
989
|
+
};
|
|
990
|
+
/** 404 response */
|
|
991
|
+
404: {
|
|
992
|
+
content: {
|
|
993
|
+
"application/json": {
|
|
994
|
+
status: 404;
|
|
995
|
+
message: string;
|
|
996
|
+
};
|
|
997
|
+
};
|
|
998
|
+
};
|
|
999
|
+
};
|
|
1000
|
+
/** payload */
|
|
1001
|
+
requestBody: {
|
|
1002
|
+
content: {
|
|
1003
|
+
"application/json": {
|
|
1004
|
+
uis: {
|
|
1005
|
+
type: "header_banner" | "popup" | "snackbar";
|
|
1006
|
+
enable: boolean;
|
|
1007
|
+
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
1008
|
+
match_mode: "include" | "exclude";
|
|
1009
|
+
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
1010
|
+
offer_ids: string[];
|
|
1011
|
+
payload: {
|
|
1012
|
+
[key: string]: unknown;
|
|
1013
|
+
};
|
|
1014
|
+
}[];
|
|
1015
|
+
};
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
1018
|
+
};
|
|
853
1019
|
/** List scheduled campaigns for the admin overview */
|
|
854
1020
|
listCampaigns: {
|
|
855
1021
|
parameters: {
|
|
@@ -884,6 +1050,14 @@ export interface operations {
|
|
|
884
1050
|
enable: boolean;
|
|
885
1051
|
rollout: number;
|
|
886
1052
|
seed: number;
|
|
1053
|
+
targeting_conditions: {
|
|
1054
|
+
[key: string]: unknown;
|
|
1055
|
+
} | null;
|
|
1056
|
+
audience_targeting_join: boolean;
|
|
1057
|
+
audiences: {
|
|
1058
|
+
id: number;
|
|
1059
|
+
is_exclude: boolean;
|
|
1060
|
+
}[];
|
|
887
1061
|
schedule: {
|
|
888
1062
|
/** Format: date-time */
|
|
889
1063
|
starts_at: string | null;
|
|
@@ -943,6 +1117,14 @@ export interface operations {
|
|
|
943
1117
|
enable: boolean;
|
|
944
1118
|
rollout: number;
|
|
945
1119
|
seed: number;
|
|
1120
|
+
targeting_conditions: {
|
|
1121
|
+
[key: string]: unknown;
|
|
1122
|
+
} | null;
|
|
1123
|
+
audience_targeting_join: boolean;
|
|
1124
|
+
audiences: {
|
|
1125
|
+
id: number;
|
|
1126
|
+
is_exclude: boolean;
|
|
1127
|
+
}[];
|
|
946
1128
|
schedule: {
|
|
947
1129
|
/** Format: date-time */
|
|
948
1130
|
starts_at: string | null;
|
|
@@ -978,6 +1160,9 @@ export interface operations {
|
|
|
978
1160
|
"application/json": {
|
|
979
1161
|
name: string;
|
|
980
1162
|
priority?: number;
|
|
1163
|
+
targeting_conditions?: {
|
|
1164
|
+
[key: string]: unknown;
|
|
1165
|
+
} | null;
|
|
981
1166
|
schedule?: {
|
|
982
1167
|
/** Format: date-time */
|
|
983
1168
|
starts_at?: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luxuryescapes/contract-svc-lab-v2",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
"typescript": "^7.0.2"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
|
-
"build": "tsc --project ./tsconfig.build.json",
|
|
19
|
-
"
|
|
20
|
-
"prepublishOnly": "yarn install && yarn build"
|
|
18
|
+
"build": "rimraf dist && tsc --project ./tsconfig.build.json",
|
|
19
|
+
"prepack": "yarn build"
|
|
21
20
|
}
|
|
22
|
-
}
|
|
21
|
+
}
|