@thelllabs/winehaus-sdk 0.0.20 → 0.0.22
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 +41 -5
- package/dist/esm/api/api.js +40 -4
- package/dist/types/api/api.d.ts +102 -9
- package/dist/umd/index.ts +41 -5
- 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) {
|
|
@@ -458,6 +466,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
458
466
|
if (params === void 0) { params = {}; }
|
|
459
467
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "GET", secure: true, format: "json" }, params));
|
|
460
468
|
},
|
|
469
|
+
/**
|
|
470
|
+
* No description
|
|
471
|
+
*
|
|
472
|
+
* @tags Tenant Users
|
|
473
|
+
* @name GetUserAddressById
|
|
474
|
+
* @request GET:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
|
|
475
|
+
* @secure
|
|
476
|
+
* @response `200` `AddressEntityDto`
|
|
477
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
478
|
+
*/
|
|
479
|
+
getUserAddressById: function (tenantId, userId, addressId, params) {
|
|
480
|
+
if (params === void 0) { params = {}; }
|
|
481
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "GET", secure: true, format: "json" }, params));
|
|
482
|
+
},
|
|
461
483
|
/**
|
|
462
484
|
* No description
|
|
463
485
|
*
|
|
@@ -1626,15 +1648,29 @@ var Api = /** @class */ (function (_super) {
|
|
|
1626
1648
|
* No description
|
|
1627
1649
|
*
|
|
1628
1650
|
* @tags Admin Tenant Operation Requests
|
|
1629
|
-
* @name
|
|
1630
|
-
* @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
|
|
1631
1667
|
* @secure
|
|
1632
1668
|
* @response `204` `void`
|
|
1633
1669
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1634
1670
|
*/
|
|
1635
|
-
|
|
1671
|
+
setTenantWithdrawRequestAsProcessing: function (tenantId, requestId, params) {
|
|
1636
1672
|
if (params === void 0) { params = {}; }
|
|
1637
|
-
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));
|
|
1638
1674
|
},
|
|
1639
1675
|
/**
|
|
1640
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) {
|
|
@@ -452,6 +460,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
452
460
|
if (params === void 0) { params = {}; }
|
|
453
461
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "GET", secure: true, format: "json" }, params));
|
|
454
462
|
},
|
|
463
|
+
/**
|
|
464
|
+
* No description
|
|
465
|
+
*
|
|
466
|
+
* @tags Tenant Users
|
|
467
|
+
* @name GetUserAddressById
|
|
468
|
+
* @request GET:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
|
|
469
|
+
* @secure
|
|
470
|
+
* @response `200` `AddressEntityDto`
|
|
471
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
472
|
+
*/
|
|
473
|
+
getUserAddressById: function (tenantId, userId, addressId, params) {
|
|
474
|
+
if (params === void 0) { params = {}; }
|
|
475
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "GET", secure: true, format: "json" }, params));
|
|
476
|
+
},
|
|
455
477
|
/**
|
|
456
478
|
* No description
|
|
457
479
|
*
|
|
@@ -1620,15 +1642,29 @@ var Api = /** @class */ (function (_super) {
|
|
|
1620
1642
|
* No description
|
|
1621
1643
|
*
|
|
1622
1644
|
* @tags Admin Tenant Operation Requests
|
|
1623
|
-
* @name
|
|
1624
|
-
* @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
|
|
1625
1661
|
* @secure
|
|
1626
1662
|
* @response `204` `void`
|
|
1627
1663
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1628
1664
|
*/
|
|
1629
|
-
|
|
1665
|
+
setTenantWithdrawRequestAsProcessing: function (tenantId, requestId, params) {
|
|
1630
1666
|
if (params === void 0) { params = {}; }
|
|
1631
|
-
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));
|
|
1632
1668
|
},
|
|
1633
1669
|
/**
|
|
1634
1670
|
* No description
|
package/dist/types/api/api.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export interface AddressEntityDto {
|
|
|
16
16
|
state: string;
|
|
17
17
|
/** @format uuid */
|
|
18
18
|
tenantId: string;
|
|
19
|
+
type: string;
|
|
19
20
|
/** @format date-time */
|
|
20
21
|
updatedAt: string;
|
|
21
22
|
/** @format uuid */
|
|
@@ -43,6 +44,7 @@ export interface CaseEntityDto {
|
|
|
43
44
|
description?: string | null;
|
|
44
45
|
/** @format uuid */
|
|
45
46
|
id: string;
|
|
47
|
+
location?: string | null;
|
|
46
48
|
/** @min 0 */
|
|
47
49
|
maxItems: number;
|
|
48
50
|
name: string;
|
|
@@ -101,6 +103,10 @@ export declare enum CaseOperationStatusEnum {
|
|
|
101
103
|
Processed = "processed",
|
|
102
104
|
Cancelled = "cancelled"
|
|
103
105
|
}
|
|
106
|
+
export declare enum CaseOperationTypeEnum {
|
|
107
|
+
Deposit = "deposit",
|
|
108
|
+
Withdrawal = "withdrawal"
|
|
109
|
+
}
|
|
104
110
|
export declare enum CaseOperationTypesEnum {
|
|
105
111
|
Deposit = "deposit",
|
|
106
112
|
Withdrawal = "withdrawal"
|
|
@@ -176,6 +182,7 @@ export interface CreateAddressByTemplateDto {
|
|
|
176
182
|
notes?: string;
|
|
177
183
|
postalCode?: string;
|
|
178
184
|
state?: string;
|
|
185
|
+
type?: string;
|
|
179
186
|
}
|
|
180
187
|
export interface CreateAddressDto {
|
|
181
188
|
addressLine1: string;
|
|
@@ -187,6 +194,7 @@ export interface CreateAddressDto {
|
|
|
187
194
|
notes?: string;
|
|
188
195
|
postalCode: string;
|
|
189
196
|
state: string;
|
|
197
|
+
type: string;
|
|
190
198
|
}
|
|
191
199
|
export interface CreateCaseDto {
|
|
192
200
|
/** @format date-time */
|
|
@@ -196,6 +204,7 @@ export interface CreateCaseDto {
|
|
|
196
204
|
/** @format uuid */
|
|
197
205
|
customerId: string;
|
|
198
206
|
description?: string | null;
|
|
207
|
+
location?: string | null;
|
|
199
208
|
/** @min 0 */
|
|
200
209
|
maxItems: number;
|
|
201
210
|
name: string;
|
|
@@ -245,6 +254,7 @@ export interface CreateOperationGroupDto {
|
|
|
245
254
|
customerId: string;
|
|
246
255
|
/** @minItems 0 */
|
|
247
256
|
extras?: CreateOperationExtraDto[];
|
|
257
|
+
notes?: string;
|
|
248
258
|
/** @minItems 1 */
|
|
249
259
|
operations: CreateCaseOperationDto[];
|
|
250
260
|
/** @example "processed" */
|
|
@@ -360,6 +370,7 @@ export interface FullOperationGroupEntityDto {
|
|
|
360
370
|
extras: OperationExtraEntityDto[];
|
|
361
371
|
/** @format uuid */
|
|
362
372
|
id: string;
|
|
373
|
+
notes: string | null;
|
|
363
374
|
operations: FullCaseOperationEntityDto[];
|
|
364
375
|
/** @example "processed" */
|
|
365
376
|
status: OperationGroupStatusEnum;
|
|
@@ -502,6 +513,7 @@ export interface OperationGroupEntityDto {
|
|
|
502
513
|
customerId: string;
|
|
503
514
|
/** @format uuid */
|
|
504
515
|
id: string;
|
|
516
|
+
notes: string | null;
|
|
505
517
|
/** @example "processed" */
|
|
506
518
|
status: OperationGroupStatusEnum;
|
|
507
519
|
/** @format uuid */
|
|
@@ -615,12 +627,13 @@ export interface PhoneDto {
|
|
|
615
627
|
}
|
|
616
628
|
export declare enum PhoneTypeEnum {
|
|
617
629
|
Fixed = "fixed",
|
|
618
|
-
Mobile = "mobile"
|
|
630
|
+
Mobile = "mobile",
|
|
631
|
+
Home = "home",
|
|
632
|
+
Work = "work",
|
|
633
|
+
Other = "other"
|
|
619
634
|
}
|
|
620
635
|
export interface ProcessDepositDto {
|
|
621
636
|
acceptBottlesAmountDivergence?: boolean;
|
|
622
|
-
/** @format date-time */
|
|
623
|
-
executedShippingDateTime: string;
|
|
624
637
|
/** @minItems 0 */
|
|
625
638
|
extras?: CreateOperationExtraDto[];
|
|
626
639
|
/** @example "please add it into a cooler" */
|
|
@@ -678,6 +691,10 @@ export interface ResetPasswordDto {
|
|
|
678
691
|
tenantId: string;
|
|
679
692
|
token: string;
|
|
680
693
|
}
|
|
694
|
+
export interface SetDepositAsProcessingDto {
|
|
695
|
+
/** @format date-time */
|
|
696
|
+
executedShippingDateTime: string;
|
|
697
|
+
}
|
|
681
698
|
export interface SetNotificationsReadDto {
|
|
682
699
|
/** @minItems 1 */
|
|
683
700
|
notificationIds: string[];
|
|
@@ -697,6 +714,7 @@ export interface SigninResponseDto {
|
|
|
697
714
|
export interface SyncOperationGroupWithSnapshotDto {
|
|
698
715
|
/** @minItems 0 */
|
|
699
716
|
extras?: UpdateOperationExtraDto[];
|
|
717
|
+
notes?: string;
|
|
700
718
|
/** @minItems 1 */
|
|
701
719
|
operations: UpdateCaseOperationDto[];
|
|
702
720
|
}
|
|
@@ -720,6 +738,7 @@ export interface UpdateAddressDto {
|
|
|
720
738
|
notes?: string;
|
|
721
739
|
postalCode?: string;
|
|
722
740
|
state?: string;
|
|
741
|
+
type?: string;
|
|
723
742
|
}
|
|
724
743
|
export interface UpdateCaseDto {
|
|
725
744
|
/** @format date-time */
|
|
@@ -729,6 +748,7 @@ export interface UpdateCaseDto {
|
|
|
729
748
|
/** @format uuid */
|
|
730
749
|
customerId: string;
|
|
731
750
|
description?: string | null;
|
|
751
|
+
location?: string | null;
|
|
732
752
|
/** @min 0 */
|
|
733
753
|
maxItems: number;
|
|
734
754
|
name: string;
|
|
@@ -773,6 +793,8 @@ export interface UpdateOperationExtraTemplateDto {
|
|
|
773
793
|
pricePerItem: number;
|
|
774
794
|
}
|
|
775
795
|
export interface UpdateUserDto {
|
|
796
|
+
/** @example "user@example.com" */
|
|
797
|
+
email?: string;
|
|
776
798
|
firstName?: string | null;
|
|
777
799
|
lastName?: string | null;
|
|
778
800
|
/** This field is accepted only if called by some tenant admin/operator */
|
|
@@ -1399,6 +1421,26 @@ export declare namespace Tenants {
|
|
|
1399
1421
|
type RequestHeaders = {};
|
|
1400
1422
|
type ResponseBody = UserEntityDto;
|
|
1401
1423
|
}
|
|
1424
|
+
/**
|
|
1425
|
+
* No description
|
|
1426
|
+
* @tags Tenant Users
|
|
1427
|
+
* @name GetUserAddressById
|
|
1428
|
+
* @request GET:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
|
|
1429
|
+
* @secure
|
|
1430
|
+
* @response `200` `AddressEntityDto`
|
|
1431
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1432
|
+
*/
|
|
1433
|
+
namespace GetUserAddressById {
|
|
1434
|
+
type RequestParams = {
|
|
1435
|
+
addressId: string;
|
|
1436
|
+
tenantId: string;
|
|
1437
|
+
userId: string;
|
|
1438
|
+
};
|
|
1439
|
+
type RequestQuery = {};
|
|
1440
|
+
type RequestBody = never;
|
|
1441
|
+
type RequestHeaders = {};
|
|
1442
|
+
type ResponseBody = AddressEntityDto;
|
|
1443
|
+
}
|
|
1402
1444
|
/**
|
|
1403
1445
|
* No description
|
|
1404
1446
|
* @tags Tenant Users Operation Requests
|
|
@@ -1589,6 +1631,7 @@ export declare namespace Tenants {
|
|
|
1589
1631
|
search?: string;
|
|
1590
1632
|
sortBy?: string[];
|
|
1591
1633
|
status?: OperationRequestStatusEnum[];
|
|
1634
|
+
types?: CaseOperationTypeEnum[];
|
|
1592
1635
|
};
|
|
1593
1636
|
type RequestBody = never;
|
|
1594
1637
|
type RequestHeaders = {};
|
|
@@ -2818,6 +2861,7 @@ export declare namespace Admin {
|
|
|
2818
2861
|
search?: string;
|
|
2819
2862
|
sortBy?: string[];
|
|
2820
2863
|
status?: OperationRequestStatusEnum[];
|
|
2864
|
+
types?: CaseOperationTypeEnum[];
|
|
2821
2865
|
};
|
|
2822
2866
|
type RequestBody = never;
|
|
2823
2867
|
type RequestHeaders = {};
|
|
@@ -3036,6 +3080,7 @@ export declare namespace Admin {
|
|
|
3036
3080
|
};
|
|
3037
3081
|
type RequestQuery = {
|
|
3038
3082
|
brandIds?: string[];
|
|
3083
|
+
countryIds?: string[];
|
|
3039
3084
|
createdAt?: string;
|
|
3040
3085
|
/**
|
|
3041
3086
|
* @default 10
|
|
@@ -3049,6 +3094,8 @@ export declare namespace Admin {
|
|
|
3049
3094
|
*/
|
|
3050
3095
|
page?: number;
|
|
3051
3096
|
producerIds?: string[];
|
|
3097
|
+
regionIds?: string[];
|
|
3098
|
+
search?: string;
|
|
3052
3099
|
sortBy?: string[];
|
|
3053
3100
|
styleIds?: string[];
|
|
3054
3101
|
typeIds?: string[];
|
|
@@ -3304,13 +3351,32 @@ export declare namespace Admin {
|
|
|
3304
3351
|
/**
|
|
3305
3352
|
* No description
|
|
3306
3353
|
* @tags Admin Tenant Operation Requests
|
|
3307
|
-
* @name
|
|
3308
|
-
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing
|
|
3354
|
+
* @name SetTenantDepositRequestAsProcessing
|
|
3355
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing-deposit
|
|
3309
3356
|
* @secure
|
|
3310
3357
|
* @response `204` `void`
|
|
3311
3358
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
3312
3359
|
*/
|
|
3313
|
-
namespace
|
|
3360
|
+
namespace SetTenantDepositRequestAsProcessing {
|
|
3361
|
+
type RequestParams = {
|
|
3362
|
+
requestId: string;
|
|
3363
|
+
tenantId: string;
|
|
3364
|
+
};
|
|
3365
|
+
type RequestQuery = {};
|
|
3366
|
+
type RequestBody = SetDepositAsProcessingDto;
|
|
3367
|
+
type RequestHeaders = {};
|
|
3368
|
+
type ResponseBody = void;
|
|
3369
|
+
}
|
|
3370
|
+
/**
|
|
3371
|
+
* No description
|
|
3372
|
+
* @tags Admin Tenant Operation Requests
|
|
3373
|
+
* @name SetTenantWithdrawRequestAsProcessing
|
|
3374
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing-withdraw
|
|
3375
|
+
* @secure
|
|
3376
|
+
* @response `204` `void`
|
|
3377
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
3378
|
+
*/
|
|
3379
|
+
namespace SetTenantWithdrawRequestAsProcessing {
|
|
3314
3380
|
type RequestParams = {
|
|
3315
3381
|
requestId: string;
|
|
3316
3382
|
tenantId: string;
|
|
@@ -3814,6 +3880,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3814
3880
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3815
3881
|
*/
|
|
3816
3882
|
getTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<UserEntityDto>;
|
|
3883
|
+
/**
|
|
3884
|
+
* No description
|
|
3885
|
+
*
|
|
3886
|
+
* @tags Tenant Users
|
|
3887
|
+
* @name GetUserAddressById
|
|
3888
|
+
* @request GET:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
|
|
3889
|
+
* @secure
|
|
3890
|
+
* @response `200` `AddressEntityDto`
|
|
3891
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3892
|
+
*/
|
|
3893
|
+
getUserAddressById: (tenantId: string, userId: string, addressId: string, params?: RequestParams) => Promise<AddressEntityDto>;
|
|
3817
3894
|
/**
|
|
3818
3895
|
* No description
|
|
3819
3896
|
*
|
|
@@ -3960,6 +4037,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3960
4037
|
search?: string;
|
|
3961
4038
|
sortBy?: string[];
|
|
3962
4039
|
status?: OperationRequestStatusEnum[];
|
|
4040
|
+
types?: CaseOperationTypeEnum[];
|
|
3963
4041
|
}, params?: RequestParams) => Promise<OperationRequestEntityPaginatedDto>;
|
|
3964
4042
|
/**
|
|
3965
4043
|
* No description
|
|
@@ -4719,6 +4797,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4719
4797
|
search?: string;
|
|
4720
4798
|
sortBy?: string[];
|
|
4721
4799
|
status?: OperationRequestStatusEnum[];
|
|
4800
|
+
types?: CaseOperationTypeEnum[];
|
|
4722
4801
|
}, params?: RequestParams) => Promise<OperationRequestEntityPaginatedDto>;
|
|
4723
4802
|
/**
|
|
4724
4803
|
* No description
|
|
@@ -4888,6 +4967,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4888
4967
|
*/
|
|
4889
4968
|
listTenantWines: (tenantId: string, query?: {
|
|
4890
4969
|
brandIds?: string[];
|
|
4970
|
+
countryIds?: string[];
|
|
4891
4971
|
createdAt?: string;
|
|
4892
4972
|
/**
|
|
4893
4973
|
* @default 10
|
|
@@ -4901,6 +4981,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4901
4981
|
*/
|
|
4902
4982
|
page?: number;
|
|
4903
4983
|
producerIds?: string[];
|
|
4984
|
+
regionIds?: string[];
|
|
4985
|
+
search?: string;
|
|
4904
4986
|
sortBy?: string[];
|
|
4905
4987
|
styleIds?: string[];
|
|
4906
4988
|
typeIds?: string[];
|
|
@@ -5086,13 +5168,24 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5086
5168
|
* No description
|
|
5087
5169
|
*
|
|
5088
5170
|
* @tags Admin Tenant Operation Requests
|
|
5089
|
-
* @name
|
|
5090
|
-
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing
|
|
5171
|
+
* @name SetTenantDepositRequestAsProcessing
|
|
5172
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing-deposit
|
|
5173
|
+
* @secure
|
|
5174
|
+
* @response `204` `void`
|
|
5175
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
5176
|
+
*/
|
|
5177
|
+
setTenantDepositRequestAsProcessing: (tenantId: string, requestId: string, data: SetDepositAsProcessingDto, params?: RequestParams) => Promise<void>;
|
|
5178
|
+
/**
|
|
5179
|
+
* No description
|
|
5180
|
+
*
|
|
5181
|
+
* @tags Admin Tenant Operation Requests
|
|
5182
|
+
* @name SetTenantWithdrawRequestAsProcessing
|
|
5183
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing-withdraw
|
|
5091
5184
|
* @secure
|
|
5092
5185
|
* @response `204` `void`
|
|
5093
5186
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
5094
5187
|
*/
|
|
5095
|
-
|
|
5188
|
+
setTenantWithdrawRequestAsProcessing: (tenantId: string, requestId: string, params?: RequestParams) => Promise<void>;
|
|
5096
5189
|
/**
|
|
5097
5190
|
* No description
|
|
5098
5191
|
*
|
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) {
|
|
@@ -18783,6 +18791,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18783
18791
|
if (params === void 0) { params = {}; }
|
|
18784
18792
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "GET", secure: true, format: "json" }, params));
|
|
18785
18793
|
},
|
|
18794
|
+
/**
|
|
18795
|
+
* No description
|
|
18796
|
+
*
|
|
18797
|
+
* @tags Tenant Users
|
|
18798
|
+
* @name GetUserAddressById
|
|
18799
|
+
* @request GET:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
|
|
18800
|
+
* @secure
|
|
18801
|
+
* @response `200` `AddressEntityDto`
|
|
18802
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18803
|
+
*/
|
|
18804
|
+
getUserAddressById: function (tenantId, userId, addressId, params) {
|
|
18805
|
+
if (params === void 0) { params = {}; }
|
|
18806
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "GET", secure: true, format: "json" }, params));
|
|
18807
|
+
},
|
|
18786
18808
|
/**
|
|
18787
18809
|
* No description
|
|
18788
18810
|
*
|
|
@@ -19951,15 +19973,29 @@ var Api = /** @class */ (function (_super) {
|
|
|
19951
19973
|
* No description
|
|
19952
19974
|
*
|
|
19953
19975
|
* @tags Admin Tenant Operation Requests
|
|
19954
|
-
* @name
|
|
19955
|
-
* @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
|
|
19956
19992
|
* @secure
|
|
19957
19993
|
* @response `204` `void`
|
|
19958
19994
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19959
19995
|
*/
|
|
19960
|
-
|
|
19996
|
+
setTenantWithdrawRequestAsProcessing: function (tenantId, requestId, params) {
|
|
19961
19997
|
if (params === void 0) { params = {}; }
|
|
19962
|
-
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));
|
|
19963
19999
|
},
|
|
19964
20000
|
/**
|
|
19965
20001
|
* No description
|