@thelllabs/winehaus-sdk 0.0.14 → 0.0.15

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.
@@ -85,7 +85,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
85
85
  return (mod && mod.__esModule) ? mod : { "default": mod };
86
86
  };
87
87
  Object.defineProperty(exports, "__esModule", { value: true });
88
- exports.Api = exports.HttpClient = exports.ContentType = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.PhoneTypeEnum = exports.OrderByEnum = exports.CreateOnlyCaseOperationStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
88
+ exports.Api = exports.HttpClient = exports.ContentType = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.PhoneTypeEnum = exports.OrderByEnum = exports.OperationGroupStatusEnum = exports.CreateOnlyOperationGroupStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
89
89
  var CaseOperationLogTypeEnum;
90
90
  (function (CaseOperationLogTypeEnum) {
91
91
  CaseOperationLogTypeEnum["RequestAccepted"] = "request_accepted";
@@ -103,12 +103,19 @@ var CaseOperationTypesEnum;
103
103
  CaseOperationTypesEnum["Deposit"] = "deposit";
104
104
  CaseOperationTypesEnum["Withdrawal"] = "withdrawal";
105
105
  })(CaseOperationTypesEnum = exports.CaseOperationTypesEnum || (exports.CaseOperationTypesEnum = {}));
106
- var CreateOnlyCaseOperationStatusEnum;
107
- (function (CreateOnlyCaseOperationStatusEnum) {
108
- CreateOnlyCaseOperationStatusEnum["OnHold"] = "on_hold";
109
- CreateOnlyCaseOperationStatusEnum["Confirmed"] = "confirmed";
110
- CreateOnlyCaseOperationStatusEnum["Processed"] = "processed";
111
- })(CreateOnlyCaseOperationStatusEnum = exports.CreateOnlyCaseOperationStatusEnum || (exports.CreateOnlyCaseOperationStatusEnum = {}));
106
+ var CreateOnlyOperationGroupStatusEnum;
107
+ (function (CreateOnlyOperationGroupStatusEnum) {
108
+ CreateOnlyOperationGroupStatusEnum["OnHold"] = "on_hold";
109
+ CreateOnlyOperationGroupStatusEnum["Confirmed"] = "confirmed";
110
+ CreateOnlyOperationGroupStatusEnum["Processed"] = "processed";
111
+ })(CreateOnlyOperationGroupStatusEnum = exports.CreateOnlyOperationGroupStatusEnum || (exports.CreateOnlyOperationGroupStatusEnum = {}));
112
+ var OperationGroupStatusEnum;
113
+ (function (OperationGroupStatusEnum) {
114
+ OperationGroupStatusEnum["OnHold"] = "on_hold";
115
+ OperationGroupStatusEnum["Confirmed"] = "confirmed";
116
+ OperationGroupStatusEnum["Processed"] = "processed";
117
+ OperationGroupStatusEnum["Cancelled"] = "cancelled";
118
+ })(OperationGroupStatusEnum = exports.OperationGroupStatusEnum || (exports.OperationGroupStatusEnum = {}));
112
119
  var OrderByEnum;
113
120
  (function (OrderByEnum) {
114
121
  OrderByEnum["ASC"] = "ASC";
@@ -459,16 +466,30 @@ var Api = /** @class */ (function (_super) {
459
466
  /**
460
467
  * No description
461
468
  *
462
- * @tags Admin Tenant Cases
463
- * @name AddTenantCaseBatchOperations
464
- * @request POST:/admin/tenants/{tenantId}/cases/{caseId}/operations/batch
469
+ * @tags Admin Tenant Operation Groups
470
+ * @name CancelTenantOperationGroup
471
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/cancel
465
472
  * @secure
466
- * @response `200` `CaseBatchOperationResponseDto`
467
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
473
+ * @response `204` `void`
474
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
468
475
  */
469
- addTenantCaseBatchOperations: function (tenantId, caseId, data, params) {
476
+ cancelTenantOperationGroup: function (tenantId, groupId, params) {
470
477
  if (params === void 0) { params = {}; }
471
- return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId, "/operations/batch"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
478
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/cancel"), method: "PATCH", secure: true }, params));
479
+ },
480
+ /**
481
+ * No description
482
+ *
483
+ * @tags Admin Tenant Operation Groups
484
+ * @name ConfirmTenantOperationGroup
485
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/confirm
486
+ * @secure
487
+ * @response `204` `void`
488
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
489
+ */
490
+ confirmTenantOperationGroup: function (tenantId, groupId, params) {
491
+ if (params === void 0) { params = {}; }
492
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/confirm"), method: "PATCH", secure: true }, params));
472
493
  },
473
494
  /**
474
495
  * No description
@@ -491,13 +512,27 @@ var Api = /** @class */ (function (_super) {
491
512
  * @name CreateTenantOperationExtraTemplate
492
513
  * @request POST:/admin/tenants/{tenantId}/operation-extras-templates
493
514
  * @secure
494
- * @response `201` `CaseOperationExtraTemplateEntityDto`
515
+ * @response `201` `OperationExtraTemplateEntityDto`
495
516
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
496
517
  */
497
518
  createTenantOperationExtraTemplate: function (tenantId, data, params) {
498
519
  if (params === void 0) { params = {}; }
499
520
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
500
521
  },
522
+ /**
523
+ * No description
524
+ *
525
+ * @tags Admin Tenant Operation Groups
526
+ * @name CreateTenantOperationGroup
527
+ * @request POST:/admin/tenants/{tenantId}/operation-groups
528
+ * @secure
529
+ * @response `201` `OperationGroupEntityDto`
530
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
531
+ */
532
+ createTenantOperationGroup: function (tenantId, data, params) {
533
+ if (params === void 0) { params = {}; }
534
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
535
+ },
501
536
  /**
502
537
  * No description
503
538
  *
@@ -883,13 +918,27 @@ var Api = /** @class */ (function (_super) {
883
918
  * @name GetTenantOperationExtraTemplateById
884
919
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
885
920
  * @secure
886
- * @response `200` `CaseOperationExtraTemplateEntityDto`
921
+ * @response `200` `OperationExtraTemplateEntityDto`
887
922
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
888
923
  */
889
924
  getTenantOperationExtraTemplateById: function (tenantId, templateId, params) {
890
925
  if (params === void 0) { params = {}; }
891
926
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "GET", secure: true, format: "json" }, params));
892
927
  },
928
+ /**
929
+ * No description
930
+ *
931
+ * @tags Admin Tenant Operation Groups
932
+ * @name GetTenantOperationGroupById
933
+ * @request GET:/admin/tenants/{tenantId}/operation-groups/{groupId}
934
+ * @secure
935
+ * @response `200` `FullOperationGroupEntityDto`
936
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
937
+ */
938
+ getTenantOperationGroupById: function (tenantId, groupId, params) {
939
+ if (params === void 0) { params = {}; }
940
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId), method: "GET", secure: true, format: "json" }, params));
941
+ },
893
942
  /**
894
943
  * No description
895
944
  *
@@ -1093,13 +1142,27 @@ var Api = /** @class */ (function (_super) {
1093
1142
  * @name ListTenantOperationExtrasTemplates
1094
1143
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates
1095
1144
  * @secure
1096
- * @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
1145
+ * @response `200` `OperationExtraTemplateEntityPaginatedDto`
1097
1146
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1098
1147
  */
1099
1148
  listTenantOperationExtrasTemplates: function (tenantId, query, params) {
1100
1149
  if (params === void 0) { params = {}; }
1101
1150
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "GET", query: query, secure: true, format: "json" }, params));
1102
1151
  },
1152
+ /**
1153
+ * No description
1154
+ *
1155
+ * @tags Admin Tenant Operation Groups
1156
+ * @name ListTenantOperationGroups
1157
+ * @request GET:/admin/tenants/{tenantId}/operation-groups
1158
+ * @secure
1159
+ * @response `200` `OperationGroupEntityPaginatedDto`
1160
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1161
+ */
1162
+ listTenantOperationGroups: function (tenantId, query, params) {
1163
+ if (params === void 0) { params = {}; }
1164
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups"), method: "GET", query: query, secure: true, format: "json" }, params));
1165
+ },
1103
1166
  /**
1104
1167
  * No description
1105
1168
  *
@@ -1268,6 +1331,20 @@ var Api = /** @class */ (function (_super) {
1268
1331
  if (params === void 0) { params = {}; }
1269
1332
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
1270
1333
  },
1334
+ /**
1335
+ * No description
1336
+ *
1337
+ * @tags Admin Tenant Operation Groups
1338
+ * @name ProcessTenantOperationGroup
1339
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/process
1340
+ * @secure
1341
+ * @response `204` `void`
1342
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1343
+ */
1344
+ processTenantOperationGroup: function (tenantId, groupId, params) {
1345
+ if (params === void 0) { params = {}; }
1346
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", secure: true }, params));
1347
+ },
1271
1348
  /**
1272
1349
  * No description
1273
1350
  *
@@ -1289,7 +1366,7 @@ var Api = /** @class */ (function (_super) {
1289
1366
  * @name UpdateTenantOperationExtraTemplate
1290
1367
  * @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
1291
1368
  * @secure
1292
- * @response `200` `CaseOperationExtraTemplateEntityDto`
1369
+ * @response `200` `OperationExtraTemplateEntityDto`
1293
1370
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1294
1371
  */
1295
1372
  updateTenantOperationExtraTemplate: function (tenantId, templateId, data, params) {
@@ -97,12 +97,19 @@ export var CaseOperationTypesEnum;
97
97
  CaseOperationTypesEnum["Deposit"] = "deposit";
98
98
  CaseOperationTypesEnum["Withdrawal"] = "withdrawal";
99
99
  })(CaseOperationTypesEnum || (CaseOperationTypesEnum = {}));
100
- export var CreateOnlyCaseOperationStatusEnum;
101
- (function (CreateOnlyCaseOperationStatusEnum) {
102
- CreateOnlyCaseOperationStatusEnum["OnHold"] = "on_hold";
103
- CreateOnlyCaseOperationStatusEnum["Confirmed"] = "confirmed";
104
- CreateOnlyCaseOperationStatusEnum["Processed"] = "processed";
105
- })(CreateOnlyCaseOperationStatusEnum || (CreateOnlyCaseOperationStatusEnum = {}));
100
+ export var CreateOnlyOperationGroupStatusEnum;
101
+ (function (CreateOnlyOperationGroupStatusEnum) {
102
+ CreateOnlyOperationGroupStatusEnum["OnHold"] = "on_hold";
103
+ CreateOnlyOperationGroupStatusEnum["Confirmed"] = "confirmed";
104
+ CreateOnlyOperationGroupStatusEnum["Processed"] = "processed";
105
+ })(CreateOnlyOperationGroupStatusEnum || (CreateOnlyOperationGroupStatusEnum = {}));
106
+ export var OperationGroupStatusEnum;
107
+ (function (OperationGroupStatusEnum) {
108
+ OperationGroupStatusEnum["OnHold"] = "on_hold";
109
+ OperationGroupStatusEnum["Confirmed"] = "confirmed";
110
+ OperationGroupStatusEnum["Processed"] = "processed";
111
+ OperationGroupStatusEnum["Cancelled"] = "cancelled";
112
+ })(OperationGroupStatusEnum || (OperationGroupStatusEnum = {}));
106
113
  export var OrderByEnum;
107
114
  (function (OrderByEnum) {
108
115
  OrderByEnum["ASC"] = "ASC";
@@ -453,16 +460,30 @@ var Api = /** @class */ (function (_super) {
453
460
  /**
454
461
  * No description
455
462
  *
456
- * @tags Admin Tenant Cases
457
- * @name AddTenantCaseBatchOperations
458
- * @request POST:/admin/tenants/{tenantId}/cases/{caseId}/operations/batch
463
+ * @tags Admin Tenant Operation Groups
464
+ * @name CancelTenantOperationGroup
465
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/cancel
459
466
  * @secure
460
- * @response `200` `CaseBatchOperationResponseDto`
461
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
467
+ * @response `204` `void`
468
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
462
469
  */
463
- addTenantCaseBatchOperations: function (tenantId, caseId, data, params) {
470
+ cancelTenantOperationGroup: function (tenantId, groupId, params) {
464
471
  if (params === void 0) { params = {}; }
465
- return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId, "/operations/batch"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
472
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/cancel"), method: "PATCH", secure: true }, params));
473
+ },
474
+ /**
475
+ * No description
476
+ *
477
+ * @tags Admin Tenant Operation Groups
478
+ * @name ConfirmTenantOperationGroup
479
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/confirm
480
+ * @secure
481
+ * @response `204` `void`
482
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
483
+ */
484
+ confirmTenantOperationGroup: function (tenantId, groupId, params) {
485
+ if (params === void 0) { params = {}; }
486
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/confirm"), method: "PATCH", secure: true }, params));
466
487
  },
467
488
  /**
468
489
  * No description
@@ -485,13 +506,27 @@ var Api = /** @class */ (function (_super) {
485
506
  * @name CreateTenantOperationExtraTemplate
486
507
  * @request POST:/admin/tenants/{tenantId}/operation-extras-templates
487
508
  * @secure
488
- * @response `201` `CaseOperationExtraTemplateEntityDto`
509
+ * @response `201` `OperationExtraTemplateEntityDto`
489
510
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
490
511
  */
491
512
  createTenantOperationExtraTemplate: function (tenantId, data, params) {
492
513
  if (params === void 0) { params = {}; }
493
514
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
494
515
  },
516
+ /**
517
+ * No description
518
+ *
519
+ * @tags Admin Tenant Operation Groups
520
+ * @name CreateTenantOperationGroup
521
+ * @request POST:/admin/tenants/{tenantId}/operation-groups
522
+ * @secure
523
+ * @response `201` `OperationGroupEntityDto`
524
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
525
+ */
526
+ createTenantOperationGroup: function (tenantId, data, params) {
527
+ if (params === void 0) { params = {}; }
528
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
529
+ },
495
530
  /**
496
531
  * No description
497
532
  *
@@ -877,13 +912,27 @@ var Api = /** @class */ (function (_super) {
877
912
  * @name GetTenantOperationExtraTemplateById
878
913
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
879
914
  * @secure
880
- * @response `200` `CaseOperationExtraTemplateEntityDto`
915
+ * @response `200` `OperationExtraTemplateEntityDto`
881
916
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
882
917
  */
883
918
  getTenantOperationExtraTemplateById: function (tenantId, templateId, params) {
884
919
  if (params === void 0) { params = {}; }
885
920
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "GET", secure: true, format: "json" }, params));
886
921
  },
922
+ /**
923
+ * No description
924
+ *
925
+ * @tags Admin Tenant Operation Groups
926
+ * @name GetTenantOperationGroupById
927
+ * @request GET:/admin/tenants/{tenantId}/operation-groups/{groupId}
928
+ * @secure
929
+ * @response `200` `FullOperationGroupEntityDto`
930
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
931
+ */
932
+ getTenantOperationGroupById: function (tenantId, groupId, params) {
933
+ if (params === void 0) { params = {}; }
934
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId), method: "GET", secure: true, format: "json" }, params));
935
+ },
887
936
  /**
888
937
  * No description
889
938
  *
@@ -1087,13 +1136,27 @@ var Api = /** @class */ (function (_super) {
1087
1136
  * @name ListTenantOperationExtrasTemplates
1088
1137
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates
1089
1138
  * @secure
1090
- * @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
1139
+ * @response `200` `OperationExtraTemplateEntityPaginatedDto`
1091
1140
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1092
1141
  */
1093
1142
  listTenantOperationExtrasTemplates: function (tenantId, query, params) {
1094
1143
  if (params === void 0) { params = {}; }
1095
1144
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "GET", query: query, secure: true, format: "json" }, params));
1096
1145
  },
1146
+ /**
1147
+ * No description
1148
+ *
1149
+ * @tags Admin Tenant Operation Groups
1150
+ * @name ListTenantOperationGroups
1151
+ * @request GET:/admin/tenants/{tenantId}/operation-groups
1152
+ * @secure
1153
+ * @response `200` `OperationGroupEntityPaginatedDto`
1154
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1155
+ */
1156
+ listTenantOperationGroups: function (tenantId, query, params) {
1157
+ if (params === void 0) { params = {}; }
1158
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups"), method: "GET", query: query, secure: true, format: "json" }, params));
1159
+ },
1097
1160
  /**
1098
1161
  * No description
1099
1162
  *
@@ -1262,6 +1325,20 @@ var Api = /** @class */ (function (_super) {
1262
1325
  if (params === void 0) { params = {}; }
1263
1326
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
1264
1327
  },
1328
+ /**
1329
+ * No description
1330
+ *
1331
+ * @tags Admin Tenant Operation Groups
1332
+ * @name ProcessTenantOperationGroup
1333
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/process
1334
+ * @secure
1335
+ * @response `204` `void`
1336
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1337
+ */
1338
+ processTenantOperationGroup: function (tenantId, groupId, params) {
1339
+ if (params === void 0) { params = {}; }
1340
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", secure: true }, params));
1341
+ },
1265
1342
  /**
1266
1343
  * No description
1267
1344
  *
@@ -1283,7 +1360,7 @@ var Api = /** @class */ (function (_super) {
1283
1360
  * @name UpdateTenantOperationExtraTemplate
1284
1361
  * @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
1285
1362
  * @secure
1286
- * @response `200` `CaseOperationExtraTemplateEntityDto`
1363
+ * @response `200` `OperationExtraTemplateEntityDto`
1287
1364
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1288
1365
  */
1289
1366
  updateTenantOperationExtraTemplate: function (tenantId, templateId, data, params) {
@@ -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;
@@ -166,10 +142,6 @@ export interface CreateAddressDto {
166
142
  postalCode: string;
167
143
  state: string;
168
144
  }
169
- export interface CreateBatchCaseOperationsDto {
170
- /** @minItems 1 */
171
- operations: CreateCaseOperationDto[];
172
- }
173
145
  export interface CreateCaseDto {
174
146
  /** @format date-time */
175
147
  billingEndDate?: string | null;
@@ -183,18 +155,28 @@ export interface CreateCaseDto {
183
155
  name: string;
184
156
  }
185
157
  export interface CreateCaseOperationDto {
158
+ /** @format uuid */
159
+ caseId: string;
186
160
  /** @minItems 0 */
187
- extras?: CreateCaseOperationExtraDto[];
161
+ extras?: CreateOperationExtraDto[];
188
162
  /** @format uuid */
189
163
  requestId?: string | null;
190
- /** @example "processed" */
191
- status?: CreateOnlyCaseOperationStatusEnum;
192
164
  /** @example "deposit" */
193
165
  type: CaseOperationTypesEnum;
194
166
  /** @minItems 1 */
195
167
  wines: CreateWineInventoryItemDto[];
196
168
  }
197
- export interface CreateCaseOperationExtraDto {
169
+ export interface CreateNameOnlyEntityDto {
170
+ /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
171
+ isGlobal?: boolean;
172
+ name: string;
173
+ }
174
+ export declare enum CreateOnlyOperationGroupStatusEnum {
175
+ OnHold = "on_hold",
176
+ Confirmed = "confirmed",
177
+ Processed = "processed"
178
+ }
179
+ export interface CreateOperationExtraDto {
198
180
  /** @min 1 */
199
181
  amount?: number | null;
200
182
  description?: string | null;
@@ -204,7 +186,7 @@ export interface CreateCaseOperationExtraDto {
204
186
  /** @format uuid */
205
187
  templateId?: string;
206
188
  }
207
- export interface CreateCaseOperationExtraTemplateDto {
189
+ export interface CreateOperationExtraTemplateDto {
208
190
  description?: string | null;
209
191
  invoiceTitle: string;
210
192
  /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
@@ -212,15 +194,15 @@ export interface CreateCaseOperationExtraTemplateDto {
212
194
  /** @example 100 */
213
195
  pricePerItem: number;
214
196
  }
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"
197
+ export interface CreateOperationGroupDto {
198
+ /** @format uuid */
199
+ customerId: string;
200
+ /** @minItems 0 */
201
+ extras?: CreateOperationExtraDto[];
202
+ /** @minItems 1 */
203
+ operations: CreateCaseOperationDto[];
204
+ /** @example "processed" */
205
+ status?: CreateOnlyOperationGroupStatusEnum;
224
206
  }
225
207
  export interface CreateUserDto {
226
208
  email: string;
@@ -272,6 +254,47 @@ export interface CreateWineInventoryItemDto {
272
254
  /** @format uuid */
273
255
  wineId: string;
274
256
  }
257
+ export interface FullCaseOperationEntityDto {
258
+ /** @format uuid */
259
+ caseId: string;
260
+ /** @format date-time */
261
+ createdAt: string;
262
+ extras: OperationExtraEntityDto[];
263
+ /** @format uuid */
264
+ groupId: string;
265
+ /** @format uuid */
266
+ id: string;
267
+ /** @example [] */
268
+ logs: CaseOperationLogDto[];
269
+ /** @format uuid */
270
+ requestId?: string | null;
271
+ /** @example "processed" */
272
+ status: CaseOperationStatusEnum;
273
+ /** @format uuid */
274
+ tenantId: string;
275
+ /** @example "deposit" */
276
+ type: CaseOperationTypesEnum;
277
+ /** @format date-time */
278
+ updatedAt: string;
279
+ wines: CaseOperationWineInventoryItemEntityDto[];
280
+ }
281
+ export interface FullOperationGroupEntityDto {
282
+ /** @format date-time */
283
+ createdAt: string;
284
+ customer: UserEntityDto;
285
+ /** @format uuid */
286
+ customerId: string;
287
+ extras: OperationExtraEntityDto[];
288
+ /** @format uuid */
289
+ id: string;
290
+ operations: FullCaseOperationEntityDto[];
291
+ /** @example "processed" */
292
+ status: OperationGroupStatusEnum;
293
+ /** @format uuid */
294
+ tenantId: string;
295
+ /** @format date-time */
296
+ updatedAt: string;
297
+ }
275
298
  export interface HttpExceptionDto {
276
299
  /** @example null */
277
300
  data?: object;
@@ -285,6 +308,84 @@ export interface HttpExceptionDto {
285
308
  /** @example "2022-07-25T17:24:07.042Z" */
286
309
  timestamp: string;
287
310
  }
311
+ export interface OperationExtraEntityDto {
312
+ /**
313
+ * @min 0
314
+ * @example 100
315
+ */
316
+ amount: number;
317
+ /** @format date-time */
318
+ createdAt: string;
319
+ description?: string | null;
320
+ /** @format uuid */
321
+ id: string;
322
+ invoiceTitle: string;
323
+ /** @format uuid */
324
+ operationGroupId?: string | null;
325
+ /** @format uuid */
326
+ operationId?: string | null;
327
+ /**
328
+ * @min 0
329
+ * @example 100
330
+ */
331
+ pricePerItem: number;
332
+ /** @format uuid */
333
+ templateId?: string | null;
334
+ /** @format uuid */
335
+ tenantId: string;
336
+ /** @format date-time */
337
+ updatedAt: string;
338
+ }
339
+ export interface OperationExtraTemplateEntityDto {
340
+ /** @format date-time */
341
+ createdAt: string;
342
+ /** @format date-time */
343
+ deletedAt?: string | null;
344
+ description?: string | null;
345
+ /** @format uuid */
346
+ id: string;
347
+ invoiceTitle: string;
348
+ /**
349
+ * @min 0
350
+ * @example 100
351
+ */
352
+ pricePerItem: number;
353
+ /** @format uuid */
354
+ tenantId?: string | null;
355
+ /** @format date-time */
356
+ updatedAt: string;
357
+ }
358
+ export interface OperationExtraTemplateEntityPaginatedDto {
359
+ items: OperationExtraTemplateEntityDto[];
360
+ links?: PaginationLinksDto;
361
+ meta: PaginationMetaDto;
362
+ }
363
+ export interface OperationGroupEntityDto {
364
+ /** @format date-time */
365
+ createdAt: string;
366
+ customer: UserEntityDto;
367
+ /** @format uuid */
368
+ customerId: string;
369
+ /** @format uuid */
370
+ id: string;
371
+ /** @example "processed" */
372
+ status: OperationGroupStatusEnum;
373
+ /** @format uuid */
374
+ tenantId: string;
375
+ /** @format date-time */
376
+ updatedAt: string;
377
+ }
378
+ export interface OperationGroupEntityPaginatedDto {
379
+ items: OperationGroupEntityDto[];
380
+ links?: PaginationLinksDto;
381
+ meta: PaginationMetaDto;
382
+ }
383
+ export declare enum OperationGroupStatusEnum {
384
+ OnHold = "on_hold",
385
+ Confirmed = "confirmed",
386
+ Processed = "processed",
387
+ Cancelled = "cancelled"
388
+ }
288
389
  export declare enum OrderByEnum {
289
390
  ASC = "ASC",
290
391
  DESC = "DESC"
@@ -374,7 +475,12 @@ export interface UpdateCaseDto {
374
475
  maxItems: number;
375
476
  name: string;
376
477
  }
377
- export interface UpdateCaseOperationExtraTemplateDto {
478
+ export interface UpdateNameOnlyEntityDto {
479
+ /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
480
+ isGlobal?: boolean;
481
+ name: string;
482
+ }
483
+ export interface UpdateOperationExtraTemplateDto {
378
484
  description?: string | null;
379
485
  invoiceTitle: string;
380
486
  /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
@@ -382,11 +488,6 @@ export interface UpdateCaseOperationExtraTemplateDto {
382
488
  /** @example 100 */
383
489
  pricePerItem: number;
384
490
  }
385
- export interface UpdateNameOnlyEntityDto {
386
- /** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
387
- isGlobal?: boolean;
388
- name: string;
389
- }
390
491
  export interface UpdateUserDto {
391
492
  firstName?: string | null;
392
493
  lastName?: string | null;
@@ -1022,22 +1123,41 @@ export declare namespace Tenants {
1022
1123
  export declare namespace Admin {
1023
1124
  /**
1024
1125
  * No description
1025
- * @tags Admin Tenant Cases
1026
- * @name AddTenantCaseBatchOperations
1027
- * @request POST:/admin/tenants/{tenantId}/cases/{caseId}/operations/batch
1126
+ * @tags Admin Tenant Operation Groups
1127
+ * @name CancelTenantOperationGroup
1128
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/cancel
1028
1129
  * @secure
1029
- * @response `200` `CaseBatchOperationResponseDto`
1030
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1130
+ * @response `204` `void`
1131
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1031
1132
  */
1032
- namespace AddTenantCaseBatchOperations {
1133
+ namespace CancelTenantOperationGroup {
1033
1134
  type RequestParams = {
1034
- caseId: string;
1135
+ groupId: string;
1136
+ tenantId: string;
1137
+ };
1138
+ type RequestQuery = {};
1139
+ type RequestBody = never;
1140
+ type RequestHeaders = {};
1141
+ type ResponseBody = void;
1142
+ }
1143
+ /**
1144
+ * No description
1145
+ * @tags Admin Tenant Operation Groups
1146
+ * @name ConfirmTenantOperationGroup
1147
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/confirm
1148
+ * @secure
1149
+ * @response `204` `void`
1150
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1151
+ */
1152
+ namespace ConfirmTenantOperationGroup {
1153
+ type RequestParams = {
1154
+ groupId: string;
1035
1155
  tenantId: string;
1036
1156
  };
1037
1157
  type RequestQuery = {};
1038
- type RequestBody = CreateBatchCaseOperationsDto;
1158
+ type RequestBody = never;
1039
1159
  type RequestHeaders = {};
1040
- type ResponseBody = CaseBatchOperationResponseDto;
1160
+ type ResponseBody = void;
1041
1161
  }
1042
1162
  /**
1043
1163
  * No description
@@ -1063,7 +1183,7 @@ export declare namespace Admin {
1063
1183
  * @name CreateTenantOperationExtraTemplate
1064
1184
  * @request POST:/admin/tenants/{tenantId}/operation-extras-templates
1065
1185
  * @secure
1066
- * @response `201` `CaseOperationExtraTemplateEntityDto`
1186
+ * @response `201` `OperationExtraTemplateEntityDto`
1067
1187
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1068
1188
  */
1069
1189
  namespace CreateTenantOperationExtraTemplate {
@@ -1071,9 +1191,27 @@ export declare namespace Admin {
1071
1191
  tenantId: string;
1072
1192
  };
1073
1193
  type RequestQuery = {};
1074
- type RequestBody = CreateCaseOperationExtraTemplateDto;
1194
+ type RequestBody = CreateOperationExtraTemplateDto;
1195
+ type RequestHeaders = {};
1196
+ type ResponseBody = OperationExtraTemplateEntityDto;
1197
+ }
1198
+ /**
1199
+ * No description
1200
+ * @tags Admin Tenant Operation Groups
1201
+ * @name CreateTenantOperationGroup
1202
+ * @request POST:/admin/tenants/{tenantId}/operation-groups
1203
+ * @secure
1204
+ * @response `201` `OperationGroupEntityDto`
1205
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1206
+ */
1207
+ namespace CreateTenantOperationGroup {
1208
+ type RequestParams = {
1209
+ tenantId: string;
1210
+ };
1211
+ type RequestQuery = {};
1212
+ type RequestBody = CreateOperationGroupDto;
1075
1213
  type RequestHeaders = {};
1076
- type ResponseBody = CaseOperationExtraTemplateEntityDto;
1214
+ type ResponseBody = OperationGroupEntityDto;
1077
1215
  }
1078
1216
  /**
1079
1217
  * No description
@@ -1582,7 +1720,7 @@ export declare namespace Admin {
1582
1720
  * @name GetTenantOperationExtraTemplateById
1583
1721
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
1584
1722
  * @secure
1585
- * @response `200` `CaseOperationExtraTemplateEntityDto`
1723
+ * @response `200` `OperationExtraTemplateEntityDto`
1586
1724
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1587
1725
  */
1588
1726
  namespace GetTenantOperationExtraTemplateById {
@@ -1593,7 +1731,26 @@ export declare namespace Admin {
1593
1731
  type RequestQuery = {};
1594
1732
  type RequestBody = never;
1595
1733
  type RequestHeaders = {};
1596
- type ResponseBody = CaseOperationExtraTemplateEntityDto;
1734
+ type ResponseBody = OperationExtraTemplateEntityDto;
1735
+ }
1736
+ /**
1737
+ * No description
1738
+ * @tags Admin Tenant Operation Groups
1739
+ * @name GetTenantOperationGroupById
1740
+ * @request GET:/admin/tenants/{tenantId}/operation-groups/{groupId}
1741
+ * @secure
1742
+ * @response `200` `FullOperationGroupEntityDto`
1743
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1744
+ */
1745
+ namespace GetTenantOperationGroupById {
1746
+ type RequestParams = {
1747
+ groupId: string;
1748
+ tenantId: string;
1749
+ };
1750
+ type RequestQuery = {};
1751
+ type RequestBody = never;
1752
+ type RequestHeaders = {};
1753
+ type ResponseBody = FullOperationGroupEntityDto;
1597
1754
  }
1598
1755
  /**
1599
1756
  * No description
@@ -1904,7 +2061,7 @@ export declare namespace Admin {
1904
2061
  * @name ListTenantOperationExtrasTemplates
1905
2062
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates
1906
2063
  * @secure
1907
- * @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
2064
+ * @response `200` `OperationExtraTemplateEntityPaginatedDto`
1908
2065
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1909
2066
  */
1910
2067
  namespace ListTenantOperationExtrasTemplates {
@@ -1929,7 +2086,41 @@ export declare namespace Admin {
1929
2086
  };
1930
2087
  type RequestBody = never;
1931
2088
  type RequestHeaders = {};
1932
- type ResponseBody = CaseOperationExtraTemplateEntityPaginatedDto;
2089
+ type ResponseBody = OperationExtraTemplateEntityPaginatedDto;
2090
+ }
2091
+ /**
2092
+ * No description
2093
+ * @tags Admin Tenant Operation Groups
2094
+ * @name ListTenantOperationGroups
2095
+ * @request GET:/admin/tenants/{tenantId}/operation-groups
2096
+ * @secure
2097
+ * @response `200` `OperationGroupEntityPaginatedDto`
2098
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2099
+ */
2100
+ namespace ListTenantOperationGroups {
2101
+ type RequestParams = {
2102
+ tenantId: string;
2103
+ };
2104
+ type RequestQuery = {
2105
+ createdAt?: string;
2106
+ customerIds?: string[];
2107
+ /**
2108
+ * @default 10
2109
+ * @example 10
2110
+ */
2111
+ limit?: number;
2112
+ orderBy?: OrderByEnum;
2113
+ /**
2114
+ * @default 1
2115
+ * @example 1
2116
+ */
2117
+ page?: number;
2118
+ sortBy?: string[];
2119
+ status?: OperationGroupStatusEnum[];
2120
+ };
2121
+ type RequestBody = never;
2122
+ type RequestHeaders = {};
2123
+ type ResponseBody = OperationGroupEntityPaginatedDto;
1933
2124
  }
1934
2125
  /**
1935
2126
  * No description
@@ -2333,6 +2524,25 @@ export declare namespace Admin {
2333
2524
  type RequestHeaders = {};
2334
2525
  type ResponseBody = WineVineyardEntityPaginatedDto;
2335
2526
  }
2527
+ /**
2528
+ * No description
2529
+ * @tags Admin Tenant Operation Groups
2530
+ * @name ProcessTenantOperationGroup
2531
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/process
2532
+ * @secure
2533
+ * @response `204` `void`
2534
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2535
+ */
2536
+ namespace ProcessTenantOperationGroup {
2537
+ type RequestParams = {
2538
+ groupId: string;
2539
+ tenantId: string;
2540
+ };
2541
+ type RequestQuery = {};
2542
+ type RequestBody = never;
2543
+ type RequestHeaders = {};
2544
+ type ResponseBody = void;
2545
+ }
2336
2546
  /**
2337
2547
  * No description
2338
2548
  * @tags Admin Tenant Cases
@@ -2358,7 +2568,7 @@ export declare namespace Admin {
2358
2568
  * @name UpdateTenantOperationExtraTemplate
2359
2569
  * @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
2360
2570
  * @secure
2361
- * @response `200` `CaseOperationExtraTemplateEntityDto`
2571
+ * @response `200` `OperationExtraTemplateEntityDto`
2362
2572
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2363
2573
  */
2364
2574
  namespace UpdateTenantOperationExtraTemplate {
@@ -2367,9 +2577,9 @@ export declare namespace Admin {
2367
2577
  tenantId: string;
2368
2578
  };
2369
2579
  type RequestQuery = {};
2370
- type RequestBody = UpdateCaseOperationExtraTemplateDto;
2580
+ type RequestBody = UpdateOperationExtraTemplateDto;
2371
2581
  type RequestHeaders = {};
2372
- type ResponseBody = CaseOperationExtraTemplateEntityDto;
2582
+ type ResponseBody = OperationExtraTemplateEntityDto;
2373
2583
  }
2374
2584
  /**
2375
2585
  * No description
@@ -2859,14 +3069,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2859
3069
  /**
2860
3070
  * No description
2861
3071
  *
2862
- * @tags Admin Tenant Cases
2863
- * @name AddTenantCaseBatchOperations
2864
- * @request POST:/admin/tenants/{tenantId}/cases/{caseId}/operations/batch
3072
+ * @tags Admin Tenant Operation Groups
3073
+ * @name CancelTenantOperationGroup
3074
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/cancel
2865
3075
  * @secure
2866
- * @response `200` `CaseBatchOperationResponseDto`
2867
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3076
+ * @response `204` `void`
3077
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2868
3078
  */
2869
- addTenantCaseBatchOperations: (tenantId: string, caseId: string, data: CreateBatchCaseOperationsDto, params?: RequestParams) => Promise<CaseBatchOperationResponseDto>;
3079
+ cancelTenantOperationGroup: (tenantId: string, groupId: string, params?: RequestParams) => Promise<void>;
3080
+ /**
3081
+ * No description
3082
+ *
3083
+ * @tags Admin Tenant Operation Groups
3084
+ * @name ConfirmTenantOperationGroup
3085
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/confirm
3086
+ * @secure
3087
+ * @response `204` `void`
3088
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3089
+ */
3090
+ confirmTenantOperationGroup: (tenantId: string, groupId: string, params?: RequestParams) => Promise<void>;
2870
3091
  /**
2871
3092
  * No description
2872
3093
  *
@@ -2885,10 +3106,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2885
3106
  * @name CreateTenantOperationExtraTemplate
2886
3107
  * @request POST:/admin/tenants/{tenantId}/operation-extras-templates
2887
3108
  * @secure
2888
- * @response `201` `CaseOperationExtraTemplateEntityDto`
3109
+ * @response `201` `OperationExtraTemplateEntityDto`
2889
3110
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
2890
3111
  */
2891
- createTenantOperationExtraTemplate: (tenantId: string, data: CreateCaseOperationExtraTemplateDto, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityDto>;
3112
+ createTenantOperationExtraTemplate: (tenantId: string, data: CreateOperationExtraTemplateDto, params?: RequestParams) => Promise<OperationExtraTemplateEntityDto>;
3113
+ /**
3114
+ * No description
3115
+ *
3116
+ * @tags Admin Tenant Operation Groups
3117
+ * @name CreateTenantOperationGroup
3118
+ * @request POST:/admin/tenants/{tenantId}/operation-groups
3119
+ * @secure
3120
+ * @response `201` `OperationGroupEntityDto`
3121
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3122
+ */
3123
+ createTenantOperationGroup: (tenantId: string, data: CreateOperationGroupDto, params?: RequestParams) => Promise<OperationGroupEntityDto>;
2892
3124
  /**
2893
3125
  * No description
2894
3126
  *
@@ -3193,10 +3425,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3193
3425
  * @name GetTenantOperationExtraTemplateById
3194
3426
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
3195
3427
  * @secure
3196
- * @response `200` `CaseOperationExtraTemplateEntityDto`
3428
+ * @response `200` `OperationExtraTemplateEntityDto`
3197
3429
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3198
3430
  */
3199
- getTenantOperationExtraTemplateById: (tenantId: string, templateId: string, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityDto>;
3431
+ getTenantOperationExtraTemplateById: (tenantId: string, templateId: string, params?: RequestParams) => Promise<OperationExtraTemplateEntityDto>;
3432
+ /**
3433
+ * No description
3434
+ *
3435
+ * @tags Admin Tenant Operation Groups
3436
+ * @name GetTenantOperationGroupById
3437
+ * @request GET:/admin/tenants/{tenantId}/operation-groups/{groupId}
3438
+ * @secure
3439
+ * @response `200` `FullOperationGroupEntityDto`
3440
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3441
+ */
3442
+ getTenantOperationGroupById: (tenantId: string, groupId: string, params?: RequestParams) => Promise<FullOperationGroupEntityDto>;
3200
3443
  /**
3201
3444
  * No description
3202
3445
  *
@@ -3396,7 +3639,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3396
3639
  * @name ListTenantOperationExtrasTemplates
3397
3640
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates
3398
3641
  * @secure
3399
- * @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
3642
+ * @response `200` `OperationExtraTemplateEntityPaginatedDto`
3400
3643
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3401
3644
  */
3402
3645
  listTenantOperationExtrasTemplates: (tenantId: string, query?: {
@@ -3414,7 +3657,34 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3414
3657
  page?: number;
3415
3658
  search?: string;
3416
3659
  sortBy?: string[];
3417
- }, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityPaginatedDto>;
3660
+ }, params?: RequestParams) => Promise<OperationExtraTemplateEntityPaginatedDto>;
3661
+ /**
3662
+ * No description
3663
+ *
3664
+ * @tags Admin Tenant Operation Groups
3665
+ * @name ListTenantOperationGroups
3666
+ * @request GET:/admin/tenants/{tenantId}/operation-groups
3667
+ * @secure
3668
+ * @response `200` `OperationGroupEntityPaginatedDto`
3669
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
3670
+ */
3671
+ listTenantOperationGroups: (tenantId: string, query?: {
3672
+ createdAt?: string;
3673
+ customerIds?: string[];
3674
+ /**
3675
+ * @default 10
3676
+ * @example 10
3677
+ */
3678
+ limit?: number;
3679
+ orderBy?: OrderByEnum;
3680
+ /**
3681
+ * @default 1
3682
+ * @example 1
3683
+ */
3684
+ page?: number;
3685
+ sortBy?: string[];
3686
+ status?: OperationGroupStatusEnum[];
3687
+ }, params?: RequestParams) => Promise<OperationGroupEntityPaginatedDto>;
3418
3688
  /**
3419
3689
  * No description
3420
3690
  *
@@ -3733,6 +4003,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3733
4003
  search?: string;
3734
4004
  sortBy?: string[];
3735
4005
  }, params?: RequestParams) => Promise<WineVineyardEntityPaginatedDto>;
4006
+ /**
4007
+ * No description
4008
+ *
4009
+ * @tags Admin Tenant Operation Groups
4010
+ * @name ProcessTenantOperationGroup
4011
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/process
4012
+ * @secure
4013
+ * @response `204` `void`
4014
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
4015
+ */
4016
+ processTenantOperationGroup: (tenantId: string, groupId: string, params?: RequestParams) => Promise<void>;
3736
4017
  /**
3737
4018
  * No description
3738
4019
  *
@@ -3751,10 +4032,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3751
4032
  * @name UpdateTenantOperationExtraTemplate
3752
4033
  * @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
3753
4034
  * @secure
3754
- * @response `200` `CaseOperationExtraTemplateEntityDto`
4035
+ * @response `200` `OperationExtraTemplateEntityDto`
3755
4036
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
3756
4037
  */
3757
- updateTenantOperationExtraTemplate: (tenantId: string, templateId: string, data: UpdateCaseOperationExtraTemplateDto, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityDto>;
4038
+ updateTenantOperationExtraTemplate: (tenantId: string, templateId: string, data: UpdateOperationExtraTemplateDto, params?: RequestParams) => Promise<OperationExtraTemplateEntityDto>;
3758
4039
  /**
3759
4040
  * No description
3760
4041
  *
package/dist/umd/index.ts CHANGED
@@ -18410,7 +18410,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
18410
18410
  return (mod && mod.__esModule) ? mod : { "default": mod };
18411
18411
  };
18412
18412
  Object.defineProperty(exports, "__esModule", ({ value: true }));
18413
- exports.Api = exports.HttpClient = exports.ContentType = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.PhoneTypeEnum = exports.OrderByEnum = exports.CreateOnlyCaseOperationStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
18413
+ exports.Api = exports.HttpClient = exports.ContentType = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.PhoneTypeEnum = exports.OrderByEnum = exports.OperationGroupStatusEnum = exports.CreateOnlyOperationGroupStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
18414
18414
  var CaseOperationLogTypeEnum;
18415
18415
  (function (CaseOperationLogTypeEnum) {
18416
18416
  CaseOperationLogTypeEnum["RequestAccepted"] = "request_accepted";
@@ -18428,12 +18428,19 @@ var CaseOperationTypesEnum;
18428
18428
  CaseOperationTypesEnum["Deposit"] = "deposit";
18429
18429
  CaseOperationTypesEnum["Withdrawal"] = "withdrawal";
18430
18430
  })(CaseOperationTypesEnum = exports.CaseOperationTypesEnum || (exports.CaseOperationTypesEnum = {}));
18431
- var CreateOnlyCaseOperationStatusEnum;
18432
- (function (CreateOnlyCaseOperationStatusEnum) {
18433
- CreateOnlyCaseOperationStatusEnum["OnHold"] = "on_hold";
18434
- CreateOnlyCaseOperationStatusEnum["Confirmed"] = "confirmed";
18435
- CreateOnlyCaseOperationStatusEnum["Processed"] = "processed";
18436
- })(CreateOnlyCaseOperationStatusEnum = exports.CreateOnlyCaseOperationStatusEnum || (exports.CreateOnlyCaseOperationStatusEnum = {}));
18431
+ var CreateOnlyOperationGroupStatusEnum;
18432
+ (function (CreateOnlyOperationGroupStatusEnum) {
18433
+ CreateOnlyOperationGroupStatusEnum["OnHold"] = "on_hold";
18434
+ CreateOnlyOperationGroupStatusEnum["Confirmed"] = "confirmed";
18435
+ CreateOnlyOperationGroupStatusEnum["Processed"] = "processed";
18436
+ })(CreateOnlyOperationGroupStatusEnum = exports.CreateOnlyOperationGroupStatusEnum || (exports.CreateOnlyOperationGroupStatusEnum = {}));
18437
+ var OperationGroupStatusEnum;
18438
+ (function (OperationGroupStatusEnum) {
18439
+ OperationGroupStatusEnum["OnHold"] = "on_hold";
18440
+ OperationGroupStatusEnum["Confirmed"] = "confirmed";
18441
+ OperationGroupStatusEnum["Processed"] = "processed";
18442
+ OperationGroupStatusEnum["Cancelled"] = "cancelled";
18443
+ })(OperationGroupStatusEnum = exports.OperationGroupStatusEnum || (exports.OperationGroupStatusEnum = {}));
18437
18444
  var OrderByEnum;
18438
18445
  (function (OrderByEnum) {
18439
18446
  OrderByEnum["ASC"] = "ASC";
@@ -18784,16 +18791,30 @@ var Api = /** @class */ (function (_super) {
18784
18791
  /**
18785
18792
  * No description
18786
18793
  *
18787
- * @tags Admin Tenant Cases
18788
- * @name AddTenantCaseBatchOperations
18789
- * @request POST:/admin/tenants/{tenantId}/cases/{caseId}/operations/batch
18794
+ * @tags Admin Tenant Operation Groups
18795
+ * @name CancelTenantOperationGroup
18796
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/cancel
18790
18797
  * @secure
18791
- * @response `200` `CaseBatchOperationResponseDto`
18792
- * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
18798
+ * @response `204` `void`
18799
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18793
18800
  */
18794
- addTenantCaseBatchOperations: function (tenantId, caseId, data, params) {
18801
+ cancelTenantOperationGroup: function (tenantId, groupId, params) {
18795
18802
  if (params === void 0) { params = {}; }
18796
- return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId, "/operations/batch"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18803
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/cancel"), method: "PATCH", secure: true }, params));
18804
+ },
18805
+ /**
18806
+ * No description
18807
+ *
18808
+ * @tags Admin Tenant Operation Groups
18809
+ * @name ConfirmTenantOperationGroup
18810
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/confirm
18811
+ * @secure
18812
+ * @response `204` `void`
18813
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18814
+ */
18815
+ confirmTenantOperationGroup: function (tenantId, groupId, params) {
18816
+ if (params === void 0) { params = {}; }
18817
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/confirm"), method: "PATCH", secure: true }, params));
18797
18818
  },
18798
18819
  /**
18799
18820
  * No description
@@ -18816,13 +18837,27 @@ var Api = /** @class */ (function (_super) {
18816
18837
  * @name CreateTenantOperationExtraTemplate
18817
18838
  * @request POST:/admin/tenants/{tenantId}/operation-extras-templates
18818
18839
  * @secure
18819
- * @response `201` `CaseOperationExtraTemplateEntityDto`
18840
+ * @response `201` `OperationExtraTemplateEntityDto`
18820
18841
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18821
18842
  */
18822
18843
  createTenantOperationExtraTemplate: function (tenantId, data, params) {
18823
18844
  if (params === void 0) { params = {}; }
18824
18845
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18825
18846
  },
18847
+ /**
18848
+ * No description
18849
+ *
18850
+ * @tags Admin Tenant Operation Groups
18851
+ * @name CreateTenantOperationGroup
18852
+ * @request POST:/admin/tenants/{tenantId}/operation-groups
18853
+ * @secure
18854
+ * @response `201` `OperationGroupEntityDto`
18855
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18856
+ */
18857
+ createTenantOperationGroup: function (tenantId, data, params) {
18858
+ if (params === void 0) { params = {}; }
18859
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18860
+ },
18826
18861
  /**
18827
18862
  * No description
18828
18863
  *
@@ -19208,13 +19243,27 @@ var Api = /** @class */ (function (_super) {
19208
19243
  * @name GetTenantOperationExtraTemplateById
19209
19244
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
19210
19245
  * @secure
19211
- * @response `200` `CaseOperationExtraTemplateEntityDto`
19246
+ * @response `200` `OperationExtraTemplateEntityDto`
19212
19247
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19213
19248
  */
19214
19249
  getTenantOperationExtraTemplateById: function (tenantId, templateId, params) {
19215
19250
  if (params === void 0) { params = {}; }
19216
19251
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "GET", secure: true, format: "json" }, params));
19217
19252
  },
19253
+ /**
19254
+ * No description
19255
+ *
19256
+ * @tags Admin Tenant Operation Groups
19257
+ * @name GetTenantOperationGroupById
19258
+ * @request GET:/admin/tenants/{tenantId}/operation-groups/{groupId}
19259
+ * @secure
19260
+ * @response `200` `FullOperationGroupEntityDto`
19261
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19262
+ */
19263
+ getTenantOperationGroupById: function (tenantId, groupId, params) {
19264
+ if (params === void 0) { params = {}; }
19265
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId), method: "GET", secure: true, format: "json" }, params));
19266
+ },
19218
19267
  /**
19219
19268
  * No description
19220
19269
  *
@@ -19418,13 +19467,27 @@ var Api = /** @class */ (function (_super) {
19418
19467
  * @name ListTenantOperationExtrasTemplates
19419
19468
  * @request GET:/admin/tenants/{tenantId}/operation-extras-templates
19420
19469
  * @secure
19421
- * @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
19470
+ * @response `200` `OperationExtraTemplateEntityPaginatedDto`
19422
19471
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19423
19472
  */
19424
19473
  listTenantOperationExtrasTemplates: function (tenantId, query, params) {
19425
19474
  if (params === void 0) { params = {}; }
19426
19475
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "GET", query: query, secure: true, format: "json" }, params));
19427
19476
  },
19477
+ /**
19478
+ * No description
19479
+ *
19480
+ * @tags Admin Tenant Operation Groups
19481
+ * @name ListTenantOperationGroups
19482
+ * @request GET:/admin/tenants/{tenantId}/operation-groups
19483
+ * @secure
19484
+ * @response `200` `OperationGroupEntityPaginatedDto`
19485
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19486
+ */
19487
+ listTenantOperationGroups: function (tenantId, query, params) {
19488
+ if (params === void 0) { params = {}; }
19489
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups"), method: "GET", query: query, secure: true, format: "json" }, params));
19490
+ },
19428
19491
  /**
19429
19492
  * No description
19430
19493
  *
@@ -19593,6 +19656,20 @@ var Api = /** @class */ (function (_super) {
19593
19656
  if (params === void 0) { params = {}; }
19594
19657
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
19595
19658
  },
19659
+ /**
19660
+ * No description
19661
+ *
19662
+ * @tags Admin Tenant Operation Groups
19663
+ * @name ProcessTenantOperationGroup
19664
+ * @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/process
19665
+ * @secure
19666
+ * @response `204` `void`
19667
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
19668
+ */
19669
+ processTenantOperationGroup: function (tenantId, groupId, params) {
19670
+ if (params === void 0) { params = {}; }
19671
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", secure: true }, params));
19672
+ },
19596
19673
  /**
19597
19674
  * No description
19598
19675
  *
@@ -19614,7 +19691,7 @@ var Api = /** @class */ (function (_super) {
19614
19691
  * @name UpdateTenantOperationExtraTemplate
19615
19692
  * @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
19616
19693
  * @secure
19617
- * @response `200` `CaseOperationExtraTemplateEntityDto`
19694
+ * @response `200` `OperationExtraTemplateEntityDto`
19618
19695
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
19619
19696
  */
19620
19697
  updateTenantOperationExtraTemplate: function (tenantId, templateId, data, params) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thelllabs/winehaus-sdk",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "Winehaus SDK",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",