@uns-kit/core 2.0.39 → 2.0.40
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/LICENSE +21 -21
- package/README.md +147 -147
- package/dist/app-config.d.ts.map +1 -0
- package/dist/app-config.js.map +1 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +7 -7
- package/dist/tools/datahub/datahub-client.js +1 -1
- package/dist/tools/datahub/datahub-client.js.map +1 -1
- package/dist/tools/file-utils.d.ts +2 -2
- package/dist/tools/file-utils.js +24 -24
- package/dist/tools/generate-uns-dictionary.d.ts +23 -23
- package/dist/tools/generate-uns-dictionary.js +154 -154
- package/dist/tools/generate-uns-measurements.d.ts +21 -21
- package/dist/tools/generate-uns-measurements.js +126 -126
- package/dist/tools/generate-uns-reference.d.ts +2 -2
- package/dist/tools/generate-uns-reference.js +85 -85
- package/dist/tools/refresh-uns.js +50 -50
- package/dist/tools/sync-uns-schema.d.ts +2 -2
- package/dist/tools/sync-uns-schema.js +489 -489
- package/dist/uns/uns-asset.d.ts +1 -1
- package/dist/uns/uns-asset.js +1 -1
- package/dist/uns/uns-attributes.d.ts +6 -6
- package/dist/uns/uns-attributes.js +9 -9
- package/dist/uns/uns-dictionary-registry.d.ts +4 -4
- package/dist/uns/uns-dictionary-registry.js +20 -20
- package/dist/uns/uns-dictionary.generated.d.ts +663 -663
- package/dist/uns/uns-dictionary.generated.js +745 -745
- package/dist/uns/uns-interfaces.d.ts +365 -365
- package/dist/uns/uns-measurements.generated.d.ts +362 -362
- package/dist/uns/uns-measurements.generated.js +359 -359
- package/dist/uns/uns-object.d.ts +20 -20
- package/dist/uns/uns-object.js +9 -9
- package/dist/uns/uns-packet.js +263 -263
- package/dist/uns/uns-path.d.ts +2 -2
- package/dist/uns/uns-path.js +10 -10
- package/dist/uns/uns-proxy-process.js +203 -203
- package/dist/uns/uns-proxy.d.ts +51 -51
- package/dist/uns/uns-proxy.js +190 -190
- package/dist/uns-config/uns-core-schema.d.ts +3276 -3276
- package/dist/uns-grpc/uns-gateway.proto +104 -104
- package/dist/uns-mqtt/uns-mqtt-proxy.js +477 -477
- package/package.json +1 -1
package/dist/uns/uns-asset.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type UnsAsset = "" | (string & {});
|
|
1
|
+
export type UnsAsset = "" | (string & {});
|
|
2
2
|
//# sourceMappingURL=uns-asset.d.ts.map
|
package/dist/uns/uns-asset.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=uns-asset.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GeneratedAttributes } from "./uns-dictionary.generated.js";
|
|
2
|
-
export declare const knownUnsAttributes: ("status" | "level" | "active-energy-delivered" | "active-energy-received" | "alarm" | "assigned-to" | "authorization-level" | "availability" | "batch-number" | "conductivity" | "consumption" | "consumption-rate" | "cost" | "current" | "deviation" | "downtime" | "duration" | "end-time" | "energy" | "energy-consumption" | "fault-code" | "flow" | "frequency" | "hardness" | "inspection-result" | "instruction-url" | "last-refill" | "location" | "lot-id" | "maintenance-status" | "material-composition" | "material-type" | "operating-hours" | "operator-id" | "output-quantity" | "pass-fail" | "ph" | "planned-end" | "planned-start" | "power" | "presence" | "pressure" | "product-code" | "quantity" | "reactive-energy-delivered" | "reactive-energy-received" | "refill-required" | "revision" | "role" | "specification" | "speed" | "start-time" | "surface-defect" | "target-parameters" | "task-id" | "task-list" | "temperature" | "tensile-strength" | "total-flow" | "utilization" | "version-history" | "vibration" | "voltage" | "work-order-id")[];
|
|
3
|
-
export type KnownUnsAttributeName = typeof GeneratedAttributes[keyof typeof GeneratedAttributes];
|
|
4
|
-
export type UnsAttribute = "" | KnownUnsAttributeName | (string & {});
|
|
5
|
-
export declare const AttributeDescriptions: Record<"status" | "level" | "active-energy-delivered" | "active-energy-received" | "alarm" | "assigned-to" | "authorization-level" | "availability" | "batch-number" | "conductivity" | "consumption" | "consumption-rate" | "cost" | "current" | "deviation" | "downtime" | "duration" | "end-time" | "energy" | "energy-consumption" | "fault-code" | "flow" | "frequency" | "hardness" | "inspection-result" | "instruction-url" | "last-refill" | "location" | "lot-id" | "maintenance-status" | "material-composition" | "material-type" | "operating-hours" | "operator-id" | "output-quantity" | "pass-fail" | "ph" | "planned-end" | "planned-start" | "power" | "presence" | "pressure" | "product-code" | "quantity" | "reactive-energy-delivered" | "reactive-energy-received" | "refill-required" | "revision" | "role" | "specification" | "speed" | "start-time" | "surface-defect" | "target-parameters" | "task-id" | "task-list" | "temperature" | "tensile-strength" | "total-flow" | "utilization" | "version-history" | "vibration" | "voltage" | "work-order-id", string>;
|
|
6
|
-
export declare function getAttributeDescription(name: string): string | undefined;
|
|
1
|
+
import { GeneratedAttributes } from "./uns-dictionary.generated.js";
|
|
2
|
+
export declare const knownUnsAttributes: ("status" | "level" | "active-energy-delivered" | "active-energy-received" | "alarm" | "assigned-to" | "authorization-level" | "availability" | "batch-number" | "conductivity" | "consumption" | "consumption-rate" | "cost" | "current" | "deviation" | "downtime" | "duration" | "end-time" | "energy" | "energy-consumption" | "fault-code" | "flow" | "frequency" | "hardness" | "inspection-result" | "instruction-url" | "last-refill" | "location" | "lot-id" | "maintenance-status" | "material-composition" | "material-type" | "operating-hours" | "operator-id" | "output-quantity" | "pass-fail" | "ph" | "planned-end" | "planned-start" | "power" | "presence" | "pressure" | "product-code" | "quantity" | "reactive-energy-delivered" | "reactive-energy-received" | "refill-required" | "revision" | "role" | "specification" | "speed" | "start-time" | "surface-defect" | "target-parameters" | "task-id" | "task-list" | "temperature" | "tensile-strength" | "total-flow" | "utilization" | "version-history" | "vibration" | "voltage" | "work-order-id")[];
|
|
3
|
+
export type KnownUnsAttributeName = typeof GeneratedAttributes[keyof typeof GeneratedAttributes];
|
|
4
|
+
export type UnsAttribute = "" | KnownUnsAttributeName | (string & {});
|
|
5
|
+
export declare const AttributeDescriptions: Record<"status" | "level" | "active-energy-delivered" | "active-energy-received" | "alarm" | "assigned-to" | "authorization-level" | "availability" | "batch-number" | "conductivity" | "consumption" | "consumption-rate" | "cost" | "current" | "deviation" | "downtime" | "duration" | "end-time" | "energy" | "energy-consumption" | "fault-code" | "flow" | "frequency" | "hardness" | "inspection-result" | "instruction-url" | "last-refill" | "location" | "lot-id" | "maintenance-status" | "material-composition" | "material-type" | "operating-hours" | "operator-id" | "output-quantity" | "pass-fail" | "ph" | "planned-end" | "planned-start" | "power" | "presence" | "pressure" | "product-code" | "quantity" | "reactive-energy-delivered" | "reactive-energy-received" | "refill-required" | "revision" | "role" | "specification" | "speed" | "start-time" | "surface-defect" | "target-parameters" | "task-id" | "task-list" | "temperature" | "tensile-strength" | "total-flow" | "utilization" | "version-history" | "vibration" | "voltage" | "work-order-id", string>;
|
|
6
|
+
export declare function getAttributeDescription(name: string): string | undefined;
|
|
7
7
|
//# sourceMappingURL=uns-attributes.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// Slimmed: use generated dictionary as the source of attributes.
|
|
2
|
-
import { GeneratedAttributes, GeneratedAttributeDescriptions } from "./uns-dictionary.generated.js";
|
|
3
|
-
import { resolveAttributeDescription } from "./uns-dictionary-registry.js";
|
|
4
|
-
export const knownUnsAttributes = Object.values(GeneratedAttributes);
|
|
5
|
-
export const AttributeDescriptions = GeneratedAttributeDescriptions;
|
|
6
|
-
export function getAttributeDescription(name) {
|
|
7
|
-
return (resolveAttributeDescription(name) ??
|
|
8
|
-
AttributeDescriptions[name]);
|
|
9
|
-
}
|
|
1
|
+
// Slimmed: use generated dictionary as the source of attributes.
|
|
2
|
+
import { GeneratedAttributes, GeneratedAttributeDescriptions } from "./uns-dictionary.generated.js";
|
|
3
|
+
import { resolveAttributeDescription } from "./uns-dictionary-registry.js";
|
|
4
|
+
export const knownUnsAttributes = Object.values(GeneratedAttributes);
|
|
5
|
+
export const AttributeDescriptions = GeneratedAttributeDescriptions;
|
|
6
|
+
export function getAttributeDescription(name) {
|
|
7
|
+
return (resolveAttributeDescription(name) ??
|
|
8
|
+
AttributeDescriptions[name]);
|
|
9
|
+
}
|
|
10
10
|
//# sourceMappingURL=uns-attributes.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare function registerObjectTypeDescriptions(map: Record<string, string>): void;
|
|
2
|
-
export declare function registerAttributeDescriptions(map: Record<string, string>): void;
|
|
3
|
-
export declare function resolveObjectTypeDescription(name: string | undefined): string | undefined;
|
|
4
|
-
export declare function resolveAttributeDescription(name: string | undefined): string | undefined;
|
|
1
|
+
export declare function registerObjectTypeDescriptions(map: Record<string, string>): void;
|
|
2
|
+
export declare function registerAttributeDescriptions(map: Record<string, string>): void;
|
|
3
|
+
export declare function resolveObjectTypeDescription(name: string | undefined): string | undefined;
|
|
4
|
+
export declare function resolveAttributeDescription(name: string | undefined): string | undefined;
|
|
5
5
|
//# sourceMappingURL=uns-dictionary-registry.d.ts.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
// Simple registry to allow projects to provide additional descriptions at runtime
|
|
2
|
-
// without coupling core to project-generated files.
|
|
3
|
-
let objectTypeDescriptions = {};
|
|
4
|
-
let attributeDescriptions = {};
|
|
5
|
-
export function registerObjectTypeDescriptions(map) {
|
|
6
|
-
objectTypeDescriptions = { ...objectTypeDescriptions, ...map };
|
|
7
|
-
}
|
|
8
|
-
export function registerAttributeDescriptions(map) {
|
|
9
|
-
attributeDescriptions = { ...attributeDescriptions, ...map };
|
|
10
|
-
}
|
|
11
|
-
export function resolveObjectTypeDescription(name) {
|
|
12
|
-
if (!name)
|
|
13
|
-
return undefined;
|
|
14
|
-
return objectTypeDescriptions[name];
|
|
15
|
-
}
|
|
16
|
-
export function resolveAttributeDescription(name) {
|
|
17
|
-
if (!name)
|
|
18
|
-
return undefined;
|
|
19
|
-
return attributeDescriptions[name];
|
|
20
|
-
}
|
|
1
|
+
// Simple registry to allow projects to provide additional descriptions at runtime
|
|
2
|
+
// without coupling core to project-generated files.
|
|
3
|
+
let objectTypeDescriptions = {};
|
|
4
|
+
let attributeDescriptions = {};
|
|
5
|
+
export function registerObjectTypeDescriptions(map) {
|
|
6
|
+
objectTypeDescriptions = { ...objectTypeDescriptions, ...map };
|
|
7
|
+
}
|
|
8
|
+
export function registerAttributeDescriptions(map) {
|
|
9
|
+
attributeDescriptions = { ...attributeDescriptions, ...map };
|
|
10
|
+
}
|
|
11
|
+
export function resolveObjectTypeDescription(name) {
|
|
12
|
+
if (!name)
|
|
13
|
+
return undefined;
|
|
14
|
+
return objectTypeDescriptions[name];
|
|
15
|
+
}
|
|
16
|
+
export function resolveAttributeDescription(name) {
|
|
17
|
+
if (!name)
|
|
18
|
+
return undefined;
|
|
19
|
+
return attributeDescriptions[name];
|
|
20
|
+
}
|
|
21
21
|
//# sourceMappingURL=uns-dictionary-registry.js.map
|