You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4ec7c3c
Browse filesBrowse the repository at this point in the historyBrowse files
feat(connections): shadow write policy and the shadow close receipt
Regenerated from robosystems #1733 and #1738. The write-policy request
takes 'qb_authoritative' or 'shadow'; 'native' is no longer accepted,
since it is what disconnecting or severing leaves. The close receipt and
the period-drafts read carry the shadow fields.
Copy file name to clipboardExpand all lines: robosystems_client/graphql/schema.graphql
+31-3Lines changed: 31 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2376,7 +2376,8 @@ type PeriodCloseStatus {
2376
2376
One schedule's contribution to a period close — drafted closing
2377
2377
entry plus its reversal (when `auto_reverse=True`).
2378
2378
2379
-
`status` is the closing entry's draft/posted lifecycle. The
2379
+
`status` is the closing entry's draft/posted lifecycle (`shadowed` when a
2380
+
shadow close took the draft as an expectation and posted nothing). The
2380
2381
reversal mirrors the same shape with `reversal_*` fields.
2381
2382
"""
2382
2383
typePeriodCloseItem {
@@ -2403,7 +2404,9 @@ schema and both SDKs derive from it, and an opaque blob would push the
2403
2404
shape onto every reader to rediscover.
2404
2405
"""
2405
2406
typeCloseReceipt {
2406
-
"""Receipt schema version; 1 is the first shipped shape"""
2407
+
"""
2408
+
Receipt schema version; 1 is the first shipped shape, 2 adds the shadow fields
2409
+
"""
2407
2410
version: Int!
2408
2411
2409
2412
"""Period this receipt is for (YYYY-MM)"""
@@ -2436,6 +2439,18 @@ type CloseReceipt {
2436
2439
"""structure_id -> minted fact_set_id"""
2437
2440
stampedStatementSets: JSON!
2438
2441
statementRuleSummary: JSON
2442
+
2443
+
"""
2444
+
The close ran in shadow: nothing written to QuickBooks, nothing posted, the drafts shadowed, the gates recorded as findings
2445
+
"""
2446
+
shadow: Boolean!
2447
+
entriesShadowed: Int!
2448
+
2449
+
"""Blocker codes a shadow close recorded instead of enforcing"""
2450
+
gateFindings: [String!]!
2451
+
2452
+
"""Each finding's size: days stale, or a count"""
2453
+
gateFindingCounts: JSON
2439
2454
}
2440
2455
2441
2456
"""
@@ -2610,7 +2625,7 @@ type PeriodDrafts {
2610
2625
qbWritebackConnectionId: String
2611
2626
2612
2627
"""
2613
-
write_policy of the publishing QB connection ('qb_authoritative' / 'hybrid'), or null when there is no write-back connection.
2628
+
write_policy of the publishing QB connection ('qb_authoritative' / 'hybrid'), 'shadow' when the connection runs in shadow, or null when there is no write-back connection.
2614
2629
"""
2615
2630
qbWritePolicy: String
2616
2631
@@ -2619,6 +2634,14 @@ type PeriodDrafts {
2619
2634
2620
2635
"""Number of drafts that post locally only (no QB write-back)."""
2621
2636
localOnlyCount: Int!
2637
+
2638
+
"""
2639
+
True when the connection runs in shadow: the close writes nothing to QuickBooks and posts nothing; every draft becomes a shadowed expectation compared with what QuickBooks holds.
2640
+
"""
2641
+
shadow: Boolean!
2642
+
2643
+
"""Number of drafts the close will shadow (all of them, in shadow)."""
2644
+
shadowedCount: Int!
2622
2645
drafts: [DraftEntry!]!
2623
2646
}
2624
2647
@@ -2656,6 +2679,11 @@ type DraftEntry {
2656
2679
True if closing the period will publish this draft to QuickBooks — i.e. the graph has a qb_authoritative/hybrid QB connection AND this is an RL-originated draft (schedule/manual) not already in QB. False means it posts locally only.
2657
2680
"""
2658
2681
willPublishToQb: Boolean!
2682
+
2683
+
"""
2684
+
What the close does with this draft: 'publish' writes it to QuickBooks, 'post' posts it locally, 'shadow' takes it as an expectation with nothing written or posted (a shadow connection).
0 commit comments