import { String, Datetime } from "oak-domain/lib/types/DataType"; import { Q_DateValue, Q_StringValue, Q_EnumValue, NodeId, MakeFilter, ExprOp, ExpressionKey } from "oak-domain/lib/types/Demand"; import { OneOf } from "oak-domain/lib/types/Polyfill"; import * as SubQuery from "../_SubQuery"; import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, MakeAction as OakMakeAction, EntityShape } from "oak-domain/lib/types/Entity"; import { GenericAction } from "oak-domain/lib/actions/action"; export declare type OpSchema = EntityShape & { title: String<32>; streamTitle: String<32>; liveonly: 'online' | 'offline'; hub: String<32>; streamKey: String<64>; entity: String<32>; entityId: String<64>; rtmpPushUrl: String<64>; rtmpPlayUrl: String<64>; pcPushUrl: String<64>; expireAt: Datetime; }; export declare type OpAttr = keyof OpSchema; export declare type Schema = EntityShape & { title: String<32>; streamTitle: String<32>; liveonly: 'online' | 'offline'; hub: String<32>; streamKey: String<64>; entity: String<32>; entityId: String<64>; rtmpPushUrl: String<64>; rtmpPlayUrl: String<64>; pcPushUrl: String<64>; expireAt: Datetime; } & { [A in ExpressionKey]?: any; }; declare type AttrFilter = { id: Q_StringValue | SubQuery.LivestreamIdSubQuery; $$createAt$$: Q_DateValue; $$seq$$: Q_StringValue; $$updateAt$$: Q_DateValue; title: Q_StringValue; streamTitle: Q_StringValue; liveonly: Q_EnumValue<'online' | 'offline'>; hub: Q_StringValue; streamKey: Q_StringValue; entity: Q_StringValue; entityId: Q_StringValue; rtmpPushUrl: Q_StringValue; rtmpPlayUrl: Q_StringValue; pcPushUrl: Q_StringValue; expireAt: Q_DateValue; }; export declare type Filter = MakeFilter>; export declare type Projection = { "#id"?: NodeId; [k: string]: any; id?: number; $$createAt$$?: number; $$updateAt$$?: number; $$seq$$?: number; title?: number; streamTitle?: number; liveonly?: number; hub?: number; streamKey?: number; entity?: number; entityId?: number; rtmpPushUrl?: number; rtmpPlayUrl?: number; pcPushUrl?: number; expireAt?: number; } & Partial>; declare type LivestreamIdProjection = OneOf<{ id: number; }>; export declare type SortAttr = { id: number; } | { $$createAt$$: number; } | { $$seq$$: number; } | { $$updateAt$$: number; } | { title: number; } | { streamTitle: number; } | { liveonly: number; } | { hub: number; } | { streamKey: number; } | { entity: number; } | { entityId: number; } | { rtmpPushUrl: number; } | { rtmpPlayUrl: number; } | { pcPushUrl: number; } | { expireAt: number; } | { [k: string]: any; } | OneOf>; export declare type SortNode = { $attr: SortAttr; $direction?: "asc" | "desc"; }; export declare type Sorter = SortNode[]; export declare type SelectOperation

= Omit, "id">; export declare type Selection

= Omit, "action">; export declare type Aggregation = Omit, "id">; export declare type CreateOperationData = FormCreateData> & ({ entity?: string; entityId?: string; [K: string]: any; }); export declare type CreateSingleOperation = OakOperation<"create", CreateOperationData>; export declare type CreateMultipleOperation = OakOperation<"create", Array>; export declare type CreateOperation = CreateSingleOperation | CreateMultipleOperation; export declare type UpdateOperationData = FormUpdateData & { [k: string]: any; }; export declare type UpdateOperation = OakOperation<"update" | string, UpdateOperationData, Filter, Sorter>; export declare type RemoveOperationData = {}; export declare type RemoveOperation = OakOperation<"remove", RemoveOperationData, Filter, Sorter>; export declare type Operation = CreateOperation | UpdateOperation | RemoveOperation | SelectOperation; export declare type LivestreamIdSubQuery = Selection; export declare type EntityDef = { Schema: Schema; OpSchema: OpSchema; Action: OakMakeAction | string; Selection: Selection; Aggregation: Aggregation; Operation: Operation; Create: CreateOperation; Update: UpdateOperation; Remove: RemoveOperation; CreateSingle: CreateSingleOperation; CreateMulti: CreateMultipleOperation; }; export {};