@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.
@@ -332,15 +332,15 @@ var Api = /** @class */ (function (_super) {
332
332
  * No description
333
333
  *
334
334
  * @tags Tenant Users Operation Requests
335
- * @name CancelRequest
336
- * @request PATCH:/tenants/{tenantId}/users/userId/requests/{requestId}/cancel
335
+ * @name CancelUserOperationRequest
336
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/requests/{requestId}/cancel
337
337
  * @secure
338
- * @response `200` `void`
338
+ * @response `204` `void`
339
339
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
340
340
  */
341
- cancelRequest: function (tenantId, userId, requestId, params) {
341
+ cancelUserOperationRequest: function (tenantId, userId, requestId, data, params) {
342
342
  if (params === void 0) { params = {}; }
343
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/").concat(requestId, "/cancel"), method: "PATCH", secure: true }, params));
343
+ 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));
344
344
  },
345
345
  /**
346
346
  * No description
@@ -361,14 +361,14 @@ var Api = /** @class */ (function (_super) {
361
361
  *
362
362
  * @tags Tenant Users
363
363
  * @name CreateUserAddress
364
- * @request POST:/tenants/{tenantId}/users/userId/addresses
364
+ * @request POST:/tenants/{tenantId}/users/{userId}/addresses
365
365
  * @secure
366
366
  * @response `201` `AddressEntityDto`
367
367
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
368
368
  */
369
369
  createUserAddress: function (tenantId, userId, data, params) {
370
370
  if (params === void 0) { params = {}; }
371
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
371
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
372
372
  },
373
373
  /**
374
374
  * No description
@@ -389,14 +389,14 @@ var Api = /** @class */ (function (_super) {
389
389
  *
390
390
  * @tags Tenant Users
391
391
  * @name DeleteUserAddress
392
- * @request DELETE:/tenants/{tenantId}/users/userId/addresses/{addressId}
392
+ * @request DELETE:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
393
393
  * @secure
394
394
  * @response `204` `void`
395
395
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
396
396
  */
397
397
  deleteUserAddress: function (tenantId, userId, addressId, params) {
398
398
  if (params === void 0) { params = {}; }
399
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses/").concat(addressId), method: "DELETE", secure: true }, params));
399
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "DELETE", secure: true }, params));
400
400
  },
401
401
  /**
402
402
  * No description
@@ -445,14 +445,14 @@ var Api = /** @class */ (function (_super) {
445
445
  *
446
446
  * @tags Tenant Users Operation Requests
447
447
  * @name GetUserOperationRequestById
448
- * @request GET:/tenants/{tenantId}/users/userId/requests/{requestId}
448
+ * @request GET:/tenants/{tenantId}/users/{userId}/requests/{requestId}
449
449
  * @secure
450
450
  * @response `200` `OperationRequestEntityDto`
451
451
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
452
452
  */
453
453
  getUserOperationRequestById: function (tenantId, userId, requestId, params) {
454
454
  if (params === void 0) { params = {}; }
455
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
455
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
456
456
  },
457
457
  /**
458
458
  * No description
@@ -473,56 +473,56 @@ var Api = /** @class */ (function (_super) {
473
473
  *
474
474
  * @tags Tenant Users
475
475
  * @name ListUserAddresses
476
- * @request GET:/tenants/{tenantId}/users/userId/addresses
476
+ * @request GET:/tenants/{tenantId}/users/{userId}/addresses
477
477
  * @secure
478
478
  * @response `200` `AddressEntityPaginatedDto`
479
479
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
480
480
  */
481
481
  listUserAddresses: function (tenantId, userId, query, params) {
482
482
  if (params === void 0) { params = {}; }
483
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
483
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
484
484
  },
485
485
  /**
486
486
  * No description
487
487
  *
488
488
  * @tags Tenant Users Operation Requests
489
489
  * @name ListUserOperationRequests
490
- * @request GET:/tenants/{tenantId}/users/userId/requests
490
+ * @request GET:/tenants/{tenantId}/users/{userId}/requests
491
491
  * @secure
492
492
  * @response `200` `OperationRequestEntityPaginatedDto`
493
493
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
494
494
  */
495
495
  listUserOperationRequests: function (tenantId, userId, query, params) {
496
496
  if (params === void 0) { params = {}; }
497
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests"), method: "GET", query: query, secure: true, format: "json" }, params));
497
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/requests"), method: "GET", query: query, secure: true, format: "json" }, params));
498
498
  },
499
499
  /**
500
500
  * No description
501
501
  *
502
502
  * @tags Tenant Users Operation Requests
503
- * @name RequestDeposit
504
- * @request POST:/tenants/{tenantId}/users/userId/requests/deposit
503
+ * @name RequestDepositOperation
504
+ * @request POST:/tenants/{tenantId}/users/{userId}/requests/deposit
505
505
  * @secure
506
506
  * @response `201` `OperationRequestEntityDto`
507
507
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
508
508
  */
509
- requestDeposit: function (tenantId, userId, data, params) {
509
+ requestDepositOperation: function (tenantId, userId, data, params) {
510
510
  if (params === void 0) { params = {}; }
511
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/deposit"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
511
+ 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));
512
512
  },
513
513
  /**
514
514
  * No description
515
515
  *
516
516
  * @tags Tenant Users Operation Requests
517
- * @name RequestWithdraw
518
- * @request POST:/tenants/{tenantId}/users/userId/requests/withdraw
517
+ * @name RequestWithdrawOperation
518
+ * @request POST:/tenants/{tenantId}/users/{userId}/requests/withdraw
519
519
  * @secure
520
520
  * @response `201` `OperationRequestEntityDto`
521
521
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
522
522
  */
523
- requestWithdraw: function (tenantId, userId, data, params) {
523
+ requestWithdrawOperation: function (tenantId, userId, data, params) {
524
524
  if (params === void 0) { params = {}; }
525
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/withdraw"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
525
+ 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));
526
526
  },
527
527
  /**
528
528
  * No description
@@ -568,6 +568,34 @@ var Api = /** @class */ (function (_super) {
568
568
  if (params === void 0) { params = {}; }
569
569
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/cancel"), method: "PATCH", secure: true }, params));
570
570
  },
571
+ /**
572
+ * No description
573
+ *
574
+ * @tags Admin Tenant Operation Requests
575
+ * @name CancelTenantOperationRequest
576
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/cancel
577
+ * @secure
578
+ * @response `204` `void`
579
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
580
+ */
581
+ cancelTenantOperationRequest: function (tenantId, requestId, data, params) {
582
+ if (params === void 0) { params = {}; }
583
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/cancel"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
584
+ },
585
+ /**
586
+ * No description
587
+ *
588
+ * @tags Admin Tenant Operation Requests
589
+ * @name ConfirmTenantDepositRequest
590
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/confirm-deposit
591
+ * @secure
592
+ * @response `204` `void`
593
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
594
+ */
595
+ confirmTenantDepositRequest: function (tenantId, requestId, params) {
596
+ if (params === void 0) { params = {}; }
597
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/confirm-deposit"), method: "PATCH", secure: true }, params));
598
+ },
571
599
  /**
572
600
  * No description
573
601
  *
@@ -582,6 +610,20 @@ var Api = /** @class */ (function (_super) {
582
610
  if (params === void 0) { params = {}; }
583
611
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/confirm"), method: "PATCH", secure: true }, params));
584
612
  },
613
+ /**
614
+ * No description
615
+ *
616
+ * @tags Admin Tenant Operation Requests
617
+ * @name ConfirmTenantWithdrawRequest
618
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/confirm-withdraw
619
+ * @secure
620
+ * @response `204` `void`
621
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
622
+ */
623
+ confirmTenantWithdrawRequest: function (tenantId, requestId, data, params) {
624
+ if (params === void 0) { params = {}; }
625
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/confirm-withdraw"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
626
+ },
585
627
  /**
586
628
  * No description
587
629
  *
@@ -1030,6 +1072,20 @@ var Api = /** @class */ (function (_super) {
1030
1072
  if (params === void 0) { params = {}; }
1031
1073
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId), method: "GET", secure: true, format: "json" }, params));
1032
1074
  },
1075
+ /**
1076
+ * No description
1077
+ *
1078
+ * @tags Admin Tenant Operation Requests
1079
+ * @name GetTenantOperationRequestById
1080
+ * @request GET:/admin/tenants/{tenantId}/requests/{requestId}
1081
+ * @secure
1082
+ * @response `200` `OperationRequestEntityDto`
1083
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1084
+ */
1085
+ getTenantOperationRequestById: function (tenantId, requestId, params) {
1086
+ if (params === void 0) { params = {}; }
1087
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
1088
+ },
1033
1089
  /**
1034
1090
  * No description
1035
1091
  *
@@ -1254,6 +1310,20 @@ var Api = /** @class */ (function (_super) {
1254
1310
  if (params === void 0) { params = {}; }
1255
1311
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups"), method: "GET", query: query, secure: true, format: "json" }, params));
1256
1312
  },
1313
+ /**
1314
+ * No description
1315
+ *
1316
+ * @tags Admin Tenant Operation Requests
1317
+ * @name ListTenantOperationRequests
1318
+ * @request GET:/admin/tenants/{tenantId}/requests
1319
+ * @secure
1320
+ * @response `200` `OperationRequestEntityPaginatedDto`
1321
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1322
+ */
1323
+ listTenantOperationRequests: function (tenantId, query, params) {
1324
+ if (params === void 0) { params = {}; }
1325
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests"), method: "GET", query: query, secure: true, format: "json" }, params));
1326
+ },
1257
1327
  /**
1258
1328
  * No description
1259
1329
  *
@@ -1422,6 +1492,20 @@ var Api = /** @class */ (function (_super) {
1422
1492
  if (params === void 0) { params = {}; }
1423
1493
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
1424
1494
  },
1495
+ /**
1496
+ * No description
1497
+ *
1498
+ * @tags Admin Tenant Operation Requests
1499
+ * @name ProcessTenantDepositRequest
1500
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/process-deposit
1501
+ * @secure
1502
+ * @response `204` `void`
1503
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1504
+ */
1505
+ processTenantDepositRequest: function (tenantId, requestId, data, params) {
1506
+ if (params === void 0) { params = {}; }
1507
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/process-deposit"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
1508
+ },
1425
1509
  /**
1426
1510
  * No description
1427
1511
  *
@@ -1436,6 +1520,62 @@ var Api = /** @class */ (function (_super) {
1436
1520
  if (params === void 0) { params = {}; }
1437
1521
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", secure: true }, params));
1438
1522
  },
1523
+ /**
1524
+ * No description
1525
+ *
1526
+ * @tags Admin Tenant Operation Requests
1527
+ * @name ProcessTenantWithdrawRequest
1528
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/process-withdraw
1529
+ * @secure
1530
+ * @response `204` `void`
1531
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1532
+ */
1533
+ processTenantWithdrawRequest: function (tenantId, requestId, data, params) {
1534
+ if (params === void 0) { params = {}; }
1535
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/process-withdraw"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
1536
+ },
1537
+ /**
1538
+ * No description
1539
+ *
1540
+ * @tags Admin Tenant Operation Requests
1541
+ * @name RefuseTenantOperationRequest
1542
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/refuse
1543
+ * @secure
1544
+ * @response `204` `void`
1545
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1546
+ */
1547
+ refuseTenantOperationRequest: function (tenantId, requestId, data, params) {
1548
+ if (params === void 0) { params = {}; }
1549
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/refuse"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
1550
+ },
1551
+ /**
1552
+ * No description
1553
+ *
1554
+ * @tags Admin Tenant Operation Requests
1555
+ * @name SetTenantOperationRequestAsProcessing
1556
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing
1557
+ * @secure
1558
+ * @response `204` `void`
1559
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1560
+ */
1561
+ setTenantOperationRequestAsProcessing: function (tenantId, requestId, params) {
1562
+ if (params === void 0) { params = {}; }
1563
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/set-processing"), method: "PATCH", secure: true }, params));
1564
+ },
1565
+ /**
1566
+ * No description
1567
+ *
1568
+ * @tags Admin Tenant Operation Groups
1569
+ * @name SyncTenantOperationGroupWithSnapshot
1570
+ * @request PUT:/admin/tenants/{tenantId}/operation-groups/{groupId}
1571
+ * @secure
1572
+ * @response `200` `OperationGroupEntityDto`
1573
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1574
+ */
1575
+ syncTenantOperationGroupWithSnapshot: function (tenantId, groupId, data, params) {
1576
+ if (params === void 0) { params = {}; }
1577
+ 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));
1578
+ },
1439
1579
  /**
1440
1580
  * No description
1441
1581
  *
@@ -1632,6 +1772,20 @@ var Api = /** @class */ (function (_super) {
1632
1772
  if (params === void 0) { params = {}; }
1633
1773
  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));
1634
1774
  },
1775
+ /**
1776
+ * No description
1777
+ *
1778
+ * @tags Admin Tenant Operation Requests
1779
+ * @name UpdateTenantWithdrawRequestDeliverState
1780
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/withdraw-deliver-state
1781
+ * @secure
1782
+ * @response `204` `void`
1783
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1784
+ */
1785
+ updateTenantWithdrawRequestDeliverState: function (tenantId, requestId, data, params) {
1786
+ if (params === void 0) { params = {}; }
1787
+ 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));
1788
+ },
1635
1789
  };
1636
1790
  return _this;
1637
1791
  }