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

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 +99 -0
  2. package/package.json +1 -1
package/dist/server.d.ts CHANGED
@@ -12,9 +12,15 @@ 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
+ };
18
24
  "/api/lab/v2/admin/campaigns/{id}": {
19
25
  get: operations["getCampaign"];
20
26
  put: operations["updateCampaign"];
@@ -195,6 +201,50 @@ export interface operations {
195
201
  };
196
202
  };
197
203
  };
204
+ /** Delete an unreferenced audience */
205
+ deleteAudience: {
206
+ parameters: {
207
+ path: {
208
+ id: number;
209
+ };
210
+ header: {
211
+ /** Cookie */
212
+ Cookie: string;
213
+ };
214
+ };
215
+ responses: {
216
+ /** 204 response */
217
+ 204: {
218
+ content: {
219
+ "application/json": {
220
+ [key: string]: unknown;
221
+ };
222
+ };
223
+ };
224
+ /** 400 response */
225
+ 400: {
226
+ content: {
227
+ "application/json": {
228
+ status: 400;
229
+ message: string;
230
+ errors?: {
231
+ message: string;
232
+ path?: string;
233
+ }[];
234
+ };
235
+ };
236
+ };
237
+ /** 404 response */
238
+ 404: {
239
+ content: {
240
+ "application/json": {
241
+ status: 404;
242
+ message: string;
243
+ };
244
+ };
245
+ };
246
+ };
247
+ };
198
248
  /** Sparse-update audience name and description */
199
249
  updateAudience: {
200
250
  parameters: {
@@ -259,6 +309,55 @@ export interface operations {
259
309
  };
260
310
  };
261
311
  };
312
+ /** Count unexpired members for an ordinary audience */
313
+ countAudienceMembers: {
314
+ parameters: {
315
+ path: {
316
+ id: number;
317
+ };
318
+ header: {
319
+ /** Cookie */
320
+ Cookie: string;
321
+ };
322
+ };
323
+ responses: {
324
+ /** 200 response */
325
+ 200: {
326
+ content: {
327
+ "application/json": {
328
+ status: 200;
329
+ message: string;
330
+ result: {
331
+ audience_id: number;
332
+ member_count: number;
333
+ };
334
+ };
335
+ };
336
+ };
337
+ /** 400 response */
338
+ 400: {
339
+ content: {
340
+ "application/json": {
341
+ status: 400;
342
+ message: string;
343
+ errors?: {
344
+ message: string;
345
+ path?: string;
346
+ }[];
347
+ };
348
+ };
349
+ };
350
+ /** 404 response */
351
+ 404: {
352
+ content: {
353
+ "application/json": {
354
+ status: 404;
355
+ message: string;
356
+ };
357
+ };
358
+ };
359
+ };
360
+ };
262
361
  getCampaign: {
263
362
  parameters: {
264
363
  path: {
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.7",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "files": [