@transai/connector-runner-control-office 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/DOCUMENTATION.md +2 -2
- package/README.md +4 -2
- package/index.cjs +13 -13
- package/index.cjs.map +3 -3
- package/integrations/connector-runner-control-office/src/lib/odata-reader.d.ts +2 -4
- package/integrations/connector-runner-control-office/src/lib/types.d.ts +5 -1
- package/package.json +1 -1
|
@@ -4,10 +4,8 @@ export declare class ODataReader {
|
|
|
4
4
|
#private;
|
|
5
5
|
constructor(client: HttpClientSDKInterface, config: Pick<ValidatedConfig, 'url' | 'apiKey' | 'pageSize'>);
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* shifts every later page and one record is lost. Paging stops on an empty page, so a silently
|
|
10
|
-
* capped $top cannot truncate the read.
|
|
7
|
+
* A source timestamp/GUID cursor cannot shift when earlier rows change during a read.
|
|
8
|
+
* Ignore skip-based server nextLinks and stop only on an empty page, since $top may be capped.
|
|
11
9
|
*/
|
|
12
10
|
pages(resource: IResource, bounds: IBounds): AsyncGenerator<Array<ControlOfficeRecord>>;
|
|
13
11
|
get(resource: IResource, id: string): Promise<ControlOfficeRecord>;
|
|
@@ -11,7 +11,6 @@ export declare const DEFAULT_DATASOURCE = "control-office";
|
|
|
11
11
|
export declare const DEFAULTS: {
|
|
12
12
|
readonly interval: 300;
|
|
13
13
|
readonly pageSize: 100;
|
|
14
|
-
readonly overlapMs: number;
|
|
15
14
|
readonly actionRecordLimit: 1000;
|
|
16
15
|
readonly syncTimeoutSeconds: number;
|
|
17
16
|
};
|
|
@@ -31,8 +30,13 @@ export interface IResource {
|
|
|
31
30
|
}
|
|
32
31
|
export interface IBounds {
|
|
33
32
|
from?: string;
|
|
33
|
+
after?: ICursor;
|
|
34
34
|
until: string;
|
|
35
35
|
}
|
|
36
|
+
export interface ICursor {
|
|
37
|
+
modified: string;
|
|
38
|
+
id: string;
|
|
39
|
+
}
|
|
36
40
|
export type ControlOfficeRecord = Record<string, unknown> & {
|
|
37
41
|
Id: string;
|
|
38
42
|
Modified: string;
|