UNPKG

reduct-js

Version:

ReductStore Client SDK for Javascript/NodeJS/Typescript

29 lines (28 loc) 646 B
//#region src/messages/QueryEntry.ts var QueryType = /* @__PURE__ */ function(QueryType) { QueryType[QueryType["QUERY"] = 0] = "QUERY"; QueryType[QueryType["REMOVE"] = 1] = "REMOVE"; return QueryType; }({}); /** * Options for querying records */ var QueryOptions = class { static serialize(queryType, data, start, stop, entries) { return { start, stop, query_type: QueryType[queryType], entries, ttl: data.ttl, continuous: data.continuous, when: data.when, strict: data.strict, only_metadata: data.head, ext: data.ext }; } }; //#endregion exports.QueryOptions = QueryOptions; exports.QueryType = QueryType;