@contrail/documents 1.14.0-alpha.7d6b4b6 → 1.14.0-alpha.fad0c9c
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
CHANGED
|
@@ -7,9 +7,13 @@ Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
7
7
|
|
|
8
8
|
## [1.14.0] - 2026-07-29
|
|
9
9
|
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- `InlineDocumentTransaction` and `S3DocumentTransaction` — the two named variants of `DocumentTransaction`, mirroring `InlineWriteTransactionRequest` / `S3WriteTransactionRequest`. Use these when you need a single variant, or something to extend.
|
|
13
|
+
|
|
10
14
|
### Changed
|
|
11
15
|
|
|
12
|
-
- `DocumentTransaction` is now a union of inline `operations` or an `operationsDownloadUrl`, matching the shape `DocumentTransactionMessage` already uses for WebSocket broadcasts. A transaction whose operations overflowed to S3 is read back as a presigned download URL rather than having its operations inlined, so a page of transactions cannot exceed the response size limit. Readers that assumed `operations` was always present must handle both variants
|
|
16
|
+
- `DocumentTransaction` is now a union of inline `operations` or an `operationsDownloadUrl`, matching the shape `DocumentTransactionMessage` already uses for WebSocket broadcasts. A transaction whose operations overflowed to S3 is read back as a presigned download URL rather than having its operations inlined, so a page of transactions cannot exceed the response size limit. Readers that assumed `operations` was always present must handle both variants, and anything that did `extends DocumentTransaction` should now extend `InlineDocumentTransaction` or `S3DocumentTransaction`.
|
|
13
17
|
|
|
14
18
|
## [1.13.0] - 2026-07-27
|
|
15
19
|
|
|
@@ -33,13 +33,15 @@ interface DocumentTransactionBase {
|
|
|
33
33
|
sequenceNumber: number;
|
|
34
34
|
clientTransactionId?: string;
|
|
35
35
|
}
|
|
36
|
-
export
|
|
36
|
+
export interface InlineDocumentTransaction extends DocumentTransactionBase {
|
|
37
37
|
operations: DocumentOperation[];
|
|
38
38
|
operationsDownloadUrl?: never;
|
|
39
|
-
}
|
|
40
|
-
|
|
39
|
+
}
|
|
40
|
+
export interface S3DocumentTransaction extends DocumentTransactionBase {
|
|
41
41
|
operations?: never;
|
|
42
|
-
|
|
42
|
+
operationsDownloadUrl: string;
|
|
43
|
+
}
|
|
44
|
+
export type DocumentTransaction = InlineDocumentTransaction | S3DocumentTransaction;
|
|
43
45
|
export interface GetDocumentTransactionsResponse {
|
|
44
46
|
transactions: DocumentTransaction[];
|
|
45
47
|
hasMore: boolean;
|