@thelllabs/winehaus-sdk 0.0.24 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/api.js +84 -56
- package/dist/esm/api/api.js +84 -56
- package/dist/types/api/api.d.ts +254 -108
- package/dist/umd/index.ts +84 -56
- 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
|
|
@@ -1266,6 +1226,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
1266
1226
|
if (params === void 0) { params = {}; }
|
|
1267
1227
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
|
|
1268
1228
|
},
|
|
1229
|
+
/**
|
|
1230
|
+
* No description
|
|
1231
|
+
*
|
|
1232
|
+
* @tags Admin Tenant Operation Requests
|
|
1233
|
+
* @name GetTenantOperationRequestWinePossibleCases
|
|
1234
|
+
* @request GET:/admin/tenants/{tenantId}/requests/{requestId}/wine-cases
|
|
1235
|
+
* @secure
|
|
1236
|
+
* @response `200` `WineCasesResponseDto`
|
|
1237
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1238
|
+
*/
|
|
1239
|
+
getTenantOperationRequestWinePossibleCases: function (tenantId, requestId, params) {
|
|
1240
|
+
if (params === void 0) { params = {}; }
|
|
1241
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/wine-cases"), method: "GET", secure: true, format: "json" }, params));
|
|
1242
|
+
},
|
|
1269
1243
|
/**
|
|
1270
1244
|
* No description
|
|
1271
1245
|
*
|
|
@@ -1696,9 +1670,9 @@ var Api = /** @class */ (function (_super) {
|
|
|
1696
1670
|
* @response `204` `void`
|
|
1697
1671
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1698
1672
|
*/
|
|
1699
|
-
processTenantOperationGroup: function (tenantId, groupId, params) {
|
|
1673
|
+
processTenantOperationGroup: function (tenantId, groupId, data, params) {
|
|
1700
1674
|
if (params === void 0) { params = {}; }
|
|
1701
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", secure: true }, params));
|
|
1675
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
|
|
1702
1676
|
},
|
|
1703
1677
|
/**
|
|
1704
1678
|
* No description
|
|
@@ -1981,6 +1955,60 @@ var Api = /** @class */ (function (_super) {
|
|
|
1981
1955
|
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
1956
|
},
|
|
1983
1957
|
};
|
|
1958
|
+
_this.auth = {
|
|
1959
|
+
/**
|
|
1960
|
+
* No description
|
|
1961
|
+
*
|
|
1962
|
+
* @tags Authentication
|
|
1963
|
+
* @name Logout
|
|
1964
|
+
* @request POST:/auth/logout
|
|
1965
|
+
* @secure
|
|
1966
|
+
* @response `204` `void`
|
|
1967
|
+
*/
|
|
1968
|
+
logout: function (params) {
|
|
1969
|
+
if (params === void 0) { params = {}; }
|
|
1970
|
+
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
1971
|
+
},
|
|
1972
|
+
/**
|
|
1973
|
+
* No description
|
|
1974
|
+
*
|
|
1975
|
+
* @tags Authentication
|
|
1976
|
+
* @name RequestPasswordReset
|
|
1977
|
+
* @request POST:/auth/request-password-reset
|
|
1978
|
+
* @secure
|
|
1979
|
+
* @response `204` `void`
|
|
1980
|
+
*/
|
|
1981
|
+
requestPasswordReset: function (data, params) {
|
|
1982
|
+
if (params === void 0) { params = {}; }
|
|
1983
|
+
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
1984
|
+
},
|
|
1985
|
+
/**
|
|
1986
|
+
* No description
|
|
1987
|
+
*
|
|
1988
|
+
* @tags Authentication
|
|
1989
|
+
* @name ResetPassword
|
|
1990
|
+
* @request PATCH:/auth/reset-password
|
|
1991
|
+
* @secure
|
|
1992
|
+
* @response `200` `SigninResponseDto`
|
|
1993
|
+
*/
|
|
1994
|
+
resetPassword: function (data, params) {
|
|
1995
|
+
if (params === void 0) { params = {}; }
|
|
1996
|
+
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
1997
|
+
},
|
|
1998
|
+
/**
|
|
1999
|
+
* No description
|
|
2000
|
+
*
|
|
2001
|
+
* @tags Authentication
|
|
2002
|
+
* @name SignIn
|
|
2003
|
+
* @request POST:/auth/signin
|
|
2004
|
+
* @secure
|
|
2005
|
+
* @response `200` `SigninResponseDto`
|
|
2006
|
+
*/
|
|
2007
|
+
signIn: function (data, params) {
|
|
2008
|
+
if (params === void 0) { params = {}; }
|
|
2009
|
+
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
2010
|
+
},
|
|
2011
|
+
};
|
|
1984
2012
|
return _this;
|
|
1985
2013
|
}
|
|
1986
2014
|
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
|
|
@@ -1260,6 +1220,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
1260
1220
|
if (params === void 0) { params = {}; }
|
|
1261
1221
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
|
|
1262
1222
|
},
|
|
1223
|
+
/**
|
|
1224
|
+
* No description
|
|
1225
|
+
*
|
|
1226
|
+
* @tags Admin Tenant Operation Requests
|
|
1227
|
+
* @name GetTenantOperationRequestWinePossibleCases
|
|
1228
|
+
* @request GET:/admin/tenants/{tenantId}/requests/{requestId}/wine-cases
|
|
1229
|
+
* @secure
|
|
1230
|
+
* @response `200` `WineCasesResponseDto`
|
|
1231
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1232
|
+
*/
|
|
1233
|
+
getTenantOperationRequestWinePossibleCases: function (tenantId, requestId, params) {
|
|
1234
|
+
if (params === void 0) { params = {}; }
|
|
1235
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/wine-cases"), method: "GET", secure: true, format: "json" }, params));
|
|
1236
|
+
},
|
|
1263
1237
|
/**
|
|
1264
1238
|
* No description
|
|
1265
1239
|
*
|
|
@@ -1690,9 +1664,9 @@ var Api = /** @class */ (function (_super) {
|
|
|
1690
1664
|
* @response `204` `void`
|
|
1691
1665
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1692
1666
|
*/
|
|
1693
|
-
processTenantOperationGroup: function (tenantId, groupId, params) {
|
|
1667
|
+
processTenantOperationGroup: function (tenantId, groupId, data, params) {
|
|
1694
1668
|
if (params === void 0) { params = {}; }
|
|
1695
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", secure: true }, params));
|
|
1669
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
|
|
1696
1670
|
},
|
|
1697
1671
|
/**
|
|
1698
1672
|
* No description
|
|
@@ -1975,6 +1949,60 @@ var Api = /** @class */ (function (_super) {
|
|
|
1975
1949
|
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
1950
|
},
|
|
1977
1951
|
};
|
|
1952
|
+
_this.auth = {
|
|
1953
|
+
/**
|
|
1954
|
+
* No description
|
|
1955
|
+
*
|
|
1956
|
+
* @tags Authentication
|
|
1957
|
+
* @name Logout
|
|
1958
|
+
* @request POST:/auth/logout
|
|
1959
|
+
* @secure
|
|
1960
|
+
* @response `204` `void`
|
|
1961
|
+
*/
|
|
1962
|
+
logout: function (params) {
|
|
1963
|
+
if (params === void 0) { params = {}; }
|
|
1964
|
+
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
1965
|
+
},
|
|
1966
|
+
/**
|
|
1967
|
+
* No description
|
|
1968
|
+
*
|
|
1969
|
+
* @tags Authentication
|
|
1970
|
+
* @name RequestPasswordReset
|
|
1971
|
+
* @request POST:/auth/request-password-reset
|
|
1972
|
+
* @secure
|
|
1973
|
+
* @response `204` `void`
|
|
1974
|
+
*/
|
|
1975
|
+
requestPasswordReset: function (data, params) {
|
|
1976
|
+
if (params === void 0) { params = {}; }
|
|
1977
|
+
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
1978
|
+
},
|
|
1979
|
+
/**
|
|
1980
|
+
* No description
|
|
1981
|
+
*
|
|
1982
|
+
* @tags Authentication
|
|
1983
|
+
* @name ResetPassword
|
|
1984
|
+
* @request PATCH:/auth/reset-password
|
|
1985
|
+
* @secure
|
|
1986
|
+
* @response `200` `SigninResponseDto`
|
|
1987
|
+
*/
|
|
1988
|
+
resetPassword: function (data, params) {
|
|
1989
|
+
if (params === void 0) { params = {}; }
|
|
1990
|
+
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
1991
|
+
},
|
|
1992
|
+
/**
|
|
1993
|
+
* No description
|
|
1994
|
+
*
|
|
1995
|
+
* @tags Authentication
|
|
1996
|
+
* @name SignIn
|
|
1997
|
+
* @request POST:/auth/signin
|
|
1998
|
+
* @secure
|
|
1999
|
+
* @response `200` `SigninResponseDto`
|
|
2000
|
+
*/
|
|
2001
|
+
signIn: function (data, params) {
|
|
2002
|
+
if (params === void 0) { params = {}; }
|
|
2003
|
+
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
2004
|
+
},
|
|
2005
|
+
};
|
|
1978
2006
|
return _this;
|
|
1979
2007
|
}
|
|
1980
2008
|
return Api;
|
package/dist/types/api/api.d.ts
CHANGED
|
@@ -146,6 +146,7 @@ export interface CaseWineInventoryItemEntityDto {
|
|
|
146
146
|
bottleVintage: WineBottleVintageEntityDto;
|
|
147
147
|
/** @format uuid */
|
|
148
148
|
bottleVintageId: string;
|
|
149
|
+
case?: SimpleCaseEntityDto | null;
|
|
149
150
|
/** @format uuid */
|
|
150
151
|
caseId?: string | null;
|
|
151
152
|
/** @format date-time */
|
|
@@ -211,6 +212,7 @@ export interface CreateCaseDto {
|
|
|
211
212
|
/** @min 0 */
|
|
212
213
|
maxItems: number;
|
|
213
214
|
name: string;
|
|
215
|
+
triggerInvoice?: boolean;
|
|
214
216
|
}
|
|
215
217
|
export interface CreateCaseOperationDto {
|
|
216
218
|
/** @format uuid */
|
|
@@ -463,11 +465,11 @@ export interface HttpExceptionDto {
|
|
|
463
465
|
timestamp: string;
|
|
464
466
|
}
|
|
465
467
|
export interface InvoicesDispatchDto {
|
|
466
|
-
/** @minItems
|
|
468
|
+
/** @minItems 0 */
|
|
467
469
|
caseIds?: string[];
|
|
468
470
|
/** @minItems 1 */
|
|
469
471
|
customerIds?: string[];
|
|
470
|
-
/** @minItems
|
|
472
|
+
/** @minItems 0 */
|
|
471
473
|
operationGroupIds?: string[];
|
|
472
474
|
}
|
|
473
475
|
export interface OperationExtraEntityDto {
|
|
@@ -658,6 +660,9 @@ export interface ProcessDepositDto {
|
|
|
658
660
|
/** @minItems 1 */
|
|
659
661
|
wines: DepositRequestCreateWineInventoryItemDto[];
|
|
660
662
|
}
|
|
663
|
+
export interface ProcessOperationGroupDto {
|
|
664
|
+
triggerInvoice?: boolean;
|
|
665
|
+
}
|
|
661
666
|
export interface ProcessWithdrawDto {
|
|
662
667
|
/** @minItems 0 */
|
|
663
668
|
extras?: CreateOperationExtraDto[];
|
|
@@ -728,6 +733,33 @@ export interface SigninResponseDto {
|
|
|
728
733
|
token: string;
|
|
729
734
|
user: UserEntityDto;
|
|
730
735
|
}
|
|
736
|
+
export interface SimpleCaseEntityDto {
|
|
737
|
+
/** @format date-time */
|
|
738
|
+
billingEndDate?: string | null;
|
|
739
|
+
/** @format date-time */
|
|
740
|
+
billingStartDate?: string | null;
|
|
741
|
+
/** @format date-time */
|
|
742
|
+
createdAt: string;
|
|
743
|
+
/** @min 0 */
|
|
744
|
+
currentItems: number;
|
|
745
|
+
/** @format uuid */
|
|
746
|
+
customerId: string;
|
|
747
|
+
/** @format date-time */
|
|
748
|
+
deletedAt?: string | null;
|
|
749
|
+
description?: string | null;
|
|
750
|
+
/** @format uuid */
|
|
751
|
+
id: string;
|
|
752
|
+
location?: string | null;
|
|
753
|
+
/** @min 0 */
|
|
754
|
+
maxItems: number;
|
|
755
|
+
name: string;
|
|
756
|
+
/** @format uuid */
|
|
757
|
+
planId?: string | null;
|
|
758
|
+
/** @format uuid */
|
|
759
|
+
tenantId: string;
|
|
760
|
+
/** @format date-time */
|
|
761
|
+
updatedAt: string;
|
|
762
|
+
}
|
|
731
763
|
export interface StoragePlanEntityDto {
|
|
732
764
|
/** @format date-time */
|
|
733
765
|
createdAt: string;
|
|
@@ -791,6 +823,7 @@ export interface UpdateCaseDto {
|
|
|
791
823
|
/** @min 0 */
|
|
792
824
|
maxItems: number;
|
|
793
825
|
name: string;
|
|
826
|
+
triggerInvoice?: boolean;
|
|
794
827
|
}
|
|
795
828
|
export interface UpdateCaseOperationDto {
|
|
796
829
|
/** @format uuid */
|
|
@@ -1027,6 +1060,18 @@ export interface WineBrandEntityPaginatedDto {
|
|
|
1027
1060
|
links?: PaginationLinksDto;
|
|
1028
1061
|
meta: PaginationMetaDto;
|
|
1029
1062
|
}
|
|
1063
|
+
export interface WineCaseItemResponseDto {
|
|
1064
|
+
/** @format uuid */
|
|
1065
|
+
bottleFormatId: string;
|
|
1066
|
+
/** @format uuid */
|
|
1067
|
+
bottleVintageId: string;
|
|
1068
|
+
cases: SimpleCaseEntityDto[];
|
|
1069
|
+
/** @format uuid */
|
|
1070
|
+
wineId: string;
|
|
1071
|
+
}
|
|
1072
|
+
export interface WineCasesResponseDto {
|
|
1073
|
+
wines: WineCaseItemResponseDto[];
|
|
1074
|
+
}
|
|
1030
1075
|
export interface WineCountryEntityDto {
|
|
1031
1076
|
/** @format date-time */
|
|
1032
1077
|
createdAt: string;
|
|
@@ -1518,6 +1563,45 @@ export declare namespace Tenants {
|
|
|
1518
1563
|
type RequestHeaders = {};
|
|
1519
1564
|
type ResponseBody = FullOperationRequestEntityDto;
|
|
1520
1565
|
}
|
|
1566
|
+
/**
|
|
1567
|
+
* No description
|
|
1568
|
+
* @tags Tenant
|
|
1569
|
+
* @name ListTenantInventory
|
|
1570
|
+
* @request GET:/tenants/{tenantId}/inventory
|
|
1571
|
+
* @secure
|
|
1572
|
+
* @response `200` `CaseWineInventoryItemEntityPaginatedDto`
|
|
1573
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1574
|
+
*/
|
|
1575
|
+
namespace ListTenantInventory {
|
|
1576
|
+
type RequestParams = {
|
|
1577
|
+
tenantId: string;
|
|
1578
|
+
};
|
|
1579
|
+
type RequestQuery = {
|
|
1580
|
+
amount?: string;
|
|
1581
|
+
bottleFormatIds?: string[];
|
|
1582
|
+
bottleVintageIds?: string[];
|
|
1583
|
+
createdAt?: string;
|
|
1584
|
+
/**
|
|
1585
|
+
* @default 10
|
|
1586
|
+
* @example 10
|
|
1587
|
+
*/
|
|
1588
|
+
limit?: number;
|
|
1589
|
+
orderBy?: OrderByEnum;
|
|
1590
|
+
/**
|
|
1591
|
+
* @default 1
|
|
1592
|
+
* @example 1
|
|
1593
|
+
*/
|
|
1594
|
+
page?: number;
|
|
1595
|
+
search?: string;
|
|
1596
|
+
sortBy?: string[];
|
|
1597
|
+
/** @format uuid */
|
|
1598
|
+
userId?: string;
|
|
1599
|
+
wineIds?: string[];
|
|
1600
|
+
};
|
|
1601
|
+
type RequestBody = never;
|
|
1602
|
+
type RequestHeaders = {};
|
|
1603
|
+
type ResponseBody = CaseWineInventoryItemEntityPaginatedDto;
|
|
1604
|
+
}
|
|
1521
1605
|
/**
|
|
1522
1606
|
* No description
|
|
1523
1607
|
* @tags Tenant Storage Plans
|
|
@@ -1864,68 +1948,6 @@ export declare namespace Tenants {
|
|
|
1864
1948
|
type ResponseBody = AddressEntityDto;
|
|
1865
1949
|
}
|
|
1866
1950
|
}
|
|
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
1951
|
export declare namespace Admin {
|
|
1930
1952
|
/**
|
|
1931
1953
|
* No description
|
|
@@ -2634,6 +2656,25 @@ export declare namespace Admin {
|
|
|
2634
2656
|
type RequestHeaders = {};
|
|
2635
2657
|
type ResponseBody = FullOperationRequestEntityDto;
|
|
2636
2658
|
}
|
|
2659
|
+
/**
|
|
2660
|
+
* No description
|
|
2661
|
+
* @tags Admin Tenant Operation Requests
|
|
2662
|
+
* @name GetTenantOperationRequestWinePossibleCases
|
|
2663
|
+
* @request GET:/admin/tenants/{tenantId}/requests/{requestId}/wine-cases
|
|
2664
|
+
* @secure
|
|
2665
|
+
* @response `200` `WineCasesResponseDto`
|
|
2666
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
2667
|
+
*/
|
|
2668
|
+
namespace GetTenantOperationRequestWinePossibleCases {
|
|
2669
|
+
type RequestParams = {
|
|
2670
|
+
requestId: string;
|
|
2671
|
+
tenantId: string;
|
|
2672
|
+
};
|
|
2673
|
+
type RequestQuery = {};
|
|
2674
|
+
type RequestBody = never;
|
|
2675
|
+
type RequestHeaders = {};
|
|
2676
|
+
type ResponseBody = WineCasesResponseDto;
|
|
2677
|
+
}
|
|
2637
2678
|
/**
|
|
2638
2679
|
* No description
|
|
2639
2680
|
* @tags Admin Tenant Wine Bottle Formats
|
|
@@ -3479,7 +3520,7 @@ export declare namespace Admin {
|
|
|
3479
3520
|
tenantId: string;
|
|
3480
3521
|
};
|
|
3481
3522
|
type RequestQuery = {};
|
|
3482
|
-
type RequestBody =
|
|
3523
|
+
type RequestBody = ProcessOperationGroupDto;
|
|
3483
3524
|
type RequestHeaders = {};
|
|
3484
3525
|
type ResponseBody = void;
|
|
3485
3526
|
}
|
|
@@ -3864,6 +3905,68 @@ export declare namespace Admin {
|
|
|
3864
3905
|
type ResponseBody = void;
|
|
3865
3906
|
}
|
|
3866
3907
|
}
|
|
3908
|
+
export declare namespace Auth {
|
|
3909
|
+
/**
|
|
3910
|
+
* No description
|
|
3911
|
+
* @tags Authentication
|
|
3912
|
+
* @name Logout
|
|
3913
|
+
* @request POST:/auth/logout
|
|
3914
|
+
* @secure
|
|
3915
|
+
* @response `204` `void`
|
|
3916
|
+
*/
|
|
3917
|
+
namespace Logout {
|
|
3918
|
+
type RequestParams = {};
|
|
3919
|
+
type RequestQuery = {};
|
|
3920
|
+
type RequestBody = never;
|
|
3921
|
+
type RequestHeaders = {};
|
|
3922
|
+
type ResponseBody = void;
|
|
3923
|
+
}
|
|
3924
|
+
/**
|
|
3925
|
+
* No description
|
|
3926
|
+
* @tags Authentication
|
|
3927
|
+
* @name RequestPasswordReset
|
|
3928
|
+
* @request POST:/auth/request-password-reset
|
|
3929
|
+
* @secure
|
|
3930
|
+
* @response `204` `void`
|
|
3931
|
+
*/
|
|
3932
|
+
namespace RequestPasswordReset {
|
|
3933
|
+
type RequestParams = {};
|
|
3934
|
+
type RequestQuery = {};
|
|
3935
|
+
type RequestBody = RequestPasswordResetDto;
|
|
3936
|
+
type RequestHeaders = {};
|
|
3937
|
+
type ResponseBody = void;
|
|
3938
|
+
}
|
|
3939
|
+
/**
|
|
3940
|
+
* No description
|
|
3941
|
+
* @tags Authentication
|
|
3942
|
+
* @name ResetPassword
|
|
3943
|
+
* @request PATCH:/auth/reset-password
|
|
3944
|
+
* @secure
|
|
3945
|
+
* @response `200` `SigninResponseDto`
|
|
3946
|
+
*/
|
|
3947
|
+
namespace ResetPassword {
|
|
3948
|
+
type RequestParams = {};
|
|
3949
|
+
type RequestQuery = {};
|
|
3950
|
+
type RequestBody = ResetPasswordDto;
|
|
3951
|
+
type RequestHeaders = {};
|
|
3952
|
+
type ResponseBody = SigninResponseDto;
|
|
3953
|
+
}
|
|
3954
|
+
/**
|
|
3955
|
+
* No description
|
|
3956
|
+
* @tags Authentication
|
|
3957
|
+
* @name SignIn
|
|
3958
|
+
* @request POST:/auth/signin
|
|
3959
|
+
* @secure
|
|
3960
|
+
* @response `200` `SigninResponseDto`
|
|
3961
|
+
*/
|
|
3962
|
+
namespace SignIn {
|
|
3963
|
+
type RequestParams = {};
|
|
3964
|
+
type RequestQuery = {};
|
|
3965
|
+
type RequestBody = SigninDto;
|
|
3966
|
+
type RequestHeaders = {};
|
|
3967
|
+
type ResponseBody = SigninResponseDto;
|
|
3968
|
+
}
|
|
3969
|
+
}
|
|
3867
3970
|
import type { AxiosInstance, AxiosRequestConfig, ResponseType } from "axios";
|
|
3868
3971
|
export type QueryParamsType = Record<string | number, any>;
|
|
3869
3972
|
export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
|
|
@@ -4077,6 +4180,38 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4077
4180
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
4078
4181
|
*/
|
|
4079
4182
|
getUserOperationRequestById: (tenantId: string, userId: string, requestId: string, params?: RequestParams) => Promise<FullOperationRequestEntityDto>;
|
|
4183
|
+
/**
|
|
4184
|
+
* No description
|
|
4185
|
+
*
|
|
4186
|
+
* @tags Tenant
|
|
4187
|
+
* @name ListTenantInventory
|
|
4188
|
+
* @request GET:/tenants/{tenantId}/inventory
|
|
4189
|
+
* @secure
|
|
4190
|
+
* @response `200` `CaseWineInventoryItemEntityPaginatedDto`
|
|
4191
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
4192
|
+
*/
|
|
4193
|
+
listTenantInventory: (tenantId: string, query?: {
|
|
4194
|
+
amount?: string;
|
|
4195
|
+
bottleFormatIds?: string[];
|
|
4196
|
+
bottleVintageIds?: string[];
|
|
4197
|
+
createdAt?: string;
|
|
4198
|
+
/**
|
|
4199
|
+
* @default 10
|
|
4200
|
+
* @example 10
|
|
4201
|
+
*/
|
|
4202
|
+
limit?: number;
|
|
4203
|
+
orderBy?: OrderByEnum;
|
|
4204
|
+
/**
|
|
4205
|
+
* @default 1
|
|
4206
|
+
* @example 1
|
|
4207
|
+
*/
|
|
4208
|
+
page?: number;
|
|
4209
|
+
search?: string;
|
|
4210
|
+
sortBy?: string[];
|
|
4211
|
+
/** @format uuid */
|
|
4212
|
+
userId?: string;
|
|
4213
|
+
wineIds?: string[];
|
|
4214
|
+
}, params?: RequestParams) => Promise<CaseWineInventoryItemEntityPaginatedDto>;
|
|
4080
4215
|
/**
|
|
4081
4216
|
* No description
|
|
4082
4217
|
*
|
|
@@ -4320,48 +4455,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4320
4455
|
*/
|
|
4321
4456
|
updateUserAddress: (tenantId: string, userId: string, addressId: string, data: UpdateAddressDto, params?: RequestParams) => Promise<AddressEntityDto>;
|
|
4322
4457
|
};
|
|
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
4458
|
admin: {
|
|
4366
4459
|
/**
|
|
4367
4460
|
* No description
|
|
@@ -4781,6 +4874,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4781
4874
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
4782
4875
|
*/
|
|
4783
4876
|
getTenantOperationRequestById: (tenantId: string, requestId: string, params?: RequestParams) => Promise<FullOperationRequestEntityDto>;
|
|
4877
|
+
/**
|
|
4878
|
+
* No description
|
|
4879
|
+
*
|
|
4880
|
+
* @tags Admin Tenant Operation Requests
|
|
4881
|
+
* @name GetTenantOperationRequestWinePossibleCases
|
|
4882
|
+
* @request GET:/admin/tenants/{tenantId}/requests/{requestId}/wine-cases
|
|
4883
|
+
* @secure
|
|
4884
|
+
* @response `200` `WineCasesResponseDto`
|
|
4885
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
4886
|
+
*/
|
|
4887
|
+
getTenantOperationRequestWinePossibleCases: (tenantId: string, requestId: string, params?: RequestParams) => Promise<WineCasesResponseDto>;
|
|
4784
4888
|
/**
|
|
4785
4889
|
* No description
|
|
4786
4890
|
*
|
|
@@ -5397,7 +5501,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5397
5501
|
* @response `204` `void`
|
|
5398
5502
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
5399
5503
|
*/
|
|
5400
|
-
processTenantOperationGroup: (tenantId: string, groupId: string, params?: RequestParams) => Promise<void>;
|
|
5504
|
+
processTenantOperationGroup: (tenantId: string, groupId: string, data: ProcessOperationGroupDto, params?: RequestParams) => Promise<void>;
|
|
5401
5505
|
/**
|
|
5402
5506
|
* No description
|
|
5403
5507
|
*
|
|
@@ -5619,4 +5723,46 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5619
5723
|
*/
|
|
5620
5724
|
updateTenantWithdrawRequestDeliverState: (tenantId: string, requestId: string, data: UpdateWithdrawDeliverStateDto, params?: RequestParams) => Promise<void>;
|
|
5621
5725
|
};
|
|
5726
|
+
auth: {
|
|
5727
|
+
/**
|
|
5728
|
+
* No description
|
|
5729
|
+
*
|
|
5730
|
+
* @tags Authentication
|
|
5731
|
+
* @name Logout
|
|
5732
|
+
* @request POST:/auth/logout
|
|
5733
|
+
* @secure
|
|
5734
|
+
* @response `204` `void`
|
|
5735
|
+
*/
|
|
5736
|
+
logout: (params?: RequestParams) => Promise<void>;
|
|
5737
|
+
/**
|
|
5738
|
+
* No description
|
|
5739
|
+
*
|
|
5740
|
+
* @tags Authentication
|
|
5741
|
+
* @name RequestPasswordReset
|
|
5742
|
+
* @request POST:/auth/request-password-reset
|
|
5743
|
+
* @secure
|
|
5744
|
+
* @response `204` `void`
|
|
5745
|
+
*/
|
|
5746
|
+
requestPasswordReset: (data: RequestPasswordResetDto, params?: RequestParams) => Promise<void>;
|
|
5747
|
+
/**
|
|
5748
|
+
* No description
|
|
5749
|
+
*
|
|
5750
|
+
* @tags Authentication
|
|
5751
|
+
* @name ResetPassword
|
|
5752
|
+
* @request PATCH:/auth/reset-password
|
|
5753
|
+
* @secure
|
|
5754
|
+
* @response `200` `SigninResponseDto`
|
|
5755
|
+
*/
|
|
5756
|
+
resetPassword: (data: ResetPasswordDto, params?: RequestParams) => Promise<SigninResponseDto>;
|
|
5757
|
+
/**
|
|
5758
|
+
* No description
|
|
5759
|
+
*
|
|
5760
|
+
* @tags Authentication
|
|
5761
|
+
* @name SignIn
|
|
5762
|
+
* @request POST:/auth/signin
|
|
5763
|
+
* @secure
|
|
5764
|
+
* @response `200` `SigninResponseDto`
|
|
5765
|
+
*/
|
|
5766
|
+
signIn: (data: SigninDto, params?: RequestParams) => Promise<SigninResponseDto>;
|
|
5767
|
+
};
|
|
5622
5768
|
}
|
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
|
|
@@ -19591,6 +19551,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
19591
19551
|
if (params === void 0) { params = {}; }
|
|
19592
19552
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
|
|
19593
19553
|
},
|
|
19554
|
+
/**
|
|
19555
|
+
* No description
|
|
19556
|
+
*
|
|
19557
|
+
* @tags Admin Tenant Operation Requests
|
|
19558
|
+
* @name GetTenantOperationRequestWinePossibleCases
|
|
19559
|
+
* @request GET:/admin/tenants/{tenantId}/requests/{requestId}/wine-cases
|
|
19560
|
+
* @secure
|
|
19561
|
+
* @response `200` `WineCasesResponseDto`
|
|
19562
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19563
|
+
*/
|
|
19564
|
+
getTenantOperationRequestWinePossibleCases: function (tenantId, requestId, params) {
|
|
19565
|
+
if (params === void 0) { params = {}; }
|
|
19566
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/wine-cases"), method: "GET", secure: true, format: "json" }, params));
|
|
19567
|
+
},
|
|
19594
19568
|
/**
|
|
19595
19569
|
* No description
|
|
19596
19570
|
*
|
|
@@ -20021,9 +19995,9 @@ var Api = /** @class */ (function (_super) {
|
|
|
20021
19995
|
* @response `204` `void`
|
|
20022
19996
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
20023
19997
|
*/
|
|
20024
|
-
processTenantOperationGroup: function (tenantId, groupId, params) {
|
|
19998
|
+
processTenantOperationGroup: function (tenantId, groupId, data, params) {
|
|
20025
19999
|
if (params === void 0) { params = {}; }
|
|
20026
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", secure: true }, params));
|
|
20000
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
|
|
20027
20001
|
},
|
|
20028
20002
|
/**
|
|
20029
20003
|
* No description
|
|
@@ -20306,6 +20280,60 @@ var Api = /** @class */ (function (_super) {
|
|
|
20306
20280
|
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
20281
|
},
|
|
20308
20282
|
};
|
|
20283
|
+
_this.auth = {
|
|
20284
|
+
/**
|
|
20285
|
+
* No description
|
|
20286
|
+
*
|
|
20287
|
+
* @tags Authentication
|
|
20288
|
+
* @name Logout
|
|
20289
|
+
* @request POST:/auth/logout
|
|
20290
|
+
* @secure
|
|
20291
|
+
* @response `204` `void`
|
|
20292
|
+
*/
|
|
20293
|
+
logout: function (params) {
|
|
20294
|
+
if (params === void 0) { params = {}; }
|
|
20295
|
+
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
20296
|
+
},
|
|
20297
|
+
/**
|
|
20298
|
+
* No description
|
|
20299
|
+
*
|
|
20300
|
+
* @tags Authentication
|
|
20301
|
+
* @name RequestPasswordReset
|
|
20302
|
+
* @request POST:/auth/request-password-reset
|
|
20303
|
+
* @secure
|
|
20304
|
+
* @response `204` `void`
|
|
20305
|
+
*/
|
|
20306
|
+
requestPasswordReset: function (data, params) {
|
|
20307
|
+
if (params === void 0) { params = {}; }
|
|
20308
|
+
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
20309
|
+
},
|
|
20310
|
+
/**
|
|
20311
|
+
* No description
|
|
20312
|
+
*
|
|
20313
|
+
* @tags Authentication
|
|
20314
|
+
* @name ResetPassword
|
|
20315
|
+
* @request PATCH:/auth/reset-password
|
|
20316
|
+
* @secure
|
|
20317
|
+
* @response `200` `SigninResponseDto`
|
|
20318
|
+
*/
|
|
20319
|
+
resetPassword: function (data, params) {
|
|
20320
|
+
if (params === void 0) { params = {}; }
|
|
20321
|
+
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
20322
|
+
},
|
|
20323
|
+
/**
|
|
20324
|
+
* No description
|
|
20325
|
+
*
|
|
20326
|
+
* @tags Authentication
|
|
20327
|
+
* @name SignIn
|
|
20328
|
+
* @request POST:/auth/signin
|
|
20329
|
+
* @secure
|
|
20330
|
+
* @response `200` `SigninResponseDto`
|
|
20331
|
+
*/
|
|
20332
|
+
signIn: function (data, params) {
|
|
20333
|
+
if (params === void 0) { params = {}; }
|
|
20334
|
+
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
20335
|
+
},
|
|
20336
|
+
};
|
|
20309
20337
|
return _this;
|
|
20310
20338
|
}
|
|
20311
20339
|
return Api;
|