@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.
- package/CHANGELOG.md +4 -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
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 0.2.2 (2026-11-20)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for connector-runner-control-office to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
1
5
|
## 0.2.1 (2026-11-19)
|
|
2
6
|
|
|
3
7
|
This was a version bump only for connector-runner-control-office to align it with other projects, there were no code changes.
|
package/DOCUMENTATION.md
CHANGED
|
@@ -26,7 +26,7 @@ Create a user-bound OData API key in ControlOffice. The user must have permissio
|
|
|
26
26
|
}
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
The first poll reads all available records up to the start of that poll. Subsequent polls
|
|
29
|
+
The first poll reads all available records up to the start of that poll. Subsequent polls continue after the last successfully delivered record, ordered by ControlOffice `Modified` timestamp and `Id`. Records with a later timestamp, or the same timestamp and a greater `Id`, are selected without a time overlap. The full source timestamp precision is preserved. Existing timestamp-only progress is resumed inclusively at its saved timestamp before switching to timestamp-and-ID progress. Each selected dataset is polled on its own schedule; a dataset poll that is still running when the next one is due is skipped. Records use their ControlOffice `Id` as their document key.
|
|
30
30
|
|
|
31
31
|
## Available data
|
|
32
32
|
|
|
@@ -62,6 +62,6 @@ Successful reads also store their records in the matching transAI collection. A
|
|
|
62
62
|
|
|
63
63
|
Invalid configuration prevents startup. Unknown actions and invalid inputs return a bad-request response. HTTP errors, invalid records or failed ingestion fail that read. Polling progress advances after each page has been delivered successfully, so a failed poll resumes after the last delivered page. Polls can replay records already delivered; stable document keys keep them associated with the same source records.
|
|
64
64
|
|
|
65
|
-
HTTP 401 or 403 requires checking the API key and its user's permissions. The connector sends GET requests only. Record disappearance does not remove data from transAI; the source `RecordStatus` remains available for filtering. Hard deletes without a returned record cannot be detected by incremental polling.
|
|
65
|
+
HTTP 401 or 403 requires checking the API key and its user's permissions. The connector sends GET requests only. Record disappearance does not remove data from transAI; the source `RecordStatus` remains available for filtering. Hard deletes without a returned record cannot be detected by incremental polling. Changes must advance `Modified`; late or backdated records that fall before the saved timestamp-and-ID progress require a replay. To repeat the initial load, have your platform administrator clear the dataset's stored offset or set it with `id` `0`. To re-read inclusively from a point in time, replace its stored progress with a `timestamp` (milliseconds since epoch) and an `id`, for example `manual`, without the `cursorVersion` marker.
|
|
66
66
|
|
|
67
67
|
Polling requests at most 10,000 pages per read and stops with an error if that limit is exceeded. This guard prevents an indefinitely repeating API response from consuming resources.
|
package/README.md
CHANGED
|
@@ -10,9 +10,11 @@ The reference research is in the sibling `transai-integration-data/control-offic
|
|
|
10
10
|
|
|
11
11
|
## Runtime behavior
|
|
12
12
|
|
|
13
|
-
Each resource is one `ODataResourceAction` (`src/lib/actions/`), built from the table in `resources.ts`. Every selected action gets its own `ExtractorService` polling interval, like the other runners; an extractor skips a run while its previous run is still going.
|
|
13
|
+
Each resource is one `ODataResourceAction` (`src/lib/actions/`), built from the table in `resources.ts`. Every selected action gets its own `ExtractorService` polling interval, like the other runners; an extractor skips a run while its previous run is still going. Reads have an upper timestamp bound and order by `Modified asc,Id asc`. Polling and pagination continue with `Modified gt t or (Modified eq t and Id gt id)`, using the last delivered record's exact source timestamp and GUID. Workflow `modifiedFrom` reads keep an inclusive starting bound. Server `@odata.nextLink`s are ignored: skip-based pagination can shift when records change mid-read. Stopping only on an empty page means a silently capped `$top` cannot end the read early; a repeated page fails the read instead of looping. Redirects are disabled at the SDK HTTP adapter boundary.
|
|
14
14
|
|
|
15
|
-
Pages are delivered sequentially with `keyField: Id`.
|
|
15
|
+
Pages are delivered sequentially with `keyField: Id`. After each successfully delivered page, the offset stores the last record's GUID in `id`, the unrounded source timestamp in `rawTimestamp`, its millisecond representation in `timestamp`, and `cursorVersion: 1`. There is no time overlap. A failed read retains completed pages; an empty poll leaves progress unchanged and sends no documents. Offsets without the cursor marker resume inclusively at their saved timestamp, including old/manual GUID offsets, and become timestamp/GUID cursors after the next delivered page. SDK delivery acknowledgement means Kafka accepted the documents, rather than confirmation that downstream ingestion has completed. Workflow reads ingest their results and return them without modifying polling offsets; collection reads are capped at 1,000 records because the result travels in one Kafka response. Dry runs validate only.
|
|
16
|
+
|
|
17
|
+
Read-only GET probes against betech-test on 23 November 2026 confirmed the composite cursor filter on all 17 endpoints. Ordered continuations matched on all 11 populated resources, including equal-timestamp Employee records; the other six resources were empty. GUID comparisons used the same order as `$orderby=Modified asc,Id asc` in the checked results.
|
|
16
18
|
|
|
17
19
|
Changes to existing records are found through `Modified`; hard deletions and late/backdated changes older than the saved timestamp require operational reconciliation or an offset reset. Keep tenant and datasource identifiers stable for a connector instance. Changing its tenant URL or datasource requires resetting its offsets before polling resumes.
|
|
18
20
|
|