@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.
- package/extensions/InvestorClient.d.ts +91 -0
- package/extensions/InvestorClient.js +223 -0
- package/extensions/InvestorClient.ts +501 -0
- package/extensions/LedgerClient.d.ts +183 -309
- package/extensions/LedgerClient.js +268 -587
- package/extensions/LedgerClient.ts +777 -903
- package/extensions/ReportClient.d.ts +77 -115
- package/extensions/ReportClient.js +124 -211
- package/extensions/ReportClient.ts +298 -358
- package/extensions/config.js +1 -1
- package/extensions/config.ts +1 -1
- package/extensions/graphql/client.d.ts +46 -0
- package/extensions/graphql/client.js +75 -0
- package/extensions/graphql/client.ts +82 -0
- package/extensions/graphql/generated/graphql.d.ts +1786 -0
- package/extensions/graphql/generated/graphql.js +2671 -0
- package/extensions/graphql/generated/graphql.ts +4491 -0
- package/extensions/graphql/queries/investor/holdings.d.ts +8 -0
- package/extensions/graphql/queries/investor/holdings.js +36 -0
- package/extensions/graphql/queries/investor/holdings.ts +34 -0
- package/extensions/graphql/queries/investor/portfolio.d.ts +4 -0
- package/extensions/graphql/queries/investor/portfolio.js +21 -0
- package/extensions/graphql/queries/investor/portfolio.ts +19 -0
- package/extensions/graphql/queries/investor/portfolios.d.ts +4 -0
- package/extensions/graphql/queries/investor/portfolios.js +29 -0
- package/extensions/graphql/queries/investor/portfolios.ts +27 -0
- package/extensions/graphql/queries/investor/position.d.ts +4 -0
- package/extensions/graphql/queries/investor/position.js +33 -0
- package/extensions/graphql/queries/investor/position.ts +31 -0
- package/extensions/graphql/queries/investor/positions.d.ts +8 -0
- package/extensions/graphql/queries/investor/positions.js +57 -0
- package/extensions/graphql/queries/investor/positions.ts +55 -0
- package/extensions/graphql/queries/investor/securities.d.ts +8 -0
- package/extensions/graphql/queries/investor/securities.js +50 -0
- package/extensions/graphql/queries/investor/securities.ts +48 -0
- package/extensions/graphql/queries/investor/security.d.ts +4 -0
- package/extensions/graphql/queries/investor/security.js +26 -0
- package/extensions/graphql/queries/investor/security.ts +24 -0
- package/extensions/graphql/queries/ledger/accountRollups.d.ts +7 -0
- package/extensions/graphql/queries/ledger/accountRollups.js +36 -0
- package/extensions/graphql/queries/ledger/accountRollups.ts +34 -0
- package/extensions/graphql/queries/ledger/accountTree.d.ts +11 -0
- package/extensions/graphql/queries/ledger/accountTree.js +61 -0
- package/extensions/graphql/queries/ledger/accountTree.ts +59 -0
- package/extensions/graphql/queries/ledger/accounts.d.ts +8 -0
- package/extensions/graphql/queries/ledger/accounts.js +45 -0
- package/extensions/graphql/queries/ledger/accounts.ts +43 -0
- package/extensions/graphql/queries/ledger/closingBookStructures.d.ts +6 -0
- package/extensions/graphql/queries/ledger/closingBookStructures.js +27 -0
- package/extensions/graphql/queries/ledger/closingBookStructures.ts +25 -0
- package/extensions/graphql/queries/ledger/elements.d.ts +6 -0
- package/extensions/graphql/queries/ledger/elements.js +56 -0
- package/extensions/graphql/queries/ledger/elements.ts +54 -0
- package/extensions/graphql/queries/ledger/entities.d.ts +7 -0
- package/extensions/graphql/queries/ledger/entities.js +31 -0
- package/extensions/graphql/queries/ledger/entities.ts +29 -0
- package/extensions/graphql/queries/ledger/entity.d.ts +14 -0
- package/extensions/graphql/queries/ledger/entity.js +55 -0
- package/extensions/graphql/queries/ledger/entity.ts +54 -0
- package/extensions/graphql/queries/ledger/fiscalCalendar.d.ts +8 -0
- package/extensions/graphql/queries/ledger/fiscalCalendar.js +35 -0
- package/extensions/graphql/queries/ledger/fiscalCalendar.ts +33 -0
- package/extensions/graphql/queries/ledger/mappedTrialBalance.d.ts +9 -0
- package/extensions/graphql/queries/ledger/mappedTrialBalance.js +29 -0
- package/extensions/graphql/queries/ledger/mappedTrialBalance.ts +27 -0
- package/extensions/graphql/queries/ledger/mapping.d.ts +5 -0
- package/extensions/graphql/queries/ledger/mapping.js +35 -0
- package/extensions/graphql/queries/ledger/mapping.ts +33 -0
- package/extensions/graphql/queries/ledger/mappingCoverage.d.ts +5 -0
- package/extensions/graphql/queries/ledger/mappingCoverage.js +22 -0
- package/extensions/graphql/queries/ledger/mappingCoverage.ts +20 -0
- package/extensions/graphql/queries/ledger/mappings.d.ts +6 -0
- package/extensions/graphql/queries/ledger/mappings.js +23 -0
- package/extensions/graphql/queries/ledger/mappings.ts +21 -0
- package/extensions/graphql/queries/ledger/periodCloseStatus.d.ts +6 -0
- package/extensions/graphql/queries/ledger/periodCloseStatus.js +29 -0
- package/extensions/graphql/queries/ledger/periodCloseStatus.ts +27 -0
- package/extensions/graphql/queries/ledger/periodDrafts.d.ts +8 -0
- package/extensions/graphql/queries/ledger/periodDrafts.js +45 -0
- package/extensions/graphql/queries/ledger/periodDrafts.ts +43 -0
- package/extensions/graphql/queries/ledger/publishList.d.ts +5 -0
- package/extensions/graphql/queries/ledger/publishList.js +29 -0
- package/extensions/graphql/queries/ledger/publishList.ts +27 -0
- package/extensions/graphql/queries/ledger/publishLists.d.ts +5 -0
- package/extensions/graphql/queries/ledger/publishLists.js +29 -0
- package/extensions/graphql/queries/ledger/publishLists.ts +27 -0
- package/extensions/graphql/queries/ledger/report.d.ts +5 -0
- package/extensions/graphql/queries/ledger/report.js +40 -0
- package/extensions/graphql/queries/ledger/report.ts +38 -0
- package/extensions/graphql/queries/ledger/reportingTaxonomy.d.ts +6 -0
- package/extensions/graphql/queries/ledger/reportingTaxonomy.js +27 -0
- package/extensions/graphql/queries/ledger/reportingTaxonomy.ts +25 -0
- package/extensions/graphql/queries/ledger/reports.d.ts +8 -0
- package/extensions/graphql/queries/ledger/reports.js +45 -0
- package/extensions/graphql/queries/ledger/reports.ts +43 -0
- package/extensions/graphql/queries/ledger/scheduleFacts.d.ts +7 -0
- package/extensions/graphql/queries/ledger/scheduleFacts.js +24 -0
- package/extensions/graphql/queries/ledger/scheduleFacts.ts +22 -0
- package/extensions/graphql/queries/ledger/schedules.d.ts +6 -0
- package/extensions/graphql/queries/ledger/schedules.js +24 -0
- package/extensions/graphql/queries/ledger/schedules.ts +22 -0
- package/extensions/graphql/queries/ledger/statement.d.ts +9 -0
- package/extensions/graphql/queries/ledger/statement.js +43 -0
- package/extensions/graphql/queries/ledger/statement.ts +41 -0
- package/extensions/graphql/queries/ledger/structures.d.ts +5 -0
- package/extensions/graphql/queries/ledger/structures.js +22 -0
- package/extensions/graphql/queries/ledger/structures.ts +20 -0
- package/extensions/graphql/queries/ledger/summary.d.ts +7 -0
- package/extensions/graphql/queries/ledger/summary.js +25 -0
- package/extensions/graphql/queries/ledger/summary.ts +23 -0
- package/extensions/graphql/queries/ledger/taxonomies.d.ts +5 -0
- package/extensions/graphql/queries/ledger/taxonomies.js +28 -0
- package/extensions/graphql/queries/ledger/taxonomies.ts +26 -0
- package/extensions/graphql/queries/ledger/transaction.d.ts +6 -0
- package/extensions/graphql/queries/ledger/transaction.js +49 -0
- package/extensions/graphql/queries/ledger/transaction.ts +47 -0
- package/extensions/graphql/queries/ledger/transactions.d.ts +7 -0
- package/extensions/graphql/queries/ledger/transactions.js +49 -0
- package/extensions/graphql/queries/ledger/transactions.ts +47 -0
- package/extensions/graphql/queries/ledger/trialBalance.d.ts +7 -0
- package/extensions/graphql/queries/ledger/trialBalance.js +28 -0
- package/extensions/graphql/queries/ledger/trialBalance.ts +26 -0
- package/extensions/graphql/queries/ledger/unmappedElements.d.ts +8 -0
- package/extensions/graphql/queries/ledger/unmappedElements.js +29 -0
- package/extensions/graphql/queries/ledger/unmappedElements.ts +27 -0
- package/extensions/hooks.d.ts +1 -1
- package/extensions/index.d.ts +5 -1
- package/extensions/index.js +13 -1
- package/extensions/index.ts +14 -0
- package/index.ts +2 -2
- package/package.json +14 -5
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +38 -73
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +100 -325
- package/sdk/sdk.gen.js +228 -592
- package/sdk/sdk.gen.ts +193 -556
- package/sdk/types.gen.d.ts +4522 -7708
- package/sdk/types.gen.ts +4569 -7983
- package/sdk.gen.d.ts +100 -325
- package/sdk.gen.js +228 -592
- package/sdk.gen.ts +193 -556
- package/types.gen.d.ts +4522 -7708
- package/types.gen.ts +4569 -7983
- package/extensions/AgentClient.test.ts +0 -403
- package/extensions/LedgerClient.test.ts +0 -1655
- package/extensions/OperationClient.test.ts +0 -365
- package/extensions/QueryClient.test.ts +0 -432
- package/extensions/ReportClient.test.ts +0 -828
- package/extensions/SSEClient.test.ts +0 -375
- package/extensions/config.test.ts +0 -199
- package/extensions/hooks.test.ts +0 -373
- package/extensions/index.test.ts +0 -420
- package/sdk-extensions/AgentClient.d.ts +0 -82
- package/sdk-extensions/AgentClient.js +0 -218
- package/sdk-extensions/AgentClient.test.ts +0 -403
- package/sdk-extensions/AgentClient.ts +0 -321
- package/sdk-extensions/LedgerClient.d.ts +0 -416
- package/sdk-extensions/LedgerClient.js +0 -737
- package/sdk-extensions/LedgerClient.test.ts +0 -1655
- package/sdk-extensions/LedgerClient.ts +0 -1249
- package/sdk-extensions/OperationClient.d.ts +0 -65
- package/sdk-extensions/OperationClient.js +0 -251
- package/sdk-extensions/OperationClient.test.ts +0 -365
- package/sdk-extensions/OperationClient.ts +0 -324
- package/sdk-extensions/QueryClient.d.ts +0 -52
- package/sdk-extensions/QueryClient.js +0 -313
- package/sdk-extensions/QueryClient.test.ts +0 -432
- package/sdk-extensions/QueryClient.ts +0 -420
- package/sdk-extensions/README.md +0 -901
- package/sdk-extensions/ReportClient.d.ts +0 -151
- package/sdk-extensions/ReportClient.js +0 -278
- package/sdk-extensions/ReportClient.test.ts +0 -828
- package/sdk-extensions/ReportClient.ts +0 -486
- package/sdk-extensions/SSEClient.d.ts +0 -62
- package/sdk-extensions/SSEClient.js +0 -154
- package/sdk-extensions/SSEClient.test.ts +0 -375
- package/sdk-extensions/SSEClient.ts +0 -210
- package/sdk-extensions/config.d.ts +0 -57
- package/sdk-extensions/config.js +0 -152
- package/sdk-extensions/config.test.ts +0 -199
- package/sdk-extensions/config.ts +0 -175
- package/sdk-extensions/hooks.d.ts +0 -110
- package/sdk-extensions/hooks.js +0 -384
- package/sdk-extensions/hooks.test.ts +0 -373
- package/sdk-extensions/hooks.ts +0 -459
- package/sdk-extensions/index.d.ts +0 -63
- package/sdk-extensions/index.js +0 -164
- package/sdk-extensions/index.test.ts +0 -420
- package/sdk-extensions/index.ts +0 -203
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* All report definitions for this graph, most recent first.
|
|
3
|
+
*
|
|
4
|
+
* Includes both native reports (generated from this graph's books) and
|
|
5
|
+
* shared reports (materialized from another graph via a publish list).
|
|
6
|
+
* `sourceGraphId` / `sourceReportId` / `sharedAt` identify shared reports.
|
|
7
|
+
*/
|
|
8
|
+
export declare const LIST_REPORTS: string;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LIST_REPORTS = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* All report definitions for this graph, most recent first.
|
|
7
|
+
*
|
|
8
|
+
* Includes both native reports (generated from this graph's books) and
|
|
9
|
+
* shared reports (materialized from another graph via a publish list).
|
|
10
|
+
* `sourceGraphId` / `sourceReportId` / `sharedAt` identify shared reports.
|
|
11
|
+
*/
|
|
12
|
+
exports.LIST_REPORTS = (0, graphql_request_1.gql) `
|
|
13
|
+
query ListLedgerReports {
|
|
14
|
+
reports {
|
|
15
|
+
reports {
|
|
16
|
+
id
|
|
17
|
+
name
|
|
18
|
+
taxonomyId
|
|
19
|
+
generationStatus
|
|
20
|
+
periodType
|
|
21
|
+
periodStart
|
|
22
|
+
periodEnd
|
|
23
|
+
comparative
|
|
24
|
+
mappingId
|
|
25
|
+
aiGenerated
|
|
26
|
+
createdAt
|
|
27
|
+
lastGenerated
|
|
28
|
+
entityName
|
|
29
|
+
sourceGraphId
|
|
30
|
+
sourceReportId
|
|
31
|
+
sharedAt
|
|
32
|
+
periods {
|
|
33
|
+
start
|
|
34
|
+
end
|
|
35
|
+
label
|
|
36
|
+
}
|
|
37
|
+
structures {
|
|
38
|
+
id
|
|
39
|
+
name
|
|
40
|
+
structureType
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* All report definitions for this graph, most recent first.
|
|
5
|
+
*
|
|
6
|
+
* Includes both native reports (generated from this graph's books) and
|
|
7
|
+
* shared reports (materialized from another graph via a publish list).
|
|
8
|
+
* `sourceGraphId` / `sourceReportId` / `sharedAt` identify shared reports.
|
|
9
|
+
*/
|
|
10
|
+
export const LIST_REPORTS = gql`
|
|
11
|
+
query ListLedgerReports {
|
|
12
|
+
reports {
|
|
13
|
+
reports {
|
|
14
|
+
id
|
|
15
|
+
name
|
|
16
|
+
taxonomyId
|
|
17
|
+
generationStatus
|
|
18
|
+
periodType
|
|
19
|
+
periodStart
|
|
20
|
+
periodEnd
|
|
21
|
+
comparative
|
|
22
|
+
mappingId
|
|
23
|
+
aiGenerated
|
|
24
|
+
createdAt
|
|
25
|
+
lastGenerated
|
|
26
|
+
entityName
|
|
27
|
+
sourceGraphId
|
|
28
|
+
sourceReportId
|
|
29
|
+
sharedAt
|
|
30
|
+
periods {
|
|
31
|
+
start
|
|
32
|
+
end
|
|
33
|
+
label
|
|
34
|
+
}
|
|
35
|
+
structures {
|
|
36
|
+
id
|
|
37
|
+
name
|
|
38
|
+
structureType
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* In-scope facts for a schedule. Optional `periodStart` / `periodEnd`
|
|
3
|
+
* narrow to a single period window. Historical facts (pre-
|
|
4
|
+
* `closed_through` at creation time) are hidden — only in-scope rows
|
|
5
|
+
* that drive actual closing entries are returned.
|
|
6
|
+
*/
|
|
7
|
+
export declare const GET_SCHEDULE_FACTS: string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_SCHEDULE_FACTS = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* In-scope facts for a schedule. Optional `periodStart` / `periodEnd`
|
|
7
|
+
* narrow to a single period window. Historical facts (pre-
|
|
8
|
+
* `closed_through` at creation time) are hidden — only in-scope rows
|
|
9
|
+
* that drive actual closing entries are returned.
|
|
10
|
+
*/
|
|
11
|
+
exports.GET_SCHEDULE_FACTS = (0, graphql_request_1.gql) `
|
|
12
|
+
query GetLedgerScheduleFacts($structureId: String!, $periodStart: Date, $periodEnd: Date) {
|
|
13
|
+
scheduleFacts(structureId: $structureId, periodStart: $periodStart, periodEnd: $periodEnd) {
|
|
14
|
+
structureId
|
|
15
|
+
facts {
|
|
16
|
+
elementId
|
|
17
|
+
elementName
|
|
18
|
+
value
|
|
19
|
+
periodStart
|
|
20
|
+
periodEnd
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* In-scope facts for a schedule. Optional `periodStart` / `periodEnd`
|
|
5
|
+
* narrow to a single period window. Historical facts (pre-
|
|
6
|
+
* `closed_through` at creation time) are hidden — only in-scope rows
|
|
7
|
+
* that drive actual closing entries are returned.
|
|
8
|
+
*/
|
|
9
|
+
export const GET_SCHEDULE_FACTS = gql`
|
|
10
|
+
query GetLedgerScheduleFacts($structureId: String!, $periodStart: Date, $periodEnd: Date) {
|
|
11
|
+
scheduleFacts(structureId: $structureId, periodStart: $periodStart, periodEnd: $periodEnd) {
|
|
12
|
+
structureId
|
|
13
|
+
facts {
|
|
14
|
+
elementId
|
|
15
|
+
elementName
|
|
16
|
+
value
|
|
17
|
+
periodStart
|
|
18
|
+
periodEnd
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LIST_SCHEDULES = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* All active schedule structures (depreciation, amortization, accrual)
|
|
7
|
+
* with entry template + metadata. `entryTemplate` and `scheduleMetadata`
|
|
8
|
+
* are JSON scalars — consume as untyped dicts in the facade.
|
|
9
|
+
*/
|
|
10
|
+
exports.LIST_SCHEDULES = (0, graphql_request_1.gql) `
|
|
11
|
+
query ListLedgerSchedules {
|
|
12
|
+
schedules {
|
|
13
|
+
schedules {
|
|
14
|
+
structureId
|
|
15
|
+
name
|
|
16
|
+
taxonomyName
|
|
17
|
+
entryTemplate
|
|
18
|
+
scheduleMetadata
|
|
19
|
+
totalPeriods
|
|
20
|
+
periodsWithEntries
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* All active schedule structures (depreciation, amortization, accrual)
|
|
5
|
+
* with entry template + metadata. `entryTemplate` and `scheduleMetadata`
|
|
6
|
+
* are JSON scalars — consume as untyped dicts in the facade.
|
|
7
|
+
*/
|
|
8
|
+
export const LIST_SCHEDULES = gql`
|
|
9
|
+
query ListLedgerSchedules {
|
|
10
|
+
schedules {
|
|
11
|
+
schedules {
|
|
12
|
+
structureId
|
|
13
|
+
name
|
|
14
|
+
taxonomyName
|
|
15
|
+
entryTemplate
|
|
16
|
+
scheduleMetadata
|
|
17
|
+
totalPeriods
|
|
18
|
+
periodsWithEntries
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Render a financial statement for a report + structure_type.
|
|
3
|
+
*
|
|
4
|
+
* Structure types: `income_statement`, `balance_sheet`,
|
|
5
|
+
* `equity_statement`, `custom`. Returns hierarchically-ordered rows
|
|
6
|
+
* (with depth + subtotal flags) plus the guardrail validation result.
|
|
7
|
+
* The caller usually renders `rows` directly as a nested tree.
|
|
8
|
+
*/
|
|
9
|
+
export declare const GET_STATEMENT: string;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_STATEMENT = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* Render a financial statement for a report + structure_type.
|
|
7
|
+
*
|
|
8
|
+
* Structure types: `income_statement`, `balance_sheet`,
|
|
9
|
+
* `equity_statement`, `custom`. Returns hierarchically-ordered rows
|
|
10
|
+
* (with depth + subtotal flags) plus the guardrail validation result.
|
|
11
|
+
* The caller usually renders `rows` directly as a nested tree.
|
|
12
|
+
*/
|
|
13
|
+
exports.GET_STATEMENT = (0, graphql_request_1.gql) `
|
|
14
|
+
query GetLedgerStatement($reportId: String!, $structureType: String!) {
|
|
15
|
+
statement(reportId: $reportId, structureType: $structureType) {
|
|
16
|
+
reportId
|
|
17
|
+
structureId
|
|
18
|
+
structureName
|
|
19
|
+
structureType
|
|
20
|
+
unmappedCount
|
|
21
|
+
periods {
|
|
22
|
+
start
|
|
23
|
+
end
|
|
24
|
+
label
|
|
25
|
+
}
|
|
26
|
+
rows {
|
|
27
|
+
elementId
|
|
28
|
+
elementQname
|
|
29
|
+
elementName
|
|
30
|
+
classification
|
|
31
|
+
values
|
|
32
|
+
isSubtotal
|
|
33
|
+
depth
|
|
34
|
+
}
|
|
35
|
+
validation {
|
|
36
|
+
passed
|
|
37
|
+
checks
|
|
38
|
+
failures
|
|
39
|
+
warnings
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Render a financial statement for a report + structure_type.
|
|
5
|
+
*
|
|
6
|
+
* Structure types: `income_statement`, `balance_sheet`,
|
|
7
|
+
* `equity_statement`, `custom`. Returns hierarchically-ordered rows
|
|
8
|
+
* (with depth + subtotal flags) plus the guardrail validation result.
|
|
9
|
+
* The caller usually renders `rows` directly as a nested tree.
|
|
10
|
+
*/
|
|
11
|
+
export const GET_STATEMENT = gql`
|
|
12
|
+
query GetLedgerStatement($reportId: String!, $structureType: String!) {
|
|
13
|
+
statement(reportId: $reportId, structureType: $structureType) {
|
|
14
|
+
reportId
|
|
15
|
+
structureId
|
|
16
|
+
structureName
|
|
17
|
+
structureType
|
|
18
|
+
unmappedCount
|
|
19
|
+
periods {
|
|
20
|
+
start
|
|
21
|
+
end
|
|
22
|
+
label
|
|
23
|
+
}
|
|
24
|
+
rows {
|
|
25
|
+
elementId
|
|
26
|
+
elementQname
|
|
27
|
+
elementName
|
|
28
|
+
classification
|
|
29
|
+
values
|
|
30
|
+
isSubtotal
|
|
31
|
+
depth
|
|
32
|
+
}
|
|
33
|
+
validation {
|
|
34
|
+
passed
|
|
35
|
+
checks
|
|
36
|
+
failures
|
|
37
|
+
warnings
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
`
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LIST_STRUCTURES = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* Structures list. Optional filters narrow by taxonomy or structure type
|
|
7
|
+
* (e.g. "coa_mapping", "statement_income", "schedule").
|
|
8
|
+
*/
|
|
9
|
+
exports.LIST_STRUCTURES = (0, graphql_request_1.gql) `
|
|
10
|
+
query ListLedgerStructures($taxonomyId: String, $structureType: String) {
|
|
11
|
+
structures(taxonomyId: $taxonomyId, structureType: $structureType) {
|
|
12
|
+
structures {
|
|
13
|
+
id
|
|
14
|
+
name
|
|
15
|
+
description
|
|
16
|
+
structureType
|
|
17
|
+
taxonomyId
|
|
18
|
+
isActive
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Structures list. Optional filters narrow by taxonomy or structure type
|
|
5
|
+
* (e.g. "coa_mapping", "statement_income", "schedule").
|
|
6
|
+
*/
|
|
7
|
+
export const LIST_STRUCTURES = gql`
|
|
8
|
+
query ListLedgerStructures($taxonomyId: String, $structureType: String) {
|
|
9
|
+
structures(taxonomyId: $taxonomyId, structureType: $structureType) {
|
|
10
|
+
structures {
|
|
11
|
+
id
|
|
12
|
+
name
|
|
13
|
+
description
|
|
14
|
+
structureType
|
|
15
|
+
taxonomyId
|
|
16
|
+
isActive
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_SUMMARY = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* Ledger rollup counts + connection metadata.
|
|
7
|
+
*
|
|
8
|
+
* Pulls account/transaction/entry/line-item counts plus the
|
|
9
|
+
* latest QB sync timestamp from the platform connections table.
|
|
10
|
+
*/
|
|
11
|
+
exports.GET_SUMMARY = (0, graphql_request_1.gql) `
|
|
12
|
+
query GetLedgerSummary {
|
|
13
|
+
summary {
|
|
14
|
+
graphId
|
|
15
|
+
accountCount
|
|
16
|
+
transactionCount
|
|
17
|
+
entryCount
|
|
18
|
+
lineItemCount
|
|
19
|
+
earliestTransactionDate
|
|
20
|
+
latestTransactionDate
|
|
21
|
+
connectionCount
|
|
22
|
+
lastSyncAt
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Ledger rollup counts + connection metadata.
|
|
5
|
+
*
|
|
6
|
+
* Pulls account/transaction/entry/line-item counts plus the
|
|
7
|
+
* latest QB sync timestamp from the platform connections table.
|
|
8
|
+
*/
|
|
9
|
+
export const GET_SUMMARY = gql`
|
|
10
|
+
query GetLedgerSummary {
|
|
11
|
+
summary {
|
|
12
|
+
graphId
|
|
13
|
+
accountCount
|
|
14
|
+
transactionCount
|
|
15
|
+
entryCount
|
|
16
|
+
lineItemCount
|
|
17
|
+
earliestTransactionDate
|
|
18
|
+
latestTransactionDate
|
|
19
|
+
connectionCount
|
|
20
|
+
lastSyncAt
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
`
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LIST_TAXONOMIES = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* List active taxonomies. Optional `taxonomyType` filter narrows to
|
|
7
|
+
* a single type (e.g. "reporting", "mapping", "chart_of_accounts").
|
|
8
|
+
*/
|
|
9
|
+
exports.LIST_TAXONOMIES = (0, graphql_request_1.gql) `
|
|
10
|
+
query ListLedgerTaxonomies($taxonomyType: String) {
|
|
11
|
+
taxonomies(taxonomyType: $taxonomyType) {
|
|
12
|
+
taxonomies {
|
|
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
|
+
}
|
|
28
|
+
`;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* List active taxonomies. Optional `taxonomyType` filter narrows to
|
|
5
|
+
* a single type (e.g. "reporting", "mapping", "chart_of_accounts").
|
|
6
|
+
*/
|
|
7
|
+
export const LIST_TAXONOMIES = gql`
|
|
8
|
+
query ListLedgerTaxonomies($taxonomyType: String) {
|
|
9
|
+
taxonomies(taxonomyType: $taxonomyType) {
|
|
10
|
+
taxonomies {
|
|
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
|
+
}
|
|
26
|
+
`
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_TRANSACTION = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* Single transaction with full entry + line item drill-down.
|
|
7
|
+
*
|
|
8
|
+
* Returns null when the transaction doesn't exist in this graph.
|
|
9
|
+
*/
|
|
10
|
+
exports.GET_TRANSACTION = (0, graphql_request_1.gql) `
|
|
11
|
+
query GetLedgerTransaction($transactionId: String!) {
|
|
12
|
+
transaction(transactionId: $transactionId) {
|
|
13
|
+
id
|
|
14
|
+
number
|
|
15
|
+
type
|
|
16
|
+
category
|
|
17
|
+
amount
|
|
18
|
+
currency
|
|
19
|
+
date
|
|
20
|
+
dueDate
|
|
21
|
+
merchantName
|
|
22
|
+
referenceNumber
|
|
23
|
+
description
|
|
24
|
+
source
|
|
25
|
+
sourceId
|
|
26
|
+
status
|
|
27
|
+
postedAt
|
|
28
|
+
entries {
|
|
29
|
+
id
|
|
30
|
+
number
|
|
31
|
+
type
|
|
32
|
+
postingDate
|
|
33
|
+
memo
|
|
34
|
+
status
|
|
35
|
+
postedAt
|
|
36
|
+
lineItems {
|
|
37
|
+
id
|
|
38
|
+
accountId
|
|
39
|
+
accountName
|
|
40
|
+
accountCode
|
|
41
|
+
debitAmount
|
|
42
|
+
creditAmount
|
|
43
|
+
description
|
|
44
|
+
lineOrder
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
`;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Single transaction with full entry + line item drill-down.
|
|
5
|
+
*
|
|
6
|
+
* Returns null when the transaction doesn't exist in this graph.
|
|
7
|
+
*/
|
|
8
|
+
export const GET_TRANSACTION = gql`
|
|
9
|
+
query GetLedgerTransaction($transactionId: String!) {
|
|
10
|
+
transaction(transactionId: $transactionId) {
|
|
11
|
+
id
|
|
12
|
+
number
|
|
13
|
+
type
|
|
14
|
+
category
|
|
15
|
+
amount
|
|
16
|
+
currency
|
|
17
|
+
date
|
|
18
|
+
dueDate
|
|
19
|
+
merchantName
|
|
20
|
+
referenceNumber
|
|
21
|
+
description
|
|
22
|
+
source
|
|
23
|
+
sourceId
|
|
24
|
+
status
|
|
25
|
+
postedAt
|
|
26
|
+
entries {
|
|
27
|
+
id
|
|
28
|
+
number
|
|
29
|
+
type
|
|
30
|
+
postingDate
|
|
31
|
+
memo
|
|
32
|
+
status
|
|
33
|
+
postedAt
|
|
34
|
+
lineItems {
|
|
35
|
+
id
|
|
36
|
+
accountId
|
|
37
|
+
accountName
|
|
38
|
+
accountCode
|
|
39
|
+
debitAmount
|
|
40
|
+
creditAmount
|
|
41
|
+
description
|
|
42
|
+
lineOrder
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
`
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LIST_TRANSACTIONS = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* Transaction list with pagination and filters.
|
|
7
|
+
*
|
|
8
|
+
* `type` filters to a single transaction type (Bill, Invoice, Payment, etc).
|
|
9
|
+
* `startDate` / `endDate` filter by transaction date.
|
|
10
|
+
*/
|
|
11
|
+
exports.LIST_TRANSACTIONS = (0, graphql_request_1.gql) `
|
|
12
|
+
query ListLedgerTransactions(
|
|
13
|
+
$type: String
|
|
14
|
+
$startDate: Date
|
|
15
|
+
$endDate: Date
|
|
16
|
+
$limit: Int! = 100
|
|
17
|
+
$offset: Int! = 0
|
|
18
|
+
) {
|
|
19
|
+
transactions(
|
|
20
|
+
type: $type
|
|
21
|
+
startDate: $startDate
|
|
22
|
+
endDate: $endDate
|
|
23
|
+
limit: $limit
|
|
24
|
+
offset: $offset
|
|
25
|
+
) {
|
|
26
|
+
transactions {
|
|
27
|
+
id
|
|
28
|
+
number
|
|
29
|
+
type
|
|
30
|
+
category
|
|
31
|
+
amount
|
|
32
|
+
currency
|
|
33
|
+
date
|
|
34
|
+
dueDate
|
|
35
|
+
merchantName
|
|
36
|
+
referenceNumber
|
|
37
|
+
description
|
|
38
|
+
source
|
|
39
|
+
status
|
|
40
|
+
}
|
|
41
|
+
pagination {
|
|
42
|
+
total
|
|
43
|
+
limit
|
|
44
|
+
offset
|
|
45
|
+
hasMore
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
`;
|