@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/cjs/api/api.js
CHANGED
|
@@ -85,7 +85,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
85
85
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
86
86
|
};
|
|
87
87
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
88
|
-
exports.Api = exports.HttpClient = exports.ContentType = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.OrderByEnum = void 0;
|
|
88
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.OrderByEnum = exports.CreateOnlyCaseOperationStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
|
|
89
|
+
var CaseOperationLogTypeEnum;
|
|
90
|
+
(function (CaseOperationLogTypeEnum) {
|
|
91
|
+
CaseOperationLogTypeEnum["RequestAccepted"] = "request_accepted";
|
|
92
|
+
CaseOperationLogTypeEnum["StatusChange"] = "status_change";
|
|
93
|
+
})(CaseOperationLogTypeEnum = exports.CaseOperationLogTypeEnum || (exports.CaseOperationLogTypeEnum = {}));
|
|
94
|
+
var CaseOperationStatusEnum;
|
|
95
|
+
(function (CaseOperationStatusEnum) {
|
|
96
|
+
CaseOperationStatusEnum["OnHold"] = "on_hold";
|
|
97
|
+
CaseOperationStatusEnum["Confirmed"] = "confirmed";
|
|
98
|
+
CaseOperationStatusEnum["Processed"] = "processed";
|
|
99
|
+
CaseOperationStatusEnum["Cancelled"] = "cancelled";
|
|
100
|
+
})(CaseOperationStatusEnum = exports.CaseOperationStatusEnum || (exports.CaseOperationStatusEnum = {}));
|
|
101
|
+
var CaseOperationTypesEnum;
|
|
102
|
+
(function (CaseOperationTypesEnum) {
|
|
103
|
+
CaseOperationTypesEnum["Deposit"] = "deposit";
|
|
104
|
+
CaseOperationTypesEnum["Withdrawal"] = "withdrawal";
|
|
105
|
+
})(CaseOperationTypesEnum = exports.CaseOperationTypesEnum || (exports.CaseOperationTypesEnum = {}));
|
|
106
|
+
var CreateOnlyCaseOperationStatusEnum;
|
|
107
|
+
(function (CreateOnlyCaseOperationStatusEnum) {
|
|
108
|
+
CreateOnlyCaseOperationStatusEnum["OnHold"] = "on_hold";
|
|
109
|
+
CreateOnlyCaseOperationStatusEnum["Confirmed"] = "confirmed";
|
|
110
|
+
CreateOnlyCaseOperationStatusEnum["Processed"] = "processed";
|
|
111
|
+
})(CreateOnlyCaseOperationStatusEnum = exports.CreateOnlyCaseOperationStatusEnum || (exports.CreateOnlyCaseOperationStatusEnum = {}));
|
|
89
112
|
var OrderByEnum;
|
|
90
113
|
(function (OrderByEnum) {
|
|
91
114
|
OrderByEnum["ASC"] = "ASC";
|
|
@@ -272,6 +295,62 @@ var Api = /** @class */ (function (_super) {
|
|
|
272
295
|
},
|
|
273
296
|
};
|
|
274
297
|
_this.users = {
|
|
298
|
+
/**
|
|
299
|
+
* No description
|
|
300
|
+
*
|
|
301
|
+
* @tags Users Addresses
|
|
302
|
+
* @name CreateUserAddress
|
|
303
|
+
* @request POST:/users/{userId}/addresses
|
|
304
|
+
* @secure
|
|
305
|
+
* @response `201` `AddressEntityDto`
|
|
306
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
307
|
+
*/
|
|
308
|
+
createUserAddress: function (userId, data, params) {
|
|
309
|
+
if (params === void 0) { params = {}; }
|
|
310
|
+
return _this.request(__assign({ path: "/users/".concat(userId, "/addresses"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
311
|
+
},
|
|
312
|
+
/**
|
|
313
|
+
* No description
|
|
314
|
+
*
|
|
315
|
+
* @tags Users Addresses
|
|
316
|
+
* @name DeleteUserAddress
|
|
317
|
+
* @request DELETE:/users/{userId}/addresses/{addressId}
|
|
318
|
+
* @secure
|
|
319
|
+
* @response `204` `void`
|
|
320
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
321
|
+
*/
|
|
322
|
+
deleteUserAddress: function (userId, addressId, params) {
|
|
323
|
+
if (params === void 0) { params = {}; }
|
|
324
|
+
return _this.request(__assign({ path: "/users/".concat(userId, "/addresses/").concat(addressId), method: "DELETE", secure: true }, params));
|
|
325
|
+
},
|
|
326
|
+
/**
|
|
327
|
+
* No description
|
|
328
|
+
*
|
|
329
|
+
* @tags Users
|
|
330
|
+
* @name GetUserProfile
|
|
331
|
+
* @request GET:/users/{userId}
|
|
332
|
+
* @secure
|
|
333
|
+
* @response `200` `UserEntityWithTenantAccessesDto`
|
|
334
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
335
|
+
*/
|
|
336
|
+
getUserProfile: function (userId, params) {
|
|
337
|
+
if (params === void 0) { params = {}; }
|
|
338
|
+
return _this.request(__assign({ path: "/users/".concat(userId), method: "GET", secure: true, format: "json" }, params));
|
|
339
|
+
},
|
|
340
|
+
/**
|
|
341
|
+
* No description
|
|
342
|
+
*
|
|
343
|
+
* @tags Users Addresses
|
|
344
|
+
* @name ListUserAddresses
|
|
345
|
+
* @request GET:/users/{userId}/addresses
|
|
346
|
+
* @secure
|
|
347
|
+
* @response `200` `AddressEntityPaginatedDto`
|
|
348
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
349
|
+
*/
|
|
350
|
+
listUserAddresses: function (userId, query, params) {
|
|
351
|
+
if (params === void 0) { params = {}; }
|
|
352
|
+
return _this.request(__assign({ path: "/users/".concat(userId, "/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
353
|
+
},
|
|
275
354
|
/**
|
|
276
355
|
* No description
|
|
277
356
|
*
|
|
@@ -302,6 +381,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
302
381
|
},
|
|
303
382
|
};
|
|
304
383
|
_this.admin = {
|
|
384
|
+
/**
|
|
385
|
+
* No description
|
|
386
|
+
*
|
|
387
|
+
* @tags Admin Tenant Cases
|
|
388
|
+
* @name AddTenantCaseBatchOperations
|
|
389
|
+
* @request POST:/admin/tenants/{tenantId}/cases/{caseId}/operations/batch
|
|
390
|
+
* @secure
|
|
391
|
+
* @response `200` `CaseBatchOperationResponseDto`
|
|
392
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
393
|
+
*/
|
|
394
|
+
addTenantCaseBatchOperations: function (tenantId, caseId, data, params) {
|
|
395
|
+
if (params === void 0) { params = {}; }
|
|
396
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId, "/operations/batch"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
397
|
+
},
|
|
305
398
|
/**
|
|
306
399
|
* @description Gives some user access to the tenant. If there's no user account attached to this users, it creates a new one
|
|
307
400
|
*
|
|
@@ -316,6 +409,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
316
409
|
if (params === void 0) { params = {}; }
|
|
317
410
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
318
411
|
},
|
|
412
|
+
/**
|
|
413
|
+
* No description
|
|
414
|
+
*
|
|
415
|
+
* @tags Admin Tenant Cases
|
|
416
|
+
* @name CreateTenantCase
|
|
417
|
+
* @request POST:/admin/tenants/{tenantId}/cases
|
|
418
|
+
* @secure
|
|
419
|
+
* @response `201` `CaseEntityDto`
|
|
420
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
421
|
+
*/
|
|
422
|
+
createTenantCase: function (tenantId, data, params) {
|
|
423
|
+
if (params === void 0) { params = {}; }
|
|
424
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
425
|
+
},
|
|
319
426
|
/**
|
|
320
427
|
* No description
|
|
321
428
|
*
|
|
@@ -470,6 +577,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
470
577
|
if (params === void 0) { params = {}; }
|
|
471
578
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
472
579
|
},
|
|
580
|
+
/**
|
|
581
|
+
* No description
|
|
582
|
+
*
|
|
583
|
+
* @tags Admin Tenant Cases
|
|
584
|
+
* @name DeleteTenantCase
|
|
585
|
+
* @request DELETE:/admin/tenants/{tenantId}/cases/{caseId}
|
|
586
|
+
* @secure
|
|
587
|
+
* @response `204` `void`
|
|
588
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
589
|
+
*/
|
|
590
|
+
deleteTenantCase: function (tenantId, caseId, params) {
|
|
591
|
+
if (params === void 0) { params = {}; }
|
|
592
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId), method: "DELETE", secure: true }, params));
|
|
593
|
+
},
|
|
473
594
|
/**
|
|
474
595
|
* No description
|
|
475
596
|
*
|
|
@@ -652,6 +773,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
652
773
|
if (params === void 0) { params = {}; }
|
|
653
774
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
654
775
|
},
|
|
776
|
+
/**
|
|
777
|
+
* No description
|
|
778
|
+
*
|
|
779
|
+
* @tags Admin Tenant Cases
|
|
780
|
+
* @name GetTenantCaseById
|
|
781
|
+
* @request GET:/admin/tenants/{tenantId}/cases/{caseId}
|
|
782
|
+
* @secure
|
|
783
|
+
* @response `200` `CaseEntityDto`
|
|
784
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
|
|
785
|
+
*/
|
|
786
|
+
getTenantCaseById: function (tenantId, caseId, params) {
|
|
787
|
+
if (params === void 0) { params = {}; }
|
|
788
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId), method: "GET", secure: true, format: "json" }, params));
|
|
789
|
+
},
|
|
655
790
|
/**
|
|
656
791
|
* No description
|
|
657
792
|
*
|
|
@@ -806,6 +941,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
806
941
|
if (params === void 0) { params = {}; }
|
|
807
942
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "GET", secure: true, format: "json" }, params));
|
|
808
943
|
},
|
|
944
|
+
/**
|
|
945
|
+
* No description
|
|
946
|
+
*
|
|
947
|
+
* @tags Admin Tenant Cases
|
|
948
|
+
* @name ListTenantCaseInventory
|
|
949
|
+
* @request GET:/admin/tenants/{tenantId}/cases/{caseId}/inventory
|
|
950
|
+
* @secure
|
|
951
|
+
* @response `200` `CaseWineInventoryItemEntityPaginatedDto`
|
|
952
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
|
|
953
|
+
*/
|
|
954
|
+
listTenantCaseInventory: function (tenantId, caseId, query, params) {
|
|
955
|
+
if (params === void 0) { params = {}; }
|
|
956
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
957
|
+
},
|
|
958
|
+
/**
|
|
959
|
+
* No description
|
|
960
|
+
*
|
|
961
|
+
* @tags Admin Tenant Cases
|
|
962
|
+
* @name ListTenantCases
|
|
963
|
+
* @request GET:/admin/tenants/{tenantId}/cases
|
|
964
|
+
* @secure
|
|
965
|
+
* @response `200` `CaseEntityPaginatedDto`
|
|
966
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
|
|
967
|
+
*/
|
|
968
|
+
listTenantCases: function (tenantId, query, params) {
|
|
969
|
+
if (params === void 0) { params = {}; }
|
|
970
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
971
|
+
},
|
|
809
972
|
/**
|
|
810
973
|
* No description
|
|
811
974
|
*
|
|
@@ -974,6 +1137,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
974
1137
|
if (params === void 0) { params = {}; }
|
|
975
1138
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
976
1139
|
},
|
|
1140
|
+
/**
|
|
1141
|
+
* No description
|
|
1142
|
+
*
|
|
1143
|
+
* @tags Admin Tenant Cases
|
|
1144
|
+
* @name UpdateTenantCase
|
|
1145
|
+
* @request PATCH:/admin/tenants/{tenantId}/cases/{caseId}
|
|
1146
|
+
* @secure
|
|
1147
|
+
* @response `200` `CaseEntityDto`
|
|
1148
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1149
|
+
*/
|
|
1150
|
+
updateTenantCase: function (tenantId, caseId, data, params) {
|
|
1151
|
+
if (params === void 0) { params = {}; }
|
|
1152
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
1153
|
+
},
|
|
977
1154
|
/**
|
|
978
1155
|
* No description
|
|
979
1156
|
*
|
package/dist/esm/api/api.js
CHANGED
|
@@ -80,6 +80,29 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
80
80
|
}
|
|
81
81
|
return t;
|
|
82
82
|
};
|
|
83
|
+
export var CaseOperationLogTypeEnum;
|
|
84
|
+
(function (CaseOperationLogTypeEnum) {
|
|
85
|
+
CaseOperationLogTypeEnum["RequestAccepted"] = "request_accepted";
|
|
86
|
+
CaseOperationLogTypeEnum["StatusChange"] = "status_change";
|
|
87
|
+
})(CaseOperationLogTypeEnum || (CaseOperationLogTypeEnum = {}));
|
|
88
|
+
export var CaseOperationStatusEnum;
|
|
89
|
+
(function (CaseOperationStatusEnum) {
|
|
90
|
+
CaseOperationStatusEnum["OnHold"] = "on_hold";
|
|
91
|
+
CaseOperationStatusEnum["Confirmed"] = "confirmed";
|
|
92
|
+
CaseOperationStatusEnum["Processed"] = "processed";
|
|
93
|
+
CaseOperationStatusEnum["Cancelled"] = "cancelled";
|
|
94
|
+
})(CaseOperationStatusEnum || (CaseOperationStatusEnum = {}));
|
|
95
|
+
export var CaseOperationTypesEnum;
|
|
96
|
+
(function (CaseOperationTypesEnum) {
|
|
97
|
+
CaseOperationTypesEnum["Deposit"] = "deposit";
|
|
98
|
+
CaseOperationTypesEnum["Withdrawal"] = "withdrawal";
|
|
99
|
+
})(CaseOperationTypesEnum || (CaseOperationTypesEnum = {}));
|
|
100
|
+
export var CreateOnlyCaseOperationStatusEnum;
|
|
101
|
+
(function (CreateOnlyCaseOperationStatusEnum) {
|
|
102
|
+
CreateOnlyCaseOperationStatusEnum["OnHold"] = "on_hold";
|
|
103
|
+
CreateOnlyCaseOperationStatusEnum["Confirmed"] = "confirmed";
|
|
104
|
+
CreateOnlyCaseOperationStatusEnum["Processed"] = "processed";
|
|
105
|
+
})(CreateOnlyCaseOperationStatusEnum || (CreateOnlyCaseOperationStatusEnum = {}));
|
|
83
106
|
export var OrderByEnum;
|
|
84
107
|
(function (OrderByEnum) {
|
|
85
108
|
OrderByEnum["ASC"] = "ASC";
|
|
@@ -266,6 +289,62 @@ var Api = /** @class */ (function (_super) {
|
|
|
266
289
|
},
|
|
267
290
|
};
|
|
268
291
|
_this.users = {
|
|
292
|
+
/**
|
|
293
|
+
* No description
|
|
294
|
+
*
|
|
295
|
+
* @tags Users Addresses
|
|
296
|
+
* @name CreateUserAddress
|
|
297
|
+
* @request POST:/users/{userId}/addresses
|
|
298
|
+
* @secure
|
|
299
|
+
* @response `201` `AddressEntityDto`
|
|
300
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
301
|
+
*/
|
|
302
|
+
createUserAddress: function (userId, data, params) {
|
|
303
|
+
if (params === void 0) { params = {}; }
|
|
304
|
+
return _this.request(__assign({ path: "/users/".concat(userId, "/addresses"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
305
|
+
},
|
|
306
|
+
/**
|
|
307
|
+
* No description
|
|
308
|
+
*
|
|
309
|
+
* @tags Users Addresses
|
|
310
|
+
* @name DeleteUserAddress
|
|
311
|
+
* @request DELETE:/users/{userId}/addresses/{addressId}
|
|
312
|
+
* @secure
|
|
313
|
+
* @response `204` `void`
|
|
314
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
315
|
+
*/
|
|
316
|
+
deleteUserAddress: function (userId, addressId, params) {
|
|
317
|
+
if (params === void 0) { params = {}; }
|
|
318
|
+
return _this.request(__assign({ path: "/users/".concat(userId, "/addresses/").concat(addressId), method: "DELETE", secure: true }, params));
|
|
319
|
+
},
|
|
320
|
+
/**
|
|
321
|
+
* No description
|
|
322
|
+
*
|
|
323
|
+
* @tags Users
|
|
324
|
+
* @name GetUserProfile
|
|
325
|
+
* @request GET:/users/{userId}
|
|
326
|
+
* @secure
|
|
327
|
+
* @response `200` `UserEntityWithTenantAccessesDto`
|
|
328
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
329
|
+
*/
|
|
330
|
+
getUserProfile: function (userId, params) {
|
|
331
|
+
if (params === void 0) { params = {}; }
|
|
332
|
+
return _this.request(__assign({ path: "/users/".concat(userId), method: "GET", secure: true, format: "json" }, params));
|
|
333
|
+
},
|
|
334
|
+
/**
|
|
335
|
+
* No description
|
|
336
|
+
*
|
|
337
|
+
* @tags Users Addresses
|
|
338
|
+
* @name ListUserAddresses
|
|
339
|
+
* @request GET:/users/{userId}/addresses
|
|
340
|
+
* @secure
|
|
341
|
+
* @response `200` `AddressEntityPaginatedDto`
|
|
342
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
343
|
+
*/
|
|
344
|
+
listUserAddresses: function (userId, query, params) {
|
|
345
|
+
if (params === void 0) { params = {}; }
|
|
346
|
+
return _this.request(__assign({ path: "/users/".concat(userId, "/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
347
|
+
},
|
|
269
348
|
/**
|
|
270
349
|
* No description
|
|
271
350
|
*
|
|
@@ -296,6 +375,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
296
375
|
},
|
|
297
376
|
};
|
|
298
377
|
_this.admin = {
|
|
378
|
+
/**
|
|
379
|
+
* No description
|
|
380
|
+
*
|
|
381
|
+
* @tags Admin Tenant Cases
|
|
382
|
+
* @name AddTenantCaseBatchOperations
|
|
383
|
+
* @request POST:/admin/tenants/{tenantId}/cases/{caseId}/operations/batch
|
|
384
|
+
* @secure
|
|
385
|
+
* @response `200` `CaseBatchOperationResponseDto`
|
|
386
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
387
|
+
*/
|
|
388
|
+
addTenantCaseBatchOperations: function (tenantId, caseId, data, params) {
|
|
389
|
+
if (params === void 0) { params = {}; }
|
|
390
|
+
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));
|
|
391
|
+
},
|
|
299
392
|
/**
|
|
300
393
|
* @description Gives some user access to the tenant. If there's no user account attached to this users, it creates a new one
|
|
301
394
|
*
|
|
@@ -310,6 +403,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
310
403
|
if (params === void 0) { params = {}; }
|
|
311
404
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
312
405
|
},
|
|
406
|
+
/**
|
|
407
|
+
* No description
|
|
408
|
+
*
|
|
409
|
+
* @tags Admin Tenant Cases
|
|
410
|
+
* @name CreateTenantCase
|
|
411
|
+
* @request POST:/admin/tenants/{tenantId}/cases
|
|
412
|
+
* @secure
|
|
413
|
+
* @response `201` `CaseEntityDto`
|
|
414
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
415
|
+
*/
|
|
416
|
+
createTenantCase: function (tenantId, data, params) {
|
|
417
|
+
if (params === void 0) { params = {}; }
|
|
418
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
419
|
+
},
|
|
313
420
|
/**
|
|
314
421
|
* No description
|
|
315
422
|
*
|
|
@@ -464,6 +571,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
464
571
|
if (params === void 0) { params = {}; }
|
|
465
572
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
466
573
|
},
|
|
574
|
+
/**
|
|
575
|
+
* No description
|
|
576
|
+
*
|
|
577
|
+
* @tags Admin Tenant Cases
|
|
578
|
+
* @name DeleteTenantCase
|
|
579
|
+
* @request DELETE:/admin/tenants/{tenantId}/cases/{caseId}
|
|
580
|
+
* @secure
|
|
581
|
+
* @response `204` `void`
|
|
582
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
583
|
+
*/
|
|
584
|
+
deleteTenantCase: function (tenantId, caseId, params) {
|
|
585
|
+
if (params === void 0) { params = {}; }
|
|
586
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId), method: "DELETE", secure: true }, params));
|
|
587
|
+
},
|
|
467
588
|
/**
|
|
468
589
|
* No description
|
|
469
590
|
*
|
|
@@ -646,6 +767,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
646
767
|
if (params === void 0) { params = {}; }
|
|
647
768
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
648
769
|
},
|
|
770
|
+
/**
|
|
771
|
+
* No description
|
|
772
|
+
*
|
|
773
|
+
* @tags Admin Tenant Cases
|
|
774
|
+
* @name GetTenantCaseById
|
|
775
|
+
* @request GET:/admin/tenants/{tenantId}/cases/{caseId}
|
|
776
|
+
* @secure
|
|
777
|
+
* @response `200` `CaseEntityDto`
|
|
778
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
|
|
779
|
+
*/
|
|
780
|
+
getTenantCaseById: function (tenantId, caseId, params) {
|
|
781
|
+
if (params === void 0) { params = {}; }
|
|
782
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId), method: "GET", secure: true, format: "json" }, params));
|
|
783
|
+
},
|
|
649
784
|
/**
|
|
650
785
|
* No description
|
|
651
786
|
*
|
|
@@ -800,6 +935,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
800
935
|
if (params === void 0) { params = {}; }
|
|
801
936
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "GET", secure: true, format: "json" }, params));
|
|
802
937
|
},
|
|
938
|
+
/**
|
|
939
|
+
* No description
|
|
940
|
+
*
|
|
941
|
+
* @tags Admin Tenant Cases
|
|
942
|
+
* @name ListTenantCaseInventory
|
|
943
|
+
* @request GET:/admin/tenants/{tenantId}/cases/{caseId}/inventory
|
|
944
|
+
* @secure
|
|
945
|
+
* @response `200` `CaseWineInventoryItemEntityPaginatedDto`
|
|
946
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
|
|
947
|
+
*/
|
|
948
|
+
listTenantCaseInventory: function (tenantId, caseId, query, params) {
|
|
949
|
+
if (params === void 0) { params = {}; }
|
|
950
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
951
|
+
},
|
|
952
|
+
/**
|
|
953
|
+
* No description
|
|
954
|
+
*
|
|
955
|
+
* @tags Admin Tenant Cases
|
|
956
|
+
* @name ListTenantCases
|
|
957
|
+
* @request GET:/admin/tenants/{tenantId}/cases
|
|
958
|
+
* @secure
|
|
959
|
+
* @response `200` `CaseEntityPaginatedDto`
|
|
960
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
|
|
961
|
+
*/
|
|
962
|
+
listTenantCases: function (tenantId, query, params) {
|
|
963
|
+
if (params === void 0) { params = {}; }
|
|
964
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
965
|
+
},
|
|
803
966
|
/**
|
|
804
967
|
* No description
|
|
805
968
|
*
|
|
@@ -968,6 +1131,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
968
1131
|
if (params === void 0) { params = {}; }
|
|
969
1132
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
970
1133
|
},
|
|
1134
|
+
/**
|
|
1135
|
+
* No description
|
|
1136
|
+
*
|
|
1137
|
+
* @tags Admin Tenant Cases
|
|
1138
|
+
* @name UpdateTenantCase
|
|
1139
|
+
* @request PATCH:/admin/tenants/{tenantId}/cases/{caseId}
|
|
1140
|
+
* @secure
|
|
1141
|
+
* @response `200` `CaseEntityDto`
|
|
1142
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1143
|
+
*/
|
|
1144
|
+
updateTenantCase: function (tenantId, caseId, data, params) {
|
|
1145
|
+
if (params === void 0) { params = {}; }
|
|
1146
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
1147
|
+
},
|
|
971
1148
|
/**
|
|
972
1149
|
* No description
|
|
973
1150
|
*
|