@things-factory/ops-master 10.1.288 → 10.1.290

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.
@@ -4,6 +4,8 @@ import type { EquipmentClass } from './equipment-class';
4
4
  /** 트윈 `ReferenceMaster.equipment` 의 한 항목. */
5
5
  export interface EquipmentEntry {
6
6
  id: string;
7
+ /** 사람이 부르는 이름 — 마스터의 `name` 은 식별자(`id`)로 나가고, 이름은 `description` 에 있다(품목 · 자리와 같은 모양). */
8
+ description?: string;
7
9
  kind: string;
8
10
  equipmentClassIds?: string[];
9
11
  homeLocation: string;
@@ -26,6 +26,7 @@ function toEquipmentEntry(equipment) {
26
26
  * 등급은 비어 있을 수 있다. 비면 커널이 `kind` 하나로 소속을 정한다 — 예전과 같다.
27
27
  * 빈 배열을 내보내지 않는 것은 `put` 이 든다(값이 없으면 칸을 만들지 않는다).
28
28
  */
29
+ (0, resource_class_1.put)(out, 'description', equipment.description);
29
30
  (0, resource_class_1.put)(out, 'equipmentClassIds', equipment.equipmentClassIds);
30
31
  (0, resource_class_1.put)(out, 'identity', equipment.identity);
31
32
  (0, resource_class_1.put)(out, 'mtbfMs', equipment.mtbfMs === undefined || equipment.mtbfMs === null ? undefined : Number(equipment.mtbfMs));
@@ -2,6 +2,8 @@ import type { OperationalLocation } from './operational-location';
2
2
  /** 트윈 `ReferenceMaster.locations` 의 한 항목. */
3
3
  export interface LocationEntry {
4
4
  id: string;
5
+ /** 사람이 부르는 이름 — 마스터의 `name` 은 식별자(`id`)로 나가고, 이름은 `description` 에 있다(품목 · 설비와 같은 모양). */
6
+ description?: string;
5
7
  type: string;
6
8
  capacity?: number;
7
9
  parallelism?: number;
@@ -11,6 +11,7 @@ const resource_class_1 = require("../resource/resource-class");
11
11
  */
12
12
  function toLocationEntry(location) {
13
13
  const out = { id: location.name, type: location.type };
14
+ (0, resource_class_1.put)(out, 'description', location.description);
14
15
  (0, resource_class_1.put)(out, 'capacity', location.capacity === undefined || location.capacity === null ? undefined : Number(location.capacity));
15
16
  (0, resource_class_1.put)(out, 'parallelism', location.parallelism === undefined || location.parallelism === null ? undefined : Number(location.parallelism));
16
17
  (0, resource_class_1.put)(out, 'parentId', location.parentId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/ops-master",
3
- "version": "10.1.288",
3
+ "version": "10.1.290",
4
4
  "main": "dist-server/index.js",
5
5
  "things-factory": true,
6
6
  "author": "heartyoh <heartyoh@hatiolab.com>",
@@ -36,16 +36,16 @@
36
36
  "@operato/help": "^10.29.39",
37
37
  "@operato/i18n": "^10.0.0",
38
38
  "@operato/layout": "^10.29.39",
39
- "@operato/ops-contract": "^0.9.38",
39
+ "@operato/ops-contract": "^0.9.43",
40
40
  "@operato/p13n": "^10.29.39",
41
41
  "@operato/popup": "^10.29.39",
42
42
  "@operato/shell": "^10.29.69",
43
43
  "@operato/styles": "^10.0.0",
44
44
  "@operato/utils": "^10.29.39",
45
- "@things-factory/auth-base": "^10.1.283",
45
+ "@things-factory/auth-base": "^10.1.290",
46
46
  "@things-factory/env": "^10.1.281",
47
- "@things-factory/shell": "^10.1.283",
48
- "@things-factory/worklist": "^10.1.288"
47
+ "@things-factory/shell": "^10.1.290",
48
+ "@things-factory/worklist": "^10.1.290"
49
49
  },
50
50
  "browser": "dist-client/index.js",
51
51
  "files": [
@@ -67,5 +67,5 @@
67
67
  "copyfiles": "^2.4.1",
68
68
  "rimraf": "^6.1.3"
69
69
  },
70
- "gitHead": "78eaee46dd9b425ed845b02952b082f35a0faca7"
70
+ "gitHead": "b3d769457fc4976b73726bb1556b5036351f1b10"
71
71
  }