@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.
- package/dist/cjs/api/api.js +390 -54
- package/dist/esm/api/api.js +389 -53
- package/dist/types/api/api.d.ts +1294 -174
- package/dist/umd/index.ts +390 -54
- package/package.json +1 -1
package/dist/umd/index.ts
CHANGED
|
@@ -18410,12 +18410,40 @@ 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 = void 0;
|
|
18413
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.PhoneTypeEnum = exports.OrderByEnum = exports.CreateOnlyCaseOperationStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
|
|
18414
|
+
var CaseOperationLogTypeEnum;
|
|
18415
|
+
(function (CaseOperationLogTypeEnum) {
|
|
18416
|
+
CaseOperationLogTypeEnum["RequestAccepted"] = "request_accepted";
|
|
18417
|
+
CaseOperationLogTypeEnum["StatusChange"] = "status_change";
|
|
18418
|
+
})(CaseOperationLogTypeEnum = exports.CaseOperationLogTypeEnum || (exports.CaseOperationLogTypeEnum = {}));
|
|
18419
|
+
var CaseOperationStatusEnum;
|
|
18420
|
+
(function (CaseOperationStatusEnum) {
|
|
18421
|
+
CaseOperationStatusEnum["OnHold"] = "on_hold";
|
|
18422
|
+
CaseOperationStatusEnum["Confirmed"] = "confirmed";
|
|
18423
|
+
CaseOperationStatusEnum["Processed"] = "processed";
|
|
18424
|
+
CaseOperationStatusEnum["Cancelled"] = "cancelled";
|
|
18425
|
+
})(CaseOperationStatusEnum = exports.CaseOperationStatusEnum || (exports.CaseOperationStatusEnum = {}));
|
|
18426
|
+
var CaseOperationTypesEnum;
|
|
18427
|
+
(function (CaseOperationTypesEnum) {
|
|
18428
|
+
CaseOperationTypesEnum["Deposit"] = "deposit";
|
|
18429
|
+
CaseOperationTypesEnum["Withdrawal"] = "withdrawal";
|
|
18430
|
+
})(CaseOperationTypesEnum = exports.CaseOperationTypesEnum || (exports.CaseOperationTypesEnum = {}));
|
|
18431
|
+
var CreateOnlyCaseOperationStatusEnum;
|
|
18432
|
+
(function (CreateOnlyCaseOperationStatusEnum) {
|
|
18433
|
+
CreateOnlyCaseOperationStatusEnum["OnHold"] = "on_hold";
|
|
18434
|
+
CreateOnlyCaseOperationStatusEnum["Confirmed"] = "confirmed";
|
|
18435
|
+
CreateOnlyCaseOperationStatusEnum["Processed"] = "processed";
|
|
18436
|
+
})(CreateOnlyCaseOperationStatusEnum = exports.CreateOnlyCaseOperationStatusEnum || (exports.CreateOnlyCaseOperationStatusEnum = {}));
|
|
18414
18437
|
var OrderByEnum;
|
|
18415
18438
|
(function (OrderByEnum) {
|
|
18416
18439
|
OrderByEnum["ASC"] = "ASC";
|
|
18417
18440
|
OrderByEnum["DESC"] = "DESC";
|
|
18418
18441
|
})(OrderByEnum = exports.OrderByEnum || (exports.OrderByEnum = {}));
|
|
18442
|
+
var PhoneTypeEnum;
|
|
18443
|
+
(function (PhoneTypeEnum) {
|
|
18444
|
+
PhoneTypeEnum["Fixed"] = "fixed";
|
|
18445
|
+
PhoneTypeEnum["Mobile"] = "mobile";
|
|
18446
|
+
})(PhoneTypeEnum = exports.PhoneTypeEnum || (exports.PhoneTypeEnum = {}));
|
|
18419
18447
|
var TenantRoleEnum;
|
|
18420
18448
|
(function (TenantRoleEnum) {
|
|
18421
18449
|
TenantRoleEnum["Operator"] = "operator";
|
|
@@ -18596,50 +18624,190 @@ var Api = /** @class */ (function (_super) {
|
|
|
18596
18624
|
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18597
18625
|
},
|
|
18598
18626
|
};
|
|
18599
|
-
_this.
|
|
18627
|
+
_this.tenants = {
|
|
18600
18628
|
/**
|
|
18601
18629
|
* No description
|
|
18602
18630
|
*
|
|
18603
|
-
* @tags Users
|
|
18604
|
-
* @name
|
|
18605
|
-
* @request
|
|
18631
|
+
* @tags Tenant Users
|
|
18632
|
+
* @name CreateTenantUser
|
|
18633
|
+
* @request POST:/tenants/{tenantId}/users
|
|
18606
18634
|
* @secure
|
|
18607
18635
|
* @response `200` `UserEntityDto`
|
|
18636
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
18637
|
+
*/
|
|
18638
|
+
createTenantUser: function (tenantId, data, params) {
|
|
18639
|
+
if (params === void 0) { params = {}; }
|
|
18640
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18641
|
+
},
|
|
18642
|
+
/**
|
|
18643
|
+
* No description
|
|
18644
|
+
*
|
|
18645
|
+
* @tags Tenant Users
|
|
18646
|
+
* @name CreateUserAddress
|
|
18647
|
+
* @request POST:/tenants/{tenantId}/users/userId/addresses
|
|
18648
|
+
* @secure
|
|
18649
|
+
* @response `201` `AddressEntityDto`
|
|
18650
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18651
|
+
*/
|
|
18652
|
+
createUserAddress: function (tenantId, userId, data, params) {
|
|
18653
|
+
if (params === void 0) { params = {}; }
|
|
18654
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18655
|
+
},
|
|
18656
|
+
/**
|
|
18657
|
+
* No description
|
|
18658
|
+
*
|
|
18659
|
+
* @tags Tenant Users
|
|
18660
|
+
* @name DeleteTenantUser
|
|
18661
|
+
* @request DELETE:/tenants/{tenantId}/users/{userId}
|
|
18662
|
+
* @secure
|
|
18663
|
+
* @response `204` `void`
|
|
18664
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
18665
|
+
*/
|
|
18666
|
+
deleteTenantUser: function (tenantId, userId, params) {
|
|
18667
|
+
if (params === void 0) { params = {}; }
|
|
18668
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "DELETE", secure: true }, params));
|
|
18669
|
+
},
|
|
18670
|
+
/**
|
|
18671
|
+
* No description
|
|
18672
|
+
*
|
|
18673
|
+
* @tags Tenant Users
|
|
18674
|
+
* @name DeleteUserAddress
|
|
18675
|
+
* @request DELETE:/tenants/{tenantId}/users/userId/addresses/{addressId}
|
|
18676
|
+
* @secure
|
|
18677
|
+
* @response `204` `void`
|
|
18678
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18679
|
+
*/
|
|
18680
|
+
deleteUserAddress: function (tenantId, userId, addressId, params) {
|
|
18681
|
+
if (params === void 0) { params = {}; }
|
|
18682
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses/").concat(addressId), method: "DELETE", secure: true }, params));
|
|
18683
|
+
},
|
|
18684
|
+
/**
|
|
18685
|
+
* No description
|
|
18686
|
+
*
|
|
18687
|
+
* @tags Tenant Users
|
|
18688
|
+
* @name DisableTenantUser
|
|
18689
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}/disable
|
|
18690
|
+
* @secure
|
|
18691
|
+
* @response `204` `void`
|
|
18692
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
18693
|
+
*/
|
|
18694
|
+
disableTenantUser: function (tenantId, userId, params) {
|
|
18695
|
+
if (params === void 0) { params = {}; }
|
|
18696
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/disable"), method: "PATCH", secure: true }, params));
|
|
18697
|
+
},
|
|
18698
|
+
/**
|
|
18699
|
+
* No description
|
|
18700
|
+
*
|
|
18701
|
+
* @tags Tenant Users
|
|
18702
|
+
* @name EnableTenantUser
|
|
18703
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}/enable
|
|
18704
|
+
* @secure
|
|
18705
|
+
* @response `204` `void`
|
|
18706
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
18707
|
+
*/
|
|
18708
|
+
enableTenantUser: function (tenantId, userId, params) {
|
|
18709
|
+
if (params === void 0) { params = {}; }
|
|
18710
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
18711
|
+
},
|
|
18712
|
+
/**
|
|
18713
|
+
* No description
|
|
18714
|
+
*
|
|
18715
|
+
* @tags Tenant Users
|
|
18716
|
+
* @name GetTenantUser
|
|
18717
|
+
* @request GET:/tenants/{tenantId}/users/{userId}
|
|
18718
|
+
* @secure
|
|
18719
|
+
* @response `200` `UserEntityDto`
|
|
18720
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18721
|
+
*/
|
|
18722
|
+
getTenantUser: function (tenantId, userId, params) {
|
|
18723
|
+
if (params === void 0) { params = {}; }
|
|
18724
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "GET", secure: true, format: "json" }, params));
|
|
18725
|
+
},
|
|
18726
|
+
/**
|
|
18727
|
+
* No description
|
|
18728
|
+
*
|
|
18729
|
+
* @tags Tenant Users
|
|
18730
|
+
* @name ListTenantUsers
|
|
18731
|
+
* @request GET:/tenants/{tenantId}/users
|
|
18732
|
+
* @secure
|
|
18733
|
+
* @response `200` `UserEntityPaginatedDto`
|
|
18734
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
18735
|
+
*/
|
|
18736
|
+
listTenantUsers: function (tenantId, query, params) {
|
|
18737
|
+
if (params === void 0) { params = {}; }
|
|
18738
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
18739
|
+
},
|
|
18740
|
+
/**
|
|
18741
|
+
* No description
|
|
18742
|
+
*
|
|
18743
|
+
* @tags Tenant Users
|
|
18744
|
+
* @name ListUserAddresses
|
|
18745
|
+
* @request GET:/tenants/{tenantId}/users/userId/addresses
|
|
18746
|
+
* @secure
|
|
18747
|
+
* @response `200` `AddressEntityPaginatedDto`
|
|
18608
18748
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18609
18749
|
*/
|
|
18610
|
-
|
|
18750
|
+
listUserAddresses: function (tenantId, userId, query, params) {
|
|
18611
18751
|
if (params === void 0) { params = {}; }
|
|
18612
|
-
return _this.request(__assign({ path: "/
|
|
18752
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
18613
18753
|
},
|
|
18614
18754
|
/**
|
|
18615
18755
|
* No description
|
|
18616
18756
|
*
|
|
18617
|
-
* @tags Users
|
|
18618
|
-
* @name
|
|
18619
|
-
* @request PATCH:/users/{userId}
|
|
18757
|
+
* @tags Tenant Users
|
|
18758
|
+
* @name UpdateTenantUser
|
|
18759
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}
|
|
18620
18760
|
* @secure
|
|
18621
18761
|
* @response `200` `UserEntityDto`
|
|
18622
18762
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18623
18763
|
*/
|
|
18624
|
-
|
|
18764
|
+
updateTenantUser: function (tenantId, userId, data, params) {
|
|
18625
18765
|
if (params === void 0) { params = {}; }
|
|
18626
|
-
return _this.request(__assign({ path: "/users/".concat(userId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18766
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18767
|
+
},
|
|
18768
|
+
/**
|
|
18769
|
+
* No description
|
|
18770
|
+
*
|
|
18771
|
+
* @tags Tenant Users
|
|
18772
|
+
* @name UpdateTenantUserPassword
|
|
18773
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}/password
|
|
18774
|
+
* @secure
|
|
18775
|
+
* @response `200` `UserEntityDto`
|
|
18776
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18777
|
+
*/
|
|
18778
|
+
updateTenantUserPassword: function (tenantId, userId, data, params) {
|
|
18779
|
+
if (params === void 0) { params = {}; }
|
|
18780
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/password"), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18627
18781
|
},
|
|
18628
18782
|
};
|
|
18629
18783
|
_this.admin = {
|
|
18630
18784
|
/**
|
|
18631
|
-
*
|
|
18785
|
+
* No description
|
|
18632
18786
|
*
|
|
18633
|
-
* @tags Admin Tenant
|
|
18634
|
-
* @name
|
|
18635
|
-
* @request POST:/admin/tenants/{tenantId}/
|
|
18787
|
+
* @tags Admin Tenant Cases
|
|
18788
|
+
* @name AddTenantCaseBatchOperations
|
|
18789
|
+
* @request POST:/admin/tenants/{tenantId}/cases/{caseId}/operations/batch
|
|
18636
18790
|
* @secure
|
|
18637
|
-
* @response `200` `
|
|
18791
|
+
* @response `200` `CaseBatchOperationResponseDto`
|
|
18792
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
18793
|
+
*/
|
|
18794
|
+
addTenantCaseBatchOperations: function (tenantId, caseId, data, params) {
|
|
18795
|
+
if (params === void 0) { params = {}; }
|
|
18796
|
+
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));
|
|
18797
|
+
},
|
|
18798
|
+
/**
|
|
18799
|
+
* No description
|
|
18800
|
+
*
|
|
18801
|
+
* @tags Admin Tenant Cases
|
|
18802
|
+
* @name CreateTenantCase
|
|
18803
|
+
* @request POST:/admin/tenants/{tenantId}/cases
|
|
18804
|
+
* @secure
|
|
18805
|
+
* @response `201` `CaseEntityDto`
|
|
18638
18806
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
18639
18807
|
*/
|
|
18640
|
-
|
|
18808
|
+
createTenantCase: function (tenantId, data, params) {
|
|
18641
18809
|
if (params === void 0) { params = {}; }
|
|
18642
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/
|
|
18810
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18643
18811
|
},
|
|
18644
18812
|
/**
|
|
18645
18813
|
* No description
|
|
@@ -18711,6 +18879,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18711
18879
|
if (params === void 0) { params = {}; }
|
|
18712
18880
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18713
18881
|
},
|
|
18882
|
+
/**
|
|
18883
|
+
* No description
|
|
18884
|
+
*
|
|
18885
|
+
* @tags Admin Tenant Wine Countries
|
|
18886
|
+
* @name CreateTenantWineCountry
|
|
18887
|
+
* @request POST:/admin/tenants/{tenantId}/wine-countries
|
|
18888
|
+
* @secure
|
|
18889
|
+
* @response `201` `WineCountryEntityDto`
|
|
18890
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
18891
|
+
*/
|
|
18892
|
+
createTenantWineCountry: function (tenantId, data, params) {
|
|
18893
|
+
if (params === void 0) { params = {}; }
|
|
18894
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18895
|
+
},
|
|
18714
18896
|
/**
|
|
18715
18897
|
* No description
|
|
18716
18898
|
*
|
|
@@ -18725,6 +18907,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18725
18907
|
if (params === void 0) { params = {}; }
|
|
18726
18908
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18727
18909
|
},
|
|
18910
|
+
/**
|
|
18911
|
+
* No description
|
|
18912
|
+
*
|
|
18913
|
+
* @tags Admin Tenant Wine Regions
|
|
18914
|
+
* @name CreateTenantWineRegion
|
|
18915
|
+
* @request POST:/admin/tenants/{tenantId}/wine-regions
|
|
18916
|
+
* @secure
|
|
18917
|
+
* @response `201` `WineRegionEntityDto`
|
|
18918
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
18919
|
+
*/
|
|
18920
|
+
createTenantWineRegion: function (tenantId, data, params) {
|
|
18921
|
+
if (params === void 0) { params = {}; }
|
|
18922
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18923
|
+
},
|
|
18728
18924
|
/**
|
|
18729
18925
|
* No description
|
|
18730
18926
|
*
|
|
@@ -18795,6 +18991,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18795
18991
|
if (params === void 0) { params = {}; }
|
|
18796
18992
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18797
18993
|
},
|
|
18994
|
+
/**
|
|
18995
|
+
* No description
|
|
18996
|
+
*
|
|
18997
|
+
* @tags Admin Tenant Cases
|
|
18998
|
+
* @name DeleteTenantCase
|
|
18999
|
+
* @request DELETE:/admin/tenants/{tenantId}/cases/{caseId}
|
|
19000
|
+
* @secure
|
|
19001
|
+
* @response `204` `void`
|
|
19002
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19003
|
+
*/
|
|
19004
|
+
deleteTenantCase: function (tenantId, caseId, params) {
|
|
19005
|
+
if (params === void 0) { params = {}; }
|
|
19006
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId), method: "DELETE", secure: true }, params));
|
|
19007
|
+
},
|
|
18798
19008
|
/**
|
|
18799
19009
|
* No description
|
|
18800
19010
|
*
|
|
@@ -18865,6 +19075,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18865
19075
|
if (params === void 0) { params = {}; }
|
|
18866
19076
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands/").concat(brandId), method: "DELETE", secure: true }, params));
|
|
18867
19077
|
},
|
|
19078
|
+
/**
|
|
19079
|
+
* No description
|
|
19080
|
+
*
|
|
19081
|
+
* @tags Admin Tenant Wine Countries
|
|
19082
|
+
* @name DeleteTenantWineCountry
|
|
19083
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-countries/{countryId}
|
|
19084
|
+
* @secure
|
|
19085
|
+
* @response `204` `void`
|
|
19086
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19087
|
+
*/
|
|
19088
|
+
deleteTenantWineCountry: function (tenantId, countryId, params) {
|
|
19089
|
+
if (params === void 0) { params = {}; }
|
|
19090
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries/").concat(countryId), method: "DELETE", secure: true }, params));
|
|
19091
|
+
},
|
|
18868
19092
|
/**
|
|
18869
19093
|
* No description
|
|
18870
19094
|
*
|
|
@@ -18879,6 +19103,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18879
19103
|
if (params === void 0) { params = {}; }
|
|
18880
19104
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "DELETE", secure: true }, params));
|
|
18881
19105
|
},
|
|
19106
|
+
/**
|
|
19107
|
+
* No description
|
|
19108
|
+
*
|
|
19109
|
+
* @tags Admin Tenant Wine Regions
|
|
19110
|
+
* @name DeleteTenantWineRegion
|
|
19111
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-regions/{regionId}
|
|
19112
|
+
* @secure
|
|
19113
|
+
* @response `204` `void`
|
|
19114
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19115
|
+
*/
|
|
19116
|
+
deleteTenantWineRegion: function (tenantId, regionId, params) {
|
|
19117
|
+
if (params === void 0) { params = {}; }
|
|
19118
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions/").concat(regionId), method: "DELETE", secure: true }, params));
|
|
19119
|
+
},
|
|
18882
19120
|
/**
|
|
18883
19121
|
* No description
|
|
18884
19122
|
*
|
|
@@ -18952,30 +19190,16 @@ var Api = /** @class */ (function (_super) {
|
|
|
18952
19190
|
/**
|
|
18953
19191
|
* No description
|
|
18954
19192
|
*
|
|
18955
|
-
* @tags Admin Tenant
|
|
18956
|
-
* @name
|
|
18957
|
-
* @request
|
|
19193
|
+
* @tags Admin Tenant Cases
|
|
19194
|
+
* @name GetTenantCaseById
|
|
19195
|
+
* @request GET:/admin/tenants/{tenantId}/cases/{caseId}
|
|
18958
19196
|
* @secure
|
|
18959
|
-
* @response `
|
|
18960
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19197
|
+
* @response `200` `CaseEntityDto`
|
|
19198
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
|
|
18961
19199
|
*/
|
|
18962
|
-
|
|
19200
|
+
getTenantCaseById: function (tenantId, caseId, params) {
|
|
18963
19201
|
if (params === void 0) { params = {}; }
|
|
18964
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/
|
|
18965
|
-
},
|
|
18966
|
-
/**
|
|
18967
|
-
* No description
|
|
18968
|
-
*
|
|
18969
|
-
* @tags Admin Tenant Users
|
|
18970
|
-
* @name EnableTenantUser
|
|
18971
|
-
* @request PATCH:/admin/tenants/{tenantId}/users/{userId}/enable
|
|
18972
|
-
* @secure
|
|
18973
|
-
* @response `204` `void`
|
|
18974
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
18975
|
-
*/
|
|
18976
|
-
enableTenantUser: function (tenantId, userId, params) {
|
|
18977
|
-
if (params === void 0) { params = {}; }
|
|
18978
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
19202
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId), method: "GET", secure: true, format: "json" }, params));
|
|
18979
19203
|
},
|
|
18980
19204
|
/**
|
|
18981
19205
|
* No description
|
|
@@ -19047,6 +19271,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
19047
19271
|
if (params === void 0) { params = {}; }
|
|
19048
19272
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines/").concat(wineId), method: "GET", secure: true, format: "json" }, params));
|
|
19049
19273
|
},
|
|
19274
|
+
/**
|
|
19275
|
+
* No description
|
|
19276
|
+
*
|
|
19277
|
+
* @tags Admin Tenant Wine Countries
|
|
19278
|
+
* @name GetTenantWineCountryById
|
|
19279
|
+
* @request GET:/admin/tenants/{tenantId}/wine-countries/{countryId}
|
|
19280
|
+
* @secure
|
|
19281
|
+
* @response `200` `WineCountryEntityDto`
|
|
19282
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19283
|
+
*/
|
|
19284
|
+
getTenantWineCountryById: function (tenantId, countryId, params) {
|
|
19285
|
+
if (params === void 0) { params = {}; }
|
|
19286
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries/").concat(countryId), method: "GET", secure: true, format: "json" }, params));
|
|
19287
|
+
},
|
|
19050
19288
|
/**
|
|
19051
19289
|
* No description
|
|
19052
19290
|
*
|
|
@@ -19061,6 +19299,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
19061
19299
|
if (params === void 0) { params = {}; }
|
|
19062
19300
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "GET", secure: true, format: "json" }, params));
|
|
19063
19301
|
},
|
|
19302
|
+
/**
|
|
19303
|
+
* No description
|
|
19304
|
+
*
|
|
19305
|
+
* @tags Admin Tenant Wine Regions
|
|
19306
|
+
* @name GetTenantWineRegionById
|
|
19307
|
+
* @request GET:/admin/tenants/{tenantId}/wine-regions/{regionId}
|
|
19308
|
+
* @secure
|
|
19309
|
+
* @response `200` `WineRegionEntityDto`
|
|
19310
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19311
|
+
*/
|
|
19312
|
+
getTenantWineRegionById: function (tenantId, regionId, params) {
|
|
19313
|
+
if (params === void 0) { params = {}; }
|
|
19314
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions/").concat(regionId), method: "GET", secure: true, format: "json" }, params));
|
|
19315
|
+
},
|
|
19064
19316
|
/**
|
|
19065
19317
|
* No description
|
|
19066
19318
|
*
|
|
@@ -19134,30 +19386,44 @@ var Api = /** @class */ (function (_super) {
|
|
|
19134
19386
|
/**
|
|
19135
19387
|
* No description
|
|
19136
19388
|
*
|
|
19137
|
-
* @tags Admin Tenant
|
|
19138
|
-
* @name
|
|
19139
|
-
* @request GET:/admin/tenants/{tenantId}/
|
|
19389
|
+
* @tags Admin Tenant Cases
|
|
19390
|
+
* @name ListTenantCaseInventory
|
|
19391
|
+
* @request GET:/admin/tenants/{tenantId}/cases/{caseId}/inventory
|
|
19140
19392
|
* @secure
|
|
19141
|
-
* @response `200` `
|
|
19142
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19393
|
+
* @response `200` `CaseWineInventoryItemEntityPaginatedDto`
|
|
19394
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
|
|
19143
19395
|
*/
|
|
19144
|
-
|
|
19396
|
+
listTenantCaseInventory: function (tenantId, caseId, query, params) {
|
|
19145
19397
|
if (params === void 0) { params = {}; }
|
|
19146
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/
|
|
19398
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19147
19399
|
},
|
|
19148
19400
|
/**
|
|
19149
19401
|
* No description
|
|
19150
19402
|
*
|
|
19151
|
-
* @tags Admin Tenant
|
|
19152
|
-
* @name
|
|
19153
|
-
* @request GET:/admin/tenants/{tenantId}/
|
|
19403
|
+
* @tags Admin Tenant Cases
|
|
19404
|
+
* @name ListTenantCases
|
|
19405
|
+
* @request GET:/admin/tenants/{tenantId}/cases
|
|
19154
19406
|
* @secure
|
|
19155
|
-
* @response `200` `
|
|
19156
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19407
|
+
* @response `200` `CaseEntityPaginatedDto`
|
|
19408
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
|
|
19157
19409
|
*/
|
|
19158
|
-
|
|
19410
|
+
listTenantCases: function (tenantId, query, params) {
|
|
19411
|
+
if (params === void 0) { params = {}; }
|
|
19412
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19413
|
+
},
|
|
19414
|
+
/**
|
|
19415
|
+
* No description
|
|
19416
|
+
*
|
|
19417
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
19418
|
+
* @name ListTenantOperationExtrasTemplates
|
|
19419
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates
|
|
19420
|
+
* @secure
|
|
19421
|
+
* @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
|
|
19422
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19423
|
+
*/
|
|
19424
|
+
listTenantOperationExtrasTemplates: function (tenantId, query, params) {
|
|
19159
19425
|
if (params === void 0) { params = {}; }
|
|
19160
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/
|
|
19426
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19161
19427
|
},
|
|
19162
19428
|
/**
|
|
19163
19429
|
* No description
|
|
@@ -19201,6 +19467,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
19201
19467
|
if (params === void 0) { params = {}; }
|
|
19202
19468
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19203
19469
|
},
|
|
19470
|
+
/**
|
|
19471
|
+
* No description
|
|
19472
|
+
*
|
|
19473
|
+
* @tags Admin Tenant Wine Countries
|
|
19474
|
+
* @name ListTenantWineCountries
|
|
19475
|
+
* @request GET:/admin/tenants/{tenantId}/wine-countries
|
|
19476
|
+
* @secure
|
|
19477
|
+
* @response `200` `WineCountryEntityPaginatedDto`
|
|
19478
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19479
|
+
*/
|
|
19480
|
+
listTenantWineCountries: function (tenantId, query, params) {
|
|
19481
|
+
if (params === void 0) { params = {}; }
|
|
19482
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19483
|
+
},
|
|
19204
19484
|
/**
|
|
19205
19485
|
* No description
|
|
19206
19486
|
*
|
|
@@ -19215,6 +19495,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
19215
19495
|
if (params === void 0) { params = {}; }
|
|
19216
19496
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19217
19497
|
},
|
|
19498
|
+
/**
|
|
19499
|
+
* No description
|
|
19500
|
+
*
|
|
19501
|
+
* @tags Admin Tenant Wine Regions
|
|
19502
|
+
* @name ListTenantWineRegions
|
|
19503
|
+
* @request GET:/admin/tenants/{tenantId}/wine-regions
|
|
19504
|
+
* @secure
|
|
19505
|
+
* @response `200` `WineRegionEntityPaginatedDto`
|
|
19506
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19507
|
+
*/
|
|
19508
|
+
listTenantWineRegions: function (tenantId, query, params) {
|
|
19509
|
+
if (params === void 0) { params = {}; }
|
|
19510
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19511
|
+
},
|
|
19218
19512
|
/**
|
|
19219
19513
|
* No description
|
|
19220
19514
|
*
|
|
@@ -19299,6 +19593,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
19299
19593
|
if (params === void 0) { params = {}; }
|
|
19300
19594
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19301
19595
|
},
|
|
19596
|
+
/**
|
|
19597
|
+
* No description
|
|
19598
|
+
*
|
|
19599
|
+
* @tags Admin Tenant Cases
|
|
19600
|
+
* @name UpdateTenantCase
|
|
19601
|
+
* @request PATCH:/admin/tenants/{tenantId}/cases/{caseId}
|
|
19602
|
+
* @secure
|
|
19603
|
+
* @response `200` `CaseEntityDto`
|
|
19604
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19605
|
+
*/
|
|
19606
|
+
updateTenantCase: function (tenantId, caseId, data, params) {
|
|
19607
|
+
if (params === void 0) { params = {}; }
|
|
19608
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
19609
|
+
},
|
|
19302
19610
|
/**
|
|
19303
19611
|
* No description
|
|
19304
19612
|
*
|
|
@@ -19369,6 +19677,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
19369
19677
|
if (params === void 0) { params = {}; }
|
|
19370
19678
|
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));
|
|
19371
19679
|
},
|
|
19680
|
+
/**
|
|
19681
|
+
* No description
|
|
19682
|
+
*
|
|
19683
|
+
* @tags Admin Tenant Wine Countries
|
|
19684
|
+
* @name UpdateTenantWineCountry
|
|
19685
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-countries/{countryId}
|
|
19686
|
+
* @secure
|
|
19687
|
+
* @response `200` `WineCountryEntityDto`
|
|
19688
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19689
|
+
*/
|
|
19690
|
+
updateTenantWineCountry: function (tenantId, countryId, data, params) {
|
|
19691
|
+
if (params === void 0) { params = {}; }
|
|
19692
|
+
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));
|
|
19693
|
+
},
|
|
19372
19694
|
/**
|
|
19373
19695
|
* No description
|
|
19374
19696
|
*
|
|
@@ -19383,6 +19705,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
19383
19705
|
if (params === void 0) { params = {}; }
|
|
19384
19706
|
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));
|
|
19385
19707
|
},
|
|
19708
|
+
/**
|
|
19709
|
+
* No description
|
|
19710
|
+
*
|
|
19711
|
+
* @tags Admin Tenant Wine Regions
|
|
19712
|
+
* @name UpdateTenantWineRegion
|
|
19713
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-regions/{regionId}
|
|
19714
|
+
* @secure
|
|
19715
|
+
* @response `200` `WineRegionEntityDto`
|
|
19716
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19717
|
+
*/
|
|
19718
|
+
updateTenantWineRegion: function (tenantId, regionId, data, params) {
|
|
19719
|
+
if (params === void 0) { params = {}; }
|
|
19720
|
+
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));
|
|
19721
|
+
},
|
|
19386
19722
|
/**
|
|
19387
19723
|
* No description
|
|
19388
19724
|
*
|