@effect-opcua/client 0.1.0-alpha.2 → 0.1.0-alpha.3

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.
@@ -4,13 +4,13 @@ import { ClientLayerOptions } from "../../OpcuaClient.mjs";
4
4
  import * as node_opcua0 from "node-opcua";
5
5
  import { OPCUAClient } from "node-opcua";
6
6
  import { Effect, Stream } from "effect";
7
- import * as effect_Scope0 from "effect/Scope";
7
+ import * as effect_Scope4 from "effect/Scope";
8
8
 
9
9
  //#region src/internal/client/make.d.ts
10
10
  declare const makeClientService: (options: ClientLayerOptions) => Effect.Effect<{
11
11
  events: Stream.Stream<OpcuaClientEvent, never, never>;
12
12
  unsafeRawClient: OPCUAClient<node_opcua0.OPCUAClientBaseEvents>;
13
- }, OpcuaConnectError, effect_Scope0.Scope>;
13
+ }, OpcuaConnectError, effect_Scope4.Scope>;
14
14
  //#endregion
15
15
  export { makeClientService };
16
16
  //# sourceMappingURL=make.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as node_opcua0 from "node-opcua";
1
+ import * as node_opcua1 from "node-opcua";
2
2
 
3
3
  //#region src/internal/common/constants.d.ts
4
4
  declare const EVENT_BUFFER_SIZE = 256;
@@ -11,7 +11,7 @@ declare const DEFAULT_BROWSE_REFERENCE_TYPE_ID = "HierarchicalReferences";
11
11
  declare const DEFAULT_BROWSE_DIRECTION = BrowseDirection.Forward;
12
12
  declare const DEFAULT_BROWSE_INCLUDE_SUBTYPES = true;
13
13
  declare const DEFAULT_BROWSE_NODE_CLASS_MASK = 0;
14
- declare const DEFAULT_BROWSE_RESULT_MASK: node_opcua0.ResultMask;
14
+ declare const DEFAULT_BROWSE_RESULT_MASK: node_opcua1.ResultMask;
15
15
  declare const DEFAULT_BROWSE_MAX_REFERENCES_PER_NODE = 0;
16
16
  //#endregion
17
17
  export { DEFAULT_BROWSE_DIRECTION, DEFAULT_BROWSE_INCLUDE_SUBTYPES, DEFAULT_BROWSE_MAX_REFERENCES_PER_NODE, DEFAULT_BROWSE_NODE_CLASS_MASK, DEFAULT_BROWSE_REFERENCE_TYPE_ID, DEFAULT_BROWSE_RESULT_MASK, DEFAULT_LIFETIME_COUNT, DEFAULT_MAX_KEEP_ALIVE_COUNT, DEFAULT_MAX_NOTIFICATIONS_PER_PUBLISH, DEFAULT_PRIORITY, DEFAULT_PUBLISHING_ENABLED, EVENT_BUFFER_SIZE };
@@ -1,7 +1,7 @@
1
1
  import { OpcuaClientEvent, OpcuaSessionEvent, OpcuaSubscriptionEvent } from "./model.mjs";
2
2
  import { ClientSession, ClientSubscription, OPCUAClient } from "node-opcua";
3
3
  import { Effect, PubSub } from "effect";
4
- import * as effect_Scope1 from "effect/Scope";
4
+ import * as effect_Scope0 from "effect/Scope";
5
5
 
6
6
  //#region src/internal/events/wire.d.ts
7
7
  type Emitter = {
@@ -18,20 +18,20 @@ declare const EventBus: {
18
18
  wireEmitter: <A>(emitter: Emitter, mappings: ReadonlyArray<EventMapping<A>>, pubsub: PubSub.PubSub<A>) => Effect.Effect<{
19
19
  event: string;
20
20
  listener: (...args: ReadonlyArray<unknown>) => void;
21
- }[], never, effect_Scope1.Scope>;
21
+ }[], never, effect_Scope0.Scope>;
22
22
  };
23
23
  declare const wireClientEvents: (client: OPCUAClient, events: PubSub.PubSub<OpcuaClientEvent>) => Effect.Effect<{
24
24
  event: string;
25
25
  listener: (...args: ReadonlyArray<unknown>) => void;
26
- }[], never, effect_Scope1.Scope>;
26
+ }[], never, effect_Scope0.Scope>;
27
27
  declare const wireSessionEvents: (session: ClientSession, events: PubSub.PubSub<OpcuaSessionEvent>) => Effect.Effect<{
28
28
  event: string;
29
29
  listener: (...args: ReadonlyArray<unknown>) => void;
30
- }[], never, effect_Scope1.Scope>;
30
+ }[], never, effect_Scope0.Scope>;
31
31
  declare const wireSubscriptionEvents: (subscription: ClientSubscription, events: PubSub.PubSub<OpcuaSubscriptionEvent>) => Effect.Effect<{
32
32
  event: string;
33
33
  listener: (...args: ReadonlyArray<unknown>) => void;
34
- }[], never, effect_Scope1.Scope>;
34
+ }[], never, effect_Scope0.Scope>;
35
35
  //#endregion
36
36
  export { EventBus, wireClientEvents, wireSessionEvents, wireSubscriptionEvents };
37
37
  //# sourceMappingURL=wire.d.mts.map
@@ -9,10 +9,10 @@ import { Effect } from "effect";
9
9
 
10
10
  //#region src/internal/method/operations.d.ts
11
11
  declare const resolveMethod: <const Spec extends AnyMethodDef>(spec: Spec, metadata: MethodMetadata) => Effect.Effect<ResolvedMethod<Spec>, OpcuaConfigurationError | OpcuaMethodNotExecutableError, never>;
12
- declare const callResolvedMethod: <const Spec extends AnyMethodDef>(session: ClientSession, method: ResolvedMethod<Spec>, input: InputOfMethodDef<Spec>, structureRuntime: OpcuaStructureRuntime, options?: MethodCallOptions) => Effect.Effect<MethodCallResult<OutputOfMethodDef<Spec>, Spec["objectId"], Spec["methodId"]>, OpcuaConfigurationError | OpcuaServiceError | OpcuaMethodInputError, never>;
12
+ declare const callResolvedMethod: <const Spec extends AnyMethodDef>(session: ClientSession, method: ResolvedMethod<Spec>, input: InputOfMethodDef<Spec>, structureRuntime: OpcuaStructureRuntime, options?: MethodCallOptions) => Effect.Effect<MethodCallResult<OutputOfMethodDef<Spec>, Spec["objectId"], Spec["methodId"]>, OpcuaServiceError | OpcuaConfigurationError | OpcuaMethodInputError, never>;
13
13
  declare const callMethods: (session: ClientSession, entries: ReadonlyArray<MethodCallEntry<AnyResolvedMethod>>, structureRuntime: OpcuaStructureRuntime, options?: BatchOptions) => Effect.Effect<MethodCallResult<{
14
14
  readonly [x: string]: unknown;
15
- }, string, string>[], OpcuaConfigurationError | OpcuaServiceError | OpcuaMethodInputError, never>;
15
+ }, string, string>[], OpcuaServiceError | OpcuaConfigurationError | OpcuaMethodInputError, never>;
16
16
  declare const methodResultFromRaw: <const Spec extends AnyMethodDef>(method: ResolvedMethod<Spec>, preflight: MethodPreflight, result: CallMethodResult, structureRuntime: OpcuaStructureRuntime) => Effect.Effect<MethodCallResult<OutputOfMethodDef<Spec>, Spec["objectId"], Spec["methodId"]>>;
17
17
  //#endregion
18
18
  export { callMethods, callResolvedMethod, methodResultFromRaw, resolveMethod };
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.mts","names":[],"sources":["../../../src/internal/method/operations.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;cAkCa,mCAAoC,oBACzC,gBACI,mBAAc,MAAA,CAAA,OAAA,eAAA,OAAA,uBAAA,GAAA;cAwCb,wCAAyC,uBAC3C,uBACD,eAAe,cAChB,iBAAiB,yBACN,iCACR,sBAAiB,MAAA,CAAA,OAAA,iBAAA,kBAAA,OAAA,kBAAA,mBAAA,uBAAA,GAAA,iBAAA,GAAA;cA0BhB,uBACF,wBACA,cAAc,gBAAgB,uCACrB,iCACR,iBAAY,MAAA,CAAA,OAAA;EA7EX,UAAA,CAAA,EAAA,MAwCT,CAAA,EAAA,OAAA;CAxC6C,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,EA6EzB,uBAAA,4CA7EyB,EAAA,KAAA,CAAA;AACzC,cAsHK,mBAtHL,EAAA,CAAA,mBAsH+C,YAtH/C,CAAA,CAAA,MAAA,EAuHE,cAvHF,CAuHiB,IAvHjB,CAAA,EAAA,SAAA,EAwHK,eAxHL,EAAA,MAAA,EAyHE,gBAzHF,EAAA,gBAAA,EA0HY,qBA1HZ,EAAA,GAwKA,MAAA,CAAO,MAxKP,CAyKJ,gBAzKI,CA0KF,iBA1KE,CA0KgB,IA1KhB,CAAA,EA2KF,IA3KE,CAAA,UAAA,CAAA,EA4KF,IA5KE,CAAA,UAAA,CAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"operations.d.mts","names":[],"sources":["../../../src/internal/method/operations.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;cAkCa,mCAAoC,oBACzC,gBACI,mBAAc,MAAA,CAAA,OAAA,eAAA,OAAA,uBAAA,GAAA;cAwCb,wCAAyC,uBAC3C,uBACD,eAAe,cAChB,iBAAiB,yBACN,iCACR,sBAAiB,MAAA,CAAA,OAAA,iBAAA,kBAAA,OAAA,kBAAA,mBAAA,iBAAA,GAAA,uBAAA,GAAA;cA0BhB,uBACF,wBACA,cAAc,gBAAgB,uCACrB,iCACR,iBAAY,MAAA,CAAA,OAAA;EA7EX,UAAA,CAAA,EAAA,MAwCT,CAAA,EAAA,OAAA;CAxC6C,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,EA6EzB,iBAAA,kDA7EyB,EAAA,KAAA,CAAA;AACzC,cAsHK,mBAtHL,EAAA,CAAA,mBAsH+C,YAtH/C,CAAA,CAAA,MAAA,EAuHE,cAvHF,CAuHiB,IAvHjB,CAAA,EAAA,SAAA,EAwHK,eAxHL,EAAA,MAAA,EAyHE,gBAzHF,EAAA,gBAAA,EA0HY,qBA1HZ,EAAA,GAwKA,MAAA,CAAO,MAxKP,CAyKJ,gBAzKI,CA0KF,iBA1KE,CA0KgB,IA1KhB,CAAA,EA2KF,IA3KE,CAAA,UAAA,CAAA,EA4KF,IA5KE,CAAA,UAAA,CAAA,CAAA,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { RevisedMonitorItemOptions } from "../../OpcuaSubscription.mjs";
2
2
  import { EffectiveMonitorItem } from "./options.mjs";
3
- import * as node_opcua2 from "node-opcua";
3
+ import * as node_opcua0 from "node-opcua";
4
4
  import { ClientMonitoredItemBase, ClientMonitoredItemGroup, ClientSubscription } from "node-opcua";
5
5
  import { Effect } from "effect";
6
6
 
@@ -9,7 +9,7 @@ declare const monitorItems: <Items>(subscription: ClientSubscription, chunk: Rea
9
9
  group: ClientMonitoredItemGroup;
10
10
  disposeAbort: () => void;
11
11
  }, unknown, never>;
12
- declare const monitoredItemStatusCode: (monitoredItem: ClientMonitoredItemBase | undefined) => node_opcua2.StatusCode;
12
+ declare const monitoredItemStatusCode: (monitoredItem: ClientMonitoredItemBase | undefined) => node_opcua0.StatusCode;
13
13
  declare const revisedMonitorItemOptions: (monitoredItem: ClientMonitoredItemBase | undefined) => RevisedMonitorItemOptions | undefined;
14
14
  //#endregion
15
15
  export { monitorItems, monitoredItemStatusCode, revisedMonitorItemOptions };
@@ -4,7 +4,7 @@ import { StructureArrayDef, StructureDef } from "../structures/model.mjs";
4
4
  import { OpcuaStructureRuntime } from "../structures/runtime.mjs";
5
5
  import { OpcuaConfigurationError, OpcuaEncodeError, OpcuaServiceError } from "../../OpcuaError.mjs";
6
6
  import { OpcuaDynamicValueMetadata } from "./normalize.mjs";
7
- import * as node_opcua1 from "node-opcua";
7
+ import * as node_opcua2 from "node-opcua";
8
8
  import { DataType, DataValue, Variant } from "node-opcua";
9
9
  import { Effect, Schema } from "effect";
10
10
 
@@ -25,7 +25,7 @@ type CodecMetadata = {
25
25
  readonly valueRank: number;
26
26
  readonly arrayDimensions?: ReadonlyArray<number>;
27
27
  readonly raw: {
28
- readonly declaredDataType: node_opcua1.NodeId;
28
+ readonly declaredDataType: node_opcua2.NodeId;
29
29
  readonly builtInDataType: DataType;
30
30
  };
31
31
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-opcua/client",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "0.1.0-alpha.3",
4
4
  "description": "Effect-native OPC-UA client wrapper for node-opcua",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -40,18 +40,18 @@
40
40
  "main": "./dist/index.mjs",
41
41
  "module": "./dist/index.mjs",
42
42
  "types": "./dist/index.d.mts",
43
+ "peerDependencies": {
44
+ "effect": "4.0.0-beta.92"
45
+ },
46
+ "dependencies": {
47
+ "node-opcua": "^2.170.0"
48
+ },
49
+ "devDependencies": {},
43
50
  "scripts": {
44
51
  "build": "tsdown --config-loader unrun",
45
52
  "dev": "tsdown --watch --config-loader unrun",
46
53
  "typecheck": "tsc --noEmit --project tsconfig.json",
47
54
  "test": "vitest run --passWithNoTests",
48
55
  "clean": "rm -rf dist coverage node_modules"
49
- },
50
- "peerDependencies": {
51
- "effect": "catalog:"
52
- },
53
- "dependencies": {
54
- "node-opcua": "^2.170.0"
55
- },
56
- "devDependencies": {}
57
- }
56
+ }
57
+ }