1 |
|
2 | import * as proto from "./protobuf_bundle";
|
3 | import * as rec from "@jayesol/jayeson.lib.record";
|
4 | import { RuleCombination } from "@jayesol/jayeson.model";
|
5 | export declare enum EncodeAction {
|
6 | INSERT = 0,
|
7 | UPDATE = 1,
|
8 | DELETE = 2
|
9 | }
|
10 | export interface ICodec {
|
11 | decodeRecord(input: proto.BaseRecord[], pool: string[], action: EncodeAction, key: rec.PartitionKey): rec.IBetMatch[];
|
12 | decodeEvent(input: proto.BaseEvent[], pool: string[], action: EncodeAction, key: rec.PartitionKey): rec.IBetMatch[];
|
13 | decodeMatch(input: proto.BaseMatch[], pool: string[], action: EncodeAction, key: rec.PartitionKey): rec.IBetMatch[];
|
14 | }
|
15 | export declare class CodecHelper {
|
16 | constructor();
|
17 | coerceInt64(val: number | Long): number;
|
18 | populatePKIntoMetaInfo(meta: rec.StringMap, key: rec.PartitionKey): rec.StringMap;
|
19 | round(num: number): number;
|
20 | }
|
21 | export declare class FilterRequest {
|
22 | private _requestId;
|
23 | private _ruleCombination;
|
24 | static readonly IGNORED_REQUEST_ID: number;
|
25 | constructor(_requestId: number, _ruleCombination: RuleCombination);
|
26 | getRequestId(): number;
|
27 | getFilterData(): RuleCombination;
|
28 | toJSON(): any;
|
29 | }
|
30 | export declare class Util {
|
31 | private static SEPARATOR;
|
32 | |
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 | static addKey(existing: string, incoming: string): string;
|
44 | |
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 | static removeKey(existing: string, incoming: string): string;
|
56 | static containsKey(existing: string, incoming: string): boolean;
|
57 | }
|