@robosystems/client 2.11.2 → 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.
- package/artifacts/LedgerClient.d.ts +8 -0
- package/artifacts/LedgerClient.js +23 -0
- package/artifacts/LedgerClient.ts +36 -0
- package/artifacts/graphql/generated/graphql.d.ts +29 -0
- package/artifacts/graphql/generated/graphql.js +46 -0
- package/artifacts/graphql/generated/graphql.ts +75 -0
- package/artifacts/graphql/queries/ledger/reconciliations.d.ts +4 -0
- package/artifacts/graphql/queries/ledger/reconciliations.js +33 -0
- package/artifacts/graphql/queries/ledger/reconciliations.ts +33 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/sdk/index.d.ts +1 -1
- package/sdk/index.ts +1 -1
- package/sdk/sdk.gen.d.ts +3 -3
- package/sdk/sdk.gen.js +3 -3
- package/sdk/sdk.gen.ts +3 -3
- package/sdk/types.gen.d.ts +121 -8
- package/sdk/types.gen.ts +122 -8
- package/sdk.gen.d.ts +3 -3
- package/sdk.gen.js +3 -3
- package/sdk.gen.ts +3 -3
- package/types.gen.d.ts +121 -8
- package/types.gen.ts +122 -8
|
@@ -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,
|
|
@@ -1439,6 +1439,7 @@ export type ListLedgerReconciliationsQuery = {
|
|
|
1439
1439
|
elementId: string | null;
|
|
1440
1440
|
requiredForClose: boolean;
|
|
1441
1441
|
materiality: number;
|
|
1442
|
+
statementCycle: string | null;
|
|
1442
1443
|
period: string;
|
|
1443
1444
|
asOf: string;
|
|
1444
1445
|
status: string;
|
|
@@ -1461,11 +1462,25 @@ export type ListLedgerReconciliationsQuery = {
|
|
|
1461
1462
|
components: Array<{
|
|
1462
1463
|
name: string;
|
|
1463
1464
|
amount: number;
|
|
1465
|
+
kind: string | null;
|
|
1466
|
+
postingDate: string | null;
|
|
1467
|
+
entryId: string | null;
|
|
1464
1468
|
structureId: string | null;
|
|
1465
1469
|
eventId: string | null;
|
|
1466
1470
|
documentId: string | null;
|
|
1467
1471
|
note: string | null;
|
|
1468
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;
|
|
1469
1484
|
differences: Array<{
|
|
1470
1485
|
elementId: string | null;
|
|
1471
1486
|
accountCode: string | null;
|
|
@@ -1480,11 +1495,25 @@ export type ListLedgerReconciliationsQuery = {
|
|
|
1480
1495
|
components: Array<{
|
|
1481
1496
|
name: string;
|
|
1482
1497
|
amount: number;
|
|
1498
|
+
kind: string | null;
|
|
1499
|
+
postingDate: string | null;
|
|
1500
|
+
entryId: string | null;
|
|
1483
1501
|
structureId: string | null;
|
|
1484
1502
|
eventId: string | null;
|
|
1485
1503
|
documentId: string | null;
|
|
1486
1504
|
note: string | null;
|
|
1487
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;
|
|
1488
1517
|
}>;
|
|
1489
1518
|
}>;
|
|
1490
1519
|
} | null;
|
|
@@ -3979,6 +3979,7 @@ exports.ListLedgerReconciliationsDocument = {
|
|
|
3979
3979
|
{ kind: 'Field', name: { kind: 'Name', value: 'elementId' } },
|
|
3980
3980
|
{ kind: 'Field', name: { kind: 'Name', value: 'requiredForClose' } },
|
|
3981
3981
|
{ kind: 'Field', name: { kind: 'Name', value: 'materiality' } },
|
|
3982
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'statementCycle' } },
|
|
3982
3983
|
{ kind: 'Field', name: { kind: 'Name', value: 'period' } },
|
|
3983
3984
|
{ kind: 'Field', name: { kind: 'Name', value: 'asOf' } },
|
|
3984
3985
|
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
@@ -3996,6 +3997,9 @@ exports.ListLedgerReconciliationsDocument = {
|
|
|
3996
3997
|
selections: [
|
|
3997
3998
|
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
3998
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' } },
|
|
3999
4003
|
{ kind: 'Field', name: { kind: 'Name', value: 'structureId' } },
|
|
4000
4004
|
{ kind: 'Field', name: { kind: 'Name', value: 'eventId' } },
|
|
4001
4005
|
{ kind: 'Field', name: { kind: 'Name', value: 'documentId' } },
|
|
@@ -4003,6 +4007,24 @@ exports.ListLedgerReconciliationsDocument = {
|
|
|
4003
4007
|
],
|
|
4004
4008
|
},
|
|
4005
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
|
+
},
|
|
4006
4028
|
{ kind: 'Field', name: { kind: 'Name', value: 'source' } },
|
|
4007
4029
|
{ kind: 'Field', name: { kind: 'Name', value: 'comparedAt' } },
|
|
4008
4030
|
{ kind: 'Field', name: { kind: 'Name', value: 'factSetId' } },
|
|
@@ -4037,6 +4059,9 @@ exports.ListLedgerReconciliationsDocument = {
|
|
|
4037
4059
|
selections: [
|
|
4038
4060
|
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
4039
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' } },
|
|
4040
4065
|
{ kind: 'Field', name: { kind: 'Name', value: 'structureId' } },
|
|
4041
4066
|
{ kind: 'Field', name: { kind: 'Name', value: 'eventId' } },
|
|
4042
4067
|
{ kind: 'Field', name: { kind: 'Name', value: 'documentId' } },
|
|
@@ -4044,6 +4069,27 @@ exports.ListLedgerReconciliationsDocument = {
|
|
|
4044
4069
|
],
|
|
4045
4070
|
},
|
|
4046
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
|
+
},
|
|
4047
4093
|
],
|
|
4048
4094
|
},
|
|
4049
4095
|
},
|
|
@@ -1413,6 +1413,7 @@ export type ListLedgerReconciliationsQuery = {
|
|
|
1413
1413
|
elementId: string | null
|
|
1414
1414
|
requiredForClose: boolean
|
|
1415
1415
|
materiality: number
|
|
1416
|
+
statementCycle: string | null
|
|
1416
1417
|
period: string
|
|
1417
1418
|
asOf: string
|
|
1418
1419
|
status: string
|
|
@@ -1435,11 +1436,25 @@ export type ListLedgerReconciliationsQuery = {
|
|
|
1435
1436
|
components: Array<{
|
|
1436
1437
|
name: string
|
|
1437
1438
|
amount: number
|
|
1439
|
+
kind: string | null
|
|
1440
|
+
postingDate: string | null
|
|
1441
|
+
entryId: string | null
|
|
1438
1442
|
structureId: string | null
|
|
1439
1443
|
eventId: string | null
|
|
1440
1444
|
documentId: string | null
|
|
1441
1445
|
note: string | null
|
|
1442
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
|
|
1443
1458
|
differences: Array<{
|
|
1444
1459
|
elementId: string | null
|
|
1445
1460
|
accountCode: string | null
|
|
@@ -1454,11 +1469,25 @@ export type ListLedgerReconciliationsQuery = {
|
|
|
1454
1469
|
components: Array<{
|
|
1455
1470
|
name: string
|
|
1456
1471
|
amount: number
|
|
1472
|
+
kind: string | null
|
|
1473
|
+
postingDate: string | null
|
|
1474
|
+
entryId: string | null
|
|
1457
1475
|
structureId: string | null
|
|
1458
1476
|
eventId: string | null
|
|
1459
1477
|
documentId: string | null
|
|
1460
1478
|
note: string | null
|
|
1461
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
|
|
1462
1491
|
}>
|
|
1463
1492
|
}>
|
|
1464
1493
|
} | null
|
|
@@ -6174,6 +6203,7 @@ export const ListLedgerReconciliationsDocument = {
|
|
|
6174
6203
|
{ kind: 'Field', name: { kind: 'Name', value: 'elementId' } },
|
|
6175
6204
|
{ kind: 'Field', name: { kind: 'Name', value: 'requiredForClose' } },
|
|
6176
6205
|
{ kind: 'Field', name: { kind: 'Name', value: 'materiality' } },
|
|
6206
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'statementCycle' } },
|
|
6177
6207
|
{ kind: 'Field', name: { kind: 'Name', value: 'period' } },
|
|
6178
6208
|
{ kind: 'Field', name: { kind: 'Name', value: 'asOf' } },
|
|
6179
6209
|
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
@@ -6191,6 +6221,9 @@ export const ListLedgerReconciliationsDocument = {
|
|
|
6191
6221
|
selections: [
|
|
6192
6222
|
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
6193
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' } },
|
|
6194
6227
|
{ kind: 'Field', name: { kind: 'Name', value: 'structureId' } },
|
|
6195
6228
|
{ kind: 'Field', name: { kind: 'Name', value: 'eventId' } },
|
|
6196
6229
|
{ kind: 'Field', name: { kind: 'Name', value: 'documentId' } },
|
|
@@ -6198,6 +6231,24 @@ export const ListLedgerReconciliationsDocument = {
|
|
|
6198
6231
|
],
|
|
6199
6232
|
},
|
|
6200
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
|
+
},
|
|
6201
6252
|
{ kind: 'Field', name: { kind: 'Name', value: 'source' } },
|
|
6202
6253
|
{ kind: 'Field', name: { kind: 'Name', value: 'comparedAt' } },
|
|
6203
6254
|
{ kind: 'Field', name: { kind: 'Name', value: 'factSetId' } },
|
|
@@ -6232,6 +6283,9 @@ export const ListLedgerReconciliationsDocument = {
|
|
|
6232
6283
|
selections: [
|
|
6233
6284
|
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
6234
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' } },
|
|
6235
6289
|
{ kind: 'Field', name: { kind: 'Name', value: 'structureId' } },
|
|
6236
6290
|
{ kind: 'Field', name: { kind: 'Name', value: 'eventId' } },
|
|
6237
6291
|
{ kind: 'Field', name: { kind: 'Name', value: 'documentId' } },
|
|
@@ -6239,6 +6293,27 @@ export const ListLedgerReconciliationsDocument = {
|
|
|
6239
6293
|
],
|
|
6240
6294
|
},
|
|
6241
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
|
+
},
|
|
6242
6317
|
],
|
|
6243
6318
|
},
|
|
6244
6319
|
},
|
|
@@ -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;
|
|
@@ -10,6 +10,10 @@ const graphql_request_1 = require("graphql-request");
|
|
|
10
10
|
* A block not yet compared for the period reads `not_started`. Comparisons
|
|
11
11
|
* are recorded by `refreshReconciliations` and `recordStatementBalance`.
|
|
12
12
|
* `notes` is only populated on a refresh; a read returns it empty.
|
|
13
|
+
*
|
|
14
|
+
* On a bank-fed account a statement's `components` list the ledger lines the
|
|
15
|
+
* bank had not cleared (`kind: outstanding`), and a statement ending before
|
|
16
|
+
* the period's last day carries a `rollForward` to it.
|
|
13
17
|
*/
|
|
14
18
|
exports.LIST_RECONCILIATIONS = (0, graphql_request_1.gql) `
|
|
15
19
|
query ListLedgerReconciliations($period: String!, $entityId: String) {
|
|
@@ -25,6 +29,7 @@ exports.LIST_RECONCILIATIONS = (0, graphql_request_1.gql) `
|
|
|
25
29
|
elementId
|
|
26
30
|
requiredForClose
|
|
27
31
|
materiality
|
|
32
|
+
statementCycle
|
|
28
33
|
period
|
|
29
34
|
asOf
|
|
30
35
|
status
|
|
@@ -37,11 +42,25 @@ exports.LIST_RECONCILIATIONS = (0, graphql_request_1.gql) `
|
|
|
37
42
|
components {
|
|
38
43
|
name
|
|
39
44
|
amount
|
|
45
|
+
kind
|
|
46
|
+
postingDate
|
|
47
|
+
entryId
|
|
40
48
|
structureId
|
|
41
49
|
eventId
|
|
42
50
|
documentId
|
|
43
51
|
note
|
|
44
52
|
}
|
|
53
|
+
rollForward {
|
|
54
|
+
statementAsOf
|
|
55
|
+
through
|
|
56
|
+
bankLines
|
|
57
|
+
bankActivity
|
|
58
|
+
bankBalance
|
|
59
|
+
ledgerBalance
|
|
60
|
+
outstanding
|
|
61
|
+
feedBalance
|
|
62
|
+
feedBalanceReadOn
|
|
63
|
+
}
|
|
45
64
|
source
|
|
46
65
|
comparedAt
|
|
47
66
|
factSetId
|
|
@@ -66,11 +85,25 @@ exports.LIST_RECONCILIATIONS = (0, graphql_request_1.gql) `
|
|
|
66
85
|
components {
|
|
67
86
|
name
|
|
68
87
|
amount
|
|
88
|
+
kind
|
|
89
|
+
postingDate
|
|
90
|
+
entryId
|
|
69
91
|
structureId
|
|
70
92
|
eventId
|
|
71
93
|
documentId
|
|
72
94
|
note
|
|
73
95
|
}
|
|
96
|
+
rollForward {
|
|
97
|
+
statementAsOf
|
|
98
|
+
through
|
|
99
|
+
bankLines
|
|
100
|
+
bankActivity
|
|
101
|
+
bankBalance
|
|
102
|
+
ledgerBalance
|
|
103
|
+
outstanding
|
|
104
|
+
feedBalance
|
|
105
|
+
feedBalanceReadOn
|
|
106
|
+
}
|
|
74
107
|
}
|
|
75
108
|
}
|
|
76
109
|
}
|
|
@@ -8,6 +8,10 @@ import { gql } from 'graphql-request'
|
|
|
8
8
|
* A block not yet compared for the period reads `not_started`. Comparisons
|
|
9
9
|
* are recorded by `refreshReconciliations` and `recordStatementBalance`.
|
|
10
10
|
* `notes` is only populated on a refresh; a read returns it empty.
|
|
11
|
+
*
|
|
12
|
+
* On a bank-fed account a statement's `components` list the ledger lines the
|
|
13
|
+
* bank had not cleared (`kind: outstanding`), and a statement ending before
|
|
14
|
+
* the period's last day carries a `rollForward` to it.
|
|
11
15
|
*/
|
|
12
16
|
export const LIST_RECONCILIATIONS = gql`
|
|
13
17
|
query ListLedgerReconciliations($period: String!, $entityId: String) {
|
|
@@ -23,6 +27,7 @@ export const LIST_RECONCILIATIONS = gql`
|
|
|
23
27
|
elementId
|
|
24
28
|
requiredForClose
|
|
25
29
|
materiality
|
|
30
|
+
statementCycle
|
|
26
31
|
period
|
|
27
32
|
asOf
|
|
28
33
|
status
|
|
@@ -35,11 +40,25 @@ export const LIST_RECONCILIATIONS = gql`
|
|
|
35
40
|
components {
|
|
36
41
|
name
|
|
37
42
|
amount
|
|
43
|
+
kind
|
|
44
|
+
postingDate
|
|
45
|
+
entryId
|
|
38
46
|
structureId
|
|
39
47
|
eventId
|
|
40
48
|
documentId
|
|
41
49
|
note
|
|
42
50
|
}
|
|
51
|
+
rollForward {
|
|
52
|
+
statementAsOf
|
|
53
|
+
through
|
|
54
|
+
bankLines
|
|
55
|
+
bankActivity
|
|
56
|
+
bankBalance
|
|
57
|
+
ledgerBalance
|
|
58
|
+
outstanding
|
|
59
|
+
feedBalance
|
|
60
|
+
feedBalanceReadOn
|
|
61
|
+
}
|
|
43
62
|
source
|
|
44
63
|
comparedAt
|
|
45
64
|
factSetId
|
|
@@ -64,11 +83,25 @@ export const LIST_RECONCILIATIONS = gql`
|
|
|
64
83
|
components {
|
|
65
84
|
name
|
|
66
85
|
amount
|
|
86
|
+
kind
|
|
87
|
+
postingDate
|
|
88
|
+
entryId
|
|
67
89
|
structureId
|
|
68
90
|
eventId
|
|
69
91
|
documentId
|
|
70
92
|
note
|
|
71
93
|
}
|
|
94
|
+
rollForward {
|
|
95
|
+
statementAsOf
|
|
96
|
+
through
|
|
97
|
+
bankLines
|
|
98
|
+
bankActivity
|
|
99
|
+
bankBalance
|
|
100
|
+
ledgerBalance
|
|
101
|
+
outstanding
|
|
102
|
+
feedBalance
|
|
103
|
+
feedBalanceReadOn
|
|
104
|
+
}
|
|
72
105
|
}
|
|
73
106
|
}
|
|
74
107
|
}
|