@thelllabs/winehaus-sdk 0.0.30 → 0.0.32

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.6
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
  *
@@ -693,6 +764,20 @@ var Api = /** @class */ (function (_super) {
693
764
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
694
765
  },
695
766
  };
767
+ _this.app = {
768
+ /**
769
+ * No description
770
+ *
771
+ * @tags App Loader
772
+ * @name GetAppLoadInfo
773
+ * @request GET:/app
774
+ * @response `200` `AppLoadResponseDto`
775
+ */
776
+ getAppLoadInfo: function (query, params) {
777
+ if (params === void 0) { params = {}; }
778
+ return _this.request(__assign({ path: "/app", method: "GET", query: query, format: "json" }, params));
779
+ },
780
+ };
696
781
  _this.admin = {
697
782
  /**
698
783
  * No description
@@ -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.6
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
  *
@@ -687,6 +758,20 @@ var Api = /** @class */ (function (_super) {
687
758
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
688
759
  },
689
760
  };
761
+ _this.app = {
762
+ /**
763
+ * No description
764
+ *
765
+ * @tags App Loader
766
+ * @name GetAppLoadInfo
767
+ * @request GET:/app
768
+ * @response `200` `AppLoadResponseDto`
769
+ */
770
+ getAppLoadInfo: function (query, params) {
771
+ if (params === void 0) { params = {}; }
772
+ return _this.request(__assign({ path: "/app", method: "GET", query: query, format: "json" }, params));
773
+ },
774
+ };
690
775
  _this.admin = {
691
776
  /**
692
777
  * No description
@@ -27,6 +27,13 @@ export interface AddressEntityPaginatedDto {
27
27
  links?: PaginationLinksDto;
28
28
  meta: PaginationMetaDto;
29
29
  }
30
+ export interface AppLoadResponseDto {
31
+ host: string;
32
+ /** @format uuid */
33
+ tenantId: string;
34
+ /** @example {"logoUrl":"https://winestorage.com/images/logo.png","primaryColor":"#FFFFFF","secondaryColor":"#FFFFFF"} */
35
+ theme: HostThemeDto;
36
+ }
30
37
  export interface CaseEntityDto {
31
38
  /** @format date-time */
32
39
  billingEndDate?: string | null;
@@ -451,6 +458,11 @@ export interface GroupedWineInventoryItemEntityPaginatedDto {
451
458
  links?: PaginationLinksDto;
452
459
  meta: PaginationMetaDto;
453
460
  }
461
+ export interface HostThemeDto {
462
+ logoUrl?: string;
463
+ primaryColor?: string;
464
+ secondaryColor?: string;
465
+ }
454
466
  export interface HttpExceptionDto {
455
467
  /** @example null */
456
468
  data?: object;
@@ -1574,6 +1586,26 @@ export declare namespace Tenants {
1574
1586
  type RequestHeaders = {};
1575
1587
  type ResponseBody = AddressEntityDto;
1576
1588
  }
1589
+ /**
1590
+ * No description
1591
+ * @tags Tenant Users
1592
+ * @name GetUserCaseById
1593
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases/{caseId}
1594
+ * @secure
1595
+ * @response `200` `CaseEntityDto`
1596
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1597
+ */
1598
+ namespace GetUserCaseById {
1599
+ type RequestParams = {
1600
+ caseId: string;
1601
+ tenantId: string;
1602
+ userId: string;
1603
+ };
1604
+ type RequestQuery = {};
1605
+ type RequestBody = never;
1606
+ type RequestHeaders = {};
1607
+ type ResponseBody = CaseEntityDto;
1608
+ }
1577
1609
  /**
1578
1610
  * No description
1579
1611
  * @tags Tenant Users Operation Requests
@@ -1738,8 +1770,83 @@ export declare namespace Tenants {
1738
1770
  /**
1739
1771
  * No description
1740
1772
  * @tags Tenant Users
1773
+ * @name ListUserCaseInventory
1774
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases/{caseId}/inventory
1775
+ * @secure
1776
+ * @response `200` `CaseWineInventoryItemEntityPaginatedDto`
1777
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1778
+ */
1779
+ namespace ListUserCaseInventory {
1780
+ type RequestParams = {
1781
+ caseId: string;
1782
+ tenantId: string;
1783
+ userId: string;
1784
+ };
1785
+ type RequestQuery = {
1786
+ amount?: string;
1787
+ bottleFormatIds?: string[];
1788
+ bottleVintageIds?: string[];
1789
+ createdAt?: string;
1790
+ /**
1791
+ * @default 10
1792
+ * @example 10
1793
+ */
1794
+ limit?: number;
1795
+ orderBy?: OrderByEnum;
1796
+ /**
1797
+ * @default 1
1798
+ * @example 1
1799
+ */
1800
+ page?: number;
1801
+ search?: string;
1802
+ sortBy?: string[];
1803
+ wineIds?: string[];
1804
+ };
1805
+ type RequestBody = never;
1806
+ type RequestHeaders = {};
1807
+ type ResponseBody = CaseWineInventoryItemEntityPaginatedDto;
1808
+ }
1809
+ /**
1810
+ * No description
1811
+ * @tags Tenant Users
1812
+ * @name ListUserCases
1813
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases
1814
+ * @secure
1815
+ * @response `200` `CaseEntityPaginatedDto`
1816
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1817
+ */
1818
+ namespace ListUserCases {
1819
+ type RequestParams = {
1820
+ tenantId: string;
1821
+ userId: string;
1822
+ };
1823
+ type RequestQuery = {
1824
+ createdAt?: string;
1825
+ /**
1826
+ * @default 10
1827
+ * @example 10
1828
+ */
1829
+ limit?: number;
1830
+ minRemainingItems?: number;
1831
+ orderBy?: OrderByEnum;
1832
+ /**
1833
+ * @default 1
1834
+ * @example 1
1835
+ */
1836
+ page?: number;
1837
+ search?: string;
1838
+ sortBy?: string[];
1839
+ };
1840
+ type RequestBody = never;
1841
+ type RequestHeaders = {};
1842
+ type ResponseBody = CaseEntityPaginatedDto;
1843
+ }
1844
+ /**
1845
+ * @description Please, start using listUserInventoryByWines and/or listUserInventoryByCases instead. This will be removed in next versions
1846
+ * @tags Tenant Users
1741
1847
  * @name ListUserInventory
1742
1848
  * @request GET:/tenants/{tenantId}/users/{userId}/inventory
1849
+ * @deprecated
1743
1850
  * @secure
1744
1851
  * @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
1745
1852
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
@@ -1774,6 +1881,83 @@ export declare namespace Tenants {
1774
1881
  type RequestHeaders = {};
1775
1882
  type ResponseBody = GroupedWineInventoryItemEntityPaginatedDto;
1776
1883
  }
1884
+ /**
1885
+ * No description
1886
+ * @tags Tenant Users
1887
+ * @name ListUserInventoryByCases
1888
+ * @request GET:/tenants/{tenantId}/users/{userId}/inventory-by-cases
1889
+ * @secure
1890
+ * @response `200` `CaseWineInventoryItemEntityPaginatedDto`
1891
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1892
+ */
1893
+ namespace ListUserInventoryByCases {
1894
+ type RequestParams = {
1895
+ tenantId: string;
1896
+ userId: string;
1897
+ };
1898
+ type RequestQuery = {
1899
+ amount?: string;
1900
+ bottleFormatIds?: string[];
1901
+ bottleVintageIds?: string[];
1902
+ createdAt?: string;
1903
+ /**
1904
+ * @default 10
1905
+ * @example 10
1906
+ */
1907
+ limit?: number;
1908
+ orderBy?: OrderByEnum;
1909
+ /**
1910
+ * @default 1
1911
+ * @example 1
1912
+ */
1913
+ page?: number;
1914
+ search?: string;
1915
+ sortBy?: string[];
1916
+ wineIds?: string[];
1917
+ };
1918
+ type RequestBody = never;
1919
+ type RequestHeaders = {};
1920
+ type ResponseBody = CaseWineInventoryItemEntityPaginatedDto;
1921
+ }
1922
+ /**
1923
+ * No description
1924
+ * @tags Tenant Users
1925
+ * @name ListUserInventoryByWines
1926
+ * @request GET:/tenants/{tenantId}/users/{userId}/inventory-by-wines
1927
+ * @secure
1928
+ * @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
1929
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1930
+ */
1931
+ namespace ListUserInventoryByWines {
1932
+ type RequestParams = {
1933
+ tenantId: string;
1934
+ userId: string;
1935
+ };
1936
+ type RequestQuery = {
1937
+ amount?: string;
1938
+ bottleFormatIds?: string[];
1939
+ bottleVintageIds?: string[];
1940
+ /** @format uuid */
1941
+ caseId?: string;
1942
+ /**
1943
+ * @default 10
1944
+ * @example 10
1945
+ */
1946
+ limit?: number;
1947
+ orderBy?: OrderByEnum;
1948
+ /**
1949
+ * @default 1
1950
+ * @example 1
1951
+ */
1952
+ page?: number;
1953
+ search?: string;
1954
+ sortBy?: string[];
1955
+ wineIds?: string[];
1956
+ };
1957
+ type RequestBody = never;
1958
+ type RequestHeaders = {};
1959
+ type ResponseBody = GroupedWineInventoryItemEntityPaginatedDto;
1960
+ }
1777
1961
  /**
1778
1962
  * No description
1779
1963
  * @tags Tenant Users
@@ -1979,6 +2163,25 @@ export declare namespace Tenants {
1979
2163
  type ResponseBody = AddressEntityDto;
1980
2164
  }
1981
2165
  }
2166
+ export declare namespace App {
2167
+ /**
2168
+ * No description
2169
+ * @tags App Loader
2170
+ * @name GetAppLoadInfo
2171
+ * @request GET:/app
2172
+ * @response `200` `AppLoadResponseDto`
2173
+ */
2174
+ namespace GetAppLoadInfo {
2175
+ type RequestParams = {};
2176
+ type RequestQuery = {
2177
+ /** @example "subdomain.domain.io" */
2178
+ host?: string;
2179
+ };
2180
+ type RequestBody = never;
2181
+ type RequestHeaders = {};
2182
+ type ResponseBody = AppLoadResponseDto;
2183
+ }
2184
+ }
1982
2185
  export declare namespace Admin {
1983
2186
  /**
1984
2187
  * No description
@@ -4042,7 +4245,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
4042
4245
  }
4043
4246
  /**
4044
4247
  * @title winehaus-api
4045
- * @version 0.0.3
4248
+ * @version 0.0.6
4046
4249
  * @baseUrl http://localhost:3000
4047
4250
  * @contact
4048
4251
  */
@@ -4200,6 +4403,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4200
4403
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
4201
4404
  */
4202
4405
  getUserAddressById: (tenantId: string, userId: string, addressId: string, params?: RequestParams) => Promise<AddressEntityDto>;
4406
+ /**
4407
+ * No description
4408
+ *
4409
+ * @tags Tenant Users
4410
+ * @name GetUserCaseById
4411
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases/{caseId}
4412
+ * @secure
4413
+ * @response `200` `CaseEntityDto`
4414
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
4415
+ */
4416
+ getUserCaseById: (tenantId: string, userId: string, caseId: string, params?: RequestParams) => Promise<CaseEntityDto>;
4203
4417
  /**
4204
4418
  * No description
4205
4419
  *
@@ -4327,8 +4541,66 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4327
4541
  * No description
4328
4542
  *
4329
4543
  * @tags Tenant Users
4544
+ * @name ListUserCaseInventory
4545
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases/{caseId}/inventory
4546
+ * @secure
4547
+ * @response `200` `CaseWineInventoryItemEntityPaginatedDto`
4548
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
4549
+ */
4550
+ listUserCaseInventory: (tenantId: string, userId: string, caseId: string, query?: {
4551
+ amount?: string;
4552
+ bottleFormatIds?: string[];
4553
+ bottleVintageIds?: string[];
4554
+ createdAt?: string;
4555
+ /**
4556
+ * @default 10
4557
+ * @example 10
4558
+ */
4559
+ limit?: number;
4560
+ orderBy?: OrderByEnum;
4561
+ /**
4562
+ * @default 1
4563
+ * @example 1
4564
+ */
4565
+ page?: number;
4566
+ search?: string;
4567
+ sortBy?: string[];
4568
+ wineIds?: string[];
4569
+ }, params?: RequestParams) => Promise<CaseWineInventoryItemEntityPaginatedDto>;
4570
+ /**
4571
+ * No description
4572
+ *
4573
+ * @tags Tenant Users
4574
+ * @name ListUserCases
4575
+ * @request GET:/tenants/{tenantId}/users/{userId}/cases
4576
+ * @secure
4577
+ * @response `200` `CaseEntityPaginatedDto`
4578
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
4579
+ */
4580
+ listUserCases: (tenantId: string, userId: string, query?: {
4581
+ createdAt?: string;
4582
+ /**
4583
+ * @default 10
4584
+ * @example 10
4585
+ */
4586
+ limit?: number;
4587
+ minRemainingItems?: number;
4588
+ orderBy?: OrderByEnum;
4589
+ /**
4590
+ * @default 1
4591
+ * @example 1
4592
+ */
4593
+ page?: number;
4594
+ search?: string;
4595
+ sortBy?: string[];
4596
+ }, params?: RequestParams) => Promise<CaseEntityPaginatedDto>;
4597
+ /**
4598
+ * @description Please, start using listUserInventoryByWines and/or listUserInventoryByCases instead. This will be removed in next versions
4599
+ *
4600
+ * @tags Tenant Users
4330
4601
  * @name ListUserInventory
4331
4602
  * @request GET:/tenants/{tenantId}/users/{userId}/inventory
4603
+ * @deprecated
4332
4604
  * @secure
4333
4605
  * @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
4334
4606
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
@@ -4354,6 +4626,67 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4354
4626
  sortBy?: string[];
4355
4627
  wineIds?: string[];
4356
4628
  }, params?: RequestParams) => Promise<GroupedWineInventoryItemEntityPaginatedDto>;
4629
+ /**
4630
+ * No description
4631
+ *
4632
+ * @tags Tenant Users
4633
+ * @name ListUserInventoryByCases
4634
+ * @request GET:/tenants/{tenantId}/users/{userId}/inventory-by-cases
4635
+ * @secure
4636
+ * @response `200` `CaseWineInventoryItemEntityPaginatedDto`
4637
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
4638
+ */
4639
+ listUserInventoryByCases: (tenantId: string, userId: string, query?: {
4640
+ amount?: string;
4641
+ bottleFormatIds?: string[];
4642
+ bottleVintageIds?: string[];
4643
+ createdAt?: string;
4644
+ /**
4645
+ * @default 10
4646
+ * @example 10
4647
+ */
4648
+ limit?: number;
4649
+ orderBy?: OrderByEnum;
4650
+ /**
4651
+ * @default 1
4652
+ * @example 1
4653
+ */
4654
+ page?: number;
4655
+ search?: string;
4656
+ sortBy?: string[];
4657
+ wineIds?: string[];
4658
+ }, params?: RequestParams) => Promise<CaseWineInventoryItemEntityPaginatedDto>;
4659
+ /**
4660
+ * No description
4661
+ *
4662
+ * @tags Tenant Users
4663
+ * @name ListUserInventoryByWines
4664
+ * @request GET:/tenants/{tenantId}/users/{userId}/inventory-by-wines
4665
+ * @secure
4666
+ * @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
4667
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
4668
+ */
4669
+ listUserInventoryByWines: (tenantId: string, userId: string, query?: {
4670
+ amount?: string;
4671
+ bottleFormatIds?: string[];
4672
+ bottleVintageIds?: string[];
4673
+ /** @format uuid */
4674
+ caseId?: string;
4675
+ /**
4676
+ * @default 10
4677
+ * @example 10
4678
+ */
4679
+ limit?: number;
4680
+ orderBy?: OrderByEnum;
4681
+ /**
4682
+ * @default 1
4683
+ * @example 1
4684
+ */
4685
+ page?: number;
4686
+ search?: string;
4687
+ sortBy?: string[];
4688
+ wineIds?: string[];
4689
+ }, params?: RequestParams) => Promise<GroupedWineInventoryItemEntityPaginatedDto>;
4357
4690
  /**
4358
4691
  * No description
4359
4692
  *
@@ -4486,6 +4819,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4486
4819
  */
4487
4820
  updateUserAddress: (tenantId: string, userId: string, addressId: string, data: UpdateAddressDto, params?: RequestParams) => Promise<AddressEntityDto>;
4488
4821
  };
4822
+ app: {
4823
+ /**
4824
+ * No description
4825
+ *
4826
+ * @tags App Loader
4827
+ * @name GetAppLoadInfo
4828
+ * @request GET:/app
4829
+ * @response `200` `AppLoadResponseDto`
4830
+ */
4831
+ getAppLoadInfo: (query?: {
4832
+ /** @example "subdomain.domain.io" */
4833
+ host?: string;
4834
+ }, params?: RequestParams) => Promise<AppLoadResponseDto>;
4835
+ };
4489
4836
  admin: {
4490
4837
  /**
4491
4838
  * No description
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.6
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
  *
@@ -19018,6 +19089,20 @@ var Api = /** @class */ (function (_super) {
19018
19089
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
19019
19090
  },
19020
19091
  };
19092
+ _this.app = {
19093
+ /**
19094
+ * No description
19095
+ *
19096
+ * @tags App Loader
19097
+ * @name GetAppLoadInfo
19098
+ * @request GET:/app
19099
+ * @response `200` `AppLoadResponseDto`
19100
+ */
19101
+ getAppLoadInfo: function (query, params) {
19102
+ if (params === void 0) { params = {}; }
19103
+ return _this.request(__assign({ path: "/app", method: "GET", query: query, format: "json" }, params));
19104
+ },
19105
+ };
19021
19106
  _this.admin = {
19022
19107
  /**
19023
19108
  * No description
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thelllabs/winehaus-sdk",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "description": "Winehaus SDK",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",