@cratis/chronicle.contracts 19.156.7 → 19.157.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_operator.d.ts +72 -0
- package/dist/cjs/generated/events_constraints_operator.d.ts.map +1 -0
- package/dist/cjs/generated/events_constraints_operator.js +447 -0
- package/dist/cjs/generated/events_constraints_operator.js.map +1 -0
- package/dist/cjs/generated/eventtypes.d.ts +38 -0
- package/dist/cjs/generated/eventtypes.d.ts.map +1 -1
- package/dist/cjs/generated/eventtypes.js +466 -0
- package/dist/cjs/generated/eventtypes.js.map +1 -1
- package/dist/cjs/generated/index.d.ts +4 -2
- package/dist/cjs/generated/index.d.ts.map +1 -1
- package/dist/cjs/index.js +8 -1
- 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_operator.d.ts +72 -0
- package/dist/esm/generated/events_constraints_operator.d.ts.map +1 -0
- package/dist/esm/generated/events_constraints_operator.js +440 -0
- package/dist/esm/generated/events_constraints_operator.js.map +1 -0
- package/dist/esm/generated/eventtypes.d.ts +38 -0
- package/dist/esm/generated/eventtypes.d.ts.map +1 -1
- package/dist/esm/generated/eventtypes.js +463 -1
- package/dist/esm/generated/eventtypes.js.map +1 -1
- package/dist/esm/generated/index.d.ts +4 -2
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/index.js +3 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/generated/descriptorSet.js +1 -1
- package/dist/generated/descriptorSet.js.map +1 -1
- package/dist/generated/events_constraints_operator.d.ts +72 -0
- package/dist/generated/events_constraints_operator.d.ts.map +1 -0
- package/dist/generated/events_constraints_operator.js +439 -0
- package/dist/generated/events_constraints_operator.js.map +1 -0
- package/dist/generated/eventtypes.d.ts +38 -0
- package/dist/generated/eventtypes.d.ts.map +1 -1
- package/dist/generated/eventtypes.js +462 -0
- package/dist/generated/eventtypes.js.map +1 -1
- package/dist/generated/index.d.ts +4 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +3 -2
- package/dist/generated/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/descriptorSet.ts +1 -1
- package/generated/events_constraints_operator.ts +539 -0
- package/generated/eventtypes.ts +545 -0
- package/generated/index.ts +5 -2
- package/package.json +1 -1
package/generated/eventtypes.ts
CHANGED
|
@@ -184,6 +184,15 @@ export interface AllEventTypesRequest {
|
|
|
184
184
|
EventStore: string;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
+
export interface CheckEventTypeRegistrationsRequest {
|
|
188
|
+
EventStore: string;
|
|
189
|
+
Types: EventTypeRegistration[];
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface CheckEventTypeRegistrationsResponse {
|
|
193
|
+
Results: EventTypeCheckResult[];
|
|
194
|
+
}
|
|
195
|
+
|
|
187
196
|
export interface CommandResult {
|
|
188
197
|
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
189
198
|
CorrelationId: Guid | undefined;
|
|
@@ -194,6 +203,17 @@ export interface CommandResult {
|
|
|
194
203
|
AuthorizationFailureReason: string;
|
|
195
204
|
}
|
|
196
205
|
|
|
206
|
+
export interface CommandResultCheckEventTypeRegistrationsResponse {
|
|
207
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
208
|
+
CorrelationId: Guid | undefined;
|
|
209
|
+
IsAuthorized: boolean;
|
|
210
|
+
ValidationResults: ValidationResult[];
|
|
211
|
+
ExceptionMessages: string[];
|
|
212
|
+
ExceptionStackTrace: string;
|
|
213
|
+
AuthorizationFailureReason: string;
|
|
214
|
+
Response: CheckEventTypeRegistrationsResponse | undefined;
|
|
215
|
+
}
|
|
216
|
+
|
|
197
217
|
export interface CreateEventTypeRequest {
|
|
198
218
|
EventStore: string;
|
|
199
219
|
Name: string;
|
|
@@ -205,6 +225,15 @@ export interface EventType {
|
|
|
205
225
|
Tombstone: boolean;
|
|
206
226
|
}
|
|
207
227
|
|
|
228
|
+
export interface EventTypeCheckResult {
|
|
229
|
+
EventType: string;
|
|
230
|
+
Generation: number;
|
|
231
|
+
Accepted: boolean;
|
|
232
|
+
Reason: string;
|
|
233
|
+
Keyword: string;
|
|
234
|
+
Path: string;
|
|
235
|
+
}
|
|
236
|
+
|
|
208
237
|
export interface EventTypeDetailsResponse {
|
|
209
238
|
Type: EventType | undefined;
|
|
210
239
|
Owner: EventTypeOwner;
|
|
@@ -424,6 +453,164 @@ export const AllEventTypesRequest: MessageFns<AllEventTypesRequest> = {
|
|
|
424
453
|
},
|
|
425
454
|
};
|
|
426
455
|
|
|
456
|
+
function createBaseCheckEventTypeRegistrationsRequest(): CheckEventTypeRegistrationsRequest {
|
|
457
|
+
return { EventStore: "", Types: [] };
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
export const CheckEventTypeRegistrationsRequest: MessageFns<CheckEventTypeRegistrationsRequest> = {
|
|
461
|
+
encode(message: CheckEventTypeRegistrationsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
462
|
+
if (message.EventStore !== "") {
|
|
463
|
+
writer.uint32(10).string(message.EventStore);
|
|
464
|
+
}
|
|
465
|
+
for (const v of message.Types) {
|
|
466
|
+
EventTypeRegistration.encode(v!, writer.uint32(18).fork()).join();
|
|
467
|
+
}
|
|
468
|
+
return writer;
|
|
469
|
+
},
|
|
470
|
+
|
|
471
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CheckEventTypeRegistrationsRequest {
|
|
472
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
473
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
474
|
+
if (previousRecursionDepth >= 100) {
|
|
475
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
476
|
+
}
|
|
477
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
478
|
+
try {
|
|
479
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
480
|
+
const message = createBaseCheckEventTypeRegistrationsRequest();
|
|
481
|
+
while (reader.pos < end) {
|
|
482
|
+
const tag = reader.uint32();
|
|
483
|
+
switch (tag >>> 3) {
|
|
484
|
+
case 1: {
|
|
485
|
+
if (tag !== 10) {
|
|
486
|
+
break;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
message.EventStore = reader.string();
|
|
490
|
+
continue;
|
|
491
|
+
}
|
|
492
|
+
case 2: {
|
|
493
|
+
if (tag !== 18) {
|
|
494
|
+
break;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
message.Types.push(EventTypeRegistration.decode(reader, reader.uint32()));
|
|
498
|
+
continue;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
502
|
+
break;
|
|
503
|
+
}
|
|
504
|
+
reader.skip(tag & 7);
|
|
505
|
+
}
|
|
506
|
+
return message;
|
|
507
|
+
} finally {
|
|
508
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
|
|
512
|
+
fromJSON(object: any): CheckEventTypeRegistrationsRequest {
|
|
513
|
+
return {
|
|
514
|
+
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
515
|
+
Types: globalThis.Array.isArray(object?.Types)
|
|
516
|
+
? object.Types.map((e: any) => EventTypeRegistration.fromJSON(e))
|
|
517
|
+
: [],
|
|
518
|
+
};
|
|
519
|
+
},
|
|
520
|
+
|
|
521
|
+
toJSON(message: CheckEventTypeRegistrationsRequest): unknown {
|
|
522
|
+
const obj: any = {};
|
|
523
|
+
if (message.EventStore !== "") {
|
|
524
|
+
obj.EventStore = message.EventStore;
|
|
525
|
+
}
|
|
526
|
+
if (message.Types?.length) {
|
|
527
|
+
obj.Types = message.Types.map((e) => EventTypeRegistration.toJSON(e));
|
|
528
|
+
}
|
|
529
|
+
return obj;
|
|
530
|
+
},
|
|
531
|
+
|
|
532
|
+
create(base?: DeepPartial<CheckEventTypeRegistrationsRequest>): CheckEventTypeRegistrationsRequest {
|
|
533
|
+
return CheckEventTypeRegistrationsRequest.fromPartial(base ?? {});
|
|
534
|
+
},
|
|
535
|
+
fromPartial(object: DeepPartial<CheckEventTypeRegistrationsRequest>): CheckEventTypeRegistrationsRequest {
|
|
536
|
+
const message = createBaseCheckEventTypeRegistrationsRequest();
|
|
537
|
+
message.EventStore = object.EventStore ?? "";
|
|
538
|
+
message.Types = object.Types?.map((e) => EventTypeRegistration.fromPartial(e)) || [];
|
|
539
|
+
return message;
|
|
540
|
+
},
|
|
541
|
+
};
|
|
542
|
+
|
|
543
|
+
function createBaseCheckEventTypeRegistrationsResponse(): CheckEventTypeRegistrationsResponse {
|
|
544
|
+
return { Results: [] };
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
export const CheckEventTypeRegistrationsResponse: MessageFns<CheckEventTypeRegistrationsResponse> = {
|
|
548
|
+
encode(message: CheckEventTypeRegistrationsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
549
|
+
for (const v of message.Results) {
|
|
550
|
+
EventTypeCheckResult.encode(v!, writer.uint32(10).fork()).join();
|
|
551
|
+
}
|
|
552
|
+
return writer;
|
|
553
|
+
},
|
|
554
|
+
|
|
555
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CheckEventTypeRegistrationsResponse {
|
|
556
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
557
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
558
|
+
if (previousRecursionDepth >= 100) {
|
|
559
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
560
|
+
}
|
|
561
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
562
|
+
try {
|
|
563
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
564
|
+
const message = createBaseCheckEventTypeRegistrationsResponse();
|
|
565
|
+
while (reader.pos < end) {
|
|
566
|
+
const tag = reader.uint32();
|
|
567
|
+
switch (tag >>> 3) {
|
|
568
|
+
case 1: {
|
|
569
|
+
if (tag !== 10) {
|
|
570
|
+
break;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
message.Results.push(EventTypeCheckResult.decode(reader, reader.uint32()));
|
|
574
|
+
continue;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
578
|
+
break;
|
|
579
|
+
}
|
|
580
|
+
reader.skip(tag & 7);
|
|
581
|
+
}
|
|
582
|
+
return message;
|
|
583
|
+
} finally {
|
|
584
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
|
|
588
|
+
fromJSON(object: any): CheckEventTypeRegistrationsResponse {
|
|
589
|
+
return {
|
|
590
|
+
Results: globalThis.Array.isArray(object?.Results)
|
|
591
|
+
? object.Results.map((e: any) => EventTypeCheckResult.fromJSON(e))
|
|
592
|
+
: [],
|
|
593
|
+
};
|
|
594
|
+
},
|
|
595
|
+
|
|
596
|
+
toJSON(message: CheckEventTypeRegistrationsResponse): unknown {
|
|
597
|
+
const obj: any = {};
|
|
598
|
+
if (message.Results?.length) {
|
|
599
|
+
obj.Results = message.Results.map((e) => EventTypeCheckResult.toJSON(e));
|
|
600
|
+
}
|
|
601
|
+
return obj;
|
|
602
|
+
},
|
|
603
|
+
|
|
604
|
+
create(base?: DeepPartial<CheckEventTypeRegistrationsResponse>): CheckEventTypeRegistrationsResponse {
|
|
605
|
+
return CheckEventTypeRegistrationsResponse.fromPartial(base ?? {});
|
|
606
|
+
},
|
|
607
|
+
fromPartial(object: DeepPartial<CheckEventTypeRegistrationsResponse>): CheckEventTypeRegistrationsResponse {
|
|
608
|
+
const message = createBaseCheckEventTypeRegistrationsResponse();
|
|
609
|
+
message.Results = object.Results?.map((e) => EventTypeCheckResult.fromPartial(e)) || [];
|
|
610
|
+
return message;
|
|
611
|
+
},
|
|
612
|
+
};
|
|
613
|
+
|
|
427
614
|
function createBaseCommandResult(): CommandResult {
|
|
428
615
|
return {
|
|
429
616
|
CorrelationId: undefined,
|
|
@@ -588,6 +775,198 @@ export const CommandResult: MessageFns<CommandResult> = {
|
|
|
588
775
|
},
|
|
589
776
|
};
|
|
590
777
|
|
|
778
|
+
function createBaseCommandResultCheckEventTypeRegistrationsResponse(): CommandResultCheckEventTypeRegistrationsResponse {
|
|
779
|
+
return {
|
|
780
|
+
CorrelationId: undefined,
|
|
781
|
+
IsAuthorized: false,
|
|
782
|
+
ValidationResults: [],
|
|
783
|
+
ExceptionMessages: [],
|
|
784
|
+
ExceptionStackTrace: "",
|
|
785
|
+
AuthorizationFailureReason: "",
|
|
786
|
+
Response: undefined,
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
export const CommandResultCheckEventTypeRegistrationsResponse: MessageFns<
|
|
791
|
+
CommandResultCheckEventTypeRegistrationsResponse
|
|
792
|
+
> = {
|
|
793
|
+
encode(
|
|
794
|
+
message: CommandResultCheckEventTypeRegistrationsResponse,
|
|
795
|
+
writer: BinaryWriter = new BinaryWriter(),
|
|
796
|
+
): BinaryWriter {
|
|
797
|
+
if (message.CorrelationId !== undefined) {
|
|
798
|
+
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
799
|
+
}
|
|
800
|
+
if (message.IsAuthorized !== false) {
|
|
801
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
802
|
+
}
|
|
803
|
+
for (const v of message.ValidationResults) {
|
|
804
|
+
ValidationResult.encode(v!, writer.uint32(26).fork()).join();
|
|
805
|
+
}
|
|
806
|
+
for (const v of message.ExceptionMessages) {
|
|
807
|
+
writer.uint32(34).string(v!);
|
|
808
|
+
}
|
|
809
|
+
if (message.ExceptionStackTrace !== "") {
|
|
810
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
811
|
+
}
|
|
812
|
+
if (message.AuthorizationFailureReason !== "") {
|
|
813
|
+
writer.uint32(50).string(message.AuthorizationFailureReason);
|
|
814
|
+
}
|
|
815
|
+
if (message.Response !== undefined) {
|
|
816
|
+
CheckEventTypeRegistrationsResponse.encode(message.Response, writer.uint32(58).fork()).join();
|
|
817
|
+
}
|
|
818
|
+
return writer;
|
|
819
|
+
},
|
|
820
|
+
|
|
821
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CommandResultCheckEventTypeRegistrationsResponse {
|
|
822
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
823
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
824
|
+
if (previousRecursionDepth >= 100) {
|
|
825
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
826
|
+
}
|
|
827
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
828
|
+
try {
|
|
829
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
830
|
+
const message = createBaseCommandResultCheckEventTypeRegistrationsResponse();
|
|
831
|
+
while (reader.pos < end) {
|
|
832
|
+
const tag = reader.uint32();
|
|
833
|
+
switch (tag >>> 3) {
|
|
834
|
+
case 1: {
|
|
835
|
+
if (tag !== 10) {
|
|
836
|
+
break;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
message.CorrelationId = Guid.decode(reader, reader.uint32());
|
|
840
|
+
continue;
|
|
841
|
+
}
|
|
842
|
+
case 2: {
|
|
843
|
+
if (tag !== 16) {
|
|
844
|
+
break;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
message.IsAuthorized = reader.bool();
|
|
848
|
+
continue;
|
|
849
|
+
}
|
|
850
|
+
case 3: {
|
|
851
|
+
if (tag !== 26) {
|
|
852
|
+
break;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
856
|
+
continue;
|
|
857
|
+
}
|
|
858
|
+
case 4: {
|
|
859
|
+
if (tag !== 34) {
|
|
860
|
+
break;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
message.ExceptionMessages.push(reader.string());
|
|
864
|
+
continue;
|
|
865
|
+
}
|
|
866
|
+
case 5: {
|
|
867
|
+
if (tag !== 42) {
|
|
868
|
+
break;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
message.ExceptionStackTrace = reader.string();
|
|
872
|
+
continue;
|
|
873
|
+
}
|
|
874
|
+
case 6: {
|
|
875
|
+
if (tag !== 50) {
|
|
876
|
+
break;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
message.AuthorizationFailureReason = reader.string();
|
|
880
|
+
continue;
|
|
881
|
+
}
|
|
882
|
+
case 7: {
|
|
883
|
+
if (tag !== 58) {
|
|
884
|
+
break;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
message.Response = CheckEventTypeRegistrationsResponse.decode(reader, reader.uint32());
|
|
888
|
+
continue;
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
892
|
+
break;
|
|
893
|
+
}
|
|
894
|
+
reader.skip(tag & 7);
|
|
895
|
+
}
|
|
896
|
+
return message;
|
|
897
|
+
} finally {
|
|
898
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
|
|
902
|
+
fromJSON(object: any): CommandResultCheckEventTypeRegistrationsResponse {
|
|
903
|
+
return {
|
|
904
|
+
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
905
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
906
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
907
|
+
? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
|
|
908
|
+
: [],
|
|
909
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
910
|
+
? object.ExceptionMessages.map((e: any) => globalThis.String(e))
|
|
911
|
+
: [],
|
|
912
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
913
|
+
AuthorizationFailureReason: isSet(object.AuthorizationFailureReason)
|
|
914
|
+
? globalThis.String(object.AuthorizationFailureReason)
|
|
915
|
+
: "",
|
|
916
|
+
Response: isSet(object.Response) ? CheckEventTypeRegistrationsResponse.fromJSON(object.Response) : undefined,
|
|
917
|
+
};
|
|
918
|
+
},
|
|
919
|
+
|
|
920
|
+
toJSON(message: CommandResultCheckEventTypeRegistrationsResponse): unknown {
|
|
921
|
+
const obj: any = {};
|
|
922
|
+
if (message.CorrelationId !== undefined) {
|
|
923
|
+
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
924
|
+
}
|
|
925
|
+
if (message.IsAuthorized !== false) {
|
|
926
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
927
|
+
}
|
|
928
|
+
if (message.ValidationResults?.length) {
|
|
929
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
930
|
+
}
|
|
931
|
+
if (message.ExceptionMessages?.length) {
|
|
932
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
933
|
+
}
|
|
934
|
+
if (message.ExceptionStackTrace !== "") {
|
|
935
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
936
|
+
}
|
|
937
|
+
if (message.AuthorizationFailureReason !== "") {
|
|
938
|
+
obj.AuthorizationFailureReason = message.AuthorizationFailureReason;
|
|
939
|
+
}
|
|
940
|
+
if (message.Response !== undefined) {
|
|
941
|
+
obj.Response = CheckEventTypeRegistrationsResponse.toJSON(message.Response);
|
|
942
|
+
}
|
|
943
|
+
return obj;
|
|
944
|
+
},
|
|
945
|
+
|
|
946
|
+
create(
|
|
947
|
+
base?: DeepPartial<CommandResultCheckEventTypeRegistrationsResponse>,
|
|
948
|
+
): CommandResultCheckEventTypeRegistrationsResponse {
|
|
949
|
+
return CommandResultCheckEventTypeRegistrationsResponse.fromPartial(base ?? {});
|
|
950
|
+
},
|
|
951
|
+
fromPartial(
|
|
952
|
+
object: DeepPartial<CommandResultCheckEventTypeRegistrationsResponse>,
|
|
953
|
+
): CommandResultCheckEventTypeRegistrationsResponse {
|
|
954
|
+
const message = createBaseCommandResultCheckEventTypeRegistrationsResponse();
|
|
955
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
956
|
+
? Guid.fromPartial(object.CorrelationId)
|
|
957
|
+
: undefined;
|
|
958
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
959
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
960
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
961
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
962
|
+
message.AuthorizationFailureReason = object.AuthorizationFailureReason ?? "";
|
|
963
|
+
message.Response = (object.Response !== undefined && object.Response !== null)
|
|
964
|
+
? CheckEventTypeRegistrationsResponse.fromPartial(object.Response)
|
|
965
|
+
: undefined;
|
|
966
|
+
return message;
|
|
967
|
+
},
|
|
968
|
+
};
|
|
969
|
+
|
|
591
970
|
function createBaseCreateEventTypeRequest(): CreateEventTypeRequest {
|
|
592
971
|
return { EventStore: "", Name: "" };
|
|
593
972
|
}
|
|
@@ -774,6 +1153,155 @@ export const EventType: MessageFns<EventType> = {
|
|
|
774
1153
|
},
|
|
775
1154
|
};
|
|
776
1155
|
|
|
1156
|
+
function createBaseEventTypeCheckResult(): EventTypeCheckResult {
|
|
1157
|
+
return { EventType: "", Generation: 0, Accepted: false, Reason: "", Keyword: "", Path: "" };
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
export const EventTypeCheckResult: MessageFns<EventTypeCheckResult> = {
|
|
1161
|
+
encode(message: EventTypeCheckResult, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1162
|
+
if (message.EventType !== "") {
|
|
1163
|
+
writer.uint32(10).string(message.EventType);
|
|
1164
|
+
}
|
|
1165
|
+
if (message.Generation !== 0) {
|
|
1166
|
+
writer.uint32(16).uint32(message.Generation);
|
|
1167
|
+
}
|
|
1168
|
+
if (message.Accepted !== false) {
|
|
1169
|
+
writer.uint32(24).bool(message.Accepted);
|
|
1170
|
+
}
|
|
1171
|
+
if (message.Reason !== "") {
|
|
1172
|
+
writer.uint32(34).string(message.Reason);
|
|
1173
|
+
}
|
|
1174
|
+
if (message.Keyword !== "") {
|
|
1175
|
+
writer.uint32(42).string(message.Keyword);
|
|
1176
|
+
}
|
|
1177
|
+
if (message.Path !== "") {
|
|
1178
|
+
writer.uint32(50).string(message.Path);
|
|
1179
|
+
}
|
|
1180
|
+
return writer;
|
|
1181
|
+
},
|
|
1182
|
+
|
|
1183
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EventTypeCheckResult {
|
|
1184
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1185
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1186
|
+
if (previousRecursionDepth >= 100) {
|
|
1187
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1188
|
+
}
|
|
1189
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1190
|
+
try {
|
|
1191
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1192
|
+
const message = createBaseEventTypeCheckResult();
|
|
1193
|
+
while (reader.pos < end) {
|
|
1194
|
+
const tag = reader.uint32();
|
|
1195
|
+
switch (tag >>> 3) {
|
|
1196
|
+
case 1: {
|
|
1197
|
+
if (tag !== 10) {
|
|
1198
|
+
break;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
message.EventType = reader.string();
|
|
1202
|
+
continue;
|
|
1203
|
+
}
|
|
1204
|
+
case 2: {
|
|
1205
|
+
if (tag !== 16) {
|
|
1206
|
+
break;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
message.Generation = reader.uint32();
|
|
1210
|
+
continue;
|
|
1211
|
+
}
|
|
1212
|
+
case 3: {
|
|
1213
|
+
if (tag !== 24) {
|
|
1214
|
+
break;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
message.Accepted = reader.bool();
|
|
1218
|
+
continue;
|
|
1219
|
+
}
|
|
1220
|
+
case 4: {
|
|
1221
|
+
if (tag !== 34) {
|
|
1222
|
+
break;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
message.Reason = reader.string();
|
|
1226
|
+
continue;
|
|
1227
|
+
}
|
|
1228
|
+
case 5: {
|
|
1229
|
+
if (tag !== 42) {
|
|
1230
|
+
break;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
message.Keyword = reader.string();
|
|
1234
|
+
continue;
|
|
1235
|
+
}
|
|
1236
|
+
case 6: {
|
|
1237
|
+
if (tag !== 50) {
|
|
1238
|
+
break;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
message.Path = reader.string();
|
|
1242
|
+
continue;
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1246
|
+
break;
|
|
1247
|
+
}
|
|
1248
|
+
reader.skip(tag & 7);
|
|
1249
|
+
}
|
|
1250
|
+
return message;
|
|
1251
|
+
} finally {
|
|
1252
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1253
|
+
}
|
|
1254
|
+
},
|
|
1255
|
+
|
|
1256
|
+
fromJSON(object: any): EventTypeCheckResult {
|
|
1257
|
+
return {
|
|
1258
|
+
EventType: isSet(object.EventType) ? globalThis.String(object.EventType) : "",
|
|
1259
|
+
Generation: isSet(object.Generation) ? globalThis.Number(object.Generation) : 0,
|
|
1260
|
+
Accepted: isSet(object.Accepted) ? globalThis.Boolean(object.Accepted) : false,
|
|
1261
|
+
Reason: isSet(object.Reason) ? globalThis.String(object.Reason) : "",
|
|
1262
|
+
Keyword: isSet(object.Keyword) ? globalThis.String(object.Keyword) : "",
|
|
1263
|
+
Path: isSet(object.Path) ? globalThis.String(object.Path) : "",
|
|
1264
|
+
};
|
|
1265
|
+
},
|
|
1266
|
+
|
|
1267
|
+
toJSON(message: EventTypeCheckResult): unknown {
|
|
1268
|
+
const obj: any = {};
|
|
1269
|
+
if (message.EventType !== "") {
|
|
1270
|
+
obj.EventType = message.EventType;
|
|
1271
|
+
}
|
|
1272
|
+
if (message.Generation !== 0) {
|
|
1273
|
+
obj.Generation = Math.round(message.Generation);
|
|
1274
|
+
}
|
|
1275
|
+
if (message.Accepted !== false) {
|
|
1276
|
+
obj.Accepted = message.Accepted;
|
|
1277
|
+
}
|
|
1278
|
+
if (message.Reason !== "") {
|
|
1279
|
+
obj.Reason = message.Reason;
|
|
1280
|
+
}
|
|
1281
|
+
if (message.Keyword !== "") {
|
|
1282
|
+
obj.Keyword = message.Keyword;
|
|
1283
|
+
}
|
|
1284
|
+
if (message.Path !== "") {
|
|
1285
|
+
obj.Path = message.Path;
|
|
1286
|
+
}
|
|
1287
|
+
return obj;
|
|
1288
|
+
},
|
|
1289
|
+
|
|
1290
|
+
create(base?: DeepPartial<EventTypeCheckResult>): EventTypeCheckResult {
|
|
1291
|
+
return EventTypeCheckResult.fromPartial(base ?? {});
|
|
1292
|
+
},
|
|
1293
|
+
fromPartial(object: DeepPartial<EventTypeCheckResult>): EventTypeCheckResult {
|
|
1294
|
+
const message = createBaseEventTypeCheckResult();
|
|
1295
|
+
message.EventType = object.EventType ?? "";
|
|
1296
|
+
message.Generation = object.Generation ?? 0;
|
|
1297
|
+
message.Accepted = object.Accepted ?? false;
|
|
1298
|
+
message.Reason = object.Reason ?? "";
|
|
1299
|
+
message.Keyword = object.Keyword ?? "";
|
|
1300
|
+
message.Path = object.Path ?? "";
|
|
1301
|
+
return message;
|
|
1302
|
+
},
|
|
1303
|
+
};
|
|
1304
|
+
|
|
777
1305
|
function createBaseEventTypeDetailsResponse(): EventTypeDetailsResponse {
|
|
778
1306
|
return { Type: undefined, Owner: 0, Source: 0, Schema: "", Id: "" };
|
|
779
1307
|
}
|
|
@@ -1919,6 +2447,15 @@ export const EventTypesDefinition = {
|
|
|
1919
2447
|
responseStream: false,
|
|
1920
2448
|
options: {},
|
|
1921
2449
|
},
|
|
2450
|
+
checkEventTypeRegistrations: {
|
|
2451
|
+
name: "CheckEventTypeRegistrations",
|
|
2452
|
+
requestType: CheckEventTypeRegistrationsRequest as typeof CheckEventTypeRegistrationsRequest,
|
|
2453
|
+
requestStream: false,
|
|
2454
|
+
responseType:
|
|
2455
|
+
CommandResultCheckEventTypeRegistrationsResponse as typeof CommandResultCheckEventTypeRegistrationsResponse,
|
|
2456
|
+
responseStream: false,
|
|
2457
|
+
options: {},
|
|
2458
|
+
},
|
|
1922
2459
|
createEventType: {
|
|
1923
2460
|
name: "CreateEventType",
|
|
1924
2461
|
requestType: CreateEventTypeRequest as typeof CreateEventTypeRequest,
|
|
@@ -1964,6 +2501,10 @@ export interface EventTypesServiceImplementation<CallContextExt = {}> {
|
|
|
1964
2501
|
request: AllEventTypesRequest,
|
|
1965
2502
|
context: CallContext & CallContextExt,
|
|
1966
2503
|
): Promise<DeepPartial<QueryResultIEnumerableEventTypeDetailsResponse>>;
|
|
2504
|
+
checkEventTypeRegistrations(
|
|
2505
|
+
request: CheckEventTypeRegistrationsRequest,
|
|
2506
|
+
context: CallContext & CallContextExt,
|
|
2507
|
+
): Promise<DeepPartial<CommandResultCheckEventTypeRegistrationsResponse>>;
|
|
1967
2508
|
createEventType(
|
|
1968
2509
|
request: CreateEventTypeRequest,
|
|
1969
2510
|
context: CallContext & CallContextExt,
|
|
@@ -1991,6 +2532,10 @@ export interface EventTypesClient<CallOptionsExt = {}> {
|
|
|
1991
2532
|
request: DeepPartial<AllEventTypesRequest>,
|
|
1992
2533
|
options?: CallOptions & CallOptionsExt,
|
|
1993
2534
|
): Promise<QueryResultIEnumerableEventTypeDetailsResponse>;
|
|
2535
|
+
checkEventTypeRegistrations(
|
|
2536
|
+
request: DeepPartial<CheckEventTypeRegistrationsRequest>,
|
|
2537
|
+
options?: CallOptions & CallOptionsExt,
|
|
2538
|
+
): Promise<CommandResultCheckEventTypeRegistrationsResponse>;
|
|
1994
2539
|
createEventType(
|
|
1995
2540
|
request: DeepPartial<CreateEventTypeRequest>,
|
|
1996
2541
|
options?: CallOptions & CallOptionsExt,
|
package/generated/index.ts
CHANGED
|
@@ -18,6 +18,9 @@ export type { ComplianceClient, ComplianceServiceImplementation } from './compli
|
|
|
18
18
|
export { ClosesStreamConstraintDefinition, 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
|
+
export { CommandResultGuid, ConstraintIndexesDefinition, ReindexConstraintsRequest } from './events_constraints_operator';
|
|
22
|
+
export type { ConstraintIndexesClient, ConstraintIndexesServiceImplementation } from './events_constraints_operator';
|
|
23
|
+
|
|
21
24
|
export { EventSequenceQueriesDefinition, IsStreamCompletedRequest, QueryResultBoolean } from './eventsequences';
|
|
22
25
|
export type { EventSequenceQueriesClient, EventSequenceQueriesServiceImplementation } from './eventsequences';
|
|
23
26
|
|
|
@@ -27,7 +30,7 @@ export type { EventSourcesClient, EventSourcesServiceImplementation } from './ev
|
|
|
27
30
|
export { EnsureEventStoreRequest, EventStoreDeploymentResponse, EventStoreNamesResponse, EventStoresDefinition, GetEventStoreDeploymentRequest, QueryResultEventStoreDeploymentResponse, QueryResultIEnumerableEventStoreNamesResponse, RegisterDeploymentRequest } from './eventstores';
|
|
28
31
|
export type { EventStoresClient, EventStoresServiceImplementation } from './eventstores';
|
|
29
32
|
|
|
30
|
-
export { AllEventTypeGenerationsRequest, AllEventTypesRequest, CreateEventTypeRequest, EventTypeDetailsResponse, EventTypeGenerationDefinition, EventTypeMigrationDefinition, EventTypeMigrationOperation, EventTypeOwner, eventTypeOwnerFromJSON, eventTypeOwnerToJSON, EventTypeRegistration, EventTypesDefinition, EventTypeSource, eventTypeSourceFromJSON, eventTypeSourceToJSON, EventTypeVisibility, eventTypeVisibilityFromJSON, eventTypeVisibilityToJSON, ObserveEventTypesRequest, QueryResultIEnumerableEventTypeDetailsResponse, RegisterEventTypesRequest, RegisterSingleEventTypeRequest } from './eventtypes';
|
|
33
|
+
export { AllEventTypeGenerationsRequest, AllEventTypesRequest, CheckEventTypeRegistrationsRequest, CheckEventTypeRegistrationsResponse, CommandResultCheckEventTypeRegistrationsResponse, CreateEventTypeRequest, EventTypeCheckResult, EventTypeDetailsResponse, EventTypeGenerationDefinition, EventTypeMigrationDefinition, EventTypeMigrationOperation, EventTypeOwner, eventTypeOwnerFromJSON, eventTypeOwnerToJSON, EventTypeRegistration, EventTypesDefinition, EventTypeSource, eventTypeSourceFromJSON, eventTypeSourceToJSON, EventTypeVisibility, eventTypeVisibilityFromJSON, eventTypeVisibilityToJSON, ObserveEventTypesRequest, QueryResultIEnumerableEventTypeDetailsResponse, RegisterEventTypesRequest, RegisterSingleEventTypeRequest } from './eventtypes';
|
|
31
34
|
export type { EventTypesClient, EventTypesServiceImplementation } from './eventtypes';
|
|
32
35
|
|
|
33
36
|
export { AddExternalServiceRequest, AddExternalServiceRequest_HeadersEntry, AddExternalServiceRequest_OptionsEntry, AddExternalServicesRequest, AuthorizationType, authorizationTypeFromJSON, authorizationTypeToJSON, BasicAuthorization, BearerTokenAuthorization, DatabaseEndpointConfiguration, DatabaseEndpointConfiguration_OptionsEntry, ExternalServiceDefinition, ExternalServiceEndpoint, ExternalServiceEndpointType, externalServiceEndpointTypeFromJSON, externalServiceEndpointTypeToJSON, ExternalServiceResponse, ExternalServiceResponse_HeadersEntry, ExternalServiceResponse_OptionsEntry, ExternalServicesDefinition, GetExternalServicesRequest, HttpEndpointConfiguration, HttpEndpointConfiguration_HeadersEntry, OAuthAuthorization, ObserveExternalServicesRequest, OneOfBasicAuthorizationBearerTokenAuthorizationOAuthAuthorization, QueryResultIEnumerableExternalServiceResponse, RemoveExternalServiceRequest, RemoveExternalServicesRequest } from './externalservices';
|
|
@@ -96,7 +99,7 @@ export type { AdministratorsClient, AdministratorsServiceImplementation, Applica
|
|
|
96
99
|
export { AddSeedEntryRequest, EventSeedingDefinition, EventSeedingSupportResponse, EventSourceSeedEntries, EventTypeSeedEntries, GetGlobalSeedDataRequest, GetNamespaceSeedDataRequest, NamespacedSeedEntries, QueryResultEventSeedingSupportResponse, QueryResultSeedDataResponse, SeedDataResponse, SeedEventsRequest, SeedingEntry } from './seeding';
|
|
97
100
|
export type { EventSeedingClient, EventSeedingServiceImplementation } from './seeding';
|
|
98
101
|
|
|
99
|
-
export { AllEventSequencesRequest, AppendedEventResponse, AppendedEventsRequest, AppendManyForEventSourcesRequest, AppendManyForEventSourcesWithNamedTagsRequest, AppendManyOnceRequest, AppendManyOnceResponse, AppendManyOnceWithNamedTagsRequest, AppendManyRequest, AppendManyResponse, AppendManyWithNamedTagsRequest, AppendOnceRequest, AppendOnceResponse, AppendOnceWithNamedTagsRequest, AppendOutcome, appendOutcomeFromJSON, appendOutcomeToJSON, AppendRequest, AppendResponse, AppendWithNamedTagsRequest, ClosedStreamOrigin, closedStreamOriginFromJSON, closedStreamOriginToJSON, ClosedStreamResponse, ClosedStreamsRequest, CommandResultAppendManyOnceResponse, CommandResultAppendManyResponse, CommandResultAppendOnceResponse, CommandResultAppendResponse, CommandResultCompleteStreamResponse,
|
|
102
|
+
export { AllEventSequencesRequest, AppendedEventResponse, AppendedEventsRequest, AppendManyForEventSourcesRequest, AppendManyForEventSourcesWithNamedTagsRequest, AppendManyOnceRequest, AppendManyOnceResponse, AppendManyOnceWithNamedTagsRequest, AppendManyRequest, AppendManyResponse, AppendManyWithNamedTagsRequest, AppendOnceRequest, AppendOnceResponse, AppendOnceWithNamedTagsRequest, AppendOutcome, appendOutcomeFromJSON, appendOutcomeToJSON, AppendRequest, AppendResponse, AppendWithNamedTagsRequest, ClosedStreamOrigin, closedStreamOriginFromJSON, closedStreamOriginToJSON, ClosedStreamResponse, ClosedStreamsRequest, CommandResultAppendManyOnceResponse, CommandResultAppendManyResponse, CommandResultAppendOnceResponse, CommandResultAppendResponse, CommandResultCompleteStreamResponse, CommandResultReopenStreamScopeResponse, CommandResultVerifyContentResponse, CompensateRequest, CompleteStreamError, completeStreamErrorFromJSON, completeStreamErrorToJSON, CompleteStreamRequest, CompleteStreamResponse, CompleteStreamScopeRequest, ConcurrencyScope, ConcurrencyViolation, ConstraintViolation, ConstraintViolation_DetailsEntry, ContentVerificationResult, contentVerificationResultFromJSON, contentVerificationResultToJSON, CopyEventsForEventSourceRequest, EndOfRequest, EventForEventSourceId, EventForEventSourceIdWithNamedTags, EventMetadataResponse, EventSequenceNamesResponse, EventSequencePageResponse, EventSequencesDefinition, EventSequenceTailResponse, EventSourceConcurrencyScope, EventSourceEventsResponse, EventToAppend, EventToAppendWithNamedTags, ExportedEventResponse, ExportEventsRequest, ForEventSourceIdAndEventTypesRequest, FromSequenceNumberRequest, FromSequenceNumberWithErasedPropertiesRequest, HasEventsForEventSourceIdRequest, HistogramResolution, histogramResolutionFromJSON, histogramResolutionToJSON, IdempotencyConflictReason, idempotencyConflictReasonFromJSON, idempotencyConflictReasonToJSON, IdempotencyKeyConflict, IdentityResolution, identityResolutionFromJSON, identityResolutionToJSON, InitiatorType, initiatorTypeFromJSON, initiatorTypeToJSON, IsStreamScopeCompletedRequest, KeyedEventForEventSourceId, KeyedEventForEventSourceIdWithNamedTags, KeyValuePairInt32String, MetadataAtRequest, NamedTagQueryCriterion, PageRequest, ParseResolutionRequest, QueryEventsRequest, QueryEventsWithNamedTagsRequest, QueryResultEventSequencePageResponse, QueryResultEventSequenceTailResponse, QueryResultEventSourceEventsResponse, QueryResultHistogramResolution, QueryResultIEnumerableAppendedEventResponse, QueryResultIEnumerableClosedStreamResponse, QueryResultIEnumerableEventMetadataResponse, QueryResultIEnumerableEventSequenceNamesResponse, QueryResultIEnumerableExportedEventResponse, QueryResultIEnumerableSequenceHistogramBucketResponse, QueryResultSerializableDateTimeOffset, QueryResultStreamScopeCompletionResponse, RedactForEventSourceRequest, RedactRequest, ReopenStreamScopeError, reopenStreamScopeErrorFromJSON, reopenStreamScopeErrorToJSON, ReopenStreamScopeRequest, ReopenStreamScopeResponse, ResolvedIdentity, ReviseRequest, SequenceHistogramBucketResponse, SequenceHistogramRequest, SequenceHistogramWithNamedTagsRequest, StreamScopeCompletionResponse, TailSequenceNumberRequest, VerifyContentRequest, VerifyContentResponse } from './sequences';
|
|
100
103
|
export type { EventSequencesClient, EventSequencesServiceImplementation } from './sequences';
|
|
101
104
|
|
|
102
105
|
export { EventStatisticsResponse, EventTypeCount, QueryResultEventStatisticsResponse, StatisticsDefinition, StatisticsForEventStoreRequest, StatisticsForNamespaceRequest } from './statistics';
|
package/package.json
CHANGED