@cratis/chronicle.contracts 19.37.9 → 19.38.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/cjs/generated/descriptorSet.js +1 -1
- package/dist/cjs/generated/descriptorSet.js.map +1 -1
- package/dist/cjs/generated/events_constraints.d.ts +9 -0
- package/dist/cjs/generated/events_constraints.d.ts.map +1 -1
- package/dist/cjs/generated/events_constraints.js +67 -1
- package/dist/cjs/generated/events_constraints.js.map +1 -1
- package/dist/cjs/generated/index.d.ts +1 -1
- package/dist/cjs/generated/index.d.ts.map +1 -1
- package/dist/cjs/index.js +6 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/generated/descriptorSet.js +1 -1
- package/dist/esm/generated/descriptorSet.js.map +1 -1
- package/dist/esm/generated/events_constraints.d.ts +9 -0
- package/dist/esm/generated/events_constraints.d.ts.map +1 -1
- package/dist/esm/generated/events_constraints.js +66 -2
- package/dist/esm/generated/events_constraints.js.map +1 -1
- package/dist/esm/generated/index.d.ts +1 -1
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/generated/descriptorSet.js +1 -1
- package/dist/generated/descriptorSet.js.map +1 -1
- package/dist/generated/events_constraints.d.ts +9 -0
- package/dist/generated/events_constraints.d.ts.map +1 -1
- package/dist/generated/events_constraints.js +65 -1
- package/dist/generated/events_constraints.js.map +1 -1
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +1 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/descriptorSet.ts +1 -1
- package/generated/events_constraints.ts +73 -1
- package/generated/index.ts +1 -1
- package/package.json +1 -1
|
@@ -62,6 +62,39 @@ export function constraintTypeToJSON(object: ConstraintType): string {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
export enum UniqueConstraintMode {
|
|
66
|
+
PerEventSource = 0,
|
|
67
|
+
PerValue = 1,
|
|
68
|
+
UNRECOGNIZED = -1,
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function uniqueConstraintModeFromJSON(object: any): UniqueConstraintMode {
|
|
72
|
+
switch (object) {
|
|
73
|
+
case 0:
|
|
74
|
+
case "PerEventSource":
|
|
75
|
+
return UniqueConstraintMode.PerEventSource;
|
|
76
|
+
case 1:
|
|
77
|
+
case "PerValue":
|
|
78
|
+
return UniqueConstraintMode.PerValue;
|
|
79
|
+
case -1:
|
|
80
|
+
case "UNRECOGNIZED":
|
|
81
|
+
default:
|
|
82
|
+
return UniqueConstraintMode.UNRECOGNIZED;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function uniqueConstraintModeToJSON(object: UniqueConstraintMode): string {
|
|
87
|
+
switch (object) {
|
|
88
|
+
case UniqueConstraintMode.PerEventSource:
|
|
89
|
+
return "PerEventSource";
|
|
90
|
+
case UniqueConstraintMode.PerValue:
|
|
91
|
+
return "PerValue";
|
|
92
|
+
case UniqueConstraintMode.UNRECOGNIZED:
|
|
93
|
+
default:
|
|
94
|
+
return "UNRECOGNIZED";
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
65
98
|
export interface Constraint {
|
|
66
99
|
Name: string;
|
|
67
100
|
Type: ConstraintType;
|
|
@@ -90,6 +123,8 @@ export interface RegisterConstraintsRequest {
|
|
|
90
123
|
export interface UniqueConstraintDefinition {
|
|
91
124
|
EventDefinitions: UniqueConstraintEventDefinition[];
|
|
92
125
|
IgnoreCasing: boolean;
|
|
126
|
+
Mode: UniqueConstraintMode;
|
|
127
|
+
RemovalEventDefinitions: UniqueConstraintEventDefinition[];
|
|
93
128
|
}
|
|
94
129
|
|
|
95
130
|
export interface UniqueConstraintEventDefinition {
|
|
@@ -556,7 +591,7 @@ export const RegisterConstraintsRequest: MessageFns<RegisterConstraintsRequest>
|
|
|
556
591
|
};
|
|
557
592
|
|
|
558
593
|
function createBaseUniqueConstraintDefinition(): UniqueConstraintDefinition {
|
|
559
|
-
return { EventDefinitions: [], IgnoreCasing: false };
|
|
594
|
+
return { EventDefinitions: [], IgnoreCasing: false, Mode: 0, RemovalEventDefinitions: [] };
|
|
560
595
|
}
|
|
561
596
|
|
|
562
597
|
export const UniqueConstraintDefinition: MessageFns<UniqueConstraintDefinition> = {
|
|
@@ -567,6 +602,12 @@ export const UniqueConstraintDefinition: MessageFns<UniqueConstraintDefinition>
|
|
|
567
602
|
if (message.IgnoreCasing !== false) {
|
|
568
603
|
writer.uint32(16).bool(message.IgnoreCasing);
|
|
569
604
|
}
|
|
605
|
+
if (message.Mode !== 0) {
|
|
606
|
+
writer.uint32(24).int32(message.Mode);
|
|
607
|
+
}
|
|
608
|
+
for (const v of message.RemovalEventDefinitions) {
|
|
609
|
+
UniqueConstraintEventDefinition.encode(v!, writer.uint32(34).fork()).join();
|
|
610
|
+
}
|
|
570
611
|
return writer;
|
|
571
612
|
},
|
|
572
613
|
|
|
@@ -599,6 +640,22 @@ export const UniqueConstraintDefinition: MessageFns<UniqueConstraintDefinition>
|
|
|
599
640
|
message.IgnoreCasing = reader.bool();
|
|
600
641
|
continue;
|
|
601
642
|
}
|
|
643
|
+
case 3: {
|
|
644
|
+
if (tag !== 24) {
|
|
645
|
+
break;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
message.Mode = reader.int32() as any;
|
|
649
|
+
continue;
|
|
650
|
+
}
|
|
651
|
+
case 4: {
|
|
652
|
+
if (tag !== 34) {
|
|
653
|
+
break;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
message.RemovalEventDefinitions.push(UniqueConstraintEventDefinition.decode(reader, reader.uint32()));
|
|
657
|
+
continue;
|
|
658
|
+
}
|
|
602
659
|
}
|
|
603
660
|
if ((tag & 7) === 4 || tag === 0) {
|
|
604
661
|
break;
|
|
@@ -617,6 +674,10 @@ export const UniqueConstraintDefinition: MessageFns<UniqueConstraintDefinition>
|
|
|
617
674
|
? object.EventDefinitions.map((e: any) => UniqueConstraintEventDefinition.fromJSON(e))
|
|
618
675
|
: [],
|
|
619
676
|
IgnoreCasing: isSet(object.IgnoreCasing) ? globalThis.Boolean(object.IgnoreCasing) : false,
|
|
677
|
+
Mode: isSet(object.Mode) ? uniqueConstraintModeFromJSON(object.Mode) : 0,
|
|
678
|
+
RemovalEventDefinitions: globalThis.Array.isArray(object?.RemovalEventDefinitions)
|
|
679
|
+
? object.RemovalEventDefinitions.map((e: any) => UniqueConstraintEventDefinition.fromJSON(e))
|
|
680
|
+
: [],
|
|
620
681
|
};
|
|
621
682
|
},
|
|
622
683
|
|
|
@@ -628,6 +689,14 @@ export const UniqueConstraintDefinition: MessageFns<UniqueConstraintDefinition>
|
|
|
628
689
|
if (message.IgnoreCasing !== false) {
|
|
629
690
|
obj.IgnoreCasing = message.IgnoreCasing;
|
|
630
691
|
}
|
|
692
|
+
if (message.Mode !== 0) {
|
|
693
|
+
obj.Mode = uniqueConstraintModeToJSON(message.Mode);
|
|
694
|
+
}
|
|
695
|
+
if (message.RemovalEventDefinitions?.length) {
|
|
696
|
+
obj.RemovalEventDefinitions = message.RemovalEventDefinitions.map((e) =>
|
|
697
|
+
UniqueConstraintEventDefinition.toJSON(e)
|
|
698
|
+
);
|
|
699
|
+
}
|
|
631
700
|
return obj;
|
|
632
701
|
},
|
|
633
702
|
|
|
@@ -639,6 +708,9 @@ export const UniqueConstraintDefinition: MessageFns<UniqueConstraintDefinition>
|
|
|
639
708
|
message.EventDefinitions = object.EventDefinitions?.map((e) => UniqueConstraintEventDefinition.fromPartial(e)) ||
|
|
640
709
|
[];
|
|
641
710
|
message.IgnoreCasing = object.IgnoreCasing ?? false;
|
|
711
|
+
message.Mode = object.Mode ?? 0;
|
|
712
|
+
message.RemovalEventDefinitions =
|
|
713
|
+
object.RemovalEventDefinitions?.map((e) => UniqueConstraintEventDefinition.fromPartial(e)) || [];
|
|
642
714
|
return message;
|
|
643
715
|
},
|
|
644
716
|
};
|
package/generated/index.ts
CHANGED
|
@@ -15,7 +15,7 @@ export type { ConnectionServiceClient, ConnectionServiceImplementation } from '.
|
|
|
15
15
|
export { AllowNewEncryptionKeyRequest, ComplianceDefinition, DeleteEncryptionKeyRequest, ReleaseRequest, ReleaseResponse } from './compliance';
|
|
16
16
|
export type { ComplianceClient, ComplianceServiceImplementation } from './compliance';
|
|
17
17
|
|
|
18
|
-
export { Constraint, ConstraintScope, ConstraintsDefinition, ConstraintType, constraintTypeFromJSON, constraintTypeToJSON, OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition, RegisterConstraintsRequest, UniqueConstraintDefinition, UniqueConstraintEventDefinition, UniqueEventTypeConstraintDefinition } from './events_constraints';
|
|
18
|
+
export { Constraint, ConstraintScope, ConstraintsDefinition, ConstraintType, constraintTypeFromJSON, constraintTypeToJSON, OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition, RegisterConstraintsRequest, UniqueConstraintDefinition, UniqueConstraintEventDefinition, UniqueConstraintMode, uniqueConstraintModeFromJSON, uniqueConstraintModeToJSON, UniqueEventTypeConstraintDefinition } from './events_constraints';
|
|
19
19
|
export type { ConstraintsClient, ConstraintsServiceImplementation } from './events_constraints';
|
|
20
20
|
|
|
21
21
|
export { EventSequenceQueriesDefinition, IsStreamCompletedRequest, QueryResultBoolean } from './eventsequences';
|
package/package.json
CHANGED