@robosystems/client 2.14.2 → 2.15.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 +18 -1
- package/artifacts/LedgerClient.js +19 -0
- package/artifacts/LedgerClient.ts +40 -0
- package/artifacts/graphql/generated/graphql.d.ts +23 -0
- package/artifacts/graphql/generated/graphql.js +100 -2
- package/artifacts/graphql/generated/graphql.ts +125 -0
- package/artifacts/graphql/queries/ledger/informationBlock.d.ts +7 -0
- package/artifacts/graphql/queries/ledger/informationBlock.js +37 -1
- package/artifacts/graphql/queries/ledger/informationBlock.ts +37 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AcceptSuggestionsRequest, AcceptSuggestionsResponse, AssociationResponse, AutoMapElementsOperation, BindTextBlockRequest, BindTextBlockResponse, BlockedSourceGraphResponse, BlockSourceGraphResult, ComputeMetricsRequest, ComputeMetricsResponse, CreateAgentRequest, CreateEntityRequest, CreateEventBlockRequest, CreateEventHandlerRequest, CreateInformationBlockRequest, CreateMappingAssociationOperation, CreateTaxonomyBlockRequest, CreateViewRequest, DeleteInformationBlockRequest, DeleteInformationBlockResponse, DeleteMappingAssociationOperation, DeleteResult, DeleteTaxonomyBlockRequest, DeleteTaxonomyBlockResponse, EntityTaxonomyResponse, EvaluateRulesRequest, EvaluateRulesResponse, EventBlockEnvelope, EventHandlerResponse, FinancialStatementAnalysisRequest, FinancialStatementAnalysisResponse, InformationBlockEnvelope, InitializeChartOfAccountsRequest, JournalEntryResponse, LearnClassificationDefaultsResponse, LedgerAgentResponse, LinkBankAccountRequest, LinkBankAccountResponse, LinkEntityTaxonomyRequest, LiveFinancialStatementRequest, LiveFinancialStatementResponse, OperationEnvelope, PreviewEventBlockResponse, PreviewReconciliationsRequest, PromoteObligationsRequest, PromoteObligationsResponse, PublishListMemberResponse, PublishListResponse, ReconcilingItemPlan, ReportResponse, ResolveReconcilingItemRequest, ResolveReconcilingItemResponse, RevokeReportShareResponse, ShareReportResponse, TaxonomyBlockEnvelope, UpdateAgentRequest, UpdateEntityRequest, UpdateEventBlockRequest, UpdateEventHandlerRequest, UpdateInformationBlockRequest, UpdateJournalEntryRequest, UpdateTaxonomyBlockRequest, ViewResponse } from '../types.gen';
|
|
2
2
|
import type { TokenProvider } from './graphql/client';
|
|
3
|
-
import { ListLedgerBankAccountsQuery, type ClassificationStatsQuery, type FlowCandidatesQuery, 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 ListLedgerReconciliationsQuery, type ListLedgerReportsQuery, type ListLedgerStructuresQuery, type ListLedgerTaxonomiesQuery, type ListLedgerTransactionsQuery, type ListLedgerUnmappedElementsQuery, type MappingCandidatesQuery, type ReportDownloadFormat, type ReportLifecycle } from './graphql/generated/graphql';
|
|
3
|
+
import { ListLedgerBankAccountsQuery, type ClassificationStatsQuery, type FlowCandidatesQuery, 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 ListInformationBlockSummariesQuery, type ListLedgerAccountsQuery, type ListLedgerAgentsQuery, type ListLedgerBlockedSourceGraphsQuery, type ListLedgerElementsQuery, type ListLedgerEntitiesQuery, type ListLedgerEventBlocksQuery, type ListLedgerJournalEntriesQuery, type ListLedgerMappingsQuery, type ListLedgerPublishListsQuery, type ListLedgerReconciliationsQuery, 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
5
|
export type { ReportLifecycle };
|
|
6
6
|
export type LedgerEntity = NonNullable<GetLedgerEntityQuery['entity']>;
|
|
@@ -41,6 +41,7 @@ export type LedgerMapping = NonNullable<GetLedgerMappingQuery['mapping']>;
|
|
|
41
41
|
export type LedgerMappingCoverage = NonNullable<GetLedgerMappingCoverageQuery['mappingCoverage']>;
|
|
42
42
|
export type InformationBlock = NonNullable<GetInformationBlockQuery['informationBlock']>;
|
|
43
43
|
export type InformationBlockList = ListInformationBlocksQuery['informationBlocks'];
|
|
44
|
+
export type InformationBlockSummaryList = ListInformationBlockSummariesQuery['informationBlockSummaries'];
|
|
44
45
|
export type InformationBlockElement = InformationBlock['elements'][number];
|
|
45
46
|
export type InformationBlockConnection = InformationBlock['connections'][number];
|
|
46
47
|
export type InformationBlockFact = InformationBlock['facts'][number];
|
|
@@ -713,6 +714,22 @@ export declare class LedgerClient {
|
|
|
713
714
|
scenarioId?: string;
|
|
714
715
|
entityId?: string | null;
|
|
715
716
|
}): Promise<InformationBlockList>;
|
|
717
|
+
/**
|
|
718
|
+
* List Information Blocks as identities and counts, one row per block —
|
|
719
|
+
* the rows, filters, order and page of `listInformationBlocks`, read in
|
|
720
|
+
* one query instead of an envelope build per block. The call that fills
|
|
721
|
+
* a picker: `factCount > 0` marks a block whose envelope carries facts
|
|
722
|
+
* (a library-seeded structure variant carries none); a block's atoms
|
|
723
|
+
* come from `getInformationBlock`.
|
|
724
|
+
*/
|
|
725
|
+
listInformationBlockSummaries(graphId: string, options?: {
|
|
726
|
+
blockType?: string;
|
|
727
|
+
category?: string;
|
|
728
|
+
limit?: number;
|
|
729
|
+
offset?: number;
|
|
730
|
+
scenarioId?: string;
|
|
731
|
+
entityId?: string | null;
|
|
732
|
+
}): Promise<InformationBlockSummaryList>;
|
|
716
733
|
/**
|
|
717
734
|
* Create an Information Block of any registered block_type.
|
|
718
735
|
*
|
|
@@ -427,6 +427,25 @@ class LedgerClient {
|
|
|
427
427
|
}, 'List information blocks', (data) => data.informationBlocks);
|
|
428
428
|
return blocks ?? [];
|
|
429
429
|
}
|
|
430
|
+
/**
|
|
431
|
+
* List Information Blocks as identities and counts, one row per block —
|
|
432
|
+
* the rows, filters, order and page of `listInformationBlocks`, read in
|
|
433
|
+
* one query instead of an envelope build per block. The call that fills
|
|
434
|
+
* a picker: `factCount > 0` marks a block whose envelope carries facts
|
|
435
|
+
* (a library-seeded structure variant carries none); a block's atoms
|
|
436
|
+
* come from `getInformationBlock`.
|
|
437
|
+
*/
|
|
438
|
+
async listInformationBlockSummaries(graphId, options) {
|
|
439
|
+
const rows = await this.gqlQuery(graphId, graphql_1.ListInformationBlockSummariesDocument, {
|
|
440
|
+
blockType: options?.blockType ?? null,
|
|
441
|
+
category: options?.category ?? null,
|
|
442
|
+
limit: options?.limit ?? null,
|
|
443
|
+
offset: options?.offset ?? null,
|
|
444
|
+
scenarioId: options?.scenarioId ?? null,
|
|
445
|
+
entityId: options?.entityId ?? null,
|
|
446
|
+
}, 'List information block summaries', (data) => data.informationBlockSummaries);
|
|
447
|
+
return rows ?? [];
|
|
448
|
+
}
|
|
430
449
|
// ── Schedules ──────────────────────────────────────────────────────
|
|
431
450
|
/**
|
|
432
451
|
* Create an Information Block of any registered block_type.
|
|
@@ -209,6 +209,7 @@ import {
|
|
|
209
209
|
GetLedgerTrialBalanceDocument,
|
|
210
210
|
ListChartTemplatesDocument,
|
|
211
211
|
ListInformationBlocksDocument,
|
|
212
|
+
ListInformationBlockSummariesDocument,
|
|
212
213
|
ListLedgerAccountsDocument,
|
|
213
214
|
ListLedgerAgentsDocument,
|
|
214
215
|
ListLedgerBankAccountsDocument,
|
|
@@ -252,6 +253,7 @@ import {
|
|
|
252
253
|
type GetLedgerTrialBalanceQuery,
|
|
253
254
|
type ListChartTemplatesQuery,
|
|
254
255
|
type ListInformationBlocksQuery,
|
|
256
|
+
type ListInformationBlockSummariesQuery,
|
|
255
257
|
type ListLedgerAccountsQuery,
|
|
256
258
|
type ListLedgerAgentsQuery,
|
|
257
259
|
type ListLedgerBlockedSourceGraphsQuery,
|
|
@@ -339,6 +341,8 @@ export type LedgerMappingCoverage = NonNullable<GetLedgerMappingCoverageQuery['m
|
|
|
339
341
|
|
|
340
342
|
export type InformationBlock = NonNullable<GetInformationBlockQuery['informationBlock']>
|
|
341
343
|
export type InformationBlockList = ListInformationBlocksQuery['informationBlocks']
|
|
344
|
+
export type InformationBlockSummaryList =
|
|
345
|
+
ListInformationBlockSummariesQuery['informationBlockSummaries']
|
|
342
346
|
export type InformationBlockElement = InformationBlock['elements'][number]
|
|
343
347
|
export type InformationBlockConnection = InformationBlock['connections'][number]
|
|
344
348
|
export type InformationBlockFact = InformationBlock['facts'][number]
|
|
@@ -1675,6 +1679,42 @@ export class LedgerClient {
|
|
|
1675
1679
|
return blocks ?? []
|
|
1676
1680
|
}
|
|
1677
1681
|
|
|
1682
|
+
/**
|
|
1683
|
+
* List Information Blocks as identities and counts, one row per block —
|
|
1684
|
+
* the rows, filters, order and page of `listInformationBlocks`, read in
|
|
1685
|
+
* one query instead of an envelope build per block. The call that fills
|
|
1686
|
+
* a picker: `factCount > 0` marks a block whose envelope carries facts
|
|
1687
|
+
* (a library-seeded structure variant carries none); a block's atoms
|
|
1688
|
+
* come from `getInformationBlock`.
|
|
1689
|
+
*/
|
|
1690
|
+
async listInformationBlockSummaries(
|
|
1691
|
+
graphId: string,
|
|
1692
|
+
options?: {
|
|
1693
|
+
blockType?: string
|
|
1694
|
+
category?: string
|
|
1695
|
+
limit?: number
|
|
1696
|
+
offset?: number
|
|
1697
|
+
scenarioId?: string
|
|
1698
|
+
entityId?: string | null
|
|
1699
|
+
}
|
|
1700
|
+
): Promise<InformationBlockSummaryList> {
|
|
1701
|
+
const rows = await this.gqlQuery(
|
|
1702
|
+
graphId,
|
|
1703
|
+
ListInformationBlockSummariesDocument,
|
|
1704
|
+
{
|
|
1705
|
+
blockType: options?.blockType ?? null,
|
|
1706
|
+
category: options?.category ?? null,
|
|
1707
|
+
limit: options?.limit ?? null,
|
|
1708
|
+
offset: options?.offset ?? null,
|
|
1709
|
+
scenarioId: options?.scenarioId ?? null,
|
|
1710
|
+
entityId: options?.entityId ?? null,
|
|
1711
|
+
},
|
|
1712
|
+
'List information block summaries',
|
|
1713
|
+
(data) => data.informationBlockSummaries
|
|
1714
|
+
)
|
|
1715
|
+
return rows ?? []
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1678
1718
|
// ── Schedules ──────────────────────────────────────────────────────
|
|
1679
1719
|
|
|
1680
1720
|
/**
|
|
@@ -1229,6 +1229,28 @@ export type ListInformationBlocksQuery = {
|
|
|
1229
1229
|
};
|
|
1230
1230
|
}>;
|
|
1231
1231
|
};
|
|
1232
|
+
export type ListInformationBlockSummariesQueryVariables = Exact<{
|
|
1233
|
+
blockType: string | null | undefined;
|
|
1234
|
+
category: string | null | undefined;
|
|
1235
|
+
limit: number | null | undefined;
|
|
1236
|
+
offset: number | null | undefined;
|
|
1237
|
+
scenarioId: string | null | undefined;
|
|
1238
|
+
entityId: string | null | undefined;
|
|
1239
|
+
}>;
|
|
1240
|
+
export type ListInformationBlockSummariesQuery = {
|
|
1241
|
+
informationBlockSummaries: Array<{
|
|
1242
|
+
id: string;
|
|
1243
|
+
blockType: string;
|
|
1244
|
+
name: string;
|
|
1245
|
+
displayName: string;
|
|
1246
|
+
category: string;
|
|
1247
|
+
taxonomyId: string | null;
|
|
1248
|
+
taxonomyName: string | null;
|
|
1249
|
+
entityId: string | null;
|
|
1250
|
+
factCount: number;
|
|
1251
|
+
connectionCount: number;
|
|
1252
|
+
}>;
|
|
1253
|
+
};
|
|
1232
1254
|
export type ListLedgerJournalEntriesQueryVariables = Exact<{
|
|
1233
1255
|
startDate: string | null | undefined;
|
|
1234
1256
|
endDate: string | null | undefined;
|
|
@@ -2346,6 +2368,7 @@ export declare const FlowCandidatesDocument: DocumentNode<FlowCandidatesQuery, F
|
|
|
2346
2368
|
export declare const GetInformationBlockDocument: DocumentNode<GetInformationBlockQuery, GetInformationBlockQueryVariables>;
|
|
2347
2369
|
export declare const GetInformationBlockWindowedDocument: DocumentNode<GetInformationBlockWindowedQuery, GetInformationBlockWindowedQueryVariables>;
|
|
2348
2370
|
export declare const ListInformationBlocksDocument: DocumentNode<ListInformationBlocksQuery, ListInformationBlocksQueryVariables>;
|
|
2371
|
+
export declare const ListInformationBlockSummariesDocument: DocumentNode<ListInformationBlockSummariesQuery, ListInformationBlockSummariesQueryVariables>;
|
|
2349
2372
|
export declare const ListLedgerJournalEntriesDocument: DocumentNode<ListLedgerJournalEntriesQuery, ListLedgerJournalEntriesQueryVariables>;
|
|
2350
2373
|
export declare const GetLedgerMappedTrialBalanceDocument: DocumentNode<GetLedgerMappedTrialBalanceQuery, GetLedgerMappedTrialBalanceQueryVariables>;
|
|
2351
2374
|
export declare const GetLedgerMappingDocument: DocumentNode<GetLedgerMappingQuery, GetLedgerMappingQueryVariables>;
|
|
@@ -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 = exports.GetLibraryElementEquivalentsDocument = exports.GetLibraryElementClassificationsDocument = exports.GetLibraryElementArcsDocument = exports.ListLibraryTaxonomyArcsDocument = exports.ListLedgerUnmappedElementsDocument = void 0;
|
|
3
|
+
exports.ListLedgerTransactionsDocument = exports.GetLedgerTransactionDocument = exports.ListLedgerTaxonomiesDocument = exports.GetLedgerSummaryDocument = exports.ListLedgerStructuresDocument = exports.GetLedgerStatementDocument = exports.ListLedgerReportsDocument = exports.GetLedgerReportingTaxonomyDocument = exports.GetLedgerReportPackageDocument = exports.GetLedgerReportDownloadUrlDocument = exports.GetLedgerReportDocument = exports.ListLedgerReconciliationsDocument = exports.ListLedgerPublishListsDocument = exports.GetLedgerPublishListDocument = exports.GetLedgerPeriodDraftsDocument = exports.GetLedgerPeriodCloseStatusDocument = exports.ListLedgerMappingsDocument = exports.GetLedgerMappingCoverageDocument = exports.MappingCandidatesDocument = exports.GetLedgerMappingDocument = exports.GetLedgerMappedTrialBalanceDocument = exports.ListLedgerJournalEntriesDocument = exports.ListInformationBlockSummariesDocument = exports.ListInformationBlocksDocument = exports.GetInformationBlockWindowedDocument = exports.GetInformationBlockDocument = exports.FlowCandidatesDocument = exports.GetLedgerFiscalCalendarDocument = exports.ListLedgerEventBlocksDocument = exports.GetLedgerEventBlockDocument = exports.GetLedgerEntityDocument = exports.ListLedgerEntitiesDocument = exports.ListLedgerElementsDocument = exports.GetLedgerClosingBookStructuresDocument = exports.ClassificationStatsDocument = exports.ListChartTemplatesDocument = exports.ListLedgerBlockedSourceGraphsDocument = exports.ListLedgerBankAccountsDocument = 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 = exports.GetLibraryElementClassificationsDocument = exports.GetLibraryElementArcsDocument = exports.ListLibraryTaxonomyArcsDocument = exports.ListLedgerUnmappedElementsDocument = exports.GetLedgerTrialBalanceDocument = void 0;
|
|
5
5
|
exports.GetInvestorHoldingsDocument = {
|
|
6
6
|
kind: 'Document',
|
|
7
7
|
definitions: [
|
|
@@ -3253,6 +3253,104 @@ exports.ListInformationBlocksDocument = {
|
|
|
3253
3253
|
},
|
|
3254
3254
|
],
|
|
3255
3255
|
};
|
|
3256
|
+
exports.ListInformationBlockSummariesDocument = {
|
|
3257
|
+
kind: 'Document',
|
|
3258
|
+
definitions: [
|
|
3259
|
+
{
|
|
3260
|
+
kind: 'OperationDefinition',
|
|
3261
|
+
operation: 'query',
|
|
3262
|
+
name: { kind: 'Name', value: 'ListInformationBlockSummaries' },
|
|
3263
|
+
variableDefinitions: [
|
|
3264
|
+
{
|
|
3265
|
+
kind: 'VariableDefinition',
|
|
3266
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'blockType' } },
|
|
3267
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3268
|
+
},
|
|
3269
|
+
{
|
|
3270
|
+
kind: 'VariableDefinition',
|
|
3271
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'category' } },
|
|
3272
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3273
|
+
},
|
|
3274
|
+
{
|
|
3275
|
+
kind: 'VariableDefinition',
|
|
3276
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
|
|
3277
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
|
|
3278
|
+
},
|
|
3279
|
+
{
|
|
3280
|
+
kind: 'VariableDefinition',
|
|
3281
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
|
|
3282
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
|
|
3283
|
+
},
|
|
3284
|
+
{
|
|
3285
|
+
kind: 'VariableDefinition',
|
|
3286
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'scenarioId' } },
|
|
3287
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3288
|
+
},
|
|
3289
|
+
{
|
|
3290
|
+
kind: 'VariableDefinition',
|
|
3291
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
|
|
3292
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3293
|
+
},
|
|
3294
|
+
],
|
|
3295
|
+
selectionSet: {
|
|
3296
|
+
kind: 'SelectionSet',
|
|
3297
|
+
selections: [
|
|
3298
|
+
{
|
|
3299
|
+
kind: 'Field',
|
|
3300
|
+
name: { kind: 'Name', value: 'informationBlockSummaries' },
|
|
3301
|
+
arguments: [
|
|
3302
|
+
{
|
|
3303
|
+
kind: 'Argument',
|
|
3304
|
+
name: { kind: 'Name', value: 'blockType' },
|
|
3305
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'blockType' } },
|
|
3306
|
+
},
|
|
3307
|
+
{
|
|
3308
|
+
kind: 'Argument',
|
|
3309
|
+
name: { kind: 'Name', value: 'category' },
|
|
3310
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'category' } },
|
|
3311
|
+
},
|
|
3312
|
+
{
|
|
3313
|
+
kind: 'Argument',
|
|
3314
|
+
name: { kind: 'Name', value: 'limit' },
|
|
3315
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
|
|
3316
|
+
},
|
|
3317
|
+
{
|
|
3318
|
+
kind: 'Argument',
|
|
3319
|
+
name: { kind: 'Name', value: 'offset' },
|
|
3320
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
|
|
3321
|
+
},
|
|
3322
|
+
{
|
|
3323
|
+
kind: 'Argument',
|
|
3324
|
+
name: { kind: 'Name', value: 'scenarioId' },
|
|
3325
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'scenarioId' } },
|
|
3326
|
+
},
|
|
3327
|
+
{
|
|
3328
|
+
kind: 'Argument',
|
|
3329
|
+
name: { kind: 'Name', value: 'entityId' },
|
|
3330
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
|
|
3331
|
+
},
|
|
3332
|
+
],
|
|
3333
|
+
selectionSet: {
|
|
3334
|
+
kind: 'SelectionSet',
|
|
3335
|
+
selections: [
|
|
3336
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
3337
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'blockType' } },
|
|
3338
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
3339
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'displayName' } },
|
|
3340
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'category' } },
|
|
3341
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'taxonomyId' } },
|
|
3342
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'taxonomyName' } },
|
|
3343
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
|
|
3344
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'factCount' } },
|
|
3345
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'connectionCount' } },
|
|
3346
|
+
],
|
|
3347
|
+
},
|
|
3348
|
+
},
|
|
3349
|
+
],
|
|
3350
|
+
},
|
|
3351
|
+
},
|
|
3352
|
+
],
|
|
3353
|
+
};
|
|
3256
3354
|
exports.ListLedgerJournalEntriesDocument = {
|
|
3257
3355
|
kind: 'Document',
|
|
3258
3356
|
definitions: [
|
|
@@ -1196,6 +1196,30 @@ export type ListInformationBlocksQuery = {
|
|
|
1196
1196
|
}>
|
|
1197
1197
|
}
|
|
1198
1198
|
|
|
1199
|
+
export type ListInformationBlockSummariesQueryVariables = Exact<{
|
|
1200
|
+
blockType: string | null | undefined
|
|
1201
|
+
category: string | null | undefined
|
|
1202
|
+
limit: number | null | undefined
|
|
1203
|
+
offset: number | null | undefined
|
|
1204
|
+
scenarioId: string | null | undefined
|
|
1205
|
+
entityId: string | null | undefined
|
|
1206
|
+
}>
|
|
1207
|
+
|
|
1208
|
+
export type ListInformationBlockSummariesQuery = {
|
|
1209
|
+
informationBlockSummaries: Array<{
|
|
1210
|
+
id: string
|
|
1211
|
+
blockType: string
|
|
1212
|
+
name: string
|
|
1213
|
+
displayName: string
|
|
1214
|
+
category: string
|
|
1215
|
+
taxonomyId: string | null
|
|
1216
|
+
taxonomyName: string | null
|
|
1217
|
+
entityId: string | null
|
|
1218
|
+
factCount: number
|
|
1219
|
+
connectionCount: number
|
|
1220
|
+
}>
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1199
1223
|
export type ListLedgerJournalEntriesQueryVariables = Exact<{
|
|
1200
1224
|
startDate: string | null | undefined
|
|
1201
1225
|
endDate: string | null | undefined
|
|
@@ -5528,6 +5552,107 @@ export const ListInformationBlocksDocument = {
|
|
|
5528
5552
|
},
|
|
5529
5553
|
],
|
|
5530
5554
|
} as unknown as DocumentNode<ListInformationBlocksQuery, ListInformationBlocksQueryVariables>
|
|
5555
|
+
export const ListInformationBlockSummariesDocument = {
|
|
5556
|
+
kind: 'Document',
|
|
5557
|
+
definitions: [
|
|
5558
|
+
{
|
|
5559
|
+
kind: 'OperationDefinition',
|
|
5560
|
+
operation: 'query',
|
|
5561
|
+
name: { kind: 'Name', value: 'ListInformationBlockSummaries' },
|
|
5562
|
+
variableDefinitions: [
|
|
5563
|
+
{
|
|
5564
|
+
kind: 'VariableDefinition',
|
|
5565
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'blockType' } },
|
|
5566
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
5567
|
+
},
|
|
5568
|
+
{
|
|
5569
|
+
kind: 'VariableDefinition',
|
|
5570
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'category' } },
|
|
5571
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
5572
|
+
},
|
|
5573
|
+
{
|
|
5574
|
+
kind: 'VariableDefinition',
|
|
5575
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
|
|
5576
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
|
|
5577
|
+
},
|
|
5578
|
+
{
|
|
5579
|
+
kind: 'VariableDefinition',
|
|
5580
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
|
|
5581
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
|
|
5582
|
+
},
|
|
5583
|
+
{
|
|
5584
|
+
kind: 'VariableDefinition',
|
|
5585
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'scenarioId' } },
|
|
5586
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
5587
|
+
},
|
|
5588
|
+
{
|
|
5589
|
+
kind: 'VariableDefinition',
|
|
5590
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
|
|
5591
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
5592
|
+
},
|
|
5593
|
+
],
|
|
5594
|
+
selectionSet: {
|
|
5595
|
+
kind: 'SelectionSet',
|
|
5596
|
+
selections: [
|
|
5597
|
+
{
|
|
5598
|
+
kind: 'Field',
|
|
5599
|
+
name: { kind: 'Name', value: 'informationBlockSummaries' },
|
|
5600
|
+
arguments: [
|
|
5601
|
+
{
|
|
5602
|
+
kind: 'Argument',
|
|
5603
|
+
name: { kind: 'Name', value: 'blockType' },
|
|
5604
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'blockType' } },
|
|
5605
|
+
},
|
|
5606
|
+
{
|
|
5607
|
+
kind: 'Argument',
|
|
5608
|
+
name: { kind: 'Name', value: 'category' },
|
|
5609
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'category' } },
|
|
5610
|
+
},
|
|
5611
|
+
{
|
|
5612
|
+
kind: 'Argument',
|
|
5613
|
+
name: { kind: 'Name', value: 'limit' },
|
|
5614
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
|
|
5615
|
+
},
|
|
5616
|
+
{
|
|
5617
|
+
kind: 'Argument',
|
|
5618
|
+
name: { kind: 'Name', value: 'offset' },
|
|
5619
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
|
|
5620
|
+
},
|
|
5621
|
+
{
|
|
5622
|
+
kind: 'Argument',
|
|
5623
|
+
name: { kind: 'Name', value: 'scenarioId' },
|
|
5624
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'scenarioId' } },
|
|
5625
|
+
},
|
|
5626
|
+
{
|
|
5627
|
+
kind: 'Argument',
|
|
5628
|
+
name: { kind: 'Name', value: 'entityId' },
|
|
5629
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
|
|
5630
|
+
},
|
|
5631
|
+
],
|
|
5632
|
+
selectionSet: {
|
|
5633
|
+
kind: 'SelectionSet',
|
|
5634
|
+
selections: [
|
|
5635
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
5636
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'blockType' } },
|
|
5637
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
5638
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'displayName' } },
|
|
5639
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'category' } },
|
|
5640
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'taxonomyId' } },
|
|
5641
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'taxonomyName' } },
|
|
5642
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
|
|
5643
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'factCount' } },
|
|
5644
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'connectionCount' } },
|
|
5645
|
+
],
|
|
5646
|
+
},
|
|
5647
|
+
},
|
|
5648
|
+
],
|
|
5649
|
+
},
|
|
5650
|
+
},
|
|
5651
|
+
],
|
|
5652
|
+
} as unknown as DocumentNode<
|
|
5653
|
+
ListInformationBlockSummariesQuery,
|
|
5654
|
+
ListInformationBlockSummariesQueryVariables
|
|
5655
|
+
>
|
|
5531
5656
|
export const ListLedgerJournalEntriesDocument = {
|
|
5532
5657
|
kind: 'Document',
|
|
5533
5658
|
definitions: [
|
|
@@ -25,3 +25,10 @@ export declare const GET_INFORMATION_BLOCK_WINDOWED: string;
|
|
|
25
25
|
* blocks.
|
|
26
26
|
*/
|
|
27
27
|
export declare const LIST_INFORMATION_BLOCKS: string;
|
|
28
|
+
/**
|
|
29
|
+
* List Information Blocks as identities and counts, one row per block —
|
|
30
|
+
* the rows, filters, order and page of `ListInformationBlocks`, read in
|
|
31
|
+
* one query instead of an envelope build per block. The document a
|
|
32
|
+
* picker fills from.
|
|
33
|
+
*/
|
|
34
|
+
export declare const LIST_INFORMATION_BLOCK_SUMMARIES: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LIST_INFORMATION_BLOCKS = exports.GET_INFORMATION_BLOCK_WINDOWED = exports.GET_INFORMATION_BLOCK = void 0;
|
|
3
|
+
exports.LIST_INFORMATION_BLOCK_SUMMARIES = exports.LIST_INFORMATION_BLOCKS = exports.GET_INFORMATION_BLOCK_WINDOWED = exports.GET_INFORMATION_BLOCK = void 0;
|
|
4
4
|
const graphql_request_1 = require("graphql-request");
|
|
5
5
|
/**
|
|
6
6
|
* Information Block envelope — the cross-block-type read that replaces
|
|
@@ -521,3 +521,39 @@ exports.LIST_INFORMATION_BLOCKS = (0, graphql_request_1.gql) `
|
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
`;
|
|
524
|
+
/**
|
|
525
|
+
* List Information Blocks as identities and counts, one row per block —
|
|
526
|
+
* the rows, filters, order and page of `ListInformationBlocks`, read in
|
|
527
|
+
* one query instead of an envelope build per block. The document a
|
|
528
|
+
* picker fills from.
|
|
529
|
+
*/
|
|
530
|
+
exports.LIST_INFORMATION_BLOCK_SUMMARIES = (0, graphql_request_1.gql) `
|
|
531
|
+
query ListInformationBlockSummaries(
|
|
532
|
+
$blockType: String
|
|
533
|
+
$category: String
|
|
534
|
+
$limit: Int
|
|
535
|
+
$offset: Int
|
|
536
|
+
$scenarioId: String
|
|
537
|
+
$entityId: String
|
|
538
|
+
) {
|
|
539
|
+
informationBlockSummaries(
|
|
540
|
+
blockType: $blockType
|
|
541
|
+
category: $category
|
|
542
|
+
limit: $limit
|
|
543
|
+
offset: $offset
|
|
544
|
+
scenarioId: $scenarioId
|
|
545
|
+
entityId: $entityId
|
|
546
|
+
) {
|
|
547
|
+
id
|
|
548
|
+
blockType
|
|
549
|
+
name
|
|
550
|
+
displayName
|
|
551
|
+
category
|
|
552
|
+
taxonomyId
|
|
553
|
+
taxonomyName
|
|
554
|
+
entityId
|
|
555
|
+
factCount
|
|
556
|
+
connectionCount
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
`;
|
|
@@ -521,3 +521,40 @@ export const LIST_INFORMATION_BLOCKS = gql`
|
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
`
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* List Information Blocks as identities and counts, one row per block —
|
|
527
|
+
* the rows, filters, order and page of `ListInformationBlocks`, read in
|
|
528
|
+
* one query instead of an envelope build per block. The document a
|
|
529
|
+
* picker fills from.
|
|
530
|
+
*/
|
|
531
|
+
export const LIST_INFORMATION_BLOCK_SUMMARIES = gql`
|
|
532
|
+
query ListInformationBlockSummaries(
|
|
533
|
+
$blockType: String
|
|
534
|
+
$category: String
|
|
535
|
+
$limit: Int
|
|
536
|
+
$offset: Int
|
|
537
|
+
$scenarioId: String
|
|
538
|
+
$entityId: String
|
|
539
|
+
) {
|
|
540
|
+
informationBlockSummaries(
|
|
541
|
+
blockType: $blockType
|
|
542
|
+
category: $category
|
|
543
|
+
limit: $limit
|
|
544
|
+
offset: $offset
|
|
545
|
+
scenarioId: $scenarioId
|
|
546
|
+
entityId: $entityId
|
|
547
|
+
) {
|
|
548
|
+
id
|
|
549
|
+
blockType
|
|
550
|
+
name
|
|
551
|
+
displayName
|
|
552
|
+
category
|
|
553
|
+
taxonomyId
|
|
554
|
+
taxonomyName
|
|
555
|
+
entityId
|
|
556
|
+
factCount
|
|
557
|
+
connectionCount
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
`
|