@dialecte/scl 0.4.1 → 0.5.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/{hooks-CZTZsrpD.js → hooks-2Y_WzKF4.js} +1686 -1234
- package/dist/v2019C1/extensions/presentation/constants/title.d.ts.map +1 -1
- package/dist/v2019C1/extensions/reference/constants/derived.d.ts +17 -5
- package/dist/v2019C1/extensions/reference/constants/derived.d.ts.map +1 -1
- package/dist/v2019C1/extensions/reference/constants/index.d.ts +1 -1
- package/dist/v2019C1/extensions/reference/constants/index.d.ts.map +1 -1
- package/dist/v2019C1/extensions/reference/public.d.ts +2 -1
- package/dist/v2019C1/extensions/reference/public.d.ts.map +1 -1
- package/dist/v2019C1/extensions/reference/query/build/build-mapped-data-attributes.d.ts +8 -0
- package/dist/v2019C1/extensions/reference/query/build/build-mapped-data-attributes.d.ts.map +1 -0
- package/dist/v2019C1/extensions/reference/query/build/build-mapped-data-attributes.types.d.ts +31 -0
- package/dist/v2019C1/extensions/reference/query/build/build-mapped-data-attributes.types.d.ts.map +1 -0
- package/dist/v2019C1/extensions/reference/query/build/build-reference-path.d.ts.map +1 -1
- package/dist/v2019C1/extensions/reference/query/build/index.d.ts +0 -1
- package/dist/v2019C1/extensions/reference/query/build/index.d.ts.map +1 -1
- package/dist/v2019C1/extensions/reference/query/find/find-mapped-data-following-ln.d.ts +12 -0
- package/dist/v2019C1/extensions/reference/query/find/find-mapped-data-following-ln.d.ts.map +1 -0
- package/dist/v2019C1/extensions/reference/query/find/find-refs-pointing-to.d.ts +3 -0
- package/dist/v2019C1/extensions/reference/query/find/find-refs-pointing-to.d.ts.map +1 -1
- package/dist/v2019C1/extensions/reference/query/resolve/index.d.ts +2 -0
- package/dist/v2019C1/extensions/reference/query/resolve/index.d.ts.map +1 -1
- package/dist/v2019C1/extensions/reference/query/resolve/resolve-mapped-data-and-default.d.ts +13 -0
- package/dist/v2019C1/extensions/reference/query/resolve/resolve-mapped-data-and-default.d.ts.map +1 -0
- package/dist/v2019C1/extensions/reference/query/resolve/resolve-mapped-data-and-default.types.d.ts +14 -0
- package/dist/v2019C1/extensions/reference/query/resolve/resolve-mapped-data-and-default.types.d.ts.map +1 -0
- package/dist/v2019C1/extensions/reference/query/resolve/resolve-mapped-data-from.d.ts +15 -0
- package/dist/v2019C1/extensions/reference/query/resolve/resolve-mapped-data-from.d.ts.map +1 -0
- package/dist/v2019C1/extensions/reference/query/resolve/resolve-mapped-data-from.types.d.ts +36 -0
- package/dist/v2019C1/extensions/reference/query/resolve/resolve-mapped-data-from.types.d.ts.map +1 -0
- package/dist/v2019C1/extensions/reference/query/resolve/resolve-mapped-data.d.ts +14 -0
- package/dist/v2019C1/extensions/reference/query/resolve/resolve-mapped-data.d.ts.map +1 -0
- package/dist/v2019C1/extensions/reference/query/resolve/resolve-mapped-data.types.d.ts +20 -0
- package/dist/v2019C1/extensions/reference/query/resolve/resolve-mapped-data.types.d.ts.map +1 -0
- package/dist/v2019C1/extensions/reference/query/resolve/resolve-reference-path.d.ts.map +1 -1
- package/dist/v2019C1/extensions/reference/transaction/index.d.ts +2 -0
- package/dist/v2019C1/extensions/reference/transaction/index.d.ts.map +1 -1
- package/dist/v2019C1/extensions/reference/transaction/set-mapped-data.d.ts +14 -0
- package/dist/v2019C1/extensions/reference/transaction/set-mapped-data.d.ts.map +1 -0
- package/dist/v2019C1/extensions/reference/transaction/set-mapped-data.types.d.ts +22 -0
- package/dist/v2019C1/extensions/reference/transaction/set-mapped-data.types.d.ts.map +1 -0
- package/dist/v2019C1/hooks/after-updated/ref-paths.d.ts +3 -2
- package/dist/v2019C1/hooks/after-updated/ref-paths.d.ts.map +1 -1
- package/dist/v2019C1/hooks/io/io-hooks.d.ts.map +1 -1
- package/dist/v2019C1/hooks/io/mapped-data-import.d.ts +9 -0
- package/dist/v2019C1/hooks/io/mapped-data-import.d.ts.map +1 -0
- package/dist/v2019C1/hooks/io/mapped-data-import.types.d.ts +34 -0
- package/dist/v2019C1/hooks/io/mapped-data-import.types.d.ts.map +1 -0
- package/dist/v2019C1/hooks/shared/index.d.ts +2 -1
- package/dist/v2019C1/hooks/shared/index.d.ts.map +1 -1
- package/dist/v2019C1/hooks/shared/reconcile-mapped-data-below.d.ts +11 -0
- package/dist/v2019C1/hooks/shared/reconcile-mapped-data-below.d.ts.map +1 -0
- package/dist/v2019C1/hooks/shared/reconcile-mapped-data.d.ts +14 -0
- package/dist/v2019C1/hooks/shared/reconcile-mapped-data.d.ts.map +1 -0
- package/dist/v2019C1/hooks/shared/reconcile-mapped-data.types.d.ts +6 -0
- package/dist/v2019C1/hooks/shared/reconcile-mapped-data.types.d.ts.map +1 -0
- package/dist/v2019C1/index.js +13 -13
- package/dist/v2019C1/test.js +9 -9
- package/package.json +2 -2
- package/dist/v2019C1/extensions/reference/query/build/build-mapped-name.d.ts +0 -22
- package/dist/v2019C1/extensions/reference/query/build/build-mapped-name.d.ts.map +0 -1
- package/dist/v2019C1/hooks/shared/mapped-name.d.ts +0 -15
- package/dist/v2019C1/hooks/shared/mapped-name.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/presentation/constants/title.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,eAAO,MAAM,qBAAqB,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/presentation/constants/title.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,eAAO,MAAM,qBAAqB,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAoGpE,CAAA"}
|
|
@@ -27,16 +27,28 @@ export declare const ALL_RESOLUTIONS: readonly ["direct", "lnode", "ied-address"
|
|
|
27
27
|
*/
|
|
28
28
|
export declare const PAIRS_BY_REF: Map<string, import('./types').RefPairEntry[]>;
|
|
29
29
|
/**
|
|
30
|
-
* Refs whose path attribute is a
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* names. Derived from UUID_REFERENCE_PAIRS so DOS/SDS
|
|
34
|
-
* (`mappedDaName`) stay in one source.
|
|
30
|
+
* Refs whose path attribute is a mapped data path: the path to the implementing data inside
|
|
31
|
+
* the logical node named by the uuid attribute, stored only when the record is not
|
|
32
|
+
* implemented by its default. Not a rebuildable path to the target element. Maps ref tag →
|
|
33
|
+
* its `{ path, uuid }` attribute names. Derived from UUID_REFERENCE_PAIRS so DOS/SDS
|
|
34
|
+
* (`mappedDoName`) and DAS (`mappedDaName`) stay in one source.
|
|
35
35
|
*/
|
|
36
36
|
export declare const MAPPED_NAME_REFS: ReadonlyMap<string, {
|
|
37
37
|
path: string;
|
|
38
38
|
uuid: string;
|
|
39
39
|
}>;
|
|
40
|
+
/**
|
|
41
|
+
* Per tag, the attributes whose change moves the default implementation of the `DOS` / `SDS` /
|
|
42
|
+
* `DAS` below a record: the `LNode` identity and its `lnUuid` (the logical node it is mapped
|
|
43
|
+
* to), and a parent data's name, array index and own mapped attributes.
|
|
44
|
+
*/
|
|
45
|
+
export declare const MAPPED_DATA_DEFAULT_ATTRIBUTES: ReadonlyMap<string, readonly string[]>;
|
|
46
|
+
/**
|
|
47
|
+
* The schema patterns of each mapped-name attribute (`mappedDoName` / `mappedDaName`), per
|
|
48
|
+
* ref tag, each anchored to the whole value. A value must match all of them; a data path that
|
|
49
|
+
* does not cannot be stored. Read from the definition.
|
|
50
|
+
*/
|
|
51
|
+
export declare const MAPPED_NAME_PATTERNS: ReadonlyMap<string, readonly RegExp[]>;
|
|
40
52
|
/**
|
|
41
53
|
* All uuid attribute names from UUID_REFERENCE_PAIRS, deduplicated.
|
|
42
54
|
* Use as the attribute list for remapUuidAttrs so new ref pairs are automatically covered.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derived.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/reference/constants/derived.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE3D;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,qFAAwD,CAAA;AAE3F;;;GAGG;AACH,eAAO,MAAM,sBAAsB,qEAKzB,CAAA;AAEV;;;;;GAKG;AACH,eAAO,MAAM,eAAe,oFAAoE,CAAA;AAEhG;;;GAGG;AACH,eAAO,MAAM,YAAY,+CAA2C,CAAA;AAEpE;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAQhF,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,MAAM,EAMpD,CAAA;AAID,2EAA2E;AAC3E,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAKzE,CAAA;AAED,0FAA0F;AAC1F,eAAO,MAAM,2BAA2B,EAAE,WAAW,CAAC,YAAY,EAAE,SAAS,cAAc,EAAE,CACvC,CAAA;AAEtD,+EAA+E;AAC/E,eAAO,MAAM,mBAAmB,EAAE,WAAW,CAAC,MAAM,CAA+C,CAAA;AAEnG;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,EAAE,WAAW,CAAC,MAAM,CAItD,CAAA"}
|
|
1
|
+
{"version":3,"file":"derived.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/reference/constants/derived.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE3D;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,qFAAwD,CAAA;AAE3F;;;GAGG;AACH,eAAO,MAAM,sBAAsB,qEAKzB,CAAA;AAEV;;;;;GAKG;AACH,eAAO,MAAM,eAAe,oFAAoE,CAAA;AAEhG;;;GAGG;AACH,eAAO,MAAM,YAAY,+CAA2C,CAAA;AAEpE;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAQhF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAC/C,CAAA;AAEnC;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAcvE,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,MAAM,EAMpD,CAAA;AAID,2EAA2E;AAC3E,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAKzE,CAAA;AAED,0FAA0F;AAC1F,eAAO,MAAM,2BAA2B,EAAE,WAAW,CAAC,YAAY,EAAE,SAAS,cAAc,EAAE,CACvC,CAAA;AAEtD,+EAA+E;AAC/E,eAAO,MAAM,mBAAmB,EAAE,WAAW,CAAC,MAAM,CAA+C,CAAA;AAEnG;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,EAAE,WAAW,CAAC,MAAM,CAItD,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { RESOLUTION_TYPE } from './resolution-types';
|
|
2
2
|
export { TYPE_ID_REFERENCE_PAIRS } from './type-id-pairs';
|
|
3
|
-
export { RESOLUTION_TARGET_REFS, RESOLVABLE_RESOLUTIONS, ALL_RESOLUTIONS, PAIRS_BY_REF, MAPPED_NAME_REFS, ALL_REF_UUID_ATTRIBUTES, TYPE_ID_REF_ATTRIBUTES, TYPE_ID_REFERRERS_BY_TARGET, TYPE_ID_TARGET_TAGS, LOCKED_LNODE_ATTRIBUTES, } from './derived';
|
|
3
|
+
export { RESOLUTION_TARGET_REFS, RESOLVABLE_RESOLUTIONS, ALL_RESOLUTIONS, PAIRS_BY_REF, MAPPED_NAME_REFS, MAPPED_NAME_PATTERNS, MAPPED_DATA_DEFAULT_ATTRIBUTES, ALL_REF_UUID_ATTRIBUTES, TYPE_ID_REF_ATTRIBUTES, TYPE_ID_REFERRERS_BY_TARGET, TYPE_ID_TARGET_TAGS, LOCKED_LNODE_ATTRIBUTES, } from './derived';
|
|
4
4
|
export { REF_CONTAINERS } from './orphan-rules';
|
|
5
5
|
export { PATH_EXTRACTION_CONFIG, PATH_CONTRIBUTING_ATTRIBUTES } from './path-extraction';
|
|
6
6
|
export type * from './types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/reference/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EACN,sBAAsB,EACtB,sBAAsB,EACtB,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,uBAAuB,EACvB,sBAAsB,EACtB,2BAA2B,EAC3B,mBAAmB,EACnB,uBAAuB,GACvB,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAA;AACxF,mBAAmB,SAAS,CAAA;AAC5B,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/reference/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EACN,sBAAsB,EACtB,sBAAsB,EACtB,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,8BAA8B,EAC9B,uBAAuB,EACvB,sBAAsB,EACtB,2BAA2B,EAC3B,mBAAmB,EACnB,uBAAuB,GACvB,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAA;AACxF,mBAAmB,SAAS,CAAA;AAC5B,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './constants';
|
|
2
2
|
export type * from './constants';
|
|
3
3
|
export * from './guards';
|
|
4
|
-
export type { ResolvedReference } from './query';
|
|
4
|
+
export type { MappedData, ResolvedReference, ResolveMappedDataParams } from './query';
|
|
5
|
+
export type { SetMappedDataParams, SetMappedDataResult } from './transaction';
|
|
5
6
|
//# sourceMappingURL=public.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/extensions/reference/public.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,mBAAmB,aAAa,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/extensions/reference/public.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,mBAAmB,aAAa,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AACrF,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BuildMappedDataAttributesParams, MappedDataAttributes } from './build-mapped-data-attributes.types';
|
|
2
|
+
/**
|
|
3
|
+
* The attributes a `DOS` / `SDS` / `DAS` stores for its implementation: nothing when it is
|
|
4
|
+
* the default, otherwise the data path from the implementing logical node with that
|
|
5
|
+
* logical node's uuid.
|
|
6
|
+
*/
|
|
7
|
+
export declare function buildMappedDataAttributes(params: BuildMappedDataAttributesParams): MappedDataAttributes;
|
|
8
|
+
//# sourceMappingURL=build-mapped-data-attributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-mapped-data-attributes.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/build/build-mapped-data-attributes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,+BAA+B,EAC/B,oBAAoB,EACpB,MAAM,sCAAsC,CAAA;AAE7C;;;;GAIG;AACH,wBAAgB,yBAAyB,CACxC,MAAM,EAAE,+BAA+B,GACrC,oBAAoB,CAatB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** The data implementing a `DOS` / `SDS` / `DAS`, as the attributes need it. */
|
|
2
|
+
export type MappedDataImplementation = {
|
|
3
|
+
lnId: string;
|
|
4
|
+
lnUuid: string;
|
|
5
|
+
dataPath: readonly string[];
|
|
6
|
+
};
|
|
7
|
+
/** What the record follows when it names nothing; the logical node may be unknown. */
|
|
8
|
+
export type MappedDataDefault = {
|
|
9
|
+
lnId?: string;
|
|
10
|
+
dataPath: readonly string[];
|
|
11
|
+
};
|
|
12
|
+
export type BuildMappedDataAttributesParams = {
|
|
13
|
+
tagName: 'DOS' | 'SDS' | 'DAS';
|
|
14
|
+
implementation: MappedDataImplementation;
|
|
15
|
+
defaultData?: MappedDataDefault;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* - `default`: the implementation is the default, the record carries neither attribute.
|
|
19
|
+
* - `deviation`: the record carries the name (from its logical node) and the logical node uuid.
|
|
20
|
+
* - `inexpressible`: the schema has no value for this data path; nothing can be written.
|
|
21
|
+
*/
|
|
22
|
+
export type MappedDataAttributes = {
|
|
23
|
+
kind: 'default';
|
|
24
|
+
} | {
|
|
25
|
+
kind: 'deviation';
|
|
26
|
+
mappedName: string;
|
|
27
|
+
mappedLnUuid: string;
|
|
28
|
+
} | {
|
|
29
|
+
kind: 'inexpressible';
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=build-mapped-data-attributes.types.d.ts.map
|
package/dist/v2019C1/extensions/reference/query/build/build-mapped-data-attributes.types.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-mapped-data-attributes.types.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/build/build-mapped-data-attributes.types.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CAC3B,CAAA;AAED,sFAAsF;AACtF,MAAM,MAAM,iBAAiB,GAAG;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,+BAA+B,GAAG;IAC7C,OAAO,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAA;IAC9B,cAAc,EAAE,wBAAwB,CAAA;IACxC,WAAW,CAAC,EAAE,iBAAiB,CAAA;CAC/B,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAC7B;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GACnB;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GAC/D;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-reference-path.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/build/build-reference-path.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,kBAAkB,CACvC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE;IACP,SAAS,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IAClC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;CAC/B,GACC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"build-reference-path.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/build/build-reference-path.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,kBAAkB,CACvC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE;IACP,SAAS,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IAClC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;CAC/B,GACC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAqCxB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { buildElementPath } from './build-element-path';
|
|
2
2
|
export { buildReferencePath } from './build-reference-path';
|
|
3
|
-
export { buildMappedName } from './build-mapped-name';
|
|
4
3
|
export { buildMappedLNodePath } from './build-mapped-lnode-path';
|
|
5
4
|
export type { MappedLNodeAttributes } from './build-mapped-lnode-path';
|
|
6
5
|
export type { ElementPath, PathSegmentWithRef } from './path-segment.types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/build/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/build/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,YAAY,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AACtE,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Config, Scl } from '../../../../config';
|
|
2
|
+
import type * as Core from '@dialecte/core';
|
|
3
|
+
/**
|
|
4
|
+
* The `DOS` / `SDS` / `DAS` that a logical node implements by default: they name nothing
|
|
5
|
+
* themselves and follow it, through the `LNode` mapped to it or through a parent data whose
|
|
6
|
+
* own pair names it. Records that name the logical node themselves carry its uuid and are
|
|
7
|
+
* not repeated here.
|
|
8
|
+
*/
|
|
9
|
+
export declare function findMappedDataFollowingLn(query: Core.Query<Config>, params: {
|
|
10
|
+
ln: Scl.TrackedRecord<'LN' | 'LN0'>;
|
|
11
|
+
}): Promise<Scl.TrackedRecord<Scl.ElementsOf>[]>;
|
|
12
|
+
//# sourceMappingURL=find-mapped-data-following-ln.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-mapped-data-following-ln.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/find/find-mapped-data-following-ln.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;GAKG;AACH,wBAAsB,yBAAyB,CAC9C,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE;IAAE,EAAE,EAAE,GAAG,CAAC,aAAa,CAAC,IAAI,GAAG,KAAK,CAAC,CAAA;CAAE,GAC7C,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,CA6B9C"}
|
|
@@ -10,6 +10,9 @@ import type * as Core from '@dialecte/core';
|
|
|
10
10
|
* - **type-id refs** (`TYPE_ID_REFERENCE_PAIRS`) — when the target is a
|
|
11
11
|
* DataTypeTemplates type (LNodeType/DOType/DAType/EnumType), matched on the
|
|
12
12
|
* target `id` (`lnType`, `DO.type`, `DA.type`, …).
|
|
13
|
+
*
|
|
14
|
+
* For an `LN` / `LN0` target, the `DOS` / `SDS` / `DAS` it implements by default (they
|
|
15
|
+
* carry no `mappedLnUuid`) are included too.
|
|
13
16
|
*/
|
|
14
17
|
export declare function findRefsPointingTo(query: Core.Query<Config>, params: {
|
|
15
18
|
target: Scl.Ref<Scl.ElementsOf>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-refs-pointing-to.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/find/find-refs-pointing-to.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"find-refs-pointing-to.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/find/find-refs-pointing-to.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuB,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAQnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AAEtE,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,CACvC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE;IACP,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IAC/B,gBAAgB,CAAC,EAAE,GAAG,CAAC,UAAU,CAAA;CACjC,GACC,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAwB9B"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { resolveReferencePath } from './resolve-reference-path';
|
|
2
2
|
export { resolveElementPath } from './resolve-element-path';
|
|
3
3
|
export { resolveMappedLNode } from './resolve-mapped-lnode';
|
|
4
|
+
export { resolveMappedData } from './resolve-mapped-data';
|
|
5
|
+
export type { MappedData, ResolveMappedDataParams } from './resolve-mapped-data.types';
|
|
4
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/resolve/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/resolve/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACzD,YAAY,EAAE,UAAU,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MappedDataAndDefault } from './resolve-mapped-data-and-default.types';
|
|
2
|
+
import { ResolveMappedDataParams } from './resolve-mapped-data.types';
|
|
3
|
+
import { Config } from '../../../../config';
|
|
4
|
+
import type * as Core from '@dialecte/core';
|
|
5
|
+
type Reader = Core.Query<Config> | Core.Transaction<Config>;
|
|
6
|
+
/**
|
|
7
|
+
* The data that implements a `DOS` / `SDS` / `DAS` in a document, and the default it would
|
|
8
|
+
* follow if it named nothing itself. The rules live in `resolveMappedDataFrom`; this reads
|
|
9
|
+
* them from the document query.
|
|
10
|
+
*/
|
|
11
|
+
export declare function resolveMappedDataAndDefault(query: Reader, params: ResolveMappedDataParams): Promise<MappedDataAndDefault>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=resolve-mapped-data-and-default.d.ts.map
|
package/dist/v2019C1/extensions/reference/query/resolve/resolve-mapped-data-and-default.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-mapped-data-and-default.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/resolve/resolve-mapped-data-and-default.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAA;AAEnF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAC1E,OAAO,KAAK,EAAE,MAAM,EAAO,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C,KAAK,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;AAI3D;;;;GAIG;AACH,wBAAsB,2BAA2B,CAChD,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,uBAAuB,GAC7B,OAAO,CAAC,oBAAoB,CAAC,CAE/B"}
|
package/dist/v2019C1/extensions/reference/query/resolve/resolve-mapped-data-and-default.types.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MappedData } from './resolve-mapped-data.types';
|
|
2
|
+
import { Scl } from '../../../../config';
|
|
3
|
+
/** What a record follows when it names nothing itself; the logical node may be unknown. */
|
|
4
|
+
export type MappedDataDefaultRef = {
|
|
5
|
+
ln?: Scl.Ref<'LN' | 'LN0'>;
|
|
6
|
+
dataPath: readonly string[];
|
|
7
|
+
};
|
|
8
|
+
export type MappedDataAndDefault = {
|
|
9
|
+
/** `undefined` when nothing implements the record. */
|
|
10
|
+
mappedData?: MappedData;
|
|
11
|
+
/** `undefined` when the record has no name or no `LNode` above it. */
|
|
12
|
+
defaultData?: MappedDataDefaultRef;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=resolve-mapped-data-and-default.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-mapped-data-and-default.types.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/resolve/resolve-mapped-data-and-default.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAE3C,2FAA2F;AAC3F,MAAM,MAAM,oBAAoB,GAAG;IAClC,EAAE,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,IAAI,GAAG,KAAK,CAAC,CAAA;IAC1B,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IAClC,sDAAsD;IACtD,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,sEAAsE;IACtE,WAAW,CAAC,EAAE,oBAAoB,CAAA;CAClC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MappedDataFrom, MappedDataSource } from './resolve-mapped-data-from.types';
|
|
2
|
+
/**
|
|
3
|
+
* The data that implements a `DOS` / `SDS` / `DAS`, and the default it would follow if it
|
|
4
|
+
* named nothing itself, read from any source (a document query, or an import index).
|
|
5
|
+
*
|
|
6
|
+
* A record that names its implementation (`mappedLnUuid`, `mappedDoName` / `mappedDaName`)
|
|
7
|
+
* is implemented there; a `mappedLnUuid` alone keeps the default data path in that logical
|
|
8
|
+
* node; a name without uuid is inside the logical node the `LNode` is mapped to, unless it
|
|
9
|
+
* is an absolute reference. Otherwise the record follows its default: its parent data, or for
|
|
10
|
+
* a `DOS` the logical node its `LNode` is mapped to, extended by its own name.
|
|
11
|
+
*/
|
|
12
|
+
export declare function resolveMappedDataFrom<GenericNode, GenericLn>(source: MappedDataSource<GenericNode, GenericLn>, params: {
|
|
13
|
+
node: GenericNode;
|
|
14
|
+
}): Promise<MappedDataFrom<GenericLn>>;
|
|
15
|
+
//# sourceMappingURL=resolve-mapped-data-from.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-mapped-data-from.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/resolve/resolve-mapped-data-from.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAExF;;;;;;;;;GASG;AACH,wBAAsB,qBAAqB,CAAC,WAAW,EAAE,SAAS,EACjE,MAAM,EAAE,gBAAgB,CAAC,WAAW,EAAE,SAAS,CAAC,EAChD,MAAM,EAAE;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GAC3B,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAmCpC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** What the rules need to know about one `DOS` / `SDS` / `DAS`. */
|
|
2
|
+
export type MappedDataNode<GenericNode> = {
|
|
3
|
+
name?: string;
|
|
4
|
+
ix?: string;
|
|
5
|
+
/** `mappedDoName` / `mappedDaName` as stored. */
|
|
6
|
+
mappedName?: string;
|
|
7
|
+
mappedLnUuid?: string;
|
|
8
|
+
/** The nearest `DOS` / `SDS` above it, if any. */
|
|
9
|
+
parent?: GenericNode;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Where the rules read the document: the query of a document, or the index an import builds
|
|
13
|
+
* (which has no store access). `GenericNode` addresses a data record, `GenericLn` a logical node.
|
|
14
|
+
*/
|
|
15
|
+
export type MappedDataSource<GenericNode, GenericLn> = {
|
|
16
|
+
readNode(node: GenericNode): Promise<MappedDataNode<GenericNode> | undefined>;
|
|
17
|
+
/** The logical node the `LNode` above the record is mapped to. */
|
|
18
|
+
findLNodeLn(node: GenericNode): Promise<GenericLn | undefined>;
|
|
19
|
+
findLnByUuid(uuid: string): Promise<GenericLn | undefined>;
|
|
20
|
+
/** `path`: `IED/LD/LN`, the logical node part of an absolute reference. */
|
|
21
|
+
findLnByPath(path: string): Promise<GenericLn | undefined>;
|
|
22
|
+
};
|
|
23
|
+
export type MappedDataFrom<GenericLn> = {
|
|
24
|
+
/** `undefined` when nothing implements the record. */
|
|
25
|
+
mappedData?: {
|
|
26
|
+
ln: GenericLn;
|
|
27
|
+
dataPath: readonly string[];
|
|
28
|
+
origin: 'own' | 'default';
|
|
29
|
+
};
|
|
30
|
+
/** `undefined` when the record has no name or no `LNode` above it. */
|
|
31
|
+
defaultData?: {
|
|
32
|
+
ln?: GenericLn;
|
|
33
|
+
dataPath: readonly string[];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=resolve-mapped-data-from.types.d.ts.map
|
package/dist/v2019C1/extensions/reference/query/resolve/resolve-mapped-data-from.types.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-mapped-data-from.types.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/resolve/resolve-mapped-data-from.types.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,MAAM,MAAM,cAAc,CAAC,WAAW,IAAI;IACzC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kDAAkD;IAClD,MAAM,CAAC,EAAE,WAAW,CAAA;CACpB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,WAAW,EAAE,SAAS,IAAI;IACtD,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,CAAA;IAC7E,kEAAkE;IAClE,WAAW,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAAA;IAC9D,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAAA;IAC1D,2EAA2E;IAC3E,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAAA;CAC1D,CAAA;AAED,MAAM,MAAM,cAAc,CAAC,SAAS,IAAI;IACvC,sDAAsD;IACtD,UAAU,CAAC,EAAE;QAAE,EAAE,EAAE,SAAS,CAAC;QAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;QAAC,MAAM,EAAE,KAAK,GAAG,SAAS,CAAA;KAAE,CAAA;IACtF,sEAAsE;IACtE,WAAW,CAAC,EAAE;QAAE,EAAE,CAAC,EAAE,SAAS,CAAC;QAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,CAAA;CAC7D,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MappedData, ResolveMappedDataParams } from './resolve-mapped-data.types';
|
|
2
|
+
import { Config } from '../../../../config';
|
|
3
|
+
import type * as Core from '@dialecte/core';
|
|
4
|
+
/**
|
|
5
|
+
* Query extension: the data that implements a `DOS` / `SDS` / `DAS`.
|
|
6
|
+
*
|
|
7
|
+
* A record that names its implementation (`mappedLnUuid`, `mappedDoName` / `mappedDaName`)
|
|
8
|
+
* is implemented there; a `mappedLnUuid` alone keeps the default data path in that logical
|
|
9
|
+
* node. Otherwise the record follows its default: its parent data, or for a `DOS` the
|
|
10
|
+
* logical node its `LNode` is mapped to, extended by its own name.
|
|
11
|
+
* Returns `undefined` when nothing implements it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function resolveMappedData(query: Core.Query<Config> | Core.Transaction<Config>, params: ResolveMappedDataParams): Promise<MappedData | undefined>;
|
|
14
|
+
//# sourceMappingURL=resolve-mapped-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-mapped-data.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/resolve/resolve-mapped-data.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AACtF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;GAQG;AACH,wBAAsB,iBAAiB,CACtC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EACpD,MAAM,EAAE,uBAAuB,GAC7B,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAGjC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Scl } from '../../../../config';
|
|
2
|
+
/**
|
|
3
|
+
* The data that implements a `DOS` / `SDS` / `DAS`: a logical node of an IED and the
|
|
4
|
+
* path to the data inside it.
|
|
5
|
+
*/
|
|
6
|
+
export type MappedData = {
|
|
7
|
+
/** The `LN` / `LN0` implementing the record. */
|
|
8
|
+
ln: Scl.Ref<'LN' | 'LN0'>;
|
|
9
|
+
/** Path from that logical node: one segment per DO / SDO / DA / BDA, an array element as `name(n)`. */
|
|
10
|
+
dataPath: readonly string[];
|
|
11
|
+
/**
|
|
12
|
+
* `own`: the record names its implementation itself. `default`: it follows its
|
|
13
|
+
* parent data, or for a `DOS` the logical node its `LNode` is mapped to, keeping its own name.
|
|
14
|
+
*/
|
|
15
|
+
origin: 'own' | 'default';
|
|
16
|
+
};
|
|
17
|
+
export type ResolveMappedDataParams = {
|
|
18
|
+
reference: Scl.Ref<'DOS' | 'SDS' | 'DAS'>;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=resolve-mapped-data.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-mapped-data.types.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/resolve/resolve-mapped-data.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAE3C;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACxB,gDAAgD;IAChD,EAAE,EAAE,GAAG,CAAC,GAAG,CAAC,IAAI,GAAG,KAAK,CAAC,CAAA;IACzB,uGAAuG;IACvG,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;IAC3B;;;OAGG;IACH,MAAM,EAAE,KAAK,GAAG,SAAS,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACrC,SAAS,EAAE,GAAG,CAAC,GAAG,CAAC,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC,CAAA;CACzC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-reference-path.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/resolve/resolve-reference-path.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolve-reference-path.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/reference/query/resolve/resolve-reference-path.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAK3C,MAAM,MAAM,aAAa,GAAG;IAC3B,MAAM,EAAE,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACzC,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAID;;;;;;;;;;;GAWG;AACH,wBAAsB,oBAAoB,CACzC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EACpD,MAAM,EAAE,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,UAAU,CAAC,EACzC,aAAa,EAAE,MAAM,GACnB,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CA2DpC;AAwED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACtC,OAAO,EAAE,MAAM,GACb;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAY1D"}
|
|
@@ -2,4 +2,6 @@ export { applyTypeIdRemap } from './apply-type-id-remap';
|
|
|
2
2
|
export { applyUuidRemap } from './apply-uuid-remap';
|
|
3
3
|
export { writeProvenance } from './write-provenance';
|
|
4
4
|
export type { ProvenanceTarget, SclFileType, WriteProvenanceParams } from './write-provenance.types';
|
|
5
|
+
export { setMappedData } from './set-mapped-data';
|
|
6
|
+
export type { SetMappedDataParams, SetMappedDataResult } from './set-mapped-data.types';
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/reference/transaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/reference/transaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AACpG,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SetMappedDataParams, SetMappedDataResult } from './set-mapped-data.types';
|
|
2
|
+
import { Config } from '../../../config';
|
|
3
|
+
import type * as Core from '@dialecte/core';
|
|
4
|
+
/**
|
|
5
|
+
* Transaction extension: state which data implements a `DOS` / `SDS` / `DAS`, and get back
|
|
6
|
+
* what was stored.
|
|
7
|
+
*
|
|
8
|
+
* The record carries `mappedDoName` / `mappedDaName` (the path from the logical node) and
|
|
9
|
+
* `mappedLnUuid` only when the implementation differs from its default; otherwise neither.
|
|
10
|
+
* A data path the schema cannot hold on this record is not written and reported as
|
|
11
|
+
* `inexpressible`. Without `implementation` the record follows its default.
|
|
12
|
+
*/
|
|
13
|
+
export declare function setMappedData(tx: Core.Transaction<Config>, params: SetMappedDataParams): Promise<SetMappedDataResult>;
|
|
14
|
+
//# sourceMappingURL=set-mapped-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-mapped-data.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/reference/transaction/set-mapped-data.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AACvF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CAClC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE,mBAAmB,GACzB,OAAO,CAAC,mBAAmB,CAAC,CA8B9B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Scl } from '../../../config';
|
|
2
|
+
export type SetMappedDataParams = {
|
|
3
|
+
reference: Scl.Ref<'DOS' | 'SDS' | 'DAS'>;
|
|
4
|
+
/**
|
|
5
|
+
* The logical node and the data path inside it that implement the record, one segment per
|
|
6
|
+
* DO / SDO / DA / BDA. Omit it to let the record follow its default.
|
|
7
|
+
*/
|
|
8
|
+
implementation?: {
|
|
9
|
+
ln: Scl.Ref<'LN' | 'LN0'>;
|
|
10
|
+
dataPath: readonly string[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* - `stored`: the record carries the path and the logical node uuid.
|
|
15
|
+
* - `default`: the implementation is the record's default; it carries neither attribute.
|
|
16
|
+
* - `inexpressible`: the schema has no value for this data path on this record; nothing was
|
|
17
|
+
* written (document the deviation on the `DAS` below instead).
|
|
18
|
+
*/
|
|
19
|
+
export type SetMappedDataResult = {
|
|
20
|
+
kind: 'stored' | 'default' | 'inexpressible';
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=set-mapped-data.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-mapped-data.types.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/reference/transaction/set-mapped-data.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAE3C,MAAM,MAAM,mBAAmB,GAAG;IACjC,SAAS,EAAE,GAAG,CAAC,GAAG,CAAC,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC,CAAA;IACzC;;;OAGG;IACH,cAAc,CAAC,EAAE;QAChB,EAAE,EAAE,GAAG,CAAC,GAAG,CAAC,IAAI,GAAG,KAAK,CAAC,CAAA;QACzB,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;KAC3B,CAAA;CACD,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAAE,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,eAAe,CAAA;CAAE,CAAA"}
|
|
@@ -8,8 +8,9 @@ import type * as Core from '@dialecte/core';
|
|
|
8
8
|
* rebuilds ref paths for all descendant targets (e.g. renaming a Bay updates
|
|
9
9
|
* FunctionRef paths that pass through it).
|
|
10
10
|
*
|
|
11
|
-
* When the updated record is
|
|
12
|
-
*
|
|
11
|
+
* When the updated record is a `DOS`/`SDS`/`DAS`, stores its implementation in canonical
|
|
12
|
+
* form; when an `LNode` or a `DOS`/`SDS` change moves the default of the data below it, does
|
|
13
|
+
* the same for every record below that names its implementation. When it
|
|
13
14
|
* is any other referrer whose binding attributes (target uuid or companion DO/DA
|
|
14
15
|
* names) changed, rebuilds its own path so name and uuid references stay in
|
|
15
16
|
* agreement (the referrer-side counterpart of the after-created hook).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref-paths.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/after-updated/ref-paths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ref-paths.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/after-updated/ref-paths.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,cAAc,CAAC,cAAc,SAAS,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE;IACnF,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IACzB,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;IACxC,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;CACxC,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAoD3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"io-hooks.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/io/io-hooks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"io-hooks.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/io/io-hooks.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAGX,OAAO,EAGP,MAAM,gBAAgB,CAAA;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CA+H1C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MappedDataImport } from './mapped-data-import.types';
|
|
2
|
+
/**
|
|
3
|
+
* Stores every `DOS` / `SDS` / `DAS` of an imported file in canonical form, with the same rules
|
|
4
|
+
* as the record hooks: nothing when the record is implemented by its default, otherwise the
|
|
5
|
+
* path from the implementing logical node with that node's uuid. The import has no store
|
|
6
|
+
* access, so the pass collects what the rules need and resolves it at the end.
|
|
7
|
+
*/
|
|
8
|
+
export declare function createMappedDataImport(): MappedDataImport;
|
|
9
|
+
//# sourceMappingURL=mapped-data-import.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapped-data-import.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/io/mapped-data-import.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAGX,gBAAgB,EAChB,MAAM,4BAA4B,CAAA;AAMnC;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,gBAAgB,CA2HzD"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AnyRawRecord, ImportWarning, RecordPatch } from '@dialecte/core';
|
|
2
|
+
/** A `DOS` / `SDS` / `DAS` seen during the import pass. */
|
|
3
|
+
export type ImportedMappedDataNode = {
|
|
4
|
+
tagName: 'DOS' | 'SDS' | 'DAS';
|
|
5
|
+
name?: string;
|
|
6
|
+
ix?: string;
|
|
7
|
+
mappedName?: string;
|
|
8
|
+
mappedLnUuid?: string;
|
|
9
|
+
/** Record id of the nearest `DOS` / `SDS` above it. */
|
|
10
|
+
parent?: string;
|
|
11
|
+
/** Record id of the `LNode` above it. */
|
|
12
|
+
lnodeId?: string;
|
|
13
|
+
};
|
|
14
|
+
/** The `LNode` attributes that tell which logical node it is mapped to. */
|
|
15
|
+
export type ImportedLNode = Record<'lnUuid' | 'iedName' | 'ldInst' | 'prefix' | 'lnClass' | 'lnInst', string | undefined>;
|
|
16
|
+
export type MappedDataImport = {
|
|
17
|
+
/** Record one standardized record of the import pass, with its still-open parents. */
|
|
18
|
+
collect(params: {
|
|
19
|
+
record: AnyRawRecord;
|
|
20
|
+
ancestry: readonly AnyRawRecord[];
|
|
21
|
+
}): void;
|
|
22
|
+
/**
|
|
23
|
+
* After the pass: the updates that store every `DOS` / `SDS` / `DAS` in canonical form,
|
|
24
|
+
* and a warning per record whose implementation cannot be found in the file.
|
|
25
|
+
* `pathIndex`: element path -> uuid, as built by the import pass.
|
|
26
|
+
*/
|
|
27
|
+
resolve(params: {
|
|
28
|
+
pathIndex: ReadonlyMap<string, string>;
|
|
29
|
+
}): Promise<{
|
|
30
|
+
updates: RecordPatch[];
|
|
31
|
+
warnings: ImportWarning[];
|
|
32
|
+
}>;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=mapped-data-import.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapped-data-import.types.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/io/mapped-data-import.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAE9E,2DAA2D;AAC3D,MAAM,MAAM,sBAAsB,GAAG;IACpC,OAAO,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAA;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,2EAA2E;AAC3E,MAAM,MAAM,aAAa,GAAG,MAAM,CACjC,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,EACjE,MAAM,GAAG,SAAS,CAClB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC9B,sFAAsF;IACtF,OAAO,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,YAAY,CAAC;QAAC,QAAQ,EAAE,SAAS,YAAY,EAAE,CAAA;KAAE,GAAG,IAAI,CAAA;IAClF;;;;OAIG;IACH,OAAO,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,OAAO,CAAC;QACpE,OAAO,EAAE,WAAW,EAAE,CAAA;QACtB,QAAQ,EAAE,aAAa,EAAE,CAAA;KACzB,CAAC,CAAA;CACF,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { updateRefsForEntry, getRefEntriesForTarget } from './ref-entry-ops';
|
|
2
|
-
export {
|
|
2
|
+
export { reconcileMappedData } from './reconcile-mapped-data';
|
|
3
|
+
export { reconcileMappedDataBelow } from './reconcile-mapped-data-below';
|
|
3
4
|
export { reconcileReferrerRefPaths } from './ref-path-rebuild';
|
|
4
5
|
export { reconcileLNodeBinding } from './lnode-binding';
|
|
5
6
|
export { changedAttributeNames, hasAttributeChange, readSnapshotAttribute, updatedOperation, upsertAttribute, } from './record-ops';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AACvD,OAAO,EACN,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,GACf,MAAM,cAAc,CAAA;AACrB,cAAc,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReconcileMappedDataParams } from './reconcile-mapped-data.types';
|
|
2
|
+
import { Config, Scl } from '../../config';
|
|
3
|
+
import type * as Core from '@dialecte/core';
|
|
4
|
+
/**
|
|
5
|
+
* After a change to an `LNode` or a `DOS` / `SDS` that moves the default of the data below it,
|
|
6
|
+
* re-store every `DOS` / `SDS` / `DAS` below that names its implementation: an implementation
|
|
7
|
+
* that became the default loses its attributes. Records that name nothing follow the new
|
|
8
|
+
* default by themselves.
|
|
9
|
+
*/
|
|
10
|
+
export declare function reconcileMappedDataBelow(query: Core.Query<Config>, params: ReconcileMappedDataParams): Promise<Scl.Operation[]>;
|
|
11
|
+
//# sourceMappingURL=reconcile-mapped-data-below.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconcile-mapped-data-below.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/shared/reconcile-mapped-data-below.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AAC9E,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC7C,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE,yBAAyB,GAC/B,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAsB1B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReconcileMappedDataParams } from './reconcile-mapped-data.types';
|
|
2
|
+
import { Config, Scl } from '../../config';
|
|
3
|
+
import type * as Core from '@dialecte/core';
|
|
4
|
+
/**
|
|
5
|
+
* Store a `DOS` / `SDS` / `DAS` implementation in its canonical form: nothing when the record
|
|
6
|
+
* is implemented by its default, otherwise the data path from the implementing logical node
|
|
7
|
+
* (`mappedDoName` / `mappedDaName`) together with that logical node's uuid (`mappedLnUuid`).
|
|
8
|
+
*
|
|
9
|
+
* Acts only on a record that names its implementation; leaves it untouched when the
|
|
10
|
+
* implementation cannot be resolved or the schema has no value for its data path.
|
|
11
|
+
* Returns an update operation, or `null` when the record is already canonical.
|
|
12
|
+
*/
|
|
13
|
+
export declare function reconcileMappedData(query: Core.Query<Config>, params: ReconcileMappedDataParams): Promise<Scl.Operation | null>;
|
|
14
|
+
//# sourceMappingURL=reconcile-mapped-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconcile-mapped-data.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/shared/reconcile-mapped-data.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AAC9E,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CACxC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE,yBAAyB,GAC/B,OAAO,CAAC,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC,CAuC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconcile-mapped-data.types.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/shared/reconcile-mapped-data.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAE3C,MAAM,MAAM,yBAAyB,GAAG;IACvC,2EAA2E;IAC3E,MAAM,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;CACrC,CAAA"}
|