@thelllabs/winehaus-sdk 0.0.31 → 0.0.34

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.
@@ -279,7 +279,7 @@ var HttpClient = /** @class */ (function () {
279
279
  exports.HttpClient = HttpClient;
280
280
  /**
281
281
  * @title winehaus-api
282
- * @version 0.0.3
282
+ * @version 0.0.7
283
283
  * @baseUrl http://localhost:3000
284
284
  * @contact
285
285
  */
@@ -482,6 +482,20 @@ var Api = /** @class */ (function (_super) {
482
482
  if (params === void 0) { params = {}; }
483
483
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "GET", secure: true, format: "json" }, params));
484
484
  },
485
+ /**
486
+ * No description
487
+ *
488
+ * @tags Tenant Users
489
+ * @name GetUserCaseById
490
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases/{caseId}
491
+ * @secure
492
+ * @response `200` `CaseEntityDto`
493
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
494
+ */
495
+ getUserCaseById: function (tenantId, userId, caseId, params) {
496
+ if (params === void 0) { params = {}; }
497
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/cases/").concat(caseId), method: "GET", secure: true, format: "json" }, params));
498
+ },
485
499
  /**
486
500
  * No description
487
501
  *
@@ -556,8 +570,37 @@ var Api = /** @class */ (function (_super) {
556
570
  * No description
557
571
  *
558
572
  * @tags Tenant Users
573
+ * @name ListUserCaseInventory
574
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases/{caseId}/inventory
575
+ * @secure
576
+ * @response `200` `CaseWineInventoryItemEntityPaginatedDto`
577
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
578
+ */
579
+ listUserCaseInventory: function (tenantId, userId, caseId, query, params) {
580
+ if (params === void 0) { params = {}; }
581
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/cases/").concat(caseId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
582
+ },
583
+ /**
584
+ * No description
585
+ *
586
+ * @tags Tenant Users
587
+ * @name ListUserCases
588
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases
589
+ * @secure
590
+ * @response `200` `CaseEntityPaginatedDto`
591
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
592
+ */
593
+ listUserCases: function (tenantId, userId, query, params) {
594
+ if (params === void 0) { params = {}; }
595
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/cases"), method: "GET", query: query, secure: true, format: "json" }, params));
596
+ },
597
+ /**
598
+ * @description Please, start using listUserInventoryByWines and/or listUserInventoryByCases instead. This will be removed in next versions
599
+ *
600
+ * @tags Tenant Users
559
601
  * @name ListUserInventory
560
602
  * @request GET:/tenants/{tenantId}/users/{userId}/inventory
603
+ * @deprecated
561
604
  * @secure
562
605
  * @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
563
606
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
@@ -566,6 +609,34 @@ var Api = /** @class */ (function (_super) {
566
609
  if (params === void 0) { params = {}; }
567
610
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
568
611
  },
612
+ /**
613
+ * No description
614
+ *
615
+ * @tags Tenant Users
616
+ * @name ListUserInventoryByCases
617
+ * @request GET:/tenants/{tenantId}/users/{userId}/inventory-by-cases
618
+ * @secure
619
+ * @response `200` `CaseWineInventoryItemEntityPaginatedDto`
620
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
621
+ */
622
+ listUserInventoryByCases: function (tenantId, userId, query, params) {
623
+ if (params === void 0) { params = {}; }
624
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory-by-cases"), method: "GET", query: query, secure: true, format: "json" }, params));
625
+ },
626
+ /**
627
+ * No description
628
+ *
629
+ * @tags Tenant Users
630
+ * @name ListUserInventoryByWines
631
+ * @request GET:/tenants/{tenantId}/users/{userId}/inventory-by-wines
632
+ * @secure
633
+ * @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
634
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
635
+ */
636
+ listUserInventoryByWines: function (tenantId, userId, query, params) {
637
+ if (params === void 0) { params = {}; }
638
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory-by-wines"), method: "GET", query: query, secure: true, format: "json" }, params));
639
+ },
569
640
  /**
570
641
  * No description
571
642
  *
@@ -700,12 +771,11 @@ var Api = /** @class */ (function (_super) {
700
771
  * @tags App Loader
701
772
  * @name GetAppLoadInfo
702
773
  * @request GET:/app
703
- * @secure
704
774
  * @response `200` `AppLoadResponseDto`
705
775
  */
706
776
  getAppLoadInfo: function (query, params) {
707
777
  if (params === void 0) { params = {}; }
708
- return _this.request(__assign({ path: "/app", method: "GET", query: query, secure: true, format: "json" }, params));
778
+ return _this.request(__assign({ path: "/app", method: "GET", query: query, format: "json" }, params));
709
779
  },
710
780
  };
711
781
  _this.admin = {
@@ -273,7 +273,7 @@ var HttpClient = /** @class */ (function () {
273
273
  export { HttpClient };
274
274
  /**
275
275
  * @title winehaus-api
276
- * @version 0.0.3
276
+ * @version 0.0.7
277
277
  * @baseUrl http://localhost:3000
278
278
  * @contact
279
279
  */
@@ -476,6 +476,20 @@ var Api = /** @class */ (function (_super) {
476
476
  if (params === void 0) { params = {}; }
477
477
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "GET", secure: true, format: "json" }, params));
478
478
  },
479
+ /**
480
+ * No description
481
+ *
482
+ * @tags Tenant Users
483
+ * @name GetUserCaseById
484
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases/{caseId}
485
+ * @secure
486
+ * @response `200` `CaseEntityDto`
487
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
488
+ */
489
+ getUserCaseById: function (tenantId, userId, caseId, params) {
490
+ if (params === void 0) { params = {}; }
491
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/cases/").concat(caseId), method: "GET", secure: true, format: "json" }, params));
492
+ },
479
493
  /**
480
494
  * No description
481
495
  *
@@ -550,8 +564,37 @@ var Api = /** @class */ (function (_super) {
550
564
  * No description
551
565
  *
552
566
  * @tags Tenant Users
567
+ * @name ListUserCaseInventory
568
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases/{caseId}/inventory
569
+ * @secure
570
+ * @response `200` `CaseWineInventoryItemEntityPaginatedDto`
571
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
572
+ */
573
+ listUserCaseInventory: function (tenantId, userId, caseId, query, params) {
574
+ if (params === void 0) { params = {}; }
575
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/cases/").concat(caseId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
576
+ },
577
+ /**
578
+ * No description
579
+ *
580
+ * @tags Tenant Users
581
+ * @name ListUserCases
582
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases
583
+ * @secure
584
+ * @response `200` `CaseEntityPaginatedDto`
585
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
586
+ */
587
+ listUserCases: function (tenantId, userId, query, params) {
588
+ if (params === void 0) { params = {}; }
589
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/cases"), method: "GET", query: query, secure: true, format: "json" }, params));
590
+ },
591
+ /**
592
+ * @description Please, start using listUserInventoryByWines and/or listUserInventoryByCases instead. This will be removed in next versions
593
+ *
594
+ * @tags Tenant Users
553
595
  * @name ListUserInventory
554
596
  * @request GET:/tenants/{tenantId}/users/{userId}/inventory
597
+ * @deprecated
555
598
  * @secure
556
599
  * @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
557
600
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
@@ -560,6 +603,34 @@ var Api = /** @class */ (function (_super) {
560
603
  if (params === void 0) { params = {}; }
561
604
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
562
605
  },
606
+ /**
607
+ * No description
608
+ *
609
+ * @tags Tenant Users
610
+ * @name ListUserInventoryByCases
611
+ * @request GET:/tenants/{tenantId}/users/{userId}/inventory-by-cases
612
+ * @secure
613
+ * @response `200` `CaseWineInventoryItemEntityPaginatedDto`
614
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
615
+ */
616
+ listUserInventoryByCases: function (tenantId, userId, query, params) {
617
+ if (params === void 0) { params = {}; }
618
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory-by-cases"), method: "GET", query: query, secure: true, format: "json" }, params));
619
+ },
620
+ /**
621
+ * No description
622
+ *
623
+ * @tags Tenant Users
624
+ * @name ListUserInventoryByWines
625
+ * @request GET:/tenants/{tenantId}/users/{userId}/inventory-by-wines
626
+ * @secure
627
+ * @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
628
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
629
+ */
630
+ listUserInventoryByWines: function (tenantId, userId, query, params) {
631
+ if (params === void 0) { params = {}; }
632
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory-by-wines"), method: "GET", query: query, secure: true, format: "json" }, params));
633
+ },
563
634
  /**
564
635
  * No description
565
636
  *
@@ -694,12 +765,11 @@ var Api = /** @class */ (function (_super) {
694
765
  * @tags App Loader
695
766
  * @name GetAppLoadInfo
696
767
  * @request GET:/app
697
- * @secure
698
768
  * @response `200` `AppLoadResponseDto`
699
769
  */
700
770
  getAppLoadInfo: function (query, params) {
701
771
  if (params === void 0) { params = {}; }
702
- return _this.request(__assign({ path: "/app", method: "GET", query: query, secure: true, format: "json" }, params));
772
+ return _this.request(__assign({ path: "/app", method: "GET", query: query, format: "json" }, params));
703
773
  },
704
774
  };
705
775
  _this.admin = {
@@ -31,6 +31,8 @@ export interface AppLoadResponseDto {
31
31
  host: string;
32
32
  /** @format uuid */
33
33
  tenantId: string;
34
+ /** @example {"name":"Sandbox Tenant"} */
35
+ tenantInfo: TenantInfoDto;
34
36
  /** @example {"logoUrl":"https://winestorage.com/images/logo.png","primaryColor":"#FFFFFF","secondaryColor":"#FFFFFF"} */
35
37
  theme: HostThemeDto;
36
38
  }
@@ -459,9 +461,12 @@ export interface GroupedWineInventoryItemEntityPaginatedDto {
459
461
  meta: PaginationMetaDto;
460
462
  }
461
463
  export interface HostThemeDto {
464
+ contactEmail?: string;
465
+ iconUrl?: string;
462
466
  logoUrl?: string;
463
467
  primaryColor?: string;
464
468
  secondaryColor?: string;
469
+ secondaryLogoUrl?: string;
465
470
  }
466
471
  export interface HttpExceptionDto {
467
472
  /** @example null */
@@ -831,6 +836,9 @@ export interface SyncOperationGroupWithSnapshotDto {
831
836
  /** @minItems 1 */
832
837
  operations: UpdateCaseOperationDto[];
833
838
  }
839
+ export interface TenantInfoDto {
840
+ name?: string | null;
841
+ }
834
842
  export declare enum TenantRoleEnum {
835
843
  Operator = "operator",
836
844
  Admin = "admin",
@@ -1586,6 +1594,26 @@ export declare namespace Tenants {
1586
1594
  type RequestHeaders = {};
1587
1595
  type ResponseBody = AddressEntityDto;
1588
1596
  }
1597
+ /**
1598
+ * No description
1599
+ * @tags Tenant Users
1600
+ * @name GetUserCaseById
1601
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases/{caseId}
1602
+ * @secure
1603
+ * @response `200` `CaseEntityDto`
1604
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1605
+ */
1606
+ namespace GetUserCaseById {
1607
+ type RequestParams = {
1608
+ caseId: string;
1609
+ tenantId: string;
1610
+ userId: string;
1611
+ };
1612
+ type RequestQuery = {};
1613
+ type RequestBody = never;
1614
+ type RequestHeaders = {};
1615
+ type ResponseBody = CaseEntityDto;
1616
+ }
1589
1617
  /**
1590
1618
  * No description
1591
1619
  * @tags Tenant Users Operation Requests
@@ -1750,8 +1778,83 @@ export declare namespace Tenants {
1750
1778
  /**
1751
1779
  * No description
1752
1780
  * @tags Tenant Users
1781
+ * @name ListUserCaseInventory
1782
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases/{caseId}/inventory
1783
+ * @secure
1784
+ * @response `200` `CaseWineInventoryItemEntityPaginatedDto`
1785
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1786
+ */
1787
+ namespace ListUserCaseInventory {
1788
+ type RequestParams = {
1789
+ caseId: string;
1790
+ tenantId: string;
1791
+ userId: string;
1792
+ };
1793
+ type RequestQuery = {
1794
+ amount?: string;
1795
+ bottleFormatIds?: string[];
1796
+ bottleVintageIds?: string[];
1797
+ createdAt?: string;
1798
+ /**
1799
+ * @default 10
1800
+ * @example 10
1801
+ */
1802
+ limit?: number;
1803
+ orderBy?: OrderByEnum;
1804
+ /**
1805
+ * @default 1
1806
+ * @example 1
1807
+ */
1808
+ page?: number;
1809
+ search?: string;
1810
+ sortBy?: string[];
1811
+ wineIds?: string[];
1812
+ };
1813
+ type RequestBody = never;
1814
+ type RequestHeaders = {};
1815
+ type ResponseBody = CaseWineInventoryItemEntityPaginatedDto;
1816
+ }
1817
+ /**
1818
+ * No description
1819
+ * @tags Tenant Users
1820
+ * @name ListUserCases
1821
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases
1822
+ * @secure
1823
+ * @response `200` `CaseEntityPaginatedDto`
1824
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1825
+ */
1826
+ namespace ListUserCases {
1827
+ type RequestParams = {
1828
+ tenantId: string;
1829
+ userId: string;
1830
+ };
1831
+ type RequestQuery = {
1832
+ createdAt?: string;
1833
+ /**
1834
+ * @default 10
1835
+ * @example 10
1836
+ */
1837
+ limit?: number;
1838
+ minRemainingItems?: number;
1839
+ orderBy?: OrderByEnum;
1840
+ /**
1841
+ * @default 1
1842
+ * @example 1
1843
+ */
1844
+ page?: number;
1845
+ search?: string;
1846
+ sortBy?: string[];
1847
+ };
1848
+ type RequestBody = never;
1849
+ type RequestHeaders = {};
1850
+ type ResponseBody = CaseEntityPaginatedDto;
1851
+ }
1852
+ /**
1853
+ * @description Please, start using listUserInventoryByWines and/or listUserInventoryByCases instead. This will be removed in next versions
1854
+ * @tags Tenant Users
1753
1855
  * @name ListUserInventory
1754
1856
  * @request GET:/tenants/{tenantId}/users/{userId}/inventory
1857
+ * @deprecated
1755
1858
  * @secure
1756
1859
  * @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
1757
1860
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
@@ -1786,6 +1889,83 @@ export declare namespace Tenants {
1786
1889
  type RequestHeaders = {};
1787
1890
  type ResponseBody = GroupedWineInventoryItemEntityPaginatedDto;
1788
1891
  }
1892
+ /**
1893
+ * No description
1894
+ * @tags Tenant Users
1895
+ * @name ListUserInventoryByCases
1896
+ * @request GET:/tenants/{tenantId}/users/{userId}/inventory-by-cases
1897
+ * @secure
1898
+ * @response `200` `CaseWineInventoryItemEntityPaginatedDto`
1899
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1900
+ */
1901
+ namespace ListUserInventoryByCases {
1902
+ type RequestParams = {
1903
+ tenantId: string;
1904
+ userId: string;
1905
+ };
1906
+ type RequestQuery = {
1907
+ amount?: string;
1908
+ bottleFormatIds?: string[];
1909
+ bottleVintageIds?: string[];
1910
+ createdAt?: string;
1911
+ /**
1912
+ * @default 10
1913
+ * @example 10
1914
+ */
1915
+ limit?: number;
1916
+ orderBy?: OrderByEnum;
1917
+ /**
1918
+ * @default 1
1919
+ * @example 1
1920
+ */
1921
+ page?: number;
1922
+ search?: string;
1923
+ sortBy?: string[];
1924
+ wineIds?: string[];
1925
+ };
1926
+ type RequestBody = never;
1927
+ type RequestHeaders = {};
1928
+ type ResponseBody = CaseWineInventoryItemEntityPaginatedDto;
1929
+ }
1930
+ /**
1931
+ * No description
1932
+ * @tags Tenant Users
1933
+ * @name ListUserInventoryByWines
1934
+ * @request GET:/tenants/{tenantId}/users/{userId}/inventory-by-wines
1935
+ * @secure
1936
+ * @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
1937
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1938
+ */
1939
+ namespace ListUserInventoryByWines {
1940
+ type RequestParams = {
1941
+ tenantId: string;
1942
+ userId: string;
1943
+ };
1944
+ type RequestQuery = {
1945
+ amount?: string;
1946
+ bottleFormatIds?: string[];
1947
+ bottleVintageIds?: string[];
1948
+ /** @format uuid */
1949
+ caseId?: string;
1950
+ /**
1951
+ * @default 10
1952
+ * @example 10
1953
+ */
1954
+ limit?: number;
1955
+ orderBy?: OrderByEnum;
1956
+ /**
1957
+ * @default 1
1958
+ * @example 1
1959
+ */
1960
+ page?: number;
1961
+ search?: string;
1962
+ sortBy?: string[];
1963
+ wineIds?: string[];
1964
+ };
1965
+ type RequestBody = never;
1966
+ type RequestHeaders = {};
1967
+ type ResponseBody = GroupedWineInventoryItemEntityPaginatedDto;
1968
+ }
1789
1969
  /**
1790
1970
  * No description
1791
1971
  * @tags Tenant Users
@@ -1997,7 +2177,6 @@ export declare namespace App {
1997
2177
  * @tags App Loader
1998
2178
  * @name GetAppLoadInfo
1999
2179
  * @request GET:/app
2000
- * @secure
2001
2180
  * @response `200` `AppLoadResponseDto`
2002
2181
  */
2003
2182
  namespace GetAppLoadInfo {
@@ -4074,7 +4253,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
4074
4253
  }
4075
4254
  /**
4076
4255
  * @title winehaus-api
4077
- * @version 0.0.3
4256
+ * @version 0.0.7
4078
4257
  * @baseUrl http://localhost:3000
4079
4258
  * @contact
4080
4259
  */
@@ -4232,6 +4411,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4232
4411
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
4233
4412
  */
4234
4413
  getUserAddressById: (tenantId: string, userId: string, addressId: string, params?: RequestParams) => Promise<AddressEntityDto>;
4414
+ /**
4415
+ * No description
4416
+ *
4417
+ * @tags Tenant Users
4418
+ * @name GetUserCaseById
4419
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases/{caseId}
4420
+ * @secure
4421
+ * @response `200` `CaseEntityDto`
4422
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
4423
+ */
4424
+ getUserCaseById: (tenantId: string, userId: string, caseId: string, params?: RequestParams) => Promise<CaseEntityDto>;
4235
4425
  /**
4236
4426
  * No description
4237
4427
  *
@@ -4359,8 +4549,66 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4359
4549
  * No description
4360
4550
  *
4361
4551
  * @tags Tenant Users
4552
+ * @name ListUserCaseInventory
4553
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases/{caseId}/inventory
4554
+ * @secure
4555
+ * @response `200` `CaseWineInventoryItemEntityPaginatedDto`
4556
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
4557
+ */
4558
+ listUserCaseInventory: (tenantId: string, userId: string, caseId: string, query?: {
4559
+ amount?: string;
4560
+ bottleFormatIds?: string[];
4561
+ bottleVintageIds?: string[];
4562
+ createdAt?: string;
4563
+ /**
4564
+ * @default 10
4565
+ * @example 10
4566
+ */
4567
+ limit?: number;
4568
+ orderBy?: OrderByEnum;
4569
+ /**
4570
+ * @default 1
4571
+ * @example 1
4572
+ */
4573
+ page?: number;
4574
+ search?: string;
4575
+ sortBy?: string[];
4576
+ wineIds?: string[];
4577
+ }, params?: RequestParams) => Promise<CaseWineInventoryItemEntityPaginatedDto>;
4578
+ /**
4579
+ * No description
4580
+ *
4581
+ * @tags Tenant Users
4582
+ * @name ListUserCases
4583
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases
4584
+ * @secure
4585
+ * @response `200` `CaseEntityPaginatedDto`
4586
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
4587
+ */
4588
+ listUserCases: (tenantId: string, userId: string, query?: {
4589
+ createdAt?: string;
4590
+ /**
4591
+ * @default 10
4592
+ * @example 10
4593
+ */
4594
+ limit?: number;
4595
+ minRemainingItems?: number;
4596
+ orderBy?: OrderByEnum;
4597
+ /**
4598
+ * @default 1
4599
+ * @example 1
4600
+ */
4601
+ page?: number;
4602
+ search?: string;
4603
+ sortBy?: string[];
4604
+ }, params?: RequestParams) => Promise<CaseEntityPaginatedDto>;
4605
+ /**
4606
+ * @description Please, start using listUserInventoryByWines and/or listUserInventoryByCases instead. This will be removed in next versions
4607
+ *
4608
+ * @tags Tenant Users
4362
4609
  * @name ListUserInventory
4363
4610
  * @request GET:/tenants/{tenantId}/users/{userId}/inventory
4611
+ * @deprecated
4364
4612
  * @secure
4365
4613
  * @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
4366
4614
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
@@ -4386,6 +4634,67 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4386
4634
  sortBy?: string[];
4387
4635
  wineIds?: string[];
4388
4636
  }, params?: RequestParams) => Promise<GroupedWineInventoryItemEntityPaginatedDto>;
4637
+ /**
4638
+ * No description
4639
+ *
4640
+ * @tags Tenant Users
4641
+ * @name ListUserInventoryByCases
4642
+ * @request GET:/tenants/{tenantId}/users/{userId}/inventory-by-cases
4643
+ * @secure
4644
+ * @response `200` `CaseWineInventoryItemEntityPaginatedDto`
4645
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
4646
+ */
4647
+ listUserInventoryByCases: (tenantId: string, userId: string, query?: {
4648
+ amount?: string;
4649
+ bottleFormatIds?: string[];
4650
+ bottleVintageIds?: string[];
4651
+ createdAt?: string;
4652
+ /**
4653
+ * @default 10
4654
+ * @example 10
4655
+ */
4656
+ limit?: number;
4657
+ orderBy?: OrderByEnum;
4658
+ /**
4659
+ * @default 1
4660
+ * @example 1
4661
+ */
4662
+ page?: number;
4663
+ search?: string;
4664
+ sortBy?: string[];
4665
+ wineIds?: string[];
4666
+ }, params?: RequestParams) => Promise<CaseWineInventoryItemEntityPaginatedDto>;
4667
+ /**
4668
+ * No description
4669
+ *
4670
+ * @tags Tenant Users
4671
+ * @name ListUserInventoryByWines
4672
+ * @request GET:/tenants/{tenantId}/users/{userId}/inventory-by-wines
4673
+ * @secure
4674
+ * @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
4675
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
4676
+ */
4677
+ listUserInventoryByWines: (tenantId: string, userId: string, query?: {
4678
+ amount?: string;
4679
+ bottleFormatIds?: string[];
4680
+ bottleVintageIds?: string[];
4681
+ /** @format uuid */
4682
+ caseId?: string;
4683
+ /**
4684
+ * @default 10
4685
+ * @example 10
4686
+ */
4687
+ limit?: number;
4688
+ orderBy?: OrderByEnum;
4689
+ /**
4690
+ * @default 1
4691
+ * @example 1
4692
+ */
4693
+ page?: number;
4694
+ search?: string;
4695
+ sortBy?: string[];
4696
+ wineIds?: string[];
4697
+ }, params?: RequestParams) => Promise<GroupedWineInventoryItemEntityPaginatedDto>;
4389
4698
  /**
4390
4699
  * No description
4391
4700
  *
@@ -4525,7 +4834,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4525
4834
  * @tags App Loader
4526
4835
  * @name GetAppLoadInfo
4527
4836
  * @request GET:/app
4528
- * @secure
4529
4837
  * @response `200` `AppLoadResponseDto`
4530
4838
  */
4531
4839
  getAppLoadInfo: (query?: {
package/dist/umd/index.ts CHANGED
@@ -18604,7 +18604,7 @@ var HttpClient = /** @class */ (function () {
18604
18604
  exports.HttpClient = HttpClient;
18605
18605
  /**
18606
18606
  * @title winehaus-api
18607
- * @version 0.0.3
18607
+ * @version 0.0.7
18608
18608
  * @baseUrl http://localhost:3000
18609
18609
  * @contact
18610
18610
  */
@@ -18807,6 +18807,20 @@ var Api = /** @class */ (function (_super) {
18807
18807
  if (params === void 0) { params = {}; }
18808
18808
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "GET", secure: true, format: "json" }, params));
18809
18809
  },
18810
+ /**
18811
+ * No description
18812
+ *
18813
+ * @tags Tenant Users
18814
+ * @name GetUserCaseById
18815
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases/{caseId}
18816
+ * @secure
18817
+ * @response `200` `CaseEntityDto`
18818
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18819
+ */
18820
+ getUserCaseById: function (tenantId, userId, caseId, params) {
18821
+ if (params === void 0) { params = {}; }
18822
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/cases/").concat(caseId), method: "GET", secure: true, format: "json" }, params));
18823
+ },
18810
18824
  /**
18811
18825
  * No description
18812
18826
  *
@@ -18881,8 +18895,37 @@ var Api = /** @class */ (function (_super) {
18881
18895
  * No description
18882
18896
  *
18883
18897
  * @tags Tenant Users
18898
+ * @name ListUserCaseInventory
18899
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases/{caseId}/inventory
18900
+ * @secure
18901
+ * @response `200` `CaseWineInventoryItemEntityPaginatedDto`
18902
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18903
+ */
18904
+ listUserCaseInventory: function (tenantId, userId, caseId, query, params) {
18905
+ if (params === void 0) { params = {}; }
18906
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/cases/").concat(caseId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
18907
+ },
18908
+ /**
18909
+ * No description
18910
+ *
18911
+ * @tags Tenant Users
18912
+ * @name ListUserCases
18913
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases
18914
+ * @secure
18915
+ * @response `200` `CaseEntityPaginatedDto`
18916
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18917
+ */
18918
+ listUserCases: function (tenantId, userId, query, params) {
18919
+ if (params === void 0) { params = {}; }
18920
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/cases"), method: "GET", query: query, secure: true, format: "json" }, params));
18921
+ },
18922
+ /**
18923
+ * @description Please, start using listUserInventoryByWines and/or listUserInventoryByCases instead. This will be removed in next versions
18924
+ *
18925
+ * @tags Tenant Users
18884
18926
  * @name ListUserInventory
18885
18927
  * @request GET:/tenants/{tenantId}/users/{userId}/inventory
18928
+ * @deprecated
18886
18929
  * @secure
18887
18930
  * @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
18888
18931
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
@@ -18891,6 +18934,34 @@ var Api = /** @class */ (function (_super) {
18891
18934
  if (params === void 0) { params = {}; }
18892
18935
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
18893
18936
  },
18937
+ /**
18938
+ * No description
18939
+ *
18940
+ * @tags Tenant Users
18941
+ * @name ListUserInventoryByCases
18942
+ * @request GET:/tenants/{tenantId}/users/{userId}/inventory-by-cases
18943
+ * @secure
18944
+ * @response `200` `CaseWineInventoryItemEntityPaginatedDto`
18945
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18946
+ */
18947
+ listUserInventoryByCases: function (tenantId, userId, query, params) {
18948
+ if (params === void 0) { params = {}; }
18949
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory-by-cases"), method: "GET", query: query, secure: true, format: "json" }, params));
18950
+ },
18951
+ /**
18952
+ * No description
18953
+ *
18954
+ * @tags Tenant Users
18955
+ * @name ListUserInventoryByWines
18956
+ * @request GET:/tenants/{tenantId}/users/{userId}/inventory-by-wines
18957
+ * @secure
18958
+ * @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
18959
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18960
+ */
18961
+ listUserInventoryByWines: function (tenantId, userId, query, params) {
18962
+ if (params === void 0) { params = {}; }
18963
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory-by-wines"), method: "GET", query: query, secure: true, format: "json" }, params));
18964
+ },
18894
18965
  /**
18895
18966
  * No description
18896
18967
  *
@@ -19025,12 +19096,11 @@ var Api = /** @class */ (function (_super) {
19025
19096
  * @tags App Loader
19026
19097
  * @name GetAppLoadInfo
19027
19098
  * @request GET:/app
19028
- * @secure
19029
19099
  * @response `200` `AppLoadResponseDto`
19030
19100
  */
19031
19101
  getAppLoadInfo: function (query, params) {
19032
19102
  if (params === void 0) { params = {}; }
19033
- return _this.request(__assign({ path: "/app", method: "GET", query: query, secure: true, format: "json" }, params));
19103
+ return _this.request(__assign({ path: "/app", method: "GET", query: query, format: "json" }, params));
19034
19104
  },
19035
19105
  };
19036
19106
  _this.admin = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thelllabs/winehaus-sdk",
3
- "version": "0.0.31",
3
+ "version": "0.0.34",
4
4
  "description": "Winehaus SDK",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",