@thelllabs/winehaus-sdk 0.0.6 → 0.0.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.
- package/dist/cjs/api/api.js +702 -1
- package/dist/esm/api/api.js +702 -1
- package/dist/types/api/api.d.ts +2214 -165
- package/dist/umd/index.ts +702 -1
- package/package.json +1 -1
package/dist/types/api/api.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export interface CreateNameOnlyEntityDto {
|
|
2
|
+
/** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
|
|
3
|
+
isGlobal?: boolean;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
1
6
|
export interface CreateTenantUserDto {
|
|
2
7
|
/** @example "user@example.com" */
|
|
3
8
|
email: string;
|
|
@@ -9,6 +14,26 @@ export interface CreateTenantUserDto {
|
|
|
9
14
|
/** @example ["operator"] */
|
|
10
15
|
roles: TenantRoleEnum[];
|
|
11
16
|
}
|
|
17
|
+
export interface CreateWineDto {
|
|
18
|
+
/** @format uuid */
|
|
19
|
+
brandId: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
/** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
|
|
22
|
+
isGlobal?: boolean;
|
|
23
|
+
location: WineLocationDto;
|
|
24
|
+
/** @format uuid */
|
|
25
|
+
producerId: string;
|
|
26
|
+
/** @format uuid */
|
|
27
|
+
styleId: string;
|
|
28
|
+
/** @format uuid */
|
|
29
|
+
typeId: string;
|
|
30
|
+
/** @format uuid */
|
|
31
|
+
varietalId: string;
|
|
32
|
+
/** @format uuid */
|
|
33
|
+
villageId: string;
|
|
34
|
+
/** @format uuid */
|
|
35
|
+
vineyardId: string;
|
|
36
|
+
}
|
|
12
37
|
export interface HttpExceptionDto {
|
|
13
38
|
/** @example null */
|
|
14
39
|
data?: object;
|
|
@@ -76,7 +101,8 @@ export interface SigninResponseDto {
|
|
|
76
101
|
export declare enum TenantRoleEnum {
|
|
77
102
|
Operator = "operator",
|
|
78
103
|
Admin = "admin",
|
|
79
|
-
Owner = "owner"
|
|
104
|
+
Owner = "owner",
|
|
105
|
+
Customer = "customer"
|
|
80
106
|
}
|
|
81
107
|
export interface TenantUserEntityDto {
|
|
82
108
|
roles: TenantRoleEnum[];
|
|
@@ -88,7 +114,7 @@ export interface TenantUserEntityDto {
|
|
|
88
114
|
/** @format uuid */
|
|
89
115
|
userId: string;
|
|
90
116
|
}
|
|
91
|
-
export interface
|
|
117
|
+
export interface TenantUserEntityPaginatedDto {
|
|
92
118
|
items: TenantUserEntityDto[];
|
|
93
119
|
links?: PaginationLinksDto;
|
|
94
120
|
meta: PaginationMetaDto;
|
|
@@ -97,6 +123,11 @@ export declare enum TenantUserStatusEnum {
|
|
|
97
123
|
Enabled = "enabled",
|
|
98
124
|
Blocked = "blocked"
|
|
99
125
|
}
|
|
126
|
+
export interface UpdateNameOnlyEntityDto {
|
|
127
|
+
/** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
|
|
128
|
+
isGlobal?: boolean;
|
|
129
|
+
name: string;
|
|
130
|
+
}
|
|
100
131
|
export interface UpdateUserPasswordDto {
|
|
101
132
|
/** @example "P@ssw0rd" */
|
|
102
133
|
currentPassword: string;
|
|
@@ -111,9 +142,29 @@ export interface UpdateUserPasswordDto {
|
|
|
111
142
|
export interface UpdateUserProfileDto {
|
|
112
143
|
name: string;
|
|
113
144
|
}
|
|
145
|
+
export interface UpdateWineDto {
|
|
146
|
+
/** @format uuid */
|
|
147
|
+
brandId: string;
|
|
148
|
+
description?: string;
|
|
149
|
+
/** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
|
|
150
|
+
isGlobal?: boolean;
|
|
151
|
+
location: WineLocationDto;
|
|
152
|
+
/** @format uuid */
|
|
153
|
+
producerId: string;
|
|
154
|
+
/** @format uuid */
|
|
155
|
+
styleId: string;
|
|
156
|
+
/** @format uuid */
|
|
157
|
+
typeId: string;
|
|
158
|
+
/** @format uuid */
|
|
159
|
+
varietalId: string;
|
|
160
|
+
/** @format uuid */
|
|
161
|
+
villageId: string;
|
|
162
|
+
/** @format uuid */
|
|
163
|
+
vineyardId: string;
|
|
164
|
+
}
|
|
114
165
|
export interface UserEntityDto {
|
|
115
166
|
/** @format date-time */
|
|
116
|
-
createdAt
|
|
167
|
+
createdAt: string;
|
|
117
168
|
/** @format date-time */
|
|
118
169
|
deletedAt?: string | null;
|
|
119
170
|
email: string;
|
|
@@ -123,6 +174,212 @@ export interface UserEntityDto {
|
|
|
123
174
|
/** @format date-time */
|
|
124
175
|
updatedAt: string;
|
|
125
176
|
}
|
|
177
|
+
export interface WineBottleFormatEntityDto {
|
|
178
|
+
/** @format date-time */
|
|
179
|
+
createdAt: string;
|
|
180
|
+
/** @format date-time */
|
|
181
|
+
deletedAt?: string | null;
|
|
182
|
+
/** @format uuid */
|
|
183
|
+
id: string;
|
|
184
|
+
name: string;
|
|
185
|
+
/** @format uuid */
|
|
186
|
+
tenantId?: string | null;
|
|
187
|
+
/** @format date-time */
|
|
188
|
+
updatedAt: string;
|
|
189
|
+
}
|
|
190
|
+
export interface WineBottleFormatEntityPaginatedDto {
|
|
191
|
+
items: WineBottleFormatEntityDto[];
|
|
192
|
+
links?: PaginationLinksDto;
|
|
193
|
+
meta: PaginationMetaDto;
|
|
194
|
+
}
|
|
195
|
+
export interface WineBottleVintageEntityDto {
|
|
196
|
+
/** @format date-time */
|
|
197
|
+
createdAt: string;
|
|
198
|
+
/** @format date-time */
|
|
199
|
+
deletedAt?: string | null;
|
|
200
|
+
/** @format uuid */
|
|
201
|
+
id: string;
|
|
202
|
+
name: string;
|
|
203
|
+
/** @format uuid */
|
|
204
|
+
tenantId?: string | null;
|
|
205
|
+
/** @format date-time */
|
|
206
|
+
updatedAt: string;
|
|
207
|
+
}
|
|
208
|
+
export interface WineBottleVintageEntityPaginatedDto {
|
|
209
|
+
items: WineBottleVintageEntityDto[];
|
|
210
|
+
links?: PaginationLinksDto;
|
|
211
|
+
meta: PaginationMetaDto;
|
|
212
|
+
}
|
|
213
|
+
export interface WineBrandEntityDto {
|
|
214
|
+
/** @format date-time */
|
|
215
|
+
createdAt: string;
|
|
216
|
+
/** @format date-time */
|
|
217
|
+
deletedAt?: string | null;
|
|
218
|
+
/** @format uuid */
|
|
219
|
+
id: string;
|
|
220
|
+
name: string;
|
|
221
|
+
/** @format uuid */
|
|
222
|
+
tenantId?: string | null;
|
|
223
|
+
/** @format date-time */
|
|
224
|
+
updatedAt: string;
|
|
225
|
+
}
|
|
226
|
+
export interface WineBrandEntityPaginatedDto {
|
|
227
|
+
items: WineBrandEntityDto[];
|
|
228
|
+
links?: PaginationLinksDto;
|
|
229
|
+
meta: PaginationMetaDto;
|
|
230
|
+
}
|
|
231
|
+
export interface WineEntityDto {
|
|
232
|
+
brand: WineBrandEntityDto;
|
|
233
|
+
/** @format uuid */
|
|
234
|
+
brandId: string;
|
|
235
|
+
/** @format date-time */
|
|
236
|
+
createdAt: string;
|
|
237
|
+
/** @format date-time */
|
|
238
|
+
deletedAt?: string | null;
|
|
239
|
+
description?: string;
|
|
240
|
+
/** @format uuid */
|
|
241
|
+
id: string;
|
|
242
|
+
location: WineLocationDto;
|
|
243
|
+
producer: WineProducerEntityDto;
|
|
244
|
+
/** @format uuid */
|
|
245
|
+
producerId: string;
|
|
246
|
+
style: WineStyleEntityDto;
|
|
247
|
+
/** @format uuid */
|
|
248
|
+
styleId: string;
|
|
249
|
+
/** @format uuid */
|
|
250
|
+
tenantId?: string | null;
|
|
251
|
+
type: WineTypeEntityDto;
|
|
252
|
+
/** @format uuid */
|
|
253
|
+
typeId: string;
|
|
254
|
+
/** @format date-time */
|
|
255
|
+
updatedAt: string;
|
|
256
|
+
varietal: WineVarietalEntityDto;
|
|
257
|
+
/** @format uuid */
|
|
258
|
+
varietalId: string;
|
|
259
|
+
village: WineVillageEntityDto;
|
|
260
|
+
/** @format uuid */
|
|
261
|
+
villageId: string;
|
|
262
|
+
vineyard: WineVineyardEntityDto;
|
|
263
|
+
/** @format uuid */
|
|
264
|
+
vineyardId: string;
|
|
265
|
+
}
|
|
266
|
+
export interface WineEntityPaginatedDto {
|
|
267
|
+
items: WineEntityDto[];
|
|
268
|
+
links?: PaginationLinksDto;
|
|
269
|
+
meta: PaginationMetaDto;
|
|
270
|
+
}
|
|
271
|
+
export interface WineLocationDto {
|
|
272
|
+
country: string;
|
|
273
|
+
region: string;
|
|
274
|
+
}
|
|
275
|
+
export interface WineProducerEntityDto {
|
|
276
|
+
/** @format date-time */
|
|
277
|
+
createdAt: string;
|
|
278
|
+
/** @format date-time */
|
|
279
|
+
deletedAt?: string | null;
|
|
280
|
+
/** @format uuid */
|
|
281
|
+
id: string;
|
|
282
|
+
name: string;
|
|
283
|
+
/** @format uuid */
|
|
284
|
+
tenantId?: string | null;
|
|
285
|
+
/** @format date-time */
|
|
286
|
+
updatedAt: string;
|
|
287
|
+
}
|
|
288
|
+
export interface WineProducerEntityPaginatedDto {
|
|
289
|
+
items: WineProducerEntityDto[];
|
|
290
|
+
links?: PaginationLinksDto;
|
|
291
|
+
meta: PaginationMetaDto;
|
|
292
|
+
}
|
|
293
|
+
export interface WineStyleEntityDto {
|
|
294
|
+
/** @format date-time */
|
|
295
|
+
createdAt: string;
|
|
296
|
+
/** @format date-time */
|
|
297
|
+
deletedAt?: string | null;
|
|
298
|
+
/** @format uuid */
|
|
299
|
+
id: string;
|
|
300
|
+
name: string;
|
|
301
|
+
/** @format uuid */
|
|
302
|
+
tenantId?: string | null;
|
|
303
|
+
/** @format date-time */
|
|
304
|
+
updatedAt: string;
|
|
305
|
+
}
|
|
306
|
+
export interface WineStyleEntityPaginatedDto {
|
|
307
|
+
items: WineStyleEntityDto[];
|
|
308
|
+
links?: PaginationLinksDto;
|
|
309
|
+
meta: PaginationMetaDto;
|
|
310
|
+
}
|
|
311
|
+
export interface WineTypeEntityDto {
|
|
312
|
+
/** @format date-time */
|
|
313
|
+
createdAt: string;
|
|
314
|
+
/** @format date-time */
|
|
315
|
+
deletedAt?: string | null;
|
|
316
|
+
/** @format uuid */
|
|
317
|
+
id: string;
|
|
318
|
+
name: string;
|
|
319
|
+
/** @format uuid */
|
|
320
|
+
tenantId?: string | null;
|
|
321
|
+
/** @format date-time */
|
|
322
|
+
updatedAt: string;
|
|
323
|
+
}
|
|
324
|
+
export interface WineTypeEntityPaginatedDto {
|
|
325
|
+
items: WineTypeEntityDto[];
|
|
326
|
+
links?: PaginationLinksDto;
|
|
327
|
+
meta: PaginationMetaDto;
|
|
328
|
+
}
|
|
329
|
+
export interface WineVarietalEntityDto {
|
|
330
|
+
/** @format date-time */
|
|
331
|
+
createdAt: string;
|
|
332
|
+
/** @format date-time */
|
|
333
|
+
deletedAt?: string | null;
|
|
334
|
+
/** @format uuid */
|
|
335
|
+
id: string;
|
|
336
|
+
name: string;
|
|
337
|
+
/** @format uuid */
|
|
338
|
+
tenantId?: string | null;
|
|
339
|
+
/** @format date-time */
|
|
340
|
+
updatedAt: string;
|
|
341
|
+
}
|
|
342
|
+
export interface WineVarietalEntityPaginatedDto {
|
|
343
|
+
items: WineVarietalEntityDto[];
|
|
344
|
+
links?: PaginationLinksDto;
|
|
345
|
+
meta: PaginationMetaDto;
|
|
346
|
+
}
|
|
347
|
+
export interface WineVillageEntityDto {
|
|
348
|
+
/** @format date-time */
|
|
349
|
+
createdAt: string;
|
|
350
|
+
/** @format date-time */
|
|
351
|
+
deletedAt?: string | null;
|
|
352
|
+
/** @format uuid */
|
|
353
|
+
id: string;
|
|
354
|
+
name: string;
|
|
355
|
+
/** @format uuid */
|
|
356
|
+
tenantId?: string | null;
|
|
357
|
+
/** @format date-time */
|
|
358
|
+
updatedAt: string;
|
|
359
|
+
}
|
|
360
|
+
export interface WineVillageEntityPaginatedDto {
|
|
361
|
+
items: WineVillageEntityDto[];
|
|
362
|
+
links?: PaginationLinksDto;
|
|
363
|
+
meta: PaginationMetaDto;
|
|
364
|
+
}
|
|
365
|
+
export interface WineVineyardEntityDto {
|
|
366
|
+
/** @format date-time */
|
|
367
|
+
createdAt: string;
|
|
368
|
+
/** @format date-time */
|
|
369
|
+
deletedAt?: string | null;
|
|
370
|
+
/** @format uuid */
|
|
371
|
+
id: string;
|
|
372
|
+
name: string;
|
|
373
|
+
/** @format uuid */
|
|
374
|
+
tenantId?: string | null;
|
|
375
|
+
/** @format date-time */
|
|
376
|
+
updatedAt: string;
|
|
377
|
+
}
|
|
378
|
+
export interface WineVineyardEntityPaginatedDto {
|
|
379
|
+
items: WineVineyardEntityDto[];
|
|
380
|
+
links?: PaginationLinksDto;
|
|
381
|
+
meta: PaginationMetaDto;
|
|
382
|
+
}
|
|
126
383
|
export declare namespace Auth {
|
|
127
384
|
/**
|
|
128
385
|
* No description
|
|
@@ -244,246 +501,1930 @@ export declare namespace Admin {
|
|
|
244
501
|
}
|
|
245
502
|
/**
|
|
246
503
|
* No description
|
|
247
|
-
* @tags Admin Tenant
|
|
248
|
-
* @name
|
|
249
|
-
* @request
|
|
504
|
+
* @tags Admin Tenant Wines
|
|
505
|
+
* @name CreateTenantWine
|
|
506
|
+
* @request POST:/admin/tenants/{tenantId}/wines
|
|
250
507
|
* @secure
|
|
251
|
-
* @response `
|
|
508
|
+
* @response `201` `WineEntityDto`
|
|
252
509
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
253
510
|
*/
|
|
254
|
-
namespace
|
|
511
|
+
namespace CreateTenantWine {
|
|
255
512
|
type RequestParams = {
|
|
256
513
|
tenantId: string;
|
|
257
|
-
userId: string;
|
|
258
514
|
};
|
|
259
515
|
type RequestQuery = {};
|
|
260
|
-
type RequestBody =
|
|
516
|
+
type RequestBody = CreateWineDto;
|
|
261
517
|
type RequestHeaders = {};
|
|
262
|
-
type ResponseBody =
|
|
518
|
+
type ResponseBody = WineEntityDto;
|
|
263
519
|
}
|
|
264
520
|
/**
|
|
265
521
|
* No description
|
|
266
|
-
* @tags Admin Tenant
|
|
267
|
-
* @name
|
|
268
|
-
* @request
|
|
522
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
523
|
+
* @name CreateTenantWineBottleFormat
|
|
524
|
+
* @request POST:/admin/tenants/{tenantId}/wine-bottle-formats
|
|
269
525
|
* @secure
|
|
270
|
-
* @response `
|
|
526
|
+
* @response `201` `WineBottleFormatEntityDto`
|
|
271
527
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
272
528
|
*/
|
|
273
|
-
namespace
|
|
529
|
+
namespace CreateTenantWineBottleFormat {
|
|
274
530
|
type RequestParams = {
|
|
275
531
|
tenantId: string;
|
|
276
|
-
userId: string;
|
|
277
532
|
};
|
|
278
533
|
type RequestQuery = {};
|
|
279
|
-
type RequestBody =
|
|
534
|
+
type RequestBody = CreateNameOnlyEntityDto;
|
|
280
535
|
type RequestHeaders = {};
|
|
281
|
-
type ResponseBody =
|
|
536
|
+
type ResponseBody = WineBottleFormatEntityDto;
|
|
282
537
|
}
|
|
283
538
|
/**
|
|
284
539
|
* No description
|
|
285
|
-
* @tags Admin Tenant
|
|
286
|
-
* @name
|
|
287
|
-
* @request
|
|
540
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
541
|
+
* @name CreateTenantWineBottleVintage
|
|
542
|
+
* @request POST:/admin/tenants/{tenantId}/wine-bottle-vintages
|
|
288
543
|
* @secure
|
|
289
|
-
* @response `
|
|
544
|
+
* @response `201` `WineBottleVintageEntityDto`
|
|
290
545
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
291
546
|
*/
|
|
292
|
-
namespace
|
|
547
|
+
namespace CreateTenantWineBottleVintage {
|
|
293
548
|
type RequestParams = {
|
|
294
549
|
tenantId: string;
|
|
295
550
|
};
|
|
296
|
-
type RequestQuery = {
|
|
297
|
-
|
|
298
|
-
* @default 10
|
|
299
|
-
* @example 10
|
|
300
|
-
*/
|
|
301
|
-
limit?: number;
|
|
302
|
-
orderBy?: OrderByEnum;
|
|
303
|
-
/**
|
|
304
|
-
* @default 1
|
|
305
|
-
* @example 1
|
|
306
|
-
*/
|
|
307
|
-
page?: number;
|
|
308
|
-
roles?: TenantRoleEnum[];
|
|
309
|
-
search?: string;
|
|
310
|
-
sortBy?: string[];
|
|
311
|
-
status?: TenantUserStatusEnum[];
|
|
312
|
-
};
|
|
313
|
-
type RequestBody = never;
|
|
551
|
+
type RequestQuery = {};
|
|
552
|
+
type RequestBody = CreateNameOnlyEntityDto;
|
|
314
553
|
type RequestHeaders = {};
|
|
315
|
-
type ResponseBody =
|
|
554
|
+
type ResponseBody = WineBottleVintageEntityDto;
|
|
316
555
|
}
|
|
317
|
-
}
|
|
318
|
-
import type { AxiosInstance, AxiosRequestConfig, ResponseType } from "axios";
|
|
319
|
-
export type QueryParamsType = Record<string | number, any>;
|
|
320
|
-
export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
|
|
321
|
-
/** set parameter to `true` for call `securityWorker` for this request */
|
|
322
|
-
secure?: boolean;
|
|
323
|
-
/** request path */
|
|
324
|
-
path: string;
|
|
325
|
-
/** content type of request body */
|
|
326
|
-
type?: ContentType;
|
|
327
|
-
/** query params */
|
|
328
|
-
query?: QueryParamsType;
|
|
329
|
-
/** format of response (i.e. response.json() -> format: "json") */
|
|
330
|
-
format?: ResponseType;
|
|
331
|
-
/** request body */
|
|
332
|
-
body?: unknown;
|
|
333
|
-
}
|
|
334
|
-
export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
|
|
335
|
-
export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
|
|
336
|
-
securityWorker?: (securityData: SecurityDataType | null) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
|
|
337
|
-
secure?: boolean;
|
|
338
|
-
format?: ResponseType;
|
|
339
|
-
}
|
|
340
|
-
export declare enum ContentType {
|
|
341
|
-
Json = "application/json",
|
|
342
|
-
JsonApi = "application/vnd.api+json",
|
|
343
|
-
FormData = "multipart/form-data",
|
|
344
|
-
UrlEncoded = "application/x-www-form-urlencoded",
|
|
345
|
-
Text = "text/plain"
|
|
346
|
-
}
|
|
347
|
-
export declare class HttpClient<SecurityDataType = unknown> {
|
|
348
|
-
instance: AxiosInstance;
|
|
349
|
-
private securityData;
|
|
350
|
-
private securityWorker?;
|
|
351
|
-
private secure?;
|
|
352
|
-
private format?;
|
|
353
|
-
constructor({ securityWorker, secure, format, ...axiosConfig }?: ApiConfig<SecurityDataType>);
|
|
354
|
-
setSecurityData: (data: SecurityDataType | null) => void;
|
|
355
|
-
protected mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig;
|
|
356
|
-
protected stringifyFormItem(formItem: unknown): string;
|
|
357
|
-
protected createFormData(input: Record<string, unknown>): FormData;
|
|
358
|
-
request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<T>;
|
|
359
|
-
}
|
|
360
|
-
/**
|
|
361
|
-
* @title winehaus-api
|
|
362
|
-
* @version 0.0.1
|
|
363
|
-
* @baseUrl http://localhost:3000
|
|
364
|
-
* @contact
|
|
365
|
-
*/
|
|
366
|
-
export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
367
556
|
/**
|
|
368
557
|
* No description
|
|
369
|
-
*
|
|
370
|
-
* @
|
|
371
|
-
* @
|
|
372
|
-
* @
|
|
373
|
-
* @response `
|
|
558
|
+
* @tags Admin Tenant Wine Brands
|
|
559
|
+
* @name CreateTenantWineBrand
|
|
560
|
+
* @request POST:/admin/tenants/{tenantId}/wine-brands
|
|
561
|
+
* @secure
|
|
562
|
+
* @response `201` `WineBrandEntityDto`
|
|
563
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
374
564
|
*/
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
565
|
+
namespace CreateTenantWineBrand {
|
|
566
|
+
type RequestParams = {
|
|
567
|
+
tenantId: string;
|
|
568
|
+
};
|
|
569
|
+
type RequestQuery = {};
|
|
570
|
+
type RequestBody = CreateNameOnlyEntityDto;
|
|
571
|
+
type RequestHeaders = {};
|
|
572
|
+
type ResponseBody = WineBrandEntityDto;
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* No description
|
|
576
|
+
* @tags Admin Tenant Wine Producers
|
|
577
|
+
* @name CreateTenantWineProducer
|
|
578
|
+
* @request POST:/admin/tenants/{tenantId}/wine-producers
|
|
579
|
+
* @secure
|
|
580
|
+
* @response `201` `WineProducerEntityDto`
|
|
581
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
582
|
+
*/
|
|
583
|
+
namespace CreateTenantWineProducer {
|
|
584
|
+
type RequestParams = {
|
|
585
|
+
tenantId: string;
|
|
586
|
+
};
|
|
587
|
+
type RequestQuery = {};
|
|
588
|
+
type RequestBody = CreateNameOnlyEntityDto;
|
|
589
|
+
type RequestHeaders = {};
|
|
590
|
+
type ResponseBody = WineProducerEntityDto;
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* No description
|
|
594
|
+
* @tags Admin Tenant Wine Styles
|
|
595
|
+
* @name CreateTenantWineStyle
|
|
596
|
+
* @request POST:/admin/tenants/{tenantId}/wine-styles
|
|
597
|
+
* @secure
|
|
598
|
+
* @response `201` `WineStyleEntityDto`
|
|
599
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
600
|
+
*/
|
|
601
|
+
namespace CreateTenantWineStyle {
|
|
602
|
+
type RequestParams = {
|
|
603
|
+
tenantId: string;
|
|
604
|
+
};
|
|
605
|
+
type RequestQuery = {};
|
|
606
|
+
type RequestBody = CreateNameOnlyEntityDto;
|
|
607
|
+
type RequestHeaders = {};
|
|
608
|
+
type ResponseBody = WineStyleEntityDto;
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* No description
|
|
612
|
+
* @tags Admin Tenant Wine Types
|
|
613
|
+
* @name CreateTenantWineType
|
|
614
|
+
* @request POST:/admin/tenants/{tenantId}/wine-types
|
|
615
|
+
* @secure
|
|
616
|
+
* @response `201` `WineTypeEntityDto`
|
|
617
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
618
|
+
*/
|
|
619
|
+
namespace CreateTenantWineType {
|
|
620
|
+
type RequestParams = {
|
|
621
|
+
tenantId: string;
|
|
622
|
+
};
|
|
623
|
+
type RequestQuery = {};
|
|
624
|
+
type RequestBody = CreateNameOnlyEntityDto;
|
|
625
|
+
type RequestHeaders = {};
|
|
626
|
+
type ResponseBody = WineTypeEntityDto;
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* No description
|
|
630
|
+
* @tags Admin Tenant Wine Varietals
|
|
631
|
+
* @name CreateTenantWineVarietal
|
|
632
|
+
* @request POST:/admin/tenants/{tenantId}/wine-varietals
|
|
633
|
+
* @secure
|
|
634
|
+
* @response `201` `WineVarietalEntityDto`
|
|
635
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
636
|
+
*/
|
|
637
|
+
namespace CreateTenantWineVarietal {
|
|
638
|
+
type RequestParams = {
|
|
639
|
+
tenantId: string;
|
|
640
|
+
};
|
|
641
|
+
type RequestQuery = {};
|
|
642
|
+
type RequestBody = CreateNameOnlyEntityDto;
|
|
643
|
+
type RequestHeaders = {};
|
|
644
|
+
type ResponseBody = WineVarietalEntityDto;
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* No description
|
|
648
|
+
* @tags Admin Tenant Wine Villages
|
|
649
|
+
* @name CreateTenantWineVillage
|
|
650
|
+
* @request POST:/admin/tenants/{tenantId}/wine-villages
|
|
651
|
+
* @secure
|
|
652
|
+
* @response `201` `WineVillageEntityDto`
|
|
653
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
654
|
+
*/
|
|
655
|
+
namespace CreateTenantWineVillage {
|
|
656
|
+
type RequestParams = {
|
|
657
|
+
tenantId: string;
|
|
658
|
+
};
|
|
659
|
+
type RequestQuery = {};
|
|
660
|
+
type RequestBody = CreateNameOnlyEntityDto;
|
|
661
|
+
type RequestHeaders = {};
|
|
662
|
+
type ResponseBody = WineVillageEntityDto;
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* No description
|
|
666
|
+
* @tags Admin Tenant Wine Vineyards
|
|
667
|
+
* @name CreateTenantWineVineyard
|
|
668
|
+
* @request POST:/admin/tenants/{tenantId}/wine-vineyards
|
|
669
|
+
* @secure
|
|
670
|
+
* @response `201` `WineVineyardEntityDto`
|
|
671
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
672
|
+
*/
|
|
673
|
+
namespace CreateTenantWineVineyard {
|
|
674
|
+
type RequestParams = {
|
|
675
|
+
tenantId: string;
|
|
676
|
+
};
|
|
677
|
+
type RequestQuery = {};
|
|
678
|
+
type RequestBody = CreateNameOnlyEntityDto;
|
|
679
|
+
type RequestHeaders = {};
|
|
680
|
+
type ResponseBody = WineVineyardEntityDto;
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* No description
|
|
684
|
+
* @tags Admin Tenant Wines
|
|
685
|
+
* @name DeleteTenantWine
|
|
686
|
+
* @request DELETE:/admin/tenants/{tenantId}/wines/{wineId}
|
|
687
|
+
* @secure
|
|
688
|
+
* @response `204` `void`
|
|
689
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
690
|
+
*/
|
|
691
|
+
namespace DeleteTenantWine {
|
|
692
|
+
type RequestParams = {
|
|
693
|
+
tenantId: string;
|
|
694
|
+
wineId: string;
|
|
695
|
+
};
|
|
696
|
+
type RequestQuery = {};
|
|
697
|
+
type RequestBody = never;
|
|
698
|
+
type RequestHeaders = {};
|
|
699
|
+
type ResponseBody = void;
|
|
700
|
+
}
|
|
701
|
+
/**
|
|
702
|
+
* No description
|
|
703
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
704
|
+
* @name DeleteTenantWineBottleFormat
|
|
705
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
|
|
706
|
+
* @secure
|
|
707
|
+
* @response `204` `void`
|
|
708
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
709
|
+
*/
|
|
710
|
+
namespace DeleteTenantWineBottleFormat {
|
|
711
|
+
type RequestParams = {
|
|
712
|
+
bottleFormatId: string;
|
|
713
|
+
tenantId: string;
|
|
714
|
+
};
|
|
715
|
+
type RequestQuery = {};
|
|
716
|
+
type RequestBody = never;
|
|
717
|
+
type RequestHeaders = {};
|
|
718
|
+
type ResponseBody = void;
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* No description
|
|
722
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
723
|
+
* @name DeleteTenantWineBottleVintage
|
|
724
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
|
|
725
|
+
* @secure
|
|
726
|
+
* @response `204` `void`
|
|
727
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
728
|
+
*/
|
|
729
|
+
namespace DeleteTenantWineBottleVintage {
|
|
730
|
+
type RequestParams = {
|
|
731
|
+
bottleVintageId: string;
|
|
732
|
+
tenantId: string;
|
|
733
|
+
};
|
|
734
|
+
type RequestQuery = {};
|
|
735
|
+
type RequestBody = never;
|
|
736
|
+
type RequestHeaders = {};
|
|
737
|
+
type ResponseBody = void;
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* No description
|
|
741
|
+
* @tags Admin Tenant Wine Brands
|
|
742
|
+
* @name DeleteTenantWineBrand
|
|
743
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-brands/{brandId}
|
|
744
|
+
* @secure
|
|
745
|
+
* @response `204` `void`
|
|
746
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
747
|
+
*/
|
|
748
|
+
namespace DeleteTenantWineBrand {
|
|
749
|
+
type RequestParams = {
|
|
750
|
+
brandId: string;
|
|
751
|
+
tenantId: string;
|
|
752
|
+
};
|
|
753
|
+
type RequestQuery = {};
|
|
754
|
+
type RequestBody = never;
|
|
755
|
+
type RequestHeaders = {};
|
|
756
|
+
type ResponseBody = void;
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* No description
|
|
760
|
+
* @tags Admin Tenant Wine Producers
|
|
761
|
+
* @name DeleteTenantWineProducer
|
|
762
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-producers/{producerId}
|
|
763
|
+
* @secure
|
|
764
|
+
* @response `204` `void`
|
|
765
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
766
|
+
*/
|
|
767
|
+
namespace DeleteTenantWineProducer {
|
|
768
|
+
type RequestParams = {
|
|
769
|
+
producerId: string;
|
|
770
|
+
tenantId: string;
|
|
771
|
+
};
|
|
772
|
+
type RequestQuery = {};
|
|
773
|
+
type RequestBody = never;
|
|
774
|
+
type RequestHeaders = {};
|
|
775
|
+
type ResponseBody = void;
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* No description
|
|
779
|
+
* @tags Admin Tenant Wine Styles
|
|
780
|
+
* @name DeleteTenantWineStyle
|
|
781
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-styles/{styleId}
|
|
782
|
+
* @secure
|
|
783
|
+
* @response `204` `void`
|
|
784
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
785
|
+
*/
|
|
786
|
+
namespace DeleteTenantWineStyle {
|
|
787
|
+
type RequestParams = {
|
|
788
|
+
styleId: string;
|
|
789
|
+
tenantId: string;
|
|
790
|
+
};
|
|
791
|
+
type RequestQuery = {};
|
|
792
|
+
type RequestBody = never;
|
|
793
|
+
type RequestHeaders = {};
|
|
794
|
+
type ResponseBody = void;
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* No description
|
|
798
|
+
* @tags Admin Tenant Wine Types
|
|
799
|
+
* @name DeleteTenantWineType
|
|
800
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-types/{typeId}
|
|
801
|
+
* @secure
|
|
802
|
+
* @response `204` `void`
|
|
803
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
804
|
+
*/
|
|
805
|
+
namespace DeleteTenantWineType {
|
|
806
|
+
type RequestParams = {
|
|
807
|
+
tenantId: string;
|
|
808
|
+
typeId: string;
|
|
809
|
+
};
|
|
810
|
+
type RequestQuery = {};
|
|
811
|
+
type RequestBody = never;
|
|
812
|
+
type RequestHeaders = {};
|
|
813
|
+
type ResponseBody = void;
|
|
814
|
+
}
|
|
815
|
+
/**
|
|
816
|
+
* No description
|
|
817
|
+
* @tags Admin Tenant Wine Varietals
|
|
818
|
+
* @name DeleteTenantWineVarietal
|
|
819
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-varietals/{varietalId}
|
|
820
|
+
* @secure
|
|
821
|
+
* @response `204` `void`
|
|
822
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
823
|
+
*/
|
|
824
|
+
namespace DeleteTenantWineVarietal {
|
|
825
|
+
type RequestParams = {
|
|
826
|
+
tenantId: string;
|
|
827
|
+
varietalId: string;
|
|
828
|
+
};
|
|
829
|
+
type RequestQuery = {};
|
|
830
|
+
type RequestBody = never;
|
|
831
|
+
type RequestHeaders = {};
|
|
832
|
+
type ResponseBody = void;
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* No description
|
|
836
|
+
* @tags Admin Tenant Wine Villages
|
|
837
|
+
* @name DeleteTenantWineVillage
|
|
838
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-villages/{villageId}
|
|
839
|
+
* @secure
|
|
840
|
+
* @response `204` `void`
|
|
841
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
842
|
+
*/
|
|
843
|
+
namespace DeleteTenantWineVillage {
|
|
844
|
+
type RequestParams = {
|
|
845
|
+
tenantId: string;
|
|
846
|
+
villageId: string;
|
|
847
|
+
};
|
|
848
|
+
type RequestQuery = {};
|
|
849
|
+
type RequestBody = never;
|
|
850
|
+
type RequestHeaders = {};
|
|
851
|
+
type ResponseBody = void;
|
|
852
|
+
}
|
|
853
|
+
/**
|
|
854
|
+
* No description
|
|
855
|
+
* @tags Admin Tenant Wine Vineyards
|
|
856
|
+
* @name DeleteTenantWineVineyard
|
|
857
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-vineyards/{vineyardId}
|
|
858
|
+
* @secure
|
|
859
|
+
* @response `204` `void`
|
|
860
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
861
|
+
*/
|
|
862
|
+
namespace DeleteTenantWineVineyard {
|
|
863
|
+
type RequestParams = {
|
|
864
|
+
tenantId: string;
|
|
865
|
+
vineyardId: string;
|
|
866
|
+
};
|
|
867
|
+
type RequestQuery = {};
|
|
868
|
+
type RequestBody = never;
|
|
869
|
+
type RequestHeaders = {};
|
|
870
|
+
type ResponseBody = void;
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* No description
|
|
874
|
+
* @tags Admin Tenant Users
|
|
875
|
+
* @name DisableTenantUser
|
|
876
|
+
* @request PATCH:/admin/tenants/{tenantId}/users/{userId}/disable
|
|
877
|
+
* @secure
|
|
878
|
+
* @response `204` `void`
|
|
879
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
880
|
+
*/
|
|
881
|
+
namespace DisableTenantUser {
|
|
882
|
+
type RequestParams = {
|
|
883
|
+
tenantId: string;
|
|
884
|
+
userId: string;
|
|
885
|
+
};
|
|
886
|
+
type RequestQuery = {};
|
|
887
|
+
type RequestBody = never;
|
|
888
|
+
type RequestHeaders = {};
|
|
889
|
+
type ResponseBody = void;
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
* No description
|
|
893
|
+
* @tags Admin Tenant Users
|
|
894
|
+
* @name EnableTenantUser
|
|
895
|
+
* @request PATCH:/admin/tenants/{tenantId}/users/{userId}/enable
|
|
896
|
+
* @secure
|
|
897
|
+
* @response `204` `void`
|
|
898
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
899
|
+
*/
|
|
900
|
+
namespace EnableTenantUser {
|
|
901
|
+
type RequestParams = {
|
|
902
|
+
tenantId: string;
|
|
903
|
+
userId: string;
|
|
904
|
+
};
|
|
905
|
+
type RequestQuery = {};
|
|
906
|
+
type RequestBody = never;
|
|
907
|
+
type RequestHeaders = {};
|
|
908
|
+
type ResponseBody = void;
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* No description
|
|
912
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
913
|
+
* @name GetTenantWineBottleFormatById
|
|
914
|
+
* @request GET:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
|
|
915
|
+
* @secure
|
|
916
|
+
* @response `200` `WineBottleFormatEntityDto`
|
|
917
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
918
|
+
*/
|
|
919
|
+
namespace GetTenantWineBottleFormatById {
|
|
920
|
+
type RequestParams = {
|
|
921
|
+
bottleFormatId: string;
|
|
922
|
+
tenantId: string;
|
|
923
|
+
};
|
|
924
|
+
type RequestQuery = {};
|
|
925
|
+
type RequestBody = never;
|
|
926
|
+
type RequestHeaders = {};
|
|
927
|
+
type ResponseBody = WineBottleFormatEntityDto;
|
|
928
|
+
}
|
|
929
|
+
/**
|
|
930
|
+
* No description
|
|
931
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
932
|
+
* @name GetTenantWineBottleVintageById
|
|
933
|
+
* @request GET:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
|
|
934
|
+
* @secure
|
|
935
|
+
* @response `200` `WineBottleVintageEntityDto`
|
|
936
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
937
|
+
*/
|
|
938
|
+
namespace GetTenantWineBottleVintageById {
|
|
939
|
+
type RequestParams = {
|
|
940
|
+
bottleVintageId: string;
|
|
941
|
+
tenantId: string;
|
|
942
|
+
};
|
|
943
|
+
type RequestQuery = {};
|
|
944
|
+
type RequestBody = never;
|
|
945
|
+
type RequestHeaders = {};
|
|
946
|
+
type ResponseBody = WineBottleVintageEntityDto;
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
* No description
|
|
950
|
+
* @tags Admin Tenant Wine Brands
|
|
951
|
+
* @name GetTenantWineBrandById
|
|
952
|
+
* @request GET:/admin/tenants/{tenantId}/wine-brands/{brandId}
|
|
953
|
+
* @secure
|
|
954
|
+
* @response `200` `WineBrandEntityDto`
|
|
955
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
956
|
+
*/
|
|
957
|
+
namespace GetTenantWineBrandById {
|
|
958
|
+
type RequestParams = {
|
|
959
|
+
brandId: string;
|
|
960
|
+
tenantId: string;
|
|
961
|
+
};
|
|
962
|
+
type RequestQuery = {};
|
|
963
|
+
type RequestBody = never;
|
|
964
|
+
type RequestHeaders = {};
|
|
965
|
+
type ResponseBody = WineBrandEntityDto;
|
|
966
|
+
}
|
|
967
|
+
/**
|
|
968
|
+
* No description
|
|
969
|
+
* @tags Admin Tenant Wines
|
|
970
|
+
* @name GetTenantWineById
|
|
971
|
+
* @request GET:/admin/tenants/{tenantId}/wines/{wineId}
|
|
972
|
+
* @secure
|
|
973
|
+
* @response `200` `WineEntityDto`
|
|
974
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
975
|
+
*/
|
|
976
|
+
namespace GetTenantWineById {
|
|
977
|
+
type RequestParams = {
|
|
978
|
+
tenantId: string;
|
|
979
|
+
wineId: string;
|
|
980
|
+
};
|
|
981
|
+
type RequestQuery = {};
|
|
982
|
+
type RequestBody = never;
|
|
983
|
+
type RequestHeaders = {};
|
|
984
|
+
type ResponseBody = WineEntityDto;
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* No description
|
|
988
|
+
* @tags Admin Tenant Wine Producers
|
|
989
|
+
* @name GetTenantWineProducerById
|
|
990
|
+
* @request GET:/admin/tenants/{tenantId}/wine-producers/{producerId}
|
|
991
|
+
* @secure
|
|
992
|
+
* @response `200` `WineProducerEntityDto`
|
|
993
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
994
|
+
*/
|
|
995
|
+
namespace GetTenantWineProducerById {
|
|
996
|
+
type RequestParams = {
|
|
997
|
+
producerId: string;
|
|
998
|
+
tenantId: string;
|
|
999
|
+
};
|
|
1000
|
+
type RequestQuery = {};
|
|
1001
|
+
type RequestBody = never;
|
|
1002
|
+
type RequestHeaders = {};
|
|
1003
|
+
type ResponseBody = WineProducerEntityDto;
|
|
1004
|
+
}
|
|
1005
|
+
/**
|
|
1006
|
+
* No description
|
|
1007
|
+
* @tags Admin Tenant Wine Styles
|
|
1008
|
+
* @name GetTenantWineStyleById
|
|
1009
|
+
* @request GET:/admin/tenants/{tenantId}/wine-styles/{styleId}
|
|
1010
|
+
* @secure
|
|
1011
|
+
* @response `200` `WineStyleEntityDto`
|
|
1012
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1013
|
+
*/
|
|
1014
|
+
namespace GetTenantWineStyleById {
|
|
1015
|
+
type RequestParams = {
|
|
1016
|
+
styleId: string;
|
|
1017
|
+
tenantId: string;
|
|
1018
|
+
};
|
|
1019
|
+
type RequestQuery = {};
|
|
1020
|
+
type RequestBody = never;
|
|
1021
|
+
type RequestHeaders = {};
|
|
1022
|
+
type ResponseBody = WineStyleEntityDto;
|
|
1023
|
+
}
|
|
1024
|
+
/**
|
|
1025
|
+
* No description
|
|
1026
|
+
* @tags Admin Tenant Wine Types
|
|
1027
|
+
* @name GetTenantWineTypeById
|
|
1028
|
+
* @request GET:/admin/tenants/{tenantId}/wine-types/{typeId}
|
|
1029
|
+
* @secure
|
|
1030
|
+
* @response `200` `WineTypeEntityDto`
|
|
1031
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1032
|
+
*/
|
|
1033
|
+
namespace GetTenantWineTypeById {
|
|
1034
|
+
type RequestParams = {
|
|
1035
|
+
tenantId: string;
|
|
1036
|
+
typeId: string;
|
|
1037
|
+
};
|
|
1038
|
+
type RequestQuery = {};
|
|
1039
|
+
type RequestBody = never;
|
|
1040
|
+
type RequestHeaders = {};
|
|
1041
|
+
type ResponseBody = WineTypeEntityDto;
|
|
1042
|
+
}
|
|
1043
|
+
/**
|
|
1044
|
+
* No description
|
|
1045
|
+
* @tags Admin Tenant Wine Varietals
|
|
1046
|
+
* @name GetTenantWineVarietalById
|
|
1047
|
+
* @request GET:/admin/tenants/{tenantId}/wine-varietals/{varietalId}
|
|
1048
|
+
* @secure
|
|
1049
|
+
* @response `200` `WineVarietalEntityDto`
|
|
1050
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1051
|
+
*/
|
|
1052
|
+
namespace GetTenantWineVarietalById {
|
|
1053
|
+
type RequestParams = {
|
|
1054
|
+
tenantId: string;
|
|
1055
|
+
varietalId: string;
|
|
1056
|
+
};
|
|
1057
|
+
type RequestQuery = {};
|
|
1058
|
+
type RequestBody = never;
|
|
1059
|
+
type RequestHeaders = {};
|
|
1060
|
+
type ResponseBody = WineVarietalEntityDto;
|
|
1061
|
+
}
|
|
1062
|
+
/**
|
|
1063
|
+
* No description
|
|
1064
|
+
* @tags Admin Tenant Wine Villages
|
|
1065
|
+
* @name GetTenantWineVillageById
|
|
1066
|
+
* @request GET:/admin/tenants/{tenantId}/wine-villages/{villageId}
|
|
1067
|
+
* @secure
|
|
1068
|
+
* @response `200` `WineVillageEntityDto`
|
|
1069
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1070
|
+
*/
|
|
1071
|
+
namespace GetTenantWineVillageById {
|
|
1072
|
+
type RequestParams = {
|
|
1073
|
+
tenantId: string;
|
|
1074
|
+
villageId: string;
|
|
1075
|
+
};
|
|
1076
|
+
type RequestQuery = {};
|
|
1077
|
+
type RequestBody = never;
|
|
1078
|
+
type RequestHeaders = {};
|
|
1079
|
+
type ResponseBody = WineVillageEntityDto;
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* No description
|
|
1083
|
+
* @tags Admin Tenant Wine Vineyards
|
|
1084
|
+
* @name GetTenantWineVineyardById
|
|
1085
|
+
* @request GET:/admin/tenants/{tenantId}/wine-vineyards/{vineyardId}
|
|
1086
|
+
* @secure
|
|
1087
|
+
* @response `200` `WineVineyardEntityDto`
|
|
1088
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1089
|
+
*/
|
|
1090
|
+
namespace GetTenantWineVineyardById {
|
|
1091
|
+
type RequestParams = {
|
|
1092
|
+
tenantId: string;
|
|
1093
|
+
vineyardId: string;
|
|
1094
|
+
};
|
|
1095
|
+
type RequestQuery = {};
|
|
1096
|
+
type RequestBody = never;
|
|
1097
|
+
type RequestHeaders = {};
|
|
1098
|
+
type ResponseBody = WineVineyardEntityDto;
|
|
1099
|
+
}
|
|
1100
|
+
/**
|
|
1101
|
+
* No description
|
|
1102
|
+
* @tags Admin Tenant Users
|
|
1103
|
+
* @name ListTenantUsers
|
|
1104
|
+
* @request GET:/admin/tenants/{tenantId}/users
|
|
1105
|
+
* @secure
|
|
1106
|
+
* @response `200` `TenantUserEntityPaginatedDto`
|
|
1107
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1108
|
+
*/
|
|
1109
|
+
namespace ListTenantUsers {
|
|
1110
|
+
type RequestParams = {
|
|
1111
|
+
tenantId: string;
|
|
1112
|
+
};
|
|
1113
|
+
type RequestQuery = {
|
|
1114
|
+
/**
|
|
1115
|
+
* @default 10
|
|
1116
|
+
* @example 10
|
|
1117
|
+
*/
|
|
1118
|
+
limit?: number;
|
|
1119
|
+
orderBy?: OrderByEnum;
|
|
1120
|
+
/**
|
|
1121
|
+
* @default 1
|
|
1122
|
+
* @example 1
|
|
1123
|
+
*/
|
|
1124
|
+
page?: number;
|
|
1125
|
+
roles?: TenantRoleEnum[];
|
|
1126
|
+
search?: string;
|
|
1127
|
+
sortBy?: string[];
|
|
1128
|
+
status?: TenantUserStatusEnum[];
|
|
1129
|
+
};
|
|
1130
|
+
type RequestBody = never;
|
|
1131
|
+
type RequestHeaders = {};
|
|
1132
|
+
type ResponseBody = TenantUserEntityPaginatedDto;
|
|
1133
|
+
}
|
|
1134
|
+
/**
|
|
1135
|
+
* No description
|
|
1136
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
1137
|
+
* @name ListTenantWineBottleFormats
|
|
1138
|
+
* @request GET:/admin/tenants/{tenantId}/wine-bottle-formats
|
|
1139
|
+
* @secure
|
|
1140
|
+
* @response `200` `WineBottleFormatEntityPaginatedDto`
|
|
1141
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1142
|
+
*/
|
|
1143
|
+
namespace ListTenantWineBottleFormats {
|
|
1144
|
+
type RequestParams = {
|
|
1145
|
+
tenantId: string;
|
|
1146
|
+
};
|
|
1147
|
+
type RequestQuery = {
|
|
1148
|
+
createdAt?: string;
|
|
1149
|
+
/**
|
|
1150
|
+
* @default 10
|
|
1151
|
+
* @example 10
|
|
1152
|
+
*/
|
|
1153
|
+
limit?: number;
|
|
1154
|
+
orderBy?: OrderByEnum;
|
|
1155
|
+
/**
|
|
1156
|
+
* @default 1
|
|
1157
|
+
* @example 1
|
|
1158
|
+
*/
|
|
1159
|
+
page?: number;
|
|
1160
|
+
search?: string;
|
|
1161
|
+
sortBy?: string[];
|
|
1162
|
+
};
|
|
1163
|
+
type RequestBody = never;
|
|
1164
|
+
type RequestHeaders = {};
|
|
1165
|
+
type ResponseBody = WineBottleFormatEntityPaginatedDto;
|
|
1166
|
+
}
|
|
1167
|
+
/**
|
|
1168
|
+
* No description
|
|
1169
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
1170
|
+
* @name ListTenantWineBottleVintages
|
|
1171
|
+
* @request GET:/admin/tenants/{tenantId}/wine-bottle-vintages
|
|
1172
|
+
* @secure
|
|
1173
|
+
* @response `200` `WineBottleVintageEntityPaginatedDto`
|
|
1174
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1175
|
+
*/
|
|
1176
|
+
namespace ListTenantWineBottleVintages {
|
|
1177
|
+
type RequestParams = {
|
|
1178
|
+
tenantId: string;
|
|
1179
|
+
};
|
|
1180
|
+
type RequestQuery = {
|
|
1181
|
+
createdAt?: string;
|
|
1182
|
+
/**
|
|
1183
|
+
* @default 10
|
|
1184
|
+
* @example 10
|
|
1185
|
+
*/
|
|
1186
|
+
limit?: number;
|
|
1187
|
+
orderBy?: OrderByEnum;
|
|
1188
|
+
/**
|
|
1189
|
+
* @default 1
|
|
1190
|
+
* @example 1
|
|
1191
|
+
*/
|
|
1192
|
+
page?: number;
|
|
1193
|
+
search?: string;
|
|
1194
|
+
sortBy?: string[];
|
|
1195
|
+
};
|
|
1196
|
+
type RequestBody = never;
|
|
1197
|
+
type RequestHeaders = {};
|
|
1198
|
+
type ResponseBody = WineBottleVintageEntityPaginatedDto;
|
|
1199
|
+
}
|
|
1200
|
+
/**
|
|
1201
|
+
* No description
|
|
1202
|
+
* @tags Admin Tenant Wine Brands
|
|
1203
|
+
* @name ListTenantWineBrands
|
|
1204
|
+
* @request GET:/admin/tenants/{tenantId}/wine-brands
|
|
1205
|
+
* @secure
|
|
1206
|
+
* @response `200` `WineBrandEntityPaginatedDto`
|
|
1207
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1208
|
+
*/
|
|
1209
|
+
namespace ListTenantWineBrands {
|
|
1210
|
+
type RequestParams = {
|
|
1211
|
+
tenantId: string;
|
|
1212
|
+
};
|
|
1213
|
+
type RequestQuery = {
|
|
1214
|
+
createdAt?: string;
|
|
1215
|
+
/**
|
|
1216
|
+
* @default 10
|
|
1217
|
+
* @example 10
|
|
1218
|
+
*/
|
|
1219
|
+
limit?: number;
|
|
1220
|
+
orderBy?: OrderByEnum;
|
|
1221
|
+
/**
|
|
1222
|
+
* @default 1
|
|
1223
|
+
* @example 1
|
|
1224
|
+
*/
|
|
1225
|
+
page?: number;
|
|
1226
|
+
search?: string;
|
|
1227
|
+
sortBy?: string[];
|
|
1228
|
+
};
|
|
1229
|
+
type RequestBody = never;
|
|
1230
|
+
type RequestHeaders = {};
|
|
1231
|
+
type ResponseBody = WineBrandEntityPaginatedDto;
|
|
1232
|
+
}
|
|
1233
|
+
/**
|
|
1234
|
+
* No description
|
|
1235
|
+
* @tags Admin Tenant Wine Producers
|
|
1236
|
+
* @name ListTenantWineProducers
|
|
1237
|
+
* @request GET:/admin/tenants/{tenantId}/wine-producers
|
|
1238
|
+
* @secure
|
|
1239
|
+
* @response `200` `WineProducerEntityPaginatedDto`
|
|
1240
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1241
|
+
*/
|
|
1242
|
+
namespace ListTenantWineProducers {
|
|
1243
|
+
type RequestParams = {
|
|
1244
|
+
tenantId: string;
|
|
1245
|
+
};
|
|
1246
|
+
type RequestQuery = {
|
|
1247
|
+
createdAt?: string;
|
|
1248
|
+
/**
|
|
1249
|
+
* @default 10
|
|
1250
|
+
* @example 10
|
|
1251
|
+
*/
|
|
1252
|
+
limit?: number;
|
|
1253
|
+
orderBy?: OrderByEnum;
|
|
1254
|
+
/**
|
|
1255
|
+
* @default 1
|
|
1256
|
+
* @example 1
|
|
1257
|
+
*/
|
|
1258
|
+
page?: number;
|
|
1259
|
+
search?: string;
|
|
1260
|
+
sortBy?: string[];
|
|
1261
|
+
};
|
|
1262
|
+
type RequestBody = never;
|
|
1263
|
+
type RequestHeaders = {};
|
|
1264
|
+
type ResponseBody = WineProducerEntityPaginatedDto;
|
|
1265
|
+
}
|
|
1266
|
+
/**
|
|
1267
|
+
* No description
|
|
1268
|
+
* @tags Admin Tenant Wines
|
|
1269
|
+
* @name ListTenantWines
|
|
1270
|
+
* @request GET:/admin/tenants/{tenantId}/wines
|
|
1271
|
+
* @secure
|
|
1272
|
+
* @response `200` `WineEntityPaginatedDto`
|
|
1273
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1274
|
+
*/
|
|
1275
|
+
namespace ListTenantWines {
|
|
1276
|
+
type RequestParams = {
|
|
1277
|
+
tenantId: string;
|
|
1278
|
+
};
|
|
1279
|
+
type RequestQuery = {
|
|
1280
|
+
brandIds?: string[];
|
|
1281
|
+
createdAt?: string;
|
|
1282
|
+
/**
|
|
1283
|
+
* @default 10
|
|
1284
|
+
* @example 10
|
|
1285
|
+
*/
|
|
1286
|
+
limit?: number;
|
|
1287
|
+
orderBy?: OrderByEnum;
|
|
1288
|
+
/**
|
|
1289
|
+
* @default 1
|
|
1290
|
+
* @example 1
|
|
1291
|
+
*/
|
|
1292
|
+
page?: number;
|
|
1293
|
+
producerIds?: string[];
|
|
1294
|
+
sortBy?: string[];
|
|
1295
|
+
styleIds?: string[];
|
|
1296
|
+
typeIds?: string[];
|
|
1297
|
+
varietalIds?: string[];
|
|
1298
|
+
villageIds?: string[];
|
|
1299
|
+
vineyardIds?: string[];
|
|
1300
|
+
};
|
|
1301
|
+
type RequestBody = never;
|
|
1302
|
+
type RequestHeaders = {};
|
|
1303
|
+
type ResponseBody = WineEntityPaginatedDto;
|
|
1304
|
+
}
|
|
1305
|
+
/**
|
|
1306
|
+
* No description
|
|
1307
|
+
* @tags Admin Tenant Wine Styles
|
|
1308
|
+
* @name ListTenantWineStyles
|
|
1309
|
+
* @request GET:/admin/tenants/{tenantId}/wine-styles
|
|
1310
|
+
* @secure
|
|
1311
|
+
* @response `200` `WineStyleEntityPaginatedDto`
|
|
1312
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1313
|
+
*/
|
|
1314
|
+
namespace ListTenantWineStyles {
|
|
1315
|
+
type RequestParams = {
|
|
1316
|
+
tenantId: string;
|
|
1317
|
+
};
|
|
1318
|
+
type RequestQuery = {
|
|
1319
|
+
createdAt?: string;
|
|
1320
|
+
/**
|
|
1321
|
+
* @default 10
|
|
1322
|
+
* @example 10
|
|
1323
|
+
*/
|
|
1324
|
+
limit?: number;
|
|
1325
|
+
orderBy?: OrderByEnum;
|
|
1326
|
+
/**
|
|
1327
|
+
* @default 1
|
|
1328
|
+
* @example 1
|
|
1329
|
+
*/
|
|
1330
|
+
page?: number;
|
|
1331
|
+
search?: string;
|
|
1332
|
+
sortBy?: string[];
|
|
1333
|
+
};
|
|
1334
|
+
type RequestBody = never;
|
|
1335
|
+
type RequestHeaders = {};
|
|
1336
|
+
type ResponseBody = WineStyleEntityPaginatedDto;
|
|
1337
|
+
}
|
|
1338
|
+
/**
|
|
1339
|
+
* No description
|
|
1340
|
+
* @tags Admin Tenant Wine Types
|
|
1341
|
+
* @name ListTenantWineTypes
|
|
1342
|
+
* @request GET:/admin/tenants/{tenantId}/wine-types
|
|
1343
|
+
* @secure
|
|
1344
|
+
* @response `200` `WineTypeEntityPaginatedDto`
|
|
1345
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1346
|
+
*/
|
|
1347
|
+
namespace ListTenantWineTypes {
|
|
1348
|
+
type RequestParams = {
|
|
1349
|
+
tenantId: string;
|
|
1350
|
+
};
|
|
1351
|
+
type RequestQuery = {
|
|
1352
|
+
createdAt?: string;
|
|
1353
|
+
/**
|
|
1354
|
+
* @default 10
|
|
1355
|
+
* @example 10
|
|
1356
|
+
*/
|
|
1357
|
+
limit?: number;
|
|
1358
|
+
orderBy?: OrderByEnum;
|
|
1359
|
+
/**
|
|
1360
|
+
* @default 1
|
|
1361
|
+
* @example 1
|
|
1362
|
+
*/
|
|
1363
|
+
page?: number;
|
|
1364
|
+
search?: string;
|
|
1365
|
+
sortBy?: string[];
|
|
1366
|
+
};
|
|
1367
|
+
type RequestBody = never;
|
|
1368
|
+
type RequestHeaders = {};
|
|
1369
|
+
type ResponseBody = WineTypeEntityPaginatedDto;
|
|
1370
|
+
}
|
|
1371
|
+
/**
|
|
1372
|
+
* No description
|
|
1373
|
+
* @tags Admin Tenant Wine Varietals
|
|
1374
|
+
* @name ListTenantWineVarietals
|
|
1375
|
+
* @request GET:/admin/tenants/{tenantId}/wine-varietals
|
|
1376
|
+
* @secure
|
|
1377
|
+
* @response `200` `WineVarietalEntityPaginatedDto`
|
|
1378
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1379
|
+
*/
|
|
1380
|
+
namespace ListTenantWineVarietals {
|
|
1381
|
+
type RequestParams = {
|
|
1382
|
+
tenantId: string;
|
|
1383
|
+
};
|
|
1384
|
+
type RequestQuery = {
|
|
1385
|
+
createdAt?: string;
|
|
1386
|
+
/**
|
|
1387
|
+
* @default 10
|
|
1388
|
+
* @example 10
|
|
1389
|
+
*/
|
|
1390
|
+
limit?: number;
|
|
1391
|
+
orderBy?: OrderByEnum;
|
|
1392
|
+
/**
|
|
1393
|
+
* @default 1
|
|
1394
|
+
* @example 1
|
|
1395
|
+
*/
|
|
1396
|
+
page?: number;
|
|
1397
|
+
search?: string;
|
|
1398
|
+
sortBy?: string[];
|
|
1399
|
+
};
|
|
1400
|
+
type RequestBody = never;
|
|
1401
|
+
type RequestHeaders = {};
|
|
1402
|
+
type ResponseBody = WineVarietalEntityPaginatedDto;
|
|
1403
|
+
}
|
|
1404
|
+
/**
|
|
1405
|
+
* No description
|
|
1406
|
+
* @tags Admin Tenant Wine Villages
|
|
1407
|
+
* @name ListTenantWineVillages
|
|
1408
|
+
* @request GET:/admin/tenants/{tenantId}/wine-villages
|
|
1409
|
+
* @secure
|
|
1410
|
+
* @response `200` `WineVillageEntityPaginatedDto`
|
|
1411
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1412
|
+
*/
|
|
1413
|
+
namespace ListTenantWineVillages {
|
|
1414
|
+
type RequestParams = {
|
|
1415
|
+
tenantId: string;
|
|
1416
|
+
};
|
|
1417
|
+
type RequestQuery = {
|
|
1418
|
+
createdAt?: string;
|
|
1419
|
+
/**
|
|
1420
|
+
* @default 10
|
|
1421
|
+
* @example 10
|
|
1422
|
+
*/
|
|
1423
|
+
limit?: number;
|
|
1424
|
+
orderBy?: OrderByEnum;
|
|
1425
|
+
/**
|
|
1426
|
+
* @default 1
|
|
1427
|
+
* @example 1
|
|
1428
|
+
*/
|
|
1429
|
+
page?: number;
|
|
1430
|
+
search?: string;
|
|
1431
|
+
sortBy?: string[];
|
|
1432
|
+
};
|
|
1433
|
+
type RequestBody = never;
|
|
1434
|
+
type RequestHeaders = {};
|
|
1435
|
+
type ResponseBody = WineVillageEntityPaginatedDto;
|
|
1436
|
+
}
|
|
1437
|
+
/**
|
|
1438
|
+
* No description
|
|
1439
|
+
* @tags Admin Tenant Wine Vineyards
|
|
1440
|
+
* @name ListTenantWineVineyards
|
|
1441
|
+
* @request GET:/admin/tenants/{tenantId}/wine-vineyards
|
|
1442
|
+
* @secure
|
|
1443
|
+
* @response `200` `WineVineyardEntityPaginatedDto`
|
|
1444
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1445
|
+
*/
|
|
1446
|
+
namespace ListTenantWineVineyards {
|
|
1447
|
+
type RequestParams = {
|
|
1448
|
+
tenantId: string;
|
|
1449
|
+
};
|
|
1450
|
+
type RequestQuery = {
|
|
1451
|
+
createdAt?: string;
|
|
1452
|
+
/**
|
|
1453
|
+
* @default 10
|
|
1454
|
+
* @example 10
|
|
1455
|
+
*/
|
|
1456
|
+
limit?: number;
|
|
1457
|
+
orderBy?: OrderByEnum;
|
|
1458
|
+
/**
|
|
1459
|
+
* @default 1
|
|
1460
|
+
* @example 1
|
|
1461
|
+
*/
|
|
1462
|
+
page?: number;
|
|
1463
|
+
search?: string;
|
|
1464
|
+
sortBy?: string[];
|
|
1465
|
+
};
|
|
1466
|
+
type RequestBody = never;
|
|
1467
|
+
type RequestHeaders = {};
|
|
1468
|
+
type ResponseBody = WineVineyardEntityPaginatedDto;
|
|
1469
|
+
}
|
|
1470
|
+
/**
|
|
1471
|
+
* No description
|
|
1472
|
+
* @tags Admin Tenant Wines
|
|
1473
|
+
* @name UpdateTenantWine
|
|
1474
|
+
* @request PATCH:/admin/tenants/{tenantId}/wines/{wineId}
|
|
1475
|
+
* @secure
|
|
1476
|
+
* @response `200` `WineEntityDto`
|
|
1477
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1478
|
+
*/
|
|
1479
|
+
namespace UpdateTenantWine {
|
|
1480
|
+
type RequestParams = {
|
|
1481
|
+
tenantId: string;
|
|
1482
|
+
wineId: string;
|
|
1483
|
+
};
|
|
1484
|
+
type RequestQuery = {};
|
|
1485
|
+
type RequestBody = UpdateWineDto;
|
|
1486
|
+
type RequestHeaders = {};
|
|
1487
|
+
type ResponseBody = WineEntityDto;
|
|
1488
|
+
}
|
|
1489
|
+
/**
|
|
1490
|
+
* No description
|
|
1491
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
1492
|
+
* @name UpdateTenantWineBottleFormat
|
|
1493
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
|
|
1494
|
+
* @secure
|
|
1495
|
+
* @response `200` `WineBottleFormatEntityDto`
|
|
1496
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1497
|
+
*/
|
|
1498
|
+
namespace UpdateTenantWineBottleFormat {
|
|
1499
|
+
type RequestParams = {
|
|
1500
|
+
bottleFormatId: string;
|
|
1501
|
+
tenantId: string;
|
|
1502
|
+
};
|
|
1503
|
+
type RequestQuery = {};
|
|
1504
|
+
type RequestBody = UpdateNameOnlyEntityDto;
|
|
1505
|
+
type RequestHeaders = {};
|
|
1506
|
+
type ResponseBody = WineBottleFormatEntityDto;
|
|
1507
|
+
}
|
|
1508
|
+
/**
|
|
1509
|
+
* No description
|
|
1510
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
1511
|
+
* @name UpdateTenantWineBottleVintage
|
|
1512
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
|
|
1513
|
+
* @secure
|
|
1514
|
+
* @response `200` `WineBottleVintageEntityDto`
|
|
1515
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1516
|
+
*/
|
|
1517
|
+
namespace UpdateTenantWineBottleVintage {
|
|
1518
|
+
type RequestParams = {
|
|
1519
|
+
bottleVintageId: string;
|
|
1520
|
+
tenantId: string;
|
|
1521
|
+
};
|
|
1522
|
+
type RequestQuery = {};
|
|
1523
|
+
type RequestBody = UpdateNameOnlyEntityDto;
|
|
1524
|
+
type RequestHeaders = {};
|
|
1525
|
+
type ResponseBody = WineBottleVintageEntityDto;
|
|
1526
|
+
}
|
|
1527
|
+
/**
|
|
1528
|
+
* No description
|
|
1529
|
+
* @tags Admin Tenant Wine Brands
|
|
1530
|
+
* @name UpdateTenantWineBrand
|
|
1531
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-brands/{brandId}
|
|
1532
|
+
* @secure
|
|
1533
|
+
* @response `200` `WineBrandEntityDto`
|
|
1534
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1535
|
+
*/
|
|
1536
|
+
namespace UpdateTenantWineBrand {
|
|
1537
|
+
type RequestParams = {
|
|
1538
|
+
brandId: string;
|
|
1539
|
+
tenantId: string;
|
|
1540
|
+
};
|
|
1541
|
+
type RequestQuery = {};
|
|
1542
|
+
type RequestBody = UpdateNameOnlyEntityDto;
|
|
1543
|
+
type RequestHeaders = {};
|
|
1544
|
+
type ResponseBody = WineBrandEntityDto;
|
|
1545
|
+
}
|
|
1546
|
+
/**
|
|
1547
|
+
* No description
|
|
1548
|
+
* @tags Admin Tenant Wine Producers
|
|
1549
|
+
* @name UpdateTenantWineProducer
|
|
1550
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-producers/{producerId}
|
|
1551
|
+
* @secure
|
|
1552
|
+
* @response `200` `WineProducerEntityDto`
|
|
1553
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1554
|
+
*/
|
|
1555
|
+
namespace UpdateTenantWineProducer {
|
|
1556
|
+
type RequestParams = {
|
|
1557
|
+
producerId: string;
|
|
1558
|
+
tenantId: string;
|
|
1559
|
+
};
|
|
1560
|
+
type RequestQuery = {};
|
|
1561
|
+
type RequestBody = UpdateNameOnlyEntityDto;
|
|
1562
|
+
type RequestHeaders = {};
|
|
1563
|
+
type ResponseBody = WineProducerEntityDto;
|
|
1564
|
+
}
|
|
1565
|
+
/**
|
|
1566
|
+
* No description
|
|
1567
|
+
* @tags Admin Tenant Wine Styles
|
|
1568
|
+
* @name UpdateTenantWineStyle
|
|
1569
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-styles/{styleId}
|
|
1570
|
+
* @secure
|
|
1571
|
+
* @response `200` `WineStyleEntityDto`
|
|
1572
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1573
|
+
*/
|
|
1574
|
+
namespace UpdateTenantWineStyle {
|
|
1575
|
+
type RequestParams = {
|
|
1576
|
+
styleId: string;
|
|
1577
|
+
tenantId: string;
|
|
1578
|
+
};
|
|
1579
|
+
type RequestQuery = {};
|
|
1580
|
+
type RequestBody = UpdateNameOnlyEntityDto;
|
|
1581
|
+
type RequestHeaders = {};
|
|
1582
|
+
type ResponseBody = WineStyleEntityDto;
|
|
1583
|
+
}
|
|
1584
|
+
/**
|
|
1585
|
+
* No description
|
|
1586
|
+
* @tags Admin Tenant Wine Types
|
|
1587
|
+
* @name UpdateTenantWineType
|
|
1588
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-types/{typeId}
|
|
1589
|
+
* @secure
|
|
1590
|
+
* @response `200` `WineTypeEntityDto`
|
|
1591
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1592
|
+
*/
|
|
1593
|
+
namespace UpdateTenantWineType {
|
|
1594
|
+
type RequestParams = {
|
|
1595
|
+
tenantId: string;
|
|
1596
|
+
typeId: string;
|
|
1597
|
+
};
|
|
1598
|
+
type RequestQuery = {};
|
|
1599
|
+
type RequestBody = UpdateNameOnlyEntityDto;
|
|
1600
|
+
type RequestHeaders = {};
|
|
1601
|
+
type ResponseBody = WineTypeEntityDto;
|
|
1602
|
+
}
|
|
1603
|
+
/**
|
|
1604
|
+
* No description
|
|
1605
|
+
* @tags Admin Tenant Wine Varietals
|
|
1606
|
+
* @name UpdateTenantWineVarietal
|
|
1607
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-varietals/{varietalId}
|
|
1608
|
+
* @secure
|
|
1609
|
+
* @response `200` `WineVarietalEntityDto`
|
|
1610
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1611
|
+
*/
|
|
1612
|
+
namespace UpdateTenantWineVarietal {
|
|
1613
|
+
type RequestParams = {
|
|
1614
|
+
tenantId: string;
|
|
1615
|
+
varietalId: string;
|
|
1616
|
+
};
|
|
1617
|
+
type RequestQuery = {};
|
|
1618
|
+
type RequestBody = UpdateNameOnlyEntityDto;
|
|
1619
|
+
type RequestHeaders = {};
|
|
1620
|
+
type ResponseBody = WineVarietalEntityDto;
|
|
1621
|
+
}
|
|
1622
|
+
/**
|
|
1623
|
+
* No description
|
|
1624
|
+
* @tags Admin Tenant Wine Villages
|
|
1625
|
+
* @name UpdateTenantWineVillage
|
|
1626
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-villages/{villageId}
|
|
1627
|
+
* @secure
|
|
1628
|
+
* @response `200` `WineVillageEntityDto`
|
|
1629
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1630
|
+
*/
|
|
1631
|
+
namespace UpdateTenantWineVillage {
|
|
1632
|
+
type RequestParams = {
|
|
1633
|
+
tenantId: string;
|
|
1634
|
+
villageId: string;
|
|
1635
|
+
};
|
|
1636
|
+
type RequestQuery = {};
|
|
1637
|
+
type RequestBody = UpdateNameOnlyEntityDto;
|
|
1638
|
+
type RequestHeaders = {};
|
|
1639
|
+
type ResponseBody = WineVillageEntityDto;
|
|
1640
|
+
}
|
|
1641
|
+
/**
|
|
1642
|
+
* No description
|
|
1643
|
+
* @tags Admin Tenant Wine Vineyards
|
|
1644
|
+
* @name UpdateTenantWineVineyard
|
|
1645
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-vineyards/{vineyardId}
|
|
1646
|
+
* @secure
|
|
1647
|
+
* @response `200` `WineVineyardEntityDto`
|
|
1648
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1649
|
+
*/
|
|
1650
|
+
namespace UpdateTenantWineVineyard {
|
|
1651
|
+
type RequestParams = {
|
|
1652
|
+
tenantId: string;
|
|
1653
|
+
vineyardId: string;
|
|
1654
|
+
};
|
|
1655
|
+
type RequestQuery = {};
|
|
1656
|
+
type RequestBody = UpdateNameOnlyEntityDto;
|
|
1657
|
+
type RequestHeaders = {};
|
|
1658
|
+
type ResponseBody = WineVineyardEntityDto;
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
import type { AxiosInstance, AxiosRequestConfig, ResponseType } from "axios";
|
|
1662
|
+
export type QueryParamsType = Record<string | number, any>;
|
|
1663
|
+
export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
|
|
1664
|
+
/** set parameter to `true` for call `securityWorker` for this request */
|
|
1665
|
+
secure?: boolean;
|
|
1666
|
+
/** request path */
|
|
1667
|
+
path: string;
|
|
1668
|
+
/** content type of request body */
|
|
1669
|
+
type?: ContentType;
|
|
1670
|
+
/** query params */
|
|
1671
|
+
query?: QueryParamsType;
|
|
1672
|
+
/** format of response (i.e. response.json() -> format: "json") */
|
|
1673
|
+
format?: ResponseType;
|
|
1674
|
+
/** request body */
|
|
1675
|
+
body?: unknown;
|
|
1676
|
+
}
|
|
1677
|
+
export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
|
|
1678
|
+
export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
|
|
1679
|
+
securityWorker?: (securityData: SecurityDataType | null) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
|
|
1680
|
+
secure?: boolean;
|
|
1681
|
+
format?: ResponseType;
|
|
1682
|
+
}
|
|
1683
|
+
export declare enum ContentType {
|
|
1684
|
+
Json = "application/json",
|
|
1685
|
+
JsonApi = "application/vnd.api+json",
|
|
1686
|
+
FormData = "multipart/form-data",
|
|
1687
|
+
UrlEncoded = "application/x-www-form-urlencoded",
|
|
1688
|
+
Text = "text/plain"
|
|
1689
|
+
}
|
|
1690
|
+
export declare class HttpClient<SecurityDataType = unknown> {
|
|
1691
|
+
instance: AxiosInstance;
|
|
1692
|
+
private securityData;
|
|
1693
|
+
private securityWorker?;
|
|
1694
|
+
private secure?;
|
|
1695
|
+
private format?;
|
|
1696
|
+
constructor({ securityWorker, secure, format, ...axiosConfig }?: ApiConfig<SecurityDataType>);
|
|
1697
|
+
setSecurityData: (data: SecurityDataType | null) => void;
|
|
1698
|
+
protected mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig;
|
|
1699
|
+
protected stringifyFormItem(formItem: unknown): string;
|
|
1700
|
+
protected createFormData(input: Record<string, unknown>): FormData;
|
|
1701
|
+
request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<T>;
|
|
1702
|
+
}
|
|
1703
|
+
/**
|
|
1704
|
+
* @title winehaus-api
|
|
1705
|
+
* @version 0.0.1
|
|
1706
|
+
* @baseUrl http://localhost:3000
|
|
1707
|
+
* @contact
|
|
1708
|
+
*/
|
|
1709
|
+
export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
1710
|
+
/**
|
|
1711
|
+
* No description
|
|
1712
|
+
*
|
|
1713
|
+
* @tags App
|
|
1714
|
+
* @name Index
|
|
1715
|
+
* @request GET:/
|
|
1716
|
+
* @response `200` `void`
|
|
1717
|
+
*/
|
|
1718
|
+
index: (params?: RequestParams) => Promise<void>;
|
|
1719
|
+
auth: {
|
|
1720
|
+
/**
|
|
1721
|
+
* No description
|
|
1722
|
+
*
|
|
1723
|
+
* @tags Authentication
|
|
1724
|
+
* @name Logout
|
|
1725
|
+
* @request POST:/auth/logout
|
|
1726
|
+
* @secure
|
|
1727
|
+
* @response `204` `void`
|
|
1728
|
+
*/
|
|
1729
|
+
logout: (params?: RequestParams) => Promise<void>;
|
|
1730
|
+
/**
|
|
1731
|
+
* No description
|
|
1732
|
+
*
|
|
1733
|
+
* @tags Authentication
|
|
1734
|
+
* @name RequestPasswordReset
|
|
1735
|
+
* @request POST:/auth/request-password-reset
|
|
1736
|
+
* @secure
|
|
1737
|
+
* @response `204` `void`
|
|
1738
|
+
*/
|
|
1739
|
+
requestPasswordReset: (data: RequestPasswordResetDto, params?: RequestParams) => Promise<void>;
|
|
1740
|
+
/**
|
|
1741
|
+
* No description
|
|
1742
|
+
*
|
|
1743
|
+
* @tags Authentication
|
|
1744
|
+
* @name ResetPassword
|
|
1745
|
+
* @request PATCH:/auth/reset-password
|
|
1746
|
+
* @secure
|
|
1747
|
+
* @response `200` `SigninResponseDto`
|
|
1748
|
+
*/
|
|
1749
|
+
resetPassword: (data: ResetPasswordDto, params?: RequestParams) => Promise<SigninResponseDto>;
|
|
1750
|
+
/**
|
|
1751
|
+
* No description
|
|
1752
|
+
*
|
|
1753
|
+
* @tags Authentication
|
|
1754
|
+
* @name SignIn
|
|
1755
|
+
* @request POST:/auth/signin
|
|
1756
|
+
* @secure
|
|
1757
|
+
* @response `200` `SigninResponseDto`
|
|
1758
|
+
*/
|
|
1759
|
+
signIn: (data: SigninDto, params?: RequestParams) => Promise<SigninResponseDto>;
|
|
1760
|
+
};
|
|
1761
|
+
users: {
|
|
1762
|
+
/**
|
|
1763
|
+
* No description
|
|
1764
|
+
*
|
|
1765
|
+
* @tags Users
|
|
1766
|
+
* @name UpdateUserPassword
|
|
1767
|
+
* @request PATCH:/users/{userId}/password
|
|
1768
|
+
* @secure
|
|
1769
|
+
* @response `200` `UserEntityDto`
|
|
1770
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1771
|
+
*/
|
|
1772
|
+
updateUserPassword: (userId: string, data: UpdateUserPasswordDto, params?: RequestParams) => Promise<UserEntityDto>;
|
|
1773
|
+
/**
|
|
1774
|
+
* No description
|
|
1775
|
+
*
|
|
1776
|
+
* @tags Users
|
|
1777
|
+
* @name UpdateUserProfile
|
|
1778
|
+
* @request PATCH:/users/{userId}
|
|
1779
|
+
* @secure
|
|
1780
|
+
* @response `200` `UserEntityDto`
|
|
1781
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1782
|
+
*/
|
|
1783
|
+
updateUserProfile: (userId: string, data: UpdateUserProfileDto, params?: RequestParams) => Promise<UserEntityDto>;
|
|
1784
|
+
};
|
|
1785
|
+
admin: {
|
|
1786
|
+
/**
|
|
1787
|
+
* @description Gives some user access to the tenant. If there's no user account attached to this users, it creates a new one
|
|
1788
|
+
*
|
|
1789
|
+
* @tags Admin Tenant Users
|
|
1790
|
+
* @name CreateOrUpdateTenantUserAndPermissionsByUserEmail
|
|
1791
|
+
* @request POST:/admin/tenants/{tenantId}/users
|
|
1792
|
+
* @secure
|
|
1793
|
+
* @response `200` `TenantUserEntityDto`
|
|
1794
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1795
|
+
*/
|
|
1796
|
+
createOrUpdateTenantUserAndPermissionsByUserEmail: (tenantId: string, data: CreateTenantUserDto, params?: RequestParams) => Promise<TenantUserEntityDto>;
|
|
1797
|
+
/**
|
|
1798
|
+
* No description
|
|
1799
|
+
*
|
|
1800
|
+
* @tags Admin Tenant Wines
|
|
1801
|
+
* @name CreateTenantWine
|
|
1802
|
+
* @request POST:/admin/tenants/{tenantId}/wines
|
|
1803
|
+
* @secure
|
|
1804
|
+
* @response `201` `WineEntityDto`
|
|
1805
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1806
|
+
*/
|
|
1807
|
+
createTenantWine: (tenantId: string, data: CreateWineDto, params?: RequestParams) => Promise<WineEntityDto>;
|
|
1808
|
+
/**
|
|
1809
|
+
* No description
|
|
1810
|
+
*
|
|
1811
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
1812
|
+
* @name CreateTenantWineBottleFormat
|
|
1813
|
+
* @request POST:/admin/tenants/{tenantId}/wine-bottle-formats
|
|
1814
|
+
* @secure
|
|
1815
|
+
* @response `201` `WineBottleFormatEntityDto`
|
|
1816
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1817
|
+
*/
|
|
1818
|
+
createTenantWineBottleFormat: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineBottleFormatEntityDto>;
|
|
1819
|
+
/**
|
|
1820
|
+
* No description
|
|
1821
|
+
*
|
|
1822
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
1823
|
+
* @name CreateTenantWineBottleVintage
|
|
1824
|
+
* @request POST:/admin/tenants/{tenantId}/wine-bottle-vintages
|
|
1825
|
+
* @secure
|
|
1826
|
+
* @response `201` `WineBottleVintageEntityDto`
|
|
1827
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1828
|
+
*/
|
|
1829
|
+
createTenantWineBottleVintage: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineBottleVintageEntityDto>;
|
|
1830
|
+
/**
|
|
1831
|
+
* No description
|
|
1832
|
+
*
|
|
1833
|
+
* @tags Admin Tenant Wine Brands
|
|
1834
|
+
* @name CreateTenantWineBrand
|
|
1835
|
+
* @request POST:/admin/tenants/{tenantId}/wine-brands
|
|
1836
|
+
* @secure
|
|
1837
|
+
* @response `201` `WineBrandEntityDto`
|
|
1838
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1839
|
+
*/
|
|
1840
|
+
createTenantWineBrand: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineBrandEntityDto>;
|
|
1841
|
+
/**
|
|
1842
|
+
* No description
|
|
1843
|
+
*
|
|
1844
|
+
* @tags Admin Tenant Wine Producers
|
|
1845
|
+
* @name CreateTenantWineProducer
|
|
1846
|
+
* @request POST:/admin/tenants/{tenantId}/wine-producers
|
|
1847
|
+
* @secure
|
|
1848
|
+
* @response `201` `WineProducerEntityDto`
|
|
1849
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1850
|
+
*/
|
|
1851
|
+
createTenantWineProducer: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineProducerEntityDto>;
|
|
1852
|
+
/**
|
|
1853
|
+
* No description
|
|
1854
|
+
*
|
|
1855
|
+
* @tags Admin Tenant Wine Styles
|
|
1856
|
+
* @name CreateTenantWineStyle
|
|
1857
|
+
* @request POST:/admin/tenants/{tenantId}/wine-styles
|
|
1858
|
+
* @secure
|
|
1859
|
+
* @response `201` `WineStyleEntityDto`
|
|
1860
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1861
|
+
*/
|
|
1862
|
+
createTenantWineStyle: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineStyleEntityDto>;
|
|
1863
|
+
/**
|
|
1864
|
+
* No description
|
|
1865
|
+
*
|
|
1866
|
+
* @tags Admin Tenant Wine Types
|
|
1867
|
+
* @name CreateTenantWineType
|
|
1868
|
+
* @request POST:/admin/tenants/{tenantId}/wine-types
|
|
1869
|
+
* @secure
|
|
1870
|
+
* @response `201` `WineTypeEntityDto`
|
|
1871
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1872
|
+
*/
|
|
1873
|
+
createTenantWineType: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineTypeEntityDto>;
|
|
1874
|
+
/**
|
|
1875
|
+
* No description
|
|
1876
|
+
*
|
|
1877
|
+
* @tags Admin Tenant Wine Varietals
|
|
1878
|
+
* @name CreateTenantWineVarietal
|
|
1879
|
+
* @request POST:/admin/tenants/{tenantId}/wine-varietals
|
|
1880
|
+
* @secure
|
|
1881
|
+
* @response `201` `WineVarietalEntityDto`
|
|
1882
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1883
|
+
*/
|
|
1884
|
+
createTenantWineVarietal: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineVarietalEntityDto>;
|
|
1885
|
+
/**
|
|
1886
|
+
* No description
|
|
1887
|
+
*
|
|
1888
|
+
* @tags Admin Tenant Wine Villages
|
|
1889
|
+
* @name CreateTenantWineVillage
|
|
1890
|
+
* @request POST:/admin/tenants/{tenantId}/wine-villages
|
|
1891
|
+
* @secure
|
|
1892
|
+
* @response `201` `WineVillageEntityDto`
|
|
1893
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1894
|
+
*/
|
|
1895
|
+
createTenantWineVillage: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineVillageEntityDto>;
|
|
1896
|
+
/**
|
|
1897
|
+
* No description
|
|
1898
|
+
*
|
|
1899
|
+
* @tags Admin Tenant Wine Vineyards
|
|
1900
|
+
* @name CreateTenantWineVineyard
|
|
1901
|
+
* @request POST:/admin/tenants/{tenantId}/wine-vineyards
|
|
1902
|
+
* @secure
|
|
1903
|
+
* @response `201` `WineVineyardEntityDto`
|
|
1904
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1905
|
+
*/
|
|
1906
|
+
createTenantWineVineyard: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineVineyardEntityDto>;
|
|
1907
|
+
/**
|
|
1908
|
+
* No description
|
|
1909
|
+
*
|
|
1910
|
+
* @tags Admin Tenant Wines
|
|
1911
|
+
* @name DeleteTenantWine
|
|
1912
|
+
* @request DELETE:/admin/tenants/{tenantId}/wines/{wineId}
|
|
1913
|
+
* @secure
|
|
1914
|
+
* @response `204` `void`
|
|
1915
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1916
|
+
*/
|
|
1917
|
+
deleteTenantWine: (tenantId: string, wineId: string, params?: RequestParams) => Promise<void>;
|
|
1918
|
+
/**
|
|
1919
|
+
* No description
|
|
1920
|
+
*
|
|
1921
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
1922
|
+
* @name DeleteTenantWineBottleFormat
|
|
1923
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
|
|
1924
|
+
* @secure
|
|
1925
|
+
* @response `204` `void`
|
|
1926
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1927
|
+
*/
|
|
1928
|
+
deleteTenantWineBottleFormat: (tenantId: string, bottleFormatId: string, params?: RequestParams) => Promise<void>;
|
|
1929
|
+
/**
|
|
1930
|
+
* No description
|
|
1931
|
+
*
|
|
1932
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
1933
|
+
* @name DeleteTenantWineBottleVintage
|
|
1934
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
|
|
1935
|
+
* @secure
|
|
1936
|
+
* @response `204` `void`
|
|
1937
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1938
|
+
*/
|
|
1939
|
+
deleteTenantWineBottleVintage: (tenantId: string, bottleVintageId: string, params?: RequestParams) => Promise<void>;
|
|
1940
|
+
/**
|
|
1941
|
+
* No description
|
|
1942
|
+
*
|
|
1943
|
+
* @tags Admin Tenant Wine Brands
|
|
1944
|
+
* @name DeleteTenantWineBrand
|
|
1945
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-brands/{brandId}
|
|
1946
|
+
* @secure
|
|
1947
|
+
* @response `204` `void`
|
|
1948
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1949
|
+
*/
|
|
1950
|
+
deleteTenantWineBrand: (tenantId: string, brandId: string, params?: RequestParams) => Promise<void>;
|
|
1951
|
+
/**
|
|
1952
|
+
* No description
|
|
1953
|
+
*
|
|
1954
|
+
* @tags Admin Tenant Wine Producers
|
|
1955
|
+
* @name DeleteTenantWineProducer
|
|
1956
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-producers/{producerId}
|
|
1957
|
+
* @secure
|
|
1958
|
+
* @response `204` `void`
|
|
1959
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1960
|
+
*/
|
|
1961
|
+
deleteTenantWineProducer: (tenantId: string, producerId: string, params?: RequestParams) => Promise<void>;
|
|
1962
|
+
/**
|
|
1963
|
+
* No description
|
|
1964
|
+
*
|
|
1965
|
+
* @tags Admin Tenant Wine Styles
|
|
1966
|
+
* @name DeleteTenantWineStyle
|
|
1967
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-styles/{styleId}
|
|
1968
|
+
* @secure
|
|
1969
|
+
* @response `204` `void`
|
|
1970
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1971
|
+
*/
|
|
1972
|
+
deleteTenantWineStyle: (tenantId: string, styleId: string, params?: RequestParams) => Promise<void>;
|
|
1973
|
+
/**
|
|
1974
|
+
* No description
|
|
1975
|
+
*
|
|
1976
|
+
* @tags Admin Tenant Wine Types
|
|
1977
|
+
* @name DeleteTenantWineType
|
|
1978
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-types/{typeId}
|
|
1979
|
+
* @secure
|
|
1980
|
+
* @response `204` `void`
|
|
1981
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1982
|
+
*/
|
|
1983
|
+
deleteTenantWineType: (tenantId: string, typeId: string, params?: RequestParams) => Promise<void>;
|
|
1984
|
+
/**
|
|
1985
|
+
* No description
|
|
1986
|
+
*
|
|
1987
|
+
* @tags Admin Tenant Wine Varietals
|
|
1988
|
+
* @name DeleteTenantWineVarietal
|
|
1989
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-varietals/{varietalId}
|
|
1990
|
+
* @secure
|
|
1991
|
+
* @response `204` `void`
|
|
1992
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1993
|
+
*/
|
|
1994
|
+
deleteTenantWineVarietal: (tenantId: string, varietalId: string, params?: RequestParams) => Promise<void>;
|
|
1995
|
+
/**
|
|
1996
|
+
* No description
|
|
1997
|
+
*
|
|
1998
|
+
* @tags Admin Tenant Wine Villages
|
|
1999
|
+
* @name DeleteTenantWineVillage
|
|
2000
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-villages/{villageId}
|
|
2001
|
+
* @secure
|
|
2002
|
+
* @response `204` `void`
|
|
2003
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2004
|
+
*/
|
|
2005
|
+
deleteTenantWineVillage: (tenantId: string, villageId: string, params?: RequestParams) => Promise<void>;
|
|
2006
|
+
/**
|
|
2007
|
+
* No description
|
|
2008
|
+
*
|
|
2009
|
+
* @tags Admin Tenant Wine Vineyards
|
|
2010
|
+
* @name DeleteTenantWineVineyard
|
|
2011
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-vineyards/{vineyardId}
|
|
2012
|
+
* @secure
|
|
2013
|
+
* @response `204` `void`
|
|
2014
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2015
|
+
*/
|
|
2016
|
+
deleteTenantWineVineyard: (tenantId: string, vineyardId: string, params?: RequestParams) => Promise<void>;
|
|
2017
|
+
/**
|
|
2018
|
+
* No description
|
|
2019
|
+
*
|
|
2020
|
+
* @tags Admin Tenant Users
|
|
2021
|
+
* @name DisableTenantUser
|
|
2022
|
+
* @request PATCH:/admin/tenants/{tenantId}/users/{userId}/disable
|
|
2023
|
+
* @secure
|
|
2024
|
+
* @response `204` `void`
|
|
2025
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2026
|
+
*/
|
|
2027
|
+
disableTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<void>;
|
|
2028
|
+
/**
|
|
2029
|
+
* No description
|
|
2030
|
+
*
|
|
2031
|
+
* @tags Admin Tenant Users
|
|
2032
|
+
* @name EnableTenantUser
|
|
2033
|
+
* @request PATCH:/admin/tenants/{tenantId}/users/{userId}/enable
|
|
2034
|
+
* @secure
|
|
2035
|
+
* @response `204` `void`
|
|
2036
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2037
|
+
*/
|
|
2038
|
+
enableTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<void>;
|
|
2039
|
+
/**
|
|
2040
|
+
* No description
|
|
2041
|
+
*
|
|
2042
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
2043
|
+
* @name GetTenantWineBottleFormatById
|
|
2044
|
+
* @request GET:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
|
|
2045
|
+
* @secure
|
|
2046
|
+
* @response `200` `WineBottleFormatEntityDto`
|
|
2047
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
2048
|
+
*/
|
|
2049
|
+
getTenantWineBottleFormatById: (tenantId: string, bottleFormatId: string, params?: RequestParams) => Promise<WineBottleFormatEntityDto>;
|
|
2050
|
+
/**
|
|
2051
|
+
* No description
|
|
2052
|
+
*
|
|
2053
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
2054
|
+
* @name GetTenantWineBottleVintageById
|
|
2055
|
+
* @request GET:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
|
|
2056
|
+
* @secure
|
|
2057
|
+
* @response `200` `WineBottleVintageEntityDto`
|
|
2058
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
2059
|
+
*/
|
|
2060
|
+
getTenantWineBottleVintageById: (tenantId: string, bottleVintageId: string, params?: RequestParams) => Promise<WineBottleVintageEntityDto>;
|
|
2061
|
+
/**
|
|
2062
|
+
* No description
|
|
2063
|
+
*
|
|
2064
|
+
* @tags Admin Tenant Wine Brands
|
|
2065
|
+
* @name GetTenantWineBrandById
|
|
2066
|
+
* @request GET:/admin/tenants/{tenantId}/wine-brands/{brandId}
|
|
2067
|
+
* @secure
|
|
2068
|
+
* @response `200` `WineBrandEntityDto`
|
|
2069
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
2070
|
+
*/
|
|
2071
|
+
getTenantWineBrandById: (tenantId: string, brandId: string, params?: RequestParams) => Promise<WineBrandEntityDto>;
|
|
2072
|
+
/**
|
|
2073
|
+
* No description
|
|
2074
|
+
*
|
|
2075
|
+
* @tags Admin Tenant Wines
|
|
2076
|
+
* @name GetTenantWineById
|
|
2077
|
+
* @request GET:/admin/tenants/{tenantId}/wines/{wineId}
|
|
2078
|
+
* @secure
|
|
2079
|
+
* @response `200` `WineEntityDto`
|
|
2080
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
2081
|
+
*/
|
|
2082
|
+
getTenantWineById: (tenantId: string, wineId: string, params?: RequestParams) => Promise<WineEntityDto>;
|
|
2083
|
+
/**
|
|
2084
|
+
* No description
|
|
2085
|
+
*
|
|
2086
|
+
* @tags Admin Tenant Wine Producers
|
|
2087
|
+
* @name GetTenantWineProducerById
|
|
2088
|
+
* @request GET:/admin/tenants/{tenantId}/wine-producers/{producerId}
|
|
2089
|
+
* @secure
|
|
2090
|
+
* @response `200` `WineProducerEntityDto`
|
|
2091
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
2092
|
+
*/
|
|
2093
|
+
getTenantWineProducerById: (tenantId: string, producerId: string, params?: RequestParams) => Promise<WineProducerEntityDto>;
|
|
2094
|
+
/**
|
|
2095
|
+
* No description
|
|
2096
|
+
*
|
|
2097
|
+
* @tags Admin Tenant Wine Styles
|
|
2098
|
+
* @name GetTenantWineStyleById
|
|
2099
|
+
* @request GET:/admin/tenants/{tenantId}/wine-styles/{styleId}
|
|
2100
|
+
* @secure
|
|
2101
|
+
* @response `200` `WineStyleEntityDto`
|
|
2102
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
2103
|
+
*/
|
|
2104
|
+
getTenantWineStyleById: (tenantId: string, styleId: string, params?: RequestParams) => Promise<WineStyleEntityDto>;
|
|
2105
|
+
/**
|
|
2106
|
+
* No description
|
|
2107
|
+
*
|
|
2108
|
+
* @tags Admin Tenant Wine Types
|
|
2109
|
+
* @name GetTenantWineTypeById
|
|
2110
|
+
* @request GET:/admin/tenants/{tenantId}/wine-types/{typeId}
|
|
2111
|
+
* @secure
|
|
2112
|
+
* @response `200` `WineTypeEntityDto`
|
|
2113
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
2114
|
+
*/
|
|
2115
|
+
getTenantWineTypeById: (tenantId: string, typeId: string, params?: RequestParams) => Promise<WineTypeEntityDto>;
|
|
2116
|
+
/**
|
|
2117
|
+
* No description
|
|
2118
|
+
*
|
|
2119
|
+
* @tags Admin Tenant Wine Varietals
|
|
2120
|
+
* @name GetTenantWineVarietalById
|
|
2121
|
+
* @request GET:/admin/tenants/{tenantId}/wine-varietals/{varietalId}
|
|
2122
|
+
* @secure
|
|
2123
|
+
* @response `200` `WineVarietalEntityDto`
|
|
2124
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
2125
|
+
*/
|
|
2126
|
+
getTenantWineVarietalById: (tenantId: string, varietalId: string, params?: RequestParams) => Promise<WineVarietalEntityDto>;
|
|
2127
|
+
/**
|
|
2128
|
+
* No description
|
|
2129
|
+
*
|
|
2130
|
+
* @tags Admin Tenant Wine Villages
|
|
2131
|
+
* @name GetTenantWineVillageById
|
|
2132
|
+
* @request GET:/admin/tenants/{tenantId}/wine-villages/{villageId}
|
|
2133
|
+
* @secure
|
|
2134
|
+
* @response `200` `WineVillageEntityDto`
|
|
2135
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
2136
|
+
*/
|
|
2137
|
+
getTenantWineVillageById: (tenantId: string, villageId: string, params?: RequestParams) => Promise<WineVillageEntityDto>;
|
|
2138
|
+
/**
|
|
2139
|
+
* No description
|
|
2140
|
+
*
|
|
2141
|
+
* @tags Admin Tenant Wine Vineyards
|
|
2142
|
+
* @name GetTenantWineVineyardById
|
|
2143
|
+
* @request GET:/admin/tenants/{tenantId}/wine-vineyards/{vineyardId}
|
|
2144
|
+
* @secure
|
|
2145
|
+
* @response `200` `WineVineyardEntityDto`
|
|
2146
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
2147
|
+
*/
|
|
2148
|
+
getTenantWineVineyardById: (tenantId: string, vineyardId: string, params?: RequestParams) => Promise<WineVineyardEntityDto>;
|
|
2149
|
+
/**
|
|
2150
|
+
* No description
|
|
2151
|
+
*
|
|
2152
|
+
* @tags Admin Tenant Users
|
|
2153
|
+
* @name ListTenantUsers
|
|
2154
|
+
* @request GET:/admin/tenants/{tenantId}/users
|
|
2155
|
+
* @secure
|
|
2156
|
+
* @response `200` `TenantUserEntityPaginatedDto`
|
|
2157
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2158
|
+
*/
|
|
2159
|
+
listTenantUsers: (tenantId: string, query?: {
|
|
2160
|
+
/**
|
|
2161
|
+
* @default 10
|
|
2162
|
+
* @example 10
|
|
2163
|
+
*/
|
|
2164
|
+
limit?: number;
|
|
2165
|
+
orderBy?: OrderByEnum;
|
|
2166
|
+
/**
|
|
2167
|
+
* @default 1
|
|
2168
|
+
* @example 1
|
|
2169
|
+
*/
|
|
2170
|
+
page?: number;
|
|
2171
|
+
roles?: TenantRoleEnum[];
|
|
2172
|
+
search?: string;
|
|
2173
|
+
sortBy?: string[];
|
|
2174
|
+
status?: TenantUserStatusEnum[];
|
|
2175
|
+
}, params?: RequestParams) => Promise<TenantUserEntityPaginatedDto>;
|
|
2176
|
+
/**
|
|
378
2177
|
* No description
|
|
379
2178
|
*
|
|
380
|
-
* @tags
|
|
381
|
-
* @name
|
|
382
|
-
* @request
|
|
2179
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
2180
|
+
* @name ListTenantWineBottleFormats
|
|
2181
|
+
* @request GET:/admin/tenants/{tenantId}/wine-bottle-formats
|
|
383
2182
|
* @secure
|
|
384
|
-
* @response `
|
|
2183
|
+
* @response `200` `WineBottleFormatEntityPaginatedDto`
|
|
2184
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
385
2185
|
*/
|
|
386
|
-
|
|
2186
|
+
listTenantWineBottleFormats: (tenantId: string, query?: {
|
|
2187
|
+
createdAt?: string;
|
|
2188
|
+
/**
|
|
2189
|
+
* @default 10
|
|
2190
|
+
* @example 10
|
|
2191
|
+
*/
|
|
2192
|
+
limit?: number;
|
|
2193
|
+
orderBy?: OrderByEnum;
|
|
2194
|
+
/**
|
|
2195
|
+
* @default 1
|
|
2196
|
+
* @example 1
|
|
2197
|
+
*/
|
|
2198
|
+
page?: number;
|
|
2199
|
+
search?: string;
|
|
2200
|
+
sortBy?: string[];
|
|
2201
|
+
}, params?: RequestParams) => Promise<WineBottleFormatEntityPaginatedDto>;
|
|
387
2202
|
/**
|
|
388
2203
|
* No description
|
|
389
2204
|
*
|
|
390
|
-
* @tags
|
|
391
|
-
* @name
|
|
392
|
-
* @request
|
|
2205
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
2206
|
+
* @name ListTenantWineBottleVintages
|
|
2207
|
+
* @request GET:/admin/tenants/{tenantId}/wine-bottle-vintages
|
|
393
2208
|
* @secure
|
|
394
|
-
* @response `
|
|
2209
|
+
* @response `200` `WineBottleVintageEntityPaginatedDto`
|
|
2210
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
395
2211
|
*/
|
|
396
|
-
|
|
2212
|
+
listTenantWineBottleVintages: (tenantId: string, query?: {
|
|
2213
|
+
createdAt?: string;
|
|
2214
|
+
/**
|
|
2215
|
+
* @default 10
|
|
2216
|
+
* @example 10
|
|
2217
|
+
*/
|
|
2218
|
+
limit?: number;
|
|
2219
|
+
orderBy?: OrderByEnum;
|
|
2220
|
+
/**
|
|
2221
|
+
* @default 1
|
|
2222
|
+
* @example 1
|
|
2223
|
+
*/
|
|
2224
|
+
page?: number;
|
|
2225
|
+
search?: string;
|
|
2226
|
+
sortBy?: string[];
|
|
2227
|
+
}, params?: RequestParams) => Promise<WineBottleVintageEntityPaginatedDto>;
|
|
397
2228
|
/**
|
|
398
2229
|
* No description
|
|
399
2230
|
*
|
|
400
|
-
* @tags
|
|
401
|
-
* @name
|
|
402
|
-
* @request
|
|
2231
|
+
* @tags Admin Tenant Wine Brands
|
|
2232
|
+
* @name ListTenantWineBrands
|
|
2233
|
+
* @request GET:/admin/tenants/{tenantId}/wine-brands
|
|
403
2234
|
* @secure
|
|
404
|
-
* @response `200` `
|
|
2235
|
+
* @response `200` `WineBrandEntityPaginatedDto`
|
|
2236
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
405
2237
|
*/
|
|
406
|
-
|
|
2238
|
+
listTenantWineBrands: (tenantId: string, query?: {
|
|
2239
|
+
createdAt?: string;
|
|
2240
|
+
/**
|
|
2241
|
+
* @default 10
|
|
2242
|
+
* @example 10
|
|
2243
|
+
*/
|
|
2244
|
+
limit?: number;
|
|
2245
|
+
orderBy?: OrderByEnum;
|
|
2246
|
+
/**
|
|
2247
|
+
* @default 1
|
|
2248
|
+
* @example 1
|
|
2249
|
+
*/
|
|
2250
|
+
page?: number;
|
|
2251
|
+
search?: string;
|
|
2252
|
+
sortBy?: string[];
|
|
2253
|
+
}, params?: RequestParams) => Promise<WineBrandEntityPaginatedDto>;
|
|
407
2254
|
/**
|
|
408
2255
|
* No description
|
|
409
2256
|
*
|
|
410
|
-
* @tags
|
|
411
|
-
* @name
|
|
412
|
-
* @request
|
|
2257
|
+
* @tags Admin Tenant Wine Producers
|
|
2258
|
+
* @name ListTenantWineProducers
|
|
2259
|
+
* @request GET:/admin/tenants/{tenantId}/wine-producers
|
|
413
2260
|
* @secure
|
|
414
|
-
* @response `200` `
|
|
2261
|
+
* @response `200` `WineProducerEntityPaginatedDto`
|
|
2262
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
415
2263
|
*/
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
2264
|
+
listTenantWineProducers: (tenantId: string, query?: {
|
|
2265
|
+
createdAt?: string;
|
|
2266
|
+
/**
|
|
2267
|
+
* @default 10
|
|
2268
|
+
* @example 10
|
|
2269
|
+
*/
|
|
2270
|
+
limit?: number;
|
|
2271
|
+
orderBy?: OrderByEnum;
|
|
2272
|
+
/**
|
|
2273
|
+
* @default 1
|
|
2274
|
+
* @example 1
|
|
2275
|
+
*/
|
|
2276
|
+
page?: number;
|
|
2277
|
+
search?: string;
|
|
2278
|
+
sortBy?: string[];
|
|
2279
|
+
}, params?: RequestParams) => Promise<WineProducerEntityPaginatedDto>;
|
|
419
2280
|
/**
|
|
420
2281
|
* No description
|
|
421
2282
|
*
|
|
422
|
-
* @tags
|
|
423
|
-
* @name
|
|
424
|
-
* @request
|
|
2283
|
+
* @tags Admin Tenant Wines
|
|
2284
|
+
* @name ListTenantWines
|
|
2285
|
+
* @request GET:/admin/tenants/{tenantId}/wines
|
|
425
2286
|
* @secure
|
|
426
|
-
* @response `200` `
|
|
427
|
-
* @response `403` `HttpExceptionDto`
|
|
2287
|
+
* @response `200` `WineEntityPaginatedDto`
|
|
2288
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
428
2289
|
*/
|
|
429
|
-
|
|
2290
|
+
listTenantWines: (tenantId: string, query?: {
|
|
2291
|
+
brandIds?: string[];
|
|
2292
|
+
createdAt?: string;
|
|
2293
|
+
/**
|
|
2294
|
+
* @default 10
|
|
2295
|
+
* @example 10
|
|
2296
|
+
*/
|
|
2297
|
+
limit?: number;
|
|
2298
|
+
orderBy?: OrderByEnum;
|
|
2299
|
+
/**
|
|
2300
|
+
* @default 1
|
|
2301
|
+
* @example 1
|
|
2302
|
+
*/
|
|
2303
|
+
page?: number;
|
|
2304
|
+
producerIds?: string[];
|
|
2305
|
+
sortBy?: string[];
|
|
2306
|
+
styleIds?: string[];
|
|
2307
|
+
typeIds?: string[];
|
|
2308
|
+
varietalIds?: string[];
|
|
2309
|
+
villageIds?: string[];
|
|
2310
|
+
vineyardIds?: string[];
|
|
2311
|
+
}, params?: RequestParams) => Promise<WineEntityPaginatedDto>;
|
|
430
2312
|
/**
|
|
431
2313
|
* No description
|
|
432
2314
|
*
|
|
433
|
-
* @tags
|
|
434
|
-
* @name
|
|
435
|
-
* @request
|
|
2315
|
+
* @tags Admin Tenant Wine Styles
|
|
2316
|
+
* @name ListTenantWineStyles
|
|
2317
|
+
* @request GET:/admin/tenants/{tenantId}/wine-styles
|
|
436
2318
|
* @secure
|
|
437
|
-
* @response `200` `
|
|
438
|
-
* @response `403` `HttpExceptionDto`
|
|
2319
|
+
* @response `200` `WineStyleEntityPaginatedDto`
|
|
2320
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
439
2321
|
*/
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
2322
|
+
listTenantWineStyles: (tenantId: string, query?: {
|
|
2323
|
+
createdAt?: string;
|
|
2324
|
+
/**
|
|
2325
|
+
* @default 10
|
|
2326
|
+
* @example 10
|
|
2327
|
+
*/
|
|
2328
|
+
limit?: number;
|
|
2329
|
+
orderBy?: OrderByEnum;
|
|
2330
|
+
/**
|
|
2331
|
+
* @default 1
|
|
2332
|
+
* @example 1
|
|
2333
|
+
*/
|
|
2334
|
+
page?: number;
|
|
2335
|
+
search?: string;
|
|
2336
|
+
sortBy?: string[];
|
|
2337
|
+
}, params?: RequestParams) => Promise<WineStyleEntityPaginatedDto>;
|
|
443
2338
|
/**
|
|
444
|
-
*
|
|
2339
|
+
* No description
|
|
445
2340
|
*
|
|
446
|
-
* @tags Admin Tenant
|
|
447
|
-
* @name
|
|
448
|
-
* @request
|
|
2341
|
+
* @tags Admin Tenant Wine Types
|
|
2342
|
+
* @name ListTenantWineTypes
|
|
2343
|
+
* @request GET:/admin/tenants/{tenantId}/wine-types
|
|
449
2344
|
* @secure
|
|
450
|
-
* @response `200` `
|
|
451
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2345
|
+
* @response `200` `WineTypeEntityPaginatedDto`
|
|
2346
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
452
2347
|
*/
|
|
453
|
-
|
|
2348
|
+
listTenantWineTypes: (tenantId: string, query?: {
|
|
2349
|
+
createdAt?: string;
|
|
2350
|
+
/**
|
|
2351
|
+
* @default 10
|
|
2352
|
+
* @example 10
|
|
2353
|
+
*/
|
|
2354
|
+
limit?: number;
|
|
2355
|
+
orderBy?: OrderByEnum;
|
|
2356
|
+
/**
|
|
2357
|
+
* @default 1
|
|
2358
|
+
* @example 1
|
|
2359
|
+
*/
|
|
2360
|
+
page?: number;
|
|
2361
|
+
search?: string;
|
|
2362
|
+
sortBy?: string[];
|
|
2363
|
+
}, params?: RequestParams) => Promise<WineTypeEntityPaginatedDto>;
|
|
454
2364
|
/**
|
|
455
2365
|
* No description
|
|
456
2366
|
*
|
|
457
|
-
* @tags Admin Tenant
|
|
458
|
-
* @name
|
|
459
|
-
* @request
|
|
2367
|
+
* @tags Admin Tenant Wine Varietals
|
|
2368
|
+
* @name ListTenantWineVarietals
|
|
2369
|
+
* @request GET:/admin/tenants/{tenantId}/wine-varietals
|
|
460
2370
|
* @secure
|
|
461
|
-
* @response `
|
|
462
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2371
|
+
* @response `200` `WineVarietalEntityPaginatedDto`
|
|
2372
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
463
2373
|
*/
|
|
464
|
-
|
|
2374
|
+
listTenantWineVarietals: (tenantId: string, query?: {
|
|
2375
|
+
createdAt?: string;
|
|
2376
|
+
/**
|
|
2377
|
+
* @default 10
|
|
2378
|
+
* @example 10
|
|
2379
|
+
*/
|
|
2380
|
+
limit?: number;
|
|
2381
|
+
orderBy?: OrderByEnum;
|
|
2382
|
+
/**
|
|
2383
|
+
* @default 1
|
|
2384
|
+
* @example 1
|
|
2385
|
+
*/
|
|
2386
|
+
page?: number;
|
|
2387
|
+
search?: string;
|
|
2388
|
+
sortBy?: string[];
|
|
2389
|
+
}, params?: RequestParams) => Promise<WineVarietalEntityPaginatedDto>;
|
|
465
2390
|
/**
|
|
466
2391
|
* No description
|
|
467
2392
|
*
|
|
468
|
-
* @tags Admin Tenant
|
|
469
|
-
* @name
|
|
470
|
-
* @request
|
|
2393
|
+
* @tags Admin Tenant Wine Villages
|
|
2394
|
+
* @name ListTenantWineVillages
|
|
2395
|
+
* @request GET:/admin/tenants/{tenantId}/wine-villages
|
|
471
2396
|
* @secure
|
|
472
|
-
* @response `
|
|
473
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2397
|
+
* @response `200` `WineVillageEntityPaginatedDto`
|
|
2398
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
474
2399
|
*/
|
|
475
|
-
|
|
2400
|
+
listTenantWineVillages: (tenantId: string, query?: {
|
|
2401
|
+
createdAt?: string;
|
|
2402
|
+
/**
|
|
2403
|
+
* @default 10
|
|
2404
|
+
* @example 10
|
|
2405
|
+
*/
|
|
2406
|
+
limit?: number;
|
|
2407
|
+
orderBy?: OrderByEnum;
|
|
2408
|
+
/**
|
|
2409
|
+
* @default 1
|
|
2410
|
+
* @example 1
|
|
2411
|
+
*/
|
|
2412
|
+
page?: number;
|
|
2413
|
+
search?: string;
|
|
2414
|
+
sortBy?: string[];
|
|
2415
|
+
}, params?: RequestParams) => Promise<WineVillageEntityPaginatedDto>;
|
|
476
2416
|
/**
|
|
477
2417
|
* No description
|
|
478
2418
|
*
|
|
479
|
-
* @tags Admin Tenant
|
|
480
|
-
* @name
|
|
481
|
-
* @request GET:/admin/tenants/{tenantId}/
|
|
2419
|
+
* @tags Admin Tenant Wine Vineyards
|
|
2420
|
+
* @name ListTenantWineVineyards
|
|
2421
|
+
* @request GET:/admin/tenants/{tenantId}/wine-vineyards
|
|
482
2422
|
* @secure
|
|
483
|
-
* @response `200` `
|
|
484
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2423
|
+
* @response `200` `WineVineyardEntityPaginatedDto`
|
|
2424
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
485
2425
|
*/
|
|
486
|
-
|
|
2426
|
+
listTenantWineVineyards: (tenantId: string, query?: {
|
|
2427
|
+
createdAt?: string;
|
|
487
2428
|
/**
|
|
488
2429
|
* @default 10
|
|
489
2430
|
* @example 10
|
|
@@ -495,10 +2436,118 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
495
2436
|
* @example 1
|
|
496
2437
|
*/
|
|
497
2438
|
page?: number;
|
|
498
|
-
roles?: TenantRoleEnum[];
|
|
499
2439
|
search?: string;
|
|
500
2440
|
sortBy?: string[];
|
|
501
|
-
|
|
502
|
-
|
|
2441
|
+
}, params?: RequestParams) => Promise<WineVineyardEntityPaginatedDto>;
|
|
2442
|
+
/**
|
|
2443
|
+
* No description
|
|
2444
|
+
*
|
|
2445
|
+
* @tags Admin Tenant Wines
|
|
2446
|
+
* @name UpdateTenantWine
|
|
2447
|
+
* @request PATCH:/admin/tenants/{tenantId}/wines/{wineId}
|
|
2448
|
+
* @secure
|
|
2449
|
+
* @response `200` `WineEntityDto`
|
|
2450
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2451
|
+
*/
|
|
2452
|
+
updateTenantWine: (tenantId: string, wineId: string, data: UpdateWineDto, params?: RequestParams) => Promise<WineEntityDto>;
|
|
2453
|
+
/**
|
|
2454
|
+
* No description
|
|
2455
|
+
*
|
|
2456
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
2457
|
+
* @name UpdateTenantWineBottleFormat
|
|
2458
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
|
|
2459
|
+
* @secure
|
|
2460
|
+
* @response `200` `WineBottleFormatEntityDto`
|
|
2461
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2462
|
+
*/
|
|
2463
|
+
updateTenantWineBottleFormat: (tenantId: string, bottleFormatId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineBottleFormatEntityDto>;
|
|
2464
|
+
/**
|
|
2465
|
+
* No description
|
|
2466
|
+
*
|
|
2467
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
2468
|
+
* @name UpdateTenantWineBottleVintage
|
|
2469
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
|
|
2470
|
+
* @secure
|
|
2471
|
+
* @response `200` `WineBottleVintageEntityDto`
|
|
2472
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2473
|
+
*/
|
|
2474
|
+
updateTenantWineBottleVintage: (tenantId: string, bottleVintageId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineBottleVintageEntityDto>;
|
|
2475
|
+
/**
|
|
2476
|
+
* No description
|
|
2477
|
+
*
|
|
2478
|
+
* @tags Admin Tenant Wine Brands
|
|
2479
|
+
* @name UpdateTenantWineBrand
|
|
2480
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-brands/{brandId}
|
|
2481
|
+
* @secure
|
|
2482
|
+
* @response `200` `WineBrandEntityDto`
|
|
2483
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2484
|
+
*/
|
|
2485
|
+
updateTenantWineBrand: (tenantId: string, brandId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineBrandEntityDto>;
|
|
2486
|
+
/**
|
|
2487
|
+
* No description
|
|
2488
|
+
*
|
|
2489
|
+
* @tags Admin Tenant Wine Producers
|
|
2490
|
+
* @name UpdateTenantWineProducer
|
|
2491
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-producers/{producerId}
|
|
2492
|
+
* @secure
|
|
2493
|
+
* @response `200` `WineProducerEntityDto`
|
|
2494
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2495
|
+
*/
|
|
2496
|
+
updateTenantWineProducer: (tenantId: string, producerId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineProducerEntityDto>;
|
|
2497
|
+
/**
|
|
2498
|
+
* No description
|
|
2499
|
+
*
|
|
2500
|
+
* @tags Admin Tenant Wine Styles
|
|
2501
|
+
* @name UpdateTenantWineStyle
|
|
2502
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-styles/{styleId}
|
|
2503
|
+
* @secure
|
|
2504
|
+
* @response `200` `WineStyleEntityDto`
|
|
2505
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2506
|
+
*/
|
|
2507
|
+
updateTenantWineStyle: (tenantId: string, styleId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineStyleEntityDto>;
|
|
2508
|
+
/**
|
|
2509
|
+
* No description
|
|
2510
|
+
*
|
|
2511
|
+
* @tags Admin Tenant Wine Types
|
|
2512
|
+
* @name UpdateTenantWineType
|
|
2513
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-types/{typeId}
|
|
2514
|
+
* @secure
|
|
2515
|
+
* @response `200` `WineTypeEntityDto`
|
|
2516
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2517
|
+
*/
|
|
2518
|
+
updateTenantWineType: (tenantId: string, typeId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineTypeEntityDto>;
|
|
2519
|
+
/**
|
|
2520
|
+
* No description
|
|
2521
|
+
*
|
|
2522
|
+
* @tags Admin Tenant Wine Varietals
|
|
2523
|
+
* @name UpdateTenantWineVarietal
|
|
2524
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-varietals/{varietalId}
|
|
2525
|
+
* @secure
|
|
2526
|
+
* @response `200` `WineVarietalEntityDto`
|
|
2527
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2528
|
+
*/
|
|
2529
|
+
updateTenantWineVarietal: (tenantId: string, varietalId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineVarietalEntityDto>;
|
|
2530
|
+
/**
|
|
2531
|
+
* No description
|
|
2532
|
+
*
|
|
2533
|
+
* @tags Admin Tenant Wine Villages
|
|
2534
|
+
* @name UpdateTenantWineVillage
|
|
2535
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-villages/{villageId}
|
|
2536
|
+
* @secure
|
|
2537
|
+
* @response `200` `WineVillageEntityDto`
|
|
2538
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2539
|
+
*/
|
|
2540
|
+
updateTenantWineVillage: (tenantId: string, villageId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineVillageEntityDto>;
|
|
2541
|
+
/**
|
|
2542
|
+
* No description
|
|
2543
|
+
*
|
|
2544
|
+
* @tags Admin Tenant Wine Vineyards
|
|
2545
|
+
* @name UpdateTenantWineVineyard
|
|
2546
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-vineyards/{vineyardId}
|
|
2547
|
+
* @secure
|
|
2548
|
+
* @response `200` `WineVineyardEntityDto`
|
|
2549
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2550
|
+
*/
|
|
2551
|
+
updateTenantWineVineyard: (tenantId: string, vineyardId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineVineyardEntityDto>;
|
|
503
2552
|
};
|
|
504
2553
|
}
|