@luxuryescapes/contract-svc-lab-v2 0.1.35 → 0.1.37

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 +11 -11
  2. package/package.json +1 -1
package/dist/server.d.ts CHANGED
@@ -59,7 +59,7 @@ export interface paths {
59
59
  post: operations["createFeatureFlag"];
60
60
  };
61
61
  "/api/lab/v2/items/{id}": {
62
- /** Public and identical for every user, so CDN-cacheable. Ids that evaluate cannot return (unknown, disabled, or of a campaign that is not live) get 404. */
62
+ /** Public and the same for every user of a language, so CDN-cacheable with `Vary: Accept-Language`. Every string under a key ending in `-i18n` is translated into the first `Accept-Language` language, except English other than `en-US`; `Content-Language` names the language served. Until every string has a translation the payload is served in English and cached briefly. Ids that evaluate cannot return (unknown, disabled, or of a campaign that is not live) get 404. */
63
63
  get: operations["getItemPayload"];
64
64
  };
65
65
  "/api/lab/v2/preview/campaigns/{id}": {
@@ -85,15 +85,15 @@ export interface paths {
85
85
  export interface components {
86
86
  schemas: {
87
87
  HeaderBannerDescription: {
88
- desktop: string;
89
- mobile?: string;
88
+ "desktop-i18n": string;
89
+ "mobile-i18n"?: string;
90
90
  };
91
91
  HeaderBannerBackground: {
92
92
  mode: "solid";
93
93
  value: string;
94
94
  };
95
95
  HeaderBannerCta: {
96
- label: string;
96
+ "label-i18n": string;
97
97
  path: string;
98
98
  style: "primary" | "secondary" | "tertiary";
99
99
  };
@@ -112,16 +112,16 @@ export interface components {
112
112
  iconImageId?: string;
113
113
  };
114
114
  PopupTag: {
115
- text: string;
115
+ "text-i18n": string;
116
116
  variant: "lux-plus" | "dark" | "highlight" | "urgency" | "exclusive";
117
117
  };
118
118
  PopupCta: {
119
- label: string;
119
+ "label-i18n": string;
120
120
  path: string;
121
121
  };
122
122
  PopupContent: {
123
- title: string;
124
- description?: string;
123
+ "title-i18n": string;
124
+ "description-i18n"?: string;
125
125
  imageId?: string;
126
126
  tag?: components["schemas"]["PopupTag"];
127
127
  primaryCta?: components["schemas"]["PopupCta"];
@@ -133,8 +133,8 @@ export interface components {
133
133
  };
134
134
  SnackbarPayload: {
135
135
  kind: "neutral" | "warning" | "success" | "critical";
136
- heading: string;
137
- description: string;
136
+ "heading-i18n": string;
137
+ "description-i18n": string;
138
138
  };
139
139
  };
140
140
  }
@@ -1552,7 +1552,7 @@ export interface operations {
1552
1552
  };
1553
1553
  };
1554
1554
  };
1555
- /** Public and identical for every user, so CDN-cacheable. Ids that evaluate cannot return (unknown, disabled, or of a campaign that is not live) get 404. */
1555
+ /** Public and the same for every user of a language, so CDN-cacheable with `Vary: Accept-Language`. Every string under a key ending in `-i18n` is translated into the first `Accept-Language` language, except English other than `en-US`; `Content-Language` names the language served. Until every string has a translation the payload is served in English and cached briefly. Ids that evaluate cannot return (unknown, disabled, or of a campaign that is not live) get 404. */
1556
1556
  getItemPayload: {
1557
1557
  parameters: {
1558
1558
  path: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxuryescapes/contract-svc-lab-v2",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "files": [