@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.
Files changed (42) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +147 -147
  3. package/dist/app-config.d.ts.map +1 -0
  4. package/dist/app-config.js.map +1 -0
  5. package/dist/index.d.ts +8 -8
  6. package/dist/index.js +7 -7
  7. package/dist/tools/datahub/datahub-client.js +1 -1
  8. package/dist/tools/datahub/datahub-client.js.map +1 -1
  9. package/dist/tools/file-utils.d.ts +2 -2
  10. package/dist/tools/file-utils.js +24 -24
  11. package/dist/tools/generate-uns-dictionary.d.ts +23 -23
  12. package/dist/tools/generate-uns-dictionary.js +154 -154
  13. package/dist/tools/generate-uns-measurements.d.ts +21 -21
  14. package/dist/tools/generate-uns-measurements.js +126 -126
  15. package/dist/tools/generate-uns-reference.d.ts +2 -2
  16. package/dist/tools/generate-uns-reference.js +85 -85
  17. package/dist/tools/refresh-uns.js +50 -50
  18. package/dist/tools/sync-uns-schema.d.ts +2 -2
  19. package/dist/tools/sync-uns-schema.js +489 -489
  20. package/dist/uns/uns-asset.d.ts +1 -1
  21. package/dist/uns/uns-asset.js +1 -1
  22. package/dist/uns/uns-attributes.d.ts +6 -6
  23. package/dist/uns/uns-attributes.js +9 -9
  24. package/dist/uns/uns-dictionary-registry.d.ts +4 -4
  25. package/dist/uns/uns-dictionary-registry.js +20 -20
  26. package/dist/uns/uns-dictionary.generated.d.ts +663 -663
  27. package/dist/uns/uns-dictionary.generated.js +745 -745
  28. package/dist/uns/uns-interfaces.d.ts +365 -365
  29. package/dist/uns/uns-measurements.generated.d.ts +362 -362
  30. package/dist/uns/uns-measurements.generated.js +359 -359
  31. package/dist/uns/uns-object.d.ts +20 -20
  32. package/dist/uns/uns-object.js +9 -9
  33. package/dist/uns/uns-packet.js +263 -263
  34. package/dist/uns/uns-path.d.ts +2 -2
  35. package/dist/uns/uns-path.js +10 -10
  36. package/dist/uns/uns-proxy-process.js +203 -203
  37. package/dist/uns/uns-proxy.d.ts +51 -51
  38. package/dist/uns/uns-proxy.js +190 -190
  39. package/dist/uns-config/uns-core-schema.d.ts +3276 -3276
  40. package/dist/uns-grpc/uns-gateway.proto +104 -104
  41. package/dist/uns-mqtt/uns-mqtt-proxy.js +477 -477
  42. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- export type UnsAsset = "" | (string & {});
1
+ export type UnsAsset = "" | (string & {});
2
2
  //# sourceMappingURL=uns-asset.d.ts.map
@@ -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