@cadenza.io/service 2.17.80 → 2.18.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/browser/index.js +418 -551
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +418 -551
- package/dist/browser/index.mjs.map +1 -1
- package/dist/index.d.mts +40 -3
- package/dist/index.d.ts +40 -3
- package/dist/index.js +420 -579
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +418 -579
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, Actor, TaskOptions, ActorSpec, ActorFactoryOptions, ActorDefinition, TaskFunction, DebounceOptions, DebounceTask, EphemeralTaskOptions, EphemeralTask } from '@cadenza.io/core';
|
|
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';
|
|
2
|
+
import { Task, ThrottleTagGetter, Schema, GraphContext, AnyObject, InquiryOptions, TaskResult, GraphRoutine, SchemaDefinition, SignalBroker, InquiryBroker, GraphRunner, GraphRegistry, EmitOptions, CadenzaMode, Intent, RuntimeValidationPolicy, RuntimeValidationScope, Actor, TaskOptions, ActorSpec, ActorFactoryOptions, ActorDefinition, TaskFunction, DebounceOptions, DebounceTask, EphemeralTaskOptions, EphemeralTask } from '@cadenza.io/core';
|
|
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, RuntimeValidationPolicy, RuntimeValidationScope, SessionPolicy, Task, TaskFunction, TaskOptions, ThrottleTagGetter } from '@cadenza.io/core';
|
|
4
4
|
import { Pool } from 'pg';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -231,6 +231,7 @@ declare class ServiceRegistry {
|
|
|
231
231
|
private deputies;
|
|
232
232
|
private remoteSignals;
|
|
233
233
|
private remoteIntents;
|
|
234
|
+
private gatheredSyncTransmissionServices;
|
|
234
235
|
private remoteIntentDeputiesByKey;
|
|
235
236
|
private remoteIntentDeputiesByTask;
|
|
236
237
|
private dependeesByService;
|
|
@@ -258,6 +259,7 @@ declare class ServiceRegistry {
|
|
|
258
259
|
handleTransportUpdateTask: Task;
|
|
259
260
|
handleGlobalSignalRegistrationTask: Task;
|
|
260
261
|
handleGlobalIntentRegistrationTask: Task;
|
|
262
|
+
reconcileGatheredSyncTransmissionsTask: Task;
|
|
261
263
|
handleSocketStatusUpdateTask: Task;
|
|
262
264
|
fullSyncTask: GraphRoutine | Task;
|
|
263
265
|
getAllInstances: Task;
|
|
@@ -280,6 +282,9 @@ declare class ServiceRegistry {
|
|
|
280
282
|
private normalizeSignalMaps;
|
|
281
283
|
private normalizeIntentMaps;
|
|
282
284
|
private normalizeServiceInstancesFromSync;
|
|
285
|
+
private shouldReconcileGatheredSyncTransmissions;
|
|
286
|
+
private collectGatheredSyncTransmissionRecipients;
|
|
287
|
+
private reconcileGatheredSyncTransmissions;
|
|
283
288
|
private registerRemoteIntentDeputy;
|
|
284
289
|
private unregisterRemoteIntentDeputy;
|
|
285
290
|
getInquiryResponderDescriptor(task: Task): InquiryResponderDescriptor;
|
|
@@ -22300,6 +22305,14 @@ declare class CadenzaService {
|
|
|
22300
22305
|
static schedule(signal: string, context: AnyObject, timeoutMs: number, exactDateTime?: Date): void;
|
|
22301
22306
|
static interval(signal: string, context: AnyObject, intervalMs: number, leading?: boolean, startDateTime?: Date): void;
|
|
22302
22307
|
static defineIntent(intent: Intent): Intent;
|
|
22308
|
+
static getRuntimeValidationPolicy(): RuntimeValidationPolicy;
|
|
22309
|
+
static setRuntimeValidationPolicy(policy?: RuntimeValidationPolicy): RuntimeValidationPolicy;
|
|
22310
|
+
static replaceRuntimeValidationPolicy(policy?: RuntimeValidationPolicy): RuntimeValidationPolicy;
|
|
22311
|
+
static clearRuntimeValidationPolicy(): void;
|
|
22312
|
+
static getRuntimeValidationScopes(): RuntimeValidationScope[];
|
|
22313
|
+
static upsertRuntimeValidationScope(scope: RuntimeValidationScope): RuntimeValidationScope;
|
|
22314
|
+
static removeRuntimeValidationScope(id: string): void;
|
|
22315
|
+
static clearRuntimeValidationScopes(): void;
|
|
22303
22316
|
private static getInquiryResponderDescriptor;
|
|
22304
22317
|
private static compareInquiryResponders;
|
|
22305
22318
|
private static buildInquirySummary;
|
|
@@ -23058,6 +23071,30 @@ declare class SignalController {
|
|
|
23058
23071
|
constructor();
|
|
23059
23072
|
}
|
|
23060
23073
|
|
|
23074
|
+
declare const RUNTIME_VALIDATION_INTENTS: {
|
|
23075
|
+
readonly getPolicy: "meta-runtime-validation-policy-get";
|
|
23076
|
+
readonly setPolicy: "meta-runtime-validation-policy-set";
|
|
23077
|
+
readonly replacePolicy: "meta-runtime-validation-policy-replace";
|
|
23078
|
+
readonly clearPolicy: "meta-runtime-validation-policy-clear";
|
|
23079
|
+
readonly listScopes: "meta-runtime-validation-scope-list";
|
|
23080
|
+
readonly upsertScope: "meta-runtime-validation-scope-upsert";
|
|
23081
|
+
readonly removeScope: "meta-runtime-validation-scope-remove";
|
|
23082
|
+
readonly clearScopes: "meta-runtime-validation-scope-clear";
|
|
23083
|
+
};
|
|
23084
|
+
declare const RUNTIME_VALIDATION_SIGNALS: {
|
|
23085
|
+
readonly setPolicyRequested: "meta.runtime_validation.policy_set_requested";
|
|
23086
|
+
readonly replacePolicyRequested: "meta.runtime_validation.policy_replace_requested";
|
|
23087
|
+
readonly clearPolicyRequested: "meta.runtime_validation.policy_clear_requested";
|
|
23088
|
+
readonly upsertScopeRequested: "meta.runtime_validation.scope_upsert_requested";
|
|
23089
|
+
readonly removeScopeRequested: "meta.runtime_validation.scope_remove_requested";
|
|
23090
|
+
readonly clearScopesRequested: "meta.runtime_validation.scope_clear_requested";
|
|
23091
|
+
readonly policyUpdated: "meta.runtime_validation.policy_updated";
|
|
23092
|
+
readonly policyCleared: "meta.runtime_validation.policy_cleared";
|
|
23093
|
+
readonly scopeUpserted: "meta.runtime_validation.scope_upserted";
|
|
23094
|
+
readonly scopeRemoved: "meta.runtime_validation.scope_removed";
|
|
23095
|
+
readonly scopesCleared: "meta.runtime_validation.scopes_cleared";
|
|
23096
|
+
};
|
|
23097
|
+
|
|
23061
23098
|
interface PostgresActorSafetyPolicy {
|
|
23062
23099
|
statementTimeoutMs: number;
|
|
23063
23100
|
retryCount: number;
|
|
@@ -23189,4 +23226,4 @@ interface ServiceInstanceDescriptor {
|
|
|
23189
23226
|
clientCreatedTransportIds?: string[];
|
|
23190
23227
|
}
|
|
23191
23228
|
|
|
23192
|
-
export { type AggregateDefinition, type AggregateFunction, type BootstrapOptions, DatabaseController, DatabaseTask, type DbOperationPayload, type DbOperationType$1 as DbOperationType, type DeputyDescriptor, DeputyTask, type DistributedInquiryMeta, type DistributedInquiryOptions, GraphMetadataController, type HydrationOptions, type InquiryResponderDescriptor, type InquiryResponderStatus, type JoinDefinition, type NetworkMode, type OpEffect, type QueryMode, type ResolvedBootstrapEndpoint, RestController, type SSRInquiryBridge, type SSRInquiryBridgeOptions, type SecurityProfile, type ServerOptions, type ServiceInstanceDescriptor, ServiceRegistry, type ServiceTransportConfig, type ServiceTransportDescriptor, type ServiceTransportProtocol, type ServiceTransportRole, type ServiceTransportSecurityProfile, SignalController, SignalTransmissionTask, SocketController, type SortDirection, type SubOperation, type SubOperationType, type ValueOrSubOp, createSSRInquiryBridge, CadenzaService as default };
|
|
23229
|
+
export { type AggregateDefinition, type AggregateFunction, type BootstrapOptions, DatabaseController, DatabaseTask, type DbOperationPayload, type DbOperationType$1 as DbOperationType, type DeputyDescriptor, DeputyTask, type DistributedInquiryMeta, type DistributedInquiryOptions, GraphMetadataController, type HydrationOptions, type InquiryResponderDescriptor, type InquiryResponderStatus, type JoinDefinition, type NetworkMode, type OpEffect, type QueryMode, RUNTIME_VALIDATION_INTENTS, RUNTIME_VALIDATION_SIGNALS, type ResolvedBootstrapEndpoint, RestController, type SSRInquiryBridge, type SSRInquiryBridgeOptions, type SecurityProfile, type ServerOptions, type ServiceInstanceDescriptor, ServiceRegistry, type ServiceTransportConfig, type ServiceTransportDescriptor, type ServiceTransportProtocol, type ServiceTransportRole, type ServiceTransportSecurityProfile, SignalController, SignalTransmissionTask, SocketController, type SortDirection, type SubOperation, type SubOperationType, type ValueOrSubOp, createSSRInquiryBridge, CadenzaService as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, Actor, TaskOptions, ActorSpec, ActorFactoryOptions, ActorDefinition, TaskFunction, DebounceOptions, DebounceTask, EphemeralTaskOptions, EphemeralTask } from '@cadenza.io/core';
|
|
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';
|
|
2
|
+
import { Task, ThrottleTagGetter, Schema, GraphContext, AnyObject, InquiryOptions, TaskResult, GraphRoutine, SchemaDefinition, SignalBroker, InquiryBroker, GraphRunner, GraphRegistry, EmitOptions, CadenzaMode, Intent, RuntimeValidationPolicy, RuntimeValidationScope, Actor, TaskOptions, ActorSpec, ActorFactoryOptions, ActorDefinition, TaskFunction, DebounceOptions, DebounceTask, EphemeralTaskOptions, EphemeralTask } from '@cadenza.io/core';
|
|
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, RuntimeValidationPolicy, RuntimeValidationScope, SessionPolicy, Task, TaskFunction, TaskOptions, ThrottleTagGetter } from '@cadenza.io/core';
|
|
4
4
|
import { Pool } from 'pg';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -231,6 +231,7 @@ declare class ServiceRegistry {
|
|
|
231
231
|
private deputies;
|
|
232
232
|
private remoteSignals;
|
|
233
233
|
private remoteIntents;
|
|
234
|
+
private gatheredSyncTransmissionServices;
|
|
234
235
|
private remoteIntentDeputiesByKey;
|
|
235
236
|
private remoteIntentDeputiesByTask;
|
|
236
237
|
private dependeesByService;
|
|
@@ -258,6 +259,7 @@ declare class ServiceRegistry {
|
|
|
258
259
|
handleTransportUpdateTask: Task;
|
|
259
260
|
handleGlobalSignalRegistrationTask: Task;
|
|
260
261
|
handleGlobalIntentRegistrationTask: Task;
|
|
262
|
+
reconcileGatheredSyncTransmissionsTask: Task;
|
|
261
263
|
handleSocketStatusUpdateTask: Task;
|
|
262
264
|
fullSyncTask: GraphRoutine | Task;
|
|
263
265
|
getAllInstances: Task;
|
|
@@ -280,6 +282,9 @@ declare class ServiceRegistry {
|
|
|
280
282
|
private normalizeSignalMaps;
|
|
281
283
|
private normalizeIntentMaps;
|
|
282
284
|
private normalizeServiceInstancesFromSync;
|
|
285
|
+
private shouldReconcileGatheredSyncTransmissions;
|
|
286
|
+
private collectGatheredSyncTransmissionRecipients;
|
|
287
|
+
private reconcileGatheredSyncTransmissions;
|
|
283
288
|
private registerRemoteIntentDeputy;
|
|
284
289
|
private unregisterRemoteIntentDeputy;
|
|
285
290
|
getInquiryResponderDescriptor(task: Task): InquiryResponderDescriptor;
|
|
@@ -22300,6 +22305,14 @@ declare class CadenzaService {
|
|
|
22300
22305
|
static schedule(signal: string, context: AnyObject, timeoutMs: number, exactDateTime?: Date): void;
|
|
22301
22306
|
static interval(signal: string, context: AnyObject, intervalMs: number, leading?: boolean, startDateTime?: Date): void;
|
|
22302
22307
|
static defineIntent(intent: Intent): Intent;
|
|
22308
|
+
static getRuntimeValidationPolicy(): RuntimeValidationPolicy;
|
|
22309
|
+
static setRuntimeValidationPolicy(policy?: RuntimeValidationPolicy): RuntimeValidationPolicy;
|
|
22310
|
+
static replaceRuntimeValidationPolicy(policy?: RuntimeValidationPolicy): RuntimeValidationPolicy;
|
|
22311
|
+
static clearRuntimeValidationPolicy(): void;
|
|
22312
|
+
static getRuntimeValidationScopes(): RuntimeValidationScope[];
|
|
22313
|
+
static upsertRuntimeValidationScope(scope: RuntimeValidationScope): RuntimeValidationScope;
|
|
22314
|
+
static removeRuntimeValidationScope(id: string): void;
|
|
22315
|
+
static clearRuntimeValidationScopes(): void;
|
|
22303
22316
|
private static getInquiryResponderDescriptor;
|
|
22304
22317
|
private static compareInquiryResponders;
|
|
22305
22318
|
private static buildInquirySummary;
|
|
@@ -23058,6 +23071,30 @@ declare class SignalController {
|
|
|
23058
23071
|
constructor();
|
|
23059
23072
|
}
|
|
23060
23073
|
|
|
23074
|
+
declare const RUNTIME_VALIDATION_INTENTS: {
|
|
23075
|
+
readonly getPolicy: "meta-runtime-validation-policy-get";
|
|
23076
|
+
readonly setPolicy: "meta-runtime-validation-policy-set";
|
|
23077
|
+
readonly replacePolicy: "meta-runtime-validation-policy-replace";
|
|
23078
|
+
readonly clearPolicy: "meta-runtime-validation-policy-clear";
|
|
23079
|
+
readonly listScopes: "meta-runtime-validation-scope-list";
|
|
23080
|
+
readonly upsertScope: "meta-runtime-validation-scope-upsert";
|
|
23081
|
+
readonly removeScope: "meta-runtime-validation-scope-remove";
|
|
23082
|
+
readonly clearScopes: "meta-runtime-validation-scope-clear";
|
|
23083
|
+
};
|
|
23084
|
+
declare const RUNTIME_VALIDATION_SIGNALS: {
|
|
23085
|
+
readonly setPolicyRequested: "meta.runtime_validation.policy_set_requested";
|
|
23086
|
+
readonly replacePolicyRequested: "meta.runtime_validation.policy_replace_requested";
|
|
23087
|
+
readonly clearPolicyRequested: "meta.runtime_validation.policy_clear_requested";
|
|
23088
|
+
readonly upsertScopeRequested: "meta.runtime_validation.scope_upsert_requested";
|
|
23089
|
+
readonly removeScopeRequested: "meta.runtime_validation.scope_remove_requested";
|
|
23090
|
+
readonly clearScopesRequested: "meta.runtime_validation.scope_clear_requested";
|
|
23091
|
+
readonly policyUpdated: "meta.runtime_validation.policy_updated";
|
|
23092
|
+
readonly policyCleared: "meta.runtime_validation.policy_cleared";
|
|
23093
|
+
readonly scopeUpserted: "meta.runtime_validation.scope_upserted";
|
|
23094
|
+
readonly scopeRemoved: "meta.runtime_validation.scope_removed";
|
|
23095
|
+
readonly scopesCleared: "meta.runtime_validation.scopes_cleared";
|
|
23096
|
+
};
|
|
23097
|
+
|
|
23061
23098
|
interface PostgresActorSafetyPolicy {
|
|
23062
23099
|
statementTimeoutMs: number;
|
|
23063
23100
|
retryCount: number;
|
|
@@ -23189,4 +23226,4 @@ interface ServiceInstanceDescriptor {
|
|
|
23189
23226
|
clientCreatedTransportIds?: string[];
|
|
23190
23227
|
}
|
|
23191
23228
|
|
|
23192
|
-
export { type AggregateDefinition, type AggregateFunction, type BootstrapOptions, DatabaseController, DatabaseTask, type DbOperationPayload, type DbOperationType$1 as DbOperationType, type DeputyDescriptor, DeputyTask, type DistributedInquiryMeta, type DistributedInquiryOptions, GraphMetadataController, type HydrationOptions, type InquiryResponderDescriptor, type InquiryResponderStatus, type JoinDefinition, type NetworkMode, type OpEffect, type QueryMode, type ResolvedBootstrapEndpoint, RestController, type SSRInquiryBridge, type SSRInquiryBridgeOptions, type SecurityProfile, type ServerOptions, type ServiceInstanceDescriptor, ServiceRegistry, type ServiceTransportConfig, type ServiceTransportDescriptor, type ServiceTransportProtocol, type ServiceTransportRole, type ServiceTransportSecurityProfile, SignalController, SignalTransmissionTask, SocketController, type SortDirection, type SubOperation, type SubOperationType, type ValueOrSubOp, createSSRInquiryBridge, CadenzaService as default };
|
|
23229
|
+
export { type AggregateDefinition, type AggregateFunction, type BootstrapOptions, DatabaseController, DatabaseTask, type DbOperationPayload, type DbOperationType$1 as DbOperationType, type DeputyDescriptor, DeputyTask, type DistributedInquiryMeta, type DistributedInquiryOptions, GraphMetadataController, type HydrationOptions, type InquiryResponderDescriptor, type InquiryResponderStatus, type JoinDefinition, type NetworkMode, type OpEffect, type QueryMode, RUNTIME_VALIDATION_INTENTS, RUNTIME_VALIDATION_SIGNALS, type ResolvedBootstrapEndpoint, RestController, type SSRInquiryBridge, type SSRInquiryBridgeOptions, type SecurityProfile, type ServerOptions, type ServiceInstanceDescriptor, ServiceRegistry, type ServiceTransportConfig, type ServiceTransportDescriptor, type ServiceTransportProtocol, type ServiceTransportRole, type ServiceTransportSecurityProfile, SignalController, SignalTransmissionTask, SocketController, type SortDirection, type SubOperation, type SubOperationType, type ValueOrSubOp, createSSRInquiryBridge, CadenzaService as default };
|