@qaecy/cue-sdk 0.0.38 → 0.0.40

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as a, C as u, a as C, b as t, c as r, d as i, e as o, f as c, g as n, h as p, i as S, j as E, k as A, l as m, m as P, n as R, o as g, p as l, q as D, r as j, s as U, t as x, u as d, v as f, w as h, x as I, y, z as T, A as _, D as b, E as q, F as v, G as w, R as B, S as F, H as G, I as L } from "./document-filter-CEAHlbMX.js";
1
+ import { B as a, C as u, a as C, b as t, c as r, d as i, e as o, f as c, g as n, h as p, i as S, j as E, k as A, l as m, m as P, n as R, o as g, p as l, q as D, r as j, s as U, t as x, u as d, v as f, w as h, x as I, y, z as T, A as _, D as b, E as q, F as v, G as w, R as B, S as F, H as G, I as L } from "./document-filter-Ccb84D3H.js";
2
2
  export {
3
3
  a as BASE_CURRENCY,
4
4
  u as Cue,
@@ -1,5 +1,5 @@
1
1
  import { CueAuth } from './auth';
2
- export type XToRdfConfig = RmlXToRdfConfig | GraphXToRdfConfig;
2
+ export type XToRdfConfig = RmlXToRdfConfig | GraphXToRdfConfig | DecompositionConfig;
3
3
  interface XToRdfConfigBase {
4
4
  /** Steps run on the transform's output, in order — see `XToRdfPostProcessingStep`. */
5
5
  postProcessing?: XToRdfPostProcessingStep[];
@@ -20,6 +20,37 @@ export interface GraphXToRdfConfig extends XToRdfConfigBase {
20
20
  */
21
21
  wizardConfig?: TypeMappingConfiguration;
22
22
  }
23
+ export interface DecompositionConfig extends XToRdfConfigBase {
24
+ type: 'decomposition';
25
+ /**
26
+ * The `@context` `graph` and `frame` are written against — no longer a fixed constant once
27
+ * relationship predicates are user-chosen (a reversed relationship needs its own `@reverse`
28
+ * alias term). Opaque to the SDK itself.
29
+ */
30
+ context: Record<string, unknown>;
31
+ /**
32
+ * FLAT JSON-LD: one node object per canonical entity, no embedding — a building broken into
33
+ * storeys and spaces, a system into subsystems and components, an organization into
34
+ * departments and teams, or any other hierarchy a project needs. Containment is edges
35
+ * (`{'@id': ...}` references under each level's own relationship predicate), the actual RDF
36
+ * this decomposition produces. See cue-ui's spatial-decomposition component's `JsonLdNode`
37
+ * for the shape this always follows in practice. Opaque to the SDK itself.
38
+ */
39
+ graph: Record<string, unknown>[];
40
+ /**
41
+ * A real JSON-LD Frame that reconstitutes the hierarchy from `graph` — the declarative,
42
+ * standards-based artifact any JSON-LD processor can apply, unlike `levels` below which is
43
+ * specific to cue-ui's editor. Always regenerated from `levels` on save. Opaque to the SDK.
44
+ */
45
+ frame: Record<string, unknown>;
46
+ /**
47
+ * Root-to-leaf tiers of the hierarchy (label, category IRI, the relationship connecting each
48
+ * tier to its parent, and how that tier's nodes were created — geographic/floor-plan/manual)
49
+ * — lets the frontend reopen the editor with the same configuration it was built with, and is
50
+ * what `frame` above is derived from. Opaque to the SDK itself.
51
+ */
52
+ levels: Record<string, unknown>[];
53
+ }
23
54
  /**
24
55
  * A step applied to a transform's *output*, after the CONSTRUCT query (or RML mapping) has run.
25
56
  *
package/node.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C as s } from "./document-filter-CEAHlbMX.js";
2
- import { B as o, a as c, b as i, c as n, d as p, e as S, f as m, g as E, h as A, i as P, j as R, k as l, l as g, m as D, n as x, o as d, p as j, q as U, r as f, s as h, t as I, u as y, v as N, w as T, x as _, y as b, z as q, A as v, D as w, E as B, F, G, R as L, S as O, H as k, I as z } from "./document-filter-CEAHlbMX.js";
1
+ import { C as s } from "./document-filter-Ccb84D3H.js";
2
+ import { B as o, a as c, b as i, c as n, d as p, e as S, f as m, g as E, h as A, i as P, j as R, k as l, l as g, m as D, n as x, o as d, p as j, q as U, r as f, s as h, t as I, u as y, v as N, w as T, x as _, y as b, z as q, A as v, D as w, E as B, F, G, R as L, S as O, H as k, I as z } from "./document-filter-Ccb84D3H.js";
3
3
  class C extends s {
4
4
  constructor(e) {
5
5
  super(e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qaecy/cue-sdk",
3
- "version": "0.0.38",
3
+ "version": "0.0.40",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",