@dialecte/scl 0.3.12 → 0.3.14
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-Cm_UYBBt.js → hooks-By65uB-0.js} +1095 -1084
- package/dist/v2019C1/extensions/data-model/transaction/import-types.d.ts.map +1 -1
- package/dist/v2019C1/extensions/identity/transaction/index.d.ts +1 -0
- package/dist/v2019C1/extensions/identity/transaction/index.d.ts.map +1 -1
- package/dist/v2019C1/extensions/identity/transaction/restore-cloned-uuids.d.ts +19 -0
- package/dist/v2019C1/extensions/identity/transaction/restore-cloned-uuids.d.ts.map +1 -0
- package/dist/v2019C1/extensions/lifecycle/contract.types.d.ts +18 -6
- package/dist/v2019C1/extensions/lifecycle/contract.types.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/cross-cutting/clone-applied-satellites.d.ts +1 -1
- package/dist/v2019C1/extensions/lifecycle/engine/diff.d.ts +3 -0
- package/dist/v2019C1/extensions/lifecycle/engine/diff.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/engine/reconcile.d.ts +6 -0
- package/dist/v2019C1/extensions/lifecycle/engine/reconcile.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/extract/transaction/asd.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/extract/transaction/fsd.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/instance/find-instance.d.ts +5 -0
- package/dist/v2019C1/extensions/lifecycle/instance/find-instance.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/instantiate/transaction/asd.d.ts +2 -2
- package/dist/v2019C1/extensions/lifecycle/instantiate/transaction/asd.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/instantiate/transaction/fsd.d.ts +2 -2
- package/dist/v2019C1/extensions/lifecycle/instantiate/transaction/fsd.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/layers/application/clone-application.d.ts +2 -1
- package/dist/v2019C1/extensions/lifecycle/layers/application/clone-application.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/layers/function/clone-function.d.ts +4 -2
- package/dist/v2019C1/extensions/lifecycle/layers/function/clone-function.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/report/query/report-fsd.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/report/query/report-function.d.ts +3 -0
- package/dist/v2019C1/extensions/lifecycle/report/query/report-function.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/scenario.d.ts +21 -0
- package/dist/v2019C1/extensions/lifecycle/scenario.d.ts.map +1 -0
- package/dist/v2019C1/extensions/lifecycle/transplant/transaction/deep.d.ts +2 -1
- package/dist/v2019C1/extensions/lifecycle/transplant/transaction/deep.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/transplant/transaction/primitives/clone-referenced.d.ts +2 -2
- package/dist/v2019C1/extensions/lifecycle/transplant/transaction/primitives/clone-tree.d.ts +1 -1
- package/dist/v2019C1/extensions/lifecycle/update/transaction/asd.d.ts +1 -1
- package/dist/v2019C1/extensions/lifecycle/update/transaction/asd.d.ts.map +1 -1
- package/dist/v2019C1/extensions/lifecycle/update/transaction/fsd.d.ts +1 -1
- package/dist/v2019C1/extensions/lifecycle/update/transaction/fsd.d.ts.map +1 -1
- package/dist/v2019C1/extensions/reference/transaction/apply-type-id-remap.d.ts +1 -1
- package/dist/v2019C1/extensions/reference/transaction/apply-uuid-remap.d.ts +21 -0
- package/dist/v2019C1/extensions/reference/transaction/apply-uuid-remap.d.ts.map +1 -0
- package/dist/v2019C1/extensions/reference/transaction/index.d.ts +1 -0
- package/dist/v2019C1/extensions/reference/transaction/index.d.ts.map +1 -1
- package/dist/v2019C1/extensions/signature/public.d.ts +1 -1
- package/dist/v2019C1/extensions/signature/public.d.ts.map +1 -1
- package/dist/v2019C1/extensions/signature/query/element-signature.types.d.ts +15 -1
- package/dist/v2019C1/extensions/signature/query/element-signature.types.d.ts.map +1 -1
- package/dist/v2019C1/extensions/signature/query/index.d.ts +1 -1
- package/dist/v2019C1/extensions/signature/query/index.d.ts.map +1 -1
- package/dist/v2019C1/hooks/index.d.ts.map +1 -1
- package/dist/v2019C1/index.js +1 -1
- package/dist/v2019C1/test/fixtures/generate-scl-stress-fixtures.d.ts +13 -0
- package/dist/v2019C1/test/fixtures/generate-scl-stress-fixtures.d.ts.map +1 -0
- package/dist/v2019C1/test/fixtures/run-scl-benchmarks.d.ts +2 -0
- package/dist/v2019C1/test/fixtures/run-scl-benchmarks.d.ts.map +1 -0
- package/dist/v2019C1/test/hydrated-test.d.ts +3 -0
- package/dist/v2019C1/test/hydrated-test.d.ts.map +1 -1
- package/dist/v2019C1/test.js +4 -3
- package/package.json +5 -5
- package/dist/v2019C1/hooks/after-deep-clone/after-deep-clone.d.ts +0 -15
- package/dist/v2019C1/hooks/after-deep-clone/after-deep-clone.d.ts.map +0 -1
- package/dist/v2019C1/hooks/after-deep-clone/index.d.ts +0 -2
- package/dist/v2019C1/hooks/after-deep-clone/index.d.ts.map +0 -1
- package/dist/v2019C1/hooks/after-deep-clone/ref-paths.d.ts +0 -12
- package/dist/v2019C1/hooks/after-deep-clone/ref-paths.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-types.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/data-model/transaction/import-types.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACX,iBAAiB,EACjB,iBAAiB,EAGjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAO,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAc3C,YAAY,EACX,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,GACjB,MAAM,sBAAsB,CAAA;AAE7B;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,WAAW,CAChC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE,iBAAiB,GACvB,OAAO,CAAC,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"import-types.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/data-model/transaction/import-types.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACX,iBAAiB,EACjB,iBAAiB,EAGjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAO,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAc3C,YAAY,EACX,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,GACjB,MAAM,sBAAsB,CAAA;AAE7B;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,WAAW,CAChC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE,iBAAiB,GACvB,OAAO,CAAC,iBAAiB,CAAC,CAmJ5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/identity/transaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/identity/transaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Config, Scl } from '../../../config';
|
|
2
|
+
import type * as Core from '@dialecte/core';
|
|
3
|
+
/**
|
|
4
|
+
* Fork identity restore (the operation-owned counterpart to the context-free clone
|
|
5
|
+
* hooks). A clone always mints FRESH uuids (`beforeClone` strips them, the standardize
|
|
6
|
+
* hook fills new ones, `reference.applyUuidRemap` repoints refs onto them). For a **fork** that
|
|
7
|
+
* is wrong: a fork converges the target to the SAME identity as the source
|
|
8
|
+
* revision, so a newly added element must keep its SOURCE uuid.
|
|
9
|
+
*
|
|
10
|
+
* Adding an element during a fork is the only place that knows this intent, so it fixes it here rather
|
|
11
|
+
* than leaking intent into a global hook: using the clone `mappings` (source carries the
|
|
12
|
+
* original uuid), restore each cloned element's uuid to its source uuid, then repoint any
|
|
13
|
+
* INTRA-clone uuid reference from the fresh clone uuid back to the source uuid — all in
|
|
14
|
+
* the same transaction (dependent path attrs are rebuilt by the `afterUpdated` hook).
|
|
15
|
+
*/
|
|
16
|
+
export declare function restoreClonedUuids(tx: Core.Transaction<Config>, params: {
|
|
17
|
+
mappings: readonly Scl.CloneMapping[];
|
|
18
|
+
}): Promise<void>;
|
|
19
|
+
//# sourceMappingURL=restore-cloned-uuids.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restore-cloned-uuids.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/identity/transaction/restore-cloned-uuids.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,CACvC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE;IAAE,QAAQ,EAAE,SAAS,GAAG,CAAC,YAAY,EAAE,CAAA;CAAE,GAC/C,OAAO,CAAC,IAAI,CAAC,CA2Cf"}
|
|
@@ -4,17 +4,29 @@ import { DecisionMap, DiffReport } from './engine/diff.types';
|
|
|
4
4
|
import type * as Core from '@dialecte/core';
|
|
5
5
|
/** Which template layer the lifecycle surface operates on. */
|
|
6
6
|
export type LifecycleVerb = 'fsd' | 'asd';
|
|
7
|
+
/**
|
|
8
|
+
* The two reconcile modes of the `Update` operation, distinguished by how the
|
|
9
|
+
* SOURCE relates to the TARGET:
|
|
10
|
+
* - `template` — source is a TEMPLATE; reconcile it onto its EXISTING
|
|
11
|
+
* instance(s). Match by `templateUuid` (= source `uuid`), stamp lineage on
|
|
12
|
+
* added elements, rotate provenance. Was `update`.
|
|
13
|
+
* - `fork` — source is a newer REVISION of the SAME file; reconcile it onto the
|
|
14
|
+
* prior revision, KEEPING identity. Match by `uuid` (source and target share
|
|
15
|
+
* it), no re-stamp, no provenance. The single-layer form of an SCD fork.
|
|
16
|
+
*/
|
|
17
|
+
export type UpdateMode = 'template' | 'fork';
|
|
7
18
|
/**
|
|
8
19
|
* Which lifecycle operation the user chose:
|
|
9
20
|
* - `instantiate` — place a NEW instance of the template (duplicates allowed;
|
|
10
21
|
* a sibling name collision is resolved). Re-applying the same template yields
|
|
11
22
|
* another instance, never a silent no-op.
|
|
12
|
-
* - `
|
|
23
|
+
* - `template` / `fork` — the two {@link UpdateMode} reconcile modes.
|
|
13
24
|
*
|
|
14
|
-
* Picked explicitly by the consumer
|
|
15
|
-
*
|
|
25
|
+
* Picked explicitly by the consumer (or auto-detected from the source↔target
|
|
26
|
+
* relationship) — it cannot be inferred reliably (a same-version re-upload is a
|
|
27
|
+
* valid duplicate). Defaults to `template` for back-compat.
|
|
16
28
|
*/
|
|
17
|
-
export type LifecycleScenario = 'instantiate' |
|
|
29
|
+
export type LifecycleScenario = 'instantiate' | UpdateMode;
|
|
18
30
|
/**
|
|
19
31
|
* What to reconcile and where — the uniform `{ verb, sourceQuery, ref, anchor }`
|
|
20
32
|
* descriptor shared by `report` (read-only classify) and `apply` (write).
|
|
@@ -27,7 +39,7 @@ export type LifecycleTarget = {
|
|
|
27
39
|
ref: Scl.Ref<'Function'>;
|
|
28
40
|
/** Target parent the instance lives under / is placed into. */
|
|
29
41
|
anchor: Scl.Ref<Scl.ElementsOf>;
|
|
30
|
-
/** Operation to perform. Defaults to `
|
|
42
|
+
/** Operation to perform. Defaults to `template`. */
|
|
31
43
|
scenario?: LifecycleScenario;
|
|
32
44
|
} | {
|
|
33
45
|
verb: 'asd';
|
|
@@ -36,7 +48,7 @@ export type LifecycleTarget = {
|
|
|
36
48
|
ref: Scl.Ref<'Application'>;
|
|
37
49
|
/** Target parent the composed functions are placed into. */
|
|
38
50
|
anchor: Scl.Ref<Scl.ElementsOf>;
|
|
39
|
-
/** Operation to perform. Defaults to `
|
|
51
|
+
/** Operation to perform. Defaults to `template`. */
|
|
40
52
|
scenario?: LifecycleScenario;
|
|
41
53
|
};
|
|
42
54
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.types.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/extensions/lifecycle/contract.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAA;AACpF,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAA;AAC/F,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C,8DAA8D;AAC9D,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,KAAK,CAAA;AAEzC;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"contract.types.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/extensions/lifecycle/contract.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAA;AACpF,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAA;AAC/F,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C,8DAA8D;AAC9D,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,KAAK,CAAA;AAEzC;;;;;;;;;GASG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,MAAM,CAAA;AAE5C;;;;;;;;;;GAUG;AACH,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,UAAU,CAAA;AAE1D;;;;GAIG;AACH,MAAM,MAAM,eAAe,GACxB;IACA,IAAI,EAAE,KAAK,CAAA;IACX,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,mDAAmD;IACnD,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACxB,+DAA+D;IAC/D,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IAC/B,oDAAoD;IACpD,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC3B,GACD;IACA,IAAI,EAAE,KAAK,CAAA;IACX,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,sDAAsD;IACtD,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;IAC3B,4DAA4D;IAC5D,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IAC/B,oDAAoD;IACpD,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC3B,CAAA;AAEJ;;;;;;;GAOG;AACH,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG;IACpD,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,CAAC,EAAE,WAAW,CAAA;IACvB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;CACrC,CAAA"}
|
|
@@ -7,7 +7,7 @@ import type * as Core from '@dialecte/core';
|
|
|
7
7
|
* placed at its source structural level. Tag-agnostic: whatever
|
|
8
8
|
* `resolveAppliedSatellites` returns is cloned by its own tag. Satellites living
|
|
9
9
|
* inside the subtree are cloned by `deep`, not here (the resolver excludes them).
|
|
10
|
-
* UUID remapping is
|
|
10
|
+
* UUID remapping is the caller's responsibility via `reference.applyUuidRemap`; the caller stamps lineage
|
|
11
11
|
* via `writeIdentity`.
|
|
12
12
|
*
|
|
13
13
|
* A satellite whose same-tag/same-name twin already exists in the target IS that
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DecisionGroup, DiffNode, DiffReport, InstanceDiff, ReportInstance } from './diff.types';
|
|
2
2
|
import { Config } from '../../../config';
|
|
3
|
+
import { MatchKey } from '../scenario';
|
|
3
4
|
import { AnyRefOrRecord, AnyTreeRecord } from '@dialecte/core';
|
|
4
5
|
import type * as Core from '@dialecte/core';
|
|
5
6
|
/**
|
|
@@ -48,6 +49,8 @@ export declare function diff(params: {
|
|
|
48
49
|
* the prior instance's refs are kept as unchanged context (with `keepLeftoverRefs`).
|
|
49
50
|
*/
|
|
50
51
|
refsAlwaysAdded?: boolean;
|
|
52
|
+
/** How instance elements match source. `templateUuid` (default) or `uuid` (fork). */
|
|
53
|
+
matchKey?: MatchKey;
|
|
51
54
|
}): Promise<InstanceDiff>;
|
|
52
55
|
/**
|
|
53
56
|
* Assemble the per-instance {@link ReportInstance}s into the consumer-facing
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/engine/diff.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAEX,aAAa,EACb,QAAQ,EACR,UAAU,EAEV,YAAY,EACZ,cAAc,EACd,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAqBnE;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,aAAa,EAAE,aAAa,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;AAE7F;;;;;;;;;;GAUG;AACH,wBAAsB,IAAI,CAAC,MAAM,EAAE;IAClC,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,aAAa,EAAE,cAAc,CAAA;IAC7B,kFAAkF;IAClF,eAAe,CAAC,EAAE,cAAc,CAAA;IAChC;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;IACrC;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/engine/diff.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAEX,aAAa,EACb,QAAQ,EACR,UAAU,EAEV,YAAY,EACZ,cAAc,EACd,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAA;AACvE,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAqBnE;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,aAAa,EAAE,aAAa,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;AAE7F;;;;;;;;;;GAUG;AACH,wBAAsB,IAAI,CAAC,MAAM,EAAE;IAClC,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,aAAa,EAAE,cAAc,CAAA;IAC7B,kFAAkF;IAClF,eAAe,CAAC,EAAE,cAAc,CAAA;IAChC;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;IACrC;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACnB,GAAG,OAAO,CAAC,YAAY,CAAC,CAqCxB;AAqYD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,cAAc,EAAE,GAAG,UAAU,CAsBtE;AAED,iGAAiG;AACjG,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,aAAa,EAAE,CAE7D;AAED,0GAA0G;AAC1G,wBAAgB,cAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,GAAG,WAAW,GAAG,MAAM,EAAE,CAS1F"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { AcceptedIds, CollisionOverrides } from './decide.types';
|
|
2
2
|
import { Config } from '../../../config';
|
|
3
3
|
import { KeepNameTypesFrom } from '../../data-model/transaction';
|
|
4
|
+
import { IdentityMode } from '../../identity/transaction/write-identity.types';
|
|
5
|
+
import { MatchKey } from '../scenario';
|
|
4
6
|
import { AnyRefOrRecord } from '@dialecte/core';
|
|
5
7
|
import type * as Core from '@dialecte/core';
|
|
6
8
|
/**
|
|
@@ -36,5 +38,9 @@ export declare function reconcile(tx: Core.Transaction<Config>, params: {
|
|
|
36
38
|
overrides?: CollisionOverrides;
|
|
37
39
|
/** Type-dedup name authority for added subtrees, forwarded to `importTypes`. */
|
|
38
40
|
keepNameTypesFrom?: KeepNameTypesFrom;
|
|
41
|
+
/** How instance elements match source. `templateUuid` (default) or `uuid` (fork). */
|
|
42
|
+
matchKey?: MatchKey;
|
|
43
|
+
/** Identity write mode for added elements. `stamp-template` (default) or `keep` (fork). */
|
|
44
|
+
identityMode?: IdentityMode;
|
|
39
45
|
}): Promise<void>;
|
|
40
46
|
//# sourceMappingURL=reconcile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconcile.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/engine/reconcile.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAA;AACpF,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,gBAAgB,CAAA;AAEnE;;;;;;;;;;;;;;;;GAgBG;AAEH,wBAAsB,SAAS,CAC9B,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE;IACP,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,aAAa,EAAE,cAAc,CAAA;IAC7B,eAAe,EAAE,cAAc,CAAA;IAC/B;;;OAGG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAA;IACtB;;;OAGG;IACH,SAAS,CAAC,EAAE,kBAAkB,CAAA;IAC9B,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"reconcile.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/engine/reconcile.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAA;AACpF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gEAAgE,CAAA;AAClG,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAA;AACvE,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,gBAAgB,CAAA;AAEnE;;;;;;;;;;;;;;;;GAgBG;AAEH,wBAAsB,SAAS,CAC9B,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE;IACP,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,aAAa,EAAE,cAAc,CAAA;IAC7B,eAAe,EAAE,cAAc,CAAA;IAC/B;;;OAGG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAA;IACtB;;;OAGG;IACH,SAAS,CAAC,EAAE,kBAAkB,CAAA;IAC9B,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;IACrC,qFAAqF;IACrF,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,2FAA2F;IAC3F,YAAY,CAAC,EAAE,YAAY,CAAA;CAC3B,GACC,OAAO,CAAC,IAAI,CAAC,CA4Cf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asd.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/extract/transaction/asd.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"asd.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/extract/transaction/asd.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C,wBAAsB,GAAG,CACxB,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE;IACP,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,cAAc,EAAE,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;IACtC,IAAI,EAAE,GAAG,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAA;IACrD,GAAG,EAAE,GAAG,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAA;IAChD,aAAa,CAAC,EAAE,GAAG,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC,eAAe,CAAC,CAAA;CACtE,GACC,OAAO,CAAC,IAAI,CAAC,CAkCf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fsd.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/extract/transaction/fsd.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fsd.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/extract/transaction/fsd.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C,wBAAsB,GAAG,CACxB,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE;IACP,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,WAAW,EAAE,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;IACzD,IAAI,EAAE,GAAG,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAA;IACrD,GAAG,EAAE,GAAG,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAA;IAChD,aAAa,CAAC,EAAE,GAAG,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC,eAAe,CAAC,CAAA;CACtE,GACC,OAAO,CAAC,IAAI,CAAC,CA6Cf"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Scl, Config } from '../../../config';
|
|
2
|
+
import { MatchKey } from '../scenario';
|
|
2
3
|
import { AnyTrackedRecord, AnyTreeRecord } from '@dialecte/core';
|
|
3
4
|
import type * as Core from '@dialecte/core';
|
|
4
5
|
/** A reader with the untyped `.any` facade — either a Query or a Transaction. */
|
|
@@ -12,6 +13,8 @@ export declare function findInstanceUnder(reader: Reader, params: {
|
|
|
12
13
|
targetParent: Scl.Ref<Scl.ElementsOf>;
|
|
13
14
|
tagName: Scl.ElementsOf;
|
|
14
15
|
sourceUuid: string | undefined;
|
|
16
|
+
/** Attribute matched against `sourceUuid`. Default `templateUuid`; `uuid` for fork. */
|
|
17
|
+
matchKey?: MatchKey;
|
|
15
18
|
}): Promise<AnyTreeRecord | undefined>;
|
|
16
19
|
/**
|
|
17
20
|
* ALL records of `tagName` under `targetParent` whose `templateUuid` equals the
|
|
@@ -25,6 +28,8 @@ export declare function findInstancesUnder(reader: Reader, params: {
|
|
|
25
28
|
targetParent: Scl.Ref<Scl.ElementsOf>;
|
|
26
29
|
tagName: Scl.ElementsOf;
|
|
27
30
|
sourceUuid: string | undefined;
|
|
31
|
+
/** Attribute matched against `sourceUuid`. Default `templateUuid`; `uuid` for fork. */
|
|
32
|
+
matchKey?: MatchKey;
|
|
28
33
|
}): Promise<AnyTreeRecord[]>;
|
|
29
34
|
/**
|
|
30
35
|
* The first record of `tagName` anywhere whose `templateUuid` equals the source
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-instance.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/instance/find-instance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAErE,iFAAiF;AACjF,KAAK,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;AAE3D;;;;GAIG;AACH,wBAAsB,iBAAiB,CACtC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE;IACP,YAAY,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACrC,OAAO,EAAE,GAAG,CAAC,UAAU,CAAA;IACvB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"find-instance.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/lifecycle/instance/find-instance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAA;AACvE,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAErE,iFAAiF;AACjF,KAAK,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;AAE3D;;;;GAIG;AACH,wBAAsB,iBAAiB,CACtC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE;IACP,YAAY,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACrC,OAAO,EAAE,GAAG,CAAC,UAAU,CAAA;IACvB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,uFAAuF;IACvF,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACnB,GACC,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAGpC;AAED;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CACvC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE;IACP,YAAY,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACrC,OAAO,EAAE,GAAG,CAAC,UAAU,CAAA;IACvB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,uFAAuF;IACvF,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACnB,GACC,OAAO,CAAC,aAAa,EAAE,CAAC,CAQ1B;AAyBD;;;;;GAKG;AACH,wBAAsB,0BAA0B,CAC/C,MAAM,EAAE,MAAM,EACd,MAAM,EAAE;IAAE,OAAO,EAAE,GAAG,CAAC,UAAU,CAAC;IAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,GACtF,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAGvC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,2BAA2B,CAChD,MAAM,EAAE,MAAM,EACd,MAAM,EAAE;IAAE,OAAO,EAAE,GAAG,CAAC,UAAU,CAAC;IAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,GACtF,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAsB7B"}
|
|
@@ -9,8 +9,8 @@ import type * as Core from '@dialecte/core';
|
|
|
9
9
|
* (`layers/application`), then stamps instance lineage (`identity.writeIdentity` in
|
|
10
10
|
* `stamp-template` mode) on every cloned element.
|
|
11
11
|
*
|
|
12
|
-
* The clone's uuid references are
|
|
13
|
-
* instantiation provenance link (`ApplicationSclRef` -> `SclFileReference` back to
|
|
12
|
+
* The clone's uuid references are repointed by `reference.applyUuidRemap` over the
|
|
13
|
+
* combined mappings. The instantiation provenance link (`ApplicationSclRef` -> `SclFileReference` back to
|
|
14
14
|
* the ASD) is written on the cloned root by `reference.writeProvenance`; SET policy
|
|
15
15
|
* (naming, assign-to-application) is applied by consumer hooks, not here.
|
|
16
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asd.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/instantiate/transaction/asd.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,KAAK,EAAE,MAAM,EAAO,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"asd.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/instantiate/transaction/asd.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,KAAK,EAAE,MAAM,EAAO,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,CAkF7F"}
|
|
@@ -14,8 +14,8 @@ import type * as Core from '@dialecte/core';
|
|
|
14
14
|
* subfunction) — the inverse of the `SubFunction -> Function` promotion applied
|
|
15
15
|
* on extraction.
|
|
16
16
|
*
|
|
17
|
-
* The clone's uuid references are
|
|
18
|
-
* instantiation provenance link (`FunctionSclRef` -> `SclFileReference` back to
|
|
17
|
+
* The clone's uuid references are repointed by `reference.applyUuidRemap` over the
|
|
18
|
+
* combined mappings. The instantiation provenance link (`FunctionSclRef` -> `SclFileReference` back to
|
|
19
19
|
* the FSD) is written on the cloned root by `reference.writeProvenance`; SET
|
|
20
20
|
* policy (naming, application assignment) is applied by consumer hooks, not here.
|
|
21
21
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fsd.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/instantiate/transaction/fsd.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,KAAK,EAAE,MAAM,EAAO,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"fsd.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/instantiate/transaction/fsd.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,KAAK,EAAE,MAAM,EAAO,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,CA0E7F"}
|
|
@@ -9,7 +9,8 @@ import type * as Core from '@dialecte/core';
|
|
|
9
9
|
* the target structure. Direction-agnostic — returns the full `CloneMapping[]` so
|
|
10
10
|
* the calling operation applies identity policy (extract strips, instantiate stamps).
|
|
11
11
|
*
|
|
12
|
-
* UUID remapping is
|
|
12
|
+
* UUID remapping is the caller's responsibility via `reference.applyUuidRemap` over the
|
|
13
|
+
* returned mappings.
|
|
13
14
|
*/
|
|
14
15
|
export declare function cloneApplicationContent(tx: Core.Transaction<Config>, params: {
|
|
15
16
|
sourceQuery: Core.Query<Config>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone-application.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/layers/application/clone-application.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAA;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAC5F,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C
|
|
1
|
+
{"version":3,"file":"clone-application.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/layers/application/clone-application.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAA;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAC5F,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C;;;;;;;;GAQG;AACH,wBAAsB,uBAAuB,CAC5C,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE;IACP,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,cAAc,EAAE,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;IACtC,SAAS,EAAE,eAAe,CAAA;IAC1B,+FAA+F;IAC/F,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,EAAE,CAAA;IAC1B,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;CACrC,GACC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC,CA0F7B"}
|
|
@@ -6,7 +6,8 @@ import type * as Core from '@dialecte/core';
|
|
|
6
6
|
/**
|
|
7
7
|
* Clones a Function/SubFunction tree into the target, promotes SubFunction to Function,
|
|
8
8
|
* and extracts the data model.
|
|
9
|
-
* UUID remapping is
|
|
9
|
+
* UUID remapping is the caller's responsibility via `reference.applyUuidRemap` over the
|
|
10
|
+
* returned mappings (see the recipe that orchestrates this and the category clones).
|
|
10
11
|
*
|
|
11
12
|
* @param stripRootAttributes - Attribute names to remove from the root element only (shallow).
|
|
12
13
|
* FSD extraction strips `templateUuid` so the clone becomes a fresh template.
|
|
@@ -23,7 +24,8 @@ export declare function cloneFunction(tx: Core.Transaction<Config>, params: {
|
|
|
23
24
|
/**
|
|
24
25
|
* Clones FunctionCategory trees that reference the given function (or its SubFunctions).
|
|
25
26
|
* Each category is placed at its source-side structural level in the TEMPLATE structure.
|
|
26
|
-
* UUID remapping is
|
|
27
|
+
* UUID remapping (FunctionCatRef -> the cloned Function) is the caller's responsibility via
|
|
28
|
+
* `reference.applyUuidRemap` over the combined function + category mappings.
|
|
27
29
|
*/
|
|
28
30
|
export declare function cloneFunctionCategories(tx: Core.Transaction<Config>, params: {
|
|
29
31
|
sourceQuery: Core.Query<Config>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone-function.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/layers/function/clone-function.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAA;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAE5F,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAI/C
|
|
1
|
+
{"version":3,"file":"clone-function.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/layers/function/clone-function.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAA;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAE5F,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAI/C;;;;;;;;;GASG;AACH,wBAAsB,aAAa,CAClC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE;IACP,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,WAAW,EAAE,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;IACzD,eAAe,EAAE,GAAG,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,cAAc,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IACjF,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,EAAE,CAAA;IAC1B,mBAAmB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACvC,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;CACrC,GACC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC,CA6B7B;AAED;;;;;GAKG;AACH,wBAAsB,uBAAuB,CAC5C,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE;IACP,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,WAAW,EAAE,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;IACzD,SAAS,EAAE,eAAe,CAAA;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC7B,GACC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC,CAqC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-fsd.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/report/query/report-fsd.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"report-fsd.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/report/query/report-fsd.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAA;AACtF,OAAO,KAAK,EAAE,UAAU,EAAkB,MAAM,kDAAkD,CAAA;AAClG,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;GAWG;AACH,wBAAsB,SAAS,CAC9B,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE;IACP,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,WAAW,EAAE,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IAChC,YAAY,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACrC,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC5B,GACC,OAAO,CAAC,UAAU,CAAC,CAgDrB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Config, Scl } from '../../../../config';
|
|
2
2
|
import { InstanceDiff } from '../../engine/diff.types';
|
|
3
|
+
import { MatchKey } from '../../scenario';
|
|
3
4
|
import { AnyRefOrRecord } from '@dialecte/core';
|
|
4
5
|
import type * as Core from '@dialecte/core';
|
|
5
6
|
/**
|
|
@@ -19,5 +20,7 @@ export declare function reportFunction(query: Core.Query<Config>, params: {
|
|
|
19
20
|
instance: AnyRefOrRecord | undefined;
|
|
20
21
|
/** INSTANTIATE: force satellite reference children to `added` (new per-instance refs). */
|
|
21
22
|
refsAlwaysAdded?: boolean;
|
|
23
|
+
/** How the instance matches source. `templateUuid` (default) or `uuid` (fork). */
|
|
24
|
+
matchKey?: MatchKey;
|
|
22
25
|
}): Promise<InstanceDiff>;
|
|
23
26
|
//# sourceMappingURL=report-function.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-function.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/report/query/report-function.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kDAAkD,CAAA;AACpF,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;;;;;;;;GAUG;AACH,wBAAsB,cAAc,CACnC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE;IACP,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,WAAW,EAAE,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IAChC,QAAQ,EAAE,cAAc,GAAG,SAAS,CAAA;IACpC,0FAA0F;IAC1F,eAAe,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"report-function.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/report/query/report-function.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kDAAkD,CAAA;AACpF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAA;AACvE,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;;;;;;;;GAUG;AACH,wBAAsB,cAAc,CACnC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzB,MAAM,EAAE;IACP,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,WAAW,EAAE,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IAChC,QAAQ,EAAE,cAAc,GAAG,SAAS,CAAA;IACpC,0FAA0F;IAC1F,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACnB,GACC,OAAO,CAAC,YAAY,CAAC,CA+BvB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LifecycleScenario } from './contract.types';
|
|
2
|
+
import { IdentityMode } from '../identity/transaction/write-identity.types';
|
|
3
|
+
/**
|
|
4
|
+
* How an instance element is matched to a source element during diff/reconcile:
|
|
5
|
+
* - `templateUuid` — instance carries `templateUuid = source.uuid` (instantiate/template);
|
|
6
|
+
* - `uuid` — source and target are two revisions of the SAME file, sharing `uuid` (fork).
|
|
7
|
+
*/
|
|
8
|
+
export type MatchKey = 'uuid' | 'templateUuid';
|
|
9
|
+
/**
|
|
10
|
+
* The match key a scenario reconciles by. `fork` matches by `uuid` (same-file
|
|
11
|
+
* revision); every other scenario matches an instance by its `templateUuid`
|
|
12
|
+
* lineage. Derived once at the verb boundary so the engine stays scenario-agnostic.
|
|
13
|
+
*/
|
|
14
|
+
export declare function matchKeyForScenario(scenario: LifecycleScenario | undefined): MatchKey;
|
|
15
|
+
/**
|
|
16
|
+
* The identity write mode a scenario applies to added/reconciled elements. `fork`
|
|
17
|
+
* KEEPS identity (same-file revision — no re-stamp, no provenance); every other
|
|
18
|
+
* scenario stamps template lineage onto a fresh instance.
|
|
19
|
+
*/
|
|
20
|
+
export declare function identityModeForScenario(scenario: LifecycleScenario | undefined): IdentityMode;
|
|
21
|
+
//# sourceMappingURL=scenario.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scenario.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/extensions/lifecycle/scenario.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gEAAgE,CAAA;AAElG;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,cAAc,CAAA;AAE9C;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,SAAS,GAAG,QAAQ,CAErF;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,SAAS,GAAG,YAAY,CAE7F"}
|
|
@@ -19,7 +19,8 @@ import type * as Core from '@dialecte/core';
|
|
|
19
19
|
* `deep` is a faithful subtree copy: it does **not** follow forward uuid references.
|
|
20
20
|
* Reference rewiring is the caller's responsibility (recipes place same-domain
|
|
21
21
|
* satellites by ancestry; cross-domain/lineage rewiring is plan-driven). Uuid
|
|
22
|
-
* references inside the clone are
|
|
22
|
+
* references inside the clone are repointed by the caller via `reference.applyUuidRemap`
|
|
23
|
+
* over the returned `recordMappings`.
|
|
23
24
|
*/
|
|
24
25
|
export declare function deep(tx: Core.Transaction<Config>, params: ImportDeepParams): Promise<ImportDeepResult>;
|
|
25
26
|
//# sourceMappingURL=deep.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deep.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/transplant/transaction/deep.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACtE,OAAO,KAAK,EAAO,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C
|
|
1
|
+
{"version":3,"file":"deep.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/transplant/transaction/deep.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACtE,OAAO,KAAK,EAAO,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,IAAI,CACzB,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE,gBAAgB,GACtB,OAAO,CAAC,gBAAgB,CAAC,CAsD3B"}
|
package/dist/v2019C1/extensions/lifecycle/transplant/transaction/primitives/clone-referenced.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare function findMissingReferencedRecords<Ref extends RefTagName, Tar
|
|
|
29
29
|
* values (derived from the UUID_REFERENCE_PAIRS constant), skips records
|
|
30
30
|
* already present in the target, clones each missing one under the parent
|
|
31
31
|
* returned by `resolveTargetParent` (mirroring the source hierarchy).
|
|
32
|
-
* UUID remapping is
|
|
32
|
+
* UUID remapping is the caller's responsibility via `reference.applyUuidRemap` over the returned mappings.
|
|
33
33
|
*/
|
|
34
34
|
export declare function cloneReferencedRecords<Ref extends RefTagName, Target extends TargetOf<Ref>>(tx: Core.Transaction<Config>, params: {
|
|
35
35
|
sourceQuery: Core.Query<Config>;
|
|
@@ -49,7 +49,7 @@ export declare function cloneReferencedRecords<Ref extends RefTagName, Target ex
|
|
|
49
49
|
* not flattened to `Substation`.
|
|
50
50
|
*
|
|
51
51
|
* Targets already present in the target tx are skipped (dedup via findMissingReferencedRecords).
|
|
52
|
-
* UUID remapping is
|
|
52
|
+
* UUID remapping is the caller's responsibility via `reference.applyUuidRemap` over the returned mappings.
|
|
53
53
|
*/
|
|
54
54
|
export declare function cloneAllReferencedTargets(tx: Core.Transaction<Config>, params: {
|
|
55
55
|
sourceQuery: Core.Query<Config>;
|
|
@@ -4,7 +4,7 @@ import { OmitEntry } from '@dialecte/core';
|
|
|
4
4
|
import type * as Core from '@dialecte/core';
|
|
5
5
|
/**
|
|
6
6
|
* Clone pipeline: getTree -> optional retag root tagName -> strip -> deepClone.
|
|
7
|
-
* UUID remapping is
|
|
7
|
+
* UUID remapping is the caller's responsibility via `reference.applyUuidRemap` over the returned mappings.
|
|
8
8
|
*
|
|
9
9
|
* By default strips `templateUuid` and `originUuid` from the entire tree.
|
|
10
10
|
* Pass `strip: false` to disable all stripping.
|
|
@@ -28,7 +28,7 @@ export declare function asd(tx: Core.Transaction<Config>, params: {
|
|
|
28
28
|
sourceQuery: Core.Query<Config>;
|
|
29
29
|
applicationRef: Scl.Ref<'Application'>;
|
|
30
30
|
targetParent: Scl.Ref<Scl.ElementsOf>;
|
|
31
|
-
/** `instantiate` forces a fresh instance; `
|
|
31
|
+
/** `instantiate` forces a fresh instance; `template` (default) reconciles. */
|
|
32
32
|
scenario?: LifecycleScenario;
|
|
33
33
|
report?: DiffReport;
|
|
34
34
|
decisions?: DecisionMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asd.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/update/transaction/asd.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAA;AACpF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAA;AACtF,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAA;AAC/F,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,GAAG,CACxB,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE;IACP,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,cAAc,EAAE,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;IACtC,YAAY,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACrC,
|
|
1
|
+
{"version":3,"file":"asd.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/update/transaction/asd.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAA;AACpF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAA;AACtF,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAA;AAC/F,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,GAAG,CACxB,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE;IACP,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,cAAc,EAAE,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;IACtC,YAAY,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACrC,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAC5B,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,SAAS,CAAC,EAAE,WAAW,CAAA;IACvB,iFAAiF;IACjF,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;CACrC,GACC,OAAO,CAAC;IACV,YAAY,EAAE,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAA;IACtC,SAAS,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,EAAE,CAAA;CAC3D,CAAC,CA6GD"}
|
|
@@ -21,7 +21,7 @@ export declare function fsd(tx: Core.Transaction<Config>, params: {
|
|
|
21
21
|
sourceQuery: Core.Query<Config>;
|
|
22
22
|
functionRef: Scl.Ref<'Function'>;
|
|
23
23
|
targetParent: Scl.Ref<Scl.ElementsOf>;
|
|
24
|
-
/** `instantiate` forces a fresh instance; `
|
|
24
|
+
/** `instantiate` forces a fresh instance; `template` (default) reconciles. */
|
|
25
25
|
scenario?: LifecycleScenario;
|
|
26
26
|
/** Multi-instance gate: partitioned per instance by `instanceScopeId`. */
|
|
27
27
|
report?: DiffReport;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fsd.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/update/transaction/fsd.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fsd.d.ts","sourceRoot":"","sources":["../../../../../../src/v2019C1/extensions/lifecycle/update/transaction/fsd.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAA;AACpF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAA;AAKtF,OAAO,KAAK,EAEX,WAAW,EACX,UAAU,EACV,MAAM,kDAAkD,CAAA;AACzD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;;GAaG;AACH,wBAAsB,GAAG,CACxB,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE;IACP,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,WAAW,EAAE,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IAChC,YAAY,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACrC,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAC5B,0EAA0E;IAC1E,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,SAAS,CAAC,EAAE,WAAW,CAAA;IACvB,iFAAiF;IACjF,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;CACrC,GACC,OAAO,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAsE3D"}
|
|
@@ -4,7 +4,7 @@ import type * as Core from '@dialecte/core';
|
|
|
4
4
|
* Mechanically rewrite every type-id reference attribute (`lnType`, `DO.type`,
|
|
5
5
|
* `SDO.type`, `DA.type`, `BDA.type`) in `records` whose current value appears in
|
|
6
6
|
* `idRemap`. Registry-driven via {@link TYPE_ID_REF_ATTRIBUTES} (no hardcoded
|
|
7
|
-
* tag list). Counterpart of the uuid-ref remap
|
|
7
|
+
* tag list). Counterpart of {@link applyUuidRemap} (the uuid-ref remap), but for
|
|
8
8
|
* the id-string type-reference system.
|
|
9
9
|
*
|
|
10
10
|
* Idempotent: an attribute whose value is not a key of `idRemap` (or maps to
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Scl, Config } from '../../../config';
|
|
2
|
+
import type * as Core from '@dialecte/core';
|
|
3
|
+
/**
|
|
4
|
+
* Repoint the uuid references of cloned elements onto the clone's fresh
|
|
5
|
+
* identities and recompute their path attributes. Counterpart of
|
|
6
|
+
* {@link applyTypeIdRemap} for the uuid reference system (`UUID_REFERENCE_PAIRS`).
|
|
7
|
+
*
|
|
8
|
+
* Caller-owned, single pass: given the complete `mappings` of an operation, it
|
|
9
|
+
* builds the source-uuid -> target-uuid map once and rewrites every cloned
|
|
10
|
+
* ref-holder. A ref whose target is part of the mappings is repointed; a ref
|
|
11
|
+
* pointing outside them keeps its source uuid. Run it once per operation, with
|
|
12
|
+
* ALL of that operation's clone mappings, BEFORE any pass that reads cloned ref
|
|
13
|
+
* uuids (orphan cleanup, identity restore).
|
|
14
|
+
*
|
|
15
|
+
* Idempotent: a ref already pointing at a target uuid (not a source uuid) is
|
|
16
|
+
* left untouched.
|
|
17
|
+
*/
|
|
18
|
+
export declare function applyUuidRemap(tx: Core.Transaction<Config>, params: {
|
|
19
|
+
mappings: readonly Scl.CloneMapping[];
|
|
20
|
+
}): Promise<void>;
|
|
21
|
+
//# sourceMappingURL=apply-uuid-remap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply-uuid-remap.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/reference/transaction/apply-uuid-remap.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,cAAc,CACnC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE;IAAE,QAAQ,EAAE,SAAS,GAAG,CAAC,YAAY,EAAE,CAAA;CAAE,GAC/C,OAAO,CAAC,IAAI,CAAC,CAsDf"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { applyTypeIdRemap } from './apply-type-id-remap';
|
|
2
|
+
export { applyUuidRemap } from './apply-uuid-remap';
|
|
2
3
|
export { writeProvenance } from './write-provenance';
|
|
3
4
|
export type { ProvenanceFileType, WriteProvenanceParams } from './write-provenance.types';
|
|
4
5
|
//# 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,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,YAAY,EAAE,kBAAkB,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,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { DEFAULT_IGNORED_ATTRIBUTES } from './query/element-signature.constants';
|
|
2
|
-
export type { ElementSignatureParams } from './query/element-signature.types';
|
|
2
|
+
export type { ElementSignatureParams, SignatureCache } from './query/element-signature.types';
|
|
3
3
|
//# sourceMappingURL=public.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/extensions/signature/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAA;AAChF,YAAY,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAA"}
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../src/v2019C1/extensions/signature/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAA;AAChF,YAAY,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { Scl, Config } from '../../../config';
|
|
2
2
|
import type * as Core from '@dialecte/core';
|
|
3
|
+
/** `${tagName}:${id}` — the key of a signature cache entry. */
|
|
4
|
+
type TagNameId = string;
|
|
5
|
+
/** Canonical structural signature string of an element subtree. */
|
|
6
|
+
type Signature = string;
|
|
7
|
+
/** Cache of computed element signatures, keyed by `tagName:id`. */
|
|
8
|
+
export type SignatureCache = Map<TagNameId, Signature>;
|
|
3
9
|
export type ElementSignatureParams = {
|
|
4
10
|
ref: Scl.Ref<Scl.ElementsOf>;
|
|
5
11
|
/**
|
|
@@ -11,13 +17,20 @@ export type ElementSignatureParams = {
|
|
|
11
17
|
resolveReferences?: boolean;
|
|
12
18
|
/** Attribute names excluded from the signature. Default: `id`, `uuid`. */
|
|
13
19
|
ignoreAttributes?: readonly string[];
|
|
20
|
+
/**
|
|
21
|
+
* Shared signature cache reused across calls. Pass the same map to every
|
|
22
|
+
* `elementSignature` over ONE query/document so a descendant referenced by many
|
|
23
|
+
* top-level elements is computed once, not per caller. Never share across
|
|
24
|
+
* different documents — ids are only unique within one.
|
|
25
|
+
*/
|
|
26
|
+
signatureCache?: SignatureCache;
|
|
14
27
|
};
|
|
15
28
|
/** Internal recursion state for {@link elementSignature}. */
|
|
16
29
|
export type ElementSignatureContext = {
|
|
17
30
|
query: Core.Query<Config>;
|
|
18
31
|
resolveReferences: boolean;
|
|
19
32
|
ignore: ReadonlySet<string>;
|
|
20
|
-
|
|
33
|
+
signatureCache: SignatureCache;
|
|
21
34
|
seen: Set<string>;
|
|
22
35
|
};
|
|
23
36
|
/** Minimal view of a definition attribute's schema metadata used by the signature. */
|
|
@@ -25,4 +38,5 @@ export type AttributeSchemaDetail = {
|
|
|
25
38
|
/** XSD default value — an attribute written with this value is equivalent to being absent. */
|
|
26
39
|
default?: string;
|
|
27
40
|
};
|
|
41
|
+
export {};
|
|
28
42
|
//# sourceMappingURL=element-signature.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element-signature.types.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/signature/query/element-signature.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C,MAAM,MAAM,sBAAsB,GAAG;IACpC,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IAC5B;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,0EAA0E;IAC1E,gBAAgB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"element-signature.types.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/signature/query/element-signature.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C,+DAA+D;AAC/D,KAAK,SAAS,GAAG,MAAM,CAAA;AACvB,mEAAmE;AACnE,KAAK,SAAS,GAAG,MAAM,CAAA;AAEvB,mEAAmE;AACnE,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;AAEtD,MAAM,MAAM,sBAAsB,GAAG;IACpC,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IAC5B;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,0EAA0E;IAC1E,gBAAgB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACpC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,cAAc,CAAA;CAC/B,CAAA;AAED,6DAA6D;AAC7D,MAAM,MAAM,uBAAuB,GAAG;IACrC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IACzB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC3B,cAAc,EAAE,cAAc,CAAA;IAC9B,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CACjB,CAAA;AAED,sFAAsF;AACtF,MAAM,MAAM,qBAAqB,GAAG;IACnC,8FAA8F;IAC9F,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/signature/query/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,YAAY,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/signature/query/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,YAAY,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2019C1/hooks/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2019C1/hooks/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAKtC,eAAO,MAAM,KAAK,EAAE,GAAG,CAAC,gBAMvB,CAAA;AAGD,OAAO,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAA"}
|
package/dist/v2019C1/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, k as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E, w as D, x as O, y as k } from "../hooks-
|
|
1
|
+
import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, k as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E, w as D, x as O, y as k } from "../hooks-By65uB-0.js";
|
|
2
2
|
import { Project as A } from "@dialecte/core";
|
|
3
3
|
//#region src/v2019C1/extensions/lifecycle/validate/template-uuid-check.info.ts
|
|
4
4
|
var j = {
|