@g1cloud/entity-modeler-next 5.0.0-beta.27 → 5.0.0-beta.30
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/adapter/healBackfill.d.ts +21 -3
- package/dist/agent/resolver.d.ts +7 -0
- package/dist/entity-modeler.js +8154 -8127
- package/dist/entity-modeler.umd.cjs +28 -28
- package/dist/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/adapter/propagationBackfill.d.ts +0 -32
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import { ModelId } from '../core/types';
|
|
2
2
|
import { OpShape } from '../command/op';
|
|
3
3
|
import { PDiagram, PDiagramV2 } from './persisted';
|
|
4
|
+
/**
|
|
5
|
+
* 로드 경로가 파생하는 **속성 스칼라 필드** 목록 — 이 플래너가 raw↔healed diff로 정렬하는 축.
|
|
6
|
+
*
|
|
7
|
+
* 전체 필드를 무조건 diff하지 않는 이유: 로드 경로가 의도적으로 바꾸지 않는 필드까지 잡아
|
|
8
|
+
* 오탐(JSON 왕복의 `null`↔부재 등)을 낼 수 있다. **선언된 목록**이 곧 "무엇이 파생값인가"의
|
|
9
|
+
* 레지스트리이며, 새 파생 축 추가 = 여기에 이름 한 줄(라우트·플래너 신설 불요).
|
|
10
|
+
*
|
|
11
|
+
* - `notNull` : FK는 부모 end 다중성 파생(`deriveFkNotNull`, CC-4). 비-FK 속성은 파생 대상이
|
|
12
|
+
* 아니지만 파생기가 FK만 건드리므로 diff도 자연히 FK에서만 발생한다.
|
|
13
|
+
*/
|
|
14
|
+
declare const DERIVED_ATTRIBUTE_FIELDS: readonly ["notNull"];
|
|
4
15
|
export interface HealBackfillPlan {
|
|
5
|
-
/** backfill op 배치 (비면
|
|
16
|
+
/** backfill op 배치 (비면 정렬 대상 없음 — 문서 skip). */
|
|
6
17
|
ops: OpShape[];
|
|
7
18
|
/** raw doc의 컨테이너 rev 스냅샷 — `buildAgentBatch(diagramId, revs, ops)` CAS base. */
|
|
8
19
|
revs: Record<ModelId, number>;
|
|
@@ -11,10 +22,17 @@ export interface HealBackfillPlan {
|
|
|
11
22
|
navAdds: number;
|
|
12
23
|
navRefPatches: number;
|
|
13
24
|
identifyingPatches: number;
|
|
25
|
+
/** 파생 스칼라 필드 정렬 건수(`DERIVED_ATTRIBUTE_FIELDS`) — 필드별 분해. */
|
|
26
|
+
attributeFieldPatches: number;
|
|
27
|
+
attributeFieldsByName: Partial<Record<(typeof DERIVED_ATTRIBUTE_FIELDS)[number], number>>;
|
|
14
28
|
};
|
|
15
29
|
}
|
|
16
30
|
/**
|
|
17
|
-
* v2 doc 하나에 대한
|
|
18
|
-
*
|
|
31
|
+
* v2 doc 하나에 대한 파생값 backfill 계획을 산출한다.
|
|
32
|
+
*
|
|
33
|
+
* v1 doc은 빈 계획 — 스윕 라우트가 v2 컬렉션 대상이고, v1은 마이그레이션을 거쳐 v2가 된 뒤
|
|
34
|
+
* 대상이 된다. 마이그레이션 산출은 hydration이 이미 현재 규칙으로 파생하므로(nav 실체화·
|
|
35
|
+
* identifying·notNull) 새로 마이그레이션된 문서는 정렬된 상태로 태어난다.
|
|
19
36
|
*/
|
|
20
37
|
export declare function planHealBackfillOps(doc: PDiagram | PDiagramV2): HealBackfillPlan;
|
|
38
|
+
export {};
|
package/dist/agent/resolver.d.ts
CHANGED
|
@@ -43,6 +43,13 @@ export type ResolveError = {
|
|
|
43
43
|
entity: Handle;
|
|
44
44
|
handle: Handle;
|
|
45
45
|
}
|
|
46
|
+
/** 물리 컬럼을 만들면서 dataType 미지정 — 빈 타입 컬럼은 DDL에서 드롭된다(발명 대신 요구). */
|
|
47
|
+
| {
|
|
48
|
+
code: 'datatype-required';
|
|
49
|
+
opIndex: number;
|
|
50
|
+
entity: Handle;
|
|
51
|
+
handle: Handle;
|
|
52
|
+
}
|
|
46
53
|
/** index.add 컬럼 핸들이 엔티티 내 dbAttr와 0개 매칭. */
|
|
47
54
|
| {
|
|
48
55
|
code: 'column-not-found';
|