@doflo/flow-interfaces
Advanced tools
Comparing version 1.17.94 to 1.17.95
@@ -271,5 +271,49 @@ /// <reference types="node" /> | ||
} | ||
export interface eJSONDate { | ||
"$date": string; | ||
} | ||
export interface eJSONUUID { | ||
"$binary": { | ||
base64: string; | ||
subType: string; | ||
}; | ||
} | ||
declare interface UpdateIntervalEvent { | ||
id?: string; | ||
active?: boolean; | ||
schedule?: string; | ||
} | ||
declare interface IntervalEvent<T = any> extends ActiveEvent<T> { | ||
id?: string; | ||
active?: boolean; | ||
key: string; | ||
last: eJSONDate; | ||
next: eJSONDate; | ||
schedule?: string; | ||
event: ExecutionWrapper<T>; | ||
start?: eJSONDate; | ||
end?: eJSONDate; | ||
status?: number; | ||
} | ||
declare interface ActiveEvent<T = any> { | ||
id?: string; | ||
key?: string; | ||
next: eJSONDate; | ||
event: ExecutionWrapper<T>; | ||
status?: number; | ||
} | ||
export interface ISchedule { | ||
get: <T = any>(id: string) => Promise<IntervalEvent<T>>; | ||
/** | ||
*  | ||
* | ||
* **schedule** cron schedule an event | ||
*/ | ||
schedule: (event: IntervalEvent) => Promise<string>; | ||
update: (update: UpdateIntervalEvent) => Promise<boolean>; | ||
delete: (id: string) => Promise<boolean>; | ||
} | ||
export interface IStash { | ||
/** | ||
*  | ||
*  | ||
* | ||
@@ -296,3 +340,3 @@ * **stash** short term storage of data, (up to 2 days) this is commonly used to securely stash | ||
/** | ||
*  | ||
*  | ||
* | ||
@@ -316,3 +360,3 @@ * **pickup** short term storage of data, (up to 2 days) this is commonly used to securely stash | ||
/** | ||
*  | ||
*  | ||
* | ||
@@ -319,0 +363,0 @@ * **expire** short term storage of data, (up to 2 days) this is commonly used to securely stash |
{ | ||
"name": "@doflo/flow-interfaces", | ||
"version": "1.17.94", | ||
"version": "1.17.95", | ||
"description": "Public Interfaces, Schemas, & GRPC Signatures for doFlo developers", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
405726
9729