@yuants/protocol
Advanced tools
Comparing version 0.0.1 to 0.1.0
@@ -30,2 +30,25 @@ import { IDataRecord } from '../model'; | ||
} | ||
/** | ||
* Request to copy data records to receiver terminal. | ||
* | ||
* Response when all data records arrived the target. | ||
* | ||
* 1. The source terminal asks the target terminal to copy data records to the receiver terminal. | ||
* 2. The target terminal push data records to the receiver terminal. | ||
* the receiver terminal MUST implement `UpdateDataRecords`. | ||
* the target terminal serially micro-batching calls `UpdateDataRecords` to the receiver terminal. | ||
* 3. After all data records arrived the receiver terminal, the target terminal responses to the source terminal. | ||
* | ||
* E1. the target terminal SHOULD response error if any error occurred during the process. | ||
* | ||
* Recommended if the source terminal does not care about the content of data records. | ||
* | ||
* @public | ||
*/ | ||
export interface ICopyDataRecordsRequest extends IQueryDataRecordsRequest { | ||
/** | ||
* the receiver terminal that will receive `UpdateDataRecords` messages. | ||
*/ | ||
receiver_terminal_id: string; | ||
} | ||
declare module '.' { | ||
@@ -52,4 +75,9 @@ /** | ||
}; | ||
CopyDataRecords: { | ||
req: ICopyDataRecordsRequest; | ||
res: IResponse; | ||
frame: void; | ||
}; | ||
} | ||
} | ||
//# sourceMappingURL=data-record.d.ts.map |
{ | ||
"name": "@yuants/protocol", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
@@ -15,3 +15,3 @@ { | ||
"libraries/protocol/src/model.ts": "98098db6e2808d8314fbb72092abc6aa205a1efd", | ||
"libraries/protocol/src/services/data-record.ts": "1dfe0b9b4833559d689f5b89325deda68a32259e", | ||
"libraries/protocol/src/services/data-record.ts": "1d8c03e3d5705067cdc40c7cd203cf1dfe6f2fe5", | ||
"libraries/protocol/src/services/deprecated.ts": "bc48d7d5c281367be976ee68ab18c718790fbad6", | ||
@@ -18,0 +18,0 @@ "libraries/protocol/src/services/index.ts": "5ce6fb1d8c021683281bd9480f57c21ae51086d1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
869567
13847
2