@thelllabs/winehaus-sdk 0.0.19 → 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.
- package/dist/cjs/api/api.js +39 -1
- package/dist/esm/api/api.js +38 -0
- package/dist/types/api/api.d.ts +125 -0
- package/dist/umd/index.ts +39 -1
- package/package.json +1 -1
package/dist/cjs/api/api.js
CHANGED
|
@@ -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";
|
|
@@ -504,6 +514,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
504
514
|
if (params === void 0) { params = {}; }
|
|
505
515
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
506
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
|
+
},
|
|
507
531
|
/**
|
|
508
532
|
* No description
|
|
509
533
|
*
|
|
@@ -546,6 +570,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
546
570
|
if (params === void 0) { params = {}; }
|
|
547
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));
|
|
548
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
|
+
},
|
|
549
587
|
/**
|
|
550
588
|
* No description
|
|
551
589
|
*
|
package/dist/esm/api/api.js
CHANGED
|
@@ -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";
|
|
@@ -498,6 +508,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
498
508
|
if (params === void 0) { params = {}; }
|
|
499
509
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
500
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
|
+
},
|
|
501
525
|
/**
|
|
502
526
|
* No description
|
|
503
527
|
*
|
|
@@ -540,6 +564,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
540
564
|
if (params === void 0) { params = {}; }
|
|
541
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));
|
|
542
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
|
+
},
|
|
543
581
|
/**
|
|
544
582
|
* No description
|
|
545
583
|
*
|
package/dist/types/api/api.d.ts
CHANGED
|
@@ -678,6 +678,10 @@ export interface ResetPasswordDto {
|
|
|
678
678
|
tenantId: string;
|
|
679
679
|
token: string;
|
|
680
680
|
}
|
|
681
|
+
export interface SetNotificationsReadDto {
|
|
682
|
+
/** @minItems 1 */
|
|
683
|
+
notificationIds: string[];
|
|
684
|
+
}
|
|
681
685
|
export interface SigninDto {
|
|
682
686
|
/** @example "user@example.com" */
|
|
683
687
|
email: string;
|
|
@@ -871,6 +875,37 @@ export interface UserEntityPaginatedDto {
|
|
|
871
875
|
links?: PaginationLinksDto;
|
|
872
876
|
meta: PaginationMetaDto;
|
|
873
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
|
+
}
|
|
874
909
|
export interface WineBottleFormatEntityDto {
|
|
875
910
|
/** @format date-time */
|
|
876
911
|
createdAt: string;
|
|
@@ -1490,6 +1525,40 @@ export declare namespace Tenants {
|
|
|
1490
1525
|
type RequestHeaders = {};
|
|
1491
1526
|
type ResponseBody = GroupedWineInventoryItemEntityPaginatedDto;
|
|
1492
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
|
+
}
|
|
1493
1562
|
/**
|
|
1494
1563
|
* No description
|
|
1495
1564
|
* @tags Tenant Users Operation Requests
|
|
@@ -1563,6 +1632,25 @@ export declare namespace Tenants {
|
|
|
1563
1632
|
type RequestHeaders = {};
|
|
1564
1633
|
type ResponseBody = OperationRequestEntityDto;
|
|
1565
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
|
+
}
|
|
1566
1654
|
/**
|
|
1567
1655
|
* No description
|
|
1568
1656
|
* @tags Tenant Users
|
|
@@ -3820,6 +3908,32 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3820
3908
|
sortBy?: string[];
|
|
3821
3909
|
wineIds?: string[];
|
|
3822
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>;
|
|
3823
3937
|
/**
|
|
3824
3938
|
* No description
|
|
3825
3939
|
*
|
|
@@ -3869,6 +3983,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3869
3983
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3870
3984
|
*/
|
|
3871
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>;
|
|
3872
3997
|
/**
|
|
3873
3998
|
* No description
|
|
3874
3999
|
*
|
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";
|
|
@@ -18829,6 +18839,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18829
18839
|
if (params === void 0) { params = {}; }
|
|
18830
18840
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
18831
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
|
+
},
|
|
18832
18856
|
/**
|
|
18833
18857
|
* No description
|
|
18834
18858
|
*
|
|
@@ -18871,6 +18895,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18871
18895
|
if (params === void 0) { params = {}; }
|
|
18872
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));
|
|
18873
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
|
+
},
|
|
18874
18912
|
/**
|
|
18875
18913
|
* No description
|
|
18876
18914
|
*
|