@cratis/chronicle.contracts 19.75.1 → 19.76.1

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.
@@ -789,6 +789,8 @@ export interface ConcurrencyViolation {
789
789
  EventSourceId: string;
790
790
  ExpectedSequenceNumber: bigint;
791
791
  ActualSequenceNumber: bigint;
792
+ ConflictingEventTypeId: string;
793
+ ConflictingSequenceNumber: bigint;
792
794
  }
793
795
 
794
796
  export interface ConstraintViolation {
@@ -6351,7 +6353,13 @@ export const ConcurrencyScope: MessageFns<ConcurrencyScope> = {
6351
6353
  };
6352
6354
 
6353
6355
  function createBaseConcurrencyViolation(): ConcurrencyViolation {
6354
- return { EventSourceId: "", ExpectedSequenceNumber: 0n, ActualSequenceNumber: 0n };
6356
+ return {
6357
+ EventSourceId: "",
6358
+ ExpectedSequenceNumber: 0n,
6359
+ ActualSequenceNumber: 0n,
6360
+ ConflictingEventTypeId: "",
6361
+ ConflictingSequenceNumber: 0n,
6362
+ };
6355
6363
  }
6356
6364
 
6357
6365
  export const ConcurrencyViolation: MessageFns<ConcurrencyViolation> = {
@@ -6371,6 +6379,17 @@ export const ConcurrencyViolation: MessageFns<ConcurrencyViolation> = {
6371
6379
  }
6372
6380
  writer.uint32(24).uint64(message.ActualSequenceNumber);
6373
6381
  }
6382
+ if (message.ConflictingEventTypeId !== "") {
6383
+ writer.uint32(34).string(message.ConflictingEventTypeId);
6384
+ }
6385
+ if (message.ConflictingSequenceNumber !== 0n) {
6386
+ if (BigInt.asUintN(64, message.ConflictingSequenceNumber) !== message.ConflictingSequenceNumber) {
6387
+ throw new globalThis.Error(
6388
+ "value provided for field message.ConflictingSequenceNumber of type uint64 too large",
6389
+ );
6390
+ }
6391
+ writer.uint32(40).uint64(message.ConflictingSequenceNumber);
6392
+ }
6374
6393
  return writer;
6375
6394
  },
6376
6395
 
@@ -6411,6 +6430,22 @@ export const ConcurrencyViolation: MessageFns<ConcurrencyViolation> = {
6411
6430
  message.ActualSequenceNumber = reader.uint64() as bigint;
6412
6431
  continue;
6413
6432
  }
6433
+ case 4: {
6434
+ if (tag !== 34) {
6435
+ break;
6436
+ }
6437
+
6438
+ message.ConflictingEventTypeId = reader.string();
6439
+ continue;
6440
+ }
6441
+ case 5: {
6442
+ if (tag !== 40) {
6443
+ break;
6444
+ }
6445
+
6446
+ message.ConflictingSequenceNumber = reader.uint64() as bigint;
6447
+ continue;
6448
+ }
6414
6449
  }
6415
6450
  if ((tag & 7) === 4 || tag === 0) {
6416
6451
  break;
@@ -6428,6 +6463,12 @@ export const ConcurrencyViolation: MessageFns<ConcurrencyViolation> = {
6428
6463
  EventSourceId: isSet(object.EventSourceId) ? globalThis.String(object.EventSourceId) : "",
6429
6464
  ExpectedSequenceNumber: isSet(object.ExpectedSequenceNumber) ? BigInt(object.ExpectedSequenceNumber) : 0n,
6430
6465
  ActualSequenceNumber: isSet(object.ActualSequenceNumber) ? BigInt(object.ActualSequenceNumber) : 0n,
6466
+ ConflictingEventTypeId: isSet(object.ConflictingEventTypeId)
6467
+ ? globalThis.String(object.ConflictingEventTypeId)
6468
+ : "",
6469
+ ConflictingSequenceNumber: isSet(object.ConflictingSequenceNumber)
6470
+ ? BigInt(object.ConflictingSequenceNumber)
6471
+ : 0n,
6431
6472
  };
6432
6473
  },
6433
6474
 
@@ -6442,6 +6483,12 @@ export const ConcurrencyViolation: MessageFns<ConcurrencyViolation> = {
6442
6483
  if (message.ActualSequenceNumber !== 0n) {
6443
6484
  obj.ActualSequenceNumber = message.ActualSequenceNumber.toString();
6444
6485
  }
6486
+ if (message.ConflictingEventTypeId !== "") {
6487
+ obj.ConflictingEventTypeId = message.ConflictingEventTypeId;
6488
+ }
6489
+ if (message.ConflictingSequenceNumber !== 0n) {
6490
+ obj.ConflictingSequenceNumber = message.ConflictingSequenceNumber.toString();
6491
+ }
6445
6492
  return obj;
6446
6493
  },
6447
6494
 
@@ -6458,6 +6505,11 @@ export const ConcurrencyViolation: MessageFns<ConcurrencyViolation> = {
6458
6505
  message.ActualSequenceNumber = (object.ActualSequenceNumber !== undefined && object.ActualSequenceNumber !== null)
6459
6506
  ? BigInt(object.ActualSequenceNumber)
6460
6507
  : 0n;
6508
+ message.ConflictingEventTypeId = object.ConflictingEventTypeId ?? "";
6509
+ message.ConflictingSequenceNumber =
6510
+ (object.ConflictingSequenceNumber !== undefined && object.ConflictingSequenceNumber !== null)
6511
+ ? BigInt(object.ConflictingSequenceNumber)
6512
+ : 0n;
6461
6513
  return message;
6462
6514
  },
6463
6515
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/chronicle.contracts",
3
- "version": "19.75.1",
3
+ "version": "19.76.1",
4
4
  "description": "TypeScript gRPC client contracts for Cratis Chronicle - the open-source event-sourcing database",
5
5
  "keywords": [
6
6
  "event-sourcing",