@thelllabs/winehaus-sdk 0.0.26 → 0.0.27

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.
@@ -1226,6 +1226,20 @@ var Api = /** @class */ (function (_super) {
1226
1226
  if (params === void 0) { params = {}; }
1227
1227
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
1228
1228
  },
1229
+ /**
1230
+ * No description
1231
+ *
1232
+ * @tags Admin Tenant Operation Requests
1233
+ * @name GetTenantOperationRequestWinePossibleCases
1234
+ * @request GET:/admin/tenants/{tenantId}/requests/{requestId}/wine-cases
1235
+ * @secure
1236
+ * @response `200` `WineCasesResponseDto`
1237
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1238
+ */
1239
+ getTenantOperationRequestWinePossibleCases: function (tenantId, requestId, params) {
1240
+ if (params === void 0) { params = {}; }
1241
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/wine-cases"), method: "GET", secure: true, format: "json" }, params));
1242
+ },
1229
1243
  /**
1230
1244
  * No description
1231
1245
  *
@@ -1656,9 +1670,9 @@ var Api = /** @class */ (function (_super) {
1656
1670
  * @response `204` `void`
1657
1671
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1658
1672
  */
1659
- processTenantOperationGroup: function (tenantId, groupId, params) {
1673
+ processTenantOperationGroup: function (tenantId, groupId, data, params) {
1660
1674
  if (params === void 0) { params = {}; }
1661
- return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", secure: true }, params));
1675
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
1662
1676
  },
1663
1677
  /**
1664
1678
  * No description
@@ -1220,6 +1220,20 @@ var Api = /** @class */ (function (_super) {
1220
1220
  if (params === void 0) { params = {}; }
1221
1221
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
1222
1222
  },
1223
+ /**
1224
+ * No description
1225
+ *
1226
+ * @tags Admin Tenant Operation Requests
1227
+ * @name GetTenantOperationRequestWinePossibleCases
1228
+ * @request GET:/admin/tenants/{tenantId}/requests/{requestId}/wine-cases
1229
+ * @secure
1230
+ * @response `200` `WineCasesResponseDto`
1231
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1232
+ */
1233
+ getTenantOperationRequestWinePossibleCases: function (tenantId, requestId, params) {
1234
+ if (params === void 0) { params = {}; }
1235
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/wine-cases"), method: "GET", secure: true, format: "json" }, params));
1236
+ },
1223
1237
  /**
1224
1238
  * No description
1225
1239
  *
@@ -1650,9 +1664,9 @@ var Api = /** @class */ (function (_super) {
1650
1664
  * @response `204` `void`
1651
1665
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1652
1666
  */
1653
- processTenantOperationGroup: function (tenantId, groupId, params) {
1667
+ processTenantOperationGroup: function (tenantId, groupId, data, params) {
1654
1668
  if (params === void 0) { params = {}; }
1655
- return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", secure: true }, params));
1669
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
1656
1670
  },
1657
1671
  /**
1658
1672
  * No description
@@ -146,6 +146,7 @@ export interface CaseWineInventoryItemEntityDto {
146
146
  bottleVintage: WineBottleVintageEntityDto;
147
147
  /** @format uuid */
148
148
  bottleVintageId: string;
149
+ case?: SimpleCaseEntityDto | null;
149
150
  /** @format uuid */
150
151
  caseId?: string | null;
151
152
  /** @format date-time */
@@ -211,6 +212,7 @@ export interface CreateCaseDto {
211
212
  /** @min 0 */
212
213
  maxItems: number;
213
214
  name: string;
215
+ triggerInvoice?: boolean;
214
216
  }
215
217
  export interface CreateCaseOperationDto {
216
218
  /** @format uuid */
@@ -658,6 +660,9 @@ export interface ProcessDepositDto {
658
660
  /** @minItems 1 */
659
661
  wines: DepositRequestCreateWineInventoryItemDto[];
660
662
  }
663
+ export interface ProcessOperationGroupDto {
664
+ triggerInvoice?: boolean;
665
+ }
661
666
  export interface ProcessWithdrawDto {
662
667
  /** @minItems 0 */
663
668
  extras?: CreateOperationExtraDto[];
@@ -728,6 +733,33 @@ export interface SigninResponseDto {
728
733
  token: string;
729
734
  user: UserEntityDto;
730
735
  }
736
+ export interface SimpleCaseEntityDto {
737
+ /** @format date-time */
738
+ billingEndDate?: string | null;
739
+ /** @format date-time */
740
+ billingStartDate?: string | null;
741
+ /** @format date-time */
742
+ createdAt: string;
743
+ /** @min 0 */
744
+ currentItems: number;
745
+ /** @format uuid */
746
+ customerId: string;
747
+ /** @format date-time */
748
+ deletedAt?: string | null;
749
+ description?: string | null;
750
+ /** @format uuid */
751
+ id: string;
752
+ location?: string | null;
753
+ /** @min 0 */
754
+ maxItems: number;
755
+ name: string;
756
+ /** @format uuid */
757
+ planId?: string | null;
758
+ /** @format uuid */
759
+ tenantId: string;
760
+ /** @format date-time */
761
+ updatedAt: string;
762
+ }
731
763
  export interface StoragePlanEntityDto {
732
764
  /** @format date-time */
733
765
  createdAt: string;
@@ -791,6 +823,7 @@ export interface UpdateCaseDto {
791
823
  /** @min 0 */
792
824
  maxItems: number;
793
825
  name: string;
826
+ triggerInvoice?: boolean;
794
827
  }
795
828
  export interface UpdateCaseOperationDto {
796
829
  /** @format uuid */
@@ -1027,6 +1060,18 @@ export interface WineBrandEntityPaginatedDto {
1027
1060
  links?: PaginationLinksDto;
1028
1061
  meta: PaginationMetaDto;
1029
1062
  }
1063
+ export interface WineCaseItemResponseDto {
1064
+ /** @format uuid */
1065
+ bottleFormatId: string;
1066
+ /** @format uuid */
1067
+ bottleVintageId: string;
1068
+ cases: SimpleCaseEntityDto[];
1069
+ /** @format uuid */
1070
+ wineId: string;
1071
+ }
1072
+ export interface WineCasesResponseDto {
1073
+ wines: WineCaseItemResponseDto[];
1074
+ }
1030
1075
  export interface WineCountryEntityDto {
1031
1076
  /** @format date-time */
1032
1077
  createdAt: string;
@@ -2611,6 +2656,25 @@ export declare namespace Admin {
2611
2656
  type RequestHeaders = {};
2612
2657
  type ResponseBody = FullOperationRequestEntityDto;
2613
2658
  }
2659
+ /**
2660
+ * No description
2661
+ * @tags Admin Tenant Operation Requests
2662
+ * @name GetTenantOperationRequestWinePossibleCases
2663
+ * @request GET:/admin/tenants/{tenantId}/requests/{requestId}/wine-cases
2664
+ * @secure
2665
+ * @response `200` `WineCasesResponseDto`
2666
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2667
+ */
2668
+ namespace GetTenantOperationRequestWinePossibleCases {
2669
+ type RequestParams = {
2670
+ requestId: string;
2671
+ tenantId: string;
2672
+ };
2673
+ type RequestQuery = {};
2674
+ type RequestBody = never;
2675
+ type RequestHeaders = {};
2676
+ type ResponseBody = WineCasesResponseDto;
2677
+ }
2614
2678
  /**
2615
2679
  * No description
2616
2680
  * @tags Admin Tenant Wine Bottle Formats
@@ -3456,7 +3520,7 @@ export declare namespace Admin {
3456
3520
  tenantId: string;
3457
3521
  };
3458
3522
  type RequestQuery = {};
3459
- type RequestBody = never;
3523
+ type RequestBody = ProcessOperationGroupDto;
3460
3524
  type RequestHeaders = {};
3461
3525
  type ResponseBody = void;
3462
3526
  }
@@ -4810,6 +4874,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4810
4874
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
4811
4875
  */
4812
4876
  getTenantOperationRequestById: (tenantId: string, requestId: string, params?: RequestParams) => Promise<FullOperationRequestEntityDto>;
4877
+ /**
4878
+ * No description
4879
+ *
4880
+ * @tags Admin Tenant Operation Requests
4881
+ * @name GetTenantOperationRequestWinePossibleCases
4882
+ * @request GET:/admin/tenants/{tenantId}/requests/{requestId}/wine-cases
4883
+ * @secure
4884
+ * @response `200` `WineCasesResponseDto`
4885
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
4886
+ */
4887
+ getTenantOperationRequestWinePossibleCases: (tenantId: string, requestId: string, params?: RequestParams) => Promise<WineCasesResponseDto>;
4813
4888
  /**
4814
4889
  * No description
4815
4890
  *
@@ -5426,7 +5501,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5426
5501
  * @response `204` `void`
5427
5502
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
5428
5503
  */
5429
- processTenantOperationGroup: (tenantId: string, groupId: string, params?: RequestParams) => Promise<void>;
5504
+ processTenantOperationGroup: (tenantId: string, groupId: string, data: ProcessOperationGroupDto, params?: RequestParams) => Promise<void>;
5430
5505
  /**
5431
5506
  * No description
5432
5507
  *
package/dist/umd/index.ts CHANGED
@@ -19551,6 +19551,20 @@ var Api = /** @class */ (function (_super) {
19551
19551
  if (params === void 0) { params = {}; }
19552
19552
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
19553
19553
  },
19554
+ /**
19555
+ * No description
19556
+ *
19557
+ * @tags Admin Tenant Operation Requests
19558
+ * @name GetTenantOperationRequestWinePossibleCases
19559
+ * @request GET:/admin/tenants/{tenantId}/requests/{requestId}/wine-cases
19560
+ * @secure
19561
+ * @response `200` `WineCasesResponseDto`
19562
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19563
+ */
19564
+ getTenantOperationRequestWinePossibleCases: function (tenantId, requestId, params) {
19565
+ if (params === void 0) { params = {}; }
19566
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/wine-cases"), method: "GET", secure: true, format: "json" }, params));
19567
+ },
19554
19568
  /**
19555
19569
  * No description
19556
19570
  *
@@ -19981,9 +19995,9 @@ var Api = /** @class */ (function (_super) {
19981
19995
  * @response `204` `void`
19982
19996
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
19983
19997
  */
19984
- processTenantOperationGroup: function (tenantId, groupId, params) {
19998
+ processTenantOperationGroup: function (tenantId, groupId, data, params) {
19985
19999
  if (params === void 0) { params = {}; }
19986
- return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", secure: true }, params));
20000
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
19987
20001
  },
19988
20002
  /**
19989
20003
  * No description
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thelllabs/winehaus-sdk",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "Winehaus SDK",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",