UNPKG

echofi-client

Version:

A comprehensive TypeScript/JavaScript client library for EchoFi services with automatic gRPC-Web code generation, unified service access, and real-time WebSocket communication.

164 lines (131 loc) 6.8 kB
import * as jspb from 'google-protobuf' import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; // proto import: "google/protobuf/timestamp.proto" export class ProcessingCycles extends jspb.Message { getId(): number; setId(value: number): ProcessingCycles; getCycleType(): string; setCycleType(value: string): ProcessingCycles; getLastCompletedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setLastCompletedAt(value?: google_protobuf_timestamp_pb.Timestamp): ProcessingCycles; hasLastCompletedAt(): boolean; clearLastCompletedAt(): ProcessingCycles; getProcessedCount(): number; setProcessedCount(value: number): ProcessingCycles; getCycleDurationMs(): number; setCycleDurationMs(value: number): ProcessingCycles; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): ProcessingCycles; hasCreatedAt(): boolean; clearCreatedAt(): ProcessingCycles; getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): ProcessingCycles; hasUpdatedAt(): boolean; clearUpdatedAt(): ProcessingCycles; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ProcessingCycles.AsObject; static toObject(includeInstance: boolean, msg: ProcessingCycles): ProcessingCycles.AsObject; static serializeBinaryToWriter(message: ProcessingCycles, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): ProcessingCycles; static deserializeBinaryFromReader(message: ProcessingCycles, reader: jspb.BinaryReader): ProcessingCycles; } export namespace ProcessingCycles { export type AsObject = { id: number, cycleType: string, lastCompletedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, processedCount: number, cycleDurationMs: number, createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, } } export class CreateProcessingCycleRequest extends jspb.Message { getCycleType(): string; setCycleType(value: string): CreateProcessingCycleRequest; getLastCompletedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setLastCompletedAt(value?: google_protobuf_timestamp_pb.Timestamp): CreateProcessingCycleRequest; hasLastCompletedAt(): boolean; clearLastCompletedAt(): CreateProcessingCycleRequest; getProcessedCount(): number; setProcessedCount(value: number): CreateProcessingCycleRequest; getCycleDurationMs(): number; setCycleDurationMs(value: number): CreateProcessingCycleRequest; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CreateProcessingCycleRequest.AsObject; static toObject(includeInstance: boolean, msg: CreateProcessingCycleRequest): CreateProcessingCycleRequest.AsObject; static serializeBinaryToWriter(message: CreateProcessingCycleRequest, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): CreateProcessingCycleRequest; static deserializeBinaryFromReader(message: CreateProcessingCycleRequest, reader: jspb.BinaryReader): CreateProcessingCycleRequest; } export namespace CreateProcessingCycleRequest { export type AsObject = { cycleType: string, lastCompletedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, processedCount: number, cycleDurationMs: number, } } export class UpdateProcessingCycleRequest extends jspb.Message { getId(): number; setId(value: number): UpdateProcessingCycleRequest; getLastCompletedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setLastCompletedAt(value?: google_protobuf_timestamp_pb.Timestamp): UpdateProcessingCycleRequest; hasLastCompletedAt(): boolean; clearLastCompletedAt(): UpdateProcessingCycleRequest; getProcessedCount(): number; setProcessedCount(value: number): UpdateProcessingCycleRequest; getCycleDurationMs(): number; setCycleDurationMs(value: number): UpdateProcessingCycleRequest; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): UpdateProcessingCycleRequest.AsObject; static toObject(includeInstance: boolean, msg: UpdateProcessingCycleRequest): UpdateProcessingCycleRequest.AsObject; static serializeBinaryToWriter(message: UpdateProcessingCycleRequest, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): UpdateProcessingCycleRequest; static deserializeBinaryFromReader(message: UpdateProcessingCycleRequest, reader: jspb.BinaryReader): UpdateProcessingCycleRequest; } export namespace UpdateProcessingCycleRequest { export type AsObject = { id: number, lastCompletedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, processedCount: number, cycleDurationMs: number, } } export class GetProcessingCycleByTypeRequest extends jspb.Message { getCycleType(): string; setCycleType(value: string): GetProcessingCycleByTypeRequest; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetProcessingCycleByTypeRequest.AsObject; static toObject(includeInstance: boolean, msg: GetProcessingCycleByTypeRequest): GetProcessingCycleByTypeRequest.AsObject; static serializeBinaryToWriter(message: GetProcessingCycleByTypeRequest, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): GetProcessingCycleByTypeRequest; static deserializeBinaryFromReader(message: GetProcessingCycleByTypeRequest, reader: jspb.BinaryReader): GetProcessingCycleByTypeRequest; } export namespace GetProcessingCycleByTypeRequest { export type AsObject = { cycleType: string, } } export class ProcessingCycleResponse extends jspb.Message { getProcessingCycle(): ProcessingCycles | undefined; setProcessingCycle(value?: ProcessingCycles): ProcessingCycleResponse; hasProcessingCycle(): boolean; clearProcessingCycle(): ProcessingCycleResponse; getMessage(): string; setMessage(value: string): ProcessingCycleResponse; getSuccess(): boolean; setSuccess(value: boolean): ProcessingCycleResponse; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ProcessingCycleResponse.AsObject; static toObject(includeInstance: boolean, msg: ProcessingCycleResponse): ProcessingCycleResponse.AsObject; static serializeBinaryToWriter(message: ProcessingCycleResponse, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): ProcessingCycleResponse; static deserializeBinaryFromReader(message: ProcessingCycleResponse, reader: jspb.BinaryReader): ProcessingCycleResponse; } export namespace ProcessingCycleResponse { export type AsObject = { processingCycle?: ProcessingCycles.AsObject, message: string, success: boolean, } }