@thelllabs/winehaus-sdk 0.0.16 → 0.0.17
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 +162 -8
- package/dist/esm/api/api.js +162 -8
- package/dist/types/api/api.d.ts +465 -17
- package/dist/umd/index.ts +162 -8
- package/package.json +1 -1
package/dist/types/api/api.d.ts
CHANGED
|
@@ -131,6 +131,14 @@ export interface CaseWineInventoryItemEntityPaginatedDto {
|
|
|
131
131
|
links?: PaginationLinksDto;
|
|
132
132
|
meta: PaginationMetaDto;
|
|
133
133
|
}
|
|
134
|
+
export interface ChangeOperationRequestWithReasonDto {
|
|
135
|
+
reason?: string;
|
|
136
|
+
}
|
|
137
|
+
export interface ConfirmWithdrawRequestDto {
|
|
138
|
+
/** @example "pickup" */
|
|
139
|
+
deliverType: WithdrawRequestDeliverTypeEnum;
|
|
140
|
+
shippingAddress?: CreateAddressByTemplateDto;
|
|
141
|
+
}
|
|
134
142
|
export interface CreateAddressByTemplateDto {
|
|
135
143
|
addressLine1?: string;
|
|
136
144
|
addressLine2?: string | null;
|
|
@@ -267,6 +275,18 @@ export interface CreateWineInventoryItemDto {
|
|
|
267
275
|
/** @format uuid */
|
|
268
276
|
wineId: string;
|
|
269
277
|
}
|
|
278
|
+
export interface DepositRequestCreateWineInventoryItemDto {
|
|
279
|
+
/** @min 1 */
|
|
280
|
+
amount: number;
|
|
281
|
+
/** @format uuid */
|
|
282
|
+
bottleFormatId: string;
|
|
283
|
+
/** @format uuid */
|
|
284
|
+
bottleVintageId: string;
|
|
285
|
+
/** @format uuid */
|
|
286
|
+
caseId: string;
|
|
287
|
+
/** @format uuid */
|
|
288
|
+
wineId: string;
|
|
289
|
+
}
|
|
270
290
|
export interface FullCaseOperationEntityDto {
|
|
271
291
|
/** @format uuid */
|
|
272
292
|
caseId: string;
|
|
@@ -500,6 +520,22 @@ export declare enum PhoneTypeEnum {
|
|
|
500
520
|
Fixed = "fixed",
|
|
501
521
|
Mobile = "mobile"
|
|
502
522
|
}
|
|
523
|
+
export interface ProcessDepositDto {
|
|
524
|
+
acceptBottlesAmountDivergence?: boolean;
|
|
525
|
+
/** @format date-time */
|
|
526
|
+
executedShippingDateTime: string;
|
|
527
|
+
/** @minItems 0 */
|
|
528
|
+
extras?: CreateOperationExtraDto[];
|
|
529
|
+
/** @example "please add it into a cooler" */
|
|
530
|
+
operationNotes?: string;
|
|
531
|
+
/** @minItems 1 */
|
|
532
|
+
wines: DepositRequestCreateWineInventoryItemDto[];
|
|
533
|
+
}
|
|
534
|
+
export interface ProcessWithdrawDto {
|
|
535
|
+
/** @minItems 0 */
|
|
536
|
+
extras?: CreateOperationExtraDto[];
|
|
537
|
+
operationNotes?: string;
|
|
538
|
+
}
|
|
503
539
|
export interface RequestDepositDto {
|
|
504
540
|
address: CreateAddressByTemplateDto;
|
|
505
541
|
/** @example "its super fragile, please take care and come with a special bag" */
|
|
@@ -551,6 +587,12 @@ export interface SigninResponseDto {
|
|
|
551
587
|
token: string;
|
|
552
588
|
user: UserEntityDto;
|
|
553
589
|
}
|
|
590
|
+
export interface SyncOperationGroupWithSnapshotDto {
|
|
591
|
+
/** @minItems 0 */
|
|
592
|
+
extras?: UpdateOperationExtraDto[];
|
|
593
|
+
/** @minItems 1 */
|
|
594
|
+
operations: UpdateCaseOperationDto[];
|
|
595
|
+
}
|
|
554
596
|
export declare enum TenantRoleEnum {
|
|
555
597
|
Operator = "operator",
|
|
556
598
|
Admin = "admin",
|
|
@@ -573,11 +615,37 @@ export interface UpdateCaseDto {
|
|
|
573
615
|
maxItems: number;
|
|
574
616
|
name: string;
|
|
575
617
|
}
|
|
618
|
+
export interface UpdateCaseOperationDto {
|
|
619
|
+
/** @format uuid */
|
|
620
|
+
caseId: string;
|
|
621
|
+
/** @minItems 0 */
|
|
622
|
+
extras?: UpdateOperationExtraDto[];
|
|
623
|
+
/** @format uuid */
|
|
624
|
+
id?: string;
|
|
625
|
+
/** @format uuid */
|
|
626
|
+
requestId?: string | null;
|
|
627
|
+
/** @example "deposit" */
|
|
628
|
+
type: CaseOperationTypesEnum;
|
|
629
|
+
/** @minItems 1 */
|
|
630
|
+
wines: UpdateWineInventoryItemDto[];
|
|
631
|
+
}
|
|
576
632
|
export interface UpdateNameOnlyEntityDto {
|
|
577
633
|
/** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
|
|
578
634
|
isGlobal?: boolean;
|
|
579
635
|
name: string;
|
|
580
636
|
}
|
|
637
|
+
export interface UpdateOperationExtraDto {
|
|
638
|
+
/** @min 1 */
|
|
639
|
+
amount?: number | null;
|
|
640
|
+
description?: string | null;
|
|
641
|
+
/** @format uuid */
|
|
642
|
+
id?: string;
|
|
643
|
+
invoiceTitle?: string;
|
|
644
|
+
/** @min 0 */
|
|
645
|
+
pricePerItem?: number | null;
|
|
646
|
+
/** @format uuid */
|
|
647
|
+
templateId?: string;
|
|
648
|
+
}
|
|
581
649
|
export interface UpdateOperationExtraTemplateDto {
|
|
582
650
|
description?: string | null;
|
|
583
651
|
invoiceTitle: string;
|
|
@@ -642,6 +710,25 @@ export interface UpdateWineDto {
|
|
|
642
710
|
/** @format uuid */
|
|
643
711
|
vineyardId?: string | null;
|
|
644
712
|
}
|
|
713
|
+
export interface UpdateWineInventoryItemDto {
|
|
714
|
+
/** @min 1 */
|
|
715
|
+
amount: number;
|
|
716
|
+
/** @format uuid */
|
|
717
|
+
bottleFormatId: string;
|
|
718
|
+
/** @format uuid */
|
|
719
|
+
bottleVintageId: string;
|
|
720
|
+
/** @format uuid */
|
|
721
|
+
id?: string;
|
|
722
|
+
/** @format uuid */
|
|
723
|
+
wineId: string;
|
|
724
|
+
}
|
|
725
|
+
export interface UpdateWithdrawDeliverStateDto {
|
|
726
|
+
/** @example "completed" */
|
|
727
|
+
deliverStatus?: WithdrawRequestDeliverStatusEnum | null;
|
|
728
|
+
/** @example "pickup" */
|
|
729
|
+
deliverType?: WithdrawRequestDeliverTypeEnum | null;
|
|
730
|
+
shippingAddress?: CreateAddressByTemplateDto;
|
|
731
|
+
}
|
|
645
732
|
export interface UserEntityDto {
|
|
646
733
|
/** @format date-time */
|
|
647
734
|
createdAt: string;
|
|
@@ -997,20 +1084,20 @@ export declare namespace Tenants {
|
|
|
997
1084
|
/**
|
|
998
1085
|
* No description
|
|
999
1086
|
* @tags Tenant Users Operation Requests
|
|
1000
|
-
* @name
|
|
1087
|
+
* @name CancelUserOperationRequest
|
|
1001
1088
|
* @request PATCH:/tenants/{tenantId}/users/userId/requests/{requestId}/cancel
|
|
1002
1089
|
* @secure
|
|
1003
|
-
* @response `
|
|
1090
|
+
* @response `204` `void`
|
|
1004
1091
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1005
1092
|
*/
|
|
1006
|
-
namespace
|
|
1093
|
+
namespace CancelUserOperationRequest {
|
|
1007
1094
|
type RequestParams = {
|
|
1008
1095
|
requestId: string;
|
|
1009
1096
|
tenantId: string;
|
|
1010
1097
|
userId: string;
|
|
1011
1098
|
};
|
|
1012
1099
|
type RequestQuery = {};
|
|
1013
|
-
type RequestBody =
|
|
1100
|
+
type RequestBody = ChangeOperationRequestWithReasonDto;
|
|
1014
1101
|
type RequestHeaders = {};
|
|
1015
1102
|
type ResponseBody = void;
|
|
1016
1103
|
}
|
|
@@ -1252,7 +1339,6 @@ export declare namespace Tenants {
|
|
|
1252
1339
|
};
|
|
1253
1340
|
type RequestQuery = {
|
|
1254
1341
|
createdAt?: string;
|
|
1255
|
-
customerIds?: string[];
|
|
1256
1342
|
/**
|
|
1257
1343
|
* @default 10
|
|
1258
1344
|
* @example 10
|
|
@@ -1275,13 +1361,13 @@ export declare namespace Tenants {
|
|
|
1275
1361
|
/**
|
|
1276
1362
|
* No description
|
|
1277
1363
|
* @tags Tenant Users Operation Requests
|
|
1278
|
-
* @name
|
|
1364
|
+
* @name RequestDepositOperation
|
|
1279
1365
|
* @request POST:/tenants/{tenantId}/users/userId/requests/deposit
|
|
1280
1366
|
* @secure
|
|
1281
1367
|
* @response `201` `OperationRequestEntityDto`
|
|
1282
1368
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1283
1369
|
*/
|
|
1284
|
-
namespace
|
|
1370
|
+
namespace RequestDepositOperation {
|
|
1285
1371
|
type RequestParams = {
|
|
1286
1372
|
tenantId: string;
|
|
1287
1373
|
userId: string;
|
|
@@ -1294,13 +1380,13 @@ export declare namespace Tenants {
|
|
|
1294
1380
|
/**
|
|
1295
1381
|
* No description
|
|
1296
1382
|
* @tags Tenant Users Operation Requests
|
|
1297
|
-
* @name
|
|
1383
|
+
* @name RequestWithdrawOperation
|
|
1298
1384
|
* @request POST:/tenants/{tenantId}/users/userId/requests/withdraw
|
|
1299
1385
|
* @secure
|
|
1300
1386
|
* @response `201` `OperationRequestEntityDto`
|
|
1301
1387
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1302
1388
|
*/
|
|
1303
|
-
namespace
|
|
1389
|
+
namespace RequestWithdrawOperation {
|
|
1304
1390
|
type RequestParams = {
|
|
1305
1391
|
tenantId: string;
|
|
1306
1392
|
userId: string;
|
|
@@ -1369,6 +1455,44 @@ export declare namespace Admin {
|
|
|
1369
1455
|
type RequestHeaders = {};
|
|
1370
1456
|
type ResponseBody = void;
|
|
1371
1457
|
}
|
|
1458
|
+
/**
|
|
1459
|
+
* No description
|
|
1460
|
+
* @tags Admin Tenant Operation Requests
|
|
1461
|
+
* @name CancelTenantOperationRequest
|
|
1462
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/cancel
|
|
1463
|
+
* @secure
|
|
1464
|
+
* @response `204` `void`
|
|
1465
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1466
|
+
*/
|
|
1467
|
+
namespace CancelTenantOperationRequest {
|
|
1468
|
+
type RequestParams = {
|
|
1469
|
+
requestId: string;
|
|
1470
|
+
tenantId: string;
|
|
1471
|
+
};
|
|
1472
|
+
type RequestQuery = {};
|
|
1473
|
+
type RequestBody = ChangeOperationRequestWithReasonDto;
|
|
1474
|
+
type RequestHeaders = {};
|
|
1475
|
+
type ResponseBody = void;
|
|
1476
|
+
}
|
|
1477
|
+
/**
|
|
1478
|
+
* No description
|
|
1479
|
+
* @tags Admin Tenant Operation Requests
|
|
1480
|
+
* @name ConfirmTenantDepositRequest
|
|
1481
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/confirm-deposit
|
|
1482
|
+
* @secure
|
|
1483
|
+
* @response `204` `void`
|
|
1484
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1485
|
+
*/
|
|
1486
|
+
namespace ConfirmTenantDepositRequest {
|
|
1487
|
+
type RequestParams = {
|
|
1488
|
+
requestId: string;
|
|
1489
|
+
tenantId: string;
|
|
1490
|
+
};
|
|
1491
|
+
type RequestQuery = {};
|
|
1492
|
+
type RequestBody = never;
|
|
1493
|
+
type RequestHeaders = {};
|
|
1494
|
+
type ResponseBody = void;
|
|
1495
|
+
}
|
|
1372
1496
|
/**
|
|
1373
1497
|
* No description
|
|
1374
1498
|
* @tags Admin Tenant Operation Groups
|
|
@@ -1388,6 +1512,25 @@ export declare namespace Admin {
|
|
|
1388
1512
|
type RequestHeaders = {};
|
|
1389
1513
|
type ResponseBody = void;
|
|
1390
1514
|
}
|
|
1515
|
+
/**
|
|
1516
|
+
* No description
|
|
1517
|
+
* @tags Admin Tenant Operation Requests
|
|
1518
|
+
* @name ConfirmTenantWithdrawRequest
|
|
1519
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/confirm-withdraw
|
|
1520
|
+
* @secure
|
|
1521
|
+
* @response `204` `void`
|
|
1522
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1523
|
+
*/
|
|
1524
|
+
namespace ConfirmTenantWithdrawRequest {
|
|
1525
|
+
type RequestParams = {
|
|
1526
|
+
requestId: string;
|
|
1527
|
+
tenantId: string;
|
|
1528
|
+
};
|
|
1529
|
+
type RequestQuery = {};
|
|
1530
|
+
type RequestBody = ConfirmWithdrawRequestDto;
|
|
1531
|
+
type RequestHeaders = {};
|
|
1532
|
+
type ResponseBody = void;
|
|
1533
|
+
}
|
|
1391
1534
|
/**
|
|
1392
1535
|
* No description
|
|
1393
1536
|
* @tags Admin Tenant Cases
|
|
@@ -1981,6 +2124,25 @@ export declare namespace Admin {
|
|
|
1981
2124
|
type RequestHeaders = {};
|
|
1982
2125
|
type ResponseBody = FullOperationGroupEntityDto;
|
|
1983
2126
|
}
|
|
2127
|
+
/**
|
|
2128
|
+
* No description
|
|
2129
|
+
* @tags Admin Tenant Operation Requests
|
|
2130
|
+
* @name GetTenantOperationRequestById
|
|
2131
|
+
* @request GET:/admin/tenants/{tenantId}/requests/{requestId}
|
|
2132
|
+
* @secure
|
|
2133
|
+
* @response `200` `OperationRequestEntityDto`
|
|
2134
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
2135
|
+
*/
|
|
2136
|
+
namespace GetTenantOperationRequestById {
|
|
2137
|
+
type RequestParams = {
|
|
2138
|
+
requestId: string;
|
|
2139
|
+
tenantId: string;
|
|
2140
|
+
};
|
|
2141
|
+
type RequestQuery = {};
|
|
2142
|
+
type RequestBody = never;
|
|
2143
|
+
type RequestHeaders = {};
|
|
2144
|
+
type ResponseBody = OperationRequestEntityDto;
|
|
2145
|
+
}
|
|
1984
2146
|
/**
|
|
1985
2147
|
* No description
|
|
1986
2148
|
* @tags Admin Tenant Wine Bottle Formats
|
|
@@ -2351,6 +2513,41 @@ export declare namespace Admin {
|
|
|
2351
2513
|
type RequestHeaders = {};
|
|
2352
2514
|
type ResponseBody = OperationGroupEntityPaginatedDto;
|
|
2353
2515
|
}
|
|
2516
|
+
/**
|
|
2517
|
+
* No description
|
|
2518
|
+
* @tags Admin Tenant Operation Requests
|
|
2519
|
+
* @name ListTenantOperationRequests
|
|
2520
|
+
* @request GET:/admin/tenants/{tenantId}/requests
|
|
2521
|
+
* @secure
|
|
2522
|
+
* @response `200` `OperationRequestEntityPaginatedDto`
|
|
2523
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
2524
|
+
*/
|
|
2525
|
+
namespace ListTenantOperationRequests {
|
|
2526
|
+
type RequestParams = {
|
|
2527
|
+
tenantId: string;
|
|
2528
|
+
};
|
|
2529
|
+
type RequestQuery = {
|
|
2530
|
+
createdAt?: string;
|
|
2531
|
+
customerIds?: string[];
|
|
2532
|
+
/**
|
|
2533
|
+
* @default 10
|
|
2534
|
+
* @example 10
|
|
2535
|
+
*/
|
|
2536
|
+
limit?: number;
|
|
2537
|
+
orderBy?: OrderByEnum;
|
|
2538
|
+
/**
|
|
2539
|
+
* @default 1
|
|
2540
|
+
* @example 1
|
|
2541
|
+
*/
|
|
2542
|
+
page?: number;
|
|
2543
|
+
search?: string;
|
|
2544
|
+
sortBy?: string[];
|
|
2545
|
+
status?: OperationRequestStatusEnum[];
|
|
2546
|
+
};
|
|
2547
|
+
type RequestBody = never;
|
|
2548
|
+
type RequestHeaders = {};
|
|
2549
|
+
type ResponseBody = OperationRequestEntityPaginatedDto;
|
|
2550
|
+
}
|
|
2354
2551
|
/**
|
|
2355
2552
|
* No description
|
|
2356
2553
|
* @tags Admin Tenant Wine Bottle Formats
|
|
@@ -2753,6 +2950,25 @@ export declare namespace Admin {
|
|
|
2753
2950
|
type RequestHeaders = {};
|
|
2754
2951
|
type ResponseBody = WineVineyardEntityPaginatedDto;
|
|
2755
2952
|
}
|
|
2953
|
+
/**
|
|
2954
|
+
* No description
|
|
2955
|
+
* @tags Admin Tenant Operation Requests
|
|
2956
|
+
* @name ProcessTenantDepositRequest
|
|
2957
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/process-deposit
|
|
2958
|
+
* @secure
|
|
2959
|
+
* @response `204` `void`
|
|
2960
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
2961
|
+
*/
|
|
2962
|
+
namespace ProcessTenantDepositRequest {
|
|
2963
|
+
type RequestParams = {
|
|
2964
|
+
requestId: string;
|
|
2965
|
+
tenantId: string;
|
|
2966
|
+
};
|
|
2967
|
+
type RequestQuery = {};
|
|
2968
|
+
type RequestBody = ProcessDepositDto;
|
|
2969
|
+
type RequestHeaders = {};
|
|
2970
|
+
type ResponseBody = void;
|
|
2971
|
+
}
|
|
2756
2972
|
/**
|
|
2757
2973
|
* No description
|
|
2758
2974
|
* @tags Admin Tenant Operation Groups
|
|
@@ -2772,6 +2988,82 @@ export declare namespace Admin {
|
|
|
2772
2988
|
type RequestHeaders = {};
|
|
2773
2989
|
type ResponseBody = void;
|
|
2774
2990
|
}
|
|
2991
|
+
/**
|
|
2992
|
+
* No description
|
|
2993
|
+
* @tags Admin Tenant Operation Requests
|
|
2994
|
+
* @name ProcessTenantWithdrawRequest
|
|
2995
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/process-withdraw
|
|
2996
|
+
* @secure
|
|
2997
|
+
* @response `204` `void`
|
|
2998
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
2999
|
+
*/
|
|
3000
|
+
namespace ProcessTenantWithdrawRequest {
|
|
3001
|
+
type RequestParams = {
|
|
3002
|
+
requestId: string;
|
|
3003
|
+
tenantId: string;
|
|
3004
|
+
};
|
|
3005
|
+
type RequestQuery = {};
|
|
3006
|
+
type RequestBody = ProcessWithdrawDto;
|
|
3007
|
+
type RequestHeaders = {};
|
|
3008
|
+
type ResponseBody = void;
|
|
3009
|
+
}
|
|
3010
|
+
/**
|
|
3011
|
+
* No description
|
|
3012
|
+
* @tags Admin Tenant Operation Requests
|
|
3013
|
+
* @name RefuseTenantOperationRequest
|
|
3014
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/refuse
|
|
3015
|
+
* @secure
|
|
3016
|
+
* @response `204` `void`
|
|
3017
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
3018
|
+
*/
|
|
3019
|
+
namespace RefuseTenantOperationRequest {
|
|
3020
|
+
type RequestParams = {
|
|
3021
|
+
requestId: string;
|
|
3022
|
+
tenantId: string;
|
|
3023
|
+
};
|
|
3024
|
+
type RequestQuery = {};
|
|
3025
|
+
type RequestBody = ChangeOperationRequestWithReasonDto;
|
|
3026
|
+
type RequestHeaders = {};
|
|
3027
|
+
type ResponseBody = void;
|
|
3028
|
+
}
|
|
3029
|
+
/**
|
|
3030
|
+
* No description
|
|
3031
|
+
* @tags Admin Tenant Operation Requests
|
|
3032
|
+
* @name SetTenantOperationRequestAsProcessing
|
|
3033
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing
|
|
3034
|
+
* @secure
|
|
3035
|
+
* @response `204` `void`
|
|
3036
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
3037
|
+
*/
|
|
3038
|
+
namespace SetTenantOperationRequestAsProcessing {
|
|
3039
|
+
type RequestParams = {
|
|
3040
|
+
requestId: string;
|
|
3041
|
+
tenantId: string;
|
|
3042
|
+
};
|
|
3043
|
+
type RequestQuery = {};
|
|
3044
|
+
type RequestBody = never;
|
|
3045
|
+
type RequestHeaders = {};
|
|
3046
|
+
type ResponseBody = void;
|
|
3047
|
+
}
|
|
3048
|
+
/**
|
|
3049
|
+
* No description
|
|
3050
|
+
* @tags Admin Tenant Operation Groups
|
|
3051
|
+
* @name SyncTenantOperationGroupWithSnapshot
|
|
3052
|
+
* @request PUT:/admin/tenants/{tenantId}/operation-groups/{groupId}
|
|
3053
|
+
* @secure
|
|
3054
|
+
* @response `200` `OperationGroupEntityDto`
|
|
3055
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
3056
|
+
*/
|
|
3057
|
+
namespace SyncTenantOperationGroupWithSnapshot {
|
|
3058
|
+
type RequestParams = {
|
|
3059
|
+
groupId: string;
|
|
3060
|
+
tenantId: string;
|
|
3061
|
+
};
|
|
3062
|
+
type RequestQuery = {};
|
|
3063
|
+
type RequestBody = SyncOperationGroupWithSnapshotDto;
|
|
3064
|
+
type RequestHeaders = {};
|
|
3065
|
+
type ResponseBody = OperationGroupEntityDto;
|
|
3066
|
+
}
|
|
2775
3067
|
/**
|
|
2776
3068
|
* No description
|
|
2777
3069
|
* @tags Admin Tenant Cases
|
|
@@ -3038,6 +3330,25 @@ export declare namespace Admin {
|
|
|
3038
3330
|
type RequestHeaders = {};
|
|
3039
3331
|
type ResponseBody = WineVineyardEntityDto;
|
|
3040
3332
|
}
|
|
3333
|
+
/**
|
|
3334
|
+
* No description
|
|
3335
|
+
* @tags Admin Tenant Operation Requests
|
|
3336
|
+
* @name UpdateTenantWithdrawRequestDeliverState
|
|
3337
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/withdraw-deliver-state
|
|
3338
|
+
* @secure
|
|
3339
|
+
* @response `204` `void`
|
|
3340
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
3341
|
+
*/
|
|
3342
|
+
namespace UpdateTenantWithdrawRequestDeliverState {
|
|
3343
|
+
type RequestParams = {
|
|
3344
|
+
requestId: string;
|
|
3345
|
+
tenantId: string;
|
|
3346
|
+
};
|
|
3347
|
+
type RequestQuery = {};
|
|
3348
|
+
type RequestBody = UpdateWithdrawDeliverStateDto;
|
|
3349
|
+
type RequestHeaders = {};
|
|
3350
|
+
type ResponseBody = void;
|
|
3351
|
+
}
|
|
3041
3352
|
}
|
|
3042
3353
|
import type { AxiosInstance, AxiosRequestConfig, ResponseType } from "axios";
|
|
3043
3354
|
export type QueryParamsType = Record<string | number, any>;
|
|
@@ -3144,13 +3455,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3144
3455
|
* No description
|
|
3145
3456
|
*
|
|
3146
3457
|
* @tags Tenant Users Operation Requests
|
|
3147
|
-
* @name
|
|
3458
|
+
* @name CancelUserOperationRequest
|
|
3148
3459
|
* @request PATCH:/tenants/{tenantId}/users/userId/requests/{requestId}/cancel
|
|
3149
3460
|
* @secure
|
|
3150
|
-
* @response `
|
|
3461
|
+
* @response `204` `void`
|
|
3151
3462
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3152
3463
|
*/
|
|
3153
|
-
|
|
3464
|
+
cancelUserOperationRequest: (tenantId: string, userId: string, requestId: string, data: ChangeOperationRequestWithReasonDto, params?: RequestParams) => Promise<void>;
|
|
3154
3465
|
/**
|
|
3155
3466
|
* No description
|
|
3156
3467
|
*
|
|
@@ -3305,7 +3616,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3305
3616
|
*/
|
|
3306
3617
|
listUserOperationRequests: (tenantId: string, userId: string, query?: {
|
|
3307
3618
|
createdAt?: string;
|
|
3308
|
-
customerIds?: string[];
|
|
3309
3619
|
/**
|
|
3310
3620
|
* @default 10
|
|
3311
3621
|
* @example 10
|
|
@@ -3325,24 +3635,24 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3325
3635
|
* No description
|
|
3326
3636
|
*
|
|
3327
3637
|
* @tags Tenant Users Operation Requests
|
|
3328
|
-
* @name
|
|
3638
|
+
* @name RequestDepositOperation
|
|
3329
3639
|
* @request POST:/tenants/{tenantId}/users/userId/requests/deposit
|
|
3330
3640
|
* @secure
|
|
3331
3641
|
* @response `201` `OperationRequestEntityDto`
|
|
3332
3642
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3333
3643
|
*/
|
|
3334
|
-
|
|
3644
|
+
requestDepositOperation: (tenantId: string, userId: string, data: RequestDepositDto, params?: RequestParams) => Promise<OperationRequestEntityDto>;
|
|
3335
3645
|
/**
|
|
3336
3646
|
* No description
|
|
3337
3647
|
*
|
|
3338
3648
|
* @tags Tenant Users Operation Requests
|
|
3339
|
-
* @name
|
|
3649
|
+
* @name RequestWithdrawOperation
|
|
3340
3650
|
* @request POST:/tenants/{tenantId}/users/userId/requests/withdraw
|
|
3341
3651
|
* @secure
|
|
3342
3652
|
* @response `201` `OperationRequestEntityDto`
|
|
3343
3653
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3344
3654
|
*/
|
|
3345
|
-
|
|
3655
|
+
requestWithdrawOperation: (tenantId: string, userId: string, data: RequestWithdrawDto, params?: RequestParams) => Promise<OperationRequestEntityDto>;
|
|
3346
3656
|
/**
|
|
3347
3657
|
* No description
|
|
3348
3658
|
*
|
|
@@ -3378,6 +3688,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3378
3688
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
3379
3689
|
*/
|
|
3380
3690
|
cancelTenantOperationGroup: (tenantId: string, groupId: string, params?: RequestParams) => Promise<void>;
|
|
3691
|
+
/**
|
|
3692
|
+
* No description
|
|
3693
|
+
*
|
|
3694
|
+
* @tags Admin Tenant Operation Requests
|
|
3695
|
+
* @name CancelTenantOperationRequest
|
|
3696
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/cancel
|
|
3697
|
+
* @secure
|
|
3698
|
+
* @response `204` `void`
|
|
3699
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
3700
|
+
*/
|
|
3701
|
+
cancelTenantOperationRequest: (tenantId: string, requestId: string, data: ChangeOperationRequestWithReasonDto, params?: RequestParams) => Promise<void>;
|
|
3702
|
+
/**
|
|
3703
|
+
* No description
|
|
3704
|
+
*
|
|
3705
|
+
* @tags Admin Tenant Operation Requests
|
|
3706
|
+
* @name ConfirmTenantDepositRequest
|
|
3707
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/confirm-deposit
|
|
3708
|
+
* @secure
|
|
3709
|
+
* @response `204` `void`
|
|
3710
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
3711
|
+
*/
|
|
3712
|
+
confirmTenantDepositRequest: (tenantId: string, requestId: string, params?: RequestParams) => Promise<void>;
|
|
3381
3713
|
/**
|
|
3382
3714
|
* No description
|
|
3383
3715
|
*
|
|
@@ -3389,6 +3721,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3389
3721
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
3390
3722
|
*/
|
|
3391
3723
|
confirmTenantOperationGroup: (tenantId: string, groupId: string, params?: RequestParams) => Promise<void>;
|
|
3724
|
+
/**
|
|
3725
|
+
* No description
|
|
3726
|
+
*
|
|
3727
|
+
* @tags Admin Tenant Operation Requests
|
|
3728
|
+
* @name ConfirmTenantWithdrawRequest
|
|
3729
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/confirm-withdraw
|
|
3730
|
+
* @secure
|
|
3731
|
+
* @response `204` `void`
|
|
3732
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
3733
|
+
*/
|
|
3734
|
+
confirmTenantWithdrawRequest: (tenantId: string, requestId: string, data: ConfirmWithdrawRequestDto, params?: RequestParams) => Promise<void>;
|
|
3392
3735
|
/**
|
|
3393
3736
|
* No description
|
|
3394
3737
|
*
|
|
@@ -3741,6 +4084,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3741
4084
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
3742
4085
|
*/
|
|
3743
4086
|
getTenantOperationGroupById: (tenantId: string, groupId: string, params?: RequestParams) => Promise<FullOperationGroupEntityDto>;
|
|
4087
|
+
/**
|
|
4088
|
+
* No description
|
|
4089
|
+
*
|
|
4090
|
+
* @tags Admin Tenant Operation Requests
|
|
4091
|
+
* @name GetTenantOperationRequestById
|
|
4092
|
+
* @request GET:/admin/tenants/{tenantId}/requests/{requestId}
|
|
4093
|
+
* @secure
|
|
4094
|
+
* @response `200` `OperationRequestEntityDto`
|
|
4095
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
4096
|
+
*/
|
|
4097
|
+
getTenantOperationRequestById: (tenantId: string, requestId: string, params?: RequestParams) => Promise<OperationRequestEntityDto>;
|
|
3744
4098
|
/**
|
|
3745
4099
|
* No description
|
|
3746
4100
|
*
|
|
@@ -3986,6 +4340,34 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3986
4340
|
sortBy?: string[];
|
|
3987
4341
|
status?: OperationGroupStatusEnum[];
|
|
3988
4342
|
}, params?: RequestParams) => Promise<OperationGroupEntityPaginatedDto>;
|
|
4343
|
+
/**
|
|
4344
|
+
* No description
|
|
4345
|
+
*
|
|
4346
|
+
* @tags Admin Tenant Operation Requests
|
|
4347
|
+
* @name ListTenantOperationRequests
|
|
4348
|
+
* @request GET:/admin/tenants/{tenantId}/requests
|
|
4349
|
+
* @secure
|
|
4350
|
+
* @response `200` `OperationRequestEntityPaginatedDto`
|
|
4351
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
4352
|
+
*/
|
|
4353
|
+
listTenantOperationRequests: (tenantId: string, query?: {
|
|
4354
|
+
createdAt?: string;
|
|
4355
|
+
customerIds?: string[];
|
|
4356
|
+
/**
|
|
4357
|
+
* @default 10
|
|
4358
|
+
* @example 10
|
|
4359
|
+
*/
|
|
4360
|
+
limit?: number;
|
|
4361
|
+
orderBy?: OrderByEnum;
|
|
4362
|
+
/**
|
|
4363
|
+
* @default 1
|
|
4364
|
+
* @example 1
|
|
4365
|
+
*/
|
|
4366
|
+
page?: number;
|
|
4367
|
+
search?: string;
|
|
4368
|
+
sortBy?: string[];
|
|
4369
|
+
status?: OperationRequestStatusEnum[];
|
|
4370
|
+
}, params?: RequestParams) => Promise<OperationRequestEntityPaginatedDto>;
|
|
3989
4371
|
/**
|
|
3990
4372
|
* No description
|
|
3991
4373
|
*
|
|
@@ -4304,6 +4686,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4304
4686
|
search?: string;
|
|
4305
4687
|
sortBy?: string[];
|
|
4306
4688
|
}, params?: RequestParams) => Promise<WineVineyardEntityPaginatedDto>;
|
|
4689
|
+
/**
|
|
4690
|
+
* No description
|
|
4691
|
+
*
|
|
4692
|
+
* @tags Admin Tenant Operation Requests
|
|
4693
|
+
* @name ProcessTenantDepositRequest
|
|
4694
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/process-deposit
|
|
4695
|
+
* @secure
|
|
4696
|
+
* @response `204` `void`
|
|
4697
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
4698
|
+
*/
|
|
4699
|
+
processTenantDepositRequest: (tenantId: string, requestId: string, data: ProcessDepositDto, params?: RequestParams) => Promise<void>;
|
|
4307
4700
|
/**
|
|
4308
4701
|
* No description
|
|
4309
4702
|
*
|
|
@@ -4315,6 +4708,50 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4315
4708
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
4316
4709
|
*/
|
|
4317
4710
|
processTenantOperationGroup: (tenantId: string, groupId: string, params?: RequestParams) => Promise<void>;
|
|
4711
|
+
/**
|
|
4712
|
+
* No description
|
|
4713
|
+
*
|
|
4714
|
+
* @tags Admin Tenant Operation Requests
|
|
4715
|
+
* @name ProcessTenantWithdrawRequest
|
|
4716
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/process-withdraw
|
|
4717
|
+
* @secure
|
|
4718
|
+
* @response `204` `void`
|
|
4719
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
4720
|
+
*/
|
|
4721
|
+
processTenantWithdrawRequest: (tenantId: string, requestId: string, data: ProcessWithdrawDto, params?: RequestParams) => Promise<void>;
|
|
4722
|
+
/**
|
|
4723
|
+
* No description
|
|
4724
|
+
*
|
|
4725
|
+
* @tags Admin Tenant Operation Requests
|
|
4726
|
+
* @name RefuseTenantOperationRequest
|
|
4727
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/refuse
|
|
4728
|
+
* @secure
|
|
4729
|
+
* @response `204` `void`
|
|
4730
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
4731
|
+
*/
|
|
4732
|
+
refuseTenantOperationRequest: (tenantId: string, requestId: string, data: ChangeOperationRequestWithReasonDto, params?: RequestParams) => Promise<void>;
|
|
4733
|
+
/**
|
|
4734
|
+
* No description
|
|
4735
|
+
*
|
|
4736
|
+
* @tags Admin Tenant Operation Requests
|
|
4737
|
+
* @name SetTenantOperationRequestAsProcessing
|
|
4738
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing
|
|
4739
|
+
* @secure
|
|
4740
|
+
* @response `204` `void`
|
|
4741
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
4742
|
+
*/
|
|
4743
|
+
setTenantOperationRequestAsProcessing: (tenantId: string, requestId: string, params?: RequestParams) => Promise<void>;
|
|
4744
|
+
/**
|
|
4745
|
+
* No description
|
|
4746
|
+
*
|
|
4747
|
+
* @tags Admin Tenant Operation Groups
|
|
4748
|
+
* @name SyncTenantOperationGroupWithSnapshot
|
|
4749
|
+
* @request PUT:/admin/tenants/{tenantId}/operation-groups/{groupId}
|
|
4750
|
+
* @secure
|
|
4751
|
+
* @response `200` `OperationGroupEntityDto`
|
|
4752
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
4753
|
+
*/
|
|
4754
|
+
syncTenantOperationGroupWithSnapshot: (tenantId: string, groupId: string, data: SyncOperationGroupWithSnapshotDto, params?: RequestParams) => Promise<OperationGroupEntityDto>;
|
|
4318
4755
|
/**
|
|
4319
4756
|
* No description
|
|
4320
4757
|
*
|
|
@@ -4469,5 +4906,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4469
4906
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
4470
4907
|
*/
|
|
4471
4908
|
updateTenantWineVineyard: (tenantId: string, vineyardId: string, data: UpdateNameOnlyEntityDto, params?: RequestParams) => Promise<WineVineyardEntityDto>;
|
|
4909
|
+
/**
|
|
4910
|
+
* No description
|
|
4911
|
+
*
|
|
4912
|
+
* @tags Admin Tenant Operation Requests
|
|
4913
|
+
* @name UpdateTenantWithdrawRequestDeliverState
|
|
4914
|
+
* @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/withdraw-deliver-state
|
|
4915
|
+
* @secure
|
|
4916
|
+
* @response `204` `void`
|
|
4917
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
4918
|
+
*/
|
|
4919
|
+
updateTenantWithdrawRequestDeliverState: (tenantId: string, requestId: string, data: UpdateWithdrawDeliverStateDto, params?: RequestParams) => Promise<void>;
|
|
4472
4920
|
};
|
|
4473
4921
|
}
|