@cyberismo/assets 0.0.26 → 1.0.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.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './schemas.js';
2
+ export declare const DEFAULT_HUB = "https://raw.githubusercontent.com/CyberismoCom/cyberismo/main/tools/assets/src/hub/";
2
3
  export declare const graphvizReport: {
3
4
  query: string;
4
5
  content: string;
package/dist/index.js CHANGED
@@ -1045,6 +1045,7 @@ toc::[]
1045
1045
  {{/include}}
1046
1046
  [cols="1,4",frame=none,grid=none]
1047
1047
  |===
1048
+ | Workflow state | {{this.workflowState}}
1048
1049
  | Card key | {{this.key}}
1049
1050
  | Card type | {{#if this.cardTypeDisplayName}}{{this.cardTypeDisplayName}}{{else}}{{this.cardType}}{{/if}}
1050
1051
  | Last modified | {{this.lastUpdated}}
@@ -1249,6 +1250,7 @@ resultField(Card, "cardTypeDisplayName", DisplayName, "shortText") :-
1249
1250
  select(1, "cardType").
1250
1251
  select(1, "cardTypeDisplayName").
1251
1252
  select(1, "key").
1253
+ select(1, "workflowState").
1252
1254
  select(1, "lastUpdated").
1253
1255
  select(1, "createdAt").
1254
1256
  select(1, "links").
@@ -1523,4 +1525,4 @@ attr(edge, (X, Y, N), fontname, "helvetica") :- edge((X, Y, N), _).
1523
1525
  {{#if currentState}}
1524
1526
  currentState("{{{clingoEscape currentState}}}").
1525
1527
  {{/if}}
1526
- `;var ti={query:z,content:U},ii={query:V,content:P},ni={model:N,view:L},ai={common:{base:S,queryLanguage:R,utils:F},queries:{card:q,connectors:I,onCreation:j,onTransition:A,tree:C},test:{model:E}};async function oi(){if(typeof process>"u"||!process.versions?.node)throw new Error("@cyberismo/assets: getStaticDirectoryPath can only be called in Node.js");let{join:W}=await import("node:path"),M=import.meta.dirname;return W(M,"static")}export{xt as SCHEMA_VERSION,oi as getStaticDirectoryPath,ti as graphvizReport,ai as lpFiles,$t as parentSchema,ii as pdfReport,wt as schemas,ni as workflowGraph};
1528
+ `;var zt="https://raw.githubusercontent.com/CyberismoCom/cyberismo/main/tools/assets/src/hub/",ii={query:z,content:U},ni={query:V,content:P},ai={model:N,view:L},oi={common:{base:S,queryLanguage:R,utils:F},queries:{card:q,connectors:I,onCreation:j,onTransition:A,tree:C},test:{model:E}};async function ri(){if(typeof process>"u"||!process.versions?.node)throw new Error("@cyberismo/assets: getStaticDirectoryPath can only be called in Node.js");let{join:W}=await import("node:path"),M=import.meta.dirname;return W(M,"static")}export{zt as DEFAULT_HUB,xt as SCHEMA_VERSION,ri as getStaticDirectoryPath,ii as graphvizReport,oi as lpFiles,$t as parentSchema,ni as pdfReport,wt as schemas,ai as workflowGraph};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyberismo/assets",
3
- "version": "0.0.26",
3
+ "version": "1.0.0",
4
4
  "description": "This package contains static resources",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,6 +20,7 @@ toc::[]
20
20
  {{/include}}
21
21
  [cols="1,4",frame=none,grid=none]
22
22
  |===
23
+ | Workflow state | {{this.workflowState}}
23
24
  | Card key | {{this.key}}
24
25
  | Card type | {{#if this.cardTypeDisplayName}}{{this.cardTypeDisplayName}}{{else}}{{this.cardType}}{{/if}}
25
26
  | Last modified | {{this.lastUpdated}}
@@ -130,6 +130,7 @@ resultField(Card, "cardTypeDisplayName", DisplayName, "shortText") :-
130
130
  select(1, "cardType").
131
131
  select(1, "cardTypeDisplayName").
132
132
  select(1, "key").
133
+ select(1, "workflowState").
133
134
  select(1, "lastUpdated").
134
135
  select(1, "createdAt").
135
136
  select(1, "links").
package/src/index.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  export * from './schemas.js';
2
2
 
3
+ export const DEFAULT_HUB =
4
+ 'https://raw.githubusercontent.com/CyberismoCom/cyberismo/main/tools/assets/src/hub/';
5
+
3
6
  // Manually import each resource
4
7
  // They rarely change and we get 100% type safety this way
5
8
  import commonBase from './calculations/common/base.lp';