@cratis/chronicle.contracts 19.83.4 → 19.84.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.
@@ -791,6 +791,8 @@ export interface ConcurrencyViolation {
791
791
  ActualSequenceNumber: bigint;
792
792
  ConflictingEventTypeId: string;
793
793
  ConflictingSequenceNumber: bigint;
794
+ ScopeIndex: number;
795
+ Scope: ConcurrencyScope | undefined;
794
796
  }
795
797
 
796
798
  export interface ConstraintViolation {
@@ -6359,6 +6361,8 @@ function createBaseConcurrencyViolation(): ConcurrencyViolation {
6359
6361
  ActualSequenceNumber: 0n,
6360
6362
  ConflictingEventTypeId: "",
6361
6363
  ConflictingSequenceNumber: 0n,
6364
+ ScopeIndex: 0,
6365
+ Scope: undefined,
6362
6366
  };
6363
6367
  }
6364
6368
 
@@ -6390,6 +6394,12 @@ export const ConcurrencyViolation: MessageFns<ConcurrencyViolation> = {
6390
6394
  }
6391
6395
  writer.uint32(40).uint64(message.ConflictingSequenceNumber);
6392
6396
  }
6397
+ if (message.ScopeIndex !== 0) {
6398
+ writer.uint32(48).uint32(message.ScopeIndex);
6399
+ }
6400
+ if (message.Scope !== undefined) {
6401
+ ConcurrencyScope.encode(message.Scope, writer.uint32(58).fork()).join();
6402
+ }
6393
6403
  return writer;
6394
6404
  },
6395
6405
 
@@ -6446,6 +6456,22 @@ export const ConcurrencyViolation: MessageFns<ConcurrencyViolation> = {
6446
6456
  message.ConflictingSequenceNumber = reader.uint64() as bigint;
6447
6457
  continue;
6448
6458
  }
6459
+ case 6: {
6460
+ if (tag !== 48) {
6461
+ break;
6462
+ }
6463
+
6464
+ message.ScopeIndex = reader.uint32();
6465
+ continue;
6466
+ }
6467
+ case 7: {
6468
+ if (tag !== 58) {
6469
+ break;
6470
+ }
6471
+
6472
+ message.Scope = ConcurrencyScope.decode(reader, reader.uint32());
6473
+ continue;
6474
+ }
6449
6475
  }
6450
6476
  if ((tag & 7) === 4 || tag === 0) {
6451
6477
  break;
@@ -6469,6 +6495,8 @@ export const ConcurrencyViolation: MessageFns<ConcurrencyViolation> = {
6469
6495
  ConflictingSequenceNumber: isSet(object.ConflictingSequenceNumber)
6470
6496
  ? BigInt(object.ConflictingSequenceNumber)
6471
6497
  : 0n,
6498
+ ScopeIndex: isSet(object.ScopeIndex) ? globalThis.Number(object.ScopeIndex) : 0,
6499
+ Scope: isSet(object.Scope) ? ConcurrencyScope.fromJSON(object.Scope) : undefined,
6472
6500
  };
6473
6501
  },
6474
6502
 
@@ -6489,6 +6517,12 @@ export const ConcurrencyViolation: MessageFns<ConcurrencyViolation> = {
6489
6517
  if (message.ConflictingSequenceNumber !== 0n) {
6490
6518
  obj.ConflictingSequenceNumber = message.ConflictingSequenceNumber.toString();
6491
6519
  }
6520
+ if (message.ScopeIndex !== 0) {
6521
+ obj.ScopeIndex = Math.round(message.ScopeIndex);
6522
+ }
6523
+ if (message.Scope !== undefined) {
6524
+ obj.Scope = ConcurrencyScope.toJSON(message.Scope);
6525
+ }
6492
6526
  return obj;
6493
6527
  },
6494
6528
 
@@ -6510,6 +6544,10 @@ export const ConcurrencyViolation: MessageFns<ConcurrencyViolation> = {
6510
6544
  (object.ConflictingSequenceNumber !== undefined && object.ConflictingSequenceNumber !== null)
6511
6545
  ? BigInt(object.ConflictingSequenceNumber)
6512
6546
  : 0n;
6547
+ message.ScopeIndex = object.ScopeIndex ?? 0;
6548
+ message.Scope = (object.Scope !== undefined && object.Scope !== null)
6549
+ ? ConcurrencyScope.fromPartial(object.Scope)
6550
+ : undefined;
6513
6551
  return message;
6514
6552
  },
6515
6553
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/chronicle.contracts",
3
- "version": "19.83.4",
3
+ "version": "19.84.0",
4
4
  "description": "TypeScript gRPC client contracts for Cratis Chronicle - the open-source event-sourcing database",
5
5
  "keywords": [
6
6
  "event-sourcing",