@cratis/chronicle.contracts 0.0.0 → 15.13.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/clients.js.map +1 -1
- package/dist/cjs/generated/cratis_chronicle_contracts.js.map +1 -1
- package/dist/cjs/generated/events.d.ts +1 -0
- package/dist/cjs/generated/events.d.ts.map +1 -1
- package/dist/cjs/generated/events.js +16 -1
- package/dist/cjs/generated/events.js.map +1 -1
- package/dist/cjs/generated/events_constraints.js.map +1 -1
- package/dist/cjs/generated/eventsequences.d.ts +25 -0
- package/dist/cjs/generated/eventsequences.d.ts.map +1 -1
- package/dist/cjs/generated/eventsequences.js +201 -0
- package/dist/cjs/generated/eventsequences.js.map +1 -1
- package/dist/cjs/generated/google/protobuf/empty.js.map +1 -1
- package/dist/cjs/generated/host.js.map +1 -1
- package/dist/cjs/generated/identities.js.map +1 -1
- package/dist/cjs/generated/jobs.js.map +1 -1
- package/dist/cjs/generated/observation.js.map +1 -1
- package/dist/cjs/generated/observation_reactors.js.map +1 -1
- package/dist/cjs/generated/observation_reducers.js.map +1 -1
- package/dist/cjs/generated/observation_webhooks.js.map +1 -1
- package/dist/cjs/generated/projections.js.map +1 -1
- package/dist/cjs/generated/protobuf-net/bcl.js.map +1 -1
- package/dist/cjs/generated/readmodels.js.map +1 -1
- package/dist/cjs/generated/recommendations.js.map +1 -1
- package/dist/cjs/generated/security.js.map +1 -1
- package/dist/cjs/generated/seeding.js.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/generated/clients.js.map +1 -1
- package/dist/esm/generated/cratis_chronicle_contracts.js.map +1 -1
- package/dist/esm/generated/events.d.ts +1 -0
- package/dist/esm/generated/events.d.ts.map +1 -1
- package/dist/esm/generated/events.js +16 -1
- package/dist/esm/generated/events.js.map +1 -1
- package/dist/esm/generated/events_constraints.js.map +1 -1
- package/dist/esm/generated/eventsequences.d.ts +25 -0
- package/dist/esm/generated/eventsequences.d.ts.map +1 -1
- package/dist/esm/generated/eventsequences.js +201 -1
- package/dist/esm/generated/eventsequences.js.map +1 -1
- package/dist/esm/generated/google/protobuf/empty.js.map +1 -1
- package/dist/esm/generated/host.js.map +1 -1
- package/dist/esm/generated/identities.js.map +1 -1
- package/dist/esm/generated/jobs.js.map +1 -1
- package/dist/esm/generated/observation.js.map +1 -1
- package/dist/esm/generated/observation_reactors.js.map +1 -1
- package/dist/esm/generated/observation_reducers.js.map +1 -1
- package/dist/esm/generated/observation_webhooks.js.map +1 -1
- package/dist/esm/generated/projections.js.map +1 -1
- package/dist/esm/generated/protobuf-net/bcl.js.map +1 -1
- package/dist/esm/generated/readmodels.js.map +1 -1
- package/dist/esm/generated/recommendations.js.map +1 -1
- package/dist/esm/generated/security.js.map +1 -1
- package/dist/esm/generated/seeding.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/generated/events.d.ts +1 -0
- package/dist/generated/events.d.ts.map +1 -1
- package/dist/generated/events.js +16 -1
- package/dist/generated/events.js.map +1 -1
- package/dist/generated/eventsequences.d.ts +25 -0
- package/dist/generated/eventsequences.d.ts.map +1 -1
- package/dist/generated/eventsequences.js +200 -0
- package/dist/generated/eventsequences.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/clients.ts +1 -1
- package/generated/cratis_chronicle_contracts.ts +1 -1
- package/generated/events.ts +19 -2
- package/generated/events_constraints.ts +1 -1
- package/generated/eventsequences.ts +246 -1
- package/generated/google/protobuf/empty.ts +1 -1
- package/generated/host.ts +1 -1
- package/generated/identities.ts +1 -1
- package/generated/jobs.ts +1 -1
- package/generated/observation.ts +1 -1
- package/generated/observation_eventstoresubscriptions.ts +1 -1
- package/generated/observation_reactors.ts +1 -1
- package/generated/observation_reducers.ts +1 -1
- package/generated/observation_webhooks.ts +1 -1
- package/generated/projections.ts +1 -1
- package/generated/protobuf-net/bcl.ts +1 -1
- package/generated/readmodels.ts +1 -1
- package/generated/recommendations.ts +1 -1
- package/generated/security.ts +1 -1
- package/generated/seeding.ts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clients.js","sources":["../../../generated/clients.ts"],"sourcesContent":["// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.11.6\n// protoc v7.34.1\n// source: clients.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 ClientReadableStream,\n type ClientUnaryCall,\n type handleServerStreamingCall,\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.Clients\";\n\nexport interface ConnectRequest {\n ConnectionId: string;\n ClientVersion: string;\n IsRunningWithDebugger: boolean;\n}\n\nexport interface ConnectionKeepAlive {\n ConnectionId: string;\n}\n\nexport interface DescriptorSetResponse {\n SchemaDefinition: string;\n}\n\nfunction createBaseConnectRequest(): ConnectRequest {\n return { ConnectionId: \"\", ClientVersion: \"\", IsRunningWithDebugger: false };\n}\n\nexport const ConnectRequest: MessageFns<ConnectRequest> = {\n encode(message: ConnectRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.ConnectionId !== \"\") {\n writer.uint32(10).string(message.ConnectionId);\n }\n if (message.ClientVersion !== \"\") {\n writer.uint32(18).string(message.ClientVersion);\n }\n if (message.IsRunningWithDebugger !== false) {\n writer.uint32(24).bool(message.IsRunningWithDebugger);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ConnectRequest {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseConnectRequest();\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.ConnectionId = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.ClientVersion = reader.string();\n continue;\n }\n case 3: {\n if (tag !== 24) {\n break;\n }\n\n message.IsRunningWithDebugger = 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): ConnectRequest {\n return {\n ConnectionId: isSet(object.ConnectionId) ? globalThis.String(object.ConnectionId) : \"\",\n ClientVersion: isSet(object.ClientVersion) ? globalThis.String(object.ClientVersion) : \"\",\n IsRunningWithDebugger: isSet(object.IsRunningWithDebugger)\n ? globalThis.Boolean(object.IsRunningWithDebugger)\n : false,\n };\n },\n\n toJSON(message: ConnectRequest): unknown {\n const obj: any = {};\n if (message.ConnectionId !== \"\") {\n obj.ConnectionId = message.ConnectionId;\n }\n if (message.ClientVersion !== \"\") {\n obj.ClientVersion = message.ClientVersion;\n }\n if (message.IsRunningWithDebugger !== false) {\n obj.IsRunningWithDebugger = message.IsRunningWithDebugger;\n }\n return obj;\n },\n\n create(base?: DeepPartial<ConnectRequest>): ConnectRequest {\n return ConnectRequest.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<ConnectRequest>): ConnectRequest {\n const message = createBaseConnectRequest();\n message.ConnectionId = object.ConnectionId ?? \"\";\n message.ClientVersion = object.ClientVersion ?? \"\";\n message.IsRunningWithDebugger = object.IsRunningWithDebugger ?? false;\n return message;\n },\n};\n\nfunction createBaseConnectionKeepAlive(): ConnectionKeepAlive {\n return { ConnectionId: \"\" };\n}\n\nexport const ConnectionKeepAlive: MessageFns<ConnectionKeepAlive> = {\n encode(message: ConnectionKeepAlive, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.ConnectionId !== \"\") {\n writer.uint32(10).string(message.ConnectionId);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ConnectionKeepAlive {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseConnectionKeepAlive();\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.ConnectionId = 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): ConnectionKeepAlive {\n return { ConnectionId: isSet(object.ConnectionId) ? globalThis.String(object.ConnectionId) : \"\" };\n },\n\n toJSON(message: ConnectionKeepAlive): unknown {\n const obj: any = {};\n if (message.ConnectionId !== \"\") {\n obj.ConnectionId = message.ConnectionId;\n }\n return obj;\n },\n\n create(base?: DeepPartial<ConnectionKeepAlive>): ConnectionKeepAlive {\n return ConnectionKeepAlive.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<ConnectionKeepAlive>): ConnectionKeepAlive {\n const message = createBaseConnectionKeepAlive();\n message.ConnectionId = object.ConnectionId ?? \"\";\n return message;\n },\n};\n\nfunction createBaseDescriptorSetResponse(): DescriptorSetResponse {\n return { SchemaDefinition: \"\" };\n}\n\nexport const DescriptorSetResponse: MessageFns<DescriptorSetResponse> = {\n encode(message: DescriptorSetResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.SchemaDefinition !== \"\") {\n writer.uint32(10).string(message.SchemaDefinition);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): DescriptorSetResponse {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseDescriptorSetResponse();\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.SchemaDefinition = 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): DescriptorSetResponse {\n return { SchemaDefinition: isSet(object.SchemaDefinition) ? globalThis.String(object.SchemaDefinition) : \"\" };\n },\n\n toJSON(message: DescriptorSetResponse): unknown {\n const obj: any = {};\n if (message.SchemaDefinition !== \"\") {\n obj.SchemaDefinition = message.SchemaDefinition;\n }\n return obj;\n },\n\n create(base?: DeepPartial<DescriptorSetResponse>): DescriptorSetResponse {\n return DescriptorSetResponse.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<DescriptorSetResponse>): DescriptorSetResponse {\n const message = createBaseDescriptorSetResponse();\n message.SchemaDefinition = object.SchemaDefinition ?? \"\";\n return message;\n },\n};\n\nexport type ConnectionServiceService = typeof ConnectionServiceService;\nexport const ConnectionServiceService = {\n connect: {\n path: \"/Cratis.Chronicle.Contracts.Clients.ConnectionService/Connect\" as const,\n requestStream: false as const,\n responseStream: true as const,\n requestSerialize: (value: ConnectRequest): Buffer => Buffer.from(ConnectRequest.encode(value).finish()),\n requestDeserialize: (value: Buffer): ConnectRequest => ConnectRequest.decode(value),\n responseSerialize: (value: ConnectionKeepAlive): Buffer => Buffer.from(ConnectionKeepAlive.encode(value).finish()),\n responseDeserialize: (value: Buffer): ConnectionKeepAlive => ConnectionKeepAlive.decode(value),\n },\n connectionKeepAlive: {\n path: \"/Cratis.Chronicle.Contracts.Clients.ConnectionService/ConnectionKeepAlive\" as const,\n requestStream: false as const,\n responseStream: false as const,\n requestSerialize: (value: ConnectionKeepAlive): Buffer => Buffer.from(ConnectionKeepAlive.encode(value).finish()),\n requestDeserialize: (value: Buffer): ConnectionKeepAlive => ConnectionKeepAlive.decode(value),\n responseSerialize: (value: Empty): Buffer => Buffer.from(Empty.encode(value).finish()),\n responseDeserialize: (value: Buffer): Empty => Empty.decode(value),\n },\n getDescriptorSet: {\n path: \"/Cratis.Chronicle.Contracts.Clients.ConnectionService/GetDescriptorSet\" as const,\n requestStream: false as const,\n responseStream: false as const,\n requestSerialize: (value: Empty): Buffer => Buffer.from(Empty.encode(value).finish()),\n requestDeserialize: (value: Buffer): Empty => Empty.decode(value),\n responseSerialize: (value: DescriptorSetResponse): Buffer =>\n Buffer.from(DescriptorSetResponse.encode(value).finish()),\n responseDeserialize: (value: Buffer): DescriptorSetResponse => DescriptorSetResponse.decode(value),\n },\n} as const;\n\nexport interface ConnectionServiceServer extends UntypedServiceImplementation {\n connect: handleServerStreamingCall<ConnectRequest, ConnectionKeepAlive>;\n connectionKeepAlive: handleUnaryCall<ConnectionKeepAlive, Empty>;\n getDescriptorSet: handleUnaryCall<Empty, DescriptorSetResponse>;\n}\n\nexport interface ConnectionServiceClient extends Client {\n connect(request: ConnectRequest, options?: Partial<CallOptions>): ClientReadableStream<ConnectionKeepAlive>;\n connect(\n request: ConnectRequest,\n metadata?: Metadata,\n options?: Partial<CallOptions>,\n ): ClientReadableStream<ConnectionKeepAlive>;\n connectionKeepAlive(\n request: ConnectionKeepAlive,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n connectionKeepAlive(\n request: ConnectionKeepAlive,\n metadata: Metadata,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n connectionKeepAlive(\n request: ConnectionKeepAlive,\n metadata: Metadata,\n options: Partial<CallOptions>,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n getDescriptorSet(\n request: Empty,\n callback: (error: ServiceError | null, response: DescriptorSetResponse) => void,\n ): ClientUnaryCall;\n getDescriptorSet(\n request: Empty,\n metadata: Metadata,\n callback: (error: ServiceError | null, response: DescriptorSetResponse) => void,\n ): ClientUnaryCall;\n getDescriptorSet(\n request: Empty,\n metadata: Metadata,\n options: Partial<CallOptions>,\n callback: (error: ServiceError | null, response: DescriptorSetResponse) => void,\n ): ClientUnaryCall;\n}\n\nexport const ConnectionServiceClient = makeGenericClientConstructor(\n ConnectionServiceService,\n \"Cratis.Chronicle.Contracts.Clients.ConnectionService\",\n) as unknown as {\n new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): ConnectionServiceClient;\n service: typeof ConnectionServiceService;\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":["BinaryWriter","BinaryReader","Empty","makeGenericClientConstructor"],"mappings":";;;;;;AAwBO,MAAM,eAAe,GAAG;AAgB/B,SAAS,wBAAwB,GAAA;AAC/B,IAAA,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,qBAAqB,EAAE,KAAK,EAAE;AAC9E;AAEO,MAAM,cAAc,GAA+B;AACxD,IAAA,MAAM,CAAC,OAAuB,EAAE,MAAA,GAAuB,IAAIA,iBAAY,EAAE,EAAA;AACvE,QAAA,IAAI,OAAO,CAAC,YAAY,KAAK,EAAE,EAAE;AAC/B,YAAA,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC;QAChD;AACA,QAAA,IAAI,OAAO,CAAC,aAAa,KAAK,EAAE,EAAE;AAChC,YAAA,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC;QACjD;AACA,QAAA,IAAI,OAAO,CAAC,qBAAqB,KAAK,KAAK,EA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AC,KAAK,CAAC;AACnE,KAAA;AACD,IAAA,gBAAgB,EAAE;AAChB,QAAA,IAAI,EAAE,wEAAiF;AACvF,QAAA,aAAa,EAAE,KAAc;AAC7B,QAAA,cAAc,EAAE,KAAc;AAC9B,QAAA,gBAAgB,EAAE,CAAC,KAAY,KAAa,MAAM,CAAC,IAAI,CAACA,WAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC;QACrF,kBAAkB,EAAE,CAAC,KAAa,KAAYA,WAAK,CAAC,MAAM,CAAC,KAAK,CAAC;AACjE,QAAA,iBAAiB,EAAE,CAAC,KAA4B,KAC9C,MAAM,CAAC,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC;QAC3D,mBAAmB,EAAE,CAAC,KAAa,KAA4B,qBAAqB,CAAC,MAAM,CAAC,KAAK,CAAC;AACnG,KAAA;;AAgDI,MAAM,uBAAuB,GAAGC,iCAA4B,CACjE,wBAAwB,EACxB,sDAAsD;AAexD,SAAS,KAAK,CAAC,KAAU,EAAA;AACvB,IAAA,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;AAC9C;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"clients.js","sources":["../../../generated/clients.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: clients.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 ClientReadableStream,\n type ClientUnaryCall,\n type handleServerStreamingCall,\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.Clients\";\n\nexport interface ConnectRequest {\n ConnectionId: string;\n ClientVersion: string;\n IsRunningWithDebugger: boolean;\n}\n\nexport interface ConnectionKeepAlive {\n ConnectionId: string;\n}\n\nexport interface DescriptorSetResponse {\n SchemaDefinition: string;\n}\n\nfunction createBaseConnectRequest(): ConnectRequest {\n return { ConnectionId: \"\", ClientVersion: \"\", IsRunningWithDebugger: false };\n}\n\nexport const ConnectRequest: MessageFns<ConnectRequest> = {\n encode(message: ConnectRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.ConnectionId !== \"\") {\n writer.uint32(10).string(message.ConnectionId);\n }\n if (message.ClientVersion !== \"\") {\n writer.uint32(18).string(message.ClientVersion);\n }\n if (message.IsRunningWithDebugger !== false) {\n writer.uint32(24).bool(message.IsRunningWithDebugger);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ConnectRequest {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseConnectRequest();\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.ConnectionId = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.ClientVersion = reader.string();\n continue;\n }\n case 3: {\n if (tag !== 24) {\n break;\n }\n\n message.IsRunningWithDebugger = 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): ConnectRequest {\n return {\n ConnectionId: isSet(object.ConnectionId) ? globalThis.String(object.ConnectionId) : \"\",\n ClientVersion: isSet(object.ClientVersion) ? globalThis.String(object.ClientVersion) : \"\",\n IsRunningWithDebugger: isSet(object.IsRunningWithDebugger)\n ? globalThis.Boolean(object.IsRunningWithDebugger)\n : false,\n };\n },\n\n toJSON(message: ConnectRequest): unknown {\n const obj: any = {};\n if (message.ConnectionId !== \"\") {\n obj.ConnectionId = message.ConnectionId;\n }\n if (message.ClientVersion !== \"\") {\n obj.ClientVersion = message.ClientVersion;\n }\n if (message.IsRunningWithDebugger !== false) {\n obj.IsRunningWithDebugger = message.IsRunningWithDebugger;\n }\n return obj;\n },\n\n create(base?: DeepPartial<ConnectRequest>): ConnectRequest {\n return ConnectRequest.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<ConnectRequest>): ConnectRequest {\n const message = createBaseConnectRequest();\n message.ConnectionId = object.ConnectionId ?? \"\";\n message.ClientVersion = object.ClientVersion ?? \"\";\n message.IsRunningWithDebugger = object.IsRunningWithDebugger ?? false;\n return message;\n },\n};\n\nfunction createBaseConnectionKeepAlive(): ConnectionKeepAlive {\n return { ConnectionId: \"\" };\n}\n\nexport const ConnectionKeepAlive: MessageFns<ConnectionKeepAlive> = {\n encode(message: ConnectionKeepAlive, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.ConnectionId !== \"\") {\n writer.uint32(10).string(message.ConnectionId);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): ConnectionKeepAlive {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseConnectionKeepAlive();\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.ConnectionId = 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): ConnectionKeepAlive {\n return { ConnectionId: isSet(object.ConnectionId) ? globalThis.String(object.ConnectionId) : \"\" };\n },\n\n toJSON(message: ConnectionKeepAlive): unknown {\n const obj: any = {};\n if (message.ConnectionId !== \"\") {\n obj.ConnectionId = message.ConnectionId;\n }\n return obj;\n },\n\n create(base?: DeepPartial<ConnectionKeepAlive>): ConnectionKeepAlive {\n return ConnectionKeepAlive.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<ConnectionKeepAlive>): ConnectionKeepAlive {\n const message = createBaseConnectionKeepAlive();\n message.ConnectionId = object.ConnectionId ?? \"\";\n return message;\n },\n};\n\nfunction createBaseDescriptorSetResponse(): DescriptorSetResponse {\n return { SchemaDefinition: \"\" };\n}\n\nexport const DescriptorSetResponse: MessageFns<DescriptorSetResponse> = {\n encode(message: DescriptorSetResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.SchemaDefinition !== \"\") {\n writer.uint32(10).string(message.SchemaDefinition);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): DescriptorSetResponse {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseDescriptorSetResponse();\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.SchemaDefinition = 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): DescriptorSetResponse {\n return { SchemaDefinition: isSet(object.SchemaDefinition) ? globalThis.String(object.SchemaDefinition) : \"\" };\n },\n\n toJSON(message: DescriptorSetResponse): unknown {\n const obj: any = {};\n if (message.SchemaDefinition !== \"\") {\n obj.SchemaDefinition = message.SchemaDefinition;\n }\n return obj;\n },\n\n create(base?: DeepPartial<DescriptorSetResponse>): DescriptorSetResponse {\n return DescriptorSetResponse.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<DescriptorSetResponse>): DescriptorSetResponse {\n const message = createBaseDescriptorSetResponse();\n message.SchemaDefinition = object.SchemaDefinition ?? \"\";\n return message;\n },\n};\n\nexport type ConnectionServiceService = typeof ConnectionServiceService;\nexport const ConnectionServiceService = {\n connect: {\n path: \"/Cratis.Chronicle.Contracts.Clients.ConnectionService/Connect\" as const,\n requestStream: false as const,\n responseStream: true as const,\n requestSerialize: (value: ConnectRequest): Buffer => Buffer.from(ConnectRequest.encode(value).finish()),\n requestDeserialize: (value: Buffer): ConnectRequest => ConnectRequest.decode(value),\n responseSerialize: (value: ConnectionKeepAlive): Buffer => Buffer.from(ConnectionKeepAlive.encode(value).finish()),\n responseDeserialize: (value: Buffer): ConnectionKeepAlive => ConnectionKeepAlive.decode(value),\n },\n connectionKeepAlive: {\n path: \"/Cratis.Chronicle.Contracts.Clients.ConnectionService/ConnectionKeepAlive\" as const,\n requestStream: false as const,\n responseStream: false as const,\n requestSerialize: (value: ConnectionKeepAlive): Buffer => Buffer.from(ConnectionKeepAlive.encode(value).finish()),\n requestDeserialize: (value: Buffer): ConnectionKeepAlive => ConnectionKeepAlive.decode(value),\n responseSerialize: (value: Empty): Buffer => Buffer.from(Empty.encode(value).finish()),\n responseDeserialize: (value: Buffer): Empty => Empty.decode(value),\n },\n getDescriptorSet: {\n path: \"/Cratis.Chronicle.Contracts.Clients.ConnectionService/GetDescriptorSet\" as const,\n requestStream: false as const,\n responseStream: false as const,\n requestSerialize: (value: Empty): Buffer => Buffer.from(Empty.encode(value).finish()),\n requestDeserialize: (value: Buffer): Empty => Empty.decode(value),\n responseSerialize: (value: DescriptorSetResponse): Buffer =>\n Buffer.from(DescriptorSetResponse.encode(value).finish()),\n responseDeserialize: (value: Buffer): DescriptorSetResponse => DescriptorSetResponse.decode(value),\n },\n} as const;\n\nexport interface ConnectionServiceServer extends UntypedServiceImplementation {\n connect: handleServerStreamingCall<ConnectRequest, ConnectionKeepAlive>;\n connectionKeepAlive: handleUnaryCall<ConnectionKeepAlive, Empty>;\n getDescriptorSet: handleUnaryCall<Empty, DescriptorSetResponse>;\n}\n\nexport interface ConnectionServiceClient extends Client {\n connect(request: ConnectRequest, options?: Partial<CallOptions>): ClientReadableStream<ConnectionKeepAlive>;\n connect(\n request: ConnectRequest,\n metadata?: Metadata,\n options?: Partial<CallOptions>,\n ): ClientReadableStream<ConnectionKeepAlive>;\n connectionKeepAlive(\n request: ConnectionKeepAlive,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n connectionKeepAlive(\n request: ConnectionKeepAlive,\n metadata: Metadata,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n connectionKeepAlive(\n request: ConnectionKeepAlive,\n metadata: Metadata,\n options: Partial<CallOptions>,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n getDescriptorSet(\n request: Empty,\n callback: (error: ServiceError | null, response: DescriptorSetResponse) => void,\n ): ClientUnaryCall;\n getDescriptorSet(\n request: Empty,\n metadata: Metadata,\n callback: (error: ServiceError | null, response: DescriptorSetResponse) => void,\n ): ClientUnaryCall;\n getDescriptorSet(\n request: Empty,\n metadata: Metadata,\n options: Partial<CallOptions>,\n callback: (error: ServiceError | null, response: DescriptorSetResponse) => void,\n ): ClientUnaryCall;\n}\n\nexport const ConnectionServiceClient = makeGenericClientConstructor(\n ConnectionServiceService,\n \"Cratis.Chronicle.Contracts.Clients.ConnectionService\",\n) as unknown as {\n new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): ConnectionServiceClient;\n service: typeof ConnectionServiceService;\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":["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;AACnG,KAAA;;AAgDI,MAAM,uBAAuB,GAAGC,iCAA4B,CACjE,wBAAwB,EACxB,sDAAsD;AAexD,SAAS,KAAK,CAAC,KAAU,EAAA;AACvB,IAAA,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;AAC9C;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cratis_chronicle_contracts.js","sources":["../../../generated/cratis_chronicle_contracts.ts"],"sourcesContent":["// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.11.6\n// protoc v7.34.1\n// source: cratis_chronicle_contracts.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 ClientReadableStream,\n type ClientUnaryCall,\n type handleServerStreamingCall,\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\";\n\nexport interface EnsureEventStore {\n Name: string;\n}\n\nexport interface EnsureNamespace {\n EventStore: string;\n Name: string;\n}\n\nexport interface GetNamespacesRequest {\n EventStore: string;\n}\n\nexport interface IEnumerableString {\n items: string[];\n}\n\nfunction createBaseEnsureEventStore(): EnsureEventStore {\n return { Name: \"\" };\n}\n\nexport const EnsureEventStore: MessageFns<EnsureEventStore> = {\n encode(message: EnsureEventStore, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.Name !== \"\") {\n writer.uint32(10).string(message.Name);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): EnsureEventStore {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseEnsureEventStore();\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 }\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): EnsureEventStore {\n return { Name: isSet(object.Name) ? globalThis.String(object.Name) : \"\" };\n },\n\n toJSON(message: EnsureEventStore): unknown {\n const obj: any = {};\n if (message.Name !== \"\") {\n obj.Name = message.Name;\n }\n return obj;\n },\n\n create(base?: DeepPartial<EnsureEventStore>): EnsureEventStore {\n return EnsureEventStore.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<EnsureEventStore>): EnsureEventStore {\n const message = createBaseEnsureEventStore();\n message.Name = object.Name ?? \"\";\n return message;\n },\n};\n\nfunction createBaseEnsureNamespace(): EnsureNamespace {\n return { EventStore: \"\", Name: \"\" };\n}\n\nexport const EnsureNamespace: MessageFns<EnsureNamespace> = {\n encode(message: EnsureNamespace, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.EventStore !== \"\") {\n writer.uint32(10).string(message.EventStore);\n }\n if (message.Name !== \"\") {\n writer.uint32(18).string(message.Name);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): EnsureNamespace {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseEnsureNamespace();\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.Name = 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): EnsureNamespace {\n return {\n EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : \"\",\n Name: isSet(object.Name) ? globalThis.String(object.Name) : \"\",\n };\n },\n\n toJSON(message: EnsureNamespace): unknown {\n const obj: any = {};\n if (message.EventStore !== \"\") {\n obj.EventStore = message.EventStore;\n }\n if (message.Name !== \"\") {\n obj.Name = message.Name;\n }\n return obj;\n },\n\n create(base?: DeepPartial<EnsureNamespace>): EnsureNamespace {\n return EnsureNamespace.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<EnsureNamespace>): EnsureNamespace {\n const message = createBaseEnsureNamespace();\n message.EventStore = object.EventStore ?? \"\";\n message.Name = object.Name ?? \"\";\n return message;\n },\n};\n\nfunction createBaseGetNamespacesRequest(): GetNamespacesRequest {\n return { EventStore: \"\" };\n}\n\nexport const GetNamespacesRequest: MessageFns<GetNamespacesRequest> = {\n encode(message: GetNamespacesRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.EventStore !== \"\") {\n writer.uint32(10).string(message.EventStore);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): GetNamespacesRequest {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseGetNamespacesRequest();\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 }\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): GetNamespacesRequest {\n return { EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : \"\" };\n },\n\n toJSON(message: GetNamespacesRequest): unknown {\n const obj: any = {};\n if (message.EventStore !== \"\") {\n obj.EventStore = message.EventStore;\n }\n return obj;\n },\n\n create(base?: DeepPartial<GetNamespacesRequest>): GetNamespacesRequest {\n return GetNamespacesRequest.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<GetNamespacesRequest>): GetNamespacesRequest {\n const message = createBaseGetNamespacesRequest();\n message.EventStore = object.EventStore ?? \"\";\n return message;\n },\n};\n\nfunction createBaseIEnumerableString(): IEnumerableString {\n return { items: [] };\n}\n\nexport const IEnumerableString: MessageFns<IEnumerableString> = {\n encode(message: IEnumerableString, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n for (const v of message.items) {\n writer.uint32(10).string(v!);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): IEnumerableString {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseIEnumerableString();\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.items.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): IEnumerableString {\n return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e: any) => globalThis.String(e)) : [] };\n },\n\n toJSON(message: IEnumerableString): unknown {\n const obj: any = {};\n if (message.items?.length) {\n obj.items = message.items;\n }\n return obj;\n },\n\n create(base?: DeepPartial<IEnumerableString>): IEnumerableString {\n return IEnumerableString.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<IEnumerableString>): IEnumerableString {\n const message = createBaseIEnumerableString();\n message.items = object.items?.map((e) => e) || [];\n return message;\n },\n};\n\nexport type EventStoresService = typeof EventStoresService;\nexport const EventStoresService = {\n ensure: {\n path: \"/Cratis.Chronicle.Contracts.EventStores/Ensure\" as const,\n requestStream: false as const,\n responseStream: false as const,\n requestSerialize: (value: EnsureEventStore): Buffer => Buffer.from(EnsureEventStore.encode(value).finish()),\n requestDeserialize: (value: Buffer): EnsureEventStore => EnsureEventStore.decode(value),\n responseSerialize: (value: Empty): Buffer => Buffer.from(Empty.encode(value).finish()),\n responseDeserialize: (value: Buffer): Empty => Empty.decode(value),\n },\n getEventStores: {\n path: \"/Cratis.Chronicle.Contracts.EventStores/GetEventStores\" as const,\n requestStream: false as const,\n responseStream: false as const,\n requestSerialize: (value: Empty): Buffer => Buffer.from(Empty.encode(value).finish()),\n requestDeserialize: (value: Buffer): Empty => Empty.decode(value),\n responseSerialize: (value: IEnumerableString): Buffer => Buffer.from(IEnumerableString.encode(value).finish()),\n responseDeserialize: (value: Buffer): IEnumerableString => IEnumerableString.decode(value),\n },\n observeEventStores: {\n path: \"/Cratis.Chronicle.Contracts.EventStores/ObserveEventStores\" as const,\n requestStream: false as const,\n responseStream: true as const,\n requestSerialize: (value: Empty): Buffer => Buffer.from(Empty.encode(value).finish()),\n requestDeserialize: (value: Buffer): Empty => Empty.decode(value),\n responseSerialize: (value: IEnumerableString): Buffer => Buffer.from(IEnumerableString.encode(value).finish()),\n responseDeserialize: (value: Buffer): IEnumerableString => IEnumerableString.decode(value),\n },\n} as const;\n\nexport interface EventStoresServer extends UntypedServiceImplementation {\n ensure: handleUnaryCall<EnsureEventStore, Empty>;\n getEventStores: handleUnaryCall<Empty, IEnumerableString>;\n observeEventStores: handleServerStreamingCall<Empty, IEnumerableString>;\n}\n\nexport interface EventStoresClient extends Client {\n ensure(request: EnsureEventStore, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;\n ensure(\n request: EnsureEventStore,\n metadata: Metadata,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n ensure(\n request: EnsureEventStore,\n metadata: Metadata,\n options: Partial<CallOptions>,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n getEventStores(\n request: Empty,\n callback: (error: ServiceError | null, response: IEnumerableString) => void,\n ): ClientUnaryCall;\n getEventStores(\n request: Empty,\n metadata: Metadata,\n callback: (error: ServiceError | null, response: IEnumerableString) => void,\n ): ClientUnaryCall;\n getEventStores(\n request: Empty,\n metadata: Metadata,\n options: Partial<CallOptions>,\n callback: (error: ServiceError | null, response: IEnumerableString) => void,\n ): ClientUnaryCall;\n observeEventStores(request: Empty, options?: Partial<CallOptions>): ClientReadableStream<IEnumerableString>;\n observeEventStores(\n request: Empty,\n metadata?: Metadata,\n options?: Partial<CallOptions>,\n ): ClientReadableStream<IEnumerableString>;\n}\n\nexport const EventStoresClient = makeGenericClientConstructor(\n EventStoresService,\n \"Cratis.Chronicle.Contracts.EventStores\",\n) as unknown as {\n new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): EventStoresClient;\n service: typeof EventStoresService;\n serviceName: string;\n};\n\nexport type NamespacesService = typeof NamespacesService;\nexport const NamespacesService = {\n ensure: {\n path: \"/Cratis.Chronicle.Contracts.Namespaces/Ensure\" as const,\n requestStream: false as const,\n responseStream: false as const,\n requestSerialize: (value: EnsureNamespace): Buffer => Buffer.from(EnsureNamespace.encode(value).finish()),\n requestDeserialize: (value: Buffer): EnsureNamespace => EnsureNamespace.decode(value),\n responseSerialize: (value: Empty): Buffer => Buffer.from(Empty.encode(value).finish()),\n responseDeserialize: (value: Buffer): Empty => Empty.decode(value),\n },\n getNamespaces: {\n path: \"/Cratis.Chronicle.Contracts.Namespaces/GetNamespaces\" as const,\n requestStream: false as const,\n responseStream: false as const,\n requestSerialize: (value: GetNamespacesRequest): Buffer => Buffer.from(GetNamespacesRequest.encode(value).finish()),\n requestDeserialize: (value: Buffer): GetNamespacesRequest => GetNamespacesRequest.decode(value),\n responseSerialize: (value: IEnumerableString): Buffer => Buffer.from(IEnumerableString.encode(value).finish()),\n responseDeserialize: (value: Buffer): IEnumerableString => IEnumerableString.decode(value),\n },\n observeNamespaces: {\n path: \"/Cratis.Chronicle.Contracts.Namespaces/ObserveNamespaces\" as const,\n requestStream: false as const,\n responseStream: true as const,\n requestSerialize: (value: GetNamespacesRequest): Buffer => Buffer.from(GetNamespacesRequest.encode(value).finish()),\n requestDeserialize: (value: Buffer): GetNamespacesRequest => GetNamespacesRequest.decode(value),\n responseSerialize: (value: IEnumerableString): Buffer => Buffer.from(IEnumerableString.encode(value).finish()),\n responseDeserialize: (value: Buffer): IEnumerableString => IEnumerableString.decode(value),\n },\n} as const;\n\nexport interface NamespacesServer extends UntypedServiceImplementation {\n ensure: handleUnaryCall<EnsureNamespace, Empty>;\n getNamespaces: handleUnaryCall<GetNamespacesRequest, IEnumerableString>;\n observeNamespaces: handleServerStreamingCall<GetNamespacesRequest, IEnumerableString>;\n}\n\nexport interface NamespacesClient extends Client {\n ensure(request: EnsureNamespace, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;\n ensure(\n request: EnsureNamespace,\n metadata: Metadata,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n ensure(\n request: EnsureNamespace,\n metadata: Metadata,\n options: Partial<CallOptions>,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n getNamespaces(\n request: GetNamespacesRequest,\n callback: (error: ServiceError | null, response: IEnumerableString) => void,\n ): ClientUnaryCall;\n getNamespaces(\n request: GetNamespacesRequest,\n metadata: Metadata,\n callback: (error: ServiceError | null, response: IEnumerableString) => void,\n ): ClientUnaryCall;\n getNamespaces(\n request: GetNamespacesRequest,\n metadata: Metadata,\n options: Partial<CallOptions>,\n callback: (error: ServiceError | null, response: IEnumerableString) => void,\n ): ClientUnaryCall;\n observeNamespaces(\n request: GetNamespacesRequest,\n options?: Partial<CallOptions>,\n ): ClientReadableStream<IEnumerableString>;\n observeNamespaces(\n request: GetNamespacesRequest,\n metadata?: Metadata,\n options?: Partial<CallOptions>,\n ): ClientReadableStream<IEnumerableString>;\n}\n\nexport const NamespacesClient = makeGenericClientConstructor(\n NamespacesService,\n \"Cratis.Chronicle.Contracts.Namespaces\",\n) as unknown as {\n new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): NamespacesClient;\n service: typeof NamespacesService;\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":["BinaryWriter","BinaryReader","Empty","makeGenericClientConstructor"],"mappings":";;;;;;AA2CA,SAAS,0BAA0B,GAAA;AACjC,IAAA,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;AACrB;AAEO,MAAM,gBAAgB,GAAiC;AAC5D,IAAA,MAAM,CAAC,OAAyB,EAAE,MAAA,GAAuB,IAAIA,iBAAY,EAAE,EAAA;AACzE,QAAA,IAAI,OAAO,CAAC,IAAI,KAAK,EAAE,EAAE;AACvB,YAAA,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;QACxC;AACA,QAAA,OAAO,MAAM;IACf,CAAC;IAED,MAAM,CAAC,KAAgC,EAAE,MAAe,EAAA;AACtD,QAAA,MAAM,MAAM,GAAG,KAAK,YAAYC,iBAAY,GAAG,KAAK,GAAG,IAAIA,iBAAY,CAAC,KAAK,CAAC;AAC9E,QAAA,MAAM,GAAG,GAAG,MAAM,KAAK,SAAS,GAAG,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,GAAG,MAAM;AACnE,QAAA,MAAM,OAAO,GAAG,0BAA0B,EAAE;AAC5C,QAAA,OAAO,MAAM,CAAC,GAAG,GAAG,GAAG,EAAE;AACvB,YAAA,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE;AAC3B,YAAA,QAAQ,GAAG,KAAK,CAAC;gBACf,KAAK,CAAC,EAAE;AACN,oBAAA,IAAI,GAAG,KA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AK,CAAC,CAAC,MAAM,EAAE,CAAC;QACnH,kBAAkB,EAAE,CAAC,KAAa,KAA2B,oBAAoB,CAAC,MAAM,CAAC,KAAK,CAAC;AAC/F,QAAA,iBAAiB,EAAE,CAAC,KAAwB,KAAa,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC;QAC9G,mBAAmB,EAAE,CAAC,KAAa,KAAwB,iBAAiB,CAAC,MAAM,CAAC,KAAK,CAAC;AAC3F,KAAA;AACD,IAAA,iBAAiB,EAAE;AACjB,QAAA,IAAI,EAAE,0DAAmE;AACzE,QAAA,aAAa,EAAE,KAAc;AAC7B,QAAA,cAAc,EAAE,IAAa;AAC7B,QAAA,gBAAgB,EAAE,CAAC,KAA2B,KAAa,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC;QACnH,kBAAkB,EAAE,CAAC,KAAa,KAA2B,oBAAoB,CAAC,MAAM,CAAC,KAAK,CAAC;AAC/F,QAAA,iBAAiB,EAAE,CAAC,KAAwB,KAAa,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC;QAC9G,mBAAmB,EAAE,CAAC,KAAa,KAAwB,iBAAiB,CAAC,MAAM,CAAC,KAAK,CAAC;AAC3F,KAAA;;AAgDI,MAAM,gBAAgB,GAAGC,iCAA4B,CAC1D,iBAAiB,EACjB,uCAAuC;AAezC,SAAS,KAAK,CAAC,KAAU,EAAA;AACvB,IAAA,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;AAC9C;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"cratis_chronicle_contracts.js","sources":["../../../generated/cratis_chronicle_contracts.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: cratis_chronicle_contracts.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 ClientReadableStream,\n type ClientUnaryCall,\n type handleServerStreamingCall,\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\";\n\nexport interface EnsureEventStore {\n Name: string;\n}\n\nexport interface EnsureNamespace {\n EventStore: string;\n Name: string;\n}\n\nexport interface GetNamespacesRequest {\n EventStore: string;\n}\n\nexport interface IEnumerableString {\n items: string[];\n}\n\nfunction createBaseEnsureEventStore(): EnsureEventStore {\n return { Name: \"\" };\n}\n\nexport const EnsureEventStore: MessageFns<EnsureEventStore> = {\n encode(message: EnsureEventStore, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.Name !== \"\") {\n writer.uint32(10).string(message.Name);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): EnsureEventStore {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseEnsureEventStore();\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 }\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): EnsureEventStore {\n return { Name: isSet(object.Name) ? globalThis.String(object.Name) : \"\" };\n },\n\n toJSON(message: EnsureEventStore): unknown {\n const obj: any = {};\n if (message.Name !== \"\") {\n obj.Name = message.Name;\n }\n return obj;\n },\n\n create(base?: DeepPartial<EnsureEventStore>): EnsureEventStore {\n return EnsureEventStore.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<EnsureEventStore>): EnsureEventStore {\n const message = createBaseEnsureEventStore();\n message.Name = object.Name ?? \"\";\n return message;\n },\n};\n\nfunction createBaseEnsureNamespace(): EnsureNamespace {\n return { EventStore: \"\", Name: \"\" };\n}\n\nexport const EnsureNamespace: MessageFns<EnsureNamespace> = {\n encode(message: EnsureNamespace, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.EventStore !== \"\") {\n writer.uint32(10).string(message.EventStore);\n }\n if (message.Name !== \"\") {\n writer.uint32(18).string(message.Name);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): EnsureNamespace {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseEnsureNamespace();\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.Name = 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): EnsureNamespace {\n return {\n EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : \"\",\n Name: isSet(object.Name) ? globalThis.String(object.Name) : \"\",\n };\n },\n\n toJSON(message: EnsureNamespace): unknown {\n const obj: any = {};\n if (message.EventStore !== \"\") {\n obj.EventStore = message.EventStore;\n }\n if (message.Name !== \"\") {\n obj.Name = message.Name;\n }\n return obj;\n },\n\n create(base?: DeepPartial<EnsureNamespace>): EnsureNamespace {\n return EnsureNamespace.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<EnsureNamespace>): EnsureNamespace {\n const message = createBaseEnsureNamespace();\n message.EventStore = object.EventStore ?? \"\";\n message.Name = object.Name ?? \"\";\n return message;\n },\n};\n\nfunction createBaseGetNamespacesRequest(): GetNamespacesRequest {\n return { EventStore: \"\" };\n}\n\nexport const GetNamespacesRequest: MessageFns<GetNamespacesRequest> = {\n encode(message: GetNamespacesRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.EventStore !== \"\") {\n writer.uint32(10).string(message.EventStore);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): GetNamespacesRequest {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseGetNamespacesRequest();\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 }\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): GetNamespacesRequest {\n return { EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : \"\" };\n },\n\n toJSON(message: GetNamespacesRequest): unknown {\n const obj: any = {};\n if (message.EventStore !== \"\") {\n obj.EventStore = message.EventStore;\n }\n return obj;\n },\n\n create(base?: DeepPartial<GetNamespacesRequest>): GetNamespacesRequest {\n return GetNamespacesRequest.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<GetNamespacesRequest>): GetNamespacesRequest {\n const message = createBaseGetNamespacesRequest();\n message.EventStore = object.EventStore ?? \"\";\n return message;\n },\n};\n\nfunction createBaseIEnumerableString(): IEnumerableString {\n return { items: [] };\n}\n\nexport const IEnumerableString: MessageFns<IEnumerableString> = {\n encode(message: IEnumerableString, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n for (const v of message.items) {\n writer.uint32(10).string(v!);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): IEnumerableString {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseIEnumerableString();\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.items.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): IEnumerableString {\n return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e: any) => globalThis.String(e)) : [] };\n },\n\n toJSON(message: IEnumerableString): unknown {\n const obj: any = {};\n if (message.items?.length) {\n obj.items = message.items;\n }\n return obj;\n },\n\n create(base?: DeepPartial<IEnumerableString>): IEnumerableString {\n return IEnumerableString.fromPartial(base ?? {});\n },\n fromPartial(object: DeepPartial<IEnumerableString>): IEnumerableString {\n const message = createBaseIEnumerableString();\n message.items = object.items?.map((e) => e) || [];\n return message;\n },\n};\n\nexport type EventStoresService = typeof EventStoresService;\nexport const EventStoresService = {\n ensure: {\n path: \"/Cratis.Chronicle.Contracts.EventStores/Ensure\" as const,\n requestStream: false as const,\n responseStream: false as const,\n requestSerialize: (value: EnsureEventStore): Buffer => Buffer.from(EnsureEventStore.encode(value).finish()),\n requestDeserialize: (value: Buffer): EnsureEventStore => EnsureEventStore.decode(value),\n responseSerialize: (value: Empty): Buffer => Buffer.from(Empty.encode(value).finish()),\n responseDeserialize: (value: Buffer): Empty => Empty.decode(value),\n },\n getEventStores: {\n path: \"/Cratis.Chronicle.Contracts.EventStores/GetEventStores\" as const,\n requestStream: false as const,\n responseStream: false as const,\n requestSerialize: (value: Empty): Buffer => Buffer.from(Empty.encode(value).finish()),\n requestDeserialize: (value: Buffer): Empty => Empty.decode(value),\n responseSerialize: (value: IEnumerableString): Buffer => Buffer.from(IEnumerableString.encode(value).finish()),\n responseDeserialize: (value: Buffer): IEnumerableString => IEnumerableString.decode(value),\n },\n observeEventStores: {\n path: \"/Cratis.Chronicle.Contracts.EventStores/ObserveEventStores\" as const,\n requestStream: false as const,\n responseStream: true as const,\n requestSerialize: (value: Empty): Buffer => Buffer.from(Empty.encode(value).finish()),\n requestDeserialize: (value: Buffer): Empty => Empty.decode(value),\n responseSerialize: (value: IEnumerableString): Buffer => Buffer.from(IEnumerableString.encode(value).finish()),\n responseDeserialize: (value: Buffer): IEnumerableString => IEnumerableString.decode(value),\n },\n} as const;\n\nexport interface EventStoresServer extends UntypedServiceImplementation {\n ensure: handleUnaryCall<EnsureEventStore, Empty>;\n getEventStores: handleUnaryCall<Empty, IEnumerableString>;\n observeEventStores: handleServerStreamingCall<Empty, IEnumerableString>;\n}\n\nexport interface EventStoresClient extends Client {\n ensure(request: EnsureEventStore, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;\n ensure(\n request: EnsureEventStore,\n metadata: Metadata,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n ensure(\n request: EnsureEventStore,\n metadata: Metadata,\n options: Partial<CallOptions>,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n getEventStores(\n request: Empty,\n callback: (error: ServiceError | null, response: IEnumerableString) => void,\n ): ClientUnaryCall;\n getEventStores(\n request: Empty,\n metadata: Metadata,\n callback: (error: ServiceError | null, response: IEnumerableString) => void,\n ): ClientUnaryCall;\n getEventStores(\n request: Empty,\n metadata: Metadata,\n options: Partial<CallOptions>,\n callback: (error: ServiceError | null, response: IEnumerableString) => void,\n ): ClientUnaryCall;\n observeEventStores(request: Empty, options?: Partial<CallOptions>): ClientReadableStream<IEnumerableString>;\n observeEventStores(\n request: Empty,\n metadata?: Metadata,\n options?: Partial<CallOptions>,\n ): ClientReadableStream<IEnumerableString>;\n}\n\nexport const EventStoresClient = makeGenericClientConstructor(\n EventStoresService,\n \"Cratis.Chronicle.Contracts.EventStores\",\n) as unknown as {\n new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): EventStoresClient;\n service: typeof EventStoresService;\n serviceName: string;\n};\n\nexport type NamespacesService = typeof NamespacesService;\nexport const NamespacesService = {\n ensure: {\n path: \"/Cratis.Chronicle.Contracts.Namespaces/Ensure\" as const,\n requestStream: false as const,\n responseStream: false as const,\n requestSerialize: (value: EnsureNamespace): Buffer => Buffer.from(EnsureNamespace.encode(value).finish()),\n requestDeserialize: (value: Buffer): EnsureNamespace => EnsureNamespace.decode(value),\n responseSerialize: (value: Empty): Buffer => Buffer.from(Empty.encode(value).finish()),\n responseDeserialize: (value: Buffer): Empty => Empty.decode(value),\n },\n getNamespaces: {\n path: \"/Cratis.Chronicle.Contracts.Namespaces/GetNamespaces\" as const,\n requestStream: false as const,\n responseStream: false as const,\n requestSerialize: (value: GetNamespacesRequest): Buffer => Buffer.from(GetNamespacesRequest.encode(value).finish()),\n requestDeserialize: (value: Buffer): GetNamespacesRequest => GetNamespacesRequest.decode(value),\n responseSerialize: (value: IEnumerableString): Buffer => Buffer.from(IEnumerableString.encode(value).finish()),\n responseDeserialize: (value: Buffer): IEnumerableString => IEnumerableString.decode(value),\n },\n observeNamespaces: {\n path: \"/Cratis.Chronicle.Contracts.Namespaces/ObserveNamespaces\" as const,\n requestStream: false as const,\n responseStream: true as const,\n requestSerialize: (value: GetNamespacesRequest): Buffer => Buffer.from(GetNamespacesRequest.encode(value).finish()),\n requestDeserialize: (value: Buffer): GetNamespacesRequest => GetNamespacesRequest.decode(value),\n responseSerialize: (value: IEnumerableString): Buffer => Buffer.from(IEnumerableString.encode(value).finish()),\n responseDeserialize: (value: Buffer): IEnumerableString => IEnumerableString.decode(value),\n },\n} as const;\n\nexport interface NamespacesServer extends UntypedServiceImplementation {\n ensure: handleUnaryCall<EnsureNamespace, Empty>;\n getNamespaces: handleUnaryCall<GetNamespacesRequest, IEnumerableString>;\n observeNamespaces: handleServerStreamingCall<GetNamespacesRequest, IEnumerableString>;\n}\n\nexport interface NamespacesClient extends Client {\n ensure(request: EnsureNamespace, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;\n ensure(\n request: EnsureNamespace,\n metadata: Metadata,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n ensure(\n request: EnsureNamespace,\n metadata: Metadata,\n options: Partial<CallOptions>,\n callback: (error: ServiceError | null, response: Empty) => void,\n ): ClientUnaryCall;\n getNamespaces(\n request: GetNamespacesRequest,\n callback: (error: ServiceError | null, response: IEnumerableString) => void,\n ): ClientUnaryCall;\n getNamespaces(\n request: GetNamespacesRequest,\n metadata: Metadata,\n callback: (error: ServiceError | null, response: IEnumerableString) => void,\n ): ClientUnaryCall;\n getNamespaces(\n request: GetNamespacesRequest,\n metadata: Metadata,\n options: Partial<CallOptions>,\n callback: (error: ServiceError | null, response: IEnumerableString) => void,\n ): ClientUnaryCall;\n observeNamespaces(\n request: GetNamespacesRequest,\n options?: Partial<CallOptions>,\n ): ClientReadableStream<IEnumerableString>;\n observeNamespaces(\n request: GetNamespacesRequest,\n metadata?: Metadata,\n options?: Partial<CallOptions>,\n ): ClientReadableStream<IEnumerableString>;\n}\n\nexport const NamespacesClient = makeGenericClientConstructor(\n NamespacesService,\n \"Cratis.Chronicle.Contracts.Namespaces\",\n) as unknown as {\n new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): NamespacesClient;\n service: typeof NamespacesService;\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":["BinaryWriter","BinaryReader","Empty","makeGenericClientConstructor"],"mappings":";;;;;;AA2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AW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACjC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CACxC"}
|
|
@@ -339,7 +339,7 @@ const EventTypeMigrationOperation = {
|
|
|
339
339
|
},
|
|
340
340
|
};
|
|
341
341
|
function createBaseEventTypeRegistration() {
|
|
342
|
-
return { Type: undefined, Schema: "", Generations: [], Migrations: [] };
|
|
342
|
+
return { Type: undefined, Schema: "", Generations: [], Migrations: [], EventStore: "" };
|
|
343
343
|
}
|
|
344
344
|
const EventTypeRegistration = {
|
|
345
345
|
encode(message, writer = new wire.BinaryWriter()) {
|
|
@@ -355,6 +355,9 @@ const EventTypeRegistration = {
|
|
|
355
355
|
for (const v of message.Migrations) {
|
|
356
356
|
EventTypeMigrationDefinition.encode(v, writer.uint32(34).fork()).join();
|
|
357
357
|
}
|
|
358
|
+
if (message.EventStore !== "") {
|
|
359
|
+
writer.uint32(42).string(message.EventStore);
|
|
360
|
+
}
|
|
358
361
|
return writer;
|
|
359
362
|
},
|
|
360
363
|
decode(input, length) {
|
|
@@ -392,6 +395,13 @@ const EventTypeRegistration = {
|
|
|
392
395
|
message.Migrations.push(EventTypeMigrationDefinition.decode(reader, reader.uint32()));
|
|
393
396
|
continue;
|
|
394
397
|
}
|
|
398
|
+
case 5: {
|
|
399
|
+
if (tag !== 42) {
|
|
400
|
+
break;
|
|
401
|
+
}
|
|
402
|
+
message.EventStore = reader.string();
|
|
403
|
+
continue;
|
|
404
|
+
}
|
|
395
405
|
}
|
|
396
406
|
if ((tag & 7) === 4 || tag === 0) {
|
|
397
407
|
break;
|
|
@@ -410,6 +420,7 @@ const EventTypeRegistration = {
|
|
|
410
420
|
Migrations: globalThis.Array.isArray(object?.Migrations)
|
|
411
421
|
? object.Migrations.map((e) => EventTypeMigrationDefinition.fromJSON(e))
|
|
412
422
|
: [],
|
|
423
|
+
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
413
424
|
};
|
|
414
425
|
},
|
|
415
426
|
toJSON(message) {
|
|
@@ -426,6 +437,9 @@ const EventTypeRegistration = {
|
|
|
426
437
|
if (message.Migrations?.length) {
|
|
427
438
|
obj.Migrations = message.Migrations.map((e) => EventTypeMigrationDefinition.toJSON(e));
|
|
428
439
|
}
|
|
440
|
+
if (message.EventStore !== "") {
|
|
441
|
+
obj.EventStore = message.EventStore;
|
|
442
|
+
}
|
|
429
443
|
return obj;
|
|
430
444
|
},
|
|
431
445
|
create(base) {
|
|
@@ -437,6 +451,7 @@ const EventTypeRegistration = {
|
|
|
437
451
|
message.Schema = object.Schema ?? "";
|
|
438
452
|
message.Generations = object.Generations?.map((e) => EventTypeGenerationDefinition.fromPartial(e)) || [];
|
|
439
453
|
message.Migrations = object.Migrations?.map((e) => EventTypeMigrationDefinition.fromPartial(e)) || [];
|
|
454
|
+
message.EventStore = object.EventStore ?? "";
|
|
440
455
|
return message;
|
|
441
456
|
},
|
|
442
457
|
};
|