@luxuryescapes/contract-svc-lab-v2 0.1.15 → 0.1.17

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 +49 -16
  2. package/package.json +1 -1
package/dist/server.d.ts CHANGED
@@ -6,7 +6,7 @@ export interface paths {
6
6
  "/api/lab/v2/admin/audiences": {
7
7
  /** List audiences with offset pagination, name filter, and sorting */
8
8
  get: operations["listAudiences"];
9
- /** Create an empty audience */
9
+ /** Create an audience, optionally with BigQuery scheduled queries */
10
10
  post: operations["createAudience"];
11
11
  };
12
12
  "/api/lab/v2/admin/audiences/{id}": {
@@ -14,7 +14,7 @@ export interface paths {
14
14
  get: operations["getAudience"];
15
15
  /** Delete an unreferenced audience */
16
16
  delete: operations["deleteAudience"];
17
- /** Sparse-update audience name and description */
17
+ /** Sparse-update audience name and description. scheduled_queries, when present, replaces the set: ids update in place, entries without an id are created, and omitted ids are deleted. interval_minutes null runs the query once. */
18
18
  patch: operations["updateAudience"];
19
19
  };
20
20
  "/api/lab/v2/admin/audiences/{id}/member-counts": {
@@ -103,6 +103,11 @@ export interface components {
103
103
  style: "light" | "dark";
104
104
  content: components["schemas"]["PopupContent"];
105
105
  };
106
+ SnackbarPayload: {
107
+ kind: "neutral" | "warning" | "success" | "critical";
108
+ heading: string;
109
+ description: string;
110
+ };
106
111
  };
107
112
  }
108
113
  export interface operations {
@@ -168,7 +173,7 @@ export interface operations {
168
173
  };
169
174
  };
170
175
  };
171
- /** Create an empty audience */
176
+ /** Create an audience, optionally with BigQuery scheduled queries */
172
177
  createAudience: {
173
178
  parameters: {
174
179
  header: {
@@ -192,6 +197,15 @@ export interface operations {
192
197
  created_at: string;
193
198
  /** Format: date-time */
194
199
  updated_at: string;
200
+ scheduled_queries: {
201
+ id: number;
202
+ sql: string;
203
+ interval_minutes: number | null;
204
+ /** Format: date-time */
205
+ created_at: string;
206
+ /** Format: date-time */
207
+ updated_at: string;
208
+ }[];
195
209
  };
196
210
  };
197
211
  };
@@ -216,6 +230,10 @@ export interface operations {
216
230
  "application/json": {
217
231
  name: string;
218
232
  description?: string | null;
233
+ scheduled_queries?: {
234
+ sql: string;
235
+ interval_minutes: number | null;
236
+ }[];
219
237
  };
220
238
  };
221
239
  };
@@ -247,6 +265,15 @@ export interface operations {
247
265
  created_at: string;
248
266
  /** Format: date-time */
249
267
  updated_at: string;
268
+ scheduled_queries: {
269
+ id: number;
270
+ sql: string;
271
+ interval_minutes: number | null;
272
+ /** Format: date-time */
273
+ created_at: string;
274
+ /** Format: date-time */
275
+ updated_at: string;
276
+ }[];
250
277
  };
251
278
  };
252
279
  };
@@ -306,7 +333,7 @@ export interface operations {
306
333
  };
307
334
  };
308
335
  };
309
- /** Sparse-update audience name and description */
336
+ /** Sparse-update audience name and description. scheduled_queries, when present, replaces the set: ids update in place, entries without an id are created, and omitted ids are deleted. interval_minutes null runs the query once. */
310
337
  updateAudience: {
311
338
  parameters: {
312
339
  path: {
@@ -333,6 +360,15 @@ export interface operations {
333
360
  created_at: string;
334
361
  /** Format: date-time */
335
362
  updated_at: string;
363
+ scheduled_queries: {
364
+ id: number;
365
+ sql: string;
366
+ interval_minutes: number | null;
367
+ /** Format: date-time */
368
+ created_at: string;
369
+ /** Format: date-time */
370
+ updated_at: string;
371
+ }[];
336
372
  };
337
373
  };
338
374
  };
@@ -366,6 +402,11 @@ export interface operations {
366
402
  "application/json": {
367
403
  name?: string;
368
404
  description?: string | null;
405
+ scheduled_queries?: {
406
+ sql: string;
407
+ interval_minutes: number | null;
408
+ id?: number;
409
+ }[];
369
410
  };
370
411
  };
371
412
  };
@@ -980,9 +1021,7 @@ export interface operations {
980
1021
  /** Format: date-time */
981
1022
  updated_at: string;
982
1023
  display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
983
- payload: {
984
- [key: string]: unknown;
985
- };
1024
+ payload: components["schemas"]["SnackbarPayload"];
986
1025
  })[];
987
1026
  };
988
1027
  };
@@ -1065,9 +1104,7 @@ export interface operations {
1065
1104
  /** Format: date-time */
1066
1105
  updated_at: string;
1067
1106
  display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1068
- payload: {
1069
- [key: string]: unknown;
1070
- };
1107
+ payload: components["schemas"]["SnackbarPayload"];
1071
1108
  })[];
1072
1109
  };
1073
1110
  };
@@ -1121,9 +1158,7 @@ export interface operations {
1121
1158
  trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1122
1159
  offer_ids: string[];
1123
1160
  display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1124
- payload: {
1125
- [key: string]: unknown;
1126
- };
1161
+ payload: components["schemas"]["SnackbarPayload"];
1127
1162
  })[];
1128
1163
  };
1129
1164
  };
@@ -1328,9 +1363,7 @@ export interface operations {
1328
1363
  trigger_points: ("home" | "vertical_landing" | "search_results" | "offer_detail" | "campaign_or_destination" | "cart" | "checkout" | "my_escapes" | "voucher_wallet")[];
1329
1364
  offer_ids: string[];
1330
1365
  display_frequency: "once_per_session" | "once_per_7_days" | "once" | "everytime";
1331
- payload: {
1332
- [key: string]: unknown;
1333
- };
1366
+ payload: components["schemas"]["SnackbarPayload"];
1334
1367
  })[];
1335
1368
  };
1336
1369
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxuryescapes/contract-svc-lab-v2",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "files": [