@robosystems/client 2.23.0 → 2.25.0
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 +22 -1
- package/artifacts/LedgerClient.js +21 -0
- package/artifacts/LedgerClient.ts +44 -0
- package/artifacts/graphql/generated/graphql.d.ts +147 -0
- package/artifacts/graphql/generated/graphql.js +322 -2
- package/artifacts/graphql/generated/graphql.ts +456 -0
- package/artifacts/graphql/queries/ledger/accountRegister.d.ts +13 -0
- package/artifacts/graphql/queries/ledger/accountRegister.js +98 -0
- package/artifacts/graphql/queries/ledger/accountRegister.ts +96 -0
- package/artifacts/graphql/queries/ledger/eventBlock.d.ts +3 -1
- package/artifacts/graphql/queries/ledger/eventBlock.js +24 -1
- package/artifacts/graphql/queries/ledger/eventBlock.ts +24 -1
- package/artifacts/graphql/queries/ledger/informationBlock.js +6 -0
- package/artifacts/graphql/queries/ledger/informationBlock.ts +6 -0
- package/artifacts/graphql/queries/ledger/journalEntries.js +1 -0
- package/artifacts/graphql/queries/ledger/journalEntries.ts +1 -0
- package/artifacts/graphql/queries/ledger/reportPackage.js +2 -0
- package/artifacts/graphql/queries/ledger/reportPackage.ts +2 -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 +2 -2
- package/sdk/sdk.gen.js +2 -2
- package/sdk/sdk.gen.ts +2 -2
- package/sdk/types.gen.d.ts +70 -0
- package/sdk/types.gen.ts +71 -0
- package/sdk.gen.d.ts +2 -2
- package/sdk.gen.js +2 -2
- package/sdk.gen.ts +2 -2
- package/types.gen.d.ts +70 -0
- package/types.gen.ts +71 -0
|
@@ -215,6 +215,112 @@ export type GetInvestorSecurityQuery = {
|
|
|
215
215
|
} | null
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
+
export type GetLedgerAccountRegisterQueryVariables = Exact<{
|
|
219
|
+
accountId: string
|
|
220
|
+
startDate: string | null | undefined
|
|
221
|
+
endDate: string | null | undefined
|
|
222
|
+
entityId: string | null | undefined
|
|
223
|
+
dimensionType: string | null | undefined
|
|
224
|
+
dimensionMemberId: string | null | undefined
|
|
225
|
+
flowElementId: string | null | undefined
|
|
226
|
+
includeDrafts?: boolean
|
|
227
|
+
after: string | null | undefined
|
|
228
|
+
limit: number | null | undefined
|
|
229
|
+
}>
|
|
230
|
+
|
|
231
|
+
export type GetLedgerAccountRegisterQuery = {
|
|
232
|
+
accountRegister: {
|
|
233
|
+
entityId: string | null
|
|
234
|
+
startDate: string | null
|
|
235
|
+
endDate: string | null
|
|
236
|
+
openingFrom: string | null
|
|
237
|
+
openingBalance: number
|
|
238
|
+
totalDebits: number
|
|
239
|
+
totalCredits: number
|
|
240
|
+
closingBalance: number
|
|
241
|
+
lineCount: number
|
|
242
|
+
pageOpeningBalance: number
|
|
243
|
+
nextCursor: string | null
|
|
244
|
+
sliced: boolean
|
|
245
|
+
draftsTruncated: boolean
|
|
246
|
+
account: {
|
|
247
|
+
id: string
|
|
248
|
+
code: string | null
|
|
249
|
+
name: string
|
|
250
|
+
balanceType: string
|
|
251
|
+
trait: string | null
|
|
252
|
+
temporary: boolean
|
|
253
|
+
}
|
|
254
|
+
lines: Array<{
|
|
255
|
+
lineId: string
|
|
256
|
+
entryId: string
|
|
257
|
+
entryNumber: string | null
|
|
258
|
+
postingDate: string
|
|
259
|
+
entryType: string
|
|
260
|
+
provenance: string | null
|
|
261
|
+
status: string
|
|
262
|
+
memo: string | null
|
|
263
|
+
description: string | null
|
|
264
|
+
debit: number
|
|
265
|
+
credit: number
|
|
266
|
+
balance: number | null
|
|
267
|
+
triggeredByEventId: string | null
|
|
268
|
+
triggeredByEventType: string | null
|
|
269
|
+
reversalOf: string | null
|
|
270
|
+
reversedBy: string | null
|
|
271
|
+
agentId: string | null
|
|
272
|
+
agentName: string | null
|
|
273
|
+
flowElementId: string | null
|
|
274
|
+
dimensions: Array<{ id: string; dimensionType: string; name: string }>
|
|
275
|
+
}>
|
|
276
|
+
drafts: Array<{
|
|
277
|
+
lineId: string
|
|
278
|
+
entryId: string
|
|
279
|
+
entryNumber: string | null
|
|
280
|
+
postingDate: string
|
|
281
|
+
entryType: string
|
|
282
|
+
provenance: string | null
|
|
283
|
+
status: string
|
|
284
|
+
memo: string | null
|
|
285
|
+
description: string | null
|
|
286
|
+
debit: number
|
|
287
|
+
credit: number
|
|
288
|
+
balance: number | null
|
|
289
|
+
triggeredByEventId: string | null
|
|
290
|
+
triggeredByEventType: string | null
|
|
291
|
+
reversalOf: string | null
|
|
292
|
+
reversedBy: string | null
|
|
293
|
+
agentId: string | null
|
|
294
|
+
agentName: string | null
|
|
295
|
+
flowElementId: string | null
|
|
296
|
+
dimensions: Array<{ id: string; dimensionType: string; name: string }>
|
|
297
|
+
}>
|
|
298
|
+
} | null
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export type RegisterLineFieldsFragment = {
|
|
302
|
+
lineId: string
|
|
303
|
+
entryId: string
|
|
304
|
+
entryNumber: string | null
|
|
305
|
+
postingDate: string
|
|
306
|
+
entryType: string
|
|
307
|
+
provenance: string | null
|
|
308
|
+
status: string
|
|
309
|
+
memo: string | null
|
|
310
|
+
description: string | null
|
|
311
|
+
debit: number
|
|
312
|
+
credit: number
|
|
313
|
+
balance: number | null
|
|
314
|
+
triggeredByEventId: string | null
|
|
315
|
+
triggeredByEventType: string | null
|
|
316
|
+
reversalOf: string | null
|
|
317
|
+
reversedBy: string | null
|
|
318
|
+
agentId: string | null
|
|
319
|
+
agentName: string | null
|
|
320
|
+
flowElementId: string | null
|
|
321
|
+
dimensions: Array<{ id: string; dimensionType: string; name: string }>
|
|
322
|
+
}
|
|
323
|
+
|
|
218
324
|
export type GetLedgerAccountRollupsQueryVariables = Exact<{
|
|
219
325
|
mappingId: string | null | undefined
|
|
220
326
|
startDate: string | null | undefined
|
|
@@ -988,6 +1094,27 @@ export type GetLedgerEventBlockQuery = {
|
|
|
988
1094
|
documentId: string | null
|
|
989
1095
|
createdAt: string
|
|
990
1096
|
createdBy: string
|
|
1097
|
+
triggeredEntries: Array<{
|
|
1098
|
+
id: string
|
|
1099
|
+
number: string | null
|
|
1100
|
+
type: string
|
|
1101
|
+
status: string
|
|
1102
|
+
postingDate: string
|
|
1103
|
+
memo: string | null
|
|
1104
|
+
provenance: string | null
|
|
1105
|
+
totalDebit: number
|
|
1106
|
+
totalCredit: number
|
|
1107
|
+
lineItems: Array<{
|
|
1108
|
+
id: string
|
|
1109
|
+
accountId: string
|
|
1110
|
+
accountName: string | null
|
|
1111
|
+
accountCode: string | null
|
|
1112
|
+
debitAmount: number
|
|
1113
|
+
creditAmount: number
|
|
1114
|
+
description: string | null
|
|
1115
|
+
lineOrder: number
|
|
1116
|
+
}>
|
|
1117
|
+
}>
|
|
991
1118
|
} | null
|
|
992
1119
|
}
|
|
993
1120
|
|
|
@@ -1152,6 +1279,8 @@ export type GetInformationBlockQuery = {
|
|
|
1152
1279
|
unit: string
|
|
1153
1280
|
factScope: string
|
|
1154
1281
|
factSetId: string | null
|
|
1282
|
+
provenance: unknown
|
|
1283
|
+
frozenAt: string | null
|
|
1155
1284
|
}>
|
|
1156
1285
|
rules: Array<{
|
|
1157
1286
|
id: string
|
|
@@ -1301,6 +1430,8 @@ export type GetInformationBlockWindowedQuery = {
|
|
|
1301
1430
|
unit: string
|
|
1302
1431
|
factScope: string
|
|
1303
1432
|
factSetId: string | null
|
|
1433
|
+
provenance: unknown
|
|
1434
|
+
frozenAt: string | null
|
|
1304
1435
|
}>
|
|
1305
1436
|
rules: Array<{
|
|
1306
1437
|
id: string
|
|
@@ -1450,6 +1581,8 @@ export type ListInformationBlocksQuery = {
|
|
|
1450
1581
|
unit: string
|
|
1451
1582
|
factScope: string
|
|
1452
1583
|
factSetId: string | null
|
|
1584
|
+
provenance: unknown
|
|
1585
|
+
frozenAt: string | null
|
|
1453
1586
|
}>
|
|
1454
1587
|
rules: Array<{
|
|
1455
1588
|
id: string
|
|
@@ -1590,6 +1723,7 @@ export type ListLedgerJournalEntriesQuery = {
|
|
|
1590
1723
|
sourceStructureId: string | null
|
|
1591
1724
|
sourceStructureName: string | null
|
|
1592
1725
|
triggeredByEventId: string | null
|
|
1726
|
+
triggeredByEventType: string | null
|
|
1593
1727
|
reversalOf: string | null
|
|
1594
1728
|
postedAt: string | null
|
|
1595
1729
|
totalDebit: number
|
|
@@ -2043,6 +2177,8 @@ export type GetLedgerReportPackageQuery = {
|
|
|
2043
2177
|
unit: string
|
|
2044
2178
|
factScope: string
|
|
2045
2179
|
factSetId: string | null
|
|
2180
|
+
provenance: unknown
|
|
2181
|
+
frozenAt: string | null
|
|
2046
2182
|
}>
|
|
2047
2183
|
rules: Array<{
|
|
2048
2184
|
id: string
|
|
@@ -2639,6 +2775,52 @@ export type GetLibraryTaxonomyQuery = {
|
|
|
2639
2775
|
} | null
|
|
2640
2776
|
}
|
|
2641
2777
|
|
|
2778
|
+
export const RegisterLineFieldsFragmentDoc = {
|
|
2779
|
+
kind: 'Document',
|
|
2780
|
+
definitions: [
|
|
2781
|
+
{
|
|
2782
|
+
kind: 'FragmentDefinition',
|
|
2783
|
+
name: { kind: 'Name', value: 'RegisterLineFields' },
|
|
2784
|
+
typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'RegisterLine' } },
|
|
2785
|
+
selectionSet: {
|
|
2786
|
+
kind: 'SelectionSet',
|
|
2787
|
+
selections: [
|
|
2788
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'lineId' } },
|
|
2789
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'entryId' } },
|
|
2790
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'entryNumber' } },
|
|
2791
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'postingDate' } },
|
|
2792
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'entryType' } },
|
|
2793
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
|
|
2794
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
2795
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'memo' } },
|
|
2796
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'description' } },
|
|
2797
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'debit' } },
|
|
2798
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'credit' } },
|
|
2799
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'balance' } },
|
|
2800
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'triggeredByEventId' } },
|
|
2801
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'triggeredByEventType' } },
|
|
2802
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'reversalOf' } },
|
|
2803
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'reversedBy' } },
|
|
2804
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'agentId' } },
|
|
2805
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'agentName' } },
|
|
2806
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'flowElementId' } },
|
|
2807
|
+
{
|
|
2808
|
+
kind: 'Field',
|
|
2809
|
+
name: { kind: 'Name', value: 'dimensions' },
|
|
2810
|
+
selectionSet: {
|
|
2811
|
+
kind: 'SelectionSet',
|
|
2812
|
+
selections: [
|
|
2813
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
2814
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'dimensionType' } },
|
|
2815
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
2816
|
+
],
|
|
2817
|
+
},
|
|
2818
|
+
},
|
|
2819
|
+
],
|
|
2820
|
+
},
|
|
2821
|
+
},
|
|
2822
|
+
],
|
|
2823
|
+
} as unknown as DocumentNode<RegisterLineFieldsFragment, unknown>
|
|
2642
2824
|
export const AgingBucketsFieldsFragmentDoc = {
|
|
2643
2825
|
kind: 'Document',
|
|
2644
2826
|
definitions: [
|
|
@@ -3474,6 +3656,236 @@ export const GetInvestorSecurityDocument = {
|
|
|
3474
3656
|
},
|
|
3475
3657
|
],
|
|
3476
3658
|
} as unknown as DocumentNode<GetInvestorSecurityQuery, GetInvestorSecurityQueryVariables>
|
|
3659
|
+
export const GetLedgerAccountRegisterDocument = {
|
|
3660
|
+
kind: 'Document',
|
|
3661
|
+
definitions: [
|
|
3662
|
+
{
|
|
3663
|
+
kind: 'OperationDefinition',
|
|
3664
|
+
operation: 'query',
|
|
3665
|
+
name: { kind: 'Name', value: 'GetLedgerAccountRegister' },
|
|
3666
|
+
variableDefinitions: [
|
|
3667
|
+
{
|
|
3668
|
+
kind: 'VariableDefinition',
|
|
3669
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'accountId' } },
|
|
3670
|
+
type: {
|
|
3671
|
+
kind: 'NonNullType',
|
|
3672
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3673
|
+
},
|
|
3674
|
+
},
|
|
3675
|
+
{
|
|
3676
|
+
kind: 'VariableDefinition',
|
|
3677
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'startDate' } },
|
|
3678
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Date' } },
|
|
3679
|
+
},
|
|
3680
|
+
{
|
|
3681
|
+
kind: 'VariableDefinition',
|
|
3682
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'endDate' } },
|
|
3683
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Date' } },
|
|
3684
|
+
},
|
|
3685
|
+
{
|
|
3686
|
+
kind: 'VariableDefinition',
|
|
3687
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
|
|
3688
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3689
|
+
},
|
|
3690
|
+
{
|
|
3691
|
+
kind: 'VariableDefinition',
|
|
3692
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'dimensionType' } },
|
|
3693
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3694
|
+
},
|
|
3695
|
+
{
|
|
3696
|
+
kind: 'VariableDefinition',
|
|
3697
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'dimensionMemberId' } },
|
|
3698
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3699
|
+
},
|
|
3700
|
+
{
|
|
3701
|
+
kind: 'VariableDefinition',
|
|
3702
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'flowElementId' } },
|
|
3703
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3704
|
+
},
|
|
3705
|
+
{
|
|
3706
|
+
kind: 'VariableDefinition',
|
|
3707
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'includeDrafts' } },
|
|
3708
|
+
type: {
|
|
3709
|
+
kind: 'NonNullType',
|
|
3710
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Boolean' } },
|
|
3711
|
+
},
|
|
3712
|
+
defaultValue: { kind: 'BooleanValue', value: false },
|
|
3713
|
+
},
|
|
3714
|
+
{
|
|
3715
|
+
kind: 'VariableDefinition',
|
|
3716
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'after' } },
|
|
3717
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3718
|
+
},
|
|
3719
|
+
{
|
|
3720
|
+
kind: 'VariableDefinition',
|
|
3721
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
|
|
3722
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
|
|
3723
|
+
},
|
|
3724
|
+
],
|
|
3725
|
+
selectionSet: {
|
|
3726
|
+
kind: 'SelectionSet',
|
|
3727
|
+
selections: [
|
|
3728
|
+
{
|
|
3729
|
+
kind: 'Field',
|
|
3730
|
+
name: { kind: 'Name', value: 'accountRegister' },
|
|
3731
|
+
arguments: [
|
|
3732
|
+
{
|
|
3733
|
+
kind: 'Argument',
|
|
3734
|
+
name: { kind: 'Name', value: 'accountId' },
|
|
3735
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'accountId' } },
|
|
3736
|
+
},
|
|
3737
|
+
{
|
|
3738
|
+
kind: 'Argument',
|
|
3739
|
+
name: { kind: 'Name', value: 'startDate' },
|
|
3740
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'startDate' } },
|
|
3741
|
+
},
|
|
3742
|
+
{
|
|
3743
|
+
kind: 'Argument',
|
|
3744
|
+
name: { kind: 'Name', value: 'endDate' },
|
|
3745
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'endDate' } },
|
|
3746
|
+
},
|
|
3747
|
+
{
|
|
3748
|
+
kind: 'Argument',
|
|
3749
|
+
name: { kind: 'Name', value: 'entityId' },
|
|
3750
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
|
|
3751
|
+
},
|
|
3752
|
+
{
|
|
3753
|
+
kind: 'Argument',
|
|
3754
|
+
name: { kind: 'Name', value: 'dimensionType' },
|
|
3755
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'dimensionType' } },
|
|
3756
|
+
},
|
|
3757
|
+
{
|
|
3758
|
+
kind: 'Argument',
|
|
3759
|
+
name: { kind: 'Name', value: 'dimensionMemberId' },
|
|
3760
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'dimensionMemberId' } },
|
|
3761
|
+
},
|
|
3762
|
+
{
|
|
3763
|
+
kind: 'Argument',
|
|
3764
|
+
name: { kind: 'Name', value: 'flowElementId' },
|
|
3765
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'flowElementId' } },
|
|
3766
|
+
},
|
|
3767
|
+
{
|
|
3768
|
+
kind: 'Argument',
|
|
3769
|
+
name: { kind: 'Name', value: 'includeDrafts' },
|
|
3770
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'includeDrafts' } },
|
|
3771
|
+
},
|
|
3772
|
+
{
|
|
3773
|
+
kind: 'Argument',
|
|
3774
|
+
name: { kind: 'Name', value: 'after' },
|
|
3775
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'after' } },
|
|
3776
|
+
},
|
|
3777
|
+
{
|
|
3778
|
+
kind: 'Argument',
|
|
3779
|
+
name: { kind: 'Name', value: 'limit' },
|
|
3780
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
|
|
3781
|
+
},
|
|
3782
|
+
],
|
|
3783
|
+
selectionSet: {
|
|
3784
|
+
kind: 'SelectionSet',
|
|
3785
|
+
selections: [
|
|
3786
|
+
{
|
|
3787
|
+
kind: 'Field',
|
|
3788
|
+
name: { kind: 'Name', value: 'account' },
|
|
3789
|
+
selectionSet: {
|
|
3790
|
+
kind: 'SelectionSet',
|
|
3791
|
+
selections: [
|
|
3792
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
3793
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'code' } },
|
|
3794
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
3795
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'balanceType' } },
|
|
3796
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'trait' } },
|
|
3797
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'temporary' } },
|
|
3798
|
+
],
|
|
3799
|
+
},
|
|
3800
|
+
},
|
|
3801
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
|
|
3802
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'startDate' } },
|
|
3803
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'endDate' } },
|
|
3804
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'openingFrom' } },
|
|
3805
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'openingBalance' } },
|
|
3806
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'totalDebits' } },
|
|
3807
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'totalCredits' } },
|
|
3808
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'closingBalance' } },
|
|
3809
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'lineCount' } },
|
|
3810
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'pageOpeningBalance' } },
|
|
3811
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'nextCursor' } },
|
|
3812
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'sliced' } },
|
|
3813
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'draftsTruncated' } },
|
|
3814
|
+
{
|
|
3815
|
+
kind: 'Field',
|
|
3816
|
+
name: { kind: 'Name', value: 'lines' },
|
|
3817
|
+
selectionSet: {
|
|
3818
|
+
kind: 'SelectionSet',
|
|
3819
|
+
selections: [
|
|
3820
|
+
{
|
|
3821
|
+
kind: 'FragmentSpread',
|
|
3822
|
+
name: { kind: 'Name', value: 'RegisterLineFields' },
|
|
3823
|
+
},
|
|
3824
|
+
],
|
|
3825
|
+
},
|
|
3826
|
+
},
|
|
3827
|
+
{
|
|
3828
|
+
kind: 'Field',
|
|
3829
|
+
name: { kind: 'Name', value: 'drafts' },
|
|
3830
|
+
selectionSet: {
|
|
3831
|
+
kind: 'SelectionSet',
|
|
3832
|
+
selections: [
|
|
3833
|
+
{
|
|
3834
|
+
kind: 'FragmentSpread',
|
|
3835
|
+
name: { kind: 'Name', value: 'RegisterLineFields' },
|
|
3836
|
+
},
|
|
3837
|
+
],
|
|
3838
|
+
},
|
|
3839
|
+
},
|
|
3840
|
+
],
|
|
3841
|
+
},
|
|
3842
|
+
},
|
|
3843
|
+
],
|
|
3844
|
+
},
|
|
3845
|
+
},
|
|
3846
|
+
{
|
|
3847
|
+
kind: 'FragmentDefinition',
|
|
3848
|
+
name: { kind: 'Name', value: 'RegisterLineFields' },
|
|
3849
|
+
typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'RegisterLine' } },
|
|
3850
|
+
selectionSet: {
|
|
3851
|
+
kind: 'SelectionSet',
|
|
3852
|
+
selections: [
|
|
3853
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'lineId' } },
|
|
3854
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'entryId' } },
|
|
3855
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'entryNumber' } },
|
|
3856
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'postingDate' } },
|
|
3857
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'entryType' } },
|
|
3858
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
|
|
3859
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
3860
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'memo' } },
|
|
3861
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'description' } },
|
|
3862
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'debit' } },
|
|
3863
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'credit' } },
|
|
3864
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'balance' } },
|
|
3865
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'triggeredByEventId' } },
|
|
3866
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'triggeredByEventType' } },
|
|
3867
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'reversalOf' } },
|
|
3868
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'reversedBy' } },
|
|
3869
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'agentId' } },
|
|
3870
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'agentName' } },
|
|
3871
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'flowElementId' } },
|
|
3872
|
+
{
|
|
3873
|
+
kind: 'Field',
|
|
3874
|
+
name: { kind: 'Name', value: 'dimensions' },
|
|
3875
|
+
selectionSet: {
|
|
3876
|
+
kind: 'SelectionSet',
|
|
3877
|
+
selections: [
|
|
3878
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
3879
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'dimensionType' } },
|
|
3880
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
3881
|
+
],
|
|
3882
|
+
},
|
|
3883
|
+
},
|
|
3884
|
+
],
|
|
3885
|
+
},
|
|
3886
|
+
},
|
|
3887
|
+
],
|
|
3888
|
+
} as unknown as DocumentNode<GetLedgerAccountRegisterQuery, GetLedgerAccountRegisterQueryVariables>
|
|
3477
3889
|
export const GetLedgerAccountRollupsDocument = {
|
|
3478
3890
|
kind: 'Document',
|
|
3479
3891
|
definitions: [
|
|
@@ -5360,6 +5772,41 @@ export const GetLedgerEventBlockDocument = {
|
|
|
5360
5772
|
{ kind: 'Field', name: { kind: 'Name', value: 'documentId' } },
|
|
5361
5773
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
|
|
5362
5774
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdBy' } },
|
|
5775
|
+
{
|
|
5776
|
+
kind: 'Field',
|
|
5777
|
+
name: { kind: 'Name', value: 'triggeredEntries' },
|
|
5778
|
+
selectionSet: {
|
|
5779
|
+
kind: 'SelectionSet',
|
|
5780
|
+
selections: [
|
|
5781
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
5782
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'number' } },
|
|
5783
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'type' } },
|
|
5784
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
5785
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'postingDate' } },
|
|
5786
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'memo' } },
|
|
5787
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
|
|
5788
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'totalDebit' } },
|
|
5789
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'totalCredit' } },
|
|
5790
|
+
{
|
|
5791
|
+
kind: 'Field',
|
|
5792
|
+
name: { kind: 'Name', value: 'lineItems' },
|
|
5793
|
+
selectionSet: {
|
|
5794
|
+
kind: 'SelectionSet',
|
|
5795
|
+
selections: [
|
|
5796
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
5797
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'accountId' } },
|
|
5798
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'accountName' } },
|
|
5799
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'accountCode' } },
|
|
5800
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'debitAmount' } },
|
|
5801
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'creditAmount' } },
|
|
5802
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'description' } },
|
|
5803
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'lineOrder' } },
|
|
5804
|
+
],
|
|
5805
|
+
},
|
|
5806
|
+
},
|
|
5807
|
+
],
|
|
5808
|
+
},
|
|
5809
|
+
},
|
|
5363
5810
|
],
|
|
5364
5811
|
},
|
|
5365
5812
|
},
|
|
@@ -5816,6 +6263,8 @@ export const GetInformationBlockDocument = {
|
|
|
5816
6263
|
{ kind: 'Field', name: { kind: 'Name', value: 'unit' } },
|
|
5817
6264
|
{ kind: 'Field', name: { kind: 'Name', value: 'factScope' } },
|
|
5818
6265
|
{ kind: 'Field', name: { kind: 'Name', value: 'factSetId' } },
|
|
6266
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
|
|
6267
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'frozenAt' } },
|
|
5819
6268
|
],
|
|
5820
6269
|
},
|
|
5821
6270
|
},
|
|
@@ -6205,6 +6654,8 @@ export const GetInformationBlockWindowedDocument = {
|
|
|
6205
6654
|
{ kind: 'Field', name: { kind: 'Name', value: 'unit' } },
|
|
6206
6655
|
{ kind: 'Field', name: { kind: 'Name', value: 'factScope' } },
|
|
6207
6656
|
{ kind: 'Field', name: { kind: 'Name', value: 'factSetId' } },
|
|
6657
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
|
|
6658
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'frozenAt' } },
|
|
6208
6659
|
],
|
|
6209
6660
|
},
|
|
6210
6661
|
},
|
|
@@ -6590,6 +7041,8 @@ export const ListInformationBlocksDocument = {
|
|
|
6590
7041
|
{ kind: 'Field', name: { kind: 'Name', value: 'unit' } },
|
|
6591
7042
|
{ kind: 'Field', name: { kind: 'Name', value: 'factScope' } },
|
|
6592
7043
|
{ kind: 'Field', name: { kind: 'Name', value: 'factSetId' } },
|
|
7044
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
|
|
7045
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'frozenAt' } },
|
|
6593
7046
|
],
|
|
6594
7047
|
},
|
|
6595
7048
|
},
|
|
@@ -7044,6 +7497,7 @@ export const ListLedgerJournalEntriesDocument = {
|
|
|
7044
7497
|
{ kind: 'Field', name: { kind: 'Name', value: 'sourceStructureId' } },
|
|
7045
7498
|
{ kind: 'Field', name: { kind: 'Name', value: 'sourceStructureName' } },
|
|
7046
7499
|
{ kind: 'Field', name: { kind: 'Name', value: 'triggeredByEventId' } },
|
|
7500
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'triggeredByEventType' } },
|
|
7047
7501
|
{ kind: 'Field', name: { kind: 'Name', value: 'reversalOf' } },
|
|
7048
7502
|
{ kind: 'Field', name: { kind: 'Name', value: 'postedAt' } },
|
|
7049
7503
|
{ kind: 'Field', name: { kind: 'Name', value: 'totalDebit' } },
|
|
@@ -8249,6 +8703,8 @@ export const GetLedgerReportPackageDocument = {
|
|
|
8249
8703
|
{ kind: 'Field', name: { kind: 'Name', value: 'unit' } },
|
|
8250
8704
|
{ kind: 'Field', name: { kind: 'Name', value: 'factScope' } },
|
|
8251
8705
|
{ kind: 'Field', name: { kind: 'Name', value: 'factSetId' } },
|
|
8706
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
|
|
8707
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'frozenAt' } },
|
|
8252
8708
|
],
|
|
8253
8709
|
},
|
|
8254
8710
|
},
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One entity's posted lines on one account, oldest first, each with the
|
|
3
|
+
* balance it leaves.
|
|
4
|
+
*
|
|
5
|
+
* The lines run from `openingBalance` to `closingBalance`, which is the trial
|
|
6
|
+
* balance's for the same window added to the opening. An income or expense
|
|
7
|
+
* account opens at the fiscal year's start (`openingFrom`). Each page carries
|
|
8
|
+
* its own `pageOpeningBalance`; pass `nextCursor` as `$after` for the next.
|
|
9
|
+
* `$includeDrafts` lists the window's drafts on the first page, outside every
|
|
10
|
+
* balance. A dimension pair or `$flowElementId` reads one slice, and says so
|
|
11
|
+
* in `sliced`.
|
|
12
|
+
*/
|
|
13
|
+
export declare const GET_ACCOUNT_REGISTER: string;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_ACCOUNT_REGISTER = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* One entity's posted lines on one account, oldest first, each with the
|
|
7
|
+
* balance it leaves.
|
|
8
|
+
*
|
|
9
|
+
* The lines run from `openingBalance` to `closingBalance`, which is the trial
|
|
10
|
+
* balance's for the same window added to the opening. An income or expense
|
|
11
|
+
* account opens at the fiscal year's start (`openingFrom`). Each page carries
|
|
12
|
+
* its own `pageOpeningBalance`; pass `nextCursor` as `$after` for the next.
|
|
13
|
+
* `$includeDrafts` lists the window's drafts on the first page, outside every
|
|
14
|
+
* balance. A dimension pair or `$flowElementId` reads one slice, and says so
|
|
15
|
+
* in `sliced`.
|
|
16
|
+
*/
|
|
17
|
+
exports.GET_ACCOUNT_REGISTER = (0, graphql_request_1.gql) `
|
|
18
|
+
query GetLedgerAccountRegister(
|
|
19
|
+
$accountId: String!
|
|
20
|
+
$startDate: Date
|
|
21
|
+
$endDate: Date
|
|
22
|
+
$entityId: String
|
|
23
|
+
$dimensionType: String
|
|
24
|
+
$dimensionMemberId: String
|
|
25
|
+
$flowElementId: String
|
|
26
|
+
$includeDrafts: Boolean! = false
|
|
27
|
+
$after: String
|
|
28
|
+
$limit: Int
|
|
29
|
+
) {
|
|
30
|
+
accountRegister(
|
|
31
|
+
accountId: $accountId
|
|
32
|
+
startDate: $startDate
|
|
33
|
+
endDate: $endDate
|
|
34
|
+
entityId: $entityId
|
|
35
|
+
dimensionType: $dimensionType
|
|
36
|
+
dimensionMemberId: $dimensionMemberId
|
|
37
|
+
flowElementId: $flowElementId
|
|
38
|
+
includeDrafts: $includeDrafts
|
|
39
|
+
after: $after
|
|
40
|
+
limit: $limit
|
|
41
|
+
) {
|
|
42
|
+
account {
|
|
43
|
+
id
|
|
44
|
+
code
|
|
45
|
+
name
|
|
46
|
+
balanceType
|
|
47
|
+
trait
|
|
48
|
+
temporary
|
|
49
|
+
}
|
|
50
|
+
entityId
|
|
51
|
+
startDate
|
|
52
|
+
endDate
|
|
53
|
+
openingFrom
|
|
54
|
+
openingBalance
|
|
55
|
+
totalDebits
|
|
56
|
+
totalCredits
|
|
57
|
+
closingBalance
|
|
58
|
+
lineCount
|
|
59
|
+
pageOpeningBalance
|
|
60
|
+
nextCursor
|
|
61
|
+
sliced
|
|
62
|
+
draftsTruncated
|
|
63
|
+
lines {
|
|
64
|
+
...RegisterLineFields
|
|
65
|
+
}
|
|
66
|
+
drafts {
|
|
67
|
+
...RegisterLineFields
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
fragment RegisterLineFields on RegisterLine {
|
|
73
|
+
lineId
|
|
74
|
+
entryId
|
|
75
|
+
entryNumber
|
|
76
|
+
postingDate
|
|
77
|
+
entryType
|
|
78
|
+
provenance
|
|
79
|
+
status
|
|
80
|
+
memo
|
|
81
|
+
description
|
|
82
|
+
debit
|
|
83
|
+
credit
|
|
84
|
+
balance
|
|
85
|
+
triggeredByEventId
|
|
86
|
+
triggeredByEventType
|
|
87
|
+
reversalOf
|
|
88
|
+
reversedBy
|
|
89
|
+
agentId
|
|
90
|
+
agentName
|
|
91
|
+
flowElementId
|
|
92
|
+
dimensions {
|
|
93
|
+
id
|
|
94
|
+
dimensionType
|
|
95
|
+
name
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
`;
|