@thelllabs/winehaus-sdk 0.0.19 → 0.0.21

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,7 +85,7 @@ 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";
@@ -154,6 +154,16 @@ var TenantUserStatusEnum;
154
154
  TenantUserStatusEnum["Enabled"] = "enabled";
155
155
  TenantUserStatusEnum["Blocked"] = "blocked";
156
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 = {}));
157
167
  var WithdrawRequestDeliverStatusEnum;
158
168
  (function (WithdrawRequestDeliverStatusEnum) {
159
169
  WithdrawRequestDeliverStatusEnum["Pending"] = "pending";
@@ -448,6 +458,20 @@ var Api = /** @class */ (function (_super) {
448
458
  if (params === void 0) { params = {}; }
449
459
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "GET", secure: true, format: "json" }, params));
450
460
  },
461
+ /**
462
+ * No description
463
+ *
464
+ * @tags Tenant Users
465
+ * @name GetUserAddressById
466
+ * @request GET:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
467
+ * @secure
468
+ * @response `200` `AddressEntityDto`
469
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
470
+ */
471
+ getUserAddressById: function (tenantId, userId, addressId, params) {
472
+ if (params === void 0) { params = {}; }
473
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "GET", secure: true, format: "json" }, params));
474
+ },
451
475
  /**
452
476
  * No description
453
477
  *
@@ -504,6 +528,20 @@ var Api = /** @class */ (function (_super) {
504
528
  if (params === void 0) { params = {}; }
505
529
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
506
530
  },
531
+ /**
532
+ * No description
533
+ *
534
+ * @tags Tenant Users
535
+ * @name ListUserNotifications
536
+ * @request GET:/tenants/{tenantId}/users/{userId}/notifications
537
+ * @secure
538
+ * @response `200` `UserNotificationEntityPaginatedDto`
539
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
540
+ */
541
+ listUserNotifications: function (tenantId, userId, query, params) {
542
+ if (params === void 0) { params = {}; }
543
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/notifications"), method: "GET", query: query, secure: true, format: "json" }, params));
544
+ },
507
545
  /**
508
546
  * No description
509
547
  *
@@ -546,6 +584,20 @@ var Api = /** @class */ (function (_super) {
546
584
  if (params === void 0) { params = {}; }
547
585
  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));
548
586
  },
587
+ /**
588
+ * No description
589
+ *
590
+ * @tags Tenant Users
591
+ * @name SetUserNotificationsAsRead
592
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/notifications/batch-set-read
593
+ * @secure
594
+ * @response `204` `void`
595
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
596
+ */
597
+ setUserNotificationsAsRead: function (tenantId, userId, data, params) {
598
+ if (params === void 0) { params = {}; }
599
+ 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));
600
+ },
549
601
  /**
550
602
  * No description
551
603
  *
@@ -148,6 +148,16 @@ export var TenantUserStatusEnum;
148
148
  TenantUserStatusEnum["Enabled"] = "enabled";
149
149
  TenantUserStatusEnum["Blocked"] = "blocked";
150
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 = {}));
151
161
  export var WithdrawRequestDeliverStatusEnum;
152
162
  (function (WithdrawRequestDeliverStatusEnum) {
153
163
  WithdrawRequestDeliverStatusEnum["Pending"] = "pending";
@@ -442,6 +452,20 @@ var Api = /** @class */ (function (_super) {
442
452
  if (params === void 0) { params = {}; }
443
453
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "GET", secure: true, format: "json" }, params));
444
454
  },
455
+ /**
456
+ * No description
457
+ *
458
+ * @tags Tenant Users
459
+ * @name GetUserAddressById
460
+ * @request GET:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
461
+ * @secure
462
+ * @response `200` `AddressEntityDto`
463
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
464
+ */
465
+ getUserAddressById: function (tenantId, userId, addressId, params) {
466
+ if (params === void 0) { params = {}; }
467
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "GET", secure: true, format: "json" }, params));
468
+ },
445
469
  /**
446
470
  * No description
447
471
  *
@@ -498,6 +522,20 @@ var Api = /** @class */ (function (_super) {
498
522
  if (params === void 0) { params = {}; }
499
523
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
500
524
  },
525
+ /**
526
+ * No description
527
+ *
528
+ * @tags Tenant Users
529
+ * @name ListUserNotifications
530
+ * @request GET:/tenants/{tenantId}/users/{userId}/notifications
531
+ * @secure
532
+ * @response `200` `UserNotificationEntityPaginatedDto`
533
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
534
+ */
535
+ listUserNotifications: function (tenantId, userId, query, params) {
536
+ if (params === void 0) { params = {}; }
537
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/notifications"), method: "GET", query: query, secure: true, format: "json" }, params));
538
+ },
501
539
  /**
502
540
  * No description
503
541
  *
@@ -540,6 +578,20 @@ var Api = /** @class */ (function (_super) {
540
578
  if (params === void 0) { params = {}; }
541
579
  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));
542
580
  },
581
+ /**
582
+ * No description
583
+ *
584
+ * @tags Tenant Users
585
+ * @name SetUserNotificationsAsRead
586
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/notifications/batch-set-read
587
+ * @secure
588
+ * @response `204` `void`
589
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
590
+ */
591
+ setUserNotificationsAsRead: function (tenantId, userId, data, params) {
592
+ if (params === void 0) { params = {}; }
593
+ 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));
594
+ },
543
595
  /**
544
596
  * No description
545
597
  *
@@ -16,6 +16,7 @@ export interface AddressEntityDto {
16
16
  state: string;
17
17
  /** @format uuid */
18
18
  tenantId: string;
19
+ type: string;
19
20
  /** @format date-time */
20
21
  updatedAt: string;
21
22
  /** @format uuid */
@@ -43,6 +44,7 @@ export interface CaseEntityDto {
43
44
  description?: string | null;
44
45
  /** @format uuid */
45
46
  id: string;
47
+ location?: string | null;
46
48
  /** @min 0 */
47
49
  maxItems: number;
48
50
  name: string;
@@ -176,6 +178,7 @@ export interface CreateAddressByTemplateDto {
176
178
  notes?: string;
177
179
  postalCode?: string;
178
180
  state?: string;
181
+ type?: string;
179
182
  }
180
183
  export interface CreateAddressDto {
181
184
  addressLine1: string;
@@ -187,6 +190,7 @@ export interface CreateAddressDto {
187
190
  notes?: string;
188
191
  postalCode: string;
189
192
  state: string;
193
+ type: string;
190
194
  }
191
195
  export interface CreateCaseDto {
192
196
  /** @format date-time */
@@ -196,6 +200,7 @@ export interface CreateCaseDto {
196
200
  /** @format uuid */
197
201
  customerId: string;
198
202
  description?: string | null;
203
+ location?: string | null;
199
204
  /** @min 0 */
200
205
  maxItems: number;
201
206
  name: string;
@@ -245,6 +250,7 @@ export interface CreateOperationGroupDto {
245
250
  customerId: string;
246
251
  /** @minItems 0 */
247
252
  extras?: CreateOperationExtraDto[];
253
+ notes?: string;
248
254
  /** @minItems 1 */
249
255
  operations: CreateCaseOperationDto[];
250
256
  /** @example "processed" */
@@ -360,6 +366,7 @@ export interface FullOperationGroupEntityDto {
360
366
  extras: OperationExtraEntityDto[];
361
367
  /** @format uuid */
362
368
  id: string;
369
+ notes: string | null;
363
370
  operations: FullCaseOperationEntityDto[];
364
371
  /** @example "processed" */
365
372
  status: OperationGroupStatusEnum;
@@ -502,6 +509,7 @@ export interface OperationGroupEntityDto {
502
509
  customerId: string;
503
510
  /** @format uuid */
504
511
  id: string;
512
+ notes: string | null;
505
513
  /** @example "processed" */
506
514
  status: OperationGroupStatusEnum;
507
515
  /** @format uuid */
@@ -678,6 +686,10 @@ export interface ResetPasswordDto {
678
686
  tenantId: string;
679
687
  token: string;
680
688
  }
689
+ export interface SetNotificationsReadDto {
690
+ /** @minItems 1 */
691
+ notificationIds: string[];
692
+ }
681
693
  export interface SigninDto {
682
694
  /** @example "user@example.com" */
683
695
  email: string;
@@ -693,6 +705,7 @@ export interface SigninResponseDto {
693
705
  export interface SyncOperationGroupWithSnapshotDto {
694
706
  /** @minItems 0 */
695
707
  extras?: UpdateOperationExtraDto[];
708
+ notes?: string;
696
709
  /** @minItems 1 */
697
710
  operations: UpdateCaseOperationDto[];
698
711
  }
@@ -716,6 +729,7 @@ export interface UpdateAddressDto {
716
729
  notes?: string;
717
730
  postalCode?: string;
718
731
  state?: string;
732
+ type?: string;
719
733
  }
720
734
  export interface UpdateCaseDto {
721
735
  /** @format date-time */
@@ -725,6 +739,7 @@ export interface UpdateCaseDto {
725
739
  /** @format uuid */
726
740
  customerId: string;
727
741
  description?: string | null;
742
+ location?: string | null;
728
743
  /** @min 0 */
729
744
  maxItems: number;
730
745
  name: string;
@@ -769,6 +784,8 @@ export interface UpdateOperationExtraTemplateDto {
769
784
  pricePerItem: number;
770
785
  }
771
786
  export interface UpdateUserDto {
787
+ /** @example "user@example.com" */
788
+ email?: string;
772
789
  firstName?: string | null;
773
790
  lastName?: string | null;
774
791
  /** This field is accepted only if called by some tenant admin/operator */
@@ -871,6 +888,37 @@ export interface UserEntityPaginatedDto {
871
888
  links?: PaginationLinksDto;
872
889
  meta: PaginationMetaDto;
873
890
  }
891
+ export interface UserNotificationEntityDto {
892
+ /** @format date-time */
893
+ createdAt: string;
894
+ /** @example {"text":"User need to confirm his account"} */
895
+ data: object;
896
+ /** @format uuid */
897
+ id: string;
898
+ read: boolean;
899
+ /** @format uuid */
900
+ tenantId: string;
901
+ /** @example "text" */
902
+ type: UserNotificationTypeEnum;
903
+ /** @format date-time */
904
+ updatedAt: string;
905
+ /** @format uuid */
906
+ userId: string;
907
+ }
908
+ export interface UserNotificationEntityPaginatedDto {
909
+ items: UserNotificationEntityDto[];
910
+ links?: PaginationLinksDto;
911
+ meta: PaginationMetaDto;
912
+ }
913
+ export declare enum UserNotificationTypeEnum {
914
+ WithdrawRequestCreated = "withdraw_request_created",
915
+ WithdrawRequestStatusUpdated = "withdraw_request_status_updated",
916
+ WithdrawRequestConcluded = "withdraw_request_concluded",
917
+ DepositRequestCreated = "deposit_request_created",
918
+ DepositRequestStatusUpdated = "deposit_request_status_updated",
919
+ DepositRequestConcluded = "deposit_request_concluded",
920
+ Text = "text"
921
+ }
874
922
  export interface WineBottleFormatEntityDto {
875
923
  /** @format date-time */
876
924
  createdAt: string;
@@ -1364,6 +1412,26 @@ export declare namespace Tenants {
1364
1412
  type RequestHeaders = {};
1365
1413
  type ResponseBody = UserEntityDto;
1366
1414
  }
1415
+ /**
1416
+ * No description
1417
+ * @tags Tenant Users
1418
+ * @name GetUserAddressById
1419
+ * @request GET:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
1420
+ * @secure
1421
+ * @response `200` `AddressEntityDto`
1422
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1423
+ */
1424
+ namespace GetUserAddressById {
1425
+ type RequestParams = {
1426
+ addressId: string;
1427
+ tenantId: string;
1428
+ userId: string;
1429
+ };
1430
+ type RequestQuery = {};
1431
+ type RequestBody = never;
1432
+ type RequestHeaders = {};
1433
+ type ResponseBody = AddressEntityDto;
1434
+ }
1367
1435
  /**
1368
1436
  * No description
1369
1437
  * @tags Tenant Users Operation Requests
@@ -1490,6 +1558,40 @@ export declare namespace Tenants {
1490
1558
  type RequestHeaders = {};
1491
1559
  type ResponseBody = GroupedWineInventoryItemEntityPaginatedDto;
1492
1560
  }
1561
+ /**
1562
+ * No description
1563
+ * @tags Tenant Users
1564
+ * @name ListUserNotifications
1565
+ * @request GET:/tenants/{tenantId}/users/{userId}/notifications
1566
+ * @secure
1567
+ * @response `200` `UserNotificationEntityPaginatedDto`
1568
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1569
+ */
1570
+ namespace ListUserNotifications {
1571
+ type RequestParams = {
1572
+ tenantId: string;
1573
+ userId: string;
1574
+ };
1575
+ type RequestQuery = {
1576
+ createdAt?: string;
1577
+ /**
1578
+ * @default 10
1579
+ * @example 10
1580
+ */
1581
+ limit?: number;
1582
+ orderBy?: OrderByEnum;
1583
+ /**
1584
+ * @default 1
1585
+ * @example 1
1586
+ */
1587
+ page?: number;
1588
+ read?: boolean;
1589
+ sortBy?: string[];
1590
+ };
1591
+ type RequestBody = never;
1592
+ type RequestHeaders = {};
1593
+ type ResponseBody = UserNotificationEntityPaginatedDto;
1594
+ }
1493
1595
  /**
1494
1596
  * No description
1495
1597
  * @tags Tenant Users Operation Requests
@@ -1563,6 +1665,25 @@ export declare namespace Tenants {
1563
1665
  type RequestHeaders = {};
1564
1666
  type ResponseBody = OperationRequestEntityDto;
1565
1667
  }
1668
+ /**
1669
+ * No description
1670
+ * @tags Tenant Users
1671
+ * @name SetUserNotificationsAsRead
1672
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/notifications/batch-set-read
1673
+ * @secure
1674
+ * @response `204` `void`
1675
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
1676
+ */
1677
+ namespace SetUserNotificationsAsRead {
1678
+ type RequestParams = {
1679
+ tenantId: string;
1680
+ userId: string;
1681
+ };
1682
+ type RequestQuery = {};
1683
+ type RequestBody = SetNotificationsReadDto;
1684
+ type RequestHeaders = {};
1685
+ type ResponseBody = void;
1686
+ }
1566
1687
  /**
1567
1688
  * No description
1568
1689
  * @tags Tenant Users
@@ -2948,6 +3069,7 @@ export declare namespace Admin {
2948
3069
  };
2949
3070
  type RequestQuery = {
2950
3071
  brandIds?: string[];
3072
+ countryIds?: string[];
2951
3073
  createdAt?: string;
2952
3074
  /**
2953
3075
  * @default 10
@@ -2961,6 +3083,8 @@ export declare namespace Admin {
2961
3083
  */
2962
3084
  page?: number;
2963
3085
  producerIds?: string[];
3086
+ regionIds?: string[];
3087
+ search?: string;
2964
3088
  sortBy?: string[];
2965
3089
  styleIds?: string[];
2966
3090
  typeIds?: string[];
@@ -3726,6 +3850,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3726
3850
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
3727
3851
  */
3728
3852
  getTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<UserEntityDto>;
3853
+ /**
3854
+ * No description
3855
+ *
3856
+ * @tags Tenant Users
3857
+ * @name GetUserAddressById
3858
+ * @request GET:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
3859
+ * @secure
3860
+ * @response `200` `AddressEntityDto`
3861
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
3862
+ */
3863
+ getUserAddressById: (tenantId: string, userId: string, addressId: string, params?: RequestParams) => Promise<AddressEntityDto>;
3729
3864
  /**
3730
3865
  * No description
3731
3866
  *
@@ -3820,6 +3955,32 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3820
3955
  sortBy?: string[];
3821
3956
  wineIds?: string[];
3822
3957
  }, params?: RequestParams) => Promise<GroupedWineInventoryItemEntityPaginatedDto>;
3958
+ /**
3959
+ * No description
3960
+ *
3961
+ * @tags Tenant Users
3962
+ * @name ListUserNotifications
3963
+ * @request GET:/tenants/{tenantId}/users/{userId}/notifications
3964
+ * @secure
3965
+ * @response `200` `UserNotificationEntityPaginatedDto`
3966
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
3967
+ */
3968
+ listUserNotifications: (tenantId: string, userId: string, query?: {
3969
+ createdAt?: string;
3970
+ /**
3971
+ * @default 10
3972
+ * @example 10
3973
+ */
3974
+ limit?: number;
3975
+ orderBy?: OrderByEnum;
3976
+ /**
3977
+ * @default 1
3978
+ * @example 1
3979
+ */
3980
+ page?: number;
3981
+ read?: boolean;
3982
+ sortBy?: string[];
3983
+ }, params?: RequestParams) => Promise<UserNotificationEntityPaginatedDto>;
3823
3984
  /**
3824
3985
  * No description
3825
3986
  *
@@ -3869,6 +4030,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3869
4030
  * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
3870
4031
  */
3871
4032
  requestWithdrawOperation: (tenantId: string, userId: string, data: RequestWithdrawDto, params?: RequestParams) => Promise<OperationRequestEntityDto>;
4033
+ /**
4034
+ * No description
4035
+ *
4036
+ * @tags Tenant Users
4037
+ * @name SetUserNotificationsAsRead
4038
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/notifications/batch-set-read
4039
+ * @secure
4040
+ * @response `204` `void`
4041
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
4042
+ */
4043
+ setUserNotificationsAsRead: (tenantId: string, userId: string, data: SetNotificationsReadDto, params?: RequestParams) => Promise<void>;
3872
4044
  /**
3873
4045
  * No description
3874
4046
  *
@@ -4763,6 +4935,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4763
4935
  */
4764
4936
  listTenantWines: (tenantId: string, query?: {
4765
4937
  brandIds?: string[];
4938
+ countryIds?: string[];
4766
4939
  createdAt?: string;
4767
4940
  /**
4768
4941
  * @default 10
@@ -4776,6 +4949,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4776
4949
  */
4777
4950
  page?: number;
4778
4951
  producerIds?: string[];
4952
+ regionIds?: string[];
4953
+ search?: string;
4779
4954
  sortBy?: string[];
4780
4955
  styleIds?: string[];
4781
4956
  typeIds?: string[];
package/dist/umd/index.ts CHANGED
@@ -18410,7 +18410,7 @@ 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";
@@ -18479,6 +18479,16 @@ var TenantUserStatusEnum;
18479
18479
  TenantUserStatusEnum["Enabled"] = "enabled";
18480
18480
  TenantUserStatusEnum["Blocked"] = "blocked";
18481
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 = {}));
18482
18492
  var WithdrawRequestDeliverStatusEnum;
18483
18493
  (function (WithdrawRequestDeliverStatusEnum) {
18484
18494
  WithdrawRequestDeliverStatusEnum["Pending"] = "pending";
@@ -18773,6 +18783,20 @@ var Api = /** @class */ (function (_super) {
18773
18783
  if (params === void 0) { params = {}; }
18774
18784
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "GET", secure: true, format: "json" }, params));
18775
18785
  },
18786
+ /**
18787
+ * No description
18788
+ *
18789
+ * @tags Tenant Users
18790
+ * @name GetUserAddressById
18791
+ * @request GET:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
18792
+ * @secure
18793
+ * @response `200` `AddressEntityDto`
18794
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18795
+ */
18796
+ getUserAddressById: function (tenantId, userId, addressId, params) {
18797
+ if (params === void 0) { params = {}; }
18798
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "GET", secure: true, format: "json" }, params));
18799
+ },
18776
18800
  /**
18777
18801
  * No description
18778
18802
  *
@@ -18829,6 +18853,20 @@ var Api = /** @class */ (function (_super) {
18829
18853
  if (params === void 0) { params = {}; }
18830
18854
  return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
18831
18855
  },
18856
+ /**
18857
+ * No description
18858
+ *
18859
+ * @tags Tenant Users
18860
+ * @name ListUserNotifications
18861
+ * @request GET:/tenants/{tenantId}/users/{userId}/notifications
18862
+ * @secure
18863
+ * @response `200` `UserNotificationEntityPaginatedDto`
18864
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18865
+ */
18866
+ listUserNotifications: function (tenantId, userId, query, params) {
18867
+ if (params === void 0) { params = {}; }
18868
+ return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/notifications"), method: "GET", query: query, secure: true, format: "json" }, params));
18869
+ },
18832
18870
  /**
18833
18871
  * No description
18834
18872
  *
@@ -18871,6 +18909,20 @@ var Api = /** @class */ (function (_super) {
18871
18909
  if (params === void 0) { params = {}; }
18872
18910
  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));
18873
18911
  },
18912
+ /**
18913
+ * No description
18914
+ *
18915
+ * @tags Tenant Users
18916
+ * @name SetUserNotificationsAsRead
18917
+ * @request PATCH:/tenants/{tenantId}/users/{userId}/notifications/batch-set-read
18918
+ * @secure
18919
+ * @response `204` `void`
18920
+ * @response `403` `HttpExceptionDto` You're not enabled to make this operation.
18921
+ */
18922
+ setUserNotificationsAsRead: function (tenantId, userId, data, params) {
18923
+ if (params === void 0) { params = {}; }
18924
+ 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));
18925
+ },
18874
18926
  /**
18875
18927
  * No description
18876
18928
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thelllabs/winehaus-sdk",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "description": "Winehaus SDK",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",