@thelllabs/winehaus-sdk 0.0.22 → 0.0.23
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 +55 -55
- package/dist/esm/api/api.js +55 -55
- package/dist/types/api/api.d.ts +128 -105
- package/dist/umd/index.ts +55 -55
- 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.3
|
|
283
283
|
* @baseUrl http://localhost:3000
|
|
284
284
|
* @contact
|
|
285
285
|
*/
|
|
@@ -299,60 +299,6 @@ var Api = /** @class */ (function (_super) {
|
|
|
299
299
|
if (params === void 0) { params = {}; }
|
|
300
300
|
return _this.request(__assign({ path: "/", method: "GET" }, params));
|
|
301
301
|
};
|
|
302
|
-
_this.auth = {
|
|
303
|
-
/**
|
|
304
|
-
* No description
|
|
305
|
-
*
|
|
306
|
-
* @tags Authentication
|
|
307
|
-
* @name Logout
|
|
308
|
-
* @request POST:/auth/logout
|
|
309
|
-
* @secure
|
|
310
|
-
* @response `204` `void`
|
|
311
|
-
*/
|
|
312
|
-
logout: function (params) {
|
|
313
|
-
if (params === void 0) { params = {}; }
|
|
314
|
-
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
315
|
-
},
|
|
316
|
-
/**
|
|
317
|
-
* No description
|
|
318
|
-
*
|
|
319
|
-
* @tags Authentication
|
|
320
|
-
* @name RequestPasswordReset
|
|
321
|
-
* @request POST:/auth/request-password-reset
|
|
322
|
-
* @secure
|
|
323
|
-
* @response `204` `void`
|
|
324
|
-
*/
|
|
325
|
-
requestPasswordReset: function (data, params) {
|
|
326
|
-
if (params === void 0) { params = {}; }
|
|
327
|
-
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
328
|
-
},
|
|
329
|
-
/**
|
|
330
|
-
* No description
|
|
331
|
-
*
|
|
332
|
-
* @tags Authentication
|
|
333
|
-
* @name ResetPassword
|
|
334
|
-
* @request PATCH:/auth/reset-password
|
|
335
|
-
* @secure
|
|
336
|
-
* @response `200` `SigninResponseDto`
|
|
337
|
-
*/
|
|
338
|
-
resetPassword: function (data, params) {
|
|
339
|
-
if (params === void 0) { params = {}; }
|
|
340
|
-
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
341
|
-
},
|
|
342
|
-
/**
|
|
343
|
-
* No description
|
|
344
|
-
*
|
|
345
|
-
* @tags Authentication
|
|
346
|
-
* @name SignIn
|
|
347
|
-
* @request POST:/auth/signin
|
|
348
|
-
* @secure
|
|
349
|
-
* @response `200` `SigninResponseDto`
|
|
350
|
-
*/
|
|
351
|
-
signIn: function (data, params) {
|
|
352
|
-
if (params === void 0) { params = {}; }
|
|
353
|
-
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
354
|
-
},
|
|
355
|
-
};
|
|
356
302
|
_this.tenants = {
|
|
357
303
|
/**
|
|
358
304
|
* No description
|
|
@@ -649,6 +595,60 @@ var Api = /** @class */ (function (_super) {
|
|
|
649
595
|
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));
|
|
650
596
|
},
|
|
651
597
|
};
|
|
598
|
+
_this.auth = {
|
|
599
|
+
/**
|
|
600
|
+
* No description
|
|
601
|
+
*
|
|
602
|
+
* @tags Authentication
|
|
603
|
+
* @name Logout
|
|
604
|
+
* @request POST:/auth/logout
|
|
605
|
+
* @secure
|
|
606
|
+
* @response `204` `void`
|
|
607
|
+
*/
|
|
608
|
+
logout: function (params) {
|
|
609
|
+
if (params === void 0) { params = {}; }
|
|
610
|
+
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
611
|
+
},
|
|
612
|
+
/**
|
|
613
|
+
* No description
|
|
614
|
+
*
|
|
615
|
+
* @tags Authentication
|
|
616
|
+
* @name RequestPasswordReset
|
|
617
|
+
* @request POST:/auth/request-password-reset
|
|
618
|
+
* @secure
|
|
619
|
+
* @response `204` `void`
|
|
620
|
+
*/
|
|
621
|
+
requestPasswordReset: function (data, params) {
|
|
622
|
+
if (params === void 0) { params = {}; }
|
|
623
|
+
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
624
|
+
},
|
|
625
|
+
/**
|
|
626
|
+
* No description
|
|
627
|
+
*
|
|
628
|
+
* @tags Authentication
|
|
629
|
+
* @name ResetPassword
|
|
630
|
+
* @request PATCH:/auth/reset-password
|
|
631
|
+
* @secure
|
|
632
|
+
* @response `200` `SigninResponseDto`
|
|
633
|
+
*/
|
|
634
|
+
resetPassword: function (data, params) {
|
|
635
|
+
if (params === void 0) { params = {}; }
|
|
636
|
+
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
637
|
+
},
|
|
638
|
+
/**
|
|
639
|
+
* No description
|
|
640
|
+
*
|
|
641
|
+
* @tags Authentication
|
|
642
|
+
* @name SignIn
|
|
643
|
+
* @request POST:/auth/signin
|
|
644
|
+
* @secure
|
|
645
|
+
* @response `200` `SigninResponseDto`
|
|
646
|
+
*/
|
|
647
|
+
signIn: function (data, params) {
|
|
648
|
+
if (params === void 0) { params = {}; }
|
|
649
|
+
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
650
|
+
},
|
|
651
|
+
};
|
|
652
652
|
_this.admin = {
|
|
653
653
|
/**
|
|
654
654
|
* No description
|
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.3
|
|
277
277
|
* @baseUrl http://localhost:3000
|
|
278
278
|
* @contact
|
|
279
279
|
*/
|
|
@@ -293,60 +293,6 @@ var Api = /** @class */ (function (_super) {
|
|
|
293
293
|
if (params === void 0) { params = {}; }
|
|
294
294
|
return _this.request(__assign({ path: "/", method: "GET" }, params));
|
|
295
295
|
};
|
|
296
|
-
_this.auth = {
|
|
297
|
-
/**
|
|
298
|
-
* No description
|
|
299
|
-
*
|
|
300
|
-
* @tags Authentication
|
|
301
|
-
* @name Logout
|
|
302
|
-
* @request POST:/auth/logout
|
|
303
|
-
* @secure
|
|
304
|
-
* @response `204` `void`
|
|
305
|
-
*/
|
|
306
|
-
logout: function (params) {
|
|
307
|
-
if (params === void 0) { params = {}; }
|
|
308
|
-
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
309
|
-
},
|
|
310
|
-
/**
|
|
311
|
-
* No description
|
|
312
|
-
*
|
|
313
|
-
* @tags Authentication
|
|
314
|
-
* @name RequestPasswordReset
|
|
315
|
-
* @request POST:/auth/request-password-reset
|
|
316
|
-
* @secure
|
|
317
|
-
* @response `204` `void`
|
|
318
|
-
*/
|
|
319
|
-
requestPasswordReset: function (data, params) {
|
|
320
|
-
if (params === void 0) { params = {}; }
|
|
321
|
-
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
322
|
-
},
|
|
323
|
-
/**
|
|
324
|
-
* No description
|
|
325
|
-
*
|
|
326
|
-
* @tags Authentication
|
|
327
|
-
* @name ResetPassword
|
|
328
|
-
* @request PATCH:/auth/reset-password
|
|
329
|
-
* @secure
|
|
330
|
-
* @response `200` `SigninResponseDto`
|
|
331
|
-
*/
|
|
332
|
-
resetPassword: function (data, params) {
|
|
333
|
-
if (params === void 0) { params = {}; }
|
|
334
|
-
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
335
|
-
},
|
|
336
|
-
/**
|
|
337
|
-
* No description
|
|
338
|
-
*
|
|
339
|
-
* @tags Authentication
|
|
340
|
-
* @name SignIn
|
|
341
|
-
* @request POST:/auth/signin
|
|
342
|
-
* @secure
|
|
343
|
-
* @response `200` `SigninResponseDto`
|
|
344
|
-
*/
|
|
345
|
-
signIn: function (data, params) {
|
|
346
|
-
if (params === void 0) { params = {}; }
|
|
347
|
-
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
348
|
-
},
|
|
349
|
-
};
|
|
350
296
|
_this.tenants = {
|
|
351
297
|
/**
|
|
352
298
|
* No description
|
|
@@ -643,6 +589,60 @@ var Api = /** @class */ (function (_super) {
|
|
|
643
589
|
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));
|
|
644
590
|
},
|
|
645
591
|
};
|
|
592
|
+
_this.auth = {
|
|
593
|
+
/**
|
|
594
|
+
* No description
|
|
595
|
+
*
|
|
596
|
+
* @tags Authentication
|
|
597
|
+
* @name Logout
|
|
598
|
+
* @request POST:/auth/logout
|
|
599
|
+
* @secure
|
|
600
|
+
* @response `204` `void`
|
|
601
|
+
*/
|
|
602
|
+
logout: function (params) {
|
|
603
|
+
if (params === void 0) { params = {}; }
|
|
604
|
+
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
605
|
+
},
|
|
606
|
+
/**
|
|
607
|
+
* No description
|
|
608
|
+
*
|
|
609
|
+
* @tags Authentication
|
|
610
|
+
* @name RequestPasswordReset
|
|
611
|
+
* @request POST:/auth/request-password-reset
|
|
612
|
+
* @secure
|
|
613
|
+
* @response `204` `void`
|
|
614
|
+
*/
|
|
615
|
+
requestPasswordReset: function (data, params) {
|
|
616
|
+
if (params === void 0) { params = {}; }
|
|
617
|
+
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
618
|
+
},
|
|
619
|
+
/**
|
|
620
|
+
* No description
|
|
621
|
+
*
|
|
622
|
+
* @tags Authentication
|
|
623
|
+
* @name ResetPassword
|
|
624
|
+
* @request PATCH:/auth/reset-password
|
|
625
|
+
* @secure
|
|
626
|
+
* @response `200` `SigninResponseDto`
|
|
627
|
+
*/
|
|
628
|
+
resetPassword: function (data, params) {
|
|
629
|
+
if (params === void 0) { params = {}; }
|
|
630
|
+
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
631
|
+
},
|
|
632
|
+
/**
|
|
633
|
+
* No description
|
|
634
|
+
*
|
|
635
|
+
* @tags Authentication
|
|
636
|
+
* @name SignIn
|
|
637
|
+
* @request POST:/auth/signin
|
|
638
|
+
* @secure
|
|
639
|
+
* @response `200` `SigninResponseDto`
|
|
640
|
+
*/
|
|
641
|
+
signIn: function (data, params) {
|
|
642
|
+
if (params === void 0) { params = {}; }
|
|
643
|
+
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
644
|
+
},
|
|
645
|
+
};
|
|
646
646
|
_this.admin = {
|
|
647
647
|
/**
|
|
648
648
|
* No description
|
package/dist/types/api/api.d.ts
CHANGED
|
@@ -48,6 +48,9 @@ export interface CaseEntityDto {
|
|
|
48
48
|
/** @min 0 */
|
|
49
49
|
maxItems: number;
|
|
50
50
|
name: string;
|
|
51
|
+
plan?: StoragePlanEntityDto | null;
|
|
52
|
+
/** @format uuid */
|
|
53
|
+
planId?: string | null;
|
|
51
54
|
/** @format uuid */
|
|
52
55
|
tenantId: string;
|
|
53
56
|
/** @format date-time */
|
|
@@ -711,6 +714,22 @@ export interface SigninResponseDto {
|
|
|
711
714
|
token: string;
|
|
712
715
|
user: UserEntityDto;
|
|
713
716
|
}
|
|
717
|
+
export interface StoragePlanEntityDto {
|
|
718
|
+
/** @format date-time */
|
|
719
|
+
createdAt: string;
|
|
720
|
+
/** @format uuid */
|
|
721
|
+
id: string;
|
|
722
|
+
name: string;
|
|
723
|
+
/**
|
|
724
|
+
* @min 0
|
|
725
|
+
* @example 100
|
|
726
|
+
*/
|
|
727
|
+
price: number;
|
|
728
|
+
/** @format uuid */
|
|
729
|
+
tenantId?: string | null;
|
|
730
|
+
/** @format date-time */
|
|
731
|
+
updatedAt: string;
|
|
732
|
+
}
|
|
714
733
|
export interface SyncOperationGroupWithSnapshotDto {
|
|
715
734
|
/** @minItems 0 */
|
|
716
735
|
extras?: UpdateOperationExtraDto[];
|
|
@@ -1205,68 +1224,6 @@ export interface WithdrawWineInventoryItemDto {
|
|
|
1205
1224
|
/** @format uuid */
|
|
1206
1225
|
wineId: string;
|
|
1207
1226
|
}
|
|
1208
|
-
export declare namespace Auth {
|
|
1209
|
-
/**
|
|
1210
|
-
* No description
|
|
1211
|
-
* @tags Authentication
|
|
1212
|
-
* @name Logout
|
|
1213
|
-
* @request POST:/auth/logout
|
|
1214
|
-
* @secure
|
|
1215
|
-
* @response `204` `void`
|
|
1216
|
-
*/
|
|
1217
|
-
namespace Logout {
|
|
1218
|
-
type RequestParams = {};
|
|
1219
|
-
type RequestQuery = {};
|
|
1220
|
-
type RequestBody = never;
|
|
1221
|
-
type RequestHeaders = {};
|
|
1222
|
-
type ResponseBody = void;
|
|
1223
|
-
}
|
|
1224
|
-
/**
|
|
1225
|
-
* No description
|
|
1226
|
-
* @tags Authentication
|
|
1227
|
-
* @name RequestPasswordReset
|
|
1228
|
-
* @request POST:/auth/request-password-reset
|
|
1229
|
-
* @secure
|
|
1230
|
-
* @response `204` `void`
|
|
1231
|
-
*/
|
|
1232
|
-
namespace RequestPasswordReset {
|
|
1233
|
-
type RequestParams = {};
|
|
1234
|
-
type RequestQuery = {};
|
|
1235
|
-
type RequestBody = RequestPasswordResetDto;
|
|
1236
|
-
type RequestHeaders = {};
|
|
1237
|
-
type ResponseBody = void;
|
|
1238
|
-
}
|
|
1239
|
-
/**
|
|
1240
|
-
* No description
|
|
1241
|
-
* @tags Authentication
|
|
1242
|
-
* @name ResetPassword
|
|
1243
|
-
* @request PATCH:/auth/reset-password
|
|
1244
|
-
* @secure
|
|
1245
|
-
* @response `200` `SigninResponseDto`
|
|
1246
|
-
*/
|
|
1247
|
-
namespace ResetPassword {
|
|
1248
|
-
type RequestParams = {};
|
|
1249
|
-
type RequestQuery = {};
|
|
1250
|
-
type RequestBody = ResetPasswordDto;
|
|
1251
|
-
type RequestHeaders = {};
|
|
1252
|
-
type ResponseBody = SigninResponseDto;
|
|
1253
|
-
}
|
|
1254
|
-
/**
|
|
1255
|
-
* No description
|
|
1256
|
-
* @tags Authentication
|
|
1257
|
-
* @name SignIn
|
|
1258
|
-
* @request POST:/auth/signin
|
|
1259
|
-
* @secure
|
|
1260
|
-
* @response `200` `SigninResponseDto`
|
|
1261
|
-
*/
|
|
1262
|
-
namespace SignIn {
|
|
1263
|
-
type RequestParams = {};
|
|
1264
|
-
type RequestQuery = {};
|
|
1265
|
-
type RequestBody = SigninDto;
|
|
1266
|
-
type RequestHeaders = {};
|
|
1267
|
-
type ResponseBody = SigninResponseDto;
|
|
1268
|
-
}
|
|
1269
|
-
}
|
|
1270
1227
|
export declare namespace Tenants {
|
|
1271
1228
|
/**
|
|
1272
1229
|
* No description
|
|
@@ -1548,6 +1505,8 @@ export declare namespace Tenants {
|
|
|
1548
1505
|
amount?: string;
|
|
1549
1506
|
bottleFormatIds?: string[];
|
|
1550
1507
|
bottleVintageIds?: string[];
|
|
1508
|
+
/** @format uuid */
|
|
1509
|
+
caseId?: string;
|
|
1551
1510
|
/**
|
|
1552
1511
|
* @default 10
|
|
1553
1512
|
* @example 10
|
|
@@ -1753,6 +1712,68 @@ export declare namespace Tenants {
|
|
|
1753
1712
|
type ResponseBody = AddressEntityDto;
|
|
1754
1713
|
}
|
|
1755
1714
|
}
|
|
1715
|
+
export declare namespace Auth {
|
|
1716
|
+
/**
|
|
1717
|
+
* No description
|
|
1718
|
+
* @tags Authentication
|
|
1719
|
+
* @name Logout
|
|
1720
|
+
* @request POST:/auth/logout
|
|
1721
|
+
* @secure
|
|
1722
|
+
* @response `204` `void`
|
|
1723
|
+
*/
|
|
1724
|
+
namespace Logout {
|
|
1725
|
+
type RequestParams = {};
|
|
1726
|
+
type RequestQuery = {};
|
|
1727
|
+
type RequestBody = never;
|
|
1728
|
+
type RequestHeaders = {};
|
|
1729
|
+
type ResponseBody = void;
|
|
1730
|
+
}
|
|
1731
|
+
/**
|
|
1732
|
+
* No description
|
|
1733
|
+
* @tags Authentication
|
|
1734
|
+
* @name RequestPasswordReset
|
|
1735
|
+
* @request POST:/auth/request-password-reset
|
|
1736
|
+
* @secure
|
|
1737
|
+
* @response `204` `void`
|
|
1738
|
+
*/
|
|
1739
|
+
namespace RequestPasswordReset {
|
|
1740
|
+
type RequestParams = {};
|
|
1741
|
+
type RequestQuery = {};
|
|
1742
|
+
type RequestBody = RequestPasswordResetDto;
|
|
1743
|
+
type RequestHeaders = {};
|
|
1744
|
+
type ResponseBody = void;
|
|
1745
|
+
}
|
|
1746
|
+
/**
|
|
1747
|
+
* No description
|
|
1748
|
+
* @tags Authentication
|
|
1749
|
+
* @name ResetPassword
|
|
1750
|
+
* @request PATCH:/auth/reset-password
|
|
1751
|
+
* @secure
|
|
1752
|
+
* @response `200` `SigninResponseDto`
|
|
1753
|
+
*/
|
|
1754
|
+
namespace ResetPassword {
|
|
1755
|
+
type RequestParams = {};
|
|
1756
|
+
type RequestQuery = {};
|
|
1757
|
+
type RequestBody = ResetPasswordDto;
|
|
1758
|
+
type RequestHeaders = {};
|
|
1759
|
+
type ResponseBody = SigninResponseDto;
|
|
1760
|
+
}
|
|
1761
|
+
/**
|
|
1762
|
+
* No description
|
|
1763
|
+
* @tags Authentication
|
|
1764
|
+
* @name SignIn
|
|
1765
|
+
* @request POST:/auth/signin
|
|
1766
|
+
* @secure
|
|
1767
|
+
* @response `200` `SigninResponseDto`
|
|
1768
|
+
*/
|
|
1769
|
+
namespace SignIn {
|
|
1770
|
+
type RequestParams = {};
|
|
1771
|
+
type RequestQuery = {};
|
|
1772
|
+
type RequestBody = SigninDto;
|
|
1773
|
+
type RequestHeaders = {};
|
|
1774
|
+
type ResponseBody = SigninResponseDto;
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1756
1777
|
export declare namespace Admin {
|
|
1757
1778
|
/**
|
|
1758
1779
|
* No description
|
|
@@ -3735,7 +3756,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
3735
3756
|
}
|
|
3736
3757
|
/**
|
|
3737
3758
|
* @title winehaus-api
|
|
3738
|
-
* @version 0.0.
|
|
3759
|
+
* @version 0.0.3
|
|
3739
3760
|
* @baseUrl http://localhost:3000
|
|
3740
3761
|
* @contact
|
|
3741
3762
|
*/
|
|
@@ -3749,48 +3770,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3749
3770
|
* @response `200` `void`
|
|
3750
3771
|
*/
|
|
3751
3772
|
index: (params?: RequestParams) => Promise<void>;
|
|
3752
|
-
auth: {
|
|
3753
|
-
/**
|
|
3754
|
-
* No description
|
|
3755
|
-
*
|
|
3756
|
-
* @tags Authentication
|
|
3757
|
-
* @name Logout
|
|
3758
|
-
* @request POST:/auth/logout
|
|
3759
|
-
* @secure
|
|
3760
|
-
* @response `204` `void`
|
|
3761
|
-
*/
|
|
3762
|
-
logout: (params?: RequestParams) => Promise<void>;
|
|
3763
|
-
/**
|
|
3764
|
-
* No description
|
|
3765
|
-
*
|
|
3766
|
-
* @tags Authentication
|
|
3767
|
-
* @name RequestPasswordReset
|
|
3768
|
-
* @request POST:/auth/request-password-reset
|
|
3769
|
-
* @secure
|
|
3770
|
-
* @response `204` `void`
|
|
3771
|
-
*/
|
|
3772
|
-
requestPasswordReset: (data: RequestPasswordResetDto, params?: RequestParams) => Promise<void>;
|
|
3773
|
-
/**
|
|
3774
|
-
* No description
|
|
3775
|
-
*
|
|
3776
|
-
* @tags Authentication
|
|
3777
|
-
* @name ResetPassword
|
|
3778
|
-
* @request PATCH:/auth/reset-password
|
|
3779
|
-
* @secure
|
|
3780
|
-
* @response `200` `SigninResponseDto`
|
|
3781
|
-
*/
|
|
3782
|
-
resetPassword: (data: ResetPasswordDto, params?: RequestParams) => Promise<SigninResponseDto>;
|
|
3783
|
-
/**
|
|
3784
|
-
* No description
|
|
3785
|
-
*
|
|
3786
|
-
* @tags Authentication
|
|
3787
|
-
* @name SignIn
|
|
3788
|
-
* @request POST:/auth/signin
|
|
3789
|
-
* @secure
|
|
3790
|
-
* @response `200` `SigninResponseDto`
|
|
3791
|
-
*/
|
|
3792
|
-
signIn: (data: SigninDto, params?: RequestParams) => Promise<SigninResponseDto>;
|
|
3793
|
-
};
|
|
3794
3773
|
tenants: {
|
|
3795
3774
|
/**
|
|
3796
3775
|
* No description
|
|
@@ -3970,6 +3949,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3970
3949
|
amount?: string;
|
|
3971
3950
|
bottleFormatIds?: string[];
|
|
3972
3951
|
bottleVintageIds?: string[];
|
|
3952
|
+
/** @format uuid */
|
|
3953
|
+
caseId?: string;
|
|
3973
3954
|
/**
|
|
3974
3955
|
* @default 10
|
|
3975
3956
|
* @example 10
|
|
@@ -4106,6 +4087,48 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4106
4087
|
*/
|
|
4107
4088
|
updateUserAddress: (tenantId: string, userId: string, addressId: string, data: UpdateAddressDto, params?: RequestParams) => Promise<AddressEntityDto>;
|
|
4108
4089
|
};
|
|
4090
|
+
auth: {
|
|
4091
|
+
/**
|
|
4092
|
+
* No description
|
|
4093
|
+
*
|
|
4094
|
+
* @tags Authentication
|
|
4095
|
+
* @name Logout
|
|
4096
|
+
* @request POST:/auth/logout
|
|
4097
|
+
* @secure
|
|
4098
|
+
* @response `204` `void`
|
|
4099
|
+
*/
|
|
4100
|
+
logout: (params?: RequestParams) => Promise<void>;
|
|
4101
|
+
/**
|
|
4102
|
+
* No description
|
|
4103
|
+
*
|
|
4104
|
+
* @tags Authentication
|
|
4105
|
+
* @name RequestPasswordReset
|
|
4106
|
+
* @request POST:/auth/request-password-reset
|
|
4107
|
+
* @secure
|
|
4108
|
+
* @response `204` `void`
|
|
4109
|
+
*/
|
|
4110
|
+
requestPasswordReset: (data: RequestPasswordResetDto, params?: RequestParams) => Promise<void>;
|
|
4111
|
+
/**
|
|
4112
|
+
* No description
|
|
4113
|
+
*
|
|
4114
|
+
* @tags Authentication
|
|
4115
|
+
* @name ResetPassword
|
|
4116
|
+
* @request PATCH:/auth/reset-password
|
|
4117
|
+
* @secure
|
|
4118
|
+
* @response `200` `SigninResponseDto`
|
|
4119
|
+
*/
|
|
4120
|
+
resetPassword: (data: ResetPasswordDto, params?: RequestParams) => Promise<SigninResponseDto>;
|
|
4121
|
+
/**
|
|
4122
|
+
* No description
|
|
4123
|
+
*
|
|
4124
|
+
* @tags Authentication
|
|
4125
|
+
* @name SignIn
|
|
4126
|
+
* @request POST:/auth/signin
|
|
4127
|
+
* @secure
|
|
4128
|
+
* @response `200` `SigninResponseDto`
|
|
4129
|
+
*/
|
|
4130
|
+
signIn: (data: SigninDto, params?: RequestParams) => Promise<SigninResponseDto>;
|
|
4131
|
+
};
|
|
4109
4132
|
admin: {
|
|
4110
4133
|
/**
|
|
4111
4134
|
* No description
|
package/dist/umd/index.ts
CHANGED
|
@@ -18604,7 +18604,7 @@ var HttpClient = /** @class */ (function () {
|
|
|
18604
18604
|
exports.HttpClient = HttpClient;
|
|
18605
18605
|
/**
|
|
18606
18606
|
* @title winehaus-api
|
|
18607
|
-
* @version 0.0.
|
|
18607
|
+
* @version 0.0.3
|
|
18608
18608
|
* @baseUrl http://localhost:3000
|
|
18609
18609
|
* @contact
|
|
18610
18610
|
*/
|
|
@@ -18624,60 +18624,6 @@ var Api = /** @class */ (function (_super) {
|
|
|
18624
18624
|
if (params === void 0) { params = {}; }
|
|
18625
18625
|
return _this.request(__assign({ path: "/", method: "GET" }, params));
|
|
18626
18626
|
};
|
|
18627
|
-
_this.auth = {
|
|
18628
|
-
/**
|
|
18629
|
-
* No description
|
|
18630
|
-
*
|
|
18631
|
-
* @tags Authentication
|
|
18632
|
-
* @name Logout
|
|
18633
|
-
* @request POST:/auth/logout
|
|
18634
|
-
* @secure
|
|
18635
|
-
* @response `204` `void`
|
|
18636
|
-
*/
|
|
18637
|
-
logout: function (params) {
|
|
18638
|
-
if (params === void 0) { params = {}; }
|
|
18639
|
-
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
18640
|
-
},
|
|
18641
|
-
/**
|
|
18642
|
-
* No description
|
|
18643
|
-
*
|
|
18644
|
-
* @tags Authentication
|
|
18645
|
-
* @name RequestPasswordReset
|
|
18646
|
-
* @request POST:/auth/request-password-reset
|
|
18647
|
-
* @secure
|
|
18648
|
-
* @response `204` `void`
|
|
18649
|
-
*/
|
|
18650
|
-
requestPasswordReset: function (data, params) {
|
|
18651
|
-
if (params === void 0) { params = {}; }
|
|
18652
|
-
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
18653
|
-
},
|
|
18654
|
-
/**
|
|
18655
|
-
* No description
|
|
18656
|
-
*
|
|
18657
|
-
* @tags Authentication
|
|
18658
|
-
* @name ResetPassword
|
|
18659
|
-
* @request PATCH:/auth/reset-password
|
|
18660
|
-
* @secure
|
|
18661
|
-
* @response `200` `SigninResponseDto`
|
|
18662
|
-
*/
|
|
18663
|
-
resetPassword: function (data, params) {
|
|
18664
|
-
if (params === void 0) { params = {}; }
|
|
18665
|
-
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18666
|
-
},
|
|
18667
|
-
/**
|
|
18668
|
-
* No description
|
|
18669
|
-
*
|
|
18670
|
-
* @tags Authentication
|
|
18671
|
-
* @name SignIn
|
|
18672
|
-
* @request POST:/auth/signin
|
|
18673
|
-
* @secure
|
|
18674
|
-
* @response `200` `SigninResponseDto`
|
|
18675
|
-
*/
|
|
18676
|
-
signIn: function (data, params) {
|
|
18677
|
-
if (params === void 0) { params = {}; }
|
|
18678
|
-
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18679
|
-
},
|
|
18680
|
-
};
|
|
18681
18627
|
_this.tenants = {
|
|
18682
18628
|
/**
|
|
18683
18629
|
* No description
|
|
@@ -18974,6 +18920,60 @@ var Api = /** @class */ (function (_super) {
|
|
|
18974
18920
|
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));
|
|
18975
18921
|
},
|
|
18976
18922
|
};
|
|
18923
|
+
_this.auth = {
|
|
18924
|
+
/**
|
|
18925
|
+
* No description
|
|
18926
|
+
*
|
|
18927
|
+
* @tags Authentication
|
|
18928
|
+
* @name Logout
|
|
18929
|
+
* @request POST:/auth/logout
|
|
18930
|
+
* @secure
|
|
18931
|
+
* @response `204` `void`
|
|
18932
|
+
*/
|
|
18933
|
+
logout: function (params) {
|
|
18934
|
+
if (params === void 0) { params = {}; }
|
|
18935
|
+
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
18936
|
+
},
|
|
18937
|
+
/**
|
|
18938
|
+
* No description
|
|
18939
|
+
*
|
|
18940
|
+
* @tags Authentication
|
|
18941
|
+
* @name RequestPasswordReset
|
|
18942
|
+
* @request POST:/auth/request-password-reset
|
|
18943
|
+
* @secure
|
|
18944
|
+
* @response `204` `void`
|
|
18945
|
+
*/
|
|
18946
|
+
requestPasswordReset: function (data, params) {
|
|
18947
|
+
if (params === void 0) { params = {}; }
|
|
18948
|
+
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
18949
|
+
},
|
|
18950
|
+
/**
|
|
18951
|
+
* No description
|
|
18952
|
+
*
|
|
18953
|
+
* @tags Authentication
|
|
18954
|
+
* @name ResetPassword
|
|
18955
|
+
* @request PATCH:/auth/reset-password
|
|
18956
|
+
* @secure
|
|
18957
|
+
* @response `200` `SigninResponseDto`
|
|
18958
|
+
*/
|
|
18959
|
+
resetPassword: function (data, params) {
|
|
18960
|
+
if (params === void 0) { params = {}; }
|
|
18961
|
+
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18962
|
+
},
|
|
18963
|
+
/**
|
|
18964
|
+
* No description
|
|
18965
|
+
*
|
|
18966
|
+
* @tags Authentication
|
|
18967
|
+
* @name SignIn
|
|
18968
|
+
* @request POST:/auth/signin
|
|
18969
|
+
* @secure
|
|
18970
|
+
* @response `200` `SigninResponseDto`
|
|
18971
|
+
*/
|
|
18972
|
+
signIn: function (data, params) {
|
|
18973
|
+
if (params === void 0) { params = {}; }
|
|
18974
|
+
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18975
|
+
},
|
|
18976
|
+
};
|
|
18977
18977
|
_this.admin = {
|
|
18978
18978
|
/**
|
|
18979
18979
|
* No description
|