@thelllabs/winehaus-sdk 0.0.18 → 0.0.19
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 +32 -2
- package/dist/esm/api/api.js +32 -2
- package/dist/types/api/api.d.ts +241 -14
- package/dist/umd/index.ts +32 -2
- package/package.json +1 -1
package/dist/cjs/api/api.js
CHANGED
|
@@ -90,6 +90,8 @@ var CaseOperationLogTypeEnum;
|
|
|
90
90
|
(function (CaseOperationLogTypeEnum) {
|
|
91
91
|
CaseOperationLogTypeEnum["RequestAccepted"] = "request_accepted";
|
|
92
92
|
CaseOperationLogTypeEnum["StatusChange"] = "status_change";
|
|
93
|
+
CaseOperationLogTypeEnum["Synced"] = "synced";
|
|
94
|
+
CaseOperationLogTypeEnum["Reverted"] = "reverted";
|
|
93
95
|
})(CaseOperationLogTypeEnum = exports.CaseOperationLogTypeEnum || (exports.CaseOperationLogTypeEnum = {}));
|
|
94
96
|
var CaseOperationStatusEnum;
|
|
95
97
|
(function (CaseOperationStatusEnum) {
|
|
@@ -453,7 +455,7 @@ var Api = /** @class */ (function (_super) {
|
|
|
453
455
|
* @name GetUserOperationRequestById
|
|
454
456
|
* @request GET:/tenants/{tenantId}/users/{userId}/requests/{requestId}
|
|
455
457
|
* @secure
|
|
456
|
-
* @response `200` `
|
|
458
|
+
* @response `200` `FullOperationRequestEntityDto`
|
|
457
459
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
458
460
|
*/
|
|
459
461
|
getUserOperationRequestById: function (tenantId, userId, requestId, params) {
|
|
@@ -488,6 +490,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
488
490
|
if (params === void 0) { params = {}; }
|
|
489
491
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
490
492
|
},
|
|
493
|
+
/**
|
|
494
|
+
* No description
|
|
495
|
+
*
|
|
496
|
+
* @tags Tenant Users
|
|
497
|
+
* @name ListUserInventory
|
|
498
|
+
* @request GET:/tenants/{tenantId}/users/{userId}/inventory
|
|
499
|
+
* @secure
|
|
500
|
+
* @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
|
|
501
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
502
|
+
*/
|
|
503
|
+
listUserInventory: function (tenantId, userId, query, params) {
|
|
504
|
+
if (params === void 0) { params = {}; }
|
|
505
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
506
|
+
},
|
|
491
507
|
/**
|
|
492
508
|
* No description
|
|
493
509
|
*
|
|
@@ -558,6 +574,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
558
574
|
if (params === void 0) { params = {}; }
|
|
559
575
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/password"), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
560
576
|
},
|
|
577
|
+
/**
|
|
578
|
+
* No description
|
|
579
|
+
*
|
|
580
|
+
* @tags Tenant Users
|
|
581
|
+
* @name UpdateUserAddress
|
|
582
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
|
|
583
|
+
* @secure
|
|
584
|
+
* @response `200` `AddressEntityDto`
|
|
585
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
586
|
+
*/
|
|
587
|
+
updateUserAddress: function (tenantId, userId, addressId, data, params) {
|
|
588
|
+
if (params === void 0) { params = {}; }
|
|
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));
|
|
590
|
+
},
|
|
561
591
|
};
|
|
562
592
|
_this.admin = {
|
|
563
593
|
/**
|
|
@@ -1085,7 +1115,7 @@ var Api = /** @class */ (function (_super) {
|
|
|
1085
1115
|
* @name GetTenantOperationRequestById
|
|
1086
1116
|
* @request GET:/admin/tenants/{tenantId}/requests/{requestId}
|
|
1087
1117
|
* @secure
|
|
1088
|
-
* @response `200` `
|
|
1118
|
+
* @response `200` `FullOperationRequestEntityDto`
|
|
1089
1119
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1090
1120
|
*/
|
|
1091
1121
|
getTenantOperationRequestById: function (tenantId, requestId, params) {
|
package/dist/esm/api/api.js
CHANGED
|
@@ -84,6 +84,8 @@ export var CaseOperationLogTypeEnum;
|
|
|
84
84
|
(function (CaseOperationLogTypeEnum) {
|
|
85
85
|
CaseOperationLogTypeEnum["RequestAccepted"] = "request_accepted";
|
|
86
86
|
CaseOperationLogTypeEnum["StatusChange"] = "status_change";
|
|
87
|
+
CaseOperationLogTypeEnum["Synced"] = "synced";
|
|
88
|
+
CaseOperationLogTypeEnum["Reverted"] = "reverted";
|
|
87
89
|
})(CaseOperationLogTypeEnum || (CaseOperationLogTypeEnum = {}));
|
|
88
90
|
export var CaseOperationStatusEnum;
|
|
89
91
|
(function (CaseOperationStatusEnum) {
|
|
@@ -447,7 +449,7 @@ var Api = /** @class */ (function (_super) {
|
|
|
447
449
|
* @name GetUserOperationRequestById
|
|
448
450
|
* @request GET:/tenants/{tenantId}/users/{userId}/requests/{requestId}
|
|
449
451
|
* @secure
|
|
450
|
-
* @response `200` `
|
|
452
|
+
* @response `200` `FullOperationRequestEntityDto`
|
|
451
453
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
452
454
|
*/
|
|
453
455
|
getUserOperationRequestById: function (tenantId, userId, requestId, params) {
|
|
@@ -482,6 +484,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
482
484
|
if (params === void 0) { params = {}; }
|
|
483
485
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
484
486
|
},
|
|
487
|
+
/**
|
|
488
|
+
* No description
|
|
489
|
+
*
|
|
490
|
+
* @tags Tenant Users
|
|
491
|
+
* @name ListUserInventory
|
|
492
|
+
* @request GET:/tenants/{tenantId}/users/{userId}/inventory
|
|
493
|
+
* @secure
|
|
494
|
+
* @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
|
|
495
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
496
|
+
*/
|
|
497
|
+
listUserInventory: function (tenantId, userId, query, params) {
|
|
498
|
+
if (params === void 0) { params = {}; }
|
|
499
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
500
|
+
},
|
|
485
501
|
/**
|
|
486
502
|
* No description
|
|
487
503
|
*
|
|
@@ -552,6 +568,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
552
568
|
if (params === void 0) { params = {}; }
|
|
553
569
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/password"), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
554
570
|
},
|
|
571
|
+
/**
|
|
572
|
+
* No description
|
|
573
|
+
*
|
|
574
|
+
* @tags Tenant Users
|
|
575
|
+
* @name UpdateUserAddress
|
|
576
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
|
|
577
|
+
* @secure
|
|
578
|
+
* @response `200` `AddressEntityDto`
|
|
579
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
580
|
+
*/
|
|
581
|
+
updateUserAddress: function (tenantId, userId, addressId, data, params) {
|
|
582
|
+
if (params === void 0) { params = {}; }
|
|
583
|
+
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));
|
|
584
|
+
},
|
|
555
585
|
};
|
|
556
586
|
_this.admin = {
|
|
557
587
|
/**
|
|
@@ -1079,7 +1109,7 @@ var Api = /** @class */ (function (_super) {
|
|
|
1079
1109
|
* @name GetTenantOperationRequestById
|
|
1080
1110
|
* @request GET:/admin/tenants/{tenantId}/requests/{requestId}
|
|
1081
1111
|
* @secure
|
|
1082
|
-
* @response `200` `
|
|
1112
|
+
* @response `200` `FullOperationRequestEntityDto`
|
|
1083
1113
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1084
1114
|
*/
|
|
1085
1115
|
getTenantOperationRequestById: function (tenantId, requestId, params) {
|
package/dist/types/api/api.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface AddressEntityDto {
|
|
|
9
9
|
deletedAt?: string | null;
|
|
10
10
|
/** @format uuid */
|
|
11
11
|
id: string;
|
|
12
|
-
location?:
|
|
12
|
+
location?: GeoLocationDto | null;
|
|
13
13
|
name: string;
|
|
14
14
|
notes?: string;
|
|
15
15
|
postalCode: string;
|
|
@@ -56,19 +56,44 @@ export interface CaseEntityPaginatedDto {
|
|
|
56
56
|
links?: PaginationLinksDto;
|
|
57
57
|
meta: PaginationMetaDto;
|
|
58
58
|
}
|
|
59
|
+
export interface CaseOperationEntityDto {
|
|
60
|
+
/** @format uuid */
|
|
61
|
+
caseId: string;
|
|
62
|
+
/** @format date-time */
|
|
63
|
+
createdAt: string;
|
|
64
|
+
/** @format uuid */
|
|
65
|
+
groupId: string;
|
|
66
|
+
/** @format uuid */
|
|
67
|
+
id: string;
|
|
68
|
+
/** @example [] */
|
|
69
|
+
logs: CaseOperationLogDto[];
|
|
70
|
+
/** @format uuid */
|
|
71
|
+
requestId?: string | null;
|
|
72
|
+
/** @example "processed" */
|
|
73
|
+
status: CaseOperationStatusEnum;
|
|
74
|
+
/** @format uuid */
|
|
75
|
+
tenantId: string;
|
|
76
|
+
/** @example "deposit" */
|
|
77
|
+
type: CaseOperationTypesEnum;
|
|
78
|
+
/** @format date-time */
|
|
79
|
+
updatedAt: string;
|
|
80
|
+
}
|
|
59
81
|
export interface CaseOperationLogDto {
|
|
60
82
|
/** @example "confirmed" */
|
|
61
83
|
currentStatus?: CaseOperationStatusEnum;
|
|
62
84
|
/** @example "confirmed" */
|
|
63
85
|
newStatus?: CaseOperationStatusEnum;
|
|
86
|
+
timestamp: number;
|
|
64
87
|
/** @example "request_accepted" */
|
|
65
88
|
type: CaseOperationLogTypeEnum;
|
|
66
89
|
/** @format uuid */
|
|
67
|
-
userId
|
|
90
|
+
userId?: string;
|
|
68
91
|
}
|
|
69
92
|
export declare enum CaseOperationLogTypeEnum {
|
|
70
93
|
RequestAccepted = "request_accepted",
|
|
71
|
-
StatusChange = "status_change"
|
|
94
|
+
StatusChange = "status_change",
|
|
95
|
+
Synced = "synced",
|
|
96
|
+
Reverted = "reverted"
|
|
72
97
|
}
|
|
73
98
|
export declare enum CaseOperationStatusEnum {
|
|
74
99
|
OnHold = "on_hold",
|
|
@@ -146,7 +171,7 @@ export interface CreateAddressByTemplateDto {
|
|
|
146
171
|
addressId?: string;
|
|
147
172
|
city?: string;
|
|
148
173
|
country?: string;
|
|
149
|
-
location?:
|
|
174
|
+
location?: GeoLocationDto | null;
|
|
150
175
|
name?: string;
|
|
151
176
|
notes?: string;
|
|
152
177
|
postalCode?: string;
|
|
@@ -157,7 +182,7 @@ export interface CreateAddressDto {
|
|
|
157
182
|
addressLine2?: string;
|
|
158
183
|
city: string;
|
|
159
184
|
country: string;
|
|
160
|
-
location?:
|
|
185
|
+
location?: GeoLocationDto | null;
|
|
161
186
|
name: string;
|
|
162
187
|
notes?: string;
|
|
163
188
|
postalCode: string;
|
|
@@ -343,6 +368,29 @@ export interface FullOperationGroupEntityDto {
|
|
|
343
368
|
/** @format date-time */
|
|
344
369
|
updatedAt: string;
|
|
345
370
|
}
|
|
371
|
+
export interface FullOperationRequestEntityDto {
|
|
372
|
+
/** @format date-time */
|
|
373
|
+
createdAt: string;
|
|
374
|
+
customer: UserEntityDto;
|
|
375
|
+
/** @format uuid */
|
|
376
|
+
customerId: string;
|
|
377
|
+
extraData: FullDepositRequestExtraDataDto | FullWithdrawRequestExtraDataDto;
|
|
378
|
+
/** @format uuid */
|
|
379
|
+
id: string;
|
|
380
|
+
operation?: CaseOperationEntityDto | null;
|
|
381
|
+
/** @example [] */
|
|
382
|
+
phones: PhoneDto[];
|
|
383
|
+
reason?: string | null;
|
|
384
|
+
/** @example "scheduled" */
|
|
385
|
+
status: OperationRequestStatusEnum;
|
|
386
|
+
/** @format uuid */
|
|
387
|
+
tenantId: string;
|
|
388
|
+
/** @example "deposit" */
|
|
389
|
+
type: OperationRequestTypeEnum;
|
|
390
|
+
/** @format date-time */
|
|
391
|
+
updatedAt: string;
|
|
392
|
+
wines?: OperationRequestWineInventoryItemEntityDto[];
|
|
393
|
+
}
|
|
346
394
|
export interface FullWithdrawRequestExtraDataDto {
|
|
347
395
|
/** @example "completed" */
|
|
348
396
|
deliverStatus?: WithdrawRequestDeliverStatusEnum | null;
|
|
@@ -355,6 +403,30 @@ export interface FullWithdrawRequestExtraDataDto {
|
|
|
355
403
|
pickupDateTime: string;
|
|
356
404
|
shippingAddress?: CreateAddressByTemplateDto;
|
|
357
405
|
}
|
|
406
|
+
export interface GeoLocationDto {
|
|
407
|
+
lat: number;
|
|
408
|
+
lng: number;
|
|
409
|
+
}
|
|
410
|
+
export interface GroupedWineInventoryItemEntityDto {
|
|
411
|
+
/** @min 0 */
|
|
412
|
+
amount: number;
|
|
413
|
+
bottleFormat: WineBottleFormatEntityDto;
|
|
414
|
+
/** @format uuid */
|
|
415
|
+
bottleFormatId: string;
|
|
416
|
+
bottleVintage: WineBottleVintageEntityDto;
|
|
417
|
+
/** @format uuid */
|
|
418
|
+
bottleVintageId: string;
|
|
419
|
+
/** @format uuid */
|
|
420
|
+
tenantId: string;
|
|
421
|
+
wine: WineEntityDto;
|
|
422
|
+
/** @format uuid */
|
|
423
|
+
wineId: string;
|
|
424
|
+
}
|
|
425
|
+
export interface GroupedWineInventoryItemEntityPaginatedDto {
|
|
426
|
+
items: GroupedWineInventoryItemEntityDto[];
|
|
427
|
+
links?: PaginationLinksDto;
|
|
428
|
+
meta: PaginationMetaDto;
|
|
429
|
+
}
|
|
358
430
|
export interface HttpExceptionDto {
|
|
359
431
|
/** @example null */
|
|
360
432
|
data?: object;
|
|
@@ -457,6 +529,8 @@ export interface OperationRequestEntityDto {
|
|
|
457
529
|
extraData: FullDepositRequestExtraDataDto | FullWithdrawRequestExtraDataDto;
|
|
458
530
|
/** @format uuid */
|
|
459
531
|
id: string;
|
|
532
|
+
/** @example [] */
|
|
533
|
+
phones: PhoneDto[];
|
|
460
534
|
reason?: string | null;
|
|
461
535
|
/** @example "scheduled" */
|
|
462
536
|
status: OperationRequestStatusEnum;
|
|
@@ -484,6 +558,29 @@ export declare enum OperationRequestTypeEnum {
|
|
|
484
558
|
Deposit = "deposit",
|
|
485
559
|
Withdrawal = "withdrawal"
|
|
486
560
|
}
|
|
561
|
+
export interface OperationRequestWineInventoryItemEntityDto {
|
|
562
|
+
/** @min 0 */
|
|
563
|
+
amount: number;
|
|
564
|
+
bottleFormat: WineBottleFormatEntityDto;
|
|
565
|
+
/** @format uuid */
|
|
566
|
+
bottleFormatId: string;
|
|
567
|
+
bottleVintage: WineBottleVintageEntityDto;
|
|
568
|
+
/** @format uuid */
|
|
569
|
+
bottleVintageId: string;
|
|
570
|
+
/** @format date-time */
|
|
571
|
+
createdAt: string;
|
|
572
|
+
/** @format uuid */
|
|
573
|
+
id: string;
|
|
574
|
+
/** @format uuid */
|
|
575
|
+
operationRequestId?: string | null;
|
|
576
|
+
/** @format uuid */
|
|
577
|
+
tenantId: string;
|
|
578
|
+
/** @format date-time */
|
|
579
|
+
updatedAt: string;
|
|
580
|
+
wine: WineEntityDto;
|
|
581
|
+
/** @format uuid */
|
|
582
|
+
wineId: string;
|
|
583
|
+
}
|
|
487
584
|
export declare enum OrderByEnum {
|
|
488
585
|
ASC = "ASC",
|
|
489
586
|
DESC = "DESC"
|
|
@@ -535,11 +632,15 @@ export interface ProcessWithdrawDto {
|
|
|
535
632
|
/** @minItems 0 */
|
|
536
633
|
extras?: CreateOperationExtraDto[];
|
|
537
634
|
operationNotes?: string;
|
|
635
|
+
/** @minItems 1 */
|
|
636
|
+
wines: WithdrawRequestCreateWineInventoryItemDto[];
|
|
538
637
|
}
|
|
539
638
|
export interface RequestDepositDto {
|
|
540
639
|
address: CreateAddressByTemplateDto;
|
|
541
640
|
/** @example "its super fragile, please take care and come with a special bag" */
|
|
542
641
|
notes?: string;
|
|
642
|
+
/** @example [] */
|
|
643
|
+
phones?: PhoneDto[];
|
|
543
644
|
/** @format date-time */
|
|
544
645
|
shippingDateTime: string;
|
|
545
646
|
/**
|
|
@@ -556,6 +657,8 @@ export interface RequestPasswordResetDto {
|
|
|
556
657
|
export interface RequestWithdrawDto {
|
|
557
658
|
/** @example "please add it into a cooler" */
|
|
558
659
|
notes?: string;
|
|
660
|
+
/** @example [] */
|
|
661
|
+
phones?: PhoneDto[];
|
|
559
662
|
/** @format date-time */
|
|
560
663
|
pickupDateTime: string;
|
|
561
664
|
/** @minItems 1 */
|
|
@@ -603,6 +706,17 @@ export declare enum TenantUserStatusEnum {
|
|
|
603
706
|
Enabled = "enabled",
|
|
604
707
|
Blocked = "blocked"
|
|
605
708
|
}
|
|
709
|
+
export interface UpdateAddressDto {
|
|
710
|
+
addressLine1?: string;
|
|
711
|
+
addressLine2?: string;
|
|
712
|
+
city?: string;
|
|
713
|
+
country?: string;
|
|
714
|
+
location?: GeoLocationDto | null;
|
|
715
|
+
name?: string;
|
|
716
|
+
notes?: string;
|
|
717
|
+
postalCode?: string;
|
|
718
|
+
state?: string;
|
|
719
|
+
}
|
|
606
720
|
export interface UpdateCaseDto {
|
|
607
721
|
/** @format date-time */
|
|
608
722
|
billingEndDate?: string | null;
|
|
@@ -1001,6 +1115,18 @@ export interface WineVineyardEntityPaginatedDto {
|
|
|
1001
1115
|
links?: PaginationLinksDto;
|
|
1002
1116
|
meta: PaginationMetaDto;
|
|
1003
1117
|
}
|
|
1118
|
+
export interface WithdrawRequestCreateWineInventoryItemDto {
|
|
1119
|
+
/** @min 1 */
|
|
1120
|
+
amount: number;
|
|
1121
|
+
/** @format uuid */
|
|
1122
|
+
bottleFormatId: string;
|
|
1123
|
+
/** @format uuid */
|
|
1124
|
+
bottleVintageId: string;
|
|
1125
|
+
/** @format uuid */
|
|
1126
|
+
caseId: string;
|
|
1127
|
+
/** @format uuid */
|
|
1128
|
+
wineId: string;
|
|
1129
|
+
}
|
|
1004
1130
|
export declare enum WithdrawRequestDeliverStatusEnum {
|
|
1005
1131
|
Pending = "pending",
|
|
1006
1132
|
InSeparation = "in_separation",
|
|
@@ -1016,7 +1142,11 @@ export interface WithdrawWineInventoryItemDto {
|
|
|
1016
1142
|
/** @min 1 */
|
|
1017
1143
|
amount: number;
|
|
1018
1144
|
/** @format uuid */
|
|
1019
|
-
|
|
1145
|
+
bottleFormatId: string;
|
|
1146
|
+
/** @format uuid */
|
|
1147
|
+
bottleVintageId: string;
|
|
1148
|
+
/** @format uuid */
|
|
1149
|
+
wineId: string;
|
|
1020
1150
|
}
|
|
1021
1151
|
export declare namespace Auth {
|
|
1022
1152
|
/**
|
|
@@ -1240,7 +1370,7 @@ export declare namespace Tenants {
|
|
|
1240
1370
|
* @name GetUserOperationRequestById
|
|
1241
1371
|
* @request GET:/tenants/{tenantId}/users/{userId}/requests/{requestId}
|
|
1242
1372
|
* @secure
|
|
1243
|
-
* @response `200` `
|
|
1373
|
+
* @response `200` `FullOperationRequestEntityDto`
|
|
1244
1374
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1245
1375
|
*/
|
|
1246
1376
|
namespace GetUserOperationRequestById {
|
|
@@ -1252,7 +1382,7 @@ export declare namespace Tenants {
|
|
|
1252
1382
|
type RequestQuery = {};
|
|
1253
1383
|
type RequestBody = never;
|
|
1254
1384
|
type RequestHeaders = {};
|
|
1255
|
-
type ResponseBody =
|
|
1385
|
+
type ResponseBody = FullOperationRequestEntityDto;
|
|
1256
1386
|
}
|
|
1257
1387
|
/**
|
|
1258
1388
|
* No description
|
|
@@ -1323,6 +1453,43 @@ export declare namespace Tenants {
|
|
|
1323
1453
|
type RequestHeaders = {};
|
|
1324
1454
|
type ResponseBody = AddressEntityPaginatedDto;
|
|
1325
1455
|
}
|
|
1456
|
+
/**
|
|
1457
|
+
* No description
|
|
1458
|
+
* @tags Tenant Users
|
|
1459
|
+
* @name ListUserInventory
|
|
1460
|
+
* @request GET:/tenants/{tenantId}/users/{userId}/inventory
|
|
1461
|
+
* @secure
|
|
1462
|
+
* @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
|
|
1463
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1464
|
+
*/
|
|
1465
|
+
namespace ListUserInventory {
|
|
1466
|
+
type RequestParams = {
|
|
1467
|
+
tenantId: string;
|
|
1468
|
+
userId: string;
|
|
1469
|
+
};
|
|
1470
|
+
type RequestQuery = {
|
|
1471
|
+
amount?: string;
|
|
1472
|
+
bottleFormatIds?: string[];
|
|
1473
|
+
bottleVintageIds?: string[];
|
|
1474
|
+
/**
|
|
1475
|
+
* @default 10
|
|
1476
|
+
* @example 10
|
|
1477
|
+
*/
|
|
1478
|
+
limit?: number;
|
|
1479
|
+
orderBy?: OrderByEnum;
|
|
1480
|
+
/**
|
|
1481
|
+
* @default 1
|
|
1482
|
+
* @example 1
|
|
1483
|
+
*/
|
|
1484
|
+
page?: number;
|
|
1485
|
+
search?: string;
|
|
1486
|
+
sortBy?: string[];
|
|
1487
|
+
wineIds?: string[];
|
|
1488
|
+
};
|
|
1489
|
+
type RequestBody = never;
|
|
1490
|
+
type RequestHeaders = {};
|
|
1491
|
+
type ResponseBody = GroupedWineInventoryItemEntityPaginatedDto;
|
|
1492
|
+
}
|
|
1326
1493
|
/**
|
|
1327
1494
|
* No description
|
|
1328
1495
|
* @tags Tenant Users Operation Requests
|
|
@@ -1434,6 +1601,26 @@ export declare namespace Tenants {
|
|
|
1434
1601
|
type RequestHeaders = {};
|
|
1435
1602
|
type ResponseBody = UserEntityDto;
|
|
1436
1603
|
}
|
|
1604
|
+
/**
|
|
1605
|
+
* No description
|
|
1606
|
+
* @tags Tenant Users
|
|
1607
|
+
* @name UpdateUserAddress
|
|
1608
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
|
|
1609
|
+
* @secure
|
|
1610
|
+
* @response `200` `AddressEntityDto`
|
|
1611
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1612
|
+
*/
|
|
1613
|
+
namespace UpdateUserAddress {
|
|
1614
|
+
type RequestParams = {
|
|
1615
|
+
addressId: string;
|
|
1616
|
+
tenantId: string;
|
|
1617
|
+
userId: string;
|
|
1618
|
+
};
|
|
1619
|
+
type RequestQuery = {};
|
|
1620
|
+
type RequestBody = UpdateAddressDto;
|
|
1621
|
+
type RequestHeaders = {};
|
|
1622
|
+
type ResponseBody = AddressEntityDto;
|
|
1623
|
+
}
|
|
1437
1624
|
}
|
|
1438
1625
|
export declare namespace Admin {
|
|
1439
1626
|
/**
|
|
@@ -2130,7 +2317,7 @@ export declare namespace Admin {
|
|
|
2130
2317
|
* @name GetTenantOperationRequestById
|
|
2131
2318
|
* @request GET:/admin/tenants/{tenantId}/requests/{requestId}
|
|
2132
2319
|
* @secure
|
|
2133
|
-
* @response `200` `
|
|
2320
|
+
* @response `200` `FullOperationRequestEntityDto`
|
|
2134
2321
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
2135
2322
|
*/
|
|
2136
2323
|
namespace GetTenantOperationRequestById {
|
|
@@ -2141,7 +2328,7 @@ export declare namespace Admin {
|
|
|
2141
2328
|
type RequestQuery = {};
|
|
2142
2329
|
type RequestBody = never;
|
|
2143
2330
|
type RequestHeaders = {};
|
|
2144
|
-
type ResponseBody =
|
|
2331
|
+
type ResponseBody = FullOperationRequestEntityDto;
|
|
2145
2332
|
}
|
|
2146
2333
|
/**
|
|
2147
2334
|
* No description
|
|
@@ -3546,10 +3733,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3546
3733
|
* @name GetUserOperationRequestById
|
|
3547
3734
|
* @request GET:/tenants/{tenantId}/users/{userId}/requests/{requestId}
|
|
3548
3735
|
* @secure
|
|
3549
|
-
* @response `200` `
|
|
3736
|
+
* @response `200` `FullOperationRequestEntityDto`
|
|
3550
3737
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3551
3738
|
*/
|
|
3552
|
-
getUserOperationRequestById: (tenantId: string, userId: string, requestId: string, params?: RequestParams) => Promise<
|
|
3739
|
+
getUserOperationRequestById: (tenantId: string, userId: string, requestId: string, params?: RequestParams) => Promise<FullOperationRequestEntityDto>;
|
|
3553
3740
|
/**
|
|
3554
3741
|
* No description
|
|
3555
3742
|
*
|
|
@@ -3604,6 +3791,35 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3604
3791
|
search?: string;
|
|
3605
3792
|
sortBy?: string[];
|
|
3606
3793
|
}, params?: RequestParams) => Promise<AddressEntityPaginatedDto>;
|
|
3794
|
+
/**
|
|
3795
|
+
* No description
|
|
3796
|
+
*
|
|
3797
|
+
* @tags Tenant Users
|
|
3798
|
+
* @name ListUserInventory
|
|
3799
|
+
* @request GET:/tenants/{tenantId}/users/{userId}/inventory
|
|
3800
|
+
* @secure
|
|
3801
|
+
* @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
|
|
3802
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3803
|
+
*/
|
|
3804
|
+
listUserInventory: (tenantId: string, userId: string, query?: {
|
|
3805
|
+
amount?: string;
|
|
3806
|
+
bottleFormatIds?: string[];
|
|
3807
|
+
bottleVintageIds?: string[];
|
|
3808
|
+
/**
|
|
3809
|
+
* @default 10
|
|
3810
|
+
* @example 10
|
|
3811
|
+
*/
|
|
3812
|
+
limit?: number;
|
|
3813
|
+
orderBy?: OrderByEnum;
|
|
3814
|
+
/**
|
|
3815
|
+
* @default 1
|
|
3816
|
+
* @example 1
|
|
3817
|
+
*/
|
|
3818
|
+
page?: number;
|
|
3819
|
+
search?: string;
|
|
3820
|
+
sortBy?: string[];
|
|
3821
|
+
wineIds?: string[];
|
|
3822
|
+
}, params?: RequestParams) => Promise<GroupedWineInventoryItemEntityPaginatedDto>;
|
|
3607
3823
|
/**
|
|
3608
3824
|
* No description
|
|
3609
3825
|
*
|
|
@@ -3675,6 +3891,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3675
3891
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3676
3892
|
*/
|
|
3677
3893
|
updateTenantUserPassword: (tenantId: string, userId: string, data: UpdateUserPasswordDto, params?: RequestParams) => Promise<UserEntityDto>;
|
|
3894
|
+
/**
|
|
3895
|
+
* No description
|
|
3896
|
+
*
|
|
3897
|
+
* @tags Tenant Users
|
|
3898
|
+
* @name UpdateUserAddress
|
|
3899
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
|
|
3900
|
+
* @secure
|
|
3901
|
+
* @response `200` `AddressEntityDto`
|
|
3902
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3903
|
+
*/
|
|
3904
|
+
updateUserAddress: (tenantId: string, userId: string, addressId: string, data: UpdateAddressDto, params?: RequestParams) => Promise<AddressEntityDto>;
|
|
3678
3905
|
};
|
|
3679
3906
|
admin: {
|
|
3680
3907
|
/**
|
|
@@ -4091,10 +4318,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4091
4318
|
* @name GetTenantOperationRequestById
|
|
4092
4319
|
* @request GET:/admin/tenants/{tenantId}/requests/{requestId}
|
|
4093
4320
|
* @secure
|
|
4094
|
-
* @response `200` `
|
|
4321
|
+
* @response `200` `FullOperationRequestEntityDto`
|
|
4095
4322
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
4096
4323
|
*/
|
|
4097
|
-
getTenantOperationRequestById: (tenantId: string, requestId: string, params?: RequestParams) => Promise<
|
|
4324
|
+
getTenantOperationRequestById: (tenantId: string, requestId: string, params?: RequestParams) => Promise<FullOperationRequestEntityDto>;
|
|
4098
4325
|
/**
|
|
4099
4326
|
* No description
|
|
4100
4327
|
*
|
package/dist/umd/index.ts
CHANGED
|
@@ -18415,6 +18415,8 @@ var CaseOperationLogTypeEnum;
|
|
|
18415
18415
|
(function (CaseOperationLogTypeEnum) {
|
|
18416
18416
|
CaseOperationLogTypeEnum["RequestAccepted"] = "request_accepted";
|
|
18417
18417
|
CaseOperationLogTypeEnum["StatusChange"] = "status_change";
|
|
18418
|
+
CaseOperationLogTypeEnum["Synced"] = "synced";
|
|
18419
|
+
CaseOperationLogTypeEnum["Reverted"] = "reverted";
|
|
18418
18420
|
})(CaseOperationLogTypeEnum = exports.CaseOperationLogTypeEnum || (exports.CaseOperationLogTypeEnum = {}));
|
|
18419
18421
|
var CaseOperationStatusEnum;
|
|
18420
18422
|
(function (CaseOperationStatusEnum) {
|
|
@@ -18778,7 +18780,7 @@ var Api = /** @class */ (function (_super) {
|
|
|
18778
18780
|
* @name GetUserOperationRequestById
|
|
18779
18781
|
* @request GET:/tenants/{tenantId}/users/{userId}/requests/{requestId}
|
|
18780
18782
|
* @secure
|
|
18781
|
-
* @response `200` `
|
|
18783
|
+
* @response `200` `FullOperationRequestEntityDto`
|
|
18782
18784
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18783
18785
|
*/
|
|
18784
18786
|
getUserOperationRequestById: function (tenantId, userId, requestId, params) {
|
|
@@ -18813,6 +18815,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18813
18815
|
if (params === void 0) { params = {}; }
|
|
18814
18816
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
18815
18817
|
},
|
|
18818
|
+
/**
|
|
18819
|
+
* No description
|
|
18820
|
+
*
|
|
18821
|
+
* @tags Tenant Users
|
|
18822
|
+
* @name ListUserInventory
|
|
18823
|
+
* @request GET:/tenants/{tenantId}/users/{userId}/inventory
|
|
18824
|
+
* @secure
|
|
18825
|
+
* @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
|
|
18826
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18827
|
+
*/
|
|
18828
|
+
listUserInventory: function (tenantId, userId, query, params) {
|
|
18829
|
+
if (params === void 0) { params = {}; }
|
|
18830
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
18831
|
+
},
|
|
18816
18832
|
/**
|
|
18817
18833
|
* No description
|
|
18818
18834
|
*
|
|
@@ -18883,6 +18899,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18883
18899
|
if (params === void 0) { params = {}; }
|
|
18884
18900
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/password"), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18885
18901
|
},
|
|
18902
|
+
/**
|
|
18903
|
+
* No description
|
|
18904
|
+
*
|
|
18905
|
+
* @tags Tenant Users
|
|
18906
|
+
* @name UpdateUserAddress
|
|
18907
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
|
|
18908
|
+
* @secure
|
|
18909
|
+
* @response `200` `AddressEntityDto`
|
|
18910
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18911
|
+
*/
|
|
18912
|
+
updateUserAddress: function (tenantId, userId, addressId, data, params) {
|
|
18913
|
+
if (params === void 0) { params = {}; }
|
|
18914
|
+
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));
|
|
18915
|
+
},
|
|
18886
18916
|
};
|
|
18887
18917
|
_this.admin = {
|
|
18888
18918
|
/**
|
|
@@ -19410,7 +19440,7 @@ var Api = /** @class */ (function (_super) {
|
|
|
19410
19440
|
* @name GetTenantOperationRequestById
|
|
19411
19441
|
* @request GET:/admin/tenants/{tenantId}/requests/{requestId}
|
|
19412
19442
|
* @secure
|
|
19413
|
-
* @response `200` `
|
|
19443
|
+
* @response `200` `FullOperationRequestEntityDto`
|
|
19414
19444
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19415
19445
|
*/
|
|
19416
19446
|
getTenantOperationRequestById: function (tenantId, requestId, params) {
|