@luxuryescapes/contract-svc-lab-v2 0.1.1 → 0.1.4

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 +401 -0
  2. package/package.json +1 -1
package/dist/server.d.ts CHANGED
@@ -4,9 +4,25 @@
4
4
  */
5
5
  export interface paths {
6
6
  "/api/lab/v2/admin/audiences": {
7
+ /** List audiences with offset pagination, name filter, and sorting */
8
+ get: operations["listAudiences"];
7
9
  /** Create an empty audience */
8
10
  post: operations["createAudience"];
9
11
  };
12
+ "/api/lab/v2/admin/audiences/{id}": {
13
+ /** Get audience metadata by id */
14
+ get: operations["getAudience"];
15
+ };
16
+ "/api/lab/v2/admin/campaigns/{id}": {
17
+ get: operations["getCampaign"];
18
+ put: operations["updateCampaign"];
19
+ };
20
+ "/api/lab/v2/admin/campaigns": {
21
+ /** List scheduled campaigns for the admin overview */
22
+ get: operations["listCampaigns"];
23
+ /** Create an empty scheduled campaign with an optional draft schedule */
24
+ post: operations["createCampaign"];
25
+ };
10
26
  "/api/lab/v2/admin/audiences/{id}/members": {
11
27
  /** Upsert up to 10000 members by user_id. Existing members that are not submitted are left unchanged. */
12
28
  post: operations["upsertAudienceMembers"];
@@ -16,6 +32,68 @@ export interface components {
16
32
  schemas: {};
17
33
  }
18
34
  export interface operations {
35
+ /** List audiences with offset pagination, name filter, and sorting */
36
+ listAudiences: {
37
+ parameters: {
38
+ query: {
39
+ /** Number of items to skip before starting to collect the result set */
40
+ offset?: number;
41
+ /** Number of items to return */
42
+ limit?: number;
43
+ /** Property to sort by */
44
+ sort_by?: "id" | "name" | "created_at" | "updated_at";
45
+ /** Sort order */
46
+ sort_order?: "asc" | "desc";
47
+ /** Filter term to filter results */
48
+ filter?: string;
49
+ };
50
+ header: {
51
+ /** Cookie */
52
+ Cookie: string;
53
+ };
54
+ };
55
+ responses: {
56
+ /** 200 response */
57
+ 200: {
58
+ content: {
59
+ "application/json": {
60
+ status: 200;
61
+ message: string;
62
+ result: {
63
+ id: number;
64
+ name: string;
65
+ description: string | null;
66
+ system: boolean;
67
+ /** Format: date-time */
68
+ created_at: string;
69
+ /** Format: date-time */
70
+ updated_at: string;
71
+ }[];
72
+ pagination: {
73
+ limit: number;
74
+ offset: number;
75
+ total_items: number;
76
+ has_next: boolean;
77
+ has_previous: boolean;
78
+ };
79
+ };
80
+ };
81
+ };
82
+ /** 400 response */
83
+ 400: {
84
+ content: {
85
+ "application/json": {
86
+ status: 400;
87
+ message: string;
88
+ errors?: {
89
+ message: string;
90
+ path?: string;
91
+ }[];
92
+ };
93
+ };
94
+ };
95
+ };
96
+ };
19
97
  /** Create an empty audience */
20
98
  createAudience: {
21
99
  parameters: {
@@ -68,6 +146,329 @@ export interface operations {
68
146
  };
69
147
  };
70
148
  };
149
+ /** Get audience metadata by id */
150
+ getAudience: {
151
+ parameters: {
152
+ path: {
153
+ id: number;
154
+ };
155
+ header: {
156
+ /** Cookie */
157
+ Cookie: string;
158
+ };
159
+ };
160
+ responses: {
161
+ /** 200 response */
162
+ 200: {
163
+ content: {
164
+ "application/json": {
165
+ status: 200;
166
+ message: string;
167
+ result: {
168
+ id: number;
169
+ name: string;
170
+ description: string | null;
171
+ system: boolean;
172
+ /** Format: date-time */
173
+ created_at: string;
174
+ /** Format: date-time */
175
+ updated_at: string;
176
+ };
177
+ };
178
+ };
179
+ };
180
+ /** 404 response */
181
+ 404: {
182
+ content: {
183
+ "application/json": {
184
+ status: 404;
185
+ message: string;
186
+ };
187
+ };
188
+ };
189
+ };
190
+ };
191
+ getCampaign: {
192
+ parameters: {
193
+ path: {
194
+ id: string;
195
+ };
196
+ header: {
197
+ /** Cookie */
198
+ Cookie: string;
199
+ };
200
+ };
201
+ responses: {
202
+ /** 200 response */
203
+ 200: {
204
+ content: {
205
+ "application/json": {
206
+ status: 200;
207
+ message: string;
208
+ result: {
209
+ id: number;
210
+ name: string;
211
+ priority: number;
212
+ enable: boolean;
213
+ rollout: number;
214
+ seed: number;
215
+ schedule: {
216
+ /** Format: date-time */
217
+ starts_at: string | null;
218
+ /** Format: date-time */
219
+ ends_at: string | null;
220
+ timezone: string;
221
+ };
222
+ /** Format: date-time */
223
+ created_at: string;
224
+ /** Format: date-time */
225
+ updated_at: string;
226
+ };
227
+ };
228
+ };
229
+ };
230
+ /** 400 response */
231
+ 400: {
232
+ content: {
233
+ "application/json": {
234
+ status: 400;
235
+ message: string;
236
+ errors?: {
237
+ message: string;
238
+ path?: string;
239
+ }[];
240
+ };
241
+ };
242
+ };
243
+ /** 404 response */
244
+ 404: {
245
+ content: {
246
+ "application/json": {
247
+ status: 404;
248
+ message: string;
249
+ };
250
+ };
251
+ };
252
+ };
253
+ };
254
+ updateCampaign: {
255
+ parameters: {
256
+ path: {
257
+ id: string;
258
+ };
259
+ header: {
260
+ /** Cookie */
261
+ Cookie: string;
262
+ };
263
+ };
264
+ responses: {
265
+ /** 200 response */
266
+ 200: {
267
+ content: {
268
+ "application/json": {
269
+ status: 200;
270
+ message: string;
271
+ result: {
272
+ id: number;
273
+ name: string;
274
+ priority: number;
275
+ enable: boolean;
276
+ rollout: number;
277
+ seed: number;
278
+ schedule: {
279
+ /** Format: date-time */
280
+ starts_at: string | null;
281
+ /** Format: date-time */
282
+ ends_at: string | null;
283
+ timezone: string;
284
+ };
285
+ /** Format: date-time */
286
+ created_at: string;
287
+ /** Format: date-time */
288
+ updated_at: string;
289
+ };
290
+ };
291
+ };
292
+ };
293
+ /** 400 response */
294
+ 400: {
295
+ content: {
296
+ "application/json": {
297
+ status: 400;
298
+ message: string;
299
+ errors?: {
300
+ message: string;
301
+ path?: string;
302
+ }[];
303
+ };
304
+ };
305
+ };
306
+ /** 404 response */
307
+ 404: {
308
+ content: {
309
+ "application/json": {
310
+ status: 404;
311
+ message: string;
312
+ };
313
+ };
314
+ };
315
+ };
316
+ /** payload */
317
+ requestBody: {
318
+ content: {
319
+ "application/json": {
320
+ name: string;
321
+ priority: number;
322
+ schedule: {
323
+ /** Format: date-time */
324
+ starts_at: string | null;
325
+ /** Format: date-time */
326
+ ends_at: string | null;
327
+ timezone: string;
328
+ };
329
+ };
330
+ };
331
+ };
332
+ };
333
+ /** List scheduled campaigns for the admin overview */
334
+ listCampaigns: {
335
+ parameters: {
336
+ query: {
337
+ /** Number of items to skip before starting to collect the result set */
338
+ offset?: number;
339
+ /** Number of items to return */
340
+ limit?: number;
341
+ /** Property to sort by */
342
+ sort_by?: "created_at" | "name" | "priority" | "id";
343
+ /** Sort order */
344
+ sort_order?: "asc" | "desc";
345
+ /** Filter term to filter results */
346
+ filter?: string;
347
+ };
348
+ header: {
349
+ /** Cookie */
350
+ Cookie: string;
351
+ };
352
+ };
353
+ responses: {
354
+ /** 200 response */
355
+ 200: {
356
+ content: {
357
+ "application/json": {
358
+ status: 200;
359
+ message: string;
360
+ result: {
361
+ id: number;
362
+ name: string;
363
+ priority: number;
364
+ enable: boolean;
365
+ rollout: number;
366
+ seed: number;
367
+ schedule: {
368
+ /** Format: date-time */
369
+ starts_at: string | null;
370
+ /** Format: date-time */
371
+ ends_at: string | null;
372
+ timezone: string;
373
+ };
374
+ /** Format: date-time */
375
+ created_at: string;
376
+ /** Format: date-time */
377
+ updated_at: string;
378
+ }[];
379
+ pagination: {
380
+ limit: number;
381
+ offset: number;
382
+ total_items: number;
383
+ has_next: boolean;
384
+ has_previous: boolean;
385
+ };
386
+ };
387
+ };
388
+ };
389
+ /** 400 response */
390
+ 400: {
391
+ content: {
392
+ "application/json": {
393
+ status: 400;
394
+ message: string;
395
+ errors?: {
396
+ message: string;
397
+ path?: string;
398
+ }[];
399
+ };
400
+ };
401
+ };
402
+ };
403
+ };
404
+ /** Create an empty scheduled campaign with an optional draft schedule */
405
+ createCampaign: {
406
+ parameters: {
407
+ header: {
408
+ /** Cookie */
409
+ Cookie: string;
410
+ };
411
+ };
412
+ responses: {
413
+ /** 201 response */
414
+ 201: {
415
+ content: {
416
+ "application/json": {
417
+ status: 201;
418
+ message: string;
419
+ result: {
420
+ id: number;
421
+ name: string;
422
+ priority: number;
423
+ enable: boolean;
424
+ rollout: number;
425
+ seed: number;
426
+ schedule: {
427
+ /** Format: date-time */
428
+ starts_at: string | null;
429
+ /** Format: date-time */
430
+ ends_at: string | null;
431
+ timezone: string;
432
+ };
433
+ /** Format: date-time */
434
+ created_at: string;
435
+ /** Format: date-time */
436
+ updated_at: string;
437
+ };
438
+ };
439
+ };
440
+ };
441
+ /** 400 response */
442
+ 400: {
443
+ content: {
444
+ "application/json": {
445
+ status: 400;
446
+ message: string;
447
+ errors?: {
448
+ message: string;
449
+ path?: string;
450
+ }[];
451
+ };
452
+ };
453
+ };
454
+ };
455
+ /** payload */
456
+ requestBody: {
457
+ content: {
458
+ "application/json": {
459
+ name: string;
460
+ priority?: number;
461
+ schedule?: {
462
+ /** Format: date-time */
463
+ starts_at?: string | null;
464
+ /** Format: date-time */
465
+ ends_at?: string | null;
466
+ timezone?: string;
467
+ };
468
+ };
469
+ };
470
+ };
471
+ };
71
472
  /** Upsert up to 10000 members by user_id. Existing members that are not submitted are left unchanged. */
72
473
  upsertAudienceMembers: {
73
474
  parameters: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxuryescapes/contract-svc-lab-v2",
3
- "version": "0.1.1",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "files": [