@thelllabs/winehaus-sdk 0.0.11 → 0.0.13
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 +178 -1
- package/dist/esm/api/api.js +177 -0
- package/dist/types/api/api.d.ts +652 -1
- package/dist/umd/index.ts +178 -1
- package/package.json +1 -1
package/dist/umd/index.ts
CHANGED
|
@@ -18410,7 +18410,30 @@ 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.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";
|
|
@@ -18597,6 +18620,62 @@ var Api = /** @class */ (function (_super) {
|
|
|
18597
18620
|
},
|
|
18598
18621
|
};
|
|
18599
18622
|
_this.users = {
|
|
18623
|
+
/**
|
|
18624
|
+
* No description
|
|
18625
|
+
*
|
|
18626
|
+
* @tags Users Addresses
|
|
18627
|
+
* @name CreateUserAddress
|
|
18628
|
+
* @request POST:/users/{userId}/addresses
|
|
18629
|
+
* @secure
|
|
18630
|
+
* @response `201` `AddressEntityDto`
|
|
18631
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18632
|
+
*/
|
|
18633
|
+
createUserAddress: function (userId, data, params) {
|
|
18634
|
+
if (params === void 0) { params = {}; }
|
|
18635
|
+
return _this.request(__assign({ path: "/users/".concat(userId, "/addresses"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18636
|
+
},
|
|
18637
|
+
/**
|
|
18638
|
+
* No description
|
|
18639
|
+
*
|
|
18640
|
+
* @tags Users Addresses
|
|
18641
|
+
* @name DeleteUserAddress
|
|
18642
|
+
* @request DELETE:/users/{userId}/addresses/{addressId}
|
|
18643
|
+
* @secure
|
|
18644
|
+
* @response `204` `void`
|
|
18645
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18646
|
+
*/
|
|
18647
|
+
deleteUserAddress: function (userId, addressId, params) {
|
|
18648
|
+
if (params === void 0) { params = {}; }
|
|
18649
|
+
return _this.request(__assign({ path: "/users/".concat(userId, "/addresses/").concat(addressId), method: "DELETE", secure: true }, params));
|
|
18650
|
+
},
|
|
18651
|
+
/**
|
|
18652
|
+
* No description
|
|
18653
|
+
*
|
|
18654
|
+
* @tags Users
|
|
18655
|
+
* @name GetUserProfile
|
|
18656
|
+
* @request GET:/users/{userId}
|
|
18657
|
+
* @secure
|
|
18658
|
+
* @response `200` `UserEntityWithTenantAccessesDto`
|
|
18659
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18660
|
+
*/
|
|
18661
|
+
getUserProfile: function (userId, params) {
|
|
18662
|
+
if (params === void 0) { params = {}; }
|
|
18663
|
+
return _this.request(__assign({ path: "/users/".concat(userId), method: "GET", secure: true, format: "json" }, params));
|
|
18664
|
+
},
|
|
18665
|
+
/**
|
|
18666
|
+
* No description
|
|
18667
|
+
*
|
|
18668
|
+
* @tags Users Addresses
|
|
18669
|
+
* @name ListUserAddresses
|
|
18670
|
+
* @request GET:/users/{userId}/addresses
|
|
18671
|
+
* @secure
|
|
18672
|
+
* @response `200` `AddressEntityPaginatedDto`
|
|
18673
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18674
|
+
*/
|
|
18675
|
+
listUserAddresses: function (userId, query, params) {
|
|
18676
|
+
if (params === void 0) { params = {}; }
|
|
18677
|
+
return _this.request(__assign({ path: "/users/".concat(userId, "/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
18678
|
+
},
|
|
18600
18679
|
/**
|
|
18601
18680
|
* No description
|
|
18602
18681
|
*
|
|
@@ -18627,6 +18706,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18627
18706
|
},
|
|
18628
18707
|
};
|
|
18629
18708
|
_this.admin = {
|
|
18709
|
+
/**
|
|
18710
|
+
* No description
|
|
18711
|
+
*
|
|
18712
|
+
* @tags Admin Tenant Cases
|
|
18713
|
+
* @name AddTenantCaseBatchOperations
|
|
18714
|
+
* @request POST:/admin/tenants/{tenantId}/cases/{caseId}/operations/batch
|
|
18715
|
+
* @secure
|
|
18716
|
+
* @response `200` `CaseBatchOperationResponseDto`
|
|
18717
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
18718
|
+
*/
|
|
18719
|
+
addTenantCaseBatchOperations: function (tenantId, caseId, data, params) {
|
|
18720
|
+
if (params === void 0) { params = {}; }
|
|
18721
|
+
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));
|
|
18722
|
+
},
|
|
18630
18723
|
/**
|
|
18631
18724
|
* @description Gives some user access to the tenant. If there's no user account attached to this users, it creates a new one
|
|
18632
18725
|
*
|
|
@@ -18641,6 +18734,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18641
18734
|
if (params === void 0) { params = {}; }
|
|
18642
18735
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18643
18736
|
},
|
|
18737
|
+
/**
|
|
18738
|
+
* No description
|
|
18739
|
+
*
|
|
18740
|
+
* @tags Admin Tenant Cases
|
|
18741
|
+
* @name CreateTenantCase
|
|
18742
|
+
* @request POST:/admin/tenants/{tenantId}/cases
|
|
18743
|
+
* @secure
|
|
18744
|
+
* @response `201` `CaseEntityDto`
|
|
18745
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
18746
|
+
*/
|
|
18747
|
+
createTenantCase: function (tenantId, data, params) {
|
|
18748
|
+
if (params === void 0) { params = {}; }
|
|
18749
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18750
|
+
},
|
|
18644
18751
|
/**
|
|
18645
18752
|
* No description
|
|
18646
18753
|
*
|
|
@@ -18795,6 +18902,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18795
18902
|
if (params === void 0) { params = {}; }
|
|
18796
18903
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18797
18904
|
},
|
|
18905
|
+
/**
|
|
18906
|
+
* No description
|
|
18907
|
+
*
|
|
18908
|
+
* @tags Admin Tenant Cases
|
|
18909
|
+
* @name DeleteTenantCase
|
|
18910
|
+
* @request DELETE:/admin/tenants/{tenantId}/cases/{caseId}
|
|
18911
|
+
* @secure
|
|
18912
|
+
* @response `204` `void`
|
|
18913
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
18914
|
+
*/
|
|
18915
|
+
deleteTenantCase: function (tenantId, caseId, params) {
|
|
18916
|
+
if (params === void 0) { params = {}; }
|
|
18917
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId), method: "DELETE", secure: true }, params));
|
|
18918
|
+
},
|
|
18798
18919
|
/**
|
|
18799
18920
|
* No description
|
|
18800
18921
|
*
|
|
@@ -18977,6 +19098,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18977
19098
|
if (params === void 0) { params = {}; }
|
|
18978
19099
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
18979
19100
|
},
|
|
19101
|
+
/**
|
|
19102
|
+
* No description
|
|
19103
|
+
*
|
|
19104
|
+
* @tags Admin Tenant Cases
|
|
19105
|
+
* @name GetTenantCaseById
|
|
19106
|
+
* @request GET:/admin/tenants/{tenantId}/cases/{caseId}
|
|
19107
|
+
* @secure
|
|
19108
|
+
* @response `200` `CaseEntityDto`
|
|
19109
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
|
|
19110
|
+
*/
|
|
19111
|
+
getTenantCaseById: function (tenantId, caseId, params) {
|
|
19112
|
+
if (params === void 0) { params = {}; }
|
|
19113
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId), method: "GET", secure: true, format: "json" }, params));
|
|
19114
|
+
},
|
|
18980
19115
|
/**
|
|
18981
19116
|
* No description
|
|
18982
19117
|
*
|
|
@@ -19131,6 +19266,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
19131
19266
|
if (params === void 0) { params = {}; }
|
|
19132
19267
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "GET", secure: true, format: "json" }, params));
|
|
19133
19268
|
},
|
|
19269
|
+
/**
|
|
19270
|
+
* No description
|
|
19271
|
+
*
|
|
19272
|
+
* @tags Admin Tenant Cases
|
|
19273
|
+
* @name ListTenantCaseInventory
|
|
19274
|
+
* @request GET:/admin/tenants/{tenantId}/cases/{caseId}/inventory
|
|
19275
|
+
* @secure
|
|
19276
|
+
* @response `200` `CaseWineInventoryItemEntityPaginatedDto`
|
|
19277
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
|
|
19278
|
+
*/
|
|
19279
|
+
listTenantCaseInventory: function (tenantId, caseId, query, params) {
|
|
19280
|
+
if (params === void 0) { params = {}; }
|
|
19281
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19282
|
+
},
|
|
19283
|
+
/**
|
|
19284
|
+
* No description
|
|
19285
|
+
*
|
|
19286
|
+
* @tags Admin Tenant Cases
|
|
19287
|
+
* @name ListTenantCases
|
|
19288
|
+
* @request GET:/admin/tenants/{tenantId}/cases
|
|
19289
|
+
* @secure
|
|
19290
|
+
* @response `200` `CaseEntityPaginatedDto`
|
|
19291
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
|
|
19292
|
+
*/
|
|
19293
|
+
listTenantCases: function (tenantId, query, params) {
|
|
19294
|
+
if (params === void 0) { params = {}; }
|
|
19295
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19296
|
+
},
|
|
19134
19297
|
/**
|
|
19135
19298
|
* No description
|
|
19136
19299
|
*
|
|
@@ -19299,6 +19462,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
19299
19462
|
if (params === void 0) { params = {}; }
|
|
19300
19463
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19301
19464
|
},
|
|
19465
|
+
/**
|
|
19466
|
+
* No description
|
|
19467
|
+
*
|
|
19468
|
+
* @tags Admin Tenant Cases
|
|
19469
|
+
* @name UpdateTenantCase
|
|
19470
|
+
* @request PATCH:/admin/tenants/{tenantId}/cases/{caseId}
|
|
19471
|
+
* @secure
|
|
19472
|
+
* @response `200` `CaseEntityDto`
|
|
19473
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19474
|
+
*/
|
|
19475
|
+
updateTenantCase: function (tenantId, caseId, data, params) {
|
|
19476
|
+
if (params === void 0) { params = {}; }
|
|
19477
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
19478
|
+
},
|
|
19302
19479
|
/**
|
|
19303
19480
|
* No description
|
|
19304
19481
|
*
|