@uns-kit/core 1.0.7 → 1.0.10

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.
Files changed (37) hide show
  1. package/README.md +18 -0
  2. package/dist/tools/generate-uns-dictionary.d.ts +3 -0
  3. package/dist/tools/generate-uns-dictionary.d.ts.map +1 -0
  4. package/dist/tools/generate-uns-dictionary.js +270 -0
  5. package/dist/tools/generate-uns-dictionary.js.map +1 -0
  6. package/dist/tools/initialize.d.ts.map +1 -0
  7. package/dist/tools/initialize.js.map +1 -0
  8. package/dist/tools/make.d.ts.map +1 -0
  9. package/dist/tools/make.js.map +1 -0
  10. package/dist/tools/update-rtt.d.ts.map +1 -0
  11. package/dist/tools/update-rtt.js.map +1 -0
  12. package/dist/tools/update-tools.d.ts.map +1 -0
  13. package/dist/tools/update-tools.js.map +1 -0
  14. package/dist/uns/uns-attributes.d.ts +6 -143
  15. package/dist/uns/uns-attributes.d.ts.map +1 -1
  16. package/dist/uns/uns-attributes.js +7 -180
  17. package/dist/uns/uns-attributes.js.map +1 -1
  18. package/dist/uns/uns-dictionary.generated.d.ts +83 -0
  19. package/dist/uns/uns-dictionary.generated.d.ts.map +1 -0
  20. package/dist/uns/uns-dictionary.generated.js +160 -0
  21. package/dist/uns/uns-dictionary.generated.js.map +1 -0
  22. package/dist/uns/uns-interfaces.d.ts +4 -0
  23. package/dist/uns/uns-interfaces.d.ts.map +1 -1
  24. package/dist/uns/uns-interfaces.js.map +1 -1
  25. package/dist/uns/uns-object.d.ts +14 -38
  26. package/dist/uns/uns-object.d.ts.map +1 -1
  27. package/dist/uns/uns-object.js +4 -61
  28. package/dist/uns/uns-object.js.map +1 -1
  29. package/dist/uns/uns-proxy.d.ts.map +1 -1
  30. package/dist/uns/uns-proxy.js +2 -0
  31. package/dist/uns/uns-proxy.js.map +1 -1
  32. package/dist/uns-grpc/uns-gateway-server.js +1 -1
  33. package/dist/uns-grpc/uns-gateway-server.js.map +1 -1
  34. package/dist/uns-mqtt/uns-mqtt-proxy.d.ts.map +1 -1
  35. package/dist/uns-mqtt/uns-mqtt-proxy.js +4 -1
  36. package/dist/uns-mqtt/uns-mqtt-proxy.js.map +1 -1
  37. package/package.json +1 -1
@@ -1,181 +1,8 @@
1
- // Flat list of common UNS attributes (add your own as needed).
2
- export const knownUnsAttributes = [
3
- "measured-temperature",
4
- "measured-vibration",
5
- "measured-pressure",
6
- "measured-flow",
7
- "temperature",
8
- "status",
9
- "operating-hours",
10
- "fault-code",
11
- "speed",
12
- "energy-consumption",
13
- "power",
14
- "voltage",
15
- "current",
16
- "energy",
17
- "lot",
18
- "lot-id",
19
- "batch-number",
20
- "material-type",
21
- "quantity",
22
- "location",
23
- "presence",
24
- "task-id",
25
- "assigned-task",
26
- "role",
27
- "start-time",
28
- "end-time",
29
- "duration",
30
- "output-quantity",
31
- "product-code",
32
- "revision",
33
- "specification",
34
- "target-parameters",
35
- "material-composition",
36
- "version-history",
37
- "inspection-result",
38
- "deviation",
39
- "pass-fail",
40
- "surface-defect",
41
- "hardness",
42
- "tensile-strength",
43
- "work-order-id",
44
- "task-list",
45
- "planned-start",
46
- "planned-end",
47
- "assigned-to",
48
- "instruction-url",
49
- "pressure",
50
- "flow",
51
- "consumption",
52
- "alarm",
53
- "availability",
54
- "utilization",
55
- "downtime",
56
- "maintenance-status",
57
- "frequency",
58
- "cost",
59
- "total-flow",
60
- "conductivity",
61
- "ph",
62
- "level",
63
- "consumption-rate",
64
- "refill-required",
65
- "last-refill",
66
- ];
67
- // Convenience attribute groups per object type (optional to use).
68
- export const EquipmentAttributes = {
69
- Status: "status",
70
- MeasuredTemperature: "measured-temperature",
71
- MeasuredVibration: "measured-vibration",
72
- MeasuredPressure: "measured-pressure",
73
- MeasuredFlow: "measured-flow",
74
- OperatingHours: "operating-hours",
75
- FaultCode: "fault-code",
76
- Speed: "speed",
77
- EnergyConsumption: "energy-consumption",
78
- Power: "power",
79
- Voltage: "voltage",
80
- Current: "current",
81
- Energy: "energy",
82
- };
83
- export const MaterialAttributes = {
84
- Lot: "lot",
85
- LotId: "lot-id",
86
- BatchNumber: "batch-number",
87
- MaterialType: "material-type",
88
- Quantity: "quantity",
89
- Location: "location",
90
- Status: "status",
91
- };
92
- export const PersonnelAttributes = {
93
- Presence: "presence",
94
- TaskId: "task-id",
95
- AssignedTask: "assigned-task",
96
- Role: "role",
97
- Status: "status",
98
- };
99
- export const ProcessSegmentAttributes = {
100
- StartTime: "start-time",
101
- EndTime: "end-time",
102
- Duration: "duration",
103
- Status: "status",
104
- OutputQuantity: "output-quantity",
105
- };
106
- export const ProductDefinitionAttributes = {
107
- ProductCode: "product-code",
108
- Revision: "revision",
109
- Specification: "specification",
110
- TargetParameters: "target-parameters",
111
- MaterialComposition: "material-composition",
112
- VersionHistory: "version-history",
113
- };
114
- export const ProductQualityAttributes = {
115
- InspectionResult: "inspection-result",
116
- Deviation: "deviation",
117
- PassFail: "pass-fail",
118
- SurfaceDefect: "surface-defect",
119
- Hardness: "hardness",
120
- TensileStrength: "tensile-strength",
121
- };
122
- export const WorkDefinitionAttributes = {
123
- WorkOrderId: "work-order-id",
124
- TaskList: "task-list",
125
- PlannedStart: "planned-start",
126
- PlannedEnd: "planned-end",
127
- AssignedTo: "assigned-to",
128
- InstructionUrl: "instruction-url",
129
- };
130
- export const ResourceStatusAttributes = {
131
- Availability: "availability",
132
- Utilization: "utilization",
133
- Downtime: "downtime",
134
- Status: "status",
135
- MaintenanceStatus: "maintenance-status",
136
- };
137
- export const EnergyResourceAttributes = {
138
- Power: "power",
139
- Energy: "energy",
140
- Voltage: "voltage",
141
- Current: "current",
142
- Frequency: "frequency",
143
- Cost: "cost",
144
- };
145
- export const UtilityResourceAttributes = {
146
- Pressure: "pressure",
147
- Flow: "flow",
148
- Consumption: "consumption",
149
- Status: "status",
150
- Alarm: "alarm",
151
- };
152
- export const FluidResourceAttributes = {
153
- Flow: "flow",
154
- Pressure: "pressure",
155
- Temperature: "temperature",
156
- TotalFlow: "total-flow",
157
- Conductivity: "conductivity",
158
- PH: "ph",
159
- };
160
- export const ConsumableResourceAttributes = {
161
- Level: "level",
162
- ConsumptionRate: "consumption-rate",
163
- RefillRequired: "refill-required",
164
- LastRefill: "last-refill",
165
- Status: "status",
166
- };
167
- // Generic fallbacks for structural types
168
- export const LineAttributes = { Status: "status" };
169
- export const AreaAttributes = { Status: "status" };
170
- export const SiteAttributes = { Status: "status" };
171
- export const EnterpriseAttributes = { Status: "status" };
172
- export const AssetAttributes = { Status: "status" };
173
- export const SensorAttributes = {
174
- Status: "status",
175
- MeasuredTemperature: "measured-temperature",
176
- MeasuredVibration: "measured-vibration",
177
- MeasuredPressure: "measured-pressure",
178
- MeasuredFlow: "measured-flow",
179
- Temperature: "temperature",
180
- };
1
+ // Slimmed: use generated dictionary as the source of attributes.
2
+ import { GeneratedAttributes, GeneratedAttributeDescriptions } from "./uns-dictionary.generated.js";
3
+ export const knownUnsAttributes = Object.values(GeneratedAttributes);
4
+ export const AttributeDescriptions = GeneratedAttributeDescriptions;
5
+ export function getAttributeDescription(name) {
6
+ return AttributeDescriptions[name];
7
+ }
181
8
  //# sourceMappingURL=uns-attributes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"uns-attributes.js","sourceRoot":"","sources":["../../src/uns/uns-attributes.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,sBAAsB;IACtB,oBAAoB;IACpB,mBAAmB;IACnB,eAAe;IACf,aAAa;IACb,QAAQ;IACR,iBAAiB;IACjB,YAAY;IACZ,OAAO;IACP,oBAAoB;IACpB,OAAO;IACP,SAAS;IACT,SAAS;IACT,QAAQ;IACR,KAAK;IACL,QAAQ;IACR,cAAc;IACd,eAAe;IACf,UAAU;IACV,UAAU;IACV,UAAU;IACV,SAAS;IACT,eAAe;IACf,MAAM;IACN,YAAY;IACZ,UAAU;IACV,UAAU;IACV,iBAAiB;IACjB,cAAc;IACd,UAAU;IACV,eA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WAAW,EAAE,aAAa;IAC1B,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACN,CAAC;AAGX,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,cAAc;IAC5B,EAAE,EAAE,IAAI;CACA,CAAC;AAGX,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,KAAK,EAAE,OAAO;IACd,eAAe,EAAE,kBAAkB;IACnC,cAAc,EAAE,iBAAiB;IACjC,UAAU,EAAE,aAAa;IACzB,MAAM,EAAE,QAAQ;CACR,CAAC;AAGX,yCAAyC;AACzC,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAW,CAAC;AAG5D,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAW,CAAC;AAG5D,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAW,CAAC;AAG5D,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAW,CAAC;AAGlE,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAW,CAAC;AAG7D,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,MAAM,EAAE,QAAQ;IAChB,mBAAmB,EAAE,sBAAsB;IAC3C,iBAAiB,EAAE,oBAAoB;IACvC,gBAAgB,EAAE,mBAAmB;IACrC,YAAY,EAAE,eAAe;IAC7B,WAAW,EAAE,aAAa;CAClB,CAAC","sourcesContent":["// Flat list of common UNS attributes (add your own as needed).\nexport const knownUnsAttributes = [\n \"measured-temperature\",\n \"measured-vibration\",\n \"measured-pressure\",\n \"measured-flow\",\n \"temperature\",\n \"status\",\n \"operating-hours\",\n \"fault-code\",\n \"speed\",\n \"energy-consumption\",\n \"power\",\n \"voltage\",\n \"current\",\n \"energy\",\n \"lot\",\n \"lot-id\",\n \"batch-number\",\n \"material-type\",\n \"quantity\",\n \"location\",\n \"presence\",\n \"task-id\",\n \"assigned-task\",\n \"role\",\n \"start-time\",\n \"end-time\",\n \"duration\",\n \"output-quantity\",\n \"product-code\",\n \"revision\",\n \"specification\",\n \"target-parameters\",\n \"material-composition\",\n \"version-history\",\n \"inspection-result\",\n \"deviation\",\n \"pass-fail\",\n \"surface-defect\",\n \"hardness\",\n \"tensile-strength\",\n \"work-order-id\",\n \"task-list\",\n \"planned-start\",\n \"planned-end\",\n \"assigned-to\",\n \"instruction-url\",\n \"pressure\",\n \"flow\",\n \"consumption\",\n \"alarm\",\n \"availability\",\n \"utilization\",\n \"downtime\",\n \"maintenance-status\",\n \"frequency\",\n \"cost\",\n \"total-flow\",\n \"conductivity\",\n \"ph\",\n \"level\",\n \"consumption-rate\",\n \"refill-required\",\n \"last-refill\",\n] as const;\n\nexport type KnownUnsAttributeName = typeof knownUnsAttributes[number];\n\n// Allow known attribute names while still allowing arbitrary strings.\nexport type UnsAttribute = KnownUnsAttributeName | (string & {});\n\n// Convenience attribute groups per object type (optional to use).\nexport const EquipmentAttributes = {\n Status: \"status\",\n MeasuredTemperature: \"measured-temperature\",\n MeasuredVibration: \"measured-vibration\",\n MeasuredPressure: \"measured-pressure\",\n MeasuredFlow: \"measured-flow\",\n OperatingHours: \"operating-hours\",\n FaultCode: \"fault-code\",\n Speed: \"speed\",\n EnergyConsumption: \"energy-consumption\",\n Power: \"power\",\n Voltage: \"voltage\",\n Current: \"current\",\n Energy: \"energy\",\n} as const;\nexport type EquipmentAttributeName = typeof EquipmentAttributes[keyof typeof EquipmentAttributes];\n\nexport const MaterialAttributes = {\n Lot: \"lot\",\n LotId: \"lot-id\",\n BatchNumber: \"batch-number\",\n MaterialType: \"material-type\",\n Quantity: \"quantity\",\n Location: \"location\",\n Status: \"status\",\n} as const;\nexport type MaterialAttributeName = typeof MaterialAttributes[keyof typeof MaterialAttributes];\n\nexport const PersonnelAttributes = {\n Presence: \"presence\",\n TaskId: \"task-id\",\n AssignedTask: \"assigned-task\",\n Role: \"role\",\n Status: \"status\",\n} as const;\nexport type PersonnelAttributeName = typeof PersonnelAttributes[keyof typeof PersonnelAttributes];\n\nexport const ProcessSegmentAttributes = {\n StartTime: \"start-time\",\n EndTime: \"end-time\",\n Duration: \"duration\",\n Status: \"status\",\n OutputQuantity: \"output-quantity\",\n} as const;\nexport type ProcessSegmentAttributeName = typeof ProcessSegmentAttributes[keyof typeof ProcessSegmentAttributes];\n\nexport const ProductDefinitionAttributes = {\n ProductCode: \"product-code\",\n Revision: \"revision\",\n Specification: \"specification\",\n TargetParameters: \"target-parameters\",\n MaterialComposition: \"material-composition\",\n VersionHistory: \"version-history\",\n} as const;\nexport type ProductDefinitionAttributeName = typeof ProductDefinitionAttributes[keyof typeof ProductDefinitionAttributes];\n\nexport const ProductQualityAttributes = {\n InspectionResult: \"inspection-result\",\n Deviation: \"deviation\",\n PassFail: \"pass-fail\",\n SurfaceDefect: \"surface-defect\",\n Hardness: \"hardness\",\n TensileStrength: \"tensile-strength\",\n} as const;\nexport type ProductQualityAttributeName = typeof ProductQualityAttributes[keyof typeof ProductQualityAttributes];\n\nexport const WorkDefinitionAttributes = {\n WorkOrderId: \"work-order-id\",\n TaskList: \"task-list\",\n PlannedStart: \"planned-start\",\n PlannedEnd: \"planned-end\",\n AssignedTo: \"assigned-to\",\n InstructionUrl: \"instruction-url\",\n} as const;\nexport type WorkDefinitionAttributeName = typeof WorkDefinitionAttributes[keyof typeof WorkDefinitionAttributes];\n\nexport const ResourceStatusAttributes = {\n Availability: \"availability\",\n Utilization: \"utilization\",\n Downtime: \"downtime\",\n Status: \"status\",\n MaintenanceStatus: \"maintenance-status\",\n} as const;\nexport type ResourceStatusAttributeName = typeof ResourceStatusAttributes[keyof typeof ResourceStatusAttributes];\n\nexport const EnergyResourceAttributes = {\n Power: \"power\",\n Energy: \"energy\",\n Voltage: \"voltage\",\n Current: \"current\",\n Frequency: \"frequency\",\n Cost: \"cost\",\n} as const;\nexport type EnergyResourceAttributeName = typeof EnergyResourceAttributes[keyof typeof EnergyResourceAttributes];\n\nexport const UtilityResourceAttributes = {\n Pressure: \"pressure\",\n Flow: \"flow\",\n Consumption: \"consumption\",\n Status: \"status\",\n Alarm: \"alarm\",\n} as const;\nexport type UtilityResourceAttributeName = typeof UtilityResourceAttributes[keyof typeof UtilityResourceAttributes];\n\nexport const FluidResourceAttributes = {\n Flow: \"flow\",\n Pressure: \"pressure\",\n Temperature: \"temperature\",\n TotalFlow: \"total-flow\",\n Conductivity: \"conductivity\",\n PH: \"ph\",\n} as const;\nexport type FluidResourceAttributeName = typeof FluidResourceAttributes[keyof typeof FluidResourceAttributes];\n\nexport const ConsumableResourceAttributes = {\n Level: \"level\",\n ConsumptionRate: \"consumption-rate\",\n RefillRequired: \"refill-required\",\n LastRefill: \"last-refill\",\n Status: \"status\",\n} as const;\nexport type ConsumableResourceAttributeName = typeof ConsumableResourceAttributes[keyof typeof ConsumableResourceAttributes];\n\n// Generic fallbacks for structural types\nexport const LineAttributes = { Status: \"status\" } as const;\nexport type LineAttributeName = typeof LineAttributes[keyof typeof LineAttributes];\n\nexport const AreaAttributes = { Status: \"status\" } as const;\nexport type AreaAttributeName = typeof AreaAttributes[keyof typeof AreaAttributes];\n\nexport const SiteAttributes = { Status: \"status\" } as const;\nexport type SiteAttributeName = typeof SiteAttributes[keyof typeof SiteAttributes];\n\nexport const EnterpriseAttributes = { Status: \"status\" } as const;\nexport type EnterpriseAttributeName = typeof EnterpriseAttributes[keyof typeof EnterpriseAttributes];\n\nexport const AssetAttributes = { Status: \"status\" } as const;\nexport type AssetAttributeName = typeof AssetAttributes[keyof typeof AssetAttributes];\n\nexport const SensorAttributes = {\n Status: \"status\",\n MeasuredTemperature: \"measured-temperature\",\n MeasuredVibration: \"measured-vibration\",\n MeasuredPressure: \"measured-pressure\",\n MeasuredFlow: \"measured-flow\",\n Temperature: \"temperature\",\n} as const;\nexport type SensorAttributeName = typeof SensorAttributes[keyof typeof SensorAttributes];\n"]}
1
+ {"version":3,"file":"uns-attributes.js","sourceRoot":"","sources":["../../src/uns/uns-attributes.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,OAAO,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAEpG,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAOrE,MAAM,CAAC,MAAM,qBAAqB,GAAG,8BAA8B,CAAC;AAEpE,MAAM,UAAU,uBAAuB,CAAC,IAAY;IAClD,OAAO,qBAAqB,CAAC,IAA0C,CAAuB,CAAC;AACjG,CAAC","sourcesContent":["// Slimmed: use generated dictionary as the source of attributes.\nimport { GeneratedAttributes, GeneratedAttributeDescriptions } from \"./uns-dictionary.generated.js\";\n\nexport const knownUnsAttributes = Object.values(GeneratedAttributes);\n\nexport type KnownUnsAttributeName = typeof GeneratedAttributes[keyof typeof GeneratedAttributes];\n\n// Allow known attribute names while still allowing arbitrary strings.\nexport type UnsAttribute = \"\" | KnownUnsAttributeName | (string & {});\n\nexport const AttributeDescriptions = GeneratedAttributeDescriptions;\n\nexport function getAttributeDescription(name: string): string | undefined {\n return AttributeDescriptions[name as keyof typeof AttributeDescriptions] as string | undefined;\n}\n"]}
@@ -0,0 +1,83 @@
1
+ export declare const GeneratedObjectTypes: {
2
+ readonly equipment: "equipment";
3
+ readonly material: "material";
4
+ readonly personnel: "personnel";
5
+ readonly "process-segment": "process-segment";
6
+ readonly "product-definition": "product-definition";
7
+ readonly "product-quality": "product-quality";
8
+ readonly "work-definition": "work-definition";
9
+ readonly "resource-status": "resource-status";
10
+ readonly "energy-resource": "energy-resource";
11
+ readonly "utility-resource": "utility-resource";
12
+ readonly "fluid-resource": "fluid-resource";
13
+ readonly "consumable-resource": "consumable-resource";
14
+ };
15
+ export declare const GeneratedObjectTypeDescriptions: Record<keyof typeof GeneratedObjectTypes, string>;
16
+ export declare const GeneratedAttributes: {
17
+ readonly status: "status";
18
+ readonly temperature: "temperature";
19
+ readonly vibration: "vibration";
20
+ readonly "operating-hours": "operating-hours";
21
+ readonly "fault-code": "fault-code";
22
+ readonly speed: "speed";
23
+ readonly "energy-consumption": "energy-consumption";
24
+ readonly "lot-id": "lot-id";
25
+ readonly "batch-number": "batch-number";
26
+ readonly "material-type": "material-type";
27
+ readonly quantity: "quantity";
28
+ readonly location: "location";
29
+ readonly presence: "presence";
30
+ readonly "task-id": "task-id";
31
+ readonly role: "role";
32
+ readonly "authorization-level": "authorization-level";
33
+ readonly "start-time": "start-time";
34
+ readonly "end-time": "end-time";
35
+ readonly duration: "duration";
36
+ readonly "output-quantity": "output-quantity";
37
+ readonly "operator-id": "operator-id";
38
+ readonly "product-code": "product-code";
39
+ readonly revision: "revision";
40
+ readonly specification: "specification";
41
+ readonly "target-parameters": "target-parameters";
42
+ readonly "material-composition": "material-composition";
43
+ readonly "version-history": "version-history";
44
+ readonly "inspection-result": "inspection-result";
45
+ readonly deviation: "deviation";
46
+ readonly "pass-fail": "pass-fail";
47
+ readonly "surface-defect": "surface-defect";
48
+ readonly hardness: "hardness";
49
+ readonly "tensile-strength": "tensile-strength";
50
+ readonly "work-order-id": "work-order-id";
51
+ readonly "task-list": "task-list";
52
+ readonly "planned-start": "planned-start";
53
+ readonly "planned-end": "planned-end";
54
+ readonly "assigned-to": "assigned-to";
55
+ readonly "instruction-url": "instruction-url";
56
+ readonly availability: "availability";
57
+ readonly utilization: "utilization";
58
+ readonly downtime: "downtime";
59
+ readonly "maintenance-status": "maintenance-status";
60
+ readonly power: "power";
61
+ readonly energy: "energy";
62
+ readonly voltage: "voltage";
63
+ readonly current: "current";
64
+ readonly frequency: "frequency";
65
+ readonly cost: "cost";
66
+ readonly pressure: "pressure";
67
+ readonly flow: "flow";
68
+ readonly consumption: "consumption";
69
+ readonly alarm: "alarm";
70
+ readonly "total-flow": "total-flow";
71
+ readonly conductivity: "conductivity";
72
+ readonly ph: "ph";
73
+ readonly level: "level";
74
+ readonly "consumption-rate": "consumption-rate";
75
+ readonly "refill-required": "refill-required";
76
+ readonly "last-refill": "last-refill";
77
+ };
78
+ export declare const GeneratedAttributeDescriptions: Record<keyof typeof GeneratedAttributes, string>;
79
+ export type GeneratedObjectTypeName = keyof typeof GeneratedObjectTypes;
80
+ export declare function getGeneratedObjectTypeDescription(name: string): string | undefined;
81
+ export type GeneratedAttributeName = keyof typeof GeneratedAttributes;
82
+ export declare function getGeneratedAttributeDescription(name: string): string | undefined;
83
+ //# sourceMappingURL=uns-dictionary.generated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uns-dictionary.generated.d.ts","sourceRoot":"","sources":["../../src/uns/uns-dictionary.generated.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;CAavB,CAAC;AAEX,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,MAAM,OAAO,oBAAoB,EAAE,MAAM,CAa7F,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DtB,CAAC;AAEX,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,OAAO,mBAAmB,EAAE,MAAM,CA6D3F,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,MAAM,OAAO,oBAAoB,CAAC;AACxE,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAElF;AAED,MAAM,MAAM,sBAAsB,GAAG,MAAM,OAAO,mBAAmB,CAAC;AACtE,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEjF"}
@@ -0,0 +1,160 @@
1
+ /* Stub dictionary. Regenerate via generate-uns-dictionary.ts if you want to override. */
2
+ export const GeneratedObjectTypes = {
3
+ "equipment": "equipment",
4
+ "material": "material",
5
+ "personnel": "personnel",
6
+ "process-segment": "process-segment",
7
+ "product-definition": "product-definition",
8
+ "product-quality": "product-quality",
9
+ "work-definition": "work-definition",
10
+ "resource-status": "resource-status",
11
+ "energy-resource": "energy-resource",
12
+ "utility-resource": "utility-resource",
13
+ "fluid-resource": "fluid-resource",
14
+ "consumable-resource": "consumable-resource",
15
+ };
16
+ export const GeneratedObjectTypeDescriptions = {
17
+ "equipment": "Fizična oprema (stroji, peči, senzorji). Uporablja se za spremljanje stanja, meritev in dogodkov.",
18
+ "material": "Materialne enote (loti, serije, surovine, polizdelki). Za sledljivost, količine in premike.",
19
+ "personnel": "Osebje (operaterji, nadzorniki, tehnologi). Za prisotnost, naloge in status.",
20
+ "process-segment": "Posamezen korak v procesu (npr. valjanje, hlajenje, analiza). Za faze ali aktivnosti procesa.",
21
+ "product-definition": "Definicija izdelka, recepture, tehnični opisi. Za metapodatke izdelka in revizije.",
22
+ "product-quality": "Kazalniki kakovosti izdelka (odstopanja, ocene, rezultati meritev).",
23
+ "work-definition": "Definicija nalog ali delovnih tokov. Za planirane operacije in navodila.",
24
+ "resource-status": "Status kateregakoli vira (material, osebje, oprema). Za razpoložljivost, okvare, izrabo.",
25
+ "energy-resource": "Energija (elektrika, para, plin).",
26
+ "utility-resource": "Utility viri (voda, zrak, dušik, stisnjeni plini).",
27
+ "fluid-resource": "Tekočine in plini, ki niso energenti.",
28
+ "consumable-resource": "Maziva, olja, čistila, ki se porabijo in niso del izdelka.",
29
+ };
30
+ export const GeneratedAttributes = {
31
+ "status": "status",
32
+ "temperature": "temperature",
33
+ "vibration": "vibration",
34
+ "operating-hours": "operating-hours",
35
+ "fault-code": "fault-code",
36
+ "speed": "speed",
37
+ "energy-consumption": "energy-consumption",
38
+ "lot-id": "lot-id",
39
+ "batch-number": "batch-number",
40
+ "material-type": "material-type",
41
+ "quantity": "quantity",
42
+ "location": "location",
43
+ "presence": "presence",
44
+ "task-id": "task-id",
45
+ "role": "role",
46
+ "authorization-level": "authorization-level",
47
+ "start-time": "start-time",
48
+ "end-time": "end-time",
49
+ "duration": "duration",
50
+ "output-quantity": "output-quantity",
51
+ "operator-id": "operator-id",
52
+ "product-code": "product-code",
53
+ "revision": "revision",
54
+ "specification": "specification",
55
+ "target-parameters": "target-parameters",
56
+ "material-composition": "material-composition",
57
+ "version-history": "version-history",
58
+ "inspection-result": "inspection-result",
59
+ "deviation": "deviation",
60
+ "pass-fail": "pass-fail",
61
+ "surface-defect": "surface-defect",
62
+ "hardness": "hardness",
63
+ "tensile-strength": "tensile-strength",
64
+ "work-order-id": "work-order-id",
65
+ "task-list": "task-list",
66
+ "planned-start": "planned-start",
67
+ "planned-end": "planned-end",
68
+ "assigned-to": "assigned-to",
69
+ "instruction-url": "instruction-url",
70
+ "availability": "availability",
71
+ "utilization": "utilization",
72
+ "downtime": "downtime",
73
+ "maintenance-status": "maintenance-status",
74
+ "power": "power",
75
+ "energy": "energy",
76
+ "voltage": "voltage",
77
+ "current": "current",
78
+ "frequency": "frequency",
79
+ "cost": "cost",
80
+ "pressure": "pressure",
81
+ "flow": "flow",
82
+ "consumption": "consumption",
83
+ "alarm": "alarm",
84
+ "total-flow": "total-flow",
85
+ "conductivity": "conductivity",
86
+ "ph": "ph",
87
+ "level": "level",
88
+ "consumption-rate": "consumption-rate",
89
+ "refill-required": "refill-required",
90
+ "last-refill": "last-refill",
91
+ };
92
+ export const GeneratedAttributeDescriptions = {
93
+ "status": "Trenutno stanje vira ali opreme.",
94
+ "temperature": "Temperatura vira/opreme.",
95
+ "vibration": "Merjena vibracija.",
96
+ "operating-hours": "Število obratovalnih ur.",
97
+ "fault-code": "Koda napake.",
98
+ "speed": "Hitrost delovanja.",
99
+ "energy-consumption": "Poraba energije.",
100
+ "lot-id": "Identifikator lota.",
101
+ "batch-number": "Številka serije (batch).",
102
+ "material-type": "Tip materiala.",
103
+ "quantity": "Količina materiala.",
104
+ "location": "Lokacija materiala ali opreme.",
105
+ "presence": "Prisotnost osebja.",
106
+ "task-id": "Identifikator naloge.",
107
+ "role": "Vloga osebja.",
108
+ "authorization-level": "Nivo pooblastil.",
109
+ "start-time": "Čas začetka.",
110
+ "end-time": "Čas zaključka.",
111
+ "duration": "Trajanje faze ali naloge.",
112
+ "output-quantity": "Izhodna količina.",
113
+ "operator-id": "Identifikator operaterja.",
114
+ "product-code": "Koda izdelka.",
115
+ "revision": "Revizija izdelka.",
116
+ "specification": "Tehnične specifikacije.",
117
+ "target-parameters": "Ciljni parametri izdelka ali procesa.",
118
+ "material-composition": "Sestava materiala.",
119
+ "version-history": "Zgodovina verzij.",
120
+ "inspection-result": "Rezultat pregleda.",
121
+ "deviation": "Odstopanje od specifikacije.",
122
+ "pass-fail": "Uspešno/neuspešno (pass/fail).",
123
+ "surface-defect": "Površinska napaka.",
124
+ "hardness": "Trdota materiala.",
125
+ "tensile-strength": "Natezna trdnost.",
126
+ "work-order-id": "Identifikator delovnega naloga.",
127
+ "task-list": "Seznam nalog.",
128
+ "planned-start": "Planirani začetek.",
129
+ "planned-end": "Planirani zaključek.",
130
+ "assigned-to": "Dodeljeno osebi ali ekipi.",
131
+ "instruction-url": "Povezava do navodil.",
132
+ "availability": "Razpoložljivost vira.",
133
+ "utilization": "Izraba vira.",
134
+ "downtime": "Zastoj/izpad.",
135
+ "maintenance-status": "Stanje vzdrževanja.",
136
+ "power": "Moč.",
137
+ "energy": "Energija.",
138
+ "voltage": "Napetost.",
139
+ "current": "Tok.",
140
+ "frequency": "Frekvenca.",
141
+ "cost": "Strošek.",
142
+ "pressure": "Tlak.",
143
+ "flow": "Pretok.",
144
+ "consumption": "Poraba.",
145
+ "alarm": "Alarmni signal.",
146
+ "total-flow": "Skupni pretok.",
147
+ "conductivity": "Prevodnost.",
148
+ "ph": "pH vrednost.",
149
+ "level": "Nivo zaloge ali rezervoarja.",
150
+ "consumption-rate": "Hitrost porabe.",
151
+ "refill-required": "Potrebno dolivanje/dopolnitev.",
152
+ "last-refill": "Zadnje polnjenje.",
153
+ };
154
+ export function getGeneratedObjectTypeDescription(name) {
155
+ return GeneratedObjectTypeDescriptions[name];
156
+ }
157
+ export function getGeneratedAttributeDescription(name) {
158
+ return GeneratedAttributeDescriptions[name];
159
+ }
160
+ //# sourceMappingURL=uns-dictionary.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uns-dictionary.generated.js","sourceRoot":"","sources":["../../src/uns/uns-dictionary.generated.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,WAAW,EAAE,WAAW;IACxB,UAAU,EAAE,UAAU;IACtB,WAAW,EAAE,WAAW;IACxB,iBAAiB,EAAE,iBAAiB;IACpC,oBAAoB,EAAE,oBAAoB;IAC1C,iBAAiB,EAAE,iBAAiB;IACpC,iBAAiB,EAAE,iBAAiB;IACpC,iBAAiB,EAAE,iBAAiB;IACpC,iBAAiB,EAAE,iBAAiB;IACpC,kBAAkB,EAAE,kBAAkB;IACtC,gBAAgB,EAAE,gBAAgB;IAClC,qBAAqB,EAAE,qBAAqB;CACpC,CAAC;AAEX,MAAM,CAAC,MAAM,+BAA+B,GAAsD;IAChG,WAAW,EAAE,mGAAmG;IAChH,UAAU,EAAE,6FAA6F;IACzG,WAAW,EAAE,8EAA8E;IAC3F,iBAAiB,EAAE,+FAA+F;IAClH,oBAAoB,EAAE,oFAAoF;IAC1G,iBAAiB,EAAE,qEAAqE;IACxF,iBAAiB,EAAE,0EAA0E;IAC7F,iBAAiB,EAAE,0FAA0F;IAC7G,iBAAiB,EAAE,mCAAmC;IACtD,kBAAkB,EAAE,oDAAoD;IACxE,gBAAgB,EAAE,uCAAuC;IACzD,qBAAqB,EAAE,4DAA4D;CACpF,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,QAAQ,EAAE,QAAQ;IAClB,aAAa,EAAE,aAAa;IAC5B,WAAW,EAAE,WAAW;IACxB,iBAAiB,EAA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AAe,EAAE,oBAAoB;IACrC,aAAa,EAAE,sBAAsB;IACrC,aAAa,EAAE,4BAA4B;IAC3C,iBAAiB,EAAE,sBAAsB;IACzC,cAAc,EAAE,uBAAuB;IACvC,aAAa,EAAE,cAAc;IAC7B,UAAU,EAAE,eAAe;IAC3B,oBAAoB,EAAE,qBAAqB;IAC3C,OAAO,EAAE,MAAM;IACf,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,MAAM;IACjB,WAAW,EAAE,YAAY;IACzB,MAAM,EAAE,UAAU;IAClB,UAAU,EAAE,OAAO;IACnB,MAAM,EAAE,SAAS;IACjB,aAAa,EAAE,SAAS;IACxB,OAAO,EAAE,iBAAiB;IAC1B,YAAY,EAAE,gBAAgB;IAC9B,cAAc,EAAE,aAAa;IAC7B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,8BAA8B;IACvC,kBAAkB,EAAE,iBAAiB;IACrC,iBAAiB,EAAE,gCAAgC;IACnD,aAAa,EAAE,mBAAmB;CACnC,CAAC;AAGF,MAAM,UAAU,iCAAiC,CAAC,IAAY;IAC5D,OAAQ,+BAAsE,CAAC,IAAI,CAAC,CAAC;AACvF,CAAC;AAGD,MAAM,UAAU,gCAAgC,CAAC,IAAY;IAC3D,OAAQ,8BAAqE,CAAC,IAAI,CAAC,CAAC;AACtF,CAAC","sourcesContent":["/* Stub dictionary. Regenerate via generate-uns-dictionary.ts if you want to override. */\nexport const GeneratedObjectTypes = {\n \"equipment\": \"equipment\",\n \"material\": \"material\",\n \"personnel\": \"personnel\",\n \"process-segment\": \"process-segment\",\n \"product-definition\": \"product-definition\",\n \"product-quality\": \"product-quality\",\n \"work-definition\": \"work-definition\",\n \"resource-status\": \"resource-status\",\n \"energy-resource\": \"energy-resource\",\n \"utility-resource\": \"utility-resource\",\n \"fluid-resource\": \"fluid-resource\",\n \"consumable-resource\": \"consumable-resource\",\n} as const;\n\nexport const GeneratedObjectTypeDescriptions: Record<keyof typeof GeneratedObjectTypes, string> = {\n \"equipment\": \"Fizična oprema (stroji, peči, senzorji). Uporablja se za spremljanje stanja, meritev in dogodkov.\",\n \"material\": \"Materialne enote (loti, serije, surovine, polizdelki). Za sledljivost, količine in premike.\",\n \"personnel\": \"Osebje (operaterji, nadzorniki, tehnologi). Za prisotnost, naloge in status.\",\n \"process-segment\": \"Posamezen korak v procesu (npr. valjanje, hlajenje, analiza). Za faze ali aktivnosti procesa.\",\n \"product-definition\": \"Definicija izdelka, recepture, tehnični opisi. Za metapodatke izdelka in revizije.\",\n \"product-quality\": \"Kazalniki kakovosti izdelka (odstopanja, ocene, rezultati meritev).\",\n \"work-definition\": \"Definicija nalog ali delovnih tokov. Za planirane operacije in navodila.\",\n \"resource-status\": \"Status kateregakoli vira (material, osebje, oprema). Za razpoložljivost, okvare, izrabo.\",\n \"energy-resource\": \"Energija (elektrika, para, plin).\",\n \"utility-resource\": \"Utility viri (voda, zrak, dušik, stisnjeni plini).\",\n \"fluid-resource\": \"Tekočine in plini, ki niso energenti.\",\n \"consumable-resource\": \"Maziva, olja, čistila, ki se porabijo in niso del izdelka.\",\n};\n\nexport const GeneratedAttributes = {\n \"status\": \"status\",\n \"temperature\": \"temperature\",\n \"vibration\": \"vibration\",\n \"operating-hours\": \"operating-hours\",\n \"fault-code\": \"fault-code\",\n \"speed\": \"speed\",\n \"energy-consumption\": \"energy-consumption\",\n \"lot-id\": \"lot-id\",\n \"batch-number\": \"batch-number\",\n \"material-type\": \"material-type\",\n \"quantity\": \"quantity\",\n \"location\": \"location\",\n \"presence\": \"presence\",\n \"task-id\": \"task-id\",\n \"role\": \"role\",\n \"authorization-level\": \"authorization-level\",\n \"start-time\": \"start-time\",\n \"end-time\": \"end-time\",\n \"duration\": \"duration\",\n \"output-quantity\": \"output-quantity\",\n \"operator-id\": \"operator-id\",\n \"product-code\": \"product-code\",\n \"revision\": \"revision\",\n \"specification\": \"specification\",\n \"target-parameters\": \"target-parameters\",\n \"material-composition\": \"material-composition\",\n \"version-history\": \"version-history\",\n \"inspection-result\": \"inspection-result\",\n \"deviation\": \"deviation\",\n \"pass-fail\": \"pass-fail\",\n \"surface-defect\": \"surface-defect\",\n \"hardness\": \"hardness\",\n \"tensile-strength\": \"tensile-strength\",\n \"work-order-id\": \"work-order-id\",\n \"task-list\": \"task-list\",\n \"planned-start\": \"planned-start\",\n \"planned-end\": \"planned-end\",\n \"assigned-to\": \"assigned-to\",\n \"instruction-url\": \"instruction-url\",\n \"availability\": \"availability\",\n \"utilization\": \"utilization\",\n \"downtime\": \"downtime\",\n \"maintenance-status\": \"maintenance-status\",\n \"power\": \"power\",\n \"energy\": \"energy\",\n \"voltage\": \"voltage\",\n \"current\": \"current\",\n \"frequency\": \"frequency\",\n \"cost\": \"cost\",\n \"pressure\": \"pressure\",\n \"flow\": \"flow\",\n \"consumption\": \"consumption\",\n \"alarm\": \"alarm\",\n \"total-flow\": \"total-flow\",\n \"conductivity\": \"conductivity\",\n \"ph\": \"ph\",\n \"level\": \"level\",\n \"consumption-rate\": \"consumption-rate\",\n \"refill-required\": \"refill-required\",\n \"last-refill\": \"last-refill\",\n} as const;\n\nexport const GeneratedAttributeDescriptions: Record<keyof typeof GeneratedAttributes, string> = {\n \"status\": \"Trenutno stanje vira ali opreme.\",\n \"temperature\": \"Temperatura vira/opreme.\",\n \"vibration\": \"Merjena vibracija.\",\n \"operating-hours\": \"Število obratovalnih ur.\",\n \"fault-code\": \"Koda napake.\",\n \"speed\": \"Hitrost delovanja.\",\n \"energy-consumption\": \"Poraba energije.\",\n \"lot-id\": \"Identifikator lota.\",\n \"batch-number\": \"Številka serije (batch).\",\n \"material-type\": \"Tip materiala.\",\n \"quantity\": \"Količina materiala.\",\n \"location\": \"Lokacija materiala ali opreme.\",\n \"presence\": \"Prisotnost osebja.\",\n \"task-id\": \"Identifikator naloge.\",\n \"role\": \"Vloga osebja.\",\n \"authorization-level\": \"Nivo pooblastil.\",\n \"start-time\": \"Čas začetka.\",\n \"end-time\": \"Čas zaključka.\",\n \"duration\": \"Trajanje faze ali naloge.\",\n \"output-quantity\": \"Izhodna količina.\",\n \"operator-id\": \"Identifikator operaterja.\",\n \"product-code\": \"Koda izdelka.\",\n \"revision\": \"Revizija izdelka.\",\n \"specification\": \"Tehnične specifikacije.\",\n \"target-parameters\": \"Ciljni parametri izdelka ali procesa.\",\n \"material-composition\": \"Sestava materiala.\",\n \"version-history\": \"Zgodovina verzij.\",\n \"inspection-result\": \"Rezultat pregleda.\",\n \"deviation\": \"Odstopanje od specifikacije.\",\n \"pass-fail\": \"Uspešno/neuspešno (pass/fail).\",\n \"surface-defect\": \"Površinska napaka.\",\n \"hardness\": \"Trdota materiala.\",\n \"tensile-strength\": \"Natezna trdnost.\",\n \"work-order-id\": \"Identifikator delovnega naloga.\",\n \"task-list\": \"Seznam nalog.\",\n \"planned-start\": \"Planirani začetek.\",\n \"planned-end\": \"Planirani zaključek.\",\n \"assigned-to\": \"Dodeljeno osebi ali ekipi.\",\n \"instruction-url\": \"Povezava do navodil.\",\n \"availability\": \"Razpoložljivost vira.\",\n \"utilization\": \"Izraba vira.\",\n \"downtime\": \"Zastoj/izpad.\",\n \"maintenance-status\": \"Stanje vzdrževanja.\",\n \"power\": \"Moč.\",\n \"energy\": \"Energija.\",\n \"voltage\": \"Napetost.\",\n \"current\": \"Tok.\",\n \"frequency\": \"Frekvenca.\",\n \"cost\": \"Strošek.\",\n \"pressure\": \"Tlak.\",\n \"flow\": \"Pretok.\",\n \"consumption\": \"Poraba.\",\n \"alarm\": \"Alarmni signal.\",\n \"total-flow\": \"Skupni pretok.\",\n \"conductivity\": \"Prevodnost.\",\n \"ph\": \"pH vrednost.\",\n \"level\": \"Nivo zaloge ali rezervoarja.\",\n \"consumption-rate\": \"Hitrost porabe.\",\n \"refill-required\": \"Potrebno dolivanje/dopolnitev.\",\n \"last-refill\": \"Zadnje polnjenje.\",\n};\n\nexport type GeneratedObjectTypeName = keyof typeof GeneratedObjectTypes;\nexport function getGeneratedObjectTypeDescription(name: string): string | undefined {\n return (GeneratedObjectTypeDescriptions as Record<string, string | undefined>)[name];\n}\n\nexport type GeneratedAttributeName = keyof typeof GeneratedAttributes;\nexport function getGeneratedAttributeDescription(name: string): string | undefined {\n return (GeneratedAttributeDescriptions as Record<string, string | undefined>)[name];\n}\n"]}
@@ -91,7 +91,9 @@ export interface IMqttMessage {
91
91
  topic: UnsTopics;
92
92
  attribute: UnsAttribute;
93
93
  asset: UnsAsset;
94
+ assetDescription?: string;
94
95
  objectType: UnsObjectType;
96
+ objectTypeDescription?: string;
95
97
  objectId: UnsObjectId;
96
98
  description?: string;
97
99
  tags?: UnsTags[];
@@ -128,7 +130,9 @@ export interface ITopicObject {
128
130
  tags: string[] | null;
129
131
  attributeNeedsPersistence: boolean | null;
130
132
  asset: UnsAsset;
133
+ assetDescription?: string;
131
134
  objectType: UnsObjectType;
135
+ objectTypeDescription?: string;
132
136
  objectId: UnsObjectId;
133
137
  }
134
138
  export interface IApiObject {
@@ -1 +1 @@
1
- {"version":3,"file":"uns-interfaces.d.ts","sourceRoot":"","sources":["../../src/uns/uns-interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAsB,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAErF,MAAM,MAAM,OAAO,GAAG,GAAG,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,GAAG,CAAC;AAC/F,wBAA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AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE;QACL,gBAAgB,EAAE,MAAM,CAAC;QACzB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,CAAC,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC,EAAE,CAAC;KAC9C,CAAC;CACH;AAED,MAAM,WAAW,mBAAmB;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;CAC/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"uns-interfaces.js","sourceRoot":"","sources":["../../src/uns/uns-interfaces.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,aAAa,CAAC,KAAa;IACzC,MAAM,YAAY,GAAG,+CAA+C,CAAC;IACrE,OAAO,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAClC,CAAC;AAID,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC","sourcesContent":["import { UnsAttributeType } from \"../graphql/schema.js\";\nimport { MeasurementUnit } from \"./uns-measurements.js\";\nimport { UnsTags } from \"./uns-tags.js\";\nimport type { UnsObjectId, UnsObjectType } from \"./uns-object.js\";\nimport type { UnsAsset } from \"./uns-asset.js\";\nimport { UnsTopics } from \"./uns-topics.js\";\nimport { knownUnsAttributes, type KnownUnsAttributeName } from \"./uns-attributes.js\";\n\nexport type ISO8601 = `${number}-${string}-${string}T${string}:${string}:${string}.${string}Z`;\nexport function isIOS8601Type(value: string): value is ISO8601 {\n const iso8601Regex = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$/;\n return iso8601Regex.test(value);\n}\n// Known attribute names (with IntelliSense) while still allowing arbitrary strings.\nexport type UnsAttribute = KnownUnsAttributeName | (string & {});\n\nexport const valueTypes = [\"string\", \"number\"];\nexport type ValueTypeString = typeof valueTypes[number];\nexport type ValueType = string | number;\n\nexport interface IUnsParameters {\n mqttSubToTopics?: string | string[];\n username?: string;\n password?: string;\n mqttSSL?: boolean;\n publishThrottlingDelay?: number; // Delay in milliseconds; default is 1ms\n subscribeThrottlingDelay?: number; // Delay in milliseconds; default is 1ms\n}\n\nexport interface IUnsProcessParameters {\n processName?: string | undefined;\n mqttSubToTopics?: string | string[];\n username?: string;\n password?: string;\n mqttSSL?: boolean;\n}\n\nexport interface UnsEvents {\n // Emitters in MqttProxy, UnsMqttProxy\n input: { topic: string; message: string, packet: any };\n mqttProxyStatus: { event: string, value: number, uom: MeasurementUnit, statusTopic: string };\n \n // Emitters in MqttProxy\n error: { code: number; message: string };\n \n // Emitters in UnsMqttProxy\n mqttWorker: { command: string, instanceName: string; batchSize: number, referenceHash: string };\n\n // Emitter in UnsCronProxy\n cronEvent: {};\n\n // Emitters in UnsApiProxy\n apiGetEvent: {req: any, res: any};\n\n // Emitters in UnsProxy\n unsProxyProducedTopics: { producedTopics: ITopicObject[], statusTopic: string };\n\n // Emitters in UnsProxy\n unsProxyProducedApiEndpoints: { producedApiEndpoints: IApiObject[], statusTopic: string };\n}\n\nexport interface IUnsExtendedData extends IUnsData {\n valueType: ValueTypeString;\n}\n\nexport interface IUnsData {\n time: ISO8601;\n value: ValueType;\n dataGroup?: string;\n uom?: MeasurementUnit;\n foreignEventKey?: string;\n}\n\nexport interface IUnsEvent {\n time: ISO8601;\n dataGroup?: string;\n details?: string;\n uniqueEventId?: string;\n}\n\nexport interface IUnsTable {\n time: ISO8601;\n values: Record<string, string | number | undefined | null>\n dataGroup?: string;\n}\n\nexport interface IUnsCommand {\n time: ISO8601;\n details?: string;\n}\n\nexport interface IMqttMessage {\n topic: UnsTopics;\n attribute: UnsAttribute;\n asset: UnsAsset;\n objectType: UnsObjectType;\n objectId: UnsObjectId;\n description?: string;\n tags?: UnsTags[];\n packet: IUnsPacket;\n attributeNeedsPersistence?: boolean | null;\n}\n\n// This interface represents a packet for a UNS system\nexport interface IUnsPacket {\n // The message object of the packet\n message: IUnsExtendedMessage;\n \n // The HMAC signature of the message\n messageSignature?: string;\n\n // Automatically calculated interval between two packets in ms\n interval?: number;\n\n // Current library version\n readonly version: string;\n\n // Autogenerated sequence number\n sequenceId?: number;\n}\n\nexport interface IUnsPackatParameters {\n\n}\n\nexport interface IUnsMessage {\n command?: IUnsCommand;\n data?: IUnsData;\n event?: IUnsEvent;\n table?: IUnsTable;\n expiresAt?: ISO8601;\n createdAt?: ISO8601;\n}\n\nexport interface IUnsExtendedMessage extends IUnsMessage {\n data?: IUnsExtendedData;\n}\n\nexport interface ITopicObject {\n timestamp: string;\n attribute:string;\n attributeType: UnsAttributeType;\n topic:string;\n description:string;\n dataGroup:string;\n tags:string[] | null;\n attributeNeedsPersistence: boolean | null;\n asset: UnsAsset;\n objectType: UnsObjectType;\n objectId: UnsObjectId;\n}\n\n// API Interfaces below\nexport interface IApiObject {\n timestamp: string;\n attribute:string;\n topic:string;\n attributeType: UnsAttributeType;\n apiDescription?: string; // Optional description for the API endpoint\n apiHost: string; // Hostname of the service\n apiEndpoint: string; // API endpoint for virtual topics\n apiSwaggerEndpoint: string; // Swagger endpoint for API documentation\n apiMethod: \"GET\" | \"POST\" | \"PUT\" | \"DELETE\"; // HTTP method for API endpoint\n apiQueryParams: QueryParamDef[]; // query parameters for the API endpoint\n asset: UnsAsset;\n objectType: UnsObjectType;\n objectId: UnsObjectId;\n}\n\nexport interface QueryParamDef {\n name: string;\n type: \"string\" | \"number\" | \"boolean\";\n required?: boolean;\n description?: string;\n}\n\nexport interface IApiProxyOptions {\n jwtSecret?: string;\n jwks?: {\n wellKnownJwksUrl: string;\n activeKidUrl?: string;\n cacheTtlMs?: number;\n algorithms?: (\"RS256\" | \"RS384\" | \"RS512\")[];\n };\n}\n\nexport interface IGetEndpointOptions {\n apiDescription?: string;\n tags?: string[];\n queryParams?: QueryParamDef[];\n}\n"]}
1
+ {"version":3,"file":"uns-interfaces.js","sourceRoot":"","sources":["../../src/uns/uns-interfaces.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,aAAa,CAAC,KAAa;IACzC,MAAM,YAAY,GAAG,+CAA+C,CAAC;IACrE,OAAO,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAClC,CAAC;AAID,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC","sourcesContent":["import { UnsAttributeType } from \"../graphql/schema.js\";\nimport { MeasurementUnit } from \"./uns-measurements.js\";\nimport { UnsTags } from \"./uns-tags.js\";\nimport type { UnsObjectId, UnsObjectType } from \"./uns-object.js\";\nimport type { UnsAsset } from \"./uns-asset.js\";\nimport { UnsTopics } from \"./uns-topics.js\";\nimport { knownUnsAttributes, type KnownUnsAttributeName } from \"./uns-attributes.js\";\n\nexport type ISO8601 = `${number}-${string}-${string}T${string}:${string}:${string}.${string}Z`;\nexport function isIOS8601Type(value: string): value is ISO8601 {\n const iso8601Regex = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$/;\n return iso8601Regex.test(value);\n}\n// Known attribute names (with IntelliSense) while still allowing arbitrary strings.\nexport type UnsAttribute = KnownUnsAttributeName | (string & {});\n\nexport const valueTypes = [\"string\", \"number\"];\nexport type ValueTypeString = typeof valueTypes[number];\nexport type ValueType = string | number;\n\nexport interface IUnsParameters {\n mqttSubToTopics?: string | string[];\n username?: string;\n password?: string;\n mqttSSL?: boolean;\n publishThrottlingDelay?: number; // Delay in milliseconds; default is 1ms\n subscribeThrottlingDelay?: number; // Delay in milliseconds; default is 1ms\n}\n\nexport interface IUnsProcessParameters {\n processName?: string | undefined;\n mqttSubToTopics?: string | string[];\n username?: string;\n password?: string;\n mqttSSL?: boolean;\n}\n\nexport interface UnsEvents {\n // Emitters in MqttProxy, UnsMqttProxy\n input: { topic: string; message: string, packet: any };\n mqttProxyStatus: { event: string, value: number, uom: MeasurementUnit, statusTopic: string };\n \n // Emitters in MqttProxy\n error: { code: number; message: string };\n \n // Emitters in UnsMqttProxy\n mqttWorker: { command: string, instanceName: string; batchSize: number, referenceHash: string };\n\n // Emitter in UnsCronProxy\n cronEvent: {};\n\n // Emitters in UnsApiProxy\n apiGetEvent: {req: any, res: any};\n\n // Emitters in UnsProxy\n unsProxyProducedTopics: { producedTopics: ITopicObject[], statusTopic: string };\n\n // Emitters in UnsProxy\n unsProxyProducedApiEndpoints: { producedApiEndpoints: IApiObject[], statusTopic: string };\n}\n\nexport interface IUnsExtendedData extends IUnsData {\n valueType: ValueTypeString;\n}\n\nexport interface IUnsData {\n time: ISO8601;\n value: ValueType;\n dataGroup?: string;\n uom?: MeasurementUnit;\n foreignEventKey?: string;\n}\n\nexport interface IUnsEvent {\n time: ISO8601;\n dataGroup?: string;\n details?: string;\n uniqueEventId?: string;\n}\n\nexport interface IUnsTable {\n time: ISO8601;\n values: Record<string, string | number | undefined | null>\n dataGroup?: string;\n}\n\nexport interface IUnsCommand {\n time: ISO8601;\n details?: string;\n}\n\nexport interface IMqttMessage {\n topic: UnsTopics;\n attribute: UnsAttribute;\n asset: UnsAsset;\n assetDescription?: string;\n objectType: UnsObjectType;\n objectTypeDescription?: string;\n objectId: UnsObjectId;\n description?: string;\n tags?: UnsTags[];\n packet: IUnsPacket;\n attributeNeedsPersistence?: boolean | null;\n}\n\n// This interface represents a packet for a UNS system\nexport interface IUnsPacket {\n // The message object of the packet\n message: IUnsExtendedMessage;\n \n // The HMAC signature of the message\n messageSignature?: string;\n\n // Automatically calculated interval between two packets in ms\n interval?: number;\n\n // Current library version\n readonly version: string;\n\n // Autogenerated sequence number\n sequenceId?: number;\n}\n\nexport interface IUnsPackatParameters {\n\n}\n\nexport interface IUnsMessage {\n command?: IUnsCommand;\n data?: IUnsData;\n event?: IUnsEvent;\n table?: IUnsTable;\n expiresAt?: ISO8601;\n createdAt?: ISO8601;\n}\n\nexport interface IUnsExtendedMessage extends IUnsMessage {\n data?: IUnsExtendedData;\n}\n\nexport interface ITopicObject {\n timestamp: string;\n attribute:string;\n attributeType: UnsAttributeType;\n topic:string;\n description:string;\n dataGroup:string;\n tags:string[] | null;\n attributeNeedsPersistence: boolean | null;\n asset: UnsAsset;\n assetDescription?: string;\n objectType: UnsObjectType;\n objectTypeDescription?: string;\n objectId: UnsObjectId;\n}\n\n// API Interfaces below\nexport interface IApiObject {\n timestamp: string;\n attribute:string;\n topic:string;\n attributeType: UnsAttributeType;\n apiDescription?: string; // Optional description for the API endpoint\n apiHost: string; // Hostname of the service\n apiEndpoint: string; // API endpoint for virtual topics\n apiSwaggerEndpoint: string; // Swagger endpoint for API documentation\n apiMethod: \"GET\" | \"POST\" | \"PUT\" | \"DELETE\"; // HTTP method for API endpoint\n apiQueryParams: QueryParamDef[]; // query parameters for the API endpoint\n asset: UnsAsset;\n objectType: UnsObjectType;\n objectId: UnsObjectId;\n}\n\nexport interface QueryParamDef {\n name: string;\n type: \"string\" | \"number\" | \"boolean\";\n required?: boolean;\n description?: string;\n}\n\nexport interface IApiProxyOptions {\n jwtSecret?: string;\n jwks?: {\n wellKnownJwksUrl: string;\n activeKidUrl?: string;\n cacheTtlMs?: number;\n algorithms?: (\"RS256\" | \"RS384\" | \"RS512\")[];\n };\n}\n\nexport interface IGetEndpointOptions {\n apiDescription?: string;\n tags?: string[];\n queryParams?: QueryParamDef[];\n}\n"]}
@@ -1,43 +1,19 @@
1
- export declare const knownUnsObjectTypes: readonly ["equipment", "material", "personnel", "process-segment", "product-definition", "product-quality", "work-definition", "resource-status", "energy-resource", "utility-resource", "fluid-resource", "consumable-resource", "line", "area", "site", "enterprise", "asset", "sensor"];
1
+ import { GeneratedObjectTypes } from "./uns-dictionary.generated.js";
2
2
  export declare const ObjectTypes: {
3
- /** Physical equipment (machines, furnaces, sensors) */
4
- readonly Equipment: "equipment";
5
- /** Material lots/batches/raw materials */
6
- readonly Material: "material";
7
- /** Operators/supervisors/technologists */
8
- readonly Personnel: "personnel";
9
- /** Process step or activity (e.g., rolling, cooling) */
10
- readonly ProcessSegment: "process-segment";
11
- /** Product specs/recipes/definitions */
12
- readonly ProductDefinition: "product-definition";
13
- /** Quality indicators/results for a product */
14
- readonly ProductQuality: "product-quality";
15
- /** Work/task definitions or workflows */
16
- readonly WorkDefinition: "work-definition";
17
- /** Status of any resource (material/personnel/equipment) */
18
- readonly ResourceStatus: "resource-status";
19
- /** Energy carriers (electricity/steam/gas) */
20
- readonly EnergyResource: "energy-resource";
21
- /** Utilities (water/air/nitrogen/etc.) */
22
- readonly UtilityResource: "utility-resource";
23
- /** Fluids/gases (non-energy) used in process */
24
- readonly FluidResource: "fluid-resource";
25
- /** Consumables (lubricants/cleaners) */
26
- readonly ConsumableResource: "consumable-resource";
27
- /** Production line/work unit */
28
- readonly Line: "line";
29
- /** Area/department within a site */
30
- readonly Area: "area";
31
- /** Plant/site identifier */
32
- readonly Site: "site";
33
- /** Enterprise/company identifier */
34
- readonly Enterprise: "enterprise";
35
- /** Generic asset placeholder */
36
- readonly Asset: "asset";
37
- /** Sensor as a distinct object */
38
- readonly Sensor: "sensor";
3
+ readonly equipment: "equipment";
4
+ readonly material: "material";
5
+ readonly personnel: "personnel";
6
+ readonly "process-segment": "process-segment";
7
+ readonly "product-definition": "product-definition";
8
+ readonly "product-quality": "product-quality";
9
+ readonly "work-definition": "work-definition";
10
+ readonly "resource-status": "resource-status";
11
+ readonly "energy-resource": "energy-resource";
12
+ readonly "utility-resource": "utility-resource";
13
+ readonly "fluid-resource": "fluid-resource";
14
+ readonly "consumable-resource": "consumable-resource";
39
15
  };
40
- export type KnownUnsObjectTypeName = typeof knownUnsObjectTypes[number];
16
+ export type KnownUnsObjectTypeName = keyof typeof GeneratedObjectTypes;
41
17
  export type UnsObjectType = "" | KnownUnsObjectTypeName | (string & {});
42
18
  export type UnsObjectId = "main" | "" | (string & {});
43
19
  //# sourceMappingURL=uns-object.d.ts.map