@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.
- package/dist/cjs/api/api.js +325 -89
- package/dist/esm/api/api.js +324 -88
- package/dist/types/api/api.d.ts +1089 -339
- package/dist/umd/index.ts +325 -89
- package/package.json +1 -1
package/dist/umd/index.ts
CHANGED
|
@@ -18410,7 +18410,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18410
18410
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18411
18411
|
};
|
|
18412
18412
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
18413
|
-
exports.Api = exports.HttpClient = exports.ContentType = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.OrderByEnum = exports.
|
|
18413
|
+
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;
|
|
18414
18414
|
var CaseOperationLogTypeEnum;
|
|
18415
18415
|
(function (CaseOperationLogTypeEnum) {
|
|
18416
18416
|
CaseOperationLogTypeEnum["RequestAccepted"] = "request_accepted";
|
|
@@ -18428,17 +18428,29 @@ var CaseOperationTypesEnum;
|
|
|
18428
18428
|
CaseOperationTypesEnum["Deposit"] = "deposit";
|
|
18429
18429
|
CaseOperationTypesEnum["Withdrawal"] = "withdrawal";
|
|
18430
18430
|
})(CaseOperationTypesEnum = exports.CaseOperationTypesEnum || (exports.CaseOperationTypesEnum = {}));
|
|
18431
|
-
var
|
|
18432
|
-
(function (
|
|
18433
|
-
|
|
18434
|
-
|
|
18435
|
-
|
|
18436
|
-
})(
|
|
18431
|
+
var CreateOnlyOperationGroupStatusEnum;
|
|
18432
|
+
(function (CreateOnlyOperationGroupStatusEnum) {
|
|
18433
|
+
CreateOnlyOperationGroupStatusEnum["OnHold"] = "on_hold";
|
|
18434
|
+
CreateOnlyOperationGroupStatusEnum["Confirmed"] = "confirmed";
|
|
18435
|
+
CreateOnlyOperationGroupStatusEnum["Processed"] = "processed";
|
|
18436
|
+
})(CreateOnlyOperationGroupStatusEnum = exports.CreateOnlyOperationGroupStatusEnum || (exports.CreateOnlyOperationGroupStatusEnum = {}));
|
|
18437
|
+
var OperationGroupStatusEnum;
|
|
18438
|
+
(function (OperationGroupStatusEnum) {
|
|
18439
|
+
OperationGroupStatusEnum["OnHold"] = "on_hold";
|
|
18440
|
+
OperationGroupStatusEnum["Confirmed"] = "confirmed";
|
|
18441
|
+
OperationGroupStatusEnum["Processed"] = "processed";
|
|
18442
|
+
OperationGroupStatusEnum["Cancelled"] = "cancelled";
|
|
18443
|
+
})(OperationGroupStatusEnum = exports.OperationGroupStatusEnum || (exports.OperationGroupStatusEnum = {}));
|
|
18437
18444
|
var OrderByEnum;
|
|
18438
18445
|
(function (OrderByEnum) {
|
|
18439
18446
|
OrderByEnum["ASC"] = "ASC";
|
|
18440
18447
|
OrderByEnum["DESC"] = "DESC";
|
|
18441
18448
|
})(OrderByEnum = exports.OrderByEnum || (exports.OrderByEnum = {}));
|
|
18449
|
+
var PhoneTypeEnum;
|
|
18450
|
+
(function (PhoneTypeEnum) {
|
|
18451
|
+
PhoneTypeEnum["Fixed"] = "fixed";
|
|
18452
|
+
PhoneTypeEnum["Mobile"] = "mobile";
|
|
18453
|
+
})(PhoneTypeEnum = exports.PhoneTypeEnum || (exports.PhoneTypeEnum = {}));
|
|
18442
18454
|
var TenantRoleEnum;
|
|
18443
18455
|
(function (TenantRoleEnum) {
|
|
18444
18456
|
TenantRoleEnum["Operator"] = "operator";
|
|
@@ -18619,120 +18631,190 @@ var Api = /** @class */ (function (_super) {
|
|
|
18619
18631
|
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18620
18632
|
},
|
|
18621
18633
|
};
|
|
18622
|
-
_this.
|
|
18634
|
+
_this.tenants = {
|
|
18623
18635
|
/**
|
|
18624
18636
|
* No description
|
|
18625
18637
|
*
|
|
18626
|
-
* @tags Users
|
|
18638
|
+
* @tags Tenant Users
|
|
18639
|
+
* @name CreateTenantUser
|
|
18640
|
+
* @request POST:/tenants/{tenantId}/users
|
|
18641
|
+
* @secure
|
|
18642
|
+
* @response `200` `UserEntityDto`
|
|
18643
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
18644
|
+
*/
|
|
18645
|
+
createTenantUser: function (tenantId, data, params) {
|
|
18646
|
+
if (params === void 0) { params = {}; }
|
|
18647
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18648
|
+
},
|
|
18649
|
+
/**
|
|
18650
|
+
* No description
|
|
18651
|
+
*
|
|
18652
|
+
* @tags Tenant Users
|
|
18627
18653
|
* @name CreateUserAddress
|
|
18628
|
-
* @request POST:/
|
|
18654
|
+
* @request POST:/tenants/{tenantId}/users/userId/addresses
|
|
18629
18655
|
* @secure
|
|
18630
18656
|
* @response `201` `AddressEntityDto`
|
|
18631
18657
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18632
18658
|
*/
|
|
18633
|
-
createUserAddress: function (userId, data, params) {
|
|
18659
|
+
createUserAddress: function (tenantId, userId, data, params) {
|
|
18660
|
+
if (params === void 0) { params = {}; }
|
|
18661
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18662
|
+
},
|
|
18663
|
+
/**
|
|
18664
|
+
* No description
|
|
18665
|
+
*
|
|
18666
|
+
* @tags Tenant Users
|
|
18667
|
+
* @name DeleteTenantUser
|
|
18668
|
+
* @request DELETE:/tenants/{tenantId}/users/{userId}
|
|
18669
|
+
* @secure
|
|
18670
|
+
* @response `204` `void`
|
|
18671
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
18672
|
+
*/
|
|
18673
|
+
deleteTenantUser: function (tenantId, userId, params) {
|
|
18634
18674
|
if (params === void 0) { params = {}; }
|
|
18635
|
-
return _this.request(__assign({ path: "/
|
|
18675
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "DELETE", secure: true }, params));
|
|
18636
18676
|
},
|
|
18637
18677
|
/**
|
|
18638
18678
|
* No description
|
|
18639
18679
|
*
|
|
18640
|
-
* @tags Users
|
|
18680
|
+
* @tags Tenant Users
|
|
18641
18681
|
* @name DeleteUserAddress
|
|
18642
|
-
* @request DELETE:/
|
|
18682
|
+
* @request DELETE:/tenants/{tenantId}/users/userId/addresses/{addressId}
|
|
18643
18683
|
* @secure
|
|
18644
18684
|
* @response `204` `void`
|
|
18645
18685
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18646
18686
|
*/
|
|
18647
|
-
deleteUserAddress: function (userId, addressId, params) {
|
|
18687
|
+
deleteUserAddress: function (tenantId, userId, addressId, params) {
|
|
18648
18688
|
if (params === void 0) { params = {}; }
|
|
18649
|
-
return _this.request(__assign({ path: "/
|
|
18689
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses/").concat(addressId), method: "DELETE", secure: true }, params));
|
|
18650
18690
|
},
|
|
18651
18691
|
/**
|
|
18652
18692
|
* No description
|
|
18653
18693
|
*
|
|
18654
|
-
* @tags Users
|
|
18655
|
-
* @name
|
|
18656
|
-
* @request
|
|
18694
|
+
* @tags Tenant Users
|
|
18695
|
+
* @name DisableTenantUser
|
|
18696
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}/disable
|
|
18657
18697
|
* @secure
|
|
18658
|
-
* @response `
|
|
18698
|
+
* @response `204` `void`
|
|
18699
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
18700
|
+
*/
|
|
18701
|
+
disableTenantUser: function (tenantId, userId, params) {
|
|
18702
|
+
if (params === void 0) { params = {}; }
|
|
18703
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/disable"), method: "PATCH", secure: true }, params));
|
|
18704
|
+
},
|
|
18705
|
+
/**
|
|
18706
|
+
* No description
|
|
18707
|
+
*
|
|
18708
|
+
* @tags Tenant Users
|
|
18709
|
+
* @name EnableTenantUser
|
|
18710
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}/enable
|
|
18711
|
+
* @secure
|
|
18712
|
+
* @response `204` `void`
|
|
18713
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
18714
|
+
*/
|
|
18715
|
+
enableTenantUser: function (tenantId, userId, params) {
|
|
18716
|
+
if (params === void 0) { params = {}; }
|
|
18717
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
18718
|
+
},
|
|
18719
|
+
/**
|
|
18720
|
+
* No description
|
|
18721
|
+
*
|
|
18722
|
+
* @tags Tenant Users
|
|
18723
|
+
* @name GetTenantUser
|
|
18724
|
+
* @request GET:/tenants/{tenantId}/users/{userId}
|
|
18725
|
+
* @secure
|
|
18726
|
+
* @response `200` `UserEntityDto`
|
|
18659
18727
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18660
18728
|
*/
|
|
18661
|
-
|
|
18729
|
+
getTenantUser: function (tenantId, userId, params) {
|
|
18730
|
+
if (params === void 0) { params = {}; }
|
|
18731
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "GET", secure: true, format: "json" }, params));
|
|
18732
|
+
},
|
|
18733
|
+
/**
|
|
18734
|
+
* No description
|
|
18735
|
+
*
|
|
18736
|
+
* @tags Tenant Users
|
|
18737
|
+
* @name ListTenantUsers
|
|
18738
|
+
* @request GET:/tenants/{tenantId}/users
|
|
18739
|
+
* @secure
|
|
18740
|
+
* @response `200` `UserEntityPaginatedDto`
|
|
18741
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
18742
|
+
*/
|
|
18743
|
+
listTenantUsers: function (tenantId, query, params) {
|
|
18662
18744
|
if (params === void 0) { params = {}; }
|
|
18663
|
-
return _this.request(__assign({ path: "/
|
|
18745
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
18664
18746
|
},
|
|
18665
18747
|
/**
|
|
18666
18748
|
* No description
|
|
18667
18749
|
*
|
|
18668
|
-
* @tags Users
|
|
18750
|
+
* @tags Tenant Users
|
|
18669
18751
|
* @name ListUserAddresses
|
|
18670
|
-
* @request GET:/
|
|
18752
|
+
* @request GET:/tenants/{tenantId}/users/userId/addresses
|
|
18671
18753
|
* @secure
|
|
18672
18754
|
* @response `200` `AddressEntityPaginatedDto`
|
|
18673
18755
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18674
18756
|
*/
|
|
18675
|
-
listUserAddresses: function (userId, query, params) {
|
|
18757
|
+
listUserAddresses: function (tenantId, userId, query, params) {
|
|
18676
18758
|
if (params === void 0) { params = {}; }
|
|
18677
|
-
return _this.request(__assign({ path: "/
|
|
18759
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
18678
18760
|
},
|
|
18679
18761
|
/**
|
|
18680
18762
|
* No description
|
|
18681
18763
|
*
|
|
18682
|
-
* @tags Users
|
|
18683
|
-
* @name
|
|
18684
|
-
* @request PATCH:/users/{userId}
|
|
18764
|
+
* @tags Tenant Users
|
|
18765
|
+
* @name UpdateTenantUser
|
|
18766
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}
|
|
18685
18767
|
* @secure
|
|
18686
18768
|
* @response `200` `UserEntityDto`
|
|
18687
18769
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18688
18770
|
*/
|
|
18689
|
-
|
|
18771
|
+
updateTenantUser: function (tenantId, userId, data, params) {
|
|
18690
18772
|
if (params === void 0) { params = {}; }
|
|
18691
|
-
return _this.request(__assign({ path: "/
|
|
18773
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18692
18774
|
},
|
|
18693
18775
|
/**
|
|
18694
18776
|
* No description
|
|
18695
18777
|
*
|
|
18696
|
-
* @tags Users
|
|
18697
|
-
* @name
|
|
18698
|
-
* @request PATCH:/users/{userId}
|
|
18778
|
+
* @tags Tenant Users
|
|
18779
|
+
* @name UpdateTenantUserPassword
|
|
18780
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}/password
|
|
18699
18781
|
* @secure
|
|
18700
18782
|
* @response `200` `UserEntityDto`
|
|
18701
18783
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18702
18784
|
*/
|
|
18703
|
-
|
|
18785
|
+
updateTenantUserPassword: function (tenantId, userId, data, params) {
|
|
18704
18786
|
if (params === void 0) { params = {}; }
|
|
18705
|
-
return _this.request(__assign({ path: "/users/".concat(userId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18787
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/password"), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18706
18788
|
},
|
|
18707
18789
|
};
|
|
18708
18790
|
_this.admin = {
|
|
18709
18791
|
/**
|
|
18710
18792
|
* No description
|
|
18711
18793
|
*
|
|
18712
|
-
* @tags Admin Tenant
|
|
18713
|
-
* @name
|
|
18714
|
-
* @request
|
|
18794
|
+
* @tags Admin Tenant Operation Groups
|
|
18795
|
+
* @name CancelTenantOperationGroup
|
|
18796
|
+
* @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/cancel
|
|
18715
18797
|
* @secure
|
|
18716
|
-
* @response `
|
|
18717
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
18798
|
+
* @response `204` `void`
|
|
18799
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
18718
18800
|
*/
|
|
18719
|
-
|
|
18801
|
+
cancelTenantOperationGroup: function (tenantId, groupId, params) {
|
|
18720
18802
|
if (params === void 0) { params = {}; }
|
|
18721
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/
|
|
18803
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/cancel"), method: "PATCH", secure: true }, params));
|
|
18722
18804
|
},
|
|
18723
18805
|
/**
|
|
18724
|
-
*
|
|
18806
|
+
* No description
|
|
18725
18807
|
*
|
|
18726
|
-
* @tags Admin Tenant
|
|
18727
|
-
* @name
|
|
18728
|
-
* @request
|
|
18808
|
+
* @tags Admin Tenant Operation Groups
|
|
18809
|
+
* @name ConfirmTenantOperationGroup
|
|
18810
|
+
* @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/confirm
|
|
18729
18811
|
* @secure
|
|
18730
|
-
* @response `
|
|
18812
|
+
* @response `204` `void`
|
|
18731
18813
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
18732
18814
|
*/
|
|
18733
|
-
|
|
18815
|
+
confirmTenantOperationGroup: function (tenantId, groupId, params) {
|
|
18734
18816
|
if (params === void 0) { params = {}; }
|
|
18735
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/
|
|
18817
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/confirm"), method: "PATCH", secure: true }, params));
|
|
18736
18818
|
},
|
|
18737
18819
|
/**
|
|
18738
18820
|
* No description
|
|
@@ -18755,13 +18837,27 @@ var Api = /** @class */ (function (_super) {
|
|
|
18755
18837
|
* @name CreateTenantOperationExtraTemplate
|
|
18756
18838
|
* @request POST:/admin/tenants/{tenantId}/operation-extras-templates
|
|
18757
18839
|
* @secure
|
|
18758
|
-
* @response `201` `
|
|
18840
|
+
* @response `201` `OperationExtraTemplateEntityDto`
|
|
18759
18841
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
18760
18842
|
*/
|
|
18761
18843
|
createTenantOperationExtraTemplate: function (tenantId, data, params) {
|
|
18762
18844
|
if (params === void 0) { params = {}; }
|
|
18763
18845
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18764
18846
|
},
|
|
18847
|
+
/**
|
|
18848
|
+
* No description
|
|
18849
|
+
*
|
|
18850
|
+
* @tags Admin Tenant Operation Groups
|
|
18851
|
+
* @name CreateTenantOperationGroup
|
|
18852
|
+
* @request POST:/admin/tenants/{tenantId}/operation-groups
|
|
18853
|
+
* @secure
|
|
18854
|
+
* @response `201` `OperationGroupEntityDto`
|
|
18855
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
18856
|
+
*/
|
|
18857
|
+
createTenantOperationGroup: function (tenantId, data, params) {
|
|
18858
|
+
if (params === void 0) { params = {}; }
|
|
18859
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18860
|
+
},
|
|
18765
18861
|
/**
|
|
18766
18862
|
* No description
|
|
18767
18863
|
*
|
|
@@ -18818,6 +18914,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18818
18914
|
if (params === void 0) { params = {}; }
|
|
18819
18915
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18820
18916
|
},
|
|
18917
|
+
/**
|
|
18918
|
+
* No description
|
|
18919
|
+
*
|
|
18920
|
+
* @tags Admin Tenant Wine Countries
|
|
18921
|
+
* @name CreateTenantWineCountry
|
|
18922
|
+
* @request POST:/admin/tenants/{tenantId}/wine-countries
|
|
18923
|
+
* @secure
|
|
18924
|
+
* @response `201` `WineCountryEntityDto`
|
|
18925
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
18926
|
+
*/
|
|
18927
|
+
createTenantWineCountry: function (tenantId, data, params) {
|
|
18928
|
+
if (params === void 0) { params = {}; }
|
|
18929
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18930
|
+
},
|
|
18821
18931
|
/**
|
|
18822
18932
|
* No description
|
|
18823
18933
|
*
|
|
@@ -18832,6 +18942,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18832
18942
|
if (params === void 0) { params = {}; }
|
|
18833
18943
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18834
18944
|
},
|
|
18945
|
+
/**
|
|
18946
|
+
* No description
|
|
18947
|
+
*
|
|
18948
|
+
* @tags Admin Tenant Wine Regions
|
|
18949
|
+
* @name CreateTenantWineRegion
|
|
18950
|
+
* @request POST:/admin/tenants/{tenantId}/wine-regions
|
|
18951
|
+
* @secure
|
|
18952
|
+
* @response `201` `WineRegionEntityDto`
|
|
18953
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
18954
|
+
*/
|
|
18955
|
+
createTenantWineRegion: function (tenantId, data, params) {
|
|
18956
|
+
if (params === void 0) { params = {}; }
|
|
18957
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18958
|
+
},
|
|
18835
18959
|
/**
|
|
18836
18960
|
* No description
|
|
18837
18961
|
*
|
|
@@ -18986,6 +19110,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18986
19110
|
if (params === void 0) { params = {}; }
|
|
18987
19111
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands/").concat(brandId), method: "DELETE", secure: true }, params));
|
|
18988
19112
|
},
|
|
19113
|
+
/**
|
|
19114
|
+
* No description
|
|
19115
|
+
*
|
|
19116
|
+
* @tags Admin Tenant Wine Countries
|
|
19117
|
+
* @name DeleteTenantWineCountry
|
|
19118
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-countries/{countryId}
|
|
19119
|
+
* @secure
|
|
19120
|
+
* @response `204` `void`
|
|
19121
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19122
|
+
*/
|
|
19123
|
+
deleteTenantWineCountry: function (tenantId, countryId, params) {
|
|
19124
|
+
if (params === void 0) { params = {}; }
|
|
19125
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries/").concat(countryId), method: "DELETE", secure: true }, params));
|
|
19126
|
+
},
|
|
18989
19127
|
/**
|
|
18990
19128
|
* No description
|
|
18991
19129
|
*
|
|
@@ -19000,6 +19138,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
19000
19138
|
if (params === void 0) { params = {}; }
|
|
19001
19139
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "DELETE", secure: true }, params));
|
|
19002
19140
|
},
|
|
19141
|
+
/**
|
|
19142
|
+
* No description
|
|
19143
|
+
*
|
|
19144
|
+
* @tags Admin Tenant Wine Regions
|
|
19145
|
+
* @name DeleteTenantWineRegion
|
|
19146
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-regions/{regionId}
|
|
19147
|
+
* @secure
|
|
19148
|
+
* @response `204` `void`
|
|
19149
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19150
|
+
*/
|
|
19151
|
+
deleteTenantWineRegion: function (tenantId, regionId, params) {
|
|
19152
|
+
if (params === void 0) { params = {}; }
|
|
19153
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions/").concat(regionId), method: "DELETE", secure: true }, params));
|
|
19154
|
+
},
|
|
19003
19155
|
/**
|
|
19004
19156
|
* No description
|
|
19005
19157
|
*
|
|
@@ -19070,34 +19222,6 @@ var Api = /** @class */ (function (_super) {
|
|
|
19070
19222
|
if (params === void 0) { params = {}; }
|
|
19071
19223
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "DELETE", secure: true }, params));
|
|
19072
19224
|
},
|
|
19073
|
-
/**
|
|
19074
|
-
* No description
|
|
19075
|
-
*
|
|
19076
|
-
* @tags Admin Tenant Users
|
|
19077
|
-
* @name DisableTenantUser
|
|
19078
|
-
* @request PATCH:/admin/tenants/{tenantId}/users/{userId}/disable
|
|
19079
|
-
* @secure
|
|
19080
|
-
* @response `204` `void`
|
|
19081
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19082
|
-
*/
|
|
19083
|
-
disableTenantUser: function (tenantId, userId, params) {
|
|
19084
|
-
if (params === void 0) { params = {}; }
|
|
19085
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/disable"), method: "PATCH", secure: true }, params));
|
|
19086
|
-
},
|
|
19087
|
-
/**
|
|
19088
|
-
* No description
|
|
19089
|
-
*
|
|
19090
|
-
* @tags Admin Tenant Users
|
|
19091
|
-
* @name EnableTenantUser
|
|
19092
|
-
* @request PATCH:/admin/tenants/{tenantId}/users/{userId}/enable
|
|
19093
|
-
* @secure
|
|
19094
|
-
* @response `204` `void`
|
|
19095
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19096
|
-
*/
|
|
19097
|
-
enableTenantUser: function (tenantId, userId, params) {
|
|
19098
|
-
if (params === void 0) { params = {}; }
|
|
19099
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
19100
|
-
},
|
|
19101
19225
|
/**
|
|
19102
19226
|
* No description
|
|
19103
19227
|
*
|
|
@@ -19119,13 +19243,27 @@ var Api = /** @class */ (function (_super) {
|
|
|
19119
19243
|
* @name GetTenantOperationExtraTemplateById
|
|
19120
19244
|
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
19121
19245
|
* @secure
|
|
19122
|
-
* @response `200` `
|
|
19246
|
+
* @response `200` `OperationExtraTemplateEntityDto`
|
|
19123
19247
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19124
19248
|
*/
|
|
19125
19249
|
getTenantOperationExtraTemplateById: function (tenantId, templateId, params) {
|
|
19126
19250
|
if (params === void 0) { params = {}; }
|
|
19127
19251
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "GET", secure: true, format: "json" }, params));
|
|
19128
19252
|
},
|
|
19253
|
+
/**
|
|
19254
|
+
* No description
|
|
19255
|
+
*
|
|
19256
|
+
* @tags Admin Tenant Operation Groups
|
|
19257
|
+
* @name GetTenantOperationGroupById
|
|
19258
|
+
* @request GET:/admin/tenants/{tenantId}/operation-groups/{groupId}
|
|
19259
|
+
* @secure
|
|
19260
|
+
* @response `200` `FullOperationGroupEntityDto`
|
|
19261
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19262
|
+
*/
|
|
19263
|
+
getTenantOperationGroupById: function (tenantId, groupId, params) {
|
|
19264
|
+
if (params === void 0) { params = {}; }
|
|
19265
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId), method: "GET", secure: true, format: "json" }, params));
|
|
19266
|
+
},
|
|
19129
19267
|
/**
|
|
19130
19268
|
* No description
|
|
19131
19269
|
*
|
|
@@ -19182,6 +19320,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
19182
19320
|
if (params === void 0) { params = {}; }
|
|
19183
19321
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines/").concat(wineId), method: "GET", secure: true, format: "json" }, params));
|
|
19184
19322
|
},
|
|
19323
|
+
/**
|
|
19324
|
+
* No description
|
|
19325
|
+
*
|
|
19326
|
+
* @tags Admin Tenant Wine Countries
|
|
19327
|
+
* @name GetTenantWineCountryById
|
|
19328
|
+
* @request GET:/admin/tenants/{tenantId}/wine-countries/{countryId}
|
|
19329
|
+
* @secure
|
|
19330
|
+
* @response `200` `WineCountryEntityDto`
|
|
19331
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19332
|
+
*/
|
|
19333
|
+
getTenantWineCountryById: function (tenantId, countryId, params) {
|
|
19334
|
+
if (params === void 0) { params = {}; }
|
|
19335
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries/").concat(countryId), method: "GET", secure: true, format: "json" }, params));
|
|
19336
|
+
},
|
|
19185
19337
|
/**
|
|
19186
19338
|
* No description
|
|
19187
19339
|
*
|
|
@@ -19196,6 +19348,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
19196
19348
|
if (params === void 0) { params = {}; }
|
|
19197
19349
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "GET", secure: true, format: "json" }, params));
|
|
19198
19350
|
},
|
|
19351
|
+
/**
|
|
19352
|
+
* No description
|
|
19353
|
+
*
|
|
19354
|
+
* @tags Admin Tenant Wine Regions
|
|
19355
|
+
* @name GetTenantWineRegionById
|
|
19356
|
+
* @request GET:/admin/tenants/{tenantId}/wine-regions/{regionId}
|
|
19357
|
+
* @secure
|
|
19358
|
+
* @response `200` `WineRegionEntityDto`
|
|
19359
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19360
|
+
*/
|
|
19361
|
+
getTenantWineRegionById: function (tenantId, regionId, params) {
|
|
19362
|
+
if (params === void 0) { params = {}; }
|
|
19363
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions/").concat(regionId), method: "GET", secure: true, format: "json" }, params));
|
|
19364
|
+
},
|
|
19199
19365
|
/**
|
|
19200
19366
|
* No description
|
|
19201
19367
|
*
|
|
@@ -19301,7 +19467,7 @@ var Api = /** @class */ (function (_super) {
|
|
|
19301
19467
|
* @name ListTenantOperationExtrasTemplates
|
|
19302
19468
|
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates
|
|
19303
19469
|
* @secure
|
|
19304
|
-
* @response `200` `
|
|
19470
|
+
* @response `200` `OperationExtraTemplateEntityPaginatedDto`
|
|
19305
19471
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19306
19472
|
*/
|
|
19307
19473
|
listTenantOperationExtrasTemplates: function (tenantId, query, params) {
|
|
@@ -19311,16 +19477,16 @@ var Api = /** @class */ (function (_super) {
|
|
|
19311
19477
|
/**
|
|
19312
19478
|
* No description
|
|
19313
19479
|
*
|
|
19314
|
-
* @tags Admin Tenant
|
|
19315
|
-
* @name
|
|
19316
|
-
* @request GET:/admin/tenants/{tenantId}/
|
|
19480
|
+
* @tags Admin Tenant Operation Groups
|
|
19481
|
+
* @name ListTenantOperationGroups
|
|
19482
|
+
* @request GET:/admin/tenants/{tenantId}/operation-groups
|
|
19317
19483
|
* @secure
|
|
19318
|
-
* @response `200` `
|
|
19319
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19484
|
+
* @response `200` `OperationGroupEntityPaginatedDto`
|
|
19485
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19320
19486
|
*/
|
|
19321
|
-
|
|
19487
|
+
listTenantOperationGroups: function (tenantId, query, params) {
|
|
19322
19488
|
if (params === void 0) { params = {}; }
|
|
19323
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/
|
|
19489
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19324
19490
|
},
|
|
19325
19491
|
/**
|
|
19326
19492
|
* No description
|
|
@@ -19364,6 +19530,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
19364
19530
|
if (params === void 0) { params = {}; }
|
|
19365
19531
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19366
19532
|
},
|
|
19533
|
+
/**
|
|
19534
|
+
* No description
|
|
19535
|
+
*
|
|
19536
|
+
* @tags Admin Tenant Wine Countries
|
|
19537
|
+
* @name ListTenantWineCountries
|
|
19538
|
+
* @request GET:/admin/tenants/{tenantId}/wine-countries
|
|
19539
|
+
* @secure
|
|
19540
|
+
* @response `200` `WineCountryEntityPaginatedDto`
|
|
19541
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19542
|
+
*/
|
|
19543
|
+
listTenantWineCountries: function (tenantId, query, params) {
|
|
19544
|
+
if (params === void 0) { params = {}; }
|
|
19545
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19546
|
+
},
|
|
19367
19547
|
/**
|
|
19368
19548
|
* No description
|
|
19369
19549
|
*
|
|
@@ -19378,6 +19558,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
19378
19558
|
if (params === void 0) { params = {}; }
|
|
19379
19559
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19380
19560
|
},
|
|
19561
|
+
/**
|
|
19562
|
+
* No description
|
|
19563
|
+
*
|
|
19564
|
+
* @tags Admin Tenant Wine Regions
|
|
19565
|
+
* @name ListTenantWineRegions
|
|
19566
|
+
* @request GET:/admin/tenants/{tenantId}/wine-regions
|
|
19567
|
+
* @secure
|
|
19568
|
+
* @response `200` `WineRegionEntityPaginatedDto`
|
|
19569
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19570
|
+
*/
|
|
19571
|
+
listTenantWineRegions: function (tenantId, query, params) {
|
|
19572
|
+
if (params === void 0) { params = {}; }
|
|
19573
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19574
|
+
},
|
|
19381
19575
|
/**
|
|
19382
19576
|
* No description
|
|
19383
19577
|
*
|
|
@@ -19462,6 +19656,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
19462
19656
|
if (params === void 0) { params = {}; }
|
|
19463
19657
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19464
19658
|
},
|
|
19659
|
+
/**
|
|
19660
|
+
* No description
|
|
19661
|
+
*
|
|
19662
|
+
* @tags Admin Tenant Operation Groups
|
|
19663
|
+
* @name ProcessTenantOperationGroup
|
|
19664
|
+
* @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/process
|
|
19665
|
+
* @secure
|
|
19666
|
+
* @response `204` `void`
|
|
19667
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19668
|
+
*/
|
|
19669
|
+
processTenantOperationGroup: function (tenantId, groupId, params) {
|
|
19670
|
+
if (params === void 0) { params = {}; }
|
|
19671
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", secure: true }, params));
|
|
19672
|
+
},
|
|
19465
19673
|
/**
|
|
19466
19674
|
* No description
|
|
19467
19675
|
*
|
|
@@ -19483,7 +19691,7 @@ var Api = /** @class */ (function (_super) {
|
|
|
19483
19691
|
* @name UpdateTenantOperationExtraTemplate
|
|
19484
19692
|
* @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
19485
19693
|
* @secure
|
|
19486
|
-
* @response `200` `
|
|
19694
|
+
* @response `200` `OperationExtraTemplateEntityDto`
|
|
19487
19695
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19488
19696
|
*/
|
|
19489
19697
|
updateTenantOperationExtraTemplate: function (tenantId, templateId, data, params) {
|
|
@@ -19546,6 +19754,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
19546
19754
|
if (params === void 0) { params = {}; }
|
|
19547
19755
|
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));
|
|
19548
19756
|
},
|
|
19757
|
+
/**
|
|
19758
|
+
* No description
|
|
19759
|
+
*
|
|
19760
|
+
* @tags Admin Tenant Wine Countries
|
|
19761
|
+
* @name UpdateTenantWineCountry
|
|
19762
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-countries/{countryId}
|
|
19763
|
+
* @secure
|
|
19764
|
+
* @response `200` `WineCountryEntityDto`
|
|
19765
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19766
|
+
*/
|
|
19767
|
+
updateTenantWineCountry: function (tenantId, countryId, data, params) {
|
|
19768
|
+
if (params === void 0) { params = {}; }
|
|
19769
|
+
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));
|
|
19770
|
+
},
|
|
19549
19771
|
/**
|
|
19550
19772
|
* No description
|
|
19551
19773
|
*
|
|
@@ -19560,6 +19782,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
19560
19782
|
if (params === void 0) { params = {}; }
|
|
19561
19783
|
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));
|
|
19562
19784
|
},
|
|
19785
|
+
/**
|
|
19786
|
+
* No description
|
|
19787
|
+
*
|
|
19788
|
+
* @tags Admin Tenant Wine Regions
|
|
19789
|
+
* @name UpdateTenantWineRegion
|
|
19790
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-regions/{regionId}
|
|
19791
|
+
* @secure
|
|
19792
|
+
* @response `200` `WineRegionEntityDto`
|
|
19793
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19794
|
+
*/
|
|
19795
|
+
updateTenantWineRegion: function (tenantId, regionId, data, params) {
|
|
19796
|
+
if (params === void 0) { params = {}; }
|
|
19797
|
+
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));
|
|
19798
|
+
},
|
|
19563
19799
|
/**
|
|
19564
19800
|
* No description
|
|
19565
19801
|
*
|