@thelllabs/winehaus-sdk 0.0.21 → 0.0.23
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 +82 -60
- package/dist/esm/api/api.js +81 -59
- package/dist/types/api/api.d.ts +180 -114
- package/dist/umd/index.ts +82 -60
- package/package.json +1 -1
package/dist/cjs/api/api.js
CHANGED
|
@@ -85,7 +85,7 @@ 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.WithdrawRequestDeliverTypeEnum = exports.WithdrawRequestDeliverStatusEnum = exports.UserNotificationTypeEnum = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.PhoneTypeEnum = exports.OrderByEnum = exports.OperationRequestTypeEnum = exports.OperationRequestStatusEnum = exports.OperationGroupStatusEnum = exports.CreateOnlyOperationGroupStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
|
|
88
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.WithdrawRequestDeliverTypeEnum = exports.WithdrawRequestDeliverStatusEnum = exports.UserNotificationTypeEnum = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.PhoneTypeEnum = exports.OrderByEnum = exports.OperationRequestTypeEnum = exports.OperationRequestStatusEnum = exports.OperationGroupStatusEnum = exports.CreateOnlyOperationGroupStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationTypeEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
|
|
89
89
|
var CaseOperationLogTypeEnum;
|
|
90
90
|
(function (CaseOperationLogTypeEnum) {
|
|
91
91
|
CaseOperationLogTypeEnum["RequestAccepted"] = "request_accepted";
|
|
@@ -100,6 +100,11 @@ var CaseOperationStatusEnum;
|
|
|
100
100
|
CaseOperationStatusEnum["Processed"] = "processed";
|
|
101
101
|
CaseOperationStatusEnum["Cancelled"] = "cancelled";
|
|
102
102
|
})(CaseOperationStatusEnum = exports.CaseOperationStatusEnum || (exports.CaseOperationStatusEnum = {}));
|
|
103
|
+
var CaseOperationTypeEnum;
|
|
104
|
+
(function (CaseOperationTypeEnum) {
|
|
105
|
+
CaseOperationTypeEnum["Deposit"] = "deposit";
|
|
106
|
+
CaseOperationTypeEnum["Withdrawal"] = "withdrawal";
|
|
107
|
+
})(CaseOperationTypeEnum = exports.CaseOperationTypeEnum || (exports.CaseOperationTypeEnum = {}));
|
|
103
108
|
var CaseOperationTypesEnum;
|
|
104
109
|
(function (CaseOperationTypesEnum) {
|
|
105
110
|
CaseOperationTypesEnum["Deposit"] = "deposit";
|
|
@@ -141,6 +146,9 @@ var PhoneTypeEnum;
|
|
|
141
146
|
(function (PhoneTypeEnum) {
|
|
142
147
|
PhoneTypeEnum["Fixed"] = "fixed";
|
|
143
148
|
PhoneTypeEnum["Mobile"] = "mobile";
|
|
149
|
+
PhoneTypeEnum["Home"] = "home";
|
|
150
|
+
PhoneTypeEnum["Work"] = "work";
|
|
151
|
+
PhoneTypeEnum["Other"] = "other";
|
|
144
152
|
})(PhoneTypeEnum = exports.PhoneTypeEnum || (exports.PhoneTypeEnum = {}));
|
|
145
153
|
var TenantRoleEnum;
|
|
146
154
|
(function (TenantRoleEnum) {
|
|
@@ -271,7 +279,7 @@ var HttpClient = /** @class */ (function () {
|
|
|
271
279
|
exports.HttpClient = HttpClient;
|
|
272
280
|
/**
|
|
273
281
|
* @title winehaus-api
|
|
274
|
-
* @version 0.0.
|
|
282
|
+
* @version 0.0.3
|
|
275
283
|
* @baseUrl http://localhost:3000
|
|
276
284
|
* @contact
|
|
277
285
|
*/
|
|
@@ -291,60 +299,6 @@ var Api = /** @class */ (function (_super) {
|
|
|
291
299
|
if (params === void 0) { params = {}; }
|
|
292
300
|
return _this.request(__assign({ path: "/", method: "GET" }, params));
|
|
293
301
|
};
|
|
294
|
-
_this.auth = {
|
|
295
|
-
/**
|
|
296
|
-
* No description
|
|
297
|
-
*
|
|
298
|
-
* @tags Authentication
|
|
299
|
-
* @name Logout
|
|
300
|
-
* @request POST:/auth/logout
|
|
301
|
-
* @secure
|
|
302
|
-
* @response `204` `void`
|
|
303
|
-
*/
|
|
304
|
-
logout: function (params) {
|
|
305
|
-
if (params === void 0) { params = {}; }
|
|
306
|
-
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
307
|
-
},
|
|
308
|
-
/**
|
|
309
|
-
* No description
|
|
310
|
-
*
|
|
311
|
-
* @tags Authentication
|
|
312
|
-
* @name RequestPasswordReset
|
|
313
|
-
* @request POST:/auth/request-password-reset
|
|
314
|
-
* @secure
|
|
315
|
-
* @response `204` `void`
|
|
316
|
-
*/
|
|
317
|
-
requestPasswordReset: function (data, params) {
|
|
318
|
-
if (params === void 0) { params = {}; }
|
|
319
|
-
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
320
|
-
},
|
|
321
|
-
/**
|
|
322
|
-
* No description
|
|
323
|
-
*
|
|
324
|
-
* @tags Authentication
|
|
325
|
-
* @name ResetPassword
|
|
326
|
-
* @request PATCH:/auth/reset-password
|
|
327
|
-
* @secure
|
|
328
|
-
* @response `200` `SigninResponseDto`
|
|
329
|
-
*/
|
|
330
|
-
resetPassword: function (data, params) {
|
|
331
|
-
if (params === void 0) { params = {}; }
|
|
332
|
-
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
333
|
-
},
|
|
334
|
-
/**
|
|
335
|
-
* No description
|
|
336
|
-
*
|
|
337
|
-
* @tags Authentication
|
|
338
|
-
* @name SignIn
|
|
339
|
-
* @request POST:/auth/signin
|
|
340
|
-
* @secure
|
|
341
|
-
* @response `200` `SigninResponseDto`
|
|
342
|
-
*/
|
|
343
|
-
signIn: function (data, params) {
|
|
344
|
-
if (params === void 0) { params = {}; }
|
|
345
|
-
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
346
|
-
},
|
|
347
|
-
};
|
|
348
302
|
_this.tenants = {
|
|
349
303
|
/**
|
|
350
304
|
* No description
|
|
@@ -641,6 +595,60 @@ var Api = /** @class */ (function (_super) {
|
|
|
641
595
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
642
596
|
},
|
|
643
597
|
};
|
|
598
|
+
_this.auth = {
|
|
599
|
+
/**
|
|
600
|
+
* No description
|
|
601
|
+
*
|
|
602
|
+
* @tags Authentication
|
|
603
|
+
* @name Logout
|
|
604
|
+
* @request POST:/auth/logout
|
|
605
|
+
* @secure
|
|
606
|
+
* @response `204` `void`
|
|
607
|
+
*/
|
|
608
|
+
logout: function (params) {
|
|
609
|
+
if (params === void 0) { params = {}; }
|
|
610
|
+
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
611
|
+
},
|
|
612
|
+
/**
|
|
613
|
+
* No description
|
|
614
|
+
*
|
|
615
|
+
* @tags Authentication
|
|
616
|
+
* @name RequestPasswordReset
|
|
617
|
+
* @request POST:/auth/request-password-reset
|
|
618
|
+
* @secure
|
|
619
|
+
* @response `204` `void`
|
|
620
|
+
*/
|
|
621
|
+
requestPasswordReset: function (data, params) {
|
|
622
|
+
if (params === void 0) { params = {}; }
|
|
623
|
+
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
624
|
+
},
|
|
625
|
+
/**
|
|
626
|
+
* No description
|
|
627
|
+
*
|
|
628
|
+
* @tags Authentication
|
|
629
|
+
* @name ResetPassword
|
|
630
|
+
* @request PATCH:/auth/reset-password
|
|
631
|
+
* @secure
|
|
632
|
+
* @response `200` `SigninResponseDto`
|
|
633
|
+
*/
|
|
634
|
+
resetPassword: function (data, params) {
|
|
635
|
+
if (params === void 0) { params = {}; }
|
|
636
|
+
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
637
|
+
},
|
|
638
|
+
/**
|
|
639
|
+
* No description
|
|
640
|
+
*
|
|
641
|
+
* @tags Authentication
|
|
642
|
+
* @name SignIn
|
|
643
|
+
* @request POST:/auth/signin
|
|
644
|
+
* @secure
|
|
645
|
+
* @response `200` `SigninResponseDto`
|
|
646
|
+
*/
|
|
647
|
+
signIn: function (data, params) {
|
|
648
|
+
if (params === void 0) { params = {}; }
|
|
649
|
+
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
650
|
+
},
|
|
651
|
+
};
|
|
644
652
|
_this.admin = {
|
|
645
653
|
/**
|
|
646
654
|
* No description
|
|
@@ -1640,15 +1648,29 @@ var Api = /** @class */ (function (_super) {
|
|
|
1640
1648
|
* No description
|
|
1641
1649
|
*
|
|
1642
1650
|
* @tags Admin Tenant Operation Requests
|
|
1643
|
-
* @name
|
|
1644
|
-
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing
|
|
1651
|
+
* @name SetTenantDepositRequestAsProcessing
|
|
1652
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing-deposit
|
|
1653
|
+
* @secure
|
|
1654
|
+
* @response `204` `void`
|
|
1655
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1656
|
+
*/
|
|
1657
|
+
setTenantDepositRequestAsProcessing: function (tenantId, requestId, data, params) {
|
|
1658
|
+
if (params === void 0) { params = {}; }
|
|
1659
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/set-processing-deposit"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
|
|
1660
|
+
},
|
|
1661
|
+
/**
|
|
1662
|
+
* No description
|
|
1663
|
+
*
|
|
1664
|
+
* @tags Admin Tenant Operation Requests
|
|
1665
|
+
* @name SetTenantWithdrawRequestAsProcessing
|
|
1666
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing-withdraw
|
|
1645
1667
|
* @secure
|
|
1646
1668
|
* @response `204` `void`
|
|
1647
1669
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1648
1670
|
*/
|
|
1649
|
-
|
|
1671
|
+
setTenantWithdrawRequestAsProcessing: function (tenantId, requestId, params) {
|
|
1650
1672
|
if (params === void 0) { params = {}; }
|
|
1651
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/set-processing"), method: "PATCH", secure: true }, params));
|
|
1673
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/set-processing-withdraw"), method: "PATCH", secure: true }, params));
|
|
1652
1674
|
},
|
|
1653
1675
|
/**
|
|
1654
1676
|
* No description
|
package/dist/esm/api/api.js
CHANGED
|
@@ -94,6 +94,11 @@ export var CaseOperationStatusEnum;
|
|
|
94
94
|
CaseOperationStatusEnum["Processed"] = "processed";
|
|
95
95
|
CaseOperationStatusEnum["Cancelled"] = "cancelled";
|
|
96
96
|
})(CaseOperationStatusEnum || (CaseOperationStatusEnum = {}));
|
|
97
|
+
export var CaseOperationTypeEnum;
|
|
98
|
+
(function (CaseOperationTypeEnum) {
|
|
99
|
+
CaseOperationTypeEnum["Deposit"] = "deposit";
|
|
100
|
+
CaseOperationTypeEnum["Withdrawal"] = "withdrawal";
|
|
101
|
+
})(CaseOperationTypeEnum || (CaseOperationTypeEnum = {}));
|
|
97
102
|
export var CaseOperationTypesEnum;
|
|
98
103
|
(function (CaseOperationTypesEnum) {
|
|
99
104
|
CaseOperationTypesEnum["Deposit"] = "deposit";
|
|
@@ -135,6 +140,9 @@ export var PhoneTypeEnum;
|
|
|
135
140
|
(function (PhoneTypeEnum) {
|
|
136
141
|
PhoneTypeEnum["Fixed"] = "fixed";
|
|
137
142
|
PhoneTypeEnum["Mobile"] = "mobile";
|
|
143
|
+
PhoneTypeEnum["Home"] = "home";
|
|
144
|
+
PhoneTypeEnum["Work"] = "work";
|
|
145
|
+
PhoneTypeEnum["Other"] = "other";
|
|
138
146
|
})(PhoneTypeEnum || (PhoneTypeEnum = {}));
|
|
139
147
|
export var TenantRoleEnum;
|
|
140
148
|
(function (TenantRoleEnum) {
|
|
@@ -265,7 +273,7 @@ var HttpClient = /** @class */ (function () {
|
|
|
265
273
|
export { HttpClient };
|
|
266
274
|
/**
|
|
267
275
|
* @title winehaus-api
|
|
268
|
-
* @version 0.0.
|
|
276
|
+
* @version 0.0.3
|
|
269
277
|
* @baseUrl http://localhost:3000
|
|
270
278
|
* @contact
|
|
271
279
|
*/
|
|
@@ -285,60 +293,6 @@ var Api = /** @class */ (function (_super) {
|
|
|
285
293
|
if (params === void 0) { params = {}; }
|
|
286
294
|
return _this.request(__assign({ path: "/", method: "GET" }, params));
|
|
287
295
|
};
|
|
288
|
-
_this.auth = {
|
|
289
|
-
/**
|
|
290
|
-
* No description
|
|
291
|
-
*
|
|
292
|
-
* @tags Authentication
|
|
293
|
-
* @name Logout
|
|
294
|
-
* @request POST:/auth/logout
|
|
295
|
-
* @secure
|
|
296
|
-
* @response `204` `void`
|
|
297
|
-
*/
|
|
298
|
-
logout: function (params) {
|
|
299
|
-
if (params === void 0) { params = {}; }
|
|
300
|
-
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
301
|
-
},
|
|
302
|
-
/**
|
|
303
|
-
* No description
|
|
304
|
-
*
|
|
305
|
-
* @tags Authentication
|
|
306
|
-
* @name RequestPasswordReset
|
|
307
|
-
* @request POST:/auth/request-password-reset
|
|
308
|
-
* @secure
|
|
309
|
-
* @response `204` `void`
|
|
310
|
-
*/
|
|
311
|
-
requestPasswordReset: function (data, params) {
|
|
312
|
-
if (params === void 0) { params = {}; }
|
|
313
|
-
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
314
|
-
},
|
|
315
|
-
/**
|
|
316
|
-
* No description
|
|
317
|
-
*
|
|
318
|
-
* @tags Authentication
|
|
319
|
-
* @name ResetPassword
|
|
320
|
-
* @request PATCH:/auth/reset-password
|
|
321
|
-
* @secure
|
|
322
|
-
* @response `200` `SigninResponseDto`
|
|
323
|
-
*/
|
|
324
|
-
resetPassword: function (data, params) {
|
|
325
|
-
if (params === void 0) { params = {}; }
|
|
326
|
-
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
327
|
-
},
|
|
328
|
-
/**
|
|
329
|
-
* No description
|
|
330
|
-
*
|
|
331
|
-
* @tags Authentication
|
|
332
|
-
* @name SignIn
|
|
333
|
-
* @request POST:/auth/signin
|
|
334
|
-
* @secure
|
|
335
|
-
* @response `200` `SigninResponseDto`
|
|
336
|
-
*/
|
|
337
|
-
signIn: function (data, params) {
|
|
338
|
-
if (params === void 0) { params = {}; }
|
|
339
|
-
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
340
|
-
},
|
|
341
|
-
};
|
|
342
296
|
_this.tenants = {
|
|
343
297
|
/**
|
|
344
298
|
* No description
|
|
@@ -635,6 +589,60 @@ var Api = /** @class */ (function (_super) {
|
|
|
635
589
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
636
590
|
},
|
|
637
591
|
};
|
|
592
|
+
_this.auth = {
|
|
593
|
+
/**
|
|
594
|
+
* No description
|
|
595
|
+
*
|
|
596
|
+
* @tags Authentication
|
|
597
|
+
* @name Logout
|
|
598
|
+
* @request POST:/auth/logout
|
|
599
|
+
* @secure
|
|
600
|
+
* @response `204` `void`
|
|
601
|
+
*/
|
|
602
|
+
logout: function (params) {
|
|
603
|
+
if (params === void 0) { params = {}; }
|
|
604
|
+
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
605
|
+
},
|
|
606
|
+
/**
|
|
607
|
+
* No description
|
|
608
|
+
*
|
|
609
|
+
* @tags Authentication
|
|
610
|
+
* @name RequestPasswordReset
|
|
611
|
+
* @request POST:/auth/request-password-reset
|
|
612
|
+
* @secure
|
|
613
|
+
* @response `204` `void`
|
|
614
|
+
*/
|
|
615
|
+
requestPasswordReset: function (data, params) {
|
|
616
|
+
if (params === void 0) { params = {}; }
|
|
617
|
+
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
618
|
+
},
|
|
619
|
+
/**
|
|
620
|
+
* No description
|
|
621
|
+
*
|
|
622
|
+
* @tags Authentication
|
|
623
|
+
* @name ResetPassword
|
|
624
|
+
* @request PATCH:/auth/reset-password
|
|
625
|
+
* @secure
|
|
626
|
+
* @response `200` `SigninResponseDto`
|
|
627
|
+
*/
|
|
628
|
+
resetPassword: function (data, params) {
|
|
629
|
+
if (params === void 0) { params = {}; }
|
|
630
|
+
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
631
|
+
},
|
|
632
|
+
/**
|
|
633
|
+
* No description
|
|
634
|
+
*
|
|
635
|
+
* @tags Authentication
|
|
636
|
+
* @name SignIn
|
|
637
|
+
* @request POST:/auth/signin
|
|
638
|
+
* @secure
|
|
639
|
+
* @response `200` `SigninResponseDto`
|
|
640
|
+
*/
|
|
641
|
+
signIn: function (data, params) {
|
|
642
|
+
if (params === void 0) { params = {}; }
|
|
643
|
+
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
644
|
+
},
|
|
645
|
+
};
|
|
638
646
|
_this.admin = {
|
|
639
647
|
/**
|
|
640
648
|
* No description
|
|
@@ -1634,15 +1642,29 @@ var Api = /** @class */ (function (_super) {
|
|
|
1634
1642
|
* No description
|
|
1635
1643
|
*
|
|
1636
1644
|
* @tags Admin Tenant Operation Requests
|
|
1637
|
-
* @name
|
|
1638
|
-
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing
|
|
1645
|
+
* @name SetTenantDepositRequestAsProcessing
|
|
1646
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing-deposit
|
|
1647
|
+
* @secure
|
|
1648
|
+
* @response `204` `void`
|
|
1649
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1650
|
+
*/
|
|
1651
|
+
setTenantDepositRequestAsProcessing: function (tenantId, requestId, data, params) {
|
|
1652
|
+
if (params === void 0) { params = {}; }
|
|
1653
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/set-processing-deposit"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
|
|
1654
|
+
},
|
|
1655
|
+
/**
|
|
1656
|
+
* No description
|
|
1657
|
+
*
|
|
1658
|
+
* @tags Admin Tenant Operation Requests
|
|
1659
|
+
* @name SetTenantWithdrawRequestAsProcessing
|
|
1660
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing-withdraw
|
|
1639
1661
|
* @secure
|
|
1640
1662
|
* @response `204` `void`
|
|
1641
1663
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1642
1664
|
*/
|
|
1643
|
-
|
|
1665
|
+
setTenantWithdrawRequestAsProcessing: function (tenantId, requestId, params) {
|
|
1644
1666
|
if (params === void 0) { params = {}; }
|
|
1645
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/set-processing"), method: "PATCH", secure: true }, params));
|
|
1667
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/set-processing-withdraw"), method: "PATCH", secure: true }, params));
|
|
1646
1668
|
},
|
|
1647
1669
|
/**
|
|
1648
1670
|
* No description
|
package/dist/types/api/api.d.ts
CHANGED
|
@@ -48,6 +48,9 @@ export interface CaseEntityDto {
|
|
|
48
48
|
/** @min 0 */
|
|
49
49
|
maxItems: number;
|
|
50
50
|
name: string;
|
|
51
|
+
plan?: StoragePlanEntityDto | null;
|
|
52
|
+
/** @format uuid */
|
|
53
|
+
planId?: string | null;
|
|
51
54
|
/** @format uuid */
|
|
52
55
|
tenantId: string;
|
|
53
56
|
/** @format date-time */
|
|
@@ -103,6 +106,10 @@ export declare enum CaseOperationStatusEnum {
|
|
|
103
106
|
Processed = "processed",
|
|
104
107
|
Cancelled = "cancelled"
|
|
105
108
|
}
|
|
109
|
+
export declare enum CaseOperationTypeEnum {
|
|
110
|
+
Deposit = "deposit",
|
|
111
|
+
Withdrawal = "withdrawal"
|
|
112
|
+
}
|
|
106
113
|
export declare enum CaseOperationTypesEnum {
|
|
107
114
|
Deposit = "deposit",
|
|
108
115
|
Withdrawal = "withdrawal"
|
|
@@ -623,12 +630,13 @@ export interface PhoneDto {
|
|
|
623
630
|
}
|
|
624
631
|
export declare enum PhoneTypeEnum {
|
|
625
632
|
Fixed = "fixed",
|
|
626
|
-
Mobile = "mobile"
|
|
633
|
+
Mobile = "mobile",
|
|
634
|
+
Home = "home",
|
|
635
|
+
Work = "work",
|
|
636
|
+
Other = "other"
|
|
627
637
|
}
|
|
628
638
|
export interface ProcessDepositDto {
|
|
629
639
|
acceptBottlesAmountDivergence?: boolean;
|
|
630
|
-
/** @format date-time */
|
|
631
|
-
executedShippingDateTime: string;
|
|
632
640
|
/** @minItems 0 */
|
|
633
641
|
extras?: CreateOperationExtraDto[];
|
|
634
642
|
/** @example "please add it into a cooler" */
|
|
@@ -686,6 +694,10 @@ export interface ResetPasswordDto {
|
|
|
686
694
|
tenantId: string;
|
|
687
695
|
token: string;
|
|
688
696
|
}
|
|
697
|
+
export interface SetDepositAsProcessingDto {
|
|
698
|
+
/** @format date-time */
|
|
699
|
+
executedShippingDateTime: string;
|
|
700
|
+
}
|
|
689
701
|
export interface SetNotificationsReadDto {
|
|
690
702
|
/** @minItems 1 */
|
|
691
703
|
notificationIds: string[];
|
|
@@ -702,6 +714,22 @@ export interface SigninResponseDto {
|
|
|
702
714
|
token: string;
|
|
703
715
|
user: UserEntityDto;
|
|
704
716
|
}
|
|
717
|
+
export interface StoragePlanEntityDto {
|
|
718
|
+
/** @format date-time */
|
|
719
|
+
createdAt: string;
|
|
720
|
+
/** @format uuid */
|
|
721
|
+
id: string;
|
|
722
|
+
name: string;
|
|
723
|
+
/**
|
|
724
|
+
* @min 0
|
|
725
|
+
* @example 100
|
|
726
|
+
*/
|
|
727
|
+
price: number;
|
|
728
|
+
/** @format uuid */
|
|
729
|
+
tenantId?: string | null;
|
|
730
|
+
/** @format date-time */
|
|
731
|
+
updatedAt: string;
|
|
732
|
+
}
|
|
705
733
|
export interface SyncOperationGroupWithSnapshotDto {
|
|
706
734
|
/** @minItems 0 */
|
|
707
735
|
extras?: UpdateOperationExtraDto[];
|
|
@@ -1196,68 +1224,6 @@ export interface WithdrawWineInventoryItemDto {
|
|
|
1196
1224
|
/** @format uuid */
|
|
1197
1225
|
wineId: string;
|
|
1198
1226
|
}
|
|
1199
|
-
export declare namespace Auth {
|
|
1200
|
-
/**
|
|
1201
|
-
* No description
|
|
1202
|
-
* @tags Authentication
|
|
1203
|
-
* @name Logout
|
|
1204
|
-
* @request POST:/auth/logout
|
|
1205
|
-
* @secure
|
|
1206
|
-
* @response `204` `void`
|
|
1207
|
-
*/
|
|
1208
|
-
namespace Logout {
|
|
1209
|
-
type RequestParams = {};
|
|
1210
|
-
type RequestQuery = {};
|
|
1211
|
-
type RequestBody = never;
|
|
1212
|
-
type RequestHeaders = {};
|
|
1213
|
-
type ResponseBody = void;
|
|
1214
|
-
}
|
|
1215
|
-
/**
|
|
1216
|
-
* No description
|
|
1217
|
-
* @tags Authentication
|
|
1218
|
-
* @name RequestPasswordReset
|
|
1219
|
-
* @request POST:/auth/request-password-reset
|
|
1220
|
-
* @secure
|
|
1221
|
-
* @response `204` `void`
|
|
1222
|
-
*/
|
|
1223
|
-
namespace RequestPasswordReset {
|
|
1224
|
-
type RequestParams = {};
|
|
1225
|
-
type RequestQuery = {};
|
|
1226
|
-
type RequestBody = RequestPasswordResetDto;
|
|
1227
|
-
type RequestHeaders = {};
|
|
1228
|
-
type ResponseBody = void;
|
|
1229
|
-
}
|
|
1230
|
-
/**
|
|
1231
|
-
* No description
|
|
1232
|
-
* @tags Authentication
|
|
1233
|
-
* @name ResetPassword
|
|
1234
|
-
* @request PATCH:/auth/reset-password
|
|
1235
|
-
* @secure
|
|
1236
|
-
* @response `200` `SigninResponseDto`
|
|
1237
|
-
*/
|
|
1238
|
-
namespace ResetPassword {
|
|
1239
|
-
type RequestParams = {};
|
|
1240
|
-
type RequestQuery = {};
|
|
1241
|
-
type RequestBody = ResetPasswordDto;
|
|
1242
|
-
type RequestHeaders = {};
|
|
1243
|
-
type ResponseBody = SigninResponseDto;
|
|
1244
|
-
}
|
|
1245
|
-
/**
|
|
1246
|
-
* No description
|
|
1247
|
-
* @tags Authentication
|
|
1248
|
-
* @name SignIn
|
|
1249
|
-
* @request POST:/auth/signin
|
|
1250
|
-
* @secure
|
|
1251
|
-
* @response `200` `SigninResponseDto`
|
|
1252
|
-
*/
|
|
1253
|
-
namespace SignIn {
|
|
1254
|
-
type RequestParams = {};
|
|
1255
|
-
type RequestQuery = {};
|
|
1256
|
-
type RequestBody = SigninDto;
|
|
1257
|
-
type RequestHeaders = {};
|
|
1258
|
-
type ResponseBody = SigninResponseDto;
|
|
1259
|
-
}
|
|
1260
|
-
}
|
|
1261
1227
|
export declare namespace Tenants {
|
|
1262
1228
|
/**
|
|
1263
1229
|
* No description
|
|
@@ -1539,6 +1505,8 @@ export declare namespace Tenants {
|
|
|
1539
1505
|
amount?: string;
|
|
1540
1506
|
bottleFormatIds?: string[];
|
|
1541
1507
|
bottleVintageIds?: string[];
|
|
1508
|
+
/** @format uuid */
|
|
1509
|
+
caseId?: string;
|
|
1542
1510
|
/**
|
|
1543
1511
|
* @default 10
|
|
1544
1512
|
* @example 10
|
|
@@ -1622,6 +1590,7 @@ export declare namespace Tenants {
|
|
|
1622
1590
|
search?: string;
|
|
1623
1591
|
sortBy?: string[];
|
|
1624
1592
|
status?: OperationRequestStatusEnum[];
|
|
1593
|
+
types?: CaseOperationTypeEnum[];
|
|
1625
1594
|
};
|
|
1626
1595
|
type RequestBody = never;
|
|
1627
1596
|
type RequestHeaders = {};
|
|
@@ -1743,6 +1712,68 @@ export declare namespace Tenants {
|
|
|
1743
1712
|
type ResponseBody = AddressEntityDto;
|
|
1744
1713
|
}
|
|
1745
1714
|
}
|
|
1715
|
+
export declare namespace Auth {
|
|
1716
|
+
/**
|
|
1717
|
+
* No description
|
|
1718
|
+
* @tags Authentication
|
|
1719
|
+
* @name Logout
|
|
1720
|
+
* @request POST:/auth/logout
|
|
1721
|
+
* @secure
|
|
1722
|
+
* @response `204` `void`
|
|
1723
|
+
*/
|
|
1724
|
+
namespace Logout {
|
|
1725
|
+
type RequestParams = {};
|
|
1726
|
+
type RequestQuery = {};
|
|
1727
|
+
type RequestBody = never;
|
|
1728
|
+
type RequestHeaders = {};
|
|
1729
|
+
type ResponseBody = void;
|
|
1730
|
+
}
|
|
1731
|
+
/**
|
|
1732
|
+
* No description
|
|
1733
|
+
* @tags Authentication
|
|
1734
|
+
* @name RequestPasswordReset
|
|
1735
|
+
* @request POST:/auth/request-password-reset
|
|
1736
|
+
* @secure
|
|
1737
|
+
* @response `204` `void`
|
|
1738
|
+
*/
|
|
1739
|
+
namespace RequestPasswordReset {
|
|
1740
|
+
type RequestParams = {};
|
|
1741
|
+
type RequestQuery = {};
|
|
1742
|
+
type RequestBody = RequestPasswordResetDto;
|
|
1743
|
+
type RequestHeaders = {};
|
|
1744
|
+
type ResponseBody = void;
|
|
1745
|
+
}
|
|
1746
|
+
/**
|
|
1747
|
+
* No description
|
|
1748
|
+
* @tags Authentication
|
|
1749
|
+
* @name ResetPassword
|
|
1750
|
+
* @request PATCH:/auth/reset-password
|
|
1751
|
+
* @secure
|
|
1752
|
+
* @response `200` `SigninResponseDto`
|
|
1753
|
+
*/
|
|
1754
|
+
namespace ResetPassword {
|
|
1755
|
+
type RequestParams = {};
|
|
1756
|
+
type RequestQuery = {};
|
|
1757
|
+
type RequestBody = ResetPasswordDto;
|
|
1758
|
+
type RequestHeaders = {};
|
|
1759
|
+
type ResponseBody = SigninResponseDto;
|
|
1760
|
+
}
|
|
1761
|
+
/**
|
|
1762
|
+
* No description
|
|
1763
|
+
* @tags Authentication
|
|
1764
|
+
* @name SignIn
|
|
1765
|
+
* @request POST:/auth/signin
|
|
1766
|
+
* @secure
|
|
1767
|
+
* @response `200` `SigninResponseDto`
|
|
1768
|
+
*/
|
|
1769
|
+
namespace SignIn {
|
|
1770
|
+
type RequestParams = {};
|
|
1771
|
+
type RequestQuery = {};
|
|
1772
|
+
type RequestBody = SigninDto;
|
|
1773
|
+
type RequestHeaders = {};
|
|
1774
|
+
type ResponseBody = SigninResponseDto;
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1746
1777
|
export declare namespace Admin {
|
|
1747
1778
|
/**
|
|
1748
1779
|
* No description
|
|
@@ -2851,6 +2882,7 @@ export declare namespace Admin {
|
|
|
2851
2882
|
search?: string;
|
|
2852
2883
|
sortBy?: string[];
|
|
2853
2884
|
status?: OperationRequestStatusEnum[];
|
|
2885
|
+
types?: CaseOperationTypeEnum[];
|
|
2854
2886
|
};
|
|
2855
2887
|
type RequestBody = never;
|
|
2856
2888
|
type RequestHeaders = {};
|
|
@@ -3340,13 +3372,32 @@ export declare namespace Admin {
|
|
|
3340
3372
|
/**
|
|
3341
3373
|
* No description
|
|
3342
3374
|
* @tags Admin Tenant Operation Requests
|
|
3343
|
-
* @name
|
|
3344
|
-
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing
|
|
3375
|
+
* @name SetTenantDepositRequestAsProcessing
|
|
3376
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing-deposit
|
|
3377
|
+
* @secure
|
|
3378
|
+
* @response `204` `void`
|
|
3379
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
3380
|
+
*/
|
|
3381
|
+
namespace SetTenantDepositRequestAsProcessing {
|
|
3382
|
+
type RequestParams = {
|
|
3383
|
+
requestId: string;
|
|
3384
|
+
tenantId: string;
|
|
3385
|
+
};
|
|
3386
|
+
type RequestQuery = {};
|
|
3387
|
+
type RequestBody = SetDepositAsProcessingDto;
|
|
3388
|
+
type RequestHeaders = {};
|
|
3389
|
+
type ResponseBody = void;
|
|
3390
|
+
}
|
|
3391
|
+
/**
|
|
3392
|
+
* No description
|
|
3393
|
+
* @tags Admin Tenant Operation Requests
|
|
3394
|
+
* @name SetTenantWithdrawRequestAsProcessing
|
|
3395
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing-withdraw
|
|
3345
3396
|
* @secure
|
|
3346
3397
|
* @response `204` `void`
|
|
3347
3398
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
3348
3399
|
*/
|
|
3349
|
-
namespace
|
|
3400
|
+
namespace SetTenantWithdrawRequestAsProcessing {
|
|
3350
3401
|
type RequestParams = {
|
|
3351
3402
|
requestId: string;
|
|
3352
3403
|
tenantId: string;
|
|
@@ -3705,7 +3756,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
3705
3756
|
}
|
|
3706
3757
|
/**
|
|
3707
3758
|
* @title winehaus-api
|
|
3708
|
-
* @version 0.0.
|
|
3759
|
+
* @version 0.0.3
|
|
3709
3760
|
* @baseUrl http://localhost:3000
|
|
3710
3761
|
* @contact
|
|
3711
3762
|
*/
|
|
@@ -3719,48 +3770,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3719
3770
|
* @response `200` `void`
|
|
3720
3771
|
*/
|
|
3721
3772
|
index: (params?: RequestParams) => Promise<void>;
|
|
3722
|
-
auth: {
|
|
3723
|
-
/**
|
|
3724
|
-
* No description
|
|
3725
|
-
*
|
|
3726
|
-
* @tags Authentication
|
|
3727
|
-
* @name Logout
|
|
3728
|
-
* @request POST:/auth/logout
|
|
3729
|
-
* @secure
|
|
3730
|
-
* @response `204` `void`
|
|
3731
|
-
*/
|
|
3732
|
-
logout: (params?: RequestParams) => Promise<void>;
|
|
3733
|
-
/**
|
|
3734
|
-
* No description
|
|
3735
|
-
*
|
|
3736
|
-
* @tags Authentication
|
|
3737
|
-
* @name RequestPasswordReset
|
|
3738
|
-
* @request POST:/auth/request-password-reset
|
|
3739
|
-
* @secure
|
|
3740
|
-
* @response `204` `void`
|
|
3741
|
-
*/
|
|
3742
|
-
requestPasswordReset: (data: RequestPasswordResetDto, params?: RequestParams) => Promise<void>;
|
|
3743
|
-
/**
|
|
3744
|
-
* No description
|
|
3745
|
-
*
|
|
3746
|
-
* @tags Authentication
|
|
3747
|
-
* @name ResetPassword
|
|
3748
|
-
* @request PATCH:/auth/reset-password
|
|
3749
|
-
* @secure
|
|
3750
|
-
* @response `200` `SigninResponseDto`
|
|
3751
|
-
*/
|
|
3752
|
-
resetPassword: (data: ResetPasswordDto, params?: RequestParams) => Promise<SigninResponseDto>;
|
|
3753
|
-
/**
|
|
3754
|
-
* No description
|
|
3755
|
-
*
|
|
3756
|
-
* @tags Authentication
|
|
3757
|
-
* @name SignIn
|
|
3758
|
-
* @request POST:/auth/signin
|
|
3759
|
-
* @secure
|
|
3760
|
-
* @response `200` `SigninResponseDto`
|
|
3761
|
-
*/
|
|
3762
|
-
signIn: (data: SigninDto, params?: RequestParams) => Promise<SigninResponseDto>;
|
|
3763
|
-
};
|
|
3764
3773
|
tenants: {
|
|
3765
3774
|
/**
|
|
3766
3775
|
* No description
|
|
@@ -3940,6 +3949,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3940
3949
|
amount?: string;
|
|
3941
3950
|
bottleFormatIds?: string[];
|
|
3942
3951
|
bottleVintageIds?: string[];
|
|
3952
|
+
/** @format uuid */
|
|
3953
|
+
caseId?: string;
|
|
3943
3954
|
/**
|
|
3944
3955
|
* @default 10
|
|
3945
3956
|
* @example 10
|
|
@@ -4007,6 +4018,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4007
4018
|
search?: string;
|
|
4008
4019
|
sortBy?: string[];
|
|
4009
4020
|
status?: OperationRequestStatusEnum[];
|
|
4021
|
+
types?: CaseOperationTypeEnum[];
|
|
4010
4022
|
}, params?: RequestParams) => Promise<OperationRequestEntityPaginatedDto>;
|
|
4011
4023
|
/**
|
|
4012
4024
|
* No description
|
|
@@ -4075,6 +4087,48 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4075
4087
|
*/
|
|
4076
4088
|
updateUserAddress: (tenantId: string, userId: string, addressId: string, data: UpdateAddressDto, params?: RequestParams) => Promise<AddressEntityDto>;
|
|
4077
4089
|
};
|
|
4090
|
+
auth: {
|
|
4091
|
+
/**
|
|
4092
|
+
* No description
|
|
4093
|
+
*
|
|
4094
|
+
* @tags Authentication
|
|
4095
|
+
* @name Logout
|
|
4096
|
+
* @request POST:/auth/logout
|
|
4097
|
+
* @secure
|
|
4098
|
+
* @response `204` `void`
|
|
4099
|
+
*/
|
|
4100
|
+
logout: (params?: RequestParams) => Promise<void>;
|
|
4101
|
+
/**
|
|
4102
|
+
* No description
|
|
4103
|
+
*
|
|
4104
|
+
* @tags Authentication
|
|
4105
|
+
* @name RequestPasswordReset
|
|
4106
|
+
* @request POST:/auth/request-password-reset
|
|
4107
|
+
* @secure
|
|
4108
|
+
* @response `204` `void`
|
|
4109
|
+
*/
|
|
4110
|
+
requestPasswordReset: (data: RequestPasswordResetDto, params?: RequestParams) => Promise<void>;
|
|
4111
|
+
/**
|
|
4112
|
+
* No description
|
|
4113
|
+
*
|
|
4114
|
+
* @tags Authentication
|
|
4115
|
+
* @name ResetPassword
|
|
4116
|
+
* @request PATCH:/auth/reset-password
|
|
4117
|
+
* @secure
|
|
4118
|
+
* @response `200` `SigninResponseDto`
|
|
4119
|
+
*/
|
|
4120
|
+
resetPassword: (data: ResetPasswordDto, params?: RequestParams) => Promise<SigninResponseDto>;
|
|
4121
|
+
/**
|
|
4122
|
+
* No description
|
|
4123
|
+
*
|
|
4124
|
+
* @tags Authentication
|
|
4125
|
+
* @name SignIn
|
|
4126
|
+
* @request POST:/auth/signin
|
|
4127
|
+
* @secure
|
|
4128
|
+
* @response `200` `SigninResponseDto`
|
|
4129
|
+
*/
|
|
4130
|
+
signIn: (data: SigninDto, params?: RequestParams) => Promise<SigninResponseDto>;
|
|
4131
|
+
};
|
|
4078
4132
|
admin: {
|
|
4079
4133
|
/**
|
|
4080
4134
|
* No description
|
|
@@ -4766,6 +4820,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4766
4820
|
search?: string;
|
|
4767
4821
|
sortBy?: string[];
|
|
4768
4822
|
status?: OperationRequestStatusEnum[];
|
|
4823
|
+
types?: CaseOperationTypeEnum[];
|
|
4769
4824
|
}, params?: RequestParams) => Promise<OperationRequestEntityPaginatedDto>;
|
|
4770
4825
|
/**
|
|
4771
4826
|
* No description
|
|
@@ -5136,13 +5191,24 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5136
5191
|
* No description
|
|
5137
5192
|
*
|
|
5138
5193
|
* @tags Admin Tenant Operation Requests
|
|
5139
|
-
* @name
|
|
5140
|
-
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing
|
|
5194
|
+
* @name SetTenantDepositRequestAsProcessing
|
|
5195
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing-deposit
|
|
5196
|
+
* @secure
|
|
5197
|
+
* @response `204` `void`
|
|
5198
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
5199
|
+
*/
|
|
5200
|
+
setTenantDepositRequestAsProcessing: (tenantId: string, requestId: string, data: SetDepositAsProcessingDto, params?: RequestParams) => Promise<void>;
|
|
5201
|
+
/**
|
|
5202
|
+
* No description
|
|
5203
|
+
*
|
|
5204
|
+
* @tags Admin Tenant Operation Requests
|
|
5205
|
+
* @name SetTenantWithdrawRequestAsProcessing
|
|
5206
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing-withdraw
|
|
5141
5207
|
* @secure
|
|
5142
5208
|
* @response `204` `void`
|
|
5143
5209
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
5144
5210
|
*/
|
|
5145
|
-
|
|
5211
|
+
setTenantWithdrawRequestAsProcessing: (tenantId: string, requestId: string, params?: RequestParams) => Promise<void>;
|
|
5146
5212
|
/**
|
|
5147
5213
|
* No description
|
|
5148
5214
|
*
|
package/dist/umd/index.ts
CHANGED
|
@@ -18410,7 +18410,7 @@ 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.WithdrawRequestDeliverTypeEnum = exports.WithdrawRequestDeliverStatusEnum = exports.UserNotificationTypeEnum = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.PhoneTypeEnum = exports.OrderByEnum = exports.OperationRequestTypeEnum = exports.OperationRequestStatusEnum = exports.OperationGroupStatusEnum = exports.CreateOnlyOperationGroupStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
|
|
18413
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.WithdrawRequestDeliverTypeEnum = exports.WithdrawRequestDeliverStatusEnum = exports.UserNotificationTypeEnum = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.PhoneTypeEnum = exports.OrderByEnum = exports.OperationRequestTypeEnum = exports.OperationRequestStatusEnum = exports.OperationGroupStatusEnum = exports.CreateOnlyOperationGroupStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationTypeEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
|
|
18414
18414
|
var CaseOperationLogTypeEnum;
|
|
18415
18415
|
(function (CaseOperationLogTypeEnum) {
|
|
18416
18416
|
CaseOperationLogTypeEnum["RequestAccepted"] = "request_accepted";
|
|
@@ -18425,6 +18425,11 @@ var CaseOperationStatusEnum;
|
|
|
18425
18425
|
CaseOperationStatusEnum["Processed"] = "processed";
|
|
18426
18426
|
CaseOperationStatusEnum["Cancelled"] = "cancelled";
|
|
18427
18427
|
})(CaseOperationStatusEnum = exports.CaseOperationStatusEnum || (exports.CaseOperationStatusEnum = {}));
|
|
18428
|
+
var CaseOperationTypeEnum;
|
|
18429
|
+
(function (CaseOperationTypeEnum) {
|
|
18430
|
+
CaseOperationTypeEnum["Deposit"] = "deposit";
|
|
18431
|
+
CaseOperationTypeEnum["Withdrawal"] = "withdrawal";
|
|
18432
|
+
})(CaseOperationTypeEnum = exports.CaseOperationTypeEnum || (exports.CaseOperationTypeEnum = {}));
|
|
18428
18433
|
var CaseOperationTypesEnum;
|
|
18429
18434
|
(function (CaseOperationTypesEnum) {
|
|
18430
18435
|
CaseOperationTypesEnum["Deposit"] = "deposit";
|
|
@@ -18466,6 +18471,9 @@ var PhoneTypeEnum;
|
|
|
18466
18471
|
(function (PhoneTypeEnum) {
|
|
18467
18472
|
PhoneTypeEnum["Fixed"] = "fixed";
|
|
18468
18473
|
PhoneTypeEnum["Mobile"] = "mobile";
|
|
18474
|
+
PhoneTypeEnum["Home"] = "home";
|
|
18475
|
+
PhoneTypeEnum["Work"] = "work";
|
|
18476
|
+
PhoneTypeEnum["Other"] = "other";
|
|
18469
18477
|
})(PhoneTypeEnum = exports.PhoneTypeEnum || (exports.PhoneTypeEnum = {}));
|
|
18470
18478
|
var TenantRoleEnum;
|
|
18471
18479
|
(function (TenantRoleEnum) {
|
|
@@ -18596,7 +18604,7 @@ var HttpClient = /** @class */ (function () {
|
|
|
18596
18604
|
exports.HttpClient = HttpClient;
|
|
18597
18605
|
/**
|
|
18598
18606
|
* @title winehaus-api
|
|
18599
|
-
* @version 0.0.
|
|
18607
|
+
* @version 0.0.3
|
|
18600
18608
|
* @baseUrl http://localhost:3000
|
|
18601
18609
|
* @contact
|
|
18602
18610
|
*/
|
|
@@ -18616,60 +18624,6 @@ var Api = /** @class */ (function (_super) {
|
|
|
18616
18624
|
if (params === void 0) { params = {}; }
|
|
18617
18625
|
return _this.request(__assign({ path: "/", method: "GET" }, params));
|
|
18618
18626
|
};
|
|
18619
|
-
_this.auth = {
|
|
18620
|
-
/**
|
|
18621
|
-
* No description
|
|
18622
|
-
*
|
|
18623
|
-
* @tags Authentication
|
|
18624
|
-
* @name Logout
|
|
18625
|
-
* @request POST:/auth/logout
|
|
18626
|
-
* @secure
|
|
18627
|
-
* @response `204` `void`
|
|
18628
|
-
*/
|
|
18629
|
-
logout: function (params) {
|
|
18630
|
-
if (params === void 0) { params = {}; }
|
|
18631
|
-
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
18632
|
-
},
|
|
18633
|
-
/**
|
|
18634
|
-
* No description
|
|
18635
|
-
*
|
|
18636
|
-
* @tags Authentication
|
|
18637
|
-
* @name RequestPasswordReset
|
|
18638
|
-
* @request POST:/auth/request-password-reset
|
|
18639
|
-
* @secure
|
|
18640
|
-
* @response `204` `void`
|
|
18641
|
-
*/
|
|
18642
|
-
requestPasswordReset: function (data, params) {
|
|
18643
|
-
if (params === void 0) { params = {}; }
|
|
18644
|
-
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
18645
|
-
},
|
|
18646
|
-
/**
|
|
18647
|
-
* No description
|
|
18648
|
-
*
|
|
18649
|
-
* @tags Authentication
|
|
18650
|
-
* @name ResetPassword
|
|
18651
|
-
* @request PATCH:/auth/reset-password
|
|
18652
|
-
* @secure
|
|
18653
|
-
* @response `200` `SigninResponseDto`
|
|
18654
|
-
*/
|
|
18655
|
-
resetPassword: function (data, params) {
|
|
18656
|
-
if (params === void 0) { params = {}; }
|
|
18657
|
-
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18658
|
-
},
|
|
18659
|
-
/**
|
|
18660
|
-
* No description
|
|
18661
|
-
*
|
|
18662
|
-
* @tags Authentication
|
|
18663
|
-
* @name SignIn
|
|
18664
|
-
* @request POST:/auth/signin
|
|
18665
|
-
* @secure
|
|
18666
|
-
* @response `200` `SigninResponseDto`
|
|
18667
|
-
*/
|
|
18668
|
-
signIn: function (data, params) {
|
|
18669
|
-
if (params === void 0) { params = {}; }
|
|
18670
|
-
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18671
|
-
},
|
|
18672
|
-
};
|
|
18673
18627
|
_this.tenants = {
|
|
18674
18628
|
/**
|
|
18675
18629
|
* No description
|
|
@@ -18966,6 +18920,60 @@ var Api = /** @class */ (function (_super) {
|
|
|
18966
18920
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18967
18921
|
},
|
|
18968
18922
|
};
|
|
18923
|
+
_this.auth = {
|
|
18924
|
+
/**
|
|
18925
|
+
* No description
|
|
18926
|
+
*
|
|
18927
|
+
* @tags Authentication
|
|
18928
|
+
* @name Logout
|
|
18929
|
+
* @request POST:/auth/logout
|
|
18930
|
+
* @secure
|
|
18931
|
+
* @response `204` `void`
|
|
18932
|
+
*/
|
|
18933
|
+
logout: function (params) {
|
|
18934
|
+
if (params === void 0) { params = {}; }
|
|
18935
|
+
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
18936
|
+
},
|
|
18937
|
+
/**
|
|
18938
|
+
* No description
|
|
18939
|
+
*
|
|
18940
|
+
* @tags Authentication
|
|
18941
|
+
* @name RequestPasswordReset
|
|
18942
|
+
* @request POST:/auth/request-password-reset
|
|
18943
|
+
* @secure
|
|
18944
|
+
* @response `204` `void`
|
|
18945
|
+
*/
|
|
18946
|
+
requestPasswordReset: function (data, params) {
|
|
18947
|
+
if (params === void 0) { params = {}; }
|
|
18948
|
+
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
18949
|
+
},
|
|
18950
|
+
/**
|
|
18951
|
+
* No description
|
|
18952
|
+
*
|
|
18953
|
+
* @tags Authentication
|
|
18954
|
+
* @name ResetPassword
|
|
18955
|
+
* @request PATCH:/auth/reset-password
|
|
18956
|
+
* @secure
|
|
18957
|
+
* @response `200` `SigninResponseDto`
|
|
18958
|
+
*/
|
|
18959
|
+
resetPassword: function (data, params) {
|
|
18960
|
+
if (params === void 0) { params = {}; }
|
|
18961
|
+
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18962
|
+
},
|
|
18963
|
+
/**
|
|
18964
|
+
* No description
|
|
18965
|
+
*
|
|
18966
|
+
* @tags Authentication
|
|
18967
|
+
* @name SignIn
|
|
18968
|
+
* @request POST:/auth/signin
|
|
18969
|
+
* @secure
|
|
18970
|
+
* @response `200` `SigninResponseDto`
|
|
18971
|
+
*/
|
|
18972
|
+
signIn: function (data, params) {
|
|
18973
|
+
if (params === void 0) { params = {}; }
|
|
18974
|
+
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18975
|
+
},
|
|
18976
|
+
};
|
|
18969
18977
|
_this.admin = {
|
|
18970
18978
|
/**
|
|
18971
18979
|
* No description
|
|
@@ -19965,15 +19973,29 @@ var Api = /** @class */ (function (_super) {
|
|
|
19965
19973
|
* No description
|
|
19966
19974
|
*
|
|
19967
19975
|
* @tags Admin Tenant Operation Requests
|
|
19968
|
-
* @name
|
|
19969
|
-
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing
|
|
19976
|
+
* @name SetTenantDepositRequestAsProcessing
|
|
19977
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing-deposit
|
|
19978
|
+
* @secure
|
|
19979
|
+
* @response `204` `void`
|
|
19980
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19981
|
+
*/
|
|
19982
|
+
setTenantDepositRequestAsProcessing: function (tenantId, requestId, data, params) {
|
|
19983
|
+
if (params === void 0) { params = {}; }
|
|
19984
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/set-processing-deposit"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
|
|
19985
|
+
},
|
|
19986
|
+
/**
|
|
19987
|
+
* No description
|
|
19988
|
+
*
|
|
19989
|
+
* @tags Admin Tenant Operation Requests
|
|
19990
|
+
* @name SetTenantWithdrawRequestAsProcessing
|
|
19991
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing-withdraw
|
|
19970
19992
|
* @secure
|
|
19971
19993
|
* @response `204` `void`
|
|
19972
19994
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19973
19995
|
*/
|
|
19974
|
-
|
|
19996
|
+
setTenantWithdrawRequestAsProcessing: function (tenantId, requestId, params) {
|
|
19975
19997
|
if (params === void 0) { params = {}; }
|
|
19976
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/set-processing"), method: "PATCH", secure: true }, params));
|
|
19998
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/set-processing-withdraw"), method: "PATCH", secure: true }, params));
|
|
19977
19999
|
},
|
|
19978
20000
|
/**
|
|
19979
20001
|
* No description
|