@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/cjs/api/api.js
CHANGED
|
@@ -314,6 +314,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
314
314
|
if (params === void 0) { params = {}; }
|
|
315
315
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/requests/").concat(requestId, "/cancel"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
|
|
316
316
|
},
|
|
317
|
+
/**
|
|
318
|
+
* No description
|
|
319
|
+
*
|
|
320
|
+
* @tags Tenant Storage Plans
|
|
321
|
+
* @name CreateTenantStoragePlan
|
|
322
|
+
* @request POST:/tenants/{tenantId}/storage-plans
|
|
323
|
+
* @secure
|
|
324
|
+
* @response `201` `StoragePlanEntityDto`
|
|
325
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
326
|
+
*/
|
|
327
|
+
createTenantStoragePlan: function (tenantId, data, params) {
|
|
328
|
+
if (params === void 0) { params = {}; }
|
|
329
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
330
|
+
},
|
|
317
331
|
/**
|
|
318
332
|
* No description
|
|
319
333
|
*
|
|
@@ -321,7 +335,7 @@ var Api = /** @class */ (function (_super) {
|
|
|
321
335
|
* @name CreateTenantUser
|
|
322
336
|
* @request POST:/tenants/{tenantId}/users
|
|
323
337
|
* @secure
|
|
324
|
-
* @response `
|
|
338
|
+
* @response `201` `UserEntityDto`
|
|
325
339
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
326
340
|
*/
|
|
327
341
|
createTenantUser: function (tenantId, data, params) {
|
|
@@ -342,6 +356,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
342
356
|
if (params === void 0) { params = {}; }
|
|
343
357
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
344
358
|
},
|
|
359
|
+
/**
|
|
360
|
+
* No description
|
|
361
|
+
*
|
|
362
|
+
* @tags Tenant Storage Plans
|
|
363
|
+
* @name DeleteTenantStoragePlan
|
|
364
|
+
* @request DELETE:/tenants/{tenantId}/storage-plans/{id}
|
|
365
|
+
* @secure
|
|
366
|
+
* @response `204` `void`
|
|
367
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
368
|
+
*/
|
|
369
|
+
deleteTenantStoragePlan: function (tenantId, id, params) {
|
|
370
|
+
if (params === void 0) { params = {}; }
|
|
371
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans/").concat(id), method: "DELETE", secure: true }, params));
|
|
372
|
+
},
|
|
345
373
|
/**
|
|
346
374
|
* No description
|
|
347
375
|
*
|
|
@@ -384,6 +412,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
384
412
|
if (params === void 0) { params = {}; }
|
|
385
413
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/disable"), method: "PATCH", secure: true }, params));
|
|
386
414
|
},
|
|
415
|
+
/**
|
|
416
|
+
* No description
|
|
417
|
+
*
|
|
418
|
+
* @tags Tenant Invoices Management
|
|
419
|
+
* @name DispatchTenantInvoicesGeneration
|
|
420
|
+
* @request PATCH:/tenants/{tenantId}/invoices
|
|
421
|
+
* @secure
|
|
422
|
+
* @response `204` `void`
|
|
423
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
424
|
+
*/
|
|
425
|
+
dispatchTenantInvoicesGeneration: function (tenantId, data, params) {
|
|
426
|
+
if (params === void 0) { params = {}; }
|
|
427
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/invoices"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
|
|
428
|
+
},
|
|
387
429
|
/**
|
|
388
430
|
* No description
|
|
389
431
|
*
|
|
@@ -398,6 +440,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
398
440
|
if (params === void 0) { params = {}; }
|
|
399
441
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
400
442
|
},
|
|
443
|
+
/**
|
|
444
|
+
* No description
|
|
445
|
+
*
|
|
446
|
+
* @tags Tenant Storage Plans
|
|
447
|
+
* @name GetTenantStoragePlan
|
|
448
|
+
* @request GET:/tenants/{tenantId}/storage-plans/{id}
|
|
449
|
+
* @secure
|
|
450
|
+
* @response `200` `StoragePlanEntityDto`
|
|
451
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
452
|
+
*/
|
|
453
|
+
getTenantStoragePlan: function (tenantId, id, params) {
|
|
454
|
+
if (params === void 0) { params = {}; }
|
|
455
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans/").concat(id), method: "GET", secure: true, format: "json" }, params));
|
|
456
|
+
},
|
|
401
457
|
/**
|
|
402
458
|
* No description
|
|
403
459
|
*
|
|
@@ -440,6 +496,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
440
496
|
if (params === void 0) { params = {}; }
|
|
441
497
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
|
|
442
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
|
+
},
|
|
513
|
+
/**
|
|
514
|
+
* No description
|
|
515
|
+
*
|
|
516
|
+
* @tags Tenant Storage Plans
|
|
517
|
+
* @name ListTenantStoragePlans
|
|
518
|
+
* @request GET:/tenants/{tenantId}/storage-plans
|
|
519
|
+
* @secure
|
|
520
|
+
* @response `200` `StoragePlanEntityPaginatedDto`
|
|
521
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
522
|
+
*/
|
|
523
|
+
listTenantStoragePlans: function (tenantId, query, params) {
|
|
524
|
+
if (params === void 0) { params = {}; }
|
|
525
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
526
|
+
},
|
|
443
527
|
/**
|
|
444
528
|
* No description
|
|
445
529
|
*
|
|
@@ -552,6 +636,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
552
636
|
if (params === void 0) { params = {}; }
|
|
553
637
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/notifications/batch-set-read"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
|
|
554
638
|
},
|
|
639
|
+
/**
|
|
640
|
+
* No description
|
|
641
|
+
*
|
|
642
|
+
* @tags Tenant Storage Plans
|
|
643
|
+
* @name UpdateTenantStoragePlan
|
|
644
|
+
* @request PATCH:/tenants/{tenantId}/storage-plans/{id}
|
|
645
|
+
* @secure
|
|
646
|
+
* @response `200` `StoragePlanEntityDto`
|
|
647
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
648
|
+
*/
|
|
649
|
+
updateTenantStoragePlan: function (tenantId, id, data, params) {
|
|
650
|
+
if (params === void 0) { params = {}; }
|
|
651
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans/").concat(id), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
652
|
+
},
|
|
555
653
|
/**
|
|
556
654
|
* No description
|
|
557
655
|
*
|
|
@@ -595,60 +693,6 @@ var Api = /** @class */ (function (_super) {
|
|
|
595
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));
|
|
596
694
|
},
|
|
597
695
|
};
|
|
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
696
|
_this.admin = {
|
|
653
697
|
/**
|
|
654
698
|
* No description
|
|
@@ -1897,6 +1941,60 @@ var Api = /** @class */ (function (_super) {
|
|
|
1897
1941
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/withdraw-deliver-state"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
|
|
1898
1942
|
},
|
|
1899
1943
|
};
|
|
1944
|
+
_this.auth = {
|
|
1945
|
+
/**
|
|
1946
|
+
* No description
|
|
1947
|
+
*
|
|
1948
|
+
* @tags Authentication
|
|
1949
|
+
* @name Logout
|
|
1950
|
+
* @request POST:/auth/logout
|
|
1951
|
+
* @secure
|
|
1952
|
+
* @response `204` `void`
|
|
1953
|
+
*/
|
|
1954
|
+
logout: function (params) {
|
|
1955
|
+
if (params === void 0) { params = {}; }
|
|
1956
|
+
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
1957
|
+
},
|
|
1958
|
+
/**
|
|
1959
|
+
* No description
|
|
1960
|
+
*
|
|
1961
|
+
* @tags Authentication
|
|
1962
|
+
* @name RequestPasswordReset
|
|
1963
|
+
* @request POST:/auth/request-password-reset
|
|
1964
|
+
* @secure
|
|
1965
|
+
* @response `204` `void`
|
|
1966
|
+
*/
|
|
1967
|
+
requestPasswordReset: function (data, params) {
|
|
1968
|
+
if (params === void 0) { params = {}; }
|
|
1969
|
+
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
1970
|
+
},
|
|
1971
|
+
/**
|
|
1972
|
+
* No description
|
|
1973
|
+
*
|
|
1974
|
+
* @tags Authentication
|
|
1975
|
+
* @name ResetPassword
|
|
1976
|
+
* @request PATCH:/auth/reset-password
|
|
1977
|
+
* @secure
|
|
1978
|
+
* @response `200` `SigninResponseDto`
|
|
1979
|
+
*/
|
|
1980
|
+
resetPassword: function (data, params) {
|
|
1981
|
+
if (params === void 0) { params = {}; }
|
|
1982
|
+
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
1983
|
+
},
|
|
1984
|
+
/**
|
|
1985
|
+
* No description
|
|
1986
|
+
*
|
|
1987
|
+
* @tags Authentication
|
|
1988
|
+
* @name SignIn
|
|
1989
|
+
* @request POST:/auth/signin
|
|
1990
|
+
* @secure
|
|
1991
|
+
* @response `200` `SigninResponseDto`
|
|
1992
|
+
*/
|
|
1993
|
+
signIn: function (data, params) {
|
|
1994
|
+
if (params === void 0) { params = {}; }
|
|
1995
|
+
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
1996
|
+
},
|
|
1997
|
+
};
|
|
1900
1998
|
return _this;
|
|
1901
1999
|
}
|
|
1902
2000
|
return Api;
|
package/dist/esm/api/api.js
CHANGED
|
@@ -308,6 +308,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
308
308
|
if (params === void 0) { params = {}; }
|
|
309
309
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/requests/").concat(requestId, "/cancel"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
|
|
310
310
|
},
|
|
311
|
+
/**
|
|
312
|
+
* No description
|
|
313
|
+
*
|
|
314
|
+
* @tags Tenant Storage Plans
|
|
315
|
+
* @name CreateTenantStoragePlan
|
|
316
|
+
* @request POST:/tenants/{tenantId}/storage-plans
|
|
317
|
+
* @secure
|
|
318
|
+
* @response `201` `StoragePlanEntityDto`
|
|
319
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
320
|
+
*/
|
|
321
|
+
createTenantStoragePlan: function (tenantId, data, params) {
|
|
322
|
+
if (params === void 0) { params = {}; }
|
|
323
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
324
|
+
},
|
|
311
325
|
/**
|
|
312
326
|
* No description
|
|
313
327
|
*
|
|
@@ -315,7 +329,7 @@ var Api = /** @class */ (function (_super) {
|
|
|
315
329
|
* @name CreateTenantUser
|
|
316
330
|
* @request POST:/tenants/{tenantId}/users
|
|
317
331
|
* @secure
|
|
318
|
-
* @response `
|
|
332
|
+
* @response `201` `UserEntityDto`
|
|
319
333
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
320
334
|
*/
|
|
321
335
|
createTenantUser: function (tenantId, data, params) {
|
|
@@ -336,6 +350,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
336
350
|
if (params === void 0) { params = {}; }
|
|
337
351
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
338
352
|
},
|
|
353
|
+
/**
|
|
354
|
+
* No description
|
|
355
|
+
*
|
|
356
|
+
* @tags Tenant Storage Plans
|
|
357
|
+
* @name DeleteTenantStoragePlan
|
|
358
|
+
* @request DELETE:/tenants/{tenantId}/storage-plans/{id}
|
|
359
|
+
* @secure
|
|
360
|
+
* @response `204` `void`
|
|
361
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
362
|
+
*/
|
|
363
|
+
deleteTenantStoragePlan: function (tenantId, id, params) {
|
|
364
|
+
if (params === void 0) { params = {}; }
|
|
365
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans/").concat(id), method: "DELETE", secure: true }, params));
|
|
366
|
+
},
|
|
339
367
|
/**
|
|
340
368
|
* No description
|
|
341
369
|
*
|
|
@@ -378,6 +406,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
378
406
|
if (params === void 0) { params = {}; }
|
|
379
407
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/disable"), method: "PATCH", secure: true }, params));
|
|
380
408
|
},
|
|
409
|
+
/**
|
|
410
|
+
* No description
|
|
411
|
+
*
|
|
412
|
+
* @tags Tenant Invoices Management
|
|
413
|
+
* @name DispatchTenantInvoicesGeneration
|
|
414
|
+
* @request PATCH:/tenants/{tenantId}/invoices
|
|
415
|
+
* @secure
|
|
416
|
+
* @response `204` `void`
|
|
417
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
418
|
+
*/
|
|
419
|
+
dispatchTenantInvoicesGeneration: function (tenantId, data, params) {
|
|
420
|
+
if (params === void 0) { params = {}; }
|
|
421
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/invoices"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
|
|
422
|
+
},
|
|
381
423
|
/**
|
|
382
424
|
* No description
|
|
383
425
|
*
|
|
@@ -392,6 +434,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
392
434
|
if (params === void 0) { params = {}; }
|
|
393
435
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
394
436
|
},
|
|
437
|
+
/**
|
|
438
|
+
* No description
|
|
439
|
+
*
|
|
440
|
+
* @tags Tenant Storage Plans
|
|
441
|
+
* @name GetTenantStoragePlan
|
|
442
|
+
* @request GET:/tenants/{tenantId}/storage-plans/{id}
|
|
443
|
+
* @secure
|
|
444
|
+
* @response `200` `StoragePlanEntityDto`
|
|
445
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
446
|
+
*/
|
|
447
|
+
getTenantStoragePlan: function (tenantId, id, params) {
|
|
448
|
+
if (params === void 0) { params = {}; }
|
|
449
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans/").concat(id), method: "GET", secure: true, format: "json" }, params));
|
|
450
|
+
},
|
|
395
451
|
/**
|
|
396
452
|
* No description
|
|
397
453
|
*
|
|
@@ -434,6 +490,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
434
490
|
if (params === void 0) { params = {}; }
|
|
435
491
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
|
|
436
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
|
+
},
|
|
507
|
+
/**
|
|
508
|
+
* No description
|
|
509
|
+
*
|
|
510
|
+
* @tags Tenant Storage Plans
|
|
511
|
+
* @name ListTenantStoragePlans
|
|
512
|
+
* @request GET:/tenants/{tenantId}/storage-plans
|
|
513
|
+
* @secure
|
|
514
|
+
* @response `200` `StoragePlanEntityPaginatedDto`
|
|
515
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
516
|
+
*/
|
|
517
|
+
listTenantStoragePlans: function (tenantId, query, params) {
|
|
518
|
+
if (params === void 0) { params = {}; }
|
|
519
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
520
|
+
},
|
|
437
521
|
/**
|
|
438
522
|
* No description
|
|
439
523
|
*
|
|
@@ -546,6 +630,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
546
630
|
if (params === void 0) { params = {}; }
|
|
547
631
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/notifications/batch-set-read"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
|
|
548
632
|
},
|
|
633
|
+
/**
|
|
634
|
+
* No description
|
|
635
|
+
*
|
|
636
|
+
* @tags Tenant Storage Plans
|
|
637
|
+
* @name UpdateTenantStoragePlan
|
|
638
|
+
* @request PATCH:/tenants/{tenantId}/storage-plans/{id}
|
|
639
|
+
* @secure
|
|
640
|
+
* @response `200` `StoragePlanEntityDto`
|
|
641
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
642
|
+
*/
|
|
643
|
+
updateTenantStoragePlan: function (tenantId, id, data, params) {
|
|
644
|
+
if (params === void 0) { params = {}; }
|
|
645
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans/").concat(id), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
646
|
+
},
|
|
549
647
|
/**
|
|
550
648
|
* No description
|
|
551
649
|
*
|
|
@@ -589,60 +687,6 @@ var Api = /** @class */ (function (_super) {
|
|
|
589
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));
|
|
590
688
|
},
|
|
591
689
|
};
|
|
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
690
|
_this.admin = {
|
|
647
691
|
/**
|
|
648
692
|
* No description
|
|
@@ -1891,6 +1935,60 @@ var Api = /** @class */ (function (_super) {
|
|
|
1891
1935
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/withdraw-deliver-state"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
|
|
1892
1936
|
},
|
|
1893
1937
|
};
|
|
1938
|
+
_this.auth = {
|
|
1939
|
+
/**
|
|
1940
|
+
* No description
|
|
1941
|
+
*
|
|
1942
|
+
* @tags Authentication
|
|
1943
|
+
* @name Logout
|
|
1944
|
+
* @request POST:/auth/logout
|
|
1945
|
+
* @secure
|
|
1946
|
+
* @response `204` `void`
|
|
1947
|
+
*/
|
|
1948
|
+
logout: function (params) {
|
|
1949
|
+
if (params === void 0) { params = {}; }
|
|
1950
|
+
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
1951
|
+
},
|
|
1952
|
+
/**
|
|
1953
|
+
* No description
|
|
1954
|
+
*
|
|
1955
|
+
* @tags Authentication
|
|
1956
|
+
* @name RequestPasswordReset
|
|
1957
|
+
* @request POST:/auth/request-password-reset
|
|
1958
|
+
* @secure
|
|
1959
|
+
* @response `204` `void`
|
|
1960
|
+
*/
|
|
1961
|
+
requestPasswordReset: function (data, params) {
|
|
1962
|
+
if (params === void 0) { params = {}; }
|
|
1963
|
+
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
1964
|
+
},
|
|
1965
|
+
/**
|
|
1966
|
+
* No description
|
|
1967
|
+
*
|
|
1968
|
+
* @tags Authentication
|
|
1969
|
+
* @name ResetPassword
|
|
1970
|
+
* @request PATCH:/auth/reset-password
|
|
1971
|
+
* @secure
|
|
1972
|
+
* @response `200` `SigninResponseDto`
|
|
1973
|
+
*/
|
|
1974
|
+
resetPassword: function (data, params) {
|
|
1975
|
+
if (params === void 0) { params = {}; }
|
|
1976
|
+
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
1977
|
+
},
|
|
1978
|
+
/**
|
|
1979
|
+
* No description
|
|
1980
|
+
*
|
|
1981
|
+
* @tags Authentication
|
|
1982
|
+
* @name SignIn
|
|
1983
|
+
* @request POST:/auth/signin
|
|
1984
|
+
* @secure
|
|
1985
|
+
* @response `200` `SigninResponseDto`
|
|
1986
|
+
*/
|
|
1987
|
+
signIn: function (data, params) {
|
|
1988
|
+
if (params === void 0) { params = {}; }
|
|
1989
|
+
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
1990
|
+
},
|
|
1991
|
+
};
|
|
1894
1992
|
return _this;
|
|
1895
1993
|
}
|
|
1896
1994
|
return Api;
|