@cyberismo/assets 0.0.15 → 0.0.16

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/schemas.d.ts CHANGED
@@ -10,6 +10,7 @@
10
10
  details. You should have received a copy of the GNU Affero General Public
11
11
  License along with this program. If not, see <https://www.gnu.org/licenses/>.
12
12
  */
13
+ export declare const SCHEMA_VERSION: number;
13
14
  export declare const schemas: ({
14
15
  $id: string;
15
16
  additionalProperties: boolean;
@@ -169,6 +170,11 @@ export declare const schemas: ({
169
170
  type: string;
170
171
  minLength: number;
171
172
  };
173
+ version: {
174
+ description: string;
175
+ minimum: number;
176
+ type: string;
177
+ };
172
178
  modules: {
173
179
  description: string;
174
180
  type: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyberismo/assets",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "This package contains static resources",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,6 +19,9 @@ templateCard(C) :- card(C), field(C, "container", "template").
19
19
  dataType(Card, "lastUpdated", "dateTime") :-
20
20
  field(Card, "lastUpdated", _).
21
21
 
22
+ dataType(Connector, "lastSynchronised", "dateTime") :-
23
+ field(Connector, "lastSynchronised", _).
24
+
22
25
  % add workflow state category as a calculated field for Cards
23
26
  field(Card, "workflowStateCategory", Category) :-
24
27
  card(Card),
@@ -1,6 +1,18 @@
1
1
  select("title";"statusIndicator";"progress";"rank";"cardType").
2
- result(Card) :- card(Card), not parent(Card, _), not hiddenInTreeView(Card).
2
+
3
+ {{#if cardKey}}
4
+ result({{cardKey}}).
5
+ {{#if recursive}}
6
+ % child below
7
+ childResult({{cardKey}}, Card, "children") :- parent(Card, {{cardKey}}), not hiddenInTreeView(Card).
8
+ childResult(Parent, Card, "children") :- childResult(_, Parent, "children"), parent(Card, Parent), not hiddenInTreeView(Card).
9
+ {{/if}}
10
+
11
+ {{else}}
12
+ result(Card) :- projectCard(Card), not parent(Card, _), not hiddenInTreeView(Card).
3
13
  childResult(Parent, Card, "children") :- card(Card), parent(Card, Parent), not hiddenInTreeView(Card).
14
+ {{/if}}
15
+
4
16
  order(Level, "children", 1, "rank", "ASC") :-
5
17
  level(Level).
6
18
 
@@ -30,5 +30,6 @@
30
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
+ ],
34
+ "version": 1
34
35
  }
@@ -3,6 +3,10 @@
3
3
  "additionalProperties": false,
4
4
  "description": "General configuration settings for the card tree.",
5
5
  "properties": {
6
+ "schemaVersion": {
7
+ "type": "number",
8
+ "description": "Version of the schema used by this project"
9
+ },
6
10
  "cardKeyPrefix": {
7
11
  "type": "string",
8
12
  "description": "The prefix or the fist component of the card key. For example, ABC",
@@ -13,6 +13,11 @@
13
13
  "type": "string",
14
14
  "minLength": 1
15
15
  },
16
+ "version": {
17
+ "description": "Version of the hub data",
18
+ "minimum": 1,
19
+ "type": "number"
20
+ },
16
21
  "modules": {
17
22
  "description": "List of modules that are available in the hub",
18
23
  "type": "array",
@@ -52,7 +57,7 @@
52
57
  }
53
58
  }
54
59
  },
55
- "required": ["displayName", "description"],
60
+ "required": ["description", "displayName", "version"],
56
61
  "title": "Hub",
57
62
  "type": "object"
58
63
  }
@@ -0,0 +1,3 @@
1
+ {
2
+ "schemaVersion": 1
3
+ }
package/src/schemas.ts CHANGED
@@ -38,6 +38,9 @@ import vegaMacroSchema from './schema/macros/vegaMacroSchema.json' with { type:
38
38
  import workflowSchema from './schema/resources/workflowSchema.json' with { type: 'json' };
39
39
  import xrefMacroSchema from './schema/macros/xrefMacroSchema.json' with { type: 'json' };
40
40
  import cardTreeDirectorySchema from './schema/cardTreeDirectorySchema.json' with { type: 'json' };
41
+ import version from './schema/version.json' with { type: 'json' };
42
+
43
+ export const SCHEMA_VERSION = version.schemaVersion;
41
44
 
42
45
  export const schemas = [
43
46
  calculationSchema,