@thelllabs/winehaus-sdk 0.0.23 → 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 +153 -55
- package/dist/esm/api/api.js +153 -55
- package/dist/types/api/api.d.ts +410 -106
- package/dist/umd/index.ts +153 -55
- package/package.json +1 -1
package/dist/types/api/api.d.ts
CHANGED
|
@@ -263,6 +263,12 @@ export interface CreateOperationGroupDto {
|
|
|
263
263
|
/** @example "processed" */
|
|
264
264
|
status?: CreateOnlyOperationGroupStatusEnum;
|
|
265
265
|
}
|
|
266
|
+
export interface CreateStoragePlanDto {
|
|
267
|
+
monthlyCyclePrice: boolean;
|
|
268
|
+
name: string;
|
|
269
|
+
/** @example 100 */
|
|
270
|
+
price: number;
|
|
271
|
+
}
|
|
266
272
|
export interface CreateUserDto {
|
|
267
273
|
email: string;
|
|
268
274
|
firstName: string;
|
|
@@ -456,6 +462,14 @@ export interface HttpExceptionDto {
|
|
|
456
462
|
/** @example "2022-07-25T17:24:07.042Z" */
|
|
457
463
|
timestamp: string;
|
|
458
464
|
}
|
|
465
|
+
export interface InvoicesDispatchDto {
|
|
466
|
+
/** @minItems 0 */
|
|
467
|
+
caseIds?: string[];
|
|
468
|
+
/** @minItems 1 */
|
|
469
|
+
customerIds?: string[];
|
|
470
|
+
/** @minItems 0 */
|
|
471
|
+
operationGroupIds?: string[];
|
|
472
|
+
}
|
|
459
473
|
export interface OperationExtraEntityDto {
|
|
460
474
|
/**
|
|
461
475
|
* @min 0
|
|
@@ -719,6 +733,7 @@ export interface StoragePlanEntityDto {
|
|
|
719
733
|
createdAt: string;
|
|
720
734
|
/** @format uuid */
|
|
721
735
|
id: string;
|
|
736
|
+
monthlyCyclePrice: boolean;
|
|
722
737
|
name: string;
|
|
723
738
|
/**
|
|
724
739
|
* @min 0
|
|
@@ -730,6 +745,11 @@ export interface StoragePlanEntityDto {
|
|
|
730
745
|
/** @format date-time */
|
|
731
746
|
updatedAt: string;
|
|
732
747
|
}
|
|
748
|
+
export interface StoragePlanEntityPaginatedDto {
|
|
749
|
+
items: StoragePlanEntityDto[];
|
|
750
|
+
links?: PaginationLinksDto;
|
|
751
|
+
meta: PaginationMetaDto;
|
|
752
|
+
}
|
|
733
753
|
export interface SyncOperationGroupWithSnapshotDto {
|
|
734
754
|
/** @minItems 0 */
|
|
735
755
|
extras?: UpdateOperationExtraDto[];
|
|
@@ -811,6 +831,12 @@ export interface UpdateOperationExtraTemplateDto {
|
|
|
811
831
|
/** @example 100 */
|
|
812
832
|
pricePerItem: number;
|
|
813
833
|
}
|
|
834
|
+
export interface UpdateStoragePlanDto {
|
|
835
|
+
monthlyCyclePrice?: boolean;
|
|
836
|
+
name?: string;
|
|
837
|
+
/** @example 100 */
|
|
838
|
+
price?: number;
|
|
839
|
+
}
|
|
814
840
|
export interface UpdateUserDto {
|
|
815
841
|
/** @example "user@example.com" */
|
|
816
842
|
email?: string;
|
|
@@ -1245,13 +1271,31 @@ export declare namespace Tenants {
|
|
|
1245
1271
|
type RequestHeaders = {};
|
|
1246
1272
|
type ResponseBody = void;
|
|
1247
1273
|
}
|
|
1274
|
+
/**
|
|
1275
|
+
* No description
|
|
1276
|
+
* @tags Tenant Storage Plans
|
|
1277
|
+
* @name CreateTenantStoragePlan
|
|
1278
|
+
* @request POST:/tenants/{tenantId}/storage-plans
|
|
1279
|
+
* @secure
|
|
1280
|
+
* @response `201` `StoragePlanEntityDto`
|
|
1281
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1282
|
+
*/
|
|
1283
|
+
namespace CreateTenantStoragePlan {
|
|
1284
|
+
type RequestParams = {
|
|
1285
|
+
tenantId: string;
|
|
1286
|
+
};
|
|
1287
|
+
type RequestQuery = {};
|
|
1288
|
+
type RequestBody = CreateStoragePlanDto;
|
|
1289
|
+
type RequestHeaders = {};
|
|
1290
|
+
type ResponseBody = StoragePlanEntityDto;
|
|
1291
|
+
}
|
|
1248
1292
|
/**
|
|
1249
1293
|
* No description
|
|
1250
1294
|
* @tags Tenant Users
|
|
1251
1295
|
* @name CreateTenantUser
|
|
1252
1296
|
* @request POST:/tenants/{tenantId}/users
|
|
1253
1297
|
* @secure
|
|
1254
|
-
* @response `
|
|
1298
|
+
* @response `201` `UserEntityDto`
|
|
1255
1299
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
1256
1300
|
*/
|
|
1257
1301
|
namespace CreateTenantUser {
|
|
@@ -1282,6 +1326,25 @@ export declare namespace Tenants {
|
|
|
1282
1326
|
type RequestHeaders = {};
|
|
1283
1327
|
type ResponseBody = AddressEntityDto;
|
|
1284
1328
|
}
|
|
1329
|
+
/**
|
|
1330
|
+
* No description
|
|
1331
|
+
* @tags Tenant Storage Plans
|
|
1332
|
+
* @name DeleteTenantStoragePlan
|
|
1333
|
+
* @request DELETE:/tenants/{tenantId}/storage-plans/{id}
|
|
1334
|
+
* @secure
|
|
1335
|
+
* @response `204` `void`
|
|
1336
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1337
|
+
*/
|
|
1338
|
+
namespace DeleteTenantStoragePlan {
|
|
1339
|
+
type RequestParams = {
|
|
1340
|
+
id: string;
|
|
1341
|
+
tenantId: string;
|
|
1342
|
+
};
|
|
1343
|
+
type RequestQuery = {};
|
|
1344
|
+
type RequestBody = never;
|
|
1345
|
+
type RequestHeaders = {};
|
|
1346
|
+
type ResponseBody = void;
|
|
1347
|
+
}
|
|
1285
1348
|
/**
|
|
1286
1349
|
* No description
|
|
1287
1350
|
* @tags Tenant Users
|
|
@@ -1340,6 +1403,24 @@ export declare namespace Tenants {
|
|
|
1340
1403
|
type RequestHeaders = {};
|
|
1341
1404
|
type ResponseBody = void;
|
|
1342
1405
|
}
|
|
1406
|
+
/**
|
|
1407
|
+
* No description
|
|
1408
|
+
* @tags Tenant Invoices Management
|
|
1409
|
+
* @name DispatchTenantInvoicesGeneration
|
|
1410
|
+
* @request PATCH:/tenants/{tenantId}/invoices
|
|
1411
|
+
* @secure
|
|
1412
|
+
* @response `204` `void`
|
|
1413
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
1414
|
+
*/
|
|
1415
|
+
namespace DispatchTenantInvoicesGeneration {
|
|
1416
|
+
type RequestParams = {
|
|
1417
|
+
tenantId: string;
|
|
1418
|
+
};
|
|
1419
|
+
type RequestQuery = {};
|
|
1420
|
+
type RequestBody = InvoicesDispatchDto;
|
|
1421
|
+
type RequestHeaders = {};
|
|
1422
|
+
type ResponseBody = void;
|
|
1423
|
+
}
|
|
1343
1424
|
/**
|
|
1344
1425
|
* No description
|
|
1345
1426
|
* @tags Tenant Users
|
|
@@ -1359,6 +1440,25 @@ export declare namespace Tenants {
|
|
|
1359
1440
|
type RequestHeaders = {};
|
|
1360
1441
|
type ResponseBody = void;
|
|
1361
1442
|
}
|
|
1443
|
+
/**
|
|
1444
|
+
* No description
|
|
1445
|
+
* @tags Tenant Storage Plans
|
|
1446
|
+
* @name GetTenantStoragePlan
|
|
1447
|
+
* @request GET:/tenants/{tenantId}/storage-plans/{id}
|
|
1448
|
+
* @secure
|
|
1449
|
+
* @response `200` `StoragePlanEntityDto`
|
|
1450
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1451
|
+
*/
|
|
1452
|
+
namespace GetTenantStoragePlan {
|
|
1453
|
+
type RequestParams = {
|
|
1454
|
+
id: string;
|
|
1455
|
+
tenantId: string;
|
|
1456
|
+
};
|
|
1457
|
+
type RequestQuery = {};
|
|
1458
|
+
type RequestBody = never;
|
|
1459
|
+
type RequestHeaders = {};
|
|
1460
|
+
type ResponseBody = StoragePlanEntityDto;
|
|
1461
|
+
}
|
|
1362
1462
|
/**
|
|
1363
1463
|
* No description
|
|
1364
1464
|
* @tags Tenant Users
|
|
@@ -1418,6 +1518,78 @@ export declare namespace Tenants {
|
|
|
1418
1518
|
type RequestHeaders = {};
|
|
1419
1519
|
type ResponseBody = FullOperationRequestEntityDto;
|
|
1420
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
|
+
}
|
|
1560
|
+
/**
|
|
1561
|
+
* No description
|
|
1562
|
+
* @tags Tenant Storage Plans
|
|
1563
|
+
* @name ListTenantStoragePlans
|
|
1564
|
+
* @request GET:/tenants/{tenantId}/storage-plans
|
|
1565
|
+
* @secure
|
|
1566
|
+
* @response `200` `StoragePlanEntityPaginatedDto`
|
|
1567
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1568
|
+
*/
|
|
1569
|
+
namespace ListTenantStoragePlans {
|
|
1570
|
+
type RequestParams = {
|
|
1571
|
+
tenantId: string;
|
|
1572
|
+
};
|
|
1573
|
+
type RequestQuery = {
|
|
1574
|
+
createdAt?: string;
|
|
1575
|
+
/**
|
|
1576
|
+
* @default 10
|
|
1577
|
+
* @example 10
|
|
1578
|
+
*/
|
|
1579
|
+
limit?: number;
|
|
1580
|
+
orderBy?: OrderByEnum;
|
|
1581
|
+
/**
|
|
1582
|
+
* @default 1
|
|
1583
|
+
* @example 1
|
|
1584
|
+
*/
|
|
1585
|
+
page?: number;
|
|
1586
|
+
search?: string;
|
|
1587
|
+
sortBy?: string[];
|
|
1588
|
+
};
|
|
1589
|
+
type RequestBody = never;
|
|
1590
|
+
type RequestHeaders = {};
|
|
1591
|
+
type ResponseBody = StoragePlanEntityPaginatedDto;
|
|
1592
|
+
}
|
|
1421
1593
|
/**
|
|
1422
1594
|
* No description
|
|
1423
1595
|
* @tags Tenant Users
|
|
@@ -1653,6 +1825,25 @@ export declare namespace Tenants {
|
|
|
1653
1825
|
type RequestHeaders = {};
|
|
1654
1826
|
type ResponseBody = void;
|
|
1655
1827
|
}
|
|
1828
|
+
/**
|
|
1829
|
+
* No description
|
|
1830
|
+
* @tags Tenant Storage Plans
|
|
1831
|
+
* @name UpdateTenantStoragePlan
|
|
1832
|
+
* @request PATCH:/tenants/{tenantId}/storage-plans/{id}
|
|
1833
|
+
* @secure
|
|
1834
|
+
* @response `200` `StoragePlanEntityDto`
|
|
1835
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1836
|
+
*/
|
|
1837
|
+
namespace UpdateTenantStoragePlan {
|
|
1838
|
+
type RequestParams = {
|
|
1839
|
+
id: string;
|
|
1840
|
+
tenantId: string;
|
|
1841
|
+
};
|
|
1842
|
+
type RequestQuery = {};
|
|
1843
|
+
type RequestBody = UpdateStoragePlanDto;
|
|
1844
|
+
type RequestHeaders = {};
|
|
1845
|
+
type ResponseBody = StoragePlanEntityDto;
|
|
1846
|
+
}
|
|
1656
1847
|
/**
|
|
1657
1848
|
* No description
|
|
1658
1849
|
* @tags Tenant Users
|
|
@@ -1712,68 +1903,6 @@ export declare namespace Tenants {
|
|
|
1712
1903
|
type ResponseBody = AddressEntityDto;
|
|
1713
1904
|
}
|
|
1714
1905
|
}
|
|
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
|
-
}
|
|
1777
1906
|
export declare namespace Admin {
|
|
1778
1907
|
/**
|
|
1779
1908
|
* No description
|
|
@@ -3712,6 +3841,68 @@ export declare namespace Admin {
|
|
|
3712
3841
|
type ResponseBody = void;
|
|
3713
3842
|
}
|
|
3714
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
|
+
}
|
|
3715
3906
|
import type { AxiosInstance, AxiosRequestConfig, ResponseType } from "axios";
|
|
3716
3907
|
export type QueryParamsType = Record<string | number, any>;
|
|
3717
3908
|
export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
|
|
@@ -3782,6 +3973,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3782
3973
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3783
3974
|
*/
|
|
3784
3975
|
cancelUserOperationRequest: (tenantId: string, userId: string, requestId: string, data: ChangeOperationRequestWithReasonDto, params?: RequestParams) => Promise<void>;
|
|
3976
|
+
/**
|
|
3977
|
+
* No description
|
|
3978
|
+
*
|
|
3979
|
+
* @tags Tenant Storage Plans
|
|
3980
|
+
* @name CreateTenantStoragePlan
|
|
3981
|
+
* @request POST:/tenants/{tenantId}/storage-plans
|
|
3982
|
+
* @secure
|
|
3983
|
+
* @response `201` `StoragePlanEntityDto`
|
|
3984
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
3985
|
+
*/
|
|
3986
|
+
createTenantStoragePlan: (tenantId: string, data: CreateStoragePlanDto, params?: RequestParams) => Promise<StoragePlanEntityDto>;
|
|
3785
3987
|
/**
|
|
3786
3988
|
* No description
|
|
3787
3989
|
*
|
|
@@ -3789,7 +3991,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3789
3991
|
* @name CreateTenantUser
|
|
3790
3992
|
* @request POST:/tenants/{tenantId}/users
|
|
3791
3993
|
* @secure
|
|
3792
|
-
* @response `
|
|
3994
|
+
* @response `201` `UserEntityDto`
|
|
3793
3995
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
3794
3996
|
*/
|
|
3795
3997
|
createTenantUser: (tenantId: string, data: CreateUserDto, params?: RequestParams) => Promise<UserEntityDto>;
|
|
@@ -3804,6 +4006,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3804
4006
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3805
4007
|
*/
|
|
3806
4008
|
createUserAddress: (tenantId: string, userId: string, data: CreateAddressDto, params?: RequestParams) => Promise<AddressEntityDto>;
|
|
4009
|
+
/**
|
|
4010
|
+
* No description
|
|
4011
|
+
*
|
|
4012
|
+
* @tags Tenant Storage Plans
|
|
4013
|
+
* @name DeleteTenantStoragePlan
|
|
4014
|
+
* @request DELETE:/tenants/{tenantId}/storage-plans/{id}
|
|
4015
|
+
* @secure
|
|
4016
|
+
* @response `204` `void`
|
|
4017
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
4018
|
+
*/
|
|
4019
|
+
deleteTenantStoragePlan: (tenantId: string, id: string, params?: RequestParams) => Promise<void>;
|
|
3807
4020
|
/**
|
|
3808
4021
|
* No description
|
|
3809
4022
|
*
|
|
@@ -3837,6 +4050,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3837
4050
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
3838
4051
|
*/
|
|
3839
4052
|
disableTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<void>;
|
|
4053
|
+
/**
|
|
4054
|
+
* No description
|
|
4055
|
+
*
|
|
4056
|
+
* @tags Tenant Invoices Management
|
|
4057
|
+
* @name DispatchTenantInvoicesGeneration
|
|
4058
|
+
* @request PATCH:/tenants/{tenantId}/invoices
|
|
4059
|
+
* @secure
|
|
4060
|
+
* @response `204` `void`
|
|
4061
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
4062
|
+
*/
|
|
4063
|
+
dispatchTenantInvoicesGeneration: (tenantId: string, data: InvoicesDispatchDto, params?: RequestParams) => Promise<void>;
|
|
3840
4064
|
/**
|
|
3841
4065
|
* No description
|
|
3842
4066
|
*
|
|
@@ -3848,6 +4072,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3848
4072
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
3849
4073
|
*/
|
|
3850
4074
|
enableTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<void>;
|
|
4075
|
+
/**
|
|
4076
|
+
* No description
|
|
4077
|
+
*
|
|
4078
|
+
* @tags Tenant Storage Plans
|
|
4079
|
+
* @name GetTenantStoragePlan
|
|
4080
|
+
* @request GET:/tenants/{tenantId}/storage-plans/{id}
|
|
4081
|
+
* @secure
|
|
4082
|
+
* @response `200` `StoragePlanEntityDto`
|
|
4083
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
4084
|
+
*/
|
|
4085
|
+
getTenantStoragePlan: (tenantId: string, id: string, params?: RequestParams) => Promise<StoragePlanEntityDto>;
|
|
3851
4086
|
/**
|
|
3852
4087
|
* No description
|
|
3853
4088
|
*
|
|
@@ -3881,6 +4116,64 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3881
4116
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3882
4117
|
*/
|
|
3883
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>;
|
|
4151
|
+
/**
|
|
4152
|
+
* No description
|
|
4153
|
+
*
|
|
4154
|
+
* @tags Tenant Storage Plans
|
|
4155
|
+
* @name ListTenantStoragePlans
|
|
4156
|
+
* @request GET:/tenants/{tenantId}/storage-plans
|
|
4157
|
+
* @secure
|
|
4158
|
+
* @response `200` `StoragePlanEntityPaginatedDto`
|
|
4159
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
4160
|
+
*/
|
|
4161
|
+
listTenantStoragePlans: (tenantId: string, query?: {
|
|
4162
|
+
createdAt?: string;
|
|
4163
|
+
/**
|
|
4164
|
+
* @default 10
|
|
4165
|
+
* @example 10
|
|
4166
|
+
*/
|
|
4167
|
+
limit?: number;
|
|
4168
|
+
orderBy?: OrderByEnum;
|
|
4169
|
+
/**
|
|
4170
|
+
* @default 1
|
|
4171
|
+
* @example 1
|
|
4172
|
+
*/
|
|
4173
|
+
page?: number;
|
|
4174
|
+
search?: string;
|
|
4175
|
+
sortBy?: string[];
|
|
4176
|
+
}, params?: RequestParams) => Promise<StoragePlanEntityPaginatedDto>;
|
|
3884
4177
|
/**
|
|
3885
4178
|
* No description
|
|
3886
4179
|
*
|
|
@@ -4053,6 +4346,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4053
4346
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
4054
4347
|
*/
|
|
4055
4348
|
setUserNotificationsAsRead: (tenantId: string, userId: string, data: SetNotificationsReadDto, params?: RequestParams) => Promise<void>;
|
|
4349
|
+
/**
|
|
4350
|
+
* No description
|
|
4351
|
+
*
|
|
4352
|
+
* @tags Tenant Storage Plans
|
|
4353
|
+
* @name UpdateTenantStoragePlan
|
|
4354
|
+
* @request PATCH:/tenants/{tenantId}/storage-plans/{id}
|
|
4355
|
+
* @secure
|
|
4356
|
+
* @response `200` `StoragePlanEntityDto`
|
|
4357
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
4358
|
+
*/
|
|
4359
|
+
updateTenantStoragePlan: (tenantId: string, id: string, data: UpdateStoragePlanDto, params?: RequestParams) => Promise<StoragePlanEntityDto>;
|
|
4056
4360
|
/**
|
|
4057
4361
|
* No description
|
|
4058
4362
|
*
|
|
@@ -4087,48 +4391,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4087
4391
|
*/
|
|
4088
4392
|
updateUserAddress: (tenantId: string, userId: string, addressId: string, data: UpdateAddressDto, params?: RequestParams) => Promise<AddressEntityDto>;
|
|
4089
4393
|
};
|
|
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
|
-
};
|
|
4132
4394
|
admin: {
|
|
4133
4395
|
/**
|
|
4134
4396
|
* No description
|
|
@@ -5386,4 +5648,46 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5386
5648
|
*/
|
|
5387
5649
|
updateTenantWithdrawRequestDeliverState: (tenantId: string, requestId: string, data: UpdateWithdrawDeliverStateDto, params?: RequestParams) => Promise<void>;
|
|
5388
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
|
+
};
|
|
5389
5693
|
}
|