@thelllabs/winehaus-sdk 0.0.22 → 0.0.24
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 +140 -56
- package/dist/esm/api/api.js +140 -56
- package/dist/types/api/api.d.ts +363 -107
- package/dist/umd/index.ts +140 -56
- package/package.json +1 -1
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 */
|
|
@@ -260,6 +263,12 @@ export interface CreateOperationGroupDto {
|
|
|
260
263
|
/** @example "processed" */
|
|
261
264
|
status?: CreateOnlyOperationGroupStatusEnum;
|
|
262
265
|
}
|
|
266
|
+
export interface CreateStoragePlanDto {
|
|
267
|
+
monthlyCyclePrice: boolean;
|
|
268
|
+
name: string;
|
|
269
|
+
/** @example 100 */
|
|
270
|
+
price: number;
|
|
271
|
+
}
|
|
263
272
|
export interface CreateUserDto {
|
|
264
273
|
email: string;
|
|
265
274
|
firstName: string;
|
|
@@ -453,6 +462,14 @@ export interface HttpExceptionDto {
|
|
|
453
462
|
/** @example "2022-07-25T17:24:07.042Z" */
|
|
454
463
|
timestamp: string;
|
|
455
464
|
}
|
|
465
|
+
export interface InvoicesDispatchDto {
|
|
466
|
+
/** @minItems 1 */
|
|
467
|
+
caseIds?: string[];
|
|
468
|
+
/** @minItems 1 */
|
|
469
|
+
customerIds?: string[];
|
|
470
|
+
/** @minItems 1 */
|
|
471
|
+
operationGroupIds?: string[];
|
|
472
|
+
}
|
|
456
473
|
export interface OperationExtraEntityDto {
|
|
457
474
|
/**
|
|
458
475
|
* @min 0
|
|
@@ -711,6 +728,28 @@ export interface SigninResponseDto {
|
|
|
711
728
|
token: string;
|
|
712
729
|
user: UserEntityDto;
|
|
713
730
|
}
|
|
731
|
+
export interface StoragePlanEntityDto {
|
|
732
|
+
/** @format date-time */
|
|
733
|
+
createdAt: string;
|
|
734
|
+
/** @format uuid */
|
|
735
|
+
id: string;
|
|
736
|
+
monthlyCyclePrice: boolean;
|
|
737
|
+
name: string;
|
|
738
|
+
/**
|
|
739
|
+
* @min 0
|
|
740
|
+
* @example 100
|
|
741
|
+
*/
|
|
742
|
+
price: number;
|
|
743
|
+
/** @format uuid */
|
|
744
|
+
tenantId?: string | null;
|
|
745
|
+
/** @format date-time */
|
|
746
|
+
updatedAt: string;
|
|
747
|
+
}
|
|
748
|
+
export interface StoragePlanEntityPaginatedDto {
|
|
749
|
+
items: StoragePlanEntityDto[];
|
|
750
|
+
links?: PaginationLinksDto;
|
|
751
|
+
meta: PaginationMetaDto;
|
|
752
|
+
}
|
|
714
753
|
export interface SyncOperationGroupWithSnapshotDto {
|
|
715
754
|
/** @minItems 0 */
|
|
716
755
|
extras?: UpdateOperationExtraDto[];
|
|
@@ -792,6 +831,12 @@ export interface UpdateOperationExtraTemplateDto {
|
|
|
792
831
|
/** @example 100 */
|
|
793
832
|
pricePerItem: number;
|
|
794
833
|
}
|
|
834
|
+
export interface UpdateStoragePlanDto {
|
|
835
|
+
monthlyCyclePrice?: boolean;
|
|
836
|
+
name?: string;
|
|
837
|
+
/** @example 100 */
|
|
838
|
+
price?: number;
|
|
839
|
+
}
|
|
795
840
|
export interface UpdateUserDto {
|
|
796
841
|
/** @example "user@example.com" */
|
|
797
842
|
email?: string;
|
|
@@ -1205,68 +1250,6 @@ export interface WithdrawWineInventoryItemDto {
|
|
|
1205
1250
|
/** @format uuid */
|
|
1206
1251
|
wineId: string;
|
|
1207
1252
|
}
|
|
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
1253
|
export declare namespace Tenants {
|
|
1271
1254
|
/**
|
|
1272
1255
|
* No description
|
|
@@ -1288,13 +1271,31 @@ export declare namespace Tenants {
|
|
|
1288
1271
|
type RequestHeaders = {};
|
|
1289
1272
|
type ResponseBody = void;
|
|
1290
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
|
+
}
|
|
1291
1292
|
/**
|
|
1292
1293
|
* No description
|
|
1293
1294
|
* @tags Tenant Users
|
|
1294
1295
|
* @name CreateTenantUser
|
|
1295
1296
|
* @request POST:/tenants/{tenantId}/users
|
|
1296
1297
|
* @secure
|
|
1297
|
-
* @response `
|
|
1298
|
+
* @response `201` `UserEntityDto`
|
|
1298
1299
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
1299
1300
|
*/
|
|
1300
1301
|
namespace CreateTenantUser {
|
|
@@ -1325,6 +1326,25 @@ export declare namespace Tenants {
|
|
|
1325
1326
|
type RequestHeaders = {};
|
|
1326
1327
|
type ResponseBody = AddressEntityDto;
|
|
1327
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
|
+
}
|
|
1328
1348
|
/**
|
|
1329
1349
|
* No description
|
|
1330
1350
|
* @tags Tenant Users
|
|
@@ -1383,6 +1403,24 @@ export declare namespace Tenants {
|
|
|
1383
1403
|
type RequestHeaders = {};
|
|
1384
1404
|
type ResponseBody = void;
|
|
1385
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
|
+
}
|
|
1386
1424
|
/**
|
|
1387
1425
|
* No description
|
|
1388
1426
|
* @tags Tenant Users
|
|
@@ -1402,6 +1440,25 @@ export declare namespace Tenants {
|
|
|
1402
1440
|
type RequestHeaders = {};
|
|
1403
1441
|
type ResponseBody = void;
|
|
1404
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
|
+
}
|
|
1405
1462
|
/**
|
|
1406
1463
|
* No description
|
|
1407
1464
|
* @tags Tenant Users
|
|
@@ -1461,6 +1518,39 @@ export declare namespace Tenants {
|
|
|
1461
1518
|
type RequestHeaders = {};
|
|
1462
1519
|
type ResponseBody = FullOperationRequestEntityDto;
|
|
1463
1520
|
}
|
|
1521
|
+
/**
|
|
1522
|
+
* No description
|
|
1523
|
+
* @tags Tenant Storage Plans
|
|
1524
|
+
* @name ListTenantStoragePlans
|
|
1525
|
+
* @request GET:/tenants/{tenantId}/storage-plans
|
|
1526
|
+
* @secure
|
|
1527
|
+
* @response `200` `StoragePlanEntityPaginatedDto`
|
|
1528
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1529
|
+
*/
|
|
1530
|
+
namespace ListTenantStoragePlans {
|
|
1531
|
+
type RequestParams = {
|
|
1532
|
+
tenantId: string;
|
|
1533
|
+
};
|
|
1534
|
+
type RequestQuery = {
|
|
1535
|
+
createdAt?: string;
|
|
1536
|
+
/**
|
|
1537
|
+
* @default 10
|
|
1538
|
+
* @example 10
|
|
1539
|
+
*/
|
|
1540
|
+
limit?: number;
|
|
1541
|
+
orderBy?: OrderByEnum;
|
|
1542
|
+
/**
|
|
1543
|
+
* @default 1
|
|
1544
|
+
* @example 1
|
|
1545
|
+
*/
|
|
1546
|
+
page?: number;
|
|
1547
|
+
search?: string;
|
|
1548
|
+
sortBy?: string[];
|
|
1549
|
+
};
|
|
1550
|
+
type RequestBody = never;
|
|
1551
|
+
type RequestHeaders = {};
|
|
1552
|
+
type ResponseBody = StoragePlanEntityPaginatedDto;
|
|
1553
|
+
}
|
|
1464
1554
|
/**
|
|
1465
1555
|
* No description
|
|
1466
1556
|
* @tags Tenant Users
|
|
@@ -1548,6 +1638,8 @@ export declare namespace Tenants {
|
|
|
1548
1638
|
amount?: string;
|
|
1549
1639
|
bottleFormatIds?: string[];
|
|
1550
1640
|
bottleVintageIds?: string[];
|
|
1641
|
+
/** @format uuid */
|
|
1642
|
+
caseId?: string;
|
|
1551
1643
|
/**
|
|
1552
1644
|
* @default 10
|
|
1553
1645
|
* @example 10
|
|
@@ -1694,6 +1786,25 @@ export declare namespace Tenants {
|
|
|
1694
1786
|
type RequestHeaders = {};
|
|
1695
1787
|
type ResponseBody = void;
|
|
1696
1788
|
}
|
|
1789
|
+
/**
|
|
1790
|
+
* No description
|
|
1791
|
+
* @tags Tenant Storage Plans
|
|
1792
|
+
* @name UpdateTenantStoragePlan
|
|
1793
|
+
* @request PATCH:/tenants/{tenantId}/storage-plans/{id}
|
|
1794
|
+
* @secure
|
|
1795
|
+
* @response `200` `StoragePlanEntityDto`
|
|
1796
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1797
|
+
*/
|
|
1798
|
+
namespace UpdateTenantStoragePlan {
|
|
1799
|
+
type RequestParams = {
|
|
1800
|
+
id: string;
|
|
1801
|
+
tenantId: string;
|
|
1802
|
+
};
|
|
1803
|
+
type RequestQuery = {};
|
|
1804
|
+
type RequestBody = UpdateStoragePlanDto;
|
|
1805
|
+
type RequestHeaders = {};
|
|
1806
|
+
type ResponseBody = StoragePlanEntityDto;
|
|
1807
|
+
}
|
|
1697
1808
|
/**
|
|
1698
1809
|
* No description
|
|
1699
1810
|
* @tags Tenant Users
|
|
@@ -1753,6 +1864,68 @@ export declare namespace Tenants {
|
|
|
1753
1864
|
type ResponseBody = AddressEntityDto;
|
|
1754
1865
|
}
|
|
1755
1866
|
}
|
|
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
|
+
}
|
|
1756
1929
|
export declare namespace Admin {
|
|
1757
1930
|
/**
|
|
1758
1931
|
* No description
|
|
@@ -3735,7 +3908,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
3735
3908
|
}
|
|
3736
3909
|
/**
|
|
3737
3910
|
* @title winehaus-api
|
|
3738
|
-
* @version 0.0.
|
|
3911
|
+
* @version 0.0.3
|
|
3739
3912
|
* @baseUrl http://localhost:3000
|
|
3740
3913
|
* @contact
|
|
3741
3914
|
*/
|
|
@@ -3749,48 +3922,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3749
3922
|
* @response `200` `void`
|
|
3750
3923
|
*/
|
|
3751
3924
|
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
3925
|
tenants: {
|
|
3795
3926
|
/**
|
|
3796
3927
|
* No description
|
|
@@ -3803,6 +3934,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3803
3934
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3804
3935
|
*/
|
|
3805
3936
|
cancelUserOperationRequest: (tenantId: string, userId: string, requestId: string, data: ChangeOperationRequestWithReasonDto, params?: RequestParams) => Promise<void>;
|
|
3937
|
+
/**
|
|
3938
|
+
* No description
|
|
3939
|
+
*
|
|
3940
|
+
* @tags Tenant Storage Plans
|
|
3941
|
+
* @name CreateTenantStoragePlan
|
|
3942
|
+
* @request POST:/tenants/{tenantId}/storage-plans
|
|
3943
|
+
* @secure
|
|
3944
|
+
* @response `201` `StoragePlanEntityDto`
|
|
3945
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
3946
|
+
*/
|
|
3947
|
+
createTenantStoragePlan: (tenantId: string, data: CreateStoragePlanDto, params?: RequestParams) => Promise<StoragePlanEntityDto>;
|
|
3806
3948
|
/**
|
|
3807
3949
|
* No description
|
|
3808
3950
|
*
|
|
@@ -3810,7 +3952,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3810
3952
|
* @name CreateTenantUser
|
|
3811
3953
|
* @request POST:/tenants/{tenantId}/users
|
|
3812
3954
|
* @secure
|
|
3813
|
-
* @response `
|
|
3955
|
+
* @response `201` `UserEntityDto`
|
|
3814
3956
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
3815
3957
|
*/
|
|
3816
3958
|
createTenantUser: (tenantId: string, data: CreateUserDto, params?: RequestParams) => Promise<UserEntityDto>;
|
|
@@ -3825,6 +3967,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3825
3967
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3826
3968
|
*/
|
|
3827
3969
|
createUserAddress: (tenantId: string, userId: string, data: CreateAddressDto, params?: RequestParams) => Promise<AddressEntityDto>;
|
|
3970
|
+
/**
|
|
3971
|
+
* No description
|
|
3972
|
+
*
|
|
3973
|
+
* @tags Tenant Storage Plans
|
|
3974
|
+
* @name DeleteTenantStoragePlan
|
|
3975
|
+
* @request DELETE:/tenants/{tenantId}/storage-plans/{id}
|
|
3976
|
+
* @secure
|
|
3977
|
+
* @response `204` `void`
|
|
3978
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
3979
|
+
*/
|
|
3980
|
+
deleteTenantStoragePlan: (tenantId: string, id: string, params?: RequestParams) => Promise<void>;
|
|
3828
3981
|
/**
|
|
3829
3982
|
* No description
|
|
3830
3983
|
*
|
|
@@ -3858,6 +4011,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3858
4011
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
3859
4012
|
*/
|
|
3860
4013
|
disableTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<void>;
|
|
4014
|
+
/**
|
|
4015
|
+
* No description
|
|
4016
|
+
*
|
|
4017
|
+
* @tags Tenant Invoices Management
|
|
4018
|
+
* @name DispatchTenantInvoicesGeneration
|
|
4019
|
+
* @request PATCH:/tenants/{tenantId}/invoices
|
|
4020
|
+
* @secure
|
|
4021
|
+
* @response `204` `void`
|
|
4022
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
4023
|
+
*/
|
|
4024
|
+
dispatchTenantInvoicesGeneration: (tenantId: string, data: InvoicesDispatchDto, params?: RequestParams) => Promise<void>;
|
|
3861
4025
|
/**
|
|
3862
4026
|
* No description
|
|
3863
4027
|
*
|
|
@@ -3869,6 +4033,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3869
4033
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
3870
4034
|
*/
|
|
3871
4035
|
enableTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<void>;
|
|
4036
|
+
/**
|
|
4037
|
+
* No description
|
|
4038
|
+
*
|
|
4039
|
+
* @tags Tenant Storage Plans
|
|
4040
|
+
* @name GetTenantStoragePlan
|
|
4041
|
+
* @request GET:/tenants/{tenantId}/storage-plans/{id}
|
|
4042
|
+
* @secure
|
|
4043
|
+
* @response `200` `StoragePlanEntityDto`
|
|
4044
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
4045
|
+
*/
|
|
4046
|
+
getTenantStoragePlan: (tenantId: string, id: string, params?: RequestParams) => Promise<StoragePlanEntityDto>;
|
|
3872
4047
|
/**
|
|
3873
4048
|
* No description
|
|
3874
4049
|
*
|
|
@@ -3902,6 +4077,32 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3902
4077
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3903
4078
|
*/
|
|
3904
4079
|
getUserOperationRequestById: (tenantId: string, userId: string, requestId: string, params?: RequestParams) => Promise<FullOperationRequestEntityDto>;
|
|
4080
|
+
/**
|
|
4081
|
+
* No description
|
|
4082
|
+
*
|
|
4083
|
+
* @tags Tenant Storage Plans
|
|
4084
|
+
* @name ListTenantStoragePlans
|
|
4085
|
+
* @request GET:/tenants/{tenantId}/storage-plans
|
|
4086
|
+
* @secure
|
|
4087
|
+
* @response `200` `StoragePlanEntityPaginatedDto`
|
|
4088
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
4089
|
+
*/
|
|
4090
|
+
listTenantStoragePlans: (tenantId: string, query?: {
|
|
4091
|
+
createdAt?: string;
|
|
4092
|
+
/**
|
|
4093
|
+
* @default 10
|
|
4094
|
+
* @example 10
|
|
4095
|
+
*/
|
|
4096
|
+
limit?: number;
|
|
4097
|
+
orderBy?: OrderByEnum;
|
|
4098
|
+
/**
|
|
4099
|
+
* @default 1
|
|
4100
|
+
* @example 1
|
|
4101
|
+
*/
|
|
4102
|
+
page?: number;
|
|
4103
|
+
search?: string;
|
|
4104
|
+
sortBy?: string[];
|
|
4105
|
+
}, params?: RequestParams) => Promise<StoragePlanEntityPaginatedDto>;
|
|
3905
4106
|
/**
|
|
3906
4107
|
* No description
|
|
3907
4108
|
*
|
|
@@ -3970,6 +4171,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3970
4171
|
amount?: string;
|
|
3971
4172
|
bottleFormatIds?: string[];
|
|
3972
4173
|
bottleVintageIds?: string[];
|
|
4174
|
+
/** @format uuid */
|
|
4175
|
+
caseId?: string;
|
|
3973
4176
|
/**
|
|
3974
4177
|
* @default 10
|
|
3975
4178
|
* @example 10
|
|
@@ -4072,6 +4275,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4072
4275
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
4073
4276
|
*/
|
|
4074
4277
|
setUserNotificationsAsRead: (tenantId: string, userId: string, data: SetNotificationsReadDto, params?: RequestParams) => Promise<void>;
|
|
4278
|
+
/**
|
|
4279
|
+
* No description
|
|
4280
|
+
*
|
|
4281
|
+
* @tags Tenant Storage Plans
|
|
4282
|
+
* @name UpdateTenantStoragePlan
|
|
4283
|
+
* @request PATCH:/tenants/{tenantId}/storage-plans/{id}
|
|
4284
|
+
* @secure
|
|
4285
|
+
* @response `200` `StoragePlanEntityDto`
|
|
4286
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
4287
|
+
*/
|
|
4288
|
+
updateTenantStoragePlan: (tenantId: string, id: string, data: UpdateStoragePlanDto, params?: RequestParams) => Promise<StoragePlanEntityDto>;
|
|
4075
4289
|
/**
|
|
4076
4290
|
* No description
|
|
4077
4291
|
*
|
|
@@ -4106,6 +4320,48 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4106
4320
|
*/
|
|
4107
4321
|
updateUserAddress: (tenantId: string, userId: string, addressId: string, data: UpdateAddressDto, params?: RequestParams) => Promise<AddressEntityDto>;
|
|
4108
4322
|
};
|
|
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
|
+
};
|
|
4109
4365
|
admin: {
|
|
4110
4366
|
/**
|
|
4111
4367
|
* No description
|