@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/umd/index.ts
CHANGED
|
@@ -18639,6 +18639,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18639
18639
|
if (params === void 0) { params = {}; }
|
|
18640
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));
|
|
18641
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
|
+
},
|
|
18642
18656
|
/**
|
|
18643
18657
|
* No description
|
|
18644
18658
|
*
|
|
@@ -18646,7 +18660,7 @@ var Api = /** @class */ (function (_super) {
|
|
|
18646
18660
|
* @name CreateTenantUser
|
|
18647
18661
|
* @request POST:/tenants/{tenantId}/users
|
|
18648
18662
|
* @secure
|
|
18649
|
-
* @response `
|
|
18663
|
+
* @response `201` `UserEntityDto`
|
|
18650
18664
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
18651
18665
|
*/
|
|
18652
18666
|
createTenantUser: function (tenantId, data, params) {
|
|
@@ -18667,6 +18681,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18667
18681
|
if (params === void 0) { params = {}; }
|
|
18668
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));
|
|
18669
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
|
+
},
|
|
18670
18698
|
/**
|
|
18671
18699
|
* No description
|
|
18672
18700
|
*
|
|
@@ -18709,6 +18737,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18709
18737
|
if (params === void 0) { params = {}; }
|
|
18710
18738
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/disable"), method: "PATCH", secure: true }, params));
|
|
18711
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
|
+
},
|
|
18712
18754
|
/**
|
|
18713
18755
|
* No description
|
|
18714
18756
|
*
|
|
@@ -18723,6 +18765,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18723
18765
|
if (params === void 0) { params = {}; }
|
|
18724
18766
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
18725
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
|
+
},
|
|
18726
18782
|
/**
|
|
18727
18783
|
* No description
|
|
18728
18784
|
*
|
|
@@ -18765,6 +18821,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
18765
18821
|
if (params === void 0) { params = {}; }
|
|
18766
18822
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
|
|
18767
18823
|
},
|
|
18824
|
+
/**
|
|
18825
|
+
* No description
|
|
18826
|
+
*
|
|
18827
|
+
* @tags Tenant
|
|
18828
|
+
* @name ListTenantInventory
|
|
18829
|
+
* @request GET:/tenants/{tenantId}/inventory
|
|
18830
|
+
* @secure
|
|
18831
|
+
* @response `200` `CaseWineInventoryItemEntityPaginatedDto`
|
|
18832
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
18833
|
+
*/
|
|
18834
|
+
listTenantInventory: function (tenantId, query, params) {
|
|
18835
|
+
if (params === void 0) { params = {}; }
|
|
18836
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
18837
|
+
},
|
|
18838
|
+
/**
|
|
18839
|
+
* No description
|
|
18840
|
+
*
|
|
18841
|
+
* @tags Tenant Storage Plans
|
|
18842
|
+
* @name ListTenantStoragePlans
|
|
18843
|
+
* @request GET:/tenants/{tenantId}/storage-plans
|
|
18844
|
+
* @secure
|
|
18845
|
+
* @response `200` `StoragePlanEntityPaginatedDto`
|
|
18846
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
18847
|
+
*/
|
|
18848
|
+
listTenantStoragePlans: function (tenantId, query, params) {
|
|
18849
|
+
if (params === void 0) { params = {}; }
|
|
18850
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
18851
|
+
},
|
|
18768
18852
|
/**
|
|
18769
18853
|
* No description
|
|
18770
18854
|
*
|
|
@@ -18877,6 +18961,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18877
18961
|
if (params === void 0) { params = {}; }
|
|
18878
18962
|
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));
|
|
18879
18963
|
},
|
|
18964
|
+
/**
|
|
18965
|
+
* No description
|
|
18966
|
+
*
|
|
18967
|
+
* @tags Tenant Storage Plans
|
|
18968
|
+
* @name UpdateTenantStoragePlan
|
|
18969
|
+
* @request PATCH:/tenants/{tenantId}/storage-plans/{id}
|
|
18970
|
+
* @secure
|
|
18971
|
+
* @response `200` `StoragePlanEntityDto`
|
|
18972
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
18973
|
+
*/
|
|
18974
|
+
updateTenantStoragePlan: function (tenantId, id, data, params) {
|
|
18975
|
+
if (params === void 0) { params = {}; }
|
|
18976
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/storage-plans/").concat(id), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18977
|
+
},
|
|
18880
18978
|
/**
|
|
18881
18979
|
* No description
|
|
18882
18980
|
*
|
|
@@ -18920,60 +19018,6 @@ var Api = /** @class */ (function (_super) {
|
|
|
18920
19018
|
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));
|
|
18921
19019
|
},
|
|
18922
19020
|
};
|
|
18923
|
-
_this.auth = {
|
|
18924
|
-
/**
|
|
18925
|
-
* No description
|
|
18926
|
-
*
|
|
18927
|
-
* @tags Authentication
|
|
18928
|
-
* @name Logout
|
|
18929
|
-
* @request POST:/auth/logout
|
|
18930
|
-
* @secure
|
|
18931
|
-
* @response `204` `void`
|
|
18932
|
-
*/
|
|
18933
|
-
logout: function (params) {
|
|
18934
|
-
if (params === void 0) { params = {}; }
|
|
18935
|
-
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
18936
|
-
},
|
|
18937
|
-
/**
|
|
18938
|
-
* No description
|
|
18939
|
-
*
|
|
18940
|
-
* @tags Authentication
|
|
18941
|
-
* @name RequestPasswordReset
|
|
18942
|
-
* @request POST:/auth/request-password-reset
|
|
18943
|
-
* @secure
|
|
18944
|
-
* @response `204` `void`
|
|
18945
|
-
*/
|
|
18946
|
-
requestPasswordReset: function (data, params) {
|
|
18947
|
-
if (params === void 0) { params = {}; }
|
|
18948
|
-
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
18949
|
-
},
|
|
18950
|
-
/**
|
|
18951
|
-
* No description
|
|
18952
|
-
*
|
|
18953
|
-
* @tags Authentication
|
|
18954
|
-
* @name ResetPassword
|
|
18955
|
-
* @request PATCH:/auth/reset-password
|
|
18956
|
-
* @secure
|
|
18957
|
-
* @response `200` `SigninResponseDto`
|
|
18958
|
-
*/
|
|
18959
|
-
resetPassword: function (data, params) {
|
|
18960
|
-
if (params === void 0) { params = {}; }
|
|
18961
|
-
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18962
|
-
},
|
|
18963
|
-
/**
|
|
18964
|
-
* No description
|
|
18965
|
-
*
|
|
18966
|
-
* @tags Authentication
|
|
18967
|
-
* @name SignIn
|
|
18968
|
-
* @request POST:/auth/signin
|
|
18969
|
-
* @secure
|
|
18970
|
-
* @response `200` `SigninResponseDto`
|
|
18971
|
-
*/
|
|
18972
|
-
signIn: function (data, params) {
|
|
18973
|
-
if (params === void 0) { params = {}; }
|
|
18974
|
-
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18975
|
-
},
|
|
18976
|
-
};
|
|
18977
19021
|
_this.admin = {
|
|
18978
19022
|
/**
|
|
18979
19023
|
* No description
|
|
@@ -20222,6 +20266,60 @@ var Api = /** @class */ (function (_super) {
|
|
|
20222
20266
|
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));
|
|
20223
20267
|
},
|
|
20224
20268
|
};
|
|
20269
|
+
_this.auth = {
|
|
20270
|
+
/**
|
|
20271
|
+
* No description
|
|
20272
|
+
*
|
|
20273
|
+
* @tags Authentication
|
|
20274
|
+
* @name Logout
|
|
20275
|
+
* @request POST:/auth/logout
|
|
20276
|
+
* @secure
|
|
20277
|
+
* @response `204` `void`
|
|
20278
|
+
*/
|
|
20279
|
+
logout: function (params) {
|
|
20280
|
+
if (params === void 0) { params = {}; }
|
|
20281
|
+
return _this.request(__assign({ path: "/auth/logout", method: "POST", secure: true }, params));
|
|
20282
|
+
},
|
|
20283
|
+
/**
|
|
20284
|
+
* No description
|
|
20285
|
+
*
|
|
20286
|
+
* @tags Authentication
|
|
20287
|
+
* @name RequestPasswordReset
|
|
20288
|
+
* @request POST:/auth/request-password-reset
|
|
20289
|
+
* @secure
|
|
20290
|
+
* @response `204` `void`
|
|
20291
|
+
*/
|
|
20292
|
+
requestPasswordReset: function (data, params) {
|
|
20293
|
+
if (params === void 0) { params = {}; }
|
|
20294
|
+
return _this.request(__assign({ path: "/auth/request-password-reset", method: "POST", body: data, secure: true, type: ContentType.Json }, params));
|
|
20295
|
+
},
|
|
20296
|
+
/**
|
|
20297
|
+
* No description
|
|
20298
|
+
*
|
|
20299
|
+
* @tags Authentication
|
|
20300
|
+
* @name ResetPassword
|
|
20301
|
+
* @request PATCH:/auth/reset-password
|
|
20302
|
+
* @secure
|
|
20303
|
+
* @response `200` `SigninResponseDto`
|
|
20304
|
+
*/
|
|
20305
|
+
resetPassword: function (data, params) {
|
|
20306
|
+
if (params === void 0) { params = {}; }
|
|
20307
|
+
return _this.request(__assign({ path: "/auth/reset-password", method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
20308
|
+
},
|
|
20309
|
+
/**
|
|
20310
|
+
* No description
|
|
20311
|
+
*
|
|
20312
|
+
* @tags Authentication
|
|
20313
|
+
* @name SignIn
|
|
20314
|
+
* @request POST:/auth/signin
|
|
20315
|
+
* @secure
|
|
20316
|
+
* @response `200` `SigninResponseDto`
|
|
20317
|
+
*/
|
|
20318
|
+
signIn: function (data, params) {
|
|
20319
|
+
if (params === void 0) { params = {}; }
|
|
20320
|
+
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
20321
|
+
},
|
|
20322
|
+
};
|
|
20225
20323
|
return _this;
|
|
20226
20324
|
}
|
|
20227
20325
|
return Api;
|