@cyberismo/assets 0.0.11 → 0.0.13
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 +130 -22
- package/dist/schemas.d.ts +267 -210
- package/dist/static/defaultGraphView/.schema +7 -0
- package/dist/static/defaultGraphView/parameterSchema.json +22 -0
- package/dist/static/defaultGraphView/view.lp.hbs +0 -0
- package/dist/static/defaultReport/parameterSchema.json +4 -4
- package/package.json +5 -4
- package/src/calculations/common/queryLanguage.lp +8 -1
- package/src/exportPdfReport/index.adoc.hbs +25 -6
- package/src/exportPdfReport/query.lp.hbs +112 -2
- package/src/hub/moduleList.json +34 -0
- package/src/schema/cardBaseSchema.json +6 -6
- package/src/schema/cardTreeDirectorySchema.json +179 -179
- package/src/schema/cardsConfigSchema.json +16 -4
- package/src/schema/csvSchema.json +4 -4
- package/src/schema/dotSchema.json +3 -3
- package/src/schema/hubSchema.json +58 -0
- package/src/schema/macros/createCardsMacroSchema.json +3 -3
- package/src/schema/macros/graphMacroBaseSchema.json +3 -3
- package/src/schema/macros/imageMacroSchema.json +3 -3
- package/src/schema/macros/includeMacroSchema.json +5 -5
- package/src/schema/macros/percentageMacroSchema.json +3 -3
- package/src/schema/macros/reportMacroBaseSchema.json +3 -3
- package/src/schema/macros/scoreCardMacroSchema.json +3 -3
- package/src/schema/macros/vegaLiteMacroSchema.json +8 -8
- package/src/schema/macros/vegaMacroSchema.json +10 -10
- package/src/schema/macros/xrefMacroSchema.json +3 -3
- package/src/schema/resources/cardTypeSchema.json +8 -8
- package/src/schema/resources/fieldTypeSchema.json +6 -5
- package/src/schema/resources/graphModelSchema.json +5 -5
- package/src/schema/resources/graphViewSchema.json +7 -7
- package/src/schema/resources/linkTypeSchema.json +7 -6
- package/src/schema/resources/reportSchema.json +6 -6
- package/src/schema/resources/templateSchema.json +7 -7
- package/src/schema/resources/workflowSchema.json +7 -7
- package/src/schema/schema.json +4 -4
- package/src/schemas.ts +2 -0
- package/src/static/defaultGraphView/.schema +7 -0
- package/src/static/defaultGraphView/parameterSchema.json +22 -0
- package/src/static/defaultGraphView/view.lp.hbs +0 -0
- package/src/static/defaultReport/parameterSchema.json +4 -4
- /package/{dist/THIRD-PARTY.txt → THIRD-PARTY.txt} +0 -0
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"title": "Csv content",
|
|
3
2
|
"$id": "csvSchema",
|
|
4
3
|
"description": "Contains the content of a CSV file as an array of objects. Each object represents a row in the CSV file.",
|
|
5
|
-
"type": "array",
|
|
6
4
|
"items": {
|
|
7
5
|
"type": "object",
|
|
8
6
|
"additionalProperties": true,
|
|
@@ -14,7 +12,7 @@
|
|
|
14
12
|
},
|
|
15
13
|
"template": {
|
|
16
14
|
"type": "string",
|
|
17
|
-
"minLength":
|
|
15
|
+
"minLength": 7,
|
|
18
16
|
"description": "the name of the template for creating the card. Notice that the template must have exactly one card"
|
|
19
17
|
},
|
|
20
18
|
"description": {
|
|
@@ -26,5 +24,7 @@
|
|
|
26
24
|
}
|
|
27
25
|
},
|
|
28
26
|
"required": ["title", "template"]
|
|
29
|
-
}
|
|
27
|
+
},
|
|
28
|
+
"title": "Csv content",
|
|
29
|
+
"type": "array"
|
|
30
30
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"title": "Dot Schema",
|
|
3
2
|
"$id": "dotSchema",
|
|
4
3
|
"description": "Schema of the .schema ",
|
|
5
|
-
"type": "array",
|
|
6
4
|
"items": {
|
|
7
5
|
"type": "object",
|
|
8
6
|
"additionalProperties": false,
|
|
@@ -21,5 +19,7 @@
|
|
|
21
19
|
}
|
|
22
20
|
},
|
|
23
21
|
"required": ["version", "id"]
|
|
24
|
-
}
|
|
22
|
+
},
|
|
23
|
+
"title": "Dot Schema",
|
|
24
|
+
"type": "array"
|
|
25
25
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "hubSchema",
|
|
3
|
+
"additionalProperties": false,
|
|
4
|
+
"description": "The contents of a Cyberismo hub.",
|
|
5
|
+
"properties": {
|
|
6
|
+
"displayName": {
|
|
7
|
+
"description": "Display name of the hub",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1
|
|
10
|
+
},
|
|
11
|
+
"description": {
|
|
12
|
+
"description": "Description of the hub",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1
|
|
15
|
+
},
|
|
16
|
+
"modules": {
|
|
17
|
+
"description": "List of modules that are available in the hub",
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"properties": {
|
|
22
|
+
"name": {
|
|
23
|
+
"description": "Module name (project prefix). Must be unique globally.",
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"displayName": {
|
|
27
|
+
"description": "Display name of the module",
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"category": {
|
|
31
|
+
"description": "Category of the module",
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"location": {
|
|
35
|
+
"description": "Git remote URL, or relative file reference.",
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"documentationLocation": {
|
|
39
|
+
"description": "URI to the documentation of the module",
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"branch": {
|
|
43
|
+
"description": "If using git remote URL in 'location' defines git branch. If empty, uses repository default branch'.",
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"private": {
|
|
47
|
+
"description": "If true, the module is private and requires credentials (CYBERISMO_GIT_USER / CYBERISMO_GIT_TOKEN) or SSH. Does not apply for local file modules.",
|
|
48
|
+
"type": "boolean"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": ["name", "location"]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": ["displayName", "description"],
|
|
56
|
+
"title": "Hub",
|
|
57
|
+
"type": "object"
|
|
58
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"type": "object",
|
|
3
2
|
"$id": "createCardsMacroSchema",
|
|
3
|
+
"additionalProperties": false,
|
|
4
4
|
"properties": {
|
|
5
5
|
"buttonLabel": {
|
|
6
6
|
"type": "string",
|
|
@@ -34,6 +34,6 @@
|
|
|
34
34
|
"required": ["linkType", "direction", "cardKey"]
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
"
|
|
38
|
-
"
|
|
37
|
+
"required": ["buttonLabel", "template"],
|
|
38
|
+
"type": "object"
|
|
39
39
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"title": "Graph",
|
|
3
2
|
"$id": "graphMacroBaseSchema",
|
|
4
3
|
"description": "A graph object provides supplemental information about a graph",
|
|
5
|
-
"type": "object",
|
|
6
4
|
"properties": {
|
|
7
5
|
"model": {
|
|
8
6
|
"description": "Model",
|
|
@@ -13,5 +11,7 @@
|
|
|
13
11
|
"type": "string"
|
|
14
12
|
}
|
|
15
13
|
},
|
|
16
|
-
"required": ["model", "view"]
|
|
14
|
+
"required": ["model", "view"],
|
|
15
|
+
"title": "Graph",
|
|
16
|
+
"type": "object"
|
|
17
17
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"type": "object",
|
|
3
2
|
"$id": "imageMacroSchema",
|
|
3
|
+
"additionalProperties": false,
|
|
4
4
|
"properties": {
|
|
5
5
|
"fileName": {
|
|
6
6
|
"type": "string",
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
"description": "Title attribute for the image"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
-
"
|
|
23
|
-
"
|
|
22
|
+
"required": ["fileName"],
|
|
23
|
+
"type": "object"
|
|
24
24
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"type": "object",
|
|
3
2
|
"$id": "includeMacroSchema",
|
|
3
|
+
"additionalProperties": false,
|
|
4
4
|
"properties": {
|
|
5
5
|
"cardKey": {
|
|
6
6
|
"type": "string",
|
|
@@ -11,16 +11,16 @@
|
|
|
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
|
}
|
|
23
23
|
},
|
|
24
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"required": ["cardKey"],
|
|
25
|
+
"type": "object"
|
|
26
26
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"type": "object",
|
|
3
2
|
"$id": "percentageMacroSchema",
|
|
3
|
+
"additionalProperties": false,
|
|
4
4
|
"properties": {
|
|
5
5
|
"title": {
|
|
6
6
|
"type": "string",
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"description": "Colour of the progress arc (optional)"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
-
"
|
|
24
|
-
"
|
|
23
|
+
"required": ["title", "value", "legend"],
|
|
24
|
+
"type": "object"
|
|
25
25
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"title": "Report",
|
|
3
2
|
"$id": "reportMacroBaseSchema",
|
|
4
3
|
"description": "A report object provides supplemental information about a report",
|
|
5
|
-
"type": "object",
|
|
6
4
|
"properties": {
|
|
7
5
|
"name": {
|
|
8
6
|
"description": "The name of the report",
|
|
9
7
|
"type": "string"
|
|
10
8
|
}
|
|
11
9
|
},
|
|
12
|
-
"required": ["name"]
|
|
10
|
+
"required": ["name"],
|
|
11
|
+
"title": "Report",
|
|
12
|
+
"type": "object"
|
|
13
13
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"type": "object",
|
|
3
2
|
"$id": "scoreCardMacroSchema",
|
|
3
|
+
"additionalProperties": false,
|
|
4
4
|
"properties": {
|
|
5
5
|
"title": {
|
|
6
6
|
"type": "string",
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
"description": "Description text shown below the value (optional)"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
-
"
|
|
23
|
-
"
|
|
22
|
+
"required": ["value"],
|
|
23
|
+
"type": "object"
|
|
24
24
|
}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$id": "vegaLiteMacroSchema",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"properties": {
|
|
5
|
-
"spec": {
|
|
6
|
-
"$ref": "#/definitions/TopLevelSpec"
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
10
|
-
"required": ["spec"],
|
|
11
4
|
"definitions": {
|
|
12
5
|
"Aggregate": {
|
|
13
6
|
"anyOf": [
|
|
@@ -31707,5 +31700,12 @@
|
|
|
31707
31700
|
"required": ["window"],
|
|
31708
31701
|
"type": "object"
|
|
31709
31702
|
}
|
|
31710
|
-
}
|
|
31703
|
+
},
|
|
31704
|
+
"properties": {
|
|
31705
|
+
"spec": {
|
|
31706
|
+
"$ref": "#/definitions/TopLevelSpec"
|
|
31707
|
+
}
|
|
31708
|
+
},
|
|
31709
|
+
"required": ["spec"],
|
|
31710
|
+
"type": "object"
|
|
31711
31711
|
}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "Vega Visualization Specification Language",
|
|
4
2
|
"$id": "vegaMacroSchema",
|
|
5
|
-
"
|
|
6
|
-
"properties": {
|
|
7
|
-
"spec": {
|
|
8
|
-
"$ref": "#/definitions/TopLevelSpec"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
"required": ["spec"],
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
12
4
|
"definitions": {
|
|
13
5
|
"autosize": {
|
|
14
6
|
"oneOf": [
|
|
@@ -14927,5 +14919,13 @@
|
|
|
14927
14919
|
}
|
|
14928
14920
|
]
|
|
14929
14921
|
}
|
|
14930
|
-
}
|
|
14922
|
+
},
|
|
14923
|
+
"properties": {
|
|
14924
|
+
"spec": {
|
|
14925
|
+
"$ref": "#/definitions/TopLevelSpec"
|
|
14926
|
+
}
|
|
14927
|
+
},
|
|
14928
|
+
"required": ["spec"],
|
|
14929
|
+
"title": "Vega Visualization Specification Language",
|
|
14930
|
+
"type": "object"
|
|
14931
14931
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"type": "object",
|
|
3
2
|
"$id": "xrefMacroSchema",
|
|
3
|
+
"additionalProperties": false,
|
|
4
4
|
"properties": {
|
|
5
5
|
"cardKey": {
|
|
6
6
|
"type": "string",
|
|
7
7
|
"description": "The key of the card to create a cross-reference to"
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"required": ["cardKey"],
|
|
11
|
+
"type": "object"
|
|
12
12
|
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"title": "Cardtype",
|
|
3
2
|
"$id": "cardTypeSchema",
|
|
4
|
-
"description": "Card type defines the workflow and optional additional fields for the cards.",
|
|
5
|
-
"type": "object",
|
|
6
3
|
"additionalProperties": false,
|
|
4
|
+
"description": "Card type defines the workflow and optional additional fields for the cards.",
|
|
7
5
|
"properties": {
|
|
8
6
|
"name": {
|
|
9
7
|
"description": "The name of the card type",
|
|
10
8
|
"type": "string",
|
|
11
|
-
"minLength":
|
|
12
|
-
"pattern": "^[A-Za-z0-9
|
|
9
|
+
"minLength": 7,
|
|
10
|
+
"pattern": "^[A-Za-z0-9/._-]+$"
|
|
13
11
|
},
|
|
14
12
|
"description": {
|
|
15
13
|
"description": "A description that describes the card type",
|
|
@@ -22,8 +20,8 @@
|
|
|
22
20
|
"workflow": {
|
|
23
21
|
"description": "The name of the workflow",
|
|
24
22
|
"type": "string",
|
|
25
|
-
"minLength":
|
|
26
|
-
"pattern": "^[A-Za-z0-9
|
|
23
|
+
"minLength": 7,
|
|
24
|
+
"pattern": "^[A-Za-z0-9/._-]+$"
|
|
27
25
|
},
|
|
28
26
|
"customFields": {
|
|
29
27
|
"type": "array",
|
|
@@ -61,5 +59,7 @@
|
|
|
61
59
|
}
|
|
62
60
|
}
|
|
63
61
|
},
|
|
64
|
-
"required": ["displayName", "name", "workflow"]
|
|
62
|
+
"required": ["displayName", "name", "workflow"],
|
|
63
|
+
"title": "Cardtype",
|
|
64
|
+
"type": "object"
|
|
65
65
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"title": "FieldType",
|
|
3
2
|
"$id": "fieldTypeSchema",
|
|
4
|
-
"description": "Field type defines the workflow and optional additional fields for the cards.",
|
|
5
|
-
"type": "object",
|
|
6
3
|
"additionalProperties": false,
|
|
4
|
+
"description": "Field type defines the workflow and optional additional fields for the cards.",
|
|
7
5
|
"properties": {
|
|
8
6
|
"name": {
|
|
9
7
|
"type": "string",
|
|
10
8
|
"description": "The technical name by which the field is referred to in JSON files.",
|
|
11
|
-
"pattern": "^[A-Za-z0-9/._-]+$"
|
|
9
|
+
"pattern": "^[A-Za-z0-9/._-]+$",
|
|
10
|
+
"minLength": 7
|
|
12
11
|
},
|
|
13
12
|
"displayName": {
|
|
14
13
|
"type": "string",
|
|
@@ -44,5 +43,7 @@
|
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
45
|
},
|
|
47
|
-
"required": ["displayName", "name", "dataType"]
|
|
46
|
+
"required": ["displayName", "name", "dataType"],
|
|
47
|
+
"title": "FieldType",
|
|
48
|
+
"type": "object"
|
|
48
49
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"title": "GraphModel",
|
|
3
2
|
"$id": "graphModelSchema",
|
|
3
|
+
"additionalProperties": false,
|
|
4
4
|
"description": "A graph model object provides data for graph views",
|
|
5
|
-
"type": "object",
|
|
6
5
|
"properties": {
|
|
7
6
|
"name": {
|
|
8
7
|
"description": "The name of this graph model",
|
|
9
8
|
"type": "string",
|
|
10
|
-
"minLength":
|
|
9
|
+
"minLength": 7,
|
|
11
10
|
"pattern": "^[A-Za-z0-9/._-]+$"
|
|
12
11
|
},
|
|
13
12
|
"displayName": {
|
|
@@ -23,6 +22,7 @@
|
|
|
23
22
|
"type": "string"
|
|
24
23
|
}
|
|
25
24
|
},
|
|
26
|
-
"required": ["displayName", "name"
|
|
27
|
-
"
|
|
25
|
+
"required": ["displayName", "name"],
|
|
26
|
+
"title": "GraphModel",
|
|
27
|
+
"type": "object"
|
|
28
28
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"title": "GraphView",
|
|
3
2
|
"$id": "graphViewSchema",
|
|
3
|
+
"additionalProperties": false,
|
|
4
4
|
"description": "A graph view object provides means to show graph model data to users",
|
|
5
|
-
"type": "object",
|
|
6
5
|
"properties": {
|
|
7
6
|
"name": {
|
|
8
7
|
"description": "The name of this graph view",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
8
|
+
"minLength": 7,
|
|
9
|
+
"pattern": "^[A-Za-z0-9/._-]+$",
|
|
10
|
+
"type": "string"
|
|
12
11
|
},
|
|
13
12
|
"displayName": {
|
|
14
13
|
"description": "The name of the graph view as it should be displayed in the user interface. For example, 'Workflow view'.",
|
|
@@ -23,6 +22,7 @@
|
|
|
23
22
|
"type": "string"
|
|
24
23
|
}
|
|
25
24
|
},
|
|
26
|
-
"required": ["displayName", "name"
|
|
27
|
-
"
|
|
25
|
+
"required": ["displayName", "name"],
|
|
26
|
+
"title": "GraphView",
|
|
27
|
+
"type": "object"
|
|
28
28
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"title": "LinkType",
|
|
3
2
|
"$id": "linkTypeSchema",
|
|
4
|
-
"description": "Link types defined different ways to link cards together.",
|
|
5
|
-
"type": "object",
|
|
6
3
|
"additionalProperties": false,
|
|
4
|
+
"description": "Link types defined different ways to link cards together.",
|
|
7
5
|
"properties": {
|
|
8
6
|
"description": {
|
|
9
7
|
"description": "A description that describes the link type",
|
|
@@ -14,9 +12,10 @@
|
|
|
14
12
|
"type": "string"
|
|
15
13
|
},
|
|
16
14
|
"name": {
|
|
17
|
-
"type": "string",
|
|
18
15
|
"description": "The technical name by which the field is referred to in JSON files.",
|
|
19
|
-
"
|
|
16
|
+
"minLength": 7,
|
|
17
|
+
"pattern": "^[A-Za-z0-9/._-]+$",
|
|
18
|
+
"type": "string"
|
|
20
19
|
},
|
|
21
20
|
"outboundDisplayName": {
|
|
22
21
|
"type": "string",
|
|
@@ -53,5 +52,7 @@
|
|
|
53
52
|
"sourceCardTypes",
|
|
54
53
|
"destinationCardTypes",
|
|
55
54
|
"enableLinkDescription"
|
|
56
|
-
]
|
|
55
|
+
],
|
|
56
|
+
"title": "LinkType",
|
|
57
|
+
"type": "object"
|
|
57
58
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"title": "Report",
|
|
3
2
|
"$id": "reportSchema",
|
|
3
|
+
"additionalProperties": false,
|
|
4
4
|
"description": "A report object provides supplemental information about a report",
|
|
5
|
-
"type": "object",
|
|
6
5
|
"properties": {
|
|
7
6
|
"name": {
|
|
8
7
|
"description": "The name of this report",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
8
|
+
"minLength": 7,
|
|
9
|
+
"pattern": "^[A-Za-z0-9/._-]+$",
|
|
10
|
+
"type": "string"
|
|
12
11
|
},
|
|
13
12
|
"displayName": {
|
|
14
13
|
"description": "The name of the report as it should be displayed in the user interface. For example, 'Children list'.",
|
|
@@ -24,5 +23,6 @@
|
|
|
24
23
|
}
|
|
25
24
|
},
|
|
26
25
|
"required": ["name", "displayName", "category"],
|
|
27
|
-
"
|
|
26
|
+
"title": "Report",
|
|
27
|
+
"type": "object"
|
|
28
28
|
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"title": "Template",
|
|
3
2
|
"$id": "templateSchema",
|
|
4
|
-
"description": "A template object provides supplemental information about a template directory structure ",
|
|
5
|
-
"type": "object",
|
|
6
3
|
"additionalProperties": false,
|
|
4
|
+
"description": "A template object provides supplemental information about a template directory structure ",
|
|
7
5
|
"properties": {
|
|
8
6
|
"name": {
|
|
9
7
|
"description": "The name of this template",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
8
|
+
"minLength": 7,
|
|
9
|
+
"pattern": "^[A-Za-z0-9/._-]+$",
|
|
10
|
+
"type": "string"
|
|
13
11
|
},
|
|
14
12
|
"displayName": {
|
|
15
13
|
"description": "The name of the template as it should be displayed in the user interface. For example, 'Decision'.",
|
|
@@ -24,5 +22,7 @@
|
|
|
24
22
|
"type": "string"
|
|
25
23
|
}
|
|
26
24
|
},
|
|
27
|
-
"required": ["displayName", "name"]
|
|
25
|
+
"required": ["displayName", "name"],
|
|
26
|
+
"title": "Template",
|
|
27
|
+
"type": "object"
|
|
28
28
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"title": "Workflow",
|
|
3
2
|
"$id": "workflowSchema",
|
|
4
|
-
"description": "A state machine for the workflow of cards",
|
|
5
|
-
"type": "object",
|
|
6
3
|
"additionalProperties": false,
|
|
4
|
+
"description": "A state machine for the workflow of cards",
|
|
7
5
|
"properties": {
|
|
8
6
|
"description": {
|
|
9
7
|
"description": "A description that describes the workflow",
|
|
@@ -15,9 +13,9 @@
|
|
|
15
13
|
},
|
|
16
14
|
"name": {
|
|
17
15
|
"description": "The name of this workflow",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
16
|
+
"minLength": 7,
|
|
17
|
+
"pattern": "^[A-Za-z0-9/._-]+$",
|
|
18
|
+
"type": "string"
|
|
21
19
|
},
|
|
22
20
|
"states": {
|
|
23
21
|
"description": "The states of the workflow",
|
|
@@ -71,5 +69,7 @@
|
|
|
71
69
|
}
|
|
72
70
|
}
|
|
73
71
|
},
|
|
74
|
-
"required": ["displayName", "name", "states", "transitions"]
|
|
72
|
+
"required": ["displayName", "name", "states", "transitions"],
|
|
73
|
+
"title": "Workflow",
|
|
74
|
+
"type": "object"
|
|
75
75
|
}
|
package/src/schema/schema.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
2
|
"$id": "jsonSchema",
|
|
4
|
-
"
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"default": true,
|
|
5
5
|
"definitions": {
|
|
6
6
|
"schemaArray": {
|
|
7
7
|
"type": "array",
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
"default": []
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
"type": ["object", "boolean"],
|
|
40
39
|
"properties": {
|
|
41
40
|
"$id": {
|
|
42
41
|
"type": "string",
|
|
@@ -162,5 +161,6 @@
|
|
|
162
161
|
"oneOf": { "$ref": "#/definitions/schemaArray" },
|
|
163
162
|
"not": { "$ref": "#" }
|
|
164
163
|
},
|
|
165
|
-
"
|
|
164
|
+
"title": "Core schema meta-schema",
|
|
165
|
+
"type": ["object", "boolean"]
|
|
166
166
|
}
|
package/src/schemas.ts
CHANGED
|
@@ -22,6 +22,7 @@ import fieldTypeSchema from './schema/resources/fieldTypeSchema.json' with { typ
|
|
|
22
22
|
import graphMacroBaseSchema from './schema/macros/graphMacroBaseSchema.json' with { type: 'json' };
|
|
23
23
|
import graphModelSchema from './schema/resources/graphModelSchema.json' with { type: 'json' };
|
|
24
24
|
import graphViewSchema from './schema/resources/graphViewSchema.json' with { type: 'json' };
|
|
25
|
+
import hubSchema from './schema/hubSchema.json' with { type: 'json' };
|
|
25
26
|
import imageMacroSchema from './schema/macros/imageMacroSchema.json' with { type: 'json' };
|
|
26
27
|
import includeMacroSchema from './schema/macros/includeMacroSchema.json' with { type: 'json' };
|
|
27
28
|
import linkTypeSchema from './schema/resources/linkTypeSchema.json' with { type: 'json' };
|
|
@@ -48,6 +49,7 @@ export const schemas = [
|
|
|
48
49
|
graphMacroBaseSchema,
|
|
49
50
|
graphModelSchema,
|
|
50
51
|
graphViewSchema,
|
|
52
|
+
hubSchema,
|
|
51
53
|
imageMacroSchema,
|
|
52
54
|
includeMacroSchema,
|
|
53
55
|
linkTypeSchema,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "myGraphMacroSchema",
|
|
3
|
+
"additionalProperties": false,
|
|
4
|
+
"description": "Parameters for the graph macro",
|
|
5
|
+
"properties": {
|
|
6
|
+
"model": {
|
|
7
|
+
"description": "The name of the graph model",
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"view": {
|
|
11
|
+
"description": "The name of the graph view",
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"cardKey": {
|
|
15
|
+
"description": "Override default cardKey of the macro with another cardKey. Default cardKey is the card where the macro is defined in.",
|
|
16
|
+
"type": "string"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"required": ["model", "view"],
|
|
20
|
+
"title": "Graph view",
|
|
21
|
+
"type": "object"
|
|
22
|
+
}
|
|
File without changes
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"title": "Report",
|
|
3
2
|
"$id": "reportMacroDefaultSchema",
|
|
3
|
+
"additionalProperties": false,
|
|
4
4
|
"description": "A report object provides supplemental information about a report",
|
|
5
|
-
"type": "object",
|
|
6
5
|
"properties": {
|
|
7
6
|
"name": {
|
|
8
7
|
"description": "The name of the report",
|
|
@@ -13,6 +12,7 @@
|
|
|
13
12
|
"type": "string"
|
|
14
13
|
}
|
|
15
14
|
},
|
|
16
|
-
"
|
|
17
|
-
"
|
|
15
|
+
"required": ["name"],
|
|
16
|
+
"title": "Report",
|
|
17
|
+
"type": "object"
|
|
18
18
|
}
|