@thelllabs/winehaus-sdk 0.0.7 → 0.0.11

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.
@@ -1,3 +1,35 @@
1
+ export interface CaseOperationExtraTemplateEntityDto {
2
+ /** @format date-time */
3
+ createdAt: string;
4
+ /** @format date-time */
5
+ deletedAt?: string | null;
6
+ description?: string | null;
7
+ /** @format uuid */
8
+ id: string;
9
+ invoiceTitle: string;
10
+ /**
11
+ * @min 0
12
+ * @example 100
13
+ */
14
+ pricePerItem: number;
15
+ /** @format uuid */
16
+ tenantId?: string | null;
17
+ /** @format date-time */
18
+ updatedAt: string;
19
+ }
20
+ export interface CaseOperationExtraTemplateEntityPaginatedDto {
21
+ items: CaseOperationExtraTemplateEntityDto[];
22
+ links?: PaginationLinksDto;
23
+ meta: PaginationMetaDto;
24
+ }
25
+ export interface CreateCaseOperationExtraTemplateDto {
26
+ description?: string | null;
27
+ invoiceTitle: string;
28
+ /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
29
+ isGlobal?: boolean;
30
+ /** @example 100 */
31
+ pricePerItem: number;
32
+ }
1
33
  export interface CreateNameOnlyEntityDto {
2
34
  /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
3
35
  isGlobal?: boolean;
@@ -101,7 +133,8 @@ export interface SigninResponseDto {
101
133
  export declare enum TenantRoleEnum {
102
134
  Operator = "operator",
103
135
  Admin = "admin",
104
- Owner = "owner"
136
+ Owner = "owner",
137
+ Customer = "customer"
105
138
  }
106
139
  export interface TenantUserEntityDto {
107
140
  roles: TenantRoleEnum[];
@@ -122,6 +155,14 @@ export declare enum TenantUserStatusEnum {
122
155
  Enabled = "enabled",
123
156
  Blocked = "blocked"
124
157
  }
158
+ export interface UpdateCaseOperationExtraTemplateDto {
159
+ description?: string | null;
160
+ invoiceTitle: string;
161
+ /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
162
+ isGlobal?: boolean;
163
+ /** @example 100 */
164
+ pricePerItem: number;
165
+ }
125
166
  export interface UpdateNameOnlyEntityDto {
126
167
  /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
127
168
  isGlobal?: boolean;
@@ -163,7 +204,7 @@ export interface UpdateWineDto {
163
204
  }
164
205
  export interface UserEntityDto {
165
206
  /** @format date-time */
166
- createdAt?: string;
207
+ createdAt: string;
167
208
  /** @format date-time */
168
209
  deletedAt?: string | null;
169
210
  email: string;
@@ -173,9 +214,45 @@ export interface UserEntityDto {
173
214
  /** @format date-time */
174
215
  updatedAt: string;
175
216
  }
217
+ export interface WineBottleFormatEntityDto {
218
+ /** @format date-time */
219
+ createdAt: string;
220
+ /** @format date-time */
221
+ deletedAt?: string | null;
222
+ /** @format uuid */
223
+ id: string;
224
+ name: string;
225
+ /** @format uuid */
226
+ tenantId?: string | null;
227
+ /** @format date-time */
228
+ updatedAt: string;
229
+ }
230
+ export interface WineBottleFormatEntityPaginatedDto {
231
+ items: WineBottleFormatEntityDto[];
232
+ links?: PaginationLinksDto;
233
+ meta: PaginationMetaDto;
234
+ }
235
+ export interface WineBottleVintageEntityDto {
236
+ /** @format date-time */
237
+ createdAt: string;
238
+ /** @format date-time */
239
+ deletedAt?: string | null;
240
+ /** @format uuid */
241
+ id: string;
242
+ name: string;
243
+ /** @format uuid */
244
+ tenantId?: string | null;
245
+ /** @format date-time */
246
+ updatedAt: string;
247
+ }
248
+ export interface WineBottleVintageEntityPaginatedDto {
249
+ items: WineBottleVintageEntityDto[];
250
+ links?: PaginationLinksDto;
251
+ meta: PaginationMetaDto;
252
+ }
176
253
  export interface WineBrandEntityDto {
177
254
  /** @format date-time */
178
- createdAt?: string;
255
+ createdAt: string;
179
256
  /** @format date-time */
180
257
  deletedAt?: string | null;
181
258
  /** @format uuid */
@@ -196,7 +273,7 @@ export interface WineEntityDto {
196
273
  /** @format uuid */
197
274
  brandId: string;
198
275
  /** @format date-time */
199
- createdAt?: string;
276
+ createdAt: string;
200
277
  /** @format date-time */
201
278
  deletedAt?: string | null;
202
279
  description?: string;
@@ -237,7 +314,7 @@ export interface WineLocationDto {
237
314
  }
238
315
  export interface WineProducerEntityDto {
239
316
  /** @format date-time */
240
- createdAt?: string;
317
+ createdAt: string;
241
318
  /** @format date-time */
242
319
  deletedAt?: string | null;
243
320
  /** @format uuid */
@@ -255,7 +332,7 @@ export interface WineProducerEntityPaginatedDto {
255
332
  }
256
333
  export interface WineStyleEntityDto {
257
334
  /** @format date-time */
258
- createdAt?: string;
335
+ createdAt: string;
259
336
  /** @format date-time */
260
337
  deletedAt?: string | null;
261
338
  /** @format uuid */
@@ -273,7 +350,7 @@ export interface WineStyleEntityPaginatedDto {
273
350
  }
274
351
  export interface WineTypeEntityDto {
275
352
  /** @format date-time */
276
- createdAt?: string;
353
+ createdAt: string;
277
354
  /** @format date-time */
278
355
  deletedAt?: string | null;
279
356
  /** @format uuid */
@@ -291,7 +368,7 @@ export interface WineTypeEntityPaginatedDto {
291
368
  }
292
369
  export interface WineVarietalEntityDto {
293
370
  /** @format date-time */
294
- createdAt?: string;
371
+ createdAt: string;
295
372
  /** @format date-time */
296
373
  deletedAt?: string | null;
297
374
  /** @format uuid */
@@ -309,7 +386,7 @@ export interface WineVarietalEntityPaginatedDto {
309
386
  }
310
387
  export interface WineVillageEntityDto {
311
388
  /** @format date-time */
312
- createdAt?: string;
389
+ createdAt: string;
313
390
  /** @format date-time */
314
391
  deletedAt?: string | null;
315
392
  /** @format uuid */
@@ -327,7 +404,7 @@ export interface WineVillageEntityPaginatedDto {
327
404
  }
328
405
  export interface WineVineyardEntityDto {
329
406
  /** @format date-time */
330
- createdAt?: string;
407
+ createdAt: string;
331
408
  /** @format date-time */
332
409
  deletedAt?: string | null;
333
410
  /** @format uuid */
@@ -462,6 +539,24 @@ export declare namespace Admin {
462
539
  type RequestHeaders = {};
463
540
  type ResponseBody = TenantUserEntityDto;
464
541
  }
542
+ /**
543
+ * No description
544
+ * @tags Admin Tenant Operation Extras Templates
545
+ * @name CreateTenantOperationExtraTemplate
546
+ * @request POST:/admin/tenants/{tenantId}/operation-extras-templates
547
+ * @secure
548
+ * @response `201` `CaseOperationExtraTemplateEntityDto`
549
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
550
+ */
551
+ namespace CreateTenantOperationExtraTemplate {
552
+ type RequestParams = {
553
+ tenantId: string;
554
+ };
555
+ type RequestQuery = {};
556
+ type RequestBody = CreateCaseOperationExtraTemplateDto;
557
+ type RequestHeaders = {};
558
+ type ResponseBody = CaseOperationExtraTemplateEntityDto;
559
+ }
465
560
  /**
466
561
  * No description
467
562
  * @tags Admin Tenant Wines
@@ -480,6 +575,42 @@ export declare namespace Admin {
480
575
  type RequestHeaders = {};
481
576
  type ResponseBody = WineEntityDto;
482
577
  }
578
+ /**
579
+ * No description
580
+ * @tags Admin Tenant Wine Bottle Formats
581
+ * @name CreateTenantWineBottleFormat
582
+ * @request POST:/admin/tenants/{tenantId}/wine-bottle-formats
583
+ * @secure
584
+ * @response `201` `WineBottleFormatEntityDto`
585
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
586
+ */
587
+ namespace CreateTenantWineBottleFormat {
588
+ type RequestParams = {
589
+ tenantId: string;
590
+ };
591
+ type RequestQuery = {};
592
+ type RequestBody = CreateNameOnlyEntityDto;
593
+ type RequestHeaders = {};
594
+ type ResponseBody = WineBottleFormatEntityDto;
595
+ }
596
+ /**
597
+ * No description
598
+ * @tags Admin Tenant Wine Bottle Vintages
599
+ * @name CreateTenantWineBottleVintage
600
+ * @request POST:/admin/tenants/{tenantId}/wine-bottle-vintages
601
+ * @secure
602
+ * @response `201` `WineBottleVintageEntityDto`
603
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
604
+ */
605
+ namespace CreateTenantWineBottleVintage {
606
+ type RequestParams = {
607
+ tenantId: string;
608
+ };
609
+ type RequestQuery = {};
610
+ type RequestBody = CreateNameOnlyEntityDto;
611
+ type RequestHeaders = {};
612
+ type ResponseBody = WineBottleVintageEntityDto;
613
+ }
483
614
  /**
484
615
  * No description
485
616
  * @tags Admin Tenant Wine Brands
@@ -606,6 +737,25 @@ export declare namespace Admin {
606
737
  type RequestHeaders = {};
607
738
  type ResponseBody = WineVineyardEntityDto;
608
739
  }
740
+ /**
741
+ * No description
742
+ * @tags Admin Tenant Operation Extras Templates
743
+ * @name DeleteTenantOperationExtraTemplate
744
+ * @request DELETE:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
745
+ * @secure
746
+ * @response `204` `void`
747
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
748
+ */
749
+ namespace DeleteTenantOperationExtraTemplate {
750
+ type RequestParams = {
751
+ templateId: string;
752
+ tenantId: string;
753
+ };
754
+ type RequestQuery = {};
755
+ type RequestBody = never;
756
+ type RequestHeaders = {};
757
+ type ResponseBody = void;
758
+ }
609
759
  /**
610
760
  * No description
611
761
  * @tags Admin Tenant Wines
@@ -625,6 +775,44 @@ export declare namespace Admin {
625
775
  type RequestHeaders = {};
626
776
  type ResponseBody = void;
627
777
  }
778
+ /**
779
+ * No description
780
+ * @tags Admin Tenant Wine Bottle Formats
781
+ * @name DeleteTenantWineBottleFormat
782
+ * @request DELETE:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
783
+ * @secure
784
+ * @response `204` `void`
785
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
786
+ */
787
+ namespace DeleteTenantWineBottleFormat {
788
+ type RequestParams = {
789
+ bottleFormatId: string;
790
+ tenantId: string;
791
+ };
792
+ type RequestQuery = {};
793
+ type RequestBody = never;
794
+ type RequestHeaders = {};
795
+ type ResponseBody = void;
796
+ }
797
+ /**
798
+ * No description
799
+ * @tags Admin Tenant Wine Bottle Vintages
800
+ * @name DeleteTenantWineBottleVintage
801
+ * @request DELETE:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
802
+ * @secure
803
+ * @response `204` `void`
804
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
805
+ */
806
+ namespace DeleteTenantWineBottleVintage {
807
+ type RequestParams = {
808
+ bottleVintageId: string;
809
+ tenantId: string;
810
+ };
811
+ type RequestQuery = {};
812
+ type RequestBody = never;
813
+ type RequestHeaders = {};
814
+ type ResponseBody = void;
815
+ }
628
816
  /**
629
817
  * No description
630
818
  * @tags Admin Tenant Wine Brands
@@ -796,6 +984,63 @@ export declare namespace Admin {
796
984
  type RequestHeaders = {};
797
985
  type ResponseBody = void;
798
986
  }
987
+ /**
988
+ * No description
989
+ * @tags Admin Tenant Operation Extras Templates
990
+ * @name GetTenantOperationExtraTemplateById
991
+ * @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
992
+ * @secure
993
+ * @response `200` `CaseOperationExtraTemplateEntityDto`
994
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
995
+ */
996
+ namespace GetTenantOperationExtraTemplateById {
997
+ type RequestParams = {
998
+ templateId: string;
999
+ tenantId: string;
1000
+ };
1001
+ type RequestQuery = {};
1002
+ type RequestBody = never;
1003
+ type RequestHeaders = {};
1004
+ type ResponseBody = CaseOperationExtraTemplateEntityDto;
1005
+ }
1006
+ /**
1007
+ * No description
1008
+ * @tags Admin Tenant Wine Bottle Formats
1009
+ * @name GetTenantWineBottleFormatById
1010
+ * @request GET:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
1011
+ * @secure
1012
+ * @response `200` `WineBottleFormatEntityDto`
1013
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1014
+ */
1015
+ namespace GetTenantWineBottleFormatById {
1016
+ type RequestParams = {
1017
+ bottleFormatId: string;
1018
+ tenantId: string;
1019
+ };
1020
+ type RequestQuery = {};
1021
+ type RequestBody = never;
1022
+ type RequestHeaders = {};
1023
+ type ResponseBody = WineBottleFormatEntityDto;
1024
+ }
1025
+ /**
1026
+ * No description
1027
+ * @tags Admin Tenant Wine Bottle Vintages
1028
+ * @name GetTenantWineBottleVintageById
1029
+ * @request GET:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
1030
+ * @secure
1031
+ * @response `200` `WineBottleVintageEntityDto`
1032
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1033
+ */
1034
+ namespace GetTenantWineBottleVintageById {
1035
+ type RequestParams = {
1036
+ bottleVintageId: string;
1037
+ tenantId: string;
1038
+ };
1039
+ type RequestQuery = {};
1040
+ type RequestBody = never;
1041
+ type RequestHeaders = {};
1042
+ type ResponseBody = WineBottleVintageEntityDto;
1043
+ }
799
1044
  /**
800
1045
  * No description
801
1046
  * @tags Admin Tenant Wine Brands
@@ -948,6 +1193,39 @@ export declare namespace Admin {
948
1193
  type RequestHeaders = {};
949
1194
  type ResponseBody = WineVineyardEntityDto;
950
1195
  }
1196
+ /**
1197
+ * No description
1198
+ * @tags Admin Tenant Operation Extras Templates
1199
+ * @name ListTenantOperationExtrasTemplates
1200
+ * @request GET:/admin/tenants/{tenantId}/operation-extras-templates
1201
+ * @secure
1202
+ * @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
1203
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1204
+ */
1205
+ namespace ListTenantOperationExtrasTemplates {
1206
+ type RequestParams = {
1207
+ tenantId: string;
1208
+ };
1209
+ type RequestQuery = {
1210
+ createdAt?: string;
1211
+ /**
1212
+ * @default 10
1213
+ * @example 10
1214
+ */
1215
+ limit?: number;
1216
+ orderBy?: OrderByEnum;
1217
+ /**
1218
+ * @default 1
1219
+ * @example 1
1220
+ */
1221
+ page?: number;
1222
+ search?: string;
1223
+ sortBy?: string[];
1224
+ };
1225
+ type RequestBody = never;
1226
+ type RequestHeaders = {};
1227
+ type ResponseBody = CaseOperationExtraTemplateEntityPaginatedDto;
1228
+ }
951
1229
  /**
952
1230
  * No description
953
1231
  * @tags Admin Tenant Users
@@ -982,6 +1260,72 @@ export declare namespace Admin {
982
1260
  type RequestHeaders = {};
983
1261
  type ResponseBody = TenantUserEntityPaginatedDto;
984
1262
  }
1263
+ /**
1264
+ * No description
1265
+ * @tags Admin Tenant Wine Bottle Formats
1266
+ * @name ListTenantWineBottleFormats
1267
+ * @request GET:/admin/tenants/{tenantId}/wine-bottle-formats
1268
+ * @secure
1269
+ * @response `200` `WineBottleFormatEntityPaginatedDto`
1270
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1271
+ */
1272
+ namespace ListTenantWineBottleFormats {
1273
+ type RequestParams = {
1274
+ tenantId: string;
1275
+ };
1276
+ type RequestQuery = {
1277
+ createdAt?: string;
1278
+ /**
1279
+ * @default 10
1280
+ * @example 10
1281
+ */
1282
+ limit?: number;
1283
+ orderBy?: OrderByEnum;
1284
+ /**
1285
+ * @default 1
1286
+ * @example 1
1287
+ */
1288
+ page?: number;
1289
+ search?: string;
1290
+ sortBy?: string[];
1291
+ };
1292
+ type RequestBody = never;
1293
+ type RequestHeaders = {};
1294
+ type ResponseBody = WineBottleFormatEntityPaginatedDto;
1295
+ }
1296
+ /**
1297
+ * No description
1298
+ * @tags Admin Tenant Wine Bottle Vintages
1299
+ * @name ListTenantWineBottleVintages
1300
+ * @request GET:/admin/tenants/{tenantId}/wine-bottle-vintages
1301
+ * @secure
1302
+ * @response `200` `WineBottleVintageEntityPaginatedDto`
1303
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1304
+ */
1305
+ namespace ListTenantWineBottleVintages {
1306
+ type RequestParams = {
1307
+ tenantId: string;
1308
+ };
1309
+ type RequestQuery = {
1310
+ createdAt?: string;
1311
+ /**
1312
+ * @default 10
1313
+ * @example 10
1314
+ */
1315
+ limit?: number;
1316
+ orderBy?: OrderByEnum;
1317
+ /**
1318
+ * @default 1
1319
+ * @example 1
1320
+ */
1321
+ page?: number;
1322
+ search?: string;
1323
+ sortBy?: string[];
1324
+ };
1325
+ type RequestBody = never;
1326
+ type RequestHeaders = {};
1327
+ type ResponseBody = WineBottleVintageEntityPaginatedDto;
1328
+ }
985
1329
  /**
986
1330
  * No description
987
1331
  * @tags Admin Tenant Wine Brands
@@ -1252,6 +1596,25 @@ export declare namespace Admin {
1252
1596
  type RequestHeaders = {};
1253
1597
  type ResponseBody = WineVineyardEntityPaginatedDto;
1254
1598
  }
1599
+ /**
1600
+ * No description
1601
+ * @tags Admin Tenant Operation Extras Templates
1602
+ * @name UpdateTenantOperationExtraTemplate
1603
+ * @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
1604
+ * @secure
1605
+ * @response `200` `CaseOperationExtraTemplateEntityDto`
1606
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1607
+ */
1608
+ namespace UpdateTenantOperationExtraTemplate {
1609
+ type RequestParams = {
1610
+ templateId: string;
1611
+ tenantId: string;
1612
+ };
1613
+ type RequestQuery = {};
1614
+ type RequestBody = UpdateCaseOperationExtraTemplateDto;
1615
+ type RequestHeaders = {};
1616
+ type ResponseBody = CaseOperationExtraTemplateEntityDto;
1617
+ }
1255
1618
  /**
1256
1619
  * No description
1257
1620
  * @tags Admin Tenant Wines
@@ -1271,6 +1634,44 @@ export declare namespace Admin {
1271
1634
  type RequestHeaders = {};
1272
1635
  type ResponseBody = WineEntityDto;
1273
1636
  }
1637
+ /**
1638
+ * No description
1639
+ * @tags Admin Tenant Wine Bottle Formats
1640
+ * @name UpdateTenantWineBottleFormat
1641
+ * @request PATCH:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
1642
+ * @secure
1643
+ * @response `200` `WineBottleFormatEntityDto`
1644
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1645
+ */
1646
+ namespace UpdateTenantWineBottleFormat {
1647
+ type RequestParams = {
1648
+ bottleFormatId: string;
1649
+ tenantId: string;
1650
+ };
1651
+ type RequestQuery = {};
1652
+ type RequestBody = UpdateNameOnlyEntityDto;
1653
+ type RequestHeaders = {};
1654
+ type ResponseBody = WineBottleFormatEntityDto;
1655
+ }
1656
+ /**
1657
+ * No description
1658
+ * @tags Admin Tenant Wine Bottle Vintages
1659
+ * @name UpdateTenantWineBottleVintage
1660
+ * @request PATCH:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
1661
+ * @secure
1662
+ * @response `200` `WineBottleVintageEntityDto`
1663
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1664
+ */
1665
+ namespace UpdateTenantWineBottleVintage {
1666
+ type RequestParams = {
1667
+ bottleVintageId: string;
1668
+ tenantId: string;
1669
+ };
1670
+ type RequestQuery = {};
1671
+ type RequestBody = UpdateNameOnlyEntityDto;
1672
+ type RequestHeaders = {};
1673
+ type ResponseBody = WineBottleVintageEntityDto;
1674
+ }
1274
1675
  /**
1275
1676
  * No description
1276
1677
  * @tags Admin Tenant Wine Brands
@@ -1449,7 +1850,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
1449
1850
  }
1450
1851
  /**
1451
1852
  * @title winehaus-api
1452
- * @version 0.0.1
1853
+ * @version 0.0.2
1453
1854
  * @baseUrl http://localhost:3000
1454
1855
  * @contact
1455
1856
  */
@@ -1541,6 +1942,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1541
1942
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1542
1943
  */
1543
1944
  createOrUpdateTenantUserAndPermissionsByUserEmail: (tenantId: string, data: CreateTenantUserDto, params?: RequestParams) => Promise<TenantUserEntityDto>;
1945
+ /**
1946
+ * No description
1947
+ *
1948
+ * @tags Admin Tenant Operation Extras Templates
1949
+ * @name CreateTenantOperationExtraTemplate
1950
+ * @request POST:/admin/tenants/{tenantId}/operation-extras-templates
1951
+ * @secure
1952
+ * @response `201` `CaseOperationExtraTemplateEntityDto`
1953
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1954
+ */
1955
+ createTenantOperationExtraTemplate: (tenantId: string, data: CreateCaseOperationExtraTemplateDto, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityDto>;
1544
1956
  /**
1545
1957
  * No description
1546
1958
  *
@@ -1552,6 +1964,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1552
1964
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1553
1965
  */
1554
1966
  createTenantWine: (tenantId: string, data: CreateWineDto, params?: RequestParams) => Promise<WineEntityDto>;
1967
+ /**
1968
+ * No description
1969
+ *
1970
+ * @tags Admin Tenant Wine Bottle Formats
1971
+ * @name CreateTenantWineBottleFormat
1972
+ * @request POST:/admin/tenants/{tenantId}/wine-bottle-formats
1973
+ * @secure
1974
+ * @response `201` `WineBottleFormatEntityDto`
1975
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1976
+ */
1977
+ createTenantWineBottleFormat: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineBottleFormatEntityDto>;
1978
+ /**
1979
+ * No description
1980
+ *
1981
+ * @tags Admin Tenant Wine Bottle Vintages
1982
+ * @name CreateTenantWineBottleVintage
1983
+ * @request POST:/admin/tenants/{tenantId}/wine-bottle-vintages
1984
+ * @secure
1985
+ * @response `201` `WineBottleVintageEntityDto`
1986
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1987
+ */
1988
+ createTenantWineBottleVintage: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineBottleVintageEntityDto>;
1555
1989
  /**
1556
1990
  * No description
1557
1991
  *
@@ -1629,6 +2063,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1629
2063
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1630
2064
  */
1631
2065
  createTenantWineVineyard: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineVineyardEntityDto>;
2066
+ /**
2067
+ * No description
2068
+ *
2069
+ * @tags Admin Tenant Operation Extras Templates
2070
+ * @name DeleteTenantOperationExtraTemplate
2071
+ * @request DELETE:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
2072
+ * @secure
2073
+ * @response `204` `void`
2074
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2075
+ */
2076
+ deleteTenantOperationExtraTemplate: (tenantId: string, templateId: string, params?: RequestParams) => Promise<void>;
1632
2077
  /**
1633
2078
  * No description
1634
2079
  *
@@ -1640,6 +2085,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1640
2085
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1641
2086
  */
1642
2087
  deleteTenantWine: (tenantId: string, wineId: string, params?: RequestParams) => Promise<void>;
2088
+ /**
2089
+ * No description
2090
+ *
2091
+ * @tags Admin Tenant Wine Bottle Formats
2092
+ * @name DeleteTenantWineBottleFormat
2093
+ * @request DELETE:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
2094
+ * @secure
2095
+ * @response `204` `void`
2096
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2097
+ */
2098
+ deleteTenantWineBottleFormat: (tenantId: string, bottleFormatId: string, params?: RequestParams) => Promise<void>;
2099
+ /**
2100
+ * No description
2101
+ *
2102
+ * @tags Admin Tenant Wine Bottle Vintages
2103
+ * @name DeleteTenantWineBottleVintage
2104
+ * @request DELETE:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
2105
+ * @secure
2106
+ * @response `204` `void`
2107
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2108
+ */
2109
+ deleteTenantWineBottleVintage: (tenantId: string, bottleVintageId: string, params?: RequestParams) => Promise<void>;
1643
2110
  /**
1644
2111
  * No description
1645
2112
  *
@@ -1739,6 +2206,39 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1739
2206
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1740
2207
  */
1741
2208
  enableTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<void>;
2209
+ /**
2210
+ * No description
2211
+ *
2212
+ * @tags Admin Tenant Operation Extras Templates
2213
+ * @name GetTenantOperationExtraTemplateById
2214
+ * @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
2215
+ * @secure
2216
+ * @response `200` `CaseOperationExtraTemplateEntityDto`
2217
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2218
+ */
2219
+ getTenantOperationExtraTemplateById: (tenantId: string, templateId: string, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityDto>;
2220
+ /**
2221
+ * No description
2222
+ *
2223
+ * @tags Admin Tenant Wine Bottle Formats
2224
+ * @name GetTenantWineBottleFormatById
2225
+ * @request GET:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
2226
+ * @secure
2227
+ * @response `200` `WineBottleFormatEntityDto`
2228
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2229
+ */
2230
+ getTenantWineBottleFormatById: (tenantId: string, bottleFormatId: string, params?: RequestParams) => Promise<WineBottleFormatEntityDto>;
2231
+ /**
2232
+ * No description
2233
+ *
2234
+ * @tags Admin Tenant Wine Bottle Vintages
2235
+ * @name GetTenantWineBottleVintageById
2236
+ * @request GET:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
2237
+ * @secure
2238
+ * @response `200` `WineBottleVintageEntityDto`
2239
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2240
+ */
2241
+ getTenantWineBottleVintageById: (tenantId: string, bottleVintageId: string, params?: RequestParams) => Promise<WineBottleVintageEntityDto>;
1742
2242
  /**
1743
2243
  * No description
1744
2244
  *
@@ -1827,6 +2327,32 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1827
2327
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1828
2328
  */
1829
2329
  getTenantWineVineyardById: (tenantId: string, vineyardId: string, params?: RequestParams) => Promise<WineVineyardEntityDto>;
2330
+ /**
2331
+ * No description
2332
+ *
2333
+ * @tags Admin Tenant Operation Extras Templates
2334
+ * @name ListTenantOperationExtrasTemplates
2335
+ * @request GET:/admin/tenants/{tenantId}/operation-extras-templates
2336
+ * @secure
2337
+ * @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
2338
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2339
+ */
2340
+ listTenantOperationExtrasTemplates: (tenantId: string, query?: {
2341
+ createdAt?: string;
2342
+ /**
2343
+ * @default 10
2344
+ * @example 10
2345
+ */
2346
+ limit?: number;
2347
+ orderBy?: OrderByEnum;
2348
+ /**
2349
+ * @default 1
2350
+ * @example 1
2351
+ */
2352
+ page?: number;
2353
+ search?: string;
2354
+ sortBy?: string[];
2355
+ }, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityPaginatedDto>;
1830
2356
  /**
1831
2357
  * No description
1832
2358
  *
@@ -1854,6 +2380,58 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1854
2380
  sortBy?: string[];
1855
2381
  status?: TenantUserStatusEnum[];
1856
2382
  }, params?: RequestParams) => Promise<TenantUserEntityPaginatedDto>;
2383
+ /**
2384
+ * No description
2385
+ *
2386
+ * @tags Admin Tenant Wine Bottle Formats
2387
+ * @name ListTenantWineBottleFormats
2388
+ * @request GET:/admin/tenants/{tenantId}/wine-bottle-formats
2389
+ * @secure
2390
+ * @response `200` `WineBottleFormatEntityPaginatedDto`
2391
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2392
+ */
2393
+ listTenantWineBottleFormats: (tenantId: string, query?: {
2394
+ createdAt?: string;
2395
+ /**
2396
+ * @default 10
2397
+ * @example 10
2398
+ */
2399
+ limit?: number;
2400
+ orderBy?: OrderByEnum;
2401
+ /**
2402
+ * @default 1
2403
+ * @example 1
2404
+ */
2405
+ page?: number;
2406
+ search?: string;
2407
+ sortBy?: string[];
2408
+ }, params?: RequestParams) => Promise<WineBottleFormatEntityPaginatedDto>;
2409
+ /**
2410
+ * No description
2411
+ *
2412
+ * @tags Admin Tenant Wine Bottle Vintages
2413
+ * @name ListTenantWineBottleVintages
2414
+ * @request GET:/admin/tenants/{tenantId}/wine-bottle-vintages
2415
+ * @secure
2416
+ * @response `200` `WineBottleVintageEntityPaginatedDto`
2417
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2418
+ */
2419
+ listTenantWineBottleVintages: (tenantId: string, query?: {
2420
+ createdAt?: string;
2421
+ /**
2422
+ * @default 10
2423
+ * @example 10
2424
+ */
2425
+ limit?: number;
2426
+ orderBy?: OrderByEnum;
2427
+ /**
2428
+ * @default 1
2429
+ * @example 1
2430
+ */
2431
+ page?: number;
2432
+ search?: string;
2433
+ sortBy?: string[];
2434
+ }, params?: RequestParams) => Promise<WineBottleVintageEntityPaginatedDto>;
1857
2435
  /**
1858
2436
  * No description
1859
2437
  *
@@ -2068,6 +2646,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2068
2646
  search?: string;
2069
2647
  sortBy?: string[];
2070
2648
  }, params?: RequestParams) => Promise<WineVineyardEntityPaginatedDto>;
2649
+ /**
2650
+ * No description
2651
+ *
2652
+ * @tags Admin Tenant Operation Extras Templates
2653
+ * @name UpdateTenantOperationExtraTemplate
2654
+ * @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
2655
+ * @secure
2656
+ * @response `200` `CaseOperationExtraTemplateEntityDto`
2657
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2658
+ */
2659
+ updateTenantOperationExtraTemplate: (tenantId: string, templateId: string, data: UpdateCaseOperationExtraTemplateDto, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityDto>;
2071
2660
  /**
2072
2661
  * No description
2073
2662
  *
@@ -2079,6 +2668,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2079
2668
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2080
2669
  */
2081
2670
  updateTenantWine: (tenantId: string, wineId: string, data: UpdateWineDto, params?: RequestParams) => Promise<WineEntityDto>;
2671
+ /**
2672
+ * No description
2673
+ *
2674
+ * @tags Admin Tenant Wine Bottle Formats
2675
+ * @name UpdateTenantWineBottleFormat
2676
+ * @request PATCH:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
2677
+ * @secure
2678
+ * @response `200` `WineBottleFormatEntityDto`
2679
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2680
+ */
2681
+ updateTenantWineBottleFormat: (tenantId: string, bottleFormatId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineBottleFormatEntityDto>;
2682
+ /**
2683
+ * No description
2684
+ *
2685
+ * @tags Admin Tenant Wine Bottle Vintages
2686
+ * @name UpdateTenantWineBottleVintage
2687
+ * @request PATCH:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
2688
+ * @secure
2689
+ * @response `200` `WineBottleVintageEntityDto`
2690
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2691
+ */
2692
+ updateTenantWineBottleVintage: (tenantId: string, bottleVintageId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineBottleVintageEntityDto>;
2082
2693
  /**
2083
2694
  * No description
2084
2695
  *