@thelllabs/winehaus-sdk 0.0.31 → 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.
- package/dist/cjs/api/api.js +73 -3
- package/dist/esm/api/api.js +73 -3
- package/dist/types/api/api.d.ts +303 -3
- package/dist/umd/index.ts +73 -3
- package/package.json +1 -1
package/dist/cjs/api/api.js
CHANGED
|
@@ -279,7 +279,7 @@ var HttpClient = /** @class */ (function () {
|
|
|
279
279
|
exports.HttpClient = HttpClient;
|
|
280
280
|
/**
|
|
281
281
|
* @title winehaus-api
|
|
282
|
-
* @version 0.0.
|
|
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
|
*
|
|
@@ -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,
|
|
778
|
+
return _this.request(__assign({ path: "/app", method: "GET", query: query, format: "json" }, params));
|
|
709
779
|
},
|
|
710
780
|
};
|
|
711
781
|
_this.admin = {
|
package/dist/esm/api/api.js
CHANGED
|
@@ -273,7 +273,7 @@ var HttpClient = /** @class */ (function () {
|
|
|
273
273
|
export { HttpClient };
|
|
274
274
|
/**
|
|
275
275
|
* @title winehaus-api
|
|
276
|
-
* @version 0.0.
|
|
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
|
*
|
|
@@ -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,
|
|
772
|
+
return _this.request(__assign({ path: "/app", method: "GET", query: query, format: "json" }, params));
|
|
703
773
|
},
|
|
704
774
|
};
|
|
705
775
|
_this.admin = {
|
package/dist/types/api/api.d.ts
CHANGED
|
@@ -1586,6 +1586,26 @@ export declare namespace Tenants {
|
|
|
1586
1586
|
type RequestHeaders = {};
|
|
1587
1587
|
type ResponseBody = AddressEntityDto;
|
|
1588
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
|
+
}
|
|
1589
1609
|
/**
|
|
1590
1610
|
* No description
|
|
1591
1611
|
* @tags Tenant Users Operation Requests
|
|
@@ -1750,8 +1770,83 @@ export declare namespace Tenants {
|
|
|
1750
1770
|
/**
|
|
1751
1771
|
* No description
|
|
1752
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
|
|
1753
1847
|
* @name ListUserInventory
|
|
1754
1848
|
* @request GET:/tenants/{tenantId}/users/{userId}/inventory
|
|
1849
|
+
* @deprecated
|
|
1755
1850
|
* @secure
|
|
1756
1851
|
* @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
|
|
1757
1852
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
@@ -1786,6 +1881,83 @@ export declare namespace Tenants {
|
|
|
1786
1881
|
type RequestHeaders = {};
|
|
1787
1882
|
type ResponseBody = GroupedWineInventoryItemEntityPaginatedDto;
|
|
1788
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
|
+
}
|
|
1789
1961
|
/**
|
|
1790
1962
|
* No description
|
|
1791
1963
|
* @tags Tenant Users
|
|
@@ -1997,7 +2169,6 @@ export declare namespace App {
|
|
|
1997
2169
|
* @tags App Loader
|
|
1998
2170
|
* @name GetAppLoadInfo
|
|
1999
2171
|
* @request GET:/app
|
|
2000
|
-
* @secure
|
|
2001
2172
|
* @response `200` `AppLoadResponseDto`
|
|
2002
2173
|
*/
|
|
2003
2174
|
namespace GetAppLoadInfo {
|
|
@@ -4074,7 +4245,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
4074
4245
|
}
|
|
4075
4246
|
/**
|
|
4076
4247
|
* @title winehaus-api
|
|
4077
|
-
* @version 0.0.
|
|
4248
|
+
* @version 0.0.6
|
|
4078
4249
|
* @baseUrl http://localhost:3000
|
|
4079
4250
|
* @contact
|
|
4080
4251
|
*/
|
|
@@ -4232,6 +4403,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4232
4403
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
4233
4404
|
*/
|
|
4234
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>;
|
|
4235
4417
|
/**
|
|
4236
4418
|
* No description
|
|
4237
4419
|
*
|
|
@@ -4359,8 +4541,66 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4359
4541
|
* No description
|
|
4360
4542
|
*
|
|
4361
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
|
|
4362
4601
|
* @name ListUserInventory
|
|
4363
4602
|
* @request GET:/tenants/{tenantId}/users/{userId}/inventory
|
|
4603
|
+
* @deprecated
|
|
4364
4604
|
* @secure
|
|
4365
4605
|
* @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
|
|
4366
4606
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
@@ -4386,6 +4626,67 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4386
4626
|
sortBy?: string[];
|
|
4387
4627
|
wineIds?: string[];
|
|
4388
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>;
|
|
4389
4690
|
/**
|
|
4390
4691
|
* No description
|
|
4391
4692
|
*
|
|
@@ -4525,7 +4826,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4525
4826
|
* @tags App Loader
|
|
4526
4827
|
* @name GetAppLoadInfo
|
|
4527
4828
|
* @request GET:/app
|
|
4528
|
-
* @secure
|
|
4529
4829
|
* @response `200` `AppLoadResponseDto`
|
|
4530
4830
|
*/
|
|
4531
4831
|
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.
|
|
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
|
*
|
|
@@ -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,
|
|
19103
|
+
return _this.request(__assign({ path: "/app", method: "GET", query: query, format: "json" }, params));
|
|
19034
19104
|
},
|
|
19035
19105
|
};
|
|
19036
19106
|
_this.admin = {
|