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

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 +66 -0
  2. package/package.json +1 -1
package/dist/server.d.ts CHANGED
@@ -12,6 +12,8 @@ export interface paths {
12
12
  "/api/lab/v2/admin/audiences/{id}": {
13
13
  /** Get audience metadata by id */
14
14
  get: operations["getAudience"];
15
+ /** Sparse-update audience name and description */
16
+ patch: operations["updateAudience"];
15
17
  };
16
18
  "/api/lab/v2/admin/campaigns/{id}": {
17
19
  get: operations["getCampaign"];
@@ -188,6 +190,70 @@ export interface operations {
188
190
  };
189
191
  };
190
192
  };
193
+ /** Sparse-update audience name and description */
194
+ updateAudience: {
195
+ parameters: {
196
+ path: {
197
+ id: number;
198
+ };
199
+ header: {
200
+ /** Cookie */
201
+ Cookie: string;
202
+ };
203
+ };
204
+ responses: {
205
+ /** 200 response */
206
+ 200: {
207
+ content: {
208
+ "application/json": {
209
+ status: 200;
210
+ message: string;
211
+ result: {
212
+ id: number;
213
+ name: string;
214
+ description: string | null;
215
+ system: boolean;
216
+ /** Format: date-time */
217
+ created_at: string;
218
+ /** Format: date-time */
219
+ updated_at: string;
220
+ };
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
+ /** payload */
248
+ requestBody: {
249
+ content: {
250
+ "application/json": {
251
+ name?: string;
252
+ description?: string | null;
253
+ };
254
+ };
255
+ };
256
+ };
191
257
  getCampaign: {
192
258
  parameters: {
193
259
  path: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxuryescapes/contract-svc-lab-v2",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "files": [