@thelllabs/winehaus-sdk 0.0.11 → 0.0.14

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,84 @@
1
+ export interface AddressEntityDto {
2
+ addressLine1: string;
3
+ addressLine2?: string;
4
+ city: string;
5
+ country: string;
6
+ /** @format date-time */
7
+ createdAt: string;
8
+ /** @format date-time */
9
+ deletedAt?: string | null;
10
+ /** @format uuid */
11
+ id: string;
12
+ location?: string;
13
+ name: string;
14
+ notes?: string;
15
+ postalCode: string;
16
+ state: string;
17
+ /** @format uuid */
18
+ tenantId: string;
19
+ /** @format date-time */
20
+ updatedAt: string;
21
+ /** @format uuid */
22
+ userId: string;
23
+ }
24
+ export interface AddressEntityPaginatedDto {
25
+ items: AddressEntityDto[];
26
+ links?: PaginationLinksDto;
27
+ meta: PaginationMetaDto;
28
+ }
29
+ export interface CaseBatchOperationResponseDto {
30
+ operations: CaseOperationEntityDto[];
31
+ }
32
+ export interface CaseEntityDto {
33
+ /** @format date-time */
34
+ billingEndDate?: string | null;
35
+ /** @format date-time */
36
+ billingStartDate?: string | null;
37
+ /** @format date-time */
38
+ createdAt: string;
39
+ /** @min 0 */
40
+ currentItems: number;
41
+ customer: UserEntityDto;
42
+ /** @format uuid */
43
+ customerId: string;
44
+ /** @format date-time */
45
+ deletedAt?: string | null;
46
+ description?: string | null;
47
+ /** @format uuid */
48
+ id: string;
49
+ /** @min 0 */
50
+ maxItems: number;
51
+ name: string;
52
+ /** @format uuid */
53
+ tenantId: string;
54
+ /** @format date-time */
55
+ updatedAt: string;
56
+ }
57
+ export interface CaseEntityPaginatedDto {
58
+ items: CaseEntityDto[];
59
+ links?: PaginationLinksDto;
60
+ meta: PaginationMetaDto;
61
+ }
62
+ export interface CaseOperationEntityDto {
63
+ /** @format uuid */
64
+ caseId: string;
65
+ /** @format date-time */
66
+ createdAt: string;
67
+ /** @format uuid */
68
+ id: string;
69
+ /** @example [] */
70
+ logs: CaseOperationLogDto[];
71
+ /** @format uuid */
72
+ requestId?: string | null;
73
+ /** @example "processed" */
74
+ status: CaseOperationStatusEnum;
75
+ /** @format uuid */
76
+ tenantId: string;
77
+ /** @example "deposit" */
78
+ type: CaseOperationTypesEnum;
79
+ /** @format date-time */
80
+ updatedAt: string;
81
+ }
1
82
  export interface CaseOperationExtraTemplateEntityDto {
2
83
  /** @format date-time */
3
84
  createdAt: string;
@@ -22,6 +103,107 @@ export interface CaseOperationExtraTemplateEntityPaginatedDto {
22
103
  links?: PaginationLinksDto;
23
104
  meta: PaginationMetaDto;
24
105
  }
106
+ export interface CaseOperationLogDto {
107
+ /** @example "confirmed" */
108
+ currentStatus?: CaseOperationStatusEnum;
109
+ /** @example "confirmed" */
110
+ newStatus?: CaseOperationStatusEnum;
111
+ /** @example "request_accepted" */
112
+ type: CaseOperationLogTypeEnum;
113
+ /** @format uuid */
114
+ userId: string;
115
+ }
116
+ export declare enum CaseOperationLogTypeEnum {
117
+ RequestAccepted = "request_accepted",
118
+ StatusChange = "status_change"
119
+ }
120
+ export declare enum CaseOperationStatusEnum {
121
+ OnHold = "on_hold",
122
+ Confirmed = "confirmed",
123
+ Processed = "processed",
124
+ Cancelled = "cancelled"
125
+ }
126
+ export declare enum CaseOperationTypesEnum {
127
+ Deposit = "deposit",
128
+ Withdrawal = "withdrawal"
129
+ }
130
+ export interface CaseWineInventoryItemEntityDto {
131
+ /** @min 0 */
132
+ amount: number;
133
+ bottleFormat: WineBottleFormatEntityDto;
134
+ /** @format uuid */
135
+ bottleFormatId: string;
136
+ bottleVintage: WineBottleVintageEntityDto;
137
+ /** @format uuid */
138
+ bottleVintageId: string;
139
+ /** @format uuid */
140
+ caseId?: string | null;
141
+ /** @format date-time */
142
+ createdAt: string;
143
+ /** @format uuid */
144
+ id: string;
145
+ /** @format uuid */
146
+ tenantId: string;
147
+ /** @format date-time */
148
+ updatedAt: string;
149
+ wine: WineEntityDto;
150
+ /** @format uuid */
151
+ wineId: string;
152
+ }
153
+ export interface CaseWineInventoryItemEntityPaginatedDto {
154
+ items: CaseWineInventoryItemEntityDto[];
155
+ links?: PaginationLinksDto;
156
+ meta: PaginationMetaDto;
157
+ }
158
+ export interface CreateAddressDto {
159
+ addressLine1: string;
160
+ addressLine2?: string;
161
+ city: string;
162
+ country: string;
163
+ location?: string;
164
+ name: string;
165
+ notes?: string;
166
+ postalCode: string;
167
+ state: string;
168
+ }
169
+ export interface CreateBatchCaseOperationsDto {
170
+ /** @minItems 1 */
171
+ operations: CreateCaseOperationDto[];
172
+ }
173
+ export interface CreateCaseDto {
174
+ /** @format date-time */
175
+ billingEndDate?: string | null;
176
+ /** @format date-time */
177
+ billingStartDate?: string | null;
178
+ /** @format uuid */
179
+ customerId: string;
180
+ description?: string | null;
181
+ /** @min 0 */
182
+ maxItems: number;
183
+ name: string;
184
+ }
185
+ export interface CreateCaseOperationDto {
186
+ /** @minItems 0 */
187
+ extras?: CreateCaseOperationExtraDto[];
188
+ /** @format uuid */
189
+ requestId?: string | null;
190
+ /** @example "processed" */
191
+ status?: CreateOnlyCaseOperationStatusEnum;
192
+ /** @example "deposit" */
193
+ type: CaseOperationTypesEnum;
194
+ /** @minItems 1 */
195
+ wines: CreateWineInventoryItemDto[];
196
+ }
197
+ export interface CreateCaseOperationExtraDto {
198
+ /** @min 1 */
199
+ amount?: number | null;
200
+ description?: string | null;
201
+ invoiceTitle?: string;
202
+ /** @min 0 */
203
+ pricePerItem?: number | null;
204
+ /** @format uuid */
205
+ templateId?: string;
206
+ }
25
207
  export interface CreateCaseOperationExtraTemplateDto {
26
208
  description?: string | null;
27
209
  invoiceTitle: string;
@@ -35,36 +217,60 @@ export interface CreateNameOnlyEntityDto {
35
217
  isGlobal?: boolean;
36
218
  name: string;
37
219
  }
38
- export interface CreateTenantUserDto {
39
- /** @example "user@example.com" */
220
+ export declare enum CreateOnlyCaseOperationStatusEnum {
221
+ OnHold = "on_hold",
222
+ Confirmed = "confirmed",
223
+ Processed = "processed"
224
+ }
225
+ export interface CreateUserDto {
40
226
  email: string;
227
+ firstName: string;
228
+ lastName: string;
229
+ legacyUserId?: string | null;
230
+ notes?: string | null;
41
231
  /**
42
- * Password should include lowercase, uppercase and digits and have between 8 and 32 digits. (This will be only used if the user has any account created in other tenants)
232
+ * Password should include lowercase, uppercase and digits and have between 8 and 32 digits.
43
233
  * @example "P@ssw0rd"
44
234
  */
45
235
  password?: string;
236
+ /** @example [] */
237
+ phones?: PhoneDto[];
46
238
  /** @example ["operator"] */
47
- roles: TenantRoleEnum[];
239
+ roles?: TenantRoleEnum[] | null;
240
+ status?: TenantUserStatusEnum;
48
241
  }
49
242
  export interface CreateWineDto {
50
243
  /** @format uuid */
51
- brandId: string;
244
+ brandId?: string | null;
245
+ /** @format uuid */
246
+ countryId?: string | null;
52
247
  description?: string;
53
248
  /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
54
249
  isGlobal?: boolean;
55
- location: WineLocationDto;
56
250
  /** @format uuid */
57
- producerId: string;
251
+ producerId?: string | null;
252
+ /** @format uuid */
253
+ regionId?: string | null;
58
254
  /** @format uuid */
59
- styleId: string;
255
+ styleId?: string | null;
60
256
  /** @format uuid */
61
- typeId: string;
257
+ typeId?: string | null;
62
258
  /** @format uuid */
63
- varietalId: string;
259
+ varietalId?: string | null;
64
260
  /** @format uuid */
65
- villageId: string;
261
+ villageId?: string | null;
66
262
  /** @format uuid */
67
- vineyardId: string;
263
+ vineyardId?: string | null;
264
+ }
265
+ export interface CreateWineInventoryItemDto {
266
+ /** @min 1 */
267
+ amount: number;
268
+ /** @format uuid */
269
+ bottleFormatId: string;
270
+ /** @format uuid */
271
+ bottleVintageId: string;
272
+ /** @format uuid */
273
+ wineId: string;
68
274
  }
69
275
  export interface HttpExceptionDto {
70
276
  /** @example null */
@@ -105,8 +311,20 @@ export interface PaginationMetaDto {
105
311
  /** @example 1 */
106
312
  totalPages?: number;
107
313
  }
314
+ export interface PhoneDto {
315
+ /** @example "+5599999999999" */
316
+ number: string;
317
+ /** @example "mobile" */
318
+ type: PhoneTypeEnum;
319
+ }
320
+ export declare enum PhoneTypeEnum {
321
+ Fixed = "fixed",
322
+ Mobile = "mobile"
323
+ }
108
324
  export interface RequestPasswordResetDto {
109
325
  email: string;
326
+ /** @format uuid */
327
+ tenantId: string;
110
328
  }
111
329
  export interface ResetPasswordDto {
112
330
  /** @example "user@example.com" */
@@ -118,6 +336,8 @@ export interface ResetPasswordDto {
118
336
  password: string;
119
337
  /** @example "P@ssw0rd" */
120
338
  passwordConfirmation: string;
339
+ /** @format uuid */
340
+ tenantId: string;
121
341
  token: string;
122
342
  }
123
343
  export interface SigninDto {
@@ -125,6 +345,8 @@ export interface SigninDto {
125
345
  email: string;
126
346
  /** @example "P@ssw0rd" */
127
347
  password: string;
348
+ /** @format uuid */
349
+ tenantId: string;
128
350
  }
129
351
  export interface SigninResponseDto {
130
352
  token: string;
@@ -136,25 +358,22 @@ export declare enum TenantRoleEnum {
136
358
  Owner = "owner",
137
359
  Customer = "customer"
138
360
  }
139
- export interface TenantUserEntityDto {
140
- roles: TenantRoleEnum[];
141
- /** @example "enabled" */
142
- status: TenantUserStatusEnum;
143
- /** @format uuid */
144
- tenantId: string;
145
- user: UserEntityDto;
146
- /** @format uuid */
147
- userId: string;
148
- }
149
- export interface TenantUserEntityPaginatedDto {
150
- items: TenantUserEntityDto[];
151
- links?: PaginationLinksDto;
152
- meta: PaginationMetaDto;
153
- }
154
361
  export declare enum TenantUserStatusEnum {
155
362
  Enabled = "enabled",
156
363
  Blocked = "blocked"
157
364
  }
365
+ export interface UpdateCaseDto {
366
+ /** @format date-time */
367
+ billingEndDate?: string | null;
368
+ /** @format date-time */
369
+ billingStartDate?: string | null;
370
+ /** @format uuid */
371
+ customerId: string;
372
+ description?: string | null;
373
+ /** @min 0 */
374
+ maxItems: number;
375
+ name: string;
376
+ }
158
377
  export interface UpdateCaseOperationExtraTemplateDto {
159
378
  description?: string | null;
160
379
  invoiceTitle: string;
@@ -168,9 +387,31 @@ export interface UpdateNameOnlyEntityDto {
168
387
  isGlobal?: boolean;
169
388
  name: string;
170
389
  }
390
+ export interface UpdateUserDto {
391
+ firstName?: string | null;
392
+ lastName?: string | null;
393
+ /** This field is accepted only if called by some tenant admin/operator */
394
+ legacyUserId?: string | null;
395
+ /** This field is accepted only if called by some tenant admin/operator */
396
+ notes?: string | null;
397
+ /**
398
+ * This field is accepted only if called by some tenant admin/operator. Password should include lowercase, uppercase and digits and have between 8 and 32 digits.
399
+ * @example "P@ssw0rd"
400
+ */
401
+ password?: string;
402
+ /** @example [] */
403
+ phones?: PhoneDto[];
404
+ /**
405
+ * This field is accepted only if called by some tenant admin/operator
406
+ * @example ["operator"]
407
+ */
408
+ roles?: TenantRoleEnum[] | null;
409
+ /** This field is accepted only if called by some tenant admin/operator */
410
+ status?: TenantUserStatusEnum;
411
+ }
171
412
  export interface UpdateUserPasswordDto {
172
413
  /** @example "P@ssw0rd" */
173
- currentPassword: string;
414
+ currentPassword?: string | null;
174
415
  /**
175
416
  * Password should include lowercase, uppercase and digits and have between 8 and 32 digits
176
417
  * @example "P@ssw0rd"
@@ -179,28 +420,28 @@ export interface UpdateUserPasswordDto {
179
420
  /** @example "P@ssw0rd" */
180
421
  passwordConfirmation: string;
181
422
  }
182
- export interface UpdateUserProfileDto {
183
- name: string;
184
- }
185
423
  export interface UpdateWineDto {
186
424
  /** @format uuid */
187
- brandId: string;
425
+ brandId?: string | null;
426
+ /** @format uuid */
427
+ countryId?: string | null;
188
428
  description?: string;
189
429
  /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
190
430
  isGlobal?: boolean;
191
- location: WineLocationDto;
192
431
  /** @format uuid */
193
- producerId: string;
432
+ producerId?: string | null;
194
433
  /** @format uuid */
195
- styleId: string;
434
+ regionId?: string | null;
196
435
  /** @format uuid */
197
- typeId: string;
436
+ styleId?: string | null;
198
437
  /** @format uuid */
199
- varietalId: string;
438
+ typeId?: string | null;
200
439
  /** @format uuid */
201
- villageId: string;
440
+ varietalId?: string | null;
202
441
  /** @format uuid */
203
- vineyardId: string;
442
+ villageId?: string | null;
443
+ /** @format uuid */
444
+ vineyardId?: string | null;
204
445
  }
205
446
  export interface UserEntityDto {
206
447
  /** @format date-time */
@@ -208,12 +449,28 @@ export interface UserEntityDto {
208
449
  /** @format date-time */
209
450
  deletedAt?: string | null;
210
451
  email: string;
452
+ firstName?: string | null;
211
453
  /** @format uuid */
212
454
  id: string;
455
+ lastName?: string | null;
456
+ legacyUserId?: string | null;
213
457
  name?: string | null;
458
+ notes?: string | null;
459
+ /** @example [] */
460
+ phones: PhoneDto[];
461
+ roles: TenantRoleEnum[];
462
+ /** @example "enabled" */
463
+ status: TenantUserStatusEnum;
464
+ /** @format uuid */
465
+ tenantId: string;
214
466
  /** @format date-time */
215
467
  updatedAt: string;
216
468
  }
469
+ export interface UserEntityPaginatedDto {
470
+ items: UserEntityDto[];
471
+ links?: PaginationLinksDto;
472
+ meta: PaginationMetaDto;
473
+ }
217
474
  export interface WineBottleFormatEntityDto {
218
475
  /** @format date-time */
219
476
  createdAt: string;
@@ -268,50 +525,70 @@ export interface WineBrandEntityPaginatedDto {
268
525
  links?: PaginationLinksDto;
269
526
  meta: PaginationMetaDto;
270
527
  }
528
+ export interface WineCountryEntityDto {
529
+ /** @format date-time */
530
+ createdAt: string;
531
+ /** @format date-time */
532
+ deletedAt?: string | null;
533
+ /** @format uuid */
534
+ id: string;
535
+ name: string;
536
+ /** @format uuid */
537
+ tenantId?: string | null;
538
+ /** @format date-time */
539
+ updatedAt: string;
540
+ }
541
+ export interface WineCountryEntityPaginatedDto {
542
+ items: WineCountryEntityDto[];
543
+ links?: PaginationLinksDto;
544
+ meta: PaginationMetaDto;
545
+ }
271
546
  export interface WineEntityDto {
272
- brand: WineBrandEntityDto;
547
+ brand?: WineBrandEntityDto;
273
548
  /** @format uuid */
274
- brandId: string;
549
+ brandId?: string;
550
+ country?: WineCountryEntityDto;
551
+ /** @format uuid */
552
+ countryId?: string;
275
553
  /** @format date-time */
276
554
  createdAt: string;
277
555
  /** @format date-time */
278
556
  deletedAt?: string | null;
279
557
  description?: string;
558
+ fullIdentifier: string;
280
559
  /** @format uuid */
281
560
  id: string;
282
- location: WineLocationDto;
283
- producer: WineProducerEntityDto;
561
+ producer?: WineProducerEntityDto;
562
+ /** @format uuid */
563
+ producerId?: string;
564
+ region?: WineRegionEntityDto;
284
565
  /** @format uuid */
285
- producerId: string;
286
- style: WineStyleEntityDto;
566
+ regionId?: string;
567
+ style?: WineStyleEntityDto;
287
568
  /** @format uuid */
288
- styleId: string;
569
+ styleId?: string;
289
570
  /** @format uuid */
290
571
  tenantId?: string | null;
291
- type: WineTypeEntityDto;
572
+ type?: WineTypeEntityDto;
292
573
  /** @format uuid */
293
- typeId: string;
574
+ typeId?: string;
294
575
  /** @format date-time */
295
576
  updatedAt: string;
296
- varietal: WineVarietalEntityDto;
577
+ varietal?: WineVarietalEntityDto;
297
578
  /** @format uuid */
298
- varietalId: string;
299
- village: WineVillageEntityDto;
579
+ varietalId?: string;
580
+ village?: WineVillageEntityDto;
300
581
  /** @format uuid */
301
- villageId: string;
302
- vineyard: WineVineyardEntityDto;
582
+ villageId?: string;
583
+ vineyard?: WineVineyardEntityDto;
303
584
  /** @format uuid */
304
- vineyardId: string;
585
+ vineyardId?: string;
305
586
  }
306
587
  export interface WineEntityPaginatedDto {
307
588
  items: WineEntityDto[];
308
589
  links?: PaginationLinksDto;
309
590
  meta: PaginationMetaDto;
310
591
  }
311
- export interface WineLocationDto {
312
- country: string;
313
- region: string;
314
- }
315
592
  export interface WineProducerEntityDto {
316
593
  /** @format date-time */
317
594
  createdAt: string;
@@ -330,6 +607,24 @@ export interface WineProducerEntityPaginatedDto {
330
607
  links?: PaginationLinksDto;
331
608
  meta: PaginationMetaDto;
332
609
  }
610
+ export interface WineRegionEntityDto {
611
+ /** @format date-time */
612
+ createdAt: string;
613
+ /** @format date-time */
614
+ deletedAt?: string | null;
615
+ /** @format uuid */
616
+ id: string;
617
+ name: string;
618
+ /** @format uuid */
619
+ tenantId?: string | null;
620
+ /** @format date-time */
621
+ updatedAt: string;
622
+ }
623
+ export interface WineRegionEntityPaginatedDto {
624
+ items: WineRegionEntityDto[];
625
+ links?: PaginationLinksDto;
626
+ meta: PaginationMetaDto;
627
+ }
333
628
  export interface WineStyleEntityDto {
334
629
  /** @format date-time */
335
630
  createdAt: string;
@@ -482,62 +777,285 @@ export declare namespace Auth {
482
777
  type ResponseBody = SigninResponseDto;
483
778
  }
484
779
  }
485
- export declare namespace Users {
780
+ export declare namespace Tenants {
781
+ /**
782
+ * No description
783
+ * @tags Tenant Users
784
+ * @name CreateTenantUser
785
+ * @request POST:/tenants/{tenantId}/users
786
+ * @secure
787
+ * @response `200` `UserEntityDto`
788
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
789
+ */
790
+ namespace CreateTenantUser {
791
+ type RequestParams = {
792
+ tenantId: string;
793
+ };
794
+ type RequestQuery = {};
795
+ type RequestBody = CreateUserDto;
796
+ type RequestHeaders = {};
797
+ type ResponseBody = UserEntityDto;
798
+ }
799
+ /**
800
+ * No description
801
+ * @tags Tenant Users
802
+ * @name CreateUserAddress
803
+ * @request POST:/tenants/{tenantId}/users/userId/addresses
804
+ * @secure
805
+ * @response `201` `AddressEntityDto`
806
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
807
+ */
808
+ namespace CreateUserAddress {
809
+ type RequestParams = {
810
+ tenantId: string;
811
+ userId: string;
812
+ };
813
+ type RequestQuery = {};
814
+ type RequestBody = CreateAddressDto;
815
+ type RequestHeaders = {};
816
+ type ResponseBody = AddressEntityDto;
817
+ }
818
+ /**
819
+ * No description
820
+ * @tags Tenant Users
821
+ * @name DeleteTenantUser
822
+ * @request DELETE:/tenants/{tenantId}/users/{userId}
823
+ * @secure
824
+ * @response `204` `void`
825
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
826
+ */
827
+ namespace DeleteTenantUser {
828
+ type RequestParams = {
829
+ tenantId: string;
830
+ userId: string;
831
+ };
832
+ type RequestQuery = {};
833
+ type RequestBody = never;
834
+ type RequestHeaders = {};
835
+ type ResponseBody = void;
836
+ }
837
+ /**
838
+ * No description
839
+ * @tags Tenant Users
840
+ * @name DeleteUserAddress
841
+ * @request DELETE:/tenants/{tenantId}/users/userId/addresses/{addressId}
842
+ * @secure
843
+ * @response `204` `void`
844
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
845
+ */
846
+ namespace DeleteUserAddress {
847
+ type RequestParams = {
848
+ addressId: string;
849
+ tenantId: string;
850
+ userId: string;
851
+ };
852
+ type RequestQuery = {};
853
+ type RequestBody = never;
854
+ type RequestHeaders = {};
855
+ type ResponseBody = void;
856
+ }
857
+ /**
858
+ * No description
859
+ * @tags Tenant Users
860
+ * @name DisableTenantUser
861
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/disable
862
+ * @secure
863
+ * @response `204` `void`
864
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
865
+ */
866
+ namespace DisableTenantUser {
867
+ type RequestParams = {
868
+ tenantId: string;
869
+ userId: string;
870
+ };
871
+ type RequestQuery = {};
872
+ type RequestBody = never;
873
+ type RequestHeaders = {};
874
+ type ResponseBody = void;
875
+ }
876
+ /**
877
+ * No description
878
+ * @tags Tenant Users
879
+ * @name EnableTenantUser
880
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/enable
881
+ * @secure
882
+ * @response `204` `void`
883
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
884
+ */
885
+ namespace EnableTenantUser {
886
+ type RequestParams = {
887
+ tenantId: string;
888
+ userId: string;
889
+ };
890
+ type RequestQuery = {};
891
+ type RequestBody = never;
892
+ type RequestHeaders = {};
893
+ type ResponseBody = void;
894
+ }
486
895
  /**
487
896
  * No description
488
- * @tags Users
489
- * @name UpdateUserPassword
490
- * @request PATCH:/users/{userId}/password
897
+ * @tags Tenant Users
898
+ * @name GetTenantUser
899
+ * @request GET:/tenants/{tenantId}/users/{userId}
491
900
  * @secure
492
901
  * @response `200` `UserEntityDto`
493
902
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
494
903
  */
495
- namespace UpdateUserPassword {
904
+ namespace GetTenantUser {
496
905
  type RequestParams = {
906
+ tenantId: string;
497
907
  userId: string;
498
908
  };
499
909
  type RequestQuery = {};
500
- type RequestBody = UpdateUserPasswordDto;
910
+ type RequestBody = never;
501
911
  type RequestHeaders = {};
502
912
  type ResponseBody = UserEntityDto;
503
913
  }
504
914
  /**
505
915
  * No description
506
- * @tags Users
507
- * @name UpdateUserProfile
508
- * @request PATCH:/users/{userId}
916
+ * @tags Tenant Users
917
+ * @name ListTenantUsers
918
+ * @request GET:/tenants/{tenantId}/users
919
+ * @secure
920
+ * @response `200` `UserEntityPaginatedDto`
921
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
922
+ */
923
+ namespace ListTenantUsers {
924
+ type RequestParams = {
925
+ tenantId: string;
926
+ };
927
+ type RequestQuery = {
928
+ createdAt?: string;
929
+ /**
930
+ * @default 10
931
+ * @example 10
932
+ */
933
+ limit?: number;
934
+ orderBy?: OrderByEnum;
935
+ /**
936
+ * @default 1
937
+ * @example 1
938
+ */
939
+ page?: number;
940
+ roles?: TenantRoleEnum[];
941
+ search?: string;
942
+ sortBy?: string[];
943
+ status?: TenantUserStatusEnum[];
944
+ };
945
+ type RequestBody = never;
946
+ type RequestHeaders = {};
947
+ type ResponseBody = UserEntityPaginatedDto;
948
+ }
949
+ /**
950
+ * No description
951
+ * @tags Tenant Users
952
+ * @name ListUserAddresses
953
+ * @request GET:/tenants/{tenantId}/users/userId/addresses
954
+ * @secure
955
+ * @response `200` `AddressEntityPaginatedDto`
956
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
957
+ */
958
+ namespace ListUserAddresses {
959
+ type RequestParams = {
960
+ tenantId: string;
961
+ userId: string;
962
+ };
963
+ type RequestQuery = {
964
+ createdAt?: string;
965
+ /**
966
+ * @default 10
967
+ * @example 10
968
+ */
969
+ limit?: number;
970
+ orderBy?: OrderByEnum;
971
+ /**
972
+ * @default 1
973
+ * @example 1
974
+ */
975
+ page?: number;
976
+ search?: string;
977
+ sortBy?: string[];
978
+ };
979
+ type RequestBody = never;
980
+ type RequestHeaders = {};
981
+ type ResponseBody = AddressEntityPaginatedDto;
982
+ }
983
+ /**
984
+ * No description
985
+ * @tags Tenant Users
986
+ * @name UpdateTenantUser
987
+ * @request PATCH:/tenants/{tenantId}/users/{userId}
509
988
  * @secure
510
989
  * @response `200` `UserEntityDto`
511
990
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
512
991
  */
513
- namespace UpdateUserProfile {
992
+ namespace UpdateTenantUser {
993
+ type RequestParams = {
994
+ tenantId: string;
995
+ userId: string;
996
+ };
997
+ type RequestQuery = {};
998
+ type RequestBody = UpdateUserDto;
999
+ type RequestHeaders = {};
1000
+ type ResponseBody = UserEntityDto;
1001
+ }
1002
+ /**
1003
+ * No description
1004
+ * @tags Tenant Users
1005
+ * @name UpdateTenantUserPassword
1006
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/password
1007
+ * @secure
1008
+ * @response `200` `UserEntityDto`
1009
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1010
+ */
1011
+ namespace UpdateTenantUserPassword {
1012
+ type RequestParams = {
1013
+ tenantId: string;
1014
+ userId: string;
1015
+ };
1016
+ type RequestQuery = {};
1017
+ type RequestBody = UpdateUserPasswordDto;
1018
+ type RequestHeaders = {};
1019
+ type ResponseBody = UserEntityDto;
1020
+ }
1021
+ }
1022
+ export declare namespace Admin {
1023
+ /**
1024
+ * No description
1025
+ * @tags Admin Tenant Cases
1026
+ * @name AddTenantCaseBatchOperations
1027
+ * @request POST:/admin/tenants/{tenantId}/cases/{caseId}/operations/batch
1028
+ * @secure
1029
+ * @response `200` `CaseBatchOperationResponseDto`
1030
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1031
+ */
1032
+ namespace AddTenantCaseBatchOperations {
514
1033
  type RequestParams = {
515
- userId: string;
1034
+ caseId: string;
1035
+ tenantId: string;
516
1036
  };
517
1037
  type RequestQuery = {};
518
- type RequestBody = UpdateUserProfileDto;
1038
+ type RequestBody = CreateBatchCaseOperationsDto;
519
1039
  type RequestHeaders = {};
520
- type ResponseBody = UserEntityDto;
1040
+ type ResponseBody = CaseBatchOperationResponseDto;
521
1041
  }
522
- }
523
- export declare namespace Admin {
524
1042
  /**
525
- * @description Gives some user access to the tenant. If there's no user account attached to this users, it creates a new one
526
- * @tags Admin Tenant Users
527
- * @name CreateOrUpdateTenantUserAndPermissionsByUserEmail
528
- * @request POST:/admin/tenants/{tenantId}/users
1043
+ * No description
1044
+ * @tags Admin Tenant Cases
1045
+ * @name CreateTenantCase
1046
+ * @request POST:/admin/tenants/{tenantId}/cases
529
1047
  * @secure
530
- * @response `200` `TenantUserEntityDto`
1048
+ * @response `201` `CaseEntityDto`
531
1049
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
532
1050
  */
533
- namespace CreateOrUpdateTenantUserAndPermissionsByUserEmail {
1051
+ namespace CreateTenantCase {
534
1052
  type RequestParams = {
535
1053
  tenantId: string;
536
1054
  };
537
1055
  type RequestQuery = {};
538
- type RequestBody = CreateTenantUserDto;
1056
+ type RequestBody = CreateCaseDto;
539
1057
  type RequestHeaders = {};
540
- type ResponseBody = TenantUserEntityDto;
1058
+ type ResponseBody = CaseEntityDto;
541
1059
  }
542
1060
  /**
543
1061
  * No description
@@ -629,6 +1147,24 @@ export declare namespace Admin {
629
1147
  type RequestHeaders = {};
630
1148
  type ResponseBody = WineBrandEntityDto;
631
1149
  }
1150
+ /**
1151
+ * No description
1152
+ * @tags Admin Tenant Wine Countries
1153
+ * @name CreateTenantWineCountry
1154
+ * @request POST:/admin/tenants/{tenantId}/wine-countries
1155
+ * @secure
1156
+ * @response `201` `WineCountryEntityDto`
1157
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1158
+ */
1159
+ namespace CreateTenantWineCountry {
1160
+ type RequestParams = {
1161
+ tenantId: string;
1162
+ };
1163
+ type RequestQuery = {};
1164
+ type RequestBody = CreateNameOnlyEntityDto;
1165
+ type RequestHeaders = {};
1166
+ type ResponseBody = WineCountryEntityDto;
1167
+ }
632
1168
  /**
633
1169
  * No description
634
1170
  * @tags Admin Tenant Wine Producers
@@ -647,6 +1183,24 @@ export declare namespace Admin {
647
1183
  type RequestHeaders = {};
648
1184
  type ResponseBody = WineProducerEntityDto;
649
1185
  }
1186
+ /**
1187
+ * No description
1188
+ * @tags Admin Tenant Wine Regions
1189
+ * @name CreateTenantWineRegion
1190
+ * @request POST:/admin/tenants/{tenantId}/wine-regions
1191
+ * @secure
1192
+ * @response `201` `WineRegionEntityDto`
1193
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1194
+ */
1195
+ namespace CreateTenantWineRegion {
1196
+ type RequestParams = {
1197
+ tenantId: string;
1198
+ };
1199
+ type RequestQuery = {};
1200
+ type RequestBody = CreateNameOnlyEntityDto;
1201
+ type RequestHeaders = {};
1202
+ type ResponseBody = WineRegionEntityDto;
1203
+ }
650
1204
  /**
651
1205
  * No description
652
1206
  * @tags Admin Tenant Wine Styles
@@ -737,6 +1291,25 @@ export declare namespace Admin {
737
1291
  type RequestHeaders = {};
738
1292
  type ResponseBody = WineVineyardEntityDto;
739
1293
  }
1294
+ /**
1295
+ * No description
1296
+ * @tags Admin Tenant Cases
1297
+ * @name DeleteTenantCase
1298
+ * @request DELETE:/admin/tenants/{tenantId}/cases/{caseId}
1299
+ * @secure
1300
+ * @response `204` `void`
1301
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1302
+ */
1303
+ namespace DeleteTenantCase {
1304
+ type RequestParams = {
1305
+ caseId: string;
1306
+ tenantId: string;
1307
+ };
1308
+ type RequestQuery = {};
1309
+ type RequestBody = never;
1310
+ type RequestHeaders = {};
1311
+ type ResponseBody = void;
1312
+ }
740
1313
  /**
741
1314
  * No description
742
1315
  * @tags Admin Tenant Operation Extras Templates
@@ -832,6 +1405,25 @@ export declare namespace Admin {
832
1405
  type RequestHeaders = {};
833
1406
  type ResponseBody = void;
834
1407
  }
1408
+ /**
1409
+ * No description
1410
+ * @tags Admin Tenant Wine Countries
1411
+ * @name DeleteTenantWineCountry
1412
+ * @request DELETE:/admin/tenants/{tenantId}/wine-countries/{countryId}
1413
+ * @secure
1414
+ * @response `204` `void`
1415
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1416
+ */
1417
+ namespace DeleteTenantWineCountry {
1418
+ type RequestParams = {
1419
+ countryId: string;
1420
+ tenantId: string;
1421
+ };
1422
+ type RequestQuery = {};
1423
+ type RequestBody = never;
1424
+ type RequestHeaders = {};
1425
+ type ResponseBody = void;
1426
+ }
835
1427
  /**
836
1428
  * No description
837
1429
  * @tags Admin Tenant Wine Producers
@@ -851,6 +1443,25 @@ export declare namespace Admin {
851
1443
  type RequestHeaders = {};
852
1444
  type ResponseBody = void;
853
1445
  }
1446
+ /**
1447
+ * No description
1448
+ * @tags Admin Tenant Wine Regions
1449
+ * @name DeleteTenantWineRegion
1450
+ * @request DELETE:/admin/tenants/{tenantId}/wine-regions/{regionId}
1451
+ * @secure
1452
+ * @response `204` `void`
1453
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1454
+ */
1455
+ namespace DeleteTenantWineRegion {
1456
+ type RequestParams = {
1457
+ regionId: string;
1458
+ tenantId: string;
1459
+ };
1460
+ type RequestQuery = {};
1461
+ type RequestBody = never;
1462
+ type RequestHeaders = {};
1463
+ type ResponseBody = void;
1464
+ }
854
1465
  /**
855
1466
  * No description
856
1467
  * @tags Admin Tenant Wine Styles
@@ -948,41 +1559,22 @@ export declare namespace Admin {
948
1559
  }
949
1560
  /**
950
1561
  * No description
951
- * @tags Admin Tenant Users
952
- * @name DisableTenantUser
953
- * @request PATCH:/admin/tenants/{tenantId}/users/{userId}/disable
954
- * @secure
955
- * @response `204` `void`
956
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
957
- */
958
- namespace DisableTenantUser {
959
- type RequestParams = {
960
- tenantId: string;
961
- userId: string;
962
- };
963
- type RequestQuery = {};
964
- type RequestBody = never;
965
- type RequestHeaders = {};
966
- type ResponseBody = void;
967
- }
968
- /**
969
- * No description
970
- * @tags Admin Tenant Users
971
- * @name EnableTenantUser
972
- * @request PATCH:/admin/tenants/{tenantId}/users/{userId}/enable
1562
+ * @tags Admin Tenant Cases
1563
+ * @name GetTenantCaseById
1564
+ * @request GET:/admin/tenants/{tenantId}/cases/{caseId}
973
1565
  * @secure
974
- * @response `204` `void`
975
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1566
+ * @response `200` `CaseEntityDto`
1567
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
976
1568
  */
977
- namespace EnableTenantUser {
1569
+ namespace GetTenantCaseById {
978
1570
  type RequestParams = {
1571
+ caseId: string;
979
1572
  tenantId: string;
980
- userId: string;
981
1573
  };
982
1574
  type RequestQuery = {};
983
1575
  type RequestBody = never;
984
1576
  type RequestHeaders = {};
985
- type ResponseBody = void;
1577
+ type ResponseBody = CaseEntityDto;
986
1578
  }
987
1579
  /**
988
1580
  * No description
@@ -1079,6 +1671,25 @@ export declare namespace Admin {
1079
1671
  type RequestHeaders = {};
1080
1672
  type ResponseBody = WineEntityDto;
1081
1673
  }
1674
+ /**
1675
+ * No description
1676
+ * @tags Admin Tenant Wine Countries
1677
+ * @name GetTenantWineCountryById
1678
+ * @request GET:/admin/tenants/{tenantId}/wine-countries/{countryId}
1679
+ * @secure
1680
+ * @response `200` `WineCountryEntityDto`
1681
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1682
+ */
1683
+ namespace GetTenantWineCountryById {
1684
+ type RequestParams = {
1685
+ countryId: string;
1686
+ tenantId: string;
1687
+ };
1688
+ type RequestQuery = {};
1689
+ type RequestBody = never;
1690
+ type RequestHeaders = {};
1691
+ type ResponseBody = WineCountryEntityDto;
1692
+ }
1082
1693
  /**
1083
1694
  * No description
1084
1695
  * @tags Admin Tenant Wine Producers
@@ -1098,6 +1709,25 @@ export declare namespace Admin {
1098
1709
  type RequestHeaders = {};
1099
1710
  type ResponseBody = WineProducerEntityDto;
1100
1711
  }
1712
+ /**
1713
+ * No description
1714
+ * @tags Admin Tenant Wine Regions
1715
+ * @name GetTenantWineRegionById
1716
+ * @request GET:/admin/tenants/{tenantId}/wine-regions/{regionId}
1717
+ * @secure
1718
+ * @response `200` `WineRegionEntityDto`
1719
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1720
+ */
1721
+ namespace GetTenantWineRegionById {
1722
+ type RequestParams = {
1723
+ regionId: string;
1724
+ tenantId: string;
1725
+ };
1726
+ type RequestQuery = {};
1727
+ type RequestBody = never;
1728
+ type RequestHeaders = {};
1729
+ type ResponseBody = WineRegionEntityDto;
1730
+ }
1101
1731
  /**
1102
1732
  * No description
1103
1733
  * @tags Admin Tenant Wine Styles
@@ -1195,18 +1825,22 @@ export declare namespace Admin {
1195
1825
  }
1196
1826
  /**
1197
1827
  * No description
1198
- * @tags Admin Tenant Operation Extras Templates
1199
- * @name ListTenantOperationExtrasTemplates
1200
- * @request GET:/admin/tenants/{tenantId}/operation-extras-templates
1828
+ * @tags Admin Tenant Cases
1829
+ * @name ListTenantCaseInventory
1830
+ * @request GET:/admin/tenants/{tenantId}/cases/{caseId}/inventory
1201
1831
  * @secure
1202
- * @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
1203
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1832
+ * @response `200` `CaseWineInventoryItemEntityPaginatedDto`
1833
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
1204
1834
  */
1205
- namespace ListTenantOperationExtrasTemplates {
1835
+ namespace ListTenantCaseInventory {
1206
1836
  type RequestParams = {
1837
+ caseId: string;
1207
1838
  tenantId: string;
1208
1839
  };
1209
1840
  type RequestQuery = {
1841
+ amount?: string;
1842
+ bottleFormatIds?: string[];
1843
+ bottleVintageIds?: string[];
1210
1844
  createdAt?: string;
1211
1845
  /**
1212
1846
  * @default 10
@@ -1221,25 +1855,64 @@ export declare namespace Admin {
1221
1855
  page?: number;
1222
1856
  search?: string;
1223
1857
  sortBy?: string[];
1858
+ wineIds?: string[];
1224
1859
  };
1225
1860
  type RequestBody = never;
1226
1861
  type RequestHeaders = {};
1227
- type ResponseBody = CaseOperationExtraTemplateEntityPaginatedDto;
1862
+ type ResponseBody = CaseWineInventoryItemEntityPaginatedDto;
1228
1863
  }
1229
1864
  /**
1230
1865
  * No description
1231
- * @tags Admin Tenant Users
1232
- * @name ListTenantUsers
1233
- * @request GET:/admin/tenants/{tenantId}/users
1866
+ * @tags Admin Tenant Cases
1867
+ * @name ListTenantCases
1868
+ * @request GET:/admin/tenants/{tenantId}/cases
1234
1869
  * @secure
1235
- * @response `200` `TenantUserEntityPaginatedDto`
1236
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1870
+ * @response `200` `CaseEntityPaginatedDto`
1871
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
1237
1872
  */
1238
- namespace ListTenantUsers {
1873
+ namespace ListTenantCases {
1239
1874
  type RequestParams = {
1240
1875
  tenantId: string;
1241
1876
  };
1242
1877
  type RequestQuery = {
1878
+ billingEndDate?: string;
1879
+ billingStartDate?: string;
1880
+ createdAt?: string;
1881
+ customerIds?: string[];
1882
+ /**
1883
+ * @default 10
1884
+ * @example 10
1885
+ */
1886
+ limit?: number;
1887
+ minRemainingItems?: number;
1888
+ orderBy?: OrderByEnum;
1889
+ /**
1890
+ * @default 1
1891
+ * @example 1
1892
+ */
1893
+ page?: number;
1894
+ search?: string;
1895
+ sortBy?: string[];
1896
+ };
1897
+ type RequestBody = never;
1898
+ type RequestHeaders = {};
1899
+ type ResponseBody = CaseEntityPaginatedDto;
1900
+ }
1901
+ /**
1902
+ * No description
1903
+ * @tags Admin Tenant Operation Extras Templates
1904
+ * @name ListTenantOperationExtrasTemplates
1905
+ * @request GET:/admin/tenants/{tenantId}/operation-extras-templates
1906
+ * @secure
1907
+ * @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
1908
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1909
+ */
1910
+ namespace ListTenantOperationExtrasTemplates {
1911
+ type RequestParams = {
1912
+ tenantId: string;
1913
+ };
1914
+ type RequestQuery = {
1915
+ createdAt?: string;
1243
1916
  /**
1244
1917
  * @default 10
1245
1918
  * @example 10
@@ -1251,14 +1924,12 @@ export declare namespace Admin {
1251
1924
  * @example 1
1252
1925
  */
1253
1926
  page?: number;
1254
- roles?: TenantRoleEnum[];
1255
1927
  search?: string;
1256
1928
  sortBy?: string[];
1257
- status?: TenantUserStatusEnum[];
1258
1929
  };
1259
1930
  type RequestBody = never;
1260
1931
  type RequestHeaders = {};
1261
- type ResponseBody = TenantUserEntityPaginatedDto;
1932
+ type ResponseBody = CaseOperationExtraTemplateEntityPaginatedDto;
1262
1933
  }
1263
1934
  /**
1264
1935
  * No description
@@ -1359,6 +2030,39 @@ export declare namespace Admin {
1359
2030
  type RequestHeaders = {};
1360
2031
  type ResponseBody = WineBrandEntityPaginatedDto;
1361
2032
  }
2033
+ /**
2034
+ * No description
2035
+ * @tags Admin Tenant Wine Countries
2036
+ * @name ListTenantWineCountries
2037
+ * @request GET:/admin/tenants/{tenantId}/wine-countries
2038
+ * @secure
2039
+ * @response `200` `WineCountryEntityPaginatedDto`
2040
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2041
+ */
2042
+ namespace ListTenantWineCountries {
2043
+ type RequestParams = {
2044
+ tenantId: string;
2045
+ };
2046
+ type RequestQuery = {
2047
+ createdAt?: string;
2048
+ /**
2049
+ * @default 10
2050
+ * @example 10
2051
+ */
2052
+ limit?: number;
2053
+ orderBy?: OrderByEnum;
2054
+ /**
2055
+ * @default 1
2056
+ * @example 1
2057
+ */
2058
+ page?: number;
2059
+ search?: string;
2060
+ sortBy?: string[];
2061
+ };
2062
+ type RequestBody = never;
2063
+ type RequestHeaders = {};
2064
+ type ResponseBody = WineCountryEntityPaginatedDto;
2065
+ }
1362
2066
  /**
1363
2067
  * No description
1364
2068
  * @tags Admin Tenant Wine Producers
@@ -1392,6 +2096,39 @@ export declare namespace Admin {
1392
2096
  type RequestHeaders = {};
1393
2097
  type ResponseBody = WineProducerEntityPaginatedDto;
1394
2098
  }
2099
+ /**
2100
+ * No description
2101
+ * @tags Admin Tenant Wine Regions
2102
+ * @name ListTenantWineRegions
2103
+ * @request GET:/admin/tenants/{tenantId}/wine-regions
2104
+ * @secure
2105
+ * @response `200` `WineRegionEntityPaginatedDto`
2106
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2107
+ */
2108
+ namespace ListTenantWineRegions {
2109
+ type RequestParams = {
2110
+ tenantId: string;
2111
+ };
2112
+ type RequestQuery = {
2113
+ createdAt?: string;
2114
+ /**
2115
+ * @default 10
2116
+ * @example 10
2117
+ */
2118
+ limit?: number;
2119
+ orderBy?: OrderByEnum;
2120
+ /**
2121
+ * @default 1
2122
+ * @example 1
2123
+ */
2124
+ page?: number;
2125
+ search?: string;
2126
+ sortBy?: string[];
2127
+ };
2128
+ type RequestBody = never;
2129
+ type RequestHeaders = {};
2130
+ type ResponseBody = WineRegionEntityPaginatedDto;
2131
+ }
1395
2132
  /**
1396
2133
  * No description
1397
2134
  * @tags Admin Tenant Wines
@@ -1596,6 +2333,25 @@ export declare namespace Admin {
1596
2333
  type RequestHeaders = {};
1597
2334
  type ResponseBody = WineVineyardEntityPaginatedDto;
1598
2335
  }
2336
+ /**
2337
+ * No description
2338
+ * @tags Admin Tenant Cases
2339
+ * @name UpdateTenantCase
2340
+ * @request PATCH:/admin/tenants/{tenantId}/cases/{caseId}
2341
+ * @secure
2342
+ * @response `200` `CaseEntityDto`
2343
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2344
+ */
2345
+ namespace UpdateTenantCase {
2346
+ type RequestParams = {
2347
+ caseId: string;
2348
+ tenantId: string;
2349
+ };
2350
+ type RequestQuery = {};
2351
+ type RequestBody = UpdateCaseDto;
2352
+ type RequestHeaders = {};
2353
+ type ResponseBody = CaseEntityDto;
2354
+ }
1599
2355
  /**
1600
2356
  * No description
1601
2357
  * @tags Admin Tenant Operation Extras Templates
@@ -1691,6 +2447,25 @@ export declare namespace Admin {
1691
2447
  type RequestHeaders = {};
1692
2448
  type ResponseBody = WineBrandEntityDto;
1693
2449
  }
2450
+ /**
2451
+ * No description
2452
+ * @tags Admin Tenant Wine Countries
2453
+ * @name UpdateTenantWineCountry
2454
+ * @request PATCH:/admin/tenants/{tenantId}/wine-countries/{countryId}
2455
+ * @secure
2456
+ * @response `200` `WineCountryEntityDto`
2457
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2458
+ */
2459
+ namespace UpdateTenantWineCountry {
2460
+ type RequestParams = {
2461
+ countryId: string;
2462
+ tenantId: string;
2463
+ };
2464
+ type RequestQuery = {};
2465
+ type RequestBody = UpdateNameOnlyEntityDto;
2466
+ type RequestHeaders = {};
2467
+ type ResponseBody = WineCountryEntityDto;
2468
+ }
1694
2469
  /**
1695
2470
  * No description
1696
2471
  * @tags Admin Tenant Wine Producers
@@ -1702,13 +2477,32 @@ export declare namespace Admin {
1702
2477
  */
1703
2478
  namespace UpdateTenantWineProducer {
1704
2479
  type RequestParams = {
1705
- producerId: string;
2480
+ producerId: string;
2481
+ tenantId: string;
2482
+ };
2483
+ type RequestQuery = {};
2484
+ type RequestBody = UpdateNameOnlyEntityDto;
2485
+ type RequestHeaders = {};
2486
+ type ResponseBody = WineProducerEntityDto;
2487
+ }
2488
+ /**
2489
+ * No description
2490
+ * @tags Admin Tenant Wine Regions
2491
+ * @name UpdateTenantWineRegion
2492
+ * @request PATCH:/admin/tenants/{tenantId}/wine-regions/{regionId}
2493
+ * @secure
2494
+ * @response `200` `WineRegionEntityDto`
2495
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2496
+ */
2497
+ namespace UpdateTenantWineRegion {
2498
+ type RequestParams = {
2499
+ regionId: string;
1706
2500
  tenantId: string;
1707
2501
  };
1708
2502
  type RequestQuery = {};
1709
2503
  type RequestBody = UpdateNameOnlyEntityDto;
1710
2504
  type RequestHeaders = {};
1711
- type ResponseBody = WineProducerEntityDto;
2505
+ type ResponseBody = WineRegionEntityDto;
1712
2506
  }
1713
2507
  /**
1714
2508
  * No description
@@ -1906,42 +2700,184 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1906
2700
  */
1907
2701
  signIn: (data: SigninDto, params?: RequestParams) => Promise<SigninResponseDto>;
1908
2702
  };
1909
- users: {
2703
+ tenants: {
2704
+ /**
2705
+ * No description
2706
+ *
2707
+ * @tags Tenant Users
2708
+ * @name CreateTenantUser
2709
+ * @request POST:/tenants/{tenantId}/users
2710
+ * @secure
2711
+ * @response `200` `UserEntityDto`
2712
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
2713
+ */
2714
+ createTenantUser: (tenantId: string, data: CreateUserDto, params?: RequestParams) => Promise<UserEntityDto>;
2715
+ /**
2716
+ * No description
2717
+ *
2718
+ * @tags Tenant Users
2719
+ * @name CreateUserAddress
2720
+ * @request POST:/tenants/{tenantId}/users/userId/addresses
2721
+ * @secure
2722
+ * @response `201` `AddressEntityDto`
2723
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
2724
+ */
2725
+ createUserAddress: (tenantId: string, userId: string, data: CreateAddressDto, params?: RequestParams) => Promise<AddressEntityDto>;
2726
+ /**
2727
+ * No description
2728
+ *
2729
+ * @tags Tenant Users
2730
+ * @name DeleteTenantUser
2731
+ * @request DELETE:/tenants/{tenantId}/users/{userId}
2732
+ * @secure
2733
+ * @response `204` `void`
2734
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
2735
+ */
2736
+ deleteTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<void>;
2737
+ /**
2738
+ * No description
2739
+ *
2740
+ * @tags Tenant Users
2741
+ * @name DeleteUserAddress
2742
+ * @request DELETE:/tenants/{tenantId}/users/userId/addresses/{addressId}
2743
+ * @secure
2744
+ * @response `204` `void`
2745
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
2746
+ */
2747
+ deleteUserAddress: (tenantId: string, userId: string, addressId: string, params?: RequestParams) => Promise<void>;
2748
+ /**
2749
+ * No description
2750
+ *
2751
+ * @tags Tenant Users
2752
+ * @name DisableTenantUser
2753
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/disable
2754
+ * @secure
2755
+ * @response `204` `void`
2756
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
2757
+ */
2758
+ disableTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<void>;
2759
+ /**
2760
+ * No description
2761
+ *
2762
+ * @tags Tenant Users
2763
+ * @name EnableTenantUser
2764
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/enable
2765
+ * @secure
2766
+ * @response `204` `void`
2767
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
2768
+ */
2769
+ enableTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<void>;
2770
+ /**
2771
+ * No description
2772
+ *
2773
+ * @tags Tenant Users
2774
+ * @name GetTenantUser
2775
+ * @request GET:/tenants/{tenantId}/users/{userId}
2776
+ * @secure
2777
+ * @response `200` `UserEntityDto`
2778
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
2779
+ */
2780
+ getTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<UserEntityDto>;
2781
+ /**
2782
+ * No description
2783
+ *
2784
+ * @tags Tenant Users
2785
+ * @name ListTenantUsers
2786
+ * @request GET:/tenants/{tenantId}/users
2787
+ * @secure
2788
+ * @response `200` `UserEntityPaginatedDto`
2789
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2790
+ */
2791
+ listTenantUsers: (tenantId: string, query?: {
2792
+ createdAt?: string;
2793
+ /**
2794
+ * @default 10
2795
+ * @example 10
2796
+ */
2797
+ limit?: number;
2798
+ orderBy?: OrderByEnum;
2799
+ /**
2800
+ * @default 1
2801
+ * @example 1
2802
+ */
2803
+ page?: number;
2804
+ roles?: TenantRoleEnum[];
2805
+ search?: string;
2806
+ sortBy?: string[];
2807
+ status?: TenantUserStatusEnum[];
2808
+ }, params?: RequestParams) => Promise<UserEntityPaginatedDto>;
2809
+ /**
2810
+ * No description
2811
+ *
2812
+ * @tags Tenant Users
2813
+ * @name ListUserAddresses
2814
+ * @request GET:/tenants/{tenantId}/users/userId/addresses
2815
+ * @secure
2816
+ * @response `200` `AddressEntityPaginatedDto`
2817
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
2818
+ */
2819
+ listUserAddresses: (tenantId: string, userId: string, query?: {
2820
+ createdAt?: string;
2821
+ /**
2822
+ * @default 10
2823
+ * @example 10
2824
+ */
2825
+ limit?: number;
2826
+ orderBy?: OrderByEnum;
2827
+ /**
2828
+ * @default 1
2829
+ * @example 1
2830
+ */
2831
+ page?: number;
2832
+ search?: string;
2833
+ sortBy?: string[];
2834
+ }, params?: RequestParams) => Promise<AddressEntityPaginatedDto>;
1910
2835
  /**
1911
2836
  * No description
1912
2837
  *
1913
- * @tags Users
1914
- * @name UpdateUserPassword
1915
- * @request PATCH:/users/{userId}/password
2838
+ * @tags Tenant Users
2839
+ * @name UpdateTenantUser
2840
+ * @request PATCH:/tenants/{tenantId}/users/{userId}
1916
2841
  * @secure
1917
2842
  * @response `200` `UserEntityDto`
1918
2843
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1919
2844
  */
1920
- updateUserPassword: (userId: string, data: UpdateUserPasswordDto, params?: RequestParams) => Promise<UserEntityDto>;
2845
+ updateTenantUser: (tenantId: string, userId: string, data: UpdateUserDto, params?: RequestParams) => Promise<UserEntityDto>;
1921
2846
  /**
1922
2847
  * No description
1923
2848
  *
1924
- * @tags Users
1925
- * @name UpdateUserProfile
1926
- * @request PATCH:/users/{userId}
2849
+ * @tags Tenant Users
2850
+ * @name UpdateTenantUserPassword
2851
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/password
1927
2852
  * @secure
1928
2853
  * @response `200` `UserEntityDto`
1929
2854
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1930
2855
  */
1931
- updateUserProfile: (userId: string, data: UpdateUserProfileDto, params?: RequestParams) => Promise<UserEntityDto>;
2856
+ updateTenantUserPassword: (tenantId: string, userId: string, data: UpdateUserPasswordDto, params?: RequestParams) => Promise<UserEntityDto>;
1932
2857
  };
1933
2858
  admin: {
1934
2859
  /**
1935
- * @description Gives some user access to the tenant. If there's no user account attached to this users, it creates a new one
2860
+ * No description
2861
+ *
2862
+ * @tags Admin Tenant Cases
2863
+ * @name AddTenantCaseBatchOperations
2864
+ * @request POST:/admin/tenants/{tenantId}/cases/{caseId}/operations/batch
2865
+ * @secure
2866
+ * @response `200` `CaseBatchOperationResponseDto`
2867
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2868
+ */
2869
+ addTenantCaseBatchOperations: (tenantId: string, caseId: string, data: CreateBatchCaseOperationsDto, params?: RequestParams) => Promise<CaseBatchOperationResponseDto>;
2870
+ /**
2871
+ * No description
1936
2872
  *
1937
- * @tags Admin Tenant Users
1938
- * @name CreateOrUpdateTenantUserAndPermissionsByUserEmail
1939
- * @request POST:/admin/tenants/{tenantId}/users
2873
+ * @tags Admin Tenant Cases
2874
+ * @name CreateTenantCase
2875
+ * @request POST:/admin/tenants/{tenantId}/cases
1940
2876
  * @secure
1941
- * @response `200` `TenantUserEntityDto`
2877
+ * @response `201` `CaseEntityDto`
1942
2878
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1943
2879
  */
1944
- createOrUpdateTenantUserAndPermissionsByUserEmail: (tenantId: string, data: CreateTenantUserDto, params?: RequestParams) => Promise<TenantUserEntityDto>;
2880
+ createTenantCase: (tenantId: string, data: CreateCaseDto, params?: RequestParams) => Promise<CaseEntityDto>;
1945
2881
  /**
1946
2882
  * No description
1947
2883
  *
@@ -1997,6 +2933,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1997
2933
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1998
2934
  */
1999
2935
  createTenantWineBrand: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineBrandEntityDto>;
2936
+ /**
2937
+ * No description
2938
+ *
2939
+ * @tags Admin Tenant Wine Countries
2940
+ * @name CreateTenantWineCountry
2941
+ * @request POST:/admin/tenants/{tenantId}/wine-countries
2942
+ * @secure
2943
+ * @response `201` `WineCountryEntityDto`
2944
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2945
+ */
2946
+ createTenantWineCountry: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineCountryEntityDto>;
2000
2947
  /**
2001
2948
  * No description
2002
2949
  *
@@ -2008,6 +2955,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2008
2955
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2009
2956
  */
2010
2957
  createTenantWineProducer: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineProducerEntityDto>;
2958
+ /**
2959
+ * No description
2960
+ *
2961
+ * @tags Admin Tenant Wine Regions
2962
+ * @name CreateTenantWineRegion
2963
+ * @request POST:/admin/tenants/{tenantId}/wine-regions
2964
+ * @secure
2965
+ * @response `201` `WineRegionEntityDto`
2966
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2967
+ */
2968
+ createTenantWineRegion: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineRegionEntityDto>;
2011
2969
  /**
2012
2970
  * No description
2013
2971
  *
@@ -2063,6 +3021,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2063
3021
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2064
3022
  */
2065
3023
  createTenantWineVineyard: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineVineyardEntityDto>;
3024
+ /**
3025
+ * No description
3026
+ *
3027
+ * @tags Admin Tenant Cases
3028
+ * @name DeleteTenantCase
3029
+ * @request DELETE:/admin/tenants/{tenantId}/cases/{caseId}
3030
+ * @secure
3031
+ * @response `204` `void`
3032
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3033
+ */
3034
+ deleteTenantCase: (tenantId: string, caseId: string, params?: RequestParams) => Promise<void>;
2066
3035
  /**
2067
3036
  * No description
2068
3037
  *
@@ -2118,6 +3087,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2118
3087
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2119
3088
  */
2120
3089
  deleteTenantWineBrand: (tenantId: string, brandId: string, params?: RequestParams) => Promise<void>;
3090
+ /**
3091
+ * No description
3092
+ *
3093
+ * @tags Admin Tenant Wine Countries
3094
+ * @name DeleteTenantWineCountry
3095
+ * @request DELETE:/admin/tenants/{tenantId}/wine-countries/{countryId}
3096
+ * @secure
3097
+ * @response `204` `void`
3098
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3099
+ */
3100
+ deleteTenantWineCountry: (tenantId: string, countryId: string, params?: RequestParams) => Promise<void>;
2121
3101
  /**
2122
3102
  * No description
2123
3103
  *
@@ -2129,6 +3109,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2129
3109
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2130
3110
  */
2131
3111
  deleteTenantWineProducer: (tenantId: string, producerId: string, params?: RequestParams) => Promise<void>;
3112
+ /**
3113
+ * No description
3114
+ *
3115
+ * @tags Admin Tenant Wine Regions
3116
+ * @name DeleteTenantWineRegion
3117
+ * @request DELETE:/admin/tenants/{tenantId}/wine-regions/{regionId}
3118
+ * @secure
3119
+ * @response `204` `void`
3120
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3121
+ */
3122
+ deleteTenantWineRegion: (tenantId: string, regionId: string, params?: RequestParams) => Promise<void>;
2132
3123
  /**
2133
3124
  * No description
2134
3125
  *
@@ -2187,25 +3178,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2187
3178
  /**
2188
3179
  * No description
2189
3180
  *
2190
- * @tags Admin Tenant Users
2191
- * @name DisableTenantUser
2192
- * @request PATCH:/admin/tenants/{tenantId}/users/{userId}/disable
2193
- * @secure
2194
- * @response `204` `void`
2195
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2196
- */
2197
- disableTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<void>;
2198
- /**
2199
- * No description
2200
- *
2201
- * @tags Admin Tenant Users
2202
- * @name EnableTenantUser
2203
- * @request PATCH:/admin/tenants/{tenantId}/users/{userId}/enable
3181
+ * @tags Admin Tenant Cases
3182
+ * @name GetTenantCaseById
3183
+ * @request GET:/admin/tenants/{tenantId}/cases/{caseId}
2204
3184
  * @secure
2205
- * @response `204` `void`
2206
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3185
+ * @response `200` `CaseEntityDto`
3186
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
2207
3187
  */
2208
- enableTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<void>;
3188
+ getTenantCaseById: (tenantId: string, caseId: string, params?: RequestParams) => Promise<CaseEntityDto>;
2209
3189
  /**
2210
3190
  * No description
2211
3191
  *
@@ -2261,6 +3241,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2261
3241
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2262
3242
  */
2263
3243
  getTenantWineById: (tenantId: string, wineId: string, params?: RequestParams) => Promise<WineEntityDto>;
3244
+ /**
3245
+ * No description
3246
+ *
3247
+ * @tags Admin Tenant Wine Countries
3248
+ * @name GetTenantWineCountryById
3249
+ * @request GET:/admin/tenants/{tenantId}/wine-countries/{countryId}
3250
+ * @secure
3251
+ * @response `200` `WineCountryEntityDto`
3252
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3253
+ */
3254
+ getTenantWineCountryById: (tenantId: string, countryId: string, params?: RequestParams) => Promise<WineCountryEntityDto>;
2264
3255
  /**
2265
3256
  * No description
2266
3257
  *
@@ -2272,6 +3263,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2272
3263
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2273
3264
  */
2274
3265
  getTenantWineProducerById: (tenantId: string, producerId: string, params?: RequestParams) => Promise<WineProducerEntityDto>;
3266
+ /**
3267
+ * No description
3268
+ *
3269
+ * @tags Admin Tenant Wine Regions
3270
+ * @name GetTenantWineRegionById
3271
+ * @request GET:/admin/tenants/{tenantId}/wine-regions/{regionId}
3272
+ * @secure
3273
+ * @response `200` `WineRegionEntityDto`
3274
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3275
+ */
3276
+ getTenantWineRegionById: (tenantId: string, regionId: string, params?: RequestParams) => Promise<WineRegionEntityDto>;
2275
3277
  /**
2276
3278
  * No description
2277
3279
  *
@@ -2330,14 +3332,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2330
3332
  /**
2331
3333
  * No description
2332
3334
  *
2333
- * @tags Admin Tenant Operation Extras Templates
2334
- * @name ListTenantOperationExtrasTemplates
2335
- * @request GET:/admin/tenants/{tenantId}/operation-extras-templates
3335
+ * @tags Admin Tenant Cases
3336
+ * @name ListTenantCaseInventory
3337
+ * @request GET:/admin/tenants/{tenantId}/cases/{caseId}/inventory
2336
3338
  * @secure
2337
- * @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
2338
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3339
+ * @response `200` `CaseWineInventoryItemEntityPaginatedDto`
3340
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
2339
3341
  */
2340
- listTenantOperationExtrasTemplates: (tenantId: string, query?: {
3342
+ listTenantCaseInventory: (tenantId: string, caseId: string, query?: {
3343
+ amount?: string;
3344
+ bottleFormatIds?: string[];
3345
+ bottleVintageIds?: string[];
2341
3346
  createdAt?: string;
2342
3347
  /**
2343
3348
  * @default 10
@@ -2352,34 +3357,64 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2352
3357
  page?: number;
2353
3358
  search?: string;
2354
3359
  sortBy?: string[];
2355
- }, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityPaginatedDto>;
3360
+ wineIds?: string[];
3361
+ }, params?: RequestParams) => Promise<CaseWineInventoryItemEntityPaginatedDto>;
2356
3362
  /**
2357
3363
  * No description
2358
3364
  *
2359
- * @tags Admin Tenant Users
2360
- * @name ListTenantUsers
2361
- * @request GET:/admin/tenants/{tenantId}/users
3365
+ * @tags Admin Tenant Cases
3366
+ * @name ListTenantCases
3367
+ * @request GET:/admin/tenants/{tenantId}/cases
2362
3368
  * @secure
2363
- * @response `200` `TenantUserEntityPaginatedDto`
2364
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3369
+ * @response `200` `CaseEntityPaginatedDto`
3370
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
2365
3371
  */
2366
- listTenantUsers: (tenantId: string, query?: {
3372
+ listTenantCases: (tenantId: string, query?: {
3373
+ billingEndDate?: string;
3374
+ billingStartDate?: string;
3375
+ createdAt?: string;
3376
+ customerIds?: string[];
2367
3377
  /**
2368
3378
  * @default 10
2369
3379
  * @example 10
2370
3380
  */
2371
3381
  limit?: number;
3382
+ minRemainingItems?: number;
2372
3383
  orderBy?: OrderByEnum;
2373
3384
  /**
2374
3385
  * @default 1
2375
3386
  * @example 1
2376
3387
  */
2377
3388
  page?: number;
2378
- roles?: TenantRoleEnum[];
2379
3389
  search?: string;
2380
3390
  sortBy?: string[];
2381
- status?: TenantUserStatusEnum[];
2382
- }, params?: RequestParams) => Promise<TenantUserEntityPaginatedDto>;
3391
+ }, params?: RequestParams) => Promise<CaseEntityPaginatedDto>;
3392
+ /**
3393
+ * No description
3394
+ *
3395
+ * @tags Admin Tenant Operation Extras Templates
3396
+ * @name ListTenantOperationExtrasTemplates
3397
+ * @request GET:/admin/tenants/{tenantId}/operation-extras-templates
3398
+ * @secure
3399
+ * @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
3400
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3401
+ */
3402
+ listTenantOperationExtrasTemplates: (tenantId: string, query?: {
3403
+ createdAt?: string;
3404
+ /**
3405
+ * @default 10
3406
+ * @example 10
3407
+ */
3408
+ limit?: number;
3409
+ orderBy?: OrderByEnum;
3410
+ /**
3411
+ * @default 1
3412
+ * @example 1
3413
+ */
3414
+ page?: number;
3415
+ search?: string;
3416
+ sortBy?: string[];
3417
+ }, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityPaginatedDto>;
2383
3418
  /**
2384
3419
  * No description
2385
3420
  *
@@ -2458,6 +3493,32 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2458
3493
  search?: string;
2459
3494
  sortBy?: string[];
2460
3495
  }, params?: RequestParams) => Promise<WineBrandEntityPaginatedDto>;
3496
+ /**
3497
+ * No description
3498
+ *
3499
+ * @tags Admin Tenant Wine Countries
3500
+ * @name ListTenantWineCountries
3501
+ * @request GET:/admin/tenants/{tenantId}/wine-countries
3502
+ * @secure
3503
+ * @response `200` `WineCountryEntityPaginatedDto`
3504
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3505
+ */
3506
+ listTenantWineCountries: (tenantId: string, query?: {
3507
+ createdAt?: string;
3508
+ /**
3509
+ * @default 10
3510
+ * @example 10
3511
+ */
3512
+ limit?: number;
3513
+ orderBy?: OrderByEnum;
3514
+ /**
3515
+ * @default 1
3516
+ * @example 1
3517
+ */
3518
+ page?: number;
3519
+ search?: string;
3520
+ sortBy?: string[];
3521
+ }, params?: RequestParams) => Promise<WineCountryEntityPaginatedDto>;
2461
3522
  /**
2462
3523
  * No description
2463
3524
  *
@@ -2484,6 +3545,32 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2484
3545
  search?: string;
2485
3546
  sortBy?: string[];
2486
3547
  }, params?: RequestParams) => Promise<WineProducerEntityPaginatedDto>;
3548
+ /**
3549
+ * No description
3550
+ *
3551
+ * @tags Admin Tenant Wine Regions
3552
+ * @name ListTenantWineRegions
3553
+ * @request GET:/admin/tenants/{tenantId}/wine-regions
3554
+ * @secure
3555
+ * @response `200` `WineRegionEntityPaginatedDto`
3556
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3557
+ */
3558
+ listTenantWineRegions: (tenantId: string, query?: {
3559
+ createdAt?: string;
3560
+ /**
3561
+ * @default 10
3562
+ * @example 10
3563
+ */
3564
+ limit?: number;
3565
+ orderBy?: OrderByEnum;
3566
+ /**
3567
+ * @default 1
3568
+ * @example 1
3569
+ */
3570
+ page?: number;
3571
+ search?: string;
3572
+ sortBy?: string[];
3573
+ }, params?: RequestParams) => Promise<WineRegionEntityPaginatedDto>;
2487
3574
  /**
2488
3575
  * No description
2489
3576
  *
@@ -2646,6 +3733,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2646
3733
  search?: string;
2647
3734
  sortBy?: string[];
2648
3735
  }, params?: RequestParams) => Promise<WineVineyardEntityPaginatedDto>;
3736
+ /**
3737
+ * No description
3738
+ *
3739
+ * @tags Admin Tenant Cases
3740
+ * @name UpdateTenantCase
3741
+ * @request PATCH:/admin/tenants/{tenantId}/cases/{caseId}
3742
+ * @secure
3743
+ * @response `200` `CaseEntityDto`
3744
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3745
+ */
3746
+ updateTenantCase: (tenantId: string, caseId: string, data: UpdateCaseDto, params?: RequestParams) => Promise<CaseEntityDto>;
2649
3747
  /**
2650
3748
  * No description
2651
3749
  *
@@ -2701,6 +3799,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2701
3799
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2702
3800
  */
2703
3801
  updateTenantWineBrand: (tenantId: string, brandId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineBrandEntityDto>;
3802
+ /**
3803
+ * No description
3804
+ *
3805
+ * @tags Admin Tenant Wine Countries
3806
+ * @name UpdateTenantWineCountry
3807
+ * @request PATCH:/admin/tenants/{tenantId}/wine-countries/{countryId}
3808
+ * @secure
3809
+ * @response `200` `WineCountryEntityDto`
3810
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3811
+ */
3812
+ updateTenantWineCountry: (tenantId: string, countryId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineCountryEntityDto>;
2704
3813
  /**
2705
3814
  * No description
2706
3815
  *
@@ -2712,6 +3821,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2712
3821
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2713
3822
  */
2714
3823
  updateTenantWineProducer: (tenantId: string, producerId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineProducerEntityDto>;
3824
+ /**
3825
+ * No description
3826
+ *
3827
+ * @tags Admin Tenant Wine Regions
3828
+ * @name UpdateTenantWineRegion
3829
+ * @request PATCH:/admin/tenants/{tenantId}/wine-regions/{regionId}
3830
+ * @secure
3831
+ * @response `200` `WineRegionEntityDto`
3832
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3833
+ */
3834
+ updateTenantWineRegion: (tenantId: string, regionId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineRegionEntityDto>;
2715
3835
  /**
2716
3836
  * No description
2717
3837
  *