@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/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
|
|
@@ -368,6 +314,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
368
314
|
if (params === void 0) { params = {}; }
|
|
369
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));
|
|
370
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
|
+
},
|
|
371
331
|
/**
|
|
372
332
|
* No description
|
|
373
333
|
*
|
|
@@ -375,7 +335,7 @@ var Api = /** @class */ (function (_super) {
|
|
|
375
335
|
* @name CreateTenantUser
|
|
376
336
|
* @request POST:/tenants/{tenantId}/users
|
|
377
337
|
* @secure
|
|
378
|
-
* @response `
|
|
338
|
+
* @response `201` `UserEntityDto`
|
|
379
339
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
380
340
|
*/
|
|
381
341
|
createTenantUser: function (tenantId, data, params) {
|
|
@@ -396,6 +356,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
396
356
|
if (params === void 0) { params = {}; }
|
|
397
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));
|
|
398
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
|
+
},
|
|
399
373
|
/**
|
|
400
374
|
* No description
|
|
401
375
|
*
|
|
@@ -438,6 +412,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
438
412
|
if (params === void 0) { params = {}; }
|
|
439
413
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/disable"), method: "PATCH", secure: true }, params));
|
|
440
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
|
+
},
|
|
441
429
|
/**
|
|
442
430
|
* No description
|
|
443
431
|
*
|
|
@@ -452,6 +440,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
452
440
|
if (params === void 0) { params = {}; }
|
|
453
441
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
454
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
|
+
},
|
|
455
457
|
/**
|
|
456
458
|
* No description
|
|
457
459
|
*
|
|
@@ -494,6 +496,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
494
496
|
if (params === void 0) { params = {}; }
|
|
495
497
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
|
|
496
498
|
},
|
|
499
|
+
/**
|
|
500
|
+
* No description
|
|
501
|
+
*
|
|
502
|
+
* @tags Tenant Storage Plans
|
|
503
|
+
* @name ListTenantStoragePlans
|
|
504
|
+
* @request GET:/tenants/{tenantId}/storage-plans
|
|
505
|
+
* @secure
|
|
506
|
+
* @response `200` `StoragePlanEntityPaginatedDto`
|
|
507
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
508
|
+
*/
|
|
509
|
+
listTenantStoragePlans: function (tenantId, query, params) {
|
|
510
|
+
if (params === void 0) { params = {}; }
|
|
511
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
512
|
+
},
|
|
497
513
|
/**
|
|
498
514
|
* No description
|
|
499
515
|
*
|
|
@@ -606,6 +622,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
606
622
|
if (params === void 0) { params = {}; }
|
|
607
623
|
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));
|
|
608
624
|
},
|
|
625
|
+
/**
|
|
626
|
+
* No description
|
|
627
|
+
*
|
|
628
|
+
* @tags Tenant Storage Plans
|
|
629
|
+
* @name UpdateTenantStoragePlan
|
|
630
|
+
* @request PATCH:/tenants/{tenantId}/storage-plans/{id}
|
|
631
|
+
* @secure
|
|
632
|
+
* @response `200` `StoragePlanEntityDto`
|
|
633
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
634
|
+
*/
|
|
635
|
+
updateTenantStoragePlan: function (tenantId, id, data, params) {
|
|
636
|
+
if (params === void 0) { params = {}; }
|
|
637
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans/").concat(id), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
638
|
+
},
|
|
609
639
|
/**
|
|
610
640
|
* No description
|
|
611
641
|
*
|
|
@@ -649,6 +679,60 @@ var Api = /** @class */ (function (_super) {
|
|
|
649
679
|
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
680
|
},
|
|
651
681
|
};
|
|
682
|
+
_this.auth = {
|
|
683
|
+
/**
|
|
684
|
+
* No description
|
|
685
|
+
*
|
|
686
|
+
* @tags Authentication
|
|
687
|
+
* @name Logout
|
|
688
|
+
* @request POST:/auth/logout
|
|
689
|
+
* @secure
|
|
690
|
+
* @response `204` `void`
|
|
691
|
+
*/
|
|
692
|
+
logout: function (params) {
|
|
693
|
+
if (params === void 0) { params = {}; }
|
|
694
|
+
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
695
|
+
},
|
|
696
|
+
/**
|
|
697
|
+
* No description
|
|
698
|
+
*
|
|
699
|
+
* @tags Authentication
|
|
700
|
+
* @name RequestPasswordReset
|
|
701
|
+
* @request POST:/auth/request-password-reset
|
|
702
|
+
* @secure
|
|
703
|
+
* @response `204` `void`
|
|
704
|
+
*/
|
|
705
|
+
requestPasswordReset: function (data, params) {
|
|
706
|
+
if (params === void 0) { params = {}; }
|
|
707
|
+
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
708
|
+
},
|
|
709
|
+
/**
|
|
710
|
+
* No description
|
|
711
|
+
*
|
|
712
|
+
* @tags Authentication
|
|
713
|
+
* @name ResetPassword
|
|
714
|
+
* @request PATCH:/auth/reset-password
|
|
715
|
+
* @secure
|
|
716
|
+
* @response `200` `SigninResponseDto`
|
|
717
|
+
*/
|
|
718
|
+
resetPassword: function (data, params) {
|
|
719
|
+
if (params === void 0) { params = {}; }
|
|
720
|
+
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
721
|
+
},
|
|
722
|
+
/**
|
|
723
|
+
* No description
|
|
724
|
+
*
|
|
725
|
+
* @tags Authentication
|
|
726
|
+
* @name SignIn
|
|
727
|
+
* @request POST:/auth/signin
|
|
728
|
+
* @secure
|
|
729
|
+
* @response `200` `SigninResponseDto`
|
|
730
|
+
*/
|
|
731
|
+
signIn: function (data, params) {
|
|
732
|
+
if (params === void 0) { params = {}; }
|
|
733
|
+
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
734
|
+
},
|
|
735
|
+
};
|
|
652
736
|
_this.admin = {
|
|
653
737
|
/**
|
|
654
738
|
* 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
|
|
@@ -362,6 +308,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
362
308
|
if (params === void 0) { params = {}; }
|
|
363
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));
|
|
364
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
|
+
},
|
|
365
325
|
/**
|
|
366
326
|
* No description
|
|
367
327
|
*
|
|
@@ -369,7 +329,7 @@ var Api = /** @class */ (function (_super) {
|
|
|
369
329
|
* @name CreateTenantUser
|
|
370
330
|
* @request POST:/tenants/{tenantId}/users
|
|
371
331
|
* @secure
|
|
372
|
-
* @response `
|
|
332
|
+
* @response `201` `UserEntityDto`
|
|
373
333
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
374
334
|
*/
|
|
375
335
|
createTenantUser: function (tenantId, data, params) {
|
|
@@ -390,6 +350,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
390
350
|
if (params === void 0) { params = {}; }
|
|
391
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));
|
|
392
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
|
+
},
|
|
393
367
|
/**
|
|
394
368
|
* No description
|
|
395
369
|
*
|
|
@@ -432,6 +406,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
432
406
|
if (params === void 0) { params = {}; }
|
|
433
407
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/disable"), method: "PATCH", secure: true }, params));
|
|
434
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
|
+
},
|
|
435
423
|
/**
|
|
436
424
|
* No description
|
|
437
425
|
*
|
|
@@ -446,6 +434,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
446
434
|
if (params === void 0) { params = {}; }
|
|
447
435
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
448
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
|
+
},
|
|
449
451
|
/**
|
|
450
452
|
* No description
|
|
451
453
|
*
|
|
@@ -488,6 +490,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
488
490
|
if (params === void 0) { params = {}; }
|
|
489
491
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
|
|
490
492
|
},
|
|
493
|
+
/**
|
|
494
|
+
* No description
|
|
495
|
+
*
|
|
496
|
+
* @tags Tenant Storage Plans
|
|
497
|
+
* @name ListTenantStoragePlans
|
|
498
|
+
* @request GET:/tenants/{tenantId}/storage-plans
|
|
499
|
+
* @secure
|
|
500
|
+
* @response `200` `StoragePlanEntityPaginatedDto`
|
|
501
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
502
|
+
*/
|
|
503
|
+
listTenantStoragePlans: function (tenantId, query, params) {
|
|
504
|
+
if (params === void 0) { params = {}; }
|
|
505
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
506
|
+
},
|
|
491
507
|
/**
|
|
492
508
|
* No description
|
|
493
509
|
*
|
|
@@ -600,6 +616,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
600
616
|
if (params === void 0) { params = {}; }
|
|
601
617
|
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));
|
|
602
618
|
},
|
|
619
|
+
/**
|
|
620
|
+
* No description
|
|
621
|
+
*
|
|
622
|
+
* @tags Tenant Storage Plans
|
|
623
|
+
* @name UpdateTenantStoragePlan
|
|
624
|
+
* @request PATCH:/tenants/{tenantId}/storage-plans/{id}
|
|
625
|
+
* @secure
|
|
626
|
+
* @response `200` `StoragePlanEntityDto`
|
|
627
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
628
|
+
*/
|
|
629
|
+
updateTenantStoragePlan: function (tenantId, id, data, params) {
|
|
630
|
+
if (params === void 0) { params = {}; }
|
|
631
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans/").concat(id), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
632
|
+
},
|
|
603
633
|
/**
|
|
604
634
|
* No description
|
|
605
635
|
*
|
|
@@ -643,6 +673,60 @@ var Api = /** @class */ (function (_super) {
|
|
|
643
673
|
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
674
|
},
|
|
645
675
|
};
|
|
676
|
+
_this.auth = {
|
|
677
|
+
/**
|
|
678
|
+
* No description
|
|
679
|
+
*
|
|
680
|
+
* @tags Authentication
|
|
681
|
+
* @name Logout
|
|
682
|
+
* @request POST:/auth/logout
|
|
683
|
+
* @secure
|
|
684
|
+
* @response `204` `void`
|
|
685
|
+
*/
|
|
686
|
+
logout: function (params) {
|
|
687
|
+
if (params === void 0) { params = {}; }
|
|
688
|
+
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
689
|
+
},
|
|
690
|
+
/**
|
|
691
|
+
* No description
|
|
692
|
+
*
|
|
693
|
+
* @tags Authentication
|
|
694
|
+
* @name RequestPasswordReset
|
|
695
|
+
* @request POST:/auth/request-password-reset
|
|
696
|
+
* @secure
|
|
697
|
+
* @response `204` `void`
|
|
698
|
+
*/
|
|
699
|
+
requestPasswordReset: function (data, params) {
|
|
700
|
+
if (params === void 0) { params = {}; }
|
|
701
|
+
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
702
|
+
},
|
|
703
|
+
/**
|
|
704
|
+
* No description
|
|
705
|
+
*
|
|
706
|
+
* @tags Authentication
|
|
707
|
+
* @name ResetPassword
|
|
708
|
+
* @request PATCH:/auth/reset-password
|
|
709
|
+
* @secure
|
|
710
|
+
* @response `200` `SigninResponseDto`
|
|
711
|
+
*/
|
|
712
|
+
resetPassword: function (data, params) {
|
|
713
|
+
if (params === void 0) { params = {}; }
|
|
714
|
+
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
715
|
+
},
|
|
716
|
+
/**
|
|
717
|
+
* No description
|
|
718
|
+
*
|
|
719
|
+
* @tags Authentication
|
|
720
|
+
* @name SignIn
|
|
721
|
+
* @request POST:/auth/signin
|
|
722
|
+
* @secure
|
|
723
|
+
* @response `200` `SigninResponseDto`
|
|
724
|
+
*/
|
|
725
|
+
signIn: function (data, params) {
|
|
726
|
+
if (params === void 0) { params = {}; }
|
|
727
|
+
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
728
|
+
},
|
|
729
|
+
};
|
|
646
730
|
_this.admin = {
|
|
647
731
|
/**
|
|
648
732
|
* No description
|