@kronos-ts/axon-server 0.3.2 → 0.5.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 +3 -15
- package/dist/axon-server-event-store.d.ts.map +1 -1
- package/dist/axon-server-event-store.js +85 -44
- package/dist/axon-server-event-store.js.map +1 -1
- package/dist/axon-server-snapshotting-event-store.d.ts +30 -0
- package/dist/axon-server-snapshotting-event-store.d.ts.map +1 -0
- package/dist/axon-server-snapshotting-event-store.js +153 -0
- package/dist/axon-server-snapshotting-event-store.js.map +1 -0
- package/dist/axon-server.d.ts +92 -208
- package/dist/axon-server.d.ts.map +1 -1
- package/dist/axon-server.js +221 -323
- package/dist/axon-server.js.map +1 -1
- package/dist/connection-manager.d.ts +2 -2
- package/dist/connection-manager.d.ts.map +1 -1
- package/dist/connection.d.ts +134 -4
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +135 -10
- package/dist/connection.js.map +1 -1
- package/dist/context-view.d.ts +30 -0
- package/dist/context-view.d.ts.map +1 -0
- package/dist/context-view.js +19 -0
- package/dist/context-view.js.map +1 -0
- package/dist/control-plane.d.ts +18 -17
- package/dist/control-plane.d.ts.map +1 -1
- package/dist/control-plane.js +8 -6
- package/dist/control-plane.js.map +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js.map +1 -1
- package/dist/event-processor-info.d.ts +4 -4
- package/dist/event-processor-info.d.ts.map +1 -1
- package/dist/flow-controlled-sender.d.ts +2 -2
- package/dist/flow-controlled-sender.d.ts.map +1 -1
- package/dist/flow-controlled-sender.js.map +1 -1
- package/dist/generated/command.d.ts +20 -20
- package/dist/generated/command.d.ts.map +1 -1
- package/dist/generated/command.js.map +1 -1
- package/dist/generated/common.d.ts +20 -20
- package/dist/generated/common.d.ts.map +1 -1
- package/dist/generated/common.js.map +1 -1
- package/dist/generated/control.d.ts +36 -40
- package/dist/generated/control.d.ts.map +1 -1
- package/dist/generated/control.js.map +1 -1
- package/dist/generated/dcb.d.ts +88 -94
- package/dist/generated/dcb.d.ts.map +1 -1
- package/dist/generated/dcb.js.map +1 -1
- package/dist/generated/event.d.ts +81 -84
- package/dist/generated/event.d.ts.map +1 -1
- package/dist/generated/event.js.map +1 -1
- package/dist/generated/google/protobuf/empty.d.ts +3 -4
- package/dist/generated/google/protobuf/empty.d.ts.map +1 -1
- package/dist/generated/google/protobuf/empty.js.map +1 -1
- package/dist/generated/query.d.ts +40 -40
- package/dist/generated/query.d.ts.map +1 -1
- package/dist/generated/query.js.map +1 -1
- package/dist/index.d.ts +4 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/message-size.d.ts +2 -2
- package/dist/message-size.d.ts.map +1 -1
- package/dist/metadata-conversion.d.ts +1 -1
- package/dist/metadata-conversion.d.ts.map +1 -1
- package/dist/outbound-stream.d.ts +2 -2
- package/dist/outbound-stream.d.ts.map +1 -1
- package/dist/platform-service.d.ts +4 -4
- package/dist/platform-service.d.ts.map +1 -1
- package/dist/resilience.d.ts +62 -0
- package/dist/resilience.d.ts.map +1 -0
- package/dist/resilience.js +103 -0
- package/dist/resilience.js.map +1 -0
- package/dist/shutdown-latch.d.ts +4 -4
- package/dist/shutdown-latch.d.ts.map +1 -1
- package/dist/shutdown-latch.js.map +1 -1
- package/package.json +5 -9
- package/src/axon-server-event-store.ts +97 -57
- package/src/axon-server-snapshotting-event-store.ts +191 -0
- package/src/axon-server.ts +365 -524
- package/src/connection-manager.ts +1 -1
- package/src/connection.ts +274 -20
- package/src/context-view.ts +46 -0
- package/src/control-plane.ts +19 -19
- package/src/event-processor-info.ts +2 -2
- package/src/flow-controlled-sender.ts +1 -1
- package/src/generated/command.ts +10 -10
- package/src/generated/common.ts +10 -10
- package/src/generated/control.ts +20 -20
- package/src/generated/dcb.ts +47 -47
- package/src/generated/event.ts +42 -42
- package/src/generated/google/protobuf/empty.ts +2 -2
- package/src/generated/query.ts +20 -20
- package/src/index.ts +12 -18
- package/src/message-size.ts +1 -1
- package/src/metadata-conversion.ts +1 -1
- package/src/outbound-stream.ts +1 -1
- package/src/platform-service.ts +2 -2
- package/src/resilience.ts +149 -0
- package/src/shutdown-latch.ts +2 -2
- package/dist/axon-server-snapshot-store.d.ts +0 -12
- package/dist/axon-server-snapshot-store.d.ts.map +0 -1
- package/dist/axon-server-snapshot-store.js +0 -88
- package/dist/axon-server-snapshot-store.js.map +0 -1
- package/src/axon-server-snapshot-store.ts +0 -118
package/src/generated/common.ts
CHANGED
|
@@ -131,7 +131,7 @@ export function taskStatusToJSON(object: TaskStatus): string {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
/** Describes a serialized object */
|
|
134
|
-
export
|
|
134
|
+
export type SerializedObject = {
|
|
135
135
|
/** The type identifier of the serialized object. */
|
|
136
136
|
type: string;
|
|
137
137
|
/** The revision of the serialized form of the given type. */
|
|
@@ -141,7 +141,7 @@ export interface SerializedObject {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
/** The value of a MetaData entry. */
|
|
144
|
-
export
|
|
144
|
+
export type MetaDataValue = {
|
|
145
145
|
/** The text value of the Meta Data entry. */
|
|
146
146
|
textValue?:
|
|
147
147
|
| string
|
|
@@ -163,7 +163,7 @@ export interface MetaDataValue {
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
/** An instruction for routing components when routing or processing a message. */
|
|
166
|
-
export
|
|
166
|
+
export type ProcessingInstruction = {
|
|
167
167
|
/** The type of processing message. */
|
|
168
168
|
key: ProcessingKey;
|
|
169
169
|
/** The value associated with the processing key. */
|
|
@@ -171,7 +171,7 @@ export interface ProcessingInstruction {
|
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
/** Message containing details of an error */
|
|
174
|
-
export
|
|
174
|
+
export type ErrorMessage = {
|
|
175
175
|
/** A human readable message explaining the error */
|
|
176
176
|
message: string;
|
|
177
177
|
/** A description of the location (client component, server) where the error occurred */
|
|
@@ -183,7 +183,7 @@ export interface ErrorMessage {
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
/** Message used for Flow Control instruction, providing the counterpart with additional permits for sending messages */
|
|
186
|
-
export
|
|
186
|
+
export type FlowControl = {
|
|
187
187
|
/** The ClientID of the component providing additional permits */
|
|
188
188
|
clientId: string;
|
|
189
189
|
/** The number of permits to provide */
|
|
@@ -191,7 +191,7 @@ export interface FlowControl {
|
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
/** Message describing instruction acknowledgement */
|
|
194
|
-
export
|
|
194
|
+
export type InstructionAck = {
|
|
195
195
|
/** The identifier of the instruction */
|
|
196
196
|
instructionId: string;
|
|
197
197
|
/** Indicator whether the instruction was acknowledged successfully */
|
|
@@ -201,7 +201,7 @@ export interface InstructionAck {
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
/** Message describing the result of the execution of an instruction */
|
|
204
|
-
export
|
|
204
|
+
export type InstructionResult = {
|
|
205
205
|
/** The identifier of the instruction */
|
|
206
206
|
instructionId: string;
|
|
207
207
|
/** Indicator whether the instruction was processed successfully */
|
|
@@ -210,11 +210,11 @@ export interface InstructionResult {
|
|
|
210
210
|
error: ErrorMessage | undefined;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
export
|
|
213
|
+
export type Component = {
|
|
214
214
|
component: string;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
export
|
|
217
|
+
export type Principal = {
|
|
218
218
|
user: string;
|
|
219
219
|
}
|
|
220
220
|
|
|
@@ -1087,7 +1087,7 @@ function isSet(value: any): boolean {
|
|
|
1087
1087
|
return value !== null && value !== undefined;
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
|
-
export
|
|
1090
|
+
export type MessageFns<T> = {
|
|
1091
1091
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1092
1092
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1093
1093
|
fromJSON(object: any): T;
|
package/src/generated/control.ts
CHANGED
|
@@ -68,7 +68,7 @@ export function updateTypeToJSON(object: UpdateType): string {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
/** An instruction from Application Node to the AxonServer platform */
|
|
71
|
-
export
|
|
71
|
+
export type PlatformInboundInstruction = {
|
|
72
72
|
/**
|
|
73
73
|
* Information about the client being connected.
|
|
74
74
|
* This information is used by AxonServer to monitor the topology of connected applications.
|
|
@@ -111,15 +111,15 @@ export interface PlatformInboundInstruction {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
/** Message to subscribe to topology changes within the control channel's context */
|
|
114
|
-
export
|
|
114
|
+
export type SubscribeTopologyChanges = {
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
/** Message to unsubscribe from topology changes within the control channel's context */
|
|
118
|
-
export
|
|
118
|
+
export type UnsubscribeTopologyChanges = {
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
/** An instruction or information from the AxonServer Platform to the Application Node */
|
|
122
|
-
export
|
|
122
|
+
export type PlatformOutboundInstruction = {
|
|
123
123
|
/** Information provided by AxonServer which provides information about the AxonServer node the application is connected with */
|
|
124
124
|
nodeNotification?:
|
|
125
125
|
| NodeInfo
|
|
@@ -176,11 +176,11 @@ export interface PlatformOutboundInstruction {
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
/** Message send when AxonServer requests the client to re-establish its connection with the Platform */
|
|
179
|
-
export
|
|
179
|
+
export type RequestReconnect = {
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
/** Message containing connection information of the node to Connect with */
|
|
183
|
-
export
|
|
183
|
+
export type PlatformInfo = {
|
|
184
184
|
/** The connection details of the node the client should connect with */
|
|
185
185
|
primary:
|
|
186
186
|
| NodeInfo
|
|
@@ -193,7 +193,7 @@ export interface PlatformInfo {
|
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
/** Message containing connection information for an AxonServer Node */
|
|
196
|
-
export
|
|
196
|
+
export type NodeInfo = {
|
|
197
197
|
/** The host name to use when connecting to this node */
|
|
198
198
|
hostName: string;
|
|
199
199
|
/** The port number for gRPC connections */
|
|
@@ -207,7 +207,7 @@ export interface NodeInfo {
|
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
/** Message containing details about the Client Application */
|
|
210
|
-
export
|
|
210
|
+
export type ClientIdentification = {
|
|
211
211
|
/** A unique identifier for this client instance. Is used to distinguish different instances of the same component */
|
|
212
212
|
clientId: string;
|
|
213
213
|
/** The name of the component. Several instances of the same component should share this name */
|
|
@@ -218,13 +218,13 @@ export interface ClientIdentification {
|
|
|
218
218
|
version: string;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
export
|
|
221
|
+
export type ClientIdentification_TagsEntry = {
|
|
222
222
|
key: string;
|
|
223
223
|
value: string;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
/** Message containing information about the status of an Event Processor */
|
|
227
|
-
export
|
|
227
|
+
export type EventProcessorInfo = {
|
|
228
228
|
/** The logical name of this processor. */
|
|
229
229
|
processorName: string;
|
|
230
230
|
/** The mode in which this processor is reading Events, for example: 'Tracking' or 'Subscribing' */
|
|
@@ -257,7 +257,7 @@ export interface EventProcessorInfo {
|
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
/** Message containing information about the status of a Segment of a Streaming Event Processor */
|
|
260
|
-
export
|
|
260
|
+
export type EventProcessorInfo_SegmentStatus = {
|
|
261
261
|
/** The ID of the Segment for which the status is reported */
|
|
262
262
|
segmentId: number;
|
|
263
263
|
/** Indicates whether the Segment has "Caught Up" with the Head of the Event Stream */
|
|
@@ -273,23 +273,23 @@ export interface EventProcessorInfo_SegmentStatus {
|
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
/** Message providing reference to an Event Processor */
|
|
276
|
-
export
|
|
276
|
+
export type EventProcessorReference = {
|
|
277
277
|
/** The name of the Event Processor */
|
|
278
278
|
processorName: string;
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
/** Message providing reference to a Segment of an Event Processor */
|
|
282
|
-
export
|
|
282
|
+
export type EventProcessorSegmentReference = {
|
|
283
283
|
/** The name of the Event Processor */
|
|
284
284
|
processorName: string;
|
|
285
285
|
/** The identifier of the Segment */
|
|
286
286
|
segmentIdentifier: number;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
export
|
|
289
|
+
export type Heartbeat = {
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
-
export
|
|
292
|
+
export type TopologyChange = {
|
|
293
293
|
updateType: UpdateType;
|
|
294
294
|
context: string;
|
|
295
295
|
/** The client ID of the component requesting the update */
|
|
@@ -306,14 +306,14 @@ export interface TopologyChange {
|
|
|
306
306
|
query?: QuerySubscription | undefined;
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
-
export
|
|
309
|
+
export type CommandSubscription = {
|
|
310
310
|
/** The subscription ID to add or remove */
|
|
311
311
|
name: string;
|
|
312
312
|
/** The load factor for the subscription */
|
|
313
313
|
loadFactor: number;
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
-
export
|
|
316
|
+
export type QuerySubscription = {
|
|
317
317
|
/** The subscription ID to add or remove */
|
|
318
318
|
name: string;
|
|
319
319
|
}
|
|
@@ -2365,7 +2365,7 @@ export const PlatformServiceDefinition = {
|
|
|
2365
2365
|
},
|
|
2366
2366
|
} as const;
|
|
2367
2367
|
|
|
2368
|
-
export
|
|
2368
|
+
export type PlatformServiceImplementation<CallContextExt = {}> = {
|
|
2369
2369
|
/** Obtains connection information for the Server that a Client should use for its connections. */
|
|
2370
2370
|
getPlatformServer(
|
|
2371
2371
|
request: ClientIdentification,
|
|
@@ -2378,7 +2378,7 @@ export interface PlatformServiceImplementation<CallContextExt = {}> {
|
|
|
2378
2378
|
): ServerStreamingMethodResult<DeepPartial<PlatformOutboundInstruction>>;
|
|
2379
2379
|
}
|
|
2380
2380
|
|
|
2381
|
-
export
|
|
2381
|
+
export type PlatformServiceClient<CallOptionsExt = {}> = {
|
|
2382
2382
|
/** Obtains connection information for the Server that a Client should use for its connections. */
|
|
2383
2383
|
getPlatformServer(
|
|
2384
2384
|
request: DeepPartial<ClientIdentification>,
|
|
@@ -2409,7 +2409,7 @@ function isSet(value: any): boolean {
|
|
|
2409
2409
|
|
|
2410
2410
|
export type ServerStreamingMethodResult<Response> = { [Symbol.asyncIterator](): AsyncIterator<Response, void> };
|
|
2411
2411
|
|
|
2412
|
-
export
|
|
2412
|
+
export type MessageFns<T> = {
|
|
2413
2413
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
2414
2414
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
2415
2415
|
fromJSON(object: any): T;
|
package/src/generated/dcb.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { InstructionAck } from "./common.js";
|
|
|
12
12
|
export const protobufPackage = "io.axoniq.axonserver.grpc.event.dcb";
|
|
13
13
|
|
|
14
14
|
/** Request message to schedule an event */
|
|
15
|
-
export
|
|
15
|
+
export type ScheduleEventRequest = {
|
|
16
16
|
/** timestamp when to publish the event */
|
|
17
17
|
instant: bigint;
|
|
18
18
|
/** the event to publish */
|
|
@@ -20,7 +20,7 @@ export interface ScheduleEventRequest {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
/** Request message to reschedule an event */
|
|
23
|
-
export
|
|
23
|
+
export type RescheduleEventRequest = {
|
|
24
24
|
/** schedule token of the event to reschedule */
|
|
25
25
|
token: string;
|
|
26
26
|
/** timestamp when to publish the event */
|
|
@@ -30,19 +30,19 @@ export interface RescheduleEventRequest {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/** Request message to cancel an event */
|
|
33
|
-
export
|
|
33
|
+
export type CancelScheduledEventRequest = {
|
|
34
34
|
/** token of scheduled event to cancel */
|
|
35
35
|
token: string;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/** Token to manage a scheduled event */
|
|
39
|
-
export
|
|
39
|
+
export type ScheduleToken = {
|
|
40
40
|
/** Field defining the token identifier */
|
|
41
41
|
token: string;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/** The event message. */
|
|
45
|
-
export
|
|
45
|
+
export type Event = {
|
|
46
46
|
/** The unique identifier of the event. */
|
|
47
47
|
identifier: string;
|
|
48
48
|
/** The timestamp of the event. */
|
|
@@ -57,13 +57,13 @@ export interface Event {
|
|
|
57
57
|
metadata: { [key: string]: string };
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
export
|
|
60
|
+
export type Event_MetadataEntry = {
|
|
61
61
|
key: string;
|
|
62
62
|
value: string;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/** The tag. Describes an event with more details. Usually using concepts from the Domain. */
|
|
66
|
-
export
|
|
66
|
+
export type Tag = {
|
|
67
67
|
/** The key of the tag. */
|
|
68
68
|
key: Uint8Array;
|
|
69
69
|
/** The value of the tag. */
|
|
@@ -71,7 +71,7 @@ export interface Tag {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/** The event described in more details by a list of tags. */
|
|
74
|
-
export
|
|
74
|
+
export type TaggedEvent = {
|
|
75
75
|
/** The event. */
|
|
76
76
|
event:
|
|
77
77
|
| Event
|
|
@@ -81,7 +81,7 @@ export interface TaggedEvent {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
/** The event retrieved from the event store with its corresponding sequence. */
|
|
84
|
-
export
|
|
84
|
+
export type SequencedEvent = {
|
|
85
85
|
/** The sequence of the event. */
|
|
86
86
|
sequence: bigint;
|
|
87
87
|
/** The event. */
|
|
@@ -89,7 +89,7 @@ export interface SequencedEvent {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
/** The message representing the request to append events to the event store. */
|
|
92
|
-
export
|
|
92
|
+
export type AppendEventsRequest = {
|
|
93
93
|
/** The condition used to check the validity of this request. If omitted, events will be appended unconditionally. */
|
|
94
94
|
condition:
|
|
95
95
|
| ConsistencyCondition
|
|
@@ -106,7 +106,7 @@ export interface AppendEventsRequest {
|
|
|
106
106
|
* The response of a successful append events request. If there was an issue with the append events request,
|
|
107
107
|
* the stream will complete with an error.
|
|
108
108
|
*/
|
|
109
|
-
export
|
|
109
|
+
export type AppendEventsResponse = {
|
|
110
110
|
/**
|
|
111
111
|
* The sequence of the first event stored in the event store.
|
|
112
112
|
* Corresponding to the list of events (a transaction) passed in the AppendEventsRequest.
|
|
@@ -128,7 +128,7 @@ export interface AppendEventsResponse {
|
|
|
128
128
|
* the event store. It may also be cancelled by the client. Only events matching the given criteria
|
|
129
129
|
* (a provided list of criterions) will be present in the stream. The stream is capped by the HEAD of the event store.
|
|
130
130
|
*/
|
|
131
|
-
export
|
|
131
|
+
export type SourceEventsRequest = {
|
|
132
132
|
/** An inclusive sequence of the first event to be included in the resulting stream. */
|
|
133
133
|
fromSequence: bigint;
|
|
134
134
|
/**
|
|
@@ -142,7 +142,7 @@ export interface SourceEventsRequest {
|
|
|
142
142
|
* The response to the SourceEventsRequest. It consists either of an event (with its corresponding sequence) or a
|
|
143
143
|
* consistency marker. The consistency marker should be used in a following AppendEventsRequest related to the criteria used in the SourceEventsRequest this response originates from.
|
|
144
144
|
*/
|
|
145
|
-
export
|
|
145
|
+
export type SourceEventsResponse = {
|
|
146
146
|
/** The event matching the criteria with its corresponding sequence. */
|
|
147
147
|
event?:
|
|
148
148
|
| SequencedEvent
|
|
@@ -155,7 +155,7 @@ export interface SourceEventsResponse {
|
|
|
155
155
|
* The condition for an AppendEventsRequest. Consists of the consistency marker and the criteria
|
|
156
156
|
* (a list of criterions).
|
|
157
157
|
*/
|
|
158
|
-
export
|
|
158
|
+
export type ConsistencyCondition = {
|
|
159
159
|
/**
|
|
160
160
|
* The sequence used to start checking for the consistency of an append. If there are events with a sequence greater
|
|
161
161
|
* or equal than the consistency marker and those are matching the given criteria, the condition is not met and the transaction
|
|
@@ -167,7 +167,7 @@ export interface ConsistencyCondition {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
/** The integral part of the criteria. */
|
|
170
|
-
export
|
|
170
|
+
export type Criterion = {
|
|
171
171
|
/** The criterion based on event tags and event names. */
|
|
172
172
|
tagsAndNames: TagsAndNamesCriterion | undefined;
|
|
173
173
|
}
|
|
@@ -176,7 +176,7 @@ export interface Criterion {
|
|
|
176
176
|
* The criterion based on event tags and event names. The event meets this criterion if ALL tags from this criterion
|
|
177
177
|
* are present in the tags of the event AND if the event name is present in one of the names of the this criterion.
|
|
178
178
|
*/
|
|
179
|
-
export
|
|
179
|
+
export type TagsAndNamesCriterion = {
|
|
180
180
|
/** A list of event names. The event meets this criterion if its name is in one of the names in this list. */
|
|
181
181
|
name: string[];
|
|
182
182
|
/**
|
|
@@ -190,7 +190,7 @@ export interface TagsAndNamesCriterion {
|
|
|
190
190
|
* The request to provide an infinite stream of events from the event store. The client may cancel the stream at any
|
|
191
191
|
* time.
|
|
192
192
|
*/
|
|
193
|
-
export
|
|
193
|
+
export type StreamEventsRequest = {
|
|
194
194
|
/** The inclusive sequence to start streaming from. */
|
|
195
195
|
fromSequence: bigint;
|
|
196
196
|
/**
|
|
@@ -201,17 +201,17 @@ export interface StreamEventsRequest {
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
/** The response to the StreamEventsRequest. */
|
|
204
|
-
export
|
|
204
|
+
export type StreamEventsResponse = {
|
|
205
205
|
/** The event with its corresponding sequence. */
|
|
206
206
|
event: SequencedEvent | undefined;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
/** The request to retrieve the current HEAD of the event store. */
|
|
210
|
-
export
|
|
210
|
+
export type GetHeadRequest = {
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
/** The current HEAD of the event store. */
|
|
214
|
-
export
|
|
214
|
+
export type GetHeadResponse = {
|
|
215
215
|
/**
|
|
216
216
|
* The sequence of the current head. Points to the position of the first event to be appended. The HEAD of an empty
|
|
217
217
|
* event store is 0.
|
|
@@ -220,11 +220,11 @@ export interface GetHeadResponse {
|
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
/** The request to retrieve the current TAIL of the event store. */
|
|
223
|
-
export
|
|
223
|
+
export type GetTailRequest = {
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
/** The current TAIL of the event store. */
|
|
227
|
-
export
|
|
227
|
+
export type GetTailResponse = {
|
|
228
228
|
/**
|
|
229
229
|
* The sequence of the first event in the event store. 0 for an empty event store. 0 for a non-truncated event store.
|
|
230
230
|
* Non-zero for a truncated event store.
|
|
@@ -238,19 +238,19 @@ export interface GetTailResponse {
|
|
|
238
238
|
* returned. If the provided timestamp is greater that the sequence of the last event in the event store,
|
|
239
239
|
* the HEAD is returned.
|
|
240
240
|
*/
|
|
241
|
-
export
|
|
241
|
+
export type GetSequenceAtRequest = {
|
|
242
242
|
/** The timestamp. */
|
|
243
243
|
timestamp: bigint;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
/** The sequence of the event approximately close to the provided timestamp. */
|
|
247
|
-
export
|
|
247
|
+
export type GetSequenceAtResponse = {
|
|
248
248
|
/** The sequence of the event. */
|
|
249
249
|
sequence: bigint;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
/** The request to add tags to the event. */
|
|
253
|
-
export
|
|
253
|
+
export type AddTagsRequest = {
|
|
254
254
|
/** The sequence of the event whose tags list will be expanded with the tags from the request. */
|
|
255
255
|
sequence: bigint;
|
|
256
256
|
/**
|
|
@@ -261,11 +261,11 @@ export interface AddTagsRequest {
|
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
/** The response indicating a successful addition of tags to the event. */
|
|
264
|
-
export
|
|
264
|
+
export type AddTagsResponse = {
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
/** The request to remove tags from the event. */
|
|
268
|
-
export
|
|
268
|
+
export type RemoveTagsRequest = {
|
|
269
269
|
/** The sequence of the event whose tags should be removed. */
|
|
270
270
|
sequence: bigint;
|
|
271
271
|
/** Tags to be removed. If the event is not tagged with listed tags, they are skipped. */
|
|
@@ -273,23 +273,23 @@ export interface RemoveTagsRequest {
|
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
/** The response indicating a successful removal of tags for the event. */
|
|
276
|
-
export
|
|
276
|
+
export type RemoveTagsResponse = {
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
/** The request to retrieve tags of the event. */
|
|
280
|
-
export
|
|
280
|
+
export type GetTagsRequest = {
|
|
281
281
|
/** The sequence of the event whose tags should be retrieved. */
|
|
282
282
|
sequence: bigint;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
/** The response containing tags of an event. */
|
|
286
|
-
export
|
|
286
|
+
export type GetTagsResponse = {
|
|
287
287
|
/** The tags associated to the event. */
|
|
288
288
|
tag: Tag[];
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
/** The snapshot. */
|
|
292
|
-
export
|
|
292
|
+
export type Snapshot = {
|
|
293
293
|
/** The name of the snapshot. */
|
|
294
294
|
name: string;
|
|
295
295
|
/** The version of the snapshot. */
|
|
@@ -302,13 +302,13 @@ export interface Snapshot {
|
|
|
302
302
|
metadata: { [key: string]: string };
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
-
export
|
|
305
|
+
export type Snapshot_MetadataEntry = {
|
|
306
306
|
key: string;
|
|
307
307
|
value: string;
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
/** The request to add the snapshot to the snapshot store. */
|
|
311
|
-
export
|
|
311
|
+
export type AddSnapshotRequest = {
|
|
312
312
|
/** The key this snapshot is added to. */
|
|
313
313
|
key: Uint8Array;
|
|
314
314
|
/**
|
|
@@ -323,14 +323,14 @@ export interface AddSnapshotRequest {
|
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
/** The response indicating the successful addition of the snapshot. */
|
|
326
|
-
export
|
|
326
|
+
export type AddSnapshotResponse = {
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
/**
|
|
330
330
|
* The request to delete the snapshot from the snapshot store.
|
|
331
331
|
* Deletes from a sequence of `0` to the specified `to_sequence`
|
|
332
332
|
*/
|
|
333
|
-
export
|
|
333
|
+
export type DeleteSnapshotsRequest = {
|
|
334
334
|
/** The key the snapshot is identified by. */
|
|
335
335
|
key: Uint8Array;
|
|
336
336
|
/** The exclusive upper bound sequence of the snapshot to end the deletion. */
|
|
@@ -338,11 +338,11 @@ export interface DeleteSnapshotsRequest {
|
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
/** The response indicating the successful deletion of the snapshot. */
|
|
341
|
-
export
|
|
341
|
+
export type DeleteSnapshotsResponse = {
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
/** The request to retrieve all snapshots from the snapshot store based on the key and sequence bounds. */
|
|
345
|
-
export
|
|
345
|
+
export type ListSnapshotsRequest = {
|
|
346
346
|
/** The key of the snapshot. */
|
|
347
347
|
key: Uint8Array;
|
|
348
348
|
/** The inclusive bottom bound sequence used to filter out snapshots. */
|
|
@@ -352,7 +352,7 @@ export interface ListSnapshotsRequest {
|
|
|
352
352
|
}
|
|
353
353
|
|
|
354
354
|
/** The response to the ListSnapshotRequest. */
|
|
355
|
-
export
|
|
355
|
+
export type ListSnapshotsResponse = {
|
|
356
356
|
/** The key of the snapshot. */
|
|
357
357
|
key: Uint8Array;
|
|
358
358
|
/** The sequence of the snapshot. */
|
|
@@ -362,13 +362,13 @@ export interface ListSnapshotsResponse {
|
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
/** The request to retrieve the snapshot with the highest sequence from the snapshot store. */
|
|
365
|
-
export
|
|
365
|
+
export type GetLastSnapshotRequest = {
|
|
366
366
|
/** The key of the snapshot. */
|
|
367
367
|
key: Uint8Array;
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
/** The response to GetLatestSnapshotRequest. */
|
|
371
|
-
export
|
|
371
|
+
export type GetLastSnapshotResponse = {
|
|
372
372
|
/** The key of the snapshot. */
|
|
373
373
|
key: Uint8Array;
|
|
374
374
|
/** The sequence of the snapshot. */
|
|
@@ -3530,7 +3530,7 @@ export const DcbEventStoreDefinition = {
|
|
|
3530
3530
|
},
|
|
3531
3531
|
} as const;
|
|
3532
3532
|
|
|
3533
|
-
export
|
|
3533
|
+
export type DcbEventStoreServiceImplementation<CallContextExt = {}> = {
|
|
3534
3534
|
/** Appends new events to the store. */
|
|
3535
3535
|
append(
|
|
3536
3536
|
request: AsyncIterable<AppendEventsRequest>,
|
|
@@ -3573,7 +3573,7 @@ export interface DcbEventStoreServiceImplementation<CallContextExt = {}> {
|
|
|
3573
3573
|
getTags(request: GetTagsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetTagsResponse>>;
|
|
3574
3574
|
}
|
|
3575
3575
|
|
|
3576
|
-
export
|
|
3576
|
+
export type DcbEventStoreClient<CallOptionsExt = {}> = {
|
|
3577
3577
|
/** Appends new events to the store. */
|
|
3578
3578
|
append(
|
|
3579
3579
|
request: AsyncIterable<DeepPartial<AppendEventsRequest>>,
|
|
@@ -3661,7 +3661,7 @@ export const DcbSnapshotStoreDefinition = {
|
|
|
3661
3661
|
},
|
|
3662
3662
|
} as const;
|
|
3663
3663
|
|
|
3664
|
-
export
|
|
3664
|
+
export type DcbSnapshotStoreServiceImplementation<CallContextExt = {}> = {
|
|
3665
3665
|
/** Adds a snapshot to the snapshot store. */
|
|
3666
3666
|
add(request: AddSnapshotRequest, context: CallContext & CallContextExt): Promise<DeepPartial<AddSnapshotResponse>>;
|
|
3667
3667
|
/** Deletes a snapshot from the snapshot store. */
|
|
@@ -3681,7 +3681,7 @@ export interface DcbSnapshotStoreServiceImplementation<CallContextExt = {}> {
|
|
|
3681
3681
|
): Promise<DeepPartial<GetLastSnapshotResponse>>;
|
|
3682
3682
|
}
|
|
3683
3683
|
|
|
3684
|
-
export
|
|
3684
|
+
export type DcbSnapshotStoreClient<CallOptionsExt = {}> = {
|
|
3685
3685
|
/** Adds a snapshot to the snapshot store. */
|
|
3686
3686
|
add(request: DeepPartial<AddSnapshotRequest>, options?: CallOptions & CallOptionsExt): Promise<AddSnapshotResponse>;
|
|
3687
3687
|
/** Deletes a snapshot from the snapshot store. */
|
|
@@ -3737,7 +3737,7 @@ export const DcbEventSchedulerDefinition = {
|
|
|
3737
3737
|
},
|
|
3738
3738
|
} as const;
|
|
3739
3739
|
|
|
3740
|
-
export
|
|
3740
|
+
export type DcbEventSchedulerServiceImplementation<CallContextExt = {}> = {
|
|
3741
3741
|
/** Schedule the given event for publication at the given time}. The returned ScheduleToken can be used to reschedule or cancel the planned publication. */
|
|
3742
3742
|
scheduleEvent(
|
|
3743
3743
|
request: ScheduleEventRequest,
|
|
@@ -3755,7 +3755,7 @@ export interface DcbEventSchedulerServiceImplementation<CallContextExt = {}> {
|
|
|
3755
3755
|
): Promise<DeepPartial<InstructionAck>>;
|
|
3756
3756
|
}
|
|
3757
3757
|
|
|
3758
|
-
export
|
|
3758
|
+
export type DcbEventSchedulerClient<CallOptionsExt = {}> = {
|
|
3759
3759
|
/** Schedule the given event for publication at the given time}. The returned ScheduleToken can be used to reschedule or cancel the planned publication. */
|
|
3760
3760
|
scheduleEvent(
|
|
3761
3761
|
request: DeepPartial<ScheduleEventRequest>,
|
|
@@ -3816,7 +3816,7 @@ function isSet(value: any): boolean {
|
|
|
3816
3816
|
|
|
3817
3817
|
export type ServerStreamingMethodResult<Response> = { [Symbol.asyncIterator](): AsyncIterator<Response, void> };
|
|
3818
3818
|
|
|
3819
|
-
export
|
|
3819
|
+
export type MessageFns<T> = {
|
|
3820
3820
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
3821
3821
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
3822
3822
|
fromJSON(object: any): T;
|