@thelllabs/winehaus-sdk 0.0.16 → 0.0.18

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
@@ -18663,15 +18663,15 @@ var Api = /** @class */ (function (_super) {
18663
18663
  * No description
18664
18664
  *
18665
18665
  * @tags Tenant Users Operation Requests
18666
- * @name CancelRequest
18667
- * @request PATCH:/tenants/{tenantId}/users/userId/requests/{requestId}/cancel
18666
+ * @name CancelUserOperationRequest
18667
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/requests/{requestId}/cancel
18668
18668
  * @secure
18669
- * @response `200` `void`
18669
+ * @response `204` `void`
18670
18670
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18671
18671
  */
18672
- cancelRequest: function (tenantId, userId, requestId, params) {
18672
+ cancelUserOperationRequest: function (tenantId, userId, requestId, data, params) {
18673
18673
  if (params === void 0) { params = {}; }
18674
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/").concat(requestId, "/cancel"), method: "PATCH", secure: true }, params));
18674
+ 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));
18675
18675
  },
18676
18676
  /**
18677
18677
  * No description
@@ -18692,14 +18692,14 @@ var Api = /** @class */ (function (_super) {
18692
18692
  *
18693
18693
  * @tags Tenant Users
18694
18694
  * @name CreateUserAddress
18695
- * @request POST:/tenants/{tenantId}/users/userId/addresses
18695
+ * @request POST:/tenants/{tenantId}/users/{userId}/addresses
18696
18696
  * @secure
18697
18697
  * @response `201` `AddressEntityDto`
18698
18698
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18699
18699
  */
18700
18700
  createUserAddress: function (tenantId, userId, data, params) {
18701
18701
  if (params === void 0) { params = {}; }
18702
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18702
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18703
18703
  },
18704
18704
  /**
18705
18705
  * No description
@@ -18720,14 +18720,14 @@ var Api = /** @class */ (function (_super) {
18720
18720
  *
18721
18721
  * @tags Tenant Users
18722
18722
  * @name DeleteUserAddress
18723
- * @request DELETE:/tenants/{tenantId}/users/userId/addresses/{addressId}
18723
+ * @request DELETE:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
18724
18724
  * @secure
18725
18725
  * @response `204` `void`
18726
18726
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18727
18727
  */
18728
18728
  deleteUserAddress: function (tenantId, userId, addressId, params) {
18729
18729
  if (params === void 0) { params = {}; }
18730
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses/").concat(addressId), method: "DELETE", secure: true }, params));
18730
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "DELETE", secure: true }, params));
18731
18731
  },
18732
18732
  /**
18733
18733
  * No description
@@ -18776,14 +18776,14 @@ var Api = /** @class */ (function (_super) {
18776
18776
  *
18777
18777
  * @tags Tenant Users Operation Requests
18778
18778
  * @name GetUserOperationRequestById
18779
- * @request GET:/tenants/{tenantId}/users/userId/requests/{requestId}
18779
+ * @request GET:/tenants/{tenantId}/users/{userId}/requests/{requestId}
18780
18780
  * @secure
18781
18781
  * @response `200` `OperationRequestEntityDto`
18782
18782
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18783
18783
  */
18784
18784
  getUserOperationRequestById: function (tenantId, userId, requestId, params) {
18785
18785
  if (params === void 0) { params = {}; }
18786
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
18786
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
18787
18787
  },
18788
18788
  /**
18789
18789
  * No description
@@ -18804,56 +18804,56 @@ var Api = /** @class */ (function (_super) {
18804
18804
  *
18805
18805
  * @tags Tenant Users
18806
18806
  * @name ListUserAddresses
18807
- * @request GET:/tenants/{tenantId}/users/userId/addresses
18807
+ * @request GET:/tenants/{tenantId}/users/{userId}/addresses
18808
18808
  * @secure
18809
18809
  * @response `200` `AddressEntityPaginatedDto`
18810
18810
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18811
18811
  */
18812
18812
  listUserAddresses: function (tenantId, userId, query, params) {
18813
18813
  if (params === void 0) { params = {}; }
18814
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
18814
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
18815
18815
  },
18816
18816
  /**
18817
18817
  * No description
18818
18818
  *
18819
18819
  * @tags Tenant Users Operation Requests
18820
18820
  * @name ListUserOperationRequests
18821
- * @request GET:/tenants/{tenantId}/users/userId/requests
18821
+ * @request GET:/tenants/{tenantId}/users/{userId}/requests
18822
18822
  * @secure
18823
18823
  * @response `200` `OperationRequestEntityPaginatedDto`
18824
18824
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18825
18825
  */
18826
18826
  listUserOperationRequests: function (tenantId, userId, query, params) {
18827
18827
  if (params === void 0) { params = {}; }
18828
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests"), method: "GET", query: query, secure: true, format: "json" }, params));
18828
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/requests"), method: "GET", query: query, secure: true, format: "json" }, params));
18829
18829
  },
18830
18830
  /**
18831
18831
  * No description
18832
18832
  *
18833
18833
  * @tags Tenant Users Operation Requests
18834
- * @name RequestDeposit
18835
- * @request POST:/tenants/{tenantId}/users/userId/requests/deposit
18834
+ * @name RequestDepositOperation
18835
+ * @request POST:/tenants/{tenantId}/users/{userId}/requests/deposit
18836
18836
  * @secure
18837
18837
  * @response `201` `OperationRequestEntityDto`
18838
18838
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18839
18839
  */
18840
- requestDeposit: function (tenantId, userId, data, params) {
18840
+ requestDepositOperation: function (tenantId, userId, data, params) {
18841
18841
  if (params === void 0) { params = {}; }
18842
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/deposit"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18842
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/requests/deposit"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18843
18843
  },
18844
18844
  /**
18845
18845
  * No description
18846
18846
  *
18847
18847
  * @tags Tenant Users Operation Requests
18848
- * @name RequestWithdraw
18849
- * @request POST:/tenants/{tenantId}/users/userId/requests/withdraw
18848
+ * @name RequestWithdrawOperation
18849
+ * @request POST:/tenants/{tenantId}/users/{userId}/requests/withdraw
18850
18850
  * @secure
18851
18851
  * @response `201` `OperationRequestEntityDto`
18852
18852
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18853
18853
  */
18854
- requestWithdraw: function (tenantId, userId, data, params) {
18854
+ requestWithdrawOperation: function (tenantId, userId, data, params) {
18855
18855
  if (params === void 0) { params = {}; }
18856
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/withdraw"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18856
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/requests/withdraw"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18857
18857
  },
18858
18858
  /**
18859
18859
  * No description
@@ -18899,6 +18899,34 @@ var Api = /** @class */ (function (_super) {
18899
18899
  if (params === void 0) { params = {}; }
18900
18900
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/cancel"), method: "PATCH", secure: true }, params));
18901
18901
  },
18902
+ /**
18903
+ * No description
18904
+ *
18905
+ * @tags Admin Tenant Operation Requests
18906
+ * @name CancelTenantOperationRequest
18907
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/cancel
18908
+ * @secure
18909
+ * @response `204` `void`
18910
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
18911
+ */
18912
+ cancelTenantOperationRequest: function (tenantId, requestId, data, params) {
18913
+ if (params === void 0) { params = {}; }
18914
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/cancel"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
18915
+ },
18916
+ /**
18917
+ * No description
18918
+ *
18919
+ * @tags Admin Tenant Operation Requests
18920
+ * @name ConfirmTenantDepositRequest
18921
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/confirm-deposit
18922
+ * @secure
18923
+ * @response `204` `void`
18924
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
18925
+ */
18926
+ confirmTenantDepositRequest: function (tenantId, requestId, params) {
18927
+ if (params === void 0) { params = {}; }
18928
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/confirm-deposit"), method: "PATCH", secure: true }, params));
18929
+ },
18902
18930
  /**
18903
18931
  * No description
18904
18932
  *
@@ -18913,6 +18941,20 @@ var Api = /** @class */ (function (_super) {
18913
18941
  if (params === void 0) { params = {}; }
18914
18942
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/confirm"), method: "PATCH", secure: true }, params));
18915
18943
  },
18944
+ /**
18945
+ * No description
18946
+ *
18947
+ * @tags Admin Tenant Operation Requests
18948
+ * @name ConfirmTenantWithdrawRequest
18949
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/confirm-withdraw
18950
+ * @secure
18951
+ * @response `204` `void`
18952
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
18953
+ */
18954
+ confirmTenantWithdrawRequest: function (tenantId, requestId, data, params) {
18955
+ if (params === void 0) { params = {}; }
18956
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/confirm-withdraw"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
18957
+ },
18916
18958
  /**
18917
18959
  * No description
18918
18960
  *
@@ -19361,6 +19403,20 @@ var Api = /** @class */ (function (_super) {
19361
19403
  if (params === void 0) { params = {}; }
19362
19404
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId), method: "GET", secure: true, format: "json" }, params));
19363
19405
  },
19406
+ /**
19407
+ * No description
19408
+ *
19409
+ * @tags Admin Tenant Operation Requests
19410
+ * @name GetTenantOperationRequestById
19411
+ * @request GET:/admin/tenants/{tenantId}/requests/{requestId}
19412
+ * @secure
19413
+ * @response `200` `OperationRequestEntityDto`
19414
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19415
+ */
19416
+ getTenantOperationRequestById: function (tenantId, requestId, params) {
19417
+ if (params === void 0) { params = {}; }
19418
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
19419
+ },
19364
19420
  /**
19365
19421
  * No description
19366
19422
  *
@@ -19585,6 +19641,20 @@ var Api = /** @class */ (function (_super) {
19585
19641
  if (params === void 0) { params = {}; }
19586
19642
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups"), method: "GET", query: query, secure: true, format: "json" }, params));
19587
19643
  },
19644
+ /**
19645
+ * No description
19646
+ *
19647
+ * @tags Admin Tenant Operation Requests
19648
+ * @name ListTenantOperationRequests
19649
+ * @request GET:/admin/tenants/{tenantId}/requests
19650
+ * @secure
19651
+ * @response `200` `OperationRequestEntityPaginatedDto`
19652
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19653
+ */
19654
+ listTenantOperationRequests: function (tenantId, query, params) {
19655
+ if (params === void 0) { params = {}; }
19656
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests"), method: "GET", query: query, secure: true, format: "json" }, params));
19657
+ },
19588
19658
  /**
19589
19659
  * No description
19590
19660
  *
@@ -19753,6 +19823,20 @@ var Api = /** @class */ (function (_super) {
19753
19823
  if (params === void 0) { params = {}; }
19754
19824
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
19755
19825
  },
19826
+ /**
19827
+ * No description
19828
+ *
19829
+ * @tags Admin Tenant Operation Requests
19830
+ * @name ProcessTenantDepositRequest
19831
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/process-deposit
19832
+ * @secure
19833
+ * @response `204` `void`
19834
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19835
+ */
19836
+ processTenantDepositRequest: function (tenantId, requestId, data, params) {
19837
+ if (params === void 0) { params = {}; }
19838
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/process-deposit"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
19839
+ },
19756
19840
  /**
19757
19841
  * No description
19758
19842
  *
@@ -19767,6 +19851,62 @@ var Api = /** @class */ (function (_super) {
19767
19851
  if (params === void 0) { params = {}; }
19768
19852
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", secure: true }, params));
19769
19853
  },
19854
+ /**
19855
+ * No description
19856
+ *
19857
+ * @tags Admin Tenant Operation Requests
19858
+ * @name ProcessTenantWithdrawRequest
19859
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/process-withdraw
19860
+ * @secure
19861
+ * @response `204` `void`
19862
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19863
+ */
19864
+ processTenantWithdrawRequest: function (tenantId, requestId, data, params) {
19865
+ if (params === void 0) { params = {}; }
19866
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/process-withdraw"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
19867
+ },
19868
+ /**
19869
+ * No description
19870
+ *
19871
+ * @tags Admin Tenant Operation Requests
19872
+ * @name RefuseTenantOperationRequest
19873
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/refuse
19874
+ * @secure
19875
+ * @response `204` `void`
19876
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19877
+ */
19878
+ refuseTenantOperationRequest: function (tenantId, requestId, data, params) {
19879
+ if (params === void 0) { params = {}; }
19880
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/refuse"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
19881
+ },
19882
+ /**
19883
+ * No description
19884
+ *
19885
+ * @tags Admin Tenant Operation Requests
19886
+ * @name SetTenantOperationRequestAsProcessing
19887
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing
19888
+ * @secure
19889
+ * @response `204` `void`
19890
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19891
+ */
19892
+ setTenantOperationRequestAsProcessing: function (tenantId, requestId, params) {
19893
+ if (params === void 0) { params = {}; }
19894
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/set-processing"), method: "PATCH", secure: true }, params));
19895
+ },
19896
+ /**
19897
+ * No description
19898
+ *
19899
+ * @tags Admin Tenant Operation Groups
19900
+ * @name SyncTenantOperationGroupWithSnapshot
19901
+ * @request PUT:/admin/tenants/{tenantId}/operation-groups/{groupId}
19902
+ * @secure
19903
+ * @response `200` `OperationGroupEntityDto`
19904
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
19905
+ */
19906
+ syncTenantOperationGroupWithSnapshot: function (tenantId, groupId, data, params) {
19907
+ if (params === void 0) { params = {}; }
19908
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId), method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
19909
+ },
19770
19910
  /**
19771
19911
  * No description
19772
19912
  *
@@ -19963,6 +20103,20 @@ var Api = /** @class */ (function (_super) {
19963
20103
  if (params === void 0) { params = {}; }
19964
20104
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
19965
20105
  },
20106
+ /**
20107
+ * No description
20108
+ *
20109
+ * @tags Admin Tenant Operation Requests
20110
+ * @name UpdateTenantWithdrawRequestDeliverState
20111
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/withdraw-deliver-state
20112
+ * @secure
20113
+ * @response `204` `void`
20114
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
20115
+ */
20116
+ updateTenantWithdrawRequestDeliverState: function (tenantId, requestId, data, params) {
20117
+ if (params === void 0) { params = {}; }
20118
+ 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));
20119
+ },
19966
20120
  };
19967
20121
  return _this;
19968
20122
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thelllabs/winehaus-sdk",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "Winehaus SDK",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",