@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.
@@ -85,7 +85,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
85
85
  return (mod && mod.__esModule) ? mod : { "default": mod };
86
86
  };
87
87
  Object.defineProperty(exports, "__esModule", { value: true });
88
- exports.Api = exports.HttpClient = exports.ContentType = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.OrderByEnum = exports.CreateOnlyCaseOperationStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
88
+ exports.Api = exports.HttpClient = exports.ContentType = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.PhoneTypeEnum = exports.OrderByEnum = exports.OperationGroupStatusEnum = exports.CreateOnlyOperationGroupStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
89
89
  var CaseOperationLogTypeEnum;
90
90
  (function (CaseOperationLogTypeEnum) {
91
91
  CaseOperationLogTypeEnum["RequestAccepted"] = "request_accepted";
@@ -103,17 +103,29 @@ var CaseOperationTypesEnum;
103
103
  CaseOperationTypesEnum["Deposit"] = "deposit";
104
104
  CaseOperationTypesEnum["Withdrawal"] = "withdrawal";
105
105
  })(CaseOperationTypesEnum = exports.CaseOperationTypesEnum || (exports.CaseOperationTypesEnum = {}));
106
- var CreateOnlyCaseOperationStatusEnum;
107
- (function (CreateOnlyCaseOperationStatusEnum) {
108
- CreateOnlyCaseOperationStatusEnum["OnHold"] = "on_hold";
109
- CreateOnlyCaseOperationStatusEnum["Confirmed"] = "confirmed";
110
- CreateOnlyCaseOperationStatusEnum["Processed"] = "processed";
111
- })(CreateOnlyCaseOperationStatusEnum = exports.CreateOnlyCaseOperationStatusEnum || (exports.CreateOnlyCaseOperationStatusEnum = {}));
106
+ var CreateOnlyOperationGroupStatusEnum;
107
+ (function (CreateOnlyOperationGroupStatusEnum) {
108
+ CreateOnlyOperationGroupStatusEnum["OnHold"] = "on_hold";
109
+ CreateOnlyOperationGroupStatusEnum["Confirmed"] = "confirmed";
110
+ CreateOnlyOperationGroupStatusEnum["Processed"] = "processed";
111
+ })(CreateOnlyOperationGroupStatusEnum = exports.CreateOnlyOperationGroupStatusEnum || (exports.CreateOnlyOperationGroupStatusEnum = {}));
112
+ var OperationGroupStatusEnum;
113
+ (function (OperationGroupStatusEnum) {
114
+ OperationGroupStatusEnum["OnHold"] = "on_hold";
115
+ OperationGroupStatusEnum["Confirmed"] = "confirmed";
116
+ OperationGroupStatusEnum["Processed"] = "processed";
117
+ OperationGroupStatusEnum["Cancelled"] = "cancelled";
118
+ })(OperationGroupStatusEnum = exports.OperationGroupStatusEnum || (exports.OperationGroupStatusEnum = {}));
112
119
  var OrderByEnum;
113
120
  (function (OrderByEnum) {
114
121
  OrderByEnum["ASC"] = "ASC";
115
122
  OrderByEnum["DESC"] = "DESC";
116
123
  })(OrderByEnum = exports.OrderByEnum || (exports.OrderByEnum = {}));
124
+ var PhoneTypeEnum;
125
+ (function (PhoneTypeEnum) {
126
+ PhoneTypeEnum["Fixed"] = "fixed";
127
+ PhoneTypeEnum["Mobile"] = "mobile";
128
+ })(PhoneTypeEnum = exports.PhoneTypeEnum || (exports.PhoneTypeEnum = {}));
117
129
  var TenantRoleEnum;
118
130
  (function (TenantRoleEnum) {
119
131
  TenantRoleEnum["Operator"] = "operator";
@@ -294,120 +306,190 @@ var Api = /** @class */ (function (_super) {
294
306
  return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
295
307
  },
296
308
  };
297
- _this.users = {
309
+ _this.tenants = {
298
310
  /**
299
311
  * No description
300
312
  *
301
- * @tags Users Addresses
313
+ * @tags Tenant Users
314
+ * @name CreateTenantUser
315
+ * @request POST:/tenants/{tenantId}/users
316
+ * @secure
317
+ * @response `200` `UserEntityDto`
318
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
319
+ */
320
+ createTenantUser: function (tenantId, data, params) {
321
+ if (params === void 0) { params = {}; }
322
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
323
+ },
324
+ /**
325
+ * No description
326
+ *
327
+ * @tags Tenant Users
302
328
  * @name CreateUserAddress
303
- * @request POST:/users/{userId}/addresses
329
+ * @request POST:/tenants/{tenantId}/users/userId/addresses
304
330
  * @secure
305
331
  * @response `201` `AddressEntityDto`
306
332
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
307
333
  */
308
- createUserAddress: function (userId, data, params) {
334
+ createUserAddress: function (tenantId, userId, data, params) {
335
+ if (params === void 0) { params = {}; }
336
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
337
+ },
338
+ /**
339
+ * No description
340
+ *
341
+ * @tags Tenant Users
342
+ * @name DeleteTenantUser
343
+ * @request DELETE:/tenants/{tenantId}/users/{userId}
344
+ * @secure
345
+ * @response `204` `void`
346
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
347
+ */
348
+ deleteTenantUser: function (tenantId, userId, params) {
309
349
  if (params === void 0) { params = {}; }
310
- return _this.request(__assign({ path: "/users/".concat(userId, "/addresses"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
350
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "DELETE", secure: true }, params));
311
351
  },
312
352
  /**
313
353
  * No description
314
354
  *
315
- * @tags Users Addresses
355
+ * @tags Tenant Users
316
356
  * @name DeleteUserAddress
317
- * @request DELETE:/users/{userId}/addresses/{addressId}
357
+ * @request DELETE:/tenants/{tenantId}/users/userId/addresses/{addressId}
318
358
  * @secure
319
359
  * @response `204` `void`
320
360
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
321
361
  */
322
- deleteUserAddress: function (userId, addressId, params) {
362
+ deleteUserAddress: function (tenantId, userId, addressId, params) {
323
363
  if (params === void 0) { params = {}; }
324
- return _this.request(__assign({ path: "/users/".concat(userId, "/addresses/").concat(addressId), method: "DELETE", secure: true }, params));
364
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses/").concat(addressId), method: "DELETE", secure: true }, params));
325
365
  },
326
366
  /**
327
367
  * No description
328
368
  *
329
- * @tags Users
330
- * @name GetUserProfile
331
- * @request GET:/users/{userId}
369
+ * @tags Tenant Users
370
+ * @name DisableTenantUser
371
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/disable
332
372
  * @secure
333
- * @response `200` `UserEntityWithTenantAccessesDto`
373
+ * @response `204` `void`
374
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
375
+ */
376
+ disableTenantUser: function (tenantId, userId, params) {
377
+ if (params === void 0) { params = {}; }
378
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/disable"), method: "PATCH", secure: true }, params));
379
+ },
380
+ /**
381
+ * No description
382
+ *
383
+ * @tags Tenant Users
384
+ * @name EnableTenantUser
385
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/enable
386
+ * @secure
387
+ * @response `204` `void`
388
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
389
+ */
390
+ enableTenantUser: function (tenantId, userId, params) {
391
+ if (params === void 0) { params = {}; }
392
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
393
+ },
394
+ /**
395
+ * No description
396
+ *
397
+ * @tags Tenant Users
398
+ * @name GetTenantUser
399
+ * @request GET:/tenants/{tenantId}/users/{userId}
400
+ * @secure
401
+ * @response `200` `UserEntityDto`
334
402
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
335
403
  */
336
- getUserProfile: function (userId, params) {
404
+ getTenantUser: function (tenantId, userId, params) {
405
+ if (params === void 0) { params = {}; }
406
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "GET", secure: true, format: "json" }, params));
407
+ },
408
+ /**
409
+ * No description
410
+ *
411
+ * @tags Tenant Users
412
+ * @name ListTenantUsers
413
+ * @request GET:/tenants/{tenantId}/users
414
+ * @secure
415
+ * @response `200` `UserEntityPaginatedDto`
416
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
417
+ */
418
+ listTenantUsers: function (tenantId, query, params) {
337
419
  if (params === void 0) { params = {}; }
338
- return _this.request(__assign({ path: "/users/".concat(userId), method: "GET", secure: true, format: "json" }, params));
420
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users"), method: "GET", query: query, secure: true, format: "json" }, params));
339
421
  },
340
422
  /**
341
423
  * No description
342
424
  *
343
- * @tags Users Addresses
425
+ * @tags Tenant Users
344
426
  * @name ListUserAddresses
345
- * @request GET:/users/{userId}/addresses
427
+ * @request GET:/tenants/{tenantId}/users/userId/addresses
346
428
  * @secure
347
429
  * @response `200` `AddressEntityPaginatedDto`
348
430
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
349
431
  */
350
- listUserAddresses: function (userId, query, params) {
432
+ listUserAddresses: function (tenantId, userId, query, params) {
351
433
  if (params === void 0) { params = {}; }
352
- return _this.request(__assign({ path: "/users/".concat(userId, "/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
434
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
353
435
  },
354
436
  /**
355
437
  * No description
356
438
  *
357
- * @tags Users
358
- * @name UpdateUserPassword
359
- * @request PATCH:/users/{userId}/password
439
+ * @tags Tenant Users
440
+ * @name UpdateTenantUser
441
+ * @request PATCH:/tenants/{tenantId}/users/{userId}
360
442
  * @secure
361
443
  * @response `200` `UserEntityDto`
362
444
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
363
445
  */
364
- updateUserPassword: function (userId, data, params) {
446
+ updateTenantUser: function (tenantId, userId, data, params) {
365
447
  if (params === void 0) { params = {}; }
366
- return _this.request(__assign({ path: "/users/".concat(userId, "/password"), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
448
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
367
449
  },
368
450
  /**
369
451
  * No description
370
452
  *
371
- * @tags Users
372
- * @name UpdateUserProfile
373
- * @request PATCH:/users/{userId}
453
+ * @tags Tenant Users
454
+ * @name UpdateTenantUserPassword
455
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/password
374
456
  * @secure
375
457
  * @response `200` `UserEntityDto`
376
458
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
377
459
  */
378
- updateUserProfile: function (userId, data, params) {
460
+ updateTenantUserPassword: function (tenantId, userId, data, params) {
379
461
  if (params === void 0) { params = {}; }
380
- return _this.request(__assign({ path: "/users/".concat(userId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
462
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/password"), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
381
463
  },
382
464
  };
383
465
  _this.admin = {
384
466
  /**
385
467
  * No description
386
468
  *
387
- * @tags Admin Tenant Cases
388
- * @name AddTenantCaseBatchOperations
389
- * @request POST:/admin/tenants/{tenantId}/cases/{caseId}/operations/batch
469
+ * @tags Admin Tenant Operation Groups
470
+ * @name CancelTenantOperationGroup
471
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/cancel
390
472
  * @secure
391
- * @response `200` `CaseBatchOperationResponseDto`
392
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
473
+ * @response `204` `void`
474
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
393
475
  */
394
- addTenantCaseBatchOperations: function (tenantId, caseId, data, params) {
476
+ cancelTenantOperationGroup: function (tenantId, groupId, params) {
395
477
  if (params === void 0) { params = {}; }
396
- 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));
478
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/cancel"), method: "PATCH", secure: true }, params));
397
479
  },
398
480
  /**
399
- * @description Gives some user access to the tenant. If there's no user account attached to this users, it creates a new one
481
+ * No description
400
482
  *
401
- * @tags Admin Tenant Users
402
- * @name CreateOrUpdateTenantUserAndPermissionsByUserEmail
403
- * @request POST:/admin/tenants/{tenantId}/users
483
+ * @tags Admin Tenant Operation Groups
484
+ * @name ConfirmTenantOperationGroup
485
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/confirm
404
486
  * @secure
405
- * @response `200` `TenantUserEntityDto`
487
+ * @response `204` `void`
406
488
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
407
489
  */
408
- createOrUpdateTenantUserAndPermissionsByUserEmail: function (tenantId, data, params) {
490
+ confirmTenantOperationGroup: function (tenantId, groupId, params) {
409
491
  if (params === void 0) { params = {}; }
410
- return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
492
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/confirm"), method: "PATCH", secure: true }, params));
411
493
  },
412
494
  /**
413
495
  * No description
@@ -430,13 +512,27 @@ var Api = /** @class */ (function (_super) {
430
512
  * @name CreateTenantOperationExtraTemplate
431
513
  * @request POST:/admin/tenants/{tenantId}/operation-extras-templates
432
514
  * @secure
433
- * @response `201` `CaseOperationExtraTemplateEntityDto`
515
+ * @response `201` `OperationExtraTemplateEntityDto`
434
516
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
435
517
  */
436
518
  createTenantOperationExtraTemplate: function (tenantId, data, params) {
437
519
  if (params === void 0) { params = {}; }
438
520
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
439
521
  },
522
+ /**
523
+ * No description
524
+ *
525
+ * @tags Admin Tenant Operation Groups
526
+ * @name CreateTenantOperationGroup
527
+ * @request POST:/admin/tenants/{tenantId}/operation-groups
528
+ * @secure
529
+ * @response `201` `OperationGroupEntityDto`
530
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
531
+ */
532
+ createTenantOperationGroup: function (tenantId, data, params) {
533
+ if (params === void 0) { params = {}; }
534
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
535
+ },
440
536
  /**
441
537
  * No description
442
538
  *
@@ -493,6 +589,20 @@ var Api = /** @class */ (function (_super) {
493
589
  if (params === void 0) { params = {}; }
494
590
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
495
591
  },
592
+ /**
593
+ * No description
594
+ *
595
+ * @tags Admin Tenant Wine Countries
596
+ * @name CreateTenantWineCountry
597
+ * @request POST:/admin/tenants/{tenantId}/wine-countries
598
+ * @secure
599
+ * @response `201` `WineCountryEntityDto`
600
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
601
+ */
602
+ createTenantWineCountry: function (tenantId, data, params) {
603
+ if (params === void 0) { params = {}; }
604
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
605
+ },
496
606
  /**
497
607
  * No description
498
608
  *
@@ -507,6 +617,20 @@ var Api = /** @class */ (function (_super) {
507
617
  if (params === void 0) { params = {}; }
508
618
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
509
619
  },
620
+ /**
621
+ * No description
622
+ *
623
+ * @tags Admin Tenant Wine Regions
624
+ * @name CreateTenantWineRegion
625
+ * @request POST:/admin/tenants/{tenantId}/wine-regions
626
+ * @secure
627
+ * @response `201` `WineRegionEntityDto`
628
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
629
+ */
630
+ createTenantWineRegion: function (tenantId, data, params) {
631
+ if (params === void 0) { params = {}; }
632
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
633
+ },
510
634
  /**
511
635
  * No description
512
636
  *
@@ -661,6 +785,20 @@ var Api = /** @class */ (function (_super) {
661
785
  if (params === void 0) { params = {}; }
662
786
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands/").concat(brandId), method: "DELETE", secure: true }, params));
663
787
  },
788
+ /**
789
+ * No description
790
+ *
791
+ * @tags Admin Tenant Wine Countries
792
+ * @name DeleteTenantWineCountry
793
+ * @request DELETE:/admin/tenants/{tenantId}/wine-countries/{countryId}
794
+ * @secure
795
+ * @response `204` `void`
796
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
797
+ */
798
+ deleteTenantWineCountry: function (tenantId, countryId, params) {
799
+ if (params === void 0) { params = {}; }
800
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries/").concat(countryId), method: "DELETE", secure: true }, params));
801
+ },
664
802
  /**
665
803
  * No description
666
804
  *
@@ -675,6 +813,20 @@ var Api = /** @class */ (function (_super) {
675
813
  if (params === void 0) { params = {}; }
676
814
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "DELETE", secure: true }, params));
677
815
  },
816
+ /**
817
+ * No description
818
+ *
819
+ * @tags Admin Tenant Wine Regions
820
+ * @name DeleteTenantWineRegion
821
+ * @request DELETE:/admin/tenants/{tenantId}/wine-regions/{regionId}
822
+ * @secure
823
+ * @response `204` `void`
824
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
825
+ */
826
+ deleteTenantWineRegion: function (tenantId, regionId, params) {
827
+ if (params === void 0) { params = {}; }
828
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions/").concat(regionId), method: "DELETE", secure: true }, params));
829
+ },
678
830
  /**
679
831
  * No description
680
832
  *
@@ -745,34 +897,6 @@ var Api = /** @class */ (function (_super) {
745
897
  if (params === void 0) { params = {}; }
746
898
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "DELETE", secure: true }, params));
747
899
  },
748
- /**
749
- * No description
750
- *
751
- * @tags Admin Tenant Users
752
- * @name DisableTenantUser
753
- * @request PATCH:/admin/tenants/{tenantId}/users/{userId}/disable
754
- * @secure
755
- * @response `204` `void`
756
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
757
- */
758
- disableTenantUser: function (tenantId, userId, params) {
759
- if (params === void 0) { params = {}; }
760
- return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/disable"), method: "PATCH", secure: true }, params));
761
- },
762
- /**
763
- * No description
764
- *
765
- * @tags Admin Tenant Users
766
- * @name EnableTenantUser
767
- * @request PATCH:/admin/tenants/{tenantId}/users/{userId}/enable
768
- * @secure
769
- * @response `204` `void`
770
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
771
- */
772
- enableTenantUser: function (tenantId, userId, params) {
773
- if (params === void 0) { params = {}; }
774
- return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
775
- },
776
900
  /**
777
901
  * No description
778
902
  *
@@ -794,13 +918,27 @@ var Api = /** @class */ (function (_super) {
794
918
  * @name GetTenantOperationExtraTemplateById
795
919
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
796
920
  * @secure
797
- * @response `200` `CaseOperationExtraTemplateEntityDto`
921
+ * @response `200` `OperationExtraTemplateEntityDto`
798
922
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
799
923
  */
800
924
  getTenantOperationExtraTemplateById: function (tenantId, templateId, params) {
801
925
  if (params === void 0) { params = {}; }
802
926
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "GET", secure: true, format: "json" }, params));
803
927
  },
928
+ /**
929
+ * No description
930
+ *
931
+ * @tags Admin Tenant Operation Groups
932
+ * @name GetTenantOperationGroupById
933
+ * @request GET:/admin/tenants/{tenantId}/operation-groups/{groupId}
934
+ * @secure
935
+ * @response `200` `FullOperationGroupEntityDto`
936
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
937
+ */
938
+ getTenantOperationGroupById: function (tenantId, groupId, params) {
939
+ if (params === void 0) { params = {}; }
940
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId), method: "GET", secure: true, format: "json" }, params));
941
+ },
804
942
  /**
805
943
  * No description
806
944
  *
@@ -857,6 +995,20 @@ var Api = /** @class */ (function (_super) {
857
995
  if (params === void 0) { params = {}; }
858
996
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines/").concat(wineId), method: "GET", secure: true, format: "json" }, params));
859
997
  },
998
+ /**
999
+ * No description
1000
+ *
1001
+ * @tags Admin Tenant Wine Countries
1002
+ * @name GetTenantWineCountryById
1003
+ * @request GET:/admin/tenants/{tenantId}/wine-countries/{countryId}
1004
+ * @secure
1005
+ * @response `200` `WineCountryEntityDto`
1006
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1007
+ */
1008
+ getTenantWineCountryById: function (tenantId, countryId, params) {
1009
+ if (params === void 0) { params = {}; }
1010
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries/").concat(countryId), method: "GET", secure: true, format: "json" }, params));
1011
+ },
860
1012
  /**
861
1013
  * No description
862
1014
  *
@@ -871,6 +1023,20 @@ var Api = /** @class */ (function (_super) {
871
1023
  if (params === void 0) { params = {}; }
872
1024
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "GET", secure: true, format: "json" }, params));
873
1025
  },
1026
+ /**
1027
+ * No description
1028
+ *
1029
+ * @tags Admin Tenant Wine Regions
1030
+ * @name GetTenantWineRegionById
1031
+ * @request GET:/admin/tenants/{tenantId}/wine-regions/{regionId}
1032
+ * @secure
1033
+ * @response `200` `WineRegionEntityDto`
1034
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1035
+ */
1036
+ getTenantWineRegionById: function (tenantId, regionId, params) {
1037
+ if (params === void 0) { params = {}; }
1038
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions/").concat(regionId), method: "GET", secure: true, format: "json" }, params));
1039
+ },
874
1040
  /**
875
1041
  * No description
876
1042
  *
@@ -976,7 +1142,7 @@ var Api = /** @class */ (function (_super) {
976
1142
  * @name ListTenantOperationExtrasTemplates
977
1143
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates
978
1144
  * @secure
979
- * @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
1145
+ * @response `200` `OperationExtraTemplateEntityPaginatedDto`
980
1146
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
981
1147
  */
982
1148
  listTenantOperationExtrasTemplates: function (tenantId, query, params) {
@@ -986,16 +1152,16 @@ var Api = /** @class */ (function (_super) {
986
1152
  /**
987
1153
  * No description
988
1154
  *
989
- * @tags Admin Tenant Users
990
- * @name ListTenantUsers
991
- * @request GET:/admin/tenants/{tenantId}/users
1155
+ * @tags Admin Tenant Operation Groups
1156
+ * @name ListTenantOperationGroups
1157
+ * @request GET:/admin/tenants/{tenantId}/operation-groups
992
1158
  * @secure
993
- * @response `200` `TenantUserEntityPaginatedDto`
994
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1159
+ * @response `200` `OperationGroupEntityPaginatedDto`
1160
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
995
1161
  */
996
- listTenantUsers: function (tenantId, query, params) {
1162
+ listTenantOperationGroups: function (tenantId, query, params) {
997
1163
  if (params === void 0) { params = {}; }
998
- return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users"), method: "GET", query: query, secure: true, format: "json" }, params));
1164
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups"), method: "GET", query: query, secure: true, format: "json" }, params));
999
1165
  },
1000
1166
  /**
1001
1167
  * No description
@@ -1039,6 +1205,20 @@ var Api = /** @class */ (function (_super) {
1039
1205
  if (params === void 0) { params = {}; }
1040
1206
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands"), method: "GET", query: query, secure: true, format: "json" }, params));
1041
1207
  },
1208
+ /**
1209
+ * No description
1210
+ *
1211
+ * @tags Admin Tenant Wine Countries
1212
+ * @name ListTenantWineCountries
1213
+ * @request GET:/admin/tenants/{tenantId}/wine-countries
1214
+ * @secure
1215
+ * @response `200` `WineCountryEntityPaginatedDto`
1216
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1217
+ */
1218
+ listTenantWineCountries: function (tenantId, query, params) {
1219
+ if (params === void 0) { params = {}; }
1220
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries"), method: "GET", query: query, secure: true, format: "json" }, params));
1221
+ },
1042
1222
  /**
1043
1223
  * No description
1044
1224
  *
@@ -1053,6 +1233,20 @@ var Api = /** @class */ (function (_super) {
1053
1233
  if (params === void 0) { params = {}; }
1054
1234
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers"), method: "GET", query: query, secure: true, format: "json" }, params));
1055
1235
  },
1236
+ /**
1237
+ * No description
1238
+ *
1239
+ * @tags Admin Tenant Wine Regions
1240
+ * @name ListTenantWineRegions
1241
+ * @request GET:/admin/tenants/{tenantId}/wine-regions
1242
+ * @secure
1243
+ * @response `200` `WineRegionEntityPaginatedDto`
1244
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1245
+ */
1246
+ listTenantWineRegions: function (tenantId, query, params) {
1247
+ if (params === void 0) { params = {}; }
1248
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions"), method: "GET", query: query, secure: true, format: "json" }, params));
1249
+ },
1056
1250
  /**
1057
1251
  * No description
1058
1252
  *
@@ -1137,6 +1331,20 @@ var Api = /** @class */ (function (_super) {
1137
1331
  if (params === void 0) { params = {}; }
1138
1332
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
1139
1333
  },
1334
+ /**
1335
+ * No description
1336
+ *
1337
+ * @tags Admin Tenant Operation Groups
1338
+ * @name ProcessTenantOperationGroup
1339
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/process
1340
+ * @secure
1341
+ * @response `204` `void`
1342
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1343
+ */
1344
+ processTenantOperationGroup: function (tenantId, groupId, params) {
1345
+ if (params === void 0) { params = {}; }
1346
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", secure: true }, params));
1347
+ },
1140
1348
  /**
1141
1349
  * No description
1142
1350
  *
@@ -1158,7 +1366,7 @@ var Api = /** @class */ (function (_super) {
1158
1366
  * @name UpdateTenantOperationExtraTemplate
1159
1367
  * @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
1160
1368
  * @secure
1161
- * @response `200` `CaseOperationExtraTemplateEntityDto`
1369
+ * @response `200` `OperationExtraTemplateEntityDto`
1162
1370
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1163
1371
  */
1164
1372
  updateTenantOperationExtraTemplate: function (tenantId, templateId, data, params) {
@@ -1221,6 +1429,20 @@ var Api = /** @class */ (function (_super) {
1221
1429
  if (params === void 0) { params = {}; }
1222
1430
  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));
1223
1431
  },
1432
+ /**
1433
+ * No description
1434
+ *
1435
+ * @tags Admin Tenant Wine Countries
1436
+ * @name UpdateTenantWineCountry
1437
+ * @request PATCH:/admin/tenants/{tenantId}/wine-countries/{countryId}
1438
+ * @secure
1439
+ * @response `200` `WineCountryEntityDto`
1440
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1441
+ */
1442
+ updateTenantWineCountry: function (tenantId, countryId, data, params) {
1443
+ if (params === void 0) { params = {}; }
1444
+ 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));
1445
+ },
1224
1446
  /**
1225
1447
  * No description
1226
1448
  *
@@ -1235,6 +1457,20 @@ var Api = /** @class */ (function (_super) {
1235
1457
  if (params === void 0) { params = {}; }
1236
1458
  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));
1237
1459
  },
1460
+ /**
1461
+ * No description
1462
+ *
1463
+ * @tags Admin Tenant Wine Regions
1464
+ * @name UpdateTenantWineRegion
1465
+ * @request PATCH:/admin/tenants/{tenantId}/wine-regions/{regionId}
1466
+ * @secure
1467
+ * @response `200` `WineRegionEntityDto`
1468
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1469
+ */
1470
+ updateTenantWineRegion: function (tenantId, regionId, data, params) {
1471
+ if (params === void 0) { params = {}; }
1472
+ 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));
1473
+ },
1238
1474
  /**
1239
1475
  * No description
1240
1476
  *