@robosystems/client 0.3.37 → 0.3.39
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/LibraryClient.d.ts +18 -1
- package/artifacts/LibraryClient.js +16 -0
- package/artifacts/LibraryClient.ts +38 -0
- package/artifacts/graphql/generated/graphql.d.ts +62 -5
- package/artifacts/graphql/generated/graphql.js +132 -2
- package/artifacts/graphql/generated/graphql.ts +194 -5
- package/artifacts/graphql/queries/ledger/periodDrafts.d.ts +6 -0
- package/artifacts/graphql/queries/ledger/periodDrafts.js +11 -0
- package/artifacts/graphql/queries/ledger/periodDrafts.ts +11 -0
- package/artifacts/graphql/queries/library/arcs.js +11 -1
- package/artifacts/graphql/queries/library/arcs.ts +11 -1
- package/artifacts/graphql/queries/library/structures.d.ts +19 -0
- package/artifacts/graphql/queries/library/structures.js +45 -0
- package/artifacts/graphql/queries/library/structures.ts +44 -0
- package/index.ts +2 -2
- package/package.json +1 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +4 -2
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +15 -1
- package/sdk/sdk.gen.js +36 -4
- package/sdk/sdk.gen.ts +33 -1
- package/sdk/types.gen.d.ts +250 -4
- package/sdk/types.gen.ts +264 -4
- package/sdk.gen.d.ts +15 -1
- package/sdk.gen.js +36 -4
- package/sdk.gen.ts +33 -1
- package/types.gen.d.ts +250 -4
- package/types.gen.ts +264 -4
|
@@ -226,6 +226,8 @@ export type DraftEntry = {
|
|
|
226
226
|
totalDebit: Scalars['Int']['output']
|
|
227
227
|
/** Entry type (e.g., 'closing', 'adjusting') */
|
|
228
228
|
type: Scalars['String']['output']
|
|
229
|
+
/** True if closing the period will publish this draft to QuickBooks — i.e. the graph has a qb_authoritative/hybrid QB connection AND this is an RL-originated draft (schedule/manual) not already in QB. False means it posts locally only. */
|
|
230
|
+
willPublishToQb: Scalars['Boolean']['output']
|
|
229
231
|
}
|
|
230
232
|
|
|
231
233
|
/** A single line item within a draft entry. */
|
|
@@ -641,10 +643,12 @@ export type InformationBlockRuleTarget = {
|
|
|
641
643
|
|
|
642
644
|
/** `$Variable` → concept qname binding for a rule expression. */
|
|
643
645
|
export type InformationBlockRuleVariable = {
|
|
646
|
+
/** Element id the variable binds to directly. Set for schedule SumEquals rules over CoA-debit elements that have no qname; null otherwise. */
|
|
647
|
+
variableElementId: Maybe<Scalars['String']['output']>
|
|
644
648
|
/** Local name in the rule expression, e.g. 'Assets'. */
|
|
645
649
|
variableName: Scalars['String']['output']
|
|
646
|
-
/** Concept qname the variable resolves to, e.g. 'fac:Assets'. */
|
|
647
|
-
variableQname: Scalars['String']['output']
|
|
650
|
+
/** Concept qname the variable resolves to, e.g. 'fac:Assets'. Null for tenant CoA elements (which key on `code`/`element_id`, not qname) — in that case the binding is carried by `variable_element_id`. */
|
|
651
|
+
variableQname: Maybe<Scalars['String']['output']>
|
|
648
652
|
}
|
|
649
653
|
|
|
650
654
|
/**
|
|
@@ -928,15 +932,21 @@ export type LibraryAssociation = {
|
|
|
928
932
|
/** presentation | calculation | mapping | equivalence | general-special | essence-alias */
|
|
929
933
|
associationType: Scalars['String']['output']
|
|
930
934
|
fromElementId: Scalars['String']['output']
|
|
935
|
+
fromElementIsAbstract: Maybe<Scalars['Boolean']['output']>
|
|
931
936
|
fromElementName: Maybe<Scalars['String']['output']>
|
|
932
937
|
fromElementQname: Maybe<Scalars['String']['output']>
|
|
938
|
+
/** Primary elementsOfFinancialStatements trait (for node coloring) */
|
|
939
|
+
fromElementTrait: Maybe<Scalars['String']['output']>
|
|
933
940
|
id: Scalars['String']['output']
|
|
934
941
|
orderValue: Maybe<Scalars['Float']['output']>
|
|
935
942
|
structureId: Scalars['String']['output']
|
|
936
943
|
structureName: Maybe<Scalars['String']['output']>
|
|
937
944
|
toElementId: Scalars['String']['output']
|
|
945
|
+
toElementIsAbstract: Maybe<Scalars['Boolean']['output']>
|
|
938
946
|
toElementName: Maybe<Scalars['String']['output']>
|
|
939
947
|
toElementQname: Maybe<Scalars['String']['output']>
|
|
948
|
+
/** Primary elementsOfFinancialStatements trait (for node coloring) */
|
|
949
|
+
toElementTrait: Maybe<Scalars['String']['output']>
|
|
940
950
|
weight: Maybe<Scalars['Float']['output']>
|
|
941
951
|
}
|
|
942
952
|
|
|
@@ -1220,10 +1230,18 @@ export type PeriodDrafts = {
|
|
|
1220
1230
|
allBalanced: Scalars['Boolean']['output']
|
|
1221
1231
|
draftCount: Scalars['Int']['output']
|
|
1222
1232
|
drafts: Array<DraftEntry>
|
|
1233
|
+
/** Number of drafts that post locally only (no QB write-back). */
|
|
1234
|
+
localOnlyCount: Scalars['Int']['output']
|
|
1223
1235
|
/** YYYY-MM period name */
|
|
1224
1236
|
period: Scalars['String']['output']
|
|
1225
1237
|
periodEnd: Scalars['Date']['output']
|
|
1226
1238
|
periodStart: Scalars['Date']['output']
|
|
1239
|
+
/** Number of drafts that will publish to QuickBooks on close. */
|
|
1240
|
+
qbPublishCount: Scalars['Int']['output']
|
|
1241
|
+
/** write_policy of the publishing QB connection ('qb_authoritative' / 'hybrid'), or null when there is no write-back connection. */
|
|
1242
|
+
qbWritePolicy: Maybe<Scalars['String']['output']>
|
|
1243
|
+
/** Id of the QuickBooks connection these drafts publish to on close, or null when the graph has no qb_authoritative/hybrid QB connection (the drafts post locally only). */
|
|
1244
|
+
qbWritebackConnectionId: Maybe<Scalars['String']['output']>
|
|
1227
1245
|
/** Sum across all drafts, in cents */
|
|
1228
1246
|
totalCredit: Scalars['Int']['output']
|
|
1229
1247
|
/** Sum across all drafts, in cents */
|
|
@@ -2838,7 +2856,7 @@ export type GetInformationBlockQuery = {
|
|
|
2838
2856
|
ruleSeverity: string
|
|
2839
2857
|
ruleOrigin: string
|
|
2840
2858
|
ruleTarget: { targetKind: string; targetRefId: string } | null
|
|
2841
|
-
ruleVariables: Array<{ variableName: string; variableQname: string }>
|
|
2859
|
+
ruleVariables: Array<{ variableName: string; variableQname: string | null }>
|
|
2842
2860
|
}>
|
|
2843
2861
|
factSet: {
|
|
2844
2862
|
id: string
|
|
@@ -2965,7 +2983,7 @@ export type ListInformationBlocksQuery = {
|
|
|
2965
2983
|
ruleSeverity: string
|
|
2966
2984
|
ruleOrigin: string
|
|
2967
2985
|
ruleTarget: { targetKind: string; targetRefId: string } | null
|
|
2968
|
-
ruleVariables: Array<{ variableName: string; variableQname: string }>
|
|
2986
|
+
ruleVariables: Array<{ variableName: string; variableQname: string | null }>
|
|
2969
2987
|
}>
|
|
2970
2988
|
factSet: {
|
|
2971
2989
|
id: string
|
|
@@ -3157,6 +3175,10 @@ export type GetLedgerPeriodDraftsQuery = {
|
|
|
3157
3175
|
totalDebit: number
|
|
3158
3176
|
totalCredit: number
|
|
3159
3177
|
allBalanced: boolean
|
|
3178
|
+
qbWritebackConnectionId: string | null
|
|
3179
|
+
qbWritePolicy: string | null
|
|
3180
|
+
qbPublishCount: number
|
|
3181
|
+
localOnlyCount: number
|
|
3160
3182
|
drafts: Array<{
|
|
3161
3183
|
entryId: string
|
|
3162
3184
|
postingDate: any
|
|
@@ -3168,6 +3190,7 @@ export type GetLedgerPeriodDraftsQuery = {
|
|
|
3168
3190
|
totalDebit: number
|
|
3169
3191
|
totalCredit: number
|
|
3170
3192
|
balanced: boolean
|
|
3193
|
+
willPublishToQb: boolean
|
|
3171
3194
|
lineItems: Array<{
|
|
3172
3195
|
lineItemId: string
|
|
3173
3196
|
elementId: string
|
|
@@ -3339,7 +3362,7 @@ export type GetLedgerReportPackageQuery = {
|
|
|
3339
3362
|
ruleSeverity: string
|
|
3340
3363
|
ruleOrigin: string
|
|
3341
3364
|
ruleTarget: { targetKind: string; targetRefId: string } | null
|
|
3342
|
-
ruleVariables: Array<{ variableName: string; variableQname: string }>
|
|
3365
|
+
ruleVariables: Array<{ variableName: string; variableQname: string | null }>
|
|
3343
3366
|
}>
|
|
3344
3367
|
factSet: {
|
|
3345
3368
|
id: string
|
|
@@ -3656,6 +3679,7 @@ export type ListLedgerUnmappedElementsQuery = {
|
|
|
3656
3679
|
export type ListLibraryTaxonomyArcsQueryVariables = Exact<{
|
|
3657
3680
|
taxonomyId: Scalars['ID']['input']
|
|
3658
3681
|
associationType: InputMaybe<Scalars['String']['input']>
|
|
3682
|
+
structureId: InputMaybe<Scalars['ID']['input']>
|
|
3659
3683
|
limit?: Scalars['Int']['input']
|
|
3660
3684
|
offset?: Scalars['Int']['input']
|
|
3661
3685
|
}>
|
|
@@ -3669,9 +3693,13 @@ export type ListLibraryTaxonomyArcsQuery = {
|
|
|
3669
3693
|
fromElementId: string
|
|
3670
3694
|
fromElementQname: string | null
|
|
3671
3695
|
fromElementName: string | null
|
|
3696
|
+
fromElementTrait: string | null
|
|
3697
|
+
fromElementIsAbstract: boolean | null
|
|
3672
3698
|
toElementId: string
|
|
3673
3699
|
toElementQname: string | null
|
|
3674
3700
|
toElementName: string | null
|
|
3701
|
+
toElementTrait: string | null
|
|
3702
|
+
toElementIsAbstract: boolean | null
|
|
3675
3703
|
associationType: string
|
|
3676
3704
|
arcrole: string | null
|
|
3677
3705
|
orderValue: number | null
|
|
@@ -3812,6 +3840,37 @@ export type GetLibraryElementQuery = {
|
|
|
3812
3840
|
} | null
|
|
3813
3841
|
}
|
|
3814
3842
|
|
|
3843
|
+
export type ListLibraryStructuresQueryVariables = Exact<{
|
|
3844
|
+
taxonomyId: InputMaybe<Scalars['ID']['input']>
|
|
3845
|
+
blockType: InputMaybe<Scalars['String']['input']>
|
|
3846
|
+
}>
|
|
3847
|
+
|
|
3848
|
+
export type ListLibraryStructuresQuery = {
|
|
3849
|
+
libraryStructures: Array<{
|
|
3850
|
+
id: string
|
|
3851
|
+
name: string
|
|
3852
|
+
blockType: string
|
|
3853
|
+
taxonomyId: string
|
|
3854
|
+
roleUri: string | null
|
|
3855
|
+
isActive: boolean
|
|
3856
|
+
}>
|
|
3857
|
+
}
|
|
3858
|
+
|
|
3859
|
+
export type GetLibraryStructureQueryVariables = Exact<{
|
|
3860
|
+
id: Scalars['ID']['input']
|
|
3861
|
+
}>
|
|
3862
|
+
|
|
3863
|
+
export type GetLibraryStructureQuery = {
|
|
3864
|
+
libraryStructure: {
|
|
3865
|
+
id: string
|
|
3866
|
+
name: string
|
|
3867
|
+
blockType: string
|
|
3868
|
+
taxonomyId: string
|
|
3869
|
+
roleUri: string | null
|
|
3870
|
+
isActive: boolean
|
|
3871
|
+
} | null
|
|
3872
|
+
}
|
|
3873
|
+
|
|
3815
3874
|
export type ListLibraryTaxonomiesQueryVariables = Exact<{
|
|
3816
3875
|
standard: InputMaybe<Scalars['String']['input']>
|
|
3817
3876
|
includeElementCount?: Scalars['Boolean']['input']
|
|
@@ -6517,6 +6576,10 @@ export const GetLedgerPeriodDraftsDocument = {
|
|
|
6517
6576
|
{ kind: 'Field', name: { kind: 'Name', value: 'totalDebit' } },
|
|
6518
6577
|
{ kind: 'Field', name: { kind: 'Name', value: 'totalCredit' } },
|
|
6519
6578
|
{ kind: 'Field', name: { kind: 'Name', value: 'allBalanced' } },
|
|
6579
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'qbWritebackConnectionId' } },
|
|
6580
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'qbWritePolicy' } },
|
|
6581
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'qbPublishCount' } },
|
|
6582
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'localOnlyCount' } },
|
|
6520
6583
|
{
|
|
6521
6584
|
kind: 'Field',
|
|
6522
6585
|
name: { kind: 'Name', value: 'drafts' },
|
|
@@ -6533,6 +6596,7 @@ export const GetLedgerPeriodDraftsDocument = {
|
|
|
6533
6596
|
{ kind: 'Field', name: { kind: 'Name', value: 'totalDebit' } },
|
|
6534
6597
|
{ kind: 'Field', name: { kind: 'Name', value: 'totalCredit' } },
|
|
6535
6598
|
{ kind: 'Field', name: { kind: 'Name', value: 'balanced' } },
|
|
6599
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'willPublishToQb' } },
|
|
6536
6600
|
{
|
|
6537
6601
|
kind: 'Field',
|
|
6538
6602
|
name: { kind: 'Name', value: 'lineItems' },
|
|
@@ -7919,6 +7983,11 @@ export const ListLibraryTaxonomyArcsDocument = {
|
|
|
7919
7983
|
variable: { kind: 'Variable', name: { kind: 'Name', value: 'associationType' } },
|
|
7920
7984
|
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
7921
7985
|
},
|
|
7986
|
+
{
|
|
7987
|
+
kind: 'VariableDefinition',
|
|
7988
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'structureId' } },
|
|
7989
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
|
|
7990
|
+
},
|
|
7922
7991
|
{
|
|
7923
7992
|
kind: 'VariableDefinition',
|
|
7924
7993
|
variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
|
|
@@ -7950,6 +8019,16 @@ export const ListLibraryTaxonomyArcsDocument = {
|
|
|
7950
8019
|
name: { kind: 'Name', value: 'taxonomyId' },
|
|
7951
8020
|
value: { kind: 'Variable', name: { kind: 'Name', value: 'taxonomyId' } },
|
|
7952
8021
|
},
|
|
8022
|
+
{
|
|
8023
|
+
kind: 'Argument',
|
|
8024
|
+
name: { kind: 'Name', value: 'associationType' },
|
|
8025
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'associationType' } },
|
|
8026
|
+
},
|
|
8027
|
+
{
|
|
8028
|
+
kind: 'Argument',
|
|
8029
|
+
name: { kind: 'Name', value: 'structureId' },
|
|
8030
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'structureId' } },
|
|
8031
|
+
},
|
|
7953
8032
|
],
|
|
7954
8033
|
},
|
|
7955
8034
|
{
|
|
@@ -7966,6 +8045,11 @@ export const ListLibraryTaxonomyArcsDocument = {
|
|
|
7966
8045
|
name: { kind: 'Name', value: 'associationType' },
|
|
7967
8046
|
value: { kind: 'Variable', name: { kind: 'Name', value: 'associationType' } },
|
|
7968
8047
|
},
|
|
8048
|
+
{
|
|
8049
|
+
kind: 'Argument',
|
|
8050
|
+
name: { kind: 'Name', value: 'structureId' },
|
|
8051
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'structureId' } },
|
|
8052
|
+
},
|
|
7969
8053
|
{
|
|
7970
8054
|
kind: 'Argument',
|
|
7971
8055
|
name: { kind: 'Name', value: 'limit' },
|
|
@@ -7986,9 +8070,13 @@ export const ListLibraryTaxonomyArcsDocument = {
|
|
|
7986
8070
|
{ kind: 'Field', name: { kind: 'Name', value: 'fromElementId' } },
|
|
7987
8071
|
{ kind: 'Field', name: { kind: 'Name', value: 'fromElementQname' } },
|
|
7988
8072
|
{ kind: 'Field', name: { kind: 'Name', value: 'fromElementName' } },
|
|
8073
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'fromElementTrait' } },
|
|
8074
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'fromElementIsAbstract' } },
|
|
7989
8075
|
{ kind: 'Field', name: { kind: 'Name', value: 'toElementId' } },
|
|
7990
8076
|
{ kind: 'Field', name: { kind: 'Name', value: 'toElementQname' } },
|
|
7991
8077
|
{ kind: 'Field', name: { kind: 'Name', value: 'toElementName' } },
|
|
8078
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'toElementTrait' } },
|
|
8079
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'toElementIsAbstract' } },
|
|
7992
8080
|
{ kind: 'Field', name: { kind: 'Name', value: 'associationType' } },
|
|
7993
8081
|
{ kind: 'Field', name: { kind: 'Name', value: 'arcrole' } },
|
|
7994
8082
|
{ kind: 'Field', name: { kind: 'Name', value: 'orderValue' } },
|
|
@@ -8585,6 +8673,107 @@ export const GetLibraryElementDocument = {
|
|
|
8585
8673
|
},
|
|
8586
8674
|
],
|
|
8587
8675
|
} as unknown as DocumentNode<GetLibraryElementQuery, GetLibraryElementQueryVariables>
|
|
8676
|
+
export const ListLibraryStructuresDocument = {
|
|
8677
|
+
kind: 'Document',
|
|
8678
|
+
definitions: [
|
|
8679
|
+
{
|
|
8680
|
+
kind: 'OperationDefinition',
|
|
8681
|
+
operation: 'query',
|
|
8682
|
+
name: { kind: 'Name', value: 'ListLibraryStructures' },
|
|
8683
|
+
variableDefinitions: [
|
|
8684
|
+
{
|
|
8685
|
+
kind: 'VariableDefinition',
|
|
8686
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'taxonomyId' } },
|
|
8687
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
|
|
8688
|
+
},
|
|
8689
|
+
{
|
|
8690
|
+
kind: 'VariableDefinition',
|
|
8691
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'blockType' } },
|
|
8692
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
8693
|
+
},
|
|
8694
|
+
],
|
|
8695
|
+
selectionSet: {
|
|
8696
|
+
kind: 'SelectionSet',
|
|
8697
|
+
selections: [
|
|
8698
|
+
{
|
|
8699
|
+
kind: 'Field',
|
|
8700
|
+
name: { kind: 'Name', value: 'libraryStructures' },
|
|
8701
|
+
arguments: [
|
|
8702
|
+
{
|
|
8703
|
+
kind: 'Argument',
|
|
8704
|
+
name: { kind: 'Name', value: 'taxonomyId' },
|
|
8705
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'taxonomyId' } },
|
|
8706
|
+
},
|
|
8707
|
+
{
|
|
8708
|
+
kind: 'Argument',
|
|
8709
|
+
name: { kind: 'Name', value: 'blockType' },
|
|
8710
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'blockType' } },
|
|
8711
|
+
},
|
|
8712
|
+
],
|
|
8713
|
+
selectionSet: {
|
|
8714
|
+
kind: 'SelectionSet',
|
|
8715
|
+
selections: [
|
|
8716
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
8717
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
8718
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'blockType' } },
|
|
8719
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'taxonomyId' } },
|
|
8720
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'roleUri' } },
|
|
8721
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'isActive' } },
|
|
8722
|
+
],
|
|
8723
|
+
},
|
|
8724
|
+
},
|
|
8725
|
+
],
|
|
8726
|
+
},
|
|
8727
|
+
},
|
|
8728
|
+
],
|
|
8729
|
+
} as unknown as DocumentNode<ListLibraryStructuresQuery, ListLibraryStructuresQueryVariables>
|
|
8730
|
+
export const GetLibraryStructureDocument = {
|
|
8731
|
+
kind: 'Document',
|
|
8732
|
+
definitions: [
|
|
8733
|
+
{
|
|
8734
|
+
kind: 'OperationDefinition',
|
|
8735
|
+
operation: 'query',
|
|
8736
|
+
name: { kind: 'Name', value: 'GetLibraryStructure' },
|
|
8737
|
+
variableDefinitions: [
|
|
8738
|
+
{
|
|
8739
|
+
kind: 'VariableDefinition',
|
|
8740
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
|
|
8741
|
+
type: {
|
|
8742
|
+
kind: 'NonNullType',
|
|
8743
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
|
|
8744
|
+
},
|
|
8745
|
+
},
|
|
8746
|
+
],
|
|
8747
|
+
selectionSet: {
|
|
8748
|
+
kind: 'SelectionSet',
|
|
8749
|
+
selections: [
|
|
8750
|
+
{
|
|
8751
|
+
kind: 'Field',
|
|
8752
|
+
name: { kind: 'Name', value: 'libraryStructure' },
|
|
8753
|
+
arguments: [
|
|
8754
|
+
{
|
|
8755
|
+
kind: 'Argument',
|
|
8756
|
+
name: { kind: 'Name', value: 'id' },
|
|
8757
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
|
|
8758
|
+
},
|
|
8759
|
+
],
|
|
8760
|
+
selectionSet: {
|
|
8761
|
+
kind: 'SelectionSet',
|
|
8762
|
+
selections: [
|
|
8763
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
8764
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
8765
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'blockType' } },
|
|
8766
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'taxonomyId' } },
|
|
8767
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'roleUri' } },
|
|
8768
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'isActive' } },
|
|
8769
|
+
],
|
|
8770
|
+
},
|
|
8771
|
+
},
|
|
8772
|
+
],
|
|
8773
|
+
},
|
|
8774
|
+
},
|
|
8775
|
+
],
|
|
8776
|
+
} as unknown as DocumentNode<GetLibraryStructureQuery, GetLibraryStructureQueryVariables>
|
|
8588
8777
|
export const ListLibraryTaxonomiesDocument = {
|
|
8589
8778
|
kind: 'Document',
|
|
8590
8779
|
definitions: [
|
|
@@ -4,5 +4,11 @@
|
|
|
4
4
|
*
|
|
5
5
|
* `period` is YYYY-MM format. Balance check is server-side — `balanced`
|
|
6
6
|
* per entry, `allBalanced` for the period total.
|
|
7
|
+
*
|
|
8
|
+
* This is also the close-review *outbox*: each draft carries its QB
|
|
9
|
+
* write-back disposition (`willPublishToQb`) and the response carries a
|
|
10
|
+
* publish summary (`qbWritebackConnectionId` / `qbWritePolicy` /
|
|
11
|
+
* `qbPublishCount` / `localOnlyCount`) — which drafts `close-period` will
|
|
12
|
+
* push to QuickBooks vs. post locally only.
|
|
7
13
|
*/
|
|
8
14
|
export declare const GET_PERIOD_DRAFTS: string;
|
|
@@ -8,6 +8,12 @@ const graphql_request_1 = require("graphql-request");
|
|
|
8
8
|
*
|
|
9
9
|
* `period` is YYYY-MM format. Balance check is server-side — `balanced`
|
|
10
10
|
* per entry, `allBalanced` for the period total.
|
|
11
|
+
*
|
|
12
|
+
* This is also the close-review *outbox*: each draft carries its QB
|
|
13
|
+
* write-back disposition (`willPublishToQb`) and the response carries a
|
|
14
|
+
* publish summary (`qbWritebackConnectionId` / `qbWritePolicy` /
|
|
15
|
+
* `qbPublishCount` / `localOnlyCount`) — which drafts `close-period` will
|
|
16
|
+
* push to QuickBooks vs. post locally only.
|
|
11
17
|
*/
|
|
12
18
|
exports.GET_PERIOD_DRAFTS = (0, graphql_request_1.gql) `
|
|
13
19
|
query GetLedgerPeriodDrafts($period: String!) {
|
|
@@ -19,6 +25,10 @@ exports.GET_PERIOD_DRAFTS = (0, graphql_request_1.gql) `
|
|
|
19
25
|
totalDebit
|
|
20
26
|
totalCredit
|
|
21
27
|
allBalanced
|
|
28
|
+
qbWritebackConnectionId
|
|
29
|
+
qbWritePolicy
|
|
30
|
+
qbPublishCount
|
|
31
|
+
localOnlyCount
|
|
22
32
|
drafts {
|
|
23
33
|
entryId
|
|
24
34
|
postingDate
|
|
@@ -30,6 +40,7 @@ exports.GET_PERIOD_DRAFTS = (0, graphql_request_1.gql) `
|
|
|
30
40
|
totalDebit
|
|
31
41
|
totalCredit
|
|
32
42
|
balanced
|
|
43
|
+
willPublishToQb
|
|
33
44
|
lineItems {
|
|
34
45
|
lineItemId
|
|
35
46
|
elementId
|
|
@@ -6,6 +6,12 @@ import { gql } from 'graphql-request'
|
|
|
6
6
|
*
|
|
7
7
|
* `period` is YYYY-MM format. Balance check is server-side — `balanced`
|
|
8
8
|
* per entry, `allBalanced` for the period total.
|
|
9
|
+
*
|
|
10
|
+
* This is also the close-review *outbox*: each draft carries its QB
|
|
11
|
+
* write-back disposition (`willPublishToQb`) and the response carries a
|
|
12
|
+
* publish summary (`qbWritebackConnectionId` / `qbWritePolicy` /
|
|
13
|
+
* `qbPublishCount` / `localOnlyCount`) — which drafts `close-period` will
|
|
14
|
+
* push to QuickBooks vs. post locally only.
|
|
9
15
|
*/
|
|
10
16
|
export const GET_PERIOD_DRAFTS = gql`
|
|
11
17
|
query GetLedgerPeriodDrafts($period: String!) {
|
|
@@ -17,6 +23,10 @@ export const GET_PERIOD_DRAFTS = gql`
|
|
|
17
23
|
totalDebit
|
|
18
24
|
totalCredit
|
|
19
25
|
allBalanced
|
|
26
|
+
qbWritebackConnectionId
|
|
27
|
+
qbWritePolicy
|
|
28
|
+
qbPublishCount
|
|
29
|
+
localOnlyCount
|
|
20
30
|
drafts {
|
|
21
31
|
entryId
|
|
22
32
|
postingDate
|
|
@@ -28,6 +38,7 @@ export const GET_PERIOD_DRAFTS = gql`
|
|
|
28
38
|
totalDebit
|
|
29
39
|
totalCredit
|
|
30
40
|
balanced
|
|
41
|
+
willPublishToQb
|
|
31
42
|
lineItems {
|
|
32
43
|
lineItemId
|
|
33
44
|
elementId
|
|
@@ -12,13 +12,19 @@ exports.LIST_LIBRARY_TAXONOMY_ARCS = (0, graphql_request_1.gql) `
|
|
|
12
12
|
query ListLibraryTaxonomyArcs(
|
|
13
13
|
$taxonomyId: ID!
|
|
14
14
|
$associationType: String
|
|
15
|
+
$structureId: ID
|
|
15
16
|
$limit: Int! = 200
|
|
16
17
|
$offset: Int! = 0
|
|
17
18
|
) {
|
|
18
|
-
libraryTaxonomyArcCount(
|
|
19
|
+
libraryTaxonomyArcCount(
|
|
20
|
+
taxonomyId: $taxonomyId
|
|
21
|
+
associationType: $associationType
|
|
22
|
+
structureId: $structureId
|
|
23
|
+
)
|
|
19
24
|
libraryTaxonomyArcs(
|
|
20
25
|
taxonomyId: $taxonomyId
|
|
21
26
|
associationType: $associationType
|
|
27
|
+
structureId: $structureId
|
|
22
28
|
limit: $limit
|
|
23
29
|
offset: $offset
|
|
24
30
|
) {
|
|
@@ -28,9 +34,13 @@ exports.LIST_LIBRARY_TAXONOMY_ARCS = (0, graphql_request_1.gql) `
|
|
|
28
34
|
fromElementId
|
|
29
35
|
fromElementQname
|
|
30
36
|
fromElementName
|
|
37
|
+
fromElementTrait
|
|
38
|
+
fromElementIsAbstract
|
|
31
39
|
toElementId
|
|
32
40
|
toElementQname
|
|
33
41
|
toElementName
|
|
42
|
+
toElementTrait
|
|
43
|
+
toElementIsAbstract
|
|
34
44
|
associationType
|
|
35
45
|
arcrole
|
|
36
46
|
orderValue
|
|
@@ -10,13 +10,19 @@ export const LIST_LIBRARY_TAXONOMY_ARCS = gql`
|
|
|
10
10
|
query ListLibraryTaxonomyArcs(
|
|
11
11
|
$taxonomyId: ID!
|
|
12
12
|
$associationType: String
|
|
13
|
+
$structureId: ID
|
|
13
14
|
$limit: Int! = 200
|
|
14
15
|
$offset: Int! = 0
|
|
15
16
|
) {
|
|
16
|
-
libraryTaxonomyArcCount(
|
|
17
|
+
libraryTaxonomyArcCount(
|
|
18
|
+
taxonomyId: $taxonomyId
|
|
19
|
+
associationType: $associationType
|
|
20
|
+
structureId: $structureId
|
|
21
|
+
)
|
|
17
22
|
libraryTaxonomyArcs(
|
|
18
23
|
taxonomyId: $taxonomyId
|
|
19
24
|
associationType: $associationType
|
|
25
|
+
structureId: $structureId
|
|
20
26
|
limit: $limit
|
|
21
27
|
offset: $offset
|
|
22
28
|
) {
|
|
@@ -26,9 +32,13 @@ export const LIST_LIBRARY_TAXONOMY_ARCS = gql`
|
|
|
26
32
|
fromElementId
|
|
27
33
|
fromElementQname
|
|
28
34
|
fromElementName
|
|
35
|
+
fromElementTrait
|
|
36
|
+
fromElementIsAbstract
|
|
29
37
|
toElementId
|
|
30
38
|
toElementQname
|
|
31
39
|
toElementName
|
|
40
|
+
toElementTrait
|
|
41
|
+
toElementIsAbstract
|
|
32
42
|
associationType
|
|
33
43
|
arcrole
|
|
34
44
|
orderValue
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List the structures (extended link roles) contributed by a taxonomy —
|
|
3
|
+
* the named presentation/calculation hierarchies (BS-classified,
|
|
4
|
+
* IS-multistep, CashFlow, the calc DAG roots, etc). Pair a structure's
|
|
5
|
+
* ``id`` with ``listLibraryTaxonomyArcs`` + a ``structureId`` filter to
|
|
6
|
+
* load just that hierarchy's arcs — this is how the hierarchy view scopes
|
|
7
|
+
* a tree to one role at a time.
|
|
8
|
+
*
|
|
9
|
+
* Pass ``taxonomyId`` to scope to a single taxonomy; pass ``blockType``
|
|
10
|
+
* to filter to one statement kind (balance_sheet, income_statement,
|
|
11
|
+
* cash_flow_statement, …).
|
|
12
|
+
*/
|
|
13
|
+
export declare const LIST_LIBRARY_STRUCTURES: string;
|
|
14
|
+
/**
|
|
15
|
+
* Fetch one structure by id. Returns null when the id doesn't resolve.
|
|
16
|
+
* Metadata only — pair with ``listLibraryTaxonomyArcs`` + a ``structureId``
|
|
17
|
+
* filter to load the structure's arcs.
|
|
18
|
+
*/
|
|
19
|
+
export declare const GET_LIBRARY_STRUCTURE: string;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_LIBRARY_STRUCTURE = exports.LIST_LIBRARY_STRUCTURES = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* List the structures (extended link roles) contributed by a taxonomy —
|
|
7
|
+
* the named presentation/calculation hierarchies (BS-classified,
|
|
8
|
+
* IS-multistep, CashFlow, the calc DAG roots, etc). Pair a structure's
|
|
9
|
+
* ``id`` with ``listLibraryTaxonomyArcs`` + a ``structureId`` filter to
|
|
10
|
+
* load just that hierarchy's arcs — this is how the hierarchy view scopes
|
|
11
|
+
* a tree to one role at a time.
|
|
12
|
+
*
|
|
13
|
+
* Pass ``taxonomyId`` to scope to a single taxonomy; pass ``blockType``
|
|
14
|
+
* to filter to one statement kind (balance_sheet, income_statement,
|
|
15
|
+
* cash_flow_statement, …).
|
|
16
|
+
*/
|
|
17
|
+
exports.LIST_LIBRARY_STRUCTURES = (0, graphql_request_1.gql) `
|
|
18
|
+
query ListLibraryStructures($taxonomyId: ID, $blockType: String) {
|
|
19
|
+
libraryStructures(taxonomyId: $taxonomyId, blockType: $blockType) {
|
|
20
|
+
id
|
|
21
|
+
name
|
|
22
|
+
blockType
|
|
23
|
+
taxonomyId
|
|
24
|
+
roleUri
|
|
25
|
+
isActive
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
29
|
+
/**
|
|
30
|
+
* Fetch one structure by id. Returns null when the id doesn't resolve.
|
|
31
|
+
* Metadata only — pair with ``listLibraryTaxonomyArcs`` + a ``structureId``
|
|
32
|
+
* filter to load the structure's arcs.
|
|
33
|
+
*/
|
|
34
|
+
exports.GET_LIBRARY_STRUCTURE = (0, graphql_request_1.gql) `
|
|
35
|
+
query GetLibraryStructure($id: ID!) {
|
|
36
|
+
libraryStructure(id: $id) {
|
|
37
|
+
id
|
|
38
|
+
name
|
|
39
|
+
blockType
|
|
40
|
+
taxonomyId
|
|
41
|
+
roleUri
|
|
42
|
+
isActive
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* List the structures (extended link roles) contributed by a taxonomy —
|
|
5
|
+
* the named presentation/calculation hierarchies (BS-classified,
|
|
6
|
+
* IS-multistep, CashFlow, the calc DAG roots, etc). Pair a structure's
|
|
7
|
+
* ``id`` with ``listLibraryTaxonomyArcs`` + a ``structureId`` filter to
|
|
8
|
+
* load just that hierarchy's arcs — this is how the hierarchy view scopes
|
|
9
|
+
* a tree to one role at a time.
|
|
10
|
+
*
|
|
11
|
+
* Pass ``taxonomyId`` to scope to a single taxonomy; pass ``blockType``
|
|
12
|
+
* to filter to one statement kind (balance_sheet, income_statement,
|
|
13
|
+
* cash_flow_statement, …).
|
|
14
|
+
*/
|
|
15
|
+
export const LIST_LIBRARY_STRUCTURES = gql`
|
|
16
|
+
query ListLibraryStructures($taxonomyId: ID, $blockType: String) {
|
|
17
|
+
libraryStructures(taxonomyId: $taxonomyId, blockType: $blockType) {
|
|
18
|
+
id
|
|
19
|
+
name
|
|
20
|
+
blockType
|
|
21
|
+
taxonomyId
|
|
22
|
+
roleUri
|
|
23
|
+
isActive
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Fetch one structure by id. Returns null when the id doesn't resolve.
|
|
30
|
+
* Metadata only — pair with ``listLibraryTaxonomyArcs`` + a ``structureId``
|
|
31
|
+
* filter to load the structure's arcs.
|
|
32
|
+
*/
|
|
33
|
+
export const GET_LIBRARY_STRUCTURE = gql`
|
|
34
|
+
query GetLibraryStructure($id: ID!) {
|
|
35
|
+
libraryStructure(id: $id) {
|
|
36
|
+
id
|
|
37
|
+
name
|
|
38
|
+
blockType
|
|
39
|
+
taxonomyId
|
|
40
|
+
roleUri
|
|
41
|
+
isActive
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`
|