@cratis/chronicle.contracts 19.63.0 → 19.64.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.
@@ -138,6 +138,8 @@ export interface SeedEventsRequest {
138
138
  GlobalByEventType: EventTypeSeedEntries[];
139
139
  GlobalByEventSource: EventSourceSeedEntries[];
140
140
  NamespacedEntries: NamespacedSeedEntries[];
141
+ GlobalSetIsAuthoritative: boolean;
142
+ GlobalSetOwner: string;
141
143
  }
142
144
 
143
145
  export interface SeedingEntry {
@@ -1444,7 +1446,14 @@ export const SeedDataResponse: MessageFns<SeedDataResponse> = {
1444
1446
  };
1445
1447
 
1446
1448
  function createBaseSeedEventsRequest(): SeedEventsRequest {
1447
- return { EventStore: "", GlobalByEventType: [], GlobalByEventSource: [], NamespacedEntries: [] };
1449
+ return {
1450
+ EventStore: "",
1451
+ GlobalByEventType: [],
1452
+ GlobalByEventSource: [],
1453
+ NamespacedEntries: [],
1454
+ GlobalSetIsAuthoritative: false,
1455
+ GlobalSetOwner: "",
1456
+ };
1448
1457
  }
1449
1458
 
1450
1459
  export const SeedEventsRequest: MessageFns<SeedEventsRequest> = {
@@ -1461,6 +1470,12 @@ export const SeedEventsRequest: MessageFns<SeedEventsRequest> = {
1461
1470
  for (const v of message.NamespacedEntries) {
1462
1471
  NamespacedSeedEntries.encode(v!, writer.uint32(34).fork()).join();
1463
1472
  }
1473
+ if (message.GlobalSetIsAuthoritative !== false) {
1474
+ writer.uint32(40).bool(message.GlobalSetIsAuthoritative);
1475
+ }
1476
+ if (message.GlobalSetOwner !== "") {
1477
+ writer.uint32(50).string(message.GlobalSetOwner);
1478
+ }
1464
1479
  return writer;
1465
1480
  },
1466
1481
 
@@ -1509,6 +1524,22 @@ export const SeedEventsRequest: MessageFns<SeedEventsRequest> = {
1509
1524
  message.NamespacedEntries.push(NamespacedSeedEntries.decode(reader, reader.uint32()));
1510
1525
  continue;
1511
1526
  }
1527
+ case 5: {
1528
+ if (tag !== 40) {
1529
+ break;
1530
+ }
1531
+
1532
+ message.GlobalSetIsAuthoritative = reader.bool();
1533
+ continue;
1534
+ }
1535
+ case 6: {
1536
+ if (tag !== 50) {
1537
+ break;
1538
+ }
1539
+
1540
+ message.GlobalSetOwner = reader.string();
1541
+ continue;
1542
+ }
1512
1543
  }
1513
1544
  if ((tag & 7) === 4 || tag === 0) {
1514
1545
  break;
@@ -1533,6 +1564,10 @@ export const SeedEventsRequest: MessageFns<SeedEventsRequest> = {
1533
1564
  NamespacedEntries: globalThis.Array.isArray(object?.NamespacedEntries)
1534
1565
  ? object.NamespacedEntries.map((e: any) => NamespacedSeedEntries.fromJSON(e))
1535
1566
  : [],
1567
+ GlobalSetIsAuthoritative: isSet(object.GlobalSetIsAuthoritative)
1568
+ ? globalThis.Boolean(object.GlobalSetIsAuthoritative)
1569
+ : false,
1570
+ GlobalSetOwner: isSet(object.GlobalSetOwner) ? globalThis.String(object.GlobalSetOwner) : "",
1536
1571
  };
1537
1572
  },
1538
1573
 
@@ -1550,6 +1585,12 @@ export const SeedEventsRequest: MessageFns<SeedEventsRequest> = {
1550
1585
  if (message.NamespacedEntries?.length) {
1551
1586
  obj.NamespacedEntries = message.NamespacedEntries.map((e) => NamespacedSeedEntries.toJSON(e));
1552
1587
  }
1588
+ if (message.GlobalSetIsAuthoritative !== false) {
1589
+ obj.GlobalSetIsAuthoritative = message.GlobalSetIsAuthoritative;
1590
+ }
1591
+ if (message.GlobalSetOwner !== "") {
1592
+ obj.GlobalSetOwner = message.GlobalSetOwner;
1593
+ }
1553
1594
  return obj;
1554
1595
  },
1555
1596
 
@@ -1562,6 +1603,8 @@ export const SeedEventsRequest: MessageFns<SeedEventsRequest> = {
1562
1603
  message.GlobalByEventType = object.GlobalByEventType?.map((e) => EventTypeSeedEntries.fromPartial(e)) || [];
1563
1604
  message.GlobalByEventSource = object.GlobalByEventSource?.map((e) => EventSourceSeedEntries.fromPartial(e)) || [];
1564
1605
  message.NamespacedEntries = object.NamespacedEntries?.map((e) => NamespacedSeedEntries.fromPartial(e)) || [];
1606
+ message.GlobalSetIsAuthoritative = object.GlobalSetIsAuthoritative ?? false;
1607
+ message.GlobalSetOwner = object.GlobalSetOwner ?? "";
1565
1608
  return message;
1566
1609
  },
1567
1610
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/chronicle.contracts",
3
- "version": "19.63.0",
3
+ "version": "19.64.0",
4
4
  "description": "TypeScript gRPC client contracts for Cratis Chronicle - the open-source event-sourcing database",
5
5
  "keywords": [
6
6
  "event-sourcing",