@thelllabs/winehaus-sdk 0.0.14 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,9 +26,6 @@ export interface AddressEntityPaginatedDto {
26
26
  links?: PaginationLinksDto;
27
27
  meta: PaginationMetaDto;
28
28
  }
29
- export interface CaseBatchOperationResponseDto {
30
- operations: CaseOperationEntityDto[];
31
- }
32
29
  export interface CaseEntityDto {
33
30
  /** @format date-time */
34
31
  billingEndDate?: string | null;
@@ -59,50 +56,6 @@ export interface CaseEntityPaginatedDto {
59
56
  links?: PaginationLinksDto;
60
57
  meta: PaginationMetaDto;
61
58
  }
62
- export interface CaseOperationEntityDto {
63
- /** @format uuid */
64
- caseId: string;
65
- /** @format date-time */
66
- createdAt: string;
67
- /** @format uuid */
68
- id: string;
69
- /** @example [] */
70
- logs: CaseOperationLogDto[];
71
- /** @format uuid */
72
- requestId?: string | null;
73
- /** @example "processed" */
74
- status: CaseOperationStatusEnum;
75
- /** @format uuid */
76
- tenantId: string;
77
- /** @example "deposit" */
78
- type: CaseOperationTypesEnum;
79
- /** @format date-time */
80
- updatedAt: string;
81
- }
82
- export interface CaseOperationExtraTemplateEntityDto {
83
- /** @format date-time */
84
- createdAt: string;
85
- /** @format date-time */
86
- deletedAt?: string | null;
87
- description?: string | null;
88
- /** @format uuid */
89
- id: string;
90
- invoiceTitle: string;
91
- /**
92
- * @min 0
93
- * @example 100
94
- */
95
- pricePerItem: number;
96
- /** @format uuid */
97
- tenantId?: string | null;
98
- /** @format date-time */
99
- updatedAt: string;
100
- }
101
- export interface CaseOperationExtraTemplateEntityPaginatedDto {
102
- items: CaseOperationExtraTemplateEntityDto[];
103
- links?: PaginationLinksDto;
104
- meta: PaginationMetaDto;
105
- }
106
59
  export interface CaseOperationLogDto {
107
60
  /** @example "confirmed" */
108
61
  currentStatus?: CaseOperationStatusEnum;
@@ -127,6 +80,29 @@ export declare enum CaseOperationTypesEnum {
127
80
  Deposit = "deposit",
128
81
  Withdrawal = "withdrawal"
129
82
  }
83
+ export interface CaseOperationWineInventoryItemEntityDto {
84
+ /** @min 0 */
85
+ amount: number;
86
+ bottleFormat: WineBottleFormatEntityDto;
87
+ /** @format uuid */
88
+ bottleFormatId: string;
89
+ bottleVintage: WineBottleVintageEntityDto;
90
+ /** @format uuid */
91
+ bottleVintageId: string;
92
+ /** @format date-time */
93
+ createdAt: string;
94
+ /** @format uuid */
95
+ id: string;
96
+ /** @format uuid */
97
+ operationId?: string | null;
98
+ /** @format uuid */
99
+ tenantId: string;
100
+ /** @format date-time */
101
+ updatedAt: string;
102
+ wine: WineEntityDto;
103
+ /** @format uuid */
104
+ wineId: string;
105
+ }
130
106
  export interface CaseWineInventoryItemEntityDto {
131
107
  /** @min 0 */
132
108
  amount: number;
@@ -155,6 +131,19 @@ export interface CaseWineInventoryItemEntityPaginatedDto {
155
131
  links?: PaginationLinksDto;
156
132
  meta: PaginationMetaDto;
157
133
  }
134
+ export interface CreateAddressByTemplateDto {
135
+ addressLine1?: string;
136
+ addressLine2?: string | null;
137
+ /** @format uuid */
138
+ addressId?: string;
139
+ city?: string;
140
+ country?: string;
141
+ location?: string;
142
+ name?: string;
143
+ notes?: string;
144
+ postalCode?: string;
145
+ state?: string;
146
+ }
158
147
  export interface CreateAddressDto {
159
148
  addressLine1: string;
160
149
  addressLine2?: string;
@@ -166,10 +155,6 @@ export interface CreateAddressDto {
166
155
  postalCode: string;
167
156
  state: string;
168
157
  }
169
- export interface CreateBatchCaseOperationsDto {
170
- /** @minItems 1 */
171
- operations: CreateCaseOperationDto[];
172
- }
173
158
  export interface CreateCaseDto {
174
159
  /** @format date-time */
175
160
  billingEndDate?: string | null;
@@ -183,18 +168,28 @@ export interface CreateCaseDto {
183
168
  name: string;
184
169
  }
185
170
  export interface CreateCaseOperationDto {
171
+ /** @format uuid */
172
+ caseId: string;
186
173
  /** @minItems 0 */
187
- extras?: CreateCaseOperationExtraDto[];
174
+ extras?: CreateOperationExtraDto[];
188
175
  /** @format uuid */
189
176
  requestId?: string | null;
190
- /** @example "processed" */
191
- status?: CreateOnlyCaseOperationStatusEnum;
192
177
  /** @example "deposit" */
193
178
  type: CaseOperationTypesEnum;
194
179
  /** @minItems 1 */
195
180
  wines: CreateWineInventoryItemDto[];
196
181
  }
197
- export interface CreateCaseOperationExtraDto {
182
+ export interface CreateNameOnlyEntityDto {
183
+ /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
184
+ isGlobal?: boolean;
185
+ name: string;
186
+ }
187
+ export declare enum CreateOnlyOperationGroupStatusEnum {
188
+ OnHold = "on_hold",
189
+ Confirmed = "confirmed",
190
+ Processed = "processed"
191
+ }
192
+ export interface CreateOperationExtraDto {
198
193
  /** @min 1 */
199
194
  amount?: number | null;
200
195
  description?: string | null;
@@ -204,7 +199,7 @@ export interface CreateCaseOperationExtraDto {
204
199
  /** @format uuid */
205
200
  templateId?: string;
206
201
  }
207
- export interface CreateCaseOperationExtraTemplateDto {
202
+ export interface CreateOperationExtraTemplateDto {
208
203
  description?: string | null;
209
204
  invoiceTitle: string;
210
205
  /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
@@ -212,15 +207,15 @@ export interface CreateCaseOperationExtraTemplateDto {
212
207
  /** @example 100 */
213
208
  pricePerItem: number;
214
209
  }
215
- export interface CreateNameOnlyEntityDto {
216
- /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
217
- isGlobal?: boolean;
218
- name: string;
219
- }
220
- export declare enum CreateOnlyCaseOperationStatusEnum {
221
- OnHold = "on_hold",
222
- Confirmed = "confirmed",
223
- Processed = "processed"
210
+ export interface CreateOperationGroupDto {
211
+ /** @format uuid */
212
+ customerId: string;
213
+ /** @minItems 0 */
214
+ extras?: CreateOperationExtraDto[];
215
+ /** @minItems 1 */
216
+ operations: CreateCaseOperationDto[];
217
+ /** @example "processed" */
218
+ status?: CreateOnlyOperationGroupStatusEnum;
224
219
  }
225
220
  export interface CreateUserDto {
226
221
  email: string;
@@ -272,10 +267,80 @@ export interface CreateWineInventoryItemDto {
272
267
  /** @format uuid */
273
268
  wineId: string;
274
269
  }
270
+ export interface FullCaseOperationEntityDto {
271
+ /** @format uuid */
272
+ caseId: string;
273
+ /** @format date-time */
274
+ createdAt: string;
275
+ extras: OperationExtraEntityDto[];
276
+ /** @format uuid */
277
+ groupId: string;
278
+ /** @format uuid */
279
+ id: string;
280
+ /** @example [] */
281
+ logs: CaseOperationLogDto[];
282
+ /** @format uuid */
283
+ requestId?: string | null;
284
+ /** @example "processed" */
285
+ status: CaseOperationStatusEnum;
286
+ /** @format uuid */
287
+ tenantId: string;
288
+ /** @example "deposit" */
289
+ type: CaseOperationTypesEnum;
290
+ /** @format date-time */
291
+ updatedAt: string;
292
+ wines: CaseOperationWineInventoryItemEntityDto[];
293
+ }
294
+ export interface FullDepositRequestExtraDataDto {
295
+ address: CreateAddressByTemplateDto;
296
+ /** @format date-time */
297
+ executedShippingDateTime?: string | null;
298
+ /** @example "its super fragile, please take care and come with a special bag" */
299
+ notes?: string;
300
+ operationNotes?: string;
301
+ /** @format date-time */
302
+ shippingDateTime: string;
303
+ /**
304
+ * @min 1
305
+ * @example 1
306
+ */
307
+ wineBottlesAmount: number;
308
+ }
309
+ export interface FullOperationGroupEntityDto {
310
+ /** @format date-time */
311
+ createdAt: string;
312
+ customer: UserEntityDto;
313
+ /** @format uuid */
314
+ customerId: string;
315
+ extras: OperationExtraEntityDto[];
316
+ /** @format uuid */
317
+ id: string;
318
+ operations: FullCaseOperationEntityDto[];
319
+ /** @example "processed" */
320
+ status: OperationGroupStatusEnum;
321
+ /** @format uuid */
322
+ tenantId: string;
323
+ /** @format date-time */
324
+ updatedAt: string;
325
+ }
326
+ export interface FullWithdrawRequestExtraDataDto {
327
+ /** @example "completed" */
328
+ deliverStatus?: WithdrawRequestDeliverStatusEnum | null;
329
+ /** @example "pickup" */
330
+ deliverType?: WithdrawRequestDeliverTypeEnum | null;
331
+ /** @example "please add it into a cooler" */
332
+ notes?: string;
333
+ operationNotes?: string;
334
+ /** @format date-time */
335
+ pickupDateTime: string;
336
+ shippingAddress?: CreateAddressByTemplateDto;
337
+ }
275
338
  export interface HttpExceptionDto {
276
339
  /** @example null */
277
340
  data?: object;
278
- error: string;
341
+ /** @example "Something went wrong" */
342
+ errorCode?: string;
343
+ errors: string[];
279
344
  /** @example "Something went wrong" */
280
345
  message: object;
281
346
  /** @example "/api/foo/bar" */
@@ -285,6 +350,120 @@ export interface HttpExceptionDto {
285
350
  /** @example "2022-07-25T17:24:07.042Z" */
286
351
  timestamp: string;
287
352
  }
353
+ export interface OperationExtraEntityDto {
354
+ /**
355
+ * @min 0
356
+ * @example 100
357
+ */
358
+ amount: number;
359
+ /** @format date-time */
360
+ createdAt: string;
361
+ description?: string | null;
362
+ /** @format uuid */
363
+ id: string;
364
+ invoiceTitle: string;
365
+ /** @format uuid */
366
+ operationGroupId?: string | null;
367
+ /** @format uuid */
368
+ operationId?: string | null;
369
+ /**
370
+ * @min 0
371
+ * @example 100
372
+ */
373
+ pricePerItem: number;
374
+ /** @format uuid */
375
+ templateId?: string | null;
376
+ /** @format uuid */
377
+ tenantId: string;
378
+ /** @format date-time */
379
+ updatedAt: string;
380
+ }
381
+ export interface OperationExtraTemplateEntityDto {
382
+ /** @format date-time */
383
+ createdAt: string;
384
+ /** @format date-time */
385
+ deletedAt?: string | null;
386
+ description?: string | null;
387
+ /** @format uuid */
388
+ id: string;
389
+ invoiceTitle: string;
390
+ /**
391
+ * @min 0
392
+ * @example 100
393
+ */
394
+ pricePerItem: number;
395
+ /** @format uuid */
396
+ tenantId?: string | null;
397
+ /** @format date-time */
398
+ updatedAt: string;
399
+ }
400
+ export interface OperationExtraTemplateEntityPaginatedDto {
401
+ items: OperationExtraTemplateEntityDto[];
402
+ links?: PaginationLinksDto;
403
+ meta: PaginationMetaDto;
404
+ }
405
+ export interface OperationGroupEntityDto {
406
+ /** @format date-time */
407
+ createdAt: string;
408
+ customer: UserEntityDto;
409
+ /** @format uuid */
410
+ customerId: string;
411
+ /** @format uuid */
412
+ id: string;
413
+ /** @example "processed" */
414
+ status: OperationGroupStatusEnum;
415
+ /** @format uuid */
416
+ tenantId: string;
417
+ /** @format date-time */
418
+ updatedAt: string;
419
+ }
420
+ export interface OperationGroupEntityPaginatedDto {
421
+ items: OperationGroupEntityDto[];
422
+ links?: PaginationLinksDto;
423
+ meta: PaginationMetaDto;
424
+ }
425
+ export declare enum OperationGroupStatusEnum {
426
+ OnHold = "on_hold",
427
+ Confirmed = "confirmed",
428
+ Processed = "processed",
429
+ Cancelled = "cancelled"
430
+ }
431
+ export interface OperationRequestEntityDto {
432
+ /** @format date-time */
433
+ createdAt: string;
434
+ customer: UserEntityDto;
435
+ /** @format uuid */
436
+ customerId: string;
437
+ extraData: FullDepositRequestExtraDataDto | FullWithdrawRequestExtraDataDto;
438
+ /** @format uuid */
439
+ id: string;
440
+ reason?: string | null;
441
+ /** @example "scheduled" */
442
+ status: OperationRequestStatusEnum;
443
+ /** @format uuid */
444
+ tenantId: string;
445
+ /** @example "deposit" */
446
+ type: OperationRequestTypeEnum;
447
+ /** @format date-time */
448
+ updatedAt: string;
449
+ }
450
+ export interface OperationRequestEntityPaginatedDto {
451
+ items: OperationRequestEntityDto[];
452
+ links?: PaginationLinksDto;
453
+ meta: PaginationMetaDto;
454
+ }
455
+ export declare enum OperationRequestStatusEnum {
456
+ WaitingConfirmation = "waiting_confirmation",
457
+ Scheduled = "scheduled",
458
+ Processing = "processing",
459
+ Processed = "processed",
460
+ Refused = "refused",
461
+ Cancelled = "cancelled"
462
+ }
463
+ export declare enum OperationRequestTypeEnum {
464
+ Deposit = "deposit",
465
+ Withdrawal = "withdrawal"
466
+ }
288
467
  export declare enum OrderByEnum {
289
468
  ASC = "ASC",
290
469
  DESC = "DESC"
@@ -321,11 +500,31 @@ export declare enum PhoneTypeEnum {
321
500
  Fixed = "fixed",
322
501
  Mobile = "mobile"
323
502
  }
503
+ export interface RequestDepositDto {
504
+ address: CreateAddressByTemplateDto;
505
+ /** @example "its super fragile, please take care and come with a special bag" */
506
+ notes?: string;
507
+ /** @format date-time */
508
+ shippingDateTime: string;
509
+ /**
510
+ * @min 1
511
+ * @example 1
512
+ */
513
+ wineBottlesAmount: number;
514
+ }
324
515
  export interface RequestPasswordResetDto {
325
516
  email: string;
326
517
  /** @format uuid */
327
518
  tenantId: string;
328
519
  }
520
+ export interface RequestWithdrawDto {
521
+ /** @example "please add it into a cooler" */
522
+ notes?: string;
523
+ /** @format date-time */
524
+ pickupDateTime: string;
525
+ /** @minItems 1 */
526
+ wines: WithdrawWineInventoryItemDto[];
527
+ }
329
528
  export interface ResetPasswordDto {
330
529
  /** @example "user@example.com" */
331
530
  email: string;
@@ -374,7 +573,12 @@ export interface UpdateCaseDto {
374
573
  maxItems: number;
375
574
  name: string;
376
575
  }
377
- export interface UpdateCaseOperationExtraTemplateDto {
576
+ export interface UpdateNameOnlyEntityDto {
577
+ /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
578
+ isGlobal?: boolean;
579
+ name: string;
580
+ }
581
+ export interface UpdateOperationExtraTemplateDto {
378
582
  description?: string | null;
379
583
  invoiceTitle: string;
380
584
  /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
@@ -382,11 +586,6 @@ export interface UpdateCaseOperationExtraTemplateDto {
382
586
  /** @example 100 */
383
587
  pricePerItem: number;
384
588
  }
385
- export interface UpdateNameOnlyEntityDto {
386
- /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
387
- isGlobal?: boolean;
388
- name: string;
389
- }
390
589
  export interface UpdateUserDto {
391
590
  firstName?: string | null;
392
591
  lastName?: string | null;
@@ -715,6 +914,23 @@ export interface WineVineyardEntityPaginatedDto {
715
914
  links?: PaginationLinksDto;
716
915
  meta: PaginationMetaDto;
717
916
  }
917
+ export declare enum WithdrawRequestDeliverStatusEnum {
918
+ Pending = "pending",
919
+ InSeparation = "in_separation",
920
+ ReadyForDeliver = "ready_for_deliver",
921
+ InTransit = "in_transit",
922
+ Completed = "completed"
923
+ }
924
+ export declare enum WithdrawRequestDeliverTypeEnum {
925
+ Shipping = "shipping",
926
+ Pickup = "pickup"
927
+ }
928
+ export interface WithdrawWineInventoryItemDto {
929
+ /** @min 1 */
930
+ amount: number;
931
+ /** @format uuid */
932
+ inventoryItemId: string;
933
+ }
718
934
  export declare namespace Auth {
719
935
  /**
720
936
  * No description
@@ -778,6 +994,26 @@ export declare namespace Auth {
778
994
  }
779
995
  }
780
996
  export declare namespace Tenants {
997
+ /**
998
+ * No description
999
+ * @tags Tenant Users Operation Requests
1000
+ * @name CancelRequest
1001
+ * @request PATCH:/tenants/{tenantId}/users/userId/requests/{requestId}/cancel
1002
+ * @secure
1003
+ * @response `200` `void`
1004
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1005
+ */
1006
+ namespace CancelRequest {
1007
+ type RequestParams = {
1008
+ requestId: string;
1009
+ tenantId: string;
1010
+ userId: string;
1011
+ };
1012
+ type RequestQuery = {};
1013
+ type RequestBody = never;
1014
+ type RequestHeaders = {};
1015
+ type ResponseBody = void;
1016
+ }
781
1017
  /**
782
1018
  * No description
783
1019
  * @tags Tenant Users
@@ -911,6 +1147,26 @@ export declare namespace Tenants {
911
1147
  type RequestHeaders = {};
912
1148
  type ResponseBody = UserEntityDto;
913
1149
  }
1150
+ /**
1151
+ * No description
1152
+ * @tags Tenant Users Operation Requests
1153
+ * @name GetUserOperationRequestById
1154
+ * @request GET:/tenants/{tenantId}/users/userId/requests/{requestId}
1155
+ * @secure
1156
+ * @response `200` `OperationRequestEntityDto`
1157
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1158
+ */
1159
+ namespace GetUserOperationRequestById {
1160
+ type RequestParams = {
1161
+ requestId: string;
1162
+ tenantId: string;
1163
+ userId: string;
1164
+ };
1165
+ type RequestQuery = {};
1166
+ type RequestBody = never;
1167
+ type RequestHeaders = {};
1168
+ type ResponseBody = OperationRequestEntityDto;
1169
+ }
914
1170
  /**
915
1171
  * No description
916
1172
  * @tags Tenant Users
@@ -980,6 +1236,80 @@ export declare namespace Tenants {
980
1236
  type RequestHeaders = {};
981
1237
  type ResponseBody = AddressEntityPaginatedDto;
982
1238
  }
1239
+ /**
1240
+ * No description
1241
+ * @tags Tenant Users Operation Requests
1242
+ * @name ListUserOperationRequests
1243
+ * @request GET:/tenants/{tenantId}/users/userId/requests
1244
+ * @secure
1245
+ * @response `200` `OperationRequestEntityPaginatedDto`
1246
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1247
+ */
1248
+ namespace ListUserOperationRequests {
1249
+ type RequestParams = {
1250
+ tenantId: string;
1251
+ userId: string;
1252
+ };
1253
+ type RequestQuery = {
1254
+ createdAt?: string;
1255
+ customerIds?: string[];
1256
+ /**
1257
+ * @default 10
1258
+ * @example 10
1259
+ */
1260
+ limit?: number;
1261
+ orderBy?: OrderByEnum;
1262
+ /**
1263
+ * @default 1
1264
+ * @example 1
1265
+ */
1266
+ page?: number;
1267
+ search?: string;
1268
+ sortBy?: string[];
1269
+ status?: OperationRequestStatusEnum[];
1270
+ };
1271
+ type RequestBody = never;
1272
+ type RequestHeaders = {};
1273
+ type ResponseBody = OperationRequestEntityPaginatedDto;
1274
+ }
1275
+ /**
1276
+ * No description
1277
+ * @tags Tenant Users Operation Requests
1278
+ * @name RequestDeposit
1279
+ * @request POST:/tenants/{tenantId}/users/userId/requests/deposit
1280
+ * @secure
1281
+ * @response `201` `OperationRequestEntityDto`
1282
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1283
+ */
1284
+ namespace RequestDeposit {
1285
+ type RequestParams = {
1286
+ tenantId: string;
1287
+ userId: string;
1288
+ };
1289
+ type RequestQuery = {};
1290
+ type RequestBody = RequestDepositDto;
1291
+ type RequestHeaders = {};
1292
+ type ResponseBody = OperationRequestEntityDto;
1293
+ }
1294
+ /**
1295
+ * No description
1296
+ * @tags Tenant Users Operation Requests
1297
+ * @name RequestWithdraw
1298
+ * @request POST:/tenants/{tenantId}/users/userId/requests/withdraw
1299
+ * @secure
1300
+ * @response `201` `OperationRequestEntityDto`
1301
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1302
+ */
1303
+ namespace RequestWithdraw {
1304
+ type RequestParams = {
1305
+ tenantId: string;
1306
+ userId: string;
1307
+ };
1308
+ type RequestQuery = {};
1309
+ type RequestBody = RequestWithdrawDto;
1310
+ type RequestHeaders = {};
1311
+ type ResponseBody = OperationRequestEntityDto;
1312
+ }
983
1313
  /**
984
1314
  * No description
985
1315
  * @tags Tenant Users
@@ -1022,22 +1352,41 @@ export declare namespace Tenants {
1022
1352
  export declare namespace Admin {
1023
1353
  /**
1024
1354
  * No description
1025
- * @tags Admin Tenant Cases
1026
- * @name AddTenantCaseBatchOperations
1027
- * @request POST:/admin/tenants/{tenantId}/cases/{caseId}/operations/batch
1355
+ * @tags Admin Tenant Operation Groups
1356
+ * @name CancelTenantOperationGroup
1357
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/cancel
1028
1358
  * @secure
1029
- * @response `200` `CaseBatchOperationResponseDto`
1030
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1359
+ * @response `204` `void`
1360
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1031
1361
  */
1032
- namespace AddTenantCaseBatchOperations {
1362
+ namespace CancelTenantOperationGroup {
1033
1363
  type RequestParams = {
1034
- caseId: string;
1364
+ groupId: string;
1365
+ tenantId: string;
1366
+ };
1367
+ type RequestQuery = {};
1368
+ type RequestBody = never;
1369
+ type RequestHeaders = {};
1370
+ type ResponseBody = void;
1371
+ }
1372
+ /**
1373
+ * No description
1374
+ * @tags Admin Tenant Operation Groups
1375
+ * @name ConfirmTenantOperationGroup
1376
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/confirm
1377
+ * @secure
1378
+ * @response `204` `void`
1379
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1380
+ */
1381
+ namespace ConfirmTenantOperationGroup {
1382
+ type RequestParams = {
1383
+ groupId: string;
1035
1384
  tenantId: string;
1036
1385
  };
1037
1386
  type RequestQuery = {};
1038
- type RequestBody = CreateBatchCaseOperationsDto;
1387
+ type RequestBody = never;
1039
1388
  type RequestHeaders = {};
1040
- type ResponseBody = CaseBatchOperationResponseDto;
1389
+ type ResponseBody = void;
1041
1390
  }
1042
1391
  /**
1043
1392
  * No description
@@ -1063,7 +1412,7 @@ export declare namespace Admin {
1063
1412
  * @name CreateTenantOperationExtraTemplate
1064
1413
  * @request POST:/admin/tenants/{tenantId}/operation-extras-templates
1065
1414
  * @secure
1066
- * @response `201` `CaseOperationExtraTemplateEntityDto`
1415
+ * @response `201` `OperationExtraTemplateEntityDto`
1067
1416
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1068
1417
  */
1069
1418
  namespace CreateTenantOperationExtraTemplate {
@@ -1071,9 +1420,27 @@ export declare namespace Admin {
1071
1420
  tenantId: string;
1072
1421
  };
1073
1422
  type RequestQuery = {};
1074
- type RequestBody = CreateCaseOperationExtraTemplateDto;
1423
+ type RequestBody = CreateOperationExtraTemplateDto;
1424
+ type RequestHeaders = {};
1425
+ type ResponseBody = OperationExtraTemplateEntityDto;
1426
+ }
1427
+ /**
1428
+ * No description
1429
+ * @tags Admin Tenant Operation Groups
1430
+ * @name CreateTenantOperationGroup
1431
+ * @request POST:/admin/tenants/{tenantId}/operation-groups
1432
+ * @secure
1433
+ * @response `201` `OperationGroupEntityDto`
1434
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1435
+ */
1436
+ namespace CreateTenantOperationGroup {
1437
+ type RequestParams = {
1438
+ tenantId: string;
1439
+ };
1440
+ type RequestQuery = {};
1441
+ type RequestBody = CreateOperationGroupDto;
1075
1442
  type RequestHeaders = {};
1076
- type ResponseBody = CaseOperationExtraTemplateEntityDto;
1443
+ type ResponseBody = OperationGroupEntityDto;
1077
1444
  }
1078
1445
  /**
1079
1446
  * No description
@@ -1582,7 +1949,7 @@ export declare namespace Admin {
1582
1949
  * @name GetTenantOperationExtraTemplateById
1583
1950
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
1584
1951
  * @secure
1585
- * @response `200` `CaseOperationExtraTemplateEntityDto`
1952
+ * @response `200` `OperationExtraTemplateEntityDto`
1586
1953
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1587
1954
  */
1588
1955
  namespace GetTenantOperationExtraTemplateById {
@@ -1593,7 +1960,26 @@ export declare namespace Admin {
1593
1960
  type RequestQuery = {};
1594
1961
  type RequestBody = never;
1595
1962
  type RequestHeaders = {};
1596
- type ResponseBody = CaseOperationExtraTemplateEntityDto;
1963
+ type ResponseBody = OperationExtraTemplateEntityDto;
1964
+ }
1965
+ /**
1966
+ * No description
1967
+ * @tags Admin Tenant Operation Groups
1968
+ * @name GetTenantOperationGroupById
1969
+ * @request GET:/admin/tenants/{tenantId}/operation-groups/{groupId}
1970
+ * @secure
1971
+ * @response `200` `FullOperationGroupEntityDto`
1972
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1973
+ */
1974
+ namespace GetTenantOperationGroupById {
1975
+ type RequestParams = {
1976
+ groupId: string;
1977
+ tenantId: string;
1978
+ };
1979
+ type RequestQuery = {};
1980
+ type RequestBody = never;
1981
+ type RequestHeaders = {};
1982
+ type ResponseBody = FullOperationGroupEntityDto;
1597
1983
  }
1598
1984
  /**
1599
1985
  * No description
@@ -1904,7 +2290,7 @@ export declare namespace Admin {
1904
2290
  * @name ListTenantOperationExtrasTemplates
1905
2291
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates
1906
2292
  * @secure
1907
- * @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
2293
+ * @response `200` `OperationExtraTemplateEntityPaginatedDto`
1908
2294
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1909
2295
  */
1910
2296
  namespace ListTenantOperationExtrasTemplates {
@@ -1929,7 +2315,41 @@ export declare namespace Admin {
1929
2315
  };
1930
2316
  type RequestBody = never;
1931
2317
  type RequestHeaders = {};
1932
- type ResponseBody = CaseOperationExtraTemplateEntityPaginatedDto;
2318
+ type ResponseBody = OperationExtraTemplateEntityPaginatedDto;
2319
+ }
2320
+ /**
2321
+ * No description
2322
+ * @tags Admin Tenant Operation Groups
2323
+ * @name ListTenantOperationGroups
2324
+ * @request GET:/admin/tenants/{tenantId}/operation-groups
2325
+ * @secure
2326
+ * @response `200` `OperationGroupEntityPaginatedDto`
2327
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2328
+ */
2329
+ namespace ListTenantOperationGroups {
2330
+ type RequestParams = {
2331
+ tenantId: string;
2332
+ };
2333
+ type RequestQuery = {
2334
+ createdAt?: string;
2335
+ customerIds?: string[];
2336
+ /**
2337
+ * @default 10
2338
+ * @example 10
2339
+ */
2340
+ limit?: number;
2341
+ orderBy?: OrderByEnum;
2342
+ /**
2343
+ * @default 1
2344
+ * @example 1
2345
+ */
2346
+ page?: number;
2347
+ sortBy?: string[];
2348
+ status?: OperationGroupStatusEnum[];
2349
+ };
2350
+ type RequestBody = never;
2351
+ type RequestHeaders = {};
2352
+ type ResponseBody = OperationGroupEntityPaginatedDto;
1933
2353
  }
1934
2354
  /**
1935
2355
  * No description
@@ -2333,6 +2753,25 @@ export declare namespace Admin {
2333
2753
  type RequestHeaders = {};
2334
2754
  type ResponseBody = WineVineyardEntityPaginatedDto;
2335
2755
  }
2756
+ /**
2757
+ * No description
2758
+ * @tags Admin Tenant Operation Groups
2759
+ * @name ProcessTenantOperationGroup
2760
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/process
2761
+ * @secure
2762
+ * @response `204` `void`
2763
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2764
+ */
2765
+ namespace ProcessTenantOperationGroup {
2766
+ type RequestParams = {
2767
+ groupId: string;
2768
+ tenantId: string;
2769
+ };
2770
+ type RequestQuery = {};
2771
+ type RequestBody = never;
2772
+ type RequestHeaders = {};
2773
+ type ResponseBody = void;
2774
+ }
2336
2775
  /**
2337
2776
  * No description
2338
2777
  * @tags Admin Tenant Cases
@@ -2358,7 +2797,7 @@ export declare namespace Admin {
2358
2797
  * @name UpdateTenantOperationExtraTemplate
2359
2798
  * @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
2360
2799
  * @secure
2361
- * @response `200` `CaseOperationExtraTemplateEntityDto`
2800
+ * @response `200` `OperationExtraTemplateEntityDto`
2362
2801
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2363
2802
  */
2364
2803
  namespace UpdateTenantOperationExtraTemplate {
@@ -2367,9 +2806,9 @@ export declare namespace Admin {
2367
2806
  tenantId: string;
2368
2807
  };
2369
2808
  type RequestQuery = {};
2370
- type RequestBody = UpdateCaseOperationExtraTemplateDto;
2809
+ type RequestBody = UpdateOperationExtraTemplateDto;
2371
2810
  type RequestHeaders = {};
2372
- type ResponseBody = CaseOperationExtraTemplateEntityDto;
2811
+ type ResponseBody = OperationExtraTemplateEntityDto;
2373
2812
  }
2374
2813
  /**
2375
2814
  * No description
@@ -2701,6 +3140,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2701
3140
  signIn: (data: SigninDto, params?: RequestParams) => Promise<SigninResponseDto>;
2702
3141
  };
2703
3142
  tenants: {
3143
+ /**
3144
+ * No description
3145
+ *
3146
+ * @tags Tenant Users Operation Requests
3147
+ * @name CancelRequest
3148
+ * @request PATCH:/tenants/{tenantId}/users/userId/requests/{requestId}/cancel
3149
+ * @secure
3150
+ * @response `200` `void`
3151
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
3152
+ */
3153
+ cancelRequest: (tenantId: string, userId: string, requestId: string, params?: RequestParams) => Promise<void>;
2704
3154
  /**
2705
3155
  * No description
2706
3156
  *
@@ -2778,6 +3228,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2778
3228
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
2779
3229
  */
2780
3230
  getTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<UserEntityDto>;
3231
+ /**
3232
+ * No description
3233
+ *
3234
+ * @tags Tenant Users Operation Requests
3235
+ * @name GetUserOperationRequestById
3236
+ * @request GET:/tenants/{tenantId}/users/userId/requests/{requestId}
3237
+ * @secure
3238
+ * @response `200` `OperationRequestEntityDto`
3239
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
3240
+ */
3241
+ getUserOperationRequestById: (tenantId: string, userId: string, requestId: string, params?: RequestParams) => Promise<OperationRequestEntityDto>;
2781
3242
  /**
2782
3243
  * No description
2783
3244
  *
@@ -2832,6 +3293,56 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2832
3293
  search?: string;
2833
3294
  sortBy?: string[];
2834
3295
  }, params?: RequestParams) => Promise<AddressEntityPaginatedDto>;
3296
+ /**
3297
+ * No description
3298
+ *
3299
+ * @tags Tenant Users Operation Requests
3300
+ * @name ListUserOperationRequests
3301
+ * @request GET:/tenants/{tenantId}/users/userId/requests
3302
+ * @secure
3303
+ * @response `200` `OperationRequestEntityPaginatedDto`
3304
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
3305
+ */
3306
+ listUserOperationRequests: (tenantId: string, userId: string, query?: {
3307
+ createdAt?: string;
3308
+ customerIds?: string[];
3309
+ /**
3310
+ * @default 10
3311
+ * @example 10
3312
+ */
3313
+ limit?: number;
3314
+ orderBy?: OrderByEnum;
3315
+ /**
3316
+ * @default 1
3317
+ * @example 1
3318
+ */
3319
+ page?: number;
3320
+ search?: string;
3321
+ sortBy?: string[];
3322
+ status?: OperationRequestStatusEnum[];
3323
+ }, params?: RequestParams) => Promise<OperationRequestEntityPaginatedDto>;
3324
+ /**
3325
+ * No description
3326
+ *
3327
+ * @tags Tenant Users Operation Requests
3328
+ * @name RequestDeposit
3329
+ * @request POST:/tenants/{tenantId}/users/userId/requests/deposit
3330
+ * @secure
3331
+ * @response `201` `OperationRequestEntityDto`
3332
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
3333
+ */
3334
+ requestDeposit: (tenantId: string, userId: string, data: RequestDepositDto, params?: RequestParams) => Promise<OperationRequestEntityDto>;
3335
+ /**
3336
+ * No description
3337
+ *
3338
+ * @tags Tenant Users Operation Requests
3339
+ * @name RequestWithdraw
3340
+ * @request POST:/tenants/{tenantId}/users/userId/requests/withdraw
3341
+ * @secure
3342
+ * @response `201` `OperationRequestEntityDto`
3343
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
3344
+ */
3345
+ requestWithdraw: (tenantId: string, userId: string, data: RequestWithdrawDto, params?: RequestParams) => Promise<OperationRequestEntityDto>;
2835
3346
  /**
2836
3347
  * No description
2837
3348
  *
@@ -2859,14 +3370,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2859
3370
  /**
2860
3371
  * No description
2861
3372
  *
2862
- * @tags Admin Tenant Cases
2863
- * @name AddTenantCaseBatchOperations
2864
- * @request POST:/admin/tenants/{tenantId}/cases/{caseId}/operations/batch
3373
+ * @tags Admin Tenant Operation Groups
3374
+ * @name CancelTenantOperationGroup
3375
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/cancel
2865
3376
  * @secure
2866
- * @response `200` `CaseBatchOperationResponseDto`
2867
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3377
+ * @response `204` `void`
3378
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3379
+ */
3380
+ cancelTenantOperationGroup: (tenantId: string, groupId: string, params?: RequestParams) => Promise<void>;
3381
+ /**
3382
+ * No description
3383
+ *
3384
+ * @tags Admin Tenant Operation Groups
3385
+ * @name ConfirmTenantOperationGroup
3386
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/confirm
3387
+ * @secure
3388
+ * @response `204` `void`
3389
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2868
3390
  */
2869
- addTenantCaseBatchOperations: (tenantId: string, caseId: string, data: CreateBatchCaseOperationsDto, params?: RequestParams) => Promise<CaseBatchOperationResponseDto>;
3391
+ confirmTenantOperationGroup: (tenantId: string, groupId: string, params?: RequestParams) => Promise<void>;
2870
3392
  /**
2871
3393
  * No description
2872
3394
  *
@@ -2885,10 +3407,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2885
3407
  * @name CreateTenantOperationExtraTemplate
2886
3408
  * @request POST:/admin/tenants/{tenantId}/operation-extras-templates
2887
3409
  * @secure
2888
- * @response `201` `CaseOperationExtraTemplateEntityDto`
3410
+ * @response `201` `OperationExtraTemplateEntityDto`
3411
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3412
+ */
3413
+ createTenantOperationExtraTemplate: (tenantId: string, data: CreateOperationExtraTemplateDto, params?: RequestParams) => Promise<OperationExtraTemplateEntityDto>;
3414
+ /**
3415
+ * No description
3416
+ *
3417
+ * @tags Admin Tenant Operation Groups
3418
+ * @name CreateTenantOperationGroup
3419
+ * @request POST:/admin/tenants/{tenantId}/operation-groups
3420
+ * @secure
3421
+ * @response `201` `OperationGroupEntityDto`
2889
3422
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2890
3423
  */
2891
- createTenantOperationExtraTemplate: (tenantId: string, data: CreateCaseOperationExtraTemplateDto, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityDto>;
3424
+ createTenantOperationGroup: (tenantId: string, data: CreateOperationGroupDto, params?: RequestParams) => Promise<OperationGroupEntityDto>;
2892
3425
  /**
2893
3426
  * No description
2894
3427
  *
@@ -3193,10 +3726,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3193
3726
  * @name GetTenantOperationExtraTemplateById
3194
3727
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
3195
3728
  * @secure
3196
- * @response `200` `CaseOperationExtraTemplateEntityDto`
3729
+ * @response `200` `OperationExtraTemplateEntityDto`
3730
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3731
+ */
3732
+ getTenantOperationExtraTemplateById: (tenantId: string, templateId: string, params?: RequestParams) => Promise<OperationExtraTemplateEntityDto>;
3733
+ /**
3734
+ * No description
3735
+ *
3736
+ * @tags Admin Tenant Operation Groups
3737
+ * @name GetTenantOperationGroupById
3738
+ * @request GET:/admin/tenants/{tenantId}/operation-groups/{groupId}
3739
+ * @secure
3740
+ * @response `200` `FullOperationGroupEntityDto`
3197
3741
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3198
3742
  */
3199
- getTenantOperationExtraTemplateById: (tenantId: string, templateId: string, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityDto>;
3743
+ getTenantOperationGroupById: (tenantId: string, groupId: string, params?: RequestParams) => Promise<FullOperationGroupEntityDto>;
3200
3744
  /**
3201
3745
  * No description
3202
3746
  *
@@ -3396,7 +3940,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3396
3940
  * @name ListTenantOperationExtrasTemplates
3397
3941
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates
3398
3942
  * @secure
3399
- * @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
3943
+ * @response `200` `OperationExtraTemplateEntityPaginatedDto`
3400
3944
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3401
3945
  */
3402
3946
  listTenantOperationExtrasTemplates: (tenantId: string, query?: {
@@ -3414,7 +3958,34 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3414
3958
  page?: number;
3415
3959
  search?: string;
3416
3960
  sortBy?: string[];
3417
- }, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityPaginatedDto>;
3961
+ }, params?: RequestParams) => Promise<OperationExtraTemplateEntityPaginatedDto>;
3962
+ /**
3963
+ * No description
3964
+ *
3965
+ * @tags Admin Tenant Operation Groups
3966
+ * @name ListTenantOperationGroups
3967
+ * @request GET:/admin/tenants/{tenantId}/operation-groups
3968
+ * @secure
3969
+ * @response `200` `OperationGroupEntityPaginatedDto`
3970
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3971
+ */
3972
+ listTenantOperationGroups: (tenantId: string, query?: {
3973
+ createdAt?: string;
3974
+ customerIds?: string[];
3975
+ /**
3976
+ * @default 10
3977
+ * @example 10
3978
+ */
3979
+ limit?: number;
3980
+ orderBy?: OrderByEnum;
3981
+ /**
3982
+ * @default 1
3983
+ * @example 1
3984
+ */
3985
+ page?: number;
3986
+ sortBy?: string[];
3987
+ status?: OperationGroupStatusEnum[];
3988
+ }, params?: RequestParams) => Promise<OperationGroupEntityPaginatedDto>;
3418
3989
  /**
3419
3990
  * No description
3420
3991
  *
@@ -3733,6 +4304,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3733
4304
  search?: string;
3734
4305
  sortBy?: string[];
3735
4306
  }, params?: RequestParams) => Promise<WineVineyardEntityPaginatedDto>;
4307
+ /**
4308
+ * No description
4309
+ *
4310
+ * @tags Admin Tenant Operation Groups
4311
+ * @name ProcessTenantOperationGroup
4312
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/process
4313
+ * @secure
4314
+ * @response `204` `void`
4315
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
4316
+ */
4317
+ processTenantOperationGroup: (tenantId: string, groupId: string, params?: RequestParams) => Promise<void>;
3736
4318
  /**
3737
4319
  * No description
3738
4320
  *
@@ -3751,10 +4333,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3751
4333
  * @name UpdateTenantOperationExtraTemplate
3752
4334
  * @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
3753
4335
  * @secure
3754
- * @response `200` `CaseOperationExtraTemplateEntityDto`
4336
+ * @response `200` `OperationExtraTemplateEntityDto`
3755
4337
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3756
4338
  */
3757
- updateTenantOperationExtraTemplate: (tenantId: string, templateId: string, data: UpdateCaseOperationExtraTemplateDto, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityDto>;
4339
+ updateTenantOperationExtraTemplate: (tenantId: string, templateId: string, data: UpdateOperationExtraTemplateDto, params?: RequestParams) => Promise<OperationExtraTemplateEntityDto>;
3758
4340
  /**
3759
4341
  * No description
3760
4342
  *