@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/umd/index.ts CHANGED
@@ -18604,7 +18604,7 @@ var HttpClient = /** @class */ (function () {
18604
18604
  exports.HttpClient = HttpClient;
18605
18605
  /**
18606
18606
  * @title winehaus-api
18607
- * @version 0.0.2
18607
+ * @version 0.0.3
18608
18608
  * @baseUrl http://localhost:3000
18609
18609
  * @contact
18610
18610
  */
@@ -18624,60 +18624,6 @@ var Api = /** @class */ (function (_super) {
18624
18624
  if (params === void 0) { params = {}; }
18625
18625
  return _this.request(__assign({ path: "/", method: "GET" }, params));
18626
18626
  };
18627
- _this.auth = {
18628
- /**
18629
- * No description
18630
- *
18631
- * @tags Authentication
18632
- * @name Logout
18633
- * @request POST:/auth/logout
18634
- * @secure
18635
- * @response `204` `void`
18636
- */
18637
- logout: function (params) {
18638
- if (params === void 0) { params = {}; }
18639
- return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
18640
- },
18641
- /**
18642
- * No description
18643
- *
18644
- * @tags Authentication
18645
- * @name RequestPasswordReset
18646
- * @request POST:/auth/request-password-reset
18647
- * @secure
18648
- * @response `204` `void`
18649
- */
18650
- requestPasswordReset: function (data, params) {
18651
- if (params === void 0) { params = {}; }
18652
- return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
18653
- },
18654
- /**
18655
- * No description
18656
- *
18657
- * @tags Authentication
18658
- * @name ResetPassword
18659
- * @request PATCH:/auth/reset-password
18660
- * @secure
18661
- * @response `200` `SigninResponseDto`
18662
- */
18663
- resetPassword: function (data, params) {
18664
- if (params === void 0) { params = {}; }
18665
- return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18666
- },
18667
- /**
18668
- * No description
18669
- *
18670
- * @tags Authentication
18671
- * @name SignIn
18672
- * @request POST:/auth/signin
18673
- * @secure
18674
- * @response `200` `SigninResponseDto`
18675
- */
18676
- signIn: function (data, params) {
18677
- if (params === void 0) { params = {}; }
18678
- return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18679
- },
18680
- };
18681
18627
  _this.tenants = {
18682
18628
  /**
18683
18629
  * No description
@@ -18693,6 +18639,20 @@ var Api = /** @class */ (function (_super) {
18693
18639
  if (params === void 0) { params = {}; }
18694
18640
  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));
18695
18641
  },
18642
+ /**
18643
+ * No description
18644
+ *
18645
+ * @tags Tenant Storage Plans
18646
+ * @name CreateTenantStoragePlan
18647
+ * @request POST:/tenants/{tenantId}/storage-plans
18648
+ * @secure
18649
+ * @response `201` `StoragePlanEntityDto`
18650
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18651
+ */
18652
+ createTenantStoragePlan: function (tenantId, data, params) {
18653
+ if (params === void 0) { params = {}; }
18654
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18655
+ },
18696
18656
  /**
18697
18657
  * No description
18698
18658
  *
@@ -18700,7 +18660,7 @@ var Api = /** @class */ (function (_super) {
18700
18660
  * @name CreateTenantUser
18701
18661
  * @request POST:/tenants/{tenantId}/users
18702
18662
  * @secure
18703
- * @response `200` `UserEntityDto`
18663
+ * @response `201` `UserEntityDto`
18704
18664
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
18705
18665
  */
18706
18666
  createTenantUser: function (tenantId, data, params) {
@@ -18721,6 +18681,20 @@ var Api = /** @class */ (function (_super) {
18721
18681
  if (params === void 0) { params = {}; }
18722
18682
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18723
18683
  },
18684
+ /**
18685
+ * No description
18686
+ *
18687
+ * @tags Tenant Storage Plans
18688
+ * @name DeleteTenantStoragePlan
18689
+ * @request DELETE:/tenants/{tenantId}/storage-plans/{id}
18690
+ * @secure
18691
+ * @response `204` `void`
18692
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18693
+ */
18694
+ deleteTenantStoragePlan: function (tenantId, id, params) {
18695
+ if (params === void 0) { params = {}; }
18696
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans/").concat(id), method: "DELETE", secure: true }, params));
18697
+ },
18724
18698
  /**
18725
18699
  * No description
18726
18700
  *
@@ -18763,6 +18737,20 @@ var Api = /** @class */ (function (_super) {
18763
18737
  if (params === void 0) { params = {}; }
18764
18738
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/disable"), method: "PATCH", secure: true }, params));
18765
18739
  },
18740
+ /**
18741
+ * No description
18742
+ *
18743
+ * @tags Tenant Invoices Management
18744
+ * @name DispatchTenantInvoicesGeneration
18745
+ * @request PATCH:/tenants/{tenantId}/invoices
18746
+ * @secure
18747
+ * @response `204` `void`
18748
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner
18749
+ */
18750
+ dispatchTenantInvoicesGeneration: function (tenantId, data, params) {
18751
+ if (params === void 0) { params = {}; }
18752
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/invoices"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
18753
+ },
18766
18754
  /**
18767
18755
  * No description
18768
18756
  *
@@ -18777,6 +18765,20 @@ var Api = /** @class */ (function (_super) {
18777
18765
  if (params === void 0) { params = {}; }
18778
18766
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
18779
18767
  },
18768
+ /**
18769
+ * No description
18770
+ *
18771
+ * @tags Tenant Storage Plans
18772
+ * @name GetTenantStoragePlan
18773
+ * @request GET:/tenants/{tenantId}/storage-plans/{id}
18774
+ * @secure
18775
+ * @response `200` `StoragePlanEntityDto`
18776
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
18777
+ */
18778
+ getTenantStoragePlan: function (tenantId, id, params) {
18779
+ if (params === void 0) { params = {}; }
18780
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans/").concat(id), method: "GET", secure: true, format: "json" }, params));
18781
+ },
18780
18782
  /**
18781
18783
  * No description
18782
18784
  *
@@ -18819,6 +18821,20 @@ var Api = /** @class */ (function (_super) {
18819
18821
  if (params === void 0) { params = {}; }
18820
18822
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
18821
18823
  },
18824
+ /**
18825
+ * No description
18826
+ *
18827
+ * @tags Tenant Storage Plans
18828
+ * @name ListTenantStoragePlans
18829
+ * @request GET:/tenants/{tenantId}/storage-plans
18830
+ * @secure
18831
+ * @response `200` `StoragePlanEntityPaginatedDto`
18832
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
18833
+ */
18834
+ listTenantStoragePlans: function (tenantId, query, params) {
18835
+ if (params === void 0) { params = {}; }
18836
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans"), method: "GET", query: query, secure: true, format: "json" }, params));
18837
+ },
18822
18838
  /**
18823
18839
  * No description
18824
18840
  *
@@ -18931,6 +18947,20 @@ var Api = /** @class */ (function (_super) {
18931
18947
  if (params === void 0) { params = {}; }
18932
18948
  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));
18933
18949
  },
18950
+ /**
18951
+ * No description
18952
+ *
18953
+ * @tags Tenant Storage Plans
18954
+ * @name UpdateTenantStoragePlan
18955
+ * @request PATCH:/tenants/{tenantId}/storage-plans/{id}
18956
+ * @secure
18957
+ * @response `200` `StoragePlanEntityDto`
18958
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18959
+ */
18960
+ updateTenantStoragePlan: function (tenantId, id, data, params) {
18961
+ if (params === void 0) { params = {}; }
18962
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans/").concat(id), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18963
+ },
18934
18964
  /**
18935
18965
  * No description
18936
18966
  *
@@ -18974,6 +19004,60 @@ var Api = /** @class */ (function (_super) {
18974
19004
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18975
19005
  },
18976
19006
  };
19007
+ _this.auth = {
19008
+ /**
19009
+ * No description
19010
+ *
19011
+ * @tags Authentication
19012
+ * @name Logout
19013
+ * @request POST:/auth/logout
19014
+ * @secure
19015
+ * @response `204` `void`
19016
+ */
19017
+ logout: function (params) {
19018
+ if (params === void 0) { params = {}; }
19019
+ return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
19020
+ },
19021
+ /**
19022
+ * No description
19023
+ *
19024
+ * @tags Authentication
19025
+ * @name RequestPasswordReset
19026
+ * @request POST:/auth/request-password-reset
19027
+ * @secure
19028
+ * @response `204` `void`
19029
+ */
19030
+ requestPasswordReset: function (data, params) {
19031
+ if (params === void 0) { params = {}; }
19032
+ return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
19033
+ },
19034
+ /**
19035
+ * No description
19036
+ *
19037
+ * @tags Authentication
19038
+ * @name ResetPassword
19039
+ * @request PATCH:/auth/reset-password
19040
+ * @secure
19041
+ * @response `200` `SigninResponseDto`
19042
+ */
19043
+ resetPassword: function (data, params) {
19044
+ if (params === void 0) { params = {}; }
19045
+ return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
19046
+ },
19047
+ /**
19048
+ * No description
19049
+ *
19050
+ * @tags Authentication
19051
+ * @name SignIn
19052
+ * @request POST:/auth/signin
19053
+ * @secure
19054
+ * @response `200` `SigninResponseDto`
19055
+ */
19056
+ signIn: function (data, params) {
19057
+ if (params === void 0) { params = {}; }
19058
+ return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
19059
+ },
19060
+ };
18977
19061
  _this.admin = {
18978
19062
  /**
18979
19063
  * No description
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thelllabs/winehaus-sdk",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "description": "Winehaus SDK",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",