@robosystems/client 0.3.7 → 0.3.8
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 +117 -0
- package/artifacts/LibraryClient.js +132 -0
- package/artifacts/LibraryClient.ts +358 -0
- package/artifacts/graphql/generated/graphql.d.ts +431 -15
- package/artifacts/graphql/generated/graphql.js +828 -1
- package/artifacts/graphql/generated/graphql.ts +1266 -15
- 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 +4 -3
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +66 -56
- package/sdk/sdk.gen.js +131 -112
- package/sdk/sdk.gen.ts +129 -110
- package/sdk/types.gen.d.ts +622 -458
- package/sdk/types.gen.ts +633 -464
- package/sdk.gen.d.ts +66 -56
- package/sdk.gen.js +131 -112
- package/sdk.gen.ts +129 -110
- package/types.gen.d.ts +622 -458
- package/types.gen.ts +633 -464
|
@@ -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
|
+
`;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* List library elements with filters + pagination.
|
|
5
|
+
*
|
|
6
|
+
* `classification` filters on the FASB elementsOfFinancialStatements axis.
|
|
7
|
+
* `activityType` filters on the cash-flow activity axis
|
|
8
|
+
* (operatingActivity / investingActivity / financingActivity). Both axes
|
|
9
|
+
* apply independently and can be combined.
|
|
10
|
+
*
|
|
11
|
+
* `isAbstract=true` → abstract only; `false` → concrete only; omit for both.
|
|
12
|
+
*
|
|
13
|
+
* `includeLabels` / `includeReferences` default `false`; the list view
|
|
14
|
+
* doesn't render them and they add N+1-ish payload weight.
|
|
15
|
+
*/
|
|
16
|
+
export const LIST_LIBRARY_ELEMENTS = gql`
|
|
17
|
+
query ListLibraryElements(
|
|
18
|
+
$taxonomyId: ID
|
|
19
|
+
$source: String
|
|
20
|
+
$classification: String
|
|
21
|
+
$activityType: String
|
|
22
|
+
$elementType: String
|
|
23
|
+
$isAbstract: Boolean
|
|
24
|
+
$limit: Int! = 50
|
|
25
|
+
$offset: Int! = 0
|
|
26
|
+
$includeLabels: Boolean! = false
|
|
27
|
+
$includeReferences: Boolean! = false
|
|
28
|
+
) {
|
|
29
|
+
libraryElements(
|
|
30
|
+
taxonomyId: $taxonomyId
|
|
31
|
+
source: $source
|
|
32
|
+
classification: $classification
|
|
33
|
+
activityType: $activityType
|
|
34
|
+
elementType: $elementType
|
|
35
|
+
isAbstract: $isAbstract
|
|
36
|
+
limit: $limit
|
|
37
|
+
offset: $offset
|
|
38
|
+
includeLabels: $includeLabels
|
|
39
|
+
includeReferences: $includeReferences
|
|
40
|
+
) {
|
|
41
|
+
id
|
|
42
|
+
qname
|
|
43
|
+
namespace
|
|
44
|
+
name
|
|
45
|
+
classification
|
|
46
|
+
balanceType
|
|
47
|
+
periodType
|
|
48
|
+
isAbstract
|
|
49
|
+
isMonetary
|
|
50
|
+
elementType
|
|
51
|
+
source
|
|
52
|
+
taxonomyId
|
|
53
|
+
parentId
|
|
54
|
+
labels @include(if: $includeLabels) {
|
|
55
|
+
role
|
|
56
|
+
language
|
|
57
|
+
text
|
|
58
|
+
}
|
|
59
|
+
references @include(if: $includeReferences) {
|
|
60
|
+
refType
|
|
61
|
+
citation
|
|
62
|
+
uri
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
`
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Substring search across qname, name, and standard label text.
|
|
70
|
+
* Always returns labels + references inline — the search UI renders them.
|
|
71
|
+
*/
|
|
72
|
+
export const SEARCH_LIBRARY_ELEMENTS = gql`
|
|
73
|
+
query SearchLibraryElements($query: String!, $source: String, $limit: Int! = 50) {
|
|
74
|
+
searchLibraryElements(query: $query, source: $source, limit: $limit) {
|
|
75
|
+
id
|
|
76
|
+
qname
|
|
77
|
+
namespace
|
|
78
|
+
name
|
|
79
|
+
classification
|
|
80
|
+
balanceType
|
|
81
|
+
periodType
|
|
82
|
+
isAbstract
|
|
83
|
+
isMonetary
|
|
84
|
+
elementType
|
|
85
|
+
source
|
|
86
|
+
taxonomyId
|
|
87
|
+
parentId
|
|
88
|
+
labels {
|
|
89
|
+
role
|
|
90
|
+
language
|
|
91
|
+
text
|
|
92
|
+
}
|
|
93
|
+
references {
|
|
94
|
+
refType
|
|
95
|
+
citation
|
|
96
|
+
uri
|
|
97
|
+
}
|
|
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
|
+
export const GET_LIBRARY_ELEMENT = 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
|
+
`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List every curated taxonomy visible at the current graph_id:
|
|
3
|
+
* - On `graph_id="library"` → canonical library (public schema).
|
|
4
|
+
* - On a tenant graph_id → tenant's library copy + any tenant
|
|
5
|
+
* taxonomies (e.g. the entity's CoA).
|
|
6
|
+
*
|
|
7
|
+
* Pass `includeElementCount: true` to populate the `elementCount` field
|
|
8
|
+
* (one COUNT(*) per row — skip for list UIs that don't render it).
|
|
9
|
+
*/
|
|
10
|
+
export declare const LIST_LIBRARY_TAXONOMIES: string;
|
|
11
|
+
/**
|
|
12
|
+
* Fetch one taxonomy by id OR by (standard, version). Returns null
|
|
13
|
+
* when neither a matching id nor a (standard, version) pair is found.
|
|
14
|
+
*/
|
|
15
|
+
export declare const GET_LIBRARY_TAXONOMY: string;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_LIBRARY_TAXONOMY = exports.LIST_LIBRARY_TAXONOMIES = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* List every curated taxonomy visible at the current graph_id:
|
|
7
|
+
* - On `graph_id="library"` → canonical library (public schema).
|
|
8
|
+
* - On a tenant graph_id → tenant's library copy + any tenant
|
|
9
|
+
* taxonomies (e.g. the entity's CoA).
|
|
10
|
+
*
|
|
11
|
+
* Pass `includeElementCount: true` to populate the `elementCount` field
|
|
12
|
+
* (one COUNT(*) per row — skip for list UIs that don't render it).
|
|
13
|
+
*/
|
|
14
|
+
exports.LIST_LIBRARY_TAXONOMIES = (0, graphql_request_1.gql) `
|
|
15
|
+
query ListLibraryTaxonomies($standard: String, $includeElementCount: Boolean! = false) {
|
|
16
|
+
libraryTaxonomies(standard: $standard, includeElementCount: $includeElementCount) {
|
|
17
|
+
id
|
|
18
|
+
name
|
|
19
|
+
description
|
|
20
|
+
standard
|
|
21
|
+
version
|
|
22
|
+
namespaceUri
|
|
23
|
+
taxonomyType
|
|
24
|
+
isShared
|
|
25
|
+
isActive
|
|
26
|
+
isLocked
|
|
27
|
+
elementCount
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
31
|
+
/**
|
|
32
|
+
* Fetch one taxonomy by id OR by (standard, version). Returns null
|
|
33
|
+
* when neither a matching id nor a (standard, version) pair is found.
|
|
34
|
+
*/
|
|
35
|
+
exports.GET_LIBRARY_TAXONOMY = (0, graphql_request_1.gql) `
|
|
36
|
+
query GetLibraryTaxonomy(
|
|
37
|
+
$id: ID
|
|
38
|
+
$standard: String
|
|
39
|
+
$version: String
|
|
40
|
+
$includeElementCount: Boolean! = false
|
|
41
|
+
) {
|
|
42
|
+
libraryTaxonomy(
|
|
43
|
+
id: $id
|
|
44
|
+
standard: $standard
|
|
45
|
+
version: $version
|
|
46
|
+
includeElementCount: $includeElementCount
|
|
47
|
+
) {
|
|
48
|
+
id
|
|
49
|
+
name
|
|
50
|
+
description
|
|
51
|
+
standard
|
|
52
|
+
version
|
|
53
|
+
namespaceUri
|
|
54
|
+
taxonomyType
|
|
55
|
+
isShared
|
|
56
|
+
isActive
|
|
57
|
+
isLocked
|
|
58
|
+
elementCount
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* List every curated taxonomy visible at the current graph_id:
|
|
5
|
+
* - On `graph_id="library"` → canonical library (public schema).
|
|
6
|
+
* - On a tenant graph_id → tenant's library copy + any tenant
|
|
7
|
+
* taxonomies (e.g. the entity's CoA).
|
|
8
|
+
*
|
|
9
|
+
* Pass `includeElementCount: true` to populate the `elementCount` field
|
|
10
|
+
* (one COUNT(*) per row — skip for list UIs that don't render it).
|
|
11
|
+
*/
|
|
12
|
+
export const LIST_LIBRARY_TAXONOMIES = gql`
|
|
13
|
+
query ListLibraryTaxonomies($standard: String, $includeElementCount: Boolean! = false) {
|
|
14
|
+
libraryTaxonomies(standard: $standard, includeElementCount: $includeElementCount) {
|
|
15
|
+
id
|
|
16
|
+
name
|
|
17
|
+
description
|
|
18
|
+
standard
|
|
19
|
+
version
|
|
20
|
+
namespaceUri
|
|
21
|
+
taxonomyType
|
|
22
|
+
isShared
|
|
23
|
+
isActive
|
|
24
|
+
isLocked
|
|
25
|
+
elementCount
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
`
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Fetch one taxonomy by id OR by (standard, version). Returns null
|
|
32
|
+
* when neither a matching id nor a (standard, version) pair is found.
|
|
33
|
+
*/
|
|
34
|
+
export const GET_LIBRARY_TAXONOMY = gql`
|
|
35
|
+
query GetLibraryTaxonomy(
|
|
36
|
+
$id: ID
|
|
37
|
+
$standard: String
|
|
38
|
+
$version: String
|
|
39
|
+
$includeElementCount: Boolean! = false
|
|
40
|
+
) {
|
|
41
|
+
libraryTaxonomy(
|
|
42
|
+
id: $id
|
|
43
|
+
standard: $standard
|
|
44
|
+
version: $version
|
|
45
|
+
includeElementCount: $includeElementCount
|
|
46
|
+
) {
|
|
47
|
+
id
|
|
48
|
+
name
|
|
49
|
+
description
|
|
50
|
+
standard
|
|
51
|
+
version
|
|
52
|
+
namespaceUri
|
|
53
|
+
taxonomyType
|
|
54
|
+
isShared
|
|
55
|
+
isActive
|
|
56
|
+
isLocked
|
|
57
|
+
elementCount
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
`
|
package/artifacts/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { AgentClient } from './AgentClient';
|
|
|
6
6
|
import type { TokenProvider } from './graphql/client';
|
|
7
7
|
import { InvestorClient } from './InvestorClient';
|
|
8
8
|
import { LedgerClient } from './LedgerClient';
|
|
9
|
+
import { LibraryClient } from './LibraryClient';
|
|
9
10
|
import { OperationClient } from './OperationClient';
|
|
10
11
|
import { QueryClient } from './QueryClient';
|
|
11
12
|
import { SSEClient } from './SSEClient';
|
|
@@ -35,6 +36,7 @@ export declare class RoboSystemsClients {
|
|
|
35
36
|
readonly operations: OperationClient;
|
|
36
37
|
readonly ledger: LedgerClient;
|
|
37
38
|
readonly investor: InvestorClient;
|
|
39
|
+
readonly library: LibraryClient;
|
|
38
40
|
/**
|
|
39
41
|
* @deprecated Use `ledger` instead — reports and publish lists are
|
|
40
42
|
* now part of the LedgerClient.
|
|
@@ -59,10 +61,11 @@ export * from './AgentClient';
|
|
|
59
61
|
export * from './config';
|
|
60
62
|
export * from './InvestorClient';
|
|
61
63
|
export * from './LedgerClient';
|
|
64
|
+
export * from './LibraryClient';
|
|
62
65
|
export * from './OperationClient';
|
|
63
66
|
export * from './QueryClient';
|
|
64
67
|
export * from './SSEClient';
|
|
65
|
-
export { AgentClient, InvestorClient, LedgerClient, OperationClient, QueryClient, SSEClient };
|
|
68
|
+
export { AgentClient, InvestorClient, LedgerClient, LibraryClient, OperationClient, QueryClient, SSEClient, };
|
|
66
69
|
export { useMultipleOperations, useOperation, useQuery, useSDKClients, useStreamingQuery, } from './hooks';
|
|
67
70
|
export declare const clients: {
|
|
68
71
|
readonly query: QueryClient;
|
|
@@ -70,6 +73,7 @@ export declare const clients: {
|
|
|
70
73
|
readonly operations: OperationClient;
|
|
71
74
|
readonly ledger: LedgerClient;
|
|
72
75
|
readonly investor: InvestorClient;
|
|
76
|
+
readonly library: LibraryClient;
|
|
73
77
|
/** @deprecated Use `ledger` instead */
|
|
74
78
|
readonly reports: LedgerClient;
|
|
75
79
|
monitorOperation: (operationId: string, onProgress?: (progress: any) => void) => Promise<any>;
|