@qrvey/utils 1.17.0-6 → 1.17.0-7
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/README.md
CHANGED
|
@@ -4,11 +4,12 @@ export interface IGetPermissionsConfig {
|
|
|
4
4
|
api_key?: string;
|
|
5
5
|
app_id?: string;
|
|
6
6
|
user_id?: string;
|
|
7
|
+
userId?: string;
|
|
7
8
|
domain?: string;
|
|
8
9
|
}
|
|
9
10
|
export declare class PermissionsCacheManager extends QrveyCacheManager<QvCacheStoreProperties, IGetPermissionsConfig> {
|
|
10
11
|
static getInstance(): any;
|
|
11
12
|
protected getConfigEntityId(): keyof IGetPermissionsConfig;
|
|
12
|
-
protected buildStoreId({ user_id }: IGetPermissionsConfig): string;
|
|
13
|
+
protected buildStoreId({ user_id, userId }: IGetPermissionsConfig): string;
|
|
13
14
|
protected fetchDataAndUpdateStore(state: QvCacheStoreProperties, config: IGetPermissionsConfig): Promise<void>;
|
|
14
15
|
}
|
|
@@ -10,8 +10,8 @@ export class PermissionsCacheManager extends QrveyCacheManager {
|
|
|
10
10
|
getConfigEntityId() {
|
|
11
11
|
return "user_id";
|
|
12
12
|
}
|
|
13
|
-
buildStoreId({ user_id }) {
|
|
14
|
-
return `${user_id}`;
|
|
13
|
+
buildStoreId({ user_id, userId }) {
|
|
14
|
+
return `${user_id || userId}`;
|
|
15
15
|
}
|
|
16
16
|
async fetchDataAndUpdateStore(state, config) {
|
|
17
17
|
return getAdminPermissions(config)
|
|
@@ -13,8 +13,8 @@ class PermissionsCacheManager extends cache_manager_1.QrveyCacheManager {
|
|
|
13
13
|
getConfigEntityId() {
|
|
14
14
|
return "user_id";
|
|
15
15
|
}
|
|
16
|
-
buildStoreId({ user_id }) {
|
|
17
|
-
return `${user_id}`;
|
|
16
|
+
buildStoreId({ user_id, userId }) {
|
|
17
|
+
return `${user_id || userId}`;
|
|
18
18
|
}
|
|
19
19
|
async fetchDataAndUpdateStore(state, config) {
|
|
20
20
|
return (0, adminPermissions_api_1.getAdminPermissions)(config)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qrvey/utils",
|
|
3
|
-
"version": "1.17.0-
|
|
3
|
+
"version": "1.17.0-7",
|
|
4
4
|
"description": "Helper, Utils for all Qrvey Projects",
|
|
5
5
|
"homepage": "https://bitbucket.org/qrvey/qrvey_utils/wiki/Home",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@stencil/store": "2.2.2",
|
|
75
75
|
"d3-format": "2.0.0",
|
|
76
|
-
"dayjs": "1.11.
|
|
76
|
+
"dayjs": "1.11.10",
|
|
77
77
|
"i18next": "26.0.6",
|
|
78
78
|
"tslib": "2.8.1",
|
|
79
79
|
"xss": "1.0.15"
|