@cadenza.io/service 2.9.0 → 2.11.0
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/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +401 -83
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +366 -50
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _cadenza_io_core from '@cadenza.io/core';
|
|
2
|
-
import { Task, ThrottleTagGetter, Schema, GraphContext, AnyObject, InquiryOptions, TaskResult, GraphRoutine, SchemaDefinition, SignalBroker, InquiryBroker, GraphRunner, GraphRegistry, EmitOptions, CadenzaMode, Intent, TaskOptions, ActorSpec, ActorFactoryOptions,
|
|
2
|
+
import { Task, ThrottleTagGetter, Schema, GraphContext, AnyObject, InquiryOptions, TaskResult, GraphRoutine, SchemaDefinition, SignalBroker, InquiryBroker, GraphRunner, GraphRegistry, EmitOptions, CadenzaMode, Intent, Actor, TaskOptions, ActorSpec, ActorFactoryOptions, ActorDefinition, TaskFunction, DebounceOptions, DebounceTask, EphemeralTaskOptions, EphemeralTask } from '@cadenza.io/core';
|
|
3
3
|
export { Actor, ActorConsistencyProfileName, ActorDefinition, ActorFactoryOptions, ActorInvocationOptions, ActorKeyDefinition, ActorKind, ActorLoadPolicy, ActorRuntimeReadGuard, ActorSpec, ActorStateDefinition, ActorStateReducer, ActorStateStore, ActorTaskBindingDefinition, ActorTaskBindingOptions, ActorTaskContext, ActorTaskHandler, ActorTaskMode, ActorWriteContract, AnyObject, DebounceOptions, DebounceTask, EphemeralTask, EphemeralTaskOptions, GraphRoutine, IdempotencyPolicy, RetryPolicy, SessionPolicy, Task, TaskFunction, TaskOptions, ThrottleTagGetter } from '@cadenza.io/core';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -22223,6 +22223,8 @@ declare class CadenzaService {
|
|
|
22223
22223
|
*/
|
|
22224
22224
|
static log(message: string, data?: any, level?: "info" | "warning" | "error" | "critical", subjectServiceName?: string | null, subjectServiceInstanceId?: string | null): void;
|
|
22225
22225
|
static get(taskName: string): Task | undefined;
|
|
22226
|
+
static getActor<D extends Record<string, any> = AnyObject, R = AnyObject>(actorName: string): Actor<D, R> | undefined;
|
|
22227
|
+
static getAllActors<D extends Record<string, any> = AnyObject, R = AnyObject>(): Actor<D, R>[];
|
|
22226
22228
|
static getRoutine(routineName: string): GraphRoutine | undefined;
|
|
22227
22229
|
/**
|
|
22228
22230
|
* Creates a new DeputyTask instance based on the provided routine name, service name, and options.
|
|
@@ -22858,6 +22860,8 @@ declare class SocketController {
|
|
|
22858
22860
|
private readonly diagnosticsMaxClientEntries;
|
|
22859
22861
|
private readonly destroyedDiagnosticsTtlMs;
|
|
22860
22862
|
private readonly socketServerDefaultKey;
|
|
22863
|
+
private readonly socketServerInitialSessionState;
|
|
22864
|
+
private readonly socketClientInitialSessionState;
|
|
22861
22865
|
private readonly socketServerActor;
|
|
22862
22866
|
private readonly socketClientActor;
|
|
22863
22867
|
private readonly socketClientDiagnosticsActor;
|
|
@@ -22865,8 +22869,6 @@ declare class SocketController {
|
|
|
22865
22869
|
private registerDiagnosticsTasks;
|
|
22866
22870
|
private registerSocketServerTasks;
|
|
22867
22871
|
private registerSocketClientTasks;
|
|
22868
|
-
private createInitialSocketServerSessionState;
|
|
22869
|
-
private createInitialSocketClientSessionState;
|
|
22870
22872
|
private resolveSocketServerKey;
|
|
22871
22873
|
private resolveSocketClientFetchId;
|
|
22872
22874
|
private resolveServicePort;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _cadenza_io_core from '@cadenza.io/core';
|
|
2
|
-
import { Task, ThrottleTagGetter, Schema, GraphContext, AnyObject, InquiryOptions, TaskResult, GraphRoutine, SchemaDefinition, SignalBroker, InquiryBroker, GraphRunner, GraphRegistry, EmitOptions, CadenzaMode, Intent, TaskOptions, ActorSpec, ActorFactoryOptions,
|
|
2
|
+
import { Task, ThrottleTagGetter, Schema, GraphContext, AnyObject, InquiryOptions, TaskResult, GraphRoutine, SchemaDefinition, SignalBroker, InquiryBroker, GraphRunner, GraphRegistry, EmitOptions, CadenzaMode, Intent, Actor, TaskOptions, ActorSpec, ActorFactoryOptions, ActorDefinition, TaskFunction, DebounceOptions, DebounceTask, EphemeralTaskOptions, EphemeralTask } from '@cadenza.io/core';
|
|
3
3
|
export { Actor, ActorConsistencyProfileName, ActorDefinition, ActorFactoryOptions, ActorInvocationOptions, ActorKeyDefinition, ActorKind, ActorLoadPolicy, ActorRuntimeReadGuard, ActorSpec, ActorStateDefinition, ActorStateReducer, ActorStateStore, ActorTaskBindingDefinition, ActorTaskBindingOptions, ActorTaskContext, ActorTaskHandler, ActorTaskMode, ActorWriteContract, AnyObject, DebounceOptions, DebounceTask, EphemeralTask, EphemeralTaskOptions, GraphRoutine, IdempotencyPolicy, RetryPolicy, SessionPolicy, Task, TaskFunction, TaskOptions, ThrottleTagGetter } from '@cadenza.io/core';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -22223,6 +22223,8 @@ declare class CadenzaService {
|
|
|
22223
22223
|
*/
|
|
22224
22224
|
static log(message: string, data?: any, level?: "info" | "warning" | "error" | "critical", subjectServiceName?: string | null, subjectServiceInstanceId?: string | null): void;
|
|
22225
22225
|
static get(taskName: string): Task | undefined;
|
|
22226
|
+
static getActor<D extends Record<string, any> = AnyObject, R = AnyObject>(actorName: string): Actor<D, R> | undefined;
|
|
22227
|
+
static getAllActors<D extends Record<string, any> = AnyObject, R = AnyObject>(): Actor<D, R>[];
|
|
22226
22228
|
static getRoutine(routineName: string): GraphRoutine | undefined;
|
|
22227
22229
|
/**
|
|
22228
22230
|
* Creates a new DeputyTask instance based on the provided routine name, service name, and options.
|
|
@@ -22858,6 +22860,8 @@ declare class SocketController {
|
|
|
22858
22860
|
private readonly diagnosticsMaxClientEntries;
|
|
22859
22861
|
private readonly destroyedDiagnosticsTtlMs;
|
|
22860
22862
|
private readonly socketServerDefaultKey;
|
|
22863
|
+
private readonly socketServerInitialSessionState;
|
|
22864
|
+
private readonly socketClientInitialSessionState;
|
|
22861
22865
|
private readonly socketServerActor;
|
|
22862
22866
|
private readonly socketClientActor;
|
|
22863
22867
|
private readonly socketClientDiagnosticsActor;
|
|
@@ -22865,8 +22869,6 @@ declare class SocketController {
|
|
|
22865
22869
|
private registerDiagnosticsTasks;
|
|
22866
22870
|
private registerSocketServerTasks;
|
|
22867
22871
|
private registerSocketClientTasks;
|
|
22868
|
-
private createInitialSocketServerSessionState;
|
|
22869
|
-
private createInitialSocketClientSessionState;
|
|
22870
22872
|
private resolveSocketServerKey;
|
|
22871
22873
|
private resolveSocketClientFetchId;
|
|
22872
22874
|
private resolveServicePort;
|