@thelllabs/winehaus-sdk 0.0.24 → 0.0.26
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 +68 -54
- package/dist/esm/api/api.js +68 -54
- package/dist/types/api/api.d.ts +177 -106
- package/dist/umd/index.ts +68 -54
- package/package.json +1 -1
package/dist/cjs/api/api.js
CHANGED
|
@@ -496,6 +496,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
496
496
|
if (params === void 0) { params = {}; }
|
|
497
497
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
|
|
498
498
|
},
|
|
499
|
+
/**
|
|
500
|
+
* No description
|
|
501
|
+
*
|
|
502
|
+
* @tags Tenant
|
|
503
|
+
* @name ListTenantInventory
|
|
504
|
+
* @request GET:/tenants/{tenantId}/inventory
|
|
505
|
+
* @secure
|
|
506
|
+
* @response `200` `CaseWineInventoryItemEntityPaginatedDto`
|
|
507
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
508
|
+
*/
|
|
509
|
+
listTenantInventory: function (tenantId, query, params) {
|
|
510
|
+
if (params === void 0) { params = {}; }
|
|
511
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
512
|
+
},
|
|
499
513
|
/**
|
|
500
514
|
* No description
|
|
501
515
|
*
|
|
@@ -679,60 +693,6 @@ var Api = /** @class */ (function (_super) {
|
|
|
679
693
|
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));
|
|
680
694
|
},
|
|
681
695
|
};
|
|
682
|
-
_this.auth = {
|
|
683
|
-
/**
|
|
684
|
-
* No description
|
|
685
|
-
*
|
|
686
|
-
* @tags Authentication
|
|
687
|
-
* @name Logout
|
|
688
|
-
* @request POST:/auth/logout
|
|
689
|
-
* @secure
|
|
690
|
-
* @response `204` `void`
|
|
691
|
-
*/
|
|
692
|
-
logout: function (params) {
|
|
693
|
-
if (params === void 0) { params = {}; }
|
|
694
|
-
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
695
|
-
},
|
|
696
|
-
/**
|
|
697
|
-
* No description
|
|
698
|
-
*
|
|
699
|
-
* @tags Authentication
|
|
700
|
-
* @name RequestPasswordReset
|
|
701
|
-
* @request POST:/auth/request-password-reset
|
|
702
|
-
* @secure
|
|
703
|
-
* @response `204` `void`
|
|
704
|
-
*/
|
|
705
|
-
requestPasswordReset: function (data, params) {
|
|
706
|
-
if (params === void 0) { params = {}; }
|
|
707
|
-
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
708
|
-
},
|
|
709
|
-
/**
|
|
710
|
-
* No description
|
|
711
|
-
*
|
|
712
|
-
* @tags Authentication
|
|
713
|
-
* @name ResetPassword
|
|
714
|
-
* @request PATCH:/auth/reset-password
|
|
715
|
-
* @secure
|
|
716
|
-
* @response `200` `SigninResponseDto`
|
|
717
|
-
*/
|
|
718
|
-
resetPassword: function (data, params) {
|
|
719
|
-
if (params === void 0) { params = {}; }
|
|
720
|
-
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
721
|
-
},
|
|
722
|
-
/**
|
|
723
|
-
* No description
|
|
724
|
-
*
|
|
725
|
-
* @tags Authentication
|
|
726
|
-
* @name SignIn
|
|
727
|
-
* @request POST:/auth/signin
|
|
728
|
-
* @secure
|
|
729
|
-
* @response `200` `SigninResponseDto`
|
|
730
|
-
*/
|
|
731
|
-
signIn: function (data, params) {
|
|
732
|
-
if (params === void 0) { params = {}; }
|
|
733
|
-
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
734
|
-
},
|
|
735
|
-
};
|
|
736
696
|
_this.admin = {
|
|
737
697
|
/**
|
|
738
698
|
* No description
|
|
@@ -1981,6 +1941,60 @@ var Api = /** @class */ (function (_super) {
|
|
|
1981
1941
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/withdraw-deliver-state"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
|
|
1982
1942
|
},
|
|
1983
1943
|
};
|
|
1944
|
+
_this.auth = {
|
|
1945
|
+
/**
|
|
1946
|
+
* No description
|
|
1947
|
+
*
|
|
1948
|
+
* @tags Authentication
|
|
1949
|
+
* @name Logout
|
|
1950
|
+
* @request POST:/auth/logout
|
|
1951
|
+
* @secure
|
|
1952
|
+
* @response `204` `void`
|
|
1953
|
+
*/
|
|
1954
|
+
logout: function (params) {
|
|
1955
|
+
if (params === void 0) { params = {}; }
|
|
1956
|
+
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
1957
|
+
},
|
|
1958
|
+
/**
|
|
1959
|
+
* No description
|
|
1960
|
+
*
|
|
1961
|
+
* @tags Authentication
|
|
1962
|
+
* @name RequestPasswordReset
|
|
1963
|
+
* @request POST:/auth/request-password-reset
|
|
1964
|
+
* @secure
|
|
1965
|
+
* @response `204` `void`
|
|
1966
|
+
*/
|
|
1967
|
+
requestPasswordReset: function (data, params) {
|
|
1968
|
+
if (params === void 0) { params = {}; }
|
|
1969
|
+
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
1970
|
+
},
|
|
1971
|
+
/**
|
|
1972
|
+
* No description
|
|
1973
|
+
*
|
|
1974
|
+
* @tags Authentication
|
|
1975
|
+
* @name ResetPassword
|
|
1976
|
+
* @request PATCH:/auth/reset-password
|
|
1977
|
+
* @secure
|
|
1978
|
+
* @response `200` `SigninResponseDto`
|
|
1979
|
+
*/
|
|
1980
|
+
resetPassword: function (data, params) {
|
|
1981
|
+
if (params === void 0) { params = {}; }
|
|
1982
|
+
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
1983
|
+
},
|
|
1984
|
+
/**
|
|
1985
|
+
* No description
|
|
1986
|
+
*
|
|
1987
|
+
* @tags Authentication
|
|
1988
|
+
* @name SignIn
|
|
1989
|
+
* @request POST:/auth/signin
|
|
1990
|
+
* @secure
|
|
1991
|
+
* @response `200` `SigninResponseDto`
|
|
1992
|
+
*/
|
|
1993
|
+
signIn: function (data, params) {
|
|
1994
|
+
if (params === void 0) { params = {}; }
|
|
1995
|
+
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
1996
|
+
},
|
|
1997
|
+
};
|
|
1984
1998
|
return _this;
|
|
1985
1999
|
}
|
|
1986
2000
|
return Api;
|
package/dist/esm/api/api.js
CHANGED
|
@@ -490,6 +490,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
490
490
|
if (params === void 0) { params = {}; }
|
|
491
491
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
|
|
492
492
|
},
|
|
493
|
+
/**
|
|
494
|
+
* No description
|
|
495
|
+
*
|
|
496
|
+
* @tags Tenant
|
|
497
|
+
* @name ListTenantInventory
|
|
498
|
+
* @request GET:/tenants/{tenantId}/inventory
|
|
499
|
+
* @secure
|
|
500
|
+
* @response `200` `CaseWineInventoryItemEntityPaginatedDto`
|
|
501
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
502
|
+
*/
|
|
503
|
+
listTenantInventory: function (tenantId, query, params) {
|
|
504
|
+
if (params === void 0) { params = {}; }
|
|
505
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
506
|
+
},
|
|
493
507
|
/**
|
|
494
508
|
* No description
|
|
495
509
|
*
|
|
@@ -673,60 +687,6 @@ var Api = /** @class */ (function (_super) {
|
|
|
673
687
|
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));
|
|
674
688
|
},
|
|
675
689
|
};
|
|
676
|
-
_this.auth = {
|
|
677
|
-
/**
|
|
678
|
-
* No description
|
|
679
|
-
*
|
|
680
|
-
* @tags Authentication
|
|
681
|
-
* @name Logout
|
|
682
|
-
* @request POST:/auth/logout
|
|
683
|
-
* @secure
|
|
684
|
-
* @response `204` `void`
|
|
685
|
-
*/
|
|
686
|
-
logout: function (params) {
|
|
687
|
-
if (params === void 0) { params = {}; }
|
|
688
|
-
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
689
|
-
},
|
|
690
|
-
/**
|
|
691
|
-
* No description
|
|
692
|
-
*
|
|
693
|
-
* @tags Authentication
|
|
694
|
-
* @name RequestPasswordReset
|
|
695
|
-
* @request POST:/auth/request-password-reset
|
|
696
|
-
* @secure
|
|
697
|
-
* @response `204` `void`
|
|
698
|
-
*/
|
|
699
|
-
requestPasswordReset: function (data, params) {
|
|
700
|
-
if (params === void 0) { params = {}; }
|
|
701
|
-
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
702
|
-
},
|
|
703
|
-
/**
|
|
704
|
-
* No description
|
|
705
|
-
*
|
|
706
|
-
* @tags Authentication
|
|
707
|
-
* @name ResetPassword
|
|
708
|
-
* @request PATCH:/auth/reset-password
|
|
709
|
-
* @secure
|
|
710
|
-
* @response `200` `SigninResponseDto`
|
|
711
|
-
*/
|
|
712
|
-
resetPassword: function (data, params) {
|
|
713
|
-
if (params === void 0) { params = {}; }
|
|
714
|
-
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
715
|
-
},
|
|
716
|
-
/**
|
|
717
|
-
* No description
|
|
718
|
-
*
|
|
719
|
-
* @tags Authentication
|
|
720
|
-
* @name SignIn
|
|
721
|
-
* @request POST:/auth/signin
|
|
722
|
-
* @secure
|
|
723
|
-
* @response `200` `SigninResponseDto`
|
|
724
|
-
*/
|
|
725
|
-
signIn: function (data, params) {
|
|
726
|
-
if (params === void 0) { params = {}; }
|
|
727
|
-
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
728
|
-
},
|
|
729
|
-
};
|
|
730
690
|
_this.admin = {
|
|
731
691
|
/**
|
|
732
692
|
* No description
|
|
@@ -1975,6 +1935,60 @@ var Api = /** @class */ (function (_super) {
|
|
|
1975
1935
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/withdraw-deliver-state"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
|
|
1976
1936
|
},
|
|
1977
1937
|
};
|
|
1938
|
+
_this.auth = {
|
|
1939
|
+
/**
|
|
1940
|
+
* No description
|
|
1941
|
+
*
|
|
1942
|
+
* @tags Authentication
|
|
1943
|
+
* @name Logout
|
|
1944
|
+
* @request POST:/auth/logout
|
|
1945
|
+
* @secure
|
|
1946
|
+
* @response `204` `void`
|
|
1947
|
+
*/
|
|
1948
|
+
logout: function (params) {
|
|
1949
|
+
if (params === void 0) { params = {}; }
|
|
1950
|
+
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
1951
|
+
},
|
|
1952
|
+
/**
|
|
1953
|
+
* No description
|
|
1954
|
+
*
|
|
1955
|
+
* @tags Authentication
|
|
1956
|
+
* @name RequestPasswordReset
|
|
1957
|
+
* @request POST:/auth/request-password-reset
|
|
1958
|
+
* @secure
|
|
1959
|
+
* @response `204` `void`
|
|
1960
|
+
*/
|
|
1961
|
+
requestPasswordReset: function (data, params) {
|
|
1962
|
+
if (params === void 0) { params = {}; }
|
|
1963
|
+
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
1964
|
+
},
|
|
1965
|
+
/**
|
|
1966
|
+
* No description
|
|
1967
|
+
*
|
|
1968
|
+
* @tags Authentication
|
|
1969
|
+
* @name ResetPassword
|
|
1970
|
+
* @request PATCH:/auth/reset-password
|
|
1971
|
+
* @secure
|
|
1972
|
+
* @response `200` `SigninResponseDto`
|
|
1973
|
+
*/
|
|
1974
|
+
resetPassword: function (data, params) {
|
|
1975
|
+
if (params === void 0) { params = {}; }
|
|
1976
|
+
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
1977
|
+
},
|
|
1978
|
+
/**
|
|
1979
|
+
* No description
|
|
1980
|
+
*
|
|
1981
|
+
* @tags Authentication
|
|
1982
|
+
* @name SignIn
|
|
1983
|
+
* @request POST:/auth/signin
|
|
1984
|
+
* @secure
|
|
1985
|
+
* @response `200` `SigninResponseDto`
|
|
1986
|
+
*/
|
|
1987
|
+
signIn: function (data, params) {
|
|
1988
|
+
if (params === void 0) { params = {}; }
|
|
1989
|
+
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
1990
|
+
},
|
|
1991
|
+
};
|
|
1978
1992
|
return _this;
|
|
1979
1993
|
}
|
|
1980
1994
|
return Api;
|
package/dist/types/api/api.d.ts
CHANGED
|
@@ -463,11 +463,11 @@ export interface HttpExceptionDto {
|
|
|
463
463
|
timestamp: string;
|
|
464
464
|
}
|
|
465
465
|
export interface InvoicesDispatchDto {
|
|
466
|
-
/** @minItems
|
|
466
|
+
/** @minItems 0 */
|
|
467
467
|
caseIds?: string[];
|
|
468
468
|
/** @minItems 1 */
|
|
469
469
|
customerIds?: string[];
|
|
470
|
-
/** @minItems
|
|
470
|
+
/** @minItems 0 */
|
|
471
471
|
operationGroupIds?: string[];
|
|
472
472
|
}
|
|
473
473
|
export interface OperationExtraEntityDto {
|
|
@@ -1518,6 +1518,45 @@ export declare namespace Tenants {
|
|
|
1518
1518
|
type RequestHeaders = {};
|
|
1519
1519
|
type ResponseBody = FullOperationRequestEntityDto;
|
|
1520
1520
|
}
|
|
1521
|
+
/**
|
|
1522
|
+
* No description
|
|
1523
|
+
* @tags Tenant
|
|
1524
|
+
* @name ListTenantInventory
|
|
1525
|
+
* @request GET:/tenants/{tenantId}/inventory
|
|
1526
|
+
* @secure
|
|
1527
|
+
* @response `200` `CaseWineInventoryItemEntityPaginatedDto`
|
|
1528
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1529
|
+
*/
|
|
1530
|
+
namespace ListTenantInventory {
|
|
1531
|
+
type RequestParams = {
|
|
1532
|
+
tenantId: string;
|
|
1533
|
+
};
|
|
1534
|
+
type RequestQuery = {
|
|
1535
|
+
amount?: string;
|
|
1536
|
+
bottleFormatIds?: string[];
|
|
1537
|
+
bottleVintageIds?: string[];
|
|
1538
|
+
createdAt?: string;
|
|
1539
|
+
/**
|
|
1540
|
+
* @default 10
|
|
1541
|
+
* @example 10
|
|
1542
|
+
*/
|
|
1543
|
+
limit?: number;
|
|
1544
|
+
orderBy?: OrderByEnum;
|
|
1545
|
+
/**
|
|
1546
|
+
* @default 1
|
|
1547
|
+
* @example 1
|
|
1548
|
+
*/
|
|
1549
|
+
page?: number;
|
|
1550
|
+
search?: string;
|
|
1551
|
+
sortBy?: string[];
|
|
1552
|
+
/** @format uuid */
|
|
1553
|
+
userId?: string;
|
|
1554
|
+
wineIds?: string[];
|
|
1555
|
+
};
|
|
1556
|
+
type RequestBody = never;
|
|
1557
|
+
type RequestHeaders = {};
|
|
1558
|
+
type ResponseBody = CaseWineInventoryItemEntityPaginatedDto;
|
|
1559
|
+
}
|
|
1521
1560
|
/**
|
|
1522
1561
|
* No description
|
|
1523
1562
|
* @tags Tenant Storage Plans
|
|
@@ -1864,68 +1903,6 @@ export declare namespace Tenants {
|
|
|
1864
1903
|
type ResponseBody = AddressEntityDto;
|
|
1865
1904
|
}
|
|
1866
1905
|
}
|
|
1867
|
-
export declare namespace Auth {
|
|
1868
|
-
/**
|
|
1869
|
-
* No description
|
|
1870
|
-
* @tags Authentication
|
|
1871
|
-
* @name Logout
|
|
1872
|
-
* @request POST:/auth/logout
|
|
1873
|
-
* @secure
|
|
1874
|
-
* @response `204` `void`
|
|
1875
|
-
*/
|
|
1876
|
-
namespace Logout {
|
|
1877
|
-
type RequestParams = {};
|
|
1878
|
-
type RequestQuery = {};
|
|
1879
|
-
type RequestBody = never;
|
|
1880
|
-
type RequestHeaders = {};
|
|
1881
|
-
type ResponseBody = void;
|
|
1882
|
-
}
|
|
1883
|
-
/**
|
|
1884
|
-
* No description
|
|
1885
|
-
* @tags Authentication
|
|
1886
|
-
* @name RequestPasswordReset
|
|
1887
|
-
* @request POST:/auth/request-password-reset
|
|
1888
|
-
* @secure
|
|
1889
|
-
* @response `204` `void`
|
|
1890
|
-
*/
|
|
1891
|
-
namespace RequestPasswordReset {
|
|
1892
|
-
type RequestParams = {};
|
|
1893
|
-
type RequestQuery = {};
|
|
1894
|
-
type RequestBody = RequestPasswordResetDto;
|
|
1895
|
-
type RequestHeaders = {};
|
|
1896
|
-
type ResponseBody = void;
|
|
1897
|
-
}
|
|
1898
|
-
/**
|
|
1899
|
-
* No description
|
|
1900
|
-
* @tags Authentication
|
|
1901
|
-
* @name ResetPassword
|
|
1902
|
-
* @request PATCH:/auth/reset-password
|
|
1903
|
-
* @secure
|
|
1904
|
-
* @response `200` `SigninResponseDto`
|
|
1905
|
-
*/
|
|
1906
|
-
namespace ResetPassword {
|
|
1907
|
-
type RequestParams = {};
|
|
1908
|
-
type RequestQuery = {};
|
|
1909
|
-
type RequestBody = ResetPasswordDto;
|
|
1910
|
-
type RequestHeaders = {};
|
|
1911
|
-
type ResponseBody = SigninResponseDto;
|
|
1912
|
-
}
|
|
1913
|
-
/**
|
|
1914
|
-
* No description
|
|
1915
|
-
* @tags Authentication
|
|
1916
|
-
* @name SignIn
|
|
1917
|
-
* @request POST:/auth/signin
|
|
1918
|
-
* @secure
|
|
1919
|
-
* @response `200` `SigninResponseDto`
|
|
1920
|
-
*/
|
|
1921
|
-
namespace SignIn {
|
|
1922
|
-
type RequestParams = {};
|
|
1923
|
-
type RequestQuery = {};
|
|
1924
|
-
type RequestBody = SigninDto;
|
|
1925
|
-
type RequestHeaders = {};
|
|
1926
|
-
type ResponseBody = SigninResponseDto;
|
|
1927
|
-
}
|
|
1928
|
-
}
|
|
1929
1906
|
export declare namespace Admin {
|
|
1930
1907
|
/**
|
|
1931
1908
|
* No description
|
|
@@ -3864,6 +3841,68 @@ export declare namespace Admin {
|
|
|
3864
3841
|
type ResponseBody = void;
|
|
3865
3842
|
}
|
|
3866
3843
|
}
|
|
3844
|
+
export declare namespace Auth {
|
|
3845
|
+
/**
|
|
3846
|
+
* No description
|
|
3847
|
+
* @tags Authentication
|
|
3848
|
+
* @name Logout
|
|
3849
|
+
* @request POST:/auth/logout
|
|
3850
|
+
* @secure
|
|
3851
|
+
* @response `204` `void`
|
|
3852
|
+
*/
|
|
3853
|
+
namespace Logout {
|
|
3854
|
+
type RequestParams = {};
|
|
3855
|
+
type RequestQuery = {};
|
|
3856
|
+
type RequestBody = never;
|
|
3857
|
+
type RequestHeaders = {};
|
|
3858
|
+
type ResponseBody = void;
|
|
3859
|
+
}
|
|
3860
|
+
/**
|
|
3861
|
+
* No description
|
|
3862
|
+
* @tags Authentication
|
|
3863
|
+
* @name RequestPasswordReset
|
|
3864
|
+
* @request POST:/auth/request-password-reset
|
|
3865
|
+
* @secure
|
|
3866
|
+
* @response `204` `void`
|
|
3867
|
+
*/
|
|
3868
|
+
namespace RequestPasswordReset {
|
|
3869
|
+
type RequestParams = {};
|
|
3870
|
+
type RequestQuery = {};
|
|
3871
|
+
type RequestBody = RequestPasswordResetDto;
|
|
3872
|
+
type RequestHeaders = {};
|
|
3873
|
+
type ResponseBody = void;
|
|
3874
|
+
}
|
|
3875
|
+
/**
|
|
3876
|
+
* No description
|
|
3877
|
+
* @tags Authentication
|
|
3878
|
+
* @name ResetPassword
|
|
3879
|
+
* @request PATCH:/auth/reset-password
|
|
3880
|
+
* @secure
|
|
3881
|
+
* @response `200` `SigninResponseDto`
|
|
3882
|
+
*/
|
|
3883
|
+
namespace ResetPassword {
|
|
3884
|
+
type RequestParams = {};
|
|
3885
|
+
type RequestQuery = {};
|
|
3886
|
+
type RequestBody = ResetPasswordDto;
|
|
3887
|
+
type RequestHeaders = {};
|
|
3888
|
+
type ResponseBody = SigninResponseDto;
|
|
3889
|
+
}
|
|
3890
|
+
/**
|
|
3891
|
+
* No description
|
|
3892
|
+
* @tags Authentication
|
|
3893
|
+
* @name SignIn
|
|
3894
|
+
* @request POST:/auth/signin
|
|
3895
|
+
* @secure
|
|
3896
|
+
* @response `200` `SigninResponseDto`
|
|
3897
|
+
*/
|
|
3898
|
+
namespace SignIn {
|
|
3899
|
+
type RequestParams = {};
|
|
3900
|
+
type RequestQuery = {};
|
|
3901
|
+
type RequestBody = SigninDto;
|
|
3902
|
+
type RequestHeaders = {};
|
|
3903
|
+
type ResponseBody = SigninResponseDto;
|
|
3904
|
+
}
|
|
3905
|
+
}
|
|
3867
3906
|
import type { AxiosInstance, AxiosRequestConfig, ResponseType } from "axios";
|
|
3868
3907
|
export type QueryParamsType = Record<string | number, any>;
|
|
3869
3908
|
export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
|
|
@@ -4077,6 +4116,38 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4077
4116
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
4078
4117
|
*/
|
|
4079
4118
|
getUserOperationRequestById: (tenantId: string, userId: string, requestId: string, params?: RequestParams) => Promise<FullOperationRequestEntityDto>;
|
|
4119
|
+
/**
|
|
4120
|
+
* No description
|
|
4121
|
+
*
|
|
4122
|
+
* @tags Tenant
|
|
4123
|
+
* @name ListTenantInventory
|
|
4124
|
+
* @request GET:/tenants/{tenantId}/inventory
|
|
4125
|
+
* @secure
|
|
4126
|
+
* @response `200` `CaseWineInventoryItemEntityPaginatedDto`
|
|
4127
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
4128
|
+
*/
|
|
4129
|
+
listTenantInventory: (tenantId: string, query?: {
|
|
4130
|
+
amount?: string;
|
|
4131
|
+
bottleFormatIds?: string[];
|
|
4132
|
+
bottleVintageIds?: string[];
|
|
4133
|
+
createdAt?: string;
|
|
4134
|
+
/**
|
|
4135
|
+
* @default 10
|
|
4136
|
+
* @example 10
|
|
4137
|
+
*/
|
|
4138
|
+
limit?: number;
|
|
4139
|
+
orderBy?: OrderByEnum;
|
|
4140
|
+
/**
|
|
4141
|
+
* @default 1
|
|
4142
|
+
* @example 1
|
|
4143
|
+
*/
|
|
4144
|
+
page?: number;
|
|
4145
|
+
search?: string;
|
|
4146
|
+
sortBy?: string[];
|
|
4147
|
+
/** @format uuid */
|
|
4148
|
+
userId?: string;
|
|
4149
|
+
wineIds?: string[];
|
|
4150
|
+
}, params?: RequestParams) => Promise<CaseWineInventoryItemEntityPaginatedDto>;
|
|
4080
4151
|
/**
|
|
4081
4152
|
* No description
|
|
4082
4153
|
*
|
|
@@ -4320,48 +4391,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4320
4391
|
*/
|
|
4321
4392
|
updateUserAddress: (tenantId: string, userId: string, addressId: string, data: UpdateAddressDto, params?: RequestParams) => Promise<AddressEntityDto>;
|
|
4322
4393
|
};
|
|
4323
|
-
auth: {
|
|
4324
|
-
/**
|
|
4325
|
-
* No description
|
|
4326
|
-
*
|
|
4327
|
-
* @tags Authentication
|
|
4328
|
-
* @name Logout
|
|
4329
|
-
* @request POST:/auth/logout
|
|
4330
|
-
* @secure
|
|
4331
|
-
* @response `204` `void`
|
|
4332
|
-
*/
|
|
4333
|
-
logout: (params?: RequestParams) => Promise<void>;
|
|
4334
|
-
/**
|
|
4335
|
-
* No description
|
|
4336
|
-
*
|
|
4337
|
-
* @tags Authentication
|
|
4338
|
-
* @name RequestPasswordReset
|
|
4339
|
-
* @request POST:/auth/request-password-reset
|
|
4340
|
-
* @secure
|
|
4341
|
-
* @response `204` `void`
|
|
4342
|
-
*/
|
|
4343
|
-
requestPasswordReset: (data: RequestPasswordResetDto, params?: RequestParams) => Promise<void>;
|
|
4344
|
-
/**
|
|
4345
|
-
* No description
|
|
4346
|
-
*
|
|
4347
|
-
* @tags Authentication
|
|
4348
|
-
* @name ResetPassword
|
|
4349
|
-
* @request PATCH:/auth/reset-password
|
|
4350
|
-
* @secure
|
|
4351
|
-
* @response `200` `SigninResponseDto`
|
|
4352
|
-
*/
|
|
4353
|
-
resetPassword: (data: ResetPasswordDto, params?: RequestParams) => Promise<SigninResponseDto>;
|
|
4354
|
-
/**
|
|
4355
|
-
* No description
|
|
4356
|
-
*
|
|
4357
|
-
* @tags Authentication
|
|
4358
|
-
* @name SignIn
|
|
4359
|
-
* @request POST:/auth/signin
|
|
4360
|
-
* @secure
|
|
4361
|
-
* @response `200` `SigninResponseDto`
|
|
4362
|
-
*/
|
|
4363
|
-
signIn: (data: SigninDto, params?: RequestParams) => Promise<SigninResponseDto>;
|
|
4364
|
-
};
|
|
4365
4394
|
admin: {
|
|
4366
4395
|
/**
|
|
4367
4396
|
* No description
|
|
@@ -5619,4 +5648,46 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5619
5648
|
*/
|
|
5620
5649
|
updateTenantWithdrawRequestDeliverState: (tenantId: string, requestId: string, data: UpdateWithdrawDeliverStateDto, params?: RequestParams) => Promise<void>;
|
|
5621
5650
|
};
|
|
5651
|
+
auth: {
|
|
5652
|
+
/**
|
|
5653
|
+
* No description
|
|
5654
|
+
*
|
|
5655
|
+
* @tags Authentication
|
|
5656
|
+
* @name Logout
|
|
5657
|
+
* @request POST:/auth/logout
|
|
5658
|
+
* @secure
|
|
5659
|
+
* @response `204` `void`
|
|
5660
|
+
*/
|
|
5661
|
+
logout: (params?: RequestParams) => Promise<void>;
|
|
5662
|
+
/**
|
|
5663
|
+
* No description
|
|
5664
|
+
*
|
|
5665
|
+
* @tags Authentication
|
|
5666
|
+
* @name RequestPasswordReset
|
|
5667
|
+
* @request POST:/auth/request-password-reset
|
|
5668
|
+
* @secure
|
|
5669
|
+
* @response `204` `void`
|
|
5670
|
+
*/
|
|
5671
|
+
requestPasswordReset: (data: RequestPasswordResetDto, params?: RequestParams) => Promise<void>;
|
|
5672
|
+
/**
|
|
5673
|
+
* No description
|
|
5674
|
+
*
|
|
5675
|
+
* @tags Authentication
|
|
5676
|
+
* @name ResetPassword
|
|
5677
|
+
* @request PATCH:/auth/reset-password
|
|
5678
|
+
* @secure
|
|
5679
|
+
* @response `200` `SigninResponseDto`
|
|
5680
|
+
*/
|
|
5681
|
+
resetPassword: (data: ResetPasswordDto, params?: RequestParams) => Promise<SigninResponseDto>;
|
|
5682
|
+
/**
|
|
5683
|
+
* No description
|
|
5684
|
+
*
|
|
5685
|
+
* @tags Authentication
|
|
5686
|
+
* @name SignIn
|
|
5687
|
+
* @request POST:/auth/signin
|
|
5688
|
+
* @secure
|
|
5689
|
+
* @response `200` `SigninResponseDto`
|
|
5690
|
+
*/
|
|
5691
|
+
signIn: (data: SigninDto, params?: RequestParams) => Promise<SigninResponseDto>;
|
|
5692
|
+
};
|
|
5622
5693
|
}
|
package/dist/umd/index.ts
CHANGED
|
@@ -18821,6 +18821,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18821
18821
|
if (params === void 0) { params = {}; }
|
|
18822
18822
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
|
|
18823
18823
|
},
|
|
18824
|
+
/**
|
|
18825
|
+
* No description
|
|
18826
|
+
*
|
|
18827
|
+
* @tags Tenant
|
|
18828
|
+
* @name ListTenantInventory
|
|
18829
|
+
* @request GET:/tenants/{tenantId}/inventory
|
|
18830
|
+
* @secure
|
|
18831
|
+
* @response `200` `CaseWineInventoryItemEntityPaginatedDto`
|
|
18832
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
18833
|
+
*/
|
|
18834
|
+
listTenantInventory: function (tenantId, query, params) {
|
|
18835
|
+
if (params === void 0) { params = {}; }
|
|
18836
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
18837
|
+
},
|
|
18824
18838
|
/**
|
|
18825
18839
|
* No description
|
|
18826
18840
|
*
|
|
@@ -19004,60 +19018,6 @@ var Api = /** @class */ (function (_super) {
|
|
|
19004
19018
|
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));
|
|
19005
19019
|
},
|
|
19006
19020
|
};
|
|
19007
|
-
_this.auth = {
|
|
19008
|
-
/**
|
|
19009
|
-
* No description
|
|
19010
|
-
*
|
|
19011
|
-
* @tags Authentication
|
|
19012
|
-
* @name Logout
|
|
19013
|
-
* @request POST:/auth/logout
|
|
19014
|
-
* @secure
|
|
19015
|
-
* @response `204` `void`
|
|
19016
|
-
*/
|
|
19017
|
-
logout: function (params) {
|
|
19018
|
-
if (params === void 0) { params = {}; }
|
|
19019
|
-
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
19020
|
-
},
|
|
19021
|
-
/**
|
|
19022
|
-
* No description
|
|
19023
|
-
*
|
|
19024
|
-
* @tags Authentication
|
|
19025
|
-
* @name RequestPasswordReset
|
|
19026
|
-
* @request POST:/auth/request-password-reset
|
|
19027
|
-
* @secure
|
|
19028
|
-
* @response `204` `void`
|
|
19029
|
-
*/
|
|
19030
|
-
requestPasswordReset: function (data, params) {
|
|
19031
|
-
if (params === void 0) { params = {}; }
|
|
19032
|
-
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
19033
|
-
},
|
|
19034
|
-
/**
|
|
19035
|
-
* No description
|
|
19036
|
-
*
|
|
19037
|
-
* @tags Authentication
|
|
19038
|
-
* @name ResetPassword
|
|
19039
|
-
* @request PATCH:/auth/reset-password
|
|
19040
|
-
* @secure
|
|
19041
|
-
* @response `200` `SigninResponseDto`
|
|
19042
|
-
*/
|
|
19043
|
-
resetPassword: function (data, params) {
|
|
19044
|
-
if (params === void 0) { params = {}; }
|
|
19045
|
-
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
19046
|
-
},
|
|
19047
|
-
/**
|
|
19048
|
-
* No description
|
|
19049
|
-
*
|
|
19050
|
-
* @tags Authentication
|
|
19051
|
-
* @name SignIn
|
|
19052
|
-
* @request POST:/auth/signin
|
|
19053
|
-
* @secure
|
|
19054
|
-
* @response `200` `SigninResponseDto`
|
|
19055
|
-
*/
|
|
19056
|
-
signIn: function (data, params) {
|
|
19057
|
-
if (params === void 0) { params = {}; }
|
|
19058
|
-
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
19059
|
-
},
|
|
19060
|
-
};
|
|
19061
19021
|
_this.admin = {
|
|
19062
19022
|
/**
|
|
19063
19023
|
* No description
|
|
@@ -20306,6 +20266,60 @@ var Api = /** @class */ (function (_super) {
|
|
|
20306
20266
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/withdraw-deliver-state"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
|
|
20307
20267
|
},
|
|
20308
20268
|
};
|
|
20269
|
+
_this.auth = {
|
|
20270
|
+
/**
|
|
20271
|
+
* No description
|
|
20272
|
+
*
|
|
20273
|
+
* @tags Authentication
|
|
20274
|
+
* @name Logout
|
|
20275
|
+
* @request POST:/auth/logout
|
|
20276
|
+
* @secure
|
|
20277
|
+
* @response `204` `void`
|
|
20278
|
+
*/
|
|
20279
|
+
logout: function (params) {
|
|
20280
|
+
if (params === void 0) { params = {}; }
|
|
20281
|
+
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
20282
|
+
},
|
|
20283
|
+
/**
|
|
20284
|
+
* No description
|
|
20285
|
+
*
|
|
20286
|
+
* @tags Authentication
|
|
20287
|
+
* @name RequestPasswordReset
|
|
20288
|
+
* @request POST:/auth/request-password-reset
|
|
20289
|
+
* @secure
|
|
20290
|
+
* @response `204` `void`
|
|
20291
|
+
*/
|
|
20292
|
+
requestPasswordReset: function (data, params) {
|
|
20293
|
+
if (params === void 0) { params = {}; }
|
|
20294
|
+
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
20295
|
+
},
|
|
20296
|
+
/**
|
|
20297
|
+
* No description
|
|
20298
|
+
*
|
|
20299
|
+
* @tags Authentication
|
|
20300
|
+
* @name ResetPassword
|
|
20301
|
+
* @request PATCH:/auth/reset-password
|
|
20302
|
+
* @secure
|
|
20303
|
+
* @response `200` `SigninResponseDto`
|
|
20304
|
+
*/
|
|
20305
|
+
resetPassword: function (data, params) {
|
|
20306
|
+
if (params === void 0) { params = {}; }
|
|
20307
|
+
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
20308
|
+
},
|
|
20309
|
+
/**
|
|
20310
|
+
* No description
|
|
20311
|
+
*
|
|
20312
|
+
* @tags Authentication
|
|
20313
|
+
* @name SignIn
|
|
20314
|
+
* @request POST:/auth/signin
|
|
20315
|
+
* @secure
|
|
20316
|
+
* @response `200` `SigninResponseDto`
|
|
20317
|
+
*/
|
|
20318
|
+
signIn: function (data, params) {
|
|
20319
|
+
if (params === void 0) { params = {}; }
|
|
20320
|
+
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
20321
|
+
},
|
|
20322
|
+
};
|
|
20309
20323
|
return _this;
|
|
20310
20324
|
}
|
|
20311
20325
|
return Api;
|