@cyberismo/assets 0.0.12 → 0.0.14
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/index.js +52 -14
- package/dist/schemas.d.ts +13 -9
- package/package.json +4 -3
- package/src/exportPdfReport/index.adoc.hbs +39 -0
- package/src/exportPdfReport/query.lp.hbs +2 -0
- package/src/hub/moduleList.json +4 -4
- package/src/schema/cardBaseSchema.json +2 -2
- package/src/schema/cardTreeDirectorySchema.json +14 -10
- package/src/schema/csvSchema.json +1 -1
- package/src/schema/macros/includeMacroSchema.json +2 -2
- package/src/schema/resources/calculationSchema.json +28 -0
- package/src/schema/resources/cardTypeSchema.json +4 -4
- package/src/schema/resources/fieldTypeSchema.json +2 -1
- package/src/schema/resources/graphModelSchema.json +2 -2
- package/src/schema/resources/graphViewSchema.json +4 -4
- package/src/schema/resources/linkTypeSchema.json +3 -2
- package/src/schema/resources/reportSchema.json +3 -3
- package/src/schema/resources/templateSchema.json +3 -3
- package/src/schema/resources/workflowSchema.json +3 -3
- package/src/schemas.ts +2 -0
- /package/{dist/THIRD-PARTY.txt → THIRD-PARTY.txt} +0 -0
package/dist/schemas.d.ts
CHANGED
|
@@ -40196,22 +40196,26 @@ export declare const parentSchema: {
|
|
|
40196
40196
|
calculationResourceSchema: {
|
|
40197
40197
|
type: string;
|
|
40198
40198
|
properties: {
|
|
40199
|
+
additionalProperties: boolean;
|
|
40199
40200
|
directories: {
|
|
40200
40201
|
type: string;
|
|
40201
40202
|
additionalProperties: boolean;
|
|
40202
|
-
};
|
|
40203
|
-
files: {
|
|
40204
|
-
type: string;
|
|
40205
|
-
$comment: string;
|
|
40206
|
-
additionalProperties: boolean;
|
|
40207
40203
|
patternProperties: {
|
|
40208
|
-
"
|
|
40204
|
+
".+": {
|
|
40209
40205
|
type: string;
|
|
40206
|
+
properties: {
|
|
40207
|
+
files: {
|
|
40208
|
+
type: string;
|
|
40209
|
+
properties: {
|
|
40210
|
+
"calculation.lp": {
|
|
40211
|
+
type: string;
|
|
40212
|
+
};
|
|
40213
|
+
};
|
|
40214
|
+
required: string[];
|
|
40215
|
+
};
|
|
40216
|
+
};
|
|
40210
40217
|
};
|
|
40211
40218
|
};
|
|
40212
|
-
properties: {
|
|
40213
|
-
".gitkeep": {};
|
|
40214
|
-
};
|
|
40215
40219
|
};
|
|
40216
40220
|
};
|
|
40217
40221
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyberismo/assets",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "This package contains static resources",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"dist",
|
|
23
|
-
"src"
|
|
23
|
+
"src",
|
|
24
|
+
"THIRD-PARTY.txt"
|
|
24
25
|
],
|
|
25
26
|
"scripts": {
|
|
26
|
-
"build": "shx rm -rf dist && shx mkdir -p dist &&
|
|
27
|
+
"build": "shx rm -rf dist && shx mkdir -p dist && pnpm script:schemas && node scripts/build.js && tsc && shx cp -r src/static dist/",
|
|
27
28
|
"dev": "pnpm build && chokidar 'src/**/*' -i 'src/schemas.ts' -c 'pnpm build'",
|
|
28
29
|
"script:schemas": "node scripts/generateSchemaImports && prettier --write src/schemas.ts"
|
|
29
30
|
}
|
|
@@ -41,8 +41,47 @@ toc::[]
|
|
|
41
41
|
| {{displayName}} | xref:{{this.key}}[{{this.title}}]{{#if this.linkDescription}} - {{this.linkDescription}}{{/if}}
|
|
42
42
|
{{/each}}
|
|
43
43
|
|===
|
|
44
|
+
{empty} +
|
|
44
45
|
{{/if}}
|
|
46
|
+
{{#if this.notifications}}
|
|
47
|
+
[discrete]
|
|
48
|
+
==== Notifications
|
|
49
|
+
|
|
50
|
+
[cols="1,2,3",options="header",frame=none,grid=rows]
|
|
51
|
+
|===
|
|
52
|
+
| Category | Title | Message
|
|
53
|
+
{{#each this.notifications}}
|
|
54
|
+
| {{category}} | {{title}} | {{message}}
|
|
55
|
+
{{/each}}
|
|
56
|
+
|===
|
|
45
57
|
{empty} +
|
|
58
|
+
{{/if}}
|
|
59
|
+
{{#if this.policyChecks.successes}}
|
|
60
|
+
[discrete]
|
|
61
|
+
==== Passed policy checks
|
|
62
|
+
|
|
63
|
+
[cols="1,3",options="header",frame=none,grid=rows]
|
|
64
|
+
|===
|
|
65
|
+
| Category | Title
|
|
66
|
+
{{#each this.policyChecks.successes}}
|
|
67
|
+
| {{category}} | {{title}}
|
|
68
|
+
{{/each}}
|
|
69
|
+
|===
|
|
70
|
+
{empty} +
|
|
71
|
+
{{/if}}
|
|
72
|
+
{{#if this.policyChecks.failures}}
|
|
73
|
+
[discrete]
|
|
74
|
+
==== Failed policy checks
|
|
75
|
+
|
|
76
|
+
[cols="1,2,3",options="header",frame=none,grid=rows]
|
|
77
|
+
|===
|
|
78
|
+
| Category | Title | Details
|
|
79
|
+
{{#each this.policyChecks.failures}}
|
|
80
|
+
| {{category}} | {{title}} | {{errorMessage}}{{#if fieldName}} ({{fieldName}}){{/if}}
|
|
81
|
+
{{/each}}
|
|
82
|
+
|===
|
|
83
|
+
{empty} +
|
|
84
|
+
{{/if}}
|
|
46
85
|
{{#include}}
|
|
47
86
|
"cardKey": "{{this.key}}",
|
|
48
87
|
"levelOffset": "{{this.levelOffset}}",
|
|
@@ -132,6 +132,8 @@ select(1, "cardTypeDisplayName").
|
|
|
132
132
|
select(1, "key").
|
|
133
133
|
select(1, "lastUpdated").
|
|
134
134
|
select(1, "links").
|
|
135
|
+
select(1, "notifications").
|
|
136
|
+
select(1, "policyChecks").
|
|
135
137
|
select(1, "labels").
|
|
136
138
|
select(1, "levelOffset").
|
|
137
139
|
select(1, "treePath").
|
package/src/hub/moduleList.json
CHANGED
|
@@ -6,28 +6,28 @@
|
|
|
6
6
|
"name": "base",
|
|
7
7
|
"displayName": "Base module",
|
|
8
8
|
"category": "essentials",
|
|
9
|
-
"location": "
|
|
9
|
+
"location": "https://github.com/CyberismoCom/module-base.git",
|
|
10
10
|
"documentationLocation": "https://github.com/CyberismoCom/module-base/blob/main/README.adoc"
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"name": "eucra",
|
|
14
14
|
"displayName": "Cyberismo EU Cyber Resilience Act",
|
|
15
15
|
"category": "essentials",
|
|
16
|
-
"location": "
|
|
16
|
+
"location": "https://github.com/CyberismoCom/module-eu-cra.git",
|
|
17
17
|
"documentationLocation": "https://github.com/CyberismoCom/module-eu-cra/blob/main/README.adoc"
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"name": "ismsa",
|
|
21
21
|
"displayName": "ISMS Essentials",
|
|
22
22
|
"category": "essentials",
|
|
23
|
-
"location": "
|
|
23
|
+
"location": "https://github.com/CyberismoCom/module-isms-essentials.git",
|
|
24
24
|
"documentationLocation": "https://github.com/CyberismoCom/module-isms-essentials/blob/main/README.adoc"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"name": "secdeva",
|
|
28
28
|
"displayName": "Secure development essentials",
|
|
29
29
|
"category": "essentials",
|
|
30
|
-
"location": "
|
|
30
|
+
"location": "https://github.com/CyberismoCom/module-secure-development-essentials.git",
|
|
31
31
|
"documentationLocation": "https://github.com/CyberismoCom/module-secure-development-essentials/blob/main/README.adoc"
|
|
32
32
|
}
|
|
33
33
|
]
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"properties": {
|
|
6
6
|
"cardType": {
|
|
7
7
|
"type": "string",
|
|
8
|
-
"minLength":
|
|
8
|
+
"minLength": 7,
|
|
9
9
|
"description": "The name of the card type",
|
|
10
|
-
"pattern": "^[A-Za-
|
|
10
|
+
"pattern": "^[A-Za-z0-9/._-]+$"
|
|
11
11
|
},
|
|
12
12
|
"title": {
|
|
13
13
|
"type": "string",
|
|
@@ -122,21 +122,25 @@
|
|
|
122
122
|
"calculationResourceSchema": {
|
|
123
123
|
"type": "object",
|
|
124
124
|
"properties": {
|
|
125
|
+
"additionalProperties": false,
|
|
125
126
|
"directories": {
|
|
126
127
|
"type": "object",
|
|
127
|
-
"additionalProperties": false
|
|
128
|
-
},
|
|
129
|
-
"files": {
|
|
130
|
-
"type": "object",
|
|
131
|
-
"$comment": "Each file must be a logic program file",
|
|
132
128
|
"additionalProperties": false,
|
|
133
129
|
"patternProperties": {
|
|
134
|
-
"
|
|
135
|
-
"type": "object"
|
|
130
|
+
".+": {
|
|
131
|
+
"type": "object",
|
|
132
|
+
"properties": {
|
|
133
|
+
"files": {
|
|
134
|
+
"type": "object",
|
|
135
|
+
"properties": {
|
|
136
|
+
"calculation.lp": {
|
|
137
|
+
"type": "object"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"required": ["calculation.lp"]
|
|
141
|
+
}
|
|
142
|
+
}
|
|
136
143
|
}
|
|
137
|
-
},
|
|
138
|
-
"properties": {
|
|
139
|
-
".gitkeep": {}
|
|
140
144
|
}
|
|
141
145
|
}
|
|
142
146
|
}
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"description": "Optional offset to adjust the heading levels of the included content. Should be a number as string (e.g., '+1', '+2' or '-1')."
|
|
12
12
|
},
|
|
13
13
|
"title": {
|
|
14
|
-
"type": "
|
|
14
|
+
"type": "string",
|
|
15
15
|
"description": "Whether to include the title of the card in the included content. If 'only' is selected, the title will be the only content included.",
|
|
16
16
|
"enum": ["include", "exclude", "only"]
|
|
17
17
|
},
|
|
18
18
|
"pageTitles": {
|
|
19
|
-
"type": "
|
|
19
|
+
"type": "string",
|
|
20
20
|
"description": "If discrete, page titles will be included as discrete headings(read asciidoctor docs for more info). If normal, page titles will be included as normal headings.",
|
|
21
21
|
"enum": ["normal", "discrete"]
|
|
22
22
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "calculationSchema",
|
|
3
|
+
"additionalProperties": false,
|
|
4
|
+
"description": "A calculation object provides logic programming rules and metadata for calculations",
|
|
5
|
+
"properties": {
|
|
6
|
+
"name": {
|
|
7
|
+
"description": "The name of this calculation",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"pattern": "^[A-Za-z0-9/._-]+$"
|
|
11
|
+
},
|
|
12
|
+
"displayName": {
|
|
13
|
+
"description": "The name of the calculation as it should be displayed in the user interface",
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"description": {
|
|
17
|
+
"description": "A description of the calculation and its purpose",
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"calculation": {
|
|
21
|
+
"description": "The logic programming content for this calculation",
|
|
22
|
+
"type": "string"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": ["name"],
|
|
26
|
+
"title": "Calculation",
|
|
27
|
+
"type": "object"
|
|
28
|
+
}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"name": {
|
|
7
7
|
"description": "The name of the card type",
|
|
8
8
|
"type": "string",
|
|
9
|
-
"minLength":
|
|
10
|
-
"pattern": "^[A-Za-z0-9
|
|
9
|
+
"minLength": 7,
|
|
10
|
+
"pattern": "^[A-Za-z0-9/._-]+$"
|
|
11
11
|
},
|
|
12
12
|
"description": {
|
|
13
13
|
"description": "A description that describes the card type",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"workflow": {
|
|
21
21
|
"description": "The name of the workflow",
|
|
22
22
|
"type": "string",
|
|
23
|
-
"minLength":
|
|
24
|
-
"pattern": "^[A-Za-z0-9
|
|
23
|
+
"minLength": 7,
|
|
24
|
+
"pattern": "^[A-Za-z0-9/._-]+$"
|
|
25
25
|
},
|
|
26
26
|
"customFields": {
|
|
27
27
|
"type": "array",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"name": {
|
|
7
7
|
"description": "The name of this graph model",
|
|
8
8
|
"type": "string",
|
|
9
|
-
"minLength":
|
|
9
|
+
"minLength": 7,
|
|
10
10
|
"pattern": "^[A-Za-z0-9/._-]+$"
|
|
11
11
|
},
|
|
12
12
|
"displayName": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"type": "string"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
|
-
"required": ["displayName", "name"
|
|
25
|
+
"required": ["displayName", "name"],
|
|
26
26
|
"title": "GraphModel",
|
|
27
27
|
"type": "object"
|
|
28
28
|
}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"properties": {
|
|
6
6
|
"name": {
|
|
7
7
|
"description": "The name of this graph view",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
8
|
+
"minLength": 7,
|
|
9
|
+
"pattern": "^[A-Za-z0-9/._-]+$",
|
|
10
|
+
"type": "string"
|
|
11
11
|
},
|
|
12
12
|
"displayName": {
|
|
13
13
|
"description": "The name of the graph view as it should be displayed in the user interface. For example, 'Workflow view'.",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"type": "string"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
|
-
"required": ["displayName", "name"
|
|
25
|
+
"required": ["displayName", "name"],
|
|
26
26
|
"title": "GraphView",
|
|
27
27
|
"type": "object"
|
|
28
28
|
}
|
|
@@ -12,9 +12,10 @@
|
|
|
12
12
|
"type": "string"
|
|
13
13
|
},
|
|
14
14
|
"name": {
|
|
15
|
-
"type": "string",
|
|
16
15
|
"description": "The technical name by which the field is referred to in JSON files.",
|
|
17
|
-
"
|
|
16
|
+
"minLength": 7,
|
|
17
|
+
"pattern": "^[A-Za-z0-9/._-]+$",
|
|
18
|
+
"type": "string"
|
|
18
19
|
},
|
|
19
20
|
"outboundDisplayName": {
|
|
20
21
|
"type": "string",
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"properties": {
|
|
6
6
|
"name": {
|
|
7
7
|
"description": "The name of this report",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
8
|
+
"minLength": 7,
|
|
9
|
+
"pattern": "^[A-Za-z0-9/._-]+$",
|
|
10
|
+
"type": "string"
|
|
11
11
|
},
|
|
12
12
|
"displayName": {
|
|
13
13
|
"description": "The name of the report as it should be displayed in the user interface. For example, 'Children list'.",
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"properties": {
|
|
6
6
|
"name": {
|
|
7
7
|
"description": "The name of this template",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
8
|
+
"minLength": 7,
|
|
9
|
+
"pattern": "^[A-Za-z0-9/._-]+$",
|
|
10
|
+
"type": "string"
|
|
11
11
|
},
|
|
12
12
|
"displayName": {
|
|
13
13
|
"description": "The name of the template as it should be displayed in the user interface. For example, 'Decision'.",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
},
|
|
14
14
|
"name": {
|
|
15
15
|
"description": "The name of this workflow",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
16
|
+
"minLength": 7,
|
|
17
|
+
"pattern": "^[A-Za-z0-9/._-]+$",
|
|
18
|
+
"type": "string"
|
|
19
19
|
},
|
|
20
20
|
"states": {
|
|
21
21
|
"description": "The states of the workflow",
|
package/src/schemas.ts
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
/* THIS IS AN AUTOGENERATED FILE, DO NOT EDIT IT MANUALLY */
|
|
15
|
+
import calculationSchema from './schema/resources/calculationSchema.json' with { type: 'json' };
|
|
15
16
|
import cardBaseSchema from './schema/cardBaseSchema.json' with { type: 'json' };
|
|
16
17
|
import cardsConfigSchema from './schema/cardsConfigSchema.json' with { type: 'json' };
|
|
17
18
|
import cardTypeSchema from './schema/resources/cardTypeSchema.json' with { type: 'json' };
|
|
@@ -39,6 +40,7 @@ import xrefMacroSchema from './schema/macros/xrefMacroSchema.json' with { type:
|
|
|
39
40
|
import cardTreeDirectorySchema from './schema/cardTreeDirectorySchema.json' with { type: 'json' };
|
|
40
41
|
|
|
41
42
|
export const schemas = [
|
|
43
|
+
calculationSchema,
|
|
42
44
|
cardBaseSchema,
|
|
43
45
|
cardsConfigSchema,
|
|
44
46
|
cardTypeSchema,
|
|
File without changes
|