@robosystems/client 1.14.1 → 1.16.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/artifacts/LedgerClient.d.ts +39 -3
- package/artifacts/LedgerClient.js +32 -1
- package/artifacts/LedgerClient.ts +82 -1
- package/artifacts/graphql/generated/graphql.d.ts +13 -1
- package/artifacts/graphql/generated/graphql.js +30 -2
- package/artifacts/graphql/generated/graphql.ts +40 -1
- package/artifacts/graphql/queries/ledger/chartTemplates.d.ts +6 -0
- package/artifacts/graphql/queries/ledger/chartTemplates.js +19 -0
- package/artifacts/graphql/queries/ledger/chartTemplates.ts +17 -0
- package/artifacts/graphql/queries/ledger/reportDownloadUrl.d.ts +4 -3
- package/artifacts/graphql/queries/ledger/reportDownloadUrl.js +4 -3
- package/artifacts/graphql/queries/ledger/reportDownloadUrl.ts +4 -3
- package/index.ts +2 -2
- package/package.json +1 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +3 -2
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +10 -2
- package/sdk/sdk.gen.js +20 -3
- package/sdk/sdk.gen.ts +19 -2
- package/sdk/types.gen.d.ts +195 -2
- package/sdk/types.gen.ts +203 -2
- package/sdk.gen.d.ts +10 -2
- package/sdk.gen.js +20 -3
- package/sdk.gen.ts +19 -2
- package/types.gen.d.ts +195 -2
- package/types.gen.ts +203 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AssociationResponse, AutoMapElementsOperation, BindTextBlockRequest, BindTextBlockResponse, BlockedSourceGraphResponse, BlockSourceGraphResult, ComputeMetricsRequest, ComputeMetricsResponse, CreateAgentRequest, CreateEventBlockRequest, CreateEventHandlerRequest, CreateInformationBlockRequest, CreateMappingAssociationOperation, CreateTaxonomyBlockRequest, CreateViewRequest, DeleteInformationBlockRequest, DeleteInformationBlockResponse, DeleteMappingAssociationOperation, DeleteResult, DeleteTaxonomyBlockRequest, DeleteTaxonomyBlockResponse, EntityTaxonomyResponse, EvaluateRulesRequest, EvaluateRulesResponse, EventBlockEnvelope, EventHandlerResponse, FinancialStatementAnalysisRequest, FinancialStatementAnalysisResponse, InformationBlockEnvelope, JournalEntryResponse, LedgerAgentResponse, LinkEntityTaxonomyRequest, LiveFinancialStatementRequest, LiveFinancialStatementResponse, OperationEnvelope, PreviewEventBlockResponse, PublishListMemberResponse, PublishListResponse, ReportResponse, RevokeReportShareResponse, ShareReportResponse, TaxonomyBlockEnvelope, UpdateAgentRequest, UpdateEntityRequest, UpdateEventBlockRequest, UpdateEventHandlerRequest, UpdateInformationBlockRequest, UpdateJournalEntryRequest, UpdateTaxonomyBlockRequest, ViewResponse } from '../types.gen';
|
|
1
|
+
import type { AssociationResponse, AutoMapElementsOperation, BindTextBlockRequest, BindTextBlockResponse, BlockedSourceGraphResponse, BlockSourceGraphResult, ComputeMetricsRequest, ComputeMetricsResponse, CreateAgentRequest, CreateEventBlockRequest, CreateEventHandlerRequest, CreateInformationBlockRequest, CreateMappingAssociationOperation, CreateTaxonomyBlockRequest, CreateViewRequest, DeleteInformationBlockRequest, DeleteInformationBlockResponse, DeleteMappingAssociationOperation, DeleteResult, DeleteTaxonomyBlockRequest, DeleteTaxonomyBlockResponse, EntityTaxonomyResponse, EvaluateRulesRequest, EvaluateRulesResponse, EventBlockEnvelope, EventHandlerResponse, FinancialStatementAnalysisRequest, FinancialStatementAnalysisResponse, InformationBlockEnvelope, InitializeChartOfAccountsRequest, JournalEntryResponse, LedgerAgentResponse, LinkEntityTaxonomyRequest, LiveFinancialStatementRequest, LiveFinancialStatementResponse, OperationEnvelope, PreviewEventBlockResponse, PublishListMemberResponse, PublishListResponse, ReportResponse, RevokeReportShareResponse, ShareReportResponse, TaxonomyBlockEnvelope, UpdateAgentRequest, UpdateEntityRequest, UpdateEventBlockRequest, UpdateEventHandlerRequest, UpdateInformationBlockRequest, UpdateJournalEntryRequest, UpdateTaxonomyBlockRequest, ViewResponse } from '../types.gen';
|
|
2
2
|
import type { TokenProvider } from './graphql/client';
|
|
3
|
-
import { type GetInformationBlockQuery, type GetLedgerAccountRollupsQuery, type GetLedgerAccountTreeQuery, type GetLedgerAgentQuery, type GetLedgerClosingBookStructuresQuery, type GetLedgerEntityQuery, type GetLedgerEventBlockQuery, type GetLedgerFiscalCalendarQuery, type GetLedgerMappedTrialBalanceQuery, type GetLedgerMappingCoverageQuery, type GetLedgerMappingQuery, type GetLedgerPeriodCloseStatusQuery, type GetLedgerPeriodDraftsQuery, type GetLedgerPublishListQuery, type GetLedgerReportingTaxonomyQuery, type GetLedgerReportPackageQuery, type GetLedgerReportQuery, type GetLedgerStatementQuery, type GetLedgerSummaryQuery, type GetLedgerTransactionQuery, type GetLedgerTrialBalanceQuery, type ListInformationBlocksQuery, type ListLedgerAccountsQuery, type ListLedgerAgentsQuery, type ListLedgerBlockedSourceGraphsQuery, type ListLedgerElementsQuery, type ListLedgerEntitiesQuery, type ListLedgerEventBlocksQuery, type ListLedgerJournalEntriesQuery, type ListLedgerMappingsQuery, type ListLedgerPublishListsQuery, type ListLedgerReportsQuery, type ListLedgerStructuresQuery, type ListLedgerTaxonomiesQuery, type ListLedgerTransactionsQuery, type ListLedgerUnmappedElementsQuery, type MappingCandidatesQuery, type ReportDownloadFormat } from './graphql/generated/graphql';
|
|
3
|
+
import { type GetInformationBlockQuery, type GetLedgerAccountRollupsQuery, type GetLedgerAccountTreeQuery, type GetLedgerAgentQuery, type GetLedgerClosingBookStructuresQuery, type GetLedgerEntityQuery, type GetLedgerEventBlockQuery, type GetLedgerFiscalCalendarQuery, type GetLedgerMappedTrialBalanceQuery, type GetLedgerMappingCoverageQuery, type GetLedgerMappingQuery, type GetLedgerPeriodCloseStatusQuery, type GetLedgerPeriodDraftsQuery, type GetLedgerPublishListQuery, type GetLedgerReportingTaxonomyQuery, type GetLedgerReportPackageQuery, type GetLedgerReportQuery, type GetLedgerStatementQuery, type GetLedgerSummaryQuery, type GetLedgerTransactionQuery, type GetLedgerTrialBalanceQuery, type ListChartTemplatesQuery, type ListInformationBlocksQuery, type ListLedgerAccountsQuery, type ListLedgerAgentsQuery, type ListLedgerBlockedSourceGraphsQuery, type ListLedgerElementsQuery, type ListLedgerEntitiesQuery, type ListLedgerEventBlocksQuery, type ListLedgerJournalEntriesQuery, type ListLedgerMappingsQuery, type ListLedgerPublishListsQuery, type ListLedgerReportsQuery, type ListLedgerStructuresQuery, type ListLedgerTaxonomiesQuery, type ListLedgerTransactionsQuery, type ListLedgerUnmappedElementsQuery, type MappingCandidatesQuery, type ReportDownloadFormat } from './graphql/generated/graphql';
|
|
4
4
|
export { GraphQLError } from './graphql/client';
|
|
5
5
|
export type LedgerEntity = NonNullable<GetLedgerEntityQuery['entity']>;
|
|
6
6
|
export type LedgerEntitySummary = ListLedgerEntitiesQuery['entities'][number];
|
|
@@ -45,6 +45,8 @@ export type LedgerDraftEntry = LedgerPeriodDrafts['drafts'][number];
|
|
|
45
45
|
export type LedgerDraftLineItem = LedgerDraftEntry['lineItems'][number];
|
|
46
46
|
export type LedgerClosingBookStructures = NonNullable<GetLedgerClosingBookStructuresQuery['closingBookStructures']>;
|
|
47
47
|
export type LedgerFiscalCalendar = NonNullable<GetLedgerFiscalCalendarQuery['fiscalCalendar']>;
|
|
48
|
+
/** A shipped chart-of-accounts template — `listChartTemplates()` row. */
|
|
49
|
+
export type LedgerChartTemplate = ListChartTemplatesQuery['chartTemplates'][number];
|
|
48
50
|
export type LedgerFiscalPeriod = LedgerFiscalCalendar['periods'][number];
|
|
49
51
|
export type Report = NonNullable<GetLedgerReportQuery['report']>;
|
|
50
52
|
export type ReportPackage = NonNullable<GetLedgerReportPackageQuery['reportPackage']>;
|
|
@@ -162,6 +164,30 @@ export interface InitializeLedgerOptions {
|
|
|
162
164
|
autoSeedSchedules?: boolean;
|
|
163
165
|
note?: string | null;
|
|
164
166
|
}
|
|
167
|
+
/** A shipped chart template key — the `key` of a `listChartTemplates()` row. */
|
|
168
|
+
export type ChartTemplateKey = InitializeChartOfAccountsRequest['template'];
|
|
169
|
+
export interface InitializeChartOfAccountsOptions {
|
|
170
|
+
/**
|
|
171
|
+
* Legal form for the equity mapping: `corporation`, `llc` or `partnership`.
|
|
172
|
+
* Defaults to the graph's primary entity, then to corporation.
|
|
173
|
+
*/
|
|
174
|
+
entityType?: string | null;
|
|
175
|
+
/** Chart display name. Defaults to 'Chart of Accounts'. */
|
|
176
|
+
name?: string | null;
|
|
177
|
+
}
|
|
178
|
+
export interface InitializeChartOfAccountsResult {
|
|
179
|
+
taxonomyId: string;
|
|
180
|
+
name: string;
|
|
181
|
+
template: ChartTemplateKey;
|
|
182
|
+
/** Legal form the equity rows were mapped for. */
|
|
183
|
+
entityType: string;
|
|
184
|
+
elementsCreated: number;
|
|
185
|
+
mappingsCreated: number;
|
|
186
|
+
/** Frameworks the chart was mapped into (rs-gaap today). */
|
|
187
|
+
frameworks: string[];
|
|
188
|
+
/** Targets that did not resolve, or a framework this graph does not carry. Never fatal. */
|
|
189
|
+
unresolved: string[];
|
|
190
|
+
}
|
|
165
191
|
export interface ClosePeriodOptions {
|
|
166
192
|
note?: string | null;
|
|
167
193
|
allowStaleSync?: boolean;
|
|
@@ -568,6 +594,15 @@ export declare class LedgerClient {
|
|
|
568
594
|
getFiscalCalendar(graphId: string): Promise<LedgerFiscalCalendar | null>;
|
|
569
595
|
/** One-time ledger initialization — seed fiscal calendar + periods. */
|
|
570
596
|
initializeLedger(graphId: string, options?: InitializeLedgerOptions): Promise<InitializeLedgerResult>;
|
|
597
|
+
/** Shipped chart-of-accounts templates for `initializeChartOfAccounts`. */
|
|
598
|
+
listChartTemplates(graphId: string): Promise<LedgerChartTemplate[]>;
|
|
599
|
+
/**
|
|
600
|
+
* One-time chart of accounts from a shipped template — the fresh-company
|
|
601
|
+
* path to native books. Refused (409) once the graph has any chart of
|
|
602
|
+
* accounts; a QuickBooks-synced tenant never needs this. Customize the
|
|
603
|
+
* result with `updateTaxonomyBlock`.
|
|
604
|
+
*/
|
|
605
|
+
initializeChartOfAccounts(graphId: string, template: ChartTemplateKey, options?: InitializeChartOfAccountsOptions): Promise<InitializeChartOfAccountsResult>;
|
|
571
606
|
/** Set the user-controlled close target (YYYY-MM). */
|
|
572
607
|
setCloseTarget(graphId: string, period: string, note?: string | null): Promise<LedgerFiscalCalendar>;
|
|
573
608
|
/** Close a fiscal period — the final commit action. */
|
|
@@ -726,7 +761,8 @@ export declare class LedgerClient {
|
|
|
726
761
|
*
|
|
727
762
|
* @param graphId Graph identifier owning the Report.
|
|
728
763
|
* @param reportId Report identifier (rpt_-prefixed ULID).
|
|
729
|
-
* @param options.format Serialization flavor — `JSONLD` (default)
|
|
764
|
+
* @param options.format Serialization flavor — `JSONLD` (default), `HOLON_JSONLD`,
|
|
765
|
+
* `XBRL_2_1`, or `TAVI` (the Project Tavi compiled model).
|
|
730
766
|
* @param options.expiresIn Presigned URL lifetime, in seconds.
|
|
731
767
|
*/
|
|
732
768
|
getReportDownloadUrl(graphId: string, reportId: string, options?: {
|
|
@@ -593,6 +593,36 @@ class LedgerClient {
|
|
|
593
593
|
warnings: raw.warnings ?? [],
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
|
+
// ── Chart of Accounts ──────────────────────────────────────────────
|
|
597
|
+
/** Shipped chart-of-accounts templates for `initializeChartOfAccounts`. */
|
|
598
|
+
async listChartTemplates(graphId) {
|
|
599
|
+
return this.gqlQuery(graphId, graphql_1.ListChartTemplatesDocument, undefined, 'List chart templates', (data) => data.chartTemplates);
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* One-time chart of accounts from a shipped template — the fresh-company
|
|
603
|
+
* path to native books. Refused (409) once the graph has any chart of
|
|
604
|
+
* accounts; a QuickBooks-synced tenant never needs this. Customize the
|
|
605
|
+
* result with `updateTaxonomyBlock`.
|
|
606
|
+
*/
|
|
607
|
+
async initializeChartOfAccounts(graphId, template, options) {
|
|
608
|
+
const body = {
|
|
609
|
+
template,
|
|
610
|
+
entity_type: options?.entityType ?? null,
|
|
611
|
+
name: options?.name ?? null,
|
|
612
|
+
};
|
|
613
|
+
const envelope = await this.callOperation('Initialize chart of accounts', (0, sdk_gen_1.initializeChartOfAccounts)({ path: { graph_id: graphId }, body }));
|
|
614
|
+
const raw = envelope.result;
|
|
615
|
+
return {
|
|
616
|
+
taxonomyId: raw.taxonomy_id,
|
|
617
|
+
name: raw.name,
|
|
618
|
+
template: raw.template,
|
|
619
|
+
entityType: raw.entity_type,
|
|
620
|
+
elementsCreated: raw.elements_created,
|
|
621
|
+
mappingsCreated: raw.mappings_created,
|
|
622
|
+
frameworks: raw.frameworks ?? [],
|
|
623
|
+
unresolved: raw.unresolved ?? [],
|
|
624
|
+
};
|
|
625
|
+
}
|
|
596
626
|
/** Set the user-controlled close target (YYYY-MM). */
|
|
597
627
|
async setCloseTarget(graphId, period, note) {
|
|
598
628
|
const body = { period, note: note ?? null };
|
|
@@ -920,7 +950,8 @@ class LedgerClient {
|
|
|
920
950
|
*
|
|
921
951
|
* @param graphId Graph identifier owning the Report.
|
|
922
952
|
* @param reportId Report identifier (rpt_-prefixed ULID).
|
|
923
|
-
* @param options.format Serialization flavor — `JSONLD` (default)
|
|
953
|
+
* @param options.format Serialization flavor — `JSONLD` (default), `HOLON_JSONLD`,
|
|
954
|
+
* `XBRL_2_1`, or `TAVI` (the Project Tavi compiled model).
|
|
924
955
|
* @param options.expiresIn Presigned URL lifetime, in seconds.
|
|
925
956
|
*/
|
|
926
957
|
async getReportDownloadUrl(graphId, reportId, options = {}) {
|
|
@@ -49,6 +49,7 @@ import {
|
|
|
49
49
|
evaluateRules,
|
|
50
50
|
fileReport,
|
|
51
51
|
financialStatementAnalysis,
|
|
52
|
+
initializeChartOfAccounts,
|
|
52
53
|
initializeLedger,
|
|
53
54
|
linkEntityTaxonomy,
|
|
54
55
|
liveFinancialStatement,
|
|
@@ -107,6 +108,8 @@ import type {
|
|
|
107
108
|
FinancialStatementAnalysisRequest,
|
|
108
109
|
FinancialStatementAnalysisResponse,
|
|
109
110
|
InformationBlockEnvelope,
|
|
111
|
+
InitializeChartOfAccountsRequest,
|
|
112
|
+
InitializeChartOfAccountsResponse,
|
|
110
113
|
InitializeLedgerRequest,
|
|
111
114
|
JournalEntryResponse,
|
|
112
115
|
LedgerAgentResponse,
|
|
@@ -162,6 +165,7 @@ import {
|
|
|
162
165
|
GetLedgerSummaryDocument,
|
|
163
166
|
GetLedgerTransactionDocument,
|
|
164
167
|
GetLedgerTrialBalanceDocument,
|
|
168
|
+
ListChartTemplatesDocument,
|
|
165
169
|
ListInformationBlocksDocument,
|
|
166
170
|
ListLedgerAccountsDocument,
|
|
167
171
|
ListLedgerAgentsDocument,
|
|
@@ -199,6 +203,7 @@ import {
|
|
|
199
203
|
type GetLedgerSummaryQuery,
|
|
200
204
|
type GetLedgerTransactionQuery,
|
|
201
205
|
type GetLedgerTrialBalanceQuery,
|
|
206
|
+
type ListChartTemplatesQuery,
|
|
202
207
|
type ListInformationBlocksQuery,
|
|
203
208
|
type ListLedgerAccountsQuery,
|
|
204
209
|
type ListLedgerAgentsQuery,
|
|
@@ -295,6 +300,8 @@ export type LedgerClosingBookStructures = NonNullable<
|
|
|
295
300
|
>
|
|
296
301
|
|
|
297
302
|
export type LedgerFiscalCalendar = NonNullable<GetLedgerFiscalCalendarQuery['fiscalCalendar']>
|
|
303
|
+
/** A shipped chart-of-accounts template — `listChartTemplates()` row. */
|
|
304
|
+
export type LedgerChartTemplate = ListChartTemplatesQuery['chartTemplates'][number]
|
|
298
305
|
export type LedgerFiscalPeriod = LedgerFiscalCalendar['periods'][number]
|
|
299
306
|
|
|
300
307
|
// Reports + publish lists + statements
|
|
@@ -508,6 +515,33 @@ export interface InitializeLedgerOptions {
|
|
|
508
515
|
note?: string | null
|
|
509
516
|
}
|
|
510
517
|
|
|
518
|
+
/** A shipped chart template key — the `key` of a `listChartTemplates()` row. */
|
|
519
|
+
export type ChartTemplateKey = InitializeChartOfAccountsRequest['template']
|
|
520
|
+
|
|
521
|
+
export interface InitializeChartOfAccountsOptions {
|
|
522
|
+
/**
|
|
523
|
+
* Legal form for the equity mapping: `corporation`, `llc` or `partnership`.
|
|
524
|
+
* Defaults to the graph's primary entity, then to corporation.
|
|
525
|
+
*/
|
|
526
|
+
entityType?: string | null
|
|
527
|
+
/** Chart display name. Defaults to 'Chart of Accounts'. */
|
|
528
|
+
name?: string | null
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
export interface InitializeChartOfAccountsResult {
|
|
532
|
+
taxonomyId: string
|
|
533
|
+
name: string
|
|
534
|
+
template: ChartTemplateKey
|
|
535
|
+
/** Legal form the equity rows were mapped for. */
|
|
536
|
+
entityType: string
|
|
537
|
+
elementsCreated: number
|
|
538
|
+
mappingsCreated: number
|
|
539
|
+
/** Frameworks the chart was mapped into (rs-gaap today). */
|
|
540
|
+
frameworks: string[]
|
|
541
|
+
/** Targets that did not resolve, or a framework this graph does not carry. Never fatal. */
|
|
542
|
+
unresolved: string[]
|
|
543
|
+
}
|
|
544
|
+
|
|
511
545
|
export interface ClosePeriodOptions {
|
|
512
546
|
note?: string | null
|
|
513
547
|
allowStaleSync?: boolean
|
|
@@ -1684,6 +1718,52 @@ export class LedgerClient {
|
|
|
1684
1718
|
}
|
|
1685
1719
|
}
|
|
1686
1720
|
|
|
1721
|
+
// ── Chart of Accounts ──────────────────────────────────────────────
|
|
1722
|
+
|
|
1723
|
+
/** Shipped chart-of-accounts templates for `initializeChartOfAccounts`. */
|
|
1724
|
+
async listChartTemplates(graphId: string): Promise<LedgerChartTemplate[]> {
|
|
1725
|
+
return this.gqlQuery(
|
|
1726
|
+
graphId,
|
|
1727
|
+
ListChartTemplatesDocument,
|
|
1728
|
+
undefined,
|
|
1729
|
+
'List chart templates',
|
|
1730
|
+
(data) => data.chartTemplates
|
|
1731
|
+
)
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
/**
|
|
1735
|
+
* One-time chart of accounts from a shipped template — the fresh-company
|
|
1736
|
+
* path to native books. Refused (409) once the graph has any chart of
|
|
1737
|
+
* accounts; a QuickBooks-synced tenant never needs this. Customize the
|
|
1738
|
+
* result with `updateTaxonomyBlock`.
|
|
1739
|
+
*/
|
|
1740
|
+
async initializeChartOfAccounts(
|
|
1741
|
+
graphId: string,
|
|
1742
|
+
template: ChartTemplateKey,
|
|
1743
|
+
options?: InitializeChartOfAccountsOptions
|
|
1744
|
+
): Promise<InitializeChartOfAccountsResult> {
|
|
1745
|
+
const body: InitializeChartOfAccountsRequest = {
|
|
1746
|
+
template,
|
|
1747
|
+
entity_type: options?.entityType ?? null,
|
|
1748
|
+
name: options?.name ?? null,
|
|
1749
|
+
}
|
|
1750
|
+
const envelope = await this.callOperation(
|
|
1751
|
+
'Initialize chart of accounts',
|
|
1752
|
+
initializeChartOfAccounts({ path: { graph_id: graphId }, body })
|
|
1753
|
+
)
|
|
1754
|
+
const raw = envelope.result as unknown as InitializeChartOfAccountsResponse
|
|
1755
|
+
return {
|
|
1756
|
+
taxonomyId: raw.taxonomy_id,
|
|
1757
|
+
name: raw.name,
|
|
1758
|
+
template: raw.template,
|
|
1759
|
+
entityType: raw.entity_type,
|
|
1760
|
+
elementsCreated: raw.elements_created,
|
|
1761
|
+
mappingsCreated: raw.mappings_created,
|
|
1762
|
+
frameworks: raw.frameworks ?? [],
|
|
1763
|
+
unresolved: raw.unresolved ?? [],
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1687
1767
|
/** Set the user-controlled close target (YYYY-MM). */
|
|
1688
1768
|
async setCloseTarget(
|
|
1689
1769
|
graphId: string,
|
|
@@ -2190,7 +2270,8 @@ export class LedgerClient {
|
|
|
2190
2270
|
*
|
|
2191
2271
|
* @param graphId Graph identifier owning the Report.
|
|
2192
2272
|
* @param reportId Report identifier (rpt_-prefixed ULID).
|
|
2193
|
-
* @param options.format Serialization flavor — `JSONLD` (default)
|
|
2273
|
+
* @param options.format Serialization flavor — `JSONLD` (default), `HOLON_JSONLD`,
|
|
2274
|
+
* `XBRL_2_1`, or `TAVI` (the Project Tavi compiled model).
|
|
2194
2275
|
* @param options.expiresIn Presigned URL lifetime, in seconds.
|
|
2195
2276
|
*/
|
|
2196
2277
|
async getReportDownloadUrl(
|
|
@@ -9,7 +9,7 @@ export type Incremental<T> = T | {
|
|
|
9
9
|
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
10
10
|
};
|
|
11
11
|
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
12
|
-
export type ReportDownloadFormat = 'HOLON_JSONLD' | 'JSONLD' | 'XBRL_2_1';
|
|
12
|
+
export type ReportDownloadFormat = 'HOLON_JSONLD' | 'JSONLD' | 'TAVI' | 'XBRL_2_1';
|
|
13
13
|
export type GetInvestorHoldingsQueryVariables = Exact<{
|
|
14
14
|
portfolioId: string;
|
|
15
15
|
}>;
|
|
@@ -411,6 +411,17 @@ export type ListLedgerBlockedSourceGraphsQuery = {
|
|
|
411
411
|
};
|
|
412
412
|
} | null;
|
|
413
413
|
};
|
|
414
|
+
export type ListChartTemplatesQueryVariables = Exact<{
|
|
415
|
+
[key: string]: never;
|
|
416
|
+
}>;
|
|
417
|
+
export type ListChartTemplatesQuery = {
|
|
418
|
+
chartTemplates: Array<{
|
|
419
|
+
key: string;
|
|
420
|
+
displayName: string;
|
|
421
|
+
description: string;
|
|
422
|
+
accountCount: number;
|
|
423
|
+
}>;
|
|
424
|
+
};
|
|
414
425
|
export type GetLedgerClosingBookStructuresQueryVariables = Exact<{
|
|
415
426
|
[key: string]: never;
|
|
416
427
|
}>;
|
|
@@ -2102,6 +2113,7 @@ export declare const ListLedgerAccountsDocument: DocumentNode<ListLedgerAccounts
|
|
|
2102
2113
|
export declare const GetLedgerAgentDocument: DocumentNode<GetLedgerAgentQuery, GetLedgerAgentQueryVariables>;
|
|
2103
2114
|
export declare const ListLedgerAgentsDocument: DocumentNode<ListLedgerAgentsQuery, ListLedgerAgentsQueryVariables>;
|
|
2104
2115
|
export declare const ListLedgerBlockedSourceGraphsDocument: DocumentNode<ListLedgerBlockedSourceGraphsQuery, ListLedgerBlockedSourceGraphsQueryVariables>;
|
|
2116
|
+
export declare const ListChartTemplatesDocument: DocumentNode<ListChartTemplatesQuery, ListChartTemplatesQueryVariables>;
|
|
2105
2117
|
export declare const GetLedgerClosingBookStructuresDocument: DocumentNode<GetLedgerClosingBookStructuresQuery, GetLedgerClosingBookStructuresQueryVariables>;
|
|
2106
2118
|
export declare const ListLedgerElementsDocument: DocumentNode<ListLedgerElementsQuery, ListLedgerElementsQueryVariables>;
|
|
2107
2119
|
export declare const ListLedgerEntitiesDocument: DocumentNode<ListLedgerEntitiesQuery, ListLedgerEntitiesQueryVariables>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.GetLibraryTaxonomyDocument = exports.ListLibraryTaxonomiesDocument = exports.GetLibraryStructureDocument = exports.ListLibraryStructuresDocument = exports.GetLibraryElementDocument = exports.SearchLibraryElementsDocument = exports.ListLibraryElementsDocument = void 0;
|
|
3
|
+
exports.GetLibraryElementClassificationsDocument = exports.GetLibraryElementArcsDocument = exports.ListLibraryTaxonomyArcsDocument = exports.ListLedgerUnmappedElementsDocument = exports.GetLedgerTrialBalanceDocument = exports.ListLedgerTransactionsDocument = exports.GetLedgerTransactionDocument = exports.ListLedgerTaxonomiesDocument = exports.GetLedgerSummaryDocument = exports.ListLedgerStructuresDocument = exports.GetLedgerStatementDocument = exports.ListLedgerReportsDocument = exports.GetLedgerReportingTaxonomyDocument = exports.GetLedgerReportPackageDocument = exports.GetLedgerReportDownloadUrlDocument = exports.GetLedgerReportDocument = exports.ListLedgerPublishListsDocument = exports.GetLedgerPublishListDocument = exports.GetLedgerPeriodDraftsDocument = exports.GetLedgerPeriodCloseStatusDocument = exports.ListLedgerMappingsDocument = exports.GetLedgerMappingCoverageDocument = exports.MappingCandidatesDocument = exports.GetLedgerMappingDocument = exports.GetLedgerMappedTrialBalanceDocument = exports.ListLedgerJournalEntriesDocument = exports.ListInformationBlocksDocument = exports.GetInformationBlockWindowedDocument = exports.GetInformationBlockDocument = exports.GetLedgerFiscalCalendarDocument = exports.ListLedgerEventBlocksDocument = exports.GetLedgerEventBlockDocument = exports.GetLedgerEntityDocument = exports.ListLedgerEntitiesDocument = exports.ListLedgerElementsDocument = exports.GetLedgerClosingBookStructuresDocument = exports.ListChartTemplatesDocument = exports.ListLedgerBlockedSourceGraphsDocument = exports.ListLedgerAgentsDocument = exports.GetLedgerAgentDocument = exports.ListLedgerAccountsDocument = exports.GetLedgerAccountTreeDocument = exports.GetLedgerAccountRollupsDocument = exports.GetInvestorSecurityDocument = exports.ListInvestorSecuritiesDocument = exports.ListInvestorPositionsDocument = exports.GetInvestorPositionDocument = exports.ListInvestorPortfoliosDocument = exports.GetInvestorPortfolioBlockDocument = exports.GetInvestorHoldingsDocument = void 0;
|
|
4
|
+
exports.GetLibraryTaxonomyDocument = exports.ListLibraryTaxonomiesDocument = exports.GetLibraryStructureDocument = exports.ListLibraryStructuresDocument = exports.GetLibraryElementDocument = exports.SearchLibraryElementsDocument = exports.ListLibraryElementsDocument = exports.GetLibraryElementEquivalentsDocument = void 0;
|
|
5
5
|
exports.GetInvestorHoldingsDocument = {
|
|
6
6
|
kind: 'Document',
|
|
7
7
|
definitions: [
|
|
@@ -1190,6 +1190,34 @@ exports.ListLedgerBlockedSourceGraphsDocument = {
|
|
|
1190
1190
|
},
|
|
1191
1191
|
],
|
|
1192
1192
|
};
|
|
1193
|
+
exports.ListChartTemplatesDocument = {
|
|
1194
|
+
kind: 'Document',
|
|
1195
|
+
definitions: [
|
|
1196
|
+
{
|
|
1197
|
+
kind: 'OperationDefinition',
|
|
1198
|
+
operation: 'query',
|
|
1199
|
+
name: { kind: 'Name', value: 'ListChartTemplates' },
|
|
1200
|
+
selectionSet: {
|
|
1201
|
+
kind: 'SelectionSet',
|
|
1202
|
+
selections: [
|
|
1203
|
+
{
|
|
1204
|
+
kind: 'Field',
|
|
1205
|
+
name: { kind: 'Name', value: 'chartTemplates' },
|
|
1206
|
+
selectionSet: {
|
|
1207
|
+
kind: 'SelectionSet',
|
|
1208
|
+
selections: [
|
|
1209
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'key' } },
|
|
1210
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'displayName' } },
|
|
1211
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'description' } },
|
|
1212
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'accountCount' } },
|
|
1213
|
+
],
|
|
1214
|
+
},
|
|
1215
|
+
},
|
|
1216
|
+
],
|
|
1217
|
+
},
|
|
1218
|
+
},
|
|
1219
|
+
],
|
|
1220
|
+
};
|
|
1193
1221
|
exports.GetLedgerClosingBookStructuresDocument = {
|
|
1194
1222
|
kind: 'Document',
|
|
1195
1223
|
definitions: [
|
|
@@ -4,7 +4,7 @@ type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }
|
|
|
4
4
|
export type Incremental<T> =
|
|
5
5
|
T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }
|
|
6
6
|
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'
|
|
7
|
-
export type ReportDownloadFormat = 'HOLON_JSONLD' | 'JSONLD' | 'XBRL_2_1'
|
|
7
|
+
export type ReportDownloadFormat = 'HOLON_JSONLD' | 'JSONLD' | 'TAVI' | 'XBRL_2_1'
|
|
8
8
|
|
|
9
9
|
export type GetInvestorHoldingsQueryVariables = Exact<{
|
|
10
10
|
portfolioId: string
|
|
@@ -398,6 +398,17 @@ export type ListLedgerBlockedSourceGraphsQuery = {
|
|
|
398
398
|
} | null
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
+
export type ListChartTemplatesQueryVariables = Exact<{ [key: string]: never }>
|
|
402
|
+
|
|
403
|
+
export type ListChartTemplatesQuery = {
|
|
404
|
+
chartTemplates: Array<{
|
|
405
|
+
key: string
|
|
406
|
+
displayName: string
|
|
407
|
+
description: string
|
|
408
|
+
accountCount: number
|
|
409
|
+
}>
|
|
410
|
+
}
|
|
411
|
+
|
|
401
412
|
export type GetLedgerClosingBookStructuresQueryVariables = Exact<{ [key: string]: never }>
|
|
402
413
|
|
|
403
414
|
export type GetLedgerClosingBookStructuresQuery = {
|
|
@@ -3211,6 +3222,34 @@ export const ListLedgerBlockedSourceGraphsDocument = {
|
|
|
3211
3222
|
ListLedgerBlockedSourceGraphsQuery,
|
|
3212
3223
|
ListLedgerBlockedSourceGraphsQueryVariables
|
|
3213
3224
|
>
|
|
3225
|
+
export const ListChartTemplatesDocument = {
|
|
3226
|
+
kind: 'Document',
|
|
3227
|
+
definitions: [
|
|
3228
|
+
{
|
|
3229
|
+
kind: 'OperationDefinition',
|
|
3230
|
+
operation: 'query',
|
|
3231
|
+
name: { kind: 'Name', value: 'ListChartTemplates' },
|
|
3232
|
+
selectionSet: {
|
|
3233
|
+
kind: 'SelectionSet',
|
|
3234
|
+
selections: [
|
|
3235
|
+
{
|
|
3236
|
+
kind: 'Field',
|
|
3237
|
+
name: { kind: 'Name', value: 'chartTemplates' },
|
|
3238
|
+
selectionSet: {
|
|
3239
|
+
kind: 'SelectionSet',
|
|
3240
|
+
selections: [
|
|
3241
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'key' } },
|
|
3242
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'displayName' } },
|
|
3243
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'description' } },
|
|
3244
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'accountCount' } },
|
|
3245
|
+
],
|
|
3246
|
+
},
|
|
3247
|
+
},
|
|
3248
|
+
],
|
|
3249
|
+
},
|
|
3250
|
+
},
|
|
3251
|
+
],
|
|
3252
|
+
} as unknown as DocumentNode<ListChartTemplatesQuery, ListChartTemplatesQueryVariables>
|
|
3214
3253
|
export const GetLedgerClosingBookStructuresDocument = {
|
|
3215
3254
|
kind: 'Document',
|
|
3216
3255
|
definitions: [
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shipped chart-of-accounts templates for `initializeChartOfAccounts` —
|
|
3
|
+
* the fresh-company path to native books. Keys are stable (`saas`,
|
|
4
|
+
* `services`, `product`); `accountCount` is the rows the template creates.
|
|
5
|
+
*/
|
|
6
|
+
export declare const LIST_CHART_TEMPLATES: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LIST_CHART_TEMPLATES = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* Shipped chart-of-accounts templates for `initializeChartOfAccounts` —
|
|
7
|
+
* the fresh-company path to native books. Keys are stable (`saas`,
|
|
8
|
+
* `services`, `product`); `accountCount` is the rows the template creates.
|
|
9
|
+
*/
|
|
10
|
+
exports.LIST_CHART_TEMPLATES = (0, graphql_request_1.gql) `
|
|
11
|
+
query ListChartTemplates {
|
|
12
|
+
chartTemplates {
|
|
13
|
+
key
|
|
14
|
+
displayName
|
|
15
|
+
description
|
|
16
|
+
accountCount
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Shipped chart-of-accounts templates for `initializeChartOfAccounts` —
|
|
5
|
+
* the fresh-company path to native books. Keys are stable (`saas`,
|
|
6
|
+
* `services`, `product`); `accountCount` is the rows the template creates.
|
|
7
|
+
*/
|
|
8
|
+
export const LIST_CHART_TEMPLATES = gql`
|
|
9
|
+
query ListChartTemplates {
|
|
10
|
+
chartTemplates {
|
|
11
|
+
key
|
|
12
|
+
displayName
|
|
13
|
+
description
|
|
14
|
+
accountCount
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
`
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* Replaces the retired `GET .../reports/{id}/download` REST resource — a
|
|
5
5
|
* download is a read of stored state, so it lives on the read surface.
|
|
6
6
|
* Every flavor resolves to a short-lived presigned S3 URL the client
|
|
7
|
-
* follows directly (JSON-LD is stamped at publish time; XBRL
|
|
8
|
-
* materialized + cached on first
|
|
9
|
-
* `ReportDownloadFormat` enum (`JSONLD`,
|
|
7
|
+
* follows directly (JSON-LD is stamped at publish time; XBRL, the holon
|
|
8
|
+
* and the Tavi compiled model are materialized + cached on first
|
|
9
|
+
* request). `format` accepts the `ReportDownloadFormat` enum (`JSONLD`,
|
|
10
|
+
* `HOLON_JSONLD`, `XBRL_2_1`, `TAVI`).
|
|
10
11
|
*/
|
|
11
12
|
export declare const GET_REPORT_DOWNLOAD_URL: string;
|
|
@@ -8,9 +8,10 @@ const graphql_request_1 = require("graphql-request");
|
|
|
8
8
|
* Replaces the retired `GET .../reports/{id}/download` REST resource — a
|
|
9
9
|
* download is a read of stored state, so it lives on the read surface.
|
|
10
10
|
* Every flavor resolves to a short-lived presigned S3 URL the client
|
|
11
|
-
* follows directly (JSON-LD is stamped at publish time; XBRL
|
|
12
|
-
* materialized + cached on first
|
|
13
|
-
* `ReportDownloadFormat` enum (`JSONLD`,
|
|
11
|
+
* follows directly (JSON-LD is stamped at publish time; XBRL, the holon
|
|
12
|
+
* and the Tavi compiled model are materialized + cached on first
|
|
13
|
+
* request). `format` accepts the `ReportDownloadFormat` enum (`JSONLD`,
|
|
14
|
+
* `HOLON_JSONLD`, `XBRL_2_1`, `TAVI`).
|
|
14
15
|
*/
|
|
15
16
|
exports.GET_REPORT_DOWNLOAD_URL = (0, graphql_request_1.gql) `
|
|
16
17
|
query GetLedgerReportDownloadUrl(
|
|
@@ -6,9 +6,10 @@ import { gql } from 'graphql-request'
|
|
|
6
6
|
* Replaces the retired `GET .../reports/{id}/download` REST resource — a
|
|
7
7
|
* download is a read of stored state, so it lives on the read surface.
|
|
8
8
|
* Every flavor resolves to a short-lived presigned S3 URL the client
|
|
9
|
-
* follows directly (JSON-LD is stamped at publish time; XBRL
|
|
10
|
-
* materialized + cached on first
|
|
11
|
-
* `ReportDownloadFormat` enum (`JSONLD`,
|
|
9
|
+
* follows directly (JSON-LD is stamped at publish time; XBRL, the holon
|
|
10
|
+
* and the Tavi compiled model are materialized + cached on first
|
|
11
|
+
* request). `format` accepts the `ReportDownloadFormat` enum (`JSONLD`,
|
|
12
|
+
* `HOLON_JSONLD`, `XBRL_2_1`, `TAVI`).
|
|
12
13
|
*/
|
|
13
14
|
export const GET_REPORT_DOWNLOAD_URL = gql`
|
|
14
15
|
query GetLedgerReportDownloadUrl(
|