@robosystems/client 2.23.0 → 2.24.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 +139 -0
- package/artifacts/graphql/generated/graphql.js +314 -2
- package/artifacts/graphql/generated/graphql.ts +440 -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/journalEntries.js +1 -0
- package/artifacts/graphql/queries/ledger/journalEntries.ts +1 -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/types.gen.d.ts +56 -0
- package/sdk/types.gen.ts +57 -0
- package/types.gen.d.ts +56 -0
- package/types.gen.ts +57 -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
|
|
|
@@ -1590,6 +1717,7 @@ export type ListLedgerJournalEntriesQuery = {
|
|
|
1590
1717
|
sourceStructureId: string | null
|
|
1591
1718
|
sourceStructureName: string | null
|
|
1592
1719
|
triggeredByEventId: string | null
|
|
1720
|
+
triggeredByEventType: string | null
|
|
1593
1721
|
reversalOf: string | null
|
|
1594
1722
|
postedAt: string | null
|
|
1595
1723
|
totalDebit: number
|
|
@@ -2639,6 +2767,52 @@ export type GetLibraryTaxonomyQuery = {
|
|
|
2639
2767
|
} | null
|
|
2640
2768
|
}
|
|
2641
2769
|
|
|
2770
|
+
export const RegisterLineFieldsFragmentDoc = {
|
|
2771
|
+
kind: 'Document',
|
|
2772
|
+
definitions: [
|
|
2773
|
+
{
|
|
2774
|
+
kind: 'FragmentDefinition',
|
|
2775
|
+
name: { kind: 'Name', value: 'RegisterLineFields' },
|
|
2776
|
+
typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'RegisterLine' } },
|
|
2777
|
+
selectionSet: {
|
|
2778
|
+
kind: 'SelectionSet',
|
|
2779
|
+
selections: [
|
|
2780
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'lineId' } },
|
|
2781
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'entryId' } },
|
|
2782
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'entryNumber' } },
|
|
2783
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'postingDate' } },
|
|
2784
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'entryType' } },
|
|
2785
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
|
|
2786
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
2787
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'memo' } },
|
|
2788
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'description' } },
|
|
2789
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'debit' } },
|
|
2790
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'credit' } },
|
|
2791
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'balance' } },
|
|
2792
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'triggeredByEventId' } },
|
|
2793
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'triggeredByEventType' } },
|
|
2794
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'reversalOf' } },
|
|
2795
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'reversedBy' } },
|
|
2796
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'agentId' } },
|
|
2797
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'agentName' } },
|
|
2798
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'flowElementId' } },
|
|
2799
|
+
{
|
|
2800
|
+
kind: 'Field',
|
|
2801
|
+
name: { kind: 'Name', value: 'dimensions' },
|
|
2802
|
+
selectionSet: {
|
|
2803
|
+
kind: 'SelectionSet',
|
|
2804
|
+
selections: [
|
|
2805
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
2806
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'dimensionType' } },
|
|
2807
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
2808
|
+
],
|
|
2809
|
+
},
|
|
2810
|
+
},
|
|
2811
|
+
],
|
|
2812
|
+
},
|
|
2813
|
+
},
|
|
2814
|
+
],
|
|
2815
|
+
} as unknown as DocumentNode<RegisterLineFieldsFragment, unknown>
|
|
2642
2816
|
export const AgingBucketsFieldsFragmentDoc = {
|
|
2643
2817
|
kind: 'Document',
|
|
2644
2818
|
definitions: [
|
|
@@ -3474,6 +3648,236 @@ export const GetInvestorSecurityDocument = {
|
|
|
3474
3648
|
},
|
|
3475
3649
|
],
|
|
3476
3650
|
} as unknown as DocumentNode<GetInvestorSecurityQuery, GetInvestorSecurityQueryVariables>
|
|
3651
|
+
export const GetLedgerAccountRegisterDocument = {
|
|
3652
|
+
kind: 'Document',
|
|
3653
|
+
definitions: [
|
|
3654
|
+
{
|
|
3655
|
+
kind: 'OperationDefinition',
|
|
3656
|
+
operation: 'query',
|
|
3657
|
+
name: { kind: 'Name', value: 'GetLedgerAccountRegister' },
|
|
3658
|
+
variableDefinitions: [
|
|
3659
|
+
{
|
|
3660
|
+
kind: 'VariableDefinition',
|
|
3661
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'accountId' } },
|
|
3662
|
+
type: {
|
|
3663
|
+
kind: 'NonNullType',
|
|
3664
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3665
|
+
},
|
|
3666
|
+
},
|
|
3667
|
+
{
|
|
3668
|
+
kind: 'VariableDefinition',
|
|
3669
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'startDate' } },
|
|
3670
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Date' } },
|
|
3671
|
+
},
|
|
3672
|
+
{
|
|
3673
|
+
kind: 'VariableDefinition',
|
|
3674
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'endDate' } },
|
|
3675
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Date' } },
|
|
3676
|
+
},
|
|
3677
|
+
{
|
|
3678
|
+
kind: 'VariableDefinition',
|
|
3679
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
|
|
3680
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3681
|
+
},
|
|
3682
|
+
{
|
|
3683
|
+
kind: 'VariableDefinition',
|
|
3684
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'dimensionType' } },
|
|
3685
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3686
|
+
},
|
|
3687
|
+
{
|
|
3688
|
+
kind: 'VariableDefinition',
|
|
3689
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'dimensionMemberId' } },
|
|
3690
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3691
|
+
},
|
|
3692
|
+
{
|
|
3693
|
+
kind: 'VariableDefinition',
|
|
3694
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'flowElementId' } },
|
|
3695
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3696
|
+
},
|
|
3697
|
+
{
|
|
3698
|
+
kind: 'VariableDefinition',
|
|
3699
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'includeDrafts' } },
|
|
3700
|
+
type: {
|
|
3701
|
+
kind: 'NonNullType',
|
|
3702
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Boolean' } },
|
|
3703
|
+
},
|
|
3704
|
+
defaultValue: { kind: 'BooleanValue', value: false },
|
|
3705
|
+
},
|
|
3706
|
+
{
|
|
3707
|
+
kind: 'VariableDefinition',
|
|
3708
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'after' } },
|
|
3709
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3710
|
+
},
|
|
3711
|
+
{
|
|
3712
|
+
kind: 'VariableDefinition',
|
|
3713
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
|
|
3714
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
|
|
3715
|
+
},
|
|
3716
|
+
],
|
|
3717
|
+
selectionSet: {
|
|
3718
|
+
kind: 'SelectionSet',
|
|
3719
|
+
selections: [
|
|
3720
|
+
{
|
|
3721
|
+
kind: 'Field',
|
|
3722
|
+
name: { kind: 'Name', value: 'accountRegister' },
|
|
3723
|
+
arguments: [
|
|
3724
|
+
{
|
|
3725
|
+
kind: 'Argument',
|
|
3726
|
+
name: { kind: 'Name', value: 'accountId' },
|
|
3727
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'accountId' } },
|
|
3728
|
+
},
|
|
3729
|
+
{
|
|
3730
|
+
kind: 'Argument',
|
|
3731
|
+
name: { kind: 'Name', value: 'startDate' },
|
|
3732
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'startDate' } },
|
|
3733
|
+
},
|
|
3734
|
+
{
|
|
3735
|
+
kind: 'Argument',
|
|
3736
|
+
name: { kind: 'Name', value: 'endDate' },
|
|
3737
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'endDate' } },
|
|
3738
|
+
},
|
|
3739
|
+
{
|
|
3740
|
+
kind: 'Argument',
|
|
3741
|
+
name: { kind: 'Name', value: 'entityId' },
|
|
3742
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
|
|
3743
|
+
},
|
|
3744
|
+
{
|
|
3745
|
+
kind: 'Argument',
|
|
3746
|
+
name: { kind: 'Name', value: 'dimensionType' },
|
|
3747
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'dimensionType' } },
|
|
3748
|
+
},
|
|
3749
|
+
{
|
|
3750
|
+
kind: 'Argument',
|
|
3751
|
+
name: { kind: 'Name', value: 'dimensionMemberId' },
|
|
3752
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'dimensionMemberId' } },
|
|
3753
|
+
},
|
|
3754
|
+
{
|
|
3755
|
+
kind: 'Argument',
|
|
3756
|
+
name: { kind: 'Name', value: 'flowElementId' },
|
|
3757
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'flowElementId' } },
|
|
3758
|
+
},
|
|
3759
|
+
{
|
|
3760
|
+
kind: 'Argument',
|
|
3761
|
+
name: { kind: 'Name', value: 'includeDrafts' },
|
|
3762
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'includeDrafts' } },
|
|
3763
|
+
},
|
|
3764
|
+
{
|
|
3765
|
+
kind: 'Argument',
|
|
3766
|
+
name: { kind: 'Name', value: 'after' },
|
|
3767
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'after' } },
|
|
3768
|
+
},
|
|
3769
|
+
{
|
|
3770
|
+
kind: 'Argument',
|
|
3771
|
+
name: { kind: 'Name', value: 'limit' },
|
|
3772
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
|
|
3773
|
+
},
|
|
3774
|
+
],
|
|
3775
|
+
selectionSet: {
|
|
3776
|
+
kind: 'SelectionSet',
|
|
3777
|
+
selections: [
|
|
3778
|
+
{
|
|
3779
|
+
kind: 'Field',
|
|
3780
|
+
name: { kind: 'Name', value: 'account' },
|
|
3781
|
+
selectionSet: {
|
|
3782
|
+
kind: 'SelectionSet',
|
|
3783
|
+
selections: [
|
|
3784
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
3785
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'code' } },
|
|
3786
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
3787
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'balanceType' } },
|
|
3788
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'trait' } },
|
|
3789
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'temporary' } },
|
|
3790
|
+
],
|
|
3791
|
+
},
|
|
3792
|
+
},
|
|
3793
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
|
|
3794
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'startDate' } },
|
|
3795
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'endDate' } },
|
|
3796
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'openingFrom' } },
|
|
3797
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'openingBalance' } },
|
|
3798
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'totalDebits' } },
|
|
3799
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'totalCredits' } },
|
|
3800
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'closingBalance' } },
|
|
3801
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'lineCount' } },
|
|
3802
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'pageOpeningBalance' } },
|
|
3803
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'nextCursor' } },
|
|
3804
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'sliced' } },
|
|
3805
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'draftsTruncated' } },
|
|
3806
|
+
{
|
|
3807
|
+
kind: 'Field',
|
|
3808
|
+
name: { kind: 'Name', value: 'lines' },
|
|
3809
|
+
selectionSet: {
|
|
3810
|
+
kind: 'SelectionSet',
|
|
3811
|
+
selections: [
|
|
3812
|
+
{
|
|
3813
|
+
kind: 'FragmentSpread',
|
|
3814
|
+
name: { kind: 'Name', value: 'RegisterLineFields' },
|
|
3815
|
+
},
|
|
3816
|
+
],
|
|
3817
|
+
},
|
|
3818
|
+
},
|
|
3819
|
+
{
|
|
3820
|
+
kind: 'Field',
|
|
3821
|
+
name: { kind: 'Name', value: 'drafts' },
|
|
3822
|
+
selectionSet: {
|
|
3823
|
+
kind: 'SelectionSet',
|
|
3824
|
+
selections: [
|
|
3825
|
+
{
|
|
3826
|
+
kind: 'FragmentSpread',
|
|
3827
|
+
name: { kind: 'Name', value: 'RegisterLineFields' },
|
|
3828
|
+
},
|
|
3829
|
+
],
|
|
3830
|
+
},
|
|
3831
|
+
},
|
|
3832
|
+
],
|
|
3833
|
+
},
|
|
3834
|
+
},
|
|
3835
|
+
],
|
|
3836
|
+
},
|
|
3837
|
+
},
|
|
3838
|
+
{
|
|
3839
|
+
kind: 'FragmentDefinition',
|
|
3840
|
+
name: { kind: 'Name', value: 'RegisterLineFields' },
|
|
3841
|
+
typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'RegisterLine' } },
|
|
3842
|
+
selectionSet: {
|
|
3843
|
+
kind: 'SelectionSet',
|
|
3844
|
+
selections: [
|
|
3845
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'lineId' } },
|
|
3846
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'entryId' } },
|
|
3847
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'entryNumber' } },
|
|
3848
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'postingDate' } },
|
|
3849
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'entryType' } },
|
|
3850
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
|
|
3851
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
3852
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'memo' } },
|
|
3853
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'description' } },
|
|
3854
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'debit' } },
|
|
3855
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'credit' } },
|
|
3856
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'balance' } },
|
|
3857
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'triggeredByEventId' } },
|
|
3858
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'triggeredByEventType' } },
|
|
3859
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'reversalOf' } },
|
|
3860
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'reversedBy' } },
|
|
3861
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'agentId' } },
|
|
3862
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'agentName' } },
|
|
3863
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'flowElementId' } },
|
|
3864
|
+
{
|
|
3865
|
+
kind: 'Field',
|
|
3866
|
+
name: { kind: 'Name', value: 'dimensions' },
|
|
3867
|
+
selectionSet: {
|
|
3868
|
+
kind: 'SelectionSet',
|
|
3869
|
+
selections: [
|
|
3870
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
3871
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'dimensionType' } },
|
|
3872
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
3873
|
+
],
|
|
3874
|
+
},
|
|
3875
|
+
},
|
|
3876
|
+
],
|
|
3877
|
+
},
|
|
3878
|
+
},
|
|
3879
|
+
],
|
|
3880
|
+
} as unknown as DocumentNode<GetLedgerAccountRegisterQuery, GetLedgerAccountRegisterQueryVariables>
|
|
3477
3881
|
export const GetLedgerAccountRollupsDocument = {
|
|
3478
3882
|
kind: 'Document',
|
|
3479
3883
|
definitions: [
|
|
@@ -5360,6 +5764,41 @@ export const GetLedgerEventBlockDocument = {
|
|
|
5360
5764
|
{ kind: 'Field', name: { kind: 'Name', value: 'documentId' } },
|
|
5361
5765
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
|
|
5362
5766
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdBy' } },
|
|
5767
|
+
{
|
|
5768
|
+
kind: 'Field',
|
|
5769
|
+
name: { kind: 'Name', value: 'triggeredEntries' },
|
|
5770
|
+
selectionSet: {
|
|
5771
|
+
kind: 'SelectionSet',
|
|
5772
|
+
selections: [
|
|
5773
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
5774
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'number' } },
|
|
5775
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'type' } },
|
|
5776
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
5777
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'postingDate' } },
|
|
5778
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'memo' } },
|
|
5779
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
|
|
5780
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'totalDebit' } },
|
|
5781
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'totalCredit' } },
|
|
5782
|
+
{
|
|
5783
|
+
kind: 'Field',
|
|
5784
|
+
name: { kind: 'Name', value: 'lineItems' },
|
|
5785
|
+
selectionSet: {
|
|
5786
|
+
kind: 'SelectionSet',
|
|
5787
|
+
selections: [
|
|
5788
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
5789
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'accountId' } },
|
|
5790
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'accountName' } },
|
|
5791
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'accountCode' } },
|
|
5792
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'debitAmount' } },
|
|
5793
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'creditAmount' } },
|
|
5794
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'description' } },
|
|
5795
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'lineOrder' } },
|
|
5796
|
+
],
|
|
5797
|
+
},
|
|
5798
|
+
},
|
|
5799
|
+
],
|
|
5800
|
+
},
|
|
5801
|
+
},
|
|
5363
5802
|
],
|
|
5364
5803
|
},
|
|
5365
5804
|
},
|
|
@@ -7044,6 +7483,7 @@ export const ListLedgerJournalEntriesDocument = {
|
|
|
7044
7483
|
{ kind: 'Field', name: { kind: 'Name', value: 'sourceStructureId' } },
|
|
7045
7484
|
{ kind: 'Field', name: { kind: 'Name', value: 'sourceStructureName' } },
|
|
7046
7485
|
{ kind: 'Field', name: { kind: 'Name', value: 'triggeredByEventId' } },
|
|
7486
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'triggeredByEventType' } },
|
|
7047
7487
|
{ kind: 'Field', name: { kind: 'Name', value: 'reversalOf' } },
|
|
7048
7488
|
{ kind: 'Field', name: { kind: 'Name', value: 'postedAt' } },
|
|
7049
7489
|
{ kind: 'Field', name: { kind: 'Name', value: 'totalDebit' } },
|
|
@@ -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
|
+
`;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* One entity's posted lines on one account, oldest first, each with the
|
|
5
|
+
* balance it leaves.
|
|
6
|
+
*
|
|
7
|
+
* The lines run from `openingBalance` to `closingBalance`, which is the trial
|
|
8
|
+
* balance's for the same window added to the opening. An income or expense
|
|
9
|
+
* account opens at the fiscal year's start (`openingFrom`). Each page carries
|
|
10
|
+
* its own `pageOpeningBalance`; pass `nextCursor` as `$after` for the next.
|
|
11
|
+
* `$includeDrafts` lists the window's drafts on the first page, outside every
|
|
12
|
+
* balance. A dimension pair or `$flowElementId` reads one slice, and says so
|
|
13
|
+
* in `sliced`.
|
|
14
|
+
*/
|
|
15
|
+
export const GET_ACCOUNT_REGISTER = gql`
|
|
16
|
+
query GetLedgerAccountRegister(
|
|
17
|
+
$accountId: String!
|
|
18
|
+
$startDate: Date
|
|
19
|
+
$endDate: Date
|
|
20
|
+
$entityId: String
|
|
21
|
+
$dimensionType: String
|
|
22
|
+
$dimensionMemberId: String
|
|
23
|
+
$flowElementId: String
|
|
24
|
+
$includeDrafts: Boolean! = false
|
|
25
|
+
$after: String
|
|
26
|
+
$limit: Int
|
|
27
|
+
) {
|
|
28
|
+
accountRegister(
|
|
29
|
+
accountId: $accountId
|
|
30
|
+
startDate: $startDate
|
|
31
|
+
endDate: $endDate
|
|
32
|
+
entityId: $entityId
|
|
33
|
+
dimensionType: $dimensionType
|
|
34
|
+
dimensionMemberId: $dimensionMemberId
|
|
35
|
+
flowElementId: $flowElementId
|
|
36
|
+
includeDrafts: $includeDrafts
|
|
37
|
+
after: $after
|
|
38
|
+
limit: $limit
|
|
39
|
+
) {
|
|
40
|
+
account {
|
|
41
|
+
id
|
|
42
|
+
code
|
|
43
|
+
name
|
|
44
|
+
balanceType
|
|
45
|
+
trait
|
|
46
|
+
temporary
|
|
47
|
+
}
|
|
48
|
+
entityId
|
|
49
|
+
startDate
|
|
50
|
+
endDate
|
|
51
|
+
openingFrom
|
|
52
|
+
openingBalance
|
|
53
|
+
totalDebits
|
|
54
|
+
totalCredits
|
|
55
|
+
closingBalance
|
|
56
|
+
lineCount
|
|
57
|
+
pageOpeningBalance
|
|
58
|
+
nextCursor
|
|
59
|
+
sliced
|
|
60
|
+
draftsTruncated
|
|
61
|
+
lines {
|
|
62
|
+
...RegisterLineFields
|
|
63
|
+
}
|
|
64
|
+
drafts {
|
|
65
|
+
...RegisterLineFields
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
fragment RegisterLineFields on RegisterLine {
|
|
71
|
+
lineId
|
|
72
|
+
entryId
|
|
73
|
+
entryNumber
|
|
74
|
+
postingDate
|
|
75
|
+
entryType
|
|
76
|
+
provenance
|
|
77
|
+
status
|
|
78
|
+
memo
|
|
79
|
+
description
|
|
80
|
+
debit
|
|
81
|
+
credit
|
|
82
|
+
balance
|
|
83
|
+
triggeredByEventId
|
|
84
|
+
triggeredByEventType
|
|
85
|
+
reversalOf
|
|
86
|
+
reversedBy
|
|
87
|
+
agentId
|
|
88
|
+
agentName
|
|
89
|
+
flowElementId
|
|
90
|
+
dimensions {
|
|
91
|
+
id
|
|
92
|
+
dimensionType
|
|
93
|
+
name
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
`
|