@thelllabs/winehaus-sdk 0.0.18 → 0.0.20

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.
@@ -85,11 +85,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
85
85
  return (mod && mod.__esModule) ? mod : { "default": mod };
86
86
  };
87
87
  Object.defineProperty(exports, "__esModule", { value: true });
88
- exports.Api = exports.HttpClient = exports.ContentType = exports.WithdrawRequestDeliverTypeEnum = exports.WithdrawRequestDeliverStatusEnum = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.PhoneTypeEnum = exports.OrderByEnum = exports.OperationRequestTypeEnum = exports.OperationRequestStatusEnum = exports.OperationGroupStatusEnum = exports.CreateOnlyOperationGroupStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
88
+ exports.Api = exports.HttpClient = exports.ContentType = exports.WithdrawRequestDeliverTypeEnum = exports.WithdrawRequestDeliverStatusEnum = exports.UserNotificationTypeEnum = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.PhoneTypeEnum = exports.OrderByEnum = exports.OperationRequestTypeEnum = exports.OperationRequestStatusEnum = exports.OperationGroupStatusEnum = exports.CreateOnlyOperationGroupStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
89
89
  var CaseOperationLogTypeEnum;
90
90
  (function (CaseOperationLogTypeEnum) {
91
91
  CaseOperationLogTypeEnum["RequestAccepted"] = "request_accepted";
92
92
  CaseOperationLogTypeEnum["StatusChange"] = "status_change";
93
+ CaseOperationLogTypeEnum["Synced"] = "synced";
94
+ CaseOperationLogTypeEnum["Reverted"] = "reverted";
93
95
  })(CaseOperationLogTypeEnum = exports.CaseOperationLogTypeEnum || (exports.CaseOperationLogTypeEnum = {}));
94
96
  var CaseOperationStatusEnum;
95
97
  (function (CaseOperationStatusEnum) {
@@ -152,6 +154,16 @@ var TenantUserStatusEnum;
152
154
  TenantUserStatusEnum["Enabled"] = "enabled";
153
155
  TenantUserStatusEnum["Blocked"] = "blocked";
154
156
  })(TenantUserStatusEnum = exports.TenantUserStatusEnum || (exports.TenantUserStatusEnum = {}));
157
+ var UserNotificationTypeEnum;
158
+ (function (UserNotificationTypeEnum) {
159
+ UserNotificationTypeEnum["WithdrawRequestCreated"] = "withdraw_request_created";
160
+ UserNotificationTypeEnum["WithdrawRequestStatusUpdated"] = "withdraw_request_status_updated";
161
+ UserNotificationTypeEnum["WithdrawRequestConcluded"] = "withdraw_request_concluded";
162
+ UserNotificationTypeEnum["DepositRequestCreated"] = "deposit_request_created";
163
+ UserNotificationTypeEnum["DepositRequestStatusUpdated"] = "deposit_request_status_updated";
164
+ UserNotificationTypeEnum["DepositRequestConcluded"] = "deposit_request_concluded";
165
+ UserNotificationTypeEnum["Text"] = "text";
166
+ })(UserNotificationTypeEnum = exports.UserNotificationTypeEnum || (exports.UserNotificationTypeEnum = {}));
155
167
  var WithdrawRequestDeliverStatusEnum;
156
168
  (function (WithdrawRequestDeliverStatusEnum) {
157
169
  WithdrawRequestDeliverStatusEnum["Pending"] = "pending";
@@ -453,7 +465,7 @@ var Api = /** @class */ (function (_super) {
453
465
  * @name GetUserOperationRequestById
454
466
  * @request GET:/tenants/{tenantId}/users/{userId}/requests/{requestId}
455
467
  * @secure
456
- * @response `200` `OperationRequestEntityDto`
468
+ * @response `200` `FullOperationRequestEntityDto`
457
469
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
458
470
  */
459
471
  getUserOperationRequestById: function (tenantId, userId, requestId, params) {
@@ -488,6 +500,34 @@ var Api = /** @class */ (function (_super) {
488
500
  if (params === void 0) { params = {}; }
489
501
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
490
502
  },
503
+ /**
504
+ * No description
505
+ *
506
+ * @tags Tenant Users
507
+ * @name ListUserInventory
508
+ * @request GET:/tenants/{tenantId}/users/{userId}/inventory
509
+ * @secure
510
+ * @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
511
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
512
+ */
513
+ listUserInventory: function (tenantId, userId, query, params) {
514
+ if (params === void 0) { params = {}; }
515
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
516
+ },
517
+ /**
518
+ * No description
519
+ *
520
+ * @tags Tenant Users
521
+ * @name ListUserNotifications
522
+ * @request GET:/tenants/{tenantId}/users/{userId}/notifications
523
+ * @secure
524
+ * @response `200` `UserNotificationEntityPaginatedDto`
525
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
526
+ */
527
+ listUserNotifications: function (tenantId, userId, query, params) {
528
+ if (params === void 0) { params = {}; }
529
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/notifications"), method: "GET", query: query, secure: true, format: "json" }, params));
530
+ },
491
531
  /**
492
532
  * No description
493
533
  *
@@ -530,6 +570,20 @@ var Api = /** @class */ (function (_super) {
530
570
  if (params === void 0) { params = {}; }
531
571
  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
572
  },
573
+ /**
574
+ * No description
575
+ *
576
+ * @tags Tenant Users
577
+ * @name SetUserNotificationsAsRead
578
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/notifications/batch-set-read
579
+ * @secure
580
+ * @response `204` `void`
581
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
582
+ */
583
+ setUserNotificationsAsRead: function (tenantId, userId, data, params) {
584
+ if (params === void 0) { params = {}; }
585
+ 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));
586
+ },
533
587
  /**
534
588
  * No description
535
589
  *
@@ -558,6 +612,20 @@ var Api = /** @class */ (function (_super) {
558
612
  if (params === void 0) { params = {}; }
559
613
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/password"), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
560
614
  },
615
+ /**
616
+ * No description
617
+ *
618
+ * @tags Tenant Users
619
+ * @name UpdateUserAddress
620
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
621
+ * @secure
622
+ * @response `200` `AddressEntityDto`
623
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
624
+ */
625
+ updateUserAddress: function (tenantId, userId, addressId, data, params) {
626
+ if (params === void 0) { params = {}; }
627
+ 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));
628
+ },
561
629
  };
562
630
  _this.admin = {
563
631
  /**
@@ -1085,7 +1153,7 @@ var Api = /** @class */ (function (_super) {
1085
1153
  * @name GetTenantOperationRequestById
1086
1154
  * @request GET:/admin/tenants/{tenantId}/requests/{requestId}
1087
1155
  * @secure
1088
- * @response `200` `OperationRequestEntityDto`
1156
+ * @response `200` `FullOperationRequestEntityDto`
1089
1157
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1090
1158
  */
1091
1159
  getTenantOperationRequestById: function (tenantId, requestId, params) {
@@ -84,6 +84,8 @@ export var CaseOperationLogTypeEnum;
84
84
  (function (CaseOperationLogTypeEnum) {
85
85
  CaseOperationLogTypeEnum["RequestAccepted"] = "request_accepted";
86
86
  CaseOperationLogTypeEnum["StatusChange"] = "status_change";
87
+ CaseOperationLogTypeEnum["Synced"] = "synced";
88
+ CaseOperationLogTypeEnum["Reverted"] = "reverted";
87
89
  })(CaseOperationLogTypeEnum || (CaseOperationLogTypeEnum = {}));
88
90
  export var CaseOperationStatusEnum;
89
91
  (function (CaseOperationStatusEnum) {
@@ -146,6 +148,16 @@ export var TenantUserStatusEnum;
146
148
  TenantUserStatusEnum["Enabled"] = "enabled";
147
149
  TenantUserStatusEnum["Blocked"] = "blocked";
148
150
  })(TenantUserStatusEnum || (TenantUserStatusEnum = {}));
151
+ export var UserNotificationTypeEnum;
152
+ (function (UserNotificationTypeEnum) {
153
+ UserNotificationTypeEnum["WithdrawRequestCreated"] = "withdraw_request_created";
154
+ UserNotificationTypeEnum["WithdrawRequestStatusUpdated"] = "withdraw_request_status_updated";
155
+ UserNotificationTypeEnum["WithdrawRequestConcluded"] = "withdraw_request_concluded";
156
+ UserNotificationTypeEnum["DepositRequestCreated"] = "deposit_request_created";
157
+ UserNotificationTypeEnum["DepositRequestStatusUpdated"] = "deposit_request_status_updated";
158
+ UserNotificationTypeEnum["DepositRequestConcluded"] = "deposit_request_concluded";
159
+ UserNotificationTypeEnum["Text"] = "text";
160
+ })(UserNotificationTypeEnum || (UserNotificationTypeEnum = {}));
149
161
  export var WithdrawRequestDeliverStatusEnum;
150
162
  (function (WithdrawRequestDeliverStatusEnum) {
151
163
  WithdrawRequestDeliverStatusEnum["Pending"] = "pending";
@@ -447,7 +459,7 @@ var Api = /** @class */ (function (_super) {
447
459
  * @name GetUserOperationRequestById
448
460
  * @request GET:/tenants/{tenantId}/users/{userId}/requests/{requestId}
449
461
  * @secure
450
- * @response `200` `OperationRequestEntityDto`
462
+ * @response `200` `FullOperationRequestEntityDto`
451
463
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
452
464
  */
453
465
  getUserOperationRequestById: function (tenantId, userId, requestId, params) {
@@ -482,6 +494,34 @@ var Api = /** @class */ (function (_super) {
482
494
  if (params === void 0) { params = {}; }
483
495
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
484
496
  },
497
+ /**
498
+ * No description
499
+ *
500
+ * @tags Tenant Users
501
+ * @name ListUserInventory
502
+ * @request GET:/tenants/{tenantId}/users/{userId}/inventory
503
+ * @secure
504
+ * @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
505
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
506
+ */
507
+ listUserInventory: function (tenantId, userId, query, params) {
508
+ if (params === void 0) { params = {}; }
509
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
510
+ },
511
+ /**
512
+ * No description
513
+ *
514
+ * @tags Tenant Users
515
+ * @name ListUserNotifications
516
+ * @request GET:/tenants/{tenantId}/users/{userId}/notifications
517
+ * @secure
518
+ * @response `200` `UserNotificationEntityPaginatedDto`
519
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
520
+ */
521
+ listUserNotifications: function (tenantId, userId, query, params) {
522
+ if (params === void 0) { params = {}; }
523
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/notifications"), method: "GET", query: query, secure: true, format: "json" }, params));
524
+ },
485
525
  /**
486
526
  * No description
487
527
  *
@@ -524,6 +564,20 @@ var Api = /** @class */ (function (_super) {
524
564
  if (params === void 0) { params = {}; }
525
565
  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
566
  },
567
+ /**
568
+ * No description
569
+ *
570
+ * @tags Tenant Users
571
+ * @name SetUserNotificationsAsRead
572
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/notifications/batch-set-read
573
+ * @secure
574
+ * @response `204` `void`
575
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
576
+ */
577
+ setUserNotificationsAsRead: function (tenantId, userId, data, params) {
578
+ if (params === void 0) { params = {}; }
579
+ 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));
580
+ },
527
581
  /**
528
582
  * No description
529
583
  *
@@ -552,6 +606,20 @@ var Api = /** @class */ (function (_super) {
552
606
  if (params === void 0) { params = {}; }
553
607
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/password"), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
554
608
  },
609
+ /**
610
+ * No description
611
+ *
612
+ * @tags Tenant Users
613
+ * @name UpdateUserAddress
614
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
615
+ * @secure
616
+ * @response `200` `AddressEntityDto`
617
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
618
+ */
619
+ updateUserAddress: function (tenantId, userId, addressId, data, params) {
620
+ if (params === void 0) { params = {}; }
621
+ 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));
622
+ },
555
623
  };
556
624
  _this.admin = {
557
625
  /**
@@ -1079,7 +1147,7 @@ var Api = /** @class */ (function (_super) {
1079
1147
  * @name GetTenantOperationRequestById
1080
1148
  * @request GET:/admin/tenants/{tenantId}/requests/{requestId}
1081
1149
  * @secure
1082
- * @response `200` `OperationRequestEntityDto`
1150
+ * @response `200` `FullOperationRequestEntityDto`
1083
1151
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
1084
1152
  */
1085
1153
  getTenantOperationRequestById: function (tenantId, requestId, params) {
@@ -9,7 +9,7 @@ export interface AddressEntityDto {
9
9
  deletedAt?: string | null;
10
10
  /** @format uuid */
11
11
  id: string;
12
- location?: string;
12
+ location?: GeoLocationDto | null;
13
13
  name: string;
14
14
  notes?: string;
15
15
  postalCode: string;
@@ -56,19 +56,44 @@ export interface CaseEntityPaginatedDto {
56
56
  links?: PaginationLinksDto;
57
57
  meta: PaginationMetaDto;
58
58
  }
59
+ export interface CaseOperationEntityDto {
60
+ /** @format uuid */
61
+ caseId: string;
62
+ /** @format date-time */
63
+ createdAt: string;
64
+ /** @format uuid */
65
+ groupId: string;
66
+ /** @format uuid */
67
+ id: string;
68
+ /** @example [] */
69
+ logs: CaseOperationLogDto[];
70
+ /** @format uuid */
71
+ requestId?: string | null;
72
+ /** @example "processed" */
73
+ status: CaseOperationStatusEnum;
74
+ /** @format uuid */
75
+ tenantId: string;
76
+ /** @example "deposit" */
77
+ type: CaseOperationTypesEnum;
78
+ /** @format date-time */
79
+ updatedAt: string;
80
+ }
59
81
  export interface CaseOperationLogDto {
60
82
  /** @example "confirmed" */
61
83
  currentStatus?: CaseOperationStatusEnum;
62
84
  /** @example "confirmed" */
63
85
  newStatus?: CaseOperationStatusEnum;
86
+ timestamp: number;
64
87
  /** @example "request_accepted" */
65
88
  type: CaseOperationLogTypeEnum;
66
89
  /** @format uuid */
67
- userId: string;
90
+ userId?: string;
68
91
  }
69
92
  export declare enum CaseOperationLogTypeEnum {
70
93
  RequestAccepted = "request_accepted",
71
- StatusChange = "status_change"
94
+ StatusChange = "status_change",
95
+ Synced = "synced",
96
+ Reverted = "reverted"
72
97
  }
73
98
  export declare enum CaseOperationStatusEnum {
74
99
  OnHold = "on_hold",
@@ -146,7 +171,7 @@ export interface CreateAddressByTemplateDto {
146
171
  addressId?: string;
147
172
  city?: string;
148
173
  country?: string;
149
- location?: string;
174
+ location?: GeoLocationDto | null;
150
175
  name?: string;
151
176
  notes?: string;
152
177
  postalCode?: string;
@@ -157,7 +182,7 @@ export interface CreateAddressDto {
157
182
  addressLine2?: string;
158
183
  city: string;
159
184
  country: string;
160
- location?: string;
185
+ location?: GeoLocationDto | null;
161
186
  name: string;
162
187
  notes?: string;
163
188
  postalCode: string;
@@ -343,6 +368,29 @@ export interface FullOperationGroupEntityDto {
343
368
  /** @format date-time */
344
369
  updatedAt: string;
345
370
  }
371
+ export interface FullOperationRequestEntityDto {
372
+ /** @format date-time */
373
+ createdAt: string;
374
+ customer: UserEntityDto;
375
+ /** @format uuid */
376
+ customerId: string;
377
+ extraData: FullDepositRequestExtraDataDto | FullWithdrawRequestExtraDataDto;
378
+ /** @format uuid */
379
+ id: string;
380
+ operation?: CaseOperationEntityDto | null;
381
+ /** @example [] */
382
+ phones: PhoneDto[];
383
+ reason?: string | null;
384
+ /** @example "scheduled" */
385
+ status: OperationRequestStatusEnum;
386
+ /** @format uuid */
387
+ tenantId: string;
388
+ /** @example "deposit" */
389
+ type: OperationRequestTypeEnum;
390
+ /** @format date-time */
391
+ updatedAt: string;
392
+ wines?: OperationRequestWineInventoryItemEntityDto[];
393
+ }
346
394
  export interface FullWithdrawRequestExtraDataDto {
347
395
  /** @example "completed" */
348
396
  deliverStatus?: WithdrawRequestDeliverStatusEnum | null;
@@ -355,6 +403,30 @@ export interface FullWithdrawRequestExtraDataDto {
355
403
  pickupDateTime: string;
356
404
  shippingAddress?: CreateAddressByTemplateDto;
357
405
  }
406
+ export interface GeoLocationDto {
407
+ lat: number;
408
+ lng: number;
409
+ }
410
+ export interface GroupedWineInventoryItemEntityDto {
411
+ /** @min 0 */
412
+ amount: number;
413
+ bottleFormat: WineBottleFormatEntityDto;
414
+ /** @format uuid */
415
+ bottleFormatId: string;
416
+ bottleVintage: WineBottleVintageEntityDto;
417
+ /** @format uuid */
418
+ bottleVintageId: string;
419
+ /** @format uuid */
420
+ tenantId: string;
421
+ wine: WineEntityDto;
422
+ /** @format uuid */
423
+ wineId: string;
424
+ }
425
+ export interface GroupedWineInventoryItemEntityPaginatedDto {
426
+ items: GroupedWineInventoryItemEntityDto[];
427
+ links?: PaginationLinksDto;
428
+ meta: PaginationMetaDto;
429
+ }
358
430
  export interface HttpExceptionDto {
359
431
  /** @example null */
360
432
  data?: object;
@@ -457,6 +529,8 @@ export interface OperationRequestEntityDto {
457
529
  extraData: FullDepositRequestExtraDataDto | FullWithdrawRequestExtraDataDto;
458
530
  /** @format uuid */
459
531
  id: string;
532
+ /** @example [] */
533
+ phones: PhoneDto[];
460
534
  reason?: string | null;
461
535
  /** @example "scheduled" */
462
536
  status: OperationRequestStatusEnum;
@@ -484,6 +558,29 @@ export declare enum OperationRequestTypeEnum {
484
558
  Deposit = "deposit",
485
559
  Withdrawal = "withdrawal"
486
560
  }
561
+ export interface OperationRequestWineInventoryItemEntityDto {
562
+ /** @min 0 */
563
+ amount: number;
564
+ bottleFormat: WineBottleFormatEntityDto;
565
+ /** @format uuid */
566
+ bottleFormatId: string;
567
+ bottleVintage: WineBottleVintageEntityDto;
568
+ /** @format uuid */
569
+ bottleVintageId: string;
570
+ /** @format date-time */
571
+ createdAt: string;
572
+ /** @format uuid */
573
+ id: string;
574
+ /** @format uuid */
575
+ operationRequestId?: string | null;
576
+ /** @format uuid */
577
+ tenantId: string;
578
+ /** @format date-time */
579
+ updatedAt: string;
580
+ wine: WineEntityDto;
581
+ /** @format uuid */
582
+ wineId: string;
583
+ }
487
584
  export declare enum OrderByEnum {
488
585
  ASC = "ASC",
489
586
  DESC = "DESC"
@@ -535,11 +632,15 @@ export interface ProcessWithdrawDto {
535
632
  /** @minItems 0 */
536
633
  extras?: CreateOperationExtraDto[];
537
634
  operationNotes?: string;
635
+ /** @minItems 1 */
636
+ wines: WithdrawRequestCreateWineInventoryItemDto[];
538
637
  }
539
638
  export interface RequestDepositDto {
540
639
  address: CreateAddressByTemplateDto;
541
640
  /** @example "its super fragile, please take care and come with a special bag" */
542
641
  notes?: string;
642
+ /** @example [] */
643
+ phones?: PhoneDto[];
543
644
  /** @format date-time */
544
645
  shippingDateTime: string;
545
646
  /**
@@ -556,6 +657,8 @@ export interface RequestPasswordResetDto {
556
657
  export interface RequestWithdrawDto {
557
658
  /** @example "please add it into a cooler" */
558
659
  notes?: string;
660
+ /** @example [] */
661
+ phones?: PhoneDto[];
559
662
  /** @format date-time */
560
663
  pickupDateTime: string;
561
664
  /** @minItems 1 */
@@ -575,6 +678,10 @@ export interface ResetPasswordDto {
575
678
  tenantId: string;
576
679
  token: string;
577
680
  }
681
+ export interface SetNotificationsReadDto {
682
+ /** @minItems 1 */
683
+ notificationIds: string[];
684
+ }
578
685
  export interface SigninDto {
579
686
  /** @example "user@example.com" */
580
687
  email: string;
@@ -603,6 +710,17 @@ export declare enum TenantUserStatusEnum {
603
710
  Enabled = "enabled",
604
711
  Blocked = "blocked"
605
712
  }
713
+ export interface UpdateAddressDto {
714
+ addressLine1?: string;
715
+ addressLine2?: string;
716
+ city?: string;
717
+ country?: string;
718
+ location?: GeoLocationDto | null;
719
+ name?: string;
720
+ notes?: string;
721
+ postalCode?: string;
722
+ state?: string;
723
+ }
606
724
  export interface UpdateCaseDto {
607
725
  /** @format date-time */
608
726
  billingEndDate?: string | null;
@@ -757,6 +875,37 @@ export interface UserEntityPaginatedDto {
757
875
  links?: PaginationLinksDto;
758
876
  meta: PaginationMetaDto;
759
877
  }
878
+ export interface UserNotificationEntityDto {
879
+ /** @format date-time */
880
+ createdAt: string;
881
+ /** @example {"text":"User need to confirm his account"} */
882
+ data: object;
883
+ /** @format uuid */
884
+ id: string;
885
+ read: boolean;
886
+ /** @format uuid */
887
+ tenantId: string;
888
+ /** @example "text" */
889
+ type: UserNotificationTypeEnum;
890
+ /** @format date-time */
891
+ updatedAt: string;
892
+ /** @format uuid */
893
+ userId: string;
894
+ }
895
+ export interface UserNotificationEntityPaginatedDto {
896
+ items: UserNotificationEntityDto[];
897
+ links?: PaginationLinksDto;
898
+ meta: PaginationMetaDto;
899
+ }
900
+ export declare enum UserNotificationTypeEnum {
901
+ WithdrawRequestCreated = "withdraw_request_created",
902
+ WithdrawRequestStatusUpdated = "withdraw_request_status_updated",
903
+ WithdrawRequestConcluded = "withdraw_request_concluded",
904
+ DepositRequestCreated = "deposit_request_created",
905
+ DepositRequestStatusUpdated = "deposit_request_status_updated",
906
+ DepositRequestConcluded = "deposit_request_concluded",
907
+ Text = "text"
908
+ }
760
909
  export interface WineBottleFormatEntityDto {
761
910
  /** @format date-time */
762
911
  createdAt: string;
@@ -1001,6 +1150,18 @@ export interface WineVineyardEntityPaginatedDto {
1001
1150
  links?: PaginationLinksDto;
1002
1151
  meta: PaginationMetaDto;
1003
1152
  }
1153
+ export interface WithdrawRequestCreateWineInventoryItemDto {
1154
+ /** @min 1 */
1155
+ amount: number;
1156
+ /** @format uuid */
1157
+ bottleFormatId: string;
1158
+ /** @format uuid */
1159
+ bottleVintageId: string;
1160
+ /** @format uuid */
1161
+ caseId: string;
1162
+ /** @format uuid */
1163
+ wineId: string;
1164
+ }
1004
1165
  export declare enum WithdrawRequestDeliverStatusEnum {
1005
1166
  Pending = "pending",
1006
1167
  InSeparation = "in_separation",
@@ -1016,7 +1177,11 @@ export interface WithdrawWineInventoryItemDto {
1016
1177
  /** @min 1 */
1017
1178
  amount: number;
1018
1179
  /** @format uuid */
1019
- inventoryItemId: string;
1180
+ bottleFormatId: string;
1181
+ /** @format uuid */
1182
+ bottleVintageId: string;
1183
+ /** @format uuid */
1184
+ wineId: string;
1020
1185
  }
1021
1186
  export declare namespace Auth {
1022
1187
  /**
@@ -1240,7 +1405,7 @@ export declare namespace Tenants {
1240
1405
  * @name GetUserOperationRequestById
1241
1406
  * @request GET:/tenants/{tenantId}/users/{userId}/requests/{requestId}
1242
1407
  * @secure
1243
- * @response `200` `OperationRequestEntityDto`
1408
+ * @response `200` `FullOperationRequestEntityDto`
1244
1409
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1245
1410
  */
1246
1411
  namespace GetUserOperationRequestById {
@@ -1252,7 +1417,7 @@ export declare namespace Tenants {
1252
1417
  type RequestQuery = {};
1253
1418
  type RequestBody = never;
1254
1419
  type RequestHeaders = {};
1255
- type ResponseBody = OperationRequestEntityDto;
1420
+ type ResponseBody = FullOperationRequestEntityDto;
1256
1421
  }
1257
1422
  /**
1258
1423
  * No description
@@ -1323,6 +1488,77 @@ export declare namespace Tenants {
1323
1488
  type RequestHeaders = {};
1324
1489
  type ResponseBody = AddressEntityPaginatedDto;
1325
1490
  }
1491
+ /**
1492
+ * No description
1493
+ * @tags Tenant Users
1494
+ * @name ListUserInventory
1495
+ * @request GET:/tenants/{tenantId}/users/{userId}/inventory
1496
+ * @secure
1497
+ * @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
1498
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1499
+ */
1500
+ namespace ListUserInventory {
1501
+ type RequestParams = {
1502
+ tenantId: string;
1503
+ userId: string;
1504
+ };
1505
+ type RequestQuery = {
1506
+ amount?: string;
1507
+ bottleFormatIds?: string[];
1508
+ bottleVintageIds?: string[];
1509
+ /**
1510
+ * @default 10
1511
+ * @example 10
1512
+ */
1513
+ limit?: number;
1514
+ orderBy?: OrderByEnum;
1515
+ /**
1516
+ * @default 1
1517
+ * @example 1
1518
+ */
1519
+ page?: number;
1520
+ search?: string;
1521
+ sortBy?: string[];
1522
+ wineIds?: string[];
1523
+ };
1524
+ type RequestBody = never;
1525
+ type RequestHeaders = {};
1526
+ type ResponseBody = GroupedWineInventoryItemEntityPaginatedDto;
1527
+ }
1528
+ /**
1529
+ * No description
1530
+ * @tags Tenant Users
1531
+ * @name ListUserNotifications
1532
+ * @request GET:/tenants/{tenantId}/users/{userId}/notifications
1533
+ * @secure
1534
+ * @response `200` `UserNotificationEntityPaginatedDto`
1535
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1536
+ */
1537
+ namespace ListUserNotifications {
1538
+ type RequestParams = {
1539
+ tenantId: string;
1540
+ userId: string;
1541
+ };
1542
+ type RequestQuery = {
1543
+ createdAt?: string;
1544
+ /**
1545
+ * @default 10
1546
+ * @example 10
1547
+ */
1548
+ limit?: number;
1549
+ orderBy?: OrderByEnum;
1550
+ /**
1551
+ * @default 1
1552
+ * @example 1
1553
+ */
1554
+ page?: number;
1555
+ read?: boolean;
1556
+ sortBy?: string[];
1557
+ };
1558
+ type RequestBody = never;
1559
+ type RequestHeaders = {};
1560
+ type ResponseBody = UserNotificationEntityPaginatedDto;
1561
+ }
1326
1562
  /**
1327
1563
  * No description
1328
1564
  * @tags Tenant Users Operation Requests
@@ -1396,6 +1632,25 @@ export declare namespace Tenants {
1396
1632
  type RequestHeaders = {};
1397
1633
  type ResponseBody = OperationRequestEntityDto;
1398
1634
  }
1635
+ /**
1636
+ * No description
1637
+ * @tags Tenant Users
1638
+ * @name SetUserNotificationsAsRead
1639
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/notifications/batch-set-read
1640
+ * @secure
1641
+ * @response `204` `void`
1642
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1643
+ */
1644
+ namespace SetUserNotificationsAsRead {
1645
+ type RequestParams = {
1646
+ tenantId: string;
1647
+ userId: string;
1648
+ };
1649
+ type RequestQuery = {};
1650
+ type RequestBody = SetNotificationsReadDto;
1651
+ type RequestHeaders = {};
1652
+ type ResponseBody = void;
1653
+ }
1399
1654
  /**
1400
1655
  * No description
1401
1656
  * @tags Tenant Users
@@ -1434,6 +1689,26 @@ export declare namespace Tenants {
1434
1689
  type RequestHeaders = {};
1435
1690
  type ResponseBody = UserEntityDto;
1436
1691
  }
1692
+ /**
1693
+ * No description
1694
+ * @tags Tenant Users
1695
+ * @name UpdateUserAddress
1696
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
1697
+ * @secure
1698
+ * @response `200` `AddressEntityDto`
1699
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1700
+ */
1701
+ namespace UpdateUserAddress {
1702
+ type RequestParams = {
1703
+ addressId: string;
1704
+ tenantId: string;
1705
+ userId: string;
1706
+ };
1707
+ type RequestQuery = {};
1708
+ type RequestBody = UpdateAddressDto;
1709
+ type RequestHeaders = {};
1710
+ type ResponseBody = AddressEntityDto;
1711
+ }
1437
1712
  }
1438
1713
  export declare namespace Admin {
1439
1714
  /**
@@ -2130,7 +2405,7 @@ export declare namespace Admin {
2130
2405
  * @name GetTenantOperationRequestById
2131
2406
  * @request GET:/admin/tenants/{tenantId}/requests/{requestId}
2132
2407
  * @secure
2133
- * @response `200` `OperationRequestEntityDto`
2408
+ * @response `200` `FullOperationRequestEntityDto`
2134
2409
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
2135
2410
  */
2136
2411
  namespace GetTenantOperationRequestById {
@@ -2141,7 +2416,7 @@ export declare namespace Admin {
2141
2416
  type RequestQuery = {};
2142
2417
  type RequestBody = never;
2143
2418
  type RequestHeaders = {};
2144
- type ResponseBody = OperationRequestEntityDto;
2419
+ type ResponseBody = FullOperationRequestEntityDto;
2145
2420
  }
2146
2421
  /**
2147
2422
  * No description
@@ -3546,10 +3821,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3546
3821
  * @name GetUserOperationRequestById
3547
3822
  * @request GET:/tenants/{tenantId}/users/{userId}/requests/{requestId}
3548
3823
  * @secure
3549
- * @response `200` `OperationRequestEntityDto`
3824
+ * @response `200` `FullOperationRequestEntityDto`
3550
3825
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
3551
3826
  */
3552
- getUserOperationRequestById: (tenantId: string, userId: string, requestId: string, params?: RequestParams) => Promise<OperationRequestEntityDto>;
3827
+ getUserOperationRequestById: (tenantId: string, userId: string, requestId: string, params?: RequestParams) => Promise<FullOperationRequestEntityDto>;
3553
3828
  /**
3554
3829
  * No description
3555
3830
  *
@@ -3604,6 +3879,61 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3604
3879
  search?: string;
3605
3880
  sortBy?: string[];
3606
3881
  }, params?: RequestParams) => Promise<AddressEntityPaginatedDto>;
3882
+ /**
3883
+ * No description
3884
+ *
3885
+ * @tags Tenant Users
3886
+ * @name ListUserInventory
3887
+ * @request GET:/tenants/{tenantId}/users/{userId}/inventory
3888
+ * @secure
3889
+ * @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
3890
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
3891
+ */
3892
+ listUserInventory: (tenantId: string, userId: string, query?: {
3893
+ amount?: string;
3894
+ bottleFormatIds?: string[];
3895
+ bottleVintageIds?: string[];
3896
+ /**
3897
+ * @default 10
3898
+ * @example 10
3899
+ */
3900
+ limit?: number;
3901
+ orderBy?: OrderByEnum;
3902
+ /**
3903
+ * @default 1
3904
+ * @example 1
3905
+ */
3906
+ page?: number;
3907
+ search?: string;
3908
+ sortBy?: string[];
3909
+ wineIds?: string[];
3910
+ }, params?: RequestParams) => Promise<GroupedWineInventoryItemEntityPaginatedDto>;
3911
+ /**
3912
+ * No description
3913
+ *
3914
+ * @tags Tenant Users
3915
+ * @name ListUserNotifications
3916
+ * @request GET:/tenants/{tenantId}/users/{userId}/notifications
3917
+ * @secure
3918
+ * @response `200` `UserNotificationEntityPaginatedDto`
3919
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
3920
+ */
3921
+ listUserNotifications: (tenantId: string, userId: string, query?: {
3922
+ createdAt?: string;
3923
+ /**
3924
+ * @default 10
3925
+ * @example 10
3926
+ */
3927
+ limit?: number;
3928
+ orderBy?: OrderByEnum;
3929
+ /**
3930
+ * @default 1
3931
+ * @example 1
3932
+ */
3933
+ page?: number;
3934
+ read?: boolean;
3935
+ sortBy?: string[];
3936
+ }, params?: RequestParams) => Promise<UserNotificationEntityPaginatedDto>;
3607
3937
  /**
3608
3938
  * No description
3609
3939
  *
@@ -3653,6 +3983,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3653
3983
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
3654
3984
  */
3655
3985
  requestWithdrawOperation: (tenantId: string, userId: string, data: RequestWithdrawDto, params?: RequestParams) => Promise<OperationRequestEntityDto>;
3986
+ /**
3987
+ * No description
3988
+ *
3989
+ * @tags Tenant Users
3990
+ * @name SetUserNotificationsAsRead
3991
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/notifications/batch-set-read
3992
+ * @secure
3993
+ * @response `204` `void`
3994
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
3995
+ */
3996
+ setUserNotificationsAsRead: (tenantId: string, userId: string, data: SetNotificationsReadDto, params?: RequestParams) => Promise<void>;
3656
3997
  /**
3657
3998
  * No description
3658
3999
  *
@@ -3675,6 +4016,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3675
4016
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
3676
4017
  */
3677
4018
  updateTenantUserPassword: (tenantId: string, userId: string, data: UpdateUserPasswordDto, params?: RequestParams) => Promise<UserEntityDto>;
4019
+ /**
4020
+ * No description
4021
+ *
4022
+ * @tags Tenant Users
4023
+ * @name UpdateUserAddress
4024
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
4025
+ * @secure
4026
+ * @response `200` `AddressEntityDto`
4027
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
4028
+ */
4029
+ updateUserAddress: (tenantId: string, userId: string, addressId: string, data: UpdateAddressDto, params?: RequestParams) => Promise<AddressEntityDto>;
3678
4030
  };
3679
4031
  admin: {
3680
4032
  /**
@@ -4091,10 +4443,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4091
4443
  * @name GetTenantOperationRequestById
4092
4444
  * @request GET:/admin/tenants/{tenantId}/requests/{requestId}
4093
4445
  * @secure
4094
- * @response `200` `OperationRequestEntityDto`
4446
+ * @response `200` `FullOperationRequestEntityDto`
4095
4447
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
4096
4448
  */
4097
- getTenantOperationRequestById: (tenantId: string, requestId: string, params?: RequestParams) => Promise<OperationRequestEntityDto>;
4449
+ getTenantOperationRequestById: (tenantId: string, requestId: string, params?: RequestParams) => Promise<FullOperationRequestEntityDto>;
4098
4450
  /**
4099
4451
  * No description
4100
4452
  *
package/dist/umd/index.ts CHANGED
@@ -18410,11 +18410,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
18410
18410
  return (mod && mod.__esModule) ? mod : { "default": mod };
18411
18411
  };
18412
18412
  Object.defineProperty(exports, "__esModule", ({ value: true }));
18413
- exports.Api = exports.HttpClient = exports.ContentType = exports.WithdrawRequestDeliverTypeEnum = exports.WithdrawRequestDeliverStatusEnum = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.PhoneTypeEnum = exports.OrderByEnum = exports.OperationRequestTypeEnum = exports.OperationRequestStatusEnum = exports.OperationGroupStatusEnum = exports.CreateOnlyOperationGroupStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
18413
+ exports.Api = exports.HttpClient = exports.ContentType = exports.WithdrawRequestDeliverTypeEnum = exports.WithdrawRequestDeliverStatusEnum = exports.UserNotificationTypeEnum = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.PhoneTypeEnum = exports.OrderByEnum = exports.OperationRequestTypeEnum = exports.OperationRequestStatusEnum = exports.OperationGroupStatusEnum = exports.CreateOnlyOperationGroupStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
18414
18414
  var CaseOperationLogTypeEnum;
18415
18415
  (function (CaseOperationLogTypeEnum) {
18416
18416
  CaseOperationLogTypeEnum["RequestAccepted"] = "request_accepted";
18417
18417
  CaseOperationLogTypeEnum["StatusChange"] = "status_change";
18418
+ CaseOperationLogTypeEnum["Synced"] = "synced";
18419
+ CaseOperationLogTypeEnum["Reverted"] = "reverted";
18418
18420
  })(CaseOperationLogTypeEnum = exports.CaseOperationLogTypeEnum || (exports.CaseOperationLogTypeEnum = {}));
18419
18421
  var CaseOperationStatusEnum;
18420
18422
  (function (CaseOperationStatusEnum) {
@@ -18477,6 +18479,16 @@ var TenantUserStatusEnum;
18477
18479
  TenantUserStatusEnum["Enabled"] = "enabled";
18478
18480
  TenantUserStatusEnum["Blocked"] = "blocked";
18479
18481
  })(TenantUserStatusEnum = exports.TenantUserStatusEnum || (exports.TenantUserStatusEnum = {}));
18482
+ var UserNotificationTypeEnum;
18483
+ (function (UserNotificationTypeEnum) {
18484
+ UserNotificationTypeEnum["WithdrawRequestCreated"] = "withdraw_request_created";
18485
+ UserNotificationTypeEnum["WithdrawRequestStatusUpdated"] = "withdraw_request_status_updated";
18486
+ UserNotificationTypeEnum["WithdrawRequestConcluded"] = "withdraw_request_concluded";
18487
+ UserNotificationTypeEnum["DepositRequestCreated"] = "deposit_request_created";
18488
+ UserNotificationTypeEnum["DepositRequestStatusUpdated"] = "deposit_request_status_updated";
18489
+ UserNotificationTypeEnum["DepositRequestConcluded"] = "deposit_request_concluded";
18490
+ UserNotificationTypeEnum["Text"] = "text";
18491
+ })(UserNotificationTypeEnum = exports.UserNotificationTypeEnum || (exports.UserNotificationTypeEnum = {}));
18480
18492
  var WithdrawRequestDeliverStatusEnum;
18481
18493
  (function (WithdrawRequestDeliverStatusEnum) {
18482
18494
  WithdrawRequestDeliverStatusEnum["Pending"] = "pending";
@@ -18778,7 +18790,7 @@ var Api = /** @class */ (function (_super) {
18778
18790
  * @name GetUserOperationRequestById
18779
18791
  * @request GET:/tenants/{tenantId}/users/{userId}/requests/{requestId}
18780
18792
  * @secure
18781
- * @response `200` `OperationRequestEntityDto`
18793
+ * @response `200` `FullOperationRequestEntityDto`
18782
18794
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18783
18795
  */
18784
18796
  getUserOperationRequestById: function (tenantId, userId, requestId, params) {
@@ -18813,6 +18825,34 @@ var Api = /** @class */ (function (_super) {
18813
18825
  if (params === void 0) { params = {}; }
18814
18826
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
18815
18827
  },
18828
+ /**
18829
+ * No description
18830
+ *
18831
+ * @tags Tenant Users
18832
+ * @name ListUserInventory
18833
+ * @request GET:/tenants/{tenantId}/users/{userId}/inventory
18834
+ * @secure
18835
+ * @response `200` `GroupedWineInventoryItemEntityPaginatedDto`
18836
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18837
+ */
18838
+ listUserInventory: function (tenantId, userId, query, params) {
18839
+ if (params === void 0) { params = {}; }
18840
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
18841
+ },
18842
+ /**
18843
+ * No description
18844
+ *
18845
+ * @tags Tenant Users
18846
+ * @name ListUserNotifications
18847
+ * @request GET:/tenants/{tenantId}/users/{userId}/notifications
18848
+ * @secure
18849
+ * @response `200` `UserNotificationEntityPaginatedDto`
18850
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18851
+ */
18852
+ listUserNotifications: function (tenantId, userId, query, params) {
18853
+ if (params === void 0) { params = {}; }
18854
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/notifications"), method: "GET", query: query, secure: true, format: "json" }, params));
18855
+ },
18816
18856
  /**
18817
18857
  * No description
18818
18858
  *
@@ -18855,6 +18895,20 @@ var Api = /** @class */ (function (_super) {
18855
18895
  if (params === void 0) { params = {}; }
18856
18896
  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
18897
  },
18898
+ /**
18899
+ * No description
18900
+ *
18901
+ * @tags Tenant Users
18902
+ * @name SetUserNotificationsAsRead
18903
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/notifications/batch-set-read
18904
+ * @secure
18905
+ * @response `204` `void`
18906
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18907
+ */
18908
+ setUserNotificationsAsRead: function (tenantId, userId, data, params) {
18909
+ if (params === void 0) { params = {}; }
18910
+ 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));
18911
+ },
18858
18912
  /**
18859
18913
  * No description
18860
18914
  *
@@ -18883,6 +18937,20 @@ var Api = /** @class */ (function (_super) {
18883
18937
  if (params === void 0) { params = {}; }
18884
18938
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/password"), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18885
18939
  },
18940
+ /**
18941
+ * No description
18942
+ *
18943
+ * @tags Tenant Users
18944
+ * @name UpdateUserAddress
18945
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
18946
+ * @secure
18947
+ * @response `200` `AddressEntityDto`
18948
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18949
+ */
18950
+ updateUserAddress: function (tenantId, userId, addressId, data, params) {
18951
+ if (params === void 0) { params = {}; }
18952
+ 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));
18953
+ },
18886
18954
  };
18887
18955
  _this.admin = {
18888
18956
  /**
@@ -19410,7 +19478,7 @@ var Api = /** @class */ (function (_super) {
19410
19478
  * @name GetTenantOperationRequestById
19411
19479
  * @request GET:/admin/tenants/{tenantId}/requests/{requestId}
19412
19480
  * @secure
19413
- * @response `200` `OperationRequestEntityDto`
19481
+ * @response `200` `FullOperationRequestEntityDto`
19414
19482
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19415
19483
  */
19416
19484
  getTenantOperationRequestById: function (tenantId, requestId, params) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thelllabs/winehaus-sdk",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "description": "Winehaus SDK",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",