@cratis/chronicle.contracts 19.159.0 → 19.160.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.
@@ -57,6 +57,7 @@ export interface EventStoreSubscriptionDefinition {
57
57
  EventTypes: EventType[];
58
58
  GenerationDelivery: EventGenerationDelivery;
59
59
  NamedTags: NamedTag[];
60
+ SourceNamespaces: string[];
60
61
  }
61
62
 
62
63
  export interface EventType {
@@ -171,7 +172,14 @@ export const AddEventStoreSubscriptions: MessageFns<AddEventStoreSubscriptions>
171
172
  };
172
173
 
173
174
  function createBaseEventStoreSubscriptionDefinition(): EventStoreSubscriptionDefinition {
174
- return { Identifier: "", SourceEventStore: "", EventTypes: [], GenerationDelivery: 0, NamedTags: [] };
175
+ return {
176
+ Identifier: "",
177
+ SourceEventStore: "",
178
+ EventTypes: [],
179
+ GenerationDelivery: 0,
180
+ NamedTags: [],
181
+ SourceNamespaces: [],
182
+ };
175
183
  }
176
184
 
177
185
  export const EventStoreSubscriptionDefinition: MessageFns<EventStoreSubscriptionDefinition> = {
@@ -191,6 +199,9 @@ export const EventStoreSubscriptionDefinition: MessageFns<EventStoreSubscription
191
199
  for (const v of message.NamedTags) {
192
200
  NamedTag.encode(v!, writer.uint32(42).fork()).join();
193
201
  }
202
+ for (const v of message.SourceNamespaces) {
203
+ writer.uint32(50).string(v!);
204
+ }
194
205
  return writer;
195
206
  },
196
207
 
@@ -247,6 +258,14 @@ export const EventStoreSubscriptionDefinition: MessageFns<EventStoreSubscription
247
258
  message.NamedTags.push(NamedTag.decode(reader, reader.uint32()));
248
259
  continue;
249
260
  }
261
+ case 6: {
262
+ if (tag !== 50) {
263
+ break;
264
+ }
265
+
266
+ message.SourceNamespaces.push(reader.string());
267
+ continue;
268
+ }
250
269
  }
251
270
  if ((tag & 7) === 4 || tag === 0) {
252
271
  break;
@@ -272,6 +291,9 @@ export const EventStoreSubscriptionDefinition: MessageFns<EventStoreSubscription
272
291
  NamedTags: globalThis.Array.isArray(object?.NamedTags)
273
292
  ? object.NamedTags.map((e: any) => NamedTag.fromJSON(e))
274
293
  : [],
294
+ SourceNamespaces: globalThis.Array.isArray(object?.SourceNamespaces)
295
+ ? object.SourceNamespaces.map((e: any) => globalThis.String(e))
296
+ : [],
275
297
  };
276
298
  },
277
299
 
@@ -292,6 +314,9 @@ export const EventStoreSubscriptionDefinition: MessageFns<EventStoreSubscription
292
314
  if (message.NamedTags?.length) {
293
315
  obj.NamedTags = message.NamedTags.map((e) => NamedTag.toJSON(e));
294
316
  }
317
+ if (message.SourceNamespaces?.length) {
318
+ obj.SourceNamespaces = message.SourceNamespaces;
319
+ }
295
320
  return obj;
296
321
  },
297
322
 
@@ -305,6 +330,7 @@ export const EventStoreSubscriptionDefinition: MessageFns<EventStoreSubscription
305
330
  message.EventTypes = object.EventTypes?.map((e) => EventType.fromPartial(e)) || [];
306
331
  message.GenerationDelivery = object.GenerationDelivery ?? 0;
307
332
  message.NamedTags = object.NamedTags?.map((e) => NamedTag.fromPartial(e)) || [];
333
+ message.SourceNamespaces = object.SourceNamespaces?.map((e) => e) || [];
308
334
  return message;
309
335
  },
310
336
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/chronicle.contracts",
3
- "version": "19.159.0",
3
+ "version": "19.160.0",
4
4
  "description": "TypeScript gRPC client contracts for Cratis Chronicle - the open-source event-sourcing database",
5
5
  "keywords": [
6
6
  "event-sourcing",