@steedos/metadata-api 2.3.0 → 2.3.1-beta.2
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.
|
@@ -1,2 +1,85 @@
|
|
|
1
|
-
export declare function getObjectFieldPermissions(dbManager: any, objectApiName: any, permissionSetId: any): Promise<
|
|
1
|
+
export declare function getObjectFieldPermissions(dbManager: any, objectApiName: any, permissionSetId: any): Promise<{
|
|
2
|
+
toString: () => string;
|
|
3
|
+
charAt: (pos: number) => string;
|
|
4
|
+
charCodeAt: (index: number) => number;
|
|
5
|
+
concat: (...strings: string[]) => string;
|
|
6
|
+
indexOf: (searchString: string, position?: number | undefined) => number;
|
|
7
|
+
lastIndexOf: (searchString: string, position?: number | undefined) => number;
|
|
8
|
+
localeCompare: {
|
|
9
|
+
(that: string): number;
|
|
10
|
+
(that: string, locales?: string | string[] | undefined, options?: Intl.CollatorOptions | undefined): number;
|
|
11
|
+
};
|
|
12
|
+
match: {
|
|
13
|
+
(regexp: string | RegExp): RegExpMatchArray | null;
|
|
14
|
+
(matcher: {
|
|
15
|
+
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
16
|
+
}): RegExpMatchArray | null;
|
|
17
|
+
};
|
|
18
|
+
replace: {
|
|
19
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
20
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
21
|
+
(searchValue: {
|
|
22
|
+
[Symbol.replace](string: string, replaceValue: string): string;
|
|
23
|
+
}, replaceValue: string): string;
|
|
24
|
+
(searchValue: {
|
|
25
|
+
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
26
|
+
}, replacer: (substring: string, ...args: any[]) => string): string;
|
|
27
|
+
};
|
|
28
|
+
search: {
|
|
29
|
+
(regexp: string | RegExp): number;
|
|
30
|
+
(searcher: {
|
|
31
|
+
[Symbol.search](string: string): number;
|
|
32
|
+
}): number;
|
|
33
|
+
};
|
|
34
|
+
slice: (start?: number | undefined, end?: number | undefined) => string;
|
|
35
|
+
split: {
|
|
36
|
+
(separator: string | RegExp, limit?: number | undefined): string[];
|
|
37
|
+
(splitter: {
|
|
38
|
+
[Symbol.split](string: string, limit?: number | undefined): string[];
|
|
39
|
+
}, limit?: number | undefined): string[];
|
|
40
|
+
};
|
|
41
|
+
substring: (start: number, end?: number | undefined) => string;
|
|
42
|
+
toLowerCase: () => string;
|
|
43
|
+
toLocaleLowerCase: (locales?: string | string[] | undefined) => string;
|
|
44
|
+
toUpperCase: () => string;
|
|
45
|
+
toLocaleUpperCase: (locales?: string | string[] | undefined) => string;
|
|
46
|
+
trim: () => string;
|
|
47
|
+
readonly length: number;
|
|
48
|
+
substr: (from: number, length?: number | undefined) => string;
|
|
49
|
+
valueOf: () => string;
|
|
50
|
+
codePointAt: (pos: number) => number | undefined;
|
|
51
|
+
includes: (searchString: string, position?: number | undefined) => boolean;
|
|
52
|
+
endsWith: (searchString: string, endPosition?: number | undefined) => boolean;
|
|
53
|
+
normalize: {
|
|
54
|
+
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
|
55
|
+
(form?: string | undefined): string;
|
|
56
|
+
};
|
|
57
|
+
repeat: (count: number) => string;
|
|
58
|
+
startsWith: (searchString: string, position?: number | undefined) => boolean;
|
|
59
|
+
anchor: (name: string) => string;
|
|
60
|
+
big: () => string;
|
|
61
|
+
blink: () => string;
|
|
62
|
+
bold: () => string;
|
|
63
|
+
fixed: () => string;
|
|
64
|
+
fontcolor: (color: string) => string;
|
|
65
|
+
fontsize: {
|
|
66
|
+
(size: number): string;
|
|
67
|
+
(size: string): string;
|
|
68
|
+
};
|
|
69
|
+
italics: () => string;
|
|
70
|
+
link: (url: string) => string;
|
|
71
|
+
small: () => string;
|
|
72
|
+
strike: () => string;
|
|
73
|
+
sub: () => string;
|
|
74
|
+
sup: () => string;
|
|
75
|
+
padStart: (maxLength: number, fillString?: string | undefined) => string;
|
|
76
|
+
padEnd: (maxLength: number, fillString?: string | undefined) => string;
|
|
77
|
+
trimEnd: () => string;
|
|
78
|
+
trimStart: () => string;
|
|
79
|
+
trimLeft: () => string;
|
|
80
|
+
trimRight: () => string;
|
|
81
|
+
matchAll: (regexp: RegExp) => IterableIterator<RegExpMatchArray>;
|
|
82
|
+
[Symbol.iterator]: () => IterableIterator<string>;
|
|
83
|
+
at: (index: number) => string | undefined;
|
|
84
|
+
}[]>;
|
|
2
85
|
export declare function saveOrUpdateFieldPermissions(dbManager: any, permissionSetName: any, objectName: any, objectPermission: any): Promise<void>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.saveOrUpdateFieldPermissions = exports.getObjectFieldPermissions = void 0;
|
|
4
|
+
const lodash_1 = require("lodash");
|
|
4
5
|
const collection_name = 'permission_fields';
|
|
5
6
|
async function getObjectFieldPermissions(dbManager, objectApiName, permissionSetId) {
|
|
6
7
|
const fieldsPermission = [];
|
|
@@ -12,7 +13,7 @@ async function getObjectFieldPermissions(dbManager, objectApiName, permissionSet
|
|
|
12
13
|
editable: record.editable
|
|
13
14
|
});
|
|
14
15
|
}
|
|
15
|
-
return fieldsPermission;
|
|
16
|
+
return (0, lodash_1.uniqBy)(fieldsPermission, "field");
|
|
16
17
|
}
|
|
17
18
|
exports.getObjectFieldPermissions = getObjectFieldPermissions;
|
|
18
19
|
async function saveOrUpdateFieldPermissions(dbManager, permissionSetName, objectName, objectPermission) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldPermission.js","sourceRoot":"","sources":["../../../src/metadata/collection/fieldPermission.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"fieldPermission.js","sourceRoot":"","sources":["../../../src/metadata/collection/fieldPermission.ts"],"names":[],"mappings":";;;AAOA,mCAAgC;AAChC,MAAM,eAAe,GAAG,mBAAmB,CAAC;AAErC,KAAK,UAAU,yBA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AAgB,CAAC,QAAQ;SACtC,CAAA;QAED,IAAI,OAAO,IAAI,IAAI,EAAE;YACjB,MAAM,SAAS,CAAC,MAAM,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;SAC5D;aAAM;YACH,MAAM,SAAS,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC;SACpE;KACJ;AACL,CAAC;AAxBD,oEAwBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/metadata-api",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1-beta.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@steedos/auth": "2.3.
|
|
25
|
-
"@steedos/core": "2.3.
|
|
26
|
-
"@steedos/metadata-core": "2.3.
|
|
27
|
-
"@steedos/objectql": "2.3.
|
|
24
|
+
"@steedos/auth": "2.3.1-beta.2",
|
|
25
|
+
"@steedos/core": "2.3.1-beta.2",
|
|
26
|
+
"@steedos/metadata-core": "2.3.1-beta.2",
|
|
27
|
+
"@steedos/objectql": "2.3.1-beta.2",
|
|
28
28
|
"chalk": "^4.1.0",
|
|
29
29
|
"clone": "2.1.2",
|
|
30
30
|
"compressing": "^1.5.1",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"underscore": "^1.11.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@steedos/service-meteor-package-loader": "2.3.
|
|
39
|
+
"@steedos/service-meteor-package-loader": "2.3.1-beta.2",
|
|
40
40
|
"javascript-obfuscator": "^2.9.1",
|
|
41
41
|
"typescript": "4.6.3"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "90c8b343e760df21f482433b89fdc95e076ca566"
|
|
44
44
|
}
|