@cratis/chronicle.contracts 19.27.4 → 19.29.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.
Files changed (34) hide show
  1. package/dist/cjs/generated/descriptorSet.js +1 -1
  2. package/dist/cjs/generated/descriptorSet.js.map +1 -1
  3. package/dist/cjs/generated/index.d.ts +1 -1
  4. package/dist/cjs/generated/index.d.ts.map +1 -1
  5. package/dist/cjs/generated/observation.d.ts +32 -0
  6. package/dist/cjs/generated/observation.d.ts.map +1 -1
  7. package/dist/cjs/generated/observation.js +265 -0
  8. package/dist/cjs/generated/observation.js.map +1 -1
  9. package/dist/cjs/index.js +8 -0
  10. package/dist/cjs/index.js.map +1 -1
  11. package/dist/esm/generated/descriptorSet.js +1 -1
  12. package/dist/esm/generated/descriptorSet.js.map +1 -1
  13. package/dist/esm/generated/index.d.ts +1 -1
  14. package/dist/esm/generated/index.d.ts.map +1 -1
  15. package/dist/esm/generated/observation.d.ts +32 -0
  16. package/dist/esm/generated/observation.d.ts.map +1 -1
  17. package/dist/esm/generated/observation.js +262 -1
  18. package/dist/esm/generated/observation.js.map +1 -1
  19. package/dist/esm/index.js +1 -1
  20. package/dist/generated/descriptorSet.js +1 -1
  21. package/dist/generated/descriptorSet.js.map +1 -1
  22. package/dist/generated/index.d.ts +1 -1
  23. package/dist/generated/index.d.ts.map +1 -1
  24. package/dist/generated/index.js +1 -1
  25. package/dist/generated/index.js.map +1 -1
  26. package/dist/generated/observation.d.ts +32 -0
  27. package/dist/generated/observation.d.ts.map +1 -1
  28. package/dist/generated/observation.js +261 -0
  29. package/dist/generated/observation.js.map +1 -1
  30. package/dist/tsconfig.tsbuildinfo +1 -1
  31. package/generated/descriptorSet.ts +1 -1
  32. package/generated/index.ts +1 -1
  33. package/generated/observation.ts +303 -0
  34. package/package.json +1 -1
@@ -39,7 +39,7 @@ export type { JobsClient, JobsServiceImplementation } from './jobs';
39
39
  export { AllNamespacesRequest, EnsureNamespaceRequest, NamespaceNamesResponse, NamespacesDefinition, ObserveNamespacesRequest, QueryResultIEnumerableNamespaceNamesResponse } from './namespaces';
40
40
  export type { NamespacesClient, NamespacesServiceImplementation } from './namespaces';
41
41
 
42
- export { AllObserversRequest, AppendedEventTypeTail, ClearFailedPartitions, ClearObserverQuarantine, FailedPartition, FailedPartitionAttempt, FailedPartitionsDefinition, FailureKind, failureKindFromJSON, failureKindToJSON, GetConnectedClientsForObserverRequest, GetFailedPartitionsRequest, GetObserverInformationRequest, GetReplayableObserversForEventTypesRequest, IEnumerableFailedPartition, IEnumerableObserverInformation, ObserverInformation, ObserverOwner, observerOwnerFromJSON, observerOwnerToJSON, ObserverRemovalOutcome, observerRemovalOutcomeFromJSON, observerRemovalOutcomeToJSON, ObserverRunningState, observerRunningStateFromJSON, observerRunningStateToJSON, ObserversDefinition, ObserverType, observerTypeFromJSON, observerTypeToJSON, PartitionRecoveryOutcome, partitionRecoveryOutcomeFromJSON, partitionRecoveryOutcomeToJSON, RemoveObserver, RemoveObserverResponse, Replay, ReplayPartition, ReplayResponse, RetryPartition, RetryPartitionResponse, WaitForObserverCompletionRequest, WaitForObserverCompletionResponse } from './observation';
42
+ export { AllObserversRequest, AppendedEventTypeTail, ClearFailedPartitions, ClearObserverQuarantine, ClearPartitionQuarantine, ClearPartitionQuarantineOutcome, clearPartitionQuarantineOutcomeFromJSON, clearPartitionQuarantineOutcomeToJSON, ClearPartitionQuarantineResponse, FailedPartition, FailedPartitionAttempt, FailedPartitionsDefinition, FailureKind, failureKindFromJSON, failureKindToJSON, GetConnectedClientsForObserverRequest, GetFailedPartitionsRequest, GetObserverInformationRequest, GetReplayableObserversForEventTypesRequest, IEnumerableFailedPartition, IEnumerableObserverInformation, ObserverInformation, ObserverOwner, observerOwnerFromJSON, observerOwnerToJSON, ObserverRemovalOutcome, observerRemovalOutcomeFromJSON, observerRemovalOutcomeToJSON, ObserverRunningState, observerRunningStateFromJSON, observerRunningStateToJSON, ObserversDefinition, ObserverType, observerTypeFromJSON, observerTypeToJSON, PartitionRecoveryOutcome, partitionRecoveryOutcomeFromJSON, partitionRecoveryOutcomeToJSON, RemoveObserver, RemoveObserverResponse, Replay, ReplayPartition, ReplayResponse, RetryPartition, RetryPartitionResponse, WaitForObserverCompletionRequest, WaitForObserverCompletionResponse } from './observation';
43
43
  export type { FailedPartitionsClient, FailedPartitionsServiceImplementation, ObserversClient, ObserversServiceImplementation } from './observation';
44
44
 
45
45
  export { AddEventStoreSubscriptions, EventStoreSubscriptionDefinition, EventStoreSubscriptionsDefinition, GetEventStoreSubscriptionsRequest, IEnumerableEventStoreSubscriptionDefinition, RemoveEventStoreSubscriptions } from './observation_eventstoresubscriptions';
@@ -12,6 +12,45 @@ import { Guid } from "./protobuf-net/bcl";
12
12
 
13
13
  export const protobufPackage = "Cratis.Chronicle.Contracts.Observation";
14
14
 
15
+ export enum ClearPartitionQuarantineOutcome {
16
+ Cleared = 0,
17
+ NotFound = 1,
18
+ NotQuarantined = 2,
19
+ UNRECOGNIZED = -1,
20
+ }
21
+
22
+ export function clearPartitionQuarantineOutcomeFromJSON(object: any): ClearPartitionQuarantineOutcome {
23
+ switch (object) {
24
+ case 0:
25
+ case "Cleared":
26
+ return ClearPartitionQuarantineOutcome.Cleared;
27
+ case 1:
28
+ case "NotFound":
29
+ return ClearPartitionQuarantineOutcome.NotFound;
30
+ case 2:
31
+ case "NotQuarantined":
32
+ return ClearPartitionQuarantineOutcome.NotQuarantined;
33
+ case -1:
34
+ case "UNRECOGNIZED":
35
+ default:
36
+ return ClearPartitionQuarantineOutcome.UNRECOGNIZED;
37
+ }
38
+ }
39
+
40
+ export function clearPartitionQuarantineOutcomeToJSON(object: ClearPartitionQuarantineOutcome): string {
41
+ switch (object) {
42
+ case ClearPartitionQuarantineOutcome.Cleared:
43
+ return "Cleared";
44
+ case ClearPartitionQuarantineOutcome.NotFound:
45
+ return "NotFound";
46
+ case ClearPartitionQuarantineOutcome.NotQuarantined:
47
+ return "NotQuarantined";
48
+ case ClearPartitionQuarantineOutcome.UNRECOGNIZED:
49
+ default:
50
+ return "UNRECOGNIZED";
51
+ }
52
+ }
53
+
15
54
  export enum FailureKind {
16
55
  FAILURE_KIND_Unknown = 0,
17
56
  Handling = 1,
@@ -318,6 +357,20 @@ export interface ClearObserverQuarantine {
318
357
  EventSequenceId: string;
319
358
  }
320
359
 
360
+ export interface ClearPartitionQuarantine {
361
+ EventStore: string;
362
+ Namespace: string;
363
+ ObserverId: string;
364
+ EventSequenceId: string;
365
+ Partition: string;
366
+ RetryImmediately: boolean;
367
+ }
368
+
369
+ export interface ClearPartitionQuarantineResponse {
370
+ Outcome: ClearPartitionQuarantineOutcome;
371
+ RetryOutcome: PartitionRecoveryOutcome;
372
+ }
373
+
321
374
  export interface ConnectedClient {
322
375
  ConnectionId: string;
323
376
  Version: string;
@@ -885,6 +938,240 @@ export const ClearObserverQuarantine: MessageFns<ClearObserverQuarantine> = {
885
938
  },
886
939
  };
887
940
 
941
+ function createBaseClearPartitionQuarantine(): ClearPartitionQuarantine {
942
+ return { EventStore: "", Namespace: "", ObserverId: "", EventSequenceId: "", Partition: "", RetryImmediately: false };
943
+ }
944
+
945
+ export const ClearPartitionQuarantine: MessageFns<ClearPartitionQuarantine> = {
946
+ encode(message: ClearPartitionQuarantine, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
947
+ if (message.EventStore !== "") {
948
+ writer.uint32(10).string(message.EventStore);
949
+ }
950
+ if (message.Namespace !== "") {
951
+ writer.uint32(18).string(message.Namespace);
952
+ }
953
+ if (message.ObserverId !== "") {
954
+ writer.uint32(26).string(message.ObserverId);
955
+ }
956
+ if (message.EventSequenceId !== "") {
957
+ writer.uint32(34).string(message.EventSequenceId);
958
+ }
959
+ if (message.Partition !== "") {
960
+ writer.uint32(42).string(message.Partition);
961
+ }
962
+ if (message.RetryImmediately !== false) {
963
+ writer.uint32(48).bool(message.RetryImmediately);
964
+ }
965
+ return writer;
966
+ },
967
+
968
+ decode(input: BinaryReader | Uint8Array, length?: number): ClearPartitionQuarantine {
969
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
970
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
971
+ if (previousRecursionDepth >= 100) {
972
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
973
+ }
974
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
975
+ try {
976
+ const end = length === undefined ? reader.len : reader.pos + length;
977
+ const message = createBaseClearPartitionQuarantine();
978
+ while (reader.pos < end) {
979
+ const tag = reader.uint32();
980
+ switch (tag >>> 3) {
981
+ case 1: {
982
+ if (tag !== 10) {
983
+ break;
984
+ }
985
+
986
+ message.EventStore = reader.string();
987
+ continue;
988
+ }
989
+ case 2: {
990
+ if (tag !== 18) {
991
+ break;
992
+ }
993
+
994
+ message.Namespace = reader.string();
995
+ continue;
996
+ }
997
+ case 3: {
998
+ if (tag !== 26) {
999
+ break;
1000
+ }
1001
+
1002
+ message.ObserverId = reader.string();
1003
+ continue;
1004
+ }
1005
+ case 4: {
1006
+ if (tag !== 34) {
1007
+ break;
1008
+ }
1009
+
1010
+ message.EventSequenceId = reader.string();
1011
+ continue;
1012
+ }
1013
+ case 5: {
1014
+ if (tag !== 42) {
1015
+ break;
1016
+ }
1017
+
1018
+ message.Partition = reader.string();
1019
+ continue;
1020
+ }
1021
+ case 6: {
1022
+ if (tag !== 48) {
1023
+ break;
1024
+ }
1025
+
1026
+ message.RetryImmediately = reader.bool();
1027
+ continue;
1028
+ }
1029
+ }
1030
+ if ((tag & 7) === 4 || tag === 0) {
1031
+ break;
1032
+ }
1033
+ reader.skip(tag & 7);
1034
+ }
1035
+ return message;
1036
+ } finally {
1037
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1038
+ }
1039
+ },
1040
+
1041
+ fromJSON(object: any): ClearPartitionQuarantine {
1042
+ return {
1043
+ EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
1044
+ Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
1045
+ ObserverId: isSet(object.ObserverId) ? globalThis.String(object.ObserverId) : "",
1046
+ EventSequenceId: isSet(object.EventSequenceId) ? globalThis.String(object.EventSequenceId) : "",
1047
+ Partition: isSet(object.Partition) ? globalThis.String(object.Partition) : "",
1048
+ RetryImmediately: isSet(object.RetryImmediately) ? globalThis.Boolean(object.RetryImmediately) : false,
1049
+ };
1050
+ },
1051
+
1052
+ toJSON(message: ClearPartitionQuarantine): unknown {
1053
+ const obj: any = {};
1054
+ if (message.EventStore !== "") {
1055
+ obj.EventStore = message.EventStore;
1056
+ }
1057
+ if (message.Namespace !== "") {
1058
+ obj.Namespace = message.Namespace;
1059
+ }
1060
+ if (message.ObserverId !== "") {
1061
+ obj.ObserverId = message.ObserverId;
1062
+ }
1063
+ if (message.EventSequenceId !== "") {
1064
+ obj.EventSequenceId = message.EventSequenceId;
1065
+ }
1066
+ if (message.Partition !== "") {
1067
+ obj.Partition = message.Partition;
1068
+ }
1069
+ if (message.RetryImmediately !== false) {
1070
+ obj.RetryImmediately = message.RetryImmediately;
1071
+ }
1072
+ return obj;
1073
+ },
1074
+
1075
+ create(base?: DeepPartial<ClearPartitionQuarantine>): ClearPartitionQuarantine {
1076
+ return ClearPartitionQuarantine.fromPartial(base ?? {});
1077
+ },
1078
+ fromPartial(object: DeepPartial<ClearPartitionQuarantine>): ClearPartitionQuarantine {
1079
+ const message = createBaseClearPartitionQuarantine();
1080
+ message.EventStore = object.EventStore ?? "";
1081
+ message.Namespace = object.Namespace ?? "";
1082
+ message.ObserverId = object.ObserverId ?? "";
1083
+ message.EventSequenceId = object.EventSequenceId ?? "";
1084
+ message.Partition = object.Partition ?? "";
1085
+ message.RetryImmediately = object.RetryImmediately ?? false;
1086
+ return message;
1087
+ },
1088
+ };
1089
+
1090
+ function createBaseClearPartitionQuarantineResponse(): ClearPartitionQuarantineResponse {
1091
+ return { Outcome: 0, RetryOutcome: 0 };
1092
+ }
1093
+
1094
+ export const ClearPartitionQuarantineResponse: MessageFns<ClearPartitionQuarantineResponse> = {
1095
+ encode(message: ClearPartitionQuarantineResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1096
+ if (message.Outcome !== 0) {
1097
+ writer.uint32(8).int32(message.Outcome);
1098
+ }
1099
+ if (message.RetryOutcome !== 0) {
1100
+ writer.uint32(16).int32(message.RetryOutcome);
1101
+ }
1102
+ return writer;
1103
+ },
1104
+
1105
+ decode(input: BinaryReader | Uint8Array, length?: number): ClearPartitionQuarantineResponse {
1106
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1107
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1108
+ if (previousRecursionDepth >= 100) {
1109
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1110
+ }
1111
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1112
+ try {
1113
+ const end = length === undefined ? reader.len : reader.pos + length;
1114
+ const message = createBaseClearPartitionQuarantineResponse();
1115
+ while (reader.pos < end) {
1116
+ const tag = reader.uint32();
1117
+ switch (tag >>> 3) {
1118
+ case 1: {
1119
+ if (tag !== 8) {
1120
+ break;
1121
+ }
1122
+
1123
+ message.Outcome = reader.int32() as any;
1124
+ continue;
1125
+ }
1126
+ case 2: {
1127
+ if (tag !== 16) {
1128
+ break;
1129
+ }
1130
+
1131
+ message.RetryOutcome = reader.int32() as any;
1132
+ continue;
1133
+ }
1134
+ }
1135
+ if ((tag & 7) === 4 || tag === 0) {
1136
+ break;
1137
+ }
1138
+ reader.skip(tag & 7);
1139
+ }
1140
+ return message;
1141
+ } finally {
1142
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1143
+ }
1144
+ },
1145
+
1146
+ fromJSON(object: any): ClearPartitionQuarantineResponse {
1147
+ return {
1148
+ Outcome: isSet(object.Outcome) ? clearPartitionQuarantineOutcomeFromJSON(object.Outcome) : 0,
1149
+ RetryOutcome: isSet(object.RetryOutcome) ? partitionRecoveryOutcomeFromJSON(object.RetryOutcome) : 0,
1150
+ };
1151
+ },
1152
+
1153
+ toJSON(message: ClearPartitionQuarantineResponse): unknown {
1154
+ const obj: any = {};
1155
+ if (message.Outcome !== 0) {
1156
+ obj.Outcome = clearPartitionQuarantineOutcomeToJSON(message.Outcome);
1157
+ }
1158
+ if (message.RetryOutcome !== 0) {
1159
+ obj.RetryOutcome = partitionRecoveryOutcomeToJSON(message.RetryOutcome);
1160
+ }
1161
+ return obj;
1162
+ },
1163
+
1164
+ create(base?: DeepPartial<ClearPartitionQuarantineResponse>): ClearPartitionQuarantineResponse {
1165
+ return ClearPartitionQuarantineResponse.fromPartial(base ?? {});
1166
+ },
1167
+ fromPartial(object: DeepPartial<ClearPartitionQuarantineResponse>): ClearPartitionQuarantineResponse {
1168
+ const message = createBaseClearPartitionQuarantineResponse();
1169
+ message.Outcome = object.Outcome ?? 0;
1170
+ message.RetryOutcome = object.RetryOutcome ?? 0;
1171
+ return message;
1172
+ },
1173
+ };
1174
+
888
1175
  function createBaseConnectedClient(): ConnectedClient {
889
1176
  return {
890
1177
  ConnectionId: "",
@@ -3611,6 +3898,14 @@ export const ObserversDefinition = {
3611
3898
  responseStream: false,
3612
3899
  options: {},
3613
3900
  },
3901
+ clearPartitionQuarantine: {
3902
+ name: "ClearPartitionQuarantine",
3903
+ requestType: ClearPartitionQuarantine as typeof ClearPartitionQuarantine,
3904
+ requestStream: false,
3905
+ responseType: ClearPartitionQuarantineResponse as typeof ClearPartitionQuarantineResponse,
3906
+ responseStream: false,
3907
+ options: {},
3908
+ },
3614
3909
  getConnectedClientsForObserver: {
3615
3910
  name: "GetConnectedClientsForObserver",
3616
3911
  requestType: GetConnectedClientsForObserverRequest as typeof GetConnectedClientsForObserverRequest,
@@ -3703,6 +3998,10 @@ export interface ObserversServiceImplementation<CallContextExt = {}> {
3703
3998
  request: ClearObserverQuarantine,
3704
3999
  context: CallContext & CallContextExt,
3705
4000
  ): Promise<DeepPartial<Empty>>;
4001
+ clearPartitionQuarantine(
4002
+ request: ClearPartitionQuarantine,
4003
+ context: CallContext & CallContextExt,
4004
+ ): Promise<DeepPartial<ClearPartitionQuarantineResponse>>;
3706
4005
  getConnectedClientsForObserver(
3707
4006
  request: GetConnectedClientsForObserverRequest,
3708
4007
  context: CallContext & CallContextExt,
@@ -3748,6 +4047,10 @@ export interface ObserversClient<CallOptionsExt = {}> {
3748
4047
  request: DeepPartial<ClearObserverQuarantine>,
3749
4048
  options?: CallOptions & CallOptionsExt,
3750
4049
  ): Promise<Empty>;
4050
+ clearPartitionQuarantine(
4051
+ request: DeepPartial<ClearPartitionQuarantine>,
4052
+ options?: CallOptions & CallOptionsExt,
4053
+ ): Promise<ClearPartitionQuarantineResponse>;
3751
4054
  getConnectedClientsForObserver(
3752
4055
  request: DeepPartial<GetConnectedClientsForObserverRequest>,
3753
4056
  options?: CallOptions & CallOptionsExt,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/chronicle.contracts",
3
- "version": "19.27.4",
3
+ "version": "19.29.0",
4
4
  "description": "TypeScript gRPC client contracts for Cratis Chronicle - the open-source event-sourcing database",
5
5
  "keywords": [
6
6
  "event-sourcing",