@ahoo-wang/wow-client 10.0.0-alpha.5 → 10.0.0-alpha.7
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/README.md +76 -23
- package/README.zh-CN.md +66 -19
- package/dist/commands.cjs +1 -1
- package/dist/commands.cjs.map +1 -1
- package/dist/commands.d.cts +131 -61
- package/dist/commands.d.ts +131 -61
- package/dist/commands.es.js +117 -59
- package/dist/commands.es.js.map +1 -1
- package/dist/developmentCaller.cjs +2 -0
- package/dist/developmentCaller.cjs.map +1 -0
- package/dist/developmentCaller.d.cts +61 -0
- package/dist/developmentCaller.d.ts +61 -0
- package/dist/developmentCaller.es.js +26 -0
- package/dist/developmentCaller.es.js.map +1 -0
- package/dist/dsl/aggregation/admit.cjs +1 -1
- package/dist/dsl/aggregation/admit.cjs.map +1 -1
- package/dist/dsl/aggregation/admit.es.js +93 -93
- package/dist/dsl/aggregation/admit.es.js.map +1 -1
- package/dist/dsl/aggregation/builders.cjs +1 -1
- package/dist/dsl/aggregation/builders.cjs.map +1 -1
- package/dist/dsl/aggregation/builders.d.cts +20 -20
- package/dist/dsl/aggregation/builders.d.ts +20 -20
- package/dist/dsl/aggregation/builders.es.js +88 -88
- package/dist/dsl/aggregation/builders.es.js.map +1 -1
- package/dist/dsl/aggregation/derived.cjs.map +1 -1
- package/dist/dsl/aggregation/derived.d.cts +8 -8
- package/dist/dsl/aggregation/derived.d.ts +8 -8
- package/dist/dsl/aggregation/derived.es.js +1 -2
- package/dist/dsl/aggregation/derived.es.js.map +1 -1
- package/dist/dsl/aggregation/expressionTrees.cjs.map +1 -1
- package/dist/dsl/aggregation/expressionTrees.es.js +1 -2
- package/dist/dsl/aggregation/having.cjs +1 -1
- package/dist/dsl/aggregation/having.cjs.map +1 -1
- package/dist/dsl/aggregation/having.d.cts +12 -12
- package/dist/dsl/aggregation/having.d.ts +12 -12
- package/dist/dsl/aggregation/having.es.js +33 -33
- package/dist/dsl/aggregation/having.es.js.map +1 -1
- package/dist/dsl/aggregation/sort.cjs.map +1 -1
- package/dist/dsl/aggregation/sort.es.js +1 -2
- package/dist/dsl/aggregation/types.cjs +1 -1
- package/dist/dsl/aggregation/types.cjs.map +1 -1
- package/dist/dsl/aggregation/types.d.cts +69 -69
- package/dist/dsl/aggregation/types.d.ts +69 -69
- package/dist/dsl/aggregation/types.es.js +15 -16
- package/dist/dsl/aggregation/types.es.js.map +1 -1
- package/dist/dsl/constantName.cjs +2 -0
- package/dist/dsl/constantName.cjs.map +1 -0
- package/dist/dsl/constantName.d.cts +9 -0
- package/dist/dsl/constantName.d.ts +9 -0
- package/dist/dsl/constantName.es.js +7 -0
- package/dist/dsl/constantName.es.js.map +1 -0
- package/dist/dsl/cursorQuery.cjs.map +1 -1
- package/dist/dsl/cursorQuery.es.js +1 -2
- package/dist/dsl/deletionState.cjs +1 -1
- package/dist/dsl/deletionState.cjs.map +1 -1
- package/dist/dsl/deletionState.d.cts +3 -3
- package/dist/dsl/deletionState.d.ts +3 -3
- package/dist/dsl/deletionState.es.js +2 -3
- package/dist/dsl/deletionState.es.js.map +1 -1
- package/dist/dsl/descriptor.cjs +1 -1
- package/dist/dsl/descriptor.cjs.map +1 -1
- package/dist/dsl/descriptor.d.cts +92 -42
- package/dist/dsl/descriptor.d.ts +92 -42
- package/dist/dsl/descriptor.es.js +36 -29
- package/dist/dsl/descriptor.es.js.map +1 -1
- package/dist/dsl/field.cjs.map +1 -1
- package/dist/dsl/field.es.js +1 -2
- package/dist/dsl/filter/builders.cjs +1 -1
- package/dist/dsl/filter/builders.cjs.map +1 -1
- package/dist/dsl/filter/builders.d.cts +53 -53
- package/dist/dsl/filter/builders.d.ts +53 -53
- package/dist/dsl/filter/builders.es.js +111 -111
- package/dist/dsl/filter/builders.es.js.map +1 -1
- package/dist/dsl/filter/datePattern.cjs.map +1 -1
- package/dist/dsl/filter/datePattern.es.js +1 -2
- package/dist/dsl/filter/operator.cjs +1 -1
- package/dist/dsl/filter/operator.cjs.map +1 -1
- package/dist/dsl/filter/operator.d.cts +57 -57
- package/dist/dsl/filter/operator.d.ts +57 -57
- package/dist/dsl/filter/operator.es.js +4 -5
- package/dist/dsl/filter/operator.es.js.map +1 -1
- package/dist/dsl/filter/scope.cjs +1 -1
- package/dist/dsl/filter/scope.cjs.map +1 -1
- package/dist/dsl/filter/scope.es.js +12 -12
- package/dist/dsl/filter/scope.es.js.map +1 -1
- package/dist/dsl/filter/validate.cjs +1 -1
- package/dist/dsl/filter/validate.cjs.map +1 -1
- package/dist/dsl/filter/validate.es.js +23 -23
- package/dist/dsl/filter/validate.es.js.map +1 -1
- package/dist/dsl/pagination.cjs.map +1 -1
- package/dist/dsl/pagination.es.js +1 -2
- package/dist/dsl/projection.cjs.map +1 -1
- package/dist/dsl/projection.d.cts +1 -1
- package/dist/dsl/projection.d.ts +1 -1
- package/dist/dsl/projection.es.js +1 -2
- package/dist/dsl/projection.es.js.map +1 -1
- package/dist/dsl/queryErrorCodes.cjs +1 -1
- package/dist/dsl/queryErrorCodes.cjs.map +1 -1
- package/dist/dsl/queryErrorCodes.d.cts +59 -48
- package/dist/dsl/queryErrorCodes.d.ts +59 -48
- package/dist/dsl/queryErrorCodes.es.js +51 -50
- package/dist/dsl/queryErrorCodes.es.js.map +1 -1
- package/dist/dsl/queryable.cjs +1 -1
- package/dist/dsl/queryable.cjs.map +1 -1
- package/dist/dsl/queryable.d.cts +25 -21
- package/dist/dsl/queryable.d.ts +25 -21
- package/dist/dsl/queryable.es.js +5 -5
- package/dist/dsl/queryable.es.js.map +1 -1
- package/dist/dsl/sort.cjs +1 -1
- package/dist/dsl/sort.cjs.map +1 -1
- package/dist/dsl/sort.d.cts +2 -2
- package/dist/dsl/sort.d.ts +2 -2
- package/dist/dsl/sort.es.js +4 -5
- package/dist/dsl/sort.es.js.map +1 -1
- package/dist/dsl.cjs +1 -1
- package/dist/dsl.es.js +3 -3
- package/dist/exactJson.cjs.map +1 -1
- package/dist/exactJson.d.cts +4 -4
- package/dist/exactJson.d.ts +4 -4
- package/dist/exactJson.es.js +1 -2
- package/dist/exactJson.es.js.map +1 -1
- package/dist/frameworkErrors.cjs +2 -0
- package/dist/frameworkErrors.cjs.map +1 -0
- package/dist/frameworkErrors.d.cts +121 -0
- package/dist/frameworkErrors.d.ts +121 -0
- package/dist/frameworkErrors.es.js +95 -0
- package/dist/frameworkErrors.es.js.map +1 -0
- package/dist/http.cjs +1 -1
- package/dist/http.cjs.map +1 -1
- package/dist/http.d.cts +4 -7
- package/dist/http.d.ts +4 -7
- package/dist/http.es.js +12 -20
- package/dist/http.es.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.es.js +11 -9
- package/dist/manifest.cjs +1 -1
- package/dist/manifest.cjs.map +1 -1
- package/dist/manifest.d.cts +33 -95
- package/dist/manifest.d.ts +33 -95
- package/dist/manifest.es.js +12 -7
- package/dist/manifest.es.js.map +1 -1
- package/dist/manifestTypes.d.cts +193 -0
- package/dist/manifestTypes.d.ts +193 -0
- package/dist/problem.cjs +1 -1
- package/dist/problem.cjs.map +1 -1
- package/dist/problem.d.cts +76 -111
- package/dist/problem.d.ts +76 -111
- package/dist/problem.es.js +45 -78
- package/dist/problem.es.js.map +1 -1
- package/dist/queries.cjs +1 -1
- package/dist/queries.cjs.map +1 -1
- package/dist/queries.d.cts +28 -51
- package/dist/queries.d.ts +28 -51
- package/dist/queries.es.js +49 -40
- package/dist/queries.es.js.map +1 -1
- package/dist/routes.cjs +2 -0
- package/dist/routes.cjs.map +1 -0
- package/dist/routes.d.cts +49 -0
- package/dist/routes.d.ts +49 -0
- package/dist/routes.es.js +33 -0
- package/dist/routes.es.js.map +1 -0
- package/dist/state.cjs +1 -1
- package/dist/state.cjs.map +1 -1
- package/dist/state.d.cts +56 -11
- package/dist/state.d.ts +56 -11
- package/dist/state.es.js +56 -21
- package/dist/state.es.js.map +1 -1
- package/dist/streams.cjs +1 -1
- package/dist/streams.cjs.map +1 -1
- package/dist/streams.d.cts +17 -13
- package/dist/streams.d.ts +17 -13
- package/dist/streams.es.js +50 -50
- package/dist/streams.es.js.map +1 -1
- package/dist/testing/wire.cjs +2 -0
- package/dist/testing/wire.cjs.map +1 -0
- package/dist/testing/wire.d.cts +29 -0
- package/dist/testing/wire.d.ts +29 -0
- package/dist/testing/wire.es.js +88 -0
- package/dist/testing/wire.es.js.map +1 -0
- package/dist/testing.cjs +1 -0
- package/dist/testing.d.cts +12 -0
- package/dist/testing.d.ts +12 -0
- package/dist/testing.es.js +3 -0
- package/dist/wait.cjs +1 -1
- package/dist/wait.cjs.map +1 -1
- package/dist/wait.d.cts +67 -18
- package/dist/wait.d.ts +67 -18
- package/dist/wait.es.js +59 -12
- package/dist/wait.es.js.map +1 -1
- package/dist/wire.cjs +1 -1
- package/dist/wire.cjs.map +1 -1
- package/dist/wire.d.cts +100 -50
- package/dist/wire.d.ts +100 -50
- package/dist/wire.es.js +17 -6
- package/dist/wire.es.js.map +1 -1
- package/package.json +26 -7
package/dist/wire.d.cts
CHANGED
|
@@ -30,13 +30,24 @@ export interface AggregateRef {
|
|
|
30
30
|
readonly tenantId: string;
|
|
31
31
|
readonly id: string;
|
|
32
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* The aggregate a command names: an {@link AggregateRef} whose `id` is null
|
|
35
|
+
* while admission has not chosen it, as for a creation that leaves its id to
|
|
36
|
+
* the server and was refused before one was chosen. The Kotlin client holds
|
|
37
|
+
* such an id as `AggregateRef.UNASSIGNED`.
|
|
38
|
+
*/
|
|
39
|
+
export interface CommandRef {
|
|
40
|
+
readonly type: AggregateType;
|
|
41
|
+
readonly tenantId: string;
|
|
42
|
+
readonly id: string | null;
|
|
43
|
+
}
|
|
33
44
|
/** The owner and the space an aggregate belongs to, beside its tenant. */
|
|
34
45
|
export interface Scope {
|
|
35
46
|
readonly ownerId?: string | null;
|
|
36
47
|
readonly spaceId?: string | null;
|
|
37
48
|
}
|
|
38
49
|
/**
|
|
39
|
-
* Who sent a command
|
|
50
|
+
* Who sent a command: the opaque id of the authenticated
|
|
40
51
|
* subject, its own tenant, and whether it acted in another tenant or scope.
|
|
41
52
|
* Resolve the id to a display name in the application, never from Wow.
|
|
42
53
|
*/
|
|
@@ -45,32 +56,57 @@ export interface Operator {
|
|
|
45
56
|
readonly tenantId: string;
|
|
46
57
|
readonly crossScope: boolean;
|
|
47
58
|
}
|
|
48
|
-
/** How far a command has come
|
|
59
|
+
/** How far a command has come. */
|
|
49
60
|
export declare const Stage: {
|
|
50
61
|
/** The command passed admission. */
|
|
51
|
-
readonly ACCEPTED: "
|
|
62
|
+
readonly ACCEPTED: "accepted";
|
|
52
63
|
/** The command's events are appended to the log. */
|
|
53
|
-
readonly COMMITTED: "
|
|
64
|
+
readonly COMMITTED: "committed";
|
|
54
65
|
/** A named subscription has handled the commit. */
|
|
55
|
-
readonly HANDLED: "
|
|
66
|
+
readonly HANDLED: "handled";
|
|
56
67
|
};
|
|
57
68
|
/** A {@link Stage} value. */
|
|
58
69
|
export type Stage = (typeof Stage)[keyof typeof Stage];
|
|
59
70
|
/**
|
|
60
|
-
* One hop of a wait chain
|
|
71
|
+
* One hop of a wait chain: a stage, in a context (the
|
|
61
72
|
* command's own when absent), of a subscription when the stage is
|
|
62
|
-
* `
|
|
73
|
+
* `handled`. The snapshot is the subscription named `snapshot`.
|
|
63
74
|
*/
|
|
64
75
|
export interface Hop {
|
|
65
|
-
|
|
76
|
+
/**
|
|
77
|
+
* The stage; a server newer than this client may answer one it does not
|
|
78
|
+
* list.
|
|
79
|
+
*/
|
|
80
|
+
readonly stage: Stage | (string & {});
|
|
66
81
|
readonly context?: string | null;
|
|
67
82
|
readonly subscription?: string | null;
|
|
68
83
|
}
|
|
69
84
|
/** The kind of function that produced a result. */
|
|
70
|
-
export
|
|
85
|
+
export declare const FunctionKind: {
|
|
86
|
+
/** The aggregate's command function. */
|
|
87
|
+
readonly COMMAND: "command";
|
|
88
|
+
/** A projection. */
|
|
89
|
+
readonly PROJECT: "project";
|
|
90
|
+
/** An event handler that reacts. */
|
|
91
|
+
readonly REACT: "react";
|
|
92
|
+
/** A saga. */
|
|
93
|
+
readonly SAGA: "saga";
|
|
94
|
+
/** The snapshot subscription. */
|
|
95
|
+
readonly SNAPSHOT: "snapshot";
|
|
96
|
+
/** A reservation. */
|
|
97
|
+
readonly RESERVATION: "reservation";
|
|
98
|
+
/** A timer. */
|
|
99
|
+
readonly TIMERS: "timers";
|
|
100
|
+
};
|
|
101
|
+
/** A {@link FunctionKind} value. */
|
|
102
|
+
export type FunctionKind = (typeof FunctionKind)[keyof typeof FunctionKind];
|
|
71
103
|
/** Who produced a result: a function of `kind` in `context`. */
|
|
72
104
|
export interface FunctionInfo {
|
|
73
|
-
|
|
105
|
+
/**
|
|
106
|
+
* The kind; a server newer than this client may answer one it does not
|
|
107
|
+
* list.
|
|
108
|
+
*/
|
|
109
|
+
readonly kind: FunctionKind | (string & {});
|
|
74
110
|
readonly context: string;
|
|
75
111
|
readonly processor: string;
|
|
76
112
|
readonly name: string;
|
|
@@ -97,10 +133,19 @@ export interface ErrorInfo {
|
|
|
97
133
|
readonly extensions?: Readonly<Record<string, unknown>>;
|
|
98
134
|
}
|
|
99
135
|
/** How a command ended at a hop. */
|
|
100
|
-
export
|
|
136
|
+
export declare const CommandResultStatus: {
|
|
137
|
+
/** The command reached the hop. */
|
|
138
|
+
readonly SUCCEEDED: "succeeded";
|
|
139
|
+
/** The domain or admission refused the command. */
|
|
140
|
+
readonly REJECTED: "rejected";
|
|
141
|
+
/** A technical failure stopped the command. */
|
|
142
|
+
readonly FAILED: "failed";
|
|
143
|
+
};
|
|
144
|
+
/** A {@link CommandResultStatus} value. */
|
|
145
|
+
export type CommandResultStatus = (typeof CommandResultStatus)[keyof typeof CommandResultStatus];
|
|
101
146
|
/**
|
|
102
147
|
* The command a request named before a transformer turned it into the one
|
|
103
|
-
* that ran
|
|
148
|
+
* that ran.
|
|
104
149
|
*/
|
|
105
150
|
export interface TransformedFrom {
|
|
106
151
|
/** The full type name, `context.aggregate.Command`. */
|
|
@@ -108,7 +153,7 @@ export interface TransformedFrom {
|
|
|
108
153
|
readonly aggregateId?: string | null;
|
|
109
154
|
}
|
|
110
155
|
/**
|
|
111
|
-
* The one outward result of a command
|
|
156
|
+
* The one outward result of a command: what it reached at one
|
|
112
157
|
* hop of its wait chain. A command route answers the last one; its event
|
|
113
158
|
* stream sends one per hop.
|
|
114
159
|
*
|
|
@@ -126,15 +171,20 @@ export interface CommandResult<R = Record<string, unknown>> {
|
|
|
126
171
|
readonly commandId: string;
|
|
127
172
|
readonly requestId: string;
|
|
128
173
|
readonly correlationId: string;
|
|
174
|
+
/** The aggregate: a result that succeeded always names its id. */
|
|
129
175
|
readonly ref: AggregateRef;
|
|
130
176
|
readonly hop: Hop;
|
|
131
177
|
readonly function: FunctionInfo;
|
|
132
|
-
|
|
178
|
+
/**
|
|
179
|
+
* The status; a server newer than this client may answer one it does not
|
|
180
|
+
* list, which did not succeed as far as this client knows.
|
|
181
|
+
*/
|
|
182
|
+
readonly status: CommandResultStatus | (string & {});
|
|
133
183
|
/** The aggregate's version after the commit, or the unchanged one. */
|
|
134
184
|
readonly version?: number | null;
|
|
135
185
|
/** The request was already committed: it was not decided again. */
|
|
136
186
|
readonly duplicate: boolean;
|
|
137
|
-
/** Set when `status` is `
|
|
187
|
+
/** Set when `status` is `rejected` or `failed`. */
|
|
138
188
|
readonly error?: ErrorInfo | null;
|
|
139
189
|
readonly results: R;
|
|
140
190
|
/** On a saga's hop, the ids of the commands it derived. */
|
|
@@ -150,31 +200,30 @@ export interface CommandResult<R = Record<string, unknown>> {
|
|
|
150
200
|
/** When `chainEnded`, the hops of the plan not reached, in order. */
|
|
151
201
|
readonly pending?: readonly Hop[];
|
|
152
202
|
}
|
|
153
|
-
/** The tags of an aggregate: names to values. */
|
|
154
|
-
export type Tags = Readonly<Record<string, readonly string[]>>;
|
|
155
203
|
/**
|
|
156
|
-
*
|
|
157
|
-
* `
|
|
204
|
+
* A result that may not have succeeded, as a rejection or a problem carries
|
|
205
|
+
* it (`CommandRejectedError.result`, `WowProblemError.result`): a command
|
|
206
|
+
* refused before an aggregate id was decided names none
|
|
207
|
+
* ({@link CommandRef}). The Kotlin client has no type of its own
|
|
208
|
+
* for it: its `CommandResult.ref` holds such an id as
|
|
209
|
+
* `AggregateRef.UNASSIGNED`.
|
|
158
210
|
*
|
|
159
|
-
* @typeParam
|
|
211
|
+
* @typeParam R - The results' type.
|
|
160
212
|
*/
|
|
161
|
-
export interface
|
|
162
|
-
readonly ref:
|
|
163
|
-
readonly version: number;
|
|
164
|
-
readonly scope: Scope;
|
|
165
|
-
readonly deleted: boolean;
|
|
166
|
-
readonly tags: Tags;
|
|
167
|
-
readonly state: S;
|
|
213
|
+
export interface RefusedResult<R = Record<string, unknown>> extends Omit<CommandResult<R>, 'ref'> {
|
|
214
|
+
readonly ref: CommandRef;
|
|
168
215
|
}
|
|
216
|
+
/** The tags of an aggregate: names to values. */
|
|
217
|
+
export type Tags = Readonly<Record<string, readonly string[]>>;
|
|
169
218
|
/**
|
|
170
|
-
* An event as Wow reads it now: under its current name, upgraded to its latest revision. The `events` query gives
|
|
219
|
+
* An event as Wow reads it now: under its current name, upgraded to its latest revision. Kotlin's `CommittedEvent`. The `events` query gives
|
|
171
220
|
* every stored event so, however old its record, and leaves out the events its aggregate retired, so a generated
|
|
172
221
|
* `<Aggregate>Event` union, with {@link SystemEvent}, covers each event it returns.
|
|
173
222
|
*
|
|
174
223
|
* @typeParam N - The event's name.
|
|
175
224
|
* @typeParam B - The event's body.
|
|
176
225
|
*/
|
|
177
|
-
export interface
|
|
226
|
+
export interface CommittedEvent<N extends string = string, B = unknown> {
|
|
178
227
|
readonly name: N;
|
|
179
228
|
readonly revision: number;
|
|
180
229
|
readonly body: B;
|
|
@@ -192,36 +241,36 @@ export interface TagsApplied {
|
|
|
192
241
|
readonly tags: Tags;
|
|
193
242
|
}
|
|
194
243
|
/**
|
|
195
|
-
* The body of `wow.ScheduleSet
|
|
244
|
+
* The body of `wow.ScheduleSet`: the aggregate set its
|
|
196
245
|
* schedule `key`, to send `target` the command of type `commandType`
|
|
197
246
|
* (`command` its JSON text) as `rule` says.
|
|
198
247
|
*/
|
|
199
248
|
export interface ScheduleSet {
|
|
200
249
|
readonly key: string;
|
|
201
250
|
readonly rule: ScheduleRule;
|
|
202
|
-
readonly target:
|
|
251
|
+
readonly target: CommandRef;
|
|
203
252
|
readonly commandType: string;
|
|
204
253
|
readonly command: string;
|
|
205
254
|
}
|
|
206
|
-
/** The body of `wow.ScheduleCancelled
|
|
255
|
+
/** The body of `wow.ScheduleCancelled`. */
|
|
207
256
|
export interface ScheduleCancelled {
|
|
208
257
|
readonly key: string;
|
|
209
258
|
}
|
|
210
259
|
/**
|
|
211
|
-
* The system events the kernel gives every aggregate
|
|
260
|
+
* The system events the kernel gives every aggregate:
|
|
212
261
|
* the lifecycle events and the schedule events. A state trace and an event
|
|
213
262
|
* stream carry them beside the aggregate's own events, so the event union
|
|
214
263
|
* `wow-generator` writes for an aggregate includes this one.
|
|
215
264
|
*/
|
|
216
|
-
export type SystemEvent =
|
|
265
|
+
export type SystemEvent = CommittedEvent<'wow.lifecycle.AggregateDeleted', Readonly<Record<string, never>>> | CommittedEvent<'wow.lifecycle.AggregateRestored', Readonly<Record<string, never>>> | CommittedEvent<'wow.lifecycle.OwnerTransferred', OwnerTransferred> | CommittedEvent<'wow.lifecycle.SpaceTransferred', SpaceTransferred> | CommittedEvent<'wow.lifecycle.TagsApplied', TagsApplied> | CommittedEvent<'wow.ScheduleSet', ScheduleSet> | CommittedEvent<'wow.ScheduleCancelled', ScheduleCancelled>;
|
|
217
266
|
/**
|
|
218
|
-
* One commit of a state trace
|
|
267
|
+
* One commit of a state trace: the events of a version and the
|
|
219
268
|
* aggregate after it.
|
|
220
269
|
*
|
|
221
270
|
* @typeParam S - The state's type.
|
|
222
271
|
* @typeParam E - The events' type.
|
|
223
272
|
*/
|
|
224
|
-
export interface CommitView<S = unknown, E extends
|
|
273
|
+
export interface CommitView<S = unknown, E extends CommittedEvent = CommittedEvent> {
|
|
225
274
|
readonly version: number;
|
|
226
275
|
/** When it was committed, in epoch milliseconds. */
|
|
227
276
|
readonly commitTime: number;
|
|
@@ -239,17 +288,18 @@ export interface CommitView<S = unknown, E extends EventView = EventView> {
|
|
|
239
288
|
* What `GET /{context}/{aggregate}/{id}/state/trace` answers: the aggregate
|
|
240
289
|
* and its commits in version order.
|
|
241
290
|
*/
|
|
242
|
-
export interface StateTrace<S = unknown, E extends
|
|
291
|
+
export interface StateTrace<S = unknown, E extends CommittedEvent = CommittedEvent> {
|
|
243
292
|
readonly ref: AggregateRef;
|
|
244
293
|
readonly commits: readonly CommitView<S, E>[];
|
|
245
294
|
}
|
|
246
295
|
/**
|
|
247
|
-
*
|
|
248
|
-
*
|
|
296
|
+
* An aggregate's latest committed state, as a record of the `snapshot` query
|
|
297
|
+
* model and as `GET /{context}/{aggregate}/{id}/state` answer it: the
|
|
298
|
+
* aggregate's system fields and its state. Kotlin's `Snapshot`.
|
|
249
299
|
*
|
|
250
300
|
* @typeParam S - The state's type.
|
|
251
301
|
*/
|
|
252
|
-
export interface
|
|
302
|
+
export interface Snapshot<S = unknown> {
|
|
253
303
|
readonly tenantId: string;
|
|
254
304
|
readonly aggregateId: string;
|
|
255
305
|
readonly version: number;
|
|
@@ -267,9 +317,9 @@ export interface SnapshotRecord<S = unknown> {
|
|
|
267
317
|
readonly firstOperator: Operator | null;
|
|
268
318
|
/**
|
|
269
319
|
* The schedules the aggregate keeps (decision D198): each rule, `{type,
|
|
270
|
-
* ...}`, by its key
|
|
320
|
+
* ...}`, by its key.
|
|
271
321
|
*/
|
|
272
|
-
readonly schedules
|
|
322
|
+
readonly schedules: Readonly<Record<string, ScheduleRule>>;
|
|
273
323
|
readonly state: S;
|
|
274
324
|
}
|
|
275
325
|
/**
|
|
@@ -277,19 +327,19 @@ export interface SnapshotRecord<S = unknown> {
|
|
|
277
327
|
* project on; a state field is `state.<path>`.
|
|
278
328
|
*/
|
|
279
329
|
export type SnapshotSystemField = 'tenantId' | 'aggregateId' | 'version' | 'ownerId' | 'spaceId' | 'deleted' | 'tags' | 'firstEventTime' | 'lastEventTime' | 'operator' | 'operator.id' | 'operator.tenantId' | 'operator.crossScope' | 'firstOperator' | 'firstOperator.id' | 'firstOperator.tenantId' | 'firstOperator.crossScope' | 'schedules';
|
|
280
|
-
/** A schedule rule of a snapshot's `schedules
|
|
330
|
+
/** A schedule rule of a snapshot's `schedules`. */
|
|
281
331
|
export interface ScheduleRule {
|
|
282
332
|
/** The rule's type: `at`, `after`, `cron`, … */
|
|
283
333
|
readonly type: string;
|
|
284
334
|
readonly [property: string]: unknown;
|
|
285
335
|
}
|
|
286
336
|
/**
|
|
287
|
-
* A record of the `events` query model
|
|
288
|
-
* aggregate and its events.
|
|
337
|
+
* A record of the `events` query model: one commit of one
|
|
338
|
+
* aggregate and its events. Kotlin's `EventStream`.
|
|
289
339
|
*
|
|
290
340
|
* @typeParam E - The events' type.
|
|
291
341
|
*/
|
|
292
|
-
export interface
|
|
342
|
+
export interface EventStream<E extends CommittedEvent = CommittedEvent> {
|
|
293
343
|
readonly aggregateId: string;
|
|
294
344
|
readonly tenantId: string;
|
|
295
345
|
readonly version: number;
|
|
@@ -306,15 +356,15 @@ export interface EventStreamRecord<E extends EventView = EventView> {
|
|
|
306
356
|
readonly events: readonly E[];
|
|
307
357
|
}
|
|
308
358
|
/**
|
|
309
|
-
* The fields of an event stream record a query names
|
|
359
|
+
* The fields of an event stream record a query names: its
|
|
310
360
|
* system fields and `events`, the array an `elementMatch` filter and an
|
|
311
361
|
* aggregation's `elements` reach an event through, by the event's own
|
|
312
362
|
* `name`, `revision` and `body.*`.
|
|
313
363
|
*/
|
|
314
364
|
export type EventStreamField = 'aggregateId' | 'tenantId' | 'version' | 'commitTime' | 'commandId' | 'requestId' | 'commandType' | 'ownerId' | 'spaceId' | 'operator' | 'operator.id' | 'operator.tenantId' | 'operator.crossScope' | 'events';
|
|
315
|
-
/** How an aggregate belongs to its callers
|
|
316
|
-
export type Ownership = '
|
|
317
|
-
/** One dataset of `GET /wow/dataset
|
|
365
|
+
/** How an aggregate belongs to its callers. */
|
|
366
|
+
export type Ownership = 'owner' | 'tenant';
|
|
367
|
+
/** One dataset of `GET /wow/dataset`. */
|
|
318
368
|
export interface DatasetEntry {
|
|
319
369
|
/** `{context}.{dataset}`. */
|
|
320
370
|
readonly name: string;
|
package/dist/wire.d.ts
CHANGED
|
@@ -30,13 +30,24 @@ export interface AggregateRef {
|
|
|
30
30
|
readonly tenantId: string;
|
|
31
31
|
readonly id: string;
|
|
32
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* The aggregate a command names: an {@link AggregateRef} whose `id` is null
|
|
35
|
+
* while admission has not chosen it, as for a creation that leaves its id to
|
|
36
|
+
* the server and was refused before one was chosen. The Kotlin client holds
|
|
37
|
+
* such an id as `AggregateRef.UNASSIGNED`.
|
|
38
|
+
*/
|
|
39
|
+
export interface CommandRef {
|
|
40
|
+
readonly type: AggregateType;
|
|
41
|
+
readonly tenantId: string;
|
|
42
|
+
readonly id: string | null;
|
|
43
|
+
}
|
|
33
44
|
/** The owner and the space an aggregate belongs to, beside its tenant. */
|
|
34
45
|
export interface Scope {
|
|
35
46
|
readonly ownerId?: string | null;
|
|
36
47
|
readonly spaceId?: string | null;
|
|
37
48
|
}
|
|
38
49
|
/**
|
|
39
|
-
* Who sent a command
|
|
50
|
+
* Who sent a command: the opaque id of the authenticated
|
|
40
51
|
* subject, its own tenant, and whether it acted in another tenant or scope.
|
|
41
52
|
* Resolve the id to a display name in the application, never from Wow.
|
|
42
53
|
*/
|
|
@@ -45,32 +56,57 @@ export interface Operator {
|
|
|
45
56
|
readonly tenantId: string;
|
|
46
57
|
readonly crossScope: boolean;
|
|
47
58
|
}
|
|
48
|
-
/** How far a command has come
|
|
59
|
+
/** How far a command has come. */
|
|
49
60
|
export declare const Stage: {
|
|
50
61
|
/** The command passed admission. */
|
|
51
|
-
readonly ACCEPTED: "
|
|
62
|
+
readonly ACCEPTED: "accepted";
|
|
52
63
|
/** The command's events are appended to the log. */
|
|
53
|
-
readonly COMMITTED: "
|
|
64
|
+
readonly COMMITTED: "committed";
|
|
54
65
|
/** A named subscription has handled the commit. */
|
|
55
|
-
readonly HANDLED: "
|
|
66
|
+
readonly HANDLED: "handled";
|
|
56
67
|
};
|
|
57
68
|
/** A {@link Stage} value. */
|
|
58
69
|
export type Stage = (typeof Stage)[keyof typeof Stage];
|
|
59
70
|
/**
|
|
60
|
-
* One hop of a wait chain
|
|
71
|
+
* One hop of a wait chain: a stage, in a context (the
|
|
61
72
|
* command's own when absent), of a subscription when the stage is
|
|
62
|
-
* `
|
|
73
|
+
* `handled`. The snapshot is the subscription named `snapshot`.
|
|
63
74
|
*/
|
|
64
75
|
export interface Hop {
|
|
65
|
-
|
|
76
|
+
/**
|
|
77
|
+
* The stage; a server newer than this client may answer one it does not
|
|
78
|
+
* list.
|
|
79
|
+
*/
|
|
80
|
+
readonly stage: Stage | (string & {});
|
|
66
81
|
readonly context?: string | null;
|
|
67
82
|
readonly subscription?: string | null;
|
|
68
83
|
}
|
|
69
84
|
/** The kind of function that produced a result. */
|
|
70
|
-
export
|
|
85
|
+
export declare const FunctionKind: {
|
|
86
|
+
/** The aggregate's command function. */
|
|
87
|
+
readonly COMMAND: "command";
|
|
88
|
+
/** A projection. */
|
|
89
|
+
readonly PROJECT: "project";
|
|
90
|
+
/** An event handler that reacts. */
|
|
91
|
+
readonly REACT: "react";
|
|
92
|
+
/** A saga. */
|
|
93
|
+
readonly SAGA: "saga";
|
|
94
|
+
/** The snapshot subscription. */
|
|
95
|
+
readonly SNAPSHOT: "snapshot";
|
|
96
|
+
/** A reservation. */
|
|
97
|
+
readonly RESERVATION: "reservation";
|
|
98
|
+
/** A timer. */
|
|
99
|
+
readonly TIMERS: "timers";
|
|
100
|
+
};
|
|
101
|
+
/** A {@link FunctionKind} value. */
|
|
102
|
+
export type FunctionKind = (typeof FunctionKind)[keyof typeof FunctionKind];
|
|
71
103
|
/** Who produced a result: a function of `kind` in `context`. */
|
|
72
104
|
export interface FunctionInfo {
|
|
73
|
-
|
|
105
|
+
/**
|
|
106
|
+
* The kind; a server newer than this client may answer one it does not
|
|
107
|
+
* list.
|
|
108
|
+
*/
|
|
109
|
+
readonly kind: FunctionKind | (string & {});
|
|
74
110
|
readonly context: string;
|
|
75
111
|
readonly processor: string;
|
|
76
112
|
readonly name: string;
|
|
@@ -97,10 +133,19 @@ export interface ErrorInfo {
|
|
|
97
133
|
readonly extensions?: Readonly<Record<string, unknown>>;
|
|
98
134
|
}
|
|
99
135
|
/** How a command ended at a hop. */
|
|
100
|
-
export
|
|
136
|
+
export declare const CommandResultStatus: {
|
|
137
|
+
/** The command reached the hop. */
|
|
138
|
+
readonly SUCCEEDED: "succeeded";
|
|
139
|
+
/** The domain or admission refused the command. */
|
|
140
|
+
readonly REJECTED: "rejected";
|
|
141
|
+
/** A technical failure stopped the command. */
|
|
142
|
+
readonly FAILED: "failed";
|
|
143
|
+
};
|
|
144
|
+
/** A {@link CommandResultStatus} value. */
|
|
145
|
+
export type CommandResultStatus = (typeof CommandResultStatus)[keyof typeof CommandResultStatus];
|
|
101
146
|
/**
|
|
102
147
|
* The command a request named before a transformer turned it into the one
|
|
103
|
-
* that ran
|
|
148
|
+
* that ran.
|
|
104
149
|
*/
|
|
105
150
|
export interface TransformedFrom {
|
|
106
151
|
/** The full type name, `context.aggregate.Command`. */
|
|
@@ -108,7 +153,7 @@ export interface TransformedFrom {
|
|
|
108
153
|
readonly aggregateId?: string | null;
|
|
109
154
|
}
|
|
110
155
|
/**
|
|
111
|
-
* The one outward result of a command
|
|
156
|
+
* The one outward result of a command: what it reached at one
|
|
112
157
|
* hop of its wait chain. A command route answers the last one; its event
|
|
113
158
|
* stream sends one per hop.
|
|
114
159
|
*
|
|
@@ -126,15 +171,20 @@ export interface CommandResult<R = Record<string, unknown>> {
|
|
|
126
171
|
readonly commandId: string;
|
|
127
172
|
readonly requestId: string;
|
|
128
173
|
readonly correlationId: string;
|
|
174
|
+
/** The aggregate: a result that succeeded always names its id. */
|
|
129
175
|
readonly ref: AggregateRef;
|
|
130
176
|
readonly hop: Hop;
|
|
131
177
|
readonly function: FunctionInfo;
|
|
132
|
-
|
|
178
|
+
/**
|
|
179
|
+
* The status; a server newer than this client may answer one it does not
|
|
180
|
+
* list, which did not succeed as far as this client knows.
|
|
181
|
+
*/
|
|
182
|
+
readonly status: CommandResultStatus | (string & {});
|
|
133
183
|
/** The aggregate's version after the commit, or the unchanged one. */
|
|
134
184
|
readonly version?: number | null;
|
|
135
185
|
/** The request was already committed: it was not decided again. */
|
|
136
186
|
readonly duplicate: boolean;
|
|
137
|
-
/** Set when `status` is `
|
|
187
|
+
/** Set when `status` is `rejected` or `failed`. */
|
|
138
188
|
readonly error?: ErrorInfo | null;
|
|
139
189
|
readonly results: R;
|
|
140
190
|
/** On a saga's hop, the ids of the commands it derived. */
|
|
@@ -150,31 +200,30 @@ export interface CommandResult<R = Record<string, unknown>> {
|
|
|
150
200
|
/** When `chainEnded`, the hops of the plan not reached, in order. */
|
|
151
201
|
readonly pending?: readonly Hop[];
|
|
152
202
|
}
|
|
153
|
-
/** The tags of an aggregate: names to values. */
|
|
154
|
-
export type Tags = Readonly<Record<string, readonly string[]>>;
|
|
155
203
|
/**
|
|
156
|
-
*
|
|
157
|
-
* `
|
|
204
|
+
* A result that may not have succeeded, as a rejection or a problem carries
|
|
205
|
+
* it (`CommandRejectedError.result`, `WowProblemError.result`): a command
|
|
206
|
+
* refused before an aggregate id was decided names none
|
|
207
|
+
* ({@link CommandRef}). The Kotlin client has no type of its own
|
|
208
|
+
* for it: its `CommandResult.ref` holds such an id as
|
|
209
|
+
* `AggregateRef.UNASSIGNED`.
|
|
158
210
|
*
|
|
159
|
-
* @typeParam
|
|
211
|
+
* @typeParam R - The results' type.
|
|
160
212
|
*/
|
|
161
|
-
export interface
|
|
162
|
-
readonly ref:
|
|
163
|
-
readonly version: number;
|
|
164
|
-
readonly scope: Scope;
|
|
165
|
-
readonly deleted: boolean;
|
|
166
|
-
readonly tags: Tags;
|
|
167
|
-
readonly state: S;
|
|
213
|
+
export interface RefusedResult<R = Record<string, unknown>> extends Omit<CommandResult<R>, 'ref'> {
|
|
214
|
+
readonly ref: CommandRef;
|
|
168
215
|
}
|
|
216
|
+
/** The tags of an aggregate: names to values. */
|
|
217
|
+
export type Tags = Readonly<Record<string, readonly string[]>>;
|
|
169
218
|
/**
|
|
170
|
-
* An event as Wow reads it now: under its current name, upgraded to its latest revision. The `events` query gives
|
|
219
|
+
* An event as Wow reads it now: under its current name, upgraded to its latest revision. Kotlin's `CommittedEvent`. The `events` query gives
|
|
171
220
|
* every stored event so, however old its record, and leaves out the events its aggregate retired, so a generated
|
|
172
221
|
* `<Aggregate>Event` union, with {@link SystemEvent}, covers each event it returns.
|
|
173
222
|
*
|
|
174
223
|
* @typeParam N - The event's name.
|
|
175
224
|
* @typeParam B - The event's body.
|
|
176
225
|
*/
|
|
177
|
-
export interface
|
|
226
|
+
export interface CommittedEvent<N extends string = string, B = unknown> {
|
|
178
227
|
readonly name: N;
|
|
179
228
|
readonly revision: number;
|
|
180
229
|
readonly body: B;
|
|
@@ -192,36 +241,36 @@ export interface TagsApplied {
|
|
|
192
241
|
readonly tags: Tags;
|
|
193
242
|
}
|
|
194
243
|
/**
|
|
195
|
-
* The body of `wow.ScheduleSet
|
|
244
|
+
* The body of `wow.ScheduleSet`: the aggregate set its
|
|
196
245
|
* schedule `key`, to send `target` the command of type `commandType`
|
|
197
246
|
* (`command` its JSON text) as `rule` says.
|
|
198
247
|
*/
|
|
199
248
|
export interface ScheduleSet {
|
|
200
249
|
readonly key: string;
|
|
201
250
|
readonly rule: ScheduleRule;
|
|
202
|
-
readonly target:
|
|
251
|
+
readonly target: CommandRef;
|
|
203
252
|
readonly commandType: string;
|
|
204
253
|
readonly command: string;
|
|
205
254
|
}
|
|
206
|
-
/** The body of `wow.ScheduleCancelled
|
|
255
|
+
/** The body of `wow.ScheduleCancelled`. */
|
|
207
256
|
export interface ScheduleCancelled {
|
|
208
257
|
readonly key: string;
|
|
209
258
|
}
|
|
210
259
|
/**
|
|
211
|
-
* The system events the kernel gives every aggregate
|
|
260
|
+
* The system events the kernel gives every aggregate:
|
|
212
261
|
* the lifecycle events and the schedule events. A state trace and an event
|
|
213
262
|
* stream carry them beside the aggregate's own events, so the event union
|
|
214
263
|
* `wow-generator` writes for an aggregate includes this one.
|
|
215
264
|
*/
|
|
216
|
-
export type SystemEvent =
|
|
265
|
+
export type SystemEvent = CommittedEvent<'wow.lifecycle.AggregateDeleted', Readonly<Record<string, never>>> | CommittedEvent<'wow.lifecycle.AggregateRestored', Readonly<Record<string, never>>> | CommittedEvent<'wow.lifecycle.OwnerTransferred', OwnerTransferred> | CommittedEvent<'wow.lifecycle.SpaceTransferred', SpaceTransferred> | CommittedEvent<'wow.lifecycle.TagsApplied', TagsApplied> | CommittedEvent<'wow.ScheduleSet', ScheduleSet> | CommittedEvent<'wow.ScheduleCancelled', ScheduleCancelled>;
|
|
217
266
|
/**
|
|
218
|
-
* One commit of a state trace
|
|
267
|
+
* One commit of a state trace: the events of a version and the
|
|
219
268
|
* aggregate after it.
|
|
220
269
|
*
|
|
221
270
|
* @typeParam S - The state's type.
|
|
222
271
|
* @typeParam E - The events' type.
|
|
223
272
|
*/
|
|
224
|
-
export interface CommitView<S = unknown, E extends
|
|
273
|
+
export interface CommitView<S = unknown, E extends CommittedEvent = CommittedEvent> {
|
|
225
274
|
readonly version: number;
|
|
226
275
|
/** When it was committed, in epoch milliseconds. */
|
|
227
276
|
readonly commitTime: number;
|
|
@@ -239,17 +288,18 @@ export interface CommitView<S = unknown, E extends EventView = EventView> {
|
|
|
239
288
|
* What `GET /{context}/{aggregate}/{id}/state/trace` answers: the aggregate
|
|
240
289
|
* and its commits in version order.
|
|
241
290
|
*/
|
|
242
|
-
export interface StateTrace<S = unknown, E extends
|
|
291
|
+
export interface StateTrace<S = unknown, E extends CommittedEvent = CommittedEvent> {
|
|
243
292
|
readonly ref: AggregateRef;
|
|
244
293
|
readonly commits: readonly CommitView<S, E>[];
|
|
245
294
|
}
|
|
246
295
|
/**
|
|
247
|
-
*
|
|
248
|
-
*
|
|
296
|
+
* An aggregate's latest committed state, as a record of the `snapshot` query
|
|
297
|
+
* model and as `GET /{context}/{aggregate}/{id}/state` answer it: the
|
|
298
|
+
* aggregate's system fields and its state. Kotlin's `Snapshot`.
|
|
249
299
|
*
|
|
250
300
|
* @typeParam S - The state's type.
|
|
251
301
|
*/
|
|
252
|
-
export interface
|
|
302
|
+
export interface Snapshot<S = unknown> {
|
|
253
303
|
readonly tenantId: string;
|
|
254
304
|
readonly aggregateId: string;
|
|
255
305
|
readonly version: number;
|
|
@@ -267,9 +317,9 @@ export interface SnapshotRecord<S = unknown> {
|
|
|
267
317
|
readonly firstOperator: Operator | null;
|
|
268
318
|
/**
|
|
269
319
|
* The schedules the aggregate keeps (decision D198): each rule, `{type,
|
|
270
|
-
* ...}`, by its key
|
|
320
|
+
* ...}`, by its key.
|
|
271
321
|
*/
|
|
272
|
-
readonly schedules
|
|
322
|
+
readonly schedules: Readonly<Record<string, ScheduleRule>>;
|
|
273
323
|
readonly state: S;
|
|
274
324
|
}
|
|
275
325
|
/**
|
|
@@ -277,19 +327,19 @@ export interface SnapshotRecord<S = unknown> {
|
|
|
277
327
|
* project on; a state field is `state.<path>`.
|
|
278
328
|
*/
|
|
279
329
|
export type SnapshotSystemField = 'tenantId' | 'aggregateId' | 'version' | 'ownerId' | 'spaceId' | 'deleted' | 'tags' | 'firstEventTime' | 'lastEventTime' | 'operator' | 'operator.id' | 'operator.tenantId' | 'operator.crossScope' | 'firstOperator' | 'firstOperator.id' | 'firstOperator.tenantId' | 'firstOperator.crossScope' | 'schedules';
|
|
280
|
-
/** A schedule rule of a snapshot's `schedules
|
|
330
|
+
/** A schedule rule of a snapshot's `schedules`. */
|
|
281
331
|
export interface ScheduleRule {
|
|
282
332
|
/** The rule's type: `at`, `after`, `cron`, … */
|
|
283
333
|
readonly type: string;
|
|
284
334
|
readonly [property: string]: unknown;
|
|
285
335
|
}
|
|
286
336
|
/**
|
|
287
|
-
* A record of the `events` query model
|
|
288
|
-
* aggregate and its events.
|
|
337
|
+
* A record of the `events` query model: one commit of one
|
|
338
|
+
* aggregate and its events. Kotlin's `EventStream`.
|
|
289
339
|
*
|
|
290
340
|
* @typeParam E - The events' type.
|
|
291
341
|
*/
|
|
292
|
-
export interface
|
|
342
|
+
export interface EventStream<E extends CommittedEvent = CommittedEvent> {
|
|
293
343
|
readonly aggregateId: string;
|
|
294
344
|
readonly tenantId: string;
|
|
295
345
|
readonly version: number;
|
|
@@ -306,15 +356,15 @@ export interface EventStreamRecord<E extends EventView = EventView> {
|
|
|
306
356
|
readonly events: readonly E[];
|
|
307
357
|
}
|
|
308
358
|
/**
|
|
309
|
-
* The fields of an event stream record a query names
|
|
359
|
+
* The fields of an event stream record a query names: its
|
|
310
360
|
* system fields and `events`, the array an `elementMatch` filter and an
|
|
311
361
|
* aggregation's `elements` reach an event through, by the event's own
|
|
312
362
|
* `name`, `revision` and `body.*`.
|
|
313
363
|
*/
|
|
314
364
|
export type EventStreamField = 'aggregateId' | 'tenantId' | 'version' | 'commitTime' | 'commandId' | 'requestId' | 'commandType' | 'ownerId' | 'spaceId' | 'operator' | 'operator.id' | 'operator.tenantId' | 'operator.crossScope' | 'events';
|
|
315
|
-
/** How an aggregate belongs to its callers
|
|
316
|
-
export type Ownership = '
|
|
317
|
-
/** One dataset of `GET /wow/dataset
|
|
365
|
+
/** How an aggregate belongs to its callers. */
|
|
366
|
+
export type Ownership = 'owner' | 'tenant';
|
|
367
|
+
/** One dataset of `GET /wow/dataset`. */
|
|
318
368
|
export interface DatasetEntry {
|
|
319
369
|
/** `{context}.{dataset}`. */
|
|
320
370
|
readonly name: string;
|
package/dist/wire.es.js
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
// src/wire.ts
|
|
2
2
|
var e = {
|
|
3
|
-
ACCEPTED: "
|
|
4
|
-
COMMITTED: "
|
|
5
|
-
HANDLED: "
|
|
3
|
+
ACCEPTED: "accepted",
|
|
4
|
+
COMMITTED: "committed",
|
|
5
|
+
HANDLED: "handled"
|
|
6
|
+
}, t = {
|
|
7
|
+
COMMAND: "command",
|
|
8
|
+
PROJECT: "project",
|
|
9
|
+
REACT: "react",
|
|
10
|
+
SAGA: "saga",
|
|
11
|
+
SNAPSHOT: "snapshot",
|
|
12
|
+
RESERVATION: "reservation",
|
|
13
|
+
TIMERS: "timers"
|
|
14
|
+
}, n = {
|
|
15
|
+
SUCCEEDED: "succeeded",
|
|
16
|
+
REJECTED: "rejected",
|
|
17
|
+
FAILED: "failed"
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
export { e as Stage };
|
|
19
|
+
export { n as CommandResultStatus, t as FunctionKind, e as Stage };
|
|
9
20
|
|
|
10
21
|
//# sourceMappingURL=wire.es.js.map
|