@uns-kit/cli 2.0.60 → 2.0.62

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uns-kit/cli",
3
- "version": "2.0.60",
3
+ "version": "2.0.62",
4
4
  "description": "Command line scaffolding tool for UNS applications",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -26,13 +26,13 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "azure-devops-node-api": "^15.1.1",
29
- "@uns-kit/core": "2.0.60"
29
+ "@uns-kit/core": "2.0.62"
30
30
  },
31
31
  "unsKitPackages": {
32
- "@uns-kit/core": "2.0.60",
33
- "@uns-kit/api": "2.0.60",
34
- "@uns-kit/cron": "2.0.60",
35
- "@uns-kit/database": "2.0.59"
32
+ "@uns-kit/core": "2.0.62",
33
+ "@uns-kit/api": "2.0.61",
34
+ "@uns-kit/cron": "2.0.62",
35
+ "@uns-kit/database": "2.0.62"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "tsc -p tsconfig.build.json",
@@ -41,6 +41,7 @@ const asset = resolveGeneratedAsset("asset");
41
41
  const materialObjectType = GeneratedObjectTypes["material"];
42
42
  const currentMaterialId = "1124";
43
43
  const previousMaterialId = "112";
44
+ const mergedParentMaterialIds = ["1122", "1123"];
44
45
 
45
46
  try {
46
47
  await mqttOutput.publishMqttMessage({
@@ -72,6 +73,30 @@ try {
72
73
  value: previousMaterialId,
73
74
  },
74
75
  },
76
+ {
77
+ attribute: "previous-materials",
78
+ description: "Previous material ObjectIds that were joined into this material.",
79
+ valueType: "array<string>",
80
+ systemRole: "relationship-evidence",
81
+ relationshipEvidence: {
82
+ relationshipKey: "material-merge",
83
+ ownerEndpoint: "target",
84
+ valueEndpoint: "source",
85
+ sourceObjectType: materialObjectType,
86
+ targetObjectType: materialObjectType,
87
+ sourceObjectIdFrom: "value[]",
88
+ targetObjectIdFrom: "ownerObjectId",
89
+ observedAtFrom: "packetTimestamp",
90
+ defaultStatus: "suggested",
91
+ },
92
+ data: {
93
+ dataGroup: "material-lineage",
94
+ time,
95
+ currentMaterialObjectId: currentMaterialId,
96
+ operationId: "weld-1122-1123",
97
+ value: mergedParentMaterialIds,
98
+ },
99
+ },
75
100
  {
76
101
  attribute: "process-state",
77
102
  description: "Material lifecycle state in this process stage.",