@thelllabs/winehaus-sdk 0.0.8 → 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 +249 -2
- package/dist/esm/api/api.js +248 -1
- package/dist/types/api/api.d.ts +873 -4
- package/dist/umd/index.ts +249 -2
- 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";
|
|
@@ -18522,7 +18545,7 @@ var HttpClient = /** @class */ (function () {
|
|
|
18522
18545
|
exports.HttpClient = HttpClient;
|
|
18523
18546
|
/**
|
|
18524
18547
|
* @title winehaus-api
|
|
18525
|
-
* @version 0.0.
|
|
18548
|
+
* @version 0.0.2
|
|
18526
18549
|
* @baseUrl http://localhost:3000
|
|
18527
18550
|
* @contact
|
|
18528
18551
|
*/
|
|
@@ -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,34 @@ 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
|
+
},
|
|
18751
|
+
/**
|
|
18752
|
+
* No description
|
|
18753
|
+
*
|
|
18754
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
18755
|
+
* @name CreateTenantOperationExtraTemplate
|
|
18756
|
+
* @request POST:/admin/tenants/{tenantId}/operation-extras-templates
|
|
18757
|
+
* @secure
|
|
18758
|
+
* @response `201` `CaseOperationExtraTemplateEntityDto`
|
|
18759
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
18760
|
+
*/
|
|
18761
|
+
createTenantOperationExtraTemplate: function (tenantId, data, params) {
|
|
18762
|
+
if (params === void 0) { params = {}; }
|
|
18763
|
+
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
|
+
},
|
|
18644
18765
|
/**
|
|
18645
18766
|
* No description
|
|
18646
18767
|
*
|
|
@@ -18781,6 +18902,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
18781
18902
|
if (params === void 0) { params = {}; }
|
|
18782
18903
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18783
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
|
+
},
|
|
18919
|
+
/**
|
|
18920
|
+
* No description
|
|
18921
|
+
*
|
|
18922
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
18923
|
+
* @name DeleteTenantOperationExtraTemplate
|
|
18924
|
+
* @request DELETE:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
18925
|
+
* @secure
|
|
18926
|
+
* @response `204` `void`
|
|
18927
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
18928
|
+
*/
|
|
18929
|
+
deleteTenantOperationExtraTemplate: function (tenantId, templateId, params) {
|
|
18930
|
+
if (params === void 0) { params = {}; }
|
|
18931
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "DELETE", secure: true }, params));
|
|
18932
|
+
},
|
|
18784
18933
|
/**
|
|
18785
18934
|
* No description
|
|
18786
18935
|
*
|
|
@@ -18949,6 +19098,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
18949
19098
|
if (params === void 0) { params = {}; }
|
|
18950
19099
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
18951
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
|
+
},
|
|
19115
|
+
/**
|
|
19116
|
+
* No description
|
|
19117
|
+
*
|
|
19118
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
19119
|
+
* @name GetTenantOperationExtraTemplateById
|
|
19120
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
19121
|
+
* @secure
|
|
19122
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
19123
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19124
|
+
*/
|
|
19125
|
+
getTenantOperationExtraTemplateById: function (tenantId, templateId, params) {
|
|
19126
|
+
if (params === void 0) { params = {}; }
|
|
19127
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "GET", secure: true, format: "json" }, params));
|
|
19128
|
+
},
|
|
18952
19129
|
/**
|
|
18953
19130
|
* No description
|
|
18954
19131
|
*
|
|
@@ -19089,6 +19266,48 @@ var Api = /** @class */ (function (_super) {
|
|
|
19089
19266
|
if (params === void 0) { params = {}; }
|
|
19090
19267
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "GET", secure: true, format: "json" }, params));
|
|
19091
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
|
+
},
|
|
19297
|
+
/**
|
|
19298
|
+
* No description
|
|
19299
|
+
*
|
|
19300
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
19301
|
+
* @name ListTenantOperationExtrasTemplates
|
|
19302
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates
|
|
19303
|
+
* @secure
|
|
19304
|
+
* @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
|
|
19305
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19306
|
+
*/
|
|
19307
|
+
listTenantOperationExtrasTemplates: function (tenantId, query, params) {
|
|
19308
|
+
if (params === void 0) { params = {}; }
|
|
19309
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19310
|
+
},
|
|
19092
19311
|
/**
|
|
19093
19312
|
* No description
|
|
19094
19313
|
*
|
|
@@ -19243,6 +19462,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
19243
19462
|
if (params === void 0) { params = {}; }
|
|
19244
19463
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19245
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
|
+
},
|
|
19479
|
+
/**
|
|
19480
|
+
* No description
|
|
19481
|
+
*
|
|
19482
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
19483
|
+
* @name UpdateTenantOperationExtraTemplate
|
|
19484
|
+
* @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
19485
|
+
* @secure
|
|
19486
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
19487
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19488
|
+
*/
|
|
19489
|
+
updateTenantOperationExtraTemplate: function (tenantId, templateId, data, params) {
|
|
19490
|
+
if (params === void 0) { params = {}; }
|
|
19491
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
19492
|
+
},
|
|
19246
19493
|
/**
|
|
19247
19494
|
* No description
|
|
19248
19495
|
*
|