@operato/ops-contract 0.9.43 → 0.9.45
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/README.md +33 -0
- package/dist/actuation.d.ts +1 -0
- package/dist/capacity.d.ts +0 -7
- package/dist/capacity.js +6 -123
- package/dist/contract.d.ts +25 -4
- package/dist/contract.js +33 -0
- package/dist/dock-facts.d.ts +94 -0
- package/dist/dock-facts.js +167 -0
- package/dist/ems-profile.d.ts +1 -2
- package/dist/ems-profile.js +19 -8
- package/dist/epcis.d.ts +25 -7
- package/dist/epcis.js +31 -3
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/material-move.d.ts +124 -0
- package/dist/material-move.js +229 -0
- package/dist/mes-profile.js +1 -1
- package/dist/oee.js +8 -4
- package/dist/operational-attention.d.ts +27 -0
- package/dist/operational-attention.js +95 -15
- package/dist/operational-ingest.js +2 -3
- package/dist/operations-capability.d.ts +1 -8
- package/dist/operations-capability.js +0 -99
- package/dist/order-fold.d.ts +0 -30
- package/dist/order-fold.js +0 -75
- package/dist/records-of-event.d.ts +74 -0
- package/dist/records-of-event.js +129 -0
- package/dist/yms-profile.d.ts +10 -2
- package/dist/yms-profile.js +14 -5
- package/dist-cjs/index.cjs +538 -207
- package/package.json +2 -2
package/dist/ems-profile.js
CHANGED
|
@@ -13,8 +13,7 @@ export const EMS_LOCATION_TYPES = ['incoming', 'feeder', 'submeter-zone'];
|
|
|
13
13
|
* `bidirectional` 은 **그 계량기가 순 유입을 재는 것**이다. 발전을 부하에서 빼는 것이 아니다 — 그
|
|
14
14
|
* 계량기가 읽은 값이 그 접속점의 사실이고, 요금이 그 값에 매겨진다.
|
|
15
15
|
*
|
|
16
|
-
* 표준 근거: 계량기의 적산 레지스터가 유입·유출로 갈려
|
|
17
|
-
* 따로 둔다(`EnergyInput`). 우리가 지은 낱말이 아니다.
|
|
16
|
+
* 표준 근거: 계량기의 적산 레지스터가 유입·유출로 갈려 있다(IEC 62053 계열). 우리가 지은 낱말이 아니다.
|
|
18
17
|
*/
|
|
19
18
|
export const METER_DIRECTION = ['import', 'export', 'bidirectional'];
|
|
20
19
|
/** 설비(능동) 타입 키 — 계량 지점과 에너지 자원. */
|
|
@@ -224,8 +223,9 @@ export const EMS_TYPES = [
|
|
|
224
223
|
level: 'Other',
|
|
225
224
|
label: 'twin.type.incoming',
|
|
226
225
|
/* 수전 지점 — 계약전력이 걸리는 자리이고, 요금의 근거가 되는 수요는 여기서 잰다.
|
|
227
|
-
ISO 50001
|
|
228
|
-
|
|
226
|
+
조직의 에너지 검토가 여기서 시작하지만, ISO 50001 은 이 경계에 **분류 이름을 주지 않는다** — 그래서
|
|
227
|
+
그 칸을 비운다(예전의 `EnergyInput` 은 표준의 낱말이 아니었다. 2026-11-19 내용 점검). */
|
|
228
|
+
standardClass: { iec61850: 'MMTR' },
|
|
229
229
|
identity: { scheme: 'kernel:id' },
|
|
230
230
|
capabilities: ['metered']
|
|
231
231
|
},
|
|
@@ -235,8 +235,17 @@ export const EMS_TYPES = [
|
|
|
235
235
|
/* 전기 계통의 구간은 **설비 계층의 단이 아니다** — 표준의 탈출구(`Other`)를 쓴다(아래 주석). */
|
|
236
236
|
level: 'Other',
|
|
237
237
|
label: 'twin.type.feeder',
|
|
238
|
-
/*
|
|
239
|
-
|
|
238
|
+
/*
|
|
239
|
+
* 분기 회로 — 부하 분해의 단위. 계약전력의 하위 배분이 여기서 정해진다.
|
|
240
|
+
*
|
|
241
|
+
* **두 칸 다 비운다**(2026-11-19 내용 점검). 예전 값은 둘 다 맞지 않았다:
|
|
242
|
+
* · `Feeder` 는 IEC 61850 논리 노드가 아니다. 그 표준에서 급전 구간은 SCL 의 `Bay`(설비 구성의 자리)이고,
|
|
243
|
+
* 이 칸이 담는 논리 노드(MMTR·MMXU·XCBR…)와 다른 층이다. 회로의 계량은 그 회로에 달린 계량기(`meter`)가 진다.
|
|
244
|
+
* · ISO 50001 의 「energy use」는 **용도**(환기·조명처럼 에너지를 어디에 쓰나)이지 회로가 아니다. 회로 하나에
|
|
245
|
+
* 여러 용도가 걸리고, 한 용도가 여러 회로에 걸친다 — 대응시키면 SEU 분석이 회로를 용도로 센다.
|
|
246
|
+
* 표준의 이름이 없는 것을 「없다」고 두는 것이 파일 머리의 규율이다.
|
|
247
|
+
*/
|
|
248
|
+
standardClass: {},
|
|
240
249
|
identity: { scheme: 'kernel:id' },
|
|
241
250
|
capabilities: ['metered']
|
|
242
251
|
},
|
|
@@ -262,7 +271,8 @@ export const EMS_TYPES = [
|
|
|
262
271
|
role: 'equipment',
|
|
263
272
|
label: 'twin.type.meter',
|
|
264
273
|
/* 계량기 — 측정 논리 노드(MMXU=측정단위, MMTR=적산). 자산으로도 하나다(ISO 55000). */
|
|
265
|
-
|
|
274
|
+
/* ISO 50001 칸은 비운다 — 계측 지점은 그 표준이 이름 붙인 분류가 아니다(파일 머리의 규율, 2026-11-19 내용 점검). */
|
|
275
|
+
standardClass: { iec61850: 'MMXU', iso55000: 'Asset' },
|
|
266
276
|
identity: { scheme: 'kernel:id' },
|
|
267
277
|
capabilities: ['metered', 'operable']
|
|
268
278
|
},
|
|
@@ -287,7 +297,8 @@ export const EMS_TYPES = [
|
|
|
287
297
|
role: 'equipment',
|
|
288
298
|
label: 'twin.type.pv-array',
|
|
289
299
|
/* 태양광 어레이 — IEC 61850-7-420(분산자원)의 `DPVA`. 발전과 계량은 다른 능력이다. */
|
|
290
|
-
|
|
300
|
+
/* ISO 50001 칸은 비운다 — 「재생 공급」은 그 표준의 분류 이름이 아니다(파일 머리의 규율, 2026-11-19 내용 점검). */
|
|
301
|
+
standardClass: { iec61850: 'DPVA', iso55000: 'Asset' },
|
|
291
302
|
identity: { scheme: 'kernel:id' },
|
|
292
303
|
capabilities: ['energyGenerating', 'metered', 'operable']
|
|
293
304
|
},
|
package/dist/epcis.d.ts
CHANGED
|
@@ -275,7 +275,7 @@ export interface SensorElement {
|
|
|
275
275
|
sensorReport: Record<string, unknown>[];
|
|
276
276
|
}
|
|
277
277
|
/** EPCIS 2.0 공통 헤더(모든 이벤트). action 은 여기 없음 — TransformationEvent 는 action 이 없다. */
|
|
278
|
-
interface EpcisHeader {
|
|
278
|
+
export interface EpcisHeader {
|
|
279
279
|
'@context': string;
|
|
280
280
|
type: EpcisEventType;
|
|
281
281
|
/**
|
|
@@ -326,8 +326,11 @@ interface EpcisHeader {
|
|
|
326
326
|
persistentDisposition?: PersistentDisposition;
|
|
327
327
|
/** 센서 관측 묶음(콜드체인 등). */
|
|
328
328
|
sensorElementList?: SensorElement[];
|
|
329
|
-
/**
|
|
330
|
-
|
|
329
|
+
/**
|
|
330
|
+
* 인증 상세를 가리키는 URL(규제 산업). 표준 JSON 스키마(2.0.1 `definitions.certificationInfo`)는
|
|
331
|
+
* **URI 하나 또는 URI 배열**을 받는다 — 문자열만 받으면 배열로 보낸 상대의 이벤트를 잘못 읽는다.
|
|
332
|
+
*/
|
|
333
|
+
certificationInfo?: string | string[];
|
|
331
334
|
}
|
|
332
335
|
/** action 을 갖는 이벤트(Object/Aggregation/Transaction). */
|
|
333
336
|
interface EpcisActionEvent extends EpcisHeader {
|
|
@@ -361,7 +364,13 @@ export interface EpcisTransformationEvent extends EpcisHeader {
|
|
|
361
364
|
transformationID?: string;
|
|
362
365
|
}
|
|
363
366
|
export type EpcisEvent = EpcisObjectEvent | EpcisAggregationEvent | EpcisTransactionEvent | EpcisTransformationEvent;
|
|
364
|
-
/**
|
|
367
|
+
/**
|
|
368
|
+
* SSCC (물류단위: 팔레트/화물/트레일러) — 결정적 카운터 기반.
|
|
369
|
+
*
|
|
370
|
+
* **전제: 회사 프리픽스가 7자리다.** 직렬 참조를 10자리로 채우므로 프리픽스(7) + 참조(10) = 17 이 되어야
|
|
371
|
+
* GS1 TDS 의 SSCC 합계와 맞는다. 다른 자리 수의 프리픽스를 넣으면 이 함수가 만든 URI 를
|
|
372
|
+
* `gs1KeyDigitViolation` 이 바로 거절한다(시험 `identifier-builders.test.ts` 가 그 경계를 잡는다).
|
|
373
|
+
*/
|
|
365
374
|
export declare function ssccUri(companyPrefix: string, serial: number): string;
|
|
366
375
|
/** 비직렬 수량용 SGTIN 패턴(epcClass) — 로트를 따지지 않는 품목 클래스. quantityList 에 사용. */
|
|
367
376
|
export declare function sgtinClass(companyPrefix: string, itemRef: string): string;
|
|
@@ -372,8 +381,12 @@ export declare function sgtinClass(companyPrefix: string, itemRef: string): stri
|
|
|
372
381
|
* 흩뿌리면 곧 방언이 된다. GS1 CBV 마스터데이터 이름공간(`urn:epcglobal:cbv:mda:`)의 정식 명칭을
|
|
373
382
|
* 확인하면 **이 상수만 바꾸면 되도록** 여기 모아 둔다.
|
|
374
383
|
*
|
|
375
|
-
*
|
|
376
|
-
*
|
|
384
|
+
* 두 이름은 CBV 2.0 에 있다(2026-11-19 확인): `itemExpirationDate` §9.2.3(로트 단위, Date),
|
|
385
|
+
* `lotNumber` §9.2.4(개체 단위, 1–20자 문자열). 접두 `cbvmda:` 는 EPCIS 2.0 JSON-LD 컨텍스트가
|
|
386
|
+
* `urn:epcglobal:cbv:mda:` 로 펼친다. (CBV §9.1.2.1 의 이름-값 쌍 표기는 `urn:epcglobal:cbv:mda#…` 로
|
|
387
|
+
* `#` 을 쓴다 — 두 문서의 표기가 다르다. 우리는 JSON-LD 바인딩을 따른다.)
|
|
388
|
+
*
|
|
389
|
+
* 받는 경로는 이름과 무관하게 동작하므로(받은 것을 잃지 않고 통과) 이 상수는 우리가 **생산할 때**만 쓰인다.
|
|
377
390
|
*/
|
|
378
391
|
export declare const ILMD_ATTR: {
|
|
379
392
|
/** 유통기한·만료(로트 단위). */
|
|
@@ -594,7 +607,7 @@ export interface EpcisHeaderOptions {
|
|
|
594
607
|
destinationList?: DestinationElement[];
|
|
595
608
|
persistentDisposition?: PersistentDisposition;
|
|
596
609
|
sensorElementList?: SensorElement[];
|
|
597
|
-
certificationInfo?: string;
|
|
610
|
+
certificationInfo?: string | string[];
|
|
598
611
|
}
|
|
599
612
|
export declare function objectEvent(p: {
|
|
600
613
|
eventTime: string;
|
|
@@ -644,6 +657,11 @@ export declare function transformationEvent(p: {
|
|
|
644
657
|
bizLocation?: string;
|
|
645
658
|
bizTransactionList?: BizTransactionElement[];
|
|
646
659
|
} & EpcisHeaderOptions): EpcisTransformationEvent;
|
|
660
|
+
/**
|
|
661
|
+
* 절대 시각 문자열인가 — 날짜·초까지, 끝에 `Z` 또는 `±hh:mm`. 이 패키지의 모든 시각 칸이 같은 잣대를 쓴다.
|
|
662
|
+
* 오프셋 없는 시각은 받지 않는다: 어느 시간대의 「01:00」인지 받는 쪽이 알 수 없다.
|
|
663
|
+
*/
|
|
664
|
+
export declare function isIsoDateTime(value: unknown): value is string;
|
|
647
665
|
/**
|
|
648
666
|
* 그 GS1 키의 자리 수가 맞나 — 어긋나면 왜인지 말한다.
|
|
649
667
|
*
|
package/dist/epcis.js
CHANGED
|
@@ -196,7 +196,13 @@ export function isEpcisEventType(eventType) {
|
|
|
196
196
|
return typeof eventType === 'string' && eventType.startsWith('epcis.');
|
|
197
197
|
}
|
|
198
198
|
// ── GS1 EPC URI 헬퍼 (표준) ────────────────────────────────────────────────
|
|
199
|
-
/**
|
|
199
|
+
/**
|
|
200
|
+
* SSCC (물류단위: 팔레트/화물/트레일러) — 결정적 카운터 기반.
|
|
201
|
+
*
|
|
202
|
+
* **전제: 회사 프리픽스가 7자리다.** 직렬 참조를 10자리로 채우므로 프리픽스(7) + 참조(10) = 17 이 되어야
|
|
203
|
+
* GS1 TDS 의 SSCC 합계와 맞는다. 다른 자리 수의 프리픽스를 넣으면 이 함수가 만든 URI 를
|
|
204
|
+
* `gs1KeyDigitViolation` 이 바로 거절한다(시험 `identifier-builders.test.ts` 가 그 경계를 잡는다).
|
|
205
|
+
*/
|
|
200
206
|
export function ssccUri(companyPrefix, serial) {
|
|
201
207
|
return `urn:epc:id:sscc:${companyPrefix}.${String(serial).padStart(10, '0')}`;
|
|
202
208
|
}
|
|
@@ -211,8 +217,12 @@ export function sgtinClass(companyPrefix, itemRef) {
|
|
|
211
217
|
* 흩뿌리면 곧 방언이 된다. GS1 CBV 마스터데이터 이름공간(`urn:epcglobal:cbv:mda:`)의 정식 명칭을
|
|
212
218
|
* 확인하면 **이 상수만 바꾸면 되도록** 여기 모아 둔다.
|
|
213
219
|
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
220
|
+
* 두 이름은 CBV 2.0 에 있다(2026-11-19 확인): `itemExpirationDate` §9.2.3(로트 단위, Date),
|
|
221
|
+
* `lotNumber` §9.2.4(개체 단위, 1–20자 문자열). 접두 `cbvmda:` 는 EPCIS 2.0 JSON-LD 컨텍스트가
|
|
222
|
+
* `urn:epcglobal:cbv:mda:` 로 펼친다. (CBV §9.1.2.1 의 이름-값 쌍 표기는 `urn:epcglobal:cbv:mda#…` 로
|
|
223
|
+
* `#` 을 쓴다 — 두 문서의 표기가 다르다. 우리는 JSON-LD 바인딩을 따른다.)
|
|
224
|
+
*
|
|
225
|
+
* 받는 경로는 이름과 무관하게 동작하므로(받은 것을 잃지 않고 통과) 이 상수는 우리가 **생산할 때**만 쓰인다.
|
|
216
226
|
*/
|
|
217
227
|
export const ILMD_ATTR = {
|
|
218
228
|
/** 유통기한·만료(로트 단위). */
|
|
@@ -721,6 +731,13 @@ export function transformationEvent(p) {
|
|
|
721
731
|
// EPCIS 2.0 이벤트의 필수 필드·형태를 검증. 위반 목록을 반환(빈 배열 = 유효).
|
|
722
732
|
// JSON Schema 파일 파생은 후속 — 이 함수가 제약의 SoT.
|
|
723
733
|
const ISO_RE = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})$/;
|
|
734
|
+
/**
|
|
735
|
+
* 절대 시각 문자열인가 — 날짜·초까지, 끝에 `Z` 또는 `±hh:mm`. 이 패키지의 모든 시각 칸이 같은 잣대를 쓴다.
|
|
736
|
+
* 오프셋 없는 시각은 받지 않는다: 어느 시간대의 「01:00」인지 받는 쪽이 알 수 없다.
|
|
737
|
+
*/
|
|
738
|
+
export function isIsoDateTime(value) {
|
|
739
|
+
return typeof value === 'string' && ISO_RE.test(value);
|
|
740
|
+
}
|
|
724
741
|
const TZ_RE = /^[+-]\d{2}:\d{2}$/;
|
|
725
742
|
const ACTIONS = ['ADD', 'OBSERVE', 'DELETE'];
|
|
726
743
|
/*
|
|
@@ -868,6 +885,17 @@ export function validateEpcisEvent(e) {
|
|
|
868
885
|
v.push('eventTime ISO8601 아님');
|
|
869
886
|
if (typeof e.eventTimeZoneOffset !== 'string' || !TZ_RE.test(e.eventTimeZoneOffset))
|
|
870
887
|
v.push('eventTimeZoneOffset 형식 오류');
|
|
888
|
+
/*
|
|
889
|
+
* ── 표준보다 좁은 곳 (2026-11-19, EPCIS 2.0 원문과 대조) ─────────────────────────
|
|
890
|
+
* 이 검증기는 표준이 허용하는 것 셋을 **일부러** 거절한다. 셋 다 표준을 잘못 읽은 것이 아니라 이 트윈이
|
|
891
|
+
* 받는 입구의 선택이다 — 넓히려면 아래 「전제하는 곳」을 먼저 고쳐야 한다.
|
|
892
|
+
* · `bizStep` — 표준은 모든 이벤트에서 선택(§7.4.2–7.4.6). 우리 저널은 이 칸으로 사건 종류를 가르고
|
|
893
|
+
* (headless-twin `twin-event-keys` · `event-type-split`) 모든 생산자가 단계를 밝힌다.
|
|
894
|
+
* · `ObjectEvent.epcList` — 표준은 `quantityList` 만 있는 이벤트도 허용(§7.4.2: 둘 중 하나 이상).
|
|
895
|
+
* 커널 `observed-reducer` 가 `ev.epcList` 를 그대로 순회한다.
|
|
896
|
+
* · `AggregationEvent.parentID` — 표준은 OBSERVE 에서 선택(§7.4.3), DELETE 에서는 자식 목록이 비어도
|
|
897
|
+
* 된다(전부 해체). 커널의 집계 반영이 부모를 열쇠로 쓴다.
|
|
898
|
+
*/
|
|
871
899
|
if (typeof e.bizStep !== 'string' || !e.bizStep)
|
|
872
900
|
v.push('bizStep 누락');
|
|
873
901
|
/* 선택 헤더 — 있으면 형식을 지킨다(없는 것은 위반이 아니다). */
|
package/dist/index.d.ts
CHANGED
|
@@ -33,4 +33,7 @@ export * from './reliability.ts';
|
|
|
33
33
|
export * from './erp.ts';
|
|
34
34
|
export * from './actuation.ts';
|
|
35
35
|
export * from './operational-attention.ts';
|
|
36
|
+
export * from './records-of-event.ts';
|
|
37
|
+
export * from './material-move.ts';
|
|
38
|
+
export * from './dock-facts.ts';
|
|
36
39
|
export * from './lot-lineage.ts';
|
package/dist/index.js
CHANGED
|
@@ -56,4 +56,7 @@ export * from "./reliability.js";
|
|
|
56
56
|
export * from "./erp.js";
|
|
57
57
|
export * from "./actuation.js";
|
|
58
58
|
export * from "./operational-attention.js";
|
|
59
|
+
export * from "./records-of-event.js";
|
|
60
|
+
export * from "./material-move.js";
|
|
61
|
+
export * from "./dock-facts.js";
|
|
59
62
|
export * from "./lot-lineage.js";
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
export declare const MOVE_KIND: {
|
|
2
|
+
/** warehouse → plant: a pick for a production order put this container at the line. */
|
|
3
|
+
readonly issue: "issue";
|
|
4
|
+
/** warehouse → plant: the issue was taken back - what was still on the way came back (ADR-0143 decision 5). */
|
|
5
|
+
readonly issueCancel: "issue-cancel";
|
|
6
|
+
/** plant → warehouse: the line took this much of an issue. */
|
|
7
|
+
readonly receipt: "receipt";
|
|
8
|
+
/** plant → warehouse: what is left at the line goes back (decision 3). */
|
|
9
|
+
readonly return: "return";
|
|
10
|
+
/** plant → warehouse: finished goods leave the line for the warehouse (decision 4). */
|
|
11
|
+
readonly handover: "handover";
|
|
12
|
+
/** warehouse → plant: this much of a return arrived. */
|
|
13
|
+
readonly returnReceived: "return-received";
|
|
14
|
+
/** warehouse → plant: this much of a handover arrived. */
|
|
15
|
+
readonly handoverReceived: "handover-received";
|
|
16
|
+
/** site → site: a transfer left for the peer site, one lot (ADR-0154 decision 1). */
|
|
17
|
+
readonly transfer: "transfer";
|
|
18
|
+
/** site → site: this much of a transfer arrived at the peer site. */
|
|
19
|
+
readonly transferReceived: "transfer-received";
|
|
20
|
+
};
|
|
21
|
+
export type MoveKind = (typeof MOVE_KIND)[keyof typeof MOVE_KIND];
|
|
22
|
+
export type DispatchMoveKind = typeof MOVE_KIND.return | typeof MOVE_KIND.handover | typeof MOVE_KIND.transfer;
|
|
23
|
+
export type ReceivedMoveKind = typeof MOVE_KIND.returnReceived | typeof MOVE_KIND.handoverReceived | typeof MOVE_KIND.transferReceived;
|
|
24
|
+
/** What the receiver sends back when goods a peer sent arrive, by the kind the peer sent. */
|
|
25
|
+
export declare const RECEIVED_MOVE_KIND: {
|
|
26
|
+
readonly return: "return-received";
|
|
27
|
+
readonly handover: "handover-received";
|
|
28
|
+
readonly transfer: "transfer-received";
|
|
29
|
+
};
|
|
30
|
+
/** An issue pick done - the container stands at the line place, `in_progress`. Quantities are in the sender's unit (decision 6). */
|
|
31
|
+
export interface IssueMoveFact {
|
|
32
|
+
moveId: string;
|
|
33
|
+
kind: typeof MOVE_KIND.issue;
|
|
34
|
+
/** The production order it serves - the order's document number. */
|
|
35
|
+
order: string;
|
|
36
|
+
/** The container at the line. */
|
|
37
|
+
unit: string;
|
|
38
|
+
/** The lot, as the contract spells it (`lotClassUri`). */
|
|
39
|
+
lotClass: string;
|
|
40
|
+
quantity: number;
|
|
41
|
+
uom?: string;
|
|
42
|
+
/** The line place it was put at. */
|
|
43
|
+
to: string;
|
|
44
|
+
/** The expiry the unit arrived with: a date (YYYY-MM-DD) when it was said as one, else an instant. */
|
|
45
|
+
expiry?: string;
|
|
46
|
+
/** The supplier's lot number, when the receipt said it. */
|
|
47
|
+
supplierLot?: string;
|
|
48
|
+
}
|
|
49
|
+
/** The warehouse took an issue back: which issue, how much came back (what the line had not received - may be 0). */
|
|
50
|
+
export interface IssueCancelMoveFact {
|
|
51
|
+
moveId: string;
|
|
52
|
+
kind: typeof MOVE_KIND.issueCancel;
|
|
53
|
+
issue: string;
|
|
54
|
+
quantity: number;
|
|
55
|
+
uom?: string;
|
|
56
|
+
}
|
|
57
|
+
/** The line took (part of) an issue. */
|
|
58
|
+
export interface ReceiptMoveFact {
|
|
59
|
+
moveId: string;
|
|
60
|
+
kind: typeof MOVE_KIND.receipt;
|
|
61
|
+
/** The issue it takes from - the warehouse's own `moveId`. */
|
|
62
|
+
issue: string;
|
|
63
|
+
quantity: number;
|
|
64
|
+
uom?: string;
|
|
65
|
+
}
|
|
66
|
+
/** Goods sent to a peer: the plant's return or handover, or a site's transfer - one lot each. */
|
|
67
|
+
export interface DispatchMoveFact {
|
|
68
|
+
moveId: string;
|
|
69
|
+
kind: DispatchMoveKind;
|
|
70
|
+
lotClass: string;
|
|
71
|
+
quantity: number;
|
|
72
|
+
uom?: string;
|
|
73
|
+
/** The place it leaves: the plant's line place, or the sending site's ship place. */
|
|
74
|
+
from: string;
|
|
75
|
+
/** For a handover: the job order that made it. For a transfer: the sending site's order. */
|
|
76
|
+
order?: string;
|
|
77
|
+
/** The lot's expiry as the sender knows it - FEFO reads it. */
|
|
78
|
+
expiry?: string;
|
|
79
|
+
/** For a transfer: the logistic units that left. */
|
|
80
|
+
units?: string[];
|
|
81
|
+
}
|
|
82
|
+
/** (Part of) what a peer sent arrived - may be 0: "nothing came" is a statement too. */
|
|
83
|
+
export interface ReceivedMoveFact {
|
|
84
|
+
moveId: string;
|
|
85
|
+
kind: ReceivedMoveKind;
|
|
86
|
+
/** The sender's id for the return, handover or transfer. */
|
|
87
|
+
dispatch: string;
|
|
88
|
+
quantity: number;
|
|
89
|
+
uom?: string;
|
|
90
|
+
}
|
|
91
|
+
export type MoveFact = IssueMoveFact | IssueCancelMoveFact | ReceiptMoveFact | DispatchMoveFact | ReceivedMoveFact;
|
|
92
|
+
/** Is this an expiry a fact may carry: a date (YYYY-MM-DD) or an instant with its offset. */
|
|
93
|
+
export declare function isMoveExpiry(value: unknown): value is string;
|
|
94
|
+
/**
|
|
95
|
+
* An expiry as a fact carries it. Text is kept as it was said - a date stays a date, an instant an instant (nothing is
|
|
96
|
+
* guessed from text). A stored `Date` (a date column comes back as midnight UTC) is folded to a date when it sits on
|
|
97
|
+
* midnight UTC - the only case where a guess is needed.
|
|
98
|
+
*/
|
|
99
|
+
export declare function moveExpiryText(expiry: Date | string | null | undefined): string | undefined;
|
|
100
|
+
/** Whether a record on a stream is a move (the plant's stream for the warehouse also carries lot statuses). */
|
|
101
|
+
export declare function isMoveRecord(record: unknown): boolean;
|
|
102
|
+
/**
|
|
103
|
+
* **Read one record as a move fact, or say why not.** Every kind is read by the same rules wherever it lands; the receiver
|
|
104
|
+
* then takes the kinds it takes (`takes`) and refuses the rest by name.
|
|
105
|
+
*/
|
|
106
|
+
export declare function moveFactOf(record: unknown, takes?: readonly MoveKind[]): {
|
|
107
|
+
fact: MoveFact;
|
|
108
|
+
} | {
|
|
109
|
+
errors: string[];
|
|
110
|
+
};
|
|
111
|
+
export declare function issueMoveFactOf(input: Omit<IssueMoveFact, 'kind'>): IssueMoveFact;
|
|
112
|
+
export declare function issueCancelMoveFactOf(input: Omit<IssueCancelMoveFact, 'kind'>): IssueCancelMoveFact;
|
|
113
|
+
export declare function receiptMoveFactOf(input: Omit<ReceiptMoveFact, 'kind'>): ReceiptMoveFact;
|
|
114
|
+
export declare function dispatchMoveFactOf(input: Omit<DispatchMoveFact, 'expiry'> & {
|
|
115
|
+
expiry?: Date | string | null;
|
|
116
|
+
}): DispatchMoveFact;
|
|
117
|
+
/** What the receiver sends when goods arrive: which dispatch, how much - the kind follows the kind that was sent. */
|
|
118
|
+
export declare function receivedMoveFactOf(input: {
|
|
119
|
+
moveId: string;
|
|
120
|
+
sent: DispatchMoveKind;
|
|
121
|
+
dispatch: string;
|
|
122
|
+
quantity: number;
|
|
123
|
+
uom?: string;
|
|
124
|
+
}): ReceivedMoveFact;
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { isIsoDateTime, parseEpc } from "./epcis.js";
|
|
2
|
+
/*
|
|
3
|
+
* **Material moves between sites, the warehouse and the line** - the records both sides send and read (ADR-0143, ADR-0154).
|
|
4
|
+
*
|
|
5
|
+
* One physical move has one owner (ADR-0059 decision 5): the warehouse says it issued, the plant says it received. Each side
|
|
6
|
+
* sends its own fact on its own stream; each fact carries an id unique within its sender (`moveId`). What a receiver does with
|
|
7
|
+
* a repeat is the receiver's (the products take one per site, peer and `moveId` - README "계약이 정하는 것").
|
|
8
|
+
*
|
|
9
|
+
* Lifted on 2026-11-19 from the warehouse and the plant, which kept a copy each (`move-facts.ts`) and had drifted: the plant's
|
|
10
|
+
* reader took an arrival of 0 and the warehouse's refused it, only the plant checked an issue's lot. One reader here
|
|
11
|
+
* (ADR-0210 decision 12, the user). What stays with each product: its own statuses (the plant's issue · dispatch status), its
|
|
12
|
+
* quantity judgements (a receipt over what was issued, what a line still holds), how it numbers a transfer.
|
|
13
|
+
*
|
|
14
|
+
* Closed on purpose: an unknown kind is refused, not stored - a word the receiver does not know cannot move its stock.
|
|
15
|
+
*/
|
|
16
|
+
export const MOVE_KIND = {
|
|
17
|
+
/** warehouse → plant: a pick for a production order put this container at the line. */
|
|
18
|
+
issue: 'issue',
|
|
19
|
+
/** warehouse → plant: the issue was taken back - what was still on the way came back (ADR-0143 decision 5). */
|
|
20
|
+
issueCancel: 'issue-cancel',
|
|
21
|
+
/** plant → warehouse: the line took this much of an issue. */
|
|
22
|
+
receipt: 'receipt',
|
|
23
|
+
/** plant → warehouse: what is left at the line goes back (decision 3). */
|
|
24
|
+
return: 'return',
|
|
25
|
+
/** plant → warehouse: finished goods leave the line for the warehouse (decision 4). */
|
|
26
|
+
handover: 'handover',
|
|
27
|
+
/** warehouse → plant: this much of a return arrived. */
|
|
28
|
+
returnReceived: 'return-received',
|
|
29
|
+
/** warehouse → plant: this much of a handover arrived. */
|
|
30
|
+
handoverReceived: 'handover-received',
|
|
31
|
+
/** site → site: a transfer left for the peer site, one lot (ADR-0154 decision 1). */
|
|
32
|
+
transfer: 'transfer',
|
|
33
|
+
/** site → site: this much of a transfer arrived at the peer site. */
|
|
34
|
+
transferReceived: 'transfer-received'
|
|
35
|
+
};
|
|
36
|
+
/** What the receiver sends back when goods a peer sent arrive, by the kind the peer sent. */
|
|
37
|
+
export const RECEIVED_MOVE_KIND = {
|
|
38
|
+
[MOVE_KIND.return]: MOVE_KIND.returnReceived,
|
|
39
|
+
[MOVE_KIND.handover]: MOVE_KIND.handoverReceived,
|
|
40
|
+
[MOVE_KIND.transfer]: MOVE_KIND.transferReceived
|
|
41
|
+
};
|
|
42
|
+
const DAY_MS = 86_400_000;
|
|
43
|
+
const DATE_RE = /^\d{4}-\d{2}-\d{2}$/;
|
|
44
|
+
/** Is this an expiry a fact may carry: a date (YYYY-MM-DD) or an instant with its offset. */
|
|
45
|
+
export function isMoveExpiry(value) {
|
|
46
|
+
return typeof value === 'string' && ((DATE_RE.test(value) && !Number.isNaN(Date.parse(value))) || isIsoDateTime(value));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* An expiry as a fact carries it. Text is kept as it was said - a date stays a date, an instant an instant (nothing is
|
|
50
|
+
* guessed from text). A stored `Date` (a date column comes back as midnight UTC) is folded to a date when it sits on
|
|
51
|
+
* midnight UTC - the only case where a guess is needed.
|
|
52
|
+
*/
|
|
53
|
+
export function moveExpiryText(expiry) {
|
|
54
|
+
if (!expiry)
|
|
55
|
+
return undefined;
|
|
56
|
+
if (typeof expiry === 'string')
|
|
57
|
+
return isMoveExpiry(expiry) ? expiry : undefined;
|
|
58
|
+
if (Number.isNaN(expiry.getTime()))
|
|
59
|
+
return undefined;
|
|
60
|
+
return expiry.getTime() % DAY_MS === 0 ? expiry.toISOString().slice(0, 10) : expiry.toISOString();
|
|
61
|
+
}
|
|
62
|
+
/** Whether a record on a stream is a move (the plant's stream for the warehouse also carries lot statuses). */
|
|
63
|
+
export function isMoveRecord(record) {
|
|
64
|
+
const r = record;
|
|
65
|
+
return !!r && typeof r === 'object' && typeof r.moveId === 'string' && typeof r.kind === 'string';
|
|
66
|
+
}
|
|
67
|
+
/** Does this class name a lot - an LGTIN or an in-house class with a lot part. */
|
|
68
|
+
function namesALot(lotClass) {
|
|
69
|
+
try {
|
|
70
|
+
return !!parseEpc(lotClass)?.lot;
|
|
71
|
+
}
|
|
72
|
+
catch {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* **Read one record as a move fact, or say why not.** Every kind is read by the same rules wherever it lands; the receiver
|
|
78
|
+
* then takes the kinds it takes (`takes`) and refuses the rest by name.
|
|
79
|
+
*/
|
|
80
|
+
export function moveFactOf(record, takes) {
|
|
81
|
+
const r = record;
|
|
82
|
+
if (!isMoveRecord(r))
|
|
83
|
+
return { errors: ['the record is not a move: moveId and kind are needed'] };
|
|
84
|
+
const kind = r.kind;
|
|
85
|
+
if (!Object.values(MOVE_KIND).includes(kind))
|
|
86
|
+
return { errors: [`${kind} is not a move kind`] };
|
|
87
|
+
if (takes && !takes.includes(kind))
|
|
88
|
+
return { errors: [`a move of kind ${kind} is not one this receiver takes`] };
|
|
89
|
+
const errors = [];
|
|
90
|
+
const text = (key) => typeof r[key] === 'string' && r[key].trim() !== '';
|
|
91
|
+
const trimmed = (key) => r[key].trim();
|
|
92
|
+
const quantity = (atLeast) => {
|
|
93
|
+
const q = r.quantity;
|
|
94
|
+
const ok = typeof q === 'number' && Number.isFinite(q) && (atLeast === 'above-zero' ? q > 0 : q >= 0);
|
|
95
|
+
if (!ok)
|
|
96
|
+
errors.push(atLeast === 'above-zero' ? 'quantity must be a number above 0' : 'quantity must be a number, 0 or above');
|
|
97
|
+
};
|
|
98
|
+
const uom = () => (typeof r.uom === 'string' && r.uom.trim() ? { uom: r.uom.trim() } : {});
|
|
99
|
+
if (!text('moveId'))
|
|
100
|
+
errors.push('moveId is empty');
|
|
101
|
+
if (r.uom !== undefined && typeof r.uom !== 'string')
|
|
102
|
+
errors.push('uom must be text');
|
|
103
|
+
switch (kind) {
|
|
104
|
+
case MOVE_KIND.issue: {
|
|
105
|
+
if (!text('order'))
|
|
106
|
+
errors.push('order is missing: an issue names the production order it serves');
|
|
107
|
+
if (!text('unit'))
|
|
108
|
+
errors.push('unit is missing: an issue names the container at the line');
|
|
109
|
+
if (!text('lotClass'))
|
|
110
|
+
errors.push('lotClass is missing');
|
|
111
|
+
else if (!namesALot(trimmed('lotClass')))
|
|
112
|
+
errors.push(`${r.lotClass} does not name a lot`);
|
|
113
|
+
if (!text('to'))
|
|
114
|
+
errors.push('to is missing: an issue names the line place');
|
|
115
|
+
if (r.expiry !== undefined && !isMoveExpiry(r.expiry))
|
|
116
|
+
errors.push('expiry is not a date (YYYY-MM-DD) or an instant with its offset');
|
|
117
|
+
quantity('above-zero');
|
|
118
|
+
if (errors.length)
|
|
119
|
+
return { errors };
|
|
120
|
+
return {
|
|
121
|
+
fact: {
|
|
122
|
+
moveId: trimmed('moveId'),
|
|
123
|
+
kind: MOVE_KIND.issue,
|
|
124
|
+
order: trimmed('order'),
|
|
125
|
+
unit: trimmed('unit'),
|
|
126
|
+
lotClass: trimmed('lotClass'),
|
|
127
|
+
quantity: r.quantity,
|
|
128
|
+
...uom(),
|
|
129
|
+
to: trimmed('to'),
|
|
130
|
+
...(typeof r.expiry === 'string' ? { expiry: r.expiry } : {}),
|
|
131
|
+
...(text('supplierLot') ? { supplierLot: trimmed('supplierLot') } : {})
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
case MOVE_KIND.issueCancel:
|
|
136
|
+
case MOVE_KIND.receipt: {
|
|
137
|
+
if (!text('issue'))
|
|
138
|
+
errors.push(`issue is missing: ${kind === MOVE_KIND.receipt ? 'a receipt names the issue it takes from' : 'a cancel names the issue it takes back'}`);
|
|
139
|
+
quantity(kind === MOVE_KIND.receipt ? 'above-zero' : 'zero-or-more');
|
|
140
|
+
if (errors.length)
|
|
141
|
+
return { errors };
|
|
142
|
+
return { fact: { moveId: trimmed('moveId'), kind, issue: trimmed('issue'), quantity: r.quantity, ...uom() } };
|
|
143
|
+
}
|
|
144
|
+
case MOVE_KIND.return:
|
|
145
|
+
case MOVE_KIND.handover:
|
|
146
|
+
case MOVE_KIND.transfer: {
|
|
147
|
+
if (!text('lotClass'))
|
|
148
|
+
errors.push('lotClass is missing');
|
|
149
|
+
/*
|
|
150
|
+
* A return or a handover is one lot of the plant's - it must name one. A transfer is not checked here: a site transfers
|
|
151
|
+
* what its units are classed by, and a class without a lot part is a fact the sending site may truly have.
|
|
152
|
+
*/ else if (kind !== MOVE_KIND.transfer && !namesALot(trimmed('lotClass')))
|
|
153
|
+
errors.push(`${r.lotClass} does not name a lot`);
|
|
154
|
+
if (!text('from'))
|
|
155
|
+
errors.push('from is missing: the place it leaves');
|
|
156
|
+
if (r.order !== undefined && !text('order'))
|
|
157
|
+
errors.push('order must be text');
|
|
158
|
+
if (r.expiry !== undefined && !isMoveExpiry(r.expiry))
|
|
159
|
+
errors.push('expiry is not a date (YYYY-MM-DD) or an instant with its offset');
|
|
160
|
+
if (r.units !== undefined && (!Array.isArray(r.units) || !r.units.length || !r.units.every(unit => typeof unit === 'string' && unit.trim()))) {
|
|
161
|
+
errors.push('units must be a list of unit identifiers');
|
|
162
|
+
}
|
|
163
|
+
quantity('above-zero');
|
|
164
|
+
if (errors.length)
|
|
165
|
+
return { errors };
|
|
166
|
+
return {
|
|
167
|
+
fact: {
|
|
168
|
+
moveId: trimmed('moveId'),
|
|
169
|
+
kind,
|
|
170
|
+
lotClass: trimmed('lotClass'),
|
|
171
|
+
quantity: r.quantity,
|
|
172
|
+
...uom(),
|
|
173
|
+
from: trimmed('from'),
|
|
174
|
+
...(text('order') ? { order: trimmed('order') } : {}),
|
|
175
|
+
...(typeof r.expiry === 'string' ? { expiry: r.expiry } : {}),
|
|
176
|
+
...(Array.isArray(r.units) ? { units: r.units.map(unit => unit.trim()) } : {})
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
default: {
|
|
181
|
+
/* the three received kinds */
|
|
182
|
+
if (!text('dispatch'))
|
|
183
|
+
errors.push('dispatch is missing: it names what was sent');
|
|
184
|
+
quantity('zero-or-more');
|
|
185
|
+
if (errors.length)
|
|
186
|
+
return { errors };
|
|
187
|
+
return { fact: { moveId: trimmed('moveId'), kind: kind, dispatch: trimmed('dispatch'), quantity: r.quantity, ...uom() } };
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
/* ── Builders - what a sender writes. Optional fields are left out when empty, never sent as empty. ── */
|
|
192
|
+
export function issueMoveFactOf(input) {
|
|
193
|
+
return {
|
|
194
|
+
moveId: input.moveId,
|
|
195
|
+
kind: MOVE_KIND.issue,
|
|
196
|
+
order: input.order,
|
|
197
|
+
unit: input.unit,
|
|
198
|
+
lotClass: input.lotClass,
|
|
199
|
+
quantity: input.quantity,
|
|
200
|
+
...(input.uom ? { uom: input.uom } : {}),
|
|
201
|
+
to: input.to,
|
|
202
|
+
...(input.expiry ? { expiry: input.expiry } : {}),
|
|
203
|
+
...(input.supplierLot ? { supplierLot: input.supplierLot } : {})
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
export function issueCancelMoveFactOf(input) {
|
|
207
|
+
return { moveId: input.moveId, kind: MOVE_KIND.issueCancel, issue: input.issue, quantity: input.quantity, ...(input.uom ? { uom: input.uom } : {}) };
|
|
208
|
+
}
|
|
209
|
+
export function receiptMoveFactOf(input) {
|
|
210
|
+
return { moveId: input.moveId, kind: MOVE_KIND.receipt, issue: input.issue, quantity: input.quantity, ...(input.uom ? { uom: input.uom } : {}) };
|
|
211
|
+
}
|
|
212
|
+
export function dispatchMoveFactOf(input) {
|
|
213
|
+
const expiry = moveExpiryText(input.expiry);
|
|
214
|
+
return {
|
|
215
|
+
moveId: input.moveId,
|
|
216
|
+
kind: input.kind,
|
|
217
|
+
lotClass: input.lotClass,
|
|
218
|
+
quantity: input.quantity,
|
|
219
|
+
...(input.uom ? { uom: input.uom } : {}),
|
|
220
|
+
from: input.from,
|
|
221
|
+
...(input.order ? { order: input.order } : {}),
|
|
222
|
+
...(expiry ? { expiry } : {}),
|
|
223
|
+
...(input.units?.length ? { units: input.units } : {})
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
/** What the receiver sends when goods arrive: which dispatch, how much - the kind follows the kind that was sent. */
|
|
227
|
+
export function receivedMoveFactOf(input) {
|
|
228
|
+
return { moveId: input.moveId, kind: RECEIVED_MOVE_KIND[input.sent], dispatch: input.dispatch, quantity: input.quantity, ...(input.uom ? { uom: input.uom } : {}) };
|
|
229
|
+
}
|
package/dist/mes-profile.js
CHANGED
|
@@ -69,7 +69,7 @@ export const MES_TYPES = [
|
|
|
69
69
|
export const MES_COMMANDS = [
|
|
70
70
|
{
|
|
71
71
|
type: 'production.order',
|
|
72
|
-
label: '
|
|
72
|
+
label: 'twin.command.production.order',
|
|
73
73
|
/*
|
|
74
74
|
* 되돌릴 수 없다. 지시가 나가면 사람과 설비가 그것으로 움직이고, 취소해도 이미 만든 것은 남는다.
|
|
75
75
|
* 그래서 사람 승인을 지난다(§`requiresApproval`).
|
package/dist/oee.js
CHANGED
|
@@ -48,14 +48,18 @@ export function computeOee(c, nowMs) {
|
|
|
48
48
|
if (produced <= 0)
|
|
49
49
|
missing.push('produced-quantity');
|
|
50
50
|
const quality = produced > 0 ? c.goodCount / produced : undefined;
|
|
51
|
-
/*
|
|
51
|
+
/*
|
|
52
|
+
* 성능률 — 표준 시간이 없으면 내지 않는다. 실 생산 시간이 0 이어도 나눌 수 없다.
|
|
53
|
+
*
|
|
54
|
+
* 가동률과 같은 이유로 **1 로 자르지 않는다**(2026-11-19 내용 점검). 1 을 넘으면 표준 시간보다 빨리
|
|
55
|
+
* 만들었다는 사실이거나, 선언된 표준 시간이 틀렸다는 신호다. 자르면 둘 다 「표준대로」와 같아지고,
|
|
56
|
+
* `overall` 도 A×P×Q 의 정직한 곱이 아니게 된다.
|
|
57
|
+
*/
|
|
52
58
|
if (c.plannedRunTimePerItemMs == null)
|
|
53
59
|
missing.push('planned-run-time-per-item');
|
|
54
60
|
else if (c.runMs <= 0)
|
|
55
61
|
missing.push('actual-production-time');
|
|
56
|
-
const performance = c.plannedRunTimePerItemMs != null && c.runMs > 0
|
|
57
|
-
? Math.min(1, (c.plannedRunTimePerItemMs * produced) / c.runMs)
|
|
58
|
-
: undefined;
|
|
62
|
+
const performance = c.plannedRunTimePerItemMs != null && c.runMs > 0 ? (c.plannedRunTimePerItemMs * produced) / c.runMs : undefined;
|
|
59
63
|
const overall = availability != null && performance != null && quality != null ? availability * performance * quality : undefined;
|
|
60
64
|
return {
|
|
61
65
|
...(availability != null ? { availability } : {}),
|
|
@@ -39,5 +39,32 @@ export interface OperationalAttentionV1 {
|
|
|
39
39
|
/** At least one stable producer fact is mandatory; labels alone are not evidence. */
|
|
40
40
|
facts: OperationalFactReference[];
|
|
41
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* A producer-owned, namespaced reason code: `<product>.<code>`, lower case, words joined by `-`
|
|
44
|
+
* (`plant.job-order-past-due`, `yard.late`). The namespace keeps two products' codes from meaning one thing;
|
|
45
|
+
* which product name a sender uses is not checked here.
|
|
46
|
+
*/
|
|
47
|
+
export declare const OPERATIONAL_ATTENTION_KIND_PATTERN: RegExp;
|
|
48
|
+
/**
|
|
49
|
+
* Why a value is not an operational.attention.v1 - one line per field, empty when it is one.
|
|
50
|
+
* A receiver keeps these lines with the rejected record, so the sender learns which field to fix.
|
|
51
|
+
*/
|
|
52
|
+
export declare function operationalAttentionErrors(value: unknown): string[];
|
|
42
53
|
export declare function isOperationalAttentionV1(value: unknown): value is OperationalAttentionV1;
|
|
43
54
|
export declare function assertOperationalAttentionV1(value: unknown): asserts value is OperationalAttentionV1;
|
|
55
|
+
/**
|
|
56
|
+
* **The record a producer sends** for one step of an attention it keeps. Asserted before it leaves - a producer never
|
|
57
|
+
* sends what a consumer would reject.
|
|
58
|
+
*/
|
|
59
|
+
export declare function operationalAttentionOf(producer: {
|
|
60
|
+
system: string;
|
|
61
|
+
domainId: string;
|
|
62
|
+
}, attention: {
|
|
63
|
+
attentionId: string;
|
|
64
|
+
dedupeKey: string;
|
|
65
|
+
kind: string;
|
|
66
|
+
subjectLabel: string;
|
|
67
|
+
impact: OperationalAttentionImpact;
|
|
68
|
+
evidenceFingerprint: string;
|
|
69
|
+
facts: readonly Omit<OperationalFactReference, 'system'>[];
|
|
70
|
+
}, transition: OperationalAttentionTransition, observedAt: ISOTime): OperationalAttentionV1;
|