@things-factory/ops-master 10.1.46 → 10.1.79

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.
@@ -70,7 +70,7 @@ export * from './quality/nonconformance-cause';
70
70
  import { MasterConformanceResolver } from './master-conformance-resolver';
71
71
  import { MasterChangePolicy, MasterChangePolicyResolver } from './master-change-policy';
72
72
  import { MasterValueClaim } from './assignment/master-value-claim';
73
- export declare const entities: (typeof import("./location/operational-location").OperationalLocation | typeof import("./personnel/personnel-class").PersonnelClass | typeof import("./personnel/person").Person | typeof import("./equipment/equipment").Equipment | typeof import("./quality/nonconformance-cause").NonconformanceCause | typeof import("./asset/physical-asset").PhysicalAsset | typeof import("./material/material-definition").MaterialDefinition | typeof import("./operation/operation-definition").OperationDefinition | typeof import("./test-spec/test-specification").TestSpecification | typeof import("./recipe").RouteDefinition | typeof import("./recipe").RecipeDefinition | typeof MasterChangePolicy | typeof import("./material/material-revision").MaterialDefinitionRevision | typeof import("./material/material-revision").MaterialDefinitionPlan | typeof import("./material/material-revision").MaterialDefinitionSegment | typeof import("./material/material-revision").MaterialDefinitionBasis | typeof import("./recipe/recipe-revision").RecipeRevision | typeof import("./recipe/recipe-revision-line").RecipeRevisionOutput | typeof import("./recipe/recipe-revision").RecipePlan | typeof import("./recipe/recipe-revision").RecipeSegment | typeof import("./recipe/recipe-revision").RecipeBasis | typeof import("./test-spec/test-spec-revision").TestSpecificationRevision | typeof import("./test-spec/test-spec-revision").TestSpecificationPlan | typeof import("./test-spec/test-spec-revision").TestSpecificationSegment | typeof import("./test-spec/test-spec-revision").TestSpecificationBasis | typeof MasterValueClaim)[];
73
+ export declare const entities: (typeof import("./test-spec/test-spec-revision").TestSpecificationRevision | typeof import("./test-spec/test-spec-revision").TestSpecificationPlan | typeof import("./test-spec/test-spec-revision").TestSpecificationSegment | typeof import("./test-spec/test-spec-revision").TestSpecificationBasis | typeof import("./location/operational-location").OperationalLocation | typeof import("./personnel/personnel-class").PersonnelClass | typeof import("./personnel/person").Person | typeof import("./operation/operation-definition").OperationDefinition | typeof import("./asset/physical-asset").PhysicalAsset | typeof MasterChangePolicy | typeof import("./equipment/equipment").Equipment | typeof import("./quality/nonconformance-cause").NonconformanceCause | typeof import("./material/material-definition").MaterialDefinition | typeof import("./test-spec/test-specification").TestSpecification | typeof import("./recipe").RouteDefinition | typeof import("./recipe").RecipeDefinition | typeof import("./material/material-revision").MaterialDefinitionRevision | typeof import("./material/material-revision").MaterialDefinitionPlan | typeof import("./material/material-revision").MaterialDefinitionSegment | typeof import("./material/material-revision").MaterialDefinitionBasis | typeof import("./recipe/recipe-revision").RecipeRevision | typeof import("./recipe/recipe-revision-line").RecipeRevisionOutput | typeof import("./recipe/recipe-revision").RecipePlan | typeof import("./recipe/recipe-revision").RecipeSegment | typeof import("./recipe/recipe-revision").RecipeBasis | typeof MasterValueClaim)[];
74
74
  export declare const schema: {
75
75
  resolverClasses: (typeof MasterChangePolicyResolver | typeof import("./personnel/personnel-master-resolver").PersonnelClassResolver | typeof import("./personnel/personnel-master-resolver").PersonResolver | typeof import("./equipment/equipment-master-resolver").EquipmentClassResolver | typeof import("./equipment/equipment-master-resolver").EquipmentResolver | typeof import("./equipment/equipment-master-resolver").StopReasonResolver | typeof import("./asset/asset-master-resolver").PhysicalAssetClassResolver | typeof import("./asset/asset-master-resolver").PhysicalAssetResolver | typeof import("./material/material-master-resolver").MaterialClassResolver | typeof import("./material/material-master-resolver").MaterialDefinitionResolver | typeof import("./location/location-master-resolver").OperationalLocationResolver | typeof import("./operation/operation-master-resolver").OperationDefinitionResolver | typeof import("./recipe/recipe-master-resolver").RecipeDefinitionResolver | typeof import("./recipe/recipe-master-resolver").RouteDefinitionResolver | typeof import("./test-spec/test-spec-master-resolver").TestSpecificationResolver | typeof MasterConformanceResolver | typeof import("./personnel/personnel-query").PersonnelQuery | typeof import("./equipment/equipment-query").EquipmentQuery | typeof import("./asset/asset-query").AssetQuery | typeof import("./location/location-query").LocationQuery | typeof import("./material/material-revision-resolver").MaterialDefinitionRevisionResolver | typeof import("./material/material-query").MaterialQuery | typeof import("./operation/operation-query").OperationQuery | typeof import("./operation/operation-readiness-resolver").OperationReadinessResolver | typeof import("./recipe/recipe-revision-resolver").RecipeRevisionResolver | typeof import("./recipe/recipe-query").RecipeQuery | typeof import("./test-spec/test-spec-revision-resolver").TestSpecificationRevisionResolver | typeof import("./test-spec/test-spec-query").TestSpecificationQuery | typeof import("./status/master-status").OpsMasterStatusQuery | typeof import("./equipment/stop-reason-query").StopReasonQuery | typeof import("./quality/nonconformance-cause-resolver").NonconformanceCauseResolver)[];
76
76
  };
@@ -7,6 +7,8 @@ export interface LocationEntry {
7
7
  parallelism?: number;
8
8
  parentId?: string;
9
9
  level?: string;
10
+ /** 이 자리를 정의하는 영역(`wms` · `mes` …) — 같은 현장을 비추는 렌즈가 자기 자리와 참조할 자리를 가른다(ADR-0081 보탬). */
11
+ system?: string;
10
12
  properties?: unknown[];
11
13
  testSpecificationIds?: string[];
12
14
  effectiveStart?: string;
@@ -15,6 +15,7 @@ function toLocationEntry(location) {
15
15
  (0, resource_class_1.put)(out, 'parallelism', location.parallelism === undefined || location.parallelism === null ? undefined : Number(location.parallelism));
16
16
  (0, resource_class_1.put)(out, 'parentId', location.parentId);
17
17
  (0, resource_class_1.put)(out, 'level', location.level);
18
+ (0, resource_class_1.put)(out, 'system', location.system);
18
19
  (0, resource_class_1.put)(out, 'properties', location.properties);
19
20
  (0, resource_class_1.put)(out, 'testSpecificationIds', location.testSpecificationIds);
20
21
  (0, resource_class_1.put)(out, 'effectiveStart', (0, resource_class_1.iso)(location.effectiveStart));
@@ -1 +1 @@
1
- {"version":3,"file":"location-master.js","sourceRoot":"","sources":["../../../server/service/location/location-master.ts"],"names":[],"mappings":";;AAuBA,0CAaC;AAED,wCAEC;AAxCD,+DAAqD;AAiBrD;;;;;GAKG;AACH,SAAgB,eAAe,CAAC,QAA6B;IAC3D,MAAM,GAAG,GAA4B,EAAE,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../resource/resource-class'\nimport type { OperationalLocation } from './operational-location'\n\n/** 트윈 `ReferenceMaster.locations` 의 한 항목. */\nexport interface LocationEntry {\n id: string\n type: string\n capacity?: number\n parallelism?: number\n parentId?: string\n level?: string\n properties?: unknown[]\n testSpecificationIds?: string[]\n effectiveStart?: string\n effectiveEnd?: string\n}\n\n/**\n * 자리를 트윈이 받는 모양으로 옮긴다.\n *\n * **용량이 없으면 칸을 만들지 않는다.** 계약은 `capacity` 를 필수로 적지만, 모르는 값을 임의로 채우면\n * 물품 하나에 포화 경고가 난다. 비워 보내고 받는 쪽이 「모른다」로 다루게 한다.\n */\nexport function toLocationEntry(location: OperationalLocation): LocationEntry {\n const out: Record<string, unknown> = { id: location.name, type: location.type }\n\n put(out, 'capacity', location.capacity === undefined || location.capacity === null ? undefined : Number(location.capacity))\n put(out, 'parallelism', location.parallelism === undefined || location.parallelism === null ? undefined : Number(location.parallelism))\n put(out, 'parentId', location.parentId)\n put(out, 'level', location.level)\n put(out, 'properties', location.properties)\n put(out, 'testSpecificationIds', location.testSpecificationIds)\n put(out, 'effectiveStart', iso(location.effectiveStart))\n put(out, 'effectiveEnd', iso(location.effectiveEnd))\n\n return out as unknown as LocationEntry\n}\n\nexport function locationMaster(locations: OperationalLocation[]): { locations: LocationEntry[] } {\n return { locations: locations.map(toLocationEntry) }\n}\n"]}
1
+ {"version":3,"file":"location-master.js","sourceRoot":"","sources":["../../../server/service/location/location-master.ts"],"names":[],"mappings":";;AAyBA,0CAcC;AAED,wCAEC;AA3CD,+DAAqD;AAmBrD;;;;;GAKG;AACH,SAAgB,eAAe,CAAC,QAA6B;IAC3D,MAAM,GAAG,GAA4B,EAAE,EAAE,EAAE,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAA;IAE/E,IAAA,oBAAG,EAAC,GAAG,EAAE,UAAU,EAAE,QAAQ,CAAC,QAAQ,KAAK,SAAS,IAAI,QAAQ,CAAC,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAA;IAC3H,IAAA,oBAAG,EAAC,GAAG,EAAE,aAAa,EAAE,QAAQ,CAAC,WAAW,KAAK,SAAS,IAAI,QAAQ,CAAC,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAA;IACvI,IAAA,oBAAG,EAAC,GAAG,EAAE,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAA;IACvC,IAAA,oBAAG,EAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAA;IACjC,IAAA,oBAAG,EAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IACnC,IAAA,oBAAG,EAAC,GAAG,EAAE,YAAY,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAA;IAC3C,IAAA,oBAAG,EAAC,GAAG,EAAE,sBAAsB,EAAE,QAAQ,CAAC,oBAAoB,CAAC,CAAA;IAC/D,IAAA,oBAAG,EAAC,GAAG,EAAE,gBAAgB,EAAE,IAAA,oBAAG,EAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAA;IACxD,IAAA,oBAAG,EAAC,GAAG,EAAE,cAAc,EAAE,IAAA,oBAAG,EAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAA;IAEpD,OAAO,GAA+B,CAAA;AACxC,CAAC;AAED,SAAgB,cAAc,CAAC,SAAgC;IAC7D,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC,EAAE,CAAA;AACtD,CAAC","sourcesContent":["import { iso, put } from '../resource/resource-class'\nimport type { OperationalLocation } from './operational-location'\n\n/** 트윈 `ReferenceMaster.locations` 의 한 항목. */\nexport interface LocationEntry {\n id: string\n type: string\n capacity?: number\n parallelism?: number\n parentId?: string\n level?: string\n /** 이 자리를 정의하는 영역(`wms` · `mes` …) — 같은 현장을 비추는 렌즈가 자기 자리와 참조할 자리를 가른다(ADR-0081 보탬). */\n system?: string\n properties?: unknown[]\n testSpecificationIds?: string[]\n effectiveStart?: string\n effectiveEnd?: string\n}\n\n/**\n * 자리를 트윈이 받는 모양으로 옮긴다.\n *\n * **용량이 없으면 칸을 만들지 않는다.** 계약은 `capacity` 를 필수로 적지만, 모르는 값을 임의로 채우면\n * 물품 하나에 포화 경고가 난다. 비워 보내고 받는 쪽이 「모른다」로 다루게 한다.\n */\nexport function toLocationEntry(location: OperationalLocation): LocationEntry {\n const out: Record<string, unknown> = { id: location.name, type: location.type }\n\n put(out, 'capacity', location.capacity === undefined || location.capacity === null ? undefined : Number(location.capacity))\n put(out, 'parallelism', location.parallelism === undefined || location.parallelism === null ? undefined : Number(location.parallelism))\n put(out, 'parentId', location.parentId)\n put(out, 'level', location.level)\n put(out, 'system', location.system)\n put(out, 'properties', location.properties)\n put(out, 'testSpecificationIds', location.testSpecificationIds)\n put(out, 'effectiveStart', iso(location.effectiveStart))\n put(out, 'effectiveEnd', iso(location.effectiveEnd))\n\n return out as unknown as LocationEntry\n}\n\nexport function locationMaster(locations: OperationalLocation[]): { locations: LocationEntry[] } {\n return { locations: locations.map(toLocationEntry) }\n}\n"]}
@@ -2,5 +2,5 @@ import { TestSpecification } from './test-specification';
2
2
  import { TestSpecificationQuery } from './test-spec-query';
3
3
  import { TestSpecificationResolver } from './test-spec-master-resolver';
4
4
  import { TestSpecificationRevisionResolver } from './test-spec-revision-resolver';
5
- export declare const entities: (typeof TestSpecification | typeof import("./test-spec-revision").TestSpecificationRevision | typeof import("./test-spec-revision").TestSpecificationPlan | typeof import("./test-spec-revision").TestSpecificationSegment | typeof import("./test-spec-revision").TestSpecificationBasis)[];
5
+ export declare const entities: (typeof import("./test-spec-revision").TestSpecificationRevision | typeof import("./test-spec-revision").TestSpecificationPlan | typeof import("./test-spec-revision").TestSpecificationSegment | typeof import("./test-spec-revision").TestSpecificationBasis | typeof TestSpecification)[];
6
6
  export declare const resolvers: (typeof TestSpecificationResolver | typeof TestSpecificationRevisionResolver | typeof TestSpecificationQuery)[];