@robosystems/client 0.3.15 → 0.3.17
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/artifacts/LedgerClient.d.ts +37 -1
- package/artifacts/LedgerClient.js +42 -0
- package/artifacts/LedgerClient.ts +106 -0
- package/artifacts/graphql/generated/graphql.d.ts +170 -4
- package/artifacts/graphql/generated/graphql.js +360 -1
- package/artifacts/graphql/generated/graphql.ts +536 -4
- package/artifacts/graphql/queries/ledger/agent.d.ts +7 -0
- package/artifacts/graphql/queries/ledger/agent.js +34 -0
- package/artifacts/graphql/queries/ledger/agent.ts +32 -0
- package/artifacts/graphql/queries/ledger/agents.d.ts +9 -0
- package/artifacts/graphql/queries/ledger/agents.js +48 -0
- package/artifacts/graphql/queries/ledger/agents.ts +46 -0
- package/artifacts/graphql/queries/ledger/eventBlock.d.ts +8 -0
- package/artifacts/graphql/queries/ledger/eventBlock.js +41 -0
- package/artifacts/graphql/queries/ledger/eventBlock.ts +39 -0
- package/artifacts/graphql/queries/ledger/eventBlocks.d.ts +11 -0
- package/artifacts/graphql/queries/ledger/eventBlocks.js +60 -0
- package/artifacts/graphql/queries/ledger/eventBlocks.ts +58 -0
- package/package.json +1 -1
- package/sdk/sdk.gen.d.ts +1 -1
- package/sdk/sdk.gen.js +1 -1
- package/sdk/sdk.gen.ts +1 -1
- package/sdk/types.gen.d.ts +10 -4
- package/sdk/types.gen.ts +10 -4
- package/sdk.gen.d.ts +1 -1
- package/sdk.gen.js +1 -1
- package/sdk.gen.ts +1 -1
- package/types.gen.d.ts +10 -4
- package/types.gen.ts +10 -4
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List agents (REA-aligned counterparty graph).
|
|
3
|
+
*
|
|
4
|
+
* `agentType` filters to `customer`, `vendor`, or `employee`. `source`
|
|
5
|
+
* scopes to a single ingestion source (e.g. `quickbooks`). `isActive`
|
|
6
|
+
* defaults to `true` on the resolver — pass explicit `false` to see
|
|
7
|
+
* deactivated agents, or `null` to see both.
|
|
8
|
+
*/
|
|
9
|
+
export declare const LIST_AGENTS: string;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LIST_AGENTS = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* List agents (REA-aligned counterparty graph).
|
|
7
|
+
*
|
|
8
|
+
* `agentType` filters to `customer`, `vendor`, or `employee`. `source`
|
|
9
|
+
* scopes to a single ingestion source (e.g. `quickbooks`). `isActive`
|
|
10
|
+
* defaults to `true` on the resolver — pass explicit `false` to see
|
|
11
|
+
* deactivated agents, or `null` to see both.
|
|
12
|
+
*/
|
|
13
|
+
exports.LIST_AGENTS = (0, graphql_request_1.gql) `
|
|
14
|
+
query ListLedgerAgents(
|
|
15
|
+
$agentType: String
|
|
16
|
+
$source: String
|
|
17
|
+
$isActive: Boolean = true
|
|
18
|
+
$limit: Int! = 50
|
|
19
|
+
$offset: Int! = 0
|
|
20
|
+
) {
|
|
21
|
+
agents(
|
|
22
|
+
agentType: $agentType
|
|
23
|
+
source: $source
|
|
24
|
+
isActive: $isActive
|
|
25
|
+
limit: $limit
|
|
26
|
+
offset: $offset
|
|
27
|
+
) {
|
|
28
|
+
id
|
|
29
|
+
agentType
|
|
30
|
+
name
|
|
31
|
+
legalName
|
|
32
|
+
taxId
|
|
33
|
+
registrationNumber
|
|
34
|
+
duns
|
|
35
|
+
lei
|
|
36
|
+
email
|
|
37
|
+
phone
|
|
38
|
+
address
|
|
39
|
+
source
|
|
40
|
+
externalId
|
|
41
|
+
isActive
|
|
42
|
+
is1099Recipient
|
|
43
|
+
createdAt
|
|
44
|
+
updatedAt
|
|
45
|
+
createdBy
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* List agents (REA-aligned counterparty graph).
|
|
5
|
+
*
|
|
6
|
+
* `agentType` filters to `customer`, `vendor`, or `employee`. `source`
|
|
7
|
+
* scopes to a single ingestion source (e.g. `quickbooks`). `isActive`
|
|
8
|
+
* defaults to `true` on the resolver — pass explicit `false` to see
|
|
9
|
+
* deactivated agents, or `null` to see both.
|
|
10
|
+
*/
|
|
11
|
+
export const LIST_AGENTS = gql`
|
|
12
|
+
query ListLedgerAgents(
|
|
13
|
+
$agentType: String
|
|
14
|
+
$source: String
|
|
15
|
+
$isActive: Boolean = true
|
|
16
|
+
$limit: Int! = 50
|
|
17
|
+
$offset: Int! = 0
|
|
18
|
+
) {
|
|
19
|
+
agents(
|
|
20
|
+
agentType: $agentType
|
|
21
|
+
source: $source
|
|
22
|
+
isActive: $isActive
|
|
23
|
+
limit: $limit
|
|
24
|
+
offset: $offset
|
|
25
|
+
) {
|
|
26
|
+
id
|
|
27
|
+
agentType
|
|
28
|
+
name
|
|
29
|
+
legalName
|
|
30
|
+
taxId
|
|
31
|
+
registrationNumber
|
|
32
|
+
duns
|
|
33
|
+
lei
|
|
34
|
+
email
|
|
35
|
+
phone
|
|
36
|
+
address
|
|
37
|
+
source
|
|
38
|
+
externalId
|
|
39
|
+
isActive
|
|
40
|
+
is1099Recipient
|
|
41
|
+
createdAt
|
|
42
|
+
updatedAt
|
|
43
|
+
createdBy
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get a single event block by id (the inbox detail view).
|
|
3
|
+
*
|
|
4
|
+
* `metadata` is a JSON dict — for QB-sourced events it carries the
|
|
5
|
+
* nested `entries[]` shape (memo + posting_date + line_items) that the
|
|
6
|
+
* journal_entry_recorded handler consumes on approve.
|
|
7
|
+
*/
|
|
8
|
+
export declare const GET_EVENT_BLOCK: string;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_EVENT_BLOCK = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* Get a single event block by id (the inbox detail view).
|
|
7
|
+
*
|
|
8
|
+
* `metadata` is a JSON dict — for QB-sourced events it carries the
|
|
9
|
+
* nested `entries[]` shape (memo + posting_date + line_items) that the
|
|
10
|
+
* journal_entry_recorded handler consumes on approve.
|
|
11
|
+
*/
|
|
12
|
+
exports.GET_EVENT_BLOCK = (0, graphql_request_1.gql) `
|
|
13
|
+
query GetLedgerEventBlock($id: String!) {
|
|
14
|
+
eventBlock(id: $id) {
|
|
15
|
+
id
|
|
16
|
+
eventType
|
|
17
|
+
eventCategory
|
|
18
|
+
eventClass
|
|
19
|
+
status
|
|
20
|
+
occurredAt
|
|
21
|
+
effectiveAt
|
|
22
|
+
source
|
|
23
|
+
externalId
|
|
24
|
+
externalUrl
|
|
25
|
+
amount
|
|
26
|
+
currency
|
|
27
|
+
description
|
|
28
|
+
metadata
|
|
29
|
+
dimensionIds
|
|
30
|
+
agentId
|
|
31
|
+
resourceType
|
|
32
|
+
resourceElementId
|
|
33
|
+
replacedByEventId
|
|
34
|
+
replacesEventId
|
|
35
|
+
obligatedByEventId
|
|
36
|
+
dischargesEventId
|
|
37
|
+
createdAt
|
|
38
|
+
createdBy
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
`;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Get a single event block by id (the inbox detail view).
|
|
5
|
+
*
|
|
6
|
+
* `metadata` is a JSON dict — for QB-sourced events it carries the
|
|
7
|
+
* nested `entries[]` shape (memo + posting_date + line_items) that the
|
|
8
|
+
* journal_entry_recorded handler consumes on approve.
|
|
9
|
+
*/
|
|
10
|
+
export const GET_EVENT_BLOCK = gql`
|
|
11
|
+
query GetLedgerEventBlock($id: String!) {
|
|
12
|
+
eventBlock(id: $id) {
|
|
13
|
+
id
|
|
14
|
+
eventType
|
|
15
|
+
eventCategory
|
|
16
|
+
eventClass
|
|
17
|
+
status
|
|
18
|
+
occurredAt
|
|
19
|
+
effectiveAt
|
|
20
|
+
source
|
|
21
|
+
externalId
|
|
22
|
+
externalUrl
|
|
23
|
+
amount
|
|
24
|
+
currency
|
|
25
|
+
description
|
|
26
|
+
metadata
|
|
27
|
+
dimensionIds
|
|
28
|
+
agentId
|
|
29
|
+
resourceType
|
|
30
|
+
resourceElementId
|
|
31
|
+
replacedByEventId
|
|
32
|
+
replacesEventId
|
|
33
|
+
obligatedByEventId
|
|
34
|
+
dischargesEventId
|
|
35
|
+
createdAt
|
|
36
|
+
createdBy
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List captured event blocks (the inbox surface).
|
|
3
|
+
*
|
|
4
|
+
* Filters are independent. `status` defaults to all on the wire, but
|
|
5
|
+
* the inbox UI typically passes `'captured'` to show un-reviewed events.
|
|
6
|
+
* `eventType` matches values like `invoice_issued`, `bill_received`,
|
|
7
|
+
* `payment_received`, `bill_paid`, `sales_receipt_recorded`,
|
|
8
|
+
* `journal_entry_recorded`. `eventCategory` groups them: `sales`,
|
|
9
|
+
* `purchase`, `adjustment`.
|
|
10
|
+
*/
|
|
11
|
+
export declare const LIST_EVENT_BLOCKS: string;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LIST_EVENT_BLOCKS = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* List captured event blocks (the inbox surface).
|
|
7
|
+
*
|
|
8
|
+
* Filters are independent. `status` defaults to all on the wire, but
|
|
9
|
+
* the inbox UI typically passes `'captured'` to show un-reviewed events.
|
|
10
|
+
* `eventType` matches values like `invoice_issued`, `bill_received`,
|
|
11
|
+
* `payment_received`, `bill_paid`, `sales_receipt_recorded`,
|
|
12
|
+
* `journal_entry_recorded`. `eventCategory` groups them: `sales`,
|
|
13
|
+
* `purchase`, `adjustment`.
|
|
14
|
+
*/
|
|
15
|
+
exports.LIST_EVENT_BLOCKS = (0, graphql_request_1.gql) `
|
|
16
|
+
query ListLedgerEventBlocks(
|
|
17
|
+
$eventType: String
|
|
18
|
+
$eventCategory: String
|
|
19
|
+
$status: String
|
|
20
|
+
$agentId: String
|
|
21
|
+
$source: String
|
|
22
|
+
$limit: Int! = 50
|
|
23
|
+
$offset: Int! = 0
|
|
24
|
+
) {
|
|
25
|
+
eventBlocks(
|
|
26
|
+
eventType: $eventType
|
|
27
|
+
eventCategory: $eventCategory
|
|
28
|
+
status: $status
|
|
29
|
+
agentId: $agentId
|
|
30
|
+
source: $source
|
|
31
|
+
limit: $limit
|
|
32
|
+
offset: $offset
|
|
33
|
+
) {
|
|
34
|
+
id
|
|
35
|
+
eventType
|
|
36
|
+
eventCategory
|
|
37
|
+
eventClass
|
|
38
|
+
status
|
|
39
|
+
occurredAt
|
|
40
|
+
effectiveAt
|
|
41
|
+
source
|
|
42
|
+
externalId
|
|
43
|
+
externalUrl
|
|
44
|
+
amount
|
|
45
|
+
currency
|
|
46
|
+
description
|
|
47
|
+
metadata
|
|
48
|
+
dimensionIds
|
|
49
|
+
agentId
|
|
50
|
+
resourceType
|
|
51
|
+
resourceElementId
|
|
52
|
+
replacedByEventId
|
|
53
|
+
replacesEventId
|
|
54
|
+
obligatedByEventId
|
|
55
|
+
dischargesEventId
|
|
56
|
+
createdAt
|
|
57
|
+
createdBy
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
`;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* List captured event blocks (the inbox surface).
|
|
5
|
+
*
|
|
6
|
+
* Filters are independent. `status` defaults to all on the wire, but
|
|
7
|
+
* the inbox UI typically passes `'captured'` to show un-reviewed events.
|
|
8
|
+
* `eventType` matches values like `invoice_issued`, `bill_received`,
|
|
9
|
+
* `payment_received`, `bill_paid`, `sales_receipt_recorded`,
|
|
10
|
+
* `journal_entry_recorded`. `eventCategory` groups them: `sales`,
|
|
11
|
+
* `purchase`, `adjustment`.
|
|
12
|
+
*/
|
|
13
|
+
export const LIST_EVENT_BLOCKS = gql`
|
|
14
|
+
query ListLedgerEventBlocks(
|
|
15
|
+
$eventType: String
|
|
16
|
+
$eventCategory: String
|
|
17
|
+
$status: String
|
|
18
|
+
$agentId: String
|
|
19
|
+
$source: String
|
|
20
|
+
$limit: Int! = 50
|
|
21
|
+
$offset: Int! = 0
|
|
22
|
+
) {
|
|
23
|
+
eventBlocks(
|
|
24
|
+
eventType: $eventType
|
|
25
|
+
eventCategory: $eventCategory
|
|
26
|
+
status: $status
|
|
27
|
+
agentId: $agentId
|
|
28
|
+
source: $source
|
|
29
|
+
limit: $limit
|
|
30
|
+
offset: $offset
|
|
31
|
+
) {
|
|
32
|
+
id
|
|
33
|
+
eventType
|
|
34
|
+
eventCategory
|
|
35
|
+
eventClass
|
|
36
|
+
status
|
|
37
|
+
occurredAt
|
|
38
|
+
effectiveAt
|
|
39
|
+
source
|
|
40
|
+
externalId
|
|
41
|
+
externalUrl
|
|
42
|
+
amount
|
|
43
|
+
currency
|
|
44
|
+
description
|
|
45
|
+
metadata
|
|
46
|
+
dimensionIds
|
|
47
|
+
agentId
|
|
48
|
+
resourceType
|
|
49
|
+
resourceElementId
|
|
50
|
+
replacedByEventId
|
|
51
|
+
replacesEventId
|
|
52
|
+
obligatedByEventId
|
|
53
|
+
dischargesEventId
|
|
54
|
+
createdAt
|
|
55
|
+
createdBy
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
`
|
package/package.json
CHANGED
package/sdk/sdk.gen.d.ts
CHANGED
|
@@ -760,7 +760,7 @@ export declare const opCreateEventBlock: <ThrowOnError extends boolean = false>(
|
|
|
760
760
|
/**
|
|
761
761
|
* Update Event Block
|
|
762
762
|
*
|
|
763
|
-
* Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated.
|
|
763
|
+
* Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated. When the transition is captured/classified → committed, the registered Python handler fires against the captured metadata to produce the GL rows; errors from the handler (validation, element resolution, closed period, unbalanced lines) surface as 422 here so the inbox UI can display the failure reason without retry.
|
|
764
764
|
*
|
|
765
765
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
766
766
|
*/
|
package/sdk/sdk.gen.js
CHANGED
|
@@ -1572,7 +1572,7 @@ exports.opCreateEventBlock = opCreateEventBlock;
|
|
|
1572
1572
|
/**
|
|
1573
1573
|
* Update Event Block
|
|
1574
1574
|
*
|
|
1575
|
-
* Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated.
|
|
1575
|
+
* Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated. When the transition is captured/classified → committed, the registered Python handler fires against the captured metadata to produce the GL rows; errors from the handler (validation, element resolution, closed period, unbalanced lines) surface as 422 here so the inbox UI can display the failure reason without retry.
|
|
1576
1576
|
*
|
|
1577
1577
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1578
1578
|
*/
|
package/sdk/sdk.gen.ts
CHANGED
|
@@ -1584,7 +1584,7 @@ export const opCreateEventBlock = <ThrowOnError extends boolean = false>(options
|
|
|
1584
1584
|
/**
|
|
1585
1585
|
* Update Event Block
|
|
1586
1586
|
*
|
|
1587
|
-
* Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated.
|
|
1587
|
+
* Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated. When the transition is captured/classified → committed, the registered Python handler fires against the captured metadata to produce the GL rows; errors from the handler (validation, element resolution, closed period, unbalanced lines) surface as 422 here so the inbox UI can display the failure reason without retry.
|
|
1588
1588
|
*
|
|
1589
1589
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1590
1590
|
*/
|
package/sdk/types.gen.d.ts
CHANGED
|
@@ -6956,15 +6956,21 @@ export type SuccessResponse = {
|
|
|
6956
6956
|
*/
|
|
6957
6957
|
export type SyncConnectionRequest = {
|
|
6958
6958
|
/**
|
|
6959
|
-
* Full
|
|
6959
|
+
* Full Rebuild
|
|
6960
6960
|
*
|
|
6961
|
-
*
|
|
6961
|
+
* Pull complete history from the provider, ignoring lookback window. Takes precedence over since_date.
|
|
6962
6962
|
*/
|
|
6963
|
-
|
|
6963
|
+
full_rebuild?: boolean;
|
|
6964
|
+
/**
|
|
6965
|
+
* Since Date
|
|
6966
|
+
*
|
|
6967
|
+
* Sync data from this date forward (ISO 8601). Ignored if full_rebuild=True. If neither set, provider default applies (e.g., QuickBooks: 60 days).
|
|
6968
|
+
*/
|
|
6969
|
+
since_date?: string | null;
|
|
6964
6970
|
/**
|
|
6965
6971
|
* Sync Options
|
|
6966
6972
|
*
|
|
6967
|
-
* Provider-specific sync options
|
|
6973
|
+
* Provider-specific sync options (escape hatch for fields not exposed at the top level).
|
|
6968
6974
|
*/
|
|
6969
6975
|
sync_options?: {
|
|
6970
6976
|
[key: string]: unknown;
|
package/sdk/types.gen.ts
CHANGED
|
@@ -7154,15 +7154,21 @@ export type SuccessResponse = {
|
|
|
7154
7154
|
*/
|
|
7155
7155
|
export type SyncConnectionRequest = {
|
|
7156
7156
|
/**
|
|
7157
|
-
* Full
|
|
7157
|
+
* Full Rebuild
|
|
7158
7158
|
*
|
|
7159
|
-
*
|
|
7159
|
+
* Pull complete history from the provider, ignoring lookback window. Takes precedence over since_date.
|
|
7160
7160
|
*/
|
|
7161
|
-
|
|
7161
|
+
full_rebuild?: boolean;
|
|
7162
|
+
/**
|
|
7163
|
+
* Since Date
|
|
7164
|
+
*
|
|
7165
|
+
* Sync data from this date forward (ISO 8601). Ignored if full_rebuild=True. If neither set, provider default applies (e.g., QuickBooks: 60 days).
|
|
7166
|
+
*/
|
|
7167
|
+
since_date?: string | null;
|
|
7162
7168
|
/**
|
|
7163
7169
|
* Sync Options
|
|
7164
7170
|
*
|
|
7165
|
-
* Provider-specific sync options
|
|
7171
|
+
* Provider-specific sync options (escape hatch for fields not exposed at the top level).
|
|
7166
7172
|
*/
|
|
7167
7173
|
sync_options?: {
|
|
7168
7174
|
[key: string]: unknown;
|
package/sdk.gen.d.ts
CHANGED
|
@@ -760,7 +760,7 @@ export declare const opCreateEventBlock: <ThrowOnError extends boolean = false>(
|
|
|
760
760
|
/**
|
|
761
761
|
* Update Event Block
|
|
762
762
|
*
|
|
763
|
-
* Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated.
|
|
763
|
+
* Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated. When the transition is captured/classified → committed, the registered Python handler fires against the captured metadata to produce the GL rows; errors from the handler (validation, element resolution, closed period, unbalanced lines) surface as 422 here so the inbox UI can display the failure reason without retry.
|
|
764
764
|
*
|
|
765
765
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
766
766
|
*/
|
package/sdk.gen.js
CHANGED
|
@@ -1572,7 +1572,7 @@ exports.opCreateEventBlock = opCreateEventBlock;
|
|
|
1572
1572
|
/**
|
|
1573
1573
|
* Update Event Block
|
|
1574
1574
|
*
|
|
1575
|
-
* Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated.
|
|
1575
|
+
* Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated. When the transition is captured/classified → committed, the registered Python handler fires against the captured metadata to produce the GL rows; errors from the handler (validation, element resolution, closed period, unbalanced lines) surface as 422 here so the inbox UI can display the failure reason without retry.
|
|
1576
1576
|
*
|
|
1577
1577
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1578
1578
|
*/
|
package/sdk.gen.ts
CHANGED
|
@@ -1584,7 +1584,7 @@ export const opCreateEventBlock = <ThrowOnError extends boolean = false>(options
|
|
|
1584
1584
|
/**
|
|
1585
1585
|
* Update Event Block
|
|
1586
1586
|
*
|
|
1587
|
-
* Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated.
|
|
1587
|
+
* Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated. When the transition is captured/classified → committed, the registered Python handler fires against the captured metadata to produce the GL rows; errors from the handler (validation, element resolution, closed period, unbalanced lines) surface as 422 here so the inbox UI can display the failure reason without retry.
|
|
1588
1588
|
*
|
|
1589
1589
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1590
1590
|
*/
|
package/types.gen.d.ts
CHANGED
|
@@ -6956,15 +6956,21 @@ export type SuccessResponse = {
|
|
|
6956
6956
|
*/
|
|
6957
6957
|
export type SyncConnectionRequest = {
|
|
6958
6958
|
/**
|
|
6959
|
-
* Full
|
|
6959
|
+
* Full Rebuild
|
|
6960
6960
|
*
|
|
6961
|
-
*
|
|
6961
|
+
* Pull complete history from the provider, ignoring lookback window. Takes precedence over since_date.
|
|
6962
6962
|
*/
|
|
6963
|
-
|
|
6963
|
+
full_rebuild?: boolean;
|
|
6964
|
+
/**
|
|
6965
|
+
* Since Date
|
|
6966
|
+
*
|
|
6967
|
+
* Sync data from this date forward (ISO 8601). Ignored if full_rebuild=True. If neither set, provider default applies (e.g., QuickBooks: 60 days).
|
|
6968
|
+
*/
|
|
6969
|
+
since_date?: string | null;
|
|
6964
6970
|
/**
|
|
6965
6971
|
* Sync Options
|
|
6966
6972
|
*
|
|
6967
|
-
* Provider-specific sync options
|
|
6973
|
+
* Provider-specific sync options (escape hatch for fields not exposed at the top level).
|
|
6968
6974
|
*/
|
|
6969
6975
|
sync_options?: {
|
|
6970
6976
|
[key: string]: unknown;
|
package/types.gen.ts
CHANGED
|
@@ -7154,15 +7154,21 @@ export type SuccessResponse = {
|
|
|
7154
7154
|
*/
|
|
7155
7155
|
export type SyncConnectionRequest = {
|
|
7156
7156
|
/**
|
|
7157
|
-
* Full
|
|
7157
|
+
* Full Rebuild
|
|
7158
7158
|
*
|
|
7159
|
-
*
|
|
7159
|
+
* Pull complete history from the provider, ignoring lookback window. Takes precedence over since_date.
|
|
7160
7160
|
*/
|
|
7161
|
-
|
|
7161
|
+
full_rebuild?: boolean;
|
|
7162
|
+
/**
|
|
7163
|
+
* Since Date
|
|
7164
|
+
*
|
|
7165
|
+
* Sync data from this date forward (ISO 8601). Ignored if full_rebuild=True. If neither set, provider default applies (e.g., QuickBooks: 60 days).
|
|
7166
|
+
*/
|
|
7167
|
+
since_date?: string | null;
|
|
7162
7168
|
/**
|
|
7163
7169
|
* Sync Options
|
|
7164
7170
|
*
|
|
7165
|
-
* Provider-specific sync options
|
|
7171
|
+
* Provider-specific sync options (escape hatch for fields not exposed at the top level).
|
|
7166
7172
|
*/
|
|
7167
7173
|
sync_options?: {
|
|
7168
7174
|
[key: string]: unknown;
|