@robosystems/client 0.2.48 → 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 +213 -165
  5. package/extensions/LedgerClient.js +315 -393
  6. package/extensions/LedgerClient.ts +887 -564
  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 -65
  134. package/sdk/index.ts +2 -2
  135. package/sdk/sdk.gen.d.ts +101 -220
  136. package/sdk/sdk.gen.js +251 -445
  137. package/sdk/sdk.gen.ts +216 -409
  138. package/sdk/types.gen.d.ts +4586 -7045
  139. package/sdk/types.gen.ts +4702 -7334
  140. package/sdk.gen.d.ts +101 -220
  141. package/sdk.gen.js +251 -445
  142. package/sdk.gen.ts +216 -409
  143. package/types.gen.d.ts +4586 -7045
  144. package/types.gen.ts +4702 -7334
  145. package/extensions/AgentClient.test.ts +0 -403
  146. package/extensions/LedgerClient.test.ts +0 -1138
  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 -242
  159. package/sdk-extensions/LedgerClient.js +0 -496
  160. package/sdk-extensions/LedgerClient.test.ts +0 -1138
  161. package/sdk-extensions/LedgerClient.ts +0 -800
  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,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_MAPPED_TRIAL_BALANCE = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Trial balance rolled up to reporting concepts via a mapping structure.
7
+ *
8
+ * Unlike `trialBalance`, which groups by raw CoA account, this query
9
+ * groups by the US GAAP reporting concept each account maps to. Used
10
+ * by the report builder to preview what a generated statement will
11
+ * look like before materializing it.
12
+ */
13
+ exports.GET_MAPPED_TRIAL_BALANCE = (0, graphql_request_1.gql) `
14
+ query GetLedgerMappedTrialBalance($mappingId: String!, $startDate: Date, $endDate: Date) {
15
+ mappedTrialBalance(mappingId: $mappingId, startDate: $startDate, endDate: $endDate) {
16
+ mappingId
17
+ rows {
18
+ reportingElementId
19
+ qname
20
+ reportingName
21
+ classification
22
+ balanceType
23
+ totalDebits
24
+ totalCredits
25
+ netBalance
26
+ }
27
+ }
28
+ }
29
+ `;
@@ -0,0 +1,27 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * Trial balance rolled up to reporting concepts via a mapping structure.
5
+ *
6
+ * Unlike `trialBalance`, which groups by raw CoA account, this query
7
+ * groups by the US GAAP reporting concept each account maps to. Used
8
+ * by the report builder to preview what a generated statement will
9
+ * look like before materializing it.
10
+ */
11
+ export const GET_MAPPED_TRIAL_BALANCE = gql`
12
+ query GetLedgerMappedTrialBalance($mappingId: String!, $startDate: Date, $endDate: Date) {
13
+ mappedTrialBalance(mappingId: $mappingId, startDate: $startDate, endDate: $endDate) {
14
+ mappingId
15
+ rows {
16
+ reportingElementId
17
+ qname
18
+ reportingName
19
+ classification
20
+ balanceType
21
+ totalDebits
22
+ totalCredits
23
+ netBalance
24
+ }
25
+ }
26
+ }
27
+ `
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Single mapping structure with all its associations. Returns null if
3
+ * the structure doesn't exist.
4
+ */
5
+ export declare const GET_MAPPING: string;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_MAPPING = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Single mapping structure with all its associations. Returns null if
7
+ * the structure doesn't exist.
8
+ */
9
+ exports.GET_MAPPING = (0, graphql_request_1.gql) `
10
+ query GetLedgerMapping($mappingId: String!) {
11
+ mapping(mappingId: $mappingId) {
12
+ id
13
+ name
14
+ structureType
15
+ taxonomyId
16
+ totalAssociations
17
+ associations {
18
+ id
19
+ structureId
20
+ fromElementId
21
+ fromElementName
22
+ fromElementQname
23
+ toElementId
24
+ toElementName
25
+ toElementQname
26
+ associationType
27
+ orderValue
28
+ weight
29
+ confidence
30
+ suggestedBy
31
+ approvedBy
32
+ }
33
+ }
34
+ }
35
+ `;
@@ -0,0 +1,33 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * Single mapping structure with all its associations. Returns null if
5
+ * the structure doesn't exist.
6
+ */
7
+ export const GET_MAPPING = gql`
8
+ query GetLedgerMapping($mappingId: String!) {
9
+ mapping(mappingId: $mappingId) {
10
+ id
11
+ name
12
+ structureType
13
+ taxonomyId
14
+ totalAssociations
15
+ associations {
16
+ id
17
+ structureId
18
+ fromElementId
19
+ fromElementName
20
+ fromElementQname
21
+ toElementId
22
+ toElementName
23
+ toElementQname
24
+ associationType
25
+ orderValue
26
+ weight
27
+ confidence
28
+ suggestedBy
29
+ approvedBy
30
+ }
31
+ }
32
+ }
33
+ `
@@ -0,0 +1,5 @@
1
+ /**
2
+ * CoA → GAAP mapping coverage stats. Used by the MappingAgent to
3
+ * decide "am I done yet?" and by the close screen to show progress.
4
+ */
5
+ export declare const GET_MAPPING_COVERAGE: string;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_MAPPING_COVERAGE = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * CoA → GAAP mapping coverage stats. Used by the MappingAgent to
7
+ * decide "am I done yet?" and by the close screen to show progress.
8
+ */
9
+ exports.GET_MAPPING_COVERAGE = (0, graphql_request_1.gql) `
10
+ query GetLedgerMappingCoverage($mappingId: String!) {
11
+ mappingCoverage(mappingId: $mappingId) {
12
+ mappingId
13
+ totalCoaElements
14
+ mappedCount
15
+ unmappedCount
16
+ coveragePercent
17
+ highConfidence
18
+ mediumConfidence
19
+ lowConfidence
20
+ }
21
+ }
22
+ `;
@@ -0,0 +1,20 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * CoA → GAAP mapping coverage stats. Used by the MappingAgent to
5
+ * decide "am I done yet?" and by the close screen to show progress.
6
+ */
7
+ export const GET_MAPPING_COVERAGE = gql`
8
+ query GetLedgerMappingCoverage($mappingId: String!) {
9
+ mappingCoverage(mappingId: $mappingId) {
10
+ mappingId
11
+ totalCoaElements
12
+ mappedCount
13
+ unmappedCount
14
+ coveragePercent
15
+ highConfidence
16
+ mediumConfidence
17
+ lowConfidence
18
+ }
19
+ }
20
+ `
@@ -0,0 +1,6 @@
1
+ /**
2
+ * All active coa_mapping structures. Returned as a StructureList (same
3
+ * wire shape as `structures`, just filtered server-side to
4
+ * `structure_type = 'coa_mapping'`).
5
+ */
6
+ export declare const LIST_MAPPINGS: string;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LIST_MAPPINGS = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * All active coa_mapping structures. Returned as a StructureList (same
7
+ * wire shape as `structures`, just filtered server-side to
8
+ * `structure_type = 'coa_mapping'`).
9
+ */
10
+ exports.LIST_MAPPINGS = (0, graphql_request_1.gql) `
11
+ query ListLedgerMappings {
12
+ mappings {
13
+ structures {
14
+ id
15
+ name
16
+ description
17
+ structureType
18
+ taxonomyId
19
+ isActive
20
+ }
21
+ }
22
+ }
23
+ `;
@@ -0,0 +1,21 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * All active coa_mapping structures. Returned as a StructureList (same
5
+ * wire shape as `structures`, just filtered server-side to
6
+ * `structure_type = 'coa_mapping'`).
7
+ */
8
+ export const LIST_MAPPINGS = gql`
9
+ query ListLedgerMappings {
10
+ mappings {
11
+ structures {
12
+ id
13
+ name
14
+ description
15
+ structureType
16
+ taxonomyId
17
+ isActive
18
+ }
19
+ }
20
+ }
21
+ `
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Schedule-derived close status for a fiscal period. Shows which
3
+ * schedules have pending / drafted / posted closing entries and how
4
+ * many drafts exist in total.
5
+ */
6
+ export declare const GET_PERIOD_CLOSE_STATUS: string;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_PERIOD_CLOSE_STATUS = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Schedule-derived close status for a fiscal period. Shows which
7
+ * schedules have pending / drafted / posted closing entries and how
8
+ * many drafts exist in total.
9
+ */
10
+ exports.GET_PERIOD_CLOSE_STATUS = (0, graphql_request_1.gql) `
11
+ query GetLedgerPeriodCloseStatus($periodStart: Date!, $periodEnd: Date!) {
12
+ periodCloseStatus(periodStart: $periodStart, periodEnd: $periodEnd) {
13
+ fiscalPeriodStart
14
+ fiscalPeriodEnd
15
+ periodStatus
16
+ totalDraft
17
+ totalPosted
18
+ schedules {
19
+ structureId
20
+ structureName
21
+ amount
22
+ status
23
+ entryId
24
+ reversalEntryId
25
+ reversalStatus
26
+ }
27
+ }
28
+ }
29
+ `;
@@ -0,0 +1,27 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * Schedule-derived close status for a fiscal period. Shows which
5
+ * schedules have pending / drafted / posted closing entries and how
6
+ * many drafts exist in total.
7
+ */
8
+ export const GET_PERIOD_CLOSE_STATUS = gql`
9
+ query GetLedgerPeriodCloseStatus($periodStart: Date!, $periodEnd: Date!) {
10
+ periodCloseStatus(periodStart: $periodStart, periodEnd: $periodEnd) {
11
+ fiscalPeriodStart
12
+ fiscalPeriodEnd
13
+ periodStatus
14
+ totalDraft
15
+ totalPosted
16
+ schedules {
17
+ structureId
18
+ structureName
19
+ amount
20
+ status
21
+ entryId
22
+ reversalEntryId
23
+ reversalStatus
24
+ }
25
+ }
26
+ }
27
+ `
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Every draft entry for a fiscal period, fully expanded with line items
3
+ * and balance check. Used pre-close to review what will be committed.
4
+ *
5
+ * `period` is YYYY-MM format. Balance check is server-side — `balanced`
6
+ * per entry, `allBalanced` for the period total.
7
+ */
8
+ export declare const GET_PERIOD_DRAFTS: string;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_PERIOD_DRAFTS = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Every draft entry for a fiscal period, fully expanded with line items
7
+ * and balance check. Used pre-close to review what will be committed.
8
+ *
9
+ * `period` is YYYY-MM format. Balance check is server-side — `balanced`
10
+ * per entry, `allBalanced` for the period total.
11
+ */
12
+ exports.GET_PERIOD_DRAFTS = (0, graphql_request_1.gql) `
13
+ query GetLedgerPeriodDrafts($period: String!) {
14
+ periodDrafts(period: $period) {
15
+ period
16
+ periodStart
17
+ periodEnd
18
+ draftCount
19
+ totalDebit
20
+ totalCredit
21
+ allBalanced
22
+ drafts {
23
+ entryId
24
+ postingDate
25
+ type
26
+ memo
27
+ provenance
28
+ sourceStructureId
29
+ sourceStructureName
30
+ totalDebit
31
+ totalCredit
32
+ balanced
33
+ lineItems {
34
+ lineItemId
35
+ elementId
36
+ elementCode
37
+ elementName
38
+ debitAmount
39
+ creditAmount
40
+ description
41
+ }
42
+ }
43
+ }
44
+ }
45
+ `;
@@ -0,0 +1,43 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * Every draft entry for a fiscal period, fully expanded with line items
5
+ * and balance check. Used pre-close to review what will be committed.
6
+ *
7
+ * `period` is YYYY-MM format. Balance check is server-side — `balanced`
8
+ * per entry, `allBalanced` for the period total.
9
+ */
10
+ export const GET_PERIOD_DRAFTS = gql`
11
+ query GetLedgerPeriodDrafts($period: String!) {
12
+ periodDrafts(period: $period) {
13
+ period
14
+ periodStart
15
+ periodEnd
16
+ draftCount
17
+ totalDebit
18
+ totalCredit
19
+ allBalanced
20
+ drafts {
21
+ entryId
22
+ postingDate
23
+ type
24
+ memo
25
+ provenance
26
+ sourceStructureId
27
+ sourceStructureName
28
+ totalDebit
29
+ totalCredit
30
+ balanced
31
+ lineItems {
32
+ lineItemId
33
+ elementId
34
+ elementCode
35
+ elementName
36
+ debitAmount
37
+ creditAmount
38
+ description
39
+ }
40
+ }
41
+ }
42
+ }
43
+ `
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Single publish list with full member detail. Returns null if the
3
+ * list doesn't exist or isn't accessible to the caller.
4
+ */
5
+ export declare const GET_PUBLISH_LIST: string;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_PUBLISH_LIST = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Single publish list with full member detail. Returns null if the
7
+ * list doesn't exist or isn't accessible to the caller.
8
+ */
9
+ exports.GET_PUBLISH_LIST = (0, graphql_request_1.gql) `
10
+ query GetLedgerPublishList($listId: String!) {
11
+ publishList(listId: $listId) {
12
+ id
13
+ name
14
+ description
15
+ memberCount
16
+ createdBy
17
+ createdAt
18
+ updatedAt
19
+ members {
20
+ id
21
+ targetGraphId
22
+ targetGraphName
23
+ targetOrgName
24
+ addedBy
25
+ addedAt
26
+ }
27
+ }
28
+ }
29
+ `;
@@ -0,0 +1,27 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * Single publish list with full member detail. Returns null if the
5
+ * list doesn't exist or isn't accessible to the caller.
6
+ */
7
+ export const GET_PUBLISH_LIST = gql`
8
+ query GetLedgerPublishList($listId: String!) {
9
+ publishList(listId: $listId) {
10
+ id
11
+ name
12
+ description
13
+ memberCount
14
+ createdBy
15
+ createdAt
16
+ updatedAt
17
+ members {
18
+ id
19
+ targetGraphId
20
+ targetGraphName
21
+ targetOrgName
22
+ addedBy
23
+ addedAt
24
+ }
25
+ }
26
+ }
27
+ `
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Publish lists (managed distribution lists for sharing reports to
3
+ * other graphs). Paginated.
4
+ */
5
+ export declare const LIST_PUBLISH_LISTS: string;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LIST_PUBLISH_LISTS = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Publish lists (managed distribution lists for sharing reports to
7
+ * other graphs). Paginated.
8
+ */
9
+ exports.LIST_PUBLISH_LISTS = (0, graphql_request_1.gql) `
10
+ query ListLedgerPublishLists($limit: Int! = 100, $offset: Int! = 0) {
11
+ publishLists(limit: $limit, offset: $offset) {
12
+ publishLists {
13
+ id
14
+ name
15
+ description
16
+ memberCount
17
+ createdBy
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
+ * Publish lists (managed distribution lists for sharing reports to
5
+ * other graphs). Paginated.
6
+ */
7
+ export const LIST_PUBLISH_LISTS = gql`
8
+ query ListLedgerPublishLists($limit: Int! = 100, $offset: Int! = 0) {
9
+ publishLists(limit: $limit, offset: $offset) {
10
+ publishLists {
11
+ id
12
+ name
13
+ description
14
+ memberCount
15
+ createdBy
16
+ createdAt
17
+ updatedAt
18
+ }
19
+ pagination {
20
+ total
21
+ limit
22
+ offset
23
+ hasMore
24
+ }
25
+ }
26
+ }
27
+ `
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Single report definition with periods + available structures.
3
+ * Returns null if the report doesn't exist.
4
+ */
5
+ export declare const GET_REPORT: string;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_REPORT = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Single report definition with periods + available structures.
7
+ * Returns null if the report doesn't exist.
8
+ */
9
+ exports.GET_REPORT = (0, graphql_request_1.gql) `
10
+ query GetLedgerReport($reportId: String!) {
11
+ report(reportId: $reportId) {
12
+ id
13
+ name
14
+ taxonomyId
15
+ generationStatus
16
+ periodType
17
+ periodStart
18
+ periodEnd
19
+ comparative
20
+ mappingId
21
+ aiGenerated
22
+ createdAt
23
+ lastGenerated
24
+ entityName
25
+ sourceGraphId
26
+ sourceReportId
27
+ sharedAt
28
+ periods {
29
+ start
30
+ end
31
+ label
32
+ }
33
+ structures {
34
+ id
35
+ name
36
+ structureType
37
+ }
38
+ }
39
+ }
40
+ `;
@@ -0,0 +1,38 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * Single report definition with periods + available structures.
5
+ * Returns null if the report doesn't exist.
6
+ */
7
+ export const GET_REPORT = gql`
8
+ query GetLedgerReport($reportId: String!) {
9
+ report(reportId: $reportId) {
10
+ id
11
+ name
12
+ taxonomyId
13
+ generationStatus
14
+ periodType
15
+ periodStart
16
+ periodEnd
17
+ comparative
18
+ mappingId
19
+ aiGenerated
20
+ createdAt
21
+ lastGenerated
22
+ entityName
23
+ sourceGraphId
24
+ sourceReportId
25
+ sharedAt
26
+ periods {
27
+ start
28
+ end
29
+ label
30
+ }
31
+ structures {
32
+ id
33
+ name
34
+ structureType
35
+ }
36
+ }
37
+ }
38
+ `
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The locked US GAAP reporting taxonomy for this graph (or null if
3
+ * not loaded yet). This is the shared SFAC 6 → us-gaap hierarchy that
4
+ * all reporting statements roll up through.
5
+ */
6
+ export declare const GET_REPORTING_TAXONOMY: string;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_REPORTING_TAXONOMY = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * The locked US GAAP reporting taxonomy for this graph (or null if
7
+ * not loaded yet). This is the shared SFAC 6 → us-gaap hierarchy that
8
+ * all reporting statements roll up through.
9
+ */
10
+ exports.GET_REPORTING_TAXONOMY = (0, graphql_request_1.gql) `
11
+ query GetLedgerReportingTaxonomy {
12
+ reportingTaxonomy {
13
+ id
14
+ name
15
+ description
16
+ taxonomyType
17
+ version
18
+ standard
19
+ namespaceUri
20
+ isShared
21
+ isActive
22
+ isLocked
23
+ sourceTaxonomyId
24
+ targetTaxonomyId
25
+ }
26
+ }
27
+ `;
@@ -0,0 +1,25 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * The locked US GAAP reporting taxonomy for this graph (or null if
5
+ * not loaded yet). This is the shared SFAC 6 → us-gaap hierarchy that
6
+ * all reporting statements roll up through.
7
+ */
8
+ export const GET_REPORTING_TAXONOMY = gql`
9
+ query GetLedgerReportingTaxonomy {
10
+ reportingTaxonomy {
11
+ id
12
+ name
13
+ description
14
+ taxonomyType
15
+ version
16
+ standard
17
+ namespaceUri
18
+ isShared
19
+ isActive
20
+ isLocked
21
+ sourceTaxonomyId
22
+ targetTaxonomyId
23
+ }
24
+ }
25
+ `