@luxuryescapes/contract-svc-lab-v2 0.1.25 → 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 +128 -0
- package/package.json +4 -1
package/dist/server.d.ts
CHANGED
|
@@ -51,6 +51,14 @@ 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
|
+
};
|
|
58
|
+
"/api/lab/v2/preview/ui/{id}": {
|
|
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. */
|
|
60
|
+
get: operations["getPreviewUi"];
|
|
61
|
+
};
|
|
54
62
|
"/api/lab/v2/admin/audiences/{id}/member-deletions": {
|
|
55
63
|
/** Delete up to 10000 members by user_id. A user_id that is not a member is counted as deleted. */
|
|
56
64
|
post: operations["deleteAudienceMembers"];
|
|
@@ -1205,6 +1213,126 @@ export interface operations {
|
|
|
1205
1213
|
};
|
|
1206
1214
|
};
|
|
1207
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
|
+
};
|
|
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. */
|
|
1277
|
+
getPreviewUi: {
|
|
1278
|
+
parameters: {
|
|
1279
|
+
path: {
|
|
1280
|
+
id: string;
|
|
1281
|
+
};
|
|
1282
|
+
};
|
|
1283
|
+
responses: {
|
|
1284
|
+
/** 200 response */
|
|
1285
|
+
200: {
|
|
1286
|
+
content: {
|
|
1287
|
+
"application/json": {
|
|
1288
|
+
status: 200;
|
|
1289
|
+
message: string;
|
|
1290
|
+
result: {
|
|
1291
|
+
/** Format: uuid */
|
|
1292
|
+
id: string;
|
|
1293
|
+
kind: "ui";
|
|
1294
|
+
type: "header_banner";
|
|
1295
|
+
payload: components["schemas"]["HeaderBannerPayload"];
|
|
1296
|
+
} | {
|
|
1297
|
+
/** Format: uuid */
|
|
1298
|
+
id: string;
|
|
1299
|
+
kind: "ui";
|
|
1300
|
+
type: "popup";
|
|
1301
|
+
payload: components["schemas"]["PopupPayload"];
|
|
1302
|
+
} | {
|
|
1303
|
+
/** Format: uuid */
|
|
1304
|
+
id: string;
|
|
1305
|
+
kind: "ui";
|
|
1306
|
+
type: "snackbar";
|
|
1307
|
+
payload: components["schemas"]["SnackbarPayload"];
|
|
1308
|
+
};
|
|
1309
|
+
};
|
|
1310
|
+
};
|
|
1311
|
+
};
|
|
1312
|
+
/** 400 response */
|
|
1313
|
+
400: {
|
|
1314
|
+
content: {
|
|
1315
|
+
"application/json": {
|
|
1316
|
+
status: 400;
|
|
1317
|
+
message: string;
|
|
1318
|
+
errors?: {
|
|
1319
|
+
message: string;
|
|
1320
|
+
path?: string;
|
|
1321
|
+
}[];
|
|
1322
|
+
};
|
|
1323
|
+
};
|
|
1324
|
+
};
|
|
1325
|
+
/** 404 response */
|
|
1326
|
+
404: {
|
|
1327
|
+
content: {
|
|
1328
|
+
"application/json": {
|
|
1329
|
+
status: 404;
|
|
1330
|
+
message: string;
|
|
1331
|
+
};
|
|
1332
|
+
};
|
|
1333
|
+
};
|
|
1334
|
+
};
|
|
1335
|
+
};
|
|
1208
1336
|
/** Delete up to 10000 members by user_id. A user_id that is not a member is counted as deleted. */
|
|
1209
1337
|
deleteAudienceMembers: {
|
|
1210
1338
|
parameters: {
|
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.27",
|
|
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
|
}
|