@webiny/api-audit-logs 0.0.0-unstable.2696f9d9e8

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.
Files changed (156) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/app/app.d.ts +2 -0
  4. package/app/app.js +120 -0
  5. package/app/app.js.map +1 -0
  6. package/app/contants.d.ts +2 -0
  7. package/app/contants.js +12 -0
  8. package/app/contants.js.map +1 -0
  9. package/app/createAppModifier.d.ts +4 -0
  10. package/app/createAppModifier.js +14 -0
  11. package/app/createAppModifier.js.map +1 -0
  12. package/app/index.d.ts +4 -0
  13. package/app/index.js +43 -0
  14. package/app/index.js.map +1 -0
  15. package/app/types.d.ts +7 -0
  16. package/app/types.js +7 -0
  17. package/app/types.js.map +1 -0
  18. package/config.d.ts +12 -0
  19. package/config.js +284 -0
  20. package/config.js.map +1 -0
  21. package/index.d.ts +5 -0
  22. package/index.js +49 -0
  23. package/index.js.map +1 -0
  24. package/package.json +56 -0
  25. package/subscriptions/aco/folders.d.ts +4 -0
  26. package/subscriptions/aco/folders.js +94 -0
  27. package/subscriptions/aco/folders.js.map +1 -0
  28. package/subscriptions/aco/index.d.ts +2 -0
  29. package/subscriptions/aco/index.js +18 -0
  30. package/subscriptions/aco/index.js.map +1 -0
  31. package/subscriptions/apw/changeRequests.d.ts +4 -0
  32. package/subscriptions/apw/changeRequests.js +80 -0
  33. package/subscriptions/apw/changeRequests.js.map +1 -0
  34. package/subscriptions/apw/comments.d.ts +2 -0
  35. package/subscriptions/apw/comments.js +28 -0
  36. package/subscriptions/apw/comments.js.map +1 -0
  37. package/subscriptions/apw/contentReviews.d.ts +2 -0
  38. package/subscriptions/apw/contentReviews.js +28 -0
  39. package/subscriptions/apw/contentReviews.js.map +1 -0
  40. package/subscriptions/apw/index.d.ts +2 -0
  41. package/subscriptions/apw/index.js +26 -0
  42. package/subscriptions/apw/index.js.map +1 -0
  43. package/subscriptions/apw/workflows.d.ts +4 -0
  44. package/subscriptions/apw/workflows.js +64 -0
  45. package/subscriptions/apw/workflows.js.map +1 -0
  46. package/subscriptions/fileManager/files.d.ts +4 -0
  47. package/subscriptions/fileManager/files.js +64 -0
  48. package/subscriptions/fileManager/files.js.map +1 -0
  49. package/subscriptions/fileManager/index.d.ts +2 -0
  50. package/subscriptions/fileManager/index.js +17 -0
  51. package/subscriptions/fileManager/index.js.map +1 -0
  52. package/subscriptions/fileManager/settings.d.ts +2 -0
  53. package/subscriptions/fileManager/settings.js +32 -0
  54. package/subscriptions/fileManager/settings.js.map +1 -0
  55. package/subscriptions/formBuilder/formRevisions.d.ts +6 -0
  56. package/subscriptions/formBuilder/formRevisions.js +96 -0
  57. package/subscriptions/formBuilder/formRevisions.js.map +1 -0
  58. package/subscriptions/formBuilder/formSubmissions.d.ts +2 -0
  59. package/subscriptions/formBuilder/formSubmissions.js +28 -0
  60. package/subscriptions/formBuilder/formSubmissions.js.map +1 -0
  61. package/subscriptions/formBuilder/forms.d.ts +5 -0
  62. package/subscriptions/formBuilder/forms.js +76 -0
  63. package/subscriptions/formBuilder/forms.js.map +1 -0
  64. package/subscriptions/formBuilder/index.d.ts +2 -0
  65. package/subscriptions/formBuilder/index.js +26 -0
  66. package/subscriptions/formBuilder/index.js.map +1 -0
  67. package/subscriptions/formBuilder/settings.d.ts +2 -0
  68. package/subscriptions/formBuilder/settings.js +32 -0
  69. package/subscriptions/formBuilder/settings.js.map +1 -0
  70. package/subscriptions/headlessCms/entries.d.ts +8 -0
  71. package/subscriptions/headlessCms/entries.js +157 -0
  72. package/subscriptions/headlessCms/entries.js.map +1 -0
  73. package/subscriptions/headlessCms/groups.d.ts +4 -0
  74. package/subscriptions/headlessCms/groups.js +64 -0
  75. package/subscriptions/headlessCms/groups.js.map +1 -0
  76. package/subscriptions/headlessCms/index.d.ts +2 -0
  77. package/subscriptions/headlessCms/index.js +30 -0
  78. package/subscriptions/headlessCms/index.js.map +1 -0
  79. package/subscriptions/headlessCms/models.d.ts +4 -0
  80. package/subscriptions/headlessCms/models.js +64 -0
  81. package/subscriptions/headlessCms/models.js.map +1 -0
  82. package/subscriptions/headlessCms/utils/isSearchModelEntry.d.ts +1 -0
  83. package/subscriptions/headlessCms/utils/isSearchModelEntry.js +13 -0
  84. package/subscriptions/headlessCms/utils/isSearchModelEntry.js.map +1 -0
  85. package/subscriptions/i18n/index.d.ts +2 -0
  86. package/subscriptions/i18n/index.js +15 -0
  87. package/subscriptions/i18n/index.js.map +1 -0
  88. package/subscriptions/i18n/locales.d.ts +4 -0
  89. package/subscriptions/i18n/locales.js +64 -0
  90. package/subscriptions/i18n/locales.js.map +1 -0
  91. package/subscriptions/index.d.ts +2 -0
  92. package/subscriptions/index.js +29 -0
  93. package/subscriptions/index.js.map +1 -0
  94. package/subscriptions/mailer/index.d.ts +2 -0
  95. package/subscriptions/mailer/index.js +13 -0
  96. package/subscriptions/mailer/index.js.map +1 -0
  97. package/subscriptions/mailer/settings.d.ts +2 -0
  98. package/subscriptions/mailer/settings.js +32 -0
  99. package/subscriptions/mailer/settings.js.map +1 -0
  100. package/subscriptions/pageBuilder/blockCategories.d.ts +4 -0
  101. package/subscriptions/pageBuilder/blockCategories.js +64 -0
  102. package/subscriptions/pageBuilder/blockCategories.js.map +1 -0
  103. package/subscriptions/pageBuilder/blocks.d.ts +6 -0
  104. package/subscriptions/pageBuilder/blocks.js +96 -0
  105. package/subscriptions/pageBuilder/blocks.js.map +1 -0
  106. package/subscriptions/pageBuilder/categories.d.ts +4 -0
  107. package/subscriptions/pageBuilder/categories.js +64 -0
  108. package/subscriptions/pageBuilder/categories.js.map +1 -0
  109. package/subscriptions/pageBuilder/index.d.ts +2 -0
  110. package/subscriptions/pageBuilder/index.js +51 -0
  111. package/subscriptions/pageBuilder/index.js.map +1 -0
  112. package/subscriptions/pageBuilder/menus.d.ts +4 -0
  113. package/subscriptions/pageBuilder/menus.js +64 -0
  114. package/subscriptions/pageBuilder/menus.js.map +1 -0
  115. package/subscriptions/pageBuilder/pageElements.d.ts +4 -0
  116. package/subscriptions/pageBuilder/pageElements.js +64 -0
  117. package/subscriptions/pageBuilder/pageElements.js.map +1 -0
  118. package/subscriptions/pageBuilder/pageRevisions.d.ts +6 -0
  119. package/subscriptions/pageBuilder/pageRevisions.js +101 -0
  120. package/subscriptions/pageBuilder/pageRevisions.js.map +1 -0
  121. package/subscriptions/pageBuilder/pages.d.ts +4 -0
  122. package/subscriptions/pageBuilder/pages.js +60 -0
  123. package/subscriptions/pageBuilder/pages.js.map +1 -0
  124. package/subscriptions/pageBuilder/settings.d.ts +2 -0
  125. package/subscriptions/pageBuilder/settings.js +32 -0
  126. package/subscriptions/pageBuilder/settings.js.map +1 -0
  127. package/subscriptions/pageBuilder/templates.d.ts +6 -0
  128. package/subscriptions/pageBuilder/templates.js +96 -0
  129. package/subscriptions/pageBuilder/templates.js.map +1 -0
  130. package/subscriptions/security/apiKeys.d.ts +4 -0
  131. package/subscriptions/security/apiKeys.js +85 -0
  132. package/subscriptions/security/apiKeys.js.map +1 -0
  133. package/subscriptions/security/index.d.ts +2 -0
  134. package/subscriptions/security/index.js +27 -0
  135. package/subscriptions/security/index.js.map +1 -0
  136. package/subscriptions/security/roles.d.ts +4 -0
  137. package/subscriptions/security/roles.js +64 -0
  138. package/subscriptions/security/roles.js.map +1 -0
  139. package/subscriptions/security/teams.d.ts +4 -0
  140. package/subscriptions/security/teams.js +64 -0
  141. package/subscriptions/security/teams.js.map +1 -0
  142. package/subscriptions/security/users.d.ts +4 -0
  143. package/subscriptions/security/users.js +64 -0
  144. package/subscriptions/security/users.js.map +1 -0
  145. package/types.d.ts +58 -0
  146. package/types.js +18 -0
  147. package/types.js.map +1 -0
  148. package/utils/compressor.d.ts +11 -0
  149. package/utils/compressor.js +110 -0
  150. package/utils/compressor.js.map +1 -0
  151. package/utils/getAuditConfig.d.ts +36 -0
  152. package/utils/getAuditConfig.js +141 -0
  153. package/utils/getAuditConfig.js.map +1 -0
  154. package/utils/getAuditObject.d.ts +2 -0
  155. package/utils/getAuditObject.js +25 -0
  156. package/utils/getAuditObject.js.map +1 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Webiny
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # @webiny/api-audit-logs
package/app/app.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import { IAcoAppRegisterParams } from "@webiny/api-aco/types";
2
+ export declare const createApp: () => IAcoAppRegisterParams;
package/app/app.js ADDED
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createApp = void 0;
7
+ var _contants = require("./contants");
8
+ var _compressor = require("../utils/compressor");
9
+ var _apiSecurity = require("@webiny/api-security");
10
+ const toDate = value => {
11
+ if (value instanceof Date) {
12
+ return value;
13
+ }
14
+ try {
15
+ return new Date(value);
16
+ } catch {
17
+ return value;
18
+ }
19
+ };
20
+ const decompressData = entry => {
21
+ if (!entry.data?.data) {
22
+ return entry;
23
+ }
24
+ return {
25
+ ...entry,
26
+ data: {
27
+ ...entry.data,
28
+ timestamp: toDate(entry.data.timestamp),
29
+ data: _compressor.compressor.decompress(entry.data.data)
30
+ }
31
+ };
32
+ };
33
+ const createApp = () => {
34
+ return {
35
+ name: _contants.AUDIT_LOGS_TYPE,
36
+ apiName: "AuditLogs",
37
+ fields: [{
38
+ id: "id",
39
+ fieldId: "id",
40
+ type: "text",
41
+ storageId: "text@id",
42
+ label: "ID"
43
+ }, {
44
+ id: "message",
45
+ fieldId: "message",
46
+ type: "text",
47
+ storageId: "text@message",
48
+ label: "Message"
49
+ }, {
50
+ id: "app",
51
+ fieldId: "app",
52
+ type: "text",
53
+ storageId: "text@app",
54
+ label: "App"
55
+ }, {
56
+ id: "entity",
57
+ fieldId: "entity",
58
+ type: "text",
59
+ storageId: "text@entity",
60
+ label: "Entity"
61
+ }, {
62
+ id: "entityId",
63
+ fieldId: "entityId",
64
+ type: "text",
65
+ storageId: "text@entityId",
66
+ label: "Entity ID"
67
+ }, {
68
+ id: "action",
69
+ fieldId: "action",
70
+ type: "text",
71
+ storageId: "text@action",
72
+ label: "Action"
73
+ }, {
74
+ id: "data",
75
+ fieldId: "data",
76
+ type: "text",
77
+ storageId: "text@data",
78
+ label: "Data"
79
+ }, {
80
+ id: "timestamp",
81
+ fieldId: "timestamp",
82
+ type: "datetime",
83
+ settings: {
84
+ type: "dateTimeWithoutTimezone"
85
+ },
86
+ storageId: "datetime@timestamp",
87
+ label: "Timestamp"
88
+ }, {
89
+ id: "initiator",
90
+ fieldId: "initiator",
91
+ type: "text",
92
+ storageId: "text@initiator",
93
+ label: "Initiator"
94
+ }],
95
+ onEntry: async entry => {
96
+ return decompressData(entry);
97
+ },
98
+ onEntryList: async entries => {
99
+ return Promise.all(entries.map(entry => {
100
+ return decompressData(entry);
101
+ }));
102
+ },
103
+ onAnyRequest: async (context, action) => {
104
+ const permissions = await context.security.getPermissions("al.*");
105
+ for (const permission of permissions) {
106
+ if (permission.name === "al.*") {
107
+ return;
108
+ } else if (permission.name === `al.${action}`) {
109
+ return;
110
+ }
111
+ }
112
+ throw new _apiSecurity.NotAuthorizedError({
113
+ message: "You cannot access audit logs."
114
+ });
115
+ }
116
+ };
117
+ };
118
+ exports.createApp = createApp;
119
+
120
+ //# sourceMappingURL=app.js.map
package/app/app.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_contants","require","_compressor","_apiSecurity","toDate","value","Date","decompressData","entry","data","timestamp","compressor","decompress","createApp","name","AUDIT_LOGS_TYPE","apiName","fields","id","fieldId","type","storageId","label","settings","onEntry","onEntryList","entries","Promise","all","map","onAnyRequest","context","action","permissions","security","getPermissions","permission","NotAuthorizedError","message","exports"],"sources":["app.ts"],"sourcesContent":["import { IAcoAppRegisterParams, SearchRecord } from \"@webiny/api-aco/types\";\nimport { AUDIT_LOGS_TYPE } from \"./contants\";\nimport { compressor } from \"~/utils/compressor\";\nimport { NotAuthorizedError } from \"@webiny/api-security\";\n\nconst toDate = (value: string | Date) => {\n if (value instanceof Date) {\n return value;\n }\n try {\n return new Date(value);\n } catch {\n return value;\n }\n};\n\nconst decompressData = (entry: SearchRecord<any>): SearchRecord<any> => {\n if (!entry.data?.data) {\n return entry;\n }\n return {\n ...entry,\n data: {\n ...entry.data,\n timestamp: toDate(entry.data.timestamp),\n data: compressor.decompress(entry.data.data)\n }\n };\n};\n\nexport const createApp = (): IAcoAppRegisterParams => {\n return {\n name: AUDIT_LOGS_TYPE,\n apiName: \"AuditLogs\",\n fields: [\n {\n id: \"id\",\n fieldId: \"id\",\n type: \"text\",\n storageId: \"text@id\",\n label: \"ID\"\n },\n {\n id: \"message\",\n fieldId: \"message\",\n type: \"text\",\n storageId: \"text@message\",\n label: \"Message\"\n },\n {\n id: \"app\",\n fieldId: \"app\",\n type: \"text\",\n storageId: \"text@app\",\n label: \"App\"\n },\n {\n id: \"entity\",\n fieldId: \"entity\",\n type: \"text\",\n storageId: \"text@entity\",\n label: \"Entity\"\n },\n {\n id: \"entityId\",\n fieldId: \"entityId\",\n type: \"text\",\n storageId: \"text@entityId\",\n label: \"Entity ID\"\n },\n {\n id: \"action\",\n fieldId: \"action\",\n type: \"text\",\n storageId: \"text@action\",\n label: \"Action\"\n },\n {\n id: \"data\",\n fieldId: \"data\",\n type: \"text\",\n storageId: \"text@data\",\n label: \"Data\"\n },\n {\n id: \"timestamp\",\n fieldId: \"timestamp\",\n type: \"datetime\",\n settings: {\n type: \"dateTimeWithoutTimezone\"\n },\n storageId: \"datetime@timestamp\",\n label: \"Timestamp\"\n },\n {\n id: \"initiator\",\n fieldId: \"initiator\",\n type: \"text\",\n storageId: \"text@initiator\",\n label: \"Initiator\"\n }\n ],\n onEntry: async entry => {\n return decompressData(entry);\n },\n onEntryList: async entries => {\n return Promise.all(\n entries.map(entry => {\n return decompressData(entry);\n })\n );\n },\n onAnyRequest: async (context, action) => {\n const permissions = await context.security.getPermissions(\"al.*\");\n for (const permission of permissions) {\n if (permission.name === \"al.*\") {\n return;\n } else if (permission.name === `al.${action}`) {\n return;\n }\n }\n\n throw new NotAuthorizedError({\n message: \"You cannot access audit logs.\"\n });\n }\n };\n};\n"],"mappings":";;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAEA,MAAMG,MAAM,GAAIC,KAAoB,IAAK;EACrC,IAAIA,KAAK,YAAYC,IAAI,EAAE;IACvB,OAAOD,KAAK;EAChB;EACA,IAAI;IACA,OAAO,IAAIC,IAAI,CAACD,KAAK,CAAC;EAC1B,CAAC,CAAC,MAAM;IACJ,OAAOA,KAAK;EAChB;AACJ,CAAC;AAED,MAAME,cAAc,GAAIC,KAAwB,IAAwB;EACpE,IAAI,CAACA,KAAK,CAACC,IAAI,EAAEA,IAAI,EAAE;IACnB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+ export declare const AUDIT_LOGS_TYPE = "AuditLogs";
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ROOT_FOLDER = exports.AUDIT_LOGS_TYPE = void 0;
7
+ const ROOT_FOLDER = "root";
8
+ exports.ROOT_FOLDER = ROOT_FOLDER;
9
+ const AUDIT_LOGS_TYPE = "AuditLogs";
10
+ exports.AUDIT_LOGS_TYPE = AUDIT_LOGS_TYPE;
11
+
12
+ //# sourceMappingURL=contants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ROOT_FOLDER","exports","AUDIT_LOGS_TYPE"],"sources":["contants.ts"],"sourcesContent":["export const ROOT_FOLDER = \"root\";\nexport const AUDIT_LOGS_TYPE = \"AuditLogs\";\n"],"mappings":";;;;;;AAAO,MAAMA,WAAW,GAAG,MAAM;AAACC,OAAA,CAAAD,WAAA,GAAAA,WAAA;AAC3B,MAAME,eAAe,GAAG,WAAW;AAACD,OAAA,CAAAC,eAAA,GAAAA,eAAA"}
@@ -0,0 +1,4 @@
1
+ import { CreateAcoAppModifierCallable } from "@webiny/api-aco";
2
+ import { AuditLogsAcoContext } from "./types";
3
+ import { Context } from "@webiny/handler/types";
4
+ export declare const createAppModifier: <T extends Context = AuditLogsAcoContext>(cb: CreateAcoAppModifierCallable<T>) => import("@webiny/api-aco").AcoAppModifierPlugin<T>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createAppModifier = void 0;
7
+ var _apiAco = require("@webiny/api-aco");
8
+ var _contants = require("./contants");
9
+ const createAppModifier = cb => {
10
+ return (0, _apiAco.createAcoAppModifier)(_contants.AUDIT_LOGS_TYPE, cb);
11
+ };
12
+ exports.createAppModifier = createAppModifier;
13
+
14
+ //# sourceMappingURL=createAppModifier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_apiAco","require","_contants","createAppModifier","cb","baseCreateAppModifier","AUDIT_LOGS_TYPE","exports"],"sources":["createAppModifier.ts"],"sourcesContent":["import {\n createAcoAppModifier as baseCreateAppModifier,\n CreateAcoAppModifierCallable\n} from \"@webiny/api-aco\";\nimport { AUDIT_LOGS_TYPE } from \"./contants\";\nimport { AuditLogsAcoContext } from \"./types\";\nimport { Context } from \"@webiny/handler/types\";\n\nexport const createAppModifier = <T extends Context = AuditLogsAcoContext>(\n cb: CreateAcoAppModifierCallable<T>\n) => {\n return baseCreateAppModifier<T>(AUDIT_LOGS_TYPE, cb);\n};\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAIA,IAAAC,SAAA,GAAAD,OAAA;AAIO,MAAME,iBAAiB,GAC1BC,EAAmC,IAClC;EACD,OAAO,IAAAC,4BAAqB,EAAIC,yBAAe,EAAEF,EAAE,CAAC;AACxD,CAAC;AAACG,OAAA,CAAAJ,iBAAA,GAAAA,iBAAA"}
package/app/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { ContextPlugin } from "@webiny/api";
2
+ import { AuditLogsAcoContext } from "./types";
3
+ export * from "./createAppModifier";
4
+ export declare const createAcoAuditLogsContext: () => ContextPlugin<AuditLogsAcoContext>;
package/app/index.js ADDED
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _exportNames = {
7
+ createAcoAuditLogsContext: true
8
+ };
9
+ exports.createAcoAuditLogsContext = void 0;
10
+ var _api = require("@webiny/api");
11
+ var _app = require("./app");
12
+ var _createAppModifier = require("./createAppModifier");
13
+ Object.keys(_createAppModifier).forEach(function (key) {
14
+ if (key === "default" || key === "__esModule") return;
15
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
16
+ if (key in exports && exports[key] === _createAppModifier[key]) return;
17
+ Object.defineProperty(exports, key, {
18
+ enumerable: true,
19
+ get: function () {
20
+ return _createAppModifier[key];
21
+ }
22
+ });
23
+ });
24
+ const setupContext = async context => {
25
+ const app = await context.aco.registerApp((0, _app.createApp)());
26
+ context.auditLogsAco = {
27
+ app
28
+ };
29
+ };
30
+ const createAcoAuditLogsContext = () => {
31
+ const plugin = new _api.ContextPlugin(async context => {
32
+ if (!context.aco) {
33
+ console.log(`There is no ACO initialized so we will not initialize the Audit Logs ACO.`);
34
+ return;
35
+ }
36
+ await setupContext(context);
37
+ });
38
+ plugin.name = "audit-logs-aco.createContext";
39
+ return plugin;
40
+ };
41
+ exports.createAcoAuditLogsContext = createAcoAuditLogsContext;
42
+
43
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_api","require","_app","_createAppModifier","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","setupContext","context","app","aco","registerApp","createApp","auditLogsAco","createAcoAuditLogsContext","plugin","ContextPlugin","console","log","name"],"sources":["index.ts"],"sourcesContent":["import { ContextPlugin } from \"@webiny/api\";\nimport { AuditLogsAcoContext } from \"./types\";\nimport { createApp } from \"./app\";\n\nexport * from \"./createAppModifier\";\n\nconst setupContext = async (context: AuditLogsAcoContext): Promise<void> => {\n const app = await context.aco.registerApp(createApp());\n\n context.auditLogsAco = {\n app\n };\n};\n\nexport const createAcoAuditLogsContext = () => {\n const plugin = new ContextPlugin<AuditLogsAcoContext>(async context => {\n if (!context.aco) {\n console.log(\n `There is no ACO initialized so we will not initialize the Audit Logs ACO.`\n );\n return;\n }\n await setupContext(context);\n });\n\n plugin.name = \"audit-logs-aco.createContext\";\n\n return plugin;\n};\n"],"mappings":";;;;;;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AAEA,IAAAC,IAAA,GAAAD,OAAA;AAEA,IAAAE,kBAAA,GAAAF,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAF,kBAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,kBAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,kBAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AAEA,MAAMS,YAAY,GAAG,MAAOC,OAA4B,IAAoB;EACxE,MAAMC,GAAG,GAAG,MAAMD,OAAO,CAACE,GAAG,CAACC,WAAW,CAAC,IAAAC,cAAS,EAAC,CAAC,CAAC;EAEtDJ,OAAO,CAACK,YAAY,GAAG;IACnBJ;EACJ,CAAC;AACL,CAAC;AAEM,MAAMK,yBAAyB,GAAGA,CAAA,KAAM;EAC3C,MAAMC,MAAM,GAAG,IAAIC,kBAAa,CAAsB,MAAMR,OAAO,IAAI;IACnE,IAAI,CAACA,OAAO,CAACE,GAAG,EAAE;MACdO,OAAO,CAACC,GAAG,CACN,2EACL,CAAC;MACD;IACJ;IACA,MAAMX,YAAY,CAACC,OAAO,CAAC;EAC/B,CAAC,CAAC;EAEFO,MAAM,CAACI,IAAI,GAAG,8BAA8B;EAE5C,OAAOJ,MAAM;AACjB,CAAC;AAACZ,OAAA,CAAAW,yBAAA,GAAAA,yBAAA"}
package/app/types.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import { AcoContext, IAcoApp } from "@webiny/api-aco/types";
2
+ import { Context as BaseContext } from "@webiny/handler/types";
3
+ export interface AuditLogsAcoContext extends BaseContext, AcoContext {
4
+ auditLogsAco: {
5
+ app: IAcoApp;
6
+ };
7
+ }
package/app/types.js ADDED
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import { AcoContext, IAcoApp } from \"@webiny/api-aco/types\";\nimport { Context as BaseContext } from \"@webiny/handler/types\";\n\nexport interface AuditLogsAcoContext extends BaseContext, AcoContext {\n auditLogsAco: {\n app: IAcoApp;\n };\n}\n"],"mappings":""}
package/config.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ import { App } from "./types";
2
+ export declare enum ActionType {
3
+ CREATE = "CREATE",
4
+ UPDATE = "UPDATE",
5
+ DELETE = "DELETE",
6
+ PUBLISH = "PUBLISH",
7
+ UNPUBLISH = "UNPUBLISH",
8
+ IMPORT = "IMPORT",
9
+ EXPORT = "EXPORT"
10
+ }
11
+ export declare const auditLogsApps: App[];
12
+ export declare const AUDIT: import("./types").AuditObject;
package/config.js ADDED
@@ -0,0 +1,284 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.auditLogsApps = exports.ActionType = exports.AUDIT = void 0;
7
+ var _getAuditObject = require("./utils/getAuditObject");
8
+ let ActionType = /*#__PURE__*/function (ActionType) {
9
+ ActionType["CREATE"] = "CREATE";
10
+ ActionType["UPDATE"] = "UPDATE";
11
+ ActionType["DELETE"] = "DELETE";
12
+ ActionType["PUBLISH"] = "PUBLISH";
13
+ ActionType["UNPUBLISH"] = "UNPUBLISH";
14
+ ActionType["IMPORT"] = "IMPORT";
15
+ ActionType["EXPORT"] = "EXPORT";
16
+ return ActionType;
17
+ }({});
18
+ exports.ActionType = ActionType;
19
+ const commonActions = {
20
+ CREATE: {
21
+ type: ActionType.CREATE,
22
+ displayName: "Create"
23
+ },
24
+ UPDATE: {
25
+ type: ActionType.UPDATE,
26
+ displayName: "Update"
27
+ },
28
+ DELETE: {
29
+ type: ActionType.DELETE,
30
+ displayName: "Delete"
31
+ }
32
+ };
33
+ const publishActions = {
34
+ PUBLISH: {
35
+ type: ActionType.PUBLISH,
36
+ displayName: "Publish"
37
+ },
38
+ UNPUBLISH: {
39
+ type: ActionType.UNPUBLISH,
40
+ displayName: "Unpublish"
41
+ }
42
+ };
43
+ const importExportActions = {
44
+ IMPORT: {
45
+ type: ActionType.IMPORT,
46
+ displayName: "Import"
47
+ },
48
+ EXPORT: {
49
+ type: ActionType.EXPORT,
50
+ displayName: "Export"
51
+ }
52
+ };
53
+ const auditLogsApps = [{
54
+ app: "APW",
55
+ displayName: "APW",
56
+ entities: [{
57
+ type: "CHANGE_REQUEST",
58
+ displayName: "Change Request",
59
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE, {
60
+ type: "MARK_RESOLVED",
61
+ displayName: "Mark resolved"
62
+ }, {
63
+ type: "MARK_UNRESOLVED",
64
+ displayName: "Mark unresolved"
65
+ }]
66
+ }, {
67
+ type: "COMMENT",
68
+ displayName: "Comment",
69
+ actions: [commonActions.CREATE]
70
+ }, {
71
+ type: "CONTENT_REVIEW",
72
+ displayName: "Content Review",
73
+ linkToEntity(id) {
74
+ return `/apw/content-reviews/${id}`;
75
+ },
76
+ actions: [commonActions.CREATE]
77
+ }, {
78
+ type: "WORKFLOW",
79
+ displayName: "Workflow",
80
+ linkToEntity(id) {
81
+ return `/apw/publishing-workflows?id=${id}`;
82
+ },
83
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
84
+ }]
85
+ }, {
86
+ app: "FILE_MANAGER",
87
+ displayName: "File Manager",
88
+ entities: [{
89
+ type: "FILE",
90
+ displayName: "File",
91
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
92
+ }, {
93
+ type: "FILE_FOLDER",
94
+ displayName: "File folder",
95
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
96
+ }, {
97
+ type: "SETTINGS",
98
+ displayName: "Settings",
99
+ actions: [commonActions.UPDATE]
100
+ }]
101
+ }, {
102
+ app: "FORM_BUILDER",
103
+ displayName: "Form Builder",
104
+ entities: [{
105
+ type: "FORM",
106
+ displayName: "Form",
107
+ linkToEntity(id) {
108
+ return `/form-builder/forms?id=${id}`;
109
+ },
110
+ actions: [commonActions.CREATE, commonActions.DELETE, importExportActions.EXPORT, importExportActions.IMPORT]
111
+ }, {
112
+ type: "FORM_REVISION",
113
+ displayName: "Form revision",
114
+ linkToEntity(id) {
115
+ return `/form-builder/forms?id=${id}`;
116
+ },
117
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE, publishActions.PUBLISH, publishActions.UNPUBLISH]
118
+ }, {
119
+ type: "FORM_SUBMISSION",
120
+ displayName: "Form submission",
121
+ actions: [importExportActions.EXPORT]
122
+ }, {
123
+ type: "SETTINGS",
124
+ displayName: "Settings",
125
+ actions: [commonActions.UPDATE]
126
+ }]
127
+ }, {
128
+ app: "HEADLESS_CMS",
129
+ displayName: "Headless CMS",
130
+ entities: [{
131
+ type: "ENTRY",
132
+ displayName: "Entry",
133
+ actions: [commonActions.CREATE, commonActions.DELETE]
134
+ }, {
135
+ type: "ENTRY_REVISION",
136
+ displayName: "Entry revision",
137
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE, publishActions.PUBLISH, publishActions.UNPUBLISH]
138
+ }, {
139
+ type: "GROUP",
140
+ displayName: "Group",
141
+ linkToEntity(id) {
142
+ return `/cms/content-model-groups?id=${id}`;
143
+ },
144
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
145
+ }, {
146
+ type: "MODEL",
147
+ displayName: "Model",
148
+ linkToEntity(modelId) {
149
+ return `/cms/content-models/${modelId}`;
150
+ },
151
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
152
+ }, {
153
+ type: "MODEL_FOLDER",
154
+ displayName: "Model folder",
155
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
156
+ }]
157
+ }, {
158
+ app: "I18N",
159
+ displayName: "i18n",
160
+ entities: [{
161
+ type: "LOCALE",
162
+ displayName: "Locale",
163
+ linkToEntity(id) {
164
+ return `/i18n/locales?code=${id}`;
165
+ },
166
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
167
+ }]
168
+ }, {
169
+ app: "MAILER",
170
+ displayName: "Mailer",
171
+ entities: [{
172
+ type: "SETTINGS",
173
+ displayName: "Settings",
174
+ actions: [commonActions.UPDATE]
175
+ }]
176
+ }, {
177
+ app: "PAGE_BUILDER",
178
+ displayName: "Page Builder",
179
+ entities: [{
180
+ type: "BLOCK",
181
+ displayName: "Block",
182
+ linkToEntity(id) {
183
+ return `/page-builder/block-editor/${id}`;
184
+ },
185
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE, importExportActions.EXPORT, importExportActions.IMPORT]
186
+ }, {
187
+ type: "BLOCK_CATEGORY",
188
+ displayName: "Block category",
189
+ linkToEntity(slug) {
190
+ return `/page-builder/block-categories?slug=${slug}`;
191
+ },
192
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
193
+ }, {
194
+ type: "CATEGORY",
195
+ displayName: "Category",
196
+ linkToEntity(slug) {
197
+ return `/page-builder/categories?slug=${slug}`;
198
+ },
199
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
200
+ }, {
201
+ type: "MENU",
202
+ displayName: "Menu",
203
+ linkToEntity(slug) {
204
+ return `/page-builder/menus?slug=${slug}`;
205
+ },
206
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
207
+ }, {
208
+ type: "PAGE",
209
+ displayName: "Page",
210
+ linkToEntity(id) {
211
+ return `/page-builder/editor/${id}`;
212
+ },
213
+ actions: [commonActions.CREATE, commonActions.DELETE, importExportActions.EXPORT, importExportActions.IMPORT]
214
+ }, {
215
+ type: "PAGE_ELEMENT",
216
+ displayName: "Page element",
217
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
218
+ }, {
219
+ type: "PAGE_FOLDER",
220
+ displayName: "Page folder",
221
+ linkToEntity(id) {
222
+ return `/page-builder/pages?folderId=${id}`;
223
+ },
224
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
225
+ }, {
226
+ type: "PAGE_REVISION",
227
+ displayName: "Page revision",
228
+ linkToEntity(id) {
229
+ return `/page-builder/editor/${id}`;
230
+ },
231
+ actions: [commonActions.CREATE, {
232
+ ...commonActions.UPDATE,
233
+ newEntryDelay: 60
234
+ }, commonActions.DELETE, publishActions.PUBLISH, publishActions.UNPUBLISH]
235
+ }, {
236
+ type: "SETTINGS",
237
+ displayName: "Settings",
238
+ actions: [commonActions.UPDATE]
239
+ }, {
240
+ type: "TEMPLATE",
241
+ displayName: "Template",
242
+ linkToEntity(id) {
243
+ return `/page-builder/page-templates?id=${id}`;
244
+ },
245
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE, importExportActions.EXPORT, importExportActions.IMPORT]
246
+ }]
247
+ }, {
248
+ app: "SECURITY",
249
+ displayName: "Security",
250
+ entities: [{
251
+ type: "API_KEY",
252
+ displayName: "API Key",
253
+ linkToEntity(id) {
254
+ return `/access-management/api-keys?id=${id}`;
255
+ },
256
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
257
+ }, {
258
+ type: "ROLE",
259
+ displayName: "Role",
260
+ linkToEntity(id) {
261
+ return `/access-management/roles?id=${id}`;
262
+ },
263
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
264
+ }, {
265
+ type: "TEAM",
266
+ displayName: "Team",
267
+ linkToEntity(id) {
268
+ return `/access-management/teams?id=${id}`;
269
+ },
270
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
271
+ }, {
272
+ type: "USER",
273
+ displayName: "User",
274
+ linkToEntity(id) {
275
+ return `/admin-users?id=${id}`;
276
+ },
277
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
278
+ }]
279
+ }];
280
+ exports.auditLogsApps = auditLogsApps;
281
+ const AUDIT = (0, _getAuditObject.getAuditObject)(auditLogsApps);
282
+ exports.AUDIT = AUDIT;
283
+
284
+ //# sourceMappingURL=config.js.map
package/config.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_getAuditObject","require","ActionType","exports","commonActions","CREATE","type","displayName","UPDATE","DELETE","publishActions","PUBLISH","UNPUBLISH","importExportActions","IMPORT","EXPORT","auditLogsApps","app","entities","actions","linkToEntity","id","modelId","slug","newEntryDelay","AUDIT","getAuditObject"],"sources":["config.ts"],"sourcesContent":["import { getAuditObject } from \"~/utils/getAuditObject\";\nimport { App } from \"~/types\";\n\nexport enum ActionType {\n CREATE = \"CREATE\",\n UPDATE = \"UPDATE\",\n DELETE = \"DELETE\",\n PUBLISH = \"PUBLISH\",\n UNPUBLISH = \"UNPUBLISH\",\n IMPORT = \"IMPORT\",\n EXPORT = \"EXPORT\"\n}\n\nconst commonActions = {\n CREATE: { type: ActionType.CREATE, displayName: \"Create\" },\n UPDATE: { type: ActionType.UPDATE, displayName: \"Update\" },\n DELETE: { type: ActionType.DELETE, displayName: \"Delete\" }\n};\n\nconst publishActions = {\n PUBLISH: { type: ActionType.PUBLISH, displayName: \"Publish\" },\n UNPUBLISH: { type: ActionType.UNPUBLISH, displayName: \"Unpublish\" }\n};\n\nconst importExportActions = {\n IMPORT: { type: ActionType.IMPORT, displayName: \"Import\" },\n EXPORT: { type: ActionType.EXPORT, displayName: \"Export\" }\n};\n\nexport const auditLogsApps: App[] = [\n {\n app: \"APW\",\n displayName: \"APW\",\n entities: [\n {\n type: \"CHANGE_REQUEST\",\n displayName: \"Change Request\",\n actions: [\n commonActions.CREATE,\n commonActions.UPDATE,\n commonActions.DELETE,\n { type: \"MARK_RESOLVED\", displayName: \"Mark resolved\" },\n { type: \"MARK_UNRESOLVED\", displayName: \"Mark unresolved\" }\n ]\n },\n {\n type: \"COMMENT\",\n displayName: \"Comment\",\n actions: [commonActions.CREATE]\n },\n {\n type: \"CONTENT_REVIEW\",\n displayName: \"Content Review\",\n linkToEntity(id) {\n return `/apw/content-reviews/${id}`;\n },\n actions: [commonActions.CREATE]\n },\n {\n type: \"WORKFLOW\",\n displayName: \"Workflow\",\n linkToEntity(id) {\n return `/apw/publishing-workflows?id=${id}`;\n },\n actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]\n }\n ]\n },\n {\n app: \"FILE_MANAGER\",\n displayName: \"File Manager\",\n entities: [\n {\n type: \"FILE\",\n displayName: \"File\",\n actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]\n },\n {\n type: \"FILE_FOLDER\",\n displayName: \"File folder\",\n actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]\n },\n {\n type: \"SETTINGS\",\n displayName: \"Settings\",\n actions: [commonActions.UPDATE]\n }\n ]\n },\n {\n app: \"FORM_BUILDER\",\n displayName: \"Form Builder\",\n entities: [\n {\n type: \"FORM\",\n displayName: \"Form\",\n linkToEntity(id) {\n return `/form-builder/forms?id=${id}`;\n },\n actions: [\n commonActions.CREATE,\n commonActions.DELETE,\n importExportActions.EXPORT,\n importExportActions.IMPORT\n ]\n },\n {\n type: \"FORM_REVISION\",\n displayName: \"Form revision\",\n linkToEntity(id) {\n return `/form-builder/forms?id=${id}`;\n },\n actions: [\n commonActions.CREATE,\n commonActions.UPDATE,\n commonActions.DELETE,\n publishActions.PUBLISH,\n publishActions.UNPUBLISH\n ]\n },\n {\n type: \"FORM_SUBMISSION\",\n displayName: \"Form submission\",\n actions: [importExportActions.EXPORT]\n },\n {\n type: \"SETTINGS\",\n displayName: \"Settings\",\n actions: [commonActions.UPDATE]\n }\n ]\n },\n {\n app: \"HEADLESS_CMS\",\n displayName: \"Headless CMS\",\n entities: [\n {\n type: \"ENTRY\",\n displayName: \"Entry\",\n actions: [commonActions.CREATE, commonActions.DELETE]\n },\n {\n type: \"ENTRY_REVISION\",\n displayName: \"Entry revision\",\n actions: [\n commonActions.CREATE,\n commonActions.UPDATE,\n commonActions.DELETE,\n publishActions.PUBLISH,\n publishActions.UNPUBLISH\n ]\n },\n {\n type: \"GROUP\",\n displayName: \"Group\",\n linkToEntity(id) {\n return `/cms/content-model-groups?id=${id}`;\n },\n actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]\n },\n {\n type: \"MODEL\",\n displayName: \"Model\",\n linkToEntity(modelId) {\n return `/cms/content-models/${modelId}`;\n },\n actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]\n },\n {\n type: \"MODEL_FOLDER\",\n displayName: \"Model folder\",\n actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]\n }\n ]\n },\n {\n app: \"I18N\",\n displayName: \"i18n\",\n entities: [\n {\n type: \"LOCALE\",\n displayName: \"Locale\",\n linkToEntity(id) {\n return `/i18n/locales?code=${id}`;\n },\n actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]\n }\n ]\n },\n {\n app: \"MAILER\",\n displayName: \"Mailer\",\n entities: [\n {\n type: \"SETTINGS\",\n displayName: \"Settings\",\n actions: [commonActions.UPDATE]\n }\n ]\n },\n {\n app: \"PAGE_BUILDER\",\n displayName: \"Page Builder\",\n entities: [\n {\n type: \"BLOCK\",\n displayName: \"Block\",\n linkToEntity(id) {\n return `/page-builder/block-editor/${id}`;\n },\n actions: [\n commonActions.CREATE,\n commonActions.UPDATE,\n commonActions.DELETE,\n importExportActions.EXPORT,\n importExportActions.IMPORT\n ]\n },\n {\n type: \"BLOCK_CATEGORY\",\n displayName: \"Block category\",\n linkToEntity(slug) {\n return `/page-builder/block-categories?slug=${slug}`;\n },\n actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]\n },\n {\n type: \"CATEGORY\",\n displayName: \"Category\",\n linkToEntity(slug) {\n return `/page-builder/categories?slug=${slug}`;\n },\n actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]\n },\n {\n type: \"MENU\",\n displayName: \"Menu\",\n linkToEntity(slug) {\n return `/page-builder/menus?slug=${slug}`;\n },\n actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]\n },\n {\n type: \"PAGE\",\n displayName: \"Page\",\n linkToEntity(id) {\n return `/page-builder/editor/${id}`;\n },\n actions: [\n commonActions.CREATE,\n commonActions.DELETE,\n importExportActions.EXPORT,\n importExportActions.IMPORT\n ]\n },\n {\n type: \"PAGE_ELEMENT\",\n displayName: \"Page element\",\n actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]\n },\n {\n type: \"PAGE_FOLDER\",\n displayName: \"Page folder\",\n linkToEntity(id) {\n return `/page-builder/pages?folderId=${id}`;\n },\n actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]\n },\n {\n type: \"PAGE_REVISION\",\n displayName: \"Page revision\",\n linkToEntity(id) {\n return `/page-builder/editor/${id}`;\n },\n actions: [\n commonActions.CREATE,\n { ...commonActions.UPDATE, newEntryDelay: 60 },\n commonActions.DELETE,\n publishActions.PUBLISH,\n publishActions.UNPUBLISH\n ]\n },\n {\n type: \"SETTINGS\",\n displayName: \"Settings\",\n actions: [commonActions.UPDATE]\n },\n {\n type: \"TEMPLATE\",\n displayName: \"Template\",\n linkToEntity(id) {\n return `/page-builder/page-templates?id=${id}`;\n },\n actions: [\n commonActions.CREATE,\n commonActions.UPDATE,\n commonActions.DELETE,\n importExportActions.EXPORT,\n importExportActions.IMPORT\n ]\n }\n ]\n },\n {\n app: \"SECURITY\",\n displayName: \"Security\",\n entities: [\n {\n type: \"API_KEY\",\n displayName: \"API Key\",\n linkToEntity(id) {\n return `/access-management/api-keys?id=${id}`;\n },\n actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]\n },\n {\n type: \"ROLE\",\n displayName: \"Role\",\n linkToEntity(id) {\n return `/access-management/roles?id=${id}`;\n },\n actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]\n },\n {\n type: \"TEAM\",\n displayName: \"Team\",\n linkToEntity(id) {\n return `/access-management/teams?id=${id}`;\n },\n actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]\n },\n {\n type: \"USER\",\n displayName: \"User\",\n linkToEntity(id) {\n return `/admin-users?id=${id}`;\n },\n actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]\n }\n ]\n }\n];\n\nexport const AUDIT = getAuditObject(auditLogsApps);\n"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAAwD,IAG5CC,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAAAC,OAAA,CAAAD,UAAA,GAAAA,UAAA;AAUtB,MAAME,aAAa,GAAG;EAClBC,MAAM,EAAE;IAAEC,IAAI,EAAEJ,UAAU,CAACG,MAAM;IAAEE,WAAW,EAAE;EAAS,CAAC;EAC1DC,MAAM,EAAE;IAAEF,IAAI,EAAEJ,UAAU,CAACM,MAAM;IAAED,WAAW,EAAE;EAAS,CAAC;EAC1DE,MAAM,EAAE;IAAEH,IAAI,EAAEJ,UAAU,CAACO,MAAM;IAAEF,WAAW,EAAE;EAAS;AAC7D,CAAC;AAED,MAAMG,cAAc,GAAG;EACnBC,OAAO,EAAE;IAAEL,IAAI,EAAEJ,UAAU,CAACS,OAAO;IAAEJ,WAAW,EAAE;EAAU,CAAC;EAC7DK,SAAS,EAAE;IAAEN,IAAI,EAAEJ,UAAU,CAACU,SAAS;IAAEL,WAAW,EAAE;EAAY;AACtE,CAAC;AAED,MAAMM,mBAAmB,GAAG;EACxBC,MAAM,EAAE;IAAER,IAAI,EAAEJ,UAAU,CAACY,MAAM;IAAEP,WAAW,EAAE;EAAS,CAAC;EAC1DQ,MAAM,EAAE;IAAET,IAAI,EAAEJ,UAAU,CAACa,MAAM;IAAER,WAAW,EAAE;EAAS;AAC7D,CAAC;AAEM,MAAMS,aAAoB,GAAG,CAChC;EACIC,GAAG,EAAE,KAAK;EACVV,WAAW,EAAE,KAAK;EAClBW,QAAQ,EAAE,CACN;IACIZ,IAAI,EA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;AAACN,OAAA,CAAAa,aAAA,GAAAA,aAAA;AAEK,MAAMS,KAAK,GAAG,IAAAC,8BAAc,EAACV,aAAa,CAAC;AAACb,OAAA,CAAAsB,KAAA,GAAAA,KAAA"}
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import { ContextPlugin } from "@webiny/api";
2
+ import { AuditLogsContext } from "./types";
3
+ export declare const createAuditLogs: () => (ContextPlugin<import("./types").AuditLogsAcoContext> | ContextPlugin<AuditLogsContext>)[];
4
+ export * from "./config";
5
+ export * from "./app/createAppModifier";