@synerty/orb-vortexjs
Version:
Custom observable data serialisation and routing based on Angular2
47 lines (46 loc) • 1.43 kB
TypeScript
import { Tuple, TupleChangeI } from "./Tuple";
import { TupleSelector } from "./TupleSelector";
/** Tuple Action Base Class
*
* A tuple action, represents an action the user or software wishes to perform.
* Actions have a specific destination they must reach. (as apposed to Observers)
*
* @property key An optional key for this action
* @property data Some optional data for this action
*
* */
export declare class TupleActionABC extends Tuple {
uuid: number;
dateTime: Date;
constructor(tupleName: string);
}
/** Tuple Generic Action
*
* This is a generic action, to be used when the implementor doesn't want to implement
* concrete classes for each action type.
*
* @property key An optional key for this action
* @property data Some optional data for this action
*
* */
export declare class TupleGenericAction extends TupleActionABC {
key: string | null;
data: any;
constructor();
}
/** Tuple Update Action
*
* This is an action representing an update to a Tuple.
* It's original intention is to be used to store offline updates, which can then be
* later applied when it's online.
*
* @property key An optional key for this action
* @property data Some optional data for this action
*
* */
export declare class TupleUpdateAction extends TupleActionABC {
tupleSelector: TupleSelector;
tupleChanges: TupleChangeI[];
data: any;
constructor();
}