@wildberries/databus-service-user
Advanced tools
Comparing version 0.0.4-beta.4 to 0.0.4-beta.5
@@ -6,2 +6,2 @@ import { FetchPermissionsParamsType, RefreshUserFeaturesType, UserDataType } from './types'; | ||
export declare const setFetchPermissionsEvent: ({ scope, }: FetchPermissionsParamsType) => void; | ||
export declare const setRefreshUserPermissionsEvent: (options: RefreshUserFeaturesType) => void; | ||
export declare const setRefreshUserPermissionsEvent: ({ features, abortRequestId, }: RefreshUserFeaturesType) => void; |
@@ -36,6 +36,8 @@ "use strict"; | ||
}; | ||
exports.setRefreshUserPermissionsEvent = function (options) { | ||
exports.setRefreshUserPermissionsEvent = function (_a) { | ||
var features = _a.features, abortRequestId = _a.abortRequestId; | ||
new databus_1.Databus({ name: constants_1.REFRESH_PERMISSIONS }).addEvent({ | ||
detail: { | ||
options: options, | ||
features: features, | ||
abortRequestId: abortRequestId, | ||
}, | ||
@@ -42,0 +44,0 @@ }); |
{ | ||
"name": "@wildberries/databus-service-user", | ||
"version": "0.0.4-beta.4", | ||
"version": "0.0.4-beta.5", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
15717
297