@webiny/api-audit-logs 5.38.0-beta.0

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 +121 -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 +285 -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 +81 -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 +33 -0
  152. package/utils/getAuditConfig.js +138 -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,121 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.createApp = void 0;
8
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
9
+ var _contants = require("./contants");
10
+ var _compressor = require("../utils/compressor");
11
+ var _apiSecurity = require("@webiny/api-security");
12
+ const toDate = value => {
13
+ if (value instanceof Date) {
14
+ return value;
15
+ }
16
+ try {
17
+ return new Date(value);
18
+ } catch {
19
+ return value;
20
+ }
21
+ };
22
+ const decompressData = entry => {
23
+ var _entry$data;
24
+ if (!((_entry$data = entry.data) !== null && _entry$data !== void 0 && _entry$data.data)) {
25
+ return entry;
26
+ }
27
+ return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, entry), {}, {
28
+ data: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, entry.data), {}, {
29
+ timestamp: toDate(entry.data.timestamp),
30
+ data: _compressor.compressor.decompress(entry.data.data)
31
+ })
32
+ });
33
+ };
34
+ const createApp = () => {
35
+ return {
36
+ name: _contants.AUDIT_LOGS_TYPE,
37
+ apiName: "AuditLogs",
38
+ fields: [{
39
+ id: "id",
40
+ fieldId: "id",
41
+ type: "text",
42
+ storageId: "text@id",
43
+ label: "ID"
44
+ }, {
45
+ id: "message",
46
+ fieldId: "message",
47
+ type: "text",
48
+ storageId: "text@message",
49
+ label: "Message"
50
+ }, {
51
+ id: "app",
52
+ fieldId: "app",
53
+ type: "text",
54
+ storageId: "text@app",
55
+ label: "App"
56
+ }, {
57
+ id: "entity",
58
+ fieldId: "entity",
59
+ type: "text",
60
+ storageId: "text@entity",
61
+ label: "Entity"
62
+ }, {
63
+ id: "entityId",
64
+ fieldId: "entityId",
65
+ type: "text",
66
+ storageId: "text@entityId",
67
+ label: "Entity ID"
68
+ }, {
69
+ id: "action",
70
+ fieldId: "action",
71
+ type: "text",
72
+ storageId: "text@action",
73
+ label: "Action"
74
+ }, {
75
+ id: "data",
76
+ fieldId: "data",
77
+ type: "text",
78
+ storageId: "text@data",
79
+ label: "Data"
80
+ }, {
81
+ id: "timestamp",
82
+ fieldId: "timestamp",
83
+ type: "datetime",
84
+ settings: {
85
+ type: "dateTimeWithoutTimezone"
86
+ },
87
+ storageId: "datetime@timestamp",
88
+ label: "Timestamp"
89
+ }, {
90
+ id: "initiator",
91
+ fieldId: "initiator",
92
+ type: "text",
93
+ storageId: "text@initiator",
94
+ label: "Initiator"
95
+ }],
96
+ onEntry: async entry => {
97
+ return decompressData(entry);
98
+ },
99
+ onEntryList: async entries => {
100
+ return Promise.all(entries.map(entry => {
101
+ return decompressData(entry);
102
+ }));
103
+ },
104
+ onAnyRequest: async (context, action) => {
105
+ const permissions = await context.security.getPermissions("al.*");
106
+ for (const permission of permissions) {
107
+ if (permission.name === "al.*") {
108
+ return;
109
+ } else if (permission.name === `al.${action}`) {
110
+ return;
111
+ }
112
+ }
113
+ throw new _apiSecurity.NotAuthorizedError({
114
+ message: "You cannot access audit logs."
115
+ });
116
+ }
117
+ };
118
+ };
119
+ exports.createApp = createApp;
120
+
121
+ //# 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","_entry$data","data","_objectSpread2","default","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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AAIH,WAAW,EAAE;QAClC,IAAIG,UAAU,CAACtB,IAAI,KAAK,MAAM,EAAE;UAC5B;QACJ,CAAC,MAAM,IAAIsB,UAAU,CAACtB,IAAI,KAAM,MAAKkB,MAAO,EAAC,EAAE;UAC3C;QACJ;MACJ;MAEA,MAAM,IAAIK,+BAAkB,CAAC;QACzBC,OAAO,EAAE;MACb,CAAC,CAAC;IACN;EACJ,CAAC;AACL,CAAC;AAACC,OAAA,CAAA1B,SAAA,GAAAA,SAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const ROOT_FOLDER = "root";
2
+ 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,285 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.auditLogsApps = exports.ActionType = exports.AUDIT = void 0;
8
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
9
+ var _getAuditObject = require("./utils/getAuditObject");
10
+ let ActionType = /*#__PURE__*/function (ActionType) {
11
+ ActionType["CREATE"] = "CREATE";
12
+ ActionType["UPDATE"] = "UPDATE";
13
+ ActionType["DELETE"] = "DELETE";
14
+ ActionType["PUBLISH"] = "PUBLISH";
15
+ ActionType["UNPUBLISH"] = "UNPUBLISH";
16
+ ActionType["IMPORT"] = "IMPORT";
17
+ ActionType["EXPORT"] = "EXPORT";
18
+ return ActionType;
19
+ }({});
20
+ exports.ActionType = ActionType;
21
+ const commonActions = {
22
+ CREATE: {
23
+ type: ActionType.CREATE,
24
+ displayName: "Create"
25
+ },
26
+ UPDATE: {
27
+ type: ActionType.UPDATE,
28
+ displayName: "Update"
29
+ },
30
+ DELETE: {
31
+ type: ActionType.DELETE,
32
+ displayName: "Delete"
33
+ }
34
+ };
35
+ const publishActions = {
36
+ PUBLISH: {
37
+ type: ActionType.PUBLISH,
38
+ displayName: "Publish"
39
+ },
40
+ UNPUBLISH: {
41
+ type: ActionType.UNPUBLISH,
42
+ displayName: "Unpublish"
43
+ }
44
+ };
45
+ const importExportActions = {
46
+ IMPORT: {
47
+ type: ActionType.IMPORT,
48
+ displayName: "Import"
49
+ },
50
+ EXPORT: {
51
+ type: ActionType.EXPORT,
52
+ displayName: "Export"
53
+ }
54
+ };
55
+ const auditLogsApps = [{
56
+ app: "APW",
57
+ displayName: "APW",
58
+ entities: [{
59
+ type: "CHANGE_REQUEST",
60
+ displayName: "Change Request",
61
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE, {
62
+ type: "MARK_RESOLVED",
63
+ displayName: "Mark resolved"
64
+ }, {
65
+ type: "MARK_UNRESOLVED",
66
+ displayName: "Mark unresolved"
67
+ }]
68
+ }, {
69
+ type: "COMMENT",
70
+ displayName: "Comment",
71
+ actions: [commonActions.CREATE]
72
+ }, {
73
+ type: "CONTENT_REVIEW",
74
+ displayName: "Content Review",
75
+ linkToEntity(id) {
76
+ return `/apw/content-reviews/${id}`;
77
+ },
78
+ actions: [commonActions.CREATE]
79
+ }, {
80
+ type: "WORKFLOW",
81
+ displayName: "Workflow",
82
+ linkToEntity(id) {
83
+ return `/apw/publishing-workflows?id=${id}`;
84
+ },
85
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
86
+ }]
87
+ }, {
88
+ app: "FILE_MANAGER",
89
+ displayName: "File Manager",
90
+ entities: [{
91
+ type: "FILE",
92
+ displayName: "File",
93
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
94
+ }, {
95
+ type: "FILE_FOLDER",
96
+ displayName: "File folder",
97
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
98
+ }, {
99
+ type: "SETTINGS",
100
+ displayName: "Settings",
101
+ actions: [commonActions.UPDATE]
102
+ }]
103
+ }, {
104
+ app: "FORM_BUILDER",
105
+ displayName: "Form Builder",
106
+ entities: [{
107
+ type: "FORM",
108
+ displayName: "Form",
109
+ linkToEntity(id) {
110
+ return `/form-builder/forms?id=${id}`;
111
+ },
112
+ actions: [commonActions.CREATE, commonActions.DELETE, importExportActions.EXPORT, importExportActions.IMPORT]
113
+ }, {
114
+ type: "FORM_REVISION",
115
+ displayName: "Form revision",
116
+ linkToEntity(id) {
117
+ return `/form-builder/forms?id=${id}`;
118
+ },
119
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE, publishActions.PUBLISH, publishActions.UNPUBLISH]
120
+ }, {
121
+ type: "FORM_SUBMISSION",
122
+ displayName: "Form submission",
123
+ actions: [importExportActions.EXPORT]
124
+ }, {
125
+ type: "SETTINGS",
126
+ displayName: "Settings",
127
+ actions: [commonActions.UPDATE]
128
+ }]
129
+ }, {
130
+ app: "HEADLESS_CMS",
131
+ displayName: "Headless CMS",
132
+ entities: [{
133
+ type: "ENTRY",
134
+ displayName: "Entry",
135
+ actions: [commonActions.CREATE, commonActions.DELETE]
136
+ }, {
137
+ type: "ENTRY_REVISION",
138
+ displayName: "Entry revision",
139
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE, publishActions.PUBLISH, publishActions.UNPUBLISH]
140
+ }, {
141
+ type: "GROUP",
142
+ displayName: "Group",
143
+ linkToEntity(id) {
144
+ return `/cms/content-model-groups?id=${id}`;
145
+ },
146
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
147
+ }, {
148
+ type: "MODEL",
149
+ displayName: "Model",
150
+ linkToEntity(modelId) {
151
+ return `/cms/content-models/${modelId}`;
152
+ },
153
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
154
+ }, {
155
+ type: "MODEL_FOLDER",
156
+ displayName: "Model folder",
157
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
158
+ }]
159
+ }, {
160
+ app: "I18N",
161
+ displayName: "i18n",
162
+ entities: [{
163
+ type: "LOCALE",
164
+ displayName: "Locale",
165
+ linkToEntity(id) {
166
+ return `/i18n/locales?code=${id}`;
167
+ },
168
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
169
+ }]
170
+ }, {
171
+ app: "MAILER",
172
+ displayName: "Mailer",
173
+ entities: [{
174
+ type: "SETTINGS",
175
+ displayName: "Settings",
176
+ actions: [commonActions.UPDATE]
177
+ }]
178
+ }, {
179
+ app: "PAGE_BUILDER",
180
+ displayName: "Page Builder",
181
+ entities: [{
182
+ type: "BLOCK",
183
+ displayName: "Block",
184
+ linkToEntity(id) {
185
+ return `/page-builder/block-editor/${id}`;
186
+ },
187
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE, importExportActions.EXPORT, importExportActions.IMPORT]
188
+ }, {
189
+ type: "BLOCK_CATEGORY",
190
+ displayName: "Block category",
191
+ linkToEntity(slug) {
192
+ return `/page-builder/block-categories?slug=${slug}`;
193
+ },
194
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
195
+ }, {
196
+ type: "CATEGORY",
197
+ displayName: "Category",
198
+ linkToEntity(slug) {
199
+ return `/page-builder/categories?slug=${slug}`;
200
+ },
201
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
202
+ }, {
203
+ type: "MENU",
204
+ displayName: "Menu",
205
+ linkToEntity(slug) {
206
+ return `/page-builder/menus?slug=${slug}`;
207
+ },
208
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
209
+ }, {
210
+ type: "PAGE",
211
+ displayName: "Page",
212
+ linkToEntity(id) {
213
+ return `/page-builder/editor/${id}`;
214
+ },
215
+ actions: [commonActions.CREATE, commonActions.DELETE, importExportActions.EXPORT, importExportActions.IMPORT]
216
+ }, {
217
+ type: "PAGE_ELEMENT",
218
+ displayName: "Page element",
219
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
220
+ }, {
221
+ type: "PAGE_FOLDER",
222
+ displayName: "Page folder",
223
+ linkToEntity(id) {
224
+ return `/page-builder/pages?folderId=${id}`;
225
+ },
226
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
227
+ }, {
228
+ type: "PAGE_REVISION",
229
+ displayName: "Page revision",
230
+ linkToEntity(id) {
231
+ return `/page-builder/editor/${id}`;
232
+ },
233
+ actions: [commonActions.CREATE, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, commonActions.UPDATE), {}, {
234
+ newEntryDelay: 60
235
+ }), commonActions.DELETE, publishActions.PUBLISH, publishActions.UNPUBLISH]
236
+ }, {
237
+ type: "SETTINGS",
238
+ displayName: "Settings",
239
+ actions: [commonActions.UPDATE]
240
+ }, {
241
+ type: "TEMPLATE",
242
+ displayName: "Template",
243
+ linkToEntity(id) {
244
+ return `/page-builder/page-templates?id=${id}`;
245
+ },
246
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE, importExportActions.EXPORT, importExportActions.IMPORT]
247
+ }]
248
+ }, {
249
+ app: "SECURITY",
250
+ displayName: "Security",
251
+ entities: [{
252
+ type: "API_KEY",
253
+ displayName: "API Key",
254
+ linkToEntity(id) {
255
+ return `/access-management/api-keys?id=${id}`;
256
+ },
257
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
258
+ }, {
259
+ type: "ROLE",
260
+ displayName: "Role",
261
+ linkToEntity(id) {
262
+ return `/access-management/roles?id=${id}`;
263
+ },
264
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
265
+ }, {
266
+ type: "TEAM",
267
+ displayName: "Team",
268
+ linkToEntity(id) {
269
+ return `/access-management/teams?id=${id}`;
270
+ },
271
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
272
+ }, {
273
+ type: "USER",
274
+ displayName: "User",
275
+ linkToEntity(id) {
276
+ return `/admin-users?id=${id}`;
277
+ },
278
+ actions: [commonActions.CREATE, commonActions.UPDATE, commonActions.DELETE]
279
+ }]
280
+ }];
281
+ exports.auditLogsApps = auditLogsApps;
282
+ const AUDIT = (0, _getAuditObject.getAuditObject)(auditLogsApps);
283
+ exports.AUDIT = AUDIT;
284
+
285
+ //# 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","_objectSpread2","default","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,OAA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aAAa,CAACI,MAAM,EAAEJ,aAAa,CAACK,MAAM;EAC9E,CAAC,EACD;IACIH,IAAI,EAAE,MAAM;IACZC,WAAW,EAAE,MAAM;IACnBa,YAAYA,CAACC,EAAE,EAAE;MACb,OAAQ,+BAA8BA,EAAG,EAAC;IAC9C,CAAC;IACDF,OAAO,EAAE,CAACf,aAAa,CAACC,MAAM,EAAED,aAAa,CAACI,MAAM,EAAEJ,aAAa,CAACK,MAAM;EAC9E,CAAC,EACD;IACIH,IAAI,EAAE,MAAM;IACZC,WAAW,EAAE,MAAM;IACnBa,YAAYA,CAACC,EAAE,EAAE;MACb,OAAQ,mBAAkBA,EAAG,EAAC;IAClC,CAAC;IACDF,OAAO,EAAE,CAACf,aAAa,CAACC,MAAM,EAAED,aAAa,CAACI,MAAM,EAAEJ,aAAa,CAACK,MAAM;EAC9E,CAAC;AAET,CAAC,CACJ;AAACN,OAAA,CAAAa,aAAA,GAAAA,aAAA;AAEK,MAAMW,KAAK,GAAG,IAAAC,8BAAc,EAACZ,aAAa,CAAC;AAACb,OAAA,CAAAwB,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";