@thelllabs/winehaus-sdk 0.0.15 → 0.0.16
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 +98 -1
- package/dist/esm/api/api.js +97 -0
- package/dist/types/api/api.d.ts +302 -1
- package/dist/umd/index.ts +98 -1
- 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.TenantUserStatusEnum = exports.TenantRoleEnum = exports.PhoneTypeEnum = exports.OrderByEnum = exports.OperationGroupStatusEnum = exports.CreateOnlyOperationGroupStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
|
|
88
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.WithdrawRequestDeliverTypeEnum = exports.WithdrawRequestDeliverStatusEnum = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.PhoneTypeEnum = exports.OrderByEnum = exports.OperationRequestTypeEnum = exports.OperationRequestStatusEnum = exports.OperationGroupStatusEnum = exports.CreateOnlyOperationGroupStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
|
|
89
89
|
var CaseOperationLogTypeEnum;
|
|
90
90
|
(function (CaseOperationLogTypeEnum) {
|
|
91
91
|
CaseOperationLogTypeEnum["RequestAccepted"] = "request_accepted";
|
|
@@ -116,6 +116,20 @@ var OperationGroupStatusEnum;
|
|
|
116
116
|
OperationGroupStatusEnum["Processed"] = "processed";
|
|
117
117
|
OperationGroupStatusEnum["Cancelled"] = "cancelled";
|
|
118
118
|
})(OperationGroupStatusEnum = exports.OperationGroupStatusEnum || (exports.OperationGroupStatusEnum = {}));
|
|
119
|
+
var OperationRequestStatusEnum;
|
|
120
|
+
(function (OperationRequestStatusEnum) {
|
|
121
|
+
OperationRequestStatusEnum["WaitingConfirmation"] = "waiting_confirmation";
|
|
122
|
+
OperationRequestStatusEnum["Scheduled"] = "scheduled";
|
|
123
|
+
OperationRequestStatusEnum["Processing"] = "processing";
|
|
124
|
+
OperationRequestStatusEnum["Processed"] = "processed";
|
|
125
|
+
OperationRequestStatusEnum["Refused"] = "refused";
|
|
126
|
+
OperationRequestStatusEnum["Cancelled"] = "cancelled";
|
|
127
|
+
})(OperationRequestStatusEnum = exports.OperationRequestStatusEnum || (exports.OperationRequestStatusEnum = {}));
|
|
128
|
+
var OperationRequestTypeEnum;
|
|
129
|
+
(function (OperationRequestTypeEnum) {
|
|
130
|
+
OperationRequestTypeEnum["Deposit"] = "deposit";
|
|
131
|
+
OperationRequestTypeEnum["Withdrawal"] = "withdrawal";
|
|
132
|
+
})(OperationRequestTypeEnum = exports.OperationRequestTypeEnum || (exports.OperationRequestTypeEnum = {}));
|
|
119
133
|
var OrderByEnum;
|
|
120
134
|
(function (OrderByEnum) {
|
|
121
135
|
OrderByEnum["ASC"] = "ASC";
|
|
@@ -138,6 +152,19 @@ var TenantUserStatusEnum;
|
|
|
138
152
|
TenantUserStatusEnum["Enabled"] = "enabled";
|
|
139
153
|
TenantUserStatusEnum["Blocked"] = "blocked";
|
|
140
154
|
})(TenantUserStatusEnum = exports.TenantUserStatusEnum || (exports.TenantUserStatusEnum = {}));
|
|
155
|
+
var WithdrawRequestDeliverStatusEnum;
|
|
156
|
+
(function (WithdrawRequestDeliverStatusEnum) {
|
|
157
|
+
WithdrawRequestDeliverStatusEnum["Pending"] = "pending";
|
|
158
|
+
WithdrawRequestDeliverStatusEnum["InSeparation"] = "in_separation";
|
|
159
|
+
WithdrawRequestDeliverStatusEnum["ReadyForDeliver"] = "ready_for_deliver";
|
|
160
|
+
WithdrawRequestDeliverStatusEnum["InTransit"] = "in_transit";
|
|
161
|
+
WithdrawRequestDeliverStatusEnum["Completed"] = "completed";
|
|
162
|
+
})(WithdrawRequestDeliverStatusEnum = exports.WithdrawRequestDeliverStatusEnum || (exports.WithdrawRequestDeliverStatusEnum = {}));
|
|
163
|
+
var WithdrawRequestDeliverTypeEnum;
|
|
164
|
+
(function (WithdrawRequestDeliverTypeEnum) {
|
|
165
|
+
WithdrawRequestDeliverTypeEnum["Shipping"] = "shipping";
|
|
166
|
+
WithdrawRequestDeliverTypeEnum["Pickup"] = "pickup";
|
|
167
|
+
})(WithdrawRequestDeliverTypeEnum = exports.WithdrawRequestDeliverTypeEnum || (exports.WithdrawRequestDeliverTypeEnum = {}));
|
|
141
168
|
var axios_1 = __importDefault(require("axios"));
|
|
142
169
|
var ContentType;
|
|
143
170
|
(function (ContentType) {
|
|
@@ -307,6 +334,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
307
334
|
},
|
|
308
335
|
};
|
|
309
336
|
_this.tenants = {
|
|
337
|
+
/**
|
|
338
|
+
* No description
|
|
339
|
+
*
|
|
340
|
+
* @tags Tenant Users Operation Requests
|
|
341
|
+
* @name CancelRequest
|
|
342
|
+
* @request PATCH:/tenants/{tenantId}/users/userId/requests/{requestId}/cancel
|
|
343
|
+
* @secure
|
|
344
|
+
* @response `200` `void`
|
|
345
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
346
|
+
*/
|
|
347
|
+
cancelRequest: function (tenantId, userId, requestId, params) {
|
|
348
|
+
if (params === void 0) { params = {}; }
|
|
349
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/").concat(requestId, "/cancel"), method: "PATCH", secure: true }, params));
|
|
350
|
+
},
|
|
310
351
|
/**
|
|
311
352
|
* No description
|
|
312
353
|
*
|
|
@@ -405,6 +446,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
405
446
|
if (params === void 0) { params = {}; }
|
|
406
447
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "GET", secure: true, format: "json" }, params));
|
|
407
448
|
},
|
|
449
|
+
/**
|
|
450
|
+
* No description
|
|
451
|
+
*
|
|
452
|
+
* @tags Tenant Users Operation Requests
|
|
453
|
+
* @name GetUserOperationRequestById
|
|
454
|
+
* @request GET:/tenants/{tenantId}/users/userId/requests/{requestId}
|
|
455
|
+
* @secure
|
|
456
|
+
* @response `200` `OperationRequestEntityDto`
|
|
457
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
458
|
+
*/
|
|
459
|
+
getUserOperationRequestById: function (tenantId, userId, requestId, params) {
|
|
460
|
+
if (params === void 0) { params = {}; }
|
|
461
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
|
|
462
|
+
},
|
|
408
463
|
/**
|
|
409
464
|
* No description
|
|
410
465
|
*
|
|
@@ -433,6 +488,48 @@ var Api = /** @class */ (function (_super) {
|
|
|
433
488
|
if (params === void 0) { params = {}; }
|
|
434
489
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
435
490
|
},
|
|
491
|
+
/**
|
|
492
|
+
* No description
|
|
493
|
+
*
|
|
494
|
+
* @tags Tenant Users Operation Requests
|
|
495
|
+
* @name ListUserOperationRequests
|
|
496
|
+
* @request GET:/tenants/{tenantId}/users/userId/requests
|
|
497
|
+
* @secure
|
|
498
|
+
* @response `200` `OperationRequestEntityPaginatedDto`
|
|
499
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
500
|
+
*/
|
|
501
|
+
listUserOperationRequests: function (tenantId, userId, query, params) {
|
|
502
|
+
if (params === void 0) { params = {}; }
|
|
503
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
504
|
+
},
|
|
505
|
+
/**
|
|
506
|
+
* No description
|
|
507
|
+
*
|
|
508
|
+
* @tags Tenant Users Operation Requests
|
|
509
|
+
* @name RequestDeposit
|
|
510
|
+
* @request POST:/tenants/{tenantId}/users/userId/requests/deposit
|
|
511
|
+
* @secure
|
|
512
|
+
* @response `201` `OperationRequestEntityDto`
|
|
513
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
514
|
+
*/
|
|
515
|
+
requestDeposit: function (tenantId, userId, data, params) {
|
|
516
|
+
if (params === void 0) { params = {}; }
|
|
517
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/deposit"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
518
|
+
},
|
|
519
|
+
/**
|
|
520
|
+
* No description
|
|
521
|
+
*
|
|
522
|
+
* @tags Tenant Users Operation Requests
|
|
523
|
+
* @name RequestWithdraw
|
|
524
|
+
* @request POST:/tenants/{tenantId}/users/userId/requests/withdraw
|
|
525
|
+
* @secure
|
|
526
|
+
* @response `201` `OperationRequestEntityDto`
|
|
527
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
528
|
+
*/
|
|
529
|
+
requestWithdraw: function (tenantId, userId, data, params) {
|
|
530
|
+
if (params === void 0) { params = {}; }
|
|
531
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/withdraw"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
532
|
+
},
|
|
436
533
|
/**
|
|
437
534
|
* No description
|
|
438
535
|
*
|
package/dist/esm/api/api.js
CHANGED
|
@@ -110,6 +110,20 @@ export var OperationGroupStatusEnum;
|
|
|
110
110
|
OperationGroupStatusEnum["Processed"] = "processed";
|
|
111
111
|
OperationGroupStatusEnum["Cancelled"] = "cancelled";
|
|
112
112
|
})(OperationGroupStatusEnum || (OperationGroupStatusEnum = {}));
|
|
113
|
+
export var OperationRequestStatusEnum;
|
|
114
|
+
(function (OperationRequestStatusEnum) {
|
|
115
|
+
OperationRequestStatusEnum["WaitingConfirmation"] = "waiting_confirmation";
|
|
116
|
+
OperationRequestStatusEnum["Scheduled"] = "scheduled";
|
|
117
|
+
OperationRequestStatusEnum["Processing"] = "processing";
|
|
118
|
+
OperationRequestStatusEnum["Processed"] = "processed";
|
|
119
|
+
OperationRequestStatusEnum["Refused"] = "refused";
|
|
120
|
+
OperationRequestStatusEnum["Cancelled"] = "cancelled";
|
|
121
|
+
})(OperationRequestStatusEnum || (OperationRequestStatusEnum = {}));
|
|
122
|
+
export var OperationRequestTypeEnum;
|
|
123
|
+
(function (OperationRequestTypeEnum) {
|
|
124
|
+
OperationRequestTypeEnum["Deposit"] = "deposit";
|
|
125
|
+
OperationRequestTypeEnum["Withdrawal"] = "withdrawal";
|
|
126
|
+
})(OperationRequestTypeEnum || (OperationRequestTypeEnum = {}));
|
|
113
127
|
export var OrderByEnum;
|
|
114
128
|
(function (OrderByEnum) {
|
|
115
129
|
OrderByEnum["ASC"] = "ASC";
|
|
@@ -132,6 +146,19 @@ export var TenantUserStatusEnum;
|
|
|
132
146
|
TenantUserStatusEnum["Enabled"] = "enabled";
|
|
133
147
|
TenantUserStatusEnum["Blocked"] = "blocked";
|
|
134
148
|
})(TenantUserStatusEnum || (TenantUserStatusEnum = {}));
|
|
149
|
+
export var WithdrawRequestDeliverStatusEnum;
|
|
150
|
+
(function (WithdrawRequestDeliverStatusEnum) {
|
|
151
|
+
WithdrawRequestDeliverStatusEnum["Pending"] = "pending";
|
|
152
|
+
WithdrawRequestDeliverStatusEnum["InSeparation"] = "in_separation";
|
|
153
|
+
WithdrawRequestDeliverStatusEnum["ReadyForDeliver"] = "ready_for_deliver";
|
|
154
|
+
WithdrawRequestDeliverStatusEnum["InTransit"] = "in_transit";
|
|
155
|
+
WithdrawRequestDeliverStatusEnum["Completed"] = "completed";
|
|
156
|
+
})(WithdrawRequestDeliverStatusEnum || (WithdrawRequestDeliverStatusEnum = {}));
|
|
157
|
+
export var WithdrawRequestDeliverTypeEnum;
|
|
158
|
+
(function (WithdrawRequestDeliverTypeEnum) {
|
|
159
|
+
WithdrawRequestDeliverTypeEnum["Shipping"] = "shipping";
|
|
160
|
+
WithdrawRequestDeliverTypeEnum["Pickup"] = "pickup";
|
|
161
|
+
})(WithdrawRequestDeliverTypeEnum || (WithdrawRequestDeliverTypeEnum = {}));
|
|
135
162
|
import axios from "axios";
|
|
136
163
|
export var ContentType;
|
|
137
164
|
(function (ContentType) {
|
|
@@ -301,6 +328,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
301
328
|
},
|
|
302
329
|
};
|
|
303
330
|
_this.tenants = {
|
|
331
|
+
/**
|
|
332
|
+
* No description
|
|
333
|
+
*
|
|
334
|
+
* @tags Tenant Users Operation Requests
|
|
335
|
+
* @name CancelRequest
|
|
336
|
+
* @request PATCH:/tenants/{tenantId}/users/userId/requests/{requestId}/cancel
|
|
337
|
+
* @secure
|
|
338
|
+
* @response `200` `void`
|
|
339
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
340
|
+
*/
|
|
341
|
+
cancelRequest: function (tenantId, userId, requestId, params) {
|
|
342
|
+
if (params === void 0) { params = {}; }
|
|
343
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/").concat(requestId, "/cancel"), method: "PATCH", secure: true }, params));
|
|
344
|
+
},
|
|
304
345
|
/**
|
|
305
346
|
* No description
|
|
306
347
|
*
|
|
@@ -399,6 +440,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
399
440
|
if (params === void 0) { params = {}; }
|
|
400
441
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "GET", secure: true, format: "json" }, params));
|
|
401
442
|
},
|
|
443
|
+
/**
|
|
444
|
+
* No description
|
|
445
|
+
*
|
|
446
|
+
* @tags Tenant Users Operation Requests
|
|
447
|
+
* @name GetUserOperationRequestById
|
|
448
|
+
* @request GET:/tenants/{tenantId}/users/userId/requests/{requestId}
|
|
449
|
+
* @secure
|
|
450
|
+
* @response `200` `OperationRequestEntityDto`
|
|
451
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
452
|
+
*/
|
|
453
|
+
getUserOperationRequestById: function (tenantId, userId, requestId, params) {
|
|
454
|
+
if (params === void 0) { params = {}; }
|
|
455
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
|
|
456
|
+
},
|
|
402
457
|
/**
|
|
403
458
|
* No description
|
|
404
459
|
*
|
|
@@ -427,6 +482,48 @@ var Api = /** @class */ (function (_super) {
|
|
|
427
482
|
if (params === void 0) { params = {}; }
|
|
428
483
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
429
484
|
},
|
|
485
|
+
/**
|
|
486
|
+
* No description
|
|
487
|
+
*
|
|
488
|
+
* @tags Tenant Users Operation Requests
|
|
489
|
+
* @name ListUserOperationRequests
|
|
490
|
+
* @request GET:/tenants/{tenantId}/users/userId/requests
|
|
491
|
+
* @secure
|
|
492
|
+
* @response `200` `OperationRequestEntityPaginatedDto`
|
|
493
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
494
|
+
*/
|
|
495
|
+
listUserOperationRequests: function (tenantId, userId, query, params) {
|
|
496
|
+
if (params === void 0) { params = {}; }
|
|
497
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
498
|
+
},
|
|
499
|
+
/**
|
|
500
|
+
* No description
|
|
501
|
+
*
|
|
502
|
+
* @tags Tenant Users Operation Requests
|
|
503
|
+
* @name RequestDeposit
|
|
504
|
+
* @request POST:/tenants/{tenantId}/users/userId/requests/deposit
|
|
505
|
+
* @secure
|
|
506
|
+
* @response `201` `OperationRequestEntityDto`
|
|
507
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
508
|
+
*/
|
|
509
|
+
requestDeposit: function (tenantId, userId, data, params) {
|
|
510
|
+
if (params === void 0) { params = {}; }
|
|
511
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/deposit"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
512
|
+
},
|
|
513
|
+
/**
|
|
514
|
+
* No description
|
|
515
|
+
*
|
|
516
|
+
* @tags Tenant Users Operation Requests
|
|
517
|
+
* @name RequestWithdraw
|
|
518
|
+
* @request POST:/tenants/{tenantId}/users/userId/requests/withdraw
|
|
519
|
+
* @secure
|
|
520
|
+
* @response `201` `OperationRequestEntityDto`
|
|
521
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
522
|
+
*/
|
|
523
|
+
requestWithdraw: function (tenantId, userId, data, params) {
|
|
524
|
+
if (params === void 0) { params = {}; }
|
|
525
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/withdraw"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
526
|
+
},
|
|
430
527
|
/**
|
|
431
528
|
* No description
|
|
432
529
|
*
|
package/dist/types/api/api.d.ts
CHANGED
|
@@ -131,6 +131,19 @@ export interface CaseWineInventoryItemEntityPaginatedDto {
|
|
|
131
131
|
links?: PaginationLinksDto;
|
|
132
132
|
meta: PaginationMetaDto;
|
|
133
133
|
}
|
|
134
|
+
export interface CreateAddressByTemplateDto {
|
|
135
|
+
addressLine1?: string;
|
|
136
|
+
addressLine2?: string | null;
|
|
137
|
+
/** @format uuid */
|
|
138
|
+
addressId?: string;
|
|
139
|
+
city?: string;
|
|
140
|
+
country?: string;
|
|
141
|
+
location?: string;
|
|
142
|
+
name?: string;
|
|
143
|
+
notes?: string;
|
|
144
|
+
postalCode?: string;
|
|
145
|
+
state?: string;
|
|
146
|
+
}
|
|
134
147
|
export interface CreateAddressDto {
|
|
135
148
|
addressLine1: string;
|
|
136
149
|
addressLine2?: string;
|
|
@@ -278,6 +291,21 @@ export interface FullCaseOperationEntityDto {
|
|
|
278
291
|
updatedAt: string;
|
|
279
292
|
wines: CaseOperationWineInventoryItemEntityDto[];
|
|
280
293
|
}
|
|
294
|
+
export interface FullDepositRequestExtraDataDto {
|
|
295
|
+
address: CreateAddressByTemplateDto;
|
|
296
|
+
/** @format date-time */
|
|
297
|
+
executedShippingDateTime?: string | null;
|
|
298
|
+
/** @example "its super fragile, please take care and come with a special bag" */
|
|
299
|
+
notes?: string;
|
|
300
|
+
operationNotes?: string;
|
|
301
|
+
/** @format date-time */
|
|
302
|
+
shippingDateTime: string;
|
|
303
|
+
/**
|
|
304
|
+
* @min 1
|
|
305
|
+
* @example 1
|
|
306
|
+
*/
|
|
307
|
+
wineBottlesAmount: number;
|
|
308
|
+
}
|
|
281
309
|
export interface FullOperationGroupEntityDto {
|
|
282
310
|
/** @format date-time */
|
|
283
311
|
createdAt: string;
|
|
@@ -295,10 +323,24 @@ export interface FullOperationGroupEntityDto {
|
|
|
295
323
|
/** @format date-time */
|
|
296
324
|
updatedAt: string;
|
|
297
325
|
}
|
|
326
|
+
export interface FullWithdrawRequestExtraDataDto {
|
|
327
|
+
/** @example "completed" */
|
|
328
|
+
deliverStatus?: WithdrawRequestDeliverStatusEnum | null;
|
|
329
|
+
/** @example "pickup" */
|
|
330
|
+
deliverType?: WithdrawRequestDeliverTypeEnum | null;
|
|
331
|
+
/** @example "please add it into a cooler" */
|
|
332
|
+
notes?: string;
|
|
333
|
+
operationNotes?: string;
|
|
334
|
+
/** @format date-time */
|
|
335
|
+
pickupDateTime: string;
|
|
336
|
+
shippingAddress?: CreateAddressByTemplateDto;
|
|
337
|
+
}
|
|
298
338
|
export interface HttpExceptionDto {
|
|
299
339
|
/** @example null */
|
|
300
340
|
data?: object;
|
|
301
|
-
|
|
341
|
+
/** @example "Something went wrong" */
|
|
342
|
+
errorCode?: string;
|
|
343
|
+
errors: string[];
|
|
302
344
|
/** @example "Something went wrong" */
|
|
303
345
|
message: object;
|
|
304
346
|
/** @example "/api/foo/bar" */
|
|
@@ -386,6 +428,42 @@ export declare enum OperationGroupStatusEnum {
|
|
|
386
428
|
Processed = "processed",
|
|
387
429
|
Cancelled = "cancelled"
|
|
388
430
|
}
|
|
431
|
+
export interface OperationRequestEntityDto {
|
|
432
|
+
/** @format date-time */
|
|
433
|
+
createdAt: string;
|
|
434
|
+
customer: UserEntityDto;
|
|
435
|
+
/** @format uuid */
|
|
436
|
+
customerId: string;
|
|
437
|
+
extraData: FullDepositRequestExtraDataDto | FullWithdrawRequestExtraDataDto;
|
|
438
|
+
/** @format uuid */
|
|
439
|
+
id: string;
|
|
440
|
+
reason?: string | null;
|
|
441
|
+
/** @example "scheduled" */
|
|
442
|
+
status: OperationRequestStatusEnum;
|
|
443
|
+
/** @format uuid */
|
|
444
|
+
tenantId: string;
|
|
445
|
+
/** @example "deposit" */
|
|
446
|
+
type: OperationRequestTypeEnum;
|
|
447
|
+
/** @format date-time */
|
|
448
|
+
updatedAt: string;
|
|
449
|
+
}
|
|
450
|
+
export interface OperationRequestEntityPaginatedDto {
|
|
451
|
+
items: OperationRequestEntityDto[];
|
|
452
|
+
links?: PaginationLinksDto;
|
|
453
|
+
meta: PaginationMetaDto;
|
|
454
|
+
}
|
|
455
|
+
export declare enum OperationRequestStatusEnum {
|
|
456
|
+
WaitingConfirmation = "waiting_confirmation",
|
|
457
|
+
Scheduled = "scheduled",
|
|
458
|
+
Processing = "processing",
|
|
459
|
+
Processed = "processed",
|
|
460
|
+
Refused = "refused",
|
|
461
|
+
Cancelled = "cancelled"
|
|
462
|
+
}
|
|
463
|
+
export declare enum OperationRequestTypeEnum {
|
|
464
|
+
Deposit = "deposit",
|
|
465
|
+
Withdrawal = "withdrawal"
|
|
466
|
+
}
|
|
389
467
|
export declare enum OrderByEnum {
|
|
390
468
|
ASC = "ASC",
|
|
391
469
|
DESC = "DESC"
|
|
@@ -422,11 +500,31 @@ export declare enum PhoneTypeEnum {
|
|
|
422
500
|
Fixed = "fixed",
|
|
423
501
|
Mobile = "mobile"
|
|
424
502
|
}
|
|
503
|
+
export interface RequestDepositDto {
|
|
504
|
+
address: CreateAddressByTemplateDto;
|
|
505
|
+
/** @example "its super fragile, please take care and come with a special bag" */
|
|
506
|
+
notes?: string;
|
|
507
|
+
/** @format date-time */
|
|
508
|
+
shippingDateTime: string;
|
|
509
|
+
/**
|
|
510
|
+
* @min 1
|
|
511
|
+
* @example 1
|
|
512
|
+
*/
|
|
513
|
+
wineBottlesAmount: number;
|
|
514
|
+
}
|
|
425
515
|
export interface RequestPasswordResetDto {
|
|
426
516
|
email: string;
|
|
427
517
|
/** @format uuid */
|
|
428
518
|
tenantId: string;
|
|
429
519
|
}
|
|
520
|
+
export interface RequestWithdrawDto {
|
|
521
|
+
/** @example "please add it into a cooler" */
|
|
522
|
+
notes?: string;
|
|
523
|
+
/** @format date-time */
|
|
524
|
+
pickupDateTime: string;
|
|
525
|
+
/** @minItems 1 */
|
|
526
|
+
wines: WithdrawWineInventoryItemDto[];
|
|
527
|
+
}
|
|
430
528
|
export interface ResetPasswordDto {
|
|
431
529
|
/** @example "user@example.com" */
|
|
432
530
|
email: string;
|
|
@@ -816,6 +914,23 @@ export interface WineVineyardEntityPaginatedDto {
|
|
|
816
914
|
links?: PaginationLinksDto;
|
|
817
915
|
meta: PaginationMetaDto;
|
|
818
916
|
}
|
|
917
|
+
export declare enum WithdrawRequestDeliverStatusEnum {
|
|
918
|
+
Pending = "pending",
|
|
919
|
+
InSeparation = "in_separation",
|
|
920
|
+
ReadyForDeliver = "ready_for_deliver",
|
|
921
|
+
InTransit = "in_transit",
|
|
922
|
+
Completed = "completed"
|
|
923
|
+
}
|
|
924
|
+
export declare enum WithdrawRequestDeliverTypeEnum {
|
|
925
|
+
Shipping = "shipping",
|
|
926
|
+
Pickup = "pickup"
|
|
927
|
+
}
|
|
928
|
+
export interface WithdrawWineInventoryItemDto {
|
|
929
|
+
/** @min 1 */
|
|
930
|
+
amount: number;
|
|
931
|
+
/** @format uuid */
|
|
932
|
+
inventoryItemId: string;
|
|
933
|
+
}
|
|
819
934
|
export declare namespace Auth {
|
|
820
935
|
/**
|
|
821
936
|
* No description
|
|
@@ -879,6 +994,26 @@ export declare namespace Auth {
|
|
|
879
994
|
}
|
|
880
995
|
}
|
|
881
996
|
export declare namespace Tenants {
|
|
997
|
+
/**
|
|
998
|
+
* No description
|
|
999
|
+
* @tags Tenant Users Operation Requests
|
|
1000
|
+
* @name CancelRequest
|
|
1001
|
+
* @request PATCH:/tenants/{tenantId}/users/userId/requests/{requestId}/cancel
|
|
1002
|
+
* @secure
|
|
1003
|
+
* @response `200` `void`
|
|
1004
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1005
|
+
*/
|
|
1006
|
+
namespace CancelRequest {
|
|
1007
|
+
type RequestParams = {
|
|
1008
|
+
requestId: string;
|
|
1009
|
+
tenantId: string;
|
|
1010
|
+
userId: string;
|
|
1011
|
+
};
|
|
1012
|
+
type RequestQuery = {};
|
|
1013
|
+
type RequestBody = never;
|
|
1014
|
+
type RequestHeaders = {};
|
|
1015
|
+
type ResponseBody = void;
|
|
1016
|
+
}
|
|
882
1017
|
/**
|
|
883
1018
|
* No description
|
|
884
1019
|
* @tags Tenant Users
|
|
@@ -1012,6 +1147,26 @@ export declare namespace Tenants {
|
|
|
1012
1147
|
type RequestHeaders = {};
|
|
1013
1148
|
type ResponseBody = UserEntityDto;
|
|
1014
1149
|
}
|
|
1150
|
+
/**
|
|
1151
|
+
* No description
|
|
1152
|
+
* @tags Tenant Users Operation Requests
|
|
1153
|
+
* @name GetUserOperationRequestById
|
|
1154
|
+
* @request GET:/tenants/{tenantId}/users/userId/requests/{requestId}
|
|
1155
|
+
* @secure
|
|
1156
|
+
* @response `200` `OperationRequestEntityDto`
|
|
1157
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1158
|
+
*/
|
|
1159
|
+
namespace GetUserOperationRequestById {
|
|
1160
|
+
type RequestParams = {
|
|
1161
|
+
requestId: string;
|
|
1162
|
+
tenantId: string;
|
|
1163
|
+
userId: string;
|
|
1164
|
+
};
|
|
1165
|
+
type RequestQuery = {};
|
|
1166
|
+
type RequestBody = never;
|
|
1167
|
+
type RequestHeaders = {};
|
|
1168
|
+
type ResponseBody = OperationRequestEntityDto;
|
|
1169
|
+
}
|
|
1015
1170
|
/**
|
|
1016
1171
|
* No description
|
|
1017
1172
|
* @tags Tenant Users
|
|
@@ -1081,6 +1236,80 @@ export declare namespace Tenants {
|
|
|
1081
1236
|
type RequestHeaders = {};
|
|
1082
1237
|
type ResponseBody = AddressEntityPaginatedDto;
|
|
1083
1238
|
}
|
|
1239
|
+
/**
|
|
1240
|
+
* No description
|
|
1241
|
+
* @tags Tenant Users Operation Requests
|
|
1242
|
+
* @name ListUserOperationRequests
|
|
1243
|
+
* @request GET:/tenants/{tenantId}/users/userId/requests
|
|
1244
|
+
* @secure
|
|
1245
|
+
* @response `200` `OperationRequestEntityPaginatedDto`
|
|
1246
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1247
|
+
*/
|
|
1248
|
+
namespace ListUserOperationRequests {
|
|
1249
|
+
type RequestParams = {
|
|
1250
|
+
tenantId: string;
|
|
1251
|
+
userId: string;
|
|
1252
|
+
};
|
|
1253
|
+
type RequestQuery = {
|
|
1254
|
+
createdAt?: string;
|
|
1255
|
+
customerIds?: string[];
|
|
1256
|
+
/**
|
|
1257
|
+
* @default 10
|
|
1258
|
+
* @example 10
|
|
1259
|
+
*/
|
|
1260
|
+
limit?: number;
|
|
1261
|
+
orderBy?: OrderByEnum;
|
|
1262
|
+
/**
|
|
1263
|
+
* @default 1
|
|
1264
|
+
* @example 1
|
|
1265
|
+
*/
|
|
1266
|
+
page?: number;
|
|
1267
|
+
search?: string;
|
|
1268
|
+
sortBy?: string[];
|
|
1269
|
+
status?: OperationRequestStatusEnum[];
|
|
1270
|
+
};
|
|
1271
|
+
type RequestBody = never;
|
|
1272
|
+
type RequestHeaders = {};
|
|
1273
|
+
type ResponseBody = OperationRequestEntityPaginatedDto;
|
|
1274
|
+
}
|
|
1275
|
+
/**
|
|
1276
|
+
* No description
|
|
1277
|
+
* @tags Tenant Users Operation Requests
|
|
1278
|
+
* @name RequestDeposit
|
|
1279
|
+
* @request POST:/tenants/{tenantId}/users/userId/requests/deposit
|
|
1280
|
+
* @secure
|
|
1281
|
+
* @response `201` `OperationRequestEntityDto`
|
|
1282
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1283
|
+
*/
|
|
1284
|
+
namespace RequestDeposit {
|
|
1285
|
+
type RequestParams = {
|
|
1286
|
+
tenantId: string;
|
|
1287
|
+
userId: string;
|
|
1288
|
+
};
|
|
1289
|
+
type RequestQuery = {};
|
|
1290
|
+
type RequestBody = RequestDepositDto;
|
|
1291
|
+
type RequestHeaders = {};
|
|
1292
|
+
type ResponseBody = OperationRequestEntityDto;
|
|
1293
|
+
}
|
|
1294
|
+
/**
|
|
1295
|
+
* No description
|
|
1296
|
+
* @tags Tenant Users Operation Requests
|
|
1297
|
+
* @name RequestWithdraw
|
|
1298
|
+
* @request POST:/tenants/{tenantId}/users/userId/requests/withdraw
|
|
1299
|
+
* @secure
|
|
1300
|
+
* @response `201` `OperationRequestEntityDto`
|
|
1301
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1302
|
+
*/
|
|
1303
|
+
namespace RequestWithdraw {
|
|
1304
|
+
type RequestParams = {
|
|
1305
|
+
tenantId: string;
|
|
1306
|
+
userId: string;
|
|
1307
|
+
};
|
|
1308
|
+
type RequestQuery = {};
|
|
1309
|
+
type RequestBody = RequestWithdrawDto;
|
|
1310
|
+
type RequestHeaders = {};
|
|
1311
|
+
type ResponseBody = OperationRequestEntityDto;
|
|
1312
|
+
}
|
|
1084
1313
|
/**
|
|
1085
1314
|
* No description
|
|
1086
1315
|
* @tags Tenant Users
|
|
@@ -2911,6 +3140,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2911
3140
|
signIn: (data: SigninDto, params?: RequestParams) => Promise<SigninResponseDto>;
|
|
2912
3141
|
};
|
|
2913
3142
|
tenants: {
|
|
3143
|
+
/**
|
|
3144
|
+
* No description
|
|
3145
|
+
*
|
|
3146
|
+
* @tags Tenant Users Operation Requests
|
|
3147
|
+
* @name CancelRequest
|
|
3148
|
+
* @request PATCH:/tenants/{tenantId}/users/userId/requests/{requestId}/cancel
|
|
3149
|
+
* @secure
|
|
3150
|
+
* @response `200` `void`
|
|
3151
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3152
|
+
*/
|
|
3153
|
+
cancelRequest: (tenantId: string, userId: string, requestId: string, params?: RequestParams) => Promise<void>;
|
|
2914
3154
|
/**
|
|
2915
3155
|
* No description
|
|
2916
3156
|
*
|
|
@@ -2988,6 +3228,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2988
3228
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
2989
3229
|
*/
|
|
2990
3230
|
getTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<UserEntityDto>;
|
|
3231
|
+
/**
|
|
3232
|
+
* No description
|
|
3233
|
+
*
|
|
3234
|
+
* @tags Tenant Users Operation Requests
|
|
3235
|
+
* @name GetUserOperationRequestById
|
|
3236
|
+
* @request GET:/tenants/{tenantId}/users/userId/requests/{requestId}
|
|
3237
|
+
* @secure
|
|
3238
|
+
* @response `200` `OperationRequestEntityDto`
|
|
3239
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3240
|
+
*/
|
|
3241
|
+
getUserOperationRequestById: (tenantId: string, userId: string, requestId: string, params?: RequestParams) => Promise<OperationRequestEntityDto>;
|
|
2991
3242
|
/**
|
|
2992
3243
|
* No description
|
|
2993
3244
|
*
|
|
@@ -3042,6 +3293,56 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3042
3293
|
search?: string;
|
|
3043
3294
|
sortBy?: string[];
|
|
3044
3295
|
}, params?: RequestParams) => Promise<AddressEntityPaginatedDto>;
|
|
3296
|
+
/**
|
|
3297
|
+
* No description
|
|
3298
|
+
*
|
|
3299
|
+
* @tags Tenant Users Operation Requests
|
|
3300
|
+
* @name ListUserOperationRequests
|
|
3301
|
+
* @request GET:/tenants/{tenantId}/users/userId/requests
|
|
3302
|
+
* @secure
|
|
3303
|
+
* @response `200` `OperationRequestEntityPaginatedDto`
|
|
3304
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3305
|
+
*/
|
|
3306
|
+
listUserOperationRequests: (tenantId: string, userId: string, query?: {
|
|
3307
|
+
createdAt?: string;
|
|
3308
|
+
customerIds?: string[];
|
|
3309
|
+
/**
|
|
3310
|
+
* @default 10
|
|
3311
|
+
* @example 10
|
|
3312
|
+
*/
|
|
3313
|
+
limit?: number;
|
|
3314
|
+
orderBy?: OrderByEnum;
|
|
3315
|
+
/**
|
|
3316
|
+
* @default 1
|
|
3317
|
+
* @example 1
|
|
3318
|
+
*/
|
|
3319
|
+
page?: number;
|
|
3320
|
+
search?: string;
|
|
3321
|
+
sortBy?: string[];
|
|
3322
|
+
status?: OperationRequestStatusEnum[];
|
|
3323
|
+
}, params?: RequestParams) => Promise<OperationRequestEntityPaginatedDto>;
|
|
3324
|
+
/**
|
|
3325
|
+
* No description
|
|
3326
|
+
*
|
|
3327
|
+
* @tags Tenant Users Operation Requests
|
|
3328
|
+
* @name RequestDeposit
|
|
3329
|
+
* @request POST:/tenants/{tenantId}/users/userId/requests/deposit
|
|
3330
|
+
* @secure
|
|
3331
|
+
* @response `201` `OperationRequestEntityDto`
|
|
3332
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3333
|
+
*/
|
|
3334
|
+
requestDeposit: (tenantId: string, userId: string, data: RequestDepositDto, params?: RequestParams) => Promise<OperationRequestEntityDto>;
|
|
3335
|
+
/**
|
|
3336
|
+
* No description
|
|
3337
|
+
*
|
|
3338
|
+
* @tags Tenant Users Operation Requests
|
|
3339
|
+
* @name RequestWithdraw
|
|
3340
|
+
* @request POST:/tenants/{tenantId}/users/userId/requests/withdraw
|
|
3341
|
+
* @secure
|
|
3342
|
+
* @response `201` `OperationRequestEntityDto`
|
|
3343
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3344
|
+
*/
|
|
3345
|
+
requestWithdraw: (tenantId: string, userId: string, data: RequestWithdrawDto, params?: RequestParams) => Promise<OperationRequestEntityDto>;
|
|
3045
3346
|
/**
|
|
3046
3347
|
* No description
|
|
3047
3348
|
*
|
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.TenantUserStatusEnum = exports.TenantRoleEnum = exports.PhoneTypeEnum = exports.OrderByEnum = exports.OperationGroupStatusEnum = exports.CreateOnlyOperationGroupStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
|
|
18413
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.WithdrawRequestDeliverTypeEnum = exports.WithdrawRequestDeliverStatusEnum = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.PhoneTypeEnum = exports.OrderByEnum = exports.OperationRequestTypeEnum = exports.OperationRequestStatusEnum = exports.OperationGroupStatusEnum = exports.CreateOnlyOperationGroupStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
|
|
18414
18414
|
var CaseOperationLogTypeEnum;
|
|
18415
18415
|
(function (CaseOperationLogTypeEnum) {
|
|
18416
18416
|
CaseOperationLogTypeEnum["RequestAccepted"] = "request_accepted";
|
|
@@ -18441,6 +18441,20 @@ var OperationGroupStatusEnum;
|
|
|
18441
18441
|
OperationGroupStatusEnum["Processed"] = "processed";
|
|
18442
18442
|
OperationGroupStatusEnum["Cancelled"] = "cancelled";
|
|
18443
18443
|
})(OperationGroupStatusEnum = exports.OperationGroupStatusEnum || (exports.OperationGroupStatusEnum = {}));
|
|
18444
|
+
var OperationRequestStatusEnum;
|
|
18445
|
+
(function (OperationRequestStatusEnum) {
|
|
18446
|
+
OperationRequestStatusEnum["WaitingConfirmation"] = "waiting_confirmation";
|
|
18447
|
+
OperationRequestStatusEnum["Scheduled"] = "scheduled";
|
|
18448
|
+
OperationRequestStatusEnum["Processing"] = "processing";
|
|
18449
|
+
OperationRequestStatusEnum["Processed"] = "processed";
|
|
18450
|
+
OperationRequestStatusEnum["Refused"] = "refused";
|
|
18451
|
+
OperationRequestStatusEnum["Cancelled"] = "cancelled";
|
|
18452
|
+
})(OperationRequestStatusEnum = exports.OperationRequestStatusEnum || (exports.OperationRequestStatusEnum = {}));
|
|
18453
|
+
var OperationRequestTypeEnum;
|
|
18454
|
+
(function (OperationRequestTypeEnum) {
|
|
18455
|
+
OperationRequestTypeEnum["Deposit"] = "deposit";
|
|
18456
|
+
OperationRequestTypeEnum["Withdrawal"] = "withdrawal";
|
|
18457
|
+
})(OperationRequestTypeEnum = exports.OperationRequestTypeEnum || (exports.OperationRequestTypeEnum = {}));
|
|
18444
18458
|
var OrderByEnum;
|
|
18445
18459
|
(function (OrderByEnum) {
|
|
18446
18460
|
OrderByEnum["ASC"] = "ASC";
|
|
@@ -18463,6 +18477,19 @@ var TenantUserStatusEnum;
|
|
|
18463
18477
|
TenantUserStatusEnum["Enabled"] = "enabled";
|
|
18464
18478
|
TenantUserStatusEnum["Blocked"] = "blocked";
|
|
18465
18479
|
})(TenantUserStatusEnum = exports.TenantUserStatusEnum || (exports.TenantUserStatusEnum = {}));
|
|
18480
|
+
var WithdrawRequestDeliverStatusEnum;
|
|
18481
|
+
(function (WithdrawRequestDeliverStatusEnum) {
|
|
18482
|
+
WithdrawRequestDeliverStatusEnum["Pending"] = "pending";
|
|
18483
|
+
WithdrawRequestDeliverStatusEnum["InSeparation"] = "in_separation";
|
|
18484
|
+
WithdrawRequestDeliverStatusEnum["ReadyForDeliver"] = "ready_for_deliver";
|
|
18485
|
+
WithdrawRequestDeliverStatusEnum["InTransit"] = "in_transit";
|
|
18486
|
+
WithdrawRequestDeliverStatusEnum["Completed"] = "completed";
|
|
18487
|
+
})(WithdrawRequestDeliverStatusEnum = exports.WithdrawRequestDeliverStatusEnum || (exports.WithdrawRequestDeliverStatusEnum = {}));
|
|
18488
|
+
var WithdrawRequestDeliverTypeEnum;
|
|
18489
|
+
(function (WithdrawRequestDeliverTypeEnum) {
|
|
18490
|
+
WithdrawRequestDeliverTypeEnum["Shipping"] = "shipping";
|
|
18491
|
+
WithdrawRequestDeliverTypeEnum["Pickup"] = "pickup";
|
|
18492
|
+
})(WithdrawRequestDeliverTypeEnum = exports.WithdrawRequestDeliverTypeEnum || (exports.WithdrawRequestDeliverTypeEnum = {}));
|
|
18466
18493
|
var axios_1 = __importDefault(__webpack_require__(6425));
|
|
18467
18494
|
var ContentType;
|
|
18468
18495
|
(function (ContentType) {
|
|
@@ -18632,6 +18659,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18632
18659
|
},
|
|
18633
18660
|
};
|
|
18634
18661
|
_this.tenants = {
|
|
18662
|
+
/**
|
|
18663
|
+
* No description
|
|
18664
|
+
*
|
|
18665
|
+
* @tags Tenant Users Operation Requests
|
|
18666
|
+
* @name CancelRequest
|
|
18667
|
+
* @request PATCH:/tenants/{tenantId}/users/userId/requests/{requestId}/cancel
|
|
18668
|
+
* @secure
|
|
18669
|
+
* @response `200` `void`
|
|
18670
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18671
|
+
*/
|
|
18672
|
+
cancelRequest: function (tenantId, userId, requestId, params) {
|
|
18673
|
+
if (params === void 0) { params = {}; }
|
|
18674
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/").concat(requestId, "/cancel"), method: "PATCH", secure: true }, params));
|
|
18675
|
+
},
|
|
18635
18676
|
/**
|
|
18636
18677
|
* No description
|
|
18637
18678
|
*
|
|
@@ -18730,6 +18771,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18730
18771
|
if (params === void 0) { params = {}; }
|
|
18731
18772
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "GET", secure: true, format: "json" }, params));
|
|
18732
18773
|
},
|
|
18774
|
+
/**
|
|
18775
|
+
* No description
|
|
18776
|
+
*
|
|
18777
|
+
* @tags Tenant Users Operation Requests
|
|
18778
|
+
* @name GetUserOperationRequestById
|
|
18779
|
+
* @request GET:/tenants/{tenantId}/users/userId/requests/{requestId}
|
|
18780
|
+
* @secure
|
|
18781
|
+
* @response `200` `OperationRequestEntityDto`
|
|
18782
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18783
|
+
*/
|
|
18784
|
+
getUserOperationRequestById: function (tenantId, userId, requestId, params) {
|
|
18785
|
+
if (params === void 0) { params = {}; }
|
|
18786
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
|
|
18787
|
+
},
|
|
18733
18788
|
/**
|
|
18734
18789
|
* No description
|
|
18735
18790
|
*
|
|
@@ -18758,6 +18813,48 @@ var Api = /** @class */ (function (_super) {
|
|
|
18758
18813
|
if (params === void 0) { params = {}; }
|
|
18759
18814
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
18760
18815
|
},
|
|
18816
|
+
/**
|
|
18817
|
+
* No description
|
|
18818
|
+
*
|
|
18819
|
+
* @tags Tenant Users Operation Requests
|
|
18820
|
+
* @name ListUserOperationRequests
|
|
18821
|
+
* @request GET:/tenants/{tenantId}/users/userId/requests
|
|
18822
|
+
* @secure
|
|
18823
|
+
* @response `200` `OperationRequestEntityPaginatedDto`
|
|
18824
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18825
|
+
*/
|
|
18826
|
+
listUserOperationRequests: function (tenantId, userId, query, params) {
|
|
18827
|
+
if (params === void 0) { params = {}; }
|
|
18828
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
18829
|
+
},
|
|
18830
|
+
/**
|
|
18831
|
+
* No description
|
|
18832
|
+
*
|
|
18833
|
+
* @tags Tenant Users Operation Requests
|
|
18834
|
+
* @name RequestDeposit
|
|
18835
|
+
* @request POST:/tenants/{tenantId}/users/userId/requests/deposit
|
|
18836
|
+
* @secure
|
|
18837
|
+
* @response `201` `OperationRequestEntityDto`
|
|
18838
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18839
|
+
*/
|
|
18840
|
+
requestDeposit: function (tenantId, userId, data, params) {
|
|
18841
|
+
if (params === void 0) { params = {}; }
|
|
18842
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/deposit"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18843
|
+
},
|
|
18844
|
+
/**
|
|
18845
|
+
* No description
|
|
18846
|
+
*
|
|
18847
|
+
* @tags Tenant Users Operation Requests
|
|
18848
|
+
* @name RequestWithdraw
|
|
18849
|
+
* @request POST:/tenants/{tenantId}/users/userId/requests/withdraw
|
|
18850
|
+
* @secure
|
|
18851
|
+
* @response `201` `OperationRequestEntityDto`
|
|
18852
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18853
|
+
*/
|
|
18854
|
+
requestWithdraw: function (tenantId, userId, data, params) {
|
|
18855
|
+
if (params === void 0) { params = {}; }
|
|
18856
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/withdraw"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18857
|
+
},
|
|
18761
18858
|
/**
|
|
18762
18859
|
* No description
|
|
18763
18860
|
*
|