@luxuryescapes/contract-svc-lab-v2 0.1.39 → 0.1.41
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 +2 -97
- package/package.json +1 -1
package/dist/server.d.ts
CHANGED
|
@@ -131,11 +131,6 @@ export interface components {
|
|
|
131
131
|
style: "light" | "dark";
|
|
132
132
|
content: components["schemas"]["PopupContent"];
|
|
133
133
|
};
|
|
134
|
-
SnackbarPayload: {
|
|
135
|
-
kind: "neutral" | "warning" | "success" | "critical";
|
|
136
|
-
"heading-i18n": string;
|
|
137
|
-
"description-i18n": string;
|
|
138
|
-
};
|
|
139
134
|
};
|
|
140
135
|
}
|
|
141
136
|
export interface operations {
|
|
@@ -827,9 +822,6 @@ export interface operations {
|
|
|
827
822
|
/** Format: uuid */
|
|
828
823
|
id: string;
|
|
829
824
|
enable: boolean;
|
|
830
|
-
match_mode: "include" | "exclude";
|
|
831
|
-
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
832
|
-
offer_ids: string[];
|
|
833
825
|
/** Format: date-time */
|
|
834
826
|
created_at: string;
|
|
835
827
|
/** Format: date-time */
|
|
@@ -840,29 +832,12 @@ export interface operations {
|
|
|
840
832
|
/** Format: uuid */
|
|
841
833
|
id: string;
|
|
842
834
|
enable: boolean;
|
|
843
|
-
match_mode: "include" | "exclude";
|
|
844
|
-
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
845
|
-
offer_ids: string[];
|
|
846
835
|
/** Format: date-time */
|
|
847
836
|
created_at: string;
|
|
848
837
|
/** Format: date-time */
|
|
849
838
|
updated_at: string;
|
|
850
839
|
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
851
840
|
payload: components["schemas"]["PopupPayload"];
|
|
852
|
-
} | {
|
|
853
|
-
type: "snackbar";
|
|
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"]["SnackbarPayload"];
|
|
866
841
|
})[];
|
|
867
842
|
};
|
|
868
843
|
};
|
|
@@ -926,9 +901,6 @@ export interface operations {
|
|
|
926
901
|
/** Format: uuid */
|
|
927
902
|
id: string;
|
|
928
903
|
enable: boolean;
|
|
929
|
-
match_mode: "include" | "exclude";
|
|
930
|
-
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
931
|
-
offer_ids: string[];
|
|
932
904
|
/** Format: date-time */
|
|
933
905
|
created_at: string;
|
|
934
906
|
/** Format: date-time */
|
|
@@ -939,29 +911,12 @@ export interface operations {
|
|
|
939
911
|
/** Format: uuid */
|
|
940
912
|
id: string;
|
|
941
913
|
enable: boolean;
|
|
942
|
-
match_mode: "include" | "exclude";
|
|
943
|
-
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
944
|
-
offer_ids: string[];
|
|
945
914
|
/** Format: date-time */
|
|
946
915
|
created_at: string;
|
|
947
916
|
/** Format: date-time */
|
|
948
917
|
updated_at: string;
|
|
949
918
|
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
950
919
|
payload: components["schemas"]["PopupPayload"];
|
|
951
|
-
} | {
|
|
952
|
-
type: "snackbar";
|
|
953
|
-
/** Format: uuid */
|
|
954
|
-
id: string;
|
|
955
|
-
enable: boolean;
|
|
956
|
-
match_mode: "include" | "exclude";
|
|
957
|
-
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
958
|
-
offer_ids: string[];
|
|
959
|
-
/** Format: date-time */
|
|
960
|
-
created_at: string;
|
|
961
|
-
/** Format: date-time */
|
|
962
|
-
updated_at: string;
|
|
963
|
-
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
964
|
-
payload: components["schemas"]["SnackbarPayload"];
|
|
965
920
|
})[];
|
|
966
921
|
};
|
|
967
922
|
};
|
|
@@ -1005,26 +960,12 @@ export interface operations {
|
|
|
1005
960
|
uis: ({
|
|
1006
961
|
type: "header_banner";
|
|
1007
962
|
enable: boolean;
|
|
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
963
|
payload: components["schemas"]["HeaderBannerPayload"];
|
|
1012
964
|
} | {
|
|
1013
965
|
type: "popup";
|
|
1014
966
|
enable: boolean;
|
|
1015
|
-
match_mode: "include" | "exclude";
|
|
1016
|
-
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
1017
|
-
offer_ids: string[];
|
|
1018
967
|
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
1019
968
|
payload: components["schemas"]["PopupPayload"];
|
|
1020
|
-
} | {
|
|
1021
|
-
type: "snackbar";
|
|
1022
|
-
enable: boolean;
|
|
1023
|
-
match_mode: "include" | "exclude";
|
|
1024
|
-
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
1025
|
-
offer_ids: string[];
|
|
1026
|
-
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
1027
|
-
payload: components["schemas"]["SnackbarPayload"];
|
|
1028
969
|
})[];
|
|
1029
970
|
};
|
|
1030
971
|
};
|
|
@@ -1585,12 +1526,6 @@ export interface operations {
|
|
|
1585
1526
|
kind: "ui";
|
|
1586
1527
|
type: "popup";
|
|
1587
1528
|
payload: components["schemas"]["PopupPayload"];
|
|
1588
|
-
} | {
|
|
1589
|
-
/** Format: uuid */
|
|
1590
|
-
id: string;
|
|
1591
|
-
kind: "ui";
|
|
1592
|
-
type: "snackbar";
|
|
1593
|
-
payload: components["schemas"]["SnackbarPayload"];
|
|
1594
1529
|
};
|
|
1595
1530
|
};
|
|
1596
1531
|
};
|
|
@@ -1641,12 +1576,6 @@ export interface operations {
|
|
|
1641
1576
|
kind: "ui";
|
|
1642
1577
|
type: "popup";
|
|
1643
1578
|
payload: components["schemas"]["PopupPayload"];
|
|
1644
|
-
} | {
|
|
1645
|
-
/** Format: uuid */
|
|
1646
|
-
id: string;
|
|
1647
|
-
kind: "ui";
|
|
1648
|
-
type: "snackbar";
|
|
1649
|
-
payload: components["schemas"]["SnackbarPayload"];
|
|
1650
1579
|
})[];
|
|
1651
1580
|
};
|
|
1652
1581
|
};
|
|
@@ -1701,12 +1630,6 @@ export interface operations {
|
|
|
1701
1630
|
kind: "ui";
|
|
1702
1631
|
type: "popup";
|
|
1703
1632
|
payload: components["schemas"]["PopupPayload"];
|
|
1704
|
-
} | {
|
|
1705
|
-
/** Format: uuid */
|
|
1706
|
-
id: string;
|
|
1707
|
-
kind: "ui";
|
|
1708
|
-
type: "snackbar";
|
|
1709
|
-
payload: components["schemas"]["SnackbarPayload"];
|
|
1710
1633
|
};
|
|
1711
1634
|
};
|
|
1712
1635
|
};
|
|
@@ -1805,7 +1728,7 @@ export interface operations {
|
|
|
1805
1728
|
"application/json": {
|
|
1806
1729
|
status: 200;
|
|
1807
1730
|
message: string;
|
|
1808
|
-
/** @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
|
|
1731
|
+
/** @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 and other configs in the browser on demand. */
|
|
1809
1732
|
result: {
|
|
1810
1733
|
/** @description Keyed by config name. Each name maps to the config of the highest-priority campaign (scheduled, then always-on) that has it. A missing name means no config applies. */
|
|
1811
1734
|
configs: {
|
|
@@ -1815,35 +1738,17 @@ export interface operations {
|
|
|
1815
1738
|
experiment_id: number;
|
|
1816
1739
|
};
|
|
1817
1740
|
};
|
|
1818
|
-
/** @description Ordered by campaign priority (scheduled, then always-on) and not deduplicated. For header_banner, show every entry
|
|
1741
|
+
/** @description Ordered by campaign priority (scheduled, then always-on) and not deduplicated. For header_banner, show every entry, in this order. For popup, use the first entry. */
|
|
1819
1742
|
uis: ({
|
|
1820
1743
|
type: "header_banner";
|
|
1821
1744
|
/** Format: uuid */
|
|
1822
1745
|
id: string;
|
|
1823
1746
|
experiment_id: number;
|
|
1824
|
-
match_mode: "include" | "exclude";
|
|
1825
|
-
/** @description Empty means global: the entry applies at every trigger point. */
|
|
1826
|
-
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
1827
|
-
offer_ids: string[];
|
|
1828
1747
|
} | {
|
|
1829
1748
|
type: "popup";
|
|
1830
1749
|
/** Format: uuid */
|
|
1831
1750
|
id: string;
|
|
1832
1751
|
experiment_id: number;
|
|
1833
|
-
match_mode: "include" | "exclude";
|
|
1834
|
-
/** @description Empty means global: the entry applies at every trigger point. */
|
|
1835
|
-
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
1836
|
-
offer_ids: string[];
|
|
1837
|
-
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
1838
|
-
} | {
|
|
1839
|
-
type: "snackbar";
|
|
1840
|
-
/** Format: uuid */
|
|
1841
|
-
id: string;
|
|
1842
|
-
experiment_id: number;
|
|
1843
|
-
match_mode: "include" | "exclude";
|
|
1844
|
-
/** @description Empty means global: the entry applies at every trigger point. */
|
|
1845
|
-
trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
|
|
1846
|
-
offer_ids: string[];
|
|
1847
1752
|
display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
|
|
1848
1753
|
})[];
|
|
1849
1754
|
};
|