@thelllabs/winehaus-sdk 0.0.16 → 0.0.17

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
18666
+ * @name CancelUserOperationRequest
18667
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/userId/requests/").concat(requestId, "/cancel"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
18675
18675
  },
18676
18676
  /**
18677
18677
  * No description
@@ -18831,13 +18831,13 @@ var Api = /** @class */ (function (_super) {
18831
18831
  * No description
18832
18832
  *
18833
18833
  * @tags Tenant Users Operation Requests
18834
- * @name RequestDeposit
18834
+ * @name RequestDepositOperation
18835
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
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));
18843
18843
  },
@@ -18845,13 +18845,13 @@ var Api = /** @class */ (function (_super) {
18845
18845
  * No description
18846
18846
  *
18847
18847
  * @tags Tenant Users Operation Requests
18848
- * @name RequestWithdraw
18848
+ * @name RequestWithdrawOperation
18849
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
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));
18857
18857
  },
@@ -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.17",
4
4
  "description": "Winehaus SDK",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",