@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.
@@ -80,11 +80,39 @@ var __rest = (this && this.__rest) || function (s, e) {
80
80
  }
81
81
  return t;
82
82
  };
83
+ export var CaseOperationLogTypeEnum;
84
+ (function (CaseOperationLogTypeEnum) {
85
+ CaseOperationLogTypeEnum["RequestAccepted"] = "request_accepted";
86
+ CaseOperationLogTypeEnum["StatusChange"] = "status_change";
87
+ })(CaseOperationLogTypeEnum || (CaseOperationLogTypeEnum = {}));
88
+ export var CaseOperationStatusEnum;
89
+ (function (CaseOperationStatusEnum) {
90
+ CaseOperationStatusEnum["OnHold"] = "on_hold";
91
+ CaseOperationStatusEnum["Confirmed"] = "confirmed";
92
+ CaseOperationStatusEnum["Processed"] = "processed";
93
+ CaseOperationStatusEnum["Cancelled"] = "cancelled";
94
+ })(CaseOperationStatusEnum || (CaseOperationStatusEnum = {}));
95
+ export var CaseOperationTypesEnum;
96
+ (function (CaseOperationTypesEnum) {
97
+ CaseOperationTypesEnum["Deposit"] = "deposit";
98
+ CaseOperationTypesEnum["Withdrawal"] = "withdrawal";
99
+ })(CaseOperationTypesEnum || (CaseOperationTypesEnum = {}));
100
+ export var CreateOnlyCaseOperationStatusEnum;
101
+ (function (CreateOnlyCaseOperationStatusEnum) {
102
+ CreateOnlyCaseOperationStatusEnum["OnHold"] = "on_hold";
103
+ CreateOnlyCaseOperationStatusEnum["Confirmed"] = "confirmed";
104
+ CreateOnlyCaseOperationStatusEnum["Processed"] = "processed";
105
+ })(CreateOnlyCaseOperationStatusEnum || (CreateOnlyCaseOperationStatusEnum = {}));
83
106
  export var OrderByEnum;
84
107
  (function (OrderByEnum) {
85
108
  OrderByEnum["ASC"] = "ASC";
86
109
  OrderByEnum["DESC"] = "DESC";
87
110
  })(OrderByEnum || (OrderByEnum = {}));
111
+ export var PhoneTypeEnum;
112
+ (function (PhoneTypeEnum) {
113
+ PhoneTypeEnum["Fixed"] = "fixed";
114
+ PhoneTypeEnum["Mobile"] = "mobile";
115
+ })(PhoneTypeEnum || (PhoneTypeEnum = {}));
88
116
  export var TenantRoleEnum;
89
117
  (function (TenantRoleEnum) {
90
118
  TenantRoleEnum["Operator"] = "operator";
@@ -265,50 +293,190 @@ var Api = /** @class */ (function (_super) {
265
293
  return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
266
294
  },
267
295
  };
268
- _this.users = {
296
+ _this.tenants = {
269
297
  /**
270
298
  * No description
271
299
  *
272
- * @tags Users
273
- * @name UpdateUserPassword
274
- * @request PATCH:/users/{userId}/password
300
+ * @tags Tenant Users
301
+ * @name CreateTenantUser
302
+ * @request POST:/tenants/{tenantId}/users
275
303
  * @secure
276
304
  * @response `200` `UserEntityDto`
305
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
306
+ */
307
+ createTenantUser: function (tenantId, data, params) {
308
+ if (params === void 0) { params = {}; }
309
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
310
+ },
311
+ /**
312
+ * No description
313
+ *
314
+ * @tags Tenant Users
315
+ * @name CreateUserAddress
316
+ * @request POST:/tenants/{tenantId}/users/userId/addresses
317
+ * @secure
318
+ * @response `201` `AddressEntityDto`
319
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
320
+ */
321
+ createUserAddress: function (tenantId, userId, data, params) {
322
+ if (params === void 0) { params = {}; }
323
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
324
+ },
325
+ /**
326
+ * No description
327
+ *
328
+ * @tags Tenant Users
329
+ * @name DeleteTenantUser
330
+ * @request DELETE:/tenants/{tenantId}/users/{userId}
331
+ * @secure
332
+ * @response `204` `void`
333
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
334
+ */
335
+ deleteTenantUser: function (tenantId, userId, params) {
336
+ if (params === void 0) { params = {}; }
337
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "DELETE", secure: true }, params));
338
+ },
339
+ /**
340
+ * No description
341
+ *
342
+ * @tags Tenant Users
343
+ * @name DeleteUserAddress
344
+ * @request DELETE:/tenants/{tenantId}/users/userId/addresses/{addressId}
345
+ * @secure
346
+ * @response `204` `void`
347
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
348
+ */
349
+ deleteUserAddress: function (tenantId, userId, addressId, params) {
350
+ if (params === void 0) { params = {}; }
351
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses/").concat(addressId), method: "DELETE", secure: true }, params));
352
+ },
353
+ /**
354
+ * No description
355
+ *
356
+ * @tags Tenant Users
357
+ * @name DisableTenantUser
358
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/disable
359
+ * @secure
360
+ * @response `204` `void`
361
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
362
+ */
363
+ disableTenantUser: function (tenantId, userId, params) {
364
+ if (params === void 0) { params = {}; }
365
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/disable"), method: "PATCH", secure: true }, params));
366
+ },
367
+ /**
368
+ * No description
369
+ *
370
+ * @tags Tenant Users
371
+ * @name EnableTenantUser
372
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/enable
373
+ * @secure
374
+ * @response `204` `void`
375
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
376
+ */
377
+ enableTenantUser: function (tenantId, userId, params) {
378
+ if (params === void 0) { params = {}; }
379
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
380
+ },
381
+ /**
382
+ * No description
383
+ *
384
+ * @tags Tenant Users
385
+ * @name GetTenantUser
386
+ * @request GET:/tenants/{tenantId}/users/{userId}
387
+ * @secure
388
+ * @response `200` `UserEntityDto`
389
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
390
+ */
391
+ getTenantUser: function (tenantId, userId, params) {
392
+ if (params === void 0) { params = {}; }
393
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "GET", secure: true, format: "json" }, params));
394
+ },
395
+ /**
396
+ * No description
397
+ *
398
+ * @tags Tenant Users
399
+ * @name ListTenantUsers
400
+ * @request GET:/tenants/{tenantId}/users
401
+ * @secure
402
+ * @response `200` `UserEntityPaginatedDto`
403
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
404
+ */
405
+ listTenantUsers: function (tenantId, query, params) {
406
+ if (params === void 0) { params = {}; }
407
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users"), method: "GET", query: query, secure: true, format: "json" }, params));
408
+ },
409
+ /**
410
+ * No description
411
+ *
412
+ * @tags Tenant Users
413
+ * @name ListUserAddresses
414
+ * @request GET:/tenants/{tenantId}/users/userId/addresses
415
+ * @secure
416
+ * @response `200` `AddressEntityPaginatedDto`
277
417
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
278
418
  */
279
- updateUserPassword: function (userId, data, params) {
419
+ listUserAddresses: function (tenantId, userId, query, params) {
280
420
  if (params === void 0) { params = {}; }
281
- return _this.request(__assign({ path: "/users/".concat(userId, "/password"), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
421
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
282
422
  },
283
423
  /**
284
424
  * No description
285
425
  *
286
- * @tags Users
287
- * @name UpdateUserProfile
288
- * @request PATCH:/users/{userId}
426
+ * @tags Tenant Users
427
+ * @name UpdateTenantUser
428
+ * @request PATCH:/tenants/{tenantId}/users/{userId}
289
429
  * @secure
290
430
  * @response `200` `UserEntityDto`
291
431
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
292
432
  */
293
- updateUserProfile: function (userId, data, params) {
433
+ updateTenantUser: function (tenantId, userId, data, params) {
294
434
  if (params === void 0) { params = {}; }
295
- return _this.request(__assign({ path: "/users/".concat(userId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
435
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
436
+ },
437
+ /**
438
+ * No description
439
+ *
440
+ * @tags Tenant Users
441
+ * @name UpdateTenantUserPassword
442
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/password
443
+ * @secure
444
+ * @response `200` `UserEntityDto`
445
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
446
+ */
447
+ updateTenantUserPassword: function (tenantId, userId, data, params) {
448
+ if (params === void 0) { params = {}; }
449
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/password"), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
296
450
  },
297
451
  };
298
452
  _this.admin = {
299
453
  /**
300
- * @description Gives some user access to the tenant. If there's no user account attached to this users, it creates a new one
454
+ * No description
301
455
  *
302
- * @tags Admin Tenant Users
303
- * @name CreateOrUpdateTenantUserAndPermissionsByUserEmail
304
- * @request POST:/admin/tenants/{tenantId}/users
456
+ * @tags Admin Tenant Cases
457
+ * @name AddTenantCaseBatchOperations
458
+ * @request POST:/admin/tenants/{tenantId}/cases/{caseId}/operations/batch
305
459
  * @secure
306
- * @response `200` `TenantUserEntityDto`
460
+ * @response `200` `CaseBatchOperationResponseDto`
461
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
462
+ */
463
+ addTenantCaseBatchOperations: function (tenantId, caseId, data, params) {
464
+ if (params === void 0) { params = {}; }
465
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId, "/operations/batch"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
466
+ },
467
+ /**
468
+ * No description
469
+ *
470
+ * @tags Admin Tenant Cases
471
+ * @name CreateTenantCase
472
+ * @request POST:/admin/tenants/{tenantId}/cases
473
+ * @secure
474
+ * @response `201` `CaseEntityDto`
307
475
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
308
476
  */
309
- createOrUpdateTenantUserAndPermissionsByUserEmail: function (tenantId, data, params) {
477
+ createTenantCase: function (tenantId, data, params) {
310
478
  if (params === void 0) { params = {}; }
311
- return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
479
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
312
480
  },
313
481
  /**
314
482
  * No description
@@ -380,6 +548,20 @@ var Api = /** @class */ (function (_super) {
380
548
  if (params === void 0) { params = {}; }
381
549
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
382
550
  },
551
+ /**
552
+ * No description
553
+ *
554
+ * @tags Admin Tenant Wine Countries
555
+ * @name CreateTenantWineCountry
556
+ * @request POST:/admin/tenants/{tenantId}/wine-countries
557
+ * @secure
558
+ * @response `201` `WineCountryEntityDto`
559
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
560
+ */
561
+ createTenantWineCountry: function (tenantId, data, params) {
562
+ if (params === void 0) { params = {}; }
563
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
564
+ },
383
565
  /**
384
566
  * No description
385
567
  *
@@ -394,6 +576,20 @@ var Api = /** @class */ (function (_super) {
394
576
  if (params === void 0) { params = {}; }
395
577
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
396
578
  },
579
+ /**
580
+ * No description
581
+ *
582
+ * @tags Admin Tenant Wine Regions
583
+ * @name CreateTenantWineRegion
584
+ * @request POST:/admin/tenants/{tenantId}/wine-regions
585
+ * @secure
586
+ * @response `201` `WineRegionEntityDto`
587
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
588
+ */
589
+ createTenantWineRegion: function (tenantId, data, params) {
590
+ if (params === void 0) { params = {}; }
591
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
592
+ },
397
593
  /**
398
594
  * No description
399
595
  *
@@ -464,6 +660,20 @@ var Api = /** @class */ (function (_super) {
464
660
  if (params === void 0) { params = {}; }
465
661
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
466
662
  },
663
+ /**
664
+ * No description
665
+ *
666
+ * @tags Admin Tenant Cases
667
+ * @name DeleteTenantCase
668
+ * @request DELETE:/admin/tenants/{tenantId}/cases/{caseId}
669
+ * @secure
670
+ * @response `204` `void`
671
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
672
+ */
673
+ deleteTenantCase: function (tenantId, caseId, params) {
674
+ if (params === void 0) { params = {}; }
675
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId), method: "DELETE", secure: true }, params));
676
+ },
467
677
  /**
468
678
  * No description
469
679
  *
@@ -534,6 +744,20 @@ var Api = /** @class */ (function (_super) {
534
744
  if (params === void 0) { params = {}; }
535
745
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands/").concat(brandId), method: "DELETE", secure: true }, params));
536
746
  },
747
+ /**
748
+ * No description
749
+ *
750
+ * @tags Admin Tenant Wine Countries
751
+ * @name DeleteTenantWineCountry
752
+ * @request DELETE:/admin/tenants/{tenantId}/wine-countries/{countryId}
753
+ * @secure
754
+ * @response `204` `void`
755
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
756
+ */
757
+ deleteTenantWineCountry: function (tenantId, countryId, params) {
758
+ if (params === void 0) { params = {}; }
759
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries/").concat(countryId), method: "DELETE", secure: true }, params));
760
+ },
537
761
  /**
538
762
  * No description
539
763
  *
@@ -548,6 +772,20 @@ var Api = /** @class */ (function (_super) {
548
772
  if (params === void 0) { params = {}; }
549
773
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "DELETE", secure: true }, params));
550
774
  },
775
+ /**
776
+ * No description
777
+ *
778
+ * @tags Admin Tenant Wine Regions
779
+ * @name DeleteTenantWineRegion
780
+ * @request DELETE:/admin/tenants/{tenantId}/wine-regions/{regionId}
781
+ * @secure
782
+ * @response `204` `void`
783
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
784
+ */
785
+ deleteTenantWineRegion: function (tenantId, regionId, params) {
786
+ if (params === void 0) { params = {}; }
787
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions/").concat(regionId), method: "DELETE", secure: true }, params));
788
+ },
551
789
  /**
552
790
  * No description
553
791
  *
@@ -621,30 +859,16 @@ var Api = /** @class */ (function (_super) {
621
859
  /**
622
860
  * No description
623
861
  *
624
- * @tags Admin Tenant Users
625
- * @name DisableTenantUser
626
- * @request PATCH:/admin/tenants/{tenantId}/users/{userId}/disable
862
+ * @tags Admin Tenant Cases
863
+ * @name GetTenantCaseById
864
+ * @request GET:/admin/tenants/{tenantId}/cases/{caseId}
627
865
  * @secure
628
- * @response `204` `void`
629
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
866
+ * @response `200` `CaseEntityDto`
867
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
630
868
  */
631
- disableTenantUser: function (tenantId, userId, params) {
869
+ getTenantCaseById: function (tenantId, caseId, params) {
632
870
  if (params === void 0) { params = {}; }
633
- return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/disable"), method: "PATCH", secure: true }, params));
634
- },
635
- /**
636
- * No description
637
- *
638
- * @tags Admin Tenant Users
639
- * @name EnableTenantUser
640
- * @request PATCH:/admin/tenants/{tenantId}/users/{userId}/enable
641
- * @secure
642
- * @response `204` `void`
643
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
644
- */
645
- enableTenantUser: function (tenantId, userId, params) {
646
- if (params === void 0) { params = {}; }
647
- return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
871
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId), method: "GET", secure: true, format: "json" }, params));
648
872
  },
649
873
  /**
650
874
  * No description
@@ -716,6 +940,20 @@ var Api = /** @class */ (function (_super) {
716
940
  if (params === void 0) { params = {}; }
717
941
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines/").concat(wineId), method: "GET", secure: true, format: "json" }, params));
718
942
  },
943
+ /**
944
+ * No description
945
+ *
946
+ * @tags Admin Tenant Wine Countries
947
+ * @name GetTenantWineCountryById
948
+ * @request GET:/admin/tenants/{tenantId}/wine-countries/{countryId}
949
+ * @secure
950
+ * @response `200` `WineCountryEntityDto`
951
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
952
+ */
953
+ getTenantWineCountryById: function (tenantId, countryId, params) {
954
+ if (params === void 0) { params = {}; }
955
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries/").concat(countryId), method: "GET", secure: true, format: "json" }, params));
956
+ },
719
957
  /**
720
958
  * No description
721
959
  *
@@ -730,6 +968,20 @@ var Api = /** @class */ (function (_super) {
730
968
  if (params === void 0) { params = {}; }
731
969
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "GET", secure: true, format: "json" }, params));
732
970
  },
971
+ /**
972
+ * No description
973
+ *
974
+ * @tags Admin Tenant Wine Regions
975
+ * @name GetTenantWineRegionById
976
+ * @request GET:/admin/tenants/{tenantId}/wine-regions/{regionId}
977
+ * @secure
978
+ * @response `200` `WineRegionEntityDto`
979
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
980
+ */
981
+ getTenantWineRegionById: function (tenantId, regionId, params) {
982
+ if (params === void 0) { params = {}; }
983
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions/").concat(regionId), method: "GET", secure: true, format: "json" }, params));
984
+ },
733
985
  /**
734
986
  * No description
735
987
  *
@@ -803,30 +1055,44 @@ var Api = /** @class */ (function (_super) {
803
1055
  /**
804
1056
  * No description
805
1057
  *
806
- * @tags Admin Tenant Operation Extras Templates
807
- * @name ListTenantOperationExtrasTemplates
808
- * @request GET:/admin/tenants/{tenantId}/operation-extras-templates
1058
+ * @tags Admin Tenant Cases
1059
+ * @name ListTenantCaseInventory
1060
+ * @request GET:/admin/tenants/{tenantId}/cases/{caseId}/inventory
809
1061
  * @secure
810
- * @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
811
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1062
+ * @response `200` `CaseWineInventoryItemEntityPaginatedDto`
1063
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
812
1064
  */
813
- listTenantOperationExtrasTemplates: function (tenantId, query, params) {
1065
+ listTenantCaseInventory: function (tenantId, caseId, query, params) {
814
1066
  if (params === void 0) { params = {}; }
815
- return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "GET", query: query, secure: true, format: "json" }, params));
1067
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
816
1068
  },
817
1069
  /**
818
1070
  * No description
819
1071
  *
820
- * @tags Admin Tenant Users
821
- * @name ListTenantUsers
822
- * @request GET:/admin/tenants/{tenantId}/users
1072
+ * @tags Admin Tenant Cases
1073
+ * @name ListTenantCases
1074
+ * @request GET:/admin/tenants/{tenantId}/cases
823
1075
  * @secure
824
- * @response `200` `TenantUserEntityPaginatedDto`
825
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1076
+ * @response `200` `CaseEntityPaginatedDto`
1077
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
826
1078
  */
827
- listTenantUsers: function (tenantId, query, params) {
1079
+ listTenantCases: function (tenantId, query, params) {
1080
+ if (params === void 0) { params = {}; }
1081
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases"), method: "GET", query: query, secure: true, format: "json" }, params));
1082
+ },
1083
+ /**
1084
+ * No description
1085
+ *
1086
+ * @tags Admin Tenant Operation Extras Templates
1087
+ * @name ListTenantOperationExtrasTemplates
1088
+ * @request GET:/admin/tenants/{tenantId}/operation-extras-templates
1089
+ * @secure
1090
+ * @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
1091
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1092
+ */
1093
+ listTenantOperationExtrasTemplates: function (tenantId, query, params) {
828
1094
  if (params === void 0) { params = {}; }
829
- return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users"), method: "GET", query: query, secure: true, format: "json" }, params));
1095
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "GET", query: query, secure: true, format: "json" }, params));
830
1096
  },
831
1097
  /**
832
1098
  * No description
@@ -870,6 +1136,20 @@ var Api = /** @class */ (function (_super) {
870
1136
  if (params === void 0) { params = {}; }
871
1137
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands"), method: "GET", query: query, secure: true, format: "json" }, params));
872
1138
  },
1139
+ /**
1140
+ * No description
1141
+ *
1142
+ * @tags Admin Tenant Wine Countries
1143
+ * @name ListTenantWineCountries
1144
+ * @request GET:/admin/tenants/{tenantId}/wine-countries
1145
+ * @secure
1146
+ * @response `200` `WineCountryEntityPaginatedDto`
1147
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1148
+ */
1149
+ listTenantWineCountries: function (tenantId, query, params) {
1150
+ if (params === void 0) { params = {}; }
1151
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries"), method: "GET", query: query, secure: true, format: "json" }, params));
1152
+ },
873
1153
  /**
874
1154
  * No description
875
1155
  *
@@ -884,6 +1164,20 @@ var Api = /** @class */ (function (_super) {
884
1164
  if (params === void 0) { params = {}; }
885
1165
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers"), method: "GET", query: query, secure: true, format: "json" }, params));
886
1166
  },
1167
+ /**
1168
+ * No description
1169
+ *
1170
+ * @tags Admin Tenant Wine Regions
1171
+ * @name ListTenantWineRegions
1172
+ * @request GET:/admin/tenants/{tenantId}/wine-regions
1173
+ * @secure
1174
+ * @response `200` `WineRegionEntityPaginatedDto`
1175
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1176
+ */
1177
+ listTenantWineRegions: function (tenantId, query, params) {
1178
+ if (params === void 0) { params = {}; }
1179
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions"), method: "GET", query: query, secure: true, format: "json" }, params));
1180
+ },
887
1181
  /**
888
1182
  * No description
889
1183
  *
@@ -968,6 +1262,20 @@ var Api = /** @class */ (function (_super) {
968
1262
  if (params === void 0) { params = {}; }
969
1263
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
970
1264
  },
1265
+ /**
1266
+ * No description
1267
+ *
1268
+ * @tags Admin Tenant Cases
1269
+ * @name UpdateTenantCase
1270
+ * @request PATCH:/admin/tenants/{tenantId}/cases/{caseId}
1271
+ * @secure
1272
+ * @response `200` `CaseEntityDto`
1273
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1274
+ */
1275
+ updateTenantCase: function (tenantId, caseId, data, params) {
1276
+ if (params === void 0) { params = {}; }
1277
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1278
+ },
971
1279
  /**
972
1280
  * No description
973
1281
  *
@@ -1038,6 +1346,20 @@ var Api = /** @class */ (function (_super) {
1038
1346
  if (params === void 0) { params = {}; }
1039
1347
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands/").concat(brandId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1040
1348
  },
1349
+ /**
1350
+ * No description
1351
+ *
1352
+ * @tags Admin Tenant Wine Countries
1353
+ * @name UpdateTenantWineCountry
1354
+ * @request PATCH:/admin/tenants/{tenantId}/wine-countries/{countryId}
1355
+ * @secure
1356
+ * @response `200` `WineCountryEntityDto`
1357
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1358
+ */
1359
+ updateTenantWineCountry: function (tenantId, countryId, data, params) {
1360
+ if (params === void 0) { params = {}; }
1361
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries/").concat(countryId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1362
+ },
1041
1363
  /**
1042
1364
  * No description
1043
1365
  *
@@ -1052,6 +1374,20 @@ var Api = /** @class */ (function (_super) {
1052
1374
  if (params === void 0) { params = {}; }
1053
1375
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1054
1376
  },
1377
+ /**
1378
+ * No description
1379
+ *
1380
+ * @tags Admin Tenant Wine Regions
1381
+ * @name UpdateTenantWineRegion
1382
+ * @request PATCH:/admin/tenants/{tenantId}/wine-regions/{regionId}
1383
+ * @secure
1384
+ * @response `200` `WineRegionEntityDto`
1385
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1386
+ */
1387
+ updateTenantWineRegion: function (tenantId, regionId, data, params) {
1388
+ if (params === void 0) { params = {}; }
1389
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions/").concat(regionId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1390
+ },
1055
1391
  /**
1056
1392
  * No description
1057
1393
  *