@kronos-ts/axon-server 0.1.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/axon-server-event-store.d.ts +16 -0
- package/dist/axon-server-event-store.d.ts.map +1 -0
- package/dist/axon-server-event-store.js +282 -0
- package/dist/axon-server-event-store.js.map +1 -0
- package/dist/axon-server-snapshot-store.d.ts +12 -0
- package/dist/axon-server-snapshot-store.d.ts.map +1 -0
- package/dist/axon-server-snapshot-store.js +88 -0
- package/dist/axon-server-snapshot-store.js.map +1 -0
- package/dist/axon-server.d.ts +115 -0
- package/dist/axon-server.d.ts.map +1 -0
- package/dist/axon-server.js +986 -0
- package/dist/axon-server.js.map +1 -0
- package/dist/connection-manager.d.ts +49 -0
- package/dist/connection-manager.d.ts.map +1 -0
- package/dist/connection-manager.js +37 -0
- package/dist/connection-manager.js.map +1 -0
- package/dist/connection.d.ts +129 -0
- package/dist/connection.d.ts.map +1 -0
- package/dist/connection.js +130 -0
- package/dist/connection.js.map +1 -0
- package/dist/errors.d.ts +96 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +189 -0
- package/dist/errors.js.map +1 -0
- package/dist/event-processor-info.d.ts +35 -0
- package/dist/event-processor-info.d.ts.map +1 -0
- package/dist/event-processor-info.js +28 -0
- package/dist/event-processor-info.js.map +1 -0
- package/dist/flow-controlled-sender.d.ts +30 -0
- package/dist/flow-controlled-sender.d.ts.map +1 -0
- package/dist/flow-controlled-sender.js +60 -0
- package/dist/flow-controlled-sender.js.map +1 -0
- package/dist/generated/command.d.ts +158 -0
- package/dist/generated/command.d.ts.map +1 -0
- package/dist/generated/command.js +970 -0
- package/dist/generated/command.js.map +1 -0
- package/dist/generated/common.d.ts +130 -0
- package/dist/generated/common.d.ts.map +1 -0
- package/dist/generated/common.js +908 -0
- package/dist/generated/common.js.map +1 -0
- package/dist/generated/control.d.ts +293 -0
- package/dist/generated/control.d.ts.map +1 -0
- package/dist/generated/control.js +1938 -0
- package/dist/generated/control.js.map +1 -0
- package/dist/generated/dcb.d.ts +650 -0
- package/dist/generated/dcb.d.ts.map +1 -0
- package/dist/generated/dcb.js +2943 -0
- package/dist/generated/dcb.js.map +1 -0
- package/dist/generated/event.d.ts +667 -0
- package/dist/generated/event.d.ts.map +1 -0
- package/dist/generated/event.js +3185 -0
- package/dist/generated/event.js.map +1 -0
- package/dist/generated/google/protobuf/empty.d.ts +30 -0
- package/dist/generated/google/protobuf/empty.d.ts.map +1 -0
- package/dist/generated/google/protobuf/empty.js +46 -0
- package/dist/generated/google/protobuf/empty.js.map +1 -0
- package/dist/generated/query.d.ts +300 -0
- package/dist/generated/query.d.ts.map +1 -0
- package/dist/generated/query.js +2183 -0
- package/dist/generated/query.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/message-size.d.ts +38 -0
- package/dist/message-size.d.ts.map +1 -0
- package/dist/message-size.js +57 -0
- package/dist/message-size.js.map +1 -0
- package/dist/metadata-conversion.d.ts +11 -0
- package/dist/metadata-conversion.d.ts.map +1 -0
- package/dist/metadata-conversion.js +51 -0
- package/dist/metadata-conversion.js.map +1 -0
- package/dist/outbound-stream.d.ts +15 -0
- package/dist/outbound-stream.d.ts.map +1 -0
- package/dist/outbound-stream.js +39 -0
- package/dist/outbound-stream.js.map +1 -0
- package/dist/platform-service.d.ts +119 -0
- package/dist/platform-service.d.ts.map +1 -0
- package/dist/platform-service.js +250 -0
- package/dist/platform-service.js.map +1 -0
- package/dist/shutdown-latch.d.ts +38 -0
- package/dist/shutdown-latch.d.ts.map +1 -0
- package/dist/shutdown-latch.js +51 -0
- package/dist/shutdown-latch.js.map +1 -0
- package/package.json +69 -0
- package/src/axon-server-event-store.ts +358 -0
- package/src/axon-server-snapshot-store.ts +118 -0
- package/src/axon-server.ts +1202 -0
- package/src/connection-manager.ts +88 -0
- package/src/connection.ts +272 -0
- package/src/errors.ts +223 -0
- package/src/event-processor-info.ts +62 -0
- package/src/flow-controlled-sender.ts +91 -0
- package/src/generated/command.ts +1231 -0
- package/src/generated/common.ts +1097 -0
- package/src/generated/control.ts +2419 -0
- package/src/generated/dcb.ts +3826 -0
- package/src/generated/event.ts +4076 -0
- package/src/generated/google/protobuf/empty.ts +84 -0
- package/src/generated/query.ts +2723 -0
- package/src/index.ts +75 -0
- package/src/message-size.ts +75 -0
- package/src/metadata-conversion.ts +46 -0
- package/src/outbound-stream.ts +52 -0
- package/src/platform-service.ts +361 -0
- package/src/shutdown-latch.ts +97 -0
|
@@ -0,0 +1,667 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
3
|
+
import { InstructionAck, MetaDataValue, SerializedObject } from "./common.js";
|
|
4
|
+
import { Empty } from "./google/protobuf/empty.js";
|
|
5
|
+
export declare const protobufPackage = "io.axoniq.axonserver.grpc.event";
|
|
6
|
+
/** The state of the transformation. */
|
|
7
|
+
export declare enum TransformationState {
|
|
8
|
+
/** ACTIVE - The transformation is opened, able to receive request to transform events, or to be applied or cancelled. */
|
|
9
|
+
ACTIVE = 0,
|
|
10
|
+
/** CANCELLED - The transformation has been cancelled. This a final state. */
|
|
11
|
+
CANCELLED = 1,
|
|
12
|
+
/** APPLYING - The transformation is in progress of applying its actions to the event store. */
|
|
13
|
+
APPLYING = 2,
|
|
14
|
+
/** APPLIED - The transformation has been applied to the event store. This a final state. */
|
|
15
|
+
APPLIED = 3,
|
|
16
|
+
UNRECOGNIZED = -1
|
|
17
|
+
}
|
|
18
|
+
export declare function transformationStateFromJSON(object: any): TransformationState;
|
|
19
|
+
export declare function transformationStateToJSON(object: TransformationState): string;
|
|
20
|
+
/** Request to compact event store. */
|
|
21
|
+
export interface CompactionRequest {
|
|
22
|
+
}
|
|
23
|
+
/** The transformation data. */
|
|
24
|
+
export interface Transformation {
|
|
25
|
+
/** The identifier of the transformation. */
|
|
26
|
+
transformationId: TransformationId | undefined;
|
|
27
|
+
/** The state of the transformation */
|
|
28
|
+
state: TransformationState;
|
|
29
|
+
/** The sequence of the last transformation action stored. Needed for checking sequential consistency of requests. */
|
|
30
|
+
sequence: bigint;
|
|
31
|
+
/** The bounded context in which this transformation is being executed. */
|
|
32
|
+
context: string;
|
|
33
|
+
/** The description of the transformation. */
|
|
34
|
+
description: string;
|
|
35
|
+
/** The timestamp at which the transformation was applied. Set to -1 if the transformation was not applied. */
|
|
36
|
+
appliedAt: bigint;
|
|
37
|
+
/** The username of user who requested the transformation to be applied. Empty if the transformation was not applied. */
|
|
38
|
+
applyRequester: string;
|
|
39
|
+
/** The version of the transformation. The sequence */
|
|
40
|
+
version: number;
|
|
41
|
+
}
|
|
42
|
+
/** Request to start a transformation */
|
|
43
|
+
export interface StartTransformationRequest {
|
|
44
|
+
/** A description of the purpose of this transformation, for reference only */
|
|
45
|
+
description: string;
|
|
46
|
+
}
|
|
47
|
+
/** Request to apply a transformation */
|
|
48
|
+
export interface ApplyTransformationRequest {
|
|
49
|
+
/** The identification of the transformation */
|
|
50
|
+
transformationId: TransformationId | undefined;
|
|
51
|
+
/** The sequence of the last entry in this transformation */
|
|
52
|
+
lastSequence: bigint;
|
|
53
|
+
}
|
|
54
|
+
/** Message containing one event to transform within a transformation */
|
|
55
|
+
export interface TransformRequest {
|
|
56
|
+
/** The identification of the transformation */
|
|
57
|
+
transformationId: TransformationId | undefined;
|
|
58
|
+
/** The sequence of the current transformation */
|
|
59
|
+
sequence: bigint;
|
|
60
|
+
/** Replaces the content of an event with the new content */
|
|
61
|
+
replaceEvent?: TransformedEvent | undefined;
|
|
62
|
+
/** Deletes the content of an event */
|
|
63
|
+
deleteEvent?: DeletedEvent | undefined;
|
|
64
|
+
}
|
|
65
|
+
/** Replaces the content of an event with the new content */
|
|
66
|
+
export interface TransformedEvent {
|
|
67
|
+
/** The global index of the event to replace */
|
|
68
|
+
token: bigint;
|
|
69
|
+
/** The new content of the event */
|
|
70
|
+
event: Event | undefined;
|
|
71
|
+
}
|
|
72
|
+
/** Deletes the content of an event */
|
|
73
|
+
export interface DeletedEvent {
|
|
74
|
+
/** The global index of the event to clear */
|
|
75
|
+
token: bigint;
|
|
76
|
+
}
|
|
77
|
+
/** Uniquely identifies a transformation */
|
|
78
|
+
export interface TransformationId {
|
|
79
|
+
/** The value of the identifier. */
|
|
80
|
+
id: string;
|
|
81
|
+
}
|
|
82
|
+
/** Acknowledgement that event with given token has been transformed successfully */
|
|
83
|
+
export interface TransformRequestAck {
|
|
84
|
+
/** The sequence of the transformation request */
|
|
85
|
+
sequence: bigint;
|
|
86
|
+
}
|
|
87
|
+
/** Request message to schedule an event */
|
|
88
|
+
export interface ScheduleEventRequest {
|
|
89
|
+
/** timestamp when to publish the event */
|
|
90
|
+
instant: bigint;
|
|
91
|
+
/** the event to publish */
|
|
92
|
+
event: Event | undefined;
|
|
93
|
+
}
|
|
94
|
+
/** Request message to reschedule an event */
|
|
95
|
+
export interface RescheduleEventRequest {
|
|
96
|
+
/** optional token of scheduled event to cancel */
|
|
97
|
+
token: string;
|
|
98
|
+
/** timestamp when to publish the event */
|
|
99
|
+
instant: bigint;
|
|
100
|
+
/** the event to publish */
|
|
101
|
+
event: Event | undefined;
|
|
102
|
+
}
|
|
103
|
+
/** Request message to cancel an event */
|
|
104
|
+
export interface CancelScheduledEventRequest {
|
|
105
|
+
/** token of scheduled event to cancel */
|
|
106
|
+
token: string;
|
|
107
|
+
}
|
|
108
|
+
/** Token to manage a scheduled event */
|
|
109
|
+
export interface ScheduleToken {
|
|
110
|
+
/** Field defining the token identifier */
|
|
111
|
+
token: string;
|
|
112
|
+
}
|
|
113
|
+
/** Request message to receive the first Token (Tail Token) of the Event Stream */
|
|
114
|
+
export interface GetFirstTokenRequest {
|
|
115
|
+
}
|
|
116
|
+
/** Request message to receive the last Token (Head Token) of the Event Stream */
|
|
117
|
+
export interface GetLastTokenRequest {
|
|
118
|
+
}
|
|
119
|
+
/** Request message to receive the Token that starts streaming events from the given timestamp */
|
|
120
|
+
export interface GetTokenAtRequest {
|
|
121
|
+
/** Timestamp expressed as milliseconds since epoch */
|
|
122
|
+
instant: bigint;
|
|
123
|
+
}
|
|
124
|
+
/** Message containing the information necessary to track the position of events in the Event Stream */
|
|
125
|
+
export interface TrackingToken {
|
|
126
|
+
/** The value of the Token */
|
|
127
|
+
token: bigint;
|
|
128
|
+
}
|
|
129
|
+
/** Message wrapping an Event and a Tracking Token */
|
|
130
|
+
export interface EventWithToken {
|
|
131
|
+
/** The Token representing the position of this Event in the Stream */
|
|
132
|
+
token: bigint;
|
|
133
|
+
/** The actual Event Message */
|
|
134
|
+
event: Event | undefined;
|
|
135
|
+
}
|
|
136
|
+
/** Message providing the parameters for executing a Query against AxonServer. */
|
|
137
|
+
export interface QueryEventsRequest {
|
|
138
|
+
/** The query to execute against the Event Stream */
|
|
139
|
+
query: string;
|
|
140
|
+
/** The number of results AxonServer may send before new permits need to be provided */
|
|
141
|
+
numberOfPermits: bigint;
|
|
142
|
+
/** Whether to keep the query running against incoming events once the Head of the Stream is reached */
|
|
143
|
+
liveEvents: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Indicates whether to force querying events from the leader node of an Axon Server. Forcing reads from leader
|
|
146
|
+
* reduces the staleness of the data read, but also puts extra burden on the leader, reducing overall scalability.
|
|
147
|
+
* <p>
|
|
148
|
+
* This property has no effect on connections to AxonServer SE.
|
|
149
|
+
* </p>
|
|
150
|
+
*/
|
|
151
|
+
forceReadFromLeader: boolean;
|
|
152
|
+
/** If true, snapshots will be queried instead of events */
|
|
153
|
+
querySnapshots: boolean;
|
|
154
|
+
/** Query from this context, not from the default context of the connection */
|
|
155
|
+
contextName: string;
|
|
156
|
+
}
|
|
157
|
+
/** A message describing a response to a Query request */
|
|
158
|
+
export interface QueryEventsResponse {
|
|
159
|
+
/** Provided when the response contains the names of the columns the response contains. This message typically arrives first. */
|
|
160
|
+
columns?: ColumnsResponse | undefined;
|
|
161
|
+
/** Provided when the response message contains results of the Query */
|
|
162
|
+
row?: RowResponse | undefined;
|
|
163
|
+
/** Provided when all historic events have been included in the query results */
|
|
164
|
+
filesCompleted?: Confirmation | undefined;
|
|
165
|
+
}
|
|
166
|
+
/** Message containing the names of the columns returned in a Query */
|
|
167
|
+
export interface ColumnsResponse {
|
|
168
|
+
/** The names of the columns provided in the query */
|
|
169
|
+
column: string[];
|
|
170
|
+
}
|
|
171
|
+
/** Message providing Query Result data */
|
|
172
|
+
export interface RowResponse {
|
|
173
|
+
/** The values which, when combined, uniquely update this row. Any previously received values with the same identifiers should be replaced with this value */
|
|
174
|
+
idValues: QueryValue[];
|
|
175
|
+
/** The sorting values to use when sorting this response compared to the others. */
|
|
176
|
+
sortValues: QueryValue[];
|
|
177
|
+
/** The actual data values for each of the columns, as a column name -> value mapping */
|
|
178
|
+
values: {
|
|
179
|
+
[key: string]: QueryValue;
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
export interface RowResponse_ValuesEntry {
|
|
183
|
+
key: string;
|
|
184
|
+
value: QueryValue | undefined;
|
|
185
|
+
}
|
|
186
|
+
/** Describes the combination of an Aggregate Identifier and first expected Sequence number when opening an Aggregate-specific Event Stream */
|
|
187
|
+
export interface ReadHighestSequenceNrRequest {
|
|
188
|
+
/** The Identifier of the Aggregate for which to load events */
|
|
189
|
+
aggregateId: string;
|
|
190
|
+
/** The Sequence Number of the first event expected */
|
|
191
|
+
fromSequenceNr: bigint;
|
|
192
|
+
}
|
|
193
|
+
/** The highest Sequence Number found for the provided request */
|
|
194
|
+
export interface ReadHighestSequenceNrResponse {
|
|
195
|
+
/** The sequence number of the latest event */
|
|
196
|
+
toSequenceNr: bigint;
|
|
197
|
+
}
|
|
198
|
+
/** A confirmation to a request from the client */
|
|
199
|
+
export interface Confirmation {
|
|
200
|
+
/** True when successful, otherwise false */
|
|
201
|
+
success: boolean;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* A confirmation to a request from the client, including an optional consistency marker to track the position of this confirmation in the Event Stream.
|
|
205
|
+
* The consistency_marker is only set for AppendEvent requests towards a DCB context.
|
|
206
|
+
*/
|
|
207
|
+
export interface ConfirmationWithConsistencyMarker {
|
|
208
|
+
/** True when successful, otherwise false */
|
|
209
|
+
success: boolean;
|
|
210
|
+
/** The consistency marker token */
|
|
211
|
+
consistencyMarker: ConsistencyMarker | undefined;
|
|
212
|
+
}
|
|
213
|
+
/** A marker to track the position of a Confirmation in the Event Stream, used for consistency tracking in DCB contexts */
|
|
214
|
+
export interface ConsistencyMarker {
|
|
215
|
+
/** The token representing the position of this marker in the Stream */
|
|
216
|
+
token: bigint;
|
|
217
|
+
}
|
|
218
|
+
/** Request describing the desire to read events for a specific Aggregate */
|
|
219
|
+
export interface GetAggregateEventsRequest {
|
|
220
|
+
/** The identifier of the aggregate to read events for */
|
|
221
|
+
aggregateId: string;
|
|
222
|
+
/** The sequence number of the first event to receive */
|
|
223
|
+
initialSequence: bigint;
|
|
224
|
+
/** Whether a snapshot may be returned as first element in the stream */
|
|
225
|
+
allowSnapshots: boolean;
|
|
226
|
+
/** The maximum sequence number (inclusive) of the events to retrieve, 0 means up to last event */
|
|
227
|
+
maxSequence: bigint;
|
|
228
|
+
/** Hint for a minimum token to search events from */
|
|
229
|
+
minToken: bigint;
|
|
230
|
+
}
|
|
231
|
+
/** Request message to retrieve Snapshot Events for a specific Aggregate instance */
|
|
232
|
+
export interface GetAggregateSnapshotsRequest {
|
|
233
|
+
/** The identifier to fetch the snapshots for */
|
|
234
|
+
aggregateId: string;
|
|
235
|
+
/** The minimal sequence number of the snapshots to retrieve */
|
|
236
|
+
initialSequence: bigint;
|
|
237
|
+
/** The maximum sequence number of the snapshots to retrieve */
|
|
238
|
+
maxSequence: bigint;
|
|
239
|
+
/** The maximum number of results to stream */
|
|
240
|
+
maxResults: number;
|
|
241
|
+
}
|
|
242
|
+
/** Request message to open an Event Stream from the Event Store. */
|
|
243
|
+
export interface GetEventsRequest {
|
|
244
|
+
/** The token to start streaming from */
|
|
245
|
+
trackingToken: bigint;
|
|
246
|
+
/** The number of messages the server may send before it needs to wait for more permits */
|
|
247
|
+
numberOfPermits: bigint;
|
|
248
|
+
/** The unique identifier of this client instance. Used for monitoring. */
|
|
249
|
+
clientId: string;
|
|
250
|
+
/** The component name of this client instance. Used for monitoring. */
|
|
251
|
+
componentName: string;
|
|
252
|
+
/** The name of the processor requesting this stream. Used for monitoring. */
|
|
253
|
+
processor: string;
|
|
254
|
+
/**
|
|
255
|
+
* An enumeration of payload types that need to be blacklisted. The Server will stop sending messages of these
|
|
256
|
+
* types in order to reduce I/O. Note that the Server may occasionally send a blacklisted message to prevent
|
|
257
|
+
* time-outs and stale tokens on clients.
|
|
258
|
+
*/
|
|
259
|
+
blacklist: PayloadDescription[];
|
|
260
|
+
/**
|
|
261
|
+
* Indicates whether to force reading events from the leader node of an Axon Server. Forcing reads from leader
|
|
262
|
+
* reduces the staleness of the data read, but also puts extra burden on the leader, reducing overall scalability.
|
|
263
|
+
* <p>
|
|
264
|
+
* This property has no effect on connections to AxonServer SE.
|
|
265
|
+
* </p>
|
|
266
|
+
*/
|
|
267
|
+
forceReadFromLeader: boolean;
|
|
268
|
+
}
|
|
269
|
+
/** Message containing the information of an Event */
|
|
270
|
+
export interface Event {
|
|
271
|
+
/** The unique identifier of this event */
|
|
272
|
+
messageIdentifier: string;
|
|
273
|
+
/** The identifier of the Aggregate instance that published this event, if any */
|
|
274
|
+
aggregateIdentifier: string;
|
|
275
|
+
/** The sequence number of the Event in the Aggregate instance that published it, if any */
|
|
276
|
+
aggregateSequenceNumber: bigint;
|
|
277
|
+
/** The Type of the Aggregate instance that published this Event, if any */
|
|
278
|
+
aggregateType: string;
|
|
279
|
+
/** The timestamp of the Event */
|
|
280
|
+
timestamp: bigint;
|
|
281
|
+
/** The Payload of the Event */
|
|
282
|
+
payload: SerializedObject | undefined;
|
|
283
|
+
/** The Meta Data of the Event */
|
|
284
|
+
metaData: {
|
|
285
|
+
[key: string]: MetaDataValue;
|
|
286
|
+
};
|
|
287
|
+
/** Flag indicating whether the Event is a snapshot Event */
|
|
288
|
+
snapshot: boolean;
|
|
289
|
+
}
|
|
290
|
+
export interface Event_MetaDataEntry {
|
|
291
|
+
key: string;
|
|
292
|
+
value: MetaDataValue | undefined;
|
|
293
|
+
}
|
|
294
|
+
/** Value used in Query Responses to represent a value in its original type */
|
|
295
|
+
export interface QueryValue {
|
|
296
|
+
/** The text value */
|
|
297
|
+
textValue?: string | undefined;
|
|
298
|
+
/** The (64 bits) integer value */
|
|
299
|
+
numberValue?: bigint | undefined;
|
|
300
|
+
/** The boolean value */
|
|
301
|
+
booleanValue?: boolean | undefined;
|
|
302
|
+
/** The (64 bits) floating point value */
|
|
303
|
+
doubleValue?: number | undefined;
|
|
304
|
+
}
|
|
305
|
+
/** Description of a Payload Type */
|
|
306
|
+
export interface PayloadDescription {
|
|
307
|
+
/** The type identifier of the Payload */
|
|
308
|
+
type: string;
|
|
309
|
+
/** The revision of the Payload Type */
|
|
310
|
+
revision: string;
|
|
311
|
+
}
|
|
312
|
+
export declare const CompactionRequest: MessageFns<CompactionRequest>;
|
|
313
|
+
export declare const Transformation: MessageFns<Transformation>;
|
|
314
|
+
export declare const StartTransformationRequest: MessageFns<StartTransformationRequest>;
|
|
315
|
+
export declare const ApplyTransformationRequest: MessageFns<ApplyTransformationRequest>;
|
|
316
|
+
export declare const TransformRequest: MessageFns<TransformRequest>;
|
|
317
|
+
export declare const TransformedEvent: MessageFns<TransformedEvent>;
|
|
318
|
+
export declare const DeletedEvent: MessageFns<DeletedEvent>;
|
|
319
|
+
export declare const TransformationId: MessageFns<TransformationId>;
|
|
320
|
+
export declare const TransformRequestAck: MessageFns<TransformRequestAck>;
|
|
321
|
+
export declare const ScheduleEventRequest: MessageFns<ScheduleEventRequest>;
|
|
322
|
+
export declare const RescheduleEventRequest: MessageFns<RescheduleEventRequest>;
|
|
323
|
+
export declare const CancelScheduledEventRequest: MessageFns<CancelScheduledEventRequest>;
|
|
324
|
+
export declare const ScheduleToken: MessageFns<ScheduleToken>;
|
|
325
|
+
export declare const GetFirstTokenRequest: MessageFns<GetFirstTokenRequest>;
|
|
326
|
+
export declare const GetLastTokenRequest: MessageFns<GetLastTokenRequest>;
|
|
327
|
+
export declare const GetTokenAtRequest: MessageFns<GetTokenAtRequest>;
|
|
328
|
+
export declare const TrackingToken: MessageFns<TrackingToken>;
|
|
329
|
+
export declare const EventWithToken: MessageFns<EventWithToken>;
|
|
330
|
+
export declare const QueryEventsRequest: MessageFns<QueryEventsRequest>;
|
|
331
|
+
export declare const QueryEventsResponse: MessageFns<QueryEventsResponse>;
|
|
332
|
+
export declare const ColumnsResponse: MessageFns<ColumnsResponse>;
|
|
333
|
+
export declare const RowResponse: MessageFns<RowResponse>;
|
|
334
|
+
export declare const RowResponse_ValuesEntry: MessageFns<RowResponse_ValuesEntry>;
|
|
335
|
+
export declare const ReadHighestSequenceNrRequest: MessageFns<ReadHighestSequenceNrRequest>;
|
|
336
|
+
export declare const ReadHighestSequenceNrResponse: MessageFns<ReadHighestSequenceNrResponse>;
|
|
337
|
+
export declare const Confirmation: MessageFns<Confirmation>;
|
|
338
|
+
export declare const ConfirmationWithConsistencyMarker: MessageFns<ConfirmationWithConsistencyMarker>;
|
|
339
|
+
export declare const ConsistencyMarker: MessageFns<ConsistencyMarker>;
|
|
340
|
+
export declare const GetAggregateEventsRequest: MessageFns<GetAggregateEventsRequest>;
|
|
341
|
+
export declare const GetAggregateSnapshotsRequest: MessageFns<GetAggregateSnapshotsRequest>;
|
|
342
|
+
export declare const GetEventsRequest: MessageFns<GetEventsRequest>;
|
|
343
|
+
export declare const Event: MessageFns<Event>;
|
|
344
|
+
export declare const Event_MetaDataEntry: MessageFns<Event_MetaDataEntry>;
|
|
345
|
+
export declare const QueryValue: MessageFns<QueryValue>;
|
|
346
|
+
export declare const PayloadDescription: MessageFns<PayloadDescription>;
|
|
347
|
+
/** Service providing operations against the EventStore functionality of Axon Server */
|
|
348
|
+
export type EventStoreDefinition = typeof EventStoreDefinition;
|
|
349
|
+
export declare const EventStoreDefinition: {
|
|
350
|
+
readonly name: "EventStore";
|
|
351
|
+
readonly fullName: "io.axoniq.axonserver.grpc.event.EventStore";
|
|
352
|
+
readonly methods: {
|
|
353
|
+
/** Accepts a stream of Events returning a Confirmation when completed. */
|
|
354
|
+
readonly appendEvent: {
|
|
355
|
+
readonly name: "AppendEvent";
|
|
356
|
+
readonly requestType: typeof Event;
|
|
357
|
+
readonly requestStream: true;
|
|
358
|
+
readonly responseType: typeof ConfirmationWithConsistencyMarker;
|
|
359
|
+
readonly responseStream: false;
|
|
360
|
+
readonly options: {};
|
|
361
|
+
};
|
|
362
|
+
/** Accepts a Snapshot event returning a Confirmation when completed. */
|
|
363
|
+
readonly appendSnapshot: {
|
|
364
|
+
readonly name: "AppendSnapshot";
|
|
365
|
+
readonly requestType: typeof Event;
|
|
366
|
+
readonly requestStream: false;
|
|
367
|
+
readonly responseType: typeof Confirmation;
|
|
368
|
+
readonly responseStream: false;
|
|
369
|
+
readonly options: {};
|
|
370
|
+
};
|
|
371
|
+
/** Retrieves the Events for a given aggregate. Results are streamed rather than returned at once. */
|
|
372
|
+
readonly listAggregateEvents: {
|
|
373
|
+
readonly name: "ListAggregateEvents";
|
|
374
|
+
readonly requestType: typeof GetAggregateEventsRequest;
|
|
375
|
+
readonly requestStream: false;
|
|
376
|
+
readonly responseType: typeof Event;
|
|
377
|
+
readonly responseStream: true;
|
|
378
|
+
readonly options: {};
|
|
379
|
+
};
|
|
380
|
+
/** Retrieves the Snapshots for a given aggregate. Results are streamed rather than returned at once. */
|
|
381
|
+
readonly listAggregateSnapshots: {
|
|
382
|
+
readonly name: "ListAggregateSnapshots";
|
|
383
|
+
readonly requestType: typeof GetAggregateSnapshotsRequest;
|
|
384
|
+
readonly requestStream: false;
|
|
385
|
+
readonly responseType: typeof Event;
|
|
386
|
+
readonly responseStream: true;
|
|
387
|
+
readonly options: {};
|
|
388
|
+
};
|
|
389
|
+
/**
|
|
390
|
+
* Retrieves the Events from a given tracking token. However, if several GetEventsRequests are sent in the stream
|
|
391
|
+
* only first one will create the tracker, others are used for increasing number of permits or blacklisting. Results
|
|
392
|
+
* are streamed rather than returned at once.
|
|
393
|
+
*/
|
|
394
|
+
readonly listEvents: {
|
|
395
|
+
readonly name: "ListEvents";
|
|
396
|
+
readonly requestType: typeof GetEventsRequest;
|
|
397
|
+
readonly requestStream: true;
|
|
398
|
+
readonly responseType: typeof EventWithToken;
|
|
399
|
+
readonly responseStream: true;
|
|
400
|
+
readonly options: {};
|
|
401
|
+
};
|
|
402
|
+
/** Gets the highest sequence number for a specific aggregate. */
|
|
403
|
+
readonly readHighestSequenceNr: {
|
|
404
|
+
readonly name: "ReadHighestSequenceNr";
|
|
405
|
+
readonly requestType: typeof ReadHighestSequenceNrRequest;
|
|
406
|
+
readonly requestStream: false;
|
|
407
|
+
readonly responseType: typeof ReadHighestSequenceNrResponse;
|
|
408
|
+
readonly responseStream: false;
|
|
409
|
+
readonly options: {};
|
|
410
|
+
};
|
|
411
|
+
/**
|
|
412
|
+
* Performs a query on the event store, returns a stream of results. Input is a stream to allow flow control from the
|
|
413
|
+
* client
|
|
414
|
+
*/
|
|
415
|
+
readonly queryEvents: {
|
|
416
|
+
readonly name: "QueryEvents";
|
|
417
|
+
readonly requestType: typeof QueryEventsRequest;
|
|
418
|
+
readonly requestStream: true;
|
|
419
|
+
readonly responseType: typeof QueryEventsResponse;
|
|
420
|
+
readonly responseStream: true;
|
|
421
|
+
readonly options: {};
|
|
422
|
+
};
|
|
423
|
+
/** Retrieves the first token available in event store (typically 0). Returns 0 when no events in store. */
|
|
424
|
+
readonly getFirstToken: {
|
|
425
|
+
readonly name: "GetFirstToken";
|
|
426
|
+
readonly requestType: typeof GetFirstTokenRequest;
|
|
427
|
+
readonly requestStream: false;
|
|
428
|
+
readonly responseType: typeof TrackingToken;
|
|
429
|
+
readonly responseStream: false;
|
|
430
|
+
readonly options: {};
|
|
431
|
+
};
|
|
432
|
+
/** Retrieves the last committed token in event store. Returns -1 when no events in store. */
|
|
433
|
+
readonly getLastToken: {
|
|
434
|
+
readonly name: "GetLastToken";
|
|
435
|
+
readonly requestType: typeof GetLastTokenRequest;
|
|
436
|
+
readonly requestStream: false;
|
|
437
|
+
readonly responseType: typeof TrackingToken;
|
|
438
|
+
readonly responseStream: false;
|
|
439
|
+
readonly options: {};
|
|
440
|
+
};
|
|
441
|
+
/** Retrieves the token of the first token of an event from specified time in event store. Returns -1 when no events in store. */
|
|
442
|
+
readonly getTokenAt: {
|
|
443
|
+
readonly name: "GetTokenAt";
|
|
444
|
+
readonly requestType: typeof GetTokenAtRequest;
|
|
445
|
+
readonly requestStream: false;
|
|
446
|
+
readonly responseType: typeof TrackingToken;
|
|
447
|
+
readonly responseStream: false;
|
|
448
|
+
readonly options: {};
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
export interface EventStoreServiceImplementation<CallContextExt = {}> {
|
|
453
|
+
/** Accepts a stream of Events returning a Confirmation when completed. */
|
|
454
|
+
appendEvent(request: AsyncIterable<Event>, context: CallContext & CallContextExt): Promise<DeepPartial<ConfirmationWithConsistencyMarker>>;
|
|
455
|
+
/** Accepts a Snapshot event returning a Confirmation when completed. */
|
|
456
|
+
appendSnapshot(request: Event, context: CallContext & CallContextExt): Promise<DeepPartial<Confirmation>>;
|
|
457
|
+
/** Retrieves the Events for a given aggregate. Results are streamed rather than returned at once. */
|
|
458
|
+
listAggregateEvents(request: GetAggregateEventsRequest, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<Event>>;
|
|
459
|
+
/** Retrieves the Snapshots for a given aggregate. Results are streamed rather than returned at once. */
|
|
460
|
+
listAggregateSnapshots(request: GetAggregateSnapshotsRequest, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<Event>>;
|
|
461
|
+
/**
|
|
462
|
+
* Retrieves the Events from a given tracking token. However, if several GetEventsRequests are sent in the stream
|
|
463
|
+
* only first one will create the tracker, others are used for increasing number of permits or blacklisting. Results
|
|
464
|
+
* are streamed rather than returned at once.
|
|
465
|
+
*/
|
|
466
|
+
listEvents(request: AsyncIterable<GetEventsRequest>, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<EventWithToken>>;
|
|
467
|
+
/** Gets the highest sequence number for a specific aggregate. */
|
|
468
|
+
readHighestSequenceNr(request: ReadHighestSequenceNrRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ReadHighestSequenceNrResponse>>;
|
|
469
|
+
/**
|
|
470
|
+
* Performs a query on the event store, returns a stream of results. Input is a stream to allow flow control from the
|
|
471
|
+
* client
|
|
472
|
+
*/
|
|
473
|
+
queryEvents(request: AsyncIterable<QueryEventsRequest>, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<QueryEventsResponse>>;
|
|
474
|
+
/** Retrieves the first token available in event store (typically 0). Returns 0 when no events in store. */
|
|
475
|
+
getFirstToken(request: GetFirstTokenRequest, context: CallContext & CallContextExt): Promise<DeepPartial<TrackingToken>>;
|
|
476
|
+
/** Retrieves the last committed token in event store. Returns -1 when no events in store. */
|
|
477
|
+
getLastToken(request: GetLastTokenRequest, context: CallContext & CallContextExt): Promise<DeepPartial<TrackingToken>>;
|
|
478
|
+
/** Retrieves the token of the first token of an event from specified time in event store. Returns -1 when no events in store. */
|
|
479
|
+
getTokenAt(request: GetTokenAtRequest, context: CallContext & CallContextExt): Promise<DeepPartial<TrackingToken>>;
|
|
480
|
+
}
|
|
481
|
+
export interface EventStoreClient<CallOptionsExt = {}> {
|
|
482
|
+
/** Accepts a stream of Events returning a Confirmation when completed. */
|
|
483
|
+
appendEvent(request: AsyncIterable<DeepPartial<Event>>, options?: CallOptions & CallOptionsExt): Promise<ConfirmationWithConsistencyMarker>;
|
|
484
|
+
/** Accepts a Snapshot event returning a Confirmation when completed. */
|
|
485
|
+
appendSnapshot(request: DeepPartial<Event>, options?: CallOptions & CallOptionsExt): Promise<Confirmation>;
|
|
486
|
+
/** Retrieves the Events for a given aggregate. Results are streamed rather than returned at once. */
|
|
487
|
+
listAggregateEvents(request: DeepPartial<GetAggregateEventsRequest>, options?: CallOptions & CallOptionsExt): AsyncIterable<Event>;
|
|
488
|
+
/** Retrieves the Snapshots for a given aggregate. Results are streamed rather than returned at once. */
|
|
489
|
+
listAggregateSnapshots(request: DeepPartial<GetAggregateSnapshotsRequest>, options?: CallOptions & CallOptionsExt): AsyncIterable<Event>;
|
|
490
|
+
/**
|
|
491
|
+
* Retrieves the Events from a given tracking token. However, if several GetEventsRequests are sent in the stream
|
|
492
|
+
* only first one will create the tracker, others are used for increasing number of permits or blacklisting. Results
|
|
493
|
+
* are streamed rather than returned at once.
|
|
494
|
+
*/
|
|
495
|
+
listEvents(request: AsyncIterable<DeepPartial<GetEventsRequest>>, options?: CallOptions & CallOptionsExt): AsyncIterable<EventWithToken>;
|
|
496
|
+
/** Gets the highest sequence number for a specific aggregate. */
|
|
497
|
+
readHighestSequenceNr(request: DeepPartial<ReadHighestSequenceNrRequest>, options?: CallOptions & CallOptionsExt): Promise<ReadHighestSequenceNrResponse>;
|
|
498
|
+
/**
|
|
499
|
+
* Performs a query on the event store, returns a stream of results. Input is a stream to allow flow control from the
|
|
500
|
+
* client
|
|
501
|
+
*/
|
|
502
|
+
queryEvents(request: AsyncIterable<DeepPartial<QueryEventsRequest>>, options?: CallOptions & CallOptionsExt): AsyncIterable<QueryEventsResponse>;
|
|
503
|
+
/** Retrieves the first token available in event store (typically 0). Returns 0 when no events in store. */
|
|
504
|
+
getFirstToken(request: DeepPartial<GetFirstTokenRequest>, options?: CallOptions & CallOptionsExt): Promise<TrackingToken>;
|
|
505
|
+
/** Retrieves the last committed token in event store. Returns -1 when no events in store. */
|
|
506
|
+
getLastToken(request: DeepPartial<GetLastTokenRequest>, options?: CallOptions & CallOptionsExt): Promise<TrackingToken>;
|
|
507
|
+
/** Retrieves the token of the first token of an event from specified time in event store. Returns -1 when no events in store. */
|
|
508
|
+
getTokenAt(request: DeepPartial<GetTokenAtRequest>, options?: CallOptions & CallOptionsExt): Promise<TrackingToken>;
|
|
509
|
+
}
|
|
510
|
+
/** Service to use AxonServer as a provider of an EventScheduler */
|
|
511
|
+
export type EventSchedulerDefinition = typeof EventSchedulerDefinition;
|
|
512
|
+
export declare const EventSchedulerDefinition: {
|
|
513
|
+
readonly name: "EventScheduler";
|
|
514
|
+
readonly fullName: "io.axoniq.axonserver.grpc.event.EventScheduler";
|
|
515
|
+
readonly methods: {
|
|
516
|
+
/** Schedule the given event for publication at the given time}. The returned ScheduleToken can be used to cancel the planned publication. */
|
|
517
|
+
readonly scheduleEvent: {
|
|
518
|
+
readonly name: "ScheduleEvent";
|
|
519
|
+
readonly requestType: typeof ScheduleEventRequest;
|
|
520
|
+
readonly requestStream: false;
|
|
521
|
+
readonly responseType: typeof ScheduleToken;
|
|
522
|
+
readonly responseStream: false;
|
|
523
|
+
readonly options: {};
|
|
524
|
+
};
|
|
525
|
+
/** Cancel a scheduled event and schedule another in its place. */
|
|
526
|
+
readonly rescheduleEvent: {
|
|
527
|
+
readonly name: "RescheduleEvent";
|
|
528
|
+
readonly requestType: typeof RescheduleEventRequest;
|
|
529
|
+
readonly requestStream: false;
|
|
530
|
+
readonly responseType: typeof ScheduleToken;
|
|
531
|
+
readonly responseStream: false;
|
|
532
|
+
readonly options: {};
|
|
533
|
+
};
|
|
534
|
+
/** Cancel the publication of a scheduled event. If the events has already been published, this method does nothing. */
|
|
535
|
+
readonly cancelScheduledEvent: {
|
|
536
|
+
readonly name: "CancelScheduledEvent";
|
|
537
|
+
readonly requestType: typeof CancelScheduledEventRequest;
|
|
538
|
+
readonly requestStream: false;
|
|
539
|
+
readonly responseType: typeof InstructionAck;
|
|
540
|
+
readonly responseStream: false;
|
|
541
|
+
readonly options: {};
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
export interface EventSchedulerServiceImplementation<CallContextExt = {}> {
|
|
546
|
+
/** Schedule the given event for publication at the given time}. The returned ScheduleToken can be used to cancel the planned publication. */
|
|
547
|
+
scheduleEvent(request: ScheduleEventRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ScheduleToken>>;
|
|
548
|
+
/** Cancel a scheduled event and schedule another in its place. */
|
|
549
|
+
rescheduleEvent(request: RescheduleEventRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ScheduleToken>>;
|
|
550
|
+
/** Cancel the publication of a scheduled event. If the events has already been published, this method does nothing. */
|
|
551
|
+
cancelScheduledEvent(request: CancelScheduledEventRequest, context: CallContext & CallContextExt): Promise<DeepPartial<InstructionAck>>;
|
|
552
|
+
}
|
|
553
|
+
export interface EventSchedulerClient<CallOptionsExt = {}> {
|
|
554
|
+
/** Schedule the given event for publication at the given time}. The returned ScheduleToken can be used to cancel the planned publication. */
|
|
555
|
+
scheduleEvent(request: DeepPartial<ScheduleEventRequest>, options?: CallOptions & CallOptionsExt): Promise<ScheduleToken>;
|
|
556
|
+
/** Cancel a scheduled event and schedule another in its place. */
|
|
557
|
+
rescheduleEvent(request: DeepPartial<RescheduleEventRequest>, options?: CallOptions & CallOptionsExt): Promise<ScheduleToken>;
|
|
558
|
+
/** Cancel the publication of a scheduled event. If the events has already been published, this method does nothing. */
|
|
559
|
+
cancelScheduledEvent(request: DeepPartial<CancelScheduledEventRequest>, options?: CallOptions & CallOptionsExt): Promise<InstructionAck>;
|
|
560
|
+
}
|
|
561
|
+
/** Service to transform events in an event store */
|
|
562
|
+
export type EventTransformationServiceDefinition = typeof EventTransformationServiceDefinition;
|
|
563
|
+
export declare const EventTransformationServiceDefinition: {
|
|
564
|
+
readonly name: "EventTransformationService";
|
|
565
|
+
readonly fullName: "io.axoniq.axonserver.grpc.event.EventTransformationService";
|
|
566
|
+
readonly methods: {
|
|
567
|
+
/** Returns the list of all transformations. */
|
|
568
|
+
readonly transformations: {
|
|
569
|
+
readonly name: "Transformations";
|
|
570
|
+
readonly requestType: typeof Empty;
|
|
571
|
+
readonly requestStream: false;
|
|
572
|
+
readonly responseType: typeof Transformation;
|
|
573
|
+
readonly responseStream: true;
|
|
574
|
+
readonly options: {};
|
|
575
|
+
};
|
|
576
|
+
/** Starts a new transformation. */
|
|
577
|
+
readonly startTransformation: {
|
|
578
|
+
readonly name: "StartTransformation";
|
|
579
|
+
readonly requestType: typeof StartTransformationRequest;
|
|
580
|
+
readonly requestStream: false;
|
|
581
|
+
readonly responseType: typeof TransformationId;
|
|
582
|
+
readonly responseStream: false;
|
|
583
|
+
readonly options: {};
|
|
584
|
+
};
|
|
585
|
+
/** Adds requests to transform an event to a transformation. */
|
|
586
|
+
readonly transformEvents: {
|
|
587
|
+
readonly name: "TransformEvents";
|
|
588
|
+
readonly requestType: typeof TransformRequest;
|
|
589
|
+
readonly requestStream: true;
|
|
590
|
+
readonly responseType: typeof TransformRequestAck;
|
|
591
|
+
readonly responseStream: true;
|
|
592
|
+
readonly options: {};
|
|
593
|
+
};
|
|
594
|
+
/** Cancels a transformation before it is applied. */
|
|
595
|
+
readonly cancelTransformation: {
|
|
596
|
+
readonly name: "CancelTransformation";
|
|
597
|
+
readonly requestType: typeof TransformationId;
|
|
598
|
+
readonly requestStream: false;
|
|
599
|
+
readonly responseType: typeof Empty;
|
|
600
|
+
readonly responseStream: true;
|
|
601
|
+
readonly options: {};
|
|
602
|
+
};
|
|
603
|
+
/** Applies the changes from a transformation in the event store. */
|
|
604
|
+
readonly applyTransformation: {
|
|
605
|
+
readonly name: "ApplyTransformation";
|
|
606
|
+
readonly requestType: typeof ApplyTransformationRequest;
|
|
607
|
+
readonly requestStream: false;
|
|
608
|
+
readonly responseType: typeof Empty;
|
|
609
|
+
readonly responseStream: true;
|
|
610
|
+
readonly options: {};
|
|
611
|
+
};
|
|
612
|
+
/** Deletes old versions of events updated by a transformation. */
|
|
613
|
+
readonly compact: {
|
|
614
|
+
readonly name: "Compact";
|
|
615
|
+
readonly requestType: typeof CompactionRequest;
|
|
616
|
+
readonly requestStream: false;
|
|
617
|
+
readonly responseType: typeof Empty;
|
|
618
|
+
readonly responseStream: true;
|
|
619
|
+
readonly options: {};
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
};
|
|
623
|
+
export interface EventTransformationServiceImplementation<CallContextExt = {}> {
|
|
624
|
+
/** Returns the list of all transformations. */
|
|
625
|
+
transformations(request: Empty, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<Transformation>>;
|
|
626
|
+
/** Starts a new transformation. */
|
|
627
|
+
startTransformation(request: StartTransformationRequest, context: CallContext & CallContextExt): Promise<DeepPartial<TransformationId>>;
|
|
628
|
+
/** Adds requests to transform an event to a transformation. */
|
|
629
|
+
transformEvents(request: AsyncIterable<TransformRequest>, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<TransformRequestAck>>;
|
|
630
|
+
/** Cancels a transformation before it is applied. */
|
|
631
|
+
cancelTransformation(request: TransformationId, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<Empty>>;
|
|
632
|
+
/** Applies the changes from a transformation in the event store. */
|
|
633
|
+
applyTransformation(request: ApplyTransformationRequest, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<Empty>>;
|
|
634
|
+
/** Deletes old versions of events updated by a transformation. */
|
|
635
|
+
compact(request: CompactionRequest, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<Empty>>;
|
|
636
|
+
}
|
|
637
|
+
export interface EventTransformationServiceClient<CallOptionsExt = {}> {
|
|
638
|
+
/** Returns the list of all transformations. */
|
|
639
|
+
transformations(request: DeepPartial<Empty>, options?: CallOptions & CallOptionsExt): AsyncIterable<Transformation>;
|
|
640
|
+
/** Starts a new transformation. */
|
|
641
|
+
startTransformation(request: DeepPartial<StartTransformationRequest>, options?: CallOptions & CallOptionsExt): Promise<TransformationId>;
|
|
642
|
+
/** Adds requests to transform an event to a transformation. */
|
|
643
|
+
transformEvents(request: AsyncIterable<DeepPartial<TransformRequest>>, options?: CallOptions & CallOptionsExt): AsyncIterable<TransformRequestAck>;
|
|
644
|
+
/** Cancels a transformation before it is applied. */
|
|
645
|
+
cancelTransformation(request: DeepPartial<TransformationId>, options?: CallOptions & CallOptionsExt): AsyncIterable<Empty>;
|
|
646
|
+
/** Applies the changes from a transformation in the event store. */
|
|
647
|
+
applyTransformation(request: DeepPartial<ApplyTransformationRequest>, options?: CallOptions & CallOptionsExt): AsyncIterable<Empty>;
|
|
648
|
+
/** Deletes old versions of events updated by a transformation. */
|
|
649
|
+
compact(request: DeepPartial<CompactionRequest>, options?: CallOptions & CallOptionsExt): AsyncIterable<Empty>;
|
|
650
|
+
}
|
|
651
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
652
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
653
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
654
|
+
} : Partial<T>;
|
|
655
|
+
export type ServerStreamingMethodResult<Response> = {
|
|
656
|
+
[Symbol.asyncIterator](): AsyncIterator<Response, void>;
|
|
657
|
+
};
|
|
658
|
+
export interface MessageFns<T> {
|
|
659
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
660
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
661
|
+
fromJSON(object: any): T;
|
|
662
|
+
toJSON(message: T): unknown;
|
|
663
|
+
create(base?: DeepPartial<T>): T;
|
|
664
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
665
|
+
}
|
|
666
|
+
export {};
|
|
667
|
+
//# sourceMappingURL=event.d.ts.map
|