@toa.io/core 1.0.0-alpha.300 → 1.0.0-alpha.302
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/package.json +5 -5
- package/transpiled/abandon.d.ts +1 -1
- package/transpiled/assignment.d.ts +2 -2
- package/transpiled/call.d.ts +4 -4
- package/transpiled/cascade.d.ts +2 -2
- package/transpiled/component.d.ts +3 -3
- package/transpiled/composition.d.ts +1 -1
- package/transpiled/context.d.ts +6 -6
- package/transpiled/contract/contract.d.ts +1 -1
- package/transpiled/contract/index.d.ts +2 -2
- package/transpiled/contract/reply.d.ts +3 -3
- package/transpiled/contract/request.d.ts +3 -3
- package/transpiled/discovery.d.ts +2 -2
- package/transpiled/effect.d.ts +2 -2
- package/transpiled/emission.d.ts +3 -3
- package/transpiled/entities/changeset.d.ts +1 -1
- package/transpiled/entities/entity.d.ts +3 -3
- package/transpiled/entities/factory.d.ts +5 -5
- package/transpiled/entities/index.d.ts +5 -5
- package/transpiled/entities/set.d.ts +3 -3
- package/transpiled/event.d.ts +4 -4
- package/transpiled/exposition.d.ts +2 -2
- package/transpiled/guard.d.ts +1 -1
- package/transpiled/index.d.ts +37 -37
- package/transpiled/observation.d.ts +2 -2
- package/transpiled/operation.d.ts +11 -11
- package/transpiled/outbox.d.ts +5 -5
- package/transpiled/query/criteria.d.ts +1 -1
- package/transpiled/query/options.d.ts +2 -2
- package/transpiled/query.d.ts +3 -3
- package/transpiled/receiver.d.ts +5 -5
- package/transpiled/reflection.d.ts +1 -1
- package/transpiled/remote.d.ts +2 -2
- package/transpiled/state.d.ts +7 -7
- package/transpiled/transition.d.ts +5 -5
- package/transpiled/transmission.d.ts +3 -3
- package/transpiled/types/atomicity.d.ts +1 -1
- package/transpiled/types/bindings.d.ts +6 -6
- package/transpiled/types/bridges.d.ts +5 -4
- package/transpiled/types/extensions.d.ts +11 -11
- package/transpiled/types/index.d.ts +14 -14
- package/transpiled/types/operations.d.ts +1 -1
- package/transpiled/types/outbox.d.ts +2 -2
- package/transpiled/types/receiver.d.ts +2 -2
- package/transpiled/types/request.d.ts +1 -1
- package/transpiled/types/storages.d.ts +4 -4
- package/transpiled/unmanaged.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/core",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.302",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Toa Core",
|
|
6
6
|
"author": "temich <tema.gurtovoy@gmail.com>",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@rsql/parser": "1.6.0",
|
|
43
|
-
"@toa.io/generic": "1.0.0-alpha.
|
|
44
|
-
"@toa.io/schemas": "1.0.0-alpha.
|
|
45
|
-
"openspan": "1.0.0-alpha.
|
|
43
|
+
"@toa.io/generic": "1.0.0-alpha.301",
|
|
44
|
+
"@toa.io/schemas": "1.0.0-alpha.301",
|
|
45
|
+
"openspan": "1.0.0-alpha.301",
|
|
46
46
|
"uuid": "14.0.2"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "3cbbca55a61711db78f98b13e50cf4d1afaf5c08"
|
|
49
49
|
}
|
package/transpiled/abandon.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Operation } from './operation.
|
|
2
|
-
import type { Store } from './operation.
|
|
1
|
+
import { Operation } from './operation.ts';
|
|
2
|
+
import type { Store } from './operation.ts';
|
|
3
3
|
export declare class Assignment extends Operation {
|
|
4
4
|
protected acquire(store: Store): Promise<void>;
|
|
5
5
|
protected commit(store: Store): Promise<void>;
|
package/transpiled/call.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Connector } from './connector.
|
|
2
|
-
import type { Transmission } from './transmission.
|
|
3
|
-
import type { Request as Contract } from './contract/request.
|
|
4
|
-
import type { Options, Request, Source } from './types/request.
|
|
1
|
+
import { Connector } from './connector.ts';
|
|
2
|
+
import type { Transmission } from './transmission.ts';
|
|
3
|
+
import type { Request as Contract } from './contract/request.ts';
|
|
4
|
+
import type { Options, Request, Source } from './types/request.ts';
|
|
5
5
|
export declare class Call extends Connector {
|
|
6
6
|
#private;
|
|
7
7
|
constructor(transmitter: Transmission, contract: Contract, target: string, source?: Source, stateful?: boolean);
|
package/transpiled/cascade.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Connector } from './connector.
|
|
2
|
-
import type { Algorithm } from './types/bridges.
|
|
1
|
+
import { Connector } from './connector.ts';
|
|
2
|
+
import type { Algorithm } from './types/bridges.ts';
|
|
3
3
|
export declare class Cascade extends Connector {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(bridges: Algorithm[], preflight?: Connector);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Connector } from './connector.
|
|
2
|
-
import type { Locator } from './locator.
|
|
3
|
-
import type { Envelope, Options, Request } from './types/request.
|
|
1
|
+
import { Connector } from './connector.ts';
|
|
2
|
+
import type { Locator } from './locator.ts';
|
|
3
|
+
import type { Envelope, Options, Request } from './types/request.ts';
|
|
4
4
|
/** What a component holds one of per endpoint: an operation, or the call that stands for it. */
|
|
5
5
|
export interface Invocable extends Connector {
|
|
6
6
|
invoke: (request: Envelope, options?: Options) => Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Connector } from './connector.
|
|
1
|
+
import { Connector } from './connector.ts';
|
|
2
2
|
export declare class Composition extends Connector {
|
|
3
3
|
constructor(expositions: Connector[], producers: Connector[], receivers: Connector[], tenants: Connector[]);
|
|
4
4
|
protected open(): Promise<void>;
|
package/transpiled/context.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Connector } from './connector.
|
|
2
|
-
import type { Locator } from './locator.
|
|
3
|
-
import type { Component } from './component.
|
|
4
|
-
import type { Remote } from './remote.
|
|
5
|
-
import type { Aspect } from './types/extensions.
|
|
6
|
-
import type { Options, Request } from './types/request.
|
|
1
|
+
import { Connector } from './connector.ts';
|
|
2
|
+
import type { Locator } from './locator.ts';
|
|
3
|
+
import type { Component } from './component.ts';
|
|
4
|
+
import type { Remote } from './remote.ts';
|
|
5
|
+
import type { Aspect } from './types/extensions.ts';
|
|
6
|
+
import type { Options, Request } from './types/request.ts';
|
|
7
7
|
type Discover = (namespace: string, name: string) => Promise<Remote>;
|
|
8
8
|
export declare class Context extends Connector {
|
|
9
9
|
#private;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Schema, SchemaError } from '@toa.io/schemas';
|
|
2
|
-
import type { Exception } from '../exceptions.
|
|
2
|
+
import type { Exception } from '../exceptions.ts';
|
|
3
3
|
/** What a contract throws with, stated by the subclass. */
|
|
4
4
|
export type Refusal = new (error: SchemaError, cause?: unknown) => Exception;
|
|
5
5
|
export declare class Contract {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Request } from './request.
|
|
2
|
-
export { Reply } from './reply.
|
|
1
|
+
export { Request } from './request.ts';
|
|
2
|
+
export { Reply } from './reply.ts';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Contract } from './contract.
|
|
2
|
-
import type { Refusal } from './contract.
|
|
3
|
-
import type { JSONSchema } from './schemas.
|
|
1
|
+
import { Contract } from './contract.ts';
|
|
2
|
+
import type { Refusal } from './contract.ts';
|
|
3
|
+
import type { JSONSchema } from './schemas.ts';
|
|
4
4
|
export declare class Reply extends Contract {
|
|
5
5
|
static Exception: Refusal;
|
|
6
6
|
static schema(output?: JSONSchema, errors?: Array<string | number>): JSONSchema;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Contract } from './contract.
|
|
1
|
+
import { Contract } from './contract.ts';
|
|
2
2
|
import type { Schema } from '@toa.io/schemas';
|
|
3
|
-
import type { Refusal } from './contract.
|
|
4
|
-
import type { JSONSchema } from './schemas.
|
|
3
|
+
import type { Refusal } from './contract.ts';
|
|
4
|
+
import type { JSONSchema } from './schemas.ts';
|
|
5
5
|
/** What an operation states about itself, and answers when asked to explain. */
|
|
6
6
|
export interface Explanation {
|
|
7
7
|
description?: string;
|
package/transpiled/effect.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Observation } from './observation.
|
|
2
|
-
import type { Store } from './operation.
|
|
1
|
+
import { Observation } from './observation.ts';
|
|
2
|
+
import type { Store } from './operation.ts';
|
|
3
3
|
export declare class Effect extends Observation {
|
|
4
4
|
protected acquire(store: Store): Promise<void>;
|
|
5
5
|
}
|
package/transpiled/emission.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Connector } from './connector.
|
|
2
|
-
import type { Event } from './event.
|
|
3
|
-
import type { Row } from './types/outbox.
|
|
1
|
+
import { Connector } from './connector.ts';
|
|
2
|
+
import type { Event } from './event.ts';
|
|
3
|
+
import type { Row } from './types/outbox.ts';
|
|
4
4
|
export declare class Emission extends Connector {
|
|
5
5
|
#private;
|
|
6
6
|
/** what a row is outstanding for while this has not published it */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Schema } from '@toa.io/schemas';
|
|
2
|
-
import type { Guard } from '../guard.
|
|
3
|
-
import type { Record } from '../types/storages.
|
|
4
|
-
import type { Event } from '../types/state.
|
|
2
|
+
import type { Guard } from '../guard.ts';
|
|
3
|
+
import type { Record } from '../types/storages.ts';
|
|
4
|
+
import type { Event } from '../types/state.ts';
|
|
5
5
|
export declare class Entity {
|
|
6
6
|
#private;
|
|
7
7
|
deleted: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Entity } from './entity.
|
|
2
|
-
import { EntitySet } from './set.
|
|
3
|
-
import { Changeset } from './changeset.
|
|
1
|
+
import { Entity } from './entity.ts';
|
|
2
|
+
import { EntitySet } from './set.ts';
|
|
3
|
+
import { Changeset } from './changeset.ts';
|
|
4
4
|
import type { Schema } from '@toa.io/schemas';
|
|
5
|
-
import type { Guard } from '../guard.
|
|
6
|
-
import type { Query, Record } from '../types/storages.
|
|
5
|
+
import type { Guard } from '../guard.ts';
|
|
6
|
+
import type { Query, Record } from '../types/storages.ts';
|
|
7
7
|
/** The two schemas a component's records are held to, and what a new one starts as. */
|
|
8
8
|
export interface Schemas {
|
|
9
9
|
/** what a stored record must fit */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { derive, newid } from './newid.
|
|
2
|
-
export { Factory } from './factory.
|
|
3
|
-
export { Entity } from './entity.
|
|
4
|
-
export { EntitySet } from './set.
|
|
5
|
-
export { Changeset } from './changeset.
|
|
1
|
+
export { derive, newid } from './newid.ts';
|
|
2
|
+
export { Factory } from './factory.ts';
|
|
3
|
+
export { Entity } from './entity.ts';
|
|
4
|
+
export { EntitySet } from './set.ts';
|
|
5
|
+
export { Changeset } from './changeset.ts';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Entity } from './entity.
|
|
2
|
-
import type { Record } from '../types/storages.
|
|
3
|
-
import type { Event } from '../types/state.
|
|
1
|
+
import type { Entity } from './entity.ts';
|
|
2
|
+
import type { Record } from '../types/storages.ts';
|
|
3
|
+
import type { Event } from '../types/state.ts';
|
|
4
4
|
export declare class EntitySet {
|
|
5
5
|
#private;
|
|
6
6
|
constructor(set: Entity[]);
|
package/transpiled/event.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Connector } from './connector.
|
|
2
|
-
import type { Emitter } from './types/bindings.
|
|
3
|
-
import type { Event as Bridge } from './types/bridges.
|
|
4
|
-
import type { Row } from './types/outbox.
|
|
1
|
+
import { Connector } from './connector.ts';
|
|
2
|
+
import type { Emitter } from './types/bindings.ts';
|
|
3
|
+
import type { Event as Bridge } from './types/bridges.ts';
|
|
4
|
+
import type { Row } from './types/outbox.ts';
|
|
5
5
|
export interface Definition {
|
|
6
6
|
conditioned?: boolean;
|
|
7
7
|
subjective?: boolean;
|
package/transpiled/guard.d.ts
CHANGED
package/transpiled/index.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
export { Assignment } from './assignment.
|
|
2
|
-
export { Call } from './call.
|
|
3
|
-
export { Cascade } from './cascade.
|
|
4
|
-
export { Component } from './component.
|
|
5
|
-
export { Composition } from './composition.
|
|
6
|
-
export { Connector } from './connector.
|
|
7
|
-
export { Context } from './context.
|
|
8
|
-
export { Discovery } from './discovery.
|
|
9
|
-
export { Effect } from './effect.
|
|
10
|
-
export { Emission } from './emission.
|
|
11
|
-
export { Event } from './event.
|
|
12
|
-
export { Exposition } from './exposition.
|
|
13
|
-
export { Locator } from './locator.
|
|
14
|
-
export { Observation } from './observation.
|
|
15
|
-
export { Outbox } from './outbox.
|
|
16
|
-
export { Operation } from './operation.
|
|
17
|
-
export { Query } from './query.
|
|
18
|
-
export { Receiver } from './receiver.
|
|
19
|
-
export { Reflection } from './reflection.
|
|
20
|
-
export { Remote } from './remote.
|
|
21
|
-
export { State } from './state.
|
|
22
|
-
export { Transition } from './transition.
|
|
23
|
-
export { Transmission } from './transmission.
|
|
24
|
-
export { Unmanaged } from './unmanaged.
|
|
25
|
-
export { Guard } from './guard.
|
|
26
|
-
export { instance } from './instance.
|
|
27
|
-
export * as entities from './entities/index.
|
|
28
|
-
export * as exceptions from './exceptions.
|
|
29
|
-
export * as trail from './trail.
|
|
30
|
-
export * as contract from './contract/index.
|
|
31
|
-
export type { Exception } from './exceptions.
|
|
32
|
-
export type { Invocable } from './component.
|
|
33
|
-
export type { Explicable } from './remote.
|
|
34
|
-
export type { Scoped, Store } from './operation.
|
|
35
|
-
export type { Source as ReflectionSource } from './reflection.
|
|
36
|
-
export type { Explanation } from './contract/request.
|
|
37
|
-
export type { JSONSchema } from './contract/schemas.
|
|
1
|
+
export { Assignment } from './assignment.ts';
|
|
2
|
+
export { Call } from './call.ts';
|
|
3
|
+
export { Cascade } from './cascade.ts';
|
|
4
|
+
export { Component } from './component.ts';
|
|
5
|
+
export { Composition } from './composition.ts';
|
|
6
|
+
export { Connector } from './connector.ts';
|
|
7
|
+
export { Context } from './context.ts';
|
|
8
|
+
export { Discovery } from './discovery.ts';
|
|
9
|
+
export { Effect } from './effect.ts';
|
|
10
|
+
export { Emission } from './emission.ts';
|
|
11
|
+
export { Event } from './event.ts';
|
|
12
|
+
export { Exposition } from './exposition.ts';
|
|
13
|
+
export { Locator } from './locator.ts';
|
|
14
|
+
export { Observation } from './observation.ts';
|
|
15
|
+
export { Outbox } from './outbox.ts';
|
|
16
|
+
export { Operation } from './operation.ts';
|
|
17
|
+
export { Query } from './query.ts';
|
|
18
|
+
export { Receiver } from './receiver.ts';
|
|
19
|
+
export { Reflection } from './reflection.ts';
|
|
20
|
+
export { Remote } from './remote.ts';
|
|
21
|
+
export { State } from './state.ts';
|
|
22
|
+
export { Transition } from './transition.ts';
|
|
23
|
+
export { Transmission } from './transmission.ts';
|
|
24
|
+
export { Unmanaged } from './unmanaged.ts';
|
|
25
|
+
export { Guard } from './guard.ts';
|
|
26
|
+
export { instance } from './instance.ts';
|
|
27
|
+
export * as entities from './entities/index.ts';
|
|
28
|
+
export * as exceptions from './exceptions.ts';
|
|
29
|
+
export * as trail from './trail.ts';
|
|
30
|
+
export * as contract from './contract/index.ts';
|
|
31
|
+
export type { Exception } from './exceptions.ts';
|
|
32
|
+
export type { Invocable } from './component.ts';
|
|
33
|
+
export type { Explicable } from './remote.ts';
|
|
34
|
+
export type { Scoped, Store } from './operation.ts';
|
|
35
|
+
export type { Source as ReflectionSource } from './reflection.ts';
|
|
36
|
+
export type { Explanation } from './contract/request.ts';
|
|
37
|
+
export type { JSONSchema } from './contract/schemas.ts';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Operation } from './operation.
|
|
2
|
-
import type { Store } from './operation.
|
|
1
|
+
import { Operation } from './operation.ts';
|
|
2
|
+
import type { Store } from './operation.ts';
|
|
3
3
|
export declare class Observation extends Operation {
|
|
4
4
|
protected run(store: Store): Promise<void>;
|
|
5
5
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Readable } from 'node:stream';
|
|
2
|
-
import { Connector } from './connector.
|
|
3
|
-
import type { Cascade } from './cascade.
|
|
4
|
-
import type { State } from './state.
|
|
5
|
-
import type { Query as Translator } from './query.
|
|
6
|
-
import type { Contract } from './contract/contract.
|
|
7
|
-
import type { Entity } from './entities/entity.
|
|
8
|
-
import type { EntitySet } from './entities/set.
|
|
9
|
-
import type { Changeset } from './entities/changeset.
|
|
10
|
-
import type { scope as Scope } from './types/operations.
|
|
11
|
-
import type { Call } from './types/inbox.
|
|
12
|
-
import type { Envelope, Query } from './types/request.
|
|
2
|
+
import { Connector } from './connector.ts';
|
|
3
|
+
import type { Cascade } from './cascade.ts';
|
|
4
|
+
import type { State } from './state.ts';
|
|
5
|
+
import type { Query as Translator } from './query.ts';
|
|
6
|
+
import type { Contract } from './contract/contract.ts';
|
|
7
|
+
import type { Entity } from './entities/entity.ts';
|
|
8
|
+
import type { EntitySet } from './entities/set.ts';
|
|
9
|
+
import type { Changeset } from './entities/changeset.ts';
|
|
10
|
+
import type { scope as Scope } from './types/operations.ts';
|
|
11
|
+
import type { Call } from './types/inbox.ts';
|
|
12
|
+
import type { Envelope, Query } from './types/request.ts';
|
|
13
13
|
/** What an operation acquires for the algorithm to run against. */
|
|
14
14
|
export type Scoped = Entity | EntitySet | Changeset | Readable | null;
|
|
15
15
|
/** What one invocation carries from step to step. */
|
package/transpiled/outbox.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Connector } from './connector.
|
|
2
|
-
import type { Atom } from './types/atomicity.
|
|
3
|
-
import type { Storage } from './types/storages.
|
|
4
|
-
import type { Destination, Row } from './types/outbox.
|
|
5
|
-
import type { Event } from './types/state.
|
|
1
|
+
import { Connector } from './connector.ts';
|
|
2
|
+
import type { Atom } from './types/atomicity.ts';
|
|
3
|
+
import type { Storage } from './types/storages.ts';
|
|
4
|
+
import type { Destination, Row } from './types/outbox.ts';
|
|
5
|
+
import type { Event } from './types/state.ts';
|
|
6
6
|
export interface Options {
|
|
7
7
|
interval?: number;
|
|
8
8
|
batch?: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { Options } from '../types/storages.
|
|
2
|
-
import type { Properties } from './criteria.
|
|
1
|
+
import type { Options } from '../types/storages.ts';
|
|
2
|
+
import type { Properties } from './criteria.ts';
|
|
3
3
|
export declare function options(given: Record<string, any>, properties: Properties): Options;
|
package/transpiled/query.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Properties } from './query/criteria.
|
|
2
|
-
import type { Query as Parsed } from './types/storages.
|
|
3
|
-
import type { Query as Requested } from './types/request.
|
|
1
|
+
import type { Properties } from './query/criteria.ts';
|
|
2
|
+
import type { Query as Parsed } from './types/storages.ts';
|
|
3
|
+
import type { Query as Requested } from './types/request.ts';
|
|
4
4
|
/** Translates the query a request carries into the one a storage is given. */
|
|
5
5
|
export declare class Query {
|
|
6
6
|
#private;
|
package/transpiled/receiver.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Connector } from './connector.
|
|
2
|
-
import type { Component } from './component.
|
|
3
|
-
import type { Receiver as Bridge } from './types/bridges.
|
|
4
|
-
import type { Message } from './types/message.
|
|
5
|
-
import type { Source } from './types/request.
|
|
1
|
+
import { Connector } from './connector.ts';
|
|
2
|
+
import type { Component } from './component.ts';
|
|
3
|
+
import type { Receiver as Bridge } from './types/bridges.ts';
|
|
4
|
+
import type { Message } from './types/message.ts';
|
|
5
|
+
import type { Source } from './types/request.ts';
|
|
6
6
|
export interface Definition {
|
|
7
7
|
conditioned?: boolean;
|
|
8
8
|
adaptive?: boolean;
|
package/transpiled/remote.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Component } from './component.
|
|
2
|
-
import type { Invocable } from './component.
|
|
1
|
+
import { Component } from './component.ts';
|
|
2
|
+
import type { Invocable } from './component.ts';
|
|
3
3
|
/** A call knows what its endpoint declares, which is what an explanation is read from. */
|
|
4
4
|
export interface Explicable extends Invocable {
|
|
5
5
|
explain(): any;
|
package/transpiled/state.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { EntitySet } from './entities/set.
|
|
1
|
+
import { EntitySet } from './entities/set.ts';
|
|
2
2
|
import type { Readable } from 'node:stream';
|
|
3
|
-
import type { Factory } from './entities/factory.
|
|
4
|
-
import type { Entity } from './entities/entity.
|
|
5
|
-
import type { Changeset } from './entities/changeset.
|
|
6
|
-
import type { Outbox } from './outbox.
|
|
7
|
-
import type { Call } from './types/inbox.
|
|
8
|
-
import type { Query, Record, Storage } from './types/storages.
|
|
3
|
+
import type { Factory } from './entities/factory.ts';
|
|
4
|
+
import type { Entity } from './entities/entity.ts';
|
|
5
|
+
import type { Changeset } from './entities/changeset.ts';
|
|
6
|
+
import type { Outbox } from './outbox.ts';
|
|
7
|
+
import type { Call } from './types/inbox.ts';
|
|
8
|
+
import type { Query, Record, Storage } from './types/storages.ts';
|
|
9
9
|
/**
|
|
10
10
|
* What an operation acquires and commits. One method per scope a manifest may declare, which
|
|
11
11
|
* is how an operation reaches the one it was declared with.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Operation } from './operation.
|
|
2
|
-
import type { Contracts, Definition, Store } from './operation.
|
|
3
|
-
import type { Cascade } from './cascade.
|
|
4
|
-
import type { State } from './state.
|
|
5
|
-
import type { Query as Translator } from './query.
|
|
1
|
+
import { Operation } from './operation.ts';
|
|
2
|
+
import type { Contracts, Definition, Store } from './operation.ts';
|
|
3
|
+
import type { Cascade } from './cascade.ts';
|
|
4
|
+
import type { State } from './state.ts';
|
|
5
|
+
import type { Query as Translator } from './query.ts';
|
|
6
6
|
export declare class Transition extends Operation {
|
|
7
7
|
#private;
|
|
8
8
|
/** a transition is the only operation that commits */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Connector } from './connector.
|
|
2
|
-
import type { Consumer, Terms } from './types/bindings.
|
|
3
|
-
import type { Request } from './types/request.
|
|
1
|
+
import { Connector } from './connector.ts';
|
|
2
|
+
import type { Consumer, Terms } from './types/bindings.ts';
|
|
3
|
+
import type { Request } from './types/request.ts';
|
|
4
4
|
export declare class Transmission extends Connector {
|
|
5
5
|
#private;
|
|
6
6
|
constructor(bindings: Consumer[]);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Readable } from 'node:stream';
|
|
2
|
-
import type { Connector } from '../connector.
|
|
3
|
-
import type { Locator } from '../locator.
|
|
4
|
-
import type { Component } from '../component.
|
|
5
|
-
import type { Receiver } from './receiver.
|
|
6
|
-
import type { Message } from './message.
|
|
7
|
-
import type { Reply, Request } from './request.
|
|
2
|
+
import type { Connector } from '../connector.ts';
|
|
3
|
+
import type { Locator } from '../locator.ts';
|
|
4
|
+
import type { Component } from '../component.ts';
|
|
5
|
+
import type { Receiver } from './receiver.ts';
|
|
6
|
+
import type { Message } from './message.ts';
|
|
7
|
+
import type { Reply, Request } from './request.ts';
|
|
8
8
|
/** What a binding module exports beside its factory. */
|
|
9
9
|
export interface Properties {
|
|
10
10
|
/** delivers asynchronously; an event's binding must */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Readable } from 'node:stream';
|
|
2
|
-
import type { Connector } from '../connector.
|
|
3
|
-
import type { Context } from '../context.
|
|
4
|
-
import type { Event as StateEvent } from './state.
|
|
5
|
-
import type { Reply, Request } from './request.
|
|
2
|
+
import type { Connector } from '../connector.ts';
|
|
3
|
+
import type { Context } from '../context.ts';
|
|
4
|
+
import type { Event as StateEvent } from './state.ts';
|
|
5
|
+
import type { Reply, Request } from './request.ts';
|
|
6
6
|
/**
|
|
7
7
|
* What runs one endpoint. `mount` and `unmount` are the component author's, called by the
|
|
8
8
|
* bridge as it opens and closes; core only ever asks for `execute`.
|
|
@@ -27,6 +27,7 @@ export interface Guard {
|
|
|
27
27
|
export interface RunCommands {
|
|
28
28
|
preflight?: Connector;
|
|
29
29
|
settle?: Connector;
|
|
30
|
+
ready?: Connector;
|
|
30
31
|
dispose?: Connector;
|
|
31
32
|
}
|
|
32
33
|
export interface Factory {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { Connector } from '../connector.
|
|
2
|
-
import type { Locator } from '../locator.
|
|
3
|
-
import type { Component } from '../component.
|
|
4
|
-
import type { Remote } from '../remote.
|
|
5
|
-
import type { Receiver } from './receiver.
|
|
6
|
-
import type { Context } from '../context.
|
|
7
|
-
import type { Storage } from './storages.
|
|
8
|
-
import type { Broadcast, Emitter, Inbound, Outbound } from './bindings.
|
|
9
|
-
import type { Atom } from './atomicity.
|
|
10
|
-
import type { Source } from './request.
|
|
11
|
-
import type { Destination } from './outbox.
|
|
1
|
+
import type { Connector } from '../connector.ts';
|
|
2
|
+
import type { Locator } from '../locator.ts';
|
|
3
|
+
import type { Component } from '../component.ts';
|
|
4
|
+
import type { Remote } from '../remote.ts';
|
|
5
|
+
import type { Receiver } from './receiver.ts';
|
|
6
|
+
import type { Context } from '../context.ts';
|
|
7
|
+
import type { Storage } from './storages.ts';
|
|
8
|
+
import type { Broadcast, Emitter, Inbound, Outbound } from './bindings.ts';
|
|
9
|
+
import type { Atom } from './atomicity.ts';
|
|
10
|
+
import type { Source } from './request.ts';
|
|
11
|
+
import type { Destination } from './outbox.ts';
|
|
12
12
|
/**
|
|
13
13
|
* What the process hosting an extension provides to it: the counterpart of a component's
|
|
14
14
|
* context. What is returned is a connector the extension depends on.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * as atomicity from './atomicity.
|
|
2
|
-
export * as bindings from './bindings.
|
|
3
|
-
export * as bridges from './bridges.
|
|
4
|
-
export * as extensions from './extensions.
|
|
5
|
-
export * as operations from './operations.
|
|
6
|
-
export * as inbox from './inbox.
|
|
7
|
-
export * as outbox from './outbox.
|
|
8
|
-
export * as storages from './storages.
|
|
9
|
-
export type { Contribution } from './extensions.
|
|
10
|
-
export type { Event } from './state.
|
|
11
|
-
export type { Message } from './message.
|
|
12
|
-
export type { Receiver } from './receiver.
|
|
13
|
-
export type { Call, Guard, Observation, Transition } from './operations.
|
|
14
|
-
export type { Envelope, Maybe, Options, Query, Reply, RemoteError, Request, Source } from './request.
|
|
1
|
+
export * as atomicity from './atomicity.ts';
|
|
2
|
+
export * as bindings from './bindings.ts';
|
|
3
|
+
export * as bridges from './bridges.ts';
|
|
4
|
+
export * as extensions from './extensions.ts';
|
|
5
|
+
export * as operations from './operations.ts';
|
|
6
|
+
export * as inbox from './inbox.ts';
|
|
7
|
+
export * as outbox from './outbox.ts';
|
|
8
|
+
export * as storages from './storages.ts';
|
|
9
|
+
export type { Contribution } from './extensions.ts';
|
|
10
|
+
export type { Event } from './state.ts';
|
|
11
|
+
export type { Message } from './message.ts';
|
|
12
|
+
export type { Receiver } from './receiver.ts';
|
|
13
|
+
export type { Call, Guard, Observation, Transition } from './operations.ts';
|
|
14
|
+
export type { Envelope, Maybe, Options, Query, Reply, RemoteError, Request, Source } from './request.ts';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Request } from './request.
|
|
1
|
+
import type { Request } from './request.ts';
|
|
2
2
|
export type type = 'transition' | 'observation' | 'assignment' | 'computation' | 'effect' | 'unmanaged';
|
|
3
3
|
export type scope = 'object' | 'objects' | 'changeset' | 'stream' | 'none';
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Connector } from '../connector.
|
|
2
|
-
import type { Event } from './state.
|
|
1
|
+
import type { Connector } from '../connector.ts';
|
|
2
|
+
import type { Event } from './state.ts';
|
|
3
3
|
/**
|
|
4
4
|
* The intent to publish, committed with the state change it belongs to. Everything about it
|
|
5
5
|
* is core's: the storage writes it and, where the images are the write's own, fills
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Connector } from '../connector.
|
|
2
|
-
import type { Message } from './message.
|
|
1
|
+
import type { Connector } from '../connector.ts';
|
|
2
|
+
import type { Message } from './message.ts';
|
|
3
3
|
/**
|
|
4
4
|
* What consumes an event of the context. Core ships one, and an extension may put its own
|
|
5
5
|
* in its place, so what a binding is handed is this rather than core's class.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Readable } from 'node:stream';
|
|
2
|
-
import type { Connector } from '../connector.
|
|
3
|
-
import type { Locator } from '../locator.
|
|
4
|
-
import type { Call, Inbox } from './inbox.
|
|
5
|
-
import type { Row, Storage as Outbox } from './outbox.
|
|
2
|
+
import type { Connector } from '../connector.ts';
|
|
3
|
+
import type { Locator } from '../locator.ts';
|
|
4
|
+
import type { Call, Inbox } from './inbox.ts';
|
|
5
|
+
import type { Row, Storage as Outbox } from './outbox.ts';
|
|
6
6
|
/** the RSQL tree `@rsql/parser` produces; a storage translates it into its own dialect */
|
|
7
7
|
export interface Node {
|
|
8
8
|
type: 'LOGIC' | 'COMPARISON' | 'SELECTOR' | 'VALUE';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Operation } from './operation.
|
|
2
|
-
import type { Store } from './operation.
|
|
1
|
+
import { Operation } from './operation.ts';
|
|
2
|
+
import type { Store } from './operation.ts';
|
|
3
3
|
export declare class Unmanaged extends Operation {
|
|
4
4
|
protected acquire(store: Store): Promise<void>;
|
|
5
5
|
}
|