@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.
@@ -338,15 +338,15 @@ var Api = /** @class */ (function (_super) {
338
338
  * No description
339
339
  *
340
340
  * @tags Tenant Users Operation Requests
341
- * @name CancelRequest
342
- * @request PATCH:/tenants/{tenantId}/users/userId/requests/{requestId}/cancel
341
+ * @name CancelUserOperationRequest
342
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/requests/{requestId}/cancel
343
343
  * @secure
344
- * @response `200` `void`
344
+ * @response `204` `void`
345
345
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
346
346
  */
347
- cancelRequest: function (tenantId, userId, requestId, params) {
347
+ cancelUserOperationRequest: function (tenantId, userId, requestId, data, params) {
348
348
  if (params === void 0) { params = {}; }
349
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/").concat(requestId, "/cancel"), method: "PATCH", secure: true }, params));
349
+ 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));
350
350
  },
351
351
  /**
352
352
  * No description
@@ -367,14 +367,14 @@ var Api = /** @class */ (function (_super) {
367
367
  *
368
368
  * @tags Tenant Users
369
369
  * @name CreateUserAddress
370
- * @request POST:/tenants/{tenantId}/users/userId/addresses
370
+ * @request POST:/tenants/{tenantId}/users/{userId}/addresses
371
371
  * @secure
372
372
  * @response `201` `AddressEntityDto`
373
373
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
374
374
  */
375
375
  createUserAddress: function (tenantId, userId, data, params) {
376
376
  if (params === void 0) { params = {}; }
377
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
377
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
378
378
  },
379
379
  /**
380
380
  * No description
@@ -395,14 +395,14 @@ var Api = /** @class */ (function (_super) {
395
395
  *
396
396
  * @tags Tenant Users
397
397
  * @name DeleteUserAddress
398
- * @request DELETE:/tenants/{tenantId}/users/userId/addresses/{addressId}
398
+ * @request DELETE:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
399
399
  * @secure
400
400
  * @response `204` `void`
401
401
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
402
402
  */
403
403
  deleteUserAddress: function (tenantId, userId, addressId, params) {
404
404
  if (params === void 0) { params = {}; }
405
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses/").concat(addressId), method: "DELETE", secure: true }, params));
405
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "DELETE", secure: true }, params));
406
406
  },
407
407
  /**
408
408
  * No description
@@ -451,14 +451,14 @@ var Api = /** @class */ (function (_super) {
451
451
  *
452
452
  * @tags Tenant Users Operation Requests
453
453
  * @name GetUserOperationRequestById
454
- * @request GET:/tenants/{tenantId}/users/userId/requests/{requestId}
454
+ * @request GET:/tenants/{tenantId}/users/{userId}/requests/{requestId}
455
455
  * @secure
456
456
  * @response `200` `OperationRequestEntityDto`
457
457
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
458
458
  */
459
459
  getUserOperationRequestById: function (tenantId, userId, requestId, params) {
460
460
  if (params === void 0) { params = {}; }
461
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
461
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
462
462
  },
463
463
  /**
464
464
  * No description
@@ -479,56 +479,56 @@ var Api = /** @class */ (function (_super) {
479
479
  *
480
480
  * @tags Tenant Users
481
481
  * @name ListUserAddresses
482
- * @request GET:/tenants/{tenantId}/users/userId/addresses
482
+ * @request GET:/tenants/{tenantId}/users/{userId}/addresses
483
483
  * @secure
484
484
  * @response `200` `AddressEntityPaginatedDto`
485
485
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
486
486
  */
487
487
  listUserAddresses: function (tenantId, userId, query, params) {
488
488
  if (params === void 0) { params = {}; }
489
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
489
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
490
490
  },
491
491
  /**
492
492
  * No description
493
493
  *
494
494
  * @tags Tenant Users Operation Requests
495
495
  * @name ListUserOperationRequests
496
- * @request GET:/tenants/{tenantId}/users/userId/requests
496
+ * @request GET:/tenants/{tenantId}/users/{userId}/requests
497
497
  * @secure
498
498
  * @response `200` `OperationRequestEntityPaginatedDto`
499
499
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
500
500
  */
501
501
  listUserOperationRequests: function (tenantId, userId, query, params) {
502
502
  if (params === void 0) { params = {}; }
503
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests"), method: "GET", query: query, secure: true, format: "json" }, params));
503
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/requests"), method: "GET", query: query, secure: true, format: "json" }, params));
504
504
  },
505
505
  /**
506
506
  * No description
507
507
  *
508
508
  * @tags Tenant Users Operation Requests
509
- * @name RequestDeposit
510
- * @request POST:/tenants/{tenantId}/users/userId/requests/deposit
509
+ * @name RequestDepositOperation
510
+ * @request POST:/tenants/{tenantId}/users/{userId}/requests/deposit
511
511
  * @secure
512
512
  * @response `201` `OperationRequestEntityDto`
513
513
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
514
514
  */
515
- requestDeposit: function (tenantId, userId, data, params) {
515
+ requestDepositOperation: function (tenantId, userId, data, params) {
516
516
  if (params === void 0) { params = {}; }
517
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/deposit"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
517
+ 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));
518
518
  },
519
519
  /**
520
520
  * No description
521
521
  *
522
522
  * @tags Tenant Users Operation Requests
523
- * @name RequestWithdraw
524
- * @request POST:/tenants/{tenantId}/users/userId/requests/withdraw
523
+ * @name RequestWithdrawOperation
524
+ * @request POST:/tenants/{tenantId}/users/{userId}/requests/withdraw
525
525
  * @secure
526
526
  * @response `201` `OperationRequestEntityDto`
527
527
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
528
528
  */
529
- requestWithdraw: function (tenantId, userId, data, params) {
529
+ requestWithdrawOperation: function (tenantId, userId, data, params) {
530
530
  if (params === void 0) { params = {}; }
531
- return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/requests/withdraw"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
531
+ 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));
532
532
  },
533
533
  /**
534
534
  * No description
@@ -574,6 +574,34 @@ var Api = /** @class */ (function (_super) {
574
574
  if (params === void 0) { params = {}; }
575
575
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/cancel"), method: "PATCH", secure: true }, params));
576
576
  },
577
+ /**
578
+ * No description
579
+ *
580
+ * @tags Admin Tenant Operation Requests
581
+ * @name CancelTenantOperationRequest
582
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/cancel
583
+ * @secure
584
+ * @response `204` `void`
585
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
586
+ */
587
+ cancelTenantOperationRequest: function (tenantId, requestId, data, params) {
588
+ if (params === void 0) { params = {}; }
589
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/cancel"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
590
+ },
591
+ /**
592
+ * No description
593
+ *
594
+ * @tags Admin Tenant Operation Requests
595
+ * @name ConfirmTenantDepositRequest
596
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/confirm-deposit
597
+ * @secure
598
+ * @response `204` `void`
599
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
600
+ */
601
+ confirmTenantDepositRequest: function (tenantId, requestId, params) {
602
+ if (params === void 0) { params = {}; }
603
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/confirm-deposit"), method: "PATCH", secure: true }, params));
604
+ },
577
605
  /**
578
606
  * No description
579
607
  *
@@ -588,6 +616,20 @@ var Api = /** @class */ (function (_super) {
588
616
  if (params === void 0) { params = {}; }
589
617
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/confirm"), method: "PATCH", secure: true }, params));
590
618
  },
619
+ /**
620
+ * No description
621
+ *
622
+ * @tags Admin Tenant Operation Requests
623
+ * @name ConfirmTenantWithdrawRequest
624
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/confirm-withdraw
625
+ * @secure
626
+ * @response `204` `void`
627
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
628
+ */
629
+ confirmTenantWithdrawRequest: function (tenantId, requestId, data, params) {
630
+ if (params === void 0) { params = {}; }
631
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/confirm-withdraw"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
632
+ },
591
633
  /**
592
634
  * No description
593
635
  *
@@ -1036,6 +1078,20 @@ var Api = /** @class */ (function (_super) {
1036
1078
  if (params === void 0) { params = {}; }
1037
1079
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId), method: "GET", secure: true, format: "json" }, params));
1038
1080
  },
1081
+ /**
1082
+ * No description
1083
+ *
1084
+ * @tags Admin Tenant Operation Requests
1085
+ * @name GetTenantOperationRequestById
1086
+ * @request GET:/admin/tenants/{tenantId}/requests/{requestId}
1087
+ * @secure
1088
+ * @response `200` `OperationRequestEntityDto`
1089
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1090
+ */
1091
+ getTenantOperationRequestById: function (tenantId, requestId, params) {
1092
+ if (params === void 0) { params = {}; }
1093
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId), method: "GET", secure: true, format: "json" }, params));
1094
+ },
1039
1095
  /**
1040
1096
  * No description
1041
1097
  *
@@ -1260,6 +1316,20 @@ var Api = /** @class */ (function (_super) {
1260
1316
  if (params === void 0) { params = {}; }
1261
1317
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups"), method: "GET", query: query, secure: true, format: "json" }, params));
1262
1318
  },
1319
+ /**
1320
+ * No description
1321
+ *
1322
+ * @tags Admin Tenant Operation Requests
1323
+ * @name ListTenantOperationRequests
1324
+ * @request GET:/admin/tenants/{tenantId}/requests
1325
+ * @secure
1326
+ * @response `200` `OperationRequestEntityPaginatedDto`
1327
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1328
+ */
1329
+ listTenantOperationRequests: function (tenantId, query, params) {
1330
+ if (params === void 0) { params = {}; }
1331
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests"), method: "GET", query: query, secure: true, format: "json" }, params));
1332
+ },
1263
1333
  /**
1264
1334
  * No description
1265
1335
  *
@@ -1428,6 +1498,20 @@ var Api = /** @class */ (function (_super) {
1428
1498
  if (params === void 0) { params = {}; }
1429
1499
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
1430
1500
  },
1501
+ /**
1502
+ * No description
1503
+ *
1504
+ * @tags Admin Tenant Operation Requests
1505
+ * @name ProcessTenantDepositRequest
1506
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/process-deposit
1507
+ * @secure
1508
+ * @response `204` `void`
1509
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1510
+ */
1511
+ processTenantDepositRequest: function (tenantId, requestId, data, params) {
1512
+ if (params === void 0) { params = {}; }
1513
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/process-deposit"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
1514
+ },
1431
1515
  /**
1432
1516
  * No description
1433
1517
  *
@@ -1442,6 +1526,62 @@ var Api = /** @class */ (function (_super) {
1442
1526
  if (params === void 0) { params = {}; }
1443
1527
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", secure: true }, params));
1444
1528
  },
1529
+ /**
1530
+ * No description
1531
+ *
1532
+ * @tags Admin Tenant Operation Requests
1533
+ * @name ProcessTenantWithdrawRequest
1534
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/process-withdraw
1535
+ * @secure
1536
+ * @response `204` `void`
1537
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1538
+ */
1539
+ processTenantWithdrawRequest: function (tenantId, requestId, data, params) {
1540
+ if (params === void 0) { params = {}; }
1541
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/process-withdraw"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
1542
+ },
1543
+ /**
1544
+ * No description
1545
+ *
1546
+ * @tags Admin Tenant Operation Requests
1547
+ * @name RefuseTenantOperationRequest
1548
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/refuse
1549
+ * @secure
1550
+ * @response `204` `void`
1551
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1552
+ */
1553
+ refuseTenantOperationRequest: function (tenantId, requestId, data, params) {
1554
+ if (params === void 0) { params = {}; }
1555
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/refuse"), method: "PATCH", body: data, secure: true, type: ContentType.Json }, params));
1556
+ },
1557
+ /**
1558
+ * No description
1559
+ *
1560
+ * @tags Admin Tenant Operation Requests
1561
+ * @name SetTenantOperationRequestAsProcessing
1562
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/set-processing
1563
+ * @secure
1564
+ * @response `204` `void`
1565
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1566
+ */
1567
+ setTenantOperationRequestAsProcessing: function (tenantId, requestId, params) {
1568
+ if (params === void 0) { params = {}; }
1569
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/requests/").concat(requestId, "/set-processing"), method: "PATCH", secure: true }, params));
1570
+ },
1571
+ /**
1572
+ * No description
1573
+ *
1574
+ * @tags Admin Tenant Operation Groups
1575
+ * @name SyncTenantOperationGroupWithSnapshot
1576
+ * @request PUT:/admin/tenants/{tenantId}/operation-groups/{groupId}
1577
+ * @secure
1578
+ * @response `200` `OperationGroupEntityDto`
1579
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1580
+ */
1581
+ syncTenantOperationGroupWithSnapshot: function (tenantId, groupId, data, params) {
1582
+ if (params === void 0) { params = {}; }
1583
+ 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));
1584
+ },
1445
1585
  /**
1446
1586
  * No description
1447
1587
  *
@@ -1638,6 +1778,20 @@ var Api = /** @class */ (function (_super) {
1638
1778
  if (params === void 0) { params = {}; }
1639
1779
  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));
1640
1780
  },
1781
+ /**
1782
+ * No description
1783
+ *
1784
+ * @tags Admin Tenant Operation Requests
1785
+ * @name UpdateTenantWithdrawRequestDeliverState
1786
+ * @request PATCH:/admin/tenants/{tenantId}/requests/{requestId}/withdraw-deliver-state
1787
+ * @secure
1788
+ * @response `204` `void`
1789
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1790
+ */
1791
+ updateTenantWithdrawRequestDeliverState: function (tenantId, requestId, data, params) {
1792
+ if (params === void 0) { params = {}; }
1793
+ 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));
1794
+ },
1641
1795
  };
1642
1796
  return _this;
1643
1797
  }