@luxuryescapes/contract-svc-lab-v2 0.1.19 → 0.1.21

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 +75 -9
  2. package/package.json +1 -1
package/dist/server.d.ts CHANGED
@@ -50,6 +50,10 @@ export interface paths {
50
50
  /** Create an empty scheduled campaign with an optional draft schedule */
51
51
  post: operations["createCampaign"];
52
52
  };
53
+ "/api/lab/v2/admin/audiences/{id}/member-deletions": {
54
+ /** Delete up to 10000 members by user_id. A user_id that is not a member is counted as deleted. */
55
+ post: operations["deleteAudienceMembers"];
56
+ };
53
57
  "/api/lab/v2/evaluate": {
54
58
  post: operations["evaluateExperiments"];
55
59
  };
@@ -1282,6 +1286,71 @@ export interface operations {
1282
1286
  };
1283
1287
  };
1284
1288
  };
1289
+ /** Delete up to 10000 members by user_id. A user_id that is not a member is counted as deleted. */
1290
+ deleteAudienceMembers: {
1291
+ parameters: {
1292
+ path: {
1293
+ id: number;
1294
+ };
1295
+ header: {
1296
+ /** Cookie */
1297
+ Cookie: string;
1298
+ };
1299
+ };
1300
+ responses: {
1301
+ /** 200 response */
1302
+ 200: {
1303
+ content: {
1304
+ "application/json": {
1305
+ status: 200;
1306
+ message: string;
1307
+ result: {
1308
+ audience_id: number;
1309
+ complete: boolean;
1310
+ deleted: number;
1311
+ unconfirmed: {
1312
+ /** Format: uuid */
1313
+ user_id: string;
1314
+ }[];
1315
+ };
1316
+ };
1317
+ };
1318
+ };
1319
+ /** 400 response */
1320
+ 400: {
1321
+ content: {
1322
+ "application/json": {
1323
+ status: 400;
1324
+ message: string;
1325
+ errors?: {
1326
+ message: string;
1327
+ path?: string;
1328
+ }[];
1329
+ };
1330
+ };
1331
+ };
1332
+ /** 404 response */
1333
+ 404: {
1334
+ content: {
1335
+ "application/json": {
1336
+ status: 404;
1337
+ message: string;
1338
+ };
1339
+ };
1340
+ };
1341
+ };
1342
+ /** payload */
1343
+ requestBody: {
1344
+ content: {
1345
+ "application/json": {
1346
+ members: {
1347
+ /** Format: uuid */
1348
+ user_id: string;
1349
+ }[];
1350
+ };
1351
+ };
1352
+ };
1353
+ };
1285
1354
  evaluateExperiments: {
1286
1355
  parameters: {};
1287
1356
  responses: {
@@ -1294,36 +1363,33 @@ export interface operations {
1294
1363
  result: {
1295
1364
  configs: {
1296
1365
  name: string;
1297
- payload: {
1298
- [key: string]: unknown;
1299
- };
1300
1366
  }[];
1301
1367
  uis: ({
1302
1368
  type: "header_banner";
1303
- id: number;
1369
+ /** Format: uuid */
1370
+ id: string;
1304
1371
  experiment_id: number;
1305
1372
  match_mode: "include" | "exclude";
1306
1373
  trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1307
1374
  offer_ids: string[];
1308
- payload: components["schemas"]["HeaderBannerPayload"];
1309
1375
  } | {
1310
1376
  type: "popup";
1311
- id: number;
1377
+ /** Format: uuid */
1378
+ id: string;
1312
1379
  experiment_id: number;
1313
1380
  match_mode: "include" | "exclude";
1314
1381
  trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1315
1382
  offer_ids: string[];
1316
1383
  display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1317
- payload: components["schemas"]["PopupPayload"];
1318
1384
  } | {
1319
1385
  type: "snackbar";
1320
- id: number;
1386
+ /** Format: uuid */
1387
+ id: string;
1321
1388
  experiment_id: number;
1322
1389
  match_mode: "include" | "exclude";
1323
1390
  trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1324
1391
  offer_ids: string[];
1325
1392
  display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1326
- payload: components["schemas"]["SnackbarPayload"];
1327
1393
  })[];
1328
1394
  };
1329
1395
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxuryescapes/contract-svc-lab-v2",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "files": [