@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/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";
|
|
@@ -197,7 +220,7 @@ var HttpClient = /** @class */ (function () {
|
|
|
197
220
|
exports.HttpClient = HttpClient;
|
|
198
221
|
/**
|
|
199
222
|
* @title winehaus-api
|
|
200
|
-
* @version 0.0.
|
|
223
|
+
* @version 0.0.2
|
|
201
224
|
* @baseUrl http://localhost:3000
|
|
202
225
|
* @contact
|
|
203
226
|
*/
|
|
@@ -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,34 @@ 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
|
+
},
|
|
426
|
+
/**
|
|
427
|
+
* No description
|
|
428
|
+
*
|
|
429
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
430
|
+
* @name CreateTenantOperationExtraTemplate
|
|
431
|
+
* @request POST:/admin/tenants/{tenantId}/operation-extras-templates
|
|
432
|
+
* @secure
|
|
433
|
+
* @response `201` `CaseOperationExtraTemplateEntityDto`
|
|
434
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
435
|
+
*/
|
|
436
|
+
createTenantOperationExtraTemplate: function (tenantId, data, params) {
|
|
437
|
+
if (params === void 0) { params = {}; }
|
|
438
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
439
|
+
},
|
|
319
440
|
/**
|
|
320
441
|
* No description
|
|
321
442
|
*
|
|
@@ -456,6 +577,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
456
577
|
if (params === void 0) { params = {}; }
|
|
457
578
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
458
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
|
+
},
|
|
594
|
+
/**
|
|
595
|
+
* No description
|
|
596
|
+
*
|
|
597
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
598
|
+
* @name DeleteTenantOperationExtraTemplate
|
|
599
|
+
* @request DELETE:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
600
|
+
* @secure
|
|
601
|
+
* @response `204` `void`
|
|
602
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
603
|
+
*/
|
|
604
|
+
deleteTenantOperationExtraTemplate: function (tenantId, templateId, params) {
|
|
605
|
+
if (params === void 0) { params = {}; }
|
|
606
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "DELETE", secure: true }, params));
|
|
607
|
+
},
|
|
459
608
|
/**
|
|
460
609
|
* No description
|
|
461
610
|
*
|
|
@@ -624,6 +773,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
624
773
|
if (params === void 0) { params = {}; }
|
|
625
774
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
626
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
|
+
},
|
|
790
|
+
/**
|
|
791
|
+
* No description
|
|
792
|
+
*
|
|
793
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
794
|
+
* @name GetTenantOperationExtraTemplateById
|
|
795
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
796
|
+
* @secure
|
|
797
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
798
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
799
|
+
*/
|
|
800
|
+
getTenantOperationExtraTemplateById: function (tenantId, templateId, params) {
|
|
801
|
+
if (params === void 0) { params = {}; }
|
|
802
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "GET", secure: true, format: "json" }, params));
|
|
803
|
+
},
|
|
627
804
|
/**
|
|
628
805
|
* No description
|
|
629
806
|
*
|
|
@@ -764,6 +941,48 @@ var Api = /** @class */ (function (_super) {
|
|
|
764
941
|
if (params === void 0) { params = {}; }
|
|
765
942
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "GET", secure: true, format: "json" }, params));
|
|
766
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
|
+
},
|
|
972
|
+
/**
|
|
973
|
+
* No description
|
|
974
|
+
*
|
|
975
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
976
|
+
* @name ListTenantOperationExtrasTemplates
|
|
977
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates
|
|
978
|
+
* @secure
|
|
979
|
+
* @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
|
|
980
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
981
|
+
*/
|
|
982
|
+
listTenantOperationExtrasTemplates: function (tenantId, query, params) {
|
|
983
|
+
if (params === void 0) { params = {}; }
|
|
984
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
985
|
+
},
|
|
767
986
|
/**
|
|
768
987
|
* No description
|
|
769
988
|
*
|
|
@@ -918,6 +1137,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
918
1137
|
if (params === void 0) { params = {}; }
|
|
919
1138
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
920
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
|
+
},
|
|
1154
|
+
/**
|
|
1155
|
+
* No description
|
|
1156
|
+
*
|
|
1157
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
1158
|
+
* @name UpdateTenantOperationExtraTemplate
|
|
1159
|
+
* @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
1160
|
+
* @secure
|
|
1161
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
1162
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1163
|
+
*/
|
|
1164
|
+
updateTenantOperationExtraTemplate: function (tenantId, templateId, data, params) {
|
|
1165
|
+
if (params === void 0) { params = {}; }
|
|
1166
|
+
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));
|
|
1167
|
+
},
|
|
921
1168
|
/**
|
|
922
1169
|
* No description
|
|
923
1170
|
*
|
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";
|
|
@@ -191,7 +214,7 @@ var HttpClient = /** @class */ (function () {
|
|
|
191
214
|
export { HttpClient };
|
|
192
215
|
/**
|
|
193
216
|
* @title winehaus-api
|
|
194
|
-
* @version 0.0.
|
|
217
|
+
* @version 0.0.2
|
|
195
218
|
* @baseUrl http://localhost:3000
|
|
196
219
|
* @contact
|
|
197
220
|
*/
|
|
@@ -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,34 @@ 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
|
+
},
|
|
420
|
+
/**
|
|
421
|
+
* No description
|
|
422
|
+
*
|
|
423
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
424
|
+
* @name CreateTenantOperationExtraTemplate
|
|
425
|
+
* @request POST:/admin/tenants/{tenantId}/operation-extras-templates
|
|
426
|
+
* @secure
|
|
427
|
+
* @response `201` `CaseOperationExtraTemplateEntityDto`
|
|
428
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
429
|
+
*/
|
|
430
|
+
createTenantOperationExtraTemplate: function (tenantId, data, params) {
|
|
431
|
+
if (params === void 0) { params = {}; }
|
|
432
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
433
|
+
},
|
|
313
434
|
/**
|
|
314
435
|
* No description
|
|
315
436
|
*
|
|
@@ -450,6 +571,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
450
571
|
if (params === void 0) { params = {}; }
|
|
451
572
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
452
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
|
+
},
|
|
588
|
+
/**
|
|
589
|
+
* No description
|
|
590
|
+
*
|
|
591
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
592
|
+
* @name DeleteTenantOperationExtraTemplate
|
|
593
|
+
* @request DELETE:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
594
|
+
* @secure
|
|
595
|
+
* @response `204` `void`
|
|
596
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
597
|
+
*/
|
|
598
|
+
deleteTenantOperationExtraTemplate: function (tenantId, templateId, params) {
|
|
599
|
+
if (params === void 0) { params = {}; }
|
|
600
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "DELETE", secure: true }, params));
|
|
601
|
+
},
|
|
453
602
|
/**
|
|
454
603
|
* No description
|
|
455
604
|
*
|
|
@@ -618,6 +767,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
618
767
|
if (params === void 0) { params = {}; }
|
|
619
768
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
620
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
|
+
},
|
|
784
|
+
/**
|
|
785
|
+
* No description
|
|
786
|
+
*
|
|
787
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
788
|
+
* @name GetTenantOperationExtraTemplateById
|
|
789
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
790
|
+
* @secure
|
|
791
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
792
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
793
|
+
*/
|
|
794
|
+
getTenantOperationExtraTemplateById: function (tenantId, templateId, params) {
|
|
795
|
+
if (params === void 0) { params = {}; }
|
|
796
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "GET", secure: true, format: "json" }, params));
|
|
797
|
+
},
|
|
621
798
|
/**
|
|
622
799
|
* No description
|
|
623
800
|
*
|
|
@@ -758,6 +935,48 @@ var Api = /** @class */ (function (_super) {
|
|
|
758
935
|
if (params === void 0) { params = {}; }
|
|
759
936
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "GET", secure: true, format: "json" }, params));
|
|
760
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
|
+
},
|
|
966
|
+
/**
|
|
967
|
+
* No description
|
|
968
|
+
*
|
|
969
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
970
|
+
* @name ListTenantOperationExtrasTemplates
|
|
971
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates
|
|
972
|
+
* @secure
|
|
973
|
+
* @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
|
|
974
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
975
|
+
*/
|
|
976
|
+
listTenantOperationExtrasTemplates: function (tenantId, query, params) {
|
|
977
|
+
if (params === void 0) { params = {}; }
|
|
978
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
979
|
+
},
|
|
761
980
|
/**
|
|
762
981
|
* No description
|
|
763
982
|
*
|
|
@@ -912,6 +1131,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
912
1131
|
if (params === void 0) { params = {}; }
|
|
913
1132
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
914
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
|
+
},
|
|
1148
|
+
/**
|
|
1149
|
+
* No description
|
|
1150
|
+
*
|
|
1151
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
1152
|
+
* @name UpdateTenantOperationExtraTemplate
|
|
1153
|
+
* @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
1154
|
+
* @secure
|
|
1155
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
1156
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1157
|
+
*/
|
|
1158
|
+
updateTenantOperationExtraTemplate: function (tenantId, templateId, data, params) {
|
|
1159
|
+
if (params === void 0) { params = {}; }
|
|
1160
|
+
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));
|
|
1161
|
+
},
|
|
915
1162
|
/**
|
|
916
1163
|
* No description
|
|
917
1164
|
*
|