@robosystems/client 2.2.1 → 2.2.2
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 +15 -6
- package/artifacts/LedgerClient.js +12 -6
- package/artifacts/LedgerClient.ts +17 -6
- package/artifacts/graphql/generated/graphql.d.ts +3 -1
- package/artifacts/graphql/generated/graphql.js +19 -0
- package/artifacts/graphql/generated/graphql.ts +25 -1
- package/artifacts/graphql/queries/ledger/reports.d.ts +4 -1
- package/artifacts/graphql/queries/ledger/reports.js +7 -3
- package/artifacts/graphql/queries/ledger/reports.ts +7 -3
- package/package.json +1 -1
- package/sdk/sdk.gen.d.ts +1 -1
- package/sdk/sdk.gen.js +1 -1
- package/sdk/sdk.gen.ts +1 -1
- package/sdk/types.gen.d.ts +6 -5
- package/sdk/types.gen.ts +6 -5
- package/sdk.gen.d.ts +1 -1
- package/sdk.gen.js +1 -1
- package/sdk.gen.ts +1 -1
- package/types.gen.d.ts +6 -5
- package/types.gen.ts +6 -5
|
@@ -1,7 +1,8 @@
|
|
|
1
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 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';
|
|
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, type ReportLifecycle } from './graphql/generated/graphql';
|
|
4
4
|
export { GraphQLError } from './graphql/client';
|
|
5
|
+
export type { ReportLifecycle };
|
|
5
6
|
export type LedgerEntity = NonNullable<GetLedgerEntityQuery['entity']>;
|
|
6
7
|
export type LedgerEntitySummary = ListLedgerEntitiesQuery['entities'][number];
|
|
7
8
|
export type LedgerSummary = NonNullable<GetLedgerSummaryQuery['summary']>;
|
|
@@ -716,8 +717,15 @@ export declare class LedgerClient {
|
|
|
716
717
|
* inline and this resolves with the published report header.
|
|
717
718
|
*/
|
|
718
719
|
createReport(graphId: string, options: CreateReportOptions): Promise<ReportResponse>;
|
|
719
|
-
/**
|
|
720
|
-
|
|
720
|
+
/**
|
|
721
|
+
* List reports for a graph (includes received shared reports).
|
|
722
|
+
*
|
|
723
|
+
* `lifecycle` defaults to `CURRENT`, which leaves archived reports out;
|
|
724
|
+
* `ARCHIVED` returns only those, `ALL` every report.
|
|
725
|
+
*/
|
|
726
|
+
listReports(graphId: string, options?: {
|
|
727
|
+
lifecycle?: ReportLifecycle;
|
|
728
|
+
}): Promise<ReportListItem[]>;
|
|
721
729
|
/** Get a single report with its period list + available structures. */
|
|
722
730
|
getReport(graphId: string, reportId: string): Promise<Report | null>;
|
|
723
731
|
/**
|
|
@@ -785,9 +793,10 @@ export declare class LedgerClient {
|
|
|
785
793
|
fileReport(graphId: string, reportId: string): Promise<ReportResponse>;
|
|
786
794
|
/**
|
|
787
795
|
* Move a Report along the non-file legs of the filing lifecycle
|
|
788
|
-
* (draft ↔ under_review, filed
|
|
789
|
-
*
|
|
790
|
-
*
|
|
796
|
+
* (draft ↔ under_review, filed ↔ archived). Archiving takes a filed
|
|
797
|
+
* report off the current list without deleting it; unarchiving returns
|
|
798
|
+
* it to 'filed'. Use ``fileReport`` to file a draft so the audit fields
|
|
799
|
+
* land cleanly. Synchronous — resolves with the updated report header.
|
|
791
800
|
*/
|
|
792
801
|
transitionFilingStatus(graphId: string, reportId: string, targetStatus: string): Promise<ReportResponse>;
|
|
793
802
|
/** Check if a report was received via sharing (vs locally created). */
|
|
@@ -880,9 +880,14 @@ class LedgerClient {
|
|
|
880
880
|
const envelope = await this.callOperation('Create report', (0, sdk_gen_1.createReport)({ path: { graph_id: graphId }, body }));
|
|
881
881
|
return this.requireResult('Create report', envelope.result);
|
|
882
882
|
}
|
|
883
|
-
/**
|
|
884
|
-
|
|
885
|
-
|
|
883
|
+
/**
|
|
884
|
+
* List reports for a graph (includes received shared reports).
|
|
885
|
+
*
|
|
886
|
+
* `lifecycle` defaults to `CURRENT`, which leaves archived reports out;
|
|
887
|
+
* `ARCHIVED` returns only those, `ALL` every report.
|
|
888
|
+
*/
|
|
889
|
+
async listReports(graphId, options = {}) {
|
|
890
|
+
const list = await this.gqlQuery(graphId, graphql_1.ListLedgerReportsDocument, options.lifecycle ? { lifecycle: options.lifecycle } : undefined, 'List reports', (data) => data.reports);
|
|
886
891
|
return list?.reports ?? [];
|
|
887
892
|
}
|
|
888
893
|
/** Get a single report with its period list + available structures. */
|
|
@@ -1001,9 +1006,10 @@ class LedgerClient {
|
|
|
1001
1006
|
}
|
|
1002
1007
|
/**
|
|
1003
1008
|
* Move a Report along the non-file legs of the filing lifecycle
|
|
1004
|
-
* (draft ↔ under_review, filed
|
|
1005
|
-
*
|
|
1006
|
-
*
|
|
1009
|
+
* (draft ↔ under_review, filed ↔ archived). Archiving takes a filed
|
|
1010
|
+
* report off the current list without deleting it; unarchiving returns
|
|
1011
|
+
* it to 'filed'. Use ``fileReport`` to file a draft so the audit fields
|
|
1012
|
+
* land cleanly. Synchronous — resolves with the updated report header.
|
|
1007
1013
|
*/
|
|
1008
1014
|
async transitionFilingStatus(graphId, reportId, targetStatus) {
|
|
1009
1015
|
const body = {
|
|
@@ -221,11 +221,13 @@ import {
|
|
|
221
221
|
type ListLedgerUnmappedElementsQuery,
|
|
222
222
|
type MappingCandidatesQuery,
|
|
223
223
|
type ReportDownloadFormat,
|
|
224
|
+
type ReportLifecycle,
|
|
224
225
|
} from './graphql/generated/graphql'
|
|
225
226
|
|
|
226
227
|
// Re-export the structured GraphQL error type so consumers importing
|
|
227
228
|
// from the `@robosystems/client/ledger` subpath can `instanceof` it.
|
|
228
229
|
export { GraphQLError } from './graphql/client'
|
|
230
|
+
export type { ReportLifecycle }
|
|
229
231
|
|
|
230
232
|
// ── Friendly types derived from GraphQL codegen ────────────────────────
|
|
231
233
|
//
|
|
@@ -2155,12 +2157,20 @@ export class LedgerClient {
|
|
|
2155
2157
|
return this.requireResult('Create report', envelope.result)
|
|
2156
2158
|
}
|
|
2157
2159
|
|
|
2158
|
-
/**
|
|
2159
|
-
|
|
2160
|
+
/**
|
|
2161
|
+
* List reports for a graph (includes received shared reports).
|
|
2162
|
+
*
|
|
2163
|
+
* `lifecycle` defaults to `CURRENT`, which leaves archived reports out;
|
|
2164
|
+
* `ARCHIVED` returns only those, `ALL` every report.
|
|
2165
|
+
*/
|
|
2166
|
+
async listReports(
|
|
2167
|
+
graphId: string,
|
|
2168
|
+
options: { lifecycle?: ReportLifecycle } = {}
|
|
2169
|
+
): Promise<ReportListItem[]> {
|
|
2160
2170
|
const list = await this.gqlQuery(
|
|
2161
2171
|
graphId,
|
|
2162
2172
|
ListLedgerReportsDocument,
|
|
2163
|
-
undefined,
|
|
2173
|
+
options.lifecycle ? { lifecycle: options.lifecycle } : undefined,
|
|
2164
2174
|
'List reports',
|
|
2165
2175
|
(data) => data.reports
|
|
2166
2176
|
)
|
|
@@ -2343,9 +2353,10 @@ export class LedgerClient {
|
|
|
2343
2353
|
|
|
2344
2354
|
/**
|
|
2345
2355
|
* Move a Report along the non-file legs of the filing lifecycle
|
|
2346
|
-
* (draft ↔ under_review, filed
|
|
2347
|
-
*
|
|
2348
|
-
*
|
|
2356
|
+
* (draft ↔ under_review, filed ↔ archived). Archiving takes a filed
|
|
2357
|
+
* report off the current list without deleting it; unarchiving returns
|
|
2358
|
+
* it to 'filed'. Use ``fileReport`` to file a draft so the audit fields
|
|
2359
|
+
* land cleanly. Synchronous — resolves with the updated report header.
|
|
2349
2360
|
*/
|
|
2350
2361
|
async transitionFilingStatus(
|
|
2351
2362
|
graphId: string,
|
|
@@ -10,6 +10,7 @@ export type Incremental<T> = T | {
|
|
|
10
10
|
};
|
|
11
11
|
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
12
12
|
export type ReportDownloadFormat = 'HOLON_JSONLD' | 'TAVI' | 'XBRL_2_1';
|
|
13
|
+
export type ReportLifecycle = 'ALL' | 'ARCHIVED' | 'CURRENT';
|
|
13
14
|
export type GetInvestorHoldingsQueryVariables = Exact<{
|
|
14
15
|
portfolioId: string;
|
|
15
16
|
}>;
|
|
@@ -1615,7 +1616,7 @@ export type GetLedgerReportingTaxonomyQuery = {
|
|
|
1615
1616
|
} | null;
|
|
1616
1617
|
};
|
|
1617
1618
|
export type ListLedgerReportsQueryVariables = Exact<{
|
|
1618
|
-
|
|
1619
|
+
lifecycle?: ReportLifecycle;
|
|
1619
1620
|
}>;
|
|
1620
1621
|
export type ListLedgerReportsQuery = {
|
|
1621
1622
|
reports: {
|
|
@@ -1624,6 +1625,7 @@ export type ListLedgerReportsQuery = {
|
|
|
1624
1625
|
name: string;
|
|
1625
1626
|
taxonomyId: string;
|
|
1626
1627
|
generationStatus: string;
|
|
1628
|
+
filingStatus: string;
|
|
1627
1629
|
periodType: string;
|
|
1628
1630
|
periodStart: string | null;
|
|
1629
1631
|
periodEnd: string | null;
|
|
@@ -4322,12 +4322,30 @@ exports.ListLedgerReportsDocument = {
|
|
|
4322
4322
|
kind: 'OperationDefinition',
|
|
4323
4323
|
operation: 'query',
|
|
4324
4324
|
name: { kind: 'Name', value: 'ListLedgerReports' },
|
|
4325
|
+
variableDefinitions: [
|
|
4326
|
+
{
|
|
4327
|
+
kind: 'VariableDefinition',
|
|
4328
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'lifecycle' } },
|
|
4329
|
+
type: {
|
|
4330
|
+
kind: 'NonNullType',
|
|
4331
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'ReportLifecycle' } },
|
|
4332
|
+
},
|
|
4333
|
+
defaultValue: { kind: 'EnumValue', value: 'CURRENT' },
|
|
4334
|
+
},
|
|
4335
|
+
],
|
|
4325
4336
|
selectionSet: {
|
|
4326
4337
|
kind: 'SelectionSet',
|
|
4327
4338
|
selections: [
|
|
4328
4339
|
{
|
|
4329
4340
|
kind: 'Field',
|
|
4330
4341
|
name: { kind: 'Name', value: 'reports' },
|
|
4342
|
+
arguments: [
|
|
4343
|
+
{
|
|
4344
|
+
kind: 'Argument',
|
|
4345
|
+
name: { kind: 'Name', value: 'lifecycle' },
|
|
4346
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'lifecycle' } },
|
|
4347
|
+
},
|
|
4348
|
+
],
|
|
4331
4349
|
selectionSet: {
|
|
4332
4350
|
kind: 'SelectionSet',
|
|
4333
4351
|
selections: [
|
|
@@ -4341,6 +4359,7 @@ exports.ListLedgerReportsDocument = {
|
|
|
4341
4359
|
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
4342
4360
|
{ kind: 'Field', name: { kind: 'Name', value: 'taxonomyId' } },
|
|
4343
4361
|
{ kind: 'Field', name: { kind: 'Name', value: 'generationStatus' } },
|
|
4362
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'filingStatus' } },
|
|
4344
4363
|
{ kind: 'Field', name: { kind: 'Name', value: 'periodType' } },
|
|
4345
4364
|
{ kind: 'Field', name: { kind: 'Name', value: 'periodStart' } },
|
|
4346
4365
|
{ kind: 'Field', name: { kind: 'Name', value: 'periodEnd' } },
|
|
@@ -6,6 +6,8 @@ export type Incremental<T> =
|
|
|
6
6
|
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'
|
|
7
7
|
export type ReportDownloadFormat = 'HOLON_JSONLD' | 'TAVI' | 'XBRL_2_1'
|
|
8
8
|
|
|
9
|
+
export type ReportLifecycle = 'ALL' | 'ARCHIVED' | 'CURRENT'
|
|
10
|
+
|
|
9
11
|
export type GetInvestorHoldingsQueryVariables = Exact<{
|
|
10
12
|
portfolioId: string
|
|
11
13
|
}>
|
|
@@ -1559,7 +1561,9 @@ export type GetLedgerReportingTaxonomyQuery = {
|
|
|
1559
1561
|
} | null
|
|
1560
1562
|
}
|
|
1561
1563
|
|
|
1562
|
-
export type ListLedgerReportsQueryVariables = Exact<{
|
|
1564
|
+
export type ListLedgerReportsQueryVariables = Exact<{
|
|
1565
|
+
lifecycle?: ReportLifecycle
|
|
1566
|
+
}>
|
|
1563
1567
|
|
|
1564
1568
|
export type ListLedgerReportsQuery = {
|
|
1565
1569
|
reports: {
|
|
@@ -1568,6 +1572,7 @@ export type ListLedgerReportsQuery = {
|
|
|
1568
1572
|
name: string
|
|
1569
1573
|
taxonomyId: string
|
|
1570
1574
|
generationStatus: string
|
|
1575
|
+
filingStatus: string
|
|
1571
1576
|
periodType: string
|
|
1572
1577
|
periodStart: string | null
|
|
1573
1578
|
periodEnd: string | null
|
|
@@ -6372,12 +6377,30 @@ export const ListLedgerReportsDocument = {
|
|
|
6372
6377
|
kind: 'OperationDefinition',
|
|
6373
6378
|
operation: 'query',
|
|
6374
6379
|
name: { kind: 'Name', value: 'ListLedgerReports' },
|
|
6380
|
+
variableDefinitions: [
|
|
6381
|
+
{
|
|
6382
|
+
kind: 'VariableDefinition',
|
|
6383
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'lifecycle' } },
|
|
6384
|
+
type: {
|
|
6385
|
+
kind: 'NonNullType',
|
|
6386
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'ReportLifecycle' } },
|
|
6387
|
+
},
|
|
6388
|
+
defaultValue: { kind: 'EnumValue', value: 'CURRENT' },
|
|
6389
|
+
},
|
|
6390
|
+
],
|
|
6375
6391
|
selectionSet: {
|
|
6376
6392
|
kind: 'SelectionSet',
|
|
6377
6393
|
selections: [
|
|
6378
6394
|
{
|
|
6379
6395
|
kind: 'Field',
|
|
6380
6396
|
name: { kind: 'Name', value: 'reports' },
|
|
6397
|
+
arguments: [
|
|
6398
|
+
{
|
|
6399
|
+
kind: 'Argument',
|
|
6400
|
+
name: { kind: 'Name', value: 'lifecycle' },
|
|
6401
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'lifecycle' } },
|
|
6402
|
+
},
|
|
6403
|
+
],
|
|
6381
6404
|
selectionSet: {
|
|
6382
6405
|
kind: 'SelectionSet',
|
|
6383
6406
|
selections: [
|
|
@@ -6391,6 +6414,7 @@ export const ListLedgerReportsDocument = {
|
|
|
6391
6414
|
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
6392
6415
|
{ kind: 'Field', name: { kind: 'Name', value: 'taxonomyId' } },
|
|
6393
6416
|
{ kind: 'Field', name: { kind: 'Name', value: 'generationStatus' } },
|
|
6417
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'filingStatus' } },
|
|
6394
6418
|
{ kind: 'Field', name: { kind: 'Name', value: 'periodType' } },
|
|
6395
6419
|
{ kind: 'Field', name: { kind: 'Name', value: 'periodStart' } },
|
|
6396
6420
|
{ kind: 'Field', name: { kind: 'Name', value: 'periodEnd' } },
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Report definitions for this graph, most recent first.
|
|
3
|
+
*
|
|
4
|
+
* `lifecycle` defaults to `CURRENT` (archived reports left out); `ARCHIVED`
|
|
5
|
+
* returns only those, `ALL` every report.
|
|
3
6
|
*
|
|
4
7
|
* Includes both native reports (generated from this graph's books) and
|
|
5
8
|
* shared reports (materialized from another graph via a publish list).
|
|
@@ -3,20 +3,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.LIST_REPORTS = void 0;
|
|
4
4
|
const graphql_request_1 = require("graphql-request");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Report definitions for this graph, most recent first.
|
|
7
|
+
*
|
|
8
|
+
* `lifecycle` defaults to `CURRENT` (archived reports left out); `ARCHIVED`
|
|
9
|
+
* returns only those, `ALL` every report.
|
|
7
10
|
*
|
|
8
11
|
* Includes both native reports (generated from this graph's books) and
|
|
9
12
|
* shared reports (materialized from another graph via a publish list).
|
|
10
13
|
* `sourceGraphId` / `sourceReportId` / `sharedAt` identify shared reports.
|
|
11
14
|
*/
|
|
12
15
|
exports.LIST_REPORTS = (0, graphql_request_1.gql) `
|
|
13
|
-
query ListLedgerReports {
|
|
14
|
-
reports {
|
|
16
|
+
query ListLedgerReports($lifecycle: ReportLifecycle! = CURRENT) {
|
|
17
|
+
reports(lifecycle: $lifecycle) {
|
|
15
18
|
reports {
|
|
16
19
|
id
|
|
17
20
|
name
|
|
18
21
|
taxonomyId
|
|
19
22
|
generationStatus
|
|
23
|
+
filingStatus
|
|
20
24
|
periodType
|
|
21
25
|
periodStart
|
|
22
26
|
periodEnd
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import { gql } from 'graphql-request'
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Report definitions for this graph, most recent first.
|
|
5
|
+
*
|
|
6
|
+
* `lifecycle` defaults to `CURRENT` (archived reports left out); `ARCHIVED`
|
|
7
|
+
* returns only those, `ALL` every report.
|
|
5
8
|
*
|
|
6
9
|
* Includes both native reports (generated from this graph's books) and
|
|
7
10
|
* shared reports (materialized from another graph via a publish list).
|
|
8
11
|
* `sourceGraphId` / `sourceReportId` / `sharedAt` identify shared reports.
|
|
9
12
|
*/
|
|
10
13
|
export const LIST_REPORTS = gql`
|
|
11
|
-
query ListLedgerReports {
|
|
12
|
-
reports {
|
|
14
|
+
query ListLedgerReports($lifecycle: ReportLifecycle! = CURRENT) {
|
|
15
|
+
reports(lifecycle: $lifecycle) {
|
|
13
16
|
reports {
|
|
14
17
|
id
|
|
15
18
|
name
|
|
16
19
|
taxonomyId
|
|
17
20
|
generationStatus
|
|
21
|
+
filingStatus
|
|
18
22
|
periodType
|
|
19
23
|
periodStart
|
|
20
24
|
periodEnd
|
package/package.json
CHANGED
package/sdk/sdk.gen.d.ts
CHANGED
|
@@ -1152,7 +1152,7 @@ export declare const fileReport: <ThrowOnError extends boolean = false>(options:
|
|
|
1152
1152
|
/**
|
|
1153
1153
|
* Transition Filing Status
|
|
1154
1154
|
*
|
|
1155
|
-
* Move a Report along the non-file legs of the filing lifecycle (draft ↔ under_review, filed
|
|
1155
|
+
* Move a Report along the non-file legs of the filing lifecycle (draft ↔ under_review, filed ↔ archived). Archiving takes a filed report off the current list without deleting it; unarchiving returns it to 'filed'. Use 'file-report' to file a draft so audit fields land cleanly.
|
|
1156
1156
|
*
|
|
1157
1157
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1158
1158
|
*/
|
package/sdk/sdk.gen.js
CHANGED
|
@@ -2373,7 +2373,7 @@ exports.fileReport = fileReport;
|
|
|
2373
2373
|
/**
|
|
2374
2374
|
* Transition Filing Status
|
|
2375
2375
|
*
|
|
2376
|
-
* Move a Report along the non-file legs of the filing lifecycle (draft ↔ under_review, filed
|
|
2376
|
+
* Move a Report along the non-file legs of the filing lifecycle (draft ↔ under_review, filed ↔ archived). Archiving takes a filed report off the current list without deleting it; unarchiving returns it to 'filed'. Use 'file-report' to file a draft so audit fields land cleanly.
|
|
2377
2377
|
*
|
|
2378
2378
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
2379
2379
|
*/
|
package/sdk/sdk.gen.ts
CHANGED
|
@@ -2385,7 +2385,7 @@ export const fileReport = <ThrowOnError extends boolean = false>(options: Option
|
|
|
2385
2385
|
/**
|
|
2386
2386
|
* Transition Filing Status
|
|
2387
2387
|
*
|
|
2388
|
-
* Move a Report along the non-file legs of the filing lifecycle (draft ↔ under_review, filed
|
|
2388
|
+
* Move a Report along the non-file legs of the filing lifecycle (draft ↔ under_review, filed ↔ archived). Archiving takes a filed report off the current list without deleting it; unarchiving returns it to 'filed'. Use 'file-report' to file a draft so audit fields land cleanly.
|
|
2389
2389
|
*
|
|
2390
2390
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
2391
2391
|
*/
|
package/sdk/types.gen.d.ts
CHANGED
|
@@ -16751,10 +16751,11 @@ export type TransactionTemplateLeg = {
|
|
|
16751
16751
|
*
|
|
16752
16752
|
* Generic filing-status transition — escape hatch for non-file moves.
|
|
16753
16753
|
*
|
|
16754
|
-
* Used for `draft
|
|
16755
|
-
* `filed → archived` (
|
|
16756
|
-
*
|
|
16757
|
-
* audit fields
|
|
16754
|
+
* Used for `draft ↔ under_review` (submit for review, or send back),
|
|
16755
|
+
* `filed → archived` (take a filed report off the current list) and
|
|
16756
|
+
* `archived → filed` (bring it back). Filing a draft goes through
|
|
16757
|
+
* :class:`FileReportRequest` so `filed_at` / `filed_by` audit fields
|
|
16758
|
+
* land cleanly.
|
|
16758
16759
|
*/
|
|
16759
16760
|
export type TransitionFilingStatusRequest = {
|
|
16760
16761
|
/**
|
|
@@ -16766,7 +16767,7 @@ export type TransitionFilingStatusRequest = {
|
|
|
16766
16767
|
/**
|
|
16767
16768
|
* Target Status
|
|
16768
16769
|
*
|
|
16769
|
-
* Target lifecycle state: `under_review` (submit a draft for review)
|
|
16770
|
+
* Target lifecycle state: `under_review` (submit a draft for review), `draft` (send it back), `archived` (take a filed report off the current list; it stays a record) or `filed` (unarchive). Filing a draft goes through `file-report` so audit fields land cleanly.
|
|
16770
16771
|
*/
|
|
16771
16772
|
target_status: string;
|
|
16772
16773
|
};
|
package/sdk/types.gen.ts
CHANGED
|
@@ -17169,10 +17169,11 @@ export type TransactionTemplateLeg = {
|
|
|
17169
17169
|
*
|
|
17170
17170
|
* Generic filing-status transition — escape hatch for non-file moves.
|
|
17171
17171
|
*
|
|
17172
|
-
* Used for `draft
|
|
17173
|
-
* `filed → archived` (
|
|
17174
|
-
*
|
|
17175
|
-
* audit fields
|
|
17172
|
+
* Used for `draft ↔ under_review` (submit for review, or send back),
|
|
17173
|
+
* `filed → archived` (take a filed report off the current list) and
|
|
17174
|
+
* `archived → filed` (bring it back). Filing a draft goes through
|
|
17175
|
+
* :class:`FileReportRequest` so `filed_at` / `filed_by` audit fields
|
|
17176
|
+
* land cleanly.
|
|
17176
17177
|
*/
|
|
17177
17178
|
export type TransitionFilingStatusRequest = {
|
|
17178
17179
|
/**
|
|
@@ -17184,7 +17185,7 @@ export type TransitionFilingStatusRequest = {
|
|
|
17184
17185
|
/**
|
|
17185
17186
|
* Target Status
|
|
17186
17187
|
*
|
|
17187
|
-
* Target lifecycle state: `under_review` (submit a draft for review)
|
|
17188
|
+
* Target lifecycle state: `under_review` (submit a draft for review), `draft` (send it back), `archived` (take a filed report off the current list; it stays a record) or `filed` (unarchive). Filing a draft goes through `file-report` so audit fields land cleanly.
|
|
17188
17189
|
*/
|
|
17189
17190
|
target_status: string;
|
|
17190
17191
|
};
|
package/sdk.gen.d.ts
CHANGED
|
@@ -1152,7 +1152,7 @@ export declare const fileReport: <ThrowOnError extends boolean = false>(options:
|
|
|
1152
1152
|
/**
|
|
1153
1153
|
* Transition Filing Status
|
|
1154
1154
|
*
|
|
1155
|
-
* Move a Report along the non-file legs of the filing lifecycle (draft ↔ under_review, filed
|
|
1155
|
+
* Move a Report along the non-file legs of the filing lifecycle (draft ↔ under_review, filed ↔ archived). Archiving takes a filed report off the current list without deleting it; unarchiving returns it to 'filed'. Use 'file-report' to file a draft so audit fields land cleanly.
|
|
1156
1156
|
*
|
|
1157
1157
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
1158
1158
|
*/
|
package/sdk.gen.js
CHANGED
|
@@ -2373,7 +2373,7 @@ exports.fileReport = fileReport;
|
|
|
2373
2373
|
/**
|
|
2374
2374
|
* Transition Filing Status
|
|
2375
2375
|
*
|
|
2376
|
-
* Move a Report along the non-file legs of the filing lifecycle (draft ↔ under_review, filed
|
|
2376
|
+
* Move a Report along the non-file legs of the filing lifecycle (draft ↔ under_review, filed ↔ archived). Archiving takes a filed report off the current list without deleting it; unarchiving returns it to 'filed'. Use 'file-report' to file a draft so audit fields land cleanly.
|
|
2377
2377
|
*
|
|
2378
2378
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
2379
2379
|
*/
|
package/sdk.gen.ts
CHANGED
|
@@ -2385,7 +2385,7 @@ export const fileReport = <ThrowOnError extends boolean = false>(options: Option
|
|
|
2385
2385
|
/**
|
|
2386
2386
|
* Transition Filing Status
|
|
2387
2387
|
*
|
|
2388
|
-
* Move a Report along the non-file legs of the filing lifecycle (draft ↔ under_review, filed
|
|
2388
|
+
* Move a Report along the non-file legs of the filing lifecycle (draft ↔ under_review, filed ↔ archived). Archiving takes a filed report off the current list without deleting it; unarchiving returns it to 'filed'. Use 'file-report' to file a draft so audit fields land cleanly.
|
|
2389
2389
|
*
|
|
2390
2390
|
* **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
|
|
2391
2391
|
*/
|
package/types.gen.d.ts
CHANGED
|
@@ -16751,10 +16751,11 @@ export type TransactionTemplateLeg = {
|
|
|
16751
16751
|
*
|
|
16752
16752
|
* Generic filing-status transition — escape hatch for non-file moves.
|
|
16753
16753
|
*
|
|
16754
|
-
* Used for `draft
|
|
16755
|
-
* `filed → archived` (
|
|
16756
|
-
*
|
|
16757
|
-
* audit fields
|
|
16754
|
+
* Used for `draft ↔ under_review` (submit for review, or send back),
|
|
16755
|
+
* `filed → archived` (take a filed report off the current list) and
|
|
16756
|
+
* `archived → filed` (bring it back). Filing a draft goes through
|
|
16757
|
+
* :class:`FileReportRequest` so `filed_at` / `filed_by` audit fields
|
|
16758
|
+
* land cleanly.
|
|
16758
16759
|
*/
|
|
16759
16760
|
export type TransitionFilingStatusRequest = {
|
|
16760
16761
|
/**
|
|
@@ -16766,7 +16767,7 @@ export type TransitionFilingStatusRequest = {
|
|
|
16766
16767
|
/**
|
|
16767
16768
|
* Target Status
|
|
16768
16769
|
*
|
|
16769
|
-
* Target lifecycle state: `under_review` (submit a draft for review)
|
|
16770
|
+
* Target lifecycle state: `under_review` (submit a draft for review), `draft` (send it back), `archived` (take a filed report off the current list; it stays a record) or `filed` (unarchive). Filing a draft goes through `file-report` so audit fields land cleanly.
|
|
16770
16771
|
*/
|
|
16771
16772
|
target_status: string;
|
|
16772
16773
|
};
|
package/types.gen.ts
CHANGED
|
@@ -17169,10 +17169,11 @@ export type TransactionTemplateLeg = {
|
|
|
17169
17169
|
*
|
|
17170
17170
|
* Generic filing-status transition — escape hatch for non-file moves.
|
|
17171
17171
|
*
|
|
17172
|
-
* Used for `draft
|
|
17173
|
-
* `filed → archived` (
|
|
17174
|
-
*
|
|
17175
|
-
* audit fields
|
|
17172
|
+
* Used for `draft ↔ under_review` (submit for review, or send back),
|
|
17173
|
+
* `filed → archived` (take a filed report off the current list) and
|
|
17174
|
+
* `archived → filed` (bring it back). Filing a draft goes through
|
|
17175
|
+
* :class:`FileReportRequest` so `filed_at` / `filed_by` audit fields
|
|
17176
|
+
* land cleanly.
|
|
17176
17177
|
*/
|
|
17177
17178
|
export type TransitionFilingStatusRequest = {
|
|
17178
17179
|
/**
|
|
@@ -17184,7 +17185,7 @@ export type TransitionFilingStatusRequest = {
|
|
|
17184
17185
|
/**
|
|
17185
17186
|
* Target Status
|
|
17186
17187
|
*
|
|
17187
|
-
* Target lifecycle state: `under_review` (submit a draft for review)
|
|
17188
|
+
* Target lifecycle state: `under_review` (submit a draft for review), `draft` (send it back), `archived` (take a filed report off the current list; it stays a record) or `filed` (unarchive). Filing a draft goes through `file-report` so audit fields land cleanly.
|
|
17188
17189
|
*/
|
|
17189
17190
|
target_status: string;
|
|
17190
17191
|
};
|