@robosystems/client 0.3.7 → 0.3.9
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 +27 -14
- package/artifacts/LedgerClient.js +59 -39
- package/artifacts/LedgerClient.ts +89 -62
- package/artifacts/LibraryClient.d.ts +117 -0
- package/artifacts/LibraryClient.js +132 -0
- package/artifacts/LibraryClient.ts +358 -0
- package/artifacts/graphql/generated/graphql.d.ts +686 -79
- package/artifacts/graphql/generated/graphql.js +1121 -135
- package/artifacts/graphql/generated/graphql.ts +1887 -281
- package/artifacts/graphql/queries/ledger/informationBlock.d.ts +15 -0
- package/artifacts/graphql/queries/ledger/informationBlock.js +125 -0
- package/artifacts/graphql/queries/ledger/informationBlock.ts +124 -0
- package/artifacts/graphql/queries/library/arcs.d.ts +24 -0
- package/artifacts/graphql/queries/library/arcs.js +106 -0
- package/artifacts/graphql/queries/library/arcs.ts +107 -0
- package/artifacts/graphql/queries/library/elements.d.ts +24 -0
- package/artifacts/graphql/queries/library/elements.js +134 -0
- package/artifacts/graphql/queries/library/elements.ts +134 -0
- package/artifacts/graphql/queries/library/taxonomies.d.ts +15 -0
- package/artifacts/graphql/queries/library/taxonomies.js +61 -0
- package/artifacts/graphql/queries/library/taxonomies.ts +60 -0
- package/artifacts/index.d.ts +5 -1
- package/artifacts/index.js +17 -1
- package/artifacts/index.ts +26 -1
- package/index.ts +2 -2
- package/package.json +7 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +9 -7
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +80 -62
- package/sdk/sdk.gen.js +158 -122
- package/sdk/sdk.gen.ts +154 -118
- package/sdk/types.gen.d.ts +801 -623
- package/sdk/types.gen.ts +825 -638
- package/sdk.gen.d.ts +80 -62
- package/sdk.gen.js +158 -122
- package/sdk.gen.ts +154 -118
- package/types.gen.d.ts +801 -623
- package/types.gen.ts +825 -638
- package/artifacts/graphql/queries/ledger/scheduleFacts.d.ts +0 -7
- package/artifacts/graphql/queries/ledger/scheduleFacts.js +0 -24
- package/artifacts/graphql/queries/ledger/scheduleFacts.ts +0 -22
- package/artifacts/graphql/queries/ledger/schedules.d.ts +0 -6
- package/artifacts/graphql/queries/ledger/schedules.js +0 -24
- package/artifacts/graphql/queries/ledger/schedules.ts +0 -22
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Information Block envelope — the cross-block-type read that replaces
|
|
3
|
+
* block-specific reads like `scheduleFacts` and (eventually)
|
|
4
|
+
* `statement`. Returns the assembled envelope with bundled atoms
|
|
5
|
+
* (elements, connections, facts) plus the typed artifact mechanics
|
|
6
|
+
* branch. See `local/docs/specs/information-block.md` §2.
|
|
7
|
+
*/
|
|
8
|
+
export declare const GET_INFORMATION_BLOCK: string;
|
|
9
|
+
/**
|
|
10
|
+
* List Information Block envelopes with optional block_type + category
|
|
11
|
+
* filters. Each returned envelope has the same shape as the
|
|
12
|
+
* single-block read, so callers can page through ready-to-render
|
|
13
|
+
* blocks.
|
|
14
|
+
*/
|
|
15
|
+
export declare const LIST_INFORMATION_BLOCKS: string;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LIST_INFORMATION_BLOCKS = exports.GET_INFORMATION_BLOCK = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* Information Block envelope — the cross-block-type read that replaces
|
|
7
|
+
* block-specific reads like `scheduleFacts` and (eventually)
|
|
8
|
+
* `statement`. Returns the assembled envelope with bundled atoms
|
|
9
|
+
* (elements, connections, facts) plus the typed artifact mechanics
|
|
10
|
+
* branch. See `local/docs/specs/information-block.md` §2.
|
|
11
|
+
*/
|
|
12
|
+
exports.GET_INFORMATION_BLOCK = (0, graphql_request_1.gql) `
|
|
13
|
+
query GetInformationBlock($id: ID!) {
|
|
14
|
+
informationBlock(id: $id) {
|
|
15
|
+
id
|
|
16
|
+
blockType
|
|
17
|
+
name
|
|
18
|
+
displayName
|
|
19
|
+
category
|
|
20
|
+
taxonomyId
|
|
21
|
+
taxonomyName
|
|
22
|
+
informationModel {
|
|
23
|
+
conceptArrangement
|
|
24
|
+
memberArrangement
|
|
25
|
+
}
|
|
26
|
+
artifact {
|
|
27
|
+
topic
|
|
28
|
+
parentheticalNote
|
|
29
|
+
template
|
|
30
|
+
mechanics
|
|
31
|
+
}
|
|
32
|
+
elements {
|
|
33
|
+
id
|
|
34
|
+
qname
|
|
35
|
+
name
|
|
36
|
+
code
|
|
37
|
+
elementType
|
|
38
|
+
isAbstract
|
|
39
|
+
isMonetary
|
|
40
|
+
balanceType
|
|
41
|
+
periodType
|
|
42
|
+
}
|
|
43
|
+
connections {
|
|
44
|
+
id
|
|
45
|
+
fromElementId
|
|
46
|
+
toElementId
|
|
47
|
+
associationType
|
|
48
|
+
arcrole
|
|
49
|
+
orderValue
|
|
50
|
+
weight
|
|
51
|
+
}
|
|
52
|
+
facts {
|
|
53
|
+
id
|
|
54
|
+
elementId
|
|
55
|
+
value
|
|
56
|
+
periodStart
|
|
57
|
+
periodEnd
|
|
58
|
+
periodType
|
|
59
|
+
unit
|
|
60
|
+
factScope
|
|
61
|
+
factSetId
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
66
|
+
/**
|
|
67
|
+
* List Information Block envelopes with optional block_type + category
|
|
68
|
+
* filters. Each returned envelope has the same shape as the
|
|
69
|
+
* single-block read, so callers can page through ready-to-render
|
|
70
|
+
* blocks.
|
|
71
|
+
*/
|
|
72
|
+
exports.LIST_INFORMATION_BLOCKS = (0, graphql_request_1.gql) `
|
|
73
|
+
query ListInformationBlocks($blockType: String, $category: String, $limit: Int, $offset: Int) {
|
|
74
|
+
informationBlocks(blockType: $blockType, category: $category, limit: $limit, offset: $offset) {
|
|
75
|
+
id
|
|
76
|
+
blockType
|
|
77
|
+
name
|
|
78
|
+
displayName
|
|
79
|
+
category
|
|
80
|
+
taxonomyId
|
|
81
|
+
taxonomyName
|
|
82
|
+
informationModel {
|
|
83
|
+
conceptArrangement
|
|
84
|
+
memberArrangement
|
|
85
|
+
}
|
|
86
|
+
artifact {
|
|
87
|
+
topic
|
|
88
|
+
parentheticalNote
|
|
89
|
+
template
|
|
90
|
+
mechanics
|
|
91
|
+
}
|
|
92
|
+
elements {
|
|
93
|
+
id
|
|
94
|
+
qname
|
|
95
|
+
name
|
|
96
|
+
code
|
|
97
|
+
elementType
|
|
98
|
+
isAbstract
|
|
99
|
+
isMonetary
|
|
100
|
+
balanceType
|
|
101
|
+
periodType
|
|
102
|
+
}
|
|
103
|
+
connections {
|
|
104
|
+
id
|
|
105
|
+
fromElementId
|
|
106
|
+
toElementId
|
|
107
|
+
associationType
|
|
108
|
+
arcrole
|
|
109
|
+
orderValue
|
|
110
|
+
weight
|
|
111
|
+
}
|
|
112
|
+
facts {
|
|
113
|
+
id
|
|
114
|
+
elementId
|
|
115
|
+
value
|
|
116
|
+
periodStart
|
|
117
|
+
periodEnd
|
|
118
|
+
periodType
|
|
119
|
+
unit
|
|
120
|
+
factScope
|
|
121
|
+
factSetId
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
`;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Information Block envelope — the cross-block-type read that replaces
|
|
5
|
+
* block-specific reads like `scheduleFacts` and (eventually)
|
|
6
|
+
* `statement`. Returns the assembled envelope with bundled atoms
|
|
7
|
+
* (elements, connections, facts) plus the typed artifact mechanics
|
|
8
|
+
* branch. See `local/docs/specs/information-block.md` §2.
|
|
9
|
+
*/
|
|
10
|
+
export const GET_INFORMATION_BLOCK = gql`
|
|
11
|
+
query GetInformationBlock($id: ID!) {
|
|
12
|
+
informationBlock(id: $id) {
|
|
13
|
+
id
|
|
14
|
+
blockType
|
|
15
|
+
name
|
|
16
|
+
displayName
|
|
17
|
+
category
|
|
18
|
+
taxonomyId
|
|
19
|
+
taxonomyName
|
|
20
|
+
informationModel {
|
|
21
|
+
conceptArrangement
|
|
22
|
+
memberArrangement
|
|
23
|
+
}
|
|
24
|
+
artifact {
|
|
25
|
+
topic
|
|
26
|
+
parentheticalNote
|
|
27
|
+
template
|
|
28
|
+
mechanics
|
|
29
|
+
}
|
|
30
|
+
elements {
|
|
31
|
+
id
|
|
32
|
+
qname
|
|
33
|
+
name
|
|
34
|
+
code
|
|
35
|
+
elementType
|
|
36
|
+
isAbstract
|
|
37
|
+
isMonetary
|
|
38
|
+
balanceType
|
|
39
|
+
periodType
|
|
40
|
+
}
|
|
41
|
+
connections {
|
|
42
|
+
id
|
|
43
|
+
fromElementId
|
|
44
|
+
toElementId
|
|
45
|
+
associationType
|
|
46
|
+
arcrole
|
|
47
|
+
orderValue
|
|
48
|
+
weight
|
|
49
|
+
}
|
|
50
|
+
facts {
|
|
51
|
+
id
|
|
52
|
+
elementId
|
|
53
|
+
value
|
|
54
|
+
periodStart
|
|
55
|
+
periodEnd
|
|
56
|
+
periodType
|
|
57
|
+
unit
|
|
58
|
+
factScope
|
|
59
|
+
factSetId
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
`
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* List Information Block envelopes with optional block_type + category
|
|
67
|
+
* filters. Each returned envelope has the same shape as the
|
|
68
|
+
* single-block read, so callers can page through ready-to-render
|
|
69
|
+
* blocks.
|
|
70
|
+
*/
|
|
71
|
+
export const LIST_INFORMATION_BLOCKS = gql`
|
|
72
|
+
query ListInformationBlocks($blockType: String, $category: String, $limit: Int, $offset: Int) {
|
|
73
|
+
informationBlocks(blockType: $blockType, category: $category, limit: $limit, offset: $offset) {
|
|
74
|
+
id
|
|
75
|
+
blockType
|
|
76
|
+
name
|
|
77
|
+
displayName
|
|
78
|
+
category
|
|
79
|
+
taxonomyId
|
|
80
|
+
taxonomyName
|
|
81
|
+
informationModel {
|
|
82
|
+
conceptArrangement
|
|
83
|
+
memberArrangement
|
|
84
|
+
}
|
|
85
|
+
artifact {
|
|
86
|
+
topic
|
|
87
|
+
parentheticalNote
|
|
88
|
+
template
|
|
89
|
+
mechanics
|
|
90
|
+
}
|
|
91
|
+
elements {
|
|
92
|
+
id
|
|
93
|
+
qname
|
|
94
|
+
name
|
|
95
|
+
code
|
|
96
|
+
elementType
|
|
97
|
+
isAbstract
|
|
98
|
+
isMonetary
|
|
99
|
+
balanceType
|
|
100
|
+
periodType
|
|
101
|
+
}
|
|
102
|
+
connections {
|
|
103
|
+
id
|
|
104
|
+
fromElementId
|
|
105
|
+
toElementId
|
|
106
|
+
associationType
|
|
107
|
+
arcrole
|
|
108
|
+
orderValue
|
|
109
|
+
weight
|
|
110
|
+
}
|
|
111
|
+
facts {
|
|
112
|
+
id
|
|
113
|
+
elementId
|
|
114
|
+
value
|
|
115
|
+
periodStart
|
|
116
|
+
periodEnd
|
|
117
|
+
periodType
|
|
118
|
+
unit
|
|
119
|
+
factScope
|
|
120
|
+
factSetId
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
`
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List every arc contributed by a taxonomy (via its structures) + the
|
|
3
|
+
* total count in one round-trip. For mapping taxonomies
|
|
4
|
+
* (fac-to-rs-gaap, sfac6-to-fac, type-subtype) this is the primary
|
|
5
|
+
* browse view — the arcs ARE what the taxonomy contributes.
|
|
6
|
+
*/
|
|
7
|
+
export declare const LIST_LIBRARY_TAXONOMY_ARCS: string;
|
|
8
|
+
/**
|
|
9
|
+
* All mapping arcs where this element is source or target. Covers
|
|
10
|
+
* every `taxonomy_type='mapping'` bridge — equivalence,
|
|
11
|
+
* general-special, type-subtype. Each row is oriented from the
|
|
12
|
+
* element's perspective (`direction` = 'outgoing' | 'incoming').
|
|
13
|
+
*/
|
|
14
|
+
export declare const GET_LIBRARY_ELEMENT_ARCS: string;
|
|
15
|
+
/**
|
|
16
|
+
* All classification traits assigned to an element — every category/identifier
|
|
17
|
+
* pair from element_classifications, sorted by category then identifier.
|
|
18
|
+
*/
|
|
19
|
+
export declare const GET_LIBRARY_ELEMENT_CLASSIFICATIONS: string;
|
|
20
|
+
/**
|
|
21
|
+
* Equivalence fan-out (FAC ↔ us-gaap collapse). Returns the element
|
|
22
|
+
* and the peers that share an equivalence arc with it.
|
|
23
|
+
*/
|
|
24
|
+
export declare const GET_LIBRARY_ELEMENT_EQUIVALENTS: string;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_LIBRARY_ELEMENT_EQUIVALENTS = exports.GET_LIBRARY_ELEMENT_CLASSIFICATIONS = exports.GET_LIBRARY_ELEMENT_ARCS = exports.LIST_LIBRARY_TAXONOMY_ARCS = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* List every arc contributed by a taxonomy (via its structures) + the
|
|
7
|
+
* total count in one round-trip. For mapping taxonomies
|
|
8
|
+
* (fac-to-rs-gaap, sfac6-to-fac, type-subtype) this is the primary
|
|
9
|
+
* browse view — the arcs ARE what the taxonomy contributes.
|
|
10
|
+
*/
|
|
11
|
+
exports.LIST_LIBRARY_TAXONOMY_ARCS = (0, graphql_request_1.gql) `
|
|
12
|
+
query ListLibraryTaxonomyArcs(
|
|
13
|
+
$taxonomyId: ID!
|
|
14
|
+
$associationType: String
|
|
15
|
+
$limit: Int! = 200
|
|
16
|
+
$offset: Int! = 0
|
|
17
|
+
) {
|
|
18
|
+
libraryTaxonomyArcCount(taxonomyId: $taxonomyId)
|
|
19
|
+
libraryTaxonomyArcs(
|
|
20
|
+
taxonomyId: $taxonomyId
|
|
21
|
+
associationType: $associationType
|
|
22
|
+
limit: $limit
|
|
23
|
+
offset: $offset
|
|
24
|
+
) {
|
|
25
|
+
id
|
|
26
|
+
structureId
|
|
27
|
+
structureName
|
|
28
|
+
fromElementId
|
|
29
|
+
fromElementQname
|
|
30
|
+
fromElementName
|
|
31
|
+
toElementId
|
|
32
|
+
toElementQname
|
|
33
|
+
toElementName
|
|
34
|
+
associationType
|
|
35
|
+
arcrole
|
|
36
|
+
orderValue
|
|
37
|
+
weight
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
/**
|
|
42
|
+
* All mapping arcs where this element is source or target. Covers
|
|
43
|
+
* every `taxonomy_type='mapping'` bridge — equivalence,
|
|
44
|
+
* general-special, type-subtype. Each row is oriented from the
|
|
45
|
+
* element's perspective (`direction` = 'outgoing' | 'incoming').
|
|
46
|
+
*/
|
|
47
|
+
exports.GET_LIBRARY_ELEMENT_ARCS = (0, graphql_request_1.gql) `
|
|
48
|
+
query GetLibraryElementArcs($id: ID!) {
|
|
49
|
+
libraryElementArcs(id: $id) {
|
|
50
|
+
id
|
|
51
|
+
direction
|
|
52
|
+
associationType
|
|
53
|
+
arcrole
|
|
54
|
+
taxonomyId
|
|
55
|
+
taxonomyStandard
|
|
56
|
+
taxonomyName
|
|
57
|
+
structureId
|
|
58
|
+
structureName
|
|
59
|
+
peer {
|
|
60
|
+
id
|
|
61
|
+
qname
|
|
62
|
+
name
|
|
63
|
+
classification
|
|
64
|
+
source
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
`;
|
|
69
|
+
/**
|
|
70
|
+
* All classification traits assigned to an element — every category/identifier
|
|
71
|
+
* pair from element_classifications, sorted by category then identifier.
|
|
72
|
+
*/
|
|
73
|
+
exports.GET_LIBRARY_ELEMENT_CLASSIFICATIONS = (0, graphql_request_1.gql) `
|
|
74
|
+
query GetLibraryElementClassifications($id: ID!) {
|
|
75
|
+
libraryElementClassifications(id: $id) {
|
|
76
|
+
category
|
|
77
|
+
identifier
|
|
78
|
+
name
|
|
79
|
+
isPrimary
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
`;
|
|
83
|
+
/**
|
|
84
|
+
* Equivalence fan-out (FAC ↔ us-gaap collapse). Returns the element
|
|
85
|
+
* and the peers that share an equivalence arc with it.
|
|
86
|
+
*/
|
|
87
|
+
exports.GET_LIBRARY_ELEMENT_EQUIVALENTS = (0, graphql_request_1.gql) `
|
|
88
|
+
query GetLibraryElementEquivalents($id: ID!) {
|
|
89
|
+
libraryElementEquivalents(id: $id) {
|
|
90
|
+
element {
|
|
91
|
+
id
|
|
92
|
+
qname
|
|
93
|
+
name
|
|
94
|
+
classification
|
|
95
|
+
source
|
|
96
|
+
}
|
|
97
|
+
equivalents {
|
|
98
|
+
id
|
|
99
|
+
qname
|
|
100
|
+
name
|
|
101
|
+
classification
|
|
102
|
+
source
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
`;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* List every arc contributed by a taxonomy (via its structures) + the
|
|
5
|
+
* total count in one round-trip. For mapping taxonomies
|
|
6
|
+
* (fac-to-rs-gaap, sfac6-to-fac, type-subtype) this is the primary
|
|
7
|
+
* browse view — the arcs ARE what the taxonomy contributes.
|
|
8
|
+
*/
|
|
9
|
+
export const LIST_LIBRARY_TAXONOMY_ARCS = gql`
|
|
10
|
+
query ListLibraryTaxonomyArcs(
|
|
11
|
+
$taxonomyId: ID!
|
|
12
|
+
$associationType: String
|
|
13
|
+
$limit: Int! = 200
|
|
14
|
+
$offset: Int! = 0
|
|
15
|
+
) {
|
|
16
|
+
libraryTaxonomyArcCount(taxonomyId: $taxonomyId)
|
|
17
|
+
libraryTaxonomyArcs(
|
|
18
|
+
taxonomyId: $taxonomyId
|
|
19
|
+
associationType: $associationType
|
|
20
|
+
limit: $limit
|
|
21
|
+
offset: $offset
|
|
22
|
+
) {
|
|
23
|
+
id
|
|
24
|
+
structureId
|
|
25
|
+
structureName
|
|
26
|
+
fromElementId
|
|
27
|
+
fromElementQname
|
|
28
|
+
fromElementName
|
|
29
|
+
toElementId
|
|
30
|
+
toElementQname
|
|
31
|
+
toElementName
|
|
32
|
+
associationType
|
|
33
|
+
arcrole
|
|
34
|
+
orderValue
|
|
35
|
+
weight
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
`
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* All mapping arcs where this element is source or target. Covers
|
|
42
|
+
* every `taxonomy_type='mapping'` bridge — equivalence,
|
|
43
|
+
* general-special, type-subtype. Each row is oriented from the
|
|
44
|
+
* element's perspective (`direction` = 'outgoing' | 'incoming').
|
|
45
|
+
*/
|
|
46
|
+
export const GET_LIBRARY_ELEMENT_ARCS = gql`
|
|
47
|
+
query GetLibraryElementArcs($id: ID!) {
|
|
48
|
+
libraryElementArcs(id: $id) {
|
|
49
|
+
id
|
|
50
|
+
direction
|
|
51
|
+
associationType
|
|
52
|
+
arcrole
|
|
53
|
+
taxonomyId
|
|
54
|
+
taxonomyStandard
|
|
55
|
+
taxonomyName
|
|
56
|
+
structureId
|
|
57
|
+
structureName
|
|
58
|
+
peer {
|
|
59
|
+
id
|
|
60
|
+
qname
|
|
61
|
+
name
|
|
62
|
+
classification
|
|
63
|
+
source
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
`
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* All classification traits assigned to an element — every category/identifier
|
|
71
|
+
* pair from element_classifications, sorted by category then identifier.
|
|
72
|
+
*/
|
|
73
|
+
export const GET_LIBRARY_ELEMENT_CLASSIFICATIONS = gql`
|
|
74
|
+
query GetLibraryElementClassifications($id: ID!) {
|
|
75
|
+
libraryElementClassifications(id: $id) {
|
|
76
|
+
category
|
|
77
|
+
identifier
|
|
78
|
+
name
|
|
79
|
+
isPrimary
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
`
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Equivalence fan-out (FAC ↔ us-gaap collapse). Returns the element
|
|
86
|
+
* and the peers that share an equivalence arc with it.
|
|
87
|
+
*/
|
|
88
|
+
export const GET_LIBRARY_ELEMENT_EQUIVALENTS = gql`
|
|
89
|
+
query GetLibraryElementEquivalents($id: ID!) {
|
|
90
|
+
libraryElementEquivalents(id: $id) {
|
|
91
|
+
element {
|
|
92
|
+
id
|
|
93
|
+
qname
|
|
94
|
+
name
|
|
95
|
+
classification
|
|
96
|
+
source
|
|
97
|
+
}
|
|
98
|
+
equivalents {
|
|
99
|
+
id
|
|
100
|
+
qname
|
|
101
|
+
name
|
|
102
|
+
classification
|
|
103
|
+
source
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
`
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List library elements with filters + pagination.
|
|
3
|
+
*
|
|
4
|
+
* `classification` filters on the FASB elementsOfFinancialStatements axis.
|
|
5
|
+
* `activityType` filters on the cash-flow activity axis
|
|
6
|
+
* (operatingActivity / investingActivity / financingActivity). Both axes
|
|
7
|
+
* apply independently and can be combined.
|
|
8
|
+
*
|
|
9
|
+
* `isAbstract=true` → abstract only; `false` → concrete only; omit for both.
|
|
10
|
+
*
|
|
11
|
+
* `includeLabels` / `includeReferences` default `false`; the list view
|
|
12
|
+
* doesn't render them and they add N+1-ish payload weight.
|
|
13
|
+
*/
|
|
14
|
+
export declare const LIST_LIBRARY_ELEMENTS: string;
|
|
15
|
+
/**
|
|
16
|
+
* Substring search across qname, name, and standard label text.
|
|
17
|
+
* Always returns labels + references inline — the search UI renders them.
|
|
18
|
+
*/
|
|
19
|
+
export declare const SEARCH_LIBRARY_ELEMENTS: string;
|
|
20
|
+
/**
|
|
21
|
+
* Get a single element by id or by qname ('sfac6:Assets', etc).
|
|
22
|
+
* Returns null when neither identifier resolves.
|
|
23
|
+
*/
|
|
24
|
+
export declare const GET_LIBRARY_ELEMENT: string;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_LIBRARY_ELEMENT = exports.SEARCH_LIBRARY_ELEMENTS = exports.LIST_LIBRARY_ELEMENTS = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* List library elements with filters + pagination.
|
|
7
|
+
*
|
|
8
|
+
* `classification` filters on the FASB elementsOfFinancialStatements axis.
|
|
9
|
+
* `activityType` filters on the cash-flow activity axis
|
|
10
|
+
* (operatingActivity / investingActivity / financingActivity). Both axes
|
|
11
|
+
* apply independently and can be combined.
|
|
12
|
+
*
|
|
13
|
+
* `isAbstract=true` → abstract only; `false` → concrete only; omit for both.
|
|
14
|
+
*
|
|
15
|
+
* `includeLabels` / `includeReferences` default `false`; the list view
|
|
16
|
+
* doesn't render them and they add N+1-ish payload weight.
|
|
17
|
+
*/
|
|
18
|
+
exports.LIST_LIBRARY_ELEMENTS = (0, graphql_request_1.gql) `
|
|
19
|
+
query ListLibraryElements(
|
|
20
|
+
$taxonomyId: ID
|
|
21
|
+
$source: String
|
|
22
|
+
$classification: String
|
|
23
|
+
$activityType: String
|
|
24
|
+
$elementType: String
|
|
25
|
+
$isAbstract: Boolean
|
|
26
|
+
$limit: Int! = 50
|
|
27
|
+
$offset: Int! = 0
|
|
28
|
+
$includeLabels: Boolean! = false
|
|
29
|
+
$includeReferences: Boolean! = false
|
|
30
|
+
) {
|
|
31
|
+
libraryElements(
|
|
32
|
+
taxonomyId: $taxonomyId
|
|
33
|
+
source: $source
|
|
34
|
+
classification: $classification
|
|
35
|
+
activityType: $activityType
|
|
36
|
+
elementType: $elementType
|
|
37
|
+
isAbstract: $isAbstract
|
|
38
|
+
limit: $limit
|
|
39
|
+
offset: $offset
|
|
40
|
+
includeLabels: $includeLabels
|
|
41
|
+
includeReferences: $includeReferences
|
|
42
|
+
) {
|
|
43
|
+
id
|
|
44
|
+
qname
|
|
45
|
+
namespace
|
|
46
|
+
name
|
|
47
|
+
classification
|
|
48
|
+
balanceType
|
|
49
|
+
periodType
|
|
50
|
+
isAbstract
|
|
51
|
+
isMonetary
|
|
52
|
+
elementType
|
|
53
|
+
source
|
|
54
|
+
taxonomyId
|
|
55
|
+
parentId
|
|
56
|
+
labels @include(if: $includeLabels) {
|
|
57
|
+
role
|
|
58
|
+
language
|
|
59
|
+
text
|
|
60
|
+
}
|
|
61
|
+
references @include(if: $includeReferences) {
|
|
62
|
+
refType
|
|
63
|
+
citation
|
|
64
|
+
uri
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
`;
|
|
69
|
+
/**
|
|
70
|
+
* Substring search across qname, name, and standard label text.
|
|
71
|
+
* Always returns labels + references inline — the search UI renders them.
|
|
72
|
+
*/
|
|
73
|
+
exports.SEARCH_LIBRARY_ELEMENTS = (0, graphql_request_1.gql) `
|
|
74
|
+
query SearchLibraryElements($query: String!, $source: String, $limit: Int! = 50) {
|
|
75
|
+
searchLibraryElements(query: $query, source: $source, limit: $limit) {
|
|
76
|
+
id
|
|
77
|
+
qname
|
|
78
|
+
namespace
|
|
79
|
+
name
|
|
80
|
+
classification
|
|
81
|
+
balanceType
|
|
82
|
+
periodType
|
|
83
|
+
isAbstract
|
|
84
|
+
isMonetary
|
|
85
|
+
elementType
|
|
86
|
+
source
|
|
87
|
+
taxonomyId
|
|
88
|
+
parentId
|
|
89
|
+
labels {
|
|
90
|
+
role
|
|
91
|
+
language
|
|
92
|
+
text
|
|
93
|
+
}
|
|
94
|
+
references {
|
|
95
|
+
refType
|
|
96
|
+
citation
|
|
97
|
+
uri
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
`;
|
|
102
|
+
/**
|
|
103
|
+
* Get a single element by id or by qname ('sfac6:Assets', etc).
|
|
104
|
+
* Returns null when neither identifier resolves.
|
|
105
|
+
*/
|
|
106
|
+
exports.GET_LIBRARY_ELEMENT = (0, graphql_request_1.gql) `
|
|
107
|
+
query GetLibraryElement($id: ID, $qname: String) {
|
|
108
|
+
libraryElement(id: $id, qname: $qname) {
|
|
109
|
+
id
|
|
110
|
+
qname
|
|
111
|
+
namespace
|
|
112
|
+
name
|
|
113
|
+
classification
|
|
114
|
+
balanceType
|
|
115
|
+
periodType
|
|
116
|
+
isAbstract
|
|
117
|
+
isMonetary
|
|
118
|
+
elementType
|
|
119
|
+
source
|
|
120
|
+
taxonomyId
|
|
121
|
+
parentId
|
|
122
|
+
labels {
|
|
123
|
+
role
|
|
124
|
+
language
|
|
125
|
+
text
|
|
126
|
+
}
|
|
127
|
+
references {
|
|
128
|
+
refType
|
|
129
|
+
citation
|
|
130
|
+
uri
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
`;
|