@robosystems/client 0.2.49 → 0.3.0

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 (190) hide show
  1. package/extensions/InvestorClient.d.ts +91 -0
  2. package/extensions/InvestorClient.js +223 -0
  3. package/extensions/InvestorClient.ts +501 -0
  4. package/extensions/LedgerClient.d.ts +183 -309
  5. package/extensions/LedgerClient.js +268 -587
  6. package/extensions/LedgerClient.ts +777 -903
  7. package/extensions/ReportClient.d.ts +77 -115
  8. package/extensions/ReportClient.js +124 -211
  9. package/extensions/ReportClient.ts +298 -358
  10. package/extensions/config.js +1 -1
  11. package/extensions/config.ts +1 -1
  12. package/extensions/graphql/client.d.ts +46 -0
  13. package/extensions/graphql/client.js +75 -0
  14. package/extensions/graphql/client.ts +82 -0
  15. package/extensions/graphql/generated/graphql.d.ts +1786 -0
  16. package/extensions/graphql/generated/graphql.js +2671 -0
  17. package/extensions/graphql/generated/graphql.ts +4491 -0
  18. package/extensions/graphql/queries/investor/holdings.d.ts +8 -0
  19. package/extensions/graphql/queries/investor/holdings.js +36 -0
  20. package/extensions/graphql/queries/investor/holdings.ts +34 -0
  21. package/extensions/graphql/queries/investor/portfolio.d.ts +4 -0
  22. package/extensions/graphql/queries/investor/portfolio.js +21 -0
  23. package/extensions/graphql/queries/investor/portfolio.ts +19 -0
  24. package/extensions/graphql/queries/investor/portfolios.d.ts +4 -0
  25. package/extensions/graphql/queries/investor/portfolios.js +29 -0
  26. package/extensions/graphql/queries/investor/portfolios.ts +27 -0
  27. package/extensions/graphql/queries/investor/position.d.ts +4 -0
  28. package/extensions/graphql/queries/investor/position.js +33 -0
  29. package/extensions/graphql/queries/investor/position.ts +31 -0
  30. package/extensions/graphql/queries/investor/positions.d.ts +8 -0
  31. package/extensions/graphql/queries/investor/positions.js +57 -0
  32. package/extensions/graphql/queries/investor/positions.ts +55 -0
  33. package/extensions/graphql/queries/investor/securities.d.ts +8 -0
  34. package/extensions/graphql/queries/investor/securities.js +50 -0
  35. package/extensions/graphql/queries/investor/securities.ts +48 -0
  36. package/extensions/graphql/queries/investor/security.d.ts +4 -0
  37. package/extensions/graphql/queries/investor/security.js +26 -0
  38. package/extensions/graphql/queries/investor/security.ts +24 -0
  39. package/extensions/graphql/queries/ledger/accountRollups.d.ts +7 -0
  40. package/extensions/graphql/queries/ledger/accountRollups.js +36 -0
  41. package/extensions/graphql/queries/ledger/accountRollups.ts +34 -0
  42. package/extensions/graphql/queries/ledger/accountTree.d.ts +11 -0
  43. package/extensions/graphql/queries/ledger/accountTree.js +61 -0
  44. package/extensions/graphql/queries/ledger/accountTree.ts +59 -0
  45. package/extensions/graphql/queries/ledger/accounts.d.ts +8 -0
  46. package/extensions/graphql/queries/ledger/accounts.js +45 -0
  47. package/extensions/graphql/queries/ledger/accounts.ts +43 -0
  48. package/extensions/graphql/queries/ledger/closingBookStructures.d.ts +6 -0
  49. package/extensions/graphql/queries/ledger/closingBookStructures.js +27 -0
  50. package/extensions/graphql/queries/ledger/closingBookStructures.ts +25 -0
  51. package/extensions/graphql/queries/ledger/elements.d.ts +6 -0
  52. package/extensions/graphql/queries/ledger/elements.js +56 -0
  53. package/extensions/graphql/queries/ledger/elements.ts +54 -0
  54. package/extensions/graphql/queries/ledger/entities.d.ts +7 -0
  55. package/extensions/graphql/queries/ledger/entities.js +31 -0
  56. package/extensions/graphql/queries/ledger/entities.ts +29 -0
  57. package/extensions/graphql/queries/ledger/entity.d.ts +14 -0
  58. package/extensions/graphql/queries/ledger/entity.js +55 -0
  59. package/extensions/graphql/queries/ledger/entity.ts +54 -0
  60. package/extensions/graphql/queries/ledger/fiscalCalendar.d.ts +8 -0
  61. package/extensions/graphql/queries/ledger/fiscalCalendar.js +35 -0
  62. package/extensions/graphql/queries/ledger/fiscalCalendar.ts +33 -0
  63. package/extensions/graphql/queries/ledger/mappedTrialBalance.d.ts +9 -0
  64. package/extensions/graphql/queries/ledger/mappedTrialBalance.js +29 -0
  65. package/extensions/graphql/queries/ledger/mappedTrialBalance.ts +27 -0
  66. package/extensions/graphql/queries/ledger/mapping.d.ts +5 -0
  67. package/extensions/graphql/queries/ledger/mapping.js +35 -0
  68. package/extensions/graphql/queries/ledger/mapping.ts +33 -0
  69. package/extensions/graphql/queries/ledger/mappingCoverage.d.ts +5 -0
  70. package/extensions/graphql/queries/ledger/mappingCoverage.js +22 -0
  71. package/extensions/graphql/queries/ledger/mappingCoverage.ts +20 -0
  72. package/extensions/graphql/queries/ledger/mappings.d.ts +6 -0
  73. package/extensions/graphql/queries/ledger/mappings.js +23 -0
  74. package/extensions/graphql/queries/ledger/mappings.ts +21 -0
  75. package/extensions/graphql/queries/ledger/periodCloseStatus.d.ts +6 -0
  76. package/extensions/graphql/queries/ledger/periodCloseStatus.js +29 -0
  77. package/extensions/graphql/queries/ledger/periodCloseStatus.ts +27 -0
  78. package/extensions/graphql/queries/ledger/periodDrafts.d.ts +8 -0
  79. package/extensions/graphql/queries/ledger/periodDrafts.js +45 -0
  80. package/extensions/graphql/queries/ledger/periodDrafts.ts +43 -0
  81. package/extensions/graphql/queries/ledger/publishList.d.ts +5 -0
  82. package/extensions/graphql/queries/ledger/publishList.js +29 -0
  83. package/extensions/graphql/queries/ledger/publishList.ts +27 -0
  84. package/extensions/graphql/queries/ledger/publishLists.d.ts +5 -0
  85. package/extensions/graphql/queries/ledger/publishLists.js +29 -0
  86. package/extensions/graphql/queries/ledger/publishLists.ts +27 -0
  87. package/extensions/graphql/queries/ledger/report.d.ts +5 -0
  88. package/extensions/graphql/queries/ledger/report.js +40 -0
  89. package/extensions/graphql/queries/ledger/report.ts +38 -0
  90. package/extensions/graphql/queries/ledger/reportingTaxonomy.d.ts +6 -0
  91. package/extensions/graphql/queries/ledger/reportingTaxonomy.js +27 -0
  92. package/extensions/graphql/queries/ledger/reportingTaxonomy.ts +25 -0
  93. package/extensions/graphql/queries/ledger/reports.d.ts +8 -0
  94. package/extensions/graphql/queries/ledger/reports.js +45 -0
  95. package/extensions/graphql/queries/ledger/reports.ts +43 -0
  96. package/extensions/graphql/queries/ledger/scheduleFacts.d.ts +7 -0
  97. package/extensions/graphql/queries/ledger/scheduleFacts.js +24 -0
  98. package/extensions/graphql/queries/ledger/scheduleFacts.ts +22 -0
  99. package/extensions/graphql/queries/ledger/schedules.d.ts +6 -0
  100. package/extensions/graphql/queries/ledger/schedules.js +24 -0
  101. package/extensions/graphql/queries/ledger/schedules.ts +22 -0
  102. package/extensions/graphql/queries/ledger/statement.d.ts +9 -0
  103. package/extensions/graphql/queries/ledger/statement.js +43 -0
  104. package/extensions/graphql/queries/ledger/statement.ts +41 -0
  105. package/extensions/graphql/queries/ledger/structures.d.ts +5 -0
  106. package/extensions/graphql/queries/ledger/structures.js +22 -0
  107. package/extensions/graphql/queries/ledger/structures.ts +20 -0
  108. package/extensions/graphql/queries/ledger/summary.d.ts +7 -0
  109. package/extensions/graphql/queries/ledger/summary.js +25 -0
  110. package/extensions/graphql/queries/ledger/summary.ts +23 -0
  111. package/extensions/graphql/queries/ledger/taxonomies.d.ts +5 -0
  112. package/extensions/graphql/queries/ledger/taxonomies.js +28 -0
  113. package/extensions/graphql/queries/ledger/taxonomies.ts +26 -0
  114. package/extensions/graphql/queries/ledger/transaction.d.ts +6 -0
  115. package/extensions/graphql/queries/ledger/transaction.js +49 -0
  116. package/extensions/graphql/queries/ledger/transaction.ts +47 -0
  117. package/extensions/graphql/queries/ledger/transactions.d.ts +7 -0
  118. package/extensions/graphql/queries/ledger/transactions.js +49 -0
  119. package/extensions/graphql/queries/ledger/transactions.ts +47 -0
  120. package/extensions/graphql/queries/ledger/trialBalance.d.ts +7 -0
  121. package/extensions/graphql/queries/ledger/trialBalance.js +28 -0
  122. package/extensions/graphql/queries/ledger/trialBalance.ts +26 -0
  123. package/extensions/graphql/queries/ledger/unmappedElements.d.ts +8 -0
  124. package/extensions/graphql/queries/ledger/unmappedElements.js +29 -0
  125. package/extensions/graphql/queries/ledger/unmappedElements.ts +27 -0
  126. package/extensions/hooks.d.ts +1 -1
  127. package/extensions/index.d.ts +5 -1
  128. package/extensions/index.js +13 -1
  129. package/extensions/index.ts +14 -0
  130. package/index.ts +2 -2
  131. package/package.json +14 -5
  132. package/sdk/index.d.ts +2 -2
  133. package/sdk/index.js +38 -73
  134. package/sdk/index.ts +2 -2
  135. package/sdk/sdk.gen.d.ts +100 -325
  136. package/sdk/sdk.gen.js +228 -592
  137. package/sdk/sdk.gen.ts +193 -556
  138. package/sdk/types.gen.d.ts +4522 -7708
  139. package/sdk/types.gen.ts +4569 -7983
  140. package/sdk.gen.d.ts +100 -325
  141. package/sdk.gen.js +228 -592
  142. package/sdk.gen.ts +193 -556
  143. package/types.gen.d.ts +4522 -7708
  144. package/types.gen.ts +4569 -7983
  145. package/extensions/AgentClient.test.ts +0 -403
  146. package/extensions/LedgerClient.test.ts +0 -1655
  147. package/extensions/OperationClient.test.ts +0 -365
  148. package/extensions/QueryClient.test.ts +0 -432
  149. package/extensions/ReportClient.test.ts +0 -828
  150. package/extensions/SSEClient.test.ts +0 -375
  151. package/extensions/config.test.ts +0 -199
  152. package/extensions/hooks.test.ts +0 -373
  153. package/extensions/index.test.ts +0 -420
  154. package/sdk-extensions/AgentClient.d.ts +0 -82
  155. package/sdk-extensions/AgentClient.js +0 -218
  156. package/sdk-extensions/AgentClient.test.ts +0 -403
  157. package/sdk-extensions/AgentClient.ts +0 -321
  158. package/sdk-extensions/LedgerClient.d.ts +0 -416
  159. package/sdk-extensions/LedgerClient.js +0 -737
  160. package/sdk-extensions/LedgerClient.test.ts +0 -1655
  161. package/sdk-extensions/LedgerClient.ts +0 -1249
  162. package/sdk-extensions/OperationClient.d.ts +0 -65
  163. package/sdk-extensions/OperationClient.js +0 -251
  164. package/sdk-extensions/OperationClient.test.ts +0 -365
  165. package/sdk-extensions/OperationClient.ts +0 -324
  166. package/sdk-extensions/QueryClient.d.ts +0 -52
  167. package/sdk-extensions/QueryClient.js +0 -313
  168. package/sdk-extensions/QueryClient.test.ts +0 -432
  169. package/sdk-extensions/QueryClient.ts +0 -420
  170. package/sdk-extensions/README.md +0 -901
  171. package/sdk-extensions/ReportClient.d.ts +0 -151
  172. package/sdk-extensions/ReportClient.js +0 -278
  173. package/sdk-extensions/ReportClient.test.ts +0 -828
  174. package/sdk-extensions/ReportClient.ts +0 -486
  175. package/sdk-extensions/SSEClient.d.ts +0 -62
  176. package/sdk-extensions/SSEClient.js +0 -154
  177. package/sdk-extensions/SSEClient.test.ts +0 -375
  178. package/sdk-extensions/SSEClient.ts +0 -210
  179. package/sdk-extensions/config.d.ts +0 -57
  180. package/sdk-extensions/config.js +0 -152
  181. package/sdk-extensions/config.test.ts +0 -199
  182. package/sdk-extensions/config.ts +0 -175
  183. package/sdk-extensions/hooks.d.ts +0 -110
  184. package/sdk-extensions/hooks.js +0 -384
  185. package/sdk-extensions/hooks.test.ts +0 -373
  186. package/sdk-extensions/hooks.ts +0 -459
  187. package/sdk-extensions/index.d.ts +0 -63
  188. package/sdk-extensions/index.js +0 -164
  189. package/sdk-extensions/index.test.ts +0 -420
  190. package/sdk-extensions/index.ts +0 -203
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Portfolio holdings grouped by entity. For each entity held, returns
3
+ * the full list of securities and aggregate cost basis / current value.
4
+ *
5
+ * `portfolioId` is required — this always operates on a single portfolio
6
+ * (there's no "holdings across all portfolios" aggregate today).
7
+ */
8
+ export declare const GET_HOLDINGS: string;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_HOLDINGS = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Portfolio holdings grouped by entity. For each entity held, returns
7
+ * the full list of securities and aggregate cost basis / current value.
8
+ *
9
+ * `portfolioId` is required — this always operates on a single portfolio
10
+ * (there's no "holdings across all portfolios" aggregate today).
11
+ */
12
+ exports.GET_HOLDINGS = (0, graphql_request_1.gql) `
13
+ query GetInvestorHoldings($portfolioId: String!) {
14
+ holdings(portfolioId: $portfolioId) {
15
+ totalEntities
16
+ totalPositions
17
+ holdings {
18
+ entityId
19
+ entityName
20
+ sourceGraphId
21
+ totalCostBasisDollars
22
+ totalCurrentValueDollars
23
+ positionCount
24
+ securities {
25
+ securityId
26
+ securityName
27
+ securityType
28
+ quantity
29
+ quantityType
30
+ costBasisDollars
31
+ currentValueDollars
32
+ }
33
+ }
34
+ }
35
+ }
36
+ `;
@@ -0,0 +1,34 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * Portfolio holdings grouped by entity. For each entity held, returns
5
+ * the full list of securities and aggregate cost basis / current value.
6
+ *
7
+ * `portfolioId` is required — this always operates on a single portfolio
8
+ * (there's no "holdings across all portfolios" aggregate today).
9
+ */
10
+ export const GET_HOLDINGS = gql`
11
+ query GetInvestorHoldings($portfolioId: String!) {
12
+ holdings(portfolioId: $portfolioId) {
13
+ totalEntities
14
+ totalPositions
15
+ holdings {
16
+ entityId
17
+ entityName
18
+ sourceGraphId
19
+ totalCostBasisDollars
20
+ totalCurrentValueDollars
21
+ positionCount
22
+ securities {
23
+ securityId
24
+ securityName
25
+ securityType
26
+ quantity
27
+ quantityType
28
+ costBasisDollars
29
+ currentValueDollars
30
+ }
31
+ }
32
+ }
33
+ }
34
+ `
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Single portfolio by id. Returns null if it doesn't exist.
3
+ */
4
+ export declare const GET_PORTFOLIO: string;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_PORTFOLIO = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Single portfolio by id. Returns null if it doesn't exist.
7
+ */
8
+ exports.GET_PORTFOLIO = (0, graphql_request_1.gql) `
9
+ query GetInvestorPortfolio($portfolioId: String!) {
10
+ portfolio(portfolioId: $portfolioId) {
11
+ id
12
+ name
13
+ description
14
+ strategy
15
+ inceptionDate
16
+ baseCurrency
17
+ createdAt
18
+ updatedAt
19
+ }
20
+ }
21
+ `;
@@ -0,0 +1,19 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * Single portfolio by id. Returns null if it doesn't exist.
5
+ */
6
+ export const GET_PORTFOLIO = gql`
7
+ query GetInvestorPortfolio($portfolioId: String!) {
8
+ portfolio(portfolioId: $portfolioId) {
9
+ id
10
+ name
11
+ description
12
+ strategy
13
+ inceptionDate
14
+ baseCurrency
15
+ createdAt
16
+ updatedAt
17
+ }
18
+ }
19
+ `
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Portfolio list with pagination.
3
+ */
4
+ export declare const LIST_PORTFOLIOS: string;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LIST_PORTFOLIOS = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Portfolio list with pagination.
7
+ */
8
+ exports.LIST_PORTFOLIOS = (0, graphql_request_1.gql) `
9
+ query ListInvestorPortfolios($limit: Int! = 100, $offset: Int! = 0) {
10
+ portfolios(limit: $limit, offset: $offset) {
11
+ portfolios {
12
+ id
13
+ name
14
+ description
15
+ strategy
16
+ inceptionDate
17
+ baseCurrency
18
+ createdAt
19
+ updatedAt
20
+ }
21
+ pagination {
22
+ total
23
+ limit
24
+ offset
25
+ hasMore
26
+ }
27
+ }
28
+ }
29
+ `;
@@ -0,0 +1,27 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * Portfolio list with pagination.
5
+ */
6
+ export const LIST_PORTFOLIOS = gql`
7
+ query ListInvestorPortfolios($limit: Int! = 100, $offset: Int! = 0) {
8
+ portfolios(limit: $limit, offset: $offset) {
9
+ portfolios {
10
+ id
11
+ name
12
+ description
13
+ strategy
14
+ inceptionDate
15
+ baseCurrency
16
+ createdAt
17
+ updatedAt
18
+ }
19
+ pagination {
20
+ total
21
+ limit
22
+ offset
23
+ hasMore
24
+ }
25
+ }
26
+ }
27
+ `
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Single position by id. Returns null if it doesn't exist.
3
+ */
4
+ export declare const GET_POSITION: string;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_POSITION = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Single position by id. Returns null if it doesn't exist.
7
+ */
8
+ exports.GET_POSITION = (0, graphql_request_1.gql) `
9
+ query GetInvestorPosition($positionId: String!) {
10
+ position(positionId: $positionId) {
11
+ id
12
+ portfolioId
13
+ securityId
14
+ securityName
15
+ entityName
16
+ quantity
17
+ quantityType
18
+ costBasis
19
+ costBasisDollars
20
+ currency
21
+ currentValue
22
+ currentValueDollars
23
+ valuationDate
24
+ valuationSource
25
+ acquisitionDate
26
+ dispositionDate
27
+ status
28
+ notes
29
+ createdAt
30
+ updatedAt
31
+ }
32
+ }
33
+ `;
@@ -0,0 +1,31 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * Single position by id. Returns null if it doesn't exist.
5
+ */
6
+ export const GET_POSITION = gql`
7
+ query GetInvestorPosition($positionId: String!) {
8
+ position(positionId: $positionId) {
9
+ id
10
+ portfolioId
11
+ securityId
12
+ securityName
13
+ entityName
14
+ quantity
15
+ quantityType
16
+ costBasis
17
+ costBasisDollars
18
+ currency
19
+ currentValue
20
+ currentValueDollars
21
+ valuationDate
22
+ valuationSource
23
+ acquisitionDate
24
+ dispositionDate
25
+ status
26
+ notes
27
+ createdAt
28
+ updatedAt
29
+ }
30
+ }
31
+ `
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Positions list with pagination and filters.
3
+ *
4
+ * `portfolioId` narrows to a single portfolio; `securityId` narrows
5
+ * to all positions holding a specific security (useful for "who owns
6
+ * this security across all portfolios" queries).
7
+ */
8
+ export declare const LIST_POSITIONS: string;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LIST_POSITIONS = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Positions list with pagination and filters.
7
+ *
8
+ * `portfolioId` narrows to a single portfolio; `securityId` narrows
9
+ * to all positions holding a specific security (useful for "who owns
10
+ * this security across all portfolios" queries).
11
+ */
12
+ exports.LIST_POSITIONS = (0, graphql_request_1.gql) `
13
+ query ListInvestorPositions(
14
+ $portfolioId: String
15
+ $securityId: String
16
+ $status: String
17
+ $limit: Int! = 100
18
+ $offset: Int! = 0
19
+ ) {
20
+ positions(
21
+ portfolioId: $portfolioId
22
+ securityId: $securityId
23
+ status: $status
24
+ limit: $limit
25
+ offset: $offset
26
+ ) {
27
+ positions {
28
+ id
29
+ portfolioId
30
+ securityId
31
+ securityName
32
+ entityName
33
+ quantity
34
+ quantityType
35
+ costBasis
36
+ costBasisDollars
37
+ currency
38
+ currentValue
39
+ currentValueDollars
40
+ valuationDate
41
+ valuationSource
42
+ acquisitionDate
43
+ dispositionDate
44
+ status
45
+ notes
46
+ createdAt
47
+ updatedAt
48
+ }
49
+ pagination {
50
+ total
51
+ limit
52
+ offset
53
+ hasMore
54
+ }
55
+ }
56
+ }
57
+ `;
@@ -0,0 +1,55 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * Positions list with pagination and filters.
5
+ *
6
+ * `portfolioId` narrows to a single portfolio; `securityId` narrows
7
+ * to all positions holding a specific security (useful for "who owns
8
+ * this security across all portfolios" queries).
9
+ */
10
+ export const LIST_POSITIONS = gql`
11
+ query ListInvestorPositions(
12
+ $portfolioId: String
13
+ $securityId: String
14
+ $status: String
15
+ $limit: Int! = 100
16
+ $offset: Int! = 0
17
+ ) {
18
+ positions(
19
+ portfolioId: $portfolioId
20
+ securityId: $securityId
21
+ status: $status
22
+ limit: $limit
23
+ offset: $offset
24
+ ) {
25
+ positions {
26
+ id
27
+ portfolioId
28
+ securityId
29
+ securityName
30
+ entityName
31
+ quantity
32
+ quantityType
33
+ costBasis
34
+ costBasisDollars
35
+ currency
36
+ currentValue
37
+ currentValueDollars
38
+ valuationDate
39
+ valuationSource
40
+ acquisitionDate
41
+ dispositionDate
42
+ status
43
+ notes
44
+ createdAt
45
+ updatedAt
46
+ }
47
+ pagination {
48
+ total
49
+ limit
50
+ offset
51
+ hasMore
52
+ }
53
+ }
54
+ }
55
+ `
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Securities list with pagination and filters.
3
+ *
4
+ * `entityId` narrows to securities linked to a specific entity (useful
5
+ * for cross-graph research into a company's equity structure).
6
+ * `terms` is a JSON scalar — consume as an untyped dict in the facade.
7
+ */
8
+ export declare const LIST_SECURITIES: string;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LIST_SECURITIES = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Securities list with pagination and filters.
7
+ *
8
+ * `entityId` narrows to securities linked to a specific entity (useful
9
+ * for cross-graph research into a company's equity structure).
10
+ * `terms` is a JSON scalar — consume as an untyped dict in the facade.
11
+ */
12
+ exports.LIST_SECURITIES = (0, graphql_request_1.gql) `
13
+ query ListInvestorSecurities(
14
+ $entityId: String
15
+ $securityType: String
16
+ $isActive: Boolean
17
+ $limit: Int! = 100
18
+ $offset: Int! = 0
19
+ ) {
20
+ securities(
21
+ entityId: $entityId
22
+ securityType: $securityType
23
+ isActive: $isActive
24
+ limit: $limit
25
+ offset: $offset
26
+ ) {
27
+ securities {
28
+ id
29
+ entityId
30
+ entityName
31
+ sourceGraphId
32
+ name
33
+ securityType
34
+ securitySubtype
35
+ terms
36
+ isActive
37
+ authorizedShares
38
+ outstandingShares
39
+ createdAt
40
+ updatedAt
41
+ }
42
+ pagination {
43
+ total
44
+ limit
45
+ offset
46
+ hasMore
47
+ }
48
+ }
49
+ }
50
+ `;
@@ -0,0 +1,48 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * Securities list with pagination and filters.
5
+ *
6
+ * `entityId` narrows to securities linked to a specific entity (useful
7
+ * for cross-graph research into a company's equity structure).
8
+ * `terms` is a JSON scalar — consume as an untyped dict in the facade.
9
+ */
10
+ export const LIST_SECURITIES = gql`
11
+ query ListInvestorSecurities(
12
+ $entityId: String
13
+ $securityType: String
14
+ $isActive: Boolean
15
+ $limit: Int! = 100
16
+ $offset: Int! = 0
17
+ ) {
18
+ securities(
19
+ entityId: $entityId
20
+ securityType: $securityType
21
+ isActive: $isActive
22
+ limit: $limit
23
+ offset: $offset
24
+ ) {
25
+ securities {
26
+ id
27
+ entityId
28
+ entityName
29
+ sourceGraphId
30
+ name
31
+ securityType
32
+ securitySubtype
33
+ terms
34
+ isActive
35
+ authorizedShares
36
+ outstandingShares
37
+ createdAt
38
+ updatedAt
39
+ }
40
+ pagination {
41
+ total
42
+ limit
43
+ offset
44
+ hasMore
45
+ }
46
+ }
47
+ }
48
+ `
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Single security by id. Returns null if it doesn't exist.
3
+ */
4
+ export declare const GET_SECURITY: string;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_SECURITY = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Single security by id. Returns null if it doesn't exist.
7
+ */
8
+ exports.GET_SECURITY = (0, graphql_request_1.gql) `
9
+ query GetInvestorSecurity($securityId: String!) {
10
+ security(securityId: $securityId) {
11
+ id
12
+ entityId
13
+ entityName
14
+ sourceGraphId
15
+ name
16
+ securityType
17
+ securitySubtype
18
+ terms
19
+ isActive
20
+ authorizedShares
21
+ outstandingShares
22
+ createdAt
23
+ updatedAt
24
+ }
25
+ }
26
+ `;
@@ -0,0 +1,24 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * Single security by id. Returns null if it doesn't exist.
5
+ */
6
+ export const GET_SECURITY = gql`
7
+ query GetInvestorSecurity($securityId: String!) {
8
+ security(securityId: $securityId) {
9
+ id
10
+ entityId
11
+ entityName
12
+ sourceGraphId
13
+ name
14
+ securityType
15
+ securitySubtype
16
+ terms
17
+ isActive
18
+ authorizedShares
19
+ outstandingShares
20
+ createdAt
21
+ updatedAt
22
+ }
23
+ }
24
+ `
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Account rollups grouped by reporting concept via the mapping structure.
3
+ *
4
+ * Pass `mappingId` to pin which mapping structure to roll up through;
5
+ * `startDate` / `endDate` narrow to a specific period (both optional).
6
+ */
7
+ export declare const GET_ACCOUNT_ROLLUPS: string;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_ACCOUNT_ROLLUPS = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Account rollups grouped by reporting concept via the mapping structure.
7
+ *
8
+ * Pass `mappingId` to pin which mapping structure to roll up through;
9
+ * `startDate` / `endDate` narrow to a specific period (both optional).
10
+ */
11
+ exports.GET_ACCOUNT_ROLLUPS = (0, graphql_request_1.gql) `
12
+ query GetLedgerAccountRollups($mappingId: String, $startDate: Date, $endDate: Date) {
13
+ accountRollups(mappingId: $mappingId, startDate: $startDate, endDate: $endDate) {
14
+ mappingId
15
+ mappingName
16
+ totalMapped
17
+ totalUnmapped
18
+ groups {
19
+ reportingElementId
20
+ reportingName
21
+ reportingQname
22
+ classification
23
+ balanceType
24
+ total
25
+ accounts {
26
+ elementId
27
+ accountName
28
+ accountCode
29
+ totalDebits
30
+ totalCredits
31
+ netBalance
32
+ }
33
+ }
34
+ }
35
+ }
36
+ `;
@@ -0,0 +1,34 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * Account rollups grouped by reporting concept via the mapping structure.
5
+ *
6
+ * Pass `mappingId` to pin which mapping structure to roll up through;
7
+ * `startDate` / `endDate` narrow to a specific period (both optional).
8
+ */
9
+ export const GET_ACCOUNT_ROLLUPS = gql`
10
+ query GetLedgerAccountRollups($mappingId: String, $startDate: Date, $endDate: Date) {
11
+ accountRollups(mappingId: $mappingId, startDate: $startDate, endDate: $endDate) {
12
+ mappingId
13
+ mappingName
14
+ totalMapped
15
+ totalUnmapped
16
+ groups {
17
+ reportingElementId
18
+ reportingName
19
+ reportingQname
20
+ classification
21
+ balanceType
22
+ total
23
+ accounts {
24
+ elementId
25
+ accountName
26
+ accountCode
27
+ totalDebits
28
+ totalCredits
29
+ netBalance
30
+ }
31
+ }
32
+ }
33
+ }
34
+ `
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Hierarchical Chart of Accounts tree.
3
+ *
4
+ * The `AccountTreeNode` type is self-referencing (`children` is a list
5
+ * of the same type). GraphQL doesn't have a schema-level depth cap, so
6
+ * we manually select 4 levels deep here — enough for almost every CoA
7
+ * in practice without blowing up the payload. Nodes beyond depth 4 are
8
+ * silently truncated from the result. If a tenant's CoA ever exceeds
9
+ * this, add a 5th level of `children { ... }` selections.
10
+ */
11
+ export declare const GET_ACCOUNT_TREE: string;