@luxuryescapes/contract-svc-lab-v2 0.1.25 → 0.1.26

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 +64 -0
  2. package/package.json +4 -1
package/dist/server.d.ts CHANGED
@@ -51,6 +51,10 @@ export interface paths {
51
51
  /** 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. */
52
52
  get: operations["getItemPayload"];
53
53
  };
54
+ "/api/lab/v2/preview/ui/{id}": {
55
+ /** Public. Returns the latest saved UI payload without checking enabled state, campaign schedule, targeting, or rollout. Cached for 30 seconds in browsers and shared caches. */
56
+ get: operations["getPreviewUi"];
57
+ };
54
58
  "/api/lab/v2/admin/audiences/{id}/member-deletions": {
55
59
  /** Delete up to 10000 members by user_id. A user_id that is not a member is counted as deleted. */
56
60
  post: operations["deleteAudienceMembers"];
@@ -1205,6 +1209,66 @@ export interface operations {
1205
1209
  };
1206
1210
  };
1207
1211
  };
1212
+ /** Public. Returns the latest saved UI payload without checking enabled state, campaign schedule, targeting, or rollout. Cached for 30 seconds in browsers and shared caches. */
1213
+ getPreviewUi: {
1214
+ parameters: {
1215
+ path: {
1216
+ id: string;
1217
+ };
1218
+ };
1219
+ responses: {
1220
+ /** 200 response */
1221
+ 200: {
1222
+ content: {
1223
+ "application/json": {
1224
+ status: 200;
1225
+ message: string;
1226
+ result: {
1227
+ /** Format: uuid */
1228
+ id: string;
1229
+ kind: "ui";
1230
+ type: "header_banner";
1231
+ payload: components["schemas"]["HeaderBannerPayload"];
1232
+ } | {
1233
+ /** Format: uuid */
1234
+ id: string;
1235
+ kind: "ui";
1236
+ type: "popup";
1237
+ payload: components["schemas"]["PopupPayload"];
1238
+ } | {
1239
+ /** Format: uuid */
1240
+ id: string;
1241
+ kind: "ui";
1242
+ type: "snackbar";
1243
+ payload: components["schemas"]["SnackbarPayload"];
1244
+ };
1245
+ };
1246
+ };
1247
+ };
1248
+ /** 400 response */
1249
+ 400: {
1250
+ content: {
1251
+ "application/json": {
1252
+ status: 400;
1253
+ message: string;
1254
+ errors?: {
1255
+ message: string;
1256
+ path?: string;
1257
+ }[];
1258
+ };
1259
+ };
1260
+ };
1261
+ /** 404 response */
1262
+ 404: {
1263
+ content: {
1264
+ "application/json": {
1265
+ status: 404;
1266
+ message: string;
1267
+ };
1268
+ };
1269
+ };
1270
+ };
1271
+ };
1208
1272
  /** Delete up to 10000 members by user_id. A user_id that is not a member is counted as deleted. */
1209
1273
  deleteAudienceMembers: {
1210
1274
  parameters: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxuryescapes/contract-svc-lab-v2",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "files": [
@@ -17,5 +17,8 @@
17
17
  "scripts": {
18
18
  "build": "rimraf dist && tsc --project ./tsconfig.build.json",
19
19
  "prepack": "yarn build"
20
+ },
21
+ "volta": {
22
+ "extends": "../../package.json"
20
23
  }
21
24
  }