@followupus/common 0.10.10 → 0.10.12
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/shared/audit.d.ts +36 -6
- package/dist/shared/audit.js +36 -6
- package/dist/utils/format.js +2 -2
- package/package.json +1 -1
package/dist/shared/audit.d.ts
CHANGED
|
@@ -13,12 +13,42 @@ export declare const AUDIT_ACTIONS: {
|
|
|
13
13
|
OrgSecuritySettingChange: string;
|
|
14
14
|
PermissionChange: string;
|
|
15
15
|
RoleAssignment: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
SpaceCreation: string;
|
|
17
|
+
AppCreation: string;
|
|
18
|
+
FolderCreation: string;
|
|
19
|
+
BoardCreation: string;
|
|
20
|
+
BoardViewCreation: string;
|
|
21
|
+
DocCreation: string;
|
|
22
|
+
SpaceRenaming: string;
|
|
23
|
+
AppRenaming: string;
|
|
24
|
+
FolderRenaming: string;
|
|
25
|
+
BoardRenaming: string;
|
|
26
|
+
BoardViewRenaming: string;
|
|
27
|
+
DocRenaming: string;
|
|
28
|
+
SpaceDeletion: string;
|
|
29
|
+
AppDeletion: string;
|
|
30
|
+
FolderDeletion: string;
|
|
31
|
+
BoardDeletion: string;
|
|
32
|
+
BoardViewDeletion: string;
|
|
33
|
+
DocDeletion: string;
|
|
34
|
+
SpaceArchiving: string;
|
|
35
|
+
AppArchiving: string;
|
|
36
|
+
FolderArchiving: string;
|
|
37
|
+
BoardArchiving: string;
|
|
38
|
+
BoardViewArchiving: string;
|
|
39
|
+
DocArchiving: string;
|
|
40
|
+
SpaceRestoring: string;
|
|
41
|
+
AppRestoring: string;
|
|
42
|
+
FolderRestoring: string;
|
|
43
|
+
BoardRestoring: string;
|
|
44
|
+
BoardViewRestoring: string;
|
|
45
|
+
DocRestoring: string;
|
|
46
|
+
SpacePermanentDeletion: string;
|
|
47
|
+
AppPermanentDeletion: string;
|
|
48
|
+
FolderPermanentDeletion: string;
|
|
49
|
+
BoardPermanentDeletion: string;
|
|
50
|
+
BoardViewPermanentDeletion: string;
|
|
51
|
+
DocPermanentDeletion: string;
|
|
22
52
|
FileImport: string;
|
|
23
53
|
WorkspaceDataExport: string;
|
|
24
54
|
WorkspaceAuditLogExport: string;
|
package/dist/shared/audit.js
CHANGED
|
@@ -13,12 +13,42 @@ export const AUDIT_ACTIONS = {
|
|
|
13
13
|
OrgSecuritySettingChange: "OrgSecuritySettingChange",
|
|
14
14
|
PermissionChange: "PermissionChange",
|
|
15
15
|
RoleAssignment: "RoleAssignment",
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
SpaceCreation: "SpaceCreation",
|
|
17
|
+
AppCreation: "AppCreation",
|
|
18
|
+
FolderCreation: "FolderCreation",
|
|
19
|
+
BoardCreation: "BoardCreation",
|
|
20
|
+
BoardViewCreation: "BoardViewCreation",
|
|
21
|
+
DocCreation: "DocCreation",
|
|
22
|
+
SpaceRenaming: "SpaceRenaming",
|
|
23
|
+
AppRenaming: "AppRenaming",
|
|
24
|
+
FolderRenaming: "FolderRenaming",
|
|
25
|
+
BoardRenaming: "BoardRenaming",
|
|
26
|
+
BoardViewRenaming: "BoardViewRenaming",
|
|
27
|
+
DocRenaming: "DocRenaming",
|
|
28
|
+
SpaceDeletion: "SpaceDeletion",
|
|
29
|
+
AppDeletion: "AppDeletion",
|
|
30
|
+
FolderDeletion: "FolderDeletion",
|
|
31
|
+
BoardDeletion: "BoardDeletion",
|
|
32
|
+
BoardViewDeletion: "BoardViewDeletion",
|
|
33
|
+
DocDeletion: "DocDeletion",
|
|
34
|
+
SpaceArchiving: "SpaceArchiving",
|
|
35
|
+
AppArchiving: "AppArchiving",
|
|
36
|
+
FolderArchiving: "FolderArchiving",
|
|
37
|
+
BoardArchiving: "BoardArchiving",
|
|
38
|
+
BoardViewArchiving: "BoardViewArchiving",
|
|
39
|
+
DocArchiving: "DocArchiving",
|
|
40
|
+
SpaceRestoring: "SpaceRestoring",
|
|
41
|
+
AppRestoring: "AppRestoring",
|
|
42
|
+
FolderRestoring: "FolderRestoring",
|
|
43
|
+
BoardRestoring: "BoardRestoring",
|
|
44
|
+
BoardViewRestoring: "BoardViewRestoring",
|
|
45
|
+
DocRestoring: "DocRestoring",
|
|
46
|
+
SpacePermanentDeletion: "SpacePermanentDeletion",
|
|
47
|
+
AppPermanentDeletion: "AppPermanentDeletion",
|
|
48
|
+
FolderPermanentDeletion: "FolderPermanentDeletion",
|
|
49
|
+
BoardPermanentDeletion: "BoardPermanentDeletion",
|
|
50
|
+
BoardViewPermanentDeletion: "BoardViewPermanentDeletion",
|
|
51
|
+
DocPermanentDeletion: "DocPermanentDeletion",
|
|
22
52
|
FileImport: "FileImport",
|
|
23
53
|
WorkspaceDataExport: "WorkspaceDataExport",
|
|
24
54
|
WorkspaceAuditLogExport: "WorkspaceAuditLogExport",
|
package/dist/utils/format.js
CHANGED
|
@@ -43,7 +43,7 @@ export function truncateString(str, maxLength) {
|
|
|
43
43
|
return str;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
//case insensitive
|
|
47
47
|
//** {{Who}} can be replaced by variable {who:{name:ttt}}
|
|
48
48
|
export function formatTemplate(text, rawVariables, maxLength = Number.MAX_SAFE_INTEGER) {
|
|
49
49
|
const matches = text?.match(/{{([^}]+)}}/g);
|
|
@@ -51,7 +51,7 @@ export function formatTemplate(text, rawVariables, maxLength = Number.MAX_SAFE_I
|
|
|
51
51
|
const formatVariables = keysToLowerCase(rawVariables);
|
|
52
52
|
let finalStr = text || "";
|
|
53
53
|
matches.forEach((match) => {
|
|
54
|
-
const variableKey = match.slice(
|
|
54
|
+
const variableKey = match.slice(2, match.length - 2)?.toLowerCase();
|
|
55
55
|
if (Object.keys(formatVariables).includes(variableKey)) {
|
|
56
56
|
const variable = formatVariables[variableKey] || {};
|
|
57
57
|
finalStr = finalStr.replace(match, typeof variable === "string" ? variable : getTextValue(variable));
|