UNPKG

com.envoy.events

Version:

Event Data Model Definition in Envoy

86 lines (85 loc) 2.77 kB
import * as _m0 from "protobufjs/minimal"; export declare const protobufPackage = "com.envoy.events.core.rooms"; export interface Room { /** put your comment here. */ id: number; name: string; location?: Location | undefined; } export interface Location { id: number; name: string; } export declare const Room: { encode(message: Room, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Room; fromJSON(object: any): Room; toJSON(message: Room): unknown; create<I extends { id?: number; name?: string; location?: { id?: number; name?: string; }; } & { id?: number; name?: string; location?: { id?: number; name?: string; } & { id?: number; name?: string; } & { [K in Exclude<keyof I["location"], keyof Location>]: never; }; } & { [K_1 in Exclude<keyof I, keyof Room>]: never; }>(base?: I): Room; fromPartial<I_1 extends { id?: number; name?: string; location?: { id?: number; name?: string; }; } & { id?: number; name?: string; location?: { id?: number; name?: string; } & { id?: number; name?: string; } & { [K_2 in Exclude<keyof I_1["location"], keyof Location>]: never; }; } & { [K_3 in Exclude<keyof I_1, keyof Room>]: never; }>(object: I_1): Room; }; export declare const Location: { encode(message: Location, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Location; fromJSON(object: any): Location; toJSON(message: Location): unknown; create<I extends { id?: number; name?: string; } & { id?: number; name?: string; } & { [K in Exclude<keyof I, keyof Location>]: never; }>(base?: I): Location; fromPartial<I_1 extends { id?: number; name?: string; } & { id?: number; name?: string; } & { [K_1 in Exclude<keyof I_1, keyof Location>]: never; }>(object: I_1): Location; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]>; } : Partial<T>; type KeysOfUnion<T> = T extends T ? keyof T : never; export type Exact<P, I extends P> = P extends Builtin ? P : P & { [K in keyof P]: Exact<P[K], I[K]>; } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never; }; export {};