@dialecte/scl 0.4.0 → 0.4.1
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-2XoiU2Tq.js → hooks-CZTZsrpD.js} +1874 -1144
- package/dist/v2019C1/constants/index.d.ts +1 -0
- package/dist/v2019C1/constants/index.d.ts.map +1 -1
- package/dist/v2019C1/constants/min-requested-scd-file.d.ts +37 -0
- package/dist/v2019C1/constants/min-requested-scd-file.d.ts.map +1 -0
- package/dist/v2019C1/hooks/after-created/after-created.d.ts.map +1 -1
- package/dist/v2019C1/hooks/after-created/min-requested-scd-file.d.ts +14 -0
- package/dist/v2019C1/hooks/after-created/min-requested-scd-file.d.ts.map +1 -0
- package/dist/v2019C1/hooks/after-updated/after-updated.d.ts +2 -1
- package/dist/v2019C1/hooks/after-updated/after-updated.d.ts.map +1 -1
- package/dist/v2019C1/hooks/after-updated/min-requested-scd-file.d.ts +17 -0
- package/dist/v2019C1/hooks/after-updated/min-requested-scd-file.d.ts.map +1 -0
- package/dist/v2019C1/hooks/before-delete/before-delete.d.ts +2 -1
- package/dist/v2019C1/hooks/before-delete/before-delete.d.ts.map +1 -1
- package/dist/v2019C1/hooks/before-delete/min-requested-scd-file.d.ts +18 -0
- package/dist/v2019C1/hooks/before-delete/min-requested-scd-file.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/min-requested-scd-file/entry-operations.d.ts +29 -0
- package/dist/v2019C1/hooks/shared/min-requested-scd-file/entry-operations.d.ts.map +1 -0
- package/dist/v2019C1/hooks/shared/min-requested-scd-file/index.d.ts +5 -0
- package/dist/v2019C1/hooks/shared/min-requested-scd-file/index.d.ts.map +1 -0
- package/dist/v2019C1/hooks/shared/min-requested-scd-file/min-requested-scd-file.types.d.ts +4 -0
- package/dist/v2019C1/hooks/shared/min-requested-scd-file/min-requested-scd-file.types.d.ts.map +1 -0
- package/dist/v2019C1/hooks/shared/min-requested-scd-file/resolve-affected-ieds.d.ts +25 -0
- package/dist/v2019C1/hooks/shared/min-requested-scd-file/resolve-affected-ieds.d.ts.map +1 -0
- package/dist/v2019C1/hooks/shared/min-requested-scd-file/sync-min-requested-scd-files.d.ts +13 -0
- package/dist/v2019C1/hooks/shared/min-requested-scd-file/sync-min-requested-scd-files.d.ts.map +1 -0
- package/dist/v2019C1/hooks/shared/record-ops.d.ts +19 -0
- package/dist/v2019C1/hooks/shared/record-ops.d.ts.map +1 -1
- package/dist/v2019C1/index.js +13 -13
- package/dist/v2019C1/test.js +9 -9
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2019C1/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,mBAAmB,uBAAuB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2019C1/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,mBAAmB,uBAAuB,CAAA;AAC1C,cAAc,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tag sets deciding which edits change an IED's configuration, and so require the current SCD as
|
|
3
|
+
* the IED's minimum requested SCD file.
|
|
4
|
+
*
|
|
5
|
+
* The standard leaves open which changes affect an IED; the ROOTS below are the domain experts'
|
|
6
|
+
* choice. Every set is expanded to the roots' descendants from the schema, minus the descriptive
|
|
7
|
+
* tags, so new schema content under a root is covered automatically.
|
|
8
|
+
*/
|
|
9
|
+
/** Descriptive content: editing it never changes how an IED is configured. */
|
|
10
|
+
export declare const MIN_REQUESTED_SCD_DESCRIPTIVE_TAGS: ReadonlySet<string>;
|
|
11
|
+
/** IED content whose change requires a new SCD: control blocks, data sets, inputs, values. */
|
|
12
|
+
export declare const MIN_REQUESTED_SCD_IED_TRIGGER_ROOTS: readonly ["ReportControl", "LogControl", "GSEControl", "SampledValueControl", "SettingControl", "DataSet", "ExtRef", "DAI"];
|
|
13
|
+
/**
|
|
14
|
+
* IED trigger roots and their schema descendants. Owned by the `IED` found among the element's
|
|
15
|
+
* ancestors; the same tags outside an IED (e.g. `Val` under a type definition) resolve to none.
|
|
16
|
+
*/
|
|
17
|
+
export declare const MIN_REQUESTED_SCD_IED_TRIGGER_TAGS: ReadonlySet<string>;
|
|
18
|
+
/** `ConnectedAP` settings attached to a single IED, excluding physical connections. */
|
|
19
|
+
export declare const MIN_REQUESTED_SCD_CONNECTED_AP_TRIGGER_TAGS: ReadonlySet<string>;
|
|
20
|
+
/**
|
|
21
|
+
* `SubNetwork` and its schema descendants outside `ConnectedAP`: settings shared by every IED
|
|
22
|
+
* attached to the sub-network.
|
|
23
|
+
*/
|
|
24
|
+
export declare const MIN_REQUESTED_SCD_SUBNETWORK_TRIGGER_TAGS: ReadonlySet<string>;
|
|
25
|
+
/**
|
|
26
|
+
* Descriptive attributes: updating only these (or lineage) never changes how an IED is configured.
|
|
27
|
+
* Every other attribute or text update of a trigger counts.
|
|
28
|
+
*/
|
|
29
|
+
export declare const MIN_REQUESTED_SCD_DESCRIPTIVE_ATTRIBUTES: ReadonlySet<string>;
|
|
30
|
+
export declare const MIN_REQUESTED_SCD_IED_IGNORED_ATTRIBUTES: ReadonlySet<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Entry attributes a user may set by hand, carried over when two entries of one project merge:
|
|
33
|
+
* every schema attribute of the entry except its identity (`fileUuid`) and the required ones, which
|
|
34
|
+
* the sync keeps in agreement with the SCD `Header`.
|
|
35
|
+
*/
|
|
36
|
+
export declare const MIN_REQUESTED_SCD_FILE_USER_ATTRIBUTES: readonly (keyof import('../definition').AttributesMinRequestedSCDFile)[];
|
|
37
|
+
//# sourceMappingURL=min-requested-scd-file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"min-requested-scd-file.d.ts","sourceRoot":"","sources":["../../../src/v2019C1/constants/min-requested-scd-file.ts"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AAEH,8EAA8E;AAC9E,eAAO,MAAM,kCAAkC,EAAE,WAAW,CAAC,MAAM,CAKjE,CAAA;AAEF,8FAA8F;AAC9F,eAAO,MAAM,mCAAmC,6HAStC,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,kCAAkC,EAAE,WAAW,CAAC,MAAM,CAEjE,CAAA;AAEF,uFAAuF;AACvF,eAAO,MAAM,2CAA2C,EAAE,WAAW,CAAC,MAAM,CAG1E,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,yCAAyC,EAAE,WAAW,CAAC,MAAM,CAGxE,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,wCAAwC,EAAE,WAAW,CAAC,MAAM,CAAqB,CAAA;AAE9F,eAAO,MAAM,wCAAwC,EAAE,WAAW,CAAC,MAAM,CAGvE,CAAA;AAEF;;;;GAIG;AACH,eAAO,MAAM,sCAAsC,0EAAyB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"after-created.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/after-created/after-created.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"after-created.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/after-created/after-created.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C,wBAAsB,YAAY,CACjC,cAAc,SAAS,GAAG,CAAC,UAAU,EACrC,oBAAoB,SAAS,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,EACzD,MAAM,EAAE;IACT,WAAW,EAAE,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;IAC1C,YAAY,EAAE,GAAG,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAA;IACjD,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;CACzB,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAQ3B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Scl, Config } from '../../config';
|
|
2
|
+
import type * as Core from '@dialecte/core';
|
|
3
|
+
/**
|
|
4
|
+
* Keep every IED's `MinRequestedSCDFiles` consistent as records are created:
|
|
5
|
+
* - a created trigger (see the `MIN_REQUESTED_SCD_*_TRIGGER_TAGS` constants) syncs the affected
|
|
6
|
+
* IEDs to the current SCD;
|
|
7
|
+
* - a second `MinRequestedSCDFiles` under one IED (e.g. cloning in an IED that already has one)
|
|
8
|
+
* absorbs the content of the existing wrapper, which is removed, so one container remains;
|
|
9
|
+
* - a `MinRequestedSCDFile` whose `fileUuid` is already listed is folded into the listed entry.
|
|
10
|
+
*/
|
|
11
|
+
export declare function reconcileMinRequestedScdFileOnCreate<GenericElement extends Scl.ElementsOf>(query: Core.Query<Config>, params: {
|
|
12
|
+
childRecord: Scl.RawRecord<GenericElement>;
|
|
13
|
+
}): Promise<Scl.Operation[]>;
|
|
14
|
+
//# sourceMappingURL=min-requested-scd-file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"min-requested-scd-file.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/after-created/min-requested-scd-file.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;GAOG;AACH,wBAAsB,oCAAoC,CAAC,cAAc,SAAS,GAAG,CAAC,UAAU,EAC/F,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE;IAAE,WAAW,EAAE,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;CAAE,GACpD,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAa1B"}
|
|
@@ -2,7 +2,8 @@ import { Scl, Config } from '../../config';
|
|
|
2
2
|
import type * as Core from '@dialecte/core';
|
|
3
3
|
/**
|
|
4
4
|
* When a target element is renamed, recalculate path attrs on all ref elements
|
|
5
|
-
* pointing to it via UUID
|
|
5
|
+
* pointing to it via UUID (see ref-paths.ts), and sync the affected IEDs'
|
|
6
|
+
* minimum requested SCD file (see min-requested-scd-file.ts).
|
|
6
7
|
*/
|
|
7
8
|
export declare function afterUpdated<GenericElement extends Scl.ElementsOf>(params: {
|
|
8
9
|
oldRecord: Scl.RawRecord<GenericElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"after-updated.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/after-updated/after-updated.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"after-updated.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/after-updated/after-updated.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,cAAc,SAAS,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE;IACjF,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;IACxC,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;IACxC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;CACzB,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAU3B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Scl, Config } from '../../config';
|
|
2
|
+
import type * as Core from '@dialecte/core';
|
|
3
|
+
/**
|
|
4
|
+
* Sync the IEDs affected by an updated trigger, or by an updated IED itself, to the current SCD.
|
|
5
|
+
* The update counts when it changes the element's text or a relevant attribute;
|
|
6
|
+
* reassigning a `ConnectedAP` to another IED syncs both the former and the new IED.
|
|
7
|
+
*
|
|
8
|
+
* @stopgap Stamps at edit time with the Header version current during the edit, so the entry is one
|
|
9
|
+
* version behind when the version is bumped after editing. Remove once a Header version change
|
|
10
|
+
* stamps the IEDs changed since the previous version change (needs the store to list the records
|
|
11
|
+
* changed since then).
|
|
12
|
+
*/
|
|
13
|
+
export declare function syncMinRequestedScdFileOnUpdate<GenericElement extends Scl.ElementsOf>(query: Core.Query<Config>, params: {
|
|
14
|
+
oldRecord: Scl.RawRecord<GenericElement>;
|
|
15
|
+
newRecord: Scl.RawRecord<GenericElement>;
|
|
16
|
+
}): Promise<Scl.Operation[]>;
|
|
17
|
+
//# sourceMappingURL=min-requested-scd-file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"min-requested-scd-file.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/after-updated/min-requested-scd-file.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;GASG;AACH,wBAAsB,+BAA+B,CAAC,cAAc,SAAS,GAAG,CAAC,UAAU,EAC1F,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE;IACP,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;IACxC,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;CACxC,GACC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAuB1B"}
|
|
@@ -2,7 +2,8 @@ import { Scl, Config } from '../../config';
|
|
|
2
2
|
import type * as Core from '@dialecte/core';
|
|
3
3
|
/**
|
|
4
4
|
* Before a record (and its subtree) is deleted, clean up external refs that
|
|
5
|
-
* pointed to any UUID in the deleted subtree
|
|
5
|
+
* pointed to any UUID in the deleted subtree (see orphaned-refs.ts), and sync the
|
|
6
|
+
* affected IEDs' minimum requested SCD file (see min-requested-scd-file.ts).
|
|
6
7
|
*/
|
|
7
8
|
export declare function beforeDelete<GenericElement extends Scl.ElementsOf>(params: {
|
|
8
9
|
record: Scl.RawRecord<GenericElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"before-delete.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/before-delete/before-delete.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"before-delete.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/before-delete/before-delete.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,cAAc,SAAS,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE;IACjF,MAAM,EAAE,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;IACrC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;CACzB,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAO3B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Scl, Config } from '../../config';
|
|
2
|
+
import type * as Core from '@dialecte/core';
|
|
3
|
+
/**
|
|
4
|
+
* Sync the IEDs affected by deleting `record` and its subtree to the current SCD.
|
|
5
|
+
*
|
|
6
|
+
* Runs before the deletion, while the subtree is still readable. The sync only reads the `Header`
|
|
7
|
+
* and the IED's own `MinRequestedSCDFiles`, which the deletion leaves intact, so its result is the
|
|
8
|
+
* same as after the deletion. Deleting an IED itself syncs nothing.
|
|
9
|
+
*
|
|
10
|
+
* @stopgap Stamps at edit time with the Header version current during the edit, so the entry is one
|
|
11
|
+
* version behind when the version is bumped after editing. Remove once a Header version change
|
|
12
|
+
* stamps the IEDs changed since the previous version change (needs the store to list the records
|
|
13
|
+
* changed since then).
|
|
14
|
+
*/
|
|
15
|
+
export declare function syncMinRequestedScdFileOnDelete<GenericElement extends Scl.ElementsOf>(query: Core.Query<Config>, params: {
|
|
16
|
+
record: Scl.RawRecord<GenericElement>;
|
|
17
|
+
}): Promise<Scl.Operation[]>;
|
|
18
|
+
//# sourceMappingURL=min-requested-scd-file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"min-requested-scd-file.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/before-delete/min-requested-scd-file.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;GAWG;AACH,wBAAsB,+BAA+B,CAAC,cAAc,SAAS,GAAG,CAAC,UAAU,EAC1F,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE;IAAE,MAAM,EAAE,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;CAAE,GAC/C,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAM1B"}
|
|
@@ -2,5 +2,6 @@ export { updateRefsForEntry, getRefEntriesForTarget } from './ref-entry-ops';
|
|
|
2
2
|
export { reconcileMappedName } from './mapped-name';
|
|
3
3
|
export { reconcileReferrerRefPaths } from './ref-path-rebuild';
|
|
4
4
|
export { reconcileLNodeBinding } from './lnode-binding';
|
|
5
|
-
export { updatedOperation, upsertAttribute } from './record-ops';
|
|
5
|
+
export { changedAttributeNames, hasAttributeChange, readSnapshotAttribute, updatedOperation, upsertAttribute, } from './record-ops';
|
|
6
|
+
export * from './min-requested-scd-file';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,eAAe,CAAA;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AACvD,OAAO,
|
|
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,eAAe,CAAA;AACnD,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,29 @@
|
|
|
1
|
+
import { ScdFileReference } from './min-requested-scd-file.types';
|
|
2
|
+
import { Scl, Config } from '../../../config';
|
|
3
|
+
import type * as Core from '@dialecte/core';
|
|
4
|
+
/** The wrapper's entries referencing the project `fileUuid`, in document order. */
|
|
5
|
+
export declare function findProjectEntries(query: Core.Query<Config>, params: {
|
|
6
|
+
wrapper: Scl.Ref<'MinRequestedSCDFiles'>;
|
|
7
|
+
fileUuid: string;
|
|
8
|
+
}): Promise<Scl.TrackedRecord<'MinRequestedSCDFile'>[]>;
|
|
9
|
+
/**
|
|
10
|
+
* Fold `duplicates` of one project into `kept`: `kept` takes the hand-set attributes it lacks
|
|
11
|
+
* from them, then the `scdFile` managed values when given, and the duplicates are removed.
|
|
12
|
+
*/
|
|
13
|
+
export declare function foldEntryOperations(query: Core.Query<Config>, params: {
|
|
14
|
+
wrapper: Scl.TrackedRecord<'MinRequestedSCDFiles'>;
|
|
15
|
+
kept: Scl.TrackedRecord<'MinRequestedSCDFile'>;
|
|
16
|
+
duplicates: Scl.TrackedRecord<'MinRequestedSCDFile'>[];
|
|
17
|
+
scdFile?: ScdFileReference;
|
|
18
|
+
}): Promise<Scl.Operation[]>;
|
|
19
|
+
/** Append a new entry for `scdFile` to an existing wrapper. */
|
|
20
|
+
export declare function appendEntryOperations(params: {
|
|
21
|
+
wrapper: Scl.TrackedRecord<'MinRequestedSCDFiles'>;
|
|
22
|
+
scdFile: ScdFileReference;
|
|
23
|
+
}): Scl.Operation[];
|
|
24
|
+
/** Create the wrapper under `ied`, holding a single entry for `scdFile`. */
|
|
25
|
+
export declare function createWrapperOperations(params: {
|
|
26
|
+
ied: Scl.TrackedRecord<'IED'>;
|
|
27
|
+
scdFile: ScdFileReference;
|
|
28
|
+
}): Scl.Operation[];
|
|
29
|
+
//# sourceMappingURL=entry-operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entry-operations.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/hooks/shared/min-requested-scd-file/entry-operations.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACtE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C,mFAAmF;AACnF,wBAAsB,kBAAkB,CACvC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE;IAAE,OAAO,EAAE,GAAG,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACpE,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAUrD;AAED;;;GAGG;AACH,wBAAsB,mBAAmB,CACxC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE;IACP,OAAO,EAAE,GAAG,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAA;IAClD,IAAI,EAAE,GAAG,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAA;IAC9C,UAAU,EAAE,GAAG,CAAC,aAAa,CAAC,qBAAqB,CAAC,EAAE,CAAA;IACtD,OAAO,CAAC,EAAE,gBAAgB,CAAA;CAC1B,GACC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CA+B1B;AAED,+DAA+D;AAC/D,wBAAgB,qBAAqB,CAAC,MAAM,EAAE;IAC7C,OAAO,EAAE,GAAG,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAA;IAClD,OAAO,EAAE,gBAAgB,CAAA;CACzB,GAAG,GAAG,CAAC,SAAS,EAAE,CAclB;AAED,4EAA4E;AAC5E,wBAAgB,uBAAuB,CAAC,MAAM,EAAE;IAC/C,GAAG,EAAE,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;IAC7B,OAAO,EAAE,gBAAgB,CAAA;CACzB,GAAG,GAAG,CAAC,SAAS,EAAE,CAyBlB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { findProjectEntries, foldEntryOperations } from './entry-operations';
|
|
2
|
+
export { resolveAffectedIeds, resolveAncestorIed, resolveIedByName } from './resolve-affected-ieds';
|
|
3
|
+
export { syncMinRequestedScdFiles } from './sync-min-requested-scd-files';
|
|
4
|
+
export type * from './min-requested-scd-file.types';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/hooks/shared/min-requested-scd-file/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAC5E,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACnG,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAA;AACzE,mBAAmB,gCAAgC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Scl } from '../../../config';
|
|
2
|
+
/** The SCD file an IED's entry must reference: the `Header` identity and version. */
|
|
3
|
+
export type ScdFileReference = Required<Pick<Scl.AttributesValueObjectOf<'MinRequestedSCDFile'>, 'fileType' | 'fileUuid' | 'version' | 'revision'>>;
|
|
4
|
+
//# sourceMappingURL=min-requested-scd-file.types.d.ts.map
|
package/dist/v2019C1/hooks/shared/min-requested-scd-file/min-requested-scd-file.types.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"min-requested-scd-file.types.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/hooks/shared/min-requested-scd-file/min-requested-scd-file.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAE3C,qFAAqF;AACrF,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CACtC,IAAI,CACH,GAAG,CAAC,uBAAuB,CAAC,qBAAqB,CAAC,EAClD,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,CAChD,CACD,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Scl, Config } from '../../../config';
|
|
2
|
+
import type * as Core from '@dialecte/core';
|
|
3
|
+
/**
|
|
4
|
+
* The IEDs whose configuration changes when `record` is created, updated or deleted.
|
|
5
|
+
*
|
|
6
|
+
* IED content resolves to its `IED` ancestor. Communication content resolves through
|
|
7
|
+
* `ConnectedAP@iedName`; a `SubNetwork` setting reaches every attached IED, once each.
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveAffectedIeds(query: Core.Query<Config>, params: {
|
|
10
|
+
record: Scl.RawRecord<Scl.ElementsOf>;
|
|
11
|
+
}): Promise<Scl.Ref<'IED'>[]>;
|
|
12
|
+
/** The `IED` holding `record`, or `null` outside any IED. */
|
|
13
|
+
export declare function resolveAncestorIed(query: Core.Query<Config>, params: {
|
|
14
|
+
record: Scl.RawRecord<Scl.ElementsOf>;
|
|
15
|
+
}): Promise<Scl.Ref<'IED'> | null>;
|
|
16
|
+
/**
|
|
17
|
+
* The `IED` named `iedName`, or `null` when none carries that name.
|
|
18
|
+
*
|
|
19
|
+
* @stopgap Finds the IED by the `iedName` string. Remove once `ConnectedAP` resolves its
|
|
20
|
+
* `AccessPoint` by uuid through the reference registry: resolve through that reference instead.
|
|
21
|
+
*/
|
|
22
|
+
export declare function resolveIedByName(query: Core.Query<Config>, params: {
|
|
23
|
+
iedName: string | undefined;
|
|
24
|
+
}): Promise<Scl.Ref<'IED'> | null>;
|
|
25
|
+
//# sourceMappingURL=resolve-affected-ieds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-affected-ieds.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/hooks/shared/min-requested-scd-file/resolve-affected-ieds.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACxC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE;IAAE,MAAM,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;CAAE,GAC/C,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAwB3B;AAED,6DAA6D;AAC7D,wBAAsB,kBAAkB,CACvC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE;IAAE,MAAM,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;CAAE,GAC/C,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAMhC;AAED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACrC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE;IAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GACrC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAMhC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Scl, Config } from '../../../config';
|
|
2
|
+
import type * as Core from '@dialecte/core';
|
|
3
|
+
/**
|
|
4
|
+
* Make each IED's `MinRequestedSCDFiles` reference the current SCD: the entry whose `fileUuid` is
|
|
5
|
+
* the `Header` uuid is created or brought up to the Header version and revision. Entries of other
|
|
6
|
+
* projects are left untouched; duplicate entries of the current project are folded into one.
|
|
7
|
+
*
|
|
8
|
+
* Without a `Header` uuid there is no SCD to reference, so nothing is written.
|
|
9
|
+
*/
|
|
10
|
+
export declare function syncMinRequestedScdFiles(query: Core.Query<Config>, params: {
|
|
11
|
+
iedRefs: Scl.Ref<'IED'>[];
|
|
12
|
+
}): Promise<Scl.Operation[]>;
|
|
13
|
+
//# sourceMappingURL=sync-min-requested-scd-files.d.ts.map
|
package/dist/v2019C1/hooks/shared/min-requested-scd-file/sync-min-requested-scd-files.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync-min-requested-scd-files.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/hooks/shared/min-requested-scd-file/sync-min-requested-scd-files.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;GAMG;AACH,wBAAsB,wBAAwB,CAC7C,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE;IAAE,OAAO,EAAE,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAA;CAAE,GACnC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAiB1B"}
|
|
@@ -11,6 +11,25 @@ export type AttributeList = readonly {
|
|
|
11
11
|
* cast-free.
|
|
12
12
|
*/
|
|
13
13
|
export declare function updatedOperation(record: Scl.RawRecord<Scl.ElementsOf>, attributes: AttributeList): Scl.Operation;
|
|
14
|
+
/**
|
|
15
|
+
* Read an attribute from a record snapshot. Only for a state `query` can no longer reach, such as
|
|
16
|
+
* the `oldRecord` of an update hook; read the current state through `query.getAttribute`.
|
|
17
|
+
*/
|
|
18
|
+
export declare function readSnapshotAttribute(params: {
|
|
19
|
+
record: Scl.RawRecord<Scl.ElementsOf>;
|
|
20
|
+
name: string;
|
|
21
|
+
}): string | undefined;
|
|
22
|
+
/** Whether any of the named attributes differs between two snapshots of one record. */
|
|
23
|
+
export declare function hasAttributeChange(params: {
|
|
24
|
+
oldRecord: Scl.RawRecord<Scl.ElementsOf>;
|
|
25
|
+
newRecord: Scl.RawRecord<Scl.ElementsOf>;
|
|
26
|
+
names: readonly string[];
|
|
27
|
+
}): boolean;
|
|
28
|
+
/** Names of the attributes whose value differs between two snapshots of one record. */
|
|
29
|
+
export declare function changedAttributeNames(params: {
|
|
30
|
+
oldRecord: Scl.RawRecord<Scl.ElementsOf>;
|
|
31
|
+
newRecord: Scl.RawRecord<Scl.ElementsOf>;
|
|
32
|
+
}): string[];
|
|
14
33
|
/** Upsert (replace-or-append) an attribute value on a plain attribute list. */
|
|
15
34
|
export declare function upsertAttribute(attributes: AttributeList, name: string, value: string): {
|
|
16
35
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-ops.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/shared/record-ops.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAE3C,gEAAgE;AAChE,MAAM,MAAM,aAAa,GAAG,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAAA;AAEtE;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC/B,MAAM,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,EACrC,UAAU,EAAE,aAAa,GACvB,GAAG,CAAC,SAAS,CAMf;AAED,+EAA+E;AAC/E,wBAAgB,eAAe,CAC9B,UAAU,EAAE,aAAa,EACzB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,GACX;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAInC"}
|
|
1
|
+
{"version":3,"file":"record-ops.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/hooks/shared/record-ops.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAE3C,gEAAgE;AAChE,MAAM,MAAM,aAAa,GAAG,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAAA;AAEtE;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC/B,MAAM,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,EACrC,UAAU,EAAE,aAAa,GACvB,GAAG,CAAC,SAAS,CAMf;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE;IAC7C,MAAM,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACrC,IAAI,EAAE,MAAM,CAAA;CACZ,GAAG,MAAM,GAAG,SAAS,CAGrB;AAED,uFAAuF;AACvF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IAC1C,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACxC,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACxC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CACxB,GAAG,OAAO,CAOV;AAED,uFAAuF;AACvF,wBAAgB,qBAAqB,CAAC,MAAM,EAAE;IAC7C,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACxC,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;CACxC,GAAG,MAAM,EAAE,CAUX;AAED,+EAA+E;AAC/E,wBAAgB,eAAe,CAC9B,UAAU,EAAE,aAAa,EACzB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,GACX;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAInC"}
|
package/dist/v2019C1/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as e,
|
|
2
|
-
import { Project as
|
|
1
|
+
import { A as e, B as t, C as n, D as r, E as i, F as a, H as o, I as s, L as c, M as l, N as u, O as d, P as f, R as p, S as m, T as h, V as g, _, a as v, b as y, c as b, d as x, f as S, g as C, h as w, i as T, j as E, k as D, l as O, m as k, n as A, o as j, p as M, r as N, s as P, t as F, u as I, v as L, w as R, x as z, y as B, z as V } from "../hooks-CZTZsrpD.js";
|
|
2
|
+
import { Project as H } from "@dialecte/core";
|
|
3
3
|
//#region src/v2019C1/extensions/lifecycle/validate/template-uuid-check.info.ts
|
|
4
|
-
var
|
|
4
|
+
var U = {
|
|
5
5
|
"cross-type-template-uuid": {
|
|
6
6
|
title: "Placeholder templateUuid reused across element types",
|
|
7
7
|
description: "One templateUuid is carried by elements of several different types, so it cannot identify a single template element — it is an authoring placeholder, not real lineage.",
|
|
@@ -20,21 +20,21 @@ var F = {
|
|
|
20
20
|
};
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/v2019C1/dialecte.ts
|
|
23
|
-
function
|
|
24
|
-
let { storage:
|
|
25
|
-
return new
|
|
26
|
-
configs: { scl:
|
|
23
|
+
function W(e) {
|
|
24
|
+
let { storage: n = { type: "local" }, extensions: r } = e ?? {};
|
|
25
|
+
return new H({
|
|
26
|
+
configs: { scl: t },
|
|
27
27
|
defaultConfigKey: "scl",
|
|
28
|
-
storage:
|
|
28
|
+
storage: n,
|
|
29
29
|
extensions: {
|
|
30
|
-
base:
|
|
31
|
-
custom:
|
|
30
|
+
base: N,
|
|
31
|
+
custom: r
|
|
32
32
|
},
|
|
33
33
|
hooks: {
|
|
34
|
-
...
|
|
35
|
-
...
|
|
34
|
+
...A(),
|
|
35
|
+
...F
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
|
-
export {
|
|
40
|
+
export { b as ALL_REF_UUID_ATTRIBUTES, O as ALL_RESOLUTIONS, v as DEFAULT_IGNORED_ATTRIBUTES, d as FRAME_OMIT_CHILD_TAGS, l as KEEP_ON_ORPHAN_REFS, I as LOCKED_LNODE_ATTRIBUTES, x as MAPPED_NAME_REFS, y as MIN_REQUESTED_SCD_CONNECTED_AP_TRIGGER_TAGS, z as MIN_REQUESTED_SCD_DESCRIPTIVE_ATTRIBUTES, m as MIN_REQUESTED_SCD_DESCRIPTIVE_TAGS, n as MIN_REQUESTED_SCD_FILE_USER_ATTRIBUTES, R as MIN_REQUESTED_SCD_IED_IGNORED_ATTRIBUTES, h as MIN_REQUESTED_SCD_IED_TRIGGER_ROOTS, i as MIN_REQUESTED_SCD_IED_TRIGGER_TAGS, r as MIN_REQUESTED_SCD_SUBNETWORK_TRIGGER_TAGS, S as PAIRS_BY_REF, c as PATH_CONTRIBUTING_ATTRIBUTES, p as PATH_EXTRACTION_CONFIG, u as REFERENCE_TAGS, f as REFERENCE_TAG_NAMES, P as REF_CONTAINERS, M as RESOLUTION_TARGET_REFS, B as RESOLUTION_TYPE, k as RESOLVABLE_RESOLUTIONS, V as SCL_DATABASE_CONFIG, t as SCL_DIALECTE_CONFIG, g as SCL_IO_CONFIG, o as SCL_NAMESPACES, a as TARGET_ELEMENT_TYPES, E as TEMPLATE_NAME, U as TEMPLATE_UUID_WARNING_INFO, D as TOPOLOGY_EQUIPMENT_TAGS, e as TOPOLOGY_STRUCTURAL_TAGS, L as TYPE_ID_REFERENCE_PAIRS, w as TYPE_ID_REFERRERS_BY_TARGET, C as TYPE_ID_REF_ATTRIBUTES, _ as TYPE_ID_TARGET_TAGS, s as UUID_REFERENCE_PAIRS, W as createSclProject, j as isTypeIdTarget, T as presentationScope };
|
package/dist/v2019C1/test.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as e, H as t, U as n, n as r, r as i, t as a } from "../hooks-CZTZsrpD.js";
|
|
2
2
|
import { CUSTOM_RECORD_ID_ATTRIBUTE as o, CUSTOM_RECORD_ID_ATTRIBUTE_NAME as s, XMLNS_XSI_NAMESPACE as c } from "@dialecte/core/helpers";
|
|
3
3
|
import { XMLNS_DEV_NAMESPACE as l, createTestProject as u, createTestRecordFactory as d, createTestRunner as f, createXmlAssertions as p, createXmlSchemaAssertions as m } from "@dialecte/core/test";
|
|
4
4
|
//#region src/v2019C1/test/assert-valid-scl-xml.ts
|
|
5
5
|
var { assertValidXml: h, assertValidXmlTestCases: g } = m({
|
|
6
|
-
definition:
|
|
7
|
-
namespaces:
|
|
6
|
+
definition: n,
|
|
7
|
+
namespaces: t,
|
|
8
8
|
schemaName: "SCL"
|
|
9
9
|
}), _ = h, v = g, y = {
|
|
10
10
|
...r(),
|
|
11
11
|
...a
|
|
12
|
-
}, b = `xmlns="${
|
|
13
|
-
dialecteConfig:
|
|
12
|
+
}, b = `xmlns="${e.namespaces.default.uri}"`, x = `xmlns:${e.namespaces.v2019C1.prefix}="${e.namespaces.v2019C1.uri}"`, S = `${b} ${x} ${l} ${c}`, C = { base: i }, w = f({
|
|
13
|
+
dialecteConfig: e,
|
|
14
14
|
extensions: C,
|
|
15
15
|
hooks: y
|
|
16
16
|
}), T = {
|
|
@@ -22,17 +22,17 @@ var { assertValidXml: h, assertValidXmlTestCases: g } = m({
|
|
|
22
22
|
v({ testCases: e.testCases }), w.withoutExport(e);
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
async function E(
|
|
26
|
-
let { sourceXml: n, targetXml: r, dev: i } =
|
|
25
|
+
async function E(t) {
|
|
26
|
+
let { sourceXml: n, targetXml: r, dev: i } = t;
|
|
27
27
|
return _(n, "sourceXml", { requireComplete: !1 }), r && _(r, "targetXml", { requireComplete: !1 }), u({
|
|
28
28
|
sourceXml: n,
|
|
29
29
|
targetXml: r,
|
|
30
|
-
dialecteConfig:
|
|
30
|
+
dialecteConfig: e,
|
|
31
31
|
extensions: C,
|
|
32
32
|
hooks: y,
|
|
33
33
|
dev: i
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
var D = d(
|
|
36
|
+
var D = d(e), { assertExpectedElementQueries: O, assertUnexpectedElementQueries: k } = p({ namespaces: e.namespaces });
|
|
37
37
|
//#endregion
|
|
38
38
|
export { S as ALL_XMLNS_NAMESPACES, o as CUSTOM_RECORD_ID_ATTRIBUTE, s as CUSTOM_RECORD_ID_ATTRIBUTE_NAME, x as XMLNS_SCL_6_100_NAMESPACE, b as XMLNS_SCL_NAMESPACE, O as assertExpectedElementQueries, k as assertUnexpectedElementQueries, _ as assertValidSclXml, E as createSclTestProject, D as createSclTestRecord, T as runSclTestCases };
|