@luxuryescapes/contract-svc-lab-v2 0.1.6 → 0.1.8

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 +228 -69
  2. package/package.json +1 -1
package/dist/server.d.ts CHANGED
@@ -12,9 +12,21 @@ export interface paths {
12
12
  "/api/lab/v2/admin/audiences/{id}": {
13
13
  /** Get audience metadata by id */
14
14
  get: operations["getAudience"];
15
+ /** Delete an unreferenced audience */
16
+ delete: operations["deleteAudience"];
15
17
  /** Sparse-update audience name and description */
16
18
  patch: operations["updateAudience"];
17
19
  };
20
+ "/api/lab/v2/admin/audiences/{id}/member-counts": {
21
+ /** Count unexpired members for an ordinary audience */
22
+ get: operations["countAudienceMembers"];
23
+ };
24
+ "/api/lab/v2/admin/audiences/{id}/members": {
25
+ /** Preview unexpired members with a cursor */
26
+ get: operations["listAudienceMembers"];
27
+ /** Upsert up to 10000 members by user_id. Existing members that are not submitted are left unchanged. */
28
+ post: operations["upsertAudienceMembers"];
29
+ };
18
30
  "/api/lab/v2/admin/campaigns/{id}": {
19
31
  get: operations["getCampaign"];
20
32
  put: operations["updateCampaign"];
@@ -30,10 +42,6 @@ export interface paths {
30
42
  /** Create an empty scheduled campaign with an optional draft schedule */
31
43
  post: operations["createCampaign"];
32
44
  };
33
- "/api/lab/v2/admin/audiences/{id}/members": {
34
- /** Upsert up to 10000 members by user_id. Existing members that are not submitted are left unchanged. */
35
- post: operations["upsertAudienceMembers"];
36
- };
37
45
  }
38
46
  export interface components {
39
47
  schemas: {};
@@ -195,6 +203,50 @@ export interface operations {
195
203
  };
196
204
  };
197
205
  };
206
+ /** Delete an unreferenced audience */
207
+ deleteAudience: {
208
+ parameters: {
209
+ path: {
210
+ id: number;
211
+ };
212
+ header: {
213
+ /** Cookie */
214
+ Cookie: string;
215
+ };
216
+ };
217
+ responses: {
218
+ /** 204 response */
219
+ 204: {
220
+ content: {
221
+ "application/json": {
222
+ [key: string]: unknown;
223
+ };
224
+ };
225
+ };
226
+ /** 400 response */
227
+ 400: {
228
+ content: {
229
+ "application/json": {
230
+ status: 400;
231
+ message: string;
232
+ errors?: {
233
+ message: string;
234
+ path?: string;
235
+ }[];
236
+ };
237
+ };
238
+ };
239
+ /** 404 response */
240
+ 404: {
241
+ content: {
242
+ "application/json": {
243
+ status: 404;
244
+ message: string;
245
+ };
246
+ };
247
+ };
248
+ };
249
+ };
198
250
  /** Sparse-update audience name and description */
199
251
  updateAudience: {
200
252
  parameters: {
@@ -259,6 +311,178 @@ export interface operations {
259
311
  };
260
312
  };
261
313
  };
314
+ /** Count unexpired members for an ordinary audience */
315
+ countAudienceMembers: {
316
+ parameters: {
317
+ path: {
318
+ id: number;
319
+ };
320
+ header: {
321
+ /** Cookie */
322
+ Cookie: string;
323
+ };
324
+ };
325
+ responses: {
326
+ /** 200 response */
327
+ 200: {
328
+ content: {
329
+ "application/json": {
330
+ status: 200;
331
+ message: string;
332
+ result: {
333
+ audience_id: number;
334
+ member_count: number;
335
+ };
336
+ };
337
+ };
338
+ };
339
+ /** 400 response */
340
+ 400: {
341
+ content: {
342
+ "application/json": {
343
+ status: 400;
344
+ message: string;
345
+ errors?: {
346
+ message: string;
347
+ path?: string;
348
+ }[];
349
+ };
350
+ };
351
+ };
352
+ /** 404 response */
353
+ 404: {
354
+ content: {
355
+ "application/json": {
356
+ status: 404;
357
+ message: string;
358
+ };
359
+ };
360
+ };
361
+ };
362
+ };
363
+ /** Preview unexpired members with a cursor */
364
+ listAudienceMembers: {
365
+ parameters: {
366
+ path: {
367
+ id: number;
368
+ };
369
+ query: {
370
+ limit?: number;
371
+ cursor?: string;
372
+ };
373
+ header: {
374
+ /** Cookie */
375
+ Cookie: string;
376
+ };
377
+ };
378
+ responses: {
379
+ /** 200 response */
380
+ 200: {
381
+ content: {
382
+ "application/json": {
383
+ status: 200;
384
+ message: string;
385
+ result: {
386
+ user_id: string;
387
+ /** Format: date-time */
388
+ expires_at: string | null;
389
+ }[];
390
+ pagination: {
391
+ limit: number;
392
+ next_cursor: string | null;
393
+ };
394
+ };
395
+ };
396
+ };
397
+ /** 400 response */
398
+ 400: {
399
+ content: {
400
+ "application/json": {
401
+ status: 400;
402
+ message: string;
403
+ errors?: {
404
+ message: string;
405
+ path?: string;
406
+ }[];
407
+ };
408
+ };
409
+ };
410
+ /** 404 response */
411
+ 404: {
412
+ content: {
413
+ "application/json": {
414
+ status: 404;
415
+ message: string;
416
+ };
417
+ };
418
+ };
419
+ };
420
+ };
421
+ /** Upsert up to 10000 members by user_id. Existing members that are not submitted are left unchanged. */
422
+ upsertAudienceMembers: {
423
+ parameters: {
424
+ path: {
425
+ id: number;
426
+ };
427
+ header: {
428
+ /** Cookie */
429
+ Cookie: string;
430
+ };
431
+ };
432
+ responses: {
433
+ /** 200 response */
434
+ 200: {
435
+ content: {
436
+ "application/json": {
437
+ status: 200;
438
+ message: string;
439
+ result: {
440
+ audience_id: number;
441
+ complete: boolean;
442
+ upserted: number;
443
+ unconfirmed: {
444
+ user_id: string;
445
+ }[];
446
+ };
447
+ };
448
+ };
449
+ };
450
+ /** 400 response */
451
+ 400: {
452
+ content: {
453
+ "application/json": {
454
+ status: 400;
455
+ message: string;
456
+ errors?: {
457
+ message: string;
458
+ path?: string;
459
+ }[];
460
+ };
461
+ };
462
+ };
463
+ /** 404 response */
464
+ 404: {
465
+ content: {
466
+ "application/json": {
467
+ status: 404;
468
+ message: string;
469
+ };
470
+ };
471
+ };
472
+ };
473
+ /** payload */
474
+ requestBody: {
475
+ content: {
476
+ "application/json": {
477
+ members: {
478
+ user_id: string;
479
+ /** Format: date-time */
480
+ expires_at?: string | null;
481
+ }[];
482
+ };
483
+ };
484
+ };
485
+ };
262
486
  getCampaign: {
263
487
  parameters: {
264
488
  path: {
@@ -713,71 +937,6 @@ export interface operations {
713
937
  };
714
938
  };
715
939
  };
716
- /** Upsert up to 10000 members by user_id. Existing members that are not submitted are left unchanged. */
717
- upsertAudienceMembers: {
718
- parameters: {
719
- path: {
720
- id: number;
721
- };
722
- header: {
723
- /** Cookie */
724
- Cookie: string;
725
- };
726
- };
727
- responses: {
728
- /** 200 response */
729
- 200: {
730
- content: {
731
- "application/json": {
732
- status: 200;
733
- message: string;
734
- result: {
735
- audience_id: number;
736
- complete: boolean;
737
- upserted: number;
738
- unconfirmed: {
739
- user_id: string;
740
- }[];
741
- };
742
- };
743
- };
744
- };
745
- /** 400 response */
746
- 400: {
747
- content: {
748
- "application/json": {
749
- status: 400;
750
- message: string;
751
- errors?: {
752
- message: string;
753
- path?: string;
754
- }[];
755
- };
756
- };
757
- };
758
- /** 404 response */
759
- 404: {
760
- content: {
761
- "application/json": {
762
- status: 404;
763
- message: string;
764
- };
765
- };
766
- };
767
- };
768
- /** payload */
769
- requestBody: {
770
- content: {
771
- "application/json": {
772
- members: {
773
- user_id: string;
774
- /** Format: date-time */
775
- expires_at?: string | null;
776
- }[];
777
- };
778
- };
779
- };
780
- };
781
940
  }
782
941
  export interface external {
783
942
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxuryescapes/contract-svc-lab-v2",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "files": [