@robosystems/client 0.3.13 → 0.3.15

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.
Files changed (35) hide show
  1. package/artifacts/InvestorClient.d.ts +35 -20
  2. package/artifacts/InvestorClient.js +78 -71
  3. package/artifacts/InvestorClient.ts +164 -141
  4. package/artifacts/LedgerClient.d.ts +22 -1
  5. package/artifacts/LedgerClient.js +40 -0
  6. package/artifacts/LedgerClient.ts +67 -0
  7. package/artifacts/graphql/generated/graphql.d.ts +401 -6
  8. package/artifacts/graphql/generated/graphql.js +633 -4
  9. package/artifacts/graphql/generated/graphql.ts +1058 -41
  10. package/artifacts/graphql/queries/investor/portfolio_block.d.ts +10 -0
  11. package/artifacts/graphql/queries/investor/portfolio_block.js +60 -0
  12. package/artifacts/graphql/queries/investor/portfolio_block.ts +58 -0
  13. package/artifacts/graphql/queries/ledger/informationBlock.js +110 -0
  14. package/artifacts/graphql/queries/ledger/informationBlock.ts +110 -0
  15. package/artifacts/graphql/queries/ledger/reportPackage.d.ts +11 -0
  16. package/artifacts/graphql/queries/ledger/reportPackage.js +151 -0
  17. package/artifacts/graphql/queries/ledger/reportPackage.ts +149 -0
  18. package/index.ts +2 -2
  19. package/package.json +1 -1
  20. package/sdk/index.d.ts +2 -2
  21. package/sdk/index.js +8 -9
  22. package/sdk/index.ts +2 -2
  23. package/sdk/sdk.gen.d.ts +26 -34
  24. package/sdk/sdk.gen.js +51 -68
  25. package/sdk/sdk.gen.ts +47 -64
  26. package/sdk/types.gen.d.ts +409 -365
  27. package/sdk/types.gen.ts +411 -367
  28. package/sdk.gen.d.ts +26 -34
  29. package/sdk.gen.js +51 -68
  30. package/sdk.gen.ts +47 -64
  31. package/types.gen.d.ts +409 -365
  32. package/types.gen.ts +411 -367
  33. package/artifacts/graphql/queries/investor/portfolio.d.ts +0 -4
  34. package/artifacts/graphql/queries/investor/portfolio.js +0 -21
  35. package/artifacts/graphql/queries/investor/portfolio.ts +0 -19
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Portfolio Block — molecule envelope for a portfolio.
3
+ *
4
+ * Returns the portfolio plus its active positions, the underlying
5
+ * securities, and the owner / issuer entity references in a single
6
+ * read. `sourceGraphId` on `SecurityLite` and `EntityLite` is the
7
+ * cross-graph bridge that lets investor flows traverse to the
8
+ * issuer's RoboLedger graph.
9
+ */
10
+ export declare const GET_PORTFOLIO_BLOCK: string;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_PORTFOLIO_BLOCK = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Portfolio Block — molecule envelope for a portfolio.
7
+ *
8
+ * Returns the portfolio plus its active positions, the underlying
9
+ * securities, and the owner / issuer entity references in a single
10
+ * read. `sourceGraphId` on `SecurityLite` and `EntityLite` is the
11
+ * cross-graph bridge that lets investor flows traverse to the
12
+ * issuer's RoboLedger graph.
13
+ */
14
+ exports.GET_PORTFOLIO_BLOCK = (0, graphql_request_1.gql) `
15
+ query GetInvestorPortfolioBlock($portfolioId: String!) {
16
+ portfolioBlock(portfolioId: $portfolioId) {
17
+ id
18
+ name
19
+ description
20
+ strategy
21
+ inceptionDate
22
+ baseCurrency
23
+ owner {
24
+ id
25
+ name
26
+ sourceGraphId
27
+ }
28
+ positions {
29
+ id
30
+ quantity
31
+ quantityType
32
+ costBasisDollars
33
+ currentValueDollars
34
+ valuationDate
35
+ valuationSource
36
+ acquisitionDate
37
+ status
38
+ notes
39
+ security {
40
+ id
41
+ name
42
+ securityType
43
+ securitySubtype
44
+ isActive
45
+ sourceGraphId
46
+ issuer {
47
+ id
48
+ name
49
+ sourceGraphId
50
+ }
51
+ }
52
+ }
53
+ totalCostBasisDollars
54
+ totalCurrentValueDollars
55
+ activePositionCount
56
+ createdAt
57
+ updatedAt
58
+ }
59
+ }
60
+ `;
@@ -0,0 +1,58 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * Portfolio Block — molecule envelope for a portfolio.
5
+ *
6
+ * Returns the portfolio plus its active positions, the underlying
7
+ * securities, and the owner / issuer entity references in a single
8
+ * read. `sourceGraphId` on `SecurityLite` and `EntityLite` is the
9
+ * cross-graph bridge that lets investor flows traverse to the
10
+ * issuer's RoboLedger graph.
11
+ */
12
+ export const GET_PORTFOLIO_BLOCK = gql`
13
+ query GetInvestorPortfolioBlock($portfolioId: String!) {
14
+ portfolioBlock(portfolioId: $portfolioId) {
15
+ id
16
+ name
17
+ description
18
+ strategy
19
+ inceptionDate
20
+ baseCurrency
21
+ owner {
22
+ id
23
+ name
24
+ sourceGraphId
25
+ }
26
+ positions {
27
+ id
28
+ quantity
29
+ quantityType
30
+ costBasisDollars
31
+ currentValueDollars
32
+ valuationDate
33
+ valuationSource
34
+ acquisitionDate
35
+ status
36
+ notes
37
+ security {
38
+ id
39
+ name
40
+ securityType
41
+ securitySubtype
42
+ isActive
43
+ sourceGraphId
44
+ issuer {
45
+ id
46
+ name
47
+ sourceGraphId
48
+ }
49
+ }
50
+ }
51
+ totalCostBasisDollars
52
+ totalCurrentValueDollars
53
+ activePositionCount
54
+ createdAt
55
+ updatedAt
56
+ }
57
+ }
58
+ `
@@ -60,6 +60,61 @@ exports.GET_INFORMATION_BLOCK = (0, graphql_request_1.gql) `
60
60
  factScope
61
61
  factSetId
62
62
  }
63
+ rules {
64
+ id
65
+ ruleCategory
66
+ rulePattern
67
+ ruleExpression
68
+ ruleMessage
69
+ ruleSeverity
70
+ ruleOrigin
71
+ }
72
+ factSet {
73
+ id
74
+ structureId
75
+ periodStart
76
+ periodEnd
77
+ factsetType
78
+ entityId
79
+ reportId
80
+ }
81
+ verificationResults {
82
+ id
83
+ ruleId
84
+ structureId
85
+ factSetId
86
+ status
87
+ message
88
+ periodStart
89
+ periodEnd
90
+ evaluatedAt
91
+ }
92
+ view {
93
+ rendering {
94
+ rows {
95
+ elementId
96
+ elementQname
97
+ elementName
98
+ classification
99
+ balanceType
100
+ values
101
+ isSubtotal
102
+ depth
103
+ }
104
+ periods {
105
+ start
106
+ end
107
+ label
108
+ }
109
+ validation {
110
+ passed
111
+ checks
112
+ failures
113
+ warnings
114
+ }
115
+ unmappedCount
116
+ }
117
+ }
63
118
  }
64
119
  }
65
120
  `;
@@ -120,6 +175,61 @@ exports.LIST_INFORMATION_BLOCKS = (0, graphql_request_1.gql) `
120
175
  factScope
121
176
  factSetId
122
177
  }
178
+ rules {
179
+ id
180
+ ruleCategory
181
+ rulePattern
182
+ ruleExpression
183
+ ruleMessage
184
+ ruleSeverity
185
+ ruleOrigin
186
+ }
187
+ factSet {
188
+ id
189
+ structureId
190
+ periodStart
191
+ periodEnd
192
+ factsetType
193
+ entityId
194
+ reportId
195
+ }
196
+ verificationResults {
197
+ id
198
+ ruleId
199
+ structureId
200
+ factSetId
201
+ status
202
+ message
203
+ periodStart
204
+ periodEnd
205
+ evaluatedAt
206
+ }
207
+ view {
208
+ rendering {
209
+ rows {
210
+ elementId
211
+ elementQname
212
+ elementName
213
+ classification
214
+ balanceType
215
+ values
216
+ isSubtotal
217
+ depth
218
+ }
219
+ periods {
220
+ start
221
+ end
222
+ label
223
+ }
224
+ validation {
225
+ passed
226
+ checks
227
+ failures
228
+ warnings
229
+ }
230
+ unmappedCount
231
+ }
232
+ }
123
233
  }
124
234
  }
125
235
  `;
@@ -58,6 +58,61 @@ export const GET_INFORMATION_BLOCK = gql`
58
58
  factScope
59
59
  factSetId
60
60
  }
61
+ rules {
62
+ id
63
+ ruleCategory
64
+ rulePattern
65
+ ruleExpression
66
+ ruleMessage
67
+ ruleSeverity
68
+ ruleOrigin
69
+ }
70
+ factSet {
71
+ id
72
+ structureId
73
+ periodStart
74
+ periodEnd
75
+ factsetType
76
+ entityId
77
+ reportId
78
+ }
79
+ verificationResults {
80
+ id
81
+ ruleId
82
+ structureId
83
+ factSetId
84
+ status
85
+ message
86
+ periodStart
87
+ periodEnd
88
+ evaluatedAt
89
+ }
90
+ view {
91
+ rendering {
92
+ rows {
93
+ elementId
94
+ elementQname
95
+ elementName
96
+ classification
97
+ balanceType
98
+ values
99
+ isSubtotal
100
+ depth
101
+ }
102
+ periods {
103
+ start
104
+ end
105
+ label
106
+ }
107
+ validation {
108
+ passed
109
+ checks
110
+ failures
111
+ warnings
112
+ }
113
+ unmappedCount
114
+ }
115
+ }
61
116
  }
62
117
  }
63
118
  `
@@ -119,6 +174,61 @@ export const LIST_INFORMATION_BLOCKS = gql`
119
174
  factScope
120
175
  factSetId
121
176
  }
177
+ rules {
178
+ id
179
+ ruleCategory
180
+ rulePattern
181
+ ruleExpression
182
+ ruleMessage
183
+ ruleSeverity
184
+ ruleOrigin
185
+ }
186
+ factSet {
187
+ id
188
+ structureId
189
+ periodStart
190
+ periodEnd
191
+ factsetType
192
+ entityId
193
+ reportId
194
+ }
195
+ verificationResults {
196
+ id
197
+ ruleId
198
+ structureId
199
+ factSetId
200
+ status
201
+ message
202
+ periodStart
203
+ periodEnd
204
+ evaluatedAt
205
+ }
206
+ view {
207
+ rendering {
208
+ rows {
209
+ elementId
210
+ elementQname
211
+ elementName
212
+ classification
213
+ balanceType
214
+ values
215
+ isSubtotal
216
+ depth
217
+ }
218
+ periods {
219
+ start
220
+ end
221
+ label
222
+ }
223
+ validation {
224
+ passed
225
+ checks
226
+ failures
227
+ warnings
228
+ }
229
+ unmappedCount
230
+ }
231
+ }
122
232
  }
123
233
  }
124
234
  `
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Report rehydrated as a package — Report metadata + N rendered
3
+ * Information Block envelopes (one per attached FactSet). Drives the
4
+ * `/reports/[id]` package viewer; replaces the per-statement
5
+ * `getStatement(reportId, structureType)` round-trip flow.
6
+ *
7
+ * Each item's `block` is a fully-rehydrated `InformationBlock` envelope
8
+ * pinned to its specific FactSet snapshot, so the frontend can render
9
+ * the package without per-section refetches.
10
+ */
11
+ export declare const GET_REPORT_PACKAGE: string;
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_REPORT_PACKAGE = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Report rehydrated as a package — Report metadata + N rendered
7
+ * Information Block envelopes (one per attached FactSet). Drives the
8
+ * `/reports/[id]` package viewer; replaces the per-statement
9
+ * `getStatement(reportId, structureType)` round-trip flow.
10
+ *
11
+ * Each item's `block` is a fully-rehydrated `InformationBlock` envelope
12
+ * pinned to its specific FactSet snapshot, so the frontend can render
13
+ * the package without per-section refetches.
14
+ */
15
+ exports.GET_REPORT_PACKAGE = (0, graphql_request_1.gql) `
16
+ query GetLedgerReportPackage($reportId: String!) {
17
+ reportPackage(reportId: $reportId) {
18
+ id
19
+ name
20
+ description
21
+ taxonomyId
22
+ periodType
23
+ periodStart
24
+ periodEnd
25
+ generationStatus
26
+ lastGenerated
27
+ filingStatus
28
+ filedAt
29
+ filedBy
30
+ supersedesId
31
+ supersededById
32
+ sourceGraphId
33
+ sourceReportId
34
+ sharedAt
35
+ entityName
36
+ aiGenerated
37
+ createdAt
38
+ createdBy
39
+ items {
40
+ factSetId
41
+ structureId
42
+ displayOrder
43
+ block {
44
+ id
45
+ blockType
46
+ name
47
+ displayName
48
+ category
49
+ taxonomyId
50
+ taxonomyName
51
+ informationModel {
52
+ conceptArrangement
53
+ memberArrangement
54
+ }
55
+ artifact {
56
+ topic
57
+ parentheticalNote
58
+ template
59
+ mechanics
60
+ }
61
+ elements {
62
+ id
63
+ qname
64
+ name
65
+ code
66
+ elementType
67
+ isAbstract
68
+ isMonetary
69
+ balanceType
70
+ periodType
71
+ }
72
+ connections {
73
+ id
74
+ fromElementId
75
+ toElementId
76
+ associationType
77
+ arcrole
78
+ orderValue
79
+ weight
80
+ }
81
+ facts {
82
+ id
83
+ elementId
84
+ value
85
+ periodStart
86
+ periodEnd
87
+ periodType
88
+ unit
89
+ factScope
90
+ factSetId
91
+ }
92
+ rules {
93
+ id
94
+ ruleCategory
95
+ rulePattern
96
+ ruleExpression
97
+ ruleMessage
98
+ ruleSeverity
99
+ ruleOrigin
100
+ }
101
+ factSet {
102
+ id
103
+ structureId
104
+ periodStart
105
+ periodEnd
106
+ factsetType
107
+ entityId
108
+ reportId
109
+ }
110
+ verificationResults {
111
+ id
112
+ ruleId
113
+ structureId
114
+ factSetId
115
+ status
116
+ message
117
+ periodStart
118
+ periodEnd
119
+ evaluatedAt
120
+ }
121
+ view {
122
+ rendering {
123
+ rows {
124
+ elementId
125
+ elementQname
126
+ elementName
127
+ classification
128
+ balanceType
129
+ values
130
+ isSubtotal
131
+ depth
132
+ }
133
+ periods {
134
+ start
135
+ end
136
+ label
137
+ }
138
+ validation {
139
+ passed
140
+ checks
141
+ failures
142
+ warnings
143
+ }
144
+ unmappedCount
145
+ }
146
+ }
147
+ }
148
+ }
149
+ }
150
+ }
151
+ `;
@@ -0,0 +1,149 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * Report rehydrated as a package — Report metadata + N rendered
5
+ * Information Block envelopes (one per attached FactSet). Drives the
6
+ * `/reports/[id]` package viewer; replaces the per-statement
7
+ * `getStatement(reportId, structureType)` round-trip flow.
8
+ *
9
+ * Each item's `block` is a fully-rehydrated `InformationBlock` envelope
10
+ * pinned to its specific FactSet snapshot, so the frontend can render
11
+ * the package without per-section refetches.
12
+ */
13
+ export const GET_REPORT_PACKAGE = gql`
14
+ query GetLedgerReportPackage($reportId: String!) {
15
+ reportPackage(reportId: $reportId) {
16
+ id
17
+ name
18
+ description
19
+ taxonomyId
20
+ periodType
21
+ periodStart
22
+ periodEnd
23
+ generationStatus
24
+ lastGenerated
25
+ filingStatus
26
+ filedAt
27
+ filedBy
28
+ supersedesId
29
+ supersededById
30
+ sourceGraphId
31
+ sourceReportId
32
+ sharedAt
33
+ entityName
34
+ aiGenerated
35
+ createdAt
36
+ createdBy
37
+ items {
38
+ factSetId
39
+ structureId
40
+ displayOrder
41
+ block {
42
+ id
43
+ blockType
44
+ name
45
+ displayName
46
+ category
47
+ taxonomyId
48
+ taxonomyName
49
+ informationModel {
50
+ conceptArrangement
51
+ memberArrangement
52
+ }
53
+ artifact {
54
+ topic
55
+ parentheticalNote
56
+ template
57
+ mechanics
58
+ }
59
+ elements {
60
+ id
61
+ qname
62
+ name
63
+ code
64
+ elementType
65
+ isAbstract
66
+ isMonetary
67
+ balanceType
68
+ periodType
69
+ }
70
+ connections {
71
+ id
72
+ fromElementId
73
+ toElementId
74
+ associationType
75
+ arcrole
76
+ orderValue
77
+ weight
78
+ }
79
+ facts {
80
+ id
81
+ elementId
82
+ value
83
+ periodStart
84
+ periodEnd
85
+ periodType
86
+ unit
87
+ factScope
88
+ factSetId
89
+ }
90
+ rules {
91
+ id
92
+ ruleCategory
93
+ rulePattern
94
+ ruleExpression
95
+ ruleMessage
96
+ ruleSeverity
97
+ ruleOrigin
98
+ }
99
+ factSet {
100
+ id
101
+ structureId
102
+ periodStart
103
+ periodEnd
104
+ factsetType
105
+ entityId
106
+ reportId
107
+ }
108
+ verificationResults {
109
+ id
110
+ ruleId
111
+ structureId
112
+ factSetId
113
+ status
114
+ message
115
+ periodStart
116
+ periodEnd
117
+ evaluatedAt
118
+ }
119
+ view {
120
+ rendering {
121
+ rows {
122
+ elementId
123
+ elementQname
124
+ elementName
125
+ classification
126
+ balanceType
127
+ values
128
+ isSubtotal
129
+ depth
130
+ }
131
+ periods {
132
+ start
133
+ end
134
+ label
135
+ }
136
+ validation {
137
+ passed
138
+ checks
139
+ failures
140
+ warnings
141
+ }
142
+ unmappedCount
143
+ }
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
149
+ `