@operato/ops-contract 0.9.29 → 0.9.31
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/contract.d.ts +12 -1
- package/dist/contract.js +32 -2
- package/dist/operational-ingest.js +11 -2
- package/dist/wms-profile.d.ts +15 -3
- package/dist/wms-profile.js +20 -7
- package/dist-cjs/index.cjs +40 -6
- package/package.json +1 -1
package/dist/contract.d.ts
CHANGED
|
@@ -405,6 +405,15 @@ export type TestSpecificationRefs = string[];
|
|
|
405
405
|
* 개명이 사는 값은 이 주석이 대신 낸다).
|
|
406
406
|
*/
|
|
407
407
|
export interface TestResult {
|
|
408
|
+
/** Source-pinned execution evidence, not a lookup of the current master. */
|
|
409
|
+
specificationBasis?: {
|
|
410
|
+
id: string;
|
|
411
|
+
revisionId: string;
|
|
412
|
+
planId: string;
|
|
413
|
+
contentHash: string;
|
|
414
|
+
businessTime: ISOTime;
|
|
415
|
+
criteria: TestSpecificationCriterion[];
|
|
416
|
+
};
|
|
408
417
|
/** 어느 시험인가 — `TestSpecification.id` 를 가리킨다. */
|
|
409
418
|
specId: string;
|
|
410
419
|
/**
|
|
@@ -749,7 +758,9 @@ export declare function testEvidenceGaps(spec: Pick<TestSpecification, 'criteria
|
|
|
749
758
|
*
|
|
750
759
|
* 커널은 `Expression` 을 **읽지 않는다**(문법이 정의되지 않은 자유 문자열). 판정은 숫자 한계로만 한다.
|
|
751
760
|
*/
|
|
752
|
-
|
|
761
|
+
/** Validate carried evidence before either ingestion or replay; malformed evidence is not a current-master lookup. */
|
|
762
|
+
export declare function isTestSpecificationBasis(value: unknown): value is NonNullable<TestResult['specificationBasis']>;
|
|
763
|
+
export declare function judgeAgainstSpec(spec: Pick<TestSpecification, 'criteria'> | undefined, result: Pick<TestResult, 'propertyMeasurements' | 'specificationBasis'> | undefined): 'pass' | 'fail' | undefined;
|
|
753
764
|
/**
|
|
754
765
|
* 유효 기간 — **ISA-95 `EffectiveStartDate` / `EffectiveEndDate`.**
|
|
755
766
|
*
|
package/dist/contract.js
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
* **「원본이 말하는 이 사실을 커널의 어휘로 어떻게 옮기나」**다. 컬럼 단위로 물으면 원본이 열이면
|
|
29
29
|
* 축도 열이 된다 — 2026-08-23 에 축 다섯을 열었다가 그 이유로 되돌렸다.
|
|
30
30
|
*
|
|
31
|
-
* 열지 않기로 한 것과 그 조건은 `
|
|
31
|
+
* 열지 않기로 한 것과 그 조건은 `operato-application/adr/ADR-0039.md` 에 있다. 넓히기 전에 그 표를 본다.
|
|
32
32
|
* 지키는 하네스: `derived-not-input` · `actuals-come-from-transitions` · `accumulators-survive-restart` ·
|
|
33
33
|
* `purpose-conformance`.
|
|
34
34
|
*/
|
|
@@ -407,9 +407,39 @@ export function testEvidenceGaps(spec, result) {
|
|
|
407
407
|
*
|
|
408
408
|
* 커널은 `Expression` 을 **읽지 않는다**(문법이 정의되지 않은 자유 문자열). 판정은 숫자 한계로만 한다.
|
|
409
409
|
*/
|
|
410
|
+
/** Validate carried evidence before either ingestion or replay; malformed evidence is not a current-master lookup. */
|
|
411
|
+
export function isTestSpecificationBasis(value) {
|
|
412
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
413
|
+
return false;
|
|
414
|
+
const basis = value;
|
|
415
|
+
if (!['id', 'revisionId', 'planId', 'contentHash', 'businessTime'].every(key => typeof basis[key] === 'string' && basis[key].trim()))
|
|
416
|
+
return false;
|
|
417
|
+
if (!Number.isFinite(Date.parse(basis.businessTime)))
|
|
418
|
+
return false;
|
|
419
|
+
return Array.isArray(basis.criteria) && basis.criteria.every(c => {
|
|
420
|
+
if (!c || typeof c !== 'object' || Array.isArray(c) || typeof c.id !== 'string' || !c.id.trim())
|
|
421
|
+
return false;
|
|
422
|
+
if (['description', 'expression', 'evaluatedPropertyId'].some(key => c[key] !== undefined && typeof c[key] !== 'string'))
|
|
423
|
+
return false;
|
|
424
|
+
if (c.limit === undefined)
|
|
425
|
+
return true;
|
|
426
|
+
const limit = c.limit;
|
|
427
|
+
if (!limit || typeof limit !== 'object' || Array.isArray(limit))
|
|
428
|
+
return false;
|
|
429
|
+
if (['minimum', 'maximum'].some(key => limit[key] !== undefined && (typeof limit[key] !== 'number' || !Number.isFinite(limit[key]))))
|
|
430
|
+
return false;
|
|
431
|
+
if (limit.uom !== undefined && typeof limit.uom !== 'string')
|
|
432
|
+
return false;
|
|
433
|
+
return !(limit.minimum !== undefined && limit.maximum !== undefined && limit.minimum > limit.maximum);
|
|
434
|
+
});
|
|
435
|
+
}
|
|
410
436
|
export function judgeAgainstSpec(spec, result) {
|
|
411
437
|
/* 판정할 기준만 남긴다 — 말하지 않는 기준은 이 답에 관여하지 않는다. */
|
|
412
|
-
const
|
|
438
|
+
const basis = result?.specificationBasis;
|
|
439
|
+
// A malformed carried basis is unknown. Never replace it with today's criteria.
|
|
440
|
+
if (basis !== undefined && !isTestSpecificationBasis(basis))
|
|
441
|
+
return undefined;
|
|
442
|
+
const criteria = (basis ? basis.criteria : spec?.criteria ?? []).filter(c => !criterionSaysNothing(c));
|
|
413
443
|
if (!criteria.length)
|
|
414
444
|
return undefined;
|
|
415
445
|
const measurements = result?.propertyMeasurements ?? [];
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
* 모르는 필드는 **조용히 버리지 않고 거부한다.** `taskID` 처럼 한 글자 틀린 이름은 통과시키면 영원히
|
|
35
35
|
* 보이지 않는 손실이 된다(이 문에는 아직 옛 발신자가 없어 호환 부담도 없다).
|
|
36
36
|
*/
|
|
37
|
-
import { OP_EVENT, DISPOSITION_DECISION, MATERIAL_ACTUAL_USE, MATERIAL_LOT_USE } from "./contract.js";
|
|
37
|
+
import { OP_EVENT, DISPOSITION_DECISION, MATERIAL_ACTUAL_USE, MATERIAL_LOT_USE, isTestSpecificationBasis } from "./contract.js";
|
|
38
38
|
/**
|
|
39
39
|
* 객체 한 줄이 선언된 안쪽 모양을 지키나 — **선언하지 않은 자리는 보지 않는다.**
|
|
40
40
|
*
|
|
@@ -370,7 +370,13 @@ const SPECS = {
|
|
|
370
370
|
required: ['testableObjectId', 'specId'],
|
|
371
371
|
fields: {
|
|
372
372
|
testableObjectId: 'string', specId: 'string', result: 'string', at: 'string', expiresAt: 'string',
|
|
373
|
-
derived: 'boolean', propertyMeasurements: 'object[]', recordTime: 'string'
|
|
373
|
+
derived: 'boolean', propertyMeasurements: 'object[]', specificationBasis: 'object', recordTime: 'string'
|
|
374
|
+
},
|
|
375
|
+
shapes: {
|
|
376
|
+
specificationBasis: {
|
|
377
|
+
required: ['id', 'revisionId', 'planId', 'contentHash', 'businessTime', 'criteria'],
|
|
378
|
+
fields: { id: 'string', revisionId: 'string', planId: 'string', contentHash: 'string', businessTime: 'string' }
|
|
379
|
+
}
|
|
374
380
|
},
|
|
375
381
|
enums: { result: ['pass', 'fail'] }
|
|
376
382
|
},
|
|
@@ -611,6 +617,9 @@ export function ingestOperationalRecords(records, opts) {
|
|
|
611
617
|
* 사건 시각이 되고, 그러면 어제 있었던 정지가 오늘 일어난 것으로 저널에 적힌다. 적은 때는
|
|
612
618
|
* `recordTime` 에 남는다.
|
|
613
619
|
*/
|
|
620
|
+
if (kind === 'test' && r.specificationBasis !== undefined && !isTestSpecificationBasis(r.specificationBasis)) {
|
|
621
|
+
errors.push('test.specificationBasis: invalid pinned specification evidence');
|
|
622
|
+
}
|
|
614
623
|
const closedPeriodEnd = kind === 'equipment-period' ? String(r.to ?? '').trim() : '';
|
|
615
624
|
const at = closedPeriodEnd || String(r.at ?? '').trim() || opts.defaultEventTime;
|
|
616
625
|
const atMs = at ? Date.parse(at) : Number.NaN;
|
package/dist/wms-profile.d.ts
CHANGED
|
@@ -38,6 +38,18 @@ export declare const WMS_ORDER_KIND: {
|
|
|
38
38
|
readonly transfer: "transfer";
|
|
39
39
|
};
|
|
40
40
|
export type WmsOrderKind = (typeof WMS_ORDER_KIND)[keyof typeof WMS_ORDER_KIND];
|
|
41
|
+
/**
|
|
42
|
+
* 물건을 **받는** 오더 — 흐름 지표와 드레인에서 빠지는 종류들.
|
|
43
|
+
*
|
|
44
|
+
* 둘 다 나가지 않는다: 입고는 도착이 세우고 도착이 이행하고, 반품 입고는 받는 쪽의 사실이다. 세면
|
|
45
|
+
* 처리량이 받을 때마다 늘고 「다 나갔나」는 영영 참이 되지 않는다.
|
|
46
|
+
*
|
|
47
|
+
* `transfer`(사이트 간 이동)는 **빠지지 않는다** — 보내는 쪽에서는 나가는 일이다.
|
|
48
|
+
*
|
|
49
|
+
* 목록으로 두는 까닭: 글자 하나로 빼면 셋째 종류가 서는 날 그 자리를 아무도 못 찾는다(ADR-0076
|
|
50
|
+
* 보탬 ⑥ 조건 2 — 판정은 한 곳).
|
|
51
|
+
*/
|
|
52
|
+
export declare const WMS_RECEIVING_ORDER_KINDS: readonly WmsOrderKind[];
|
|
41
53
|
/**
|
|
42
54
|
* **흐름 지표가 세는 오더인가** — 처리량 · 백로그 · 드레인이 묻는 것. 판정을 한 곳에 둔다
|
|
43
55
|
* (`isOrderTerminal` 과 같은 규율 — ADR-0076 보탬 ⑥ 의 조건 2).
|
|
@@ -48,8 +60,8 @@ export type WmsOrderKind = (typeof WMS_ORDER_KIND)[keyof typeof WMS_ORDER_KIND];
|
|
|
48
60
|
* 그래서 `kind === 'outbound'` 로 집으면 남의 낱말로 온 오더가 조용히 지표에서 빠진다 — 로트 상태에서
|
|
49
61
|
* 낱말을 읽지 않기로 한 것과 같은 자리다(ADR-0080 결정 2).
|
|
50
62
|
*
|
|
51
|
-
* 뺄 수 있는 것은
|
|
52
|
-
*
|
|
63
|
+
* 뺄 수 있는 것은 **계약이 아는 낱말**뿐이고, 그것은 「받는 오더」다(§`WMS_RECEIVING_ORDER_KINDS` —
|
|
64
|
+
* 입고 · 반품 입고). 둘 다 나가지 않으므로, 세면 처리량이 받을 때마다 부풀고 백로그는 영영 안 줄어든다.
|
|
53
65
|
*
|
|
54
66
|
* 낱말을 말하지 않은 오더는 **그대로 센다**(지금까지의 거동이다 — 커널이 낱말 없이 세운 오더가 있고
|
|
55
67
|
* 미러의 옛 행도 그렇다). 다만 그 수는 세어서 답에 싣는다(§`splitFlowOrders`) — 「입고가 아니라고
|
|
@@ -68,7 +80,7 @@ export declare function splitFlowOrders<T extends {
|
|
|
68
80
|
kind?: string;
|
|
69
81
|
}>(orders: readonly T[]): {
|
|
70
82
|
flow: T[];
|
|
71
|
-
|
|
83
|
+
receiving: number;
|
|
72
84
|
kindless: number;
|
|
73
85
|
};
|
|
74
86
|
/**
|
package/dist/wms-profile.js
CHANGED
|
@@ -57,6 +57,18 @@ export const WMS_ORDER_KIND = {
|
|
|
57
57
|
/** Stock transfer between sites. CBV has no document type for it: carry the id without a type. */
|
|
58
58
|
transfer: 'transfer'
|
|
59
59
|
};
|
|
60
|
+
/**
|
|
61
|
+
* 물건을 **받는** 오더 — 흐름 지표와 드레인에서 빠지는 종류들.
|
|
62
|
+
*
|
|
63
|
+
* 둘 다 나가지 않는다: 입고는 도착이 세우고 도착이 이행하고, 반품 입고는 받는 쪽의 사실이다. 세면
|
|
64
|
+
* 처리량이 받을 때마다 늘고 「다 나갔나」는 영영 참이 되지 않는다.
|
|
65
|
+
*
|
|
66
|
+
* `transfer`(사이트 간 이동)는 **빠지지 않는다** — 보내는 쪽에서는 나가는 일이다.
|
|
67
|
+
*
|
|
68
|
+
* 목록으로 두는 까닭: 글자 하나로 빼면 셋째 종류가 서는 날 그 자리를 아무도 못 찾는다(ADR-0076
|
|
69
|
+
* 보탬 ⑥ 조건 2 — 판정은 한 곳).
|
|
70
|
+
*/
|
|
71
|
+
export const WMS_RECEIVING_ORDER_KINDS = [WMS_ORDER_KIND.inbound, WMS_ORDER_KIND.return];
|
|
60
72
|
/**
|
|
61
73
|
* **흐름 지표가 세는 오더인가** — 처리량 · 백로그 · 드레인이 묻는 것. 판정을 한 곳에 둔다
|
|
62
74
|
* (`isOrderTerminal` 과 같은 규율 — ADR-0076 보탬 ⑥ 의 조건 2).
|
|
@@ -67,15 +79,16 @@ export const WMS_ORDER_KIND = {
|
|
|
67
79
|
* 그래서 `kind === 'outbound'` 로 집으면 남의 낱말로 온 오더가 조용히 지표에서 빠진다 — 로트 상태에서
|
|
68
80
|
* 낱말을 읽지 않기로 한 것과 같은 자리다(ADR-0080 결정 2).
|
|
69
81
|
*
|
|
70
|
-
* 뺄 수 있는 것은
|
|
71
|
-
*
|
|
82
|
+
* 뺄 수 있는 것은 **계약이 아는 낱말**뿐이고, 그것은 「받는 오더」다(§`WMS_RECEIVING_ORDER_KINDS` —
|
|
83
|
+
* 입고 · 반품 입고). 둘 다 나가지 않으므로, 세면 처리량이 받을 때마다 부풀고 백로그는 영영 안 줄어든다.
|
|
72
84
|
*
|
|
73
85
|
* 낱말을 말하지 않은 오더는 **그대로 센다**(지금까지의 거동이다 — 커널이 낱말 없이 세운 오더가 있고
|
|
74
86
|
* 미러의 옛 행도 그렇다). 다만 그 수는 세어서 답에 싣는다(§`splitFlowOrders`) — 「입고가 아니라고
|
|
75
87
|
* 판단한 것」과 「판단할 근거가 없던 것」은 다른 사실이다.
|
|
76
88
|
*/
|
|
77
89
|
export function isFlowOrder(o) {
|
|
78
|
-
|
|
90
|
+
const kind = String(o?.kind ?? '').trim();
|
|
91
|
+
return !WMS_RECEIVING_ORDER_KINDS.includes(kind);
|
|
79
92
|
}
|
|
80
93
|
/**
|
|
81
94
|
* 흐름 지표가 셀 오더를 골라 내고, **골라 낸 근거의 질을 함께 낸다.**
|
|
@@ -85,19 +98,19 @@ export function isFlowOrder(o) {
|
|
|
85
98
|
*/
|
|
86
99
|
export function splitFlowOrders(orders) {
|
|
87
100
|
const flow = [];
|
|
88
|
-
let
|
|
101
|
+
let receiving = 0;
|
|
89
102
|
let kindless = 0;
|
|
90
103
|
for (const o of orders ?? []) {
|
|
91
104
|
const kind = String(o?.kind ?? '').trim();
|
|
92
|
-
if (kind
|
|
93
|
-
|
|
105
|
+
if (WMS_RECEIVING_ORDER_KINDS.includes(kind)) {
|
|
106
|
+
receiving++;
|
|
94
107
|
continue;
|
|
95
108
|
}
|
|
96
109
|
if (!kind)
|
|
97
110
|
kindless++;
|
|
98
111
|
flow.push(o);
|
|
99
112
|
}
|
|
100
|
-
return { flow,
|
|
113
|
+
return { flow, receiving, kindless };
|
|
101
114
|
}
|
|
102
115
|
/**
|
|
103
116
|
* WMS 자리 타입 카탈로그 — 커널이 실제로 키로 쓰는 로케이션 타입(locationByType/slotViews).
|
package/dist-cjs/index.cjs
CHANGED
|
@@ -89,6 +89,7 @@ __export(index_exports, {
|
|
|
89
89
|
WEBHOOK_TOO_MANY: () => WEBHOOK_TOO_MANY,
|
|
90
90
|
WMS_LOCATION_TYPES: () => WMS_LOCATION_TYPES,
|
|
91
91
|
WMS_ORDER_KIND: () => WMS_ORDER_KIND,
|
|
92
|
+
WMS_RECEIVING_ORDER_KINDS: () => WMS_RECEIVING_ORDER_KINDS,
|
|
92
93
|
WMS_TYPES: () => WMS_TYPES,
|
|
93
94
|
YARD_BIZSTEP: () => YARD_BIZSTEP,
|
|
94
95
|
YMS_LOCATION_TYPES: () => YMS_LOCATION_TYPES,
|
|
@@ -174,6 +175,7 @@ __export(index_exports, {
|
|
|
174
175
|
isOrderTerminal: () => isOrderTerminal,
|
|
175
176
|
isPlannedStopStatus: () => isPlannedStopStatus,
|
|
176
177
|
isResourceKind: () => isResourceKind,
|
|
178
|
+
isTestSpecificationBasis: () => isTestSpecificationBasis,
|
|
177
179
|
isTransformationRecord: () => isTransformationRecord,
|
|
178
180
|
isWebhookDeliveryCode: () => isWebhookDeliveryCode,
|
|
179
181
|
isWebhookSecretSegment: () => isWebhookSecretSegment,
|
|
@@ -587,8 +589,26 @@ function testEvidenceGaps(spec, result) {
|
|
|
587
589
|
unmatched: measurements.map((m) => m.testableObjectPropertyId).filter((k) => !!k && !wanted.has(k))
|
|
588
590
|
};
|
|
589
591
|
}
|
|
592
|
+
function isTestSpecificationBasis(value) {
|
|
593
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) return false;
|
|
594
|
+
const basis = value;
|
|
595
|
+
if (!["id", "revisionId", "planId", "contentHash", "businessTime"].every((key) => typeof basis[key] === "string" && basis[key].trim())) return false;
|
|
596
|
+
if (!Number.isFinite(Date.parse(basis.businessTime))) return false;
|
|
597
|
+
return Array.isArray(basis.criteria) && basis.criteria.every((c) => {
|
|
598
|
+
if (!c || typeof c !== "object" || Array.isArray(c) || typeof c.id !== "string" || !c.id.trim()) return false;
|
|
599
|
+
if (["description", "expression", "evaluatedPropertyId"].some((key) => c[key] !== void 0 && typeof c[key] !== "string")) return false;
|
|
600
|
+
if (c.limit === void 0) return true;
|
|
601
|
+
const limit = c.limit;
|
|
602
|
+
if (!limit || typeof limit !== "object" || Array.isArray(limit)) return false;
|
|
603
|
+
if (["minimum", "maximum"].some((key) => limit[key] !== void 0 && (typeof limit[key] !== "number" || !Number.isFinite(limit[key])))) return false;
|
|
604
|
+
if (limit.uom !== void 0 && typeof limit.uom !== "string") return false;
|
|
605
|
+
return !(limit.minimum !== void 0 && limit.maximum !== void 0 && limit.minimum > limit.maximum);
|
|
606
|
+
});
|
|
607
|
+
}
|
|
590
608
|
function judgeAgainstSpec(spec, result) {
|
|
591
|
-
const
|
|
609
|
+
const basis = result?.specificationBasis;
|
|
610
|
+
if (basis !== void 0 && !isTestSpecificationBasis(basis)) return void 0;
|
|
611
|
+
const criteria = (basis ? basis.criteria : spec?.criteria ?? []).filter((c) => !criterionSaysNothing(c));
|
|
592
612
|
if (!criteria.length) return void 0;
|
|
593
613
|
const measurements = result?.propertyMeasurements ?? [];
|
|
594
614
|
let allJudged = true;
|
|
@@ -1315,23 +1335,25 @@ var WMS_ORDER_KIND = {
|
|
|
1315
1335
|
/** Stock transfer between sites. CBV has no document type for it: carry the id without a type. */
|
|
1316
1336
|
transfer: "transfer"
|
|
1317
1337
|
};
|
|
1338
|
+
var WMS_RECEIVING_ORDER_KINDS = [WMS_ORDER_KIND.inbound, WMS_ORDER_KIND.return];
|
|
1318
1339
|
function isFlowOrder(o) {
|
|
1319
|
-
|
|
1340
|
+
const kind = String(o?.kind ?? "").trim();
|
|
1341
|
+
return !WMS_RECEIVING_ORDER_KINDS.includes(kind);
|
|
1320
1342
|
}
|
|
1321
1343
|
function splitFlowOrders(orders) {
|
|
1322
1344
|
const flow = [];
|
|
1323
|
-
let
|
|
1345
|
+
let receiving = 0;
|
|
1324
1346
|
let kindless = 0;
|
|
1325
1347
|
for (const o of orders ?? []) {
|
|
1326
1348
|
const kind = String(o?.kind ?? "").trim();
|
|
1327
|
-
if (kind
|
|
1328
|
-
|
|
1349
|
+
if (WMS_RECEIVING_ORDER_KINDS.includes(kind)) {
|
|
1350
|
+
receiving++;
|
|
1329
1351
|
continue;
|
|
1330
1352
|
}
|
|
1331
1353
|
if (!kind) kindless++;
|
|
1332
1354
|
flow.push(o);
|
|
1333
1355
|
}
|
|
1334
|
-
return { flow,
|
|
1356
|
+
return { flow, receiving, kindless };
|
|
1335
1357
|
}
|
|
1336
1358
|
var WMS_LOCATION_TYPES = ["dock", "storage", "staging", "dock-ship", "vas-station"];
|
|
1337
1359
|
var WMS_LOCATION_LEVEL = {
|
|
@@ -3884,8 +3906,15 @@ var SPECS = {
|
|
|
3884
3906
|
expiresAt: "string",
|
|
3885
3907
|
derived: "boolean",
|
|
3886
3908
|
propertyMeasurements: "object[]",
|
|
3909
|
+
specificationBasis: "object",
|
|
3887
3910
|
recordTime: "string"
|
|
3888
3911
|
},
|
|
3912
|
+
shapes: {
|
|
3913
|
+
specificationBasis: {
|
|
3914
|
+
required: ["id", "revisionId", "planId", "contentHash", "businessTime", "criteria"],
|
|
3915
|
+
fields: { id: "string", revisionId: "string", planId: "string", contentHash: "string", businessTime: "string" }
|
|
3916
|
+
}
|
|
3917
|
+
},
|
|
3889
3918
|
enums: { result: ["pass", "fail"] }
|
|
3890
3919
|
},
|
|
3891
3920
|
/*
|
|
@@ -4060,6 +4089,9 @@ function ingestOperationalRecords(records, opts) {
|
|
|
4060
4089
|
}
|
|
4061
4090
|
}
|
|
4062
4091
|
}
|
|
4092
|
+
if (kind === "test" && r.specificationBasis !== void 0 && !isTestSpecificationBasis(r.specificationBasis)) {
|
|
4093
|
+
errors.push("test.specificationBasis: invalid pinned specification evidence");
|
|
4094
|
+
}
|
|
4063
4095
|
const closedPeriodEnd = kind === "equipment-period" ? String(r.to ?? "").trim() : "";
|
|
4064
4096
|
const at2 = closedPeriodEnd || String(r.at ?? "").trim() || opts.defaultEventTime;
|
|
4065
4097
|
const atMs = at2 ? Date.parse(at2) : Number.NaN;
|
|
@@ -4797,6 +4829,7 @@ function nonEmpty(value) {
|
|
|
4797
4829
|
WEBHOOK_TOO_MANY,
|
|
4798
4830
|
WMS_LOCATION_TYPES,
|
|
4799
4831
|
WMS_ORDER_KIND,
|
|
4832
|
+
WMS_RECEIVING_ORDER_KINDS,
|
|
4800
4833
|
WMS_TYPES,
|
|
4801
4834
|
YARD_BIZSTEP,
|
|
4802
4835
|
YMS_LOCATION_TYPES,
|
|
@@ -4882,6 +4915,7 @@ function nonEmpty(value) {
|
|
|
4882
4915
|
isOrderTerminal,
|
|
4883
4916
|
isPlannedStopStatus,
|
|
4884
4917
|
isResourceKind,
|
|
4918
|
+
isTestSpecificationBasis,
|
|
4885
4919
|
isTransformationRecord,
|
|
4886
4920
|
isWebhookDeliveryCode,
|
|
4887
4921
|
isWebhookSecretSegment,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/ops-contract",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.31",
|
|
4
4
|
"description": "Operations domain contract — the standard vocabulary that producers and readers agree on (EPCIS 2.0/GS1, ISA-95, IEC 61850/ISO 50001). Types, guards, validation. No state, no engine.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist-cjs/index.cjs",
|