@thelllabs/winehaus-sdk 0.0.13 → 0.0.15

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.
@@ -14,6 +14,8 @@ export interface AddressEntityDto {
14
14
  notes?: string;
15
15
  postalCode: string;
16
16
  state: string;
17
+ /** @format uuid */
18
+ tenantId: string;
17
19
  /** @format date-time */
18
20
  updatedAt: string;
19
21
  /** @format uuid */
@@ -24,9 +26,6 @@ export interface AddressEntityPaginatedDto {
24
26
  links?: PaginationLinksDto;
25
27
  meta: PaginationMetaDto;
26
28
  }
27
- export interface CaseBatchOperationResponseDto {
28
- operations: CaseOperationEntityDto[];
29
- }
30
29
  export interface CaseEntityDto {
31
30
  /** @format date-time */
32
31
  billingEndDate?: string | null;
@@ -57,50 +56,6 @@ export interface CaseEntityPaginatedDto {
57
56
  links?: PaginationLinksDto;
58
57
  meta: PaginationMetaDto;
59
58
  }
60
- export interface CaseOperationEntityDto {
61
- /** @format uuid */
62
- caseId: string;
63
- /** @format date-time */
64
- createdAt: string;
65
- /** @format uuid */
66
- id: string;
67
- /** @example [] */
68
- logs: CaseOperationLogDto[];
69
- /** @format uuid */
70
- requestId?: string | null;
71
- /** @example "processed" */
72
- status: CaseOperationStatusEnum;
73
- /** @format uuid */
74
- tenantId: string;
75
- /** @example "deposit" */
76
- type: CaseOperationTypesEnum;
77
- /** @format date-time */
78
- updatedAt: string;
79
- }
80
- export interface CaseOperationExtraTemplateEntityDto {
81
- /** @format date-time */
82
- createdAt: string;
83
- /** @format date-time */
84
- deletedAt?: string | null;
85
- description?: string | null;
86
- /** @format uuid */
87
- id: string;
88
- invoiceTitle: string;
89
- /**
90
- * @min 0
91
- * @example 100
92
- */
93
- pricePerItem: number;
94
- /** @format uuid */
95
- tenantId?: string | null;
96
- /** @format date-time */
97
- updatedAt: string;
98
- }
99
- export interface CaseOperationExtraTemplateEntityPaginatedDto {
100
- items: CaseOperationExtraTemplateEntityDto[];
101
- links?: PaginationLinksDto;
102
- meta: PaginationMetaDto;
103
- }
104
59
  export interface CaseOperationLogDto {
105
60
  /** @example "confirmed" */
106
61
  currentStatus?: CaseOperationStatusEnum;
@@ -125,6 +80,29 @@ export declare enum CaseOperationTypesEnum {
125
80
  Deposit = "deposit",
126
81
  Withdrawal = "withdrawal"
127
82
  }
83
+ export interface CaseOperationWineInventoryItemEntityDto {
84
+ /** @min 0 */
85
+ amount: number;
86
+ bottleFormat: WineBottleFormatEntityDto;
87
+ /** @format uuid */
88
+ bottleFormatId: string;
89
+ bottleVintage: WineBottleVintageEntityDto;
90
+ /** @format uuid */
91
+ bottleVintageId: string;
92
+ /** @format date-time */
93
+ createdAt: string;
94
+ /** @format uuid */
95
+ id: string;
96
+ /** @format uuid */
97
+ operationId?: string | null;
98
+ /** @format uuid */
99
+ tenantId: string;
100
+ /** @format date-time */
101
+ updatedAt: string;
102
+ wine: WineEntityDto;
103
+ /** @format uuid */
104
+ wineId: string;
105
+ }
128
106
  export interface CaseWineInventoryItemEntityDto {
129
107
  /** @min 0 */
130
108
  amount: number;
@@ -164,10 +142,6 @@ export interface CreateAddressDto {
164
142
  postalCode: string;
165
143
  state: string;
166
144
  }
167
- export interface CreateBatchCaseOperationsDto {
168
- /** @minItems 1 */
169
- operations: CreateCaseOperationDto[];
170
- }
171
145
  export interface CreateCaseDto {
172
146
  /** @format date-time */
173
147
  billingEndDate?: string | null;
@@ -181,18 +155,28 @@ export interface CreateCaseDto {
181
155
  name: string;
182
156
  }
183
157
  export interface CreateCaseOperationDto {
158
+ /** @format uuid */
159
+ caseId: string;
184
160
  /** @minItems 0 */
185
- extras?: CreateCaseOperationExtraDto[];
161
+ extras?: CreateOperationExtraDto[];
186
162
  /** @format uuid */
187
163
  requestId?: string | null;
188
- /** @example "processed" */
189
- status?: CreateOnlyCaseOperationStatusEnum;
190
164
  /** @example "deposit" */
191
165
  type: CaseOperationTypesEnum;
192
166
  /** @minItems 1 */
193
167
  wines: CreateWineInventoryItemDto[];
194
168
  }
195
- export interface CreateCaseOperationExtraDto {
169
+ export interface CreateNameOnlyEntityDto {
170
+ /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
171
+ isGlobal?: boolean;
172
+ name: string;
173
+ }
174
+ export declare enum CreateOnlyOperationGroupStatusEnum {
175
+ OnHold = "on_hold",
176
+ Confirmed = "confirmed",
177
+ Processed = "processed"
178
+ }
179
+ export interface CreateOperationExtraDto {
196
180
  /** @min 1 */
197
181
  amount?: number | null;
198
182
  description?: string | null;
@@ -202,7 +186,7 @@ export interface CreateCaseOperationExtraDto {
202
186
  /** @format uuid */
203
187
  templateId?: string;
204
188
  }
205
- export interface CreateCaseOperationExtraTemplateDto {
189
+ export interface CreateOperationExtraTemplateDto {
206
190
  description?: string | null;
207
191
  invoiceTitle: string;
208
192
  /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
@@ -210,46 +194,55 @@ export interface CreateCaseOperationExtraTemplateDto {
210
194
  /** @example 100 */
211
195
  pricePerItem: number;
212
196
  }
213
- export interface CreateNameOnlyEntityDto {
214
- /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
215
- isGlobal?: boolean;
216
- name: string;
217
- }
218
- export declare enum CreateOnlyCaseOperationStatusEnum {
219
- OnHold = "on_hold",
220
- Confirmed = "confirmed",
221
- Processed = "processed"
197
+ export interface CreateOperationGroupDto {
198
+ /** @format uuid */
199
+ customerId: string;
200
+ /** @minItems 0 */
201
+ extras?: CreateOperationExtraDto[];
202
+ /** @minItems 1 */
203
+ operations: CreateCaseOperationDto[];
204
+ /** @example "processed" */
205
+ status?: CreateOnlyOperationGroupStatusEnum;
222
206
  }
223
- export interface CreateTenantUserDto {
224
- /** @example "user@example.com" */
207
+ export interface CreateUserDto {
225
208
  email: string;
209
+ firstName: string;
210
+ lastName: string;
211
+ legacyUserId?: string | null;
212
+ notes?: string | null;
226
213
  /**
227
- * 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)
214
+ * Password should include lowercase, uppercase and digits and have between 8 and 32 digits.
228
215
  * @example "P@ssw0rd"
229
216
  */
230
217
  password?: string;
218
+ /** @example [] */
219
+ phones?: PhoneDto[];
231
220
  /** @example ["operator"] */
232
- roles: TenantRoleEnum[];
221
+ roles?: TenantRoleEnum[] | null;
222
+ status?: TenantUserStatusEnum;
233
223
  }
234
224
  export interface CreateWineDto {
235
225
  /** @format uuid */
236
- brandId: string;
226
+ brandId?: string | null;
227
+ /** @format uuid */
228
+ countryId?: string | null;
237
229
  description?: string;
238
230
  /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
239
231
  isGlobal?: boolean;
240
- location: WineLocationDto;
241
232
  /** @format uuid */
242
- producerId: string;
233
+ producerId?: string | null;
234
+ /** @format uuid */
235
+ regionId?: string | null;
243
236
  /** @format uuid */
244
- styleId: string;
237
+ styleId?: string | null;
245
238
  /** @format uuid */
246
- typeId: string;
239
+ typeId?: string | null;
247
240
  /** @format uuid */
248
- varietalId: string;
241
+ varietalId?: string | null;
249
242
  /** @format uuid */
250
- villageId: string;
243
+ villageId?: string | null;
251
244
  /** @format uuid */
252
- vineyardId: string;
245
+ vineyardId?: string | null;
253
246
  }
254
247
  export interface CreateWineInventoryItemDto {
255
248
  /** @min 1 */
@@ -261,6 +254,47 @@ export interface CreateWineInventoryItemDto {
261
254
  /** @format uuid */
262
255
  wineId: string;
263
256
  }
257
+ export interface FullCaseOperationEntityDto {
258
+ /** @format uuid */
259
+ caseId: string;
260
+ /** @format date-time */
261
+ createdAt: string;
262
+ extras: OperationExtraEntityDto[];
263
+ /** @format uuid */
264
+ groupId: string;
265
+ /** @format uuid */
266
+ id: string;
267
+ /** @example [] */
268
+ logs: CaseOperationLogDto[];
269
+ /** @format uuid */
270
+ requestId?: string | null;
271
+ /** @example "processed" */
272
+ status: CaseOperationStatusEnum;
273
+ /** @format uuid */
274
+ tenantId: string;
275
+ /** @example "deposit" */
276
+ type: CaseOperationTypesEnum;
277
+ /** @format date-time */
278
+ updatedAt: string;
279
+ wines: CaseOperationWineInventoryItemEntityDto[];
280
+ }
281
+ export interface FullOperationGroupEntityDto {
282
+ /** @format date-time */
283
+ createdAt: string;
284
+ customer: UserEntityDto;
285
+ /** @format uuid */
286
+ customerId: string;
287
+ extras: OperationExtraEntityDto[];
288
+ /** @format uuid */
289
+ id: string;
290
+ operations: FullCaseOperationEntityDto[];
291
+ /** @example "processed" */
292
+ status: OperationGroupStatusEnum;
293
+ /** @format uuid */
294
+ tenantId: string;
295
+ /** @format date-time */
296
+ updatedAt: string;
297
+ }
264
298
  export interface HttpExceptionDto {
265
299
  /** @example null */
266
300
  data?: object;
@@ -274,6 +308,84 @@ export interface HttpExceptionDto {
274
308
  /** @example "2022-07-25T17:24:07.042Z" */
275
309
  timestamp: string;
276
310
  }
311
+ export interface OperationExtraEntityDto {
312
+ /**
313
+ * @min 0
314
+ * @example 100
315
+ */
316
+ amount: number;
317
+ /** @format date-time */
318
+ createdAt: string;
319
+ description?: string | null;
320
+ /** @format uuid */
321
+ id: string;
322
+ invoiceTitle: string;
323
+ /** @format uuid */
324
+ operationGroupId?: string | null;
325
+ /** @format uuid */
326
+ operationId?: string | null;
327
+ /**
328
+ * @min 0
329
+ * @example 100
330
+ */
331
+ pricePerItem: number;
332
+ /** @format uuid */
333
+ templateId?: string | null;
334
+ /** @format uuid */
335
+ tenantId: string;
336
+ /** @format date-time */
337
+ updatedAt: string;
338
+ }
339
+ export interface OperationExtraTemplateEntityDto {
340
+ /** @format date-time */
341
+ createdAt: string;
342
+ /** @format date-time */
343
+ deletedAt?: string | null;
344
+ description?: string | null;
345
+ /** @format uuid */
346
+ id: string;
347
+ invoiceTitle: string;
348
+ /**
349
+ * @min 0
350
+ * @example 100
351
+ */
352
+ pricePerItem: number;
353
+ /** @format uuid */
354
+ tenantId?: string | null;
355
+ /** @format date-time */
356
+ updatedAt: string;
357
+ }
358
+ export interface OperationExtraTemplateEntityPaginatedDto {
359
+ items: OperationExtraTemplateEntityDto[];
360
+ links?: PaginationLinksDto;
361
+ meta: PaginationMetaDto;
362
+ }
363
+ export interface OperationGroupEntityDto {
364
+ /** @format date-time */
365
+ createdAt: string;
366
+ customer: UserEntityDto;
367
+ /** @format uuid */
368
+ customerId: string;
369
+ /** @format uuid */
370
+ id: string;
371
+ /** @example "processed" */
372
+ status: OperationGroupStatusEnum;
373
+ /** @format uuid */
374
+ tenantId: string;
375
+ /** @format date-time */
376
+ updatedAt: string;
377
+ }
378
+ export interface OperationGroupEntityPaginatedDto {
379
+ items: OperationGroupEntityDto[];
380
+ links?: PaginationLinksDto;
381
+ meta: PaginationMetaDto;
382
+ }
383
+ export declare enum OperationGroupStatusEnum {
384
+ OnHold = "on_hold",
385
+ Confirmed = "confirmed",
386
+ Processed = "processed",
387
+ Cancelled = "cancelled"
388
+ }
277
389
  export declare enum OrderByEnum {
278
390
  ASC = "ASC",
279
391
  DESC = "DESC"
@@ -300,8 +412,20 @@ export interface PaginationMetaDto {
300
412
  /** @example 1 */
301
413
  totalPages?: number;
302
414
  }
415
+ export interface PhoneDto {
416
+ /** @example "+5599999999999" */
417
+ number: string;
418
+ /** @example "mobile" */
419
+ type: PhoneTypeEnum;
420
+ }
421
+ export declare enum PhoneTypeEnum {
422
+ Fixed = "fixed",
423
+ Mobile = "mobile"
424
+ }
303
425
  export interface RequestPasswordResetDto {
304
426
  email: string;
427
+ /** @format uuid */
428
+ tenantId: string;
305
429
  }
306
430
  export interface ResetPasswordDto {
307
431
  /** @example "user@example.com" */
@@ -313,6 +437,8 @@ export interface ResetPasswordDto {
313
437
  password: string;
314
438
  /** @example "P@ssw0rd" */
315
439
  passwordConfirmation: string;
440
+ /** @format uuid */
441
+ tenantId: string;
316
442
  token: string;
317
443
  }
318
444
  export interface SigninDto {
@@ -320,10 +446,12 @@ export interface SigninDto {
320
446
  email: string;
321
447
  /** @example "P@ssw0rd" */
322
448
  password: string;
449
+ /** @format uuid */
450
+ tenantId: string;
323
451
  }
324
452
  export interface SigninResponseDto {
325
453
  token: string;
326
- user: UserEntityWithTenantAccessesDto;
454
+ user: UserEntityDto;
327
455
  }
328
456
  export declare enum TenantRoleEnum {
329
457
  Operator = "operator",
@@ -331,21 +459,6 @@ export declare enum TenantRoleEnum {
331
459
  Owner = "owner",
332
460
  Customer = "customer"
333
461
  }
334
- export interface TenantUserEntityDto {
335
- roles: TenantRoleEnum[];
336
- /** @example "enabled" */
337
- status: TenantUserStatusEnum;
338
- /** @format uuid */
339
- tenantId: string;
340
- user: UserEntityDto;
341
- /** @format uuid */
342
- userId: string;
343
- }
344
- export interface TenantUserEntityPaginatedDto {
345
- items: TenantUserEntityDto[];
346
- links?: PaginationLinksDto;
347
- meta: PaginationMetaDto;
348
- }
349
462
  export declare enum TenantUserStatusEnum {
350
463
  Enabled = "enabled",
351
464
  Blocked = "blocked"
@@ -362,7 +475,12 @@ export interface UpdateCaseDto {
362
475
  maxItems: number;
363
476
  name: string;
364
477
  }
365
- export interface UpdateCaseOperationExtraTemplateDto {
478
+ export interface UpdateNameOnlyEntityDto {
479
+ /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
480
+ isGlobal?: boolean;
481
+ name: string;
482
+ }
483
+ export interface UpdateOperationExtraTemplateDto {
366
484
  description?: string | null;
367
485
  invoiceTitle: string;
368
486
  /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
@@ -370,14 +488,31 @@ export interface UpdateCaseOperationExtraTemplateDto {
370
488
  /** @example 100 */
371
489
  pricePerItem: number;
372
490
  }
373
- export interface UpdateNameOnlyEntityDto {
374
- /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
375
- isGlobal?: boolean;
376
- name: string;
491
+ export interface UpdateUserDto {
492
+ firstName?: string | null;
493
+ lastName?: string | null;
494
+ /** This field is accepted only if called by some tenant admin/operator */
495
+ legacyUserId?: string | null;
496
+ /** This field is accepted only if called by some tenant admin/operator */
497
+ notes?: string | null;
498
+ /**
499
+ * 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.
500
+ * @example "P@ssw0rd"
501
+ */
502
+ password?: string;
503
+ /** @example [] */
504
+ phones?: PhoneDto[];
505
+ /**
506
+ * This field is accepted only if called by some tenant admin/operator
507
+ * @example ["operator"]
508
+ */
509
+ roles?: TenantRoleEnum[] | null;
510
+ /** This field is accepted only if called by some tenant admin/operator */
511
+ status?: TenantUserStatusEnum;
377
512
  }
378
513
  export interface UpdateUserPasswordDto {
379
514
  /** @example "P@ssw0rd" */
380
- currentPassword: string;
515
+ currentPassword?: string | null;
381
516
  /**
382
517
  * Password should include lowercase, uppercase and digits and have between 8 and 32 digits
383
518
  * @example "P@ssw0rd"
@@ -386,28 +521,28 @@ export interface UpdateUserPasswordDto {
386
521
  /** @example "P@ssw0rd" */
387
522
  passwordConfirmation: string;
388
523
  }
389
- export interface UpdateUserProfileDto {
390
- name: string;
391
- }
392
524
  export interface UpdateWineDto {
393
525
  /** @format uuid */
394
- brandId: string;
526
+ brandId?: string | null;
527
+ /** @format uuid */
528
+ countryId?: string | null;
395
529
  description?: string;
396
530
  /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
397
531
  isGlobal?: boolean;
398
- location: WineLocationDto;
399
532
  /** @format uuid */
400
- producerId: string;
533
+ producerId?: string | null;
534
+ /** @format uuid */
535
+ regionId?: string | null;
401
536
  /** @format uuid */
402
- styleId: string;
537
+ styleId?: string | null;
403
538
  /** @format uuid */
404
- typeId: string;
539
+ typeId?: string | null;
405
540
  /** @format uuid */
406
- varietalId: string;
541
+ varietalId?: string | null;
407
542
  /** @format uuid */
408
- villageId: string;
543
+ villageId?: string | null;
409
544
  /** @format uuid */
410
- vineyardId: string;
545
+ vineyardId?: string | null;
411
546
  }
412
547
  export interface UserEntityDto {
413
548
  /** @format date-time */
@@ -415,25 +550,28 @@ export interface UserEntityDto {
415
550
  /** @format date-time */
416
551
  deletedAt?: string | null;
417
552
  email: string;
553
+ firstName?: string | null;
418
554
  /** @format uuid */
419
555
  id: string;
556
+ lastName?: string | null;
557
+ legacyUserId?: string | null;
420
558
  name?: string | null;
421
- /** @format date-time */
422
- updatedAt: string;
423
- }
424
- export interface UserEntityWithTenantAccessesDto {
425
- /** @format date-time */
426
- createdAt: string;
427
- /** @format date-time */
428
- deletedAt?: string | null;
429
- email: string;
559
+ notes?: string | null;
560
+ /** @example [] */
561
+ phones: PhoneDto[];
562
+ roles: TenantRoleEnum[];
563
+ /** @example "enabled" */
564
+ status: TenantUserStatusEnum;
430
565
  /** @format uuid */
431
- id: string;
432
- name?: string | null;
433
- tenants: TenantUserEntityDto[];
566
+ tenantId: string;
434
567
  /** @format date-time */
435
568
  updatedAt: string;
436
569
  }
570
+ export interface UserEntityPaginatedDto {
571
+ items: UserEntityDto[];
572
+ links?: PaginationLinksDto;
573
+ meta: PaginationMetaDto;
574
+ }
437
575
  export interface WineBottleFormatEntityDto {
438
576
  /** @format date-time */
439
577
  createdAt: string;
@@ -488,50 +626,70 @@ export interface WineBrandEntityPaginatedDto {
488
626
  links?: PaginationLinksDto;
489
627
  meta: PaginationMetaDto;
490
628
  }
629
+ export interface WineCountryEntityDto {
630
+ /** @format date-time */
631
+ createdAt: string;
632
+ /** @format date-time */
633
+ deletedAt?: string | null;
634
+ /** @format uuid */
635
+ id: string;
636
+ name: string;
637
+ /** @format uuid */
638
+ tenantId?: string | null;
639
+ /** @format date-time */
640
+ updatedAt: string;
641
+ }
642
+ export interface WineCountryEntityPaginatedDto {
643
+ items: WineCountryEntityDto[];
644
+ links?: PaginationLinksDto;
645
+ meta: PaginationMetaDto;
646
+ }
491
647
  export interface WineEntityDto {
492
- brand: WineBrandEntityDto;
648
+ brand?: WineBrandEntityDto;
493
649
  /** @format uuid */
494
- brandId: string;
650
+ brandId?: string;
651
+ country?: WineCountryEntityDto;
652
+ /** @format uuid */
653
+ countryId?: string;
495
654
  /** @format date-time */
496
655
  createdAt: string;
497
656
  /** @format date-time */
498
657
  deletedAt?: string | null;
499
658
  description?: string;
659
+ fullIdentifier: string;
500
660
  /** @format uuid */
501
661
  id: string;
502
- location: WineLocationDto;
503
- producer: WineProducerEntityDto;
662
+ producer?: WineProducerEntityDto;
663
+ /** @format uuid */
664
+ producerId?: string;
665
+ region?: WineRegionEntityDto;
504
666
  /** @format uuid */
505
- producerId: string;
506
- style: WineStyleEntityDto;
667
+ regionId?: string;
668
+ style?: WineStyleEntityDto;
507
669
  /** @format uuid */
508
- styleId: string;
670
+ styleId?: string;
509
671
  /** @format uuid */
510
672
  tenantId?: string | null;
511
- type: WineTypeEntityDto;
673
+ type?: WineTypeEntityDto;
512
674
  /** @format uuid */
513
- typeId: string;
675
+ typeId?: string;
514
676
  /** @format date-time */
515
677
  updatedAt: string;
516
- varietal: WineVarietalEntityDto;
678
+ varietal?: WineVarietalEntityDto;
517
679
  /** @format uuid */
518
- varietalId: string;
519
- village: WineVillageEntityDto;
680
+ varietalId?: string;
681
+ village?: WineVillageEntityDto;
520
682
  /** @format uuid */
521
- villageId: string;
522
- vineyard: WineVineyardEntityDto;
683
+ villageId?: string;
684
+ vineyard?: WineVineyardEntityDto;
523
685
  /** @format uuid */
524
- vineyardId: string;
686
+ vineyardId?: string;
525
687
  }
526
688
  export interface WineEntityPaginatedDto {
527
689
  items: WineEntityDto[];
528
690
  links?: PaginationLinksDto;
529
691
  meta: PaginationMetaDto;
530
692
  }
531
- export interface WineLocationDto {
532
- country: string;
533
- region: string;
534
- }
535
693
  export interface WineProducerEntityDto {
536
694
  /** @format date-time */
537
695
  createdAt: string;
@@ -550,6 +708,24 @@ export interface WineProducerEntityPaginatedDto {
550
708
  links?: PaginationLinksDto;
551
709
  meta: PaginationMetaDto;
552
710
  }
711
+ export interface WineRegionEntityDto {
712
+ /** @format date-time */
713
+ createdAt: string;
714
+ /** @format date-time */
715
+ deletedAt?: string | null;
716
+ /** @format uuid */
717
+ id: string;
718
+ name: string;
719
+ /** @format uuid */
720
+ tenantId?: string | null;
721
+ /** @format date-time */
722
+ updatedAt: string;
723
+ }
724
+ export interface WineRegionEntityPaginatedDto {
725
+ items: WineRegionEntityDto[];
726
+ links?: PaginationLinksDto;
727
+ meta: PaginationMetaDto;
728
+ }
553
729
  export interface WineStyleEntityDto {
554
730
  /** @format date-time */
555
731
  createdAt: string;
@@ -702,73 +878,187 @@ export declare namespace Auth {
702
878
  type ResponseBody = SigninResponseDto;
703
879
  }
704
880
  }
705
- export declare namespace Users {
881
+ export declare namespace Tenants {
882
+ /**
883
+ * No description
884
+ * @tags Tenant Users
885
+ * @name CreateTenantUser
886
+ * @request POST:/tenants/{tenantId}/users
887
+ * @secure
888
+ * @response `200` `UserEntityDto`
889
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
890
+ */
891
+ namespace CreateTenantUser {
892
+ type RequestParams = {
893
+ tenantId: string;
894
+ };
895
+ type RequestQuery = {};
896
+ type RequestBody = CreateUserDto;
897
+ type RequestHeaders = {};
898
+ type ResponseBody = UserEntityDto;
899
+ }
706
900
  /**
707
901
  * No description
708
- * @tags Users Addresses
902
+ * @tags Tenant Users
709
903
  * @name CreateUserAddress
710
- * @request POST:/users/{userId}/addresses
904
+ * @request POST:/tenants/{tenantId}/users/userId/addresses
711
905
  * @secure
712
906
  * @response `201` `AddressEntityDto`
713
907
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
714
908
  */
715
909
  namespace CreateUserAddress {
716
910
  type RequestParams = {
911
+ tenantId: string;
912
+ userId: string;
913
+ };
914
+ type RequestQuery = {};
915
+ type RequestBody = CreateAddressDto;
916
+ type RequestHeaders = {};
917
+ type ResponseBody = AddressEntityDto;
918
+ }
919
+ /**
920
+ * No description
921
+ * @tags Tenant Users
922
+ * @name DeleteTenantUser
923
+ * @request DELETE:/tenants/{tenantId}/users/{userId}
924
+ * @secure
925
+ * @response `204` `void`
926
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
927
+ */
928
+ namespace DeleteTenantUser {
929
+ type RequestParams = {
930
+ tenantId: string;
931
+ userId: string;
932
+ };
933
+ type RequestQuery = {};
934
+ type RequestBody = never;
935
+ type RequestHeaders = {};
936
+ type ResponseBody = void;
937
+ }
938
+ /**
939
+ * No description
940
+ * @tags Tenant Users
941
+ * @name DeleteUserAddress
942
+ * @request DELETE:/tenants/{tenantId}/users/userId/addresses/{addressId}
943
+ * @secure
944
+ * @response `204` `void`
945
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
946
+ */
947
+ namespace DeleteUserAddress {
948
+ type RequestParams = {
949
+ addressId: string;
950
+ tenantId: string;
951
+ userId: string;
952
+ };
953
+ type RequestQuery = {};
954
+ type RequestBody = never;
955
+ type RequestHeaders = {};
956
+ type ResponseBody = void;
957
+ }
958
+ /**
959
+ * No description
960
+ * @tags Tenant Users
961
+ * @name DisableTenantUser
962
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/disable
963
+ * @secure
964
+ * @response `204` `void`
965
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
966
+ */
967
+ namespace DisableTenantUser {
968
+ type RequestParams = {
969
+ tenantId: string;
970
+ userId: string;
971
+ };
972
+ type RequestQuery = {};
973
+ type RequestBody = never;
974
+ type RequestHeaders = {};
975
+ type ResponseBody = void;
976
+ }
977
+ /**
978
+ * No description
979
+ * @tags Tenant Users
980
+ * @name EnableTenantUser
981
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/enable
982
+ * @secure
983
+ * @response `204` `void`
984
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
985
+ */
986
+ namespace EnableTenantUser {
987
+ type RequestParams = {
988
+ tenantId: string;
717
989
  userId: string;
718
990
  };
719
991
  type RequestQuery = {};
720
- type RequestBody = CreateAddressDto;
992
+ type RequestBody = never;
721
993
  type RequestHeaders = {};
722
- type ResponseBody = AddressEntityDto;
994
+ type ResponseBody = void;
723
995
  }
724
996
  /**
725
997
  * No description
726
- * @tags Users Addresses
727
- * @name DeleteUserAddress
728
- * @request DELETE:/users/{userId}/addresses/{addressId}
998
+ * @tags Tenant Users
999
+ * @name GetTenantUser
1000
+ * @request GET:/tenants/{tenantId}/users/{userId}
729
1001
  * @secure
730
- * @response `204` `void`
1002
+ * @response `200` `UserEntityDto`
731
1003
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
732
1004
  */
733
- namespace DeleteUserAddress {
1005
+ namespace GetTenantUser {
734
1006
  type RequestParams = {
735
- addressId: string;
1007
+ tenantId: string;
736
1008
  userId: string;
737
1009
  };
738
1010
  type RequestQuery = {};
739
1011
  type RequestBody = never;
740
1012
  type RequestHeaders = {};
741
- type ResponseBody = void;
1013
+ type ResponseBody = UserEntityDto;
742
1014
  }
743
1015
  /**
744
1016
  * No description
745
- * @tags Users
746
- * @name GetUserProfile
747
- * @request GET:/users/{userId}
1017
+ * @tags Tenant Users
1018
+ * @name ListTenantUsers
1019
+ * @request GET:/tenants/{tenantId}/users
748
1020
  * @secure
749
- * @response `200` `UserEntityWithTenantAccessesDto`
750
- * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1021
+ * @response `200` `UserEntityPaginatedDto`
1022
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
751
1023
  */
752
- namespace GetUserProfile {
1024
+ namespace ListTenantUsers {
753
1025
  type RequestParams = {
754
- userId: string;
1026
+ tenantId: string;
1027
+ };
1028
+ type RequestQuery = {
1029
+ createdAt?: string;
1030
+ /**
1031
+ * @default 10
1032
+ * @example 10
1033
+ */
1034
+ limit?: number;
1035
+ orderBy?: OrderByEnum;
1036
+ /**
1037
+ * @default 1
1038
+ * @example 1
1039
+ */
1040
+ page?: number;
1041
+ roles?: TenantRoleEnum[];
1042
+ search?: string;
1043
+ sortBy?: string[];
1044
+ status?: TenantUserStatusEnum[];
755
1045
  };
756
- type RequestQuery = {};
757
1046
  type RequestBody = never;
758
1047
  type RequestHeaders = {};
759
- type ResponseBody = UserEntityWithTenantAccessesDto;
1048
+ type ResponseBody = UserEntityPaginatedDto;
760
1049
  }
761
1050
  /**
762
1051
  * No description
763
- * @tags Users Addresses
1052
+ * @tags Tenant Users
764
1053
  * @name ListUserAddresses
765
- * @request GET:/users/{userId}/addresses
1054
+ * @request GET:/tenants/{tenantId}/users/userId/addresses
766
1055
  * @secure
767
1056
  * @response `200` `AddressEntityPaginatedDto`
768
1057
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
769
1058
  */
770
1059
  namespace ListUserAddresses {
771
1060
  type RequestParams = {
1061
+ tenantId: string;
772
1062
  userId: string;
773
1063
  };
774
1064
  type RequestQuery = {
@@ -793,37 +1083,39 @@ export declare namespace Users {
793
1083
  }
794
1084
  /**
795
1085
  * No description
796
- * @tags Users
797
- * @name UpdateUserPassword
798
- * @request PATCH:/users/{userId}/password
1086
+ * @tags Tenant Users
1087
+ * @name UpdateTenantUser
1088
+ * @request PATCH:/tenants/{tenantId}/users/{userId}
799
1089
  * @secure
800
1090
  * @response `200` `UserEntityDto`
801
1091
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
802
1092
  */
803
- namespace UpdateUserPassword {
1093
+ namespace UpdateTenantUser {
804
1094
  type RequestParams = {
1095
+ tenantId: string;
805
1096
  userId: string;
806
1097
  };
807
1098
  type RequestQuery = {};
808
- type RequestBody = UpdateUserPasswordDto;
1099
+ type RequestBody = UpdateUserDto;
809
1100
  type RequestHeaders = {};
810
1101
  type ResponseBody = UserEntityDto;
811
1102
  }
812
1103
  /**
813
1104
  * No description
814
- * @tags Users
815
- * @name UpdateUserProfile
816
- * @request PATCH:/users/{userId}
1105
+ * @tags Tenant Users
1106
+ * @name UpdateTenantUserPassword
1107
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/password
817
1108
  * @secure
818
1109
  * @response `200` `UserEntityDto`
819
1110
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
820
1111
  */
821
- namespace UpdateUserProfile {
1112
+ namespace UpdateTenantUserPassword {
822
1113
  type RequestParams = {
1114
+ tenantId: string;
823
1115
  userId: string;
824
1116
  };
825
1117
  type RequestQuery = {};
826
- type RequestBody = UpdateUserProfileDto;
1118
+ type RequestBody = UpdateUserPasswordDto;
827
1119
  type RequestHeaders = {};
828
1120
  type ResponseBody = UserEntityDto;
829
1121
  }
@@ -831,40 +1123,41 @@ export declare namespace Users {
831
1123
  export declare namespace Admin {
832
1124
  /**
833
1125
  * No description
834
- * @tags Admin Tenant Cases
835
- * @name AddTenantCaseBatchOperations
836
- * @request POST:/admin/tenants/{tenantId}/cases/{caseId}/operations/batch
1126
+ * @tags Admin Tenant Operation Groups
1127
+ * @name CancelTenantOperationGroup
1128
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/cancel
837
1129
  * @secure
838
- * @response `200` `CaseBatchOperationResponseDto`
839
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1130
+ * @response `204` `void`
1131
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
840
1132
  */
841
- namespace AddTenantCaseBatchOperations {
1133
+ namespace CancelTenantOperationGroup {
842
1134
  type RequestParams = {
843
- caseId: string;
1135
+ groupId: string;
844
1136
  tenantId: string;
845
1137
  };
846
1138
  type RequestQuery = {};
847
- type RequestBody = CreateBatchCaseOperationsDto;
1139
+ type RequestBody = never;
848
1140
  type RequestHeaders = {};
849
- type ResponseBody = CaseBatchOperationResponseDto;
1141
+ type ResponseBody = void;
850
1142
  }
851
1143
  /**
852
- * @description Gives some user access to the tenant. If there's no user account attached to this users, it creates a new one
853
- * @tags Admin Tenant Users
854
- * @name CreateOrUpdateTenantUserAndPermissionsByUserEmail
855
- * @request POST:/admin/tenants/{tenantId}/users
1144
+ * No description
1145
+ * @tags Admin Tenant Operation Groups
1146
+ * @name ConfirmTenantOperationGroup
1147
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/confirm
856
1148
  * @secure
857
- * @response `200` `TenantUserEntityDto`
1149
+ * @response `204` `void`
858
1150
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
859
1151
  */
860
- namespace CreateOrUpdateTenantUserAndPermissionsByUserEmail {
1152
+ namespace ConfirmTenantOperationGroup {
861
1153
  type RequestParams = {
1154
+ groupId: string;
862
1155
  tenantId: string;
863
1156
  };
864
1157
  type RequestQuery = {};
865
- type RequestBody = CreateTenantUserDto;
1158
+ type RequestBody = never;
866
1159
  type RequestHeaders = {};
867
- type ResponseBody = TenantUserEntityDto;
1160
+ type ResponseBody = void;
868
1161
  }
869
1162
  /**
870
1163
  * No description
@@ -890,7 +1183,7 @@ export declare namespace Admin {
890
1183
  * @name CreateTenantOperationExtraTemplate
891
1184
  * @request POST:/admin/tenants/{tenantId}/operation-extras-templates
892
1185
  * @secure
893
- * @response `201` `CaseOperationExtraTemplateEntityDto`
1186
+ * @response `201` `OperationExtraTemplateEntityDto`
894
1187
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
895
1188
  */
896
1189
  namespace CreateTenantOperationExtraTemplate {
@@ -898,9 +1191,27 @@ export declare namespace Admin {
898
1191
  tenantId: string;
899
1192
  };
900
1193
  type RequestQuery = {};
901
- type RequestBody = CreateCaseOperationExtraTemplateDto;
1194
+ type RequestBody = CreateOperationExtraTemplateDto;
1195
+ type RequestHeaders = {};
1196
+ type ResponseBody = OperationExtraTemplateEntityDto;
1197
+ }
1198
+ /**
1199
+ * No description
1200
+ * @tags Admin Tenant Operation Groups
1201
+ * @name CreateTenantOperationGroup
1202
+ * @request POST:/admin/tenants/{tenantId}/operation-groups
1203
+ * @secure
1204
+ * @response `201` `OperationGroupEntityDto`
1205
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1206
+ */
1207
+ namespace CreateTenantOperationGroup {
1208
+ type RequestParams = {
1209
+ tenantId: string;
1210
+ };
1211
+ type RequestQuery = {};
1212
+ type RequestBody = CreateOperationGroupDto;
902
1213
  type RequestHeaders = {};
903
- type ResponseBody = CaseOperationExtraTemplateEntityDto;
1214
+ type ResponseBody = OperationGroupEntityDto;
904
1215
  }
905
1216
  /**
906
1217
  * No description
@@ -974,6 +1285,24 @@ export declare namespace Admin {
974
1285
  type RequestHeaders = {};
975
1286
  type ResponseBody = WineBrandEntityDto;
976
1287
  }
1288
+ /**
1289
+ * No description
1290
+ * @tags Admin Tenant Wine Countries
1291
+ * @name CreateTenantWineCountry
1292
+ * @request POST:/admin/tenants/{tenantId}/wine-countries
1293
+ * @secure
1294
+ * @response `201` `WineCountryEntityDto`
1295
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1296
+ */
1297
+ namespace CreateTenantWineCountry {
1298
+ type RequestParams = {
1299
+ tenantId: string;
1300
+ };
1301
+ type RequestQuery = {};
1302
+ type RequestBody = CreateNameOnlyEntityDto;
1303
+ type RequestHeaders = {};
1304
+ type ResponseBody = WineCountryEntityDto;
1305
+ }
977
1306
  /**
978
1307
  * No description
979
1308
  * @tags Admin Tenant Wine Producers
@@ -992,6 +1321,24 @@ export declare namespace Admin {
992
1321
  type RequestHeaders = {};
993
1322
  type ResponseBody = WineProducerEntityDto;
994
1323
  }
1324
+ /**
1325
+ * No description
1326
+ * @tags Admin Tenant Wine Regions
1327
+ * @name CreateTenantWineRegion
1328
+ * @request POST:/admin/tenants/{tenantId}/wine-regions
1329
+ * @secure
1330
+ * @response `201` `WineRegionEntityDto`
1331
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1332
+ */
1333
+ namespace CreateTenantWineRegion {
1334
+ type RequestParams = {
1335
+ tenantId: string;
1336
+ };
1337
+ type RequestQuery = {};
1338
+ type RequestBody = CreateNameOnlyEntityDto;
1339
+ type RequestHeaders = {};
1340
+ type ResponseBody = WineRegionEntityDto;
1341
+ }
995
1342
  /**
996
1343
  * No description
997
1344
  * @tags Admin Tenant Wine Styles
@@ -1196,6 +1543,25 @@ export declare namespace Admin {
1196
1543
  type RequestHeaders = {};
1197
1544
  type ResponseBody = void;
1198
1545
  }
1546
+ /**
1547
+ * No description
1548
+ * @tags Admin Tenant Wine Countries
1549
+ * @name DeleteTenantWineCountry
1550
+ * @request DELETE:/admin/tenants/{tenantId}/wine-countries/{countryId}
1551
+ * @secure
1552
+ * @response `204` `void`
1553
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1554
+ */
1555
+ namespace DeleteTenantWineCountry {
1556
+ type RequestParams = {
1557
+ countryId: string;
1558
+ tenantId: string;
1559
+ };
1560
+ type RequestQuery = {};
1561
+ type RequestBody = never;
1562
+ type RequestHeaders = {};
1563
+ type ResponseBody = void;
1564
+ }
1199
1565
  /**
1200
1566
  * No description
1201
1567
  * @tags Admin Tenant Wine Producers
@@ -1215,6 +1581,25 @@ export declare namespace Admin {
1215
1581
  type RequestHeaders = {};
1216
1582
  type ResponseBody = void;
1217
1583
  }
1584
+ /**
1585
+ * No description
1586
+ * @tags Admin Tenant Wine Regions
1587
+ * @name DeleteTenantWineRegion
1588
+ * @request DELETE:/admin/tenants/{tenantId}/wine-regions/{regionId}
1589
+ * @secure
1590
+ * @response `204` `void`
1591
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1592
+ */
1593
+ namespace DeleteTenantWineRegion {
1594
+ type RequestParams = {
1595
+ regionId: string;
1596
+ tenantId: string;
1597
+ };
1598
+ type RequestQuery = {};
1599
+ type RequestBody = never;
1600
+ type RequestHeaders = {};
1601
+ type ResponseBody = void;
1602
+ }
1218
1603
  /**
1219
1604
  * No description
1220
1605
  * @tags Admin Tenant Wine Styles
@@ -1310,44 +1695,6 @@ export declare namespace Admin {
1310
1695
  type RequestHeaders = {};
1311
1696
  type ResponseBody = void;
1312
1697
  }
1313
- /**
1314
- * No description
1315
- * @tags Admin Tenant Users
1316
- * @name DisableTenantUser
1317
- * @request PATCH:/admin/tenants/{tenantId}/users/{userId}/disable
1318
- * @secure
1319
- * @response `204` `void`
1320
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1321
- */
1322
- namespace DisableTenantUser {
1323
- type RequestParams = {
1324
- tenantId: string;
1325
- userId: string;
1326
- };
1327
- type RequestQuery = {};
1328
- type RequestBody = never;
1329
- type RequestHeaders = {};
1330
- type ResponseBody = void;
1331
- }
1332
- /**
1333
- * No description
1334
- * @tags Admin Tenant Users
1335
- * @name EnableTenantUser
1336
- * @request PATCH:/admin/tenants/{tenantId}/users/{userId}/enable
1337
- * @secure
1338
- * @response `204` `void`
1339
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1340
- */
1341
- namespace EnableTenantUser {
1342
- type RequestParams = {
1343
- tenantId: string;
1344
- userId: string;
1345
- };
1346
- type RequestQuery = {};
1347
- type RequestBody = never;
1348
- type RequestHeaders = {};
1349
- type ResponseBody = void;
1350
- }
1351
1698
  /**
1352
1699
  * No description
1353
1700
  * @tags Admin Tenant Cases
@@ -1373,7 +1720,7 @@ export declare namespace Admin {
1373
1720
  * @name GetTenantOperationExtraTemplateById
1374
1721
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
1375
1722
  * @secure
1376
- * @response `200` `CaseOperationExtraTemplateEntityDto`
1723
+ * @response `200` `OperationExtraTemplateEntityDto`
1377
1724
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1378
1725
  */
1379
1726
  namespace GetTenantOperationExtraTemplateById {
@@ -1384,7 +1731,26 @@ export declare namespace Admin {
1384
1731
  type RequestQuery = {};
1385
1732
  type RequestBody = never;
1386
1733
  type RequestHeaders = {};
1387
- type ResponseBody = CaseOperationExtraTemplateEntityDto;
1734
+ type ResponseBody = OperationExtraTemplateEntityDto;
1735
+ }
1736
+ /**
1737
+ * No description
1738
+ * @tags Admin Tenant Operation Groups
1739
+ * @name GetTenantOperationGroupById
1740
+ * @request GET:/admin/tenants/{tenantId}/operation-groups/{groupId}
1741
+ * @secure
1742
+ * @response `200` `FullOperationGroupEntityDto`
1743
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1744
+ */
1745
+ namespace GetTenantOperationGroupById {
1746
+ type RequestParams = {
1747
+ groupId: string;
1748
+ tenantId: string;
1749
+ };
1750
+ type RequestQuery = {};
1751
+ type RequestBody = never;
1752
+ type RequestHeaders = {};
1753
+ type ResponseBody = FullOperationGroupEntityDto;
1388
1754
  }
1389
1755
  /**
1390
1756
  * No description
@@ -1462,6 +1828,25 @@ export declare namespace Admin {
1462
1828
  type RequestHeaders = {};
1463
1829
  type ResponseBody = WineEntityDto;
1464
1830
  }
1831
+ /**
1832
+ * No description
1833
+ * @tags Admin Tenant Wine Countries
1834
+ * @name GetTenantWineCountryById
1835
+ * @request GET:/admin/tenants/{tenantId}/wine-countries/{countryId}
1836
+ * @secure
1837
+ * @response `200` `WineCountryEntityDto`
1838
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1839
+ */
1840
+ namespace GetTenantWineCountryById {
1841
+ type RequestParams = {
1842
+ countryId: string;
1843
+ tenantId: string;
1844
+ };
1845
+ type RequestQuery = {};
1846
+ type RequestBody = never;
1847
+ type RequestHeaders = {};
1848
+ type ResponseBody = WineCountryEntityDto;
1849
+ }
1465
1850
  /**
1466
1851
  * No description
1467
1852
  * @tags Admin Tenant Wine Producers
@@ -1481,6 +1866,25 @@ export declare namespace Admin {
1481
1866
  type RequestHeaders = {};
1482
1867
  type ResponseBody = WineProducerEntityDto;
1483
1868
  }
1869
+ /**
1870
+ * No description
1871
+ * @tags Admin Tenant Wine Regions
1872
+ * @name GetTenantWineRegionById
1873
+ * @request GET:/admin/tenants/{tenantId}/wine-regions/{regionId}
1874
+ * @secure
1875
+ * @response `200` `WineRegionEntityDto`
1876
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1877
+ */
1878
+ namespace GetTenantWineRegionById {
1879
+ type RequestParams = {
1880
+ regionId: string;
1881
+ tenantId: string;
1882
+ };
1883
+ type RequestQuery = {};
1884
+ type RequestBody = never;
1885
+ type RequestHeaders = {};
1886
+ type ResponseBody = WineRegionEntityDto;
1887
+ }
1484
1888
  /**
1485
1889
  * No description
1486
1890
  * @tags Admin Tenant Wine Styles
@@ -1657,7 +2061,7 @@ export declare namespace Admin {
1657
2061
  * @name ListTenantOperationExtrasTemplates
1658
2062
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates
1659
2063
  * @secure
1660
- * @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
2064
+ * @response `200` `OperationExtraTemplateEntityPaginatedDto`
1661
2065
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1662
2066
  */
1663
2067
  namespace ListTenantOperationExtrasTemplates {
@@ -1682,22 +2086,24 @@ export declare namespace Admin {
1682
2086
  };
1683
2087
  type RequestBody = never;
1684
2088
  type RequestHeaders = {};
1685
- type ResponseBody = CaseOperationExtraTemplateEntityPaginatedDto;
2089
+ type ResponseBody = OperationExtraTemplateEntityPaginatedDto;
1686
2090
  }
1687
2091
  /**
1688
2092
  * No description
1689
- * @tags Admin Tenant Users
1690
- * @name ListTenantUsers
1691
- * @request GET:/admin/tenants/{tenantId}/users
2093
+ * @tags Admin Tenant Operation Groups
2094
+ * @name ListTenantOperationGroups
2095
+ * @request GET:/admin/tenants/{tenantId}/operation-groups
1692
2096
  * @secure
1693
- * @response `200` `TenantUserEntityPaginatedDto`
1694
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2097
+ * @response `200` `OperationGroupEntityPaginatedDto`
2098
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1695
2099
  */
1696
- namespace ListTenantUsers {
2100
+ namespace ListTenantOperationGroups {
1697
2101
  type RequestParams = {
1698
2102
  tenantId: string;
1699
2103
  };
1700
2104
  type RequestQuery = {
2105
+ createdAt?: string;
2106
+ customerIds?: string[];
1701
2107
  /**
1702
2108
  * @default 10
1703
2109
  * @example 10
@@ -1709,14 +2115,12 @@ export declare namespace Admin {
1709
2115
  * @example 1
1710
2116
  */
1711
2117
  page?: number;
1712
- roles?: TenantRoleEnum[];
1713
- search?: string;
1714
2118
  sortBy?: string[];
1715
- status?: TenantUserStatusEnum[];
2119
+ status?: OperationGroupStatusEnum[];
1716
2120
  };
1717
2121
  type RequestBody = never;
1718
2122
  type RequestHeaders = {};
1719
- type ResponseBody = TenantUserEntityPaginatedDto;
2123
+ type ResponseBody = OperationGroupEntityPaginatedDto;
1720
2124
  }
1721
2125
  /**
1722
2126
  * No description
@@ -1757,10 +2161,76 @@ export declare namespace Admin {
1757
2161
  * @name ListTenantWineBottleVintages
1758
2162
  * @request GET:/admin/tenants/{tenantId}/wine-bottle-vintages
1759
2163
  * @secure
1760
- * @response `200` `WineBottleVintageEntityPaginatedDto`
2164
+ * @response `200` `WineBottleVintageEntityPaginatedDto`
2165
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2166
+ */
2167
+ namespace ListTenantWineBottleVintages {
2168
+ type RequestParams = {
2169
+ tenantId: string;
2170
+ };
2171
+ type RequestQuery = {
2172
+ createdAt?: string;
2173
+ /**
2174
+ * @default 10
2175
+ * @example 10
2176
+ */
2177
+ limit?: number;
2178
+ orderBy?: OrderByEnum;
2179
+ /**
2180
+ * @default 1
2181
+ * @example 1
2182
+ */
2183
+ page?: number;
2184
+ search?: string;
2185
+ sortBy?: string[];
2186
+ };
2187
+ type RequestBody = never;
2188
+ type RequestHeaders = {};
2189
+ type ResponseBody = WineBottleVintageEntityPaginatedDto;
2190
+ }
2191
+ /**
2192
+ * No description
2193
+ * @tags Admin Tenant Wine Brands
2194
+ * @name ListTenantWineBrands
2195
+ * @request GET:/admin/tenants/{tenantId}/wine-brands
2196
+ * @secure
2197
+ * @response `200` `WineBrandEntityPaginatedDto`
2198
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2199
+ */
2200
+ namespace ListTenantWineBrands {
2201
+ type RequestParams = {
2202
+ tenantId: string;
2203
+ };
2204
+ type RequestQuery = {
2205
+ createdAt?: string;
2206
+ /**
2207
+ * @default 10
2208
+ * @example 10
2209
+ */
2210
+ limit?: number;
2211
+ orderBy?: OrderByEnum;
2212
+ /**
2213
+ * @default 1
2214
+ * @example 1
2215
+ */
2216
+ page?: number;
2217
+ search?: string;
2218
+ sortBy?: string[];
2219
+ };
2220
+ type RequestBody = never;
2221
+ type RequestHeaders = {};
2222
+ type ResponseBody = WineBrandEntityPaginatedDto;
2223
+ }
2224
+ /**
2225
+ * No description
2226
+ * @tags Admin Tenant Wine Countries
2227
+ * @name ListTenantWineCountries
2228
+ * @request GET:/admin/tenants/{tenantId}/wine-countries
2229
+ * @secure
2230
+ * @response `200` `WineCountryEntityPaginatedDto`
1761
2231
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1762
2232
  */
1763
- namespace ListTenantWineBottleVintages {
2233
+ namespace ListTenantWineCountries {
1764
2234
  type RequestParams = {
1765
2235
  tenantId: string;
1766
2236
  };
@@ -1782,18 +2252,18 @@ export declare namespace Admin {
1782
2252
  };
1783
2253
  type RequestBody = never;
1784
2254
  type RequestHeaders = {};
1785
- type ResponseBody = WineBottleVintageEntityPaginatedDto;
2255
+ type ResponseBody = WineCountryEntityPaginatedDto;
1786
2256
  }
1787
2257
  /**
1788
2258
  * No description
1789
- * @tags Admin Tenant Wine Brands
1790
- * @name ListTenantWineBrands
1791
- * @request GET:/admin/tenants/{tenantId}/wine-brands
2259
+ * @tags Admin Tenant Wine Producers
2260
+ * @name ListTenantWineProducers
2261
+ * @request GET:/admin/tenants/{tenantId}/wine-producers
1792
2262
  * @secure
1793
- * @response `200` `WineBrandEntityPaginatedDto`
2263
+ * @response `200` `WineProducerEntityPaginatedDto`
1794
2264
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1795
2265
  */
1796
- namespace ListTenantWineBrands {
2266
+ namespace ListTenantWineProducers {
1797
2267
  type RequestParams = {
1798
2268
  tenantId: string;
1799
2269
  };
@@ -1815,18 +2285,18 @@ export declare namespace Admin {
1815
2285
  };
1816
2286
  type RequestBody = never;
1817
2287
  type RequestHeaders = {};
1818
- type ResponseBody = WineBrandEntityPaginatedDto;
2288
+ type ResponseBody = WineProducerEntityPaginatedDto;
1819
2289
  }
1820
2290
  /**
1821
2291
  * No description
1822
- * @tags Admin Tenant Wine Producers
1823
- * @name ListTenantWineProducers
1824
- * @request GET:/admin/tenants/{tenantId}/wine-producers
2292
+ * @tags Admin Tenant Wine Regions
2293
+ * @name ListTenantWineRegions
2294
+ * @request GET:/admin/tenants/{tenantId}/wine-regions
1825
2295
  * @secure
1826
- * @response `200` `WineProducerEntityPaginatedDto`
2296
+ * @response `200` `WineRegionEntityPaginatedDto`
1827
2297
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1828
2298
  */
1829
- namespace ListTenantWineProducers {
2299
+ namespace ListTenantWineRegions {
1830
2300
  type RequestParams = {
1831
2301
  tenantId: string;
1832
2302
  };
@@ -1848,7 +2318,7 @@ export declare namespace Admin {
1848
2318
  };
1849
2319
  type RequestBody = never;
1850
2320
  type RequestHeaders = {};
1851
- type ResponseBody = WineProducerEntityPaginatedDto;
2321
+ type ResponseBody = WineRegionEntityPaginatedDto;
1852
2322
  }
1853
2323
  /**
1854
2324
  * No description
@@ -2054,6 +2524,25 @@ export declare namespace Admin {
2054
2524
  type RequestHeaders = {};
2055
2525
  type ResponseBody = WineVineyardEntityPaginatedDto;
2056
2526
  }
2527
+ /**
2528
+ * No description
2529
+ * @tags Admin Tenant Operation Groups
2530
+ * @name ProcessTenantOperationGroup
2531
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/process
2532
+ * @secure
2533
+ * @response `204` `void`
2534
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2535
+ */
2536
+ namespace ProcessTenantOperationGroup {
2537
+ type RequestParams = {
2538
+ groupId: string;
2539
+ tenantId: string;
2540
+ };
2541
+ type RequestQuery = {};
2542
+ type RequestBody = never;
2543
+ type RequestHeaders = {};
2544
+ type ResponseBody = void;
2545
+ }
2057
2546
  /**
2058
2547
  * No description
2059
2548
  * @tags Admin Tenant Cases
@@ -2079,7 +2568,7 @@ export declare namespace Admin {
2079
2568
  * @name UpdateTenantOperationExtraTemplate
2080
2569
  * @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
2081
2570
  * @secure
2082
- * @response `200` `CaseOperationExtraTemplateEntityDto`
2571
+ * @response `200` `OperationExtraTemplateEntityDto`
2083
2572
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2084
2573
  */
2085
2574
  namespace UpdateTenantOperationExtraTemplate {
@@ -2088,9 +2577,9 @@ export declare namespace Admin {
2088
2577
  tenantId: string;
2089
2578
  };
2090
2579
  type RequestQuery = {};
2091
- type RequestBody = UpdateCaseOperationExtraTemplateDto;
2580
+ type RequestBody = UpdateOperationExtraTemplateDto;
2092
2581
  type RequestHeaders = {};
2093
- type ResponseBody = CaseOperationExtraTemplateEntityDto;
2582
+ type ResponseBody = OperationExtraTemplateEntityDto;
2094
2583
  }
2095
2584
  /**
2096
2585
  * No description
@@ -2168,6 +2657,25 @@ export declare namespace Admin {
2168
2657
  type RequestHeaders = {};
2169
2658
  type ResponseBody = WineBrandEntityDto;
2170
2659
  }
2660
+ /**
2661
+ * No description
2662
+ * @tags Admin Tenant Wine Countries
2663
+ * @name UpdateTenantWineCountry
2664
+ * @request PATCH:/admin/tenants/{tenantId}/wine-countries/{countryId}
2665
+ * @secure
2666
+ * @response `200` `WineCountryEntityDto`
2667
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2668
+ */
2669
+ namespace UpdateTenantWineCountry {
2670
+ type RequestParams = {
2671
+ countryId: string;
2672
+ tenantId: string;
2673
+ };
2674
+ type RequestQuery = {};
2675
+ type RequestBody = UpdateNameOnlyEntityDto;
2676
+ type RequestHeaders = {};
2677
+ type ResponseBody = WineCountryEntityDto;
2678
+ }
2171
2679
  /**
2172
2680
  * No description
2173
2681
  * @tags Admin Tenant Wine Producers
@@ -2187,6 +2695,25 @@ export declare namespace Admin {
2187
2695
  type RequestHeaders = {};
2188
2696
  type ResponseBody = WineProducerEntityDto;
2189
2697
  }
2698
+ /**
2699
+ * No description
2700
+ * @tags Admin Tenant Wine Regions
2701
+ * @name UpdateTenantWineRegion
2702
+ * @request PATCH:/admin/tenants/{tenantId}/wine-regions/{regionId}
2703
+ * @secure
2704
+ * @response `200` `WineRegionEntityDto`
2705
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2706
+ */
2707
+ namespace UpdateTenantWineRegion {
2708
+ type RequestParams = {
2709
+ regionId: string;
2710
+ tenantId: string;
2711
+ };
2712
+ type RequestQuery = {};
2713
+ type RequestBody = UpdateNameOnlyEntityDto;
2714
+ type RequestHeaders = {};
2715
+ type ResponseBody = WineRegionEntityDto;
2716
+ }
2190
2717
  /**
2191
2718
  * No description
2192
2719
  * @tags Admin Tenant Wine Styles
@@ -2383,51 +2910,123 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2383
2910
  */
2384
2911
  signIn: (data: SigninDto, params?: RequestParams) => Promise<SigninResponseDto>;
2385
2912
  };
2386
- users: {
2913
+ tenants: {
2914
+ /**
2915
+ * No description
2916
+ *
2917
+ * @tags Tenant Users
2918
+ * @name CreateTenantUser
2919
+ * @request POST:/tenants/{tenantId}/users
2920
+ * @secure
2921
+ * @response `200` `UserEntityDto`
2922
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
2923
+ */
2924
+ createTenantUser: (tenantId: string, data: CreateUserDto, params?: RequestParams) => Promise<UserEntityDto>;
2387
2925
  /**
2388
2926
  * No description
2389
2927
  *
2390
- * @tags Users Addresses
2928
+ * @tags Tenant Users
2391
2929
  * @name CreateUserAddress
2392
- * @request POST:/users/{userId}/addresses
2930
+ * @request POST:/tenants/{tenantId}/users/userId/addresses
2393
2931
  * @secure
2394
2932
  * @response `201` `AddressEntityDto`
2395
2933
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
2396
2934
  */
2397
- createUserAddress: (userId: string, data: CreateAddressDto, params?: RequestParams) => Promise<AddressEntityDto>;
2935
+ createUserAddress: (tenantId: string, userId: string, data: CreateAddressDto, params?: RequestParams) => Promise<AddressEntityDto>;
2936
+ /**
2937
+ * No description
2938
+ *
2939
+ * @tags Tenant Users
2940
+ * @name DeleteTenantUser
2941
+ * @request DELETE:/tenants/{tenantId}/users/{userId}
2942
+ * @secure
2943
+ * @response `204` `void`
2944
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
2945
+ */
2946
+ deleteTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<void>;
2398
2947
  /**
2399
2948
  * No description
2400
2949
  *
2401
- * @tags Users Addresses
2950
+ * @tags Tenant Users
2402
2951
  * @name DeleteUserAddress
2403
- * @request DELETE:/users/{userId}/addresses/{addressId}
2952
+ * @request DELETE:/tenants/{tenantId}/users/userId/addresses/{addressId}
2404
2953
  * @secure
2405
2954
  * @response `204` `void`
2406
2955
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
2407
2956
  */
2408
- deleteUserAddress: (userId: string, addressId: string, params?: RequestParams) => Promise<void>;
2957
+ deleteUserAddress: (tenantId: string, userId: string, addressId: string, params?: RequestParams) => Promise<void>;
2958
+ /**
2959
+ * No description
2960
+ *
2961
+ * @tags Tenant Users
2962
+ * @name DisableTenantUser
2963
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/disable
2964
+ * @secure
2965
+ * @response `204` `void`
2966
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
2967
+ */
2968
+ disableTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<void>;
2969
+ /**
2970
+ * No description
2971
+ *
2972
+ * @tags Tenant Users
2973
+ * @name EnableTenantUser
2974
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/enable
2975
+ * @secure
2976
+ * @response `204` `void`
2977
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
2978
+ */
2979
+ enableTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<void>;
2409
2980
  /**
2410
2981
  * No description
2411
2982
  *
2412
- * @tags Users
2413
- * @name GetUserProfile
2414
- * @request GET:/users/{userId}
2983
+ * @tags Tenant Users
2984
+ * @name GetTenantUser
2985
+ * @request GET:/tenants/{tenantId}/users/{userId}
2415
2986
  * @secure
2416
- * @response `200` `UserEntityWithTenantAccessesDto`
2987
+ * @response `200` `UserEntityDto`
2417
2988
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
2418
2989
  */
2419
- getUserProfile: (userId: string, params?: RequestParams) => Promise<UserEntityWithTenantAccessesDto>;
2990
+ getTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<UserEntityDto>;
2991
+ /**
2992
+ * No description
2993
+ *
2994
+ * @tags Tenant Users
2995
+ * @name ListTenantUsers
2996
+ * @request GET:/tenants/{tenantId}/users
2997
+ * @secure
2998
+ * @response `200` `UserEntityPaginatedDto`
2999
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3000
+ */
3001
+ listTenantUsers: (tenantId: string, query?: {
3002
+ createdAt?: string;
3003
+ /**
3004
+ * @default 10
3005
+ * @example 10
3006
+ */
3007
+ limit?: number;
3008
+ orderBy?: OrderByEnum;
3009
+ /**
3010
+ * @default 1
3011
+ * @example 1
3012
+ */
3013
+ page?: number;
3014
+ roles?: TenantRoleEnum[];
3015
+ search?: string;
3016
+ sortBy?: string[];
3017
+ status?: TenantUserStatusEnum[];
3018
+ }, params?: RequestParams) => Promise<UserEntityPaginatedDto>;
2420
3019
  /**
2421
3020
  * No description
2422
3021
  *
2423
- * @tags Users Addresses
3022
+ * @tags Tenant Users
2424
3023
  * @name ListUserAddresses
2425
- * @request GET:/users/{userId}/addresses
3024
+ * @request GET:/tenants/{tenantId}/users/userId/addresses
2426
3025
  * @secure
2427
3026
  * @response `200` `AddressEntityPaginatedDto`
2428
3027
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
2429
3028
  */
2430
- listUserAddresses: (userId: string, query?: {
3029
+ listUserAddresses: (tenantId: string, userId: string, query?: {
2431
3030
  createdAt?: string;
2432
3031
  /**
2433
3032
  * @default 10
@@ -2446,49 +3045,49 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2446
3045
  /**
2447
3046
  * No description
2448
3047
  *
2449
- * @tags Users
2450
- * @name UpdateUserPassword
2451
- * @request PATCH:/users/{userId}/password
3048
+ * @tags Tenant Users
3049
+ * @name UpdateTenantUser
3050
+ * @request PATCH:/tenants/{tenantId}/users/{userId}
2452
3051
  * @secure
2453
3052
  * @response `200` `UserEntityDto`
2454
3053
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
2455
3054
  */
2456
- updateUserPassword: (userId: string, data: UpdateUserPasswordDto, params?: RequestParams) => Promise<UserEntityDto>;
3055
+ updateTenantUser: (tenantId: string, userId: string, data: UpdateUserDto, params?: RequestParams) => Promise<UserEntityDto>;
2457
3056
  /**
2458
3057
  * No description
2459
3058
  *
2460
- * @tags Users
2461
- * @name UpdateUserProfile
2462
- * @request PATCH:/users/{userId}
3059
+ * @tags Tenant Users
3060
+ * @name UpdateTenantUserPassword
3061
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/password
2463
3062
  * @secure
2464
3063
  * @response `200` `UserEntityDto`
2465
3064
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
2466
3065
  */
2467
- updateUserProfile: (userId: string, data: UpdateUserProfileDto, params?: RequestParams) => Promise<UserEntityDto>;
3066
+ updateTenantUserPassword: (tenantId: string, userId: string, data: UpdateUserPasswordDto, params?: RequestParams) => Promise<UserEntityDto>;
2468
3067
  };
2469
3068
  admin: {
2470
3069
  /**
2471
3070
  * No description
2472
3071
  *
2473
- * @tags Admin Tenant Cases
2474
- * @name AddTenantCaseBatchOperations
2475
- * @request POST:/admin/tenants/{tenantId}/cases/{caseId}/operations/batch
3072
+ * @tags Admin Tenant Operation Groups
3073
+ * @name CancelTenantOperationGroup
3074
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/cancel
2476
3075
  * @secure
2477
- * @response `200` `CaseBatchOperationResponseDto`
2478
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3076
+ * @response `204` `void`
3077
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2479
3078
  */
2480
- addTenantCaseBatchOperations: (tenantId: string, caseId: string, data: CreateBatchCaseOperationsDto, params?: RequestParams) => Promise<CaseBatchOperationResponseDto>;
3079
+ cancelTenantOperationGroup: (tenantId: string, groupId: string, params?: RequestParams) => Promise<void>;
2481
3080
  /**
2482
- * @description Gives some user access to the tenant. If there's no user account attached to this users, it creates a new one
3081
+ * No description
2483
3082
  *
2484
- * @tags Admin Tenant Users
2485
- * @name CreateOrUpdateTenantUserAndPermissionsByUserEmail
2486
- * @request POST:/admin/tenants/{tenantId}/users
3083
+ * @tags Admin Tenant Operation Groups
3084
+ * @name ConfirmTenantOperationGroup
3085
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/confirm
2487
3086
  * @secure
2488
- * @response `200` `TenantUserEntityDto`
3087
+ * @response `204` `void`
2489
3088
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2490
3089
  */
2491
- createOrUpdateTenantUserAndPermissionsByUserEmail: (tenantId: string, data: CreateTenantUserDto, params?: RequestParams) => Promise<TenantUserEntityDto>;
3090
+ confirmTenantOperationGroup: (tenantId: string, groupId: string, params?: RequestParams) => Promise<void>;
2492
3091
  /**
2493
3092
  * No description
2494
3093
  *
@@ -2507,10 +3106,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2507
3106
  * @name CreateTenantOperationExtraTemplate
2508
3107
  * @request POST:/admin/tenants/{tenantId}/operation-extras-templates
2509
3108
  * @secure
2510
- * @response `201` `CaseOperationExtraTemplateEntityDto`
3109
+ * @response `201` `OperationExtraTemplateEntityDto`
2511
3110
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2512
3111
  */
2513
- createTenantOperationExtraTemplate: (tenantId: string, data: CreateCaseOperationExtraTemplateDto, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityDto>;
3112
+ createTenantOperationExtraTemplate: (tenantId: string, data: CreateOperationExtraTemplateDto, params?: RequestParams) => Promise<OperationExtraTemplateEntityDto>;
3113
+ /**
3114
+ * No description
3115
+ *
3116
+ * @tags Admin Tenant Operation Groups
3117
+ * @name CreateTenantOperationGroup
3118
+ * @request POST:/admin/tenants/{tenantId}/operation-groups
3119
+ * @secure
3120
+ * @response `201` `OperationGroupEntityDto`
3121
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3122
+ */
3123
+ createTenantOperationGroup: (tenantId: string, data: CreateOperationGroupDto, params?: RequestParams) => Promise<OperationGroupEntityDto>;
2514
3124
  /**
2515
3125
  * No description
2516
3126
  *
@@ -2555,6 +3165,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2555
3165
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2556
3166
  */
2557
3167
  createTenantWineBrand: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineBrandEntityDto>;
3168
+ /**
3169
+ * No description
3170
+ *
3171
+ * @tags Admin Tenant Wine Countries
3172
+ * @name CreateTenantWineCountry
3173
+ * @request POST:/admin/tenants/{tenantId}/wine-countries
3174
+ * @secure
3175
+ * @response `201` `WineCountryEntityDto`
3176
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3177
+ */
3178
+ createTenantWineCountry: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineCountryEntityDto>;
2558
3179
  /**
2559
3180
  * No description
2560
3181
  *
@@ -2566,6 +3187,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2566
3187
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2567
3188
  */
2568
3189
  createTenantWineProducer: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineProducerEntityDto>;
3190
+ /**
3191
+ * No description
3192
+ *
3193
+ * @tags Admin Tenant Wine Regions
3194
+ * @name CreateTenantWineRegion
3195
+ * @request POST:/admin/tenants/{tenantId}/wine-regions
3196
+ * @secure
3197
+ * @response `201` `WineRegionEntityDto`
3198
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3199
+ */
3200
+ createTenantWineRegion: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineRegionEntityDto>;
2569
3201
  /**
2570
3202
  * No description
2571
3203
  *
@@ -2687,6 +3319,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2687
3319
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2688
3320
  */
2689
3321
  deleteTenantWineBrand: (tenantId: string, brandId: string, params?: RequestParams) => Promise<void>;
3322
+ /**
3323
+ * No description
3324
+ *
3325
+ * @tags Admin Tenant Wine Countries
3326
+ * @name DeleteTenantWineCountry
3327
+ * @request DELETE:/admin/tenants/{tenantId}/wine-countries/{countryId}
3328
+ * @secure
3329
+ * @response `204` `void`
3330
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3331
+ */
3332
+ deleteTenantWineCountry: (tenantId: string, countryId: string, params?: RequestParams) => Promise<void>;
2690
3333
  /**
2691
3334
  * No description
2692
3335
  *
@@ -2698,6 +3341,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2698
3341
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2699
3342
  */
2700
3343
  deleteTenantWineProducer: (tenantId: string, producerId: string, params?: RequestParams) => Promise<void>;
3344
+ /**
3345
+ * No description
3346
+ *
3347
+ * @tags Admin Tenant Wine Regions
3348
+ * @name DeleteTenantWineRegion
3349
+ * @request DELETE:/admin/tenants/{tenantId}/wine-regions/{regionId}
3350
+ * @secure
3351
+ * @response `204` `void`
3352
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3353
+ */
3354
+ deleteTenantWineRegion: (tenantId: string, regionId: string, params?: RequestParams) => Promise<void>;
2701
3355
  /**
2702
3356
  * No description
2703
3357
  *
@@ -2753,28 +3407,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2753
3407
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2754
3408
  */
2755
3409
  deleteTenantWineVineyard: (tenantId: string, vineyardId: string, params?: RequestParams) => Promise<void>;
2756
- /**
2757
- * No description
2758
- *
2759
- * @tags Admin Tenant Users
2760
- * @name DisableTenantUser
2761
- * @request PATCH:/admin/tenants/{tenantId}/users/{userId}/disable
2762
- * @secure
2763
- * @response `204` `void`
2764
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2765
- */
2766
- disableTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<void>;
2767
- /**
2768
- * No description
2769
- *
2770
- * @tags Admin Tenant Users
2771
- * @name EnableTenantUser
2772
- * @request PATCH:/admin/tenants/{tenantId}/users/{userId}/enable
2773
- * @secure
2774
- * @response `204` `void`
2775
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2776
- */
2777
- enableTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<void>;
2778
3410
  /**
2779
3411
  * No description
2780
3412
  *
@@ -2793,10 +3425,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2793
3425
  * @name GetTenantOperationExtraTemplateById
2794
3426
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
2795
3427
  * @secure
2796
- * @response `200` `CaseOperationExtraTemplateEntityDto`
3428
+ * @response `200` `OperationExtraTemplateEntityDto`
3429
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3430
+ */
3431
+ getTenantOperationExtraTemplateById: (tenantId: string, templateId: string, params?: RequestParams) => Promise<OperationExtraTemplateEntityDto>;
3432
+ /**
3433
+ * No description
3434
+ *
3435
+ * @tags Admin Tenant Operation Groups
3436
+ * @name GetTenantOperationGroupById
3437
+ * @request GET:/admin/tenants/{tenantId}/operation-groups/{groupId}
3438
+ * @secure
3439
+ * @response `200` `FullOperationGroupEntityDto`
2797
3440
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2798
3441
  */
2799
- getTenantOperationExtraTemplateById: (tenantId: string, templateId: string, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityDto>;
3442
+ getTenantOperationGroupById: (tenantId: string, groupId: string, params?: RequestParams) => Promise<FullOperationGroupEntityDto>;
2800
3443
  /**
2801
3444
  * No description
2802
3445
  *
@@ -2841,6 +3484,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2841
3484
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2842
3485
  */
2843
3486
  getTenantWineById: (tenantId: string, wineId: string, params?: RequestParams) => Promise<WineEntityDto>;
3487
+ /**
3488
+ * No description
3489
+ *
3490
+ * @tags Admin Tenant Wine Countries
3491
+ * @name GetTenantWineCountryById
3492
+ * @request GET:/admin/tenants/{tenantId}/wine-countries/{countryId}
3493
+ * @secure
3494
+ * @response `200` `WineCountryEntityDto`
3495
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3496
+ */
3497
+ getTenantWineCountryById: (tenantId: string, countryId: string, params?: RequestParams) => Promise<WineCountryEntityDto>;
2844
3498
  /**
2845
3499
  * No description
2846
3500
  *
@@ -2852,6 +3506,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2852
3506
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2853
3507
  */
2854
3508
  getTenantWineProducerById: (tenantId: string, producerId: string, params?: RequestParams) => Promise<WineProducerEntityDto>;
3509
+ /**
3510
+ * No description
3511
+ *
3512
+ * @tags Admin Tenant Wine Regions
3513
+ * @name GetTenantWineRegionById
3514
+ * @request GET:/admin/tenants/{tenantId}/wine-regions/{regionId}
3515
+ * @secure
3516
+ * @response `200` `WineRegionEntityDto`
3517
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3518
+ */
3519
+ getTenantWineRegionById: (tenantId: string, regionId: string, params?: RequestParams) => Promise<WineRegionEntityDto>;
2855
3520
  /**
2856
3521
  * No description
2857
3522
  *
@@ -2974,7 +3639,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2974
3639
  * @name ListTenantOperationExtrasTemplates
2975
3640
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates
2976
3641
  * @secure
2977
- * @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
3642
+ * @response `200` `OperationExtraTemplateEntityPaginatedDto`
2978
3643
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2979
3644
  */
2980
3645
  listTenantOperationExtrasTemplates: (tenantId: string, query?: {
@@ -2992,18 +3657,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2992
3657
  page?: number;
2993
3658
  search?: string;
2994
3659
  sortBy?: string[];
2995
- }, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityPaginatedDto>;
3660
+ }, params?: RequestParams) => Promise<OperationExtraTemplateEntityPaginatedDto>;
2996
3661
  /**
2997
3662
  * No description
2998
3663
  *
2999
- * @tags Admin Tenant Users
3000
- * @name ListTenantUsers
3001
- * @request GET:/admin/tenants/{tenantId}/users
3664
+ * @tags Admin Tenant Operation Groups
3665
+ * @name ListTenantOperationGroups
3666
+ * @request GET:/admin/tenants/{tenantId}/operation-groups
3002
3667
  * @secure
3003
- * @response `200` `TenantUserEntityPaginatedDto`
3004
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3668
+ * @response `200` `OperationGroupEntityPaginatedDto`
3669
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3005
3670
  */
3006
- listTenantUsers: (tenantId: string, query?: {
3671
+ listTenantOperationGroups: (tenantId: string, query?: {
3672
+ createdAt?: string;
3673
+ customerIds?: string[];
3007
3674
  /**
3008
3675
  * @default 10
3009
3676
  * @example 10
@@ -3015,11 +3682,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3015
3682
  * @example 1
3016
3683
  */
3017
3684
  page?: number;
3018
- roles?: TenantRoleEnum[];
3019
- search?: string;
3020
3685
  sortBy?: string[];
3021
- status?: TenantUserStatusEnum[];
3022
- }, params?: RequestParams) => Promise<TenantUserEntityPaginatedDto>;
3686
+ status?: OperationGroupStatusEnum[];
3687
+ }, params?: RequestParams) => Promise<OperationGroupEntityPaginatedDto>;
3023
3688
  /**
3024
3689
  * No description
3025
3690
  *
@@ -3098,6 +3763,32 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3098
3763
  search?: string;
3099
3764
  sortBy?: string[];
3100
3765
  }, params?: RequestParams) => Promise<WineBrandEntityPaginatedDto>;
3766
+ /**
3767
+ * No description
3768
+ *
3769
+ * @tags Admin Tenant Wine Countries
3770
+ * @name ListTenantWineCountries
3771
+ * @request GET:/admin/tenants/{tenantId}/wine-countries
3772
+ * @secure
3773
+ * @response `200` `WineCountryEntityPaginatedDto`
3774
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3775
+ */
3776
+ listTenantWineCountries: (tenantId: string, query?: {
3777
+ createdAt?: string;
3778
+ /**
3779
+ * @default 10
3780
+ * @example 10
3781
+ */
3782
+ limit?: number;
3783
+ orderBy?: OrderByEnum;
3784
+ /**
3785
+ * @default 1
3786
+ * @example 1
3787
+ */
3788
+ page?: number;
3789
+ search?: string;
3790
+ sortBy?: string[];
3791
+ }, params?: RequestParams) => Promise<WineCountryEntityPaginatedDto>;
3101
3792
  /**
3102
3793
  * No description
3103
3794
  *
@@ -3124,6 +3815,32 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3124
3815
  search?: string;
3125
3816
  sortBy?: string[];
3126
3817
  }, params?: RequestParams) => Promise<WineProducerEntityPaginatedDto>;
3818
+ /**
3819
+ * No description
3820
+ *
3821
+ * @tags Admin Tenant Wine Regions
3822
+ * @name ListTenantWineRegions
3823
+ * @request GET:/admin/tenants/{tenantId}/wine-regions
3824
+ * @secure
3825
+ * @response `200` `WineRegionEntityPaginatedDto`
3826
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3827
+ */
3828
+ listTenantWineRegions: (tenantId: string, query?: {
3829
+ createdAt?: string;
3830
+ /**
3831
+ * @default 10
3832
+ * @example 10
3833
+ */
3834
+ limit?: number;
3835
+ orderBy?: OrderByEnum;
3836
+ /**
3837
+ * @default 1
3838
+ * @example 1
3839
+ */
3840
+ page?: number;
3841
+ search?: string;
3842
+ sortBy?: string[];
3843
+ }, params?: RequestParams) => Promise<WineRegionEntityPaginatedDto>;
3127
3844
  /**
3128
3845
  * No description
3129
3846
  *
@@ -3286,6 +4003,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3286
4003
  search?: string;
3287
4004
  sortBy?: string[];
3288
4005
  }, params?: RequestParams) => Promise<WineVineyardEntityPaginatedDto>;
4006
+ /**
4007
+ * No description
4008
+ *
4009
+ * @tags Admin Tenant Operation Groups
4010
+ * @name ProcessTenantOperationGroup
4011
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/process
4012
+ * @secure
4013
+ * @response `204` `void`
4014
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
4015
+ */
4016
+ processTenantOperationGroup: (tenantId: string, groupId: string, params?: RequestParams) => Promise<void>;
3289
4017
  /**
3290
4018
  * No description
3291
4019
  *
@@ -3304,10 +4032,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3304
4032
  * @name UpdateTenantOperationExtraTemplate
3305
4033
  * @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
3306
4034
  * @secure
3307
- * @response `200` `CaseOperationExtraTemplateEntityDto`
4035
+ * @response `200` `OperationExtraTemplateEntityDto`
3308
4036
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3309
4037
  */
3310
- updateTenantOperationExtraTemplate: (tenantId: string, templateId: string, data: UpdateCaseOperationExtraTemplateDto, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityDto>;
4038
+ updateTenantOperationExtraTemplate: (tenantId: string, templateId: string, data: UpdateOperationExtraTemplateDto, params?: RequestParams) => Promise<OperationExtraTemplateEntityDto>;
3311
4039
  /**
3312
4040
  * No description
3313
4041
  *
@@ -3352,6 +4080,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3352
4080
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3353
4081
  */
3354
4082
  updateTenantWineBrand: (tenantId: string, brandId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineBrandEntityDto>;
4083
+ /**
4084
+ * No description
4085
+ *
4086
+ * @tags Admin Tenant Wine Countries
4087
+ * @name UpdateTenantWineCountry
4088
+ * @request PATCH:/admin/tenants/{tenantId}/wine-countries/{countryId}
4089
+ * @secure
4090
+ * @response `200` `WineCountryEntityDto`
4091
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
4092
+ */
4093
+ updateTenantWineCountry: (tenantId: string, countryId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineCountryEntityDto>;
3355
4094
  /**
3356
4095
  * No description
3357
4096
  *
@@ -3363,6 +4102,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3363
4102
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3364
4103
  */
3365
4104
  updateTenantWineProducer: (tenantId: string, producerId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineProducerEntityDto>;
4105
+ /**
4106
+ * No description
4107
+ *
4108
+ * @tags Admin Tenant Wine Regions
4109
+ * @name UpdateTenantWineRegion
4110
+ * @request PATCH:/admin/tenants/{tenantId}/wine-regions/{regionId}
4111
+ * @secure
4112
+ * @response `200` `WineRegionEntityDto`
4113
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
4114
+ */
4115
+ updateTenantWineRegion: (tenantId: string, regionId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineRegionEntityDto>;
3366
4116
  /**
3367
4117
  * No description
3368
4118
  *