@transai/connector-runner-control-office 0.2.2 → 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.
@@ -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
- * Pages continue from the last Modified seen and $skip only the records already read at that exact
8
- * timestamp. Server nextLinks are ignored: they $skip from the start, so a record edited mid-read
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transai/connector-runner-control-office",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },