@cratis/chronicle.contracts 15.14.8 → 15.15.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/events_constraints.d.ts +7 -0
- package/dist/cjs/generated/events_constraints.d.ts.map +1 -1
- package/dist/cjs/generated/events_constraints.js +102 -1
- package/dist/cjs/generated/events_constraints.js.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/generated/events_constraints.d.ts +7 -0
- package/dist/esm/generated/events_constraints.d.ts.map +1 -1
- package/dist/esm/generated/events_constraints.js +102 -2
- package/dist/esm/generated/events_constraints.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/generated/events_constraints.d.ts +7 -0
- package/dist/generated/events_constraints.d.ts.map +1 -1
- package/dist/generated/events_constraints.js +101 -1
- package/dist/generated/events_constraints.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/events_constraints.ts +118 -1
- package/package.json +1 -1
|
@@ -16,6 +16,12 @@ export interface Constraint {
|
|
|
16
16
|
Type: ConstraintType;
|
|
17
17
|
RemovedWith: string;
|
|
18
18
|
Definition: OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition | undefined;
|
|
19
|
+
Scope: ConstraintScope | undefined;
|
|
20
|
+
}
|
|
21
|
+
export interface ConstraintScope {
|
|
22
|
+
EventSourceType: string;
|
|
23
|
+
EventStreamType: string;
|
|
24
|
+
EventStreamId: string;
|
|
19
25
|
}
|
|
20
26
|
export interface OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition {
|
|
21
27
|
Value0: UniqueConstraintDefinition | undefined;
|
|
@@ -37,6 +43,7 @@ export interface UniqueEventTypeConstraintDefinition {
|
|
|
37
43
|
EventTypeId: string;
|
|
38
44
|
}
|
|
39
45
|
export declare const Constraint: MessageFns<Constraint>;
|
|
46
|
+
export declare const ConstraintScope: MessageFns<ConstraintScope>;
|
|
40
47
|
export declare const OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition: MessageFns<OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition>;
|
|
41
48
|
export declare const RegisterConstraintsRequest: MessageFns<RegisterConstraintsRequest>;
|
|
42
49
|
export declare const UniqueConstraintDefinition: MessageFns<UniqueConstraintDefinition>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events_constraints.d.ts","sourceRoot":"","sources":["../../../generated/events_constraints.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,MAAM,EACN,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,eAAe,EAEpB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,4BAA4B,EAClC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,eAAO,MAAM,eAAe,kDAAkD,CAAC;AAE/E,oBAAY,cAAc;IACxB,OAAO,IAAI;IACX,MAAM,IAAI;IACV,eAAe,IAAI;IACnB,MAAM,IAAI;IACV,YAAY,KAAK;CAClB;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,GAAG,GAAG,cAAc,CAmBlE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAcnE;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,cAAc,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,kEAAkE,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"events_constraints.d.ts","sourceRoot":"","sources":["../../../generated/events_constraints.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,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AAE,MAAM,GAAG,CAAC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACjC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CACxC"}
|
|
@@ -48,7 +48,7 @@ function constraintTypeToJSON(object) {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
function createBaseConstraint() {
|
|
51
|
-
return { Name: "", Type: 0, RemovedWith: "", Definition: undefined };
|
|
51
|
+
return { Name: "", Type: 0, RemovedWith: "", Definition: undefined, Scope: undefined };
|
|
52
52
|
}
|
|
53
53
|
const Constraint = {
|
|
54
54
|
encode(message, writer = new wire.BinaryWriter()) {
|
|
@@ -64,6 +64,9 @@ const Constraint = {
|
|
|
64
64
|
if (message.Definition !== undefined) {
|
|
65
65
|
OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.encode(message.Definition, writer.uint32(34).fork()).join();
|
|
66
66
|
}
|
|
67
|
+
if (message.Scope !== undefined) {
|
|
68
|
+
ConstraintScope.encode(message.Scope, writer.uint32(42).fork()).join();
|
|
69
|
+
}
|
|
67
70
|
return writer;
|
|
68
71
|
},
|
|
69
72
|
decode(input, length) {
|
|
@@ -101,6 +104,13 @@ const Constraint = {
|
|
|
101
104
|
message.Definition = OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.decode(reader, reader.uint32());
|
|
102
105
|
continue;
|
|
103
106
|
}
|
|
107
|
+
case 5: {
|
|
108
|
+
if (tag !== 42) {
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
message.Scope = ConstraintScope.decode(reader, reader.uint32());
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
104
114
|
}
|
|
105
115
|
if ((tag & 7) === 4 || tag === 0) {
|
|
106
116
|
break;
|
|
@@ -117,6 +127,7 @@ const Constraint = {
|
|
|
117
127
|
Definition: isSet(object.Definition)
|
|
118
128
|
? OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.fromJSON(object.Definition)
|
|
119
129
|
: undefined,
|
|
130
|
+
Scope: isSet(object.Scope) ? ConstraintScope.fromJSON(object.Scope) : undefined,
|
|
120
131
|
};
|
|
121
132
|
},
|
|
122
133
|
toJSON(message) {
|
|
@@ -133,6 +144,9 @@ const Constraint = {
|
|
|
133
144
|
if (message.Definition !== undefined) {
|
|
134
145
|
obj.Definition = OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.toJSON(message.Definition);
|
|
135
146
|
}
|
|
147
|
+
if (message.Scope !== undefined) {
|
|
148
|
+
obj.Scope = ConstraintScope.toJSON(message.Scope);
|
|
149
|
+
}
|
|
136
150
|
return obj;
|
|
137
151
|
},
|
|
138
152
|
create(base) {
|
|
@@ -146,6 +160,92 @@ const Constraint = {
|
|
|
146
160
|
message.Definition = (object.Definition !== undefined && object.Definition !== null)
|
|
147
161
|
? OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.fromPartial(object.Definition)
|
|
148
162
|
: undefined;
|
|
163
|
+
message.Scope = (object.Scope !== undefined && object.Scope !== null)
|
|
164
|
+
? ConstraintScope.fromPartial(object.Scope)
|
|
165
|
+
: undefined;
|
|
166
|
+
return message;
|
|
167
|
+
},
|
|
168
|
+
};
|
|
169
|
+
function createBaseConstraintScope() {
|
|
170
|
+
return { EventSourceType: "", EventStreamType: "", EventStreamId: "" };
|
|
171
|
+
}
|
|
172
|
+
const ConstraintScope = {
|
|
173
|
+
encode(message, writer = new wire.BinaryWriter()) {
|
|
174
|
+
if (message.EventSourceType !== "") {
|
|
175
|
+
writer.uint32(10).string(message.EventSourceType);
|
|
176
|
+
}
|
|
177
|
+
if (message.EventStreamType !== "") {
|
|
178
|
+
writer.uint32(18).string(message.EventStreamType);
|
|
179
|
+
}
|
|
180
|
+
if (message.EventStreamId !== "") {
|
|
181
|
+
writer.uint32(26).string(message.EventStreamId);
|
|
182
|
+
}
|
|
183
|
+
return writer;
|
|
184
|
+
},
|
|
185
|
+
decode(input, length) {
|
|
186
|
+
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
187
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
188
|
+
const message = createBaseConstraintScope();
|
|
189
|
+
while (reader.pos < end) {
|
|
190
|
+
const tag = reader.uint32();
|
|
191
|
+
switch (tag >>> 3) {
|
|
192
|
+
case 1: {
|
|
193
|
+
if (tag !== 10) {
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
message.EventSourceType = reader.string();
|
|
197
|
+
continue;
|
|
198
|
+
}
|
|
199
|
+
case 2: {
|
|
200
|
+
if (tag !== 18) {
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
message.EventStreamType = reader.string();
|
|
204
|
+
continue;
|
|
205
|
+
}
|
|
206
|
+
case 3: {
|
|
207
|
+
if (tag !== 26) {
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
message.EventStreamId = reader.string();
|
|
211
|
+
continue;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
reader.skip(tag & 7);
|
|
218
|
+
}
|
|
219
|
+
return message;
|
|
220
|
+
},
|
|
221
|
+
fromJSON(object) {
|
|
222
|
+
return {
|
|
223
|
+
EventSourceType: isSet(object.EventSourceType) ? globalThis.String(object.EventSourceType) : "",
|
|
224
|
+
EventStreamType: isSet(object.EventStreamType) ? globalThis.String(object.EventStreamType) : "",
|
|
225
|
+
EventStreamId: isSet(object.EventStreamId) ? globalThis.String(object.EventStreamId) : "",
|
|
226
|
+
};
|
|
227
|
+
},
|
|
228
|
+
toJSON(message) {
|
|
229
|
+
const obj = {};
|
|
230
|
+
if (message.EventSourceType !== "") {
|
|
231
|
+
obj.EventSourceType = message.EventSourceType;
|
|
232
|
+
}
|
|
233
|
+
if (message.EventStreamType !== "") {
|
|
234
|
+
obj.EventStreamType = message.EventStreamType;
|
|
235
|
+
}
|
|
236
|
+
if (message.EventStreamId !== "") {
|
|
237
|
+
obj.EventStreamId = message.EventStreamId;
|
|
238
|
+
}
|
|
239
|
+
return obj;
|
|
240
|
+
},
|
|
241
|
+
create(base) {
|
|
242
|
+
return ConstraintScope.fromPartial(base ?? {});
|
|
243
|
+
},
|
|
244
|
+
fromPartial(object) {
|
|
245
|
+
const message = createBaseConstraintScope();
|
|
246
|
+
message.EventSourceType = object.EventSourceType ?? "";
|
|
247
|
+
message.EventStreamType = object.EventStreamType ?? "";
|
|
248
|
+
message.EventStreamId = object.EventStreamId ?? "";
|
|
149
249
|
return message;
|
|
150
250
|
},
|
|
151
251
|
};
|
|
@@ -500,6 +600,7 @@ function isSet(value) {
|
|
|
500
600
|
}
|
|
501
601
|
|
|
502
602
|
exports.Constraint = Constraint;
|
|
603
|
+
exports.ConstraintScope = ConstraintScope;
|
|
503
604
|
exports.ConstraintsClient = ConstraintsClient;
|
|
504
605
|
exports.ConstraintsService = ConstraintsService;
|
|
505
606
|
exports.OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition = OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events_constraints.js","sources":["../../../generated/events_constraints.ts"],"sourcesContent":["// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.11.6\n// protoc v5.28.3\n// source: events_constraints.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport {\n type CallOptions,\n type ChannelCredentials,\n Client,\n type ClientOptions,\n type ClientUnaryCall,\n type handleUnaryCall,\n makeGenericClientConstructor,\n type Metadata,\n type ServiceError,\n type UntypedServiceImplementation,\n} from \"@grpc/grpc-js\";\nimport { Empty } from \"./google/protobuf/empty\";\n\nexport const protobufPackage = \"Cratis.Chronicle.Contracts.Events.Constraints\";\n\nexport enum ConstraintType {\n Unknown = 0,\n Unique = 1,\n UniqueEventType = 2,\n Schema = 3,\n UNRECOGNIZED = -1,\n}\n\nexport function constraintTypeFromJSON(object: any): ConstraintType {\n switch (object) {\n case 0:\n case \"Unknown\":\n return ConstraintType.Unknown;\n case 1:\n case \"Unique\":\n return ConstraintType.Unique;\n case 2:\n case \"UniqueEventType\":\n return ConstraintType.UniqueEventType;\n case 3:\n case \"Schema\":\n return ConstraintType.Schema;\n case -1:\n case \"UNRECOGNIZED\":\n default:\n return ConstraintType.UNRECOGNIZED;\n }\n}\n\nexport function constraintTypeToJSON(object: ConstraintType): string {\n switch (object) {\n case ConstraintType.Unknown:\n return \"Unknown\";\n case ConstraintType.Unique:\n return \"Unique\";\n case ConstraintType.UniqueEventType:\n return \"UniqueEventType\";\n case ConstraintType.Schema:\n return \"Schema\";\n case ConstraintType.UNRECOGNIZED:\n default:\n return \"UNRECOGNIZED\";\n }\n}\n\nexport interface Constraint {\n Name: string;\n Type: ConstraintType;\n RemovedWith: string;\n Definition: OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition | undefined;\n}\n\nexport interface OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition {\n Value0: UniqueConstraintDefinition | undefined;\n Value1: UniqueEventTypeConstraintDefinition | undefined;\n}\n\nexport interface RegisterConstraintsRequest {\n EventStore: string;\n Constraints: Constraint[];\n}\n\nexport interface UniqueConstraintDefinition {\n EventDefinitions: UniqueConstraintEventDefinition[];\n IgnoreCasing: boolean;\n}\n\nexport interface UniqueConstraintEventDefinition {\n EventTypeId: string;\n Properties: string[];\n}\n\nexport interface UniqueEventTypeConstraintDefinition {\n EventTypeId: string;\n}\n\nfunction createBaseConstraint(): Constraint {\n return { Name: \"\", Type: 0, RemovedWith: \"\", Definition: undefined };\n}\n\nexport const Constraint: MessageFns<Constraint> = {\n encode(message: Constraint, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.Name !== \"\") {\n writer.uint32(10).string(message.Name);\n }\n if (message.Type !== 0) {\n writer.uint32(16).int32(message.Type);\n }\n if (message.RemovedWith !== \"\") {\n writer.uint32(26).string(message.RemovedWith);\n }\n if (message.Definition !== undefined) {\n OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.encode(\n message.Definition,\n writer.uint32(34).fork(),\n ).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Constraint {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseConstraint();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.Name = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 16) {\n break;\n }\n\n message.Type = reader.int32() as any;\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.RemovedWith = reader.string();\n continue;\n }\n case 4: {\n if (tag !== 34) {\n break;\n }\n\n message.Definition = OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.decode(\n reader,\n reader.uint32(),\n );\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Constraint {\n return {\n Name: isSet(object.Name) ? globalThis.String(object.Name) : \"\",\n Type: isSet(object.Type) ? constraintTypeFromJSON(object.Type) : 0,\n RemovedWith: isSet(object.RemovedWith) ? globalThis.String(object.RemovedWith) : \"\",\n Definition: isSet(object.Definition)\n ? OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.fromJSON(object.Definition)\n : undefined,\n };\n },\n\n toJSON(message: Constraint): unknown {\n const obj: any = {};\n if (message.Name !== \"\") {\n obj.Name = message.Name;\n }\n if (message.Type !== 0) {\n obj.Type = constraintTypeToJSON(message.Type);\n }\n if (message.RemovedWith !== \"\") {\n obj.RemovedWith = message.RemovedWith;\n }\n if (message.Definition !== undefined) {\n obj.Definition = OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.toJSON(message.Definition);\n }\n return obj;\n },\n\n create(base?: DeepPartial<Constraint>): Constraint {\n return Constraint.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<Constraint>): Constraint {\n const message = createBaseConstraint();\n message.Name = object.Name ?? \"\";\n message.Type = object.Type ?? 0;\n message.RemovedWith = object.RemovedWith ?? \"\";\n message.Definition = (object.Definition !== undefined && object.Definition !== null)\n ? OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.fromPartial(object.Definition)\n : undefined;\n return message;\n },\n};\n\nfunction createBaseOneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition(): OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition {\n return { Value0: undefined, Value1: undefined };\n}\n\nexport const OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition: MessageFns<\n OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition\n> = {\n encode(\n message: OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition,\n writer: BinaryWriter = new BinaryWriter(),\n ): BinaryWriter {\n if (message.Value0 !== undefined) {\n UniqueConstraintDefinition.encode(message.Value0, writer.uint32(10).fork()).join();\n }\n if (message.Value1 !== undefined) {\n UniqueEventTypeConstraintDefinition.encode(message.Value1, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(\n input: BinaryReader | Uint8Array,\n length?: number,\n ): OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseOneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.Value0 = UniqueConstraintDefinition.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.Value1 = UniqueEventTypeConstraintDefinition.decode(reader, reader.uint32());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition {\n return {\n Value0: isSet(object.Value0) ? UniqueConstraintDefinition.fromJSON(object.Value0) : undefined,\n Value1: isSet(object.Value1) ? UniqueEventTypeConstraintDefinition.fromJSON(object.Value1) : undefined,\n };\n },\n\n toJSON(message: OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition): unknown {\n const obj: any = {};\n if (message.Value0 !== undefined) {\n obj.Value0 = UniqueConstraintDefinition.toJSON(message.Value0);\n }\n if (message.Value1 !== undefined) {\n obj.Value1 = UniqueEventTypeConstraintDefinition.toJSON(message.Value1);\n }\n return obj;\n },\n\n create(\n base?: DeepPartial<OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition>,\n ): OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition {\n return OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.fromPartial(base ?? {});\n },\n fromPartial(\n object: DeepPartial<OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition>,\n ): OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition {\n const message = createBaseOneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition();\n message.Value0 = (object.Value0 !== undefined && object.Value0 !== null)\n ? UniqueConstraintDefinition.fromPartial(object.Value0)\n : undefined;\n message.Value1 = (object.Value1 !== undefined && object.Value1 !== null)\n ? UniqueEventTypeConstraintDefinition.fromPartial(object.Value1)\n : undefined;\n return message;\n },\n};\n\nfunction createBaseRegisterConstraintsRequest(): RegisterConstraintsRequest {\n return { EventStore: \"\", Constraints: [] };\n}\n\nexport const RegisterConstraintsRequest: MessageFns<RegisterConstraintsRequest> = {\n encode(message: RegisterConstraintsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.EventStore !== \"\") {\n writer.uint32(10).string(message.EventStore);\n }\n for (const v of message.Constraints) {\n Constraint.encode(v!, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): RegisterConstraintsRequest {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseRegisterConstraintsRequest();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.EventStore = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.Constraints.push(Constraint.decode(reader, reader.uint32()));\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): RegisterConstraintsRequest {\n return {\n EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : \"\",\n Constraints: globalThis.Array.isArray(object?.Constraints)\n ? object.Constraints.map((e: any) => Constraint.fromJSON(e))\n : [],\n };\n },\n\n toJSON(message: RegisterConstraintsRequest): unknown {\n const obj: any = {};\n if (message.EventStore !== \"\") {\n obj.EventStore = message.EventStore;\n }\n if (message.Constraints?.length) {\n obj.Constraints = message.Constraints.map((e) => Constraint.toJSON(e));\n }\n return obj;\n },\n\n create(base?: DeepPartial<RegisterConstraintsRequest>): RegisterConstraintsRequest {\n return RegisterConstraintsRequest.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<RegisterConstraintsRequest>): RegisterConstraintsRequest {\n const message = createBaseRegisterConstraintsRequest();\n message.EventStore = object.EventStore ?? \"\";\n message.Constraints = object.Constraints?.map((e) => Constraint.fromPartial(e)) || [];\n return message;\n },\n};\n\nfunction createBaseUniqueConstraintDefinition(): UniqueConstraintDefinition {\n return { EventDefinitions: [], IgnoreCasing: false };\n}\n\nexport const UniqueConstraintDefinition: MessageFns<UniqueConstraintDefinition> = {\n encode(message: UniqueConstraintDefinition, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n for (const v of message.EventDefinitions) {\n UniqueConstraintEventDefinition.encode(v!, writer.uint32(10).fork()).join();\n }\n if (message.IgnoreCasing !== false) {\n writer.uint32(16).bool(message.IgnoreCasing);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): UniqueConstraintDefinition {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseUniqueConstraintDefinition();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.EventDefinitions.push(UniqueConstraintEventDefinition.decode(reader, reader.uint32()));\n continue;\n }\n case 2: {\n if (tag !== 16) {\n break;\n }\n\n message.IgnoreCasing = reader.bool();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): UniqueConstraintDefinition {\n return {\n EventDefinitions: globalThis.Array.isArray(object?.EventDefinitions)\n ? object.EventDefinitions.map((e: any) => UniqueConstraintEventDefinition.fromJSON(e))\n : [],\n IgnoreCasing: isSet(object.IgnoreCasing) ? globalThis.Boolean(object.IgnoreCasing) : false,\n };\n },\n\n toJSON(message: UniqueConstraintDefinition): unknown {\n const obj: any = {};\n if (message.EventDefinitions?.length) {\n obj.EventDefinitions = message.EventDefinitions.map((e) => UniqueConstraintEventDefinition.toJSON(e));\n }\n if (message.IgnoreCasing !== false) {\n obj.IgnoreCasing = message.IgnoreCasing;\n }\n return obj;\n },\n\n create(base?: DeepPartial<UniqueConstraintDefinition>): UniqueConstraintDefinition {\n return UniqueConstraintDefinition.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<UniqueConstraintDefinition>): UniqueConstraintDefinition {\n const message = createBaseUniqueConstraintDefinition();\n message.EventDefinitions = object.EventDefinitions?.map((e) => UniqueConstraintEventDefinition.fromPartial(e)) ||\n [];\n message.IgnoreCasing = object.IgnoreCasing ?? false;\n return message;\n },\n};\n\nfunction createBaseUniqueConstraintEventDefinition(): UniqueConstraintEventDefinition {\n return { EventTypeId: \"\", Properties: [] };\n}\n\nexport const UniqueConstraintEventDefinition: MessageFns<UniqueConstraintEventDefinition> = {\n encode(message: UniqueConstraintEventDefinition, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.EventTypeId !== \"\") {\n writer.uint32(10).string(message.EventTypeId);\n }\n for (const v of message.Properties) {\n writer.uint32(18).string(v!);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): UniqueConstraintEventDefinition {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseUniqueConstraintEventDefinition();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.EventTypeId = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.Properties.push(reader.string());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): UniqueConstraintEventDefinition {\n return {\n EventTypeId: isSet(object.EventTypeId) ? globalThis.String(object.EventTypeId) : \"\",\n Properties: globalThis.Array.isArray(object?.Properties)\n ? object.Properties.map((e: any) => globalThis.String(e))\n : [],\n };\n },\n\n toJSON(message: UniqueConstraintEventDefinition): unknown {\n const obj: any = {};\n if (message.EventTypeId !== \"\") {\n obj.EventTypeId = message.EventTypeId;\n }\n if (message.Properties?.length) {\n obj.Properties = message.Properties;\n }\n return obj;\n },\n\n create(base?: DeepPartial<UniqueConstraintEventDefinition>): UniqueConstraintEventDefinition {\n return UniqueConstraintEventDefinition.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<UniqueConstraintEventDefinition>): UniqueConstraintEventDefinition {\n const message = createBaseUniqueConstraintEventDefinition();\n message.EventTypeId = object.EventTypeId ?? \"\";\n message.Properties = object.Properties?.map((e) => e) || [];\n return message;\n },\n};\n\nfunction createBaseUniqueEventTypeConstraintDefinition(): UniqueEventTypeConstraintDefinition {\n return { EventTypeId: \"\" };\n}\n\nexport const UniqueEventTypeConstraintDefinition: MessageFns<UniqueEventTypeConstraintDefinition> = {\n encode(message: UniqueEventTypeConstraintDefinition, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.EventTypeId !== \"\") {\n writer.uint32(10).string(message.EventTypeId);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): UniqueEventTypeConstraintDefinition {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseUniqueEventTypeConstraintDefinition();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.EventTypeId = reader.string();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): UniqueEventTypeConstraintDefinition {\n return { EventTypeId: isSet(object.EventTypeId) ? globalThis.String(object.EventTypeId) : \"\" };\n },\n\n toJSON(message: UniqueEventTypeConstraintDefinition): unknown {\n const obj: any = {};\n if (message.EventTypeId !== \"\") {\n obj.EventTypeId = message.EventTypeId;\n }\n return obj;\n },\n\n create(base?: DeepPartial<UniqueEventTypeConstraintDefinition>): UniqueEventTypeConstraintDefinition {\n return UniqueEventTypeConstraintDefinition.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<UniqueEventTypeConstraintDefinition>): UniqueEventTypeConstraintDefinition {\n const message = createBaseUniqueEventTypeConstraintDefinition();\n message.EventTypeId = object.EventTypeId ?? \"\";\n return message;\n },\n};\n\nexport type ConstraintsService = typeof ConstraintsService;\nexport const ConstraintsService = {\n register: {\n path: \"/Cratis.Chronicle.Contracts.Events.Constraints.Constraints/Register\" as const,\n requestStream: false as const,\n responseStream: false as const,\n requestSerialize: (value: RegisterConstraintsRequest): Buffer =>\n Buffer.from(RegisterConstraintsRequest.encode(value).finish()),\n requestDeserialize: (value: Buffer): RegisterConstraintsRequest => RegisterConstraintsRequest.decode(value),\n responseSerialize: (value: Empty): Buffer => Buffer.from(Empty.encode(value).finish()),\n responseDeserialize: (value: Buffer): Empty => Empty.decode(value),\n },\n} as const;\n\nexport interface ConstraintsServer extends UntypedServiceImplementation {\n register: handleUnaryCall<RegisterConstraintsRequest, Empty>;\n}\n\nexport interface ConstraintsClient extends Client {\n register(\n request: RegisterConstraintsRequest,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n register(\n request: RegisterConstraintsRequest,\n metadata: Metadata,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n register(\n request: RegisterConstraintsRequest,\n metadata: Metadata,\n options: Partial<CallOptions>,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n}\n\nexport const ConstraintsClient = makeGenericClientConstructor(\n ConstraintsService,\n \"Cratis.Chronicle.Contracts.Events.Constraints.Constraints\",\n) as unknown as {\n new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): ConstraintsClient;\n service: typeof ConstraintsService;\n serviceName: string;\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\nexport type DeepPartial<T> = T extends Builtin ? T\n : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\nexport interface MessageFns<T> {\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n"],"names":["ConstraintType","BinaryWriter","BinaryReader","Empty","makeGenericClientConstructor"],"mappings":";;;;;;AAwBYA;AAAZ,CAAA,UAAY,cAAc,EAAA;AACxB,IAAA,cAAA,CAAA,cAAA,CAAA,SAAA,CAAA,GAAA,CAAA,CAAA,GAAA,SAAW;AACX,IAAA,cAAA,CAAA,cAAA,CAAA,QAAA,CAAA,GAAA,CAAA,CAAA,GAAA,QAAU;AACV,IAAA,cAAA,CAAA,cAAA,CAAA,iBAAA,CAAA,GAAA,CAAA,CAAA,GAAA,iBAAmB;AACnB,IAAA,cAAA,CAAA,cAAA,CAAA,QAAA,CAAA,GAAA,CAAA,CAAA,GAAA,QAAU;AACV,IAAA,cAAA,CAAA,cAAA,CAAA,cAAA,CAAA,GAAA,EAAA,CAAA,GAAA,cAAiB;AACnB,CAAC,EANWA,sBAAc,KAAdA,sBAAc,GAAA,EAAA,CAAA,CAAA;AAQpB,SAAU,sBAAsB,CAAC,MAAW,EAAA;IAChD,QAAQ,MAAM;AACZ,QAAA,KAAK,CAAC;AACN,QAAA,KAAK,SAAS;YACZ,OAAOA,sBAAc,CAAC,OAAO;AAC/B,QAAA,KAAK,CAAC;AACN,QAAA,KAAK,QAAQ;YACX,OAAOA,sBAAc,CAAC,MAAM;AAC9B,QAAA,KAAK,CAAC;AACN,QAAA,KAAK,iBAAiB;YACpB,OAAOA,sBAAc,CAAC,eAAe;AACvC,QAAA,KAAK,CAAC;AACN,QAAA,KAAK,QAAQ;YACX,OAAOA,sBAAc,CAAC,MAAM;QAC9B,KAAK,EAAE;AACP,QAAA,KAAK,cAAc;AACnB,QAAA;YACE,OAAOA,sBAAc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AwD,EAAA;AAClE,QAAA,MAAM,OAAO,GAAG,6CAA6C,EAAE;QAC/D,OAAO,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,IAAI,EAAE;AAC9C,QAAA,OAAO,OAAO;IAChB,CAAC;;AAII,MAAM,kBAAkB,GAAG;AAChC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE,qEAA8E;AACpF,QAAA,aAAa,EAAE,KAAc;AAC7B,QAAA,cAAc,EAAE,KAAc;AAC9B,QAAA,gBAAgB,EAAE,CAAC,KAAiC,KAClD,MAAM,CAAC,IAAI,CAAC,0BAA0B,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC;QAChE,kBAAkB,EAAE,CAAC,KAAa,KAAiC,0BAA0B,CAAC,MAAM,CAAC,KAAK,CAAC;AAC3G,QAAA,iBAAiB,EAAE,CAAC,KAAY,KAAa,MAAM,CAAC,IAAI,CAACC,WAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC;QACtF,mBAAmB,EAAE,CAAC,KAAa,KAAYA,WAAK,CAAC,MAAM,CAAC,KAAK,CAAC;AACnE,KAAA;;AAyBI,MAAM,iBAAiB,GAAGC,iCAA4B,CAC3D,kBAAkB,EAClB,2DAA2D;AAe7D,SAAS,KAAK,CAAC,KAAU,EAAA;AACvB,IAAA,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;AAC9C;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"events_constraints.js","sources":["../../../generated/events_constraints.ts"],"sourcesContent":["// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.11.6\n// protoc v5.28.3\n// source: events_constraints.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport {\n type CallOptions,\n type ChannelCredentials,\n Client,\n type ClientOptions,\n type ClientUnaryCall,\n type handleUnaryCall,\n makeGenericClientConstructor,\n type Metadata,\n type ServiceError,\n type UntypedServiceImplementation,\n} from \"@grpc/grpc-js\";\nimport { Empty } from \"./google/protobuf/empty\";\n\nexport const protobufPackage = \"Cratis.Chronicle.Contracts.Events.Constraints\";\n\nexport enum ConstraintType {\n Unknown = 0,\n Unique = 1,\n UniqueEventType = 2,\n Schema = 3,\n UNRECOGNIZED = -1,\n}\n\nexport function constraintTypeFromJSON(object: any): ConstraintType {\n switch (object) {\n case 0:\n case \"Unknown\":\n return ConstraintType.Unknown;\n case 1:\n case \"Unique\":\n return ConstraintType.Unique;\n case 2:\n case \"UniqueEventType\":\n return ConstraintType.UniqueEventType;\n case 3:\n case \"Schema\":\n return ConstraintType.Schema;\n case -1:\n case \"UNRECOGNIZED\":\n default:\n return ConstraintType.UNRECOGNIZED;\n }\n}\n\nexport function constraintTypeToJSON(object: ConstraintType): string {\n switch (object) {\n case ConstraintType.Unknown:\n return \"Unknown\";\n case ConstraintType.Unique:\n return \"Unique\";\n case ConstraintType.UniqueEventType:\n return \"UniqueEventType\";\n case ConstraintType.Schema:\n return \"Schema\";\n case ConstraintType.UNRECOGNIZED:\n default:\n return \"UNRECOGNIZED\";\n }\n}\n\nexport interface Constraint {\n Name: string;\n Type: ConstraintType;\n RemovedWith: string;\n Definition: OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition | undefined;\n Scope: ConstraintScope | undefined;\n}\n\nexport interface ConstraintScope {\n EventSourceType: string;\n EventStreamType: string;\n EventStreamId: string;\n}\n\nexport interface OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition {\n Value0: UniqueConstraintDefinition | undefined;\n Value1: UniqueEventTypeConstraintDefinition | undefined;\n}\n\nexport interface RegisterConstraintsRequest {\n EventStore: string;\n Constraints: Constraint[];\n}\n\nexport interface UniqueConstraintDefinition {\n EventDefinitions: UniqueConstraintEventDefinition[];\n IgnoreCasing: boolean;\n}\n\nexport interface UniqueConstraintEventDefinition {\n EventTypeId: string;\n Properties: string[];\n}\n\nexport interface UniqueEventTypeConstraintDefinition {\n EventTypeId: string;\n}\n\nfunction createBaseConstraint(): Constraint {\n return { Name: \"\", Type: 0, RemovedWith: \"\", Definition: undefined, Scope: undefined };\n}\n\nexport const Constraint: MessageFns<Constraint> = {\n encode(message: Constraint, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.Name !== \"\") {\n writer.uint32(10).string(message.Name);\n }\n if (message.Type !== 0) {\n writer.uint32(16).int32(message.Type);\n }\n if (message.RemovedWith !== \"\") {\n writer.uint32(26).string(message.RemovedWith);\n }\n if (message.Definition !== undefined) {\n OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.encode(\n message.Definition,\n writer.uint32(34).fork(),\n ).join();\n }\n if (message.Scope !== undefined) {\n ConstraintScope.encode(message.Scope, writer.uint32(42).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): Constraint {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseConstraint();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.Name = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 16) {\n break;\n }\n\n message.Type = reader.int32() as any;\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.RemovedWith = reader.string();\n continue;\n }\n case 4: {\n if (tag !== 34) {\n break;\n }\n\n message.Definition = OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.decode(\n reader,\n reader.uint32(),\n );\n continue;\n }\n case 5: {\n if (tag !== 42) {\n break;\n }\n\n message.Scope = ConstraintScope.decode(reader, reader.uint32());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): Constraint {\n return {\n Name: isSet(object.Name) ? globalThis.String(object.Name) : \"\",\n Type: isSet(object.Type) ? constraintTypeFromJSON(object.Type) : 0,\n RemovedWith: isSet(object.RemovedWith) ? globalThis.String(object.RemovedWith) : \"\",\n Definition: isSet(object.Definition)\n ? OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.fromJSON(object.Definition)\n : undefined,\n Scope: isSet(object.Scope) ? ConstraintScope.fromJSON(object.Scope) : undefined,\n };\n },\n\n toJSON(message: Constraint): unknown {\n const obj: any = {};\n if (message.Name !== \"\") {\n obj.Name = message.Name;\n }\n if (message.Type !== 0) {\n obj.Type = constraintTypeToJSON(message.Type);\n }\n if (message.RemovedWith !== \"\") {\n obj.RemovedWith = message.RemovedWith;\n }\n if (message.Definition !== undefined) {\n obj.Definition = OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.toJSON(message.Definition);\n }\n if (message.Scope !== undefined) {\n obj.Scope = ConstraintScope.toJSON(message.Scope);\n }\n return obj;\n },\n\n create(base?: DeepPartial<Constraint>): Constraint {\n return Constraint.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<Constraint>): Constraint {\n const message = createBaseConstraint();\n message.Name = object.Name ?? \"\";\n message.Type = object.Type ?? 0;\n message.RemovedWith = object.RemovedWith ?? \"\";\n message.Definition = (object.Definition !== undefined && object.Definition !== null)\n ? OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.fromPartial(object.Definition)\n : undefined;\n message.Scope = (object.Scope !== undefined && object.Scope !== null)\n ? ConstraintScope.fromPartial(object.Scope)\n : undefined;\n return message;\n },\n};\n\nfunction createBaseConstraintScope(): ConstraintScope {\n return { EventSourceType: \"\", EventStreamType: \"\", EventStreamId: \"\" };\n}\n\nexport const ConstraintScope: MessageFns<ConstraintScope> = {\n encode(message: ConstraintScope, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.EventSourceType !== \"\") {\n writer.uint32(10).string(message.EventSourceType);\n }\n if (message.EventStreamType !== \"\") {\n writer.uint32(18).string(message.EventStreamType);\n }\n if (message.EventStreamId !== \"\") {\n writer.uint32(26).string(message.EventStreamId);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ConstraintScope {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseConstraintScope();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.EventSourceType = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.EventStreamType = reader.string();\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.EventStreamId = reader.string();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): ConstraintScope {\n return {\n EventSourceType: isSet(object.EventSourceType) ? globalThis.String(object.EventSourceType) : \"\",\n EventStreamType: isSet(object.EventStreamType) ? globalThis.String(object.EventStreamType) : \"\",\n EventStreamId: isSet(object.EventStreamId) ? globalThis.String(object.EventStreamId) : \"\",\n };\n },\n\n toJSON(message: ConstraintScope): unknown {\n const obj: any = {};\n if (message.EventSourceType !== \"\") {\n obj.EventSourceType = message.EventSourceType;\n }\n if (message.EventStreamType !== \"\") {\n obj.EventStreamType = message.EventStreamType;\n }\n if (message.EventStreamId !== \"\") {\n obj.EventStreamId = message.EventStreamId;\n }\n return obj;\n },\n\n create(base?: DeepPartial<ConstraintScope>): ConstraintScope {\n return ConstraintScope.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<ConstraintScope>): ConstraintScope {\n const message = createBaseConstraintScope();\n message.EventSourceType = object.EventSourceType ?? \"\";\n message.EventStreamType = object.EventStreamType ?? \"\";\n message.EventStreamId = object.EventStreamId ?? \"\";\n return message;\n },\n};\n\nfunction createBaseOneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition(): OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition {\n return { Value0: undefined, Value1: undefined };\n}\n\nexport const OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition: MessageFns<\n OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition\n> = {\n encode(\n message: OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition,\n writer: BinaryWriter = new BinaryWriter(),\n ): BinaryWriter {\n if (message.Value0 !== undefined) {\n UniqueConstraintDefinition.encode(message.Value0, writer.uint32(10).fork()).join();\n }\n if (message.Value1 !== undefined) {\n UniqueEventTypeConstraintDefinition.encode(message.Value1, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(\n input: BinaryReader | Uint8Array,\n length?: number,\n ): OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseOneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.Value0 = UniqueConstraintDefinition.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.Value1 = UniqueEventTypeConstraintDefinition.decode(reader, reader.uint32());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition {\n return {\n Value0: isSet(object.Value0) ? UniqueConstraintDefinition.fromJSON(object.Value0) : undefined,\n Value1: isSet(object.Value1) ? UniqueEventTypeConstraintDefinition.fromJSON(object.Value1) : undefined,\n };\n },\n\n toJSON(message: OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition): unknown {\n const obj: any = {};\n if (message.Value0 !== undefined) {\n obj.Value0 = UniqueConstraintDefinition.toJSON(message.Value0);\n }\n if (message.Value1 !== undefined) {\n obj.Value1 = UniqueEventTypeConstraintDefinition.toJSON(message.Value1);\n }\n return obj;\n },\n\n create(\n base?: DeepPartial<OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition>,\n ): OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition {\n return OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.fromPartial(base ?? {});\n },\n fromPartial(\n object: DeepPartial<OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition>,\n ): OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition {\n const message = createBaseOneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition();\n message.Value0 = (object.Value0 !== undefined && object.Value0 !== null)\n ? UniqueConstraintDefinition.fromPartial(object.Value0)\n : undefined;\n message.Value1 = (object.Value1 !== undefined && object.Value1 !== null)\n ? UniqueEventTypeConstraintDefinition.fromPartial(object.Value1)\n : undefined;\n return message;\n },\n};\n\nfunction createBaseRegisterConstraintsRequest(): RegisterConstraintsRequest {\n return { EventStore: \"\", Constraints: [] };\n}\n\nexport const RegisterConstraintsRequest: MessageFns<RegisterConstraintsRequest> = {\n encode(message: RegisterConstraintsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.EventStore !== \"\") {\n writer.uint32(10).string(message.EventStore);\n }\n for (const v of message.Constraints) {\n Constraint.encode(v!, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): RegisterConstraintsRequest {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseRegisterConstraintsRequest();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.EventStore = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.Constraints.push(Constraint.decode(reader, reader.uint32()));\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): RegisterConstraintsRequest {\n return {\n EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : \"\",\n Constraints: globalThis.Array.isArray(object?.Constraints)\n ? object.Constraints.map((e: any) => Constraint.fromJSON(e))\n : [],\n };\n },\n\n toJSON(message: RegisterConstraintsRequest): unknown {\n const obj: any = {};\n if (message.EventStore !== \"\") {\n obj.EventStore = message.EventStore;\n }\n if (message.Constraints?.length) {\n obj.Constraints = message.Constraints.map((e) => Constraint.toJSON(e));\n }\n return obj;\n },\n\n create(base?: DeepPartial<RegisterConstraintsRequest>): RegisterConstraintsRequest {\n return RegisterConstraintsRequest.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<RegisterConstraintsRequest>): RegisterConstraintsRequest {\n const message = createBaseRegisterConstraintsRequest();\n message.EventStore = object.EventStore ?? \"\";\n message.Constraints = object.Constraints?.map((e) => Constraint.fromPartial(e)) || [];\n return message;\n },\n};\n\nfunction createBaseUniqueConstraintDefinition(): UniqueConstraintDefinition {\n return { EventDefinitions: [], IgnoreCasing: false };\n}\n\nexport const UniqueConstraintDefinition: MessageFns<UniqueConstraintDefinition> = {\n encode(message: UniqueConstraintDefinition, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n for (const v of message.EventDefinitions) {\n UniqueConstraintEventDefinition.encode(v!, writer.uint32(10).fork()).join();\n }\n if (message.IgnoreCasing !== false) {\n writer.uint32(16).bool(message.IgnoreCasing);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): UniqueConstraintDefinition {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseUniqueConstraintDefinition();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.EventDefinitions.push(UniqueConstraintEventDefinition.decode(reader, reader.uint32()));\n continue;\n }\n case 2: {\n if (tag !== 16) {\n break;\n }\n\n message.IgnoreCasing = reader.bool();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): UniqueConstraintDefinition {\n return {\n EventDefinitions: globalThis.Array.isArray(object?.EventDefinitions)\n ? object.EventDefinitions.map((e: any) => UniqueConstraintEventDefinition.fromJSON(e))\n : [],\n IgnoreCasing: isSet(object.IgnoreCasing) ? globalThis.Boolean(object.IgnoreCasing) : false,\n };\n },\n\n toJSON(message: UniqueConstraintDefinition): unknown {\n const obj: any = {};\n if (message.EventDefinitions?.length) {\n obj.EventDefinitions = message.EventDefinitions.map((e) => UniqueConstraintEventDefinition.toJSON(e));\n }\n if (message.IgnoreCasing !== false) {\n obj.IgnoreCasing = message.IgnoreCasing;\n }\n return obj;\n },\n\n create(base?: DeepPartial<UniqueConstraintDefinition>): UniqueConstraintDefinition {\n return UniqueConstraintDefinition.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<UniqueConstraintDefinition>): UniqueConstraintDefinition {\n const message = createBaseUniqueConstraintDefinition();\n message.EventDefinitions = object.EventDefinitions?.map((e) => UniqueConstraintEventDefinition.fromPartial(e)) ||\n [];\n message.IgnoreCasing = object.IgnoreCasing ?? false;\n return message;\n },\n};\n\nfunction createBaseUniqueConstraintEventDefinition(): UniqueConstraintEventDefinition {\n return { EventTypeId: \"\", Properties: [] };\n}\n\nexport const UniqueConstraintEventDefinition: MessageFns<UniqueConstraintEventDefinition> = {\n encode(message: UniqueConstraintEventDefinition, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.EventTypeId !== \"\") {\n writer.uint32(10).string(message.EventTypeId);\n }\n for (const v of message.Properties) {\n writer.uint32(18).string(v!);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): UniqueConstraintEventDefinition {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseUniqueConstraintEventDefinition();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.EventTypeId = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.Properties.push(reader.string());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): UniqueConstraintEventDefinition {\n return {\n EventTypeId: isSet(object.EventTypeId) ? globalThis.String(object.EventTypeId) : \"\",\n Properties: globalThis.Array.isArray(object?.Properties)\n ? object.Properties.map((e: any) => globalThis.String(e))\n : [],\n };\n },\n\n toJSON(message: UniqueConstraintEventDefinition): unknown {\n const obj: any = {};\n if (message.EventTypeId !== \"\") {\n obj.EventTypeId = message.EventTypeId;\n }\n if (message.Properties?.length) {\n obj.Properties = message.Properties;\n }\n return obj;\n },\n\n create(base?: DeepPartial<UniqueConstraintEventDefinition>): UniqueConstraintEventDefinition {\n return UniqueConstraintEventDefinition.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<UniqueConstraintEventDefinition>): UniqueConstraintEventDefinition {\n const message = createBaseUniqueConstraintEventDefinition();\n message.EventTypeId = object.EventTypeId ?? \"\";\n message.Properties = object.Properties?.map((e) => e) || [];\n return message;\n },\n};\n\nfunction createBaseUniqueEventTypeConstraintDefinition(): UniqueEventTypeConstraintDefinition {\n return { EventTypeId: \"\" };\n}\n\nexport const UniqueEventTypeConstraintDefinition: MessageFns<UniqueEventTypeConstraintDefinition> = {\n encode(message: UniqueEventTypeConstraintDefinition, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.EventTypeId !== \"\") {\n writer.uint32(10).string(message.EventTypeId);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): UniqueEventTypeConstraintDefinition {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseUniqueEventTypeConstraintDefinition();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.EventTypeId = reader.string();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): UniqueEventTypeConstraintDefinition {\n return { EventTypeId: isSet(object.EventTypeId) ? globalThis.String(object.EventTypeId) : \"\" };\n },\n\n toJSON(message: UniqueEventTypeConstraintDefinition): unknown {\n const obj: any = {};\n if (message.EventTypeId !== \"\") {\n obj.EventTypeId = message.EventTypeId;\n }\n return obj;\n },\n\n create(base?: DeepPartial<UniqueEventTypeConstraintDefinition>): UniqueEventTypeConstraintDefinition {\n return UniqueEventTypeConstraintDefinition.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<UniqueEventTypeConstraintDefinition>): UniqueEventTypeConstraintDefinition {\n const message = createBaseUniqueEventTypeConstraintDefinition();\n message.EventTypeId = object.EventTypeId ?? \"\";\n return message;\n },\n};\n\nexport type ConstraintsService = typeof ConstraintsService;\nexport const ConstraintsService = {\n register: {\n path: \"/Cratis.Chronicle.Contracts.Events.Constraints.Constraints/Register\" as const,\n requestStream: false as const,\n responseStream: false as const,\n requestSerialize: (value: RegisterConstraintsRequest): Buffer =>\n Buffer.from(RegisterConstraintsRequest.encode(value).finish()),\n requestDeserialize: (value: Buffer): RegisterConstraintsRequest => RegisterConstraintsRequest.decode(value),\n responseSerialize: (value: Empty): Buffer => Buffer.from(Empty.encode(value).finish()),\n responseDeserialize: (value: Buffer): Empty => Empty.decode(value),\n },\n} as const;\n\nexport interface ConstraintsServer extends UntypedServiceImplementation {\n register: handleUnaryCall<RegisterConstraintsRequest, Empty>;\n}\n\nexport interface ConstraintsClient extends Client {\n register(\n request: RegisterConstraintsRequest,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n register(\n request: RegisterConstraintsRequest,\n metadata: Metadata,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n register(\n request: RegisterConstraintsRequest,\n metadata: Metadata,\n options: Partial<CallOptions>,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n}\n\nexport const ConstraintsClient = makeGenericClientConstructor(\n ConstraintsService,\n \"Cratis.Chronicle.Contracts.Events.Constraints.Constraints\",\n) as unknown as {\n new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): ConstraintsClient;\n service: typeof ConstraintsService;\n serviceName: string;\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\nexport type DeepPartial<T> = T extends Builtin ? T\n : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\nexport interface MessageFns<T> {\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n"],"names":["ConstraintType","BinaryWriter","BinaryReader","Empty","makeGenericClientConstructor"],"mappings":";;;;;;AAwBYA;AAAZ,CAAA,UAAY,cAAc,EAAA;AACxB,IAAA,cAAA,CAAA,cAAA,CAAA,SAAA,CAAA,GAAA,CAAA,CAAA,GAAA,SAAW;AACX,IAAA,cAAA,CAAA,cAAA,CAAA,QAAA,CAAA,GAAA,CAAA,CAAA,GAAA,QAAU;AACV,IAAA,cAAA,CAAA,cAAA,CAAA,iBAAA,CAAA,GAAA,CAAA,CAAA,GAAA,iBAAmB;AACnB,IAAA,cAAA,CAAA,cAAA,CAAA,Q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AAI,CAAC,0BAA0B,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC;QAChE,kBAAkB,EAAE,CAAC,KAAa,KAAiC,0BAA0B,CAAC,MAAM,CAAC,KAAK,CAAC;AAC3G,QAAA,iBAAiB,EAAE,CAAC,KAAY,KAAa,MAAM,CAAC,IAAI,CAACC,WAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC;QACtF,mBAAmB,EAAE,CAAC,KAAa,KAAYA,WAAK,CAAC,MAAM,CAAC,KAAK,CAAC;AACnE,KAAA;;AAyBI,MAAM,iBAAiB,GAAGC,iCAA4B,CAC3D,kBAAkB,EAClB,2DAA2D;AAe7D,SAAS,KAAK,CAAC,KAAU,EAAA;AACvB,IAAA,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;AAC9C;;;;;;;;;;;;;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -82,6 +82,7 @@ exports.IEnumerableEventTypeRegistration = events.IEnumerableEventTypeRegistrati
|
|
|
82
82
|
exports.RegisterEventTypesRequest = events.RegisterEventTypesRequest;
|
|
83
83
|
exports.RegisterSingleEventTypeRequest = events.RegisterSingleEventTypeRequest;
|
|
84
84
|
exports.Constraint = events_constraints.Constraint;
|
|
85
|
+
exports.ConstraintScope = events_constraints.ConstraintScope;
|
|
85
86
|
Object.defineProperty(exports, "ConstraintType", {
|
|
86
87
|
enumerable: true,
|
|
87
88
|
get: function () { return events_constraints.ConstraintType; }
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -16,6 +16,12 @@ export interface Constraint {
|
|
|
16
16
|
Type: ConstraintType;
|
|
17
17
|
RemovedWith: string;
|
|
18
18
|
Definition: OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition | undefined;
|
|
19
|
+
Scope: ConstraintScope | undefined;
|
|
20
|
+
}
|
|
21
|
+
export interface ConstraintScope {
|
|
22
|
+
EventSourceType: string;
|
|
23
|
+
EventStreamType: string;
|
|
24
|
+
EventStreamId: string;
|
|
19
25
|
}
|
|
20
26
|
export interface OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition {
|
|
21
27
|
Value0: UniqueConstraintDefinition | undefined;
|
|
@@ -37,6 +43,7 @@ export interface UniqueEventTypeConstraintDefinition {
|
|
|
37
43
|
EventTypeId: string;
|
|
38
44
|
}
|
|
39
45
|
export declare const Constraint: MessageFns<Constraint>;
|
|
46
|
+
export declare const ConstraintScope: MessageFns<ConstraintScope>;
|
|
40
47
|
export declare const OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition: MessageFns<OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition>;
|
|
41
48
|
export declare const RegisterConstraintsRequest: MessageFns<RegisterConstraintsRequest>;
|
|
42
49
|
export declare const UniqueConstraintDefinition: MessageFns<UniqueConstraintDefinition>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events_constraints.d.ts","sourceRoot":"","sources":["../../../generated/events_constraints.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,MAAM,EACN,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,eAAe,EAEpB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,4BAA4B,EAClC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,eAAO,MAAM,eAAe,kDAAkD,CAAC;AAE/E,oBAAY,cAAc;IACxB,OAAO,IAAI;IACX,MAAM,IAAI;IACV,eAAe,IAAI;IACnB,MAAM,IAAI;IACV,YAAY,KAAK;CAClB;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,GAAG,GAAG,cAAc,CAmBlE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAcnE;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,cAAc,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,kEAAkE,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"events_constraints.d.ts","sourceRoot":"","sources":["../../../generated/events_constraints.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,MAAM,EACN,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,eAAe,EAEpB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,4BAA4B,EAClC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,eAAO,MAAM,eAAe,kDAAkD,CAAC;AAE/E,oBAAY,cAAc;IACxB,OAAO,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 +46,7 @@ function constraintTypeToJSON(object) {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
function createBaseConstraint() {
|
|
49
|
-
return { Name: "", Type: 0, RemovedWith: "", Definition: undefined };
|
|
49
|
+
return { Name: "", Type: 0, RemovedWith: "", Definition: undefined, Scope: undefined };
|
|
50
50
|
}
|
|
51
51
|
const Constraint = {
|
|
52
52
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -62,6 +62,9 @@ const Constraint = {
|
|
|
62
62
|
if (message.Definition !== undefined) {
|
|
63
63
|
OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.encode(message.Definition, writer.uint32(34).fork()).join();
|
|
64
64
|
}
|
|
65
|
+
if (message.Scope !== undefined) {
|
|
66
|
+
ConstraintScope.encode(message.Scope, writer.uint32(42).fork()).join();
|
|
67
|
+
}
|
|
65
68
|
return writer;
|
|
66
69
|
},
|
|
67
70
|
decode(input, length) {
|
|
@@ -99,6 +102,13 @@ const Constraint = {
|
|
|
99
102
|
message.Definition = OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.decode(reader, reader.uint32());
|
|
100
103
|
continue;
|
|
101
104
|
}
|
|
105
|
+
case 5: {
|
|
106
|
+
if (tag !== 42) {
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
message.Scope = ConstraintScope.decode(reader, reader.uint32());
|
|
110
|
+
continue;
|
|
111
|
+
}
|
|
102
112
|
}
|
|
103
113
|
if ((tag & 7) === 4 || tag === 0) {
|
|
104
114
|
break;
|
|
@@ -115,6 +125,7 @@ const Constraint = {
|
|
|
115
125
|
Definition: isSet(object.Definition)
|
|
116
126
|
? OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.fromJSON(object.Definition)
|
|
117
127
|
: undefined,
|
|
128
|
+
Scope: isSet(object.Scope) ? ConstraintScope.fromJSON(object.Scope) : undefined,
|
|
118
129
|
};
|
|
119
130
|
},
|
|
120
131
|
toJSON(message) {
|
|
@@ -131,6 +142,9 @@ const Constraint = {
|
|
|
131
142
|
if (message.Definition !== undefined) {
|
|
132
143
|
obj.Definition = OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.toJSON(message.Definition);
|
|
133
144
|
}
|
|
145
|
+
if (message.Scope !== undefined) {
|
|
146
|
+
obj.Scope = ConstraintScope.toJSON(message.Scope);
|
|
147
|
+
}
|
|
134
148
|
return obj;
|
|
135
149
|
},
|
|
136
150
|
create(base) {
|
|
@@ -144,6 +158,92 @@ const Constraint = {
|
|
|
144
158
|
message.Definition = (object.Definition !== undefined && object.Definition !== null)
|
|
145
159
|
? OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition.fromPartial(object.Definition)
|
|
146
160
|
: undefined;
|
|
161
|
+
message.Scope = (object.Scope !== undefined && object.Scope !== null)
|
|
162
|
+
? ConstraintScope.fromPartial(object.Scope)
|
|
163
|
+
: undefined;
|
|
164
|
+
return message;
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
function createBaseConstraintScope() {
|
|
168
|
+
return { EventSourceType: "", EventStreamType: "", EventStreamId: "" };
|
|
169
|
+
}
|
|
170
|
+
const ConstraintScope = {
|
|
171
|
+
encode(message, writer = new BinaryWriter()) {
|
|
172
|
+
if (message.EventSourceType !== "") {
|
|
173
|
+
writer.uint32(10).string(message.EventSourceType);
|
|
174
|
+
}
|
|
175
|
+
if (message.EventStreamType !== "") {
|
|
176
|
+
writer.uint32(18).string(message.EventStreamType);
|
|
177
|
+
}
|
|
178
|
+
if (message.EventStreamId !== "") {
|
|
179
|
+
writer.uint32(26).string(message.EventStreamId);
|
|
180
|
+
}
|
|
181
|
+
return writer;
|
|
182
|
+
},
|
|
183
|
+
decode(input, length) {
|
|
184
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
185
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
186
|
+
const message = createBaseConstraintScope();
|
|
187
|
+
while (reader.pos < end) {
|
|
188
|
+
const tag = reader.uint32();
|
|
189
|
+
switch (tag >>> 3) {
|
|
190
|
+
case 1: {
|
|
191
|
+
if (tag !== 10) {
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
message.EventSourceType = reader.string();
|
|
195
|
+
continue;
|
|
196
|
+
}
|
|
197
|
+
case 2: {
|
|
198
|
+
if (tag !== 18) {
|
|
199
|
+
break;
|
|
200
|
+
}
|
|
201
|
+
message.EventStreamType = reader.string();
|
|
202
|
+
continue;
|
|
203
|
+
}
|
|
204
|
+
case 3: {
|
|
205
|
+
if (tag !== 26) {
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
208
|
+
message.EventStreamId = reader.string();
|
|
209
|
+
continue;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
reader.skip(tag & 7);
|
|
216
|
+
}
|
|
217
|
+
return message;
|
|
218
|
+
},
|
|
219
|
+
fromJSON(object) {
|
|
220
|
+
return {
|
|
221
|
+
EventSourceType: isSet(object.EventSourceType) ? globalThis.String(object.EventSourceType) : "",
|
|
222
|
+
EventStreamType: isSet(object.EventStreamType) ? globalThis.String(object.EventStreamType) : "",
|
|
223
|
+
EventStreamId: isSet(object.EventStreamId) ? globalThis.String(object.EventStreamId) : "",
|
|
224
|
+
};
|
|
225
|
+
},
|
|
226
|
+
toJSON(message) {
|
|
227
|
+
const obj = {};
|
|
228
|
+
if (message.EventSourceType !== "") {
|
|
229
|
+
obj.EventSourceType = message.EventSourceType;
|
|
230
|
+
}
|
|
231
|
+
if (message.EventStreamType !== "") {
|
|
232
|
+
obj.EventStreamType = message.EventStreamType;
|
|
233
|
+
}
|
|
234
|
+
if (message.EventStreamId !== "") {
|
|
235
|
+
obj.EventStreamId = message.EventStreamId;
|
|
236
|
+
}
|
|
237
|
+
return obj;
|
|
238
|
+
},
|
|
239
|
+
create(base) {
|
|
240
|
+
return ConstraintScope.fromPartial(base ?? {});
|
|
241
|
+
},
|
|
242
|
+
fromPartial(object) {
|
|
243
|
+
const message = createBaseConstraintScope();
|
|
244
|
+
message.EventSourceType = object.EventSourceType ?? "";
|
|
245
|
+
message.EventStreamType = object.EventStreamType ?? "";
|
|
246
|
+
message.EventStreamId = object.EventStreamId ?? "";
|
|
147
247
|
return message;
|
|
148
248
|
},
|
|
149
249
|
};
|
|
@@ -497,5 +597,5 @@ function isSet(value) {
|
|
|
497
597
|
return value !== null && value !== undefined;
|
|
498
598
|
}
|
|
499
599
|
|
|
500
|
-
export { Constraint, ConstraintType, ConstraintsClient, ConstraintsService, OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition, RegisterConstraintsRequest, UniqueConstraintDefinition, UniqueConstraintEventDefinition, UniqueEventTypeConstraintDefinition, constraintTypeFromJSON, constraintTypeToJSON };
|
|
600
|
+
export { Constraint, ConstraintScope, ConstraintType, ConstraintsClient, ConstraintsService, OneOfUniqueConstraintDefinitionUniqueEventTypeConstraintDefinition, RegisterConstraintsRequest, UniqueConstraintDefinition, UniqueConstraintEventDefinition, UniqueEventTypeConstraintDefinition, constraintTypeFromJSON, constraintTypeToJSON };
|
|
501
601
|
//# sourceMappingURL=events_constraints.js.map
|