@fraym/proto 0.11.0 → 0.11.1

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.
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { ChannelCredentials, Client, ClientDuplexStream, ClientReadableStream, handleBidiStreamingCall, handleServerStreamingCall, Metadata } from "@grpc/grpc-js";
2
+ import { ChannelCredentials, Client, ClientDuplexStream, handleBidiStreamingCall, Metadata } from "@grpc/grpc-js";
3
3
  import type { CallOptions, ClientOptions, ClientUnaryCall, handleUnaryCall, ServiceError, UntypedServiceImplementation } from "@grpc/grpc-js";
4
4
  import { BackchannelEventResponse, BackchannelHandledRequest, BackchannelHandledResponse } from "./backchannel";
5
5
  import { Event, GetEventRequest } from "./event";
@@ -32,7 +32,7 @@ export declare const ServiceService: {
32
32
  readonly getEvent: {
33
33
  readonly path: "/freym.streams.management.Service/GetEvent";
34
34
  readonly requestStream: false;
35
- readonly responseStream: true;
35
+ readonly responseStream: false;
36
36
  readonly requestSerialize: (value: GetEventRequest) => Buffer;
37
37
  readonly requestDeserialize: (value: Buffer) => GetEventRequest;
38
38
  readonly responseSerialize: (value: Event) => Buffer;
@@ -105,7 +105,7 @@ export declare const ServiceService: {
105
105
  export interface ServiceServer extends UntypedServiceImplementation {
106
106
  publish: handleUnaryCall<PublishRequest, PublishResponse>;
107
107
  subscribe: handleBidiStreamingCall<SubscribeRequest, SubscribeResponse>;
108
- getEvent: handleServerStreamingCall<GetEventRequest, Event>;
108
+ getEvent: handleUnaryCall<GetEventRequest, Event>;
109
109
  isStreamEmpty: handleUnaryCall<IsStreamEmptyRequest, IsStreamEmptyResponse>;
110
110
  paginateStream: handleUnaryCall<PaginateStreamRequest, PaginateStreamResponse>;
111
111
  paginateEvents: handleUnaryCall<PaginateEventsRequest, PaginateEventsResponse>;
@@ -121,8 +121,9 @@ export interface ServiceClient extends Client {
121
121
  subscribe(): ClientDuplexStream<SubscribeRequest, SubscribeResponse>;
122
122
  subscribe(options: Partial<CallOptions>): ClientDuplexStream<SubscribeRequest, SubscribeResponse>;
123
123
  subscribe(metadata: Metadata, options?: Partial<CallOptions>): ClientDuplexStream<SubscribeRequest, SubscribeResponse>;
124
- getEvent(request: GetEventRequest, options?: Partial<CallOptions>): ClientReadableStream<Event>;
125
- getEvent(request: GetEventRequest, metadata?: Metadata, options?: Partial<CallOptions>): ClientReadableStream<Event>;
124
+ getEvent(request: GetEventRequest, callback: (error: ServiceError | null, response: Event) => void): ClientUnaryCall;
125
+ getEvent(request: GetEventRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Event) => void): ClientUnaryCall;
126
+ getEvent(request: GetEventRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Event) => void): ClientUnaryCall;
126
127
  isStreamEmpty(request: IsStreamEmptyRequest, callback: (error: ServiceError | null, response: IsStreamEmptyResponse) => void): ClientUnaryCall;
127
128
  isStreamEmpty(request: IsStreamEmptyRequest, metadata: Metadata, callback: (error: ServiceError | null, response: IsStreamEmptyResponse) => void): ClientUnaryCall;
128
129
  isStreamEmpty(request: IsStreamEmptyRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: IsStreamEmptyResponse) => void): ClientUnaryCall;
@@ -32,7 +32,7 @@ exports.ServiceService = {
32
32
  getEvent: {
33
33
  path: "/freym.streams.management.Service/GetEvent",
34
34
  requestStream: false,
35
- responseStream: true,
35
+ responseStream: false,
36
36
  requestSerialize: (value) => Buffer.from(event_1.GetEventRequest.encode(value).finish()),
37
37
  requestDeserialize: (value) => event_1.GetEventRequest.decode(value),
38
38
  responseSerialize: (value) => Buffer.from(event_1.Event.encode(value).finish()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fraym/proto",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "license": "MIT",
5
5
  "homepage": "https://github.com/fraym/proto",
6
6
  "repository": {