@robosystems/client 0.3.38 → 0.3.40
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 +19 -41
- package/artifacts/LedgerClient.js +29 -102
- package/artifacts/LedgerClient.ts +40 -119
- 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 +88 -3
- package/artifacts/graphql/generated/graphql.js +195 -2
- package/artifacts/graphql/generated/graphql.ts +290 -3
- package/artifacts/graphql/queries/ledger/reportDownloadUrl.d.ts +11 -0
- package/artifacts/graphql/queries/ledger/reportDownloadUrl.js +29 -0
- package/artifacts/graphql/queries/ledger/reportDownloadUrl.ts +27 -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/bin/create-feature.sh +5 -3
- package/index.ts +2 -2
- package/package.json +1 -2
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +3 -4
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +5 -11
- package/sdk/sdk.gen.js +5 -16
- package/sdk/sdk.gen.ts +5 -16
- package/sdk/types.gen.d.ts +22 -109
- package/sdk/types.gen.ts +22 -114
- package/sdk.gen.d.ts +5 -11
- package/sdk.gen.js +5 -16
- package/sdk.gen.ts +5 -16
- package/types.gen.d.ts +22 -109
- package/types.gen.ts +22 -114
|
@@ -670,8 +670,8 @@ export type InformationBlockValidation = {
|
|
|
670
670
|
* Pass/fail/skip counts for one ``rule_category`` within a block's
|
|
671
671
|
* verification results.
|
|
672
672
|
*
|
|
673
|
-
* Drives the per-category accordions in the Verification Results panel
|
|
674
|
-
*
|
|
673
|
+
* Drives the per-category accordions in the Verification Results panel.
|
|
674
|
+
* ``category`` is the rule's ``rule_category``
|
|
675
675
|
* (one of the cm:VerificationRule subclasses), resolved by joining each
|
|
676
676
|
* result to its Rule.
|
|
677
677
|
*/
|
|
@@ -709,7 +709,7 @@ export type InformationBlockVerificationResult = {
|
|
|
709
709
|
* Server-computed aggregate of a block's ``verification_results``.
|
|
710
710
|
*
|
|
711
711
|
* Overall counts plus a per-``rule_category`` breakdown, so the viewer
|
|
712
|
-
* renders the grouped Verification Results panel
|
|
712
|
+
* renders the grouped Verification Results panel
|
|
713
713
|
* without a client-side results→rules join. Status closure is
|
|
714
714
|
* ``pass | fail | error | skipped`` (the ``public.verification_results``
|
|
715
715
|
* CHECK); ``total`` is their sum.
|
|
@@ -932,15 +932,21 @@ export type LibraryAssociation = {
|
|
|
932
932
|
/** presentation | calculation | mapping | equivalence | general-special | essence-alias */
|
|
933
933
|
associationType: Scalars['String']['output']
|
|
934
934
|
fromElementId: Scalars['String']['output']
|
|
935
|
+
fromElementIsAbstract: Maybe<Scalars['Boolean']['output']>
|
|
935
936
|
fromElementName: Maybe<Scalars['String']['output']>
|
|
936
937
|
fromElementQname: Maybe<Scalars['String']['output']>
|
|
938
|
+
/** Primary elementsOfFinancialStatements trait (for node coloring) */
|
|
939
|
+
fromElementTrait: Maybe<Scalars['String']['output']>
|
|
937
940
|
id: Scalars['String']['output']
|
|
938
941
|
orderValue: Maybe<Scalars['Float']['output']>
|
|
939
942
|
structureId: Scalars['String']['output']
|
|
940
943
|
structureName: Maybe<Scalars['String']['output']>
|
|
941
944
|
toElementId: Scalars['String']['output']
|
|
945
|
+
toElementIsAbstract: Maybe<Scalars['Boolean']['output']>
|
|
942
946
|
toElementName: Maybe<Scalars['String']['output']>
|
|
943
947
|
toElementQname: Maybe<Scalars['String']['output']>
|
|
948
|
+
/** Primary elementsOfFinancialStatements trait (for node coloring) */
|
|
949
|
+
toElementTrait: Maybe<Scalars['String']['output']>
|
|
944
950
|
weight: Maybe<Scalars['Float']['output']>
|
|
945
951
|
}
|
|
946
952
|
|
|
@@ -1530,6 +1536,7 @@ export type Query = {
|
|
|
1530
1536
|
publishList: Maybe<PublishListDetail>
|
|
1531
1537
|
publishLists: Maybe<PublishListList>
|
|
1532
1538
|
report: Maybe<Report>
|
|
1539
|
+
reportDownloadUrl: Maybe<ReportBundleDownload>
|
|
1533
1540
|
reportPackage: Maybe<ReportPackage>
|
|
1534
1541
|
reportingTaxonomy: Maybe<Taxonomy>
|
|
1535
1542
|
reports: Maybe<ReportList>
|
|
@@ -1751,6 +1758,12 @@ export type QueryReportArgs = {
|
|
|
1751
1758
|
reportId: Scalars['String']['input']
|
|
1752
1759
|
}
|
|
1753
1760
|
|
|
1761
|
+
export type QueryReportDownloadUrlArgs = {
|
|
1762
|
+
expiresIn?: Scalars['Int']['input']
|
|
1763
|
+
format?: ReportDownloadFormat
|
|
1764
|
+
reportId: Scalars['String']['input']
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1754
1767
|
export type QueryReportPackageArgs = {
|
|
1755
1768
|
reportId: Scalars['String']['input']
|
|
1756
1769
|
}
|
|
@@ -1879,6 +1892,31 @@ export type Report = {
|
|
|
1879
1892
|
taxonomyId: Scalars['String']['output']
|
|
1880
1893
|
}
|
|
1881
1894
|
|
|
1895
|
+
/**
|
|
1896
|
+
* Presigned-URL response for a published Report's serialization bundle.
|
|
1897
|
+
*
|
|
1898
|
+
* Every flavor resolves to a short-lived presigned URL pointing at the
|
|
1899
|
+
* bundle in S3 — JSON-LD is stamped at publish time, XBRL is
|
|
1900
|
+
* materialized on first download and cached by ``generation_count``.
|
|
1901
|
+
* The client follows ``download_url`` to fetch the artifact directly
|
|
1902
|
+
* from S3 (the API never streams the bytes). Mirrors the
|
|
1903
|
+
* backup-download shape the frontend already consumes.
|
|
1904
|
+
*/
|
|
1905
|
+
export type ReportBundleDownload = {
|
|
1906
|
+
/** MIME type of the artifact behind the URL. */
|
|
1907
|
+
contentType: Scalars['String']['output']
|
|
1908
|
+
/** Presigned URL that streams the bundle directly from S3. */
|
|
1909
|
+
downloadUrl: Scalars['String']['output']
|
|
1910
|
+
/** UTC timestamp at which the presigned URL stops working. */
|
|
1911
|
+
expiresAt: Scalars['DateTime']['output']
|
|
1912
|
+
/** Serialization flavor delivered by this URL — one of the ``RdfFlavor`` / ``XbrlFlavor`` values (e.g. ``jsonld``, ``xbrl-2.1``). */
|
|
1913
|
+
format: Scalars['String']['output']
|
|
1914
|
+
/** Bundle generation number stamped on the Report. */
|
|
1915
|
+
generationCount: Scalars['Int']['output']
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
export type ReportDownloadFormat = 'JSONLD' | 'XBRL_2_1'
|
|
1919
|
+
|
|
1882
1920
|
/** List of report header summaries (used by report list reads). */
|
|
1883
1921
|
export type ReportList = {
|
|
1884
1922
|
/** Report definitions, newest first. */
|
|
@@ -2162,6 +2200,7 @@ export type UnmappedElement = {
|
|
|
2162
2200
|
code: Maybe<Scalars['String']['output']>
|
|
2163
2201
|
externalSource: Maybe<Scalars['String']['output']>
|
|
2164
2202
|
id: Scalars['String']['output']
|
|
2203
|
+
liquidity: Maybe<Scalars['String']['output']>
|
|
2165
2204
|
name: Scalars['String']['output']
|
|
2166
2205
|
suggestedTargets: Array<SuggestedTarget>
|
|
2167
2206
|
trait: Maybe<Scalars['String']['output']>
|
|
@@ -3269,6 +3308,22 @@ export type GetLedgerReportQuery = {
|
|
|
3269
3308
|
} | null
|
|
3270
3309
|
}
|
|
3271
3310
|
|
|
3311
|
+
export type GetLedgerReportDownloadUrlQueryVariables = Exact<{
|
|
3312
|
+
reportId: Scalars['String']['input']
|
|
3313
|
+
format?: InputMaybe<ReportDownloadFormat>
|
|
3314
|
+
expiresIn?: InputMaybe<Scalars['Int']['input']>
|
|
3315
|
+
}>
|
|
3316
|
+
|
|
3317
|
+
export type GetLedgerReportDownloadUrlQuery = {
|
|
3318
|
+
reportDownloadUrl: {
|
|
3319
|
+
downloadUrl: string
|
|
3320
|
+
expiresAt: any
|
|
3321
|
+
contentType: string
|
|
3322
|
+
format: string
|
|
3323
|
+
generationCount: number
|
|
3324
|
+
} | null
|
|
3325
|
+
}
|
|
3326
|
+
|
|
3272
3327
|
export type GetLedgerReportPackageQueryVariables = Exact<{
|
|
3273
3328
|
reportId: Scalars['String']['input']
|
|
3274
3329
|
}>
|
|
@@ -3673,6 +3728,7 @@ export type ListLedgerUnmappedElementsQuery = {
|
|
|
3673
3728
|
export type ListLibraryTaxonomyArcsQueryVariables = Exact<{
|
|
3674
3729
|
taxonomyId: Scalars['ID']['input']
|
|
3675
3730
|
associationType: InputMaybe<Scalars['String']['input']>
|
|
3731
|
+
structureId: InputMaybe<Scalars['ID']['input']>
|
|
3676
3732
|
limit?: Scalars['Int']['input']
|
|
3677
3733
|
offset?: Scalars['Int']['input']
|
|
3678
3734
|
}>
|
|
@@ -3686,9 +3742,13 @@ export type ListLibraryTaxonomyArcsQuery = {
|
|
|
3686
3742
|
fromElementId: string
|
|
3687
3743
|
fromElementQname: string | null
|
|
3688
3744
|
fromElementName: string | null
|
|
3745
|
+
fromElementTrait: string | null
|
|
3746
|
+
fromElementIsAbstract: boolean | null
|
|
3689
3747
|
toElementId: string
|
|
3690
3748
|
toElementQname: string | null
|
|
3691
3749
|
toElementName: string | null
|
|
3750
|
+
toElementTrait: string | null
|
|
3751
|
+
toElementIsAbstract: boolean | null
|
|
3692
3752
|
associationType: string
|
|
3693
3753
|
arcrole: string | null
|
|
3694
3754
|
orderValue: number | null
|
|
@@ -3829,6 +3889,37 @@ export type GetLibraryElementQuery = {
|
|
|
3829
3889
|
} | null
|
|
3830
3890
|
}
|
|
3831
3891
|
|
|
3892
|
+
export type ListLibraryStructuresQueryVariables = Exact<{
|
|
3893
|
+
taxonomyId: InputMaybe<Scalars['ID']['input']>
|
|
3894
|
+
blockType: InputMaybe<Scalars['String']['input']>
|
|
3895
|
+
}>
|
|
3896
|
+
|
|
3897
|
+
export type ListLibraryStructuresQuery = {
|
|
3898
|
+
libraryStructures: Array<{
|
|
3899
|
+
id: string
|
|
3900
|
+
name: string
|
|
3901
|
+
blockType: string
|
|
3902
|
+
taxonomyId: string
|
|
3903
|
+
roleUri: string | null
|
|
3904
|
+
isActive: boolean
|
|
3905
|
+
}>
|
|
3906
|
+
}
|
|
3907
|
+
|
|
3908
|
+
export type GetLibraryStructureQueryVariables = Exact<{
|
|
3909
|
+
id: Scalars['ID']['input']
|
|
3910
|
+
}>
|
|
3911
|
+
|
|
3912
|
+
export type GetLibraryStructureQuery = {
|
|
3913
|
+
libraryStructure: {
|
|
3914
|
+
id: string
|
|
3915
|
+
name: string
|
|
3916
|
+
blockType: string
|
|
3917
|
+
taxonomyId: string
|
|
3918
|
+
roleUri: string | null
|
|
3919
|
+
isActive: boolean
|
|
3920
|
+
} | null
|
|
3921
|
+
}
|
|
3922
|
+
|
|
3832
3923
|
export type ListLibraryTaxonomiesQueryVariables = Exact<{
|
|
3833
3924
|
standard: InputMaybe<Scalars['String']['input']>
|
|
3834
3925
|
includeElementCount?: Scalars['Boolean']['input']
|
|
@@ -6811,6 +6902,77 @@ export const GetLedgerReportDocument = {
|
|
|
6811
6902
|
},
|
|
6812
6903
|
],
|
|
6813
6904
|
} as unknown as DocumentNode<GetLedgerReportQuery, GetLedgerReportQueryVariables>
|
|
6905
|
+
export const GetLedgerReportDownloadUrlDocument = {
|
|
6906
|
+
kind: 'Document',
|
|
6907
|
+
definitions: [
|
|
6908
|
+
{
|
|
6909
|
+
kind: 'OperationDefinition',
|
|
6910
|
+
operation: 'query',
|
|
6911
|
+
name: { kind: 'Name', value: 'GetLedgerReportDownloadUrl' },
|
|
6912
|
+
variableDefinitions: [
|
|
6913
|
+
{
|
|
6914
|
+
kind: 'VariableDefinition',
|
|
6915
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'reportId' } },
|
|
6916
|
+
type: {
|
|
6917
|
+
kind: 'NonNullType',
|
|
6918
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
6919
|
+
},
|
|
6920
|
+
},
|
|
6921
|
+
{
|
|
6922
|
+
kind: 'VariableDefinition',
|
|
6923
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'format' } },
|
|
6924
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'ReportDownloadFormat' } },
|
|
6925
|
+
defaultValue: { kind: 'EnumValue', value: 'JSONLD' },
|
|
6926
|
+
},
|
|
6927
|
+
{
|
|
6928
|
+
kind: 'VariableDefinition',
|
|
6929
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'expiresIn' } },
|
|
6930
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
|
|
6931
|
+
defaultValue: { kind: 'IntValue', value: '300' },
|
|
6932
|
+
},
|
|
6933
|
+
],
|
|
6934
|
+
selectionSet: {
|
|
6935
|
+
kind: 'SelectionSet',
|
|
6936
|
+
selections: [
|
|
6937
|
+
{
|
|
6938
|
+
kind: 'Field',
|
|
6939
|
+
name: { kind: 'Name', value: 'reportDownloadUrl' },
|
|
6940
|
+
arguments: [
|
|
6941
|
+
{
|
|
6942
|
+
kind: 'Argument',
|
|
6943
|
+
name: { kind: 'Name', value: 'reportId' },
|
|
6944
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'reportId' } },
|
|
6945
|
+
},
|
|
6946
|
+
{
|
|
6947
|
+
kind: 'Argument',
|
|
6948
|
+
name: { kind: 'Name', value: 'format' },
|
|
6949
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'format' } },
|
|
6950
|
+
},
|
|
6951
|
+
{
|
|
6952
|
+
kind: 'Argument',
|
|
6953
|
+
name: { kind: 'Name', value: 'expiresIn' },
|
|
6954
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'expiresIn' } },
|
|
6955
|
+
},
|
|
6956
|
+
],
|
|
6957
|
+
selectionSet: {
|
|
6958
|
+
kind: 'SelectionSet',
|
|
6959
|
+
selections: [
|
|
6960
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'downloadUrl' } },
|
|
6961
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'expiresAt' } },
|
|
6962
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'contentType' } },
|
|
6963
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'format' } },
|
|
6964
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'generationCount' } },
|
|
6965
|
+
],
|
|
6966
|
+
},
|
|
6967
|
+
},
|
|
6968
|
+
],
|
|
6969
|
+
},
|
|
6970
|
+
},
|
|
6971
|
+
],
|
|
6972
|
+
} as unknown as DocumentNode<
|
|
6973
|
+
GetLedgerReportDownloadUrlQuery,
|
|
6974
|
+
GetLedgerReportDownloadUrlQueryVariables
|
|
6975
|
+
>
|
|
6814
6976
|
export const GetLedgerReportPackageDocument = {
|
|
6815
6977
|
kind: 'Document',
|
|
6816
6978
|
definitions: [
|
|
@@ -7941,6 +8103,11 @@ export const ListLibraryTaxonomyArcsDocument = {
|
|
|
7941
8103
|
variable: { kind: 'Variable', name: { kind: 'Name', value: 'associationType' } },
|
|
7942
8104
|
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
7943
8105
|
},
|
|
8106
|
+
{
|
|
8107
|
+
kind: 'VariableDefinition',
|
|
8108
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'structureId' } },
|
|
8109
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
|
|
8110
|
+
},
|
|
7944
8111
|
{
|
|
7945
8112
|
kind: 'VariableDefinition',
|
|
7946
8113
|
variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
|
|
@@ -7972,6 +8139,16 @@ export const ListLibraryTaxonomyArcsDocument = {
|
|
|
7972
8139
|
name: { kind: 'Name', value: 'taxonomyId' },
|
|
7973
8140
|
value: { kind: 'Variable', name: { kind: 'Name', value: 'taxonomyId' } },
|
|
7974
8141
|
},
|
|
8142
|
+
{
|
|
8143
|
+
kind: 'Argument',
|
|
8144
|
+
name: { kind: 'Name', value: 'associationType' },
|
|
8145
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'associationType' } },
|
|
8146
|
+
},
|
|
8147
|
+
{
|
|
8148
|
+
kind: 'Argument',
|
|
8149
|
+
name: { kind: 'Name', value: 'structureId' },
|
|
8150
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'structureId' } },
|
|
8151
|
+
},
|
|
7975
8152
|
],
|
|
7976
8153
|
},
|
|
7977
8154
|
{
|
|
@@ -7988,6 +8165,11 @@ export const ListLibraryTaxonomyArcsDocument = {
|
|
|
7988
8165
|
name: { kind: 'Name', value: 'associationType' },
|
|
7989
8166
|
value: { kind: 'Variable', name: { kind: 'Name', value: 'associationType' } },
|
|
7990
8167
|
},
|
|
8168
|
+
{
|
|
8169
|
+
kind: 'Argument',
|
|
8170
|
+
name: { kind: 'Name', value: 'structureId' },
|
|
8171
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'structureId' } },
|
|
8172
|
+
},
|
|
7991
8173
|
{
|
|
7992
8174
|
kind: 'Argument',
|
|
7993
8175
|
name: { kind: 'Name', value: 'limit' },
|
|
@@ -8008,9 +8190,13 @@ export const ListLibraryTaxonomyArcsDocument = {
|
|
|
8008
8190
|
{ kind: 'Field', name: { kind: 'Name', value: 'fromElementId' } },
|
|
8009
8191
|
{ kind: 'Field', name: { kind: 'Name', value: 'fromElementQname' } },
|
|
8010
8192
|
{ kind: 'Field', name: { kind: 'Name', value: 'fromElementName' } },
|
|
8193
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'fromElementTrait' } },
|
|
8194
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'fromElementIsAbstract' } },
|
|
8011
8195
|
{ kind: 'Field', name: { kind: 'Name', value: 'toElementId' } },
|
|
8012
8196
|
{ kind: 'Field', name: { kind: 'Name', value: 'toElementQname' } },
|
|
8013
8197
|
{ kind: 'Field', name: { kind: 'Name', value: 'toElementName' } },
|
|
8198
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'toElementTrait' } },
|
|
8199
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'toElementIsAbstract' } },
|
|
8014
8200
|
{ kind: 'Field', name: { kind: 'Name', value: 'associationType' } },
|
|
8015
8201
|
{ kind: 'Field', name: { kind: 'Name', value: 'arcrole' } },
|
|
8016
8202
|
{ kind: 'Field', name: { kind: 'Name', value: 'orderValue' } },
|
|
@@ -8607,6 +8793,107 @@ export const GetLibraryElementDocument = {
|
|
|
8607
8793
|
},
|
|
8608
8794
|
],
|
|
8609
8795
|
} as unknown as DocumentNode<GetLibraryElementQuery, GetLibraryElementQueryVariables>
|
|
8796
|
+
export const ListLibraryStructuresDocument = {
|
|
8797
|
+
kind: 'Document',
|
|
8798
|
+
definitions: [
|
|
8799
|
+
{
|
|
8800
|
+
kind: 'OperationDefinition',
|
|
8801
|
+
operation: 'query',
|
|
8802
|
+
name: { kind: 'Name', value: 'ListLibraryStructures' },
|
|
8803
|
+
variableDefinitions: [
|
|
8804
|
+
{
|
|
8805
|
+
kind: 'VariableDefinition',
|
|
8806
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'taxonomyId' } },
|
|
8807
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
|
|
8808
|
+
},
|
|
8809
|
+
{
|
|
8810
|
+
kind: 'VariableDefinition',
|
|
8811
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'blockType' } },
|
|
8812
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
8813
|
+
},
|
|
8814
|
+
],
|
|
8815
|
+
selectionSet: {
|
|
8816
|
+
kind: 'SelectionSet',
|
|
8817
|
+
selections: [
|
|
8818
|
+
{
|
|
8819
|
+
kind: 'Field',
|
|
8820
|
+
name: { kind: 'Name', value: 'libraryStructures' },
|
|
8821
|
+
arguments: [
|
|
8822
|
+
{
|
|
8823
|
+
kind: 'Argument',
|
|
8824
|
+
name: { kind: 'Name', value: 'taxonomyId' },
|
|
8825
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'taxonomyId' } },
|
|
8826
|
+
},
|
|
8827
|
+
{
|
|
8828
|
+
kind: 'Argument',
|
|
8829
|
+
name: { kind: 'Name', value: 'blockType' },
|
|
8830
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'blockType' } },
|
|
8831
|
+
},
|
|
8832
|
+
],
|
|
8833
|
+
selectionSet: {
|
|
8834
|
+
kind: 'SelectionSet',
|
|
8835
|
+
selections: [
|
|
8836
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
8837
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
8838
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'blockType' } },
|
|
8839
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'taxonomyId' } },
|
|
8840
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'roleUri' } },
|
|
8841
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'isActive' } },
|
|
8842
|
+
],
|
|
8843
|
+
},
|
|
8844
|
+
},
|
|
8845
|
+
],
|
|
8846
|
+
},
|
|
8847
|
+
},
|
|
8848
|
+
],
|
|
8849
|
+
} as unknown as DocumentNode<ListLibraryStructuresQuery, ListLibraryStructuresQueryVariables>
|
|
8850
|
+
export const GetLibraryStructureDocument = {
|
|
8851
|
+
kind: 'Document',
|
|
8852
|
+
definitions: [
|
|
8853
|
+
{
|
|
8854
|
+
kind: 'OperationDefinition',
|
|
8855
|
+
operation: 'query',
|
|
8856
|
+
name: { kind: 'Name', value: 'GetLibraryStructure' },
|
|
8857
|
+
variableDefinitions: [
|
|
8858
|
+
{
|
|
8859
|
+
kind: 'VariableDefinition',
|
|
8860
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
|
|
8861
|
+
type: {
|
|
8862
|
+
kind: 'NonNullType',
|
|
8863
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
|
|
8864
|
+
},
|
|
8865
|
+
},
|
|
8866
|
+
],
|
|
8867
|
+
selectionSet: {
|
|
8868
|
+
kind: 'SelectionSet',
|
|
8869
|
+
selections: [
|
|
8870
|
+
{
|
|
8871
|
+
kind: 'Field',
|
|
8872
|
+
name: { kind: 'Name', value: 'libraryStructure' },
|
|
8873
|
+
arguments: [
|
|
8874
|
+
{
|
|
8875
|
+
kind: 'Argument',
|
|
8876
|
+
name: { kind: 'Name', value: 'id' },
|
|
8877
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
|
|
8878
|
+
},
|
|
8879
|
+
],
|
|
8880
|
+
selectionSet: {
|
|
8881
|
+
kind: 'SelectionSet',
|
|
8882
|
+
selections: [
|
|
8883
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
8884
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
8885
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'blockType' } },
|
|
8886
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'taxonomyId' } },
|
|
8887
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'roleUri' } },
|
|
8888
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'isActive' } },
|
|
8889
|
+
],
|
|
8890
|
+
},
|
|
8891
|
+
},
|
|
8892
|
+
],
|
|
8893
|
+
},
|
|
8894
|
+
},
|
|
8895
|
+
],
|
|
8896
|
+
} as unknown as DocumentNode<GetLibraryStructureQuery, GetLibraryStructureQueryVariables>
|
|
8610
8897
|
export const ListLibraryTaxonomiesDocument = {
|
|
8611
8898
|
kind: 'Document',
|
|
8612
8899
|
definitions: [
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Presigned-URL download for a published Report's serialization bundle.
|
|
3
|
+
*
|
|
4
|
+
* Replaces the retired `GET .../reports/{id}/download` REST resource — a
|
|
5
|
+
* download is a read of stored state, so it lives on the read surface.
|
|
6
|
+
* Every flavor resolves to a short-lived presigned S3 URL the client
|
|
7
|
+
* follows directly (JSON-LD is stamped at publish time; XBRL is
|
|
8
|
+
* materialized + cached on first request). `format` accepts the
|
|
9
|
+
* `ReportDownloadFormat` enum (`JSONLD`, `XBRL_2_1`).
|
|
10
|
+
*/
|
|
11
|
+
export declare const GET_REPORT_DOWNLOAD_URL: string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_REPORT_DOWNLOAD_URL = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* Presigned-URL download for a published Report's serialization bundle.
|
|
7
|
+
*
|
|
8
|
+
* Replaces the retired `GET .../reports/{id}/download` REST resource — a
|
|
9
|
+
* download is a read of stored state, so it lives on the read surface.
|
|
10
|
+
* Every flavor resolves to a short-lived presigned S3 URL the client
|
|
11
|
+
* follows directly (JSON-LD is stamped at publish time; XBRL is
|
|
12
|
+
* materialized + cached on first request). `format` accepts the
|
|
13
|
+
* `ReportDownloadFormat` enum (`JSONLD`, `XBRL_2_1`).
|
|
14
|
+
*/
|
|
15
|
+
exports.GET_REPORT_DOWNLOAD_URL = (0, graphql_request_1.gql) `
|
|
16
|
+
query GetLedgerReportDownloadUrl(
|
|
17
|
+
$reportId: String!
|
|
18
|
+
$format: ReportDownloadFormat = JSONLD
|
|
19
|
+
$expiresIn: Int = 300
|
|
20
|
+
) {
|
|
21
|
+
reportDownloadUrl(reportId: $reportId, format: $format, expiresIn: $expiresIn) {
|
|
22
|
+
downloadUrl
|
|
23
|
+
expiresAt
|
|
24
|
+
contentType
|
|
25
|
+
format
|
|
26
|
+
generationCount
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Presigned-URL download for a published Report's serialization bundle.
|
|
5
|
+
*
|
|
6
|
+
* Replaces the retired `GET .../reports/{id}/download` REST resource — a
|
|
7
|
+
* download is a read of stored state, so it lives on the read surface.
|
|
8
|
+
* Every flavor resolves to a short-lived presigned S3 URL the client
|
|
9
|
+
* follows directly (JSON-LD is stamped at publish time; XBRL is
|
|
10
|
+
* materialized + cached on first request). `format` accepts the
|
|
11
|
+
* `ReportDownloadFormat` enum (`JSONLD`, `XBRL_2_1`).
|
|
12
|
+
*/
|
|
13
|
+
export const GET_REPORT_DOWNLOAD_URL = gql`
|
|
14
|
+
query GetLedgerReportDownloadUrl(
|
|
15
|
+
$reportId: String!
|
|
16
|
+
$format: ReportDownloadFormat = JSONLD
|
|
17
|
+
$expiresIn: Int = 300
|
|
18
|
+
) {
|
|
19
|
+
reportDownloadUrl(reportId: $reportId, format: $format, expiresIn: $expiresIn) {
|
|
20
|
+
downloadUrl
|
|
21
|
+
expiresAt
|
|
22
|
+
contentType
|
|
23
|
+
format
|
|
24
|
+
generationCount
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
`
|
|
@@ -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
|
+
`
|