@uns-kit/core 2.0.40 → 2.0.41
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 +170 -147
- package/dist/index.d.ts +9 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -7
- package/dist/index.js.map +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/service-metadata.d.ts +53 -0
- package/dist/uns/service-metadata.d.ts.map +1 -0
- package/dist/uns/service-metadata.js +56 -0
- package/dist/uns/service-metadata.js.map +1 -0
- 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.d.ts +11 -0
- package/dist/uns/uns-proxy-process.d.ts.map +1 -1
- package/dist/uns/uns-proxy-process.js +224 -203
- package/dist/uns/uns-proxy-process.js.map +1 -1
- 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/mqtt-topic-builder.d.ts +6 -0
- package/dist/uns-mqtt/mqtt-topic-builder.d.ts.map +1 -1
- package/dist/uns-mqtt/mqtt-topic-builder.js +8 -0
- package/dist/uns-mqtt/mqtt-topic-builder.js.map +1 -1
- package/dist/uns-mqtt/uns-mqtt-proxy.js +477 -477
- package/package.json +1 -1
- package/dist/app-config.d.ts.map +0 -1
- package/dist/app-config.js.map +0 -1
package/package.json
CHANGED
package/dist/app-config.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-config.d.ts","sourceRoot":"","sources":["../src/app-config.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,SAAS,GAAG;IACpB,GAAG,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC;QAC7C,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACtC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACrC,GAAG,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;KAC7C,CAAC;IACF,KAAK,CAAC,EAAE;QACJ,IAAI,EAAE,MAAM,GAAG,CAAC;YACZ,2CAA2C;YAC3C,QAAQ,EAAE,QAAQ,CAAC;YACnB,uDAAuD;YACvD,KAAK,EAAE,MAAM,CAAC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,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC;YAClB,oDAAoD;YACpD,QAAQ,EAAE,KAAK,CAAC;YAChB,gDAAgD;YAChD,GAAG,EAAE,MAAM,CAAC;YACZ,0EAA0E;YAC1E,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;YAC/B,wEAAwE;YACxE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;SAChC,GAAG;YACA,sCAAsC;YACtC,QAAQ,EAAE,WAAW,CAAC;YACtB,6DAA6D;YAC7D,IAAI,EAAE,MAAM,CAAC;YACb,6CAA6C;YAC7C,GAAG,EAAE,MAAM,CAAC;YACZ,wEAAwE;YACxE,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;YAC/B,4EAA4E;YAC5E,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YACjC,wEAAwE;YACxE,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAC/B,oFAAoF;YACpF,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;SAChC,CAAC,CAAC,GAAG,SAAS,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KACjC,CAAC;IACF,MAAM,CAAC,EAAE;QACL,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC9B,YAAY,EAAE,MAAM,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KAChC,GAAG,SAAS,CAAC;CACjB,CAAA"}
|
package/dist/app-config.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-config.js","sourceRoot":"","sources":["../src/app-config.ts"],"names":[],"mappings":"","sourcesContent":["/* Auto-generated. Do not edit by hand. */\r\nexport type AppConfig = {\r\n uns: {\r\n graphql: string;\r\n rest: string;\r\n instanceMode?: \"wait\" | \"force\" | \"handover\";\r\n processName?: string | undefined;\r\n handover?: boolean;\r\n jwksWellKnownUrl?: string | undefined;\r\n kidWellKnownUrl?: string | undefined;\r\n env?: \"dev\" | \"staging\" | \"test\" | \"prod\";\r\n };\r\n input?: {\r\n host: string | ({\r\n /** Use the supplied host or IP address. */\r\n provider: \"inline\";\r\n /** Host or IP address that should be used directly. */\r\n value: string;\r\n } | {\r\n /** Resolve the host from an external mapping. */\r\n provider: \"external\";\r\n /** Identifier used when resolving the host from HostResolverOptions. */\r\n key: string;\r\n /** Allow the external host to be missing without throwing during resolution. */\r\n optional?: boolean | undefined;\r\n /** Fallback host when optional is true and the external entry is missing. */\r\n default?: string | undefined;\r\n } | {\r\n /** Resolve the host from local network interfaces. */\r\n provider: \"system\";\r\n /** Address family to return when scanning interfaces. */\r\n family?: \"IPv4\" | \"IPv6\";\r\n /** Specific interface to read (falls back to the first match when omitted). */\r\n interfaceName?: string | undefined;\r\n /** Allow the interface lookup to fail without throwing during resolution. */\r\n optional?: boolean | undefined;\r\n /** Fallback host/IP when optional is true and no interface matches. */\r\n default?: string | undefined;\r\n });\r\n username?: string | undefined;\r\n password?: (string | ({\r\n /** Load the secret from an environment variable. */\r\n provider: \"env\";\r\n /** Name of the environment variable to read. */\r\n key: string;\r\n /** Allow the variable to be absent without throwing during resolution. */\r\n optional?: boolean | undefined;\r\n /** Fallback value when optional is true and the variable is missing. */\r\n default?: string | undefined;\r\n } | {\r\n /** Load the secret from Infisical. */\r\n provider: \"infisical\";\r\n /** Secret folder path in Infisical, e.g. '/app/database'. */\r\n path: string;\r\n /** Secret key/name inside the given path. */\r\n key: string;\r\n /** Allow the secret to be absent without throwing during resolution. */\r\n optional?: boolean | undefined;\r\n /** Infisical environment override (defaults to current mode if omitted). */\r\n environment?: string | undefined;\r\n /** Optional Infisical project identifier when not using the default. */\r\n projectId?: string | undefined;\r\n /** Fallback value when the secret is missing and optional resolution is allowed. */\r\n default?: string | undefined;\r\n })) | undefined;\r\n clientId?: string | undefined;\r\n } | undefined;\r\n output?: {\r\n host: string | ({\r\n /** Use the supplied host or IP address. */\r\n provider: \"inline\";\r\n /** Host or IP address that should be used directly. */\r\n value: string;\r\n } | {\r\n /** Resolve the host from an external mapping. */\r\n provider: \"external\";\r\n /** Identifier used when resolving the host from HostResolverOptions. */\r\n key: string;\r\n /** Allow the external host to be missing without throwing during resolution. */\r\n optional?: boolean | undefined;\r\n /** Fallback host when optional is true and the external entry is missing. */\r\n default?: string | undefined;\r\n } | {\r\n /** Resolve the host from local network interfaces. */\r\n provider: \"system\";\r\n /** Address family to return when scanning interfaces. */\r\n family?: \"IPv4\" | \"IPv6\";\r\n /** Specific interface to read (falls back to the first match when omitted). */\r\n interfaceName?: string | undefined;\r\n /** Allow the interface lookup to fail without throwing during resolution. */\r\n optional?: boolean | undefined;\r\n /** Fallback host/IP when optional is true and no interface matches. */\r\n default?: string | undefined;\r\n });\r\n username?: string | undefined;\r\n password?: (string | ({\r\n /** Load the secret from an environment variable. */\r\n provider: \"env\";\r\n /** Name of the environment variable to read. */\r\n key: string;\r\n /** Allow the variable to be absent without throwing during resolution. */\r\n optional?: boolean | undefined;\r\n /** Fallback value when optional is true and the variable is missing. */\r\n default?: string | undefined;\r\n } | {\r\n /** Load the secret from Infisical. */\r\n provider: \"infisical\";\r\n /** Secret folder path in Infisical, e.g. '/app/database'. */\r\n path: string;\r\n /** Secret key/name inside the given path. */\r\n key: string;\r\n /** Allow the secret to be absent without throwing during resolution. */\r\n optional?: boolean | undefined;\r\n /** Infisical environment override (defaults to current mode if omitted). */\r\n environment?: string | undefined;\r\n /** Optional Infisical project identifier when not using the default. */\r\n projectId?: string | undefined;\r\n /** Fallback value when the secret is missing and optional resolution is allowed. */\r\n default?: string | undefined;\r\n })) | undefined;\r\n clientId?: string | undefined;\r\n } | undefined;\r\n infra: {\r\n host: string | ({\r\n /** Use the supplied host or IP address. */\r\n provider: \"inline\";\r\n /** Host or IP address that should be used directly. */\r\n value: string;\r\n } | {\r\n /** Resolve the host from an external mapping. */\r\n provider: \"external\";\r\n /** Identifier used when resolving the host from HostResolverOptions. */\r\n key: string;\r\n /** Allow the external host to be missing without throwing during resolution. */\r\n optional?: boolean | undefined;\r\n /** Fallback host when optional is true and the external entry is missing. */\r\n default?: string | undefined;\r\n } | {\r\n /** Resolve the host from local network interfaces. */\r\n provider: \"system\";\r\n /** Address family to return when scanning interfaces. */\r\n family?: \"IPv4\" | \"IPv6\";\r\n /** Specific interface to read (falls back to the first match when omitted). */\r\n interfaceName?: string | undefined;\r\n /** Allow the interface lookup to fail without throwing during resolution. */\r\n optional?: boolean | undefined;\r\n /** Fallback host/IP when optional is true and no interface matches. */\r\n default?: string | undefined;\r\n });\r\n username?: string | undefined;\r\n password?: (string | ({\r\n /** Load the secret from an environment variable. */\r\n provider: \"env\";\r\n /** Name of the environment variable to read. */\r\n key: string;\r\n /** Allow the variable to be absent without throwing during resolution. */\r\n optional?: boolean | undefined;\r\n /** Fallback value when optional is true and the variable is missing. */\r\n default?: string | undefined;\r\n } | {\r\n /** Load the secret from Infisical. */\r\n provider: \"infisical\";\r\n /** Secret folder path in Infisical, e.g. '/app/database'. */\r\n path: string;\r\n /** Secret key/name inside the given path. */\r\n key: string;\r\n /** Allow the secret to be absent without throwing during resolution. */\r\n optional?: boolean | undefined;\r\n /** Infisical environment override (defaults to current mode if omitted). */\r\n environment?: string | undefined;\r\n /** Optional Infisical project identifier when not using the default. */\r\n projectId?: string | undefined;\r\n /** Fallback value when the secret is missing and optional resolution is allowed. */\r\n default?: string | undefined;\r\n })) | undefined;\r\n clientId?: string | undefined;\r\n };\r\n devops?: {\r\n provider?: string | undefined;\r\n organization: string;\r\n project?: string | undefined;\r\n } | undefined;\r\n}\r\n"]}
|