@thelllabs/winehaus-sdk 0.0.15 → 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 +252 -1
- package/dist/esm/api/api.js +251 -0
- package/dist/types/api/api.d.ts +750 -1
- package/dist/umd/index.ts +252 -1
- package/package.json +1 -1
package/dist/types/api/api.d.ts
CHANGED
|
@@ -131,6 +131,27 @@ 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
|
+
}
|
|
142
|
+
export interface CreateAddressByTemplateDto {
|
|
143
|
+
addressLine1?: string;
|
|
144
|
+
addressLine2?: string | null;
|
|
145
|
+
/** @format uuid */
|
|
146
|
+
addressId?: string;
|
|
147
|
+
city?: string;
|
|
148
|
+
country?: string;
|
|
149
|
+
location?: string;
|
|
150
|
+
name?: string;
|
|
151
|
+
notes?: string;
|
|
152
|
+
postalCode?: string;
|
|
153
|
+
state?: string;
|
|
154
|
+
}
|
|
134
155
|
export interface CreateAddressDto {
|
|
135
156
|
addressLine1: string;
|
|
136
157
|
addressLine2?: string;
|
|
@@ -254,6 +275,18 @@ export interface CreateWineInventoryItemDto {
|
|
|
254
275
|
/** @format uuid */
|
|
255
276
|
wineId: string;
|
|
256
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
|
+
}
|
|
257
290
|
export interface FullCaseOperationEntityDto {
|
|
258
291
|
/** @format uuid */
|
|
259
292
|
caseId: string;
|
|
@@ -278,6 +311,21 @@ export interface FullCaseOperationEntityDto {
|
|
|
278
311
|
updatedAt: string;
|
|
279
312
|
wines: CaseOperationWineInventoryItemEntityDto[];
|
|
280
313
|
}
|
|
314
|
+
export interface FullDepositRequestExtraDataDto {
|
|
315
|
+
address: CreateAddressByTemplateDto;
|
|
316
|
+
/** @format date-time */
|
|
317
|
+
executedShippingDateTime?: string | null;
|
|
318
|
+
/** @example "its super fragile, please take care and come with a special bag" */
|
|
319
|
+
notes?: string;
|
|
320
|
+
operationNotes?: string;
|
|
321
|
+
/** @format date-time */
|
|
322
|
+
shippingDateTime: string;
|
|
323
|
+
/**
|
|
324
|
+
* @min 1
|
|
325
|
+
* @example 1
|
|
326
|
+
*/
|
|
327
|
+
wineBottlesAmount: number;
|
|
328
|
+
}
|
|
281
329
|
export interface FullOperationGroupEntityDto {
|
|
282
330
|
/** @format date-time */
|
|
283
331
|
createdAt: string;
|
|
@@ -295,10 +343,24 @@ export interface FullOperationGroupEntityDto {
|
|
|
295
343
|
/** @format date-time */
|
|
296
344
|
updatedAt: string;
|
|
297
345
|
}
|
|
346
|
+
export interface FullWithdrawRequestExtraDataDto {
|
|
347
|
+
/** @example "completed" */
|
|
348
|
+
deliverStatus?: WithdrawRequestDeliverStatusEnum | null;
|
|
349
|
+
/** @example "pickup" */
|
|
350
|
+
deliverType?: WithdrawRequestDeliverTypeEnum | null;
|
|
351
|
+
/** @example "please add it into a cooler" */
|
|
352
|
+
notes?: string;
|
|
353
|
+
operationNotes?: string;
|
|
354
|
+
/** @format date-time */
|
|
355
|
+
pickupDateTime: string;
|
|
356
|
+
shippingAddress?: CreateAddressByTemplateDto;
|
|
357
|
+
}
|
|
298
358
|
export interface HttpExceptionDto {
|
|
299
359
|
/** @example null */
|
|
300
360
|
data?: object;
|
|
301
|
-
|
|
361
|
+
/** @example "Something went wrong" */
|
|
362
|
+
errorCode?: string;
|
|
363
|
+
errors: string[];
|
|
302
364
|
/** @example "Something went wrong" */
|
|
303
365
|
message: object;
|
|
304
366
|
/** @example "/api/foo/bar" */
|
|
@@ -386,6 +448,42 @@ export declare enum OperationGroupStatusEnum {
|
|
|
386
448
|
Processed = "processed",
|
|
387
449
|
Cancelled = "cancelled"
|
|
388
450
|
}
|
|
451
|
+
export interface OperationRequestEntityDto {
|
|
452
|
+
/** @format date-time */
|
|
453
|
+
createdAt: string;
|
|
454
|
+
customer: UserEntityDto;
|
|
455
|
+
/** @format uuid */
|
|
456
|
+
customerId: string;
|
|
457
|
+
extraData: FullDepositRequestExtraDataDto | FullWithdrawRequestExtraDataDto;
|
|
458
|
+
/** @format uuid */
|
|
459
|
+
id: string;
|
|
460
|
+
reason?: string | null;
|
|
461
|
+
/** @example "scheduled" */
|
|
462
|
+
status: OperationRequestStatusEnum;
|
|
463
|
+
/** @format uuid */
|
|
464
|
+
tenantId: string;
|
|
465
|
+
/** @example "deposit" */
|
|
466
|
+
type: OperationRequestTypeEnum;
|
|
467
|
+
/** @format date-time */
|
|
468
|
+
updatedAt: string;
|
|
469
|
+
}
|
|
470
|
+
export interface OperationRequestEntityPaginatedDto {
|
|
471
|
+
items: OperationRequestEntityDto[];
|
|
472
|
+
links?: PaginationLinksDto;
|
|
473
|
+
meta: PaginationMetaDto;
|
|
474
|
+
}
|
|
475
|
+
export declare enum OperationRequestStatusEnum {
|
|
476
|
+
WaitingConfirmation = "waiting_confirmation",
|
|
477
|
+
Scheduled = "scheduled",
|
|
478
|
+
Processing = "processing",
|
|
479
|
+
Processed = "processed",
|
|
480
|
+
Refused = "refused",
|
|
481
|
+
Cancelled = "cancelled"
|
|
482
|
+
}
|
|
483
|
+
export declare enum OperationRequestTypeEnum {
|
|
484
|
+
Deposit = "deposit",
|
|
485
|
+
Withdrawal = "withdrawal"
|
|
486
|
+
}
|
|
389
487
|
export declare enum OrderByEnum {
|
|
390
488
|
ASC = "ASC",
|
|
391
489
|
DESC = "DESC"
|
|
@@ -422,11 +520,47 @@ export declare enum PhoneTypeEnum {
|
|
|
422
520
|
Fixed = "fixed",
|
|
423
521
|
Mobile = "mobile"
|
|
424
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
|
+
}
|
|
539
|
+
export interface RequestDepositDto {
|
|
540
|
+
address: CreateAddressByTemplateDto;
|
|
541
|
+
/** @example "its super fragile, please take care and come with a special bag" */
|
|
542
|
+
notes?: string;
|
|
543
|
+
/** @format date-time */
|
|
544
|
+
shippingDateTime: string;
|
|
545
|
+
/**
|
|
546
|
+
* @min 1
|
|
547
|
+
* @example 1
|
|
548
|
+
*/
|
|
549
|
+
wineBottlesAmount: number;
|
|
550
|
+
}
|
|
425
551
|
export interface RequestPasswordResetDto {
|
|
426
552
|
email: string;
|
|
427
553
|
/** @format uuid */
|
|
428
554
|
tenantId: string;
|
|
429
555
|
}
|
|
556
|
+
export interface RequestWithdrawDto {
|
|
557
|
+
/** @example "please add it into a cooler" */
|
|
558
|
+
notes?: string;
|
|
559
|
+
/** @format date-time */
|
|
560
|
+
pickupDateTime: string;
|
|
561
|
+
/** @minItems 1 */
|
|
562
|
+
wines: WithdrawWineInventoryItemDto[];
|
|
563
|
+
}
|
|
430
564
|
export interface ResetPasswordDto {
|
|
431
565
|
/** @example "user@example.com" */
|
|
432
566
|
email: string;
|
|
@@ -453,6 +587,12 @@ export interface SigninResponseDto {
|
|
|
453
587
|
token: string;
|
|
454
588
|
user: UserEntityDto;
|
|
455
589
|
}
|
|
590
|
+
export interface SyncOperationGroupWithSnapshotDto {
|
|
591
|
+
/** @minItems 0 */
|
|
592
|
+
extras?: UpdateOperationExtraDto[];
|
|
593
|
+
/** @minItems 1 */
|
|
594
|
+
operations: UpdateCaseOperationDto[];
|
|
595
|
+
}
|
|
456
596
|
export declare enum TenantRoleEnum {
|
|
457
597
|
Operator = "operator",
|
|
458
598
|
Admin = "admin",
|
|
@@ -475,11 +615,37 @@ export interface UpdateCaseDto {
|
|
|
475
615
|
maxItems: number;
|
|
476
616
|
name: string;
|
|
477
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
|
+
}
|
|
478
632
|
export interface UpdateNameOnlyEntityDto {
|
|
479
633
|
/** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
|
|
480
634
|
isGlobal?: boolean;
|
|
481
635
|
name: string;
|
|
482
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
|
+
}
|
|
483
649
|
export interface UpdateOperationExtraTemplateDto {
|
|
484
650
|
description?: string | null;
|
|
485
651
|
invoiceTitle: string;
|
|
@@ -544,6 +710,25 @@ export interface UpdateWineDto {
|
|
|
544
710
|
/** @format uuid */
|
|
545
711
|
vineyardId?: string | null;
|
|
546
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
|
+
}
|
|
547
732
|
export interface UserEntityDto {
|
|
548
733
|
/** @format date-time */
|
|
549
734
|
createdAt: string;
|
|
@@ -816,6 +1001,23 @@ export interface WineVineyardEntityPaginatedDto {
|
|
|
816
1001
|
links?: PaginationLinksDto;
|
|
817
1002
|
meta: PaginationMetaDto;
|
|
818
1003
|
}
|
|
1004
|
+
export declare enum WithdrawRequestDeliverStatusEnum {
|
|
1005
|
+
Pending = "pending",
|
|
1006
|
+
InSeparation = "in_separation",
|
|
1007
|
+
ReadyForDeliver = "ready_for_deliver",
|
|
1008
|
+
InTransit = "in_transit",
|
|
1009
|
+
Completed = "completed"
|
|
1010
|
+
}
|
|
1011
|
+
export declare enum WithdrawRequestDeliverTypeEnum {
|
|
1012
|
+
Shipping = "shipping",
|
|
1013
|
+
Pickup = "pickup"
|
|
1014
|
+
}
|
|
1015
|
+
export interface WithdrawWineInventoryItemDto {
|
|
1016
|
+
/** @min 1 */
|
|
1017
|
+
amount: number;
|
|
1018
|
+
/** @format uuid */
|
|
1019
|
+
inventoryItemId: string;
|
|
1020
|
+
}
|
|
819
1021
|
export declare namespace Auth {
|
|
820
1022
|
/**
|
|
821
1023
|
* No description
|
|
@@ -879,6 +1081,26 @@ export declare namespace Auth {
|
|
|
879
1081
|
}
|
|
880
1082
|
}
|
|
881
1083
|
export declare namespace Tenants {
|
|
1084
|
+
/**
|
|
1085
|
+
* No description
|
|
1086
|
+
* @tags Tenant Users Operation Requests
|
|
1087
|
+
* @name CancelUserOperationRequest
|
|
1088
|
+
* @request PATCH:/tenants/{tenantId}/users/userId/requests/{requestId}/cancel
|
|
1089
|
+
* @secure
|
|
1090
|
+
* @response `204` `void`
|
|
1091
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1092
|
+
*/
|
|
1093
|
+
namespace CancelUserOperationRequest {
|
|
1094
|
+
type RequestParams = {
|
|
1095
|
+
requestId: string;
|
|
1096
|
+
tenantId: string;
|
|
1097
|
+
userId: string;
|
|
1098
|
+
};
|
|
1099
|
+
type RequestQuery = {};
|
|
1100
|
+
type RequestBody = ChangeOperationRequestWithReasonDto;
|
|
1101
|
+
type RequestHeaders = {};
|
|
1102
|
+
type ResponseBody = void;
|
|
1103
|
+
}
|
|
882
1104
|
/**
|
|
883
1105
|
* No description
|
|
884
1106
|
* @tags Tenant Users
|
|
@@ -1012,6 +1234,26 @@ export declare namespace Tenants {
|
|
|
1012
1234
|
type RequestHeaders = {};
|
|
1013
1235
|
type ResponseBody = UserEntityDto;
|
|
1014
1236
|
}
|
|
1237
|
+
/**
|
|
1238
|
+
* No description
|
|
1239
|
+
* @tags Tenant Users Operation Requests
|
|
1240
|
+
* @name GetUserOperationRequestById
|
|
1241
|
+
* @request GET:/tenants/{tenantId}/users/userId/requests/{requestId}
|
|
1242
|
+
* @secure
|
|
1243
|
+
* @response `200` `OperationRequestEntityDto`
|
|
1244
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1245
|
+
*/
|
|
1246
|
+
namespace GetUserOperationRequestById {
|
|
1247
|
+
type RequestParams = {
|
|
1248
|
+
requestId: string;
|
|
1249
|
+
tenantId: string;
|
|
1250
|
+
userId: string;
|
|
1251
|
+
};
|
|
1252
|
+
type RequestQuery = {};
|
|
1253
|
+
type RequestBody = never;
|
|
1254
|
+
type RequestHeaders = {};
|
|
1255
|
+
type ResponseBody = OperationRequestEntityDto;
|
|
1256
|
+
}
|
|
1015
1257
|
/**
|
|
1016
1258
|
* No description
|
|
1017
1259
|
* @tags Tenant Users
|
|
@@ -1081,6 +1323,79 @@ export declare namespace Tenants {
|
|
|
1081
1323
|
type RequestHeaders = {};
|
|
1082
1324
|
type ResponseBody = AddressEntityPaginatedDto;
|
|
1083
1325
|
}
|
|
1326
|
+
/**
|
|
1327
|
+
* No description
|
|
1328
|
+
* @tags Tenant Users Operation Requests
|
|
1329
|
+
* @name ListUserOperationRequests
|
|
1330
|
+
* @request GET:/tenants/{tenantId}/users/userId/requests
|
|
1331
|
+
* @secure
|
|
1332
|
+
* @response `200` `OperationRequestEntityPaginatedDto`
|
|
1333
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1334
|
+
*/
|
|
1335
|
+
namespace ListUserOperationRequests {
|
|
1336
|
+
type RequestParams = {
|
|
1337
|
+
tenantId: string;
|
|
1338
|
+
userId: string;
|
|
1339
|
+
};
|
|
1340
|
+
type RequestQuery = {
|
|
1341
|
+
createdAt?: string;
|
|
1342
|
+
/**
|
|
1343
|
+
* @default 10
|
|
1344
|
+
* @example 10
|
|
1345
|
+
*/
|
|
1346
|
+
limit?: number;
|
|
1347
|
+
orderBy?: OrderByEnum;
|
|
1348
|
+
/**
|
|
1349
|
+
* @default 1
|
|
1350
|
+
* @example 1
|
|
1351
|
+
*/
|
|
1352
|
+
page?: number;
|
|
1353
|
+
search?: string;
|
|
1354
|
+
sortBy?: string[];
|
|
1355
|
+
status?: OperationRequestStatusEnum[];
|
|
1356
|
+
};
|
|
1357
|
+
type RequestBody = never;
|
|
1358
|
+
type RequestHeaders = {};
|
|
1359
|
+
type ResponseBody = OperationRequestEntityPaginatedDto;
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
* No description
|
|
1363
|
+
* @tags Tenant Users Operation Requests
|
|
1364
|
+
* @name RequestDepositOperation
|
|
1365
|
+
* @request POST:/tenants/{tenantId}/users/userId/requests/deposit
|
|
1366
|
+
* @secure
|
|
1367
|
+
* @response `201` `OperationRequestEntityDto`
|
|
1368
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1369
|
+
*/
|
|
1370
|
+
namespace RequestDepositOperation {
|
|
1371
|
+
type RequestParams = {
|
|
1372
|
+
tenantId: string;
|
|
1373
|
+
userId: string;
|
|
1374
|
+
};
|
|
1375
|
+
type RequestQuery = {};
|
|
1376
|
+
type RequestBody = RequestDepositDto;
|
|
1377
|
+
type RequestHeaders = {};
|
|
1378
|
+
type ResponseBody = OperationRequestEntityDto;
|
|
1379
|
+
}
|
|
1380
|
+
/**
|
|
1381
|
+
* No description
|
|
1382
|
+
* @tags Tenant Users Operation Requests
|
|
1383
|
+
* @name RequestWithdrawOperation
|
|
1384
|
+
* @request POST:/tenants/{tenantId}/users/userId/requests/withdraw
|
|
1385
|
+
* @secure
|
|
1386
|
+
* @response `201` `OperationRequestEntityDto`
|
|
1387
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1388
|
+
*/
|
|
1389
|
+
namespace RequestWithdrawOperation {
|
|
1390
|
+
type RequestParams = {
|
|
1391
|
+
tenantId: string;
|
|
1392
|
+
userId: string;
|
|
1393
|
+
};
|
|
1394
|
+
type RequestQuery = {};
|
|
1395
|
+
type RequestBody = RequestWithdrawDto;
|
|
1396
|
+
type RequestHeaders = {};
|
|
1397
|
+
type ResponseBody = OperationRequestEntityDto;
|
|
1398
|
+
}
|
|
1084
1399
|
/**
|
|
1085
1400
|
* No description
|
|
1086
1401
|
* @tags Tenant Users
|
|
@@ -1140,6 +1455,44 @@ export declare namespace Admin {
|
|
|
1140
1455
|
type RequestHeaders = {};
|
|
1141
1456
|
type ResponseBody = void;
|
|
1142
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
|
+
}
|
|
1143
1496
|
/**
|
|
1144
1497
|
* No description
|
|
1145
1498
|
* @tags Admin Tenant Operation Groups
|
|
@@ -1159,6 +1512,25 @@ export declare namespace Admin {
|
|
|
1159
1512
|
type RequestHeaders = {};
|
|
1160
1513
|
type ResponseBody = void;
|
|
1161
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
|
+
}
|
|
1162
1534
|
/**
|
|
1163
1535
|
* No description
|
|
1164
1536
|
* @tags Admin Tenant Cases
|
|
@@ -1752,6 +2124,25 @@ export declare namespace Admin {
|
|
|
1752
2124
|
type RequestHeaders = {};
|
|
1753
2125
|
type ResponseBody = FullOperationGroupEntityDto;
|
|
1754
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
|
+
}
|
|
1755
2146
|
/**
|
|
1756
2147
|
* No description
|
|
1757
2148
|
* @tags Admin Tenant Wine Bottle Formats
|
|
@@ -2122,6 +2513,41 @@ export declare namespace Admin {
|
|
|
2122
2513
|
type RequestHeaders = {};
|
|
2123
2514
|
type ResponseBody = OperationGroupEntityPaginatedDto;
|
|
2124
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
|
+
}
|
|
2125
2551
|
/**
|
|
2126
2552
|
* No description
|
|
2127
2553
|
* @tags Admin Tenant Wine Bottle Formats
|
|
@@ -2524,6 +2950,25 @@ export declare namespace Admin {
|
|
|
2524
2950
|
type RequestHeaders = {};
|
|
2525
2951
|
type ResponseBody = WineVineyardEntityPaginatedDto;
|
|
2526
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
|
+
}
|
|
2527
2972
|
/**
|
|
2528
2973
|
* No description
|
|
2529
2974
|
* @tags Admin Tenant Operation Groups
|
|
@@ -2543,6 +2988,82 @@ export declare namespace Admin {
|
|
|
2543
2988
|
type RequestHeaders = {};
|
|
2544
2989
|
type ResponseBody = void;
|
|
2545
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
|
+
}
|
|
2546
3067
|
/**
|
|
2547
3068
|
* No description
|
|
2548
3069
|
* @tags Admin Tenant Cases
|
|
@@ -2809,6 +3330,25 @@ export declare namespace Admin {
|
|
|
2809
3330
|
type RequestHeaders = {};
|
|
2810
3331
|
type ResponseBody = WineVineyardEntityDto;
|
|
2811
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
|
+
}
|
|
2812
3352
|
}
|
|
2813
3353
|
import type { AxiosInstance, AxiosRequestConfig, ResponseType } from "axios";
|
|
2814
3354
|
export type QueryParamsType = Record<string | number, any>;
|
|
@@ -2911,6 +3451,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2911
3451
|
signIn: (data: SigninDto, params?: RequestParams) => Promise<SigninResponseDto>;
|
|
2912
3452
|
};
|
|
2913
3453
|
tenants: {
|
|
3454
|
+
/**
|
|
3455
|
+
* No description
|
|
3456
|
+
*
|
|
3457
|
+
* @tags Tenant Users Operation Requests
|
|
3458
|
+
* @name CancelUserOperationRequest
|
|
3459
|
+
* @request PATCH:/tenants/{tenantId}/users/userId/requests/{requestId}/cancel
|
|
3460
|
+
* @secure
|
|
3461
|
+
* @response `204` `void`
|
|
3462
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3463
|
+
*/
|
|
3464
|
+
cancelUserOperationRequest: (tenantId: string, userId: string, requestId: string, data: ChangeOperationRequestWithReasonDto, params?: RequestParams) => Promise<void>;
|
|
2914
3465
|
/**
|
|
2915
3466
|
* No description
|
|
2916
3467
|
*
|
|
@@ -2988,6 +3539,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2988
3539
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
2989
3540
|
*/
|
|
2990
3541
|
getTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<UserEntityDto>;
|
|
3542
|
+
/**
|
|
3543
|
+
* No description
|
|
3544
|
+
*
|
|
3545
|
+
* @tags Tenant Users Operation Requests
|
|
3546
|
+
* @name GetUserOperationRequestById
|
|
3547
|
+
* @request GET:/tenants/{tenantId}/users/userId/requests/{requestId}
|
|
3548
|
+
* @secure
|
|
3549
|
+
* @response `200` `OperationRequestEntityDto`
|
|
3550
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3551
|
+
*/
|
|
3552
|
+
getUserOperationRequestById: (tenantId: string, userId: string, requestId: string, params?: RequestParams) => Promise<OperationRequestEntityDto>;
|
|
2991
3553
|
/**
|
|
2992
3554
|
* No description
|
|
2993
3555
|
*
|
|
@@ -3042,6 +3604,55 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3042
3604
|
search?: string;
|
|
3043
3605
|
sortBy?: string[];
|
|
3044
3606
|
}, params?: RequestParams) => Promise<AddressEntityPaginatedDto>;
|
|
3607
|
+
/**
|
|
3608
|
+
* No description
|
|
3609
|
+
*
|
|
3610
|
+
* @tags Tenant Users Operation Requests
|
|
3611
|
+
* @name ListUserOperationRequests
|
|
3612
|
+
* @request GET:/tenants/{tenantId}/users/userId/requests
|
|
3613
|
+
* @secure
|
|
3614
|
+
* @response `200` `OperationRequestEntityPaginatedDto`
|
|
3615
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3616
|
+
*/
|
|
3617
|
+
listUserOperationRequests: (tenantId: string, userId: string, query?: {
|
|
3618
|
+
createdAt?: string;
|
|
3619
|
+
/**
|
|
3620
|
+
* @default 10
|
|
3621
|
+
* @example 10
|
|
3622
|
+
*/
|
|
3623
|
+
limit?: number;
|
|
3624
|
+
orderBy?: OrderByEnum;
|
|
3625
|
+
/**
|
|
3626
|
+
* @default 1
|
|
3627
|
+
* @example 1
|
|
3628
|
+
*/
|
|
3629
|
+
page?: number;
|
|
3630
|
+
search?: string;
|
|
3631
|
+
sortBy?: string[];
|
|
3632
|
+
status?: OperationRequestStatusEnum[];
|
|
3633
|
+
}, params?: RequestParams) => Promise<OperationRequestEntityPaginatedDto>;
|
|
3634
|
+
/**
|
|
3635
|
+
* No description
|
|
3636
|
+
*
|
|
3637
|
+
* @tags Tenant Users Operation Requests
|
|
3638
|
+
* @name RequestDepositOperation
|
|
3639
|
+
* @request POST:/tenants/{tenantId}/users/userId/requests/deposit
|
|
3640
|
+
* @secure
|
|
3641
|
+
* @response `201` `OperationRequestEntityDto`
|
|
3642
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3643
|
+
*/
|
|
3644
|
+
requestDepositOperation: (tenantId: string, userId: string, data: RequestDepositDto, params?: RequestParams) => Promise<OperationRequestEntityDto>;
|
|
3645
|
+
/**
|
|
3646
|
+
* No description
|
|
3647
|
+
*
|
|
3648
|
+
* @tags Tenant Users Operation Requests
|
|
3649
|
+
* @name RequestWithdrawOperation
|
|
3650
|
+
* @request POST:/tenants/{tenantId}/users/userId/requests/withdraw
|
|
3651
|
+
* @secure
|
|
3652
|
+
* @response `201` `OperationRequestEntityDto`
|
|
3653
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3654
|
+
*/
|
|
3655
|
+
requestWithdrawOperation: (tenantId: string, userId: string, data: RequestWithdrawDto, params?: RequestParams) => Promise<OperationRequestEntityDto>;
|
|
3045
3656
|
/**
|
|
3046
3657
|
* No description
|
|
3047
3658
|
*
|
|
@@ -3077,6 +3688,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3077
3688
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
3078
3689
|
*/
|
|
3079
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>;
|
|
3080
3713
|
/**
|
|
3081
3714
|
* No description
|
|
3082
3715
|
*
|
|
@@ -3088,6 +3721,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3088
3721
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
3089
3722
|
*/
|
|
3090
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>;
|
|
3091
3735
|
/**
|
|
3092
3736
|
* No description
|
|
3093
3737
|
*
|
|
@@ -3440,6 +4084,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3440
4084
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
3441
4085
|
*/
|
|
3442
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>;
|
|
3443
4098
|
/**
|
|
3444
4099
|
* No description
|
|
3445
4100
|
*
|
|
@@ -3685,6 +4340,34 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3685
4340
|
sortBy?: string[];
|
|
3686
4341
|
status?: OperationGroupStatusEnum[];
|
|
3687
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>;
|
|
3688
4371
|
/**
|
|
3689
4372
|
* No description
|
|
3690
4373
|
*
|
|
@@ -4003,6 +4686,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4003
4686
|
search?: string;
|
|
4004
4687
|
sortBy?: string[];
|
|
4005
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>;
|
|
4006
4700
|
/**
|
|
4007
4701
|
* No description
|
|
4008
4702
|
*
|
|
@@ -4014,6 +4708,50 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4014
4708
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
4015
4709
|
*/
|
|
4016
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>;
|
|
4017
4755
|
/**
|
|
4018
4756
|
* No description
|
|
4019
4757
|
*
|
|
@@ -4168,5 +4906,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4168
4906
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
4169
4907
|
*/
|
|
4170
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>;
|
|
4171
4920
|
};
|
|
4172
4921
|
}
|