@robosystems/client 2.11.1 → 2.11.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.
@@ -59,6 +59,10 @@ export type LedgerReconciliation = LedgerReconciliationList['reconciliations'][n
59
59
  export type LedgerReconciliationRow = LedgerReconciliation['differences'][number];
60
60
  /** One part of an account's independent balance: a schedule, or a statement. */
61
61
  export type LedgerReconciliationComponent = LedgerReconciliation['components'][number];
62
+ /** A statement carried to the period's last day by the bank feed's own lines. */
63
+ export type LedgerReconciliationRollForward = NonNullable<LedgerReconciliation['rollForward']>;
64
+ /** How often an account's statement is issued. */
65
+ export type StatementCycle = 'monthly' | 'quarterly' | 'annual';
62
66
  export type Report = NonNullable<GetLedgerReportQuery['report']>;
63
67
  export type ReportPackage = NonNullable<GetLedgerReportPackageQuery['reportPackage']>;
64
68
  export type ReportPackageItem = ReportPackage['items'][number];
@@ -306,6 +310,8 @@ export interface ReconciliationPolicyChanges {
306
310
  materiality?: number;
307
311
  reviewRequired?: boolean;
308
312
  separateReviewer?: boolean;
313
+ /** Statement reconciliations only: how often the statement is issued. */
314
+ statementCycle?: StatementCycle;
309
315
  }
310
316
  export interface LedgerReconciliationPolicy {
311
317
  structureId: string;
@@ -313,6 +319,8 @@ export interface LedgerReconciliationPolicy {
313
319
  materiality: number;
314
320
  reviewRequired: boolean;
315
321
  separateReviewer: boolean;
322
+ /** Statement reconciliations only; null for any other. */
323
+ statementCycle: StatementCycle | null;
316
324
  }
317
325
  export interface CreateScheduleOptions {
318
326
  name: string;
@@ -846,6 +846,7 @@ class LedgerClient {
846
846
  materiality: changes.materiality,
847
847
  review_required: changes.reviewRequired,
848
848
  separate_reviewer: changes.separateReviewer,
849
+ statement_cycle: changes.statementCycle,
849
850
  };
850
851
  const envelope = await this.callOperation('Set reconciliation policy', (o) => (0, sdk_gen_1.setReconciliationPolicy)({ ...o, path: { graph_id: graphId }, body }));
851
852
  const raw = envelope.result;
@@ -855,6 +856,7 @@ class LedgerClient {
855
856
  materiality: raw.materiality,
856
857
  reviewRequired: raw.review_required,
857
858
  separateReviewer: raw.separate_reviewer,
859
+ statementCycle: raw.statement_cycle ?? null,
858
860
  };
859
861
  }
860
862
  /**
@@ -1477,12 +1479,30 @@ function reconciliationComponentToCamel(raw) {
1477
1479
  return {
1478
1480
  name: raw.name,
1479
1481
  amount: raw.amount,
1482
+ kind: raw.kind ?? null,
1483
+ postingDate: raw.posting_date ?? null,
1484
+ entryId: raw.entry_id ?? null,
1480
1485
  structureId: raw.structure_id ?? null,
1481
1486
  eventId: raw.event_id ?? null,
1482
1487
  documentId: raw.document_id ?? null,
1483
1488
  note: raw.note ?? null,
1484
1489
  };
1485
1490
  }
1491
+ function reconciliationRollForwardToCamel(raw) {
1492
+ if (!raw)
1493
+ return null;
1494
+ return {
1495
+ statementAsOf: raw.statement_as_of,
1496
+ through: raw.through,
1497
+ bankLines: raw.bank_lines,
1498
+ bankActivity: raw.bank_activity,
1499
+ bankBalance: raw.bank_balance,
1500
+ ledgerBalance: raw.ledger_balance,
1501
+ outstanding: raw.outstanding,
1502
+ feedBalance: raw.feed_balance ?? null,
1503
+ feedBalanceReadOn: raw.feed_balance_read_on ?? null,
1504
+ };
1505
+ }
1486
1506
  function reconciliationRowToCamel(raw) {
1487
1507
  return {
1488
1508
  elementId: raw.element_id ?? null,
@@ -1496,6 +1516,7 @@ function reconciliationRowToCamel(raw) {
1496
1516
  status: raw.status,
1497
1517
  asOf: raw.as_of ?? null,
1498
1518
  components: (raw.components ?? []).map(reconciliationComponentToCamel),
1519
+ rollForward: reconciliationRollForwardToCamel(raw.roll_forward),
1499
1520
  };
1500
1521
  }
1501
1522
  /**
@@ -1511,6 +1532,7 @@ function reconciliationSummaryToCamel(raw) {
1511
1532
  elementId: raw.element_id ?? null,
1512
1533
  requiredForClose: raw.required_for_close,
1513
1534
  materiality: raw.materiality,
1535
+ statementCycle: raw.statement_cycle ?? null,
1514
1536
  period: raw.period,
1515
1537
  asOf: raw.as_of,
1516
1538
  status: raw.status,
@@ -1521,6 +1543,7 @@ function reconciliationSummaryToCamel(raw) {
1521
1543
  independentBalance: raw.independent_balance ?? null,
1522
1544
  balanceAsOf: raw.balance_as_of ?? null,
1523
1545
  components: (raw.components ?? []).map(reconciliationComponentToCamel),
1546
+ rollForward: reconciliationRollForwardToCamel(raw.roll_forward),
1524
1547
  source: raw.source ?? null,
1525
1548
  comparedAt: raw.compared_at ?? null,
1526
1549
  factSetId: raw.fact_set_id ?? null,
@@ -147,6 +147,7 @@ import type {
147
147
  ReconciliationListResponse,
148
148
  ReconciliationPolicyResponse,
149
149
  ReconciliationPreviewResponse,
150
+ ReconciliationRollForward,
150
151
  ReconciliationRow,
151
152
  ReconciliationSummary,
152
153
  ReconcilingItemPlan,
@@ -358,6 +359,12 @@ export type LedgerReconciliationRow = LedgerReconciliation['differences'][number
358
359
  /** One part of an account's independent balance: a schedule, or a statement. */
359
360
  export type LedgerReconciliationComponent = LedgerReconciliation['components'][number]
360
361
 
362
+ /** A statement carried to the period's last day by the bank feed's own lines. */
363
+ export type LedgerReconciliationRollForward = NonNullable<LedgerReconciliation['rollForward']>
364
+
365
+ /** How often an account's statement is issued. */
366
+ export type StatementCycle = 'monthly' | 'quarterly' | 'annual'
367
+
361
368
  // Reports + publish lists + statements
362
369
  export type Report = NonNullable<GetLedgerReportQuery['report']>
363
370
  export type ReportPackage = NonNullable<GetLedgerReportPackageQuery['reportPackage']>
@@ -725,6 +732,8 @@ export interface ReconciliationPolicyChanges {
725
732
  materiality?: number
726
733
  reviewRequired?: boolean
727
734
  separateReviewer?: boolean
735
+ /** Statement reconciliations only: how often the statement is issued. */
736
+ statementCycle?: StatementCycle
728
737
  }
729
738
 
730
739
  export interface LedgerReconciliationPolicy {
@@ -733,6 +742,8 @@ export interface LedgerReconciliationPolicy {
733
742
  materiality: number
734
743
  reviewRequired: boolean
735
744
  separateReviewer: boolean
745
+ /** Statement reconciliations only; null for any other. */
746
+ statementCycle: StatementCycle | null
736
747
  }
737
748
 
738
749
  export interface CreateScheduleOptions {
@@ -2285,6 +2296,7 @@ export class LedgerClient {
2285
2296
  materiality: changes.materiality,
2286
2297
  review_required: changes.reviewRequired,
2287
2298
  separate_reviewer: changes.separateReviewer,
2299
+ statement_cycle: changes.statementCycle,
2288
2300
  }
2289
2301
  const envelope = await this.callOperation('Set reconciliation policy', (o) =>
2290
2302
  setReconciliationPolicy({ ...o, path: { graph_id: graphId }, body })
@@ -2296,6 +2308,7 @@ export class LedgerClient {
2296
2308
  materiality: raw.materiality,
2297
2309
  reviewRequired: raw.review_required,
2298
2310
  separateReviewer: raw.separate_reviewer,
2311
+ statementCycle: raw.statement_cycle ?? null,
2299
2312
  }
2300
2313
  }
2301
2314
 
@@ -3193,6 +3206,9 @@ function reconciliationComponentToCamel(
3193
3206
  return {
3194
3207
  name: raw.name,
3195
3208
  amount: raw.amount,
3209
+ kind: raw.kind ?? null,
3210
+ postingDate: raw.posting_date ?? null,
3211
+ entryId: raw.entry_id ?? null,
3196
3212
  structureId: raw.structure_id ?? null,
3197
3213
  eventId: raw.event_id ?? null,
3198
3214
  documentId: raw.document_id ?? null,
@@ -3200,6 +3216,23 @@ function reconciliationComponentToCamel(
3200
3216
  }
3201
3217
  }
3202
3218
 
3219
+ function reconciliationRollForwardToCamel(
3220
+ raw: ReconciliationRollForward | null | undefined
3221
+ ): LedgerReconciliationRollForward | null {
3222
+ if (!raw) return null
3223
+ return {
3224
+ statementAsOf: raw.statement_as_of,
3225
+ through: raw.through,
3226
+ bankLines: raw.bank_lines,
3227
+ bankActivity: raw.bank_activity,
3228
+ bankBalance: raw.bank_balance,
3229
+ ledgerBalance: raw.ledger_balance,
3230
+ outstanding: raw.outstanding,
3231
+ feedBalance: raw.feed_balance ?? null,
3232
+ feedBalanceReadOn: raw.feed_balance_read_on ?? null,
3233
+ }
3234
+ }
3235
+
3203
3236
  function reconciliationRowToCamel(raw: ReconciliationRow): LedgerReconciliationRow {
3204
3237
  return {
3205
3238
  elementId: raw.element_id ?? null,
@@ -3213,6 +3246,7 @@ function reconciliationRowToCamel(raw: ReconciliationRow): LedgerReconciliationR
3213
3246
  status: raw.status,
3214
3247
  asOf: raw.as_of ?? null,
3215
3248
  components: (raw.components ?? []).map(reconciliationComponentToCamel),
3249
+ rollForward: reconciliationRollForwardToCamel(raw.roll_forward),
3216
3250
  }
3217
3251
  }
3218
3252
 
@@ -3229,6 +3263,7 @@ function reconciliationSummaryToCamel(raw: ReconciliationSummary): LedgerReconci
3229
3263
  elementId: raw.element_id ?? null,
3230
3264
  requiredForClose: raw.required_for_close,
3231
3265
  materiality: raw.materiality,
3266
+ statementCycle: raw.statement_cycle ?? null,
3232
3267
  period: raw.period,
3233
3268
  asOf: raw.as_of,
3234
3269
  status: raw.status,
@@ -3239,6 +3274,7 @@ function reconciliationSummaryToCamel(raw: ReconciliationSummary): LedgerReconci
3239
3274
  independentBalance: raw.independent_balance ?? null,
3240
3275
  balanceAsOf: raw.balance_as_of ?? null,
3241
3276
  components: (raw.components ?? []).map(reconciliationComponentToCamel),
3277
+ rollForward: reconciliationRollForwardToCamel(raw.roll_forward),
3242
3278
  source: raw.source ?? null,
3243
3279
  comparedAt: raw.compared_at ?? null,
3244
3280
  factSetId: raw.fact_set_id ?? null,
@@ -601,6 +601,7 @@ export type GetLedgerEventBlockQuery = {
601
601
  replacesEventId: string | null;
602
602
  obligatedByEventId: string | null;
603
603
  dischargesEventId: string | null;
604
+ documentId: string | null;
604
605
  createdAt: string;
605
606
  createdBy: string;
606
607
  } | null;
@@ -640,6 +641,7 @@ export type ListLedgerEventBlocksQuery = {
640
641
  replacesEventId: string | null;
641
642
  obligatedByEventId: string | null;
642
643
  dischargesEventId: string | null;
644
+ documentId: string | null;
643
645
  createdAt: string;
644
646
  createdBy: string;
645
647
  }>;
@@ -1437,6 +1439,7 @@ export type ListLedgerReconciliationsQuery = {
1437
1439
  elementId: string | null;
1438
1440
  requiredForClose: boolean;
1439
1441
  materiality: number;
1442
+ statementCycle: string | null;
1440
1443
  period: string;
1441
1444
  asOf: string;
1442
1445
  status: string;
@@ -1459,11 +1462,25 @@ export type ListLedgerReconciliationsQuery = {
1459
1462
  components: Array<{
1460
1463
  name: string;
1461
1464
  amount: number;
1465
+ kind: string | null;
1466
+ postingDate: string | null;
1467
+ entryId: string | null;
1462
1468
  structureId: string | null;
1463
1469
  eventId: string | null;
1464
1470
  documentId: string | null;
1465
1471
  note: string | null;
1466
1472
  }>;
1473
+ rollForward: {
1474
+ statementAsOf: string;
1475
+ through: string;
1476
+ bankLines: number;
1477
+ bankActivity: number;
1478
+ bankBalance: number;
1479
+ ledgerBalance: number;
1480
+ outstanding: number;
1481
+ feedBalance: number | null;
1482
+ feedBalanceReadOn: string | null;
1483
+ } | null;
1467
1484
  differences: Array<{
1468
1485
  elementId: string | null;
1469
1486
  accountCode: string | null;
@@ -1478,11 +1495,25 @@ export type ListLedgerReconciliationsQuery = {
1478
1495
  components: Array<{
1479
1496
  name: string;
1480
1497
  amount: number;
1498
+ kind: string | null;
1499
+ postingDate: string | null;
1500
+ entryId: string | null;
1481
1501
  structureId: string | null;
1482
1502
  eventId: string | null;
1483
1503
  documentId: string | null;
1484
1504
  note: string | null;
1485
1505
  }>;
1506
+ rollForward: {
1507
+ statementAsOf: string;
1508
+ through: string;
1509
+ bankLines: number;
1510
+ bankActivity: number;
1511
+ bankBalance: number;
1512
+ ledgerBalance: number;
1513
+ outstanding: number;
1514
+ feedBalance: number | null;
1515
+ feedBalanceReadOn: string | null;
1516
+ } | null;
1486
1517
  }>;
1487
1518
  }>;
1488
1519
  } | null;
@@ -1699,6 +1699,7 @@ exports.GetLedgerEventBlockDocument = {
1699
1699
  { kind: 'Field', name: { kind: 'Name', value: 'replacesEventId' } },
1700
1700
  { kind: 'Field', name: { kind: 'Name', value: 'obligatedByEventId' } },
1701
1701
  { kind: 'Field', name: { kind: 'Name', value: 'dischargesEventId' } },
1702
+ { kind: 'Field', name: { kind: 'Name', value: 'documentId' } },
1702
1703
  { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
1703
1704
  { kind: 'Field', name: { kind: 'Name', value: 'createdBy' } },
1704
1705
  ],
@@ -1849,6 +1850,7 @@ exports.ListLedgerEventBlocksDocument = {
1849
1850
  { kind: 'Field', name: { kind: 'Name', value: 'replacesEventId' } },
1850
1851
  { kind: 'Field', name: { kind: 'Name', value: 'obligatedByEventId' } },
1851
1852
  { kind: 'Field', name: { kind: 'Name', value: 'dischargesEventId' } },
1853
+ { kind: 'Field', name: { kind: 'Name', value: 'documentId' } },
1852
1854
  { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
1853
1855
  { kind: 'Field', name: { kind: 'Name', value: 'createdBy' } },
1854
1856
  ],
@@ -3977,6 +3979,7 @@ exports.ListLedgerReconciliationsDocument = {
3977
3979
  { kind: 'Field', name: { kind: 'Name', value: 'elementId' } },
3978
3980
  { kind: 'Field', name: { kind: 'Name', value: 'requiredForClose' } },
3979
3981
  { kind: 'Field', name: { kind: 'Name', value: 'materiality' } },
3982
+ { kind: 'Field', name: { kind: 'Name', value: 'statementCycle' } },
3980
3983
  { kind: 'Field', name: { kind: 'Name', value: 'period' } },
3981
3984
  { kind: 'Field', name: { kind: 'Name', value: 'asOf' } },
3982
3985
  { kind: 'Field', name: { kind: 'Name', value: 'status' } },
@@ -3994,6 +3997,9 @@ exports.ListLedgerReconciliationsDocument = {
3994
3997
  selections: [
3995
3998
  { kind: 'Field', name: { kind: 'Name', value: 'name' } },
3996
3999
  { kind: 'Field', name: { kind: 'Name', value: 'amount' } },
4000
+ { kind: 'Field', name: { kind: 'Name', value: 'kind' } },
4001
+ { kind: 'Field', name: { kind: 'Name', value: 'postingDate' } },
4002
+ { kind: 'Field', name: { kind: 'Name', value: 'entryId' } },
3997
4003
  { kind: 'Field', name: { kind: 'Name', value: 'structureId' } },
3998
4004
  { kind: 'Field', name: { kind: 'Name', value: 'eventId' } },
3999
4005
  { kind: 'Field', name: { kind: 'Name', value: 'documentId' } },
@@ -4001,6 +4007,24 @@ exports.ListLedgerReconciliationsDocument = {
4001
4007
  ],
4002
4008
  },
4003
4009
  },
4010
+ {
4011
+ kind: 'Field',
4012
+ name: { kind: 'Name', value: 'rollForward' },
4013
+ selectionSet: {
4014
+ kind: 'SelectionSet',
4015
+ selections: [
4016
+ { kind: 'Field', name: { kind: 'Name', value: 'statementAsOf' } },
4017
+ { kind: 'Field', name: { kind: 'Name', value: 'through' } },
4018
+ { kind: 'Field', name: { kind: 'Name', value: 'bankLines' } },
4019
+ { kind: 'Field', name: { kind: 'Name', value: 'bankActivity' } },
4020
+ { kind: 'Field', name: { kind: 'Name', value: 'bankBalance' } },
4021
+ { kind: 'Field', name: { kind: 'Name', value: 'ledgerBalance' } },
4022
+ { kind: 'Field', name: { kind: 'Name', value: 'outstanding' } },
4023
+ { kind: 'Field', name: { kind: 'Name', value: 'feedBalance' } },
4024
+ { kind: 'Field', name: { kind: 'Name', value: 'feedBalanceReadOn' } },
4025
+ ],
4026
+ },
4027
+ },
4004
4028
  { kind: 'Field', name: { kind: 'Name', value: 'source' } },
4005
4029
  { kind: 'Field', name: { kind: 'Name', value: 'comparedAt' } },
4006
4030
  { kind: 'Field', name: { kind: 'Name', value: 'factSetId' } },
@@ -4035,6 +4059,9 @@ exports.ListLedgerReconciliationsDocument = {
4035
4059
  selections: [
4036
4060
  { kind: 'Field', name: { kind: 'Name', value: 'name' } },
4037
4061
  { kind: 'Field', name: { kind: 'Name', value: 'amount' } },
4062
+ { kind: 'Field', name: { kind: 'Name', value: 'kind' } },
4063
+ { kind: 'Field', name: { kind: 'Name', value: 'postingDate' } },
4064
+ { kind: 'Field', name: { kind: 'Name', value: 'entryId' } },
4038
4065
  { kind: 'Field', name: { kind: 'Name', value: 'structureId' } },
4039
4066
  { kind: 'Field', name: { kind: 'Name', value: 'eventId' } },
4040
4067
  { kind: 'Field', name: { kind: 'Name', value: 'documentId' } },
@@ -4042,6 +4069,27 @@ exports.ListLedgerReconciliationsDocument = {
4042
4069
  ],
4043
4070
  },
4044
4071
  },
4072
+ {
4073
+ kind: 'Field',
4074
+ name: { kind: 'Name', value: 'rollForward' },
4075
+ selectionSet: {
4076
+ kind: 'SelectionSet',
4077
+ selections: [
4078
+ { kind: 'Field', name: { kind: 'Name', value: 'statementAsOf' } },
4079
+ { kind: 'Field', name: { kind: 'Name', value: 'through' } },
4080
+ { kind: 'Field', name: { kind: 'Name', value: 'bankLines' } },
4081
+ { kind: 'Field', name: { kind: 'Name', value: 'bankActivity' } },
4082
+ { kind: 'Field', name: { kind: 'Name', value: 'bankBalance' } },
4083
+ { kind: 'Field', name: { kind: 'Name', value: 'ledgerBalance' } },
4084
+ { kind: 'Field', name: { kind: 'Name', value: 'outstanding' } },
4085
+ { kind: 'Field', name: { kind: 'Name', value: 'feedBalance' } },
4086
+ {
4087
+ kind: 'Field',
4088
+ name: { kind: 'Name', value: 'feedBalanceReadOn' },
4089
+ },
4090
+ ],
4091
+ },
4092
+ },
4045
4093
  ],
4046
4094
  },
4047
4095
  },
@@ -597,6 +597,7 @@ export type GetLedgerEventBlockQuery = {
597
597
  replacesEventId: string | null
598
598
  obligatedByEventId: string | null
599
599
  dischargesEventId: string | null
600
+ documentId: string | null
600
601
  createdAt: string
601
602
  createdBy: string
602
603
  } | null
@@ -638,6 +639,7 @@ export type ListLedgerEventBlocksQuery = {
638
639
  replacesEventId: string | null
639
640
  obligatedByEventId: string | null
640
641
  dischargesEventId: string | null
642
+ documentId: string | null
641
643
  createdAt: string
642
644
  createdBy: string
643
645
  }>
@@ -1411,6 +1413,7 @@ export type ListLedgerReconciliationsQuery = {
1411
1413
  elementId: string | null
1412
1414
  requiredForClose: boolean
1413
1415
  materiality: number
1416
+ statementCycle: string | null
1414
1417
  period: string
1415
1418
  asOf: string
1416
1419
  status: string
@@ -1433,11 +1436,25 @@ export type ListLedgerReconciliationsQuery = {
1433
1436
  components: Array<{
1434
1437
  name: string
1435
1438
  amount: number
1439
+ kind: string | null
1440
+ postingDate: string | null
1441
+ entryId: string | null
1436
1442
  structureId: string | null
1437
1443
  eventId: string | null
1438
1444
  documentId: string | null
1439
1445
  note: string | null
1440
1446
  }>
1447
+ rollForward: {
1448
+ statementAsOf: string
1449
+ through: string
1450
+ bankLines: number
1451
+ bankActivity: number
1452
+ bankBalance: number
1453
+ ledgerBalance: number
1454
+ outstanding: number
1455
+ feedBalance: number | null
1456
+ feedBalanceReadOn: string | null
1457
+ } | null
1441
1458
  differences: Array<{
1442
1459
  elementId: string | null
1443
1460
  accountCode: string | null
@@ -1452,11 +1469,25 @@ export type ListLedgerReconciliationsQuery = {
1452
1469
  components: Array<{
1453
1470
  name: string
1454
1471
  amount: number
1472
+ kind: string | null
1473
+ postingDate: string | null
1474
+ entryId: string | null
1455
1475
  structureId: string | null
1456
1476
  eventId: string | null
1457
1477
  documentId: string | null
1458
1478
  note: string | null
1459
1479
  }>
1480
+ rollForward: {
1481
+ statementAsOf: string
1482
+ through: string
1483
+ bankLines: number
1484
+ bankActivity: number
1485
+ bankBalance: number
1486
+ ledgerBalance: number
1487
+ outstanding: number
1488
+ feedBalance: number | null
1489
+ feedBalanceReadOn: string | null
1490
+ } | null
1460
1491
  }>
1461
1492
  }>
1462
1493
  } | null
@@ -3883,6 +3914,7 @@ export const GetLedgerEventBlockDocument = {
3883
3914
  { kind: 'Field', name: { kind: 'Name', value: 'replacesEventId' } },
3884
3915
  { kind: 'Field', name: { kind: 'Name', value: 'obligatedByEventId' } },
3885
3916
  { kind: 'Field', name: { kind: 'Name', value: 'dischargesEventId' } },
3917
+ { kind: 'Field', name: { kind: 'Name', value: 'documentId' } },
3886
3918
  { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
3887
3919
  { kind: 'Field', name: { kind: 'Name', value: 'createdBy' } },
3888
3920
  ],
@@ -4033,6 +4065,7 @@ export const ListLedgerEventBlocksDocument = {
4033
4065
  { kind: 'Field', name: { kind: 'Name', value: 'replacesEventId' } },
4034
4066
  { kind: 'Field', name: { kind: 'Name', value: 'obligatedByEventId' } },
4035
4067
  { kind: 'Field', name: { kind: 'Name', value: 'dischargesEventId' } },
4068
+ { kind: 'Field', name: { kind: 'Name', value: 'documentId' } },
4036
4069
  { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
4037
4070
  { kind: 'Field', name: { kind: 'Name', value: 'createdBy' } },
4038
4071
  ],
@@ -6170,6 +6203,7 @@ export const ListLedgerReconciliationsDocument = {
6170
6203
  { kind: 'Field', name: { kind: 'Name', value: 'elementId' } },
6171
6204
  { kind: 'Field', name: { kind: 'Name', value: 'requiredForClose' } },
6172
6205
  { kind: 'Field', name: { kind: 'Name', value: 'materiality' } },
6206
+ { kind: 'Field', name: { kind: 'Name', value: 'statementCycle' } },
6173
6207
  { kind: 'Field', name: { kind: 'Name', value: 'period' } },
6174
6208
  { kind: 'Field', name: { kind: 'Name', value: 'asOf' } },
6175
6209
  { kind: 'Field', name: { kind: 'Name', value: 'status' } },
@@ -6187,6 +6221,9 @@ export const ListLedgerReconciliationsDocument = {
6187
6221
  selections: [
6188
6222
  { kind: 'Field', name: { kind: 'Name', value: 'name' } },
6189
6223
  { kind: 'Field', name: { kind: 'Name', value: 'amount' } },
6224
+ { kind: 'Field', name: { kind: 'Name', value: 'kind' } },
6225
+ { kind: 'Field', name: { kind: 'Name', value: 'postingDate' } },
6226
+ { kind: 'Field', name: { kind: 'Name', value: 'entryId' } },
6190
6227
  { kind: 'Field', name: { kind: 'Name', value: 'structureId' } },
6191
6228
  { kind: 'Field', name: { kind: 'Name', value: 'eventId' } },
6192
6229
  { kind: 'Field', name: { kind: 'Name', value: 'documentId' } },
@@ -6194,6 +6231,24 @@ export const ListLedgerReconciliationsDocument = {
6194
6231
  ],
6195
6232
  },
6196
6233
  },
6234
+ {
6235
+ kind: 'Field',
6236
+ name: { kind: 'Name', value: 'rollForward' },
6237
+ selectionSet: {
6238
+ kind: 'SelectionSet',
6239
+ selections: [
6240
+ { kind: 'Field', name: { kind: 'Name', value: 'statementAsOf' } },
6241
+ { kind: 'Field', name: { kind: 'Name', value: 'through' } },
6242
+ { kind: 'Field', name: { kind: 'Name', value: 'bankLines' } },
6243
+ { kind: 'Field', name: { kind: 'Name', value: 'bankActivity' } },
6244
+ { kind: 'Field', name: { kind: 'Name', value: 'bankBalance' } },
6245
+ { kind: 'Field', name: { kind: 'Name', value: 'ledgerBalance' } },
6246
+ { kind: 'Field', name: { kind: 'Name', value: 'outstanding' } },
6247
+ { kind: 'Field', name: { kind: 'Name', value: 'feedBalance' } },
6248
+ { kind: 'Field', name: { kind: 'Name', value: 'feedBalanceReadOn' } },
6249
+ ],
6250
+ },
6251
+ },
6197
6252
  { kind: 'Field', name: { kind: 'Name', value: 'source' } },
6198
6253
  { kind: 'Field', name: { kind: 'Name', value: 'comparedAt' } },
6199
6254
  { kind: 'Field', name: { kind: 'Name', value: 'factSetId' } },
@@ -6228,6 +6283,9 @@ export const ListLedgerReconciliationsDocument = {
6228
6283
  selections: [
6229
6284
  { kind: 'Field', name: { kind: 'Name', value: 'name' } },
6230
6285
  { kind: 'Field', name: { kind: 'Name', value: 'amount' } },
6286
+ { kind: 'Field', name: { kind: 'Name', value: 'kind' } },
6287
+ { kind: 'Field', name: { kind: 'Name', value: 'postingDate' } },
6288
+ { kind: 'Field', name: { kind: 'Name', value: 'entryId' } },
6231
6289
  { kind: 'Field', name: { kind: 'Name', value: 'structureId' } },
6232
6290
  { kind: 'Field', name: { kind: 'Name', value: 'eventId' } },
6233
6291
  { kind: 'Field', name: { kind: 'Name', value: 'documentId' } },
@@ -6235,6 +6293,27 @@ export const ListLedgerReconciliationsDocument = {
6235
6293
  ],
6236
6294
  },
6237
6295
  },
6296
+ {
6297
+ kind: 'Field',
6298
+ name: { kind: 'Name', value: 'rollForward' },
6299
+ selectionSet: {
6300
+ kind: 'SelectionSet',
6301
+ selections: [
6302
+ { kind: 'Field', name: { kind: 'Name', value: 'statementAsOf' } },
6303
+ { kind: 'Field', name: { kind: 'Name', value: 'through' } },
6304
+ { kind: 'Field', name: { kind: 'Name', value: 'bankLines' } },
6305
+ { kind: 'Field', name: { kind: 'Name', value: 'bankActivity' } },
6306
+ { kind: 'Field', name: { kind: 'Name', value: 'bankBalance' } },
6307
+ { kind: 'Field', name: { kind: 'Name', value: 'ledgerBalance' } },
6308
+ { kind: 'Field', name: { kind: 'Name', value: 'outstanding' } },
6309
+ { kind: 'Field', name: { kind: 'Name', value: 'feedBalance' } },
6310
+ {
6311
+ kind: 'Field',
6312
+ name: { kind: 'Name', value: 'feedBalanceReadOn' },
6313
+ },
6314
+ ],
6315
+ },
6316
+ },
6238
6317
  ],
6239
6318
  },
6240
6319
  },
@@ -34,6 +34,7 @@ exports.GET_EVENT_BLOCK = (0, graphql_request_1.gql) `
34
34
  replacesEventId
35
35
  obligatedByEventId
36
36
  dischargesEventId
37
+ documentId
37
38
  createdAt
38
39
  createdBy
39
40
  }
@@ -32,6 +32,7 @@ export const GET_EVENT_BLOCK = gql`
32
32
  replacesEventId
33
33
  obligatedByEventId
34
34
  dischargesEventId
35
+ documentId
35
36
  createdAt
36
37
  createdBy
37
38
  }
@@ -58,6 +58,7 @@ exports.LIST_EVENT_BLOCKS = (0, graphql_request_1.gql) `
58
58
  replacesEventId
59
59
  obligatedByEventId
60
60
  dischargesEventId
61
+ documentId
61
62
  createdAt
62
63
  createdBy
63
64
  }
@@ -56,6 +56,7 @@ export const LIST_EVENT_BLOCKS = gql`
56
56
  replacesEventId
57
57
  obligatedByEventId
58
58
  dischargesEventId
59
+ documentId
59
60
  createdAt
60
61
  createdBy
61
62
  }
@@ -6,5 +6,9 @@
6
6
  * A block not yet compared for the period reads `not_started`. Comparisons
7
7
  * are recorded by `refreshReconciliations` and `recordStatementBalance`.
8
8
  * `notes` is only populated on a refresh; a read returns it empty.
9
+ *
10
+ * On a bank-fed account a statement's `components` list the ledger lines the
11
+ * bank had not cleared (`kind: outstanding`), and a statement ending before
12
+ * the period's last day carries a `rollForward` to it.
9
13
  */
10
14
  export declare const LIST_RECONCILIATIONS: string;