@luxuryescapes/contract-svc-lab-v2 0.1.26 → 0.1.27
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 +64 -0
- package/package.json +1 -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/campaigns/{id}": {
|
|
55
|
+
/** Public. Returns saved UI elements only, regardless of enabled state, campaign schedule, targeting, or rollout. Cached for 30 seconds. Invalid UI payloads are omitted. */
|
|
56
|
+
get: operations["getPreviewCampaign"];
|
|
57
|
+
};
|
|
54
58
|
"/api/lab/v2/preview/ui/{id}": {
|
|
55
59
|
/** 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
60
|
get: operations["getPreviewUi"];
|
|
@@ -1209,6 +1213,66 @@ export interface operations {
|
|
|
1209
1213
|
};
|
|
1210
1214
|
};
|
|
1211
1215
|
};
|
|
1216
|
+
/** Public. Returns saved UI elements only, regardless of enabled state, campaign schedule, targeting, or rollout. Cached for 30 seconds. Invalid UI payloads are omitted. */
|
|
1217
|
+
getPreviewCampaign: {
|
|
1218
|
+
parameters: {
|
|
1219
|
+
path: {
|
|
1220
|
+
id: string;
|
|
1221
|
+
};
|
|
1222
|
+
};
|
|
1223
|
+
responses: {
|
|
1224
|
+
/** 200 response */
|
|
1225
|
+
200: {
|
|
1226
|
+
content: {
|
|
1227
|
+
"application/json": {
|
|
1228
|
+
status: 200;
|
|
1229
|
+
message: string;
|
|
1230
|
+
result: ({
|
|
1231
|
+
/** Format: uuid */
|
|
1232
|
+
id: string;
|
|
1233
|
+
kind: "ui";
|
|
1234
|
+
type: "header_banner";
|
|
1235
|
+
payload: components["schemas"]["HeaderBannerPayload"];
|
|
1236
|
+
} | {
|
|
1237
|
+
/** Format: uuid */
|
|
1238
|
+
id: string;
|
|
1239
|
+
kind: "ui";
|
|
1240
|
+
type: "popup";
|
|
1241
|
+
payload: components["schemas"]["PopupPayload"];
|
|
1242
|
+
} | {
|
|
1243
|
+
/** Format: uuid */
|
|
1244
|
+
id: string;
|
|
1245
|
+
kind: "ui";
|
|
1246
|
+
type: "snackbar";
|
|
1247
|
+
payload: components["schemas"]["SnackbarPayload"];
|
|
1248
|
+
})[];
|
|
1249
|
+
};
|
|
1250
|
+
};
|
|
1251
|
+
};
|
|
1252
|
+
/** 400 response */
|
|
1253
|
+
400: {
|
|
1254
|
+
content: {
|
|
1255
|
+
"application/json": {
|
|
1256
|
+
status: 400;
|
|
1257
|
+
message: string;
|
|
1258
|
+
errors?: {
|
|
1259
|
+
message: string;
|
|
1260
|
+
path?: string;
|
|
1261
|
+
}[];
|
|
1262
|
+
};
|
|
1263
|
+
};
|
|
1264
|
+
};
|
|
1265
|
+
/** 404 response */
|
|
1266
|
+
404: {
|
|
1267
|
+
content: {
|
|
1268
|
+
"application/json": {
|
|
1269
|
+
status: 404;
|
|
1270
|
+
message: string;
|
|
1271
|
+
};
|
|
1272
|
+
};
|
|
1273
|
+
};
|
|
1274
|
+
};
|
|
1275
|
+
};
|
|
1212
1276
|
/** 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
1277
|
getPreviewUi: {
|
|
1214
1278
|
parameters: {
|