@robosystems/client 0.4.0 → 0.5.1
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/InvestorClient.js +7 -7
- package/artifacts/InvestorClient.ts +13 -13
- package/artifacts/LedgerClient.d.ts +2 -2
- package/artifacts/LedgerClient.js +48 -48
- package/artifacts/LedgerClient.ts +91 -91
- package/client/client.gen.js +109 -126
- package/client/client.gen.ts +129 -139
- package/client/types.gen.d.ts +7 -4
- package/client/types.gen.ts +10 -5
- package/client/utils.gen.d.ts +7 -3
- package/client/utils.gen.js +6 -6
- package/client/utils.gen.ts +11 -11
- package/core/bodySerializer.gen.d.ts +4 -4
- package/core/bodySerializer.gen.ts +6 -8
- package/core/params.gen.js +5 -5
- package/core/params.gen.ts +5 -5
- package/core/serverSentEvents.gen.d.ts +1 -1
- package/core/serverSentEvents.gen.js +4 -6
- package/core/serverSentEvents.gen.ts +4 -5
- package/core/types.gen.d.ts +1 -1
- package/core/types.gen.ts +1 -1
- package/core/utils.gen.js +1 -1
- package/core/utils.gen.ts +1 -1
- package/index.ts +2 -2
- package/package.json +2 -2
- package/sdk/client/client.gen.js +109 -126
- package/sdk/client/client.gen.ts +129 -139
- package/sdk/client/types.gen.d.ts +7 -4
- package/sdk/client/types.gen.ts +10 -5
- package/sdk/client/utils.gen.d.ts +7 -3
- package/sdk/client/utils.gen.js +6 -6
- package/sdk/client/utils.gen.ts +11 -11
- package/sdk/core/bodySerializer.gen.d.ts +4 -4
- package/sdk/core/bodySerializer.gen.ts +6 -8
- package/sdk/core/params.gen.js +5 -5
- package/sdk/core/params.gen.ts +5 -5
- package/sdk/core/serverSentEvents.gen.d.ts +1 -1
- package/sdk/core/serverSentEvents.gen.js +4 -6
- package/sdk/core/serverSentEvents.gen.ts +4 -5
- package/sdk/core/types.gen.d.ts +1 -1
- package/sdk/core/types.gen.ts +1 -1
- package/sdk/core/utils.gen.js +1 -1
- package/sdk/core/utils.gen.ts +1 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +68 -68
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +80 -80
- package/sdk/sdk.gen.js +154 -154
- package/sdk/sdk.gen.ts +89 -89
- package/sdk/types.gen.d.ts +374 -385
- package/sdk/types.gen.ts +379 -390
- package/sdk.gen.d.ts +80 -80
- package/sdk.gen.js +154 -154
- package/sdk.gen.ts +89 -89
- package/types.gen.d.ts +374 -385
- package/types.gen.ts +379 -390
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Code Generator). The graph is in the URL, not in the query.
|
|
14
14
|
* - **Writes** go through named command operations at
|
|
15
15
|
* `/extensions/roboledger/{graph_id}/operations/{operation_name}`
|
|
16
|
-
* (via the OpenAPI-generated
|
|
16
|
+
* (via the OpenAPI-generated command functions in `../sdk/sdk.gen`).
|
|
17
17
|
* Each command returns an `OperationEnvelope`; the facade unwraps
|
|
18
18
|
* `envelope.result` and returns a friendly camelCase type.
|
|
19
19
|
*
|
|
@@ -25,46 +25,46 @@
|
|
|
25
25
|
import type { TypedDocumentNode } from '@graphql-typed-document-node/core'
|
|
26
26
|
import { ClientError } from 'graphql-request'
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
28
|
+
addPublishListMembers,
|
|
29
|
+
autoMapElements,
|
|
30
|
+
buildFactGrid,
|
|
31
|
+
closePeriod,
|
|
32
|
+
createAgent,
|
|
33
|
+
createEventBlock,
|
|
34
|
+
createEventHandler,
|
|
35
|
+
createInformationBlock,
|
|
36
|
+
createMappingAssociation,
|
|
37
|
+
createPublishList,
|
|
38
|
+
createReport,
|
|
39
|
+
createTaxonomyBlock,
|
|
40
|
+
deleteInformationBlock,
|
|
41
|
+
deleteJournalEntry,
|
|
42
|
+
deleteMappingAssociation,
|
|
43
|
+
deletePublishList,
|
|
44
|
+
deleteReport,
|
|
45
|
+
deleteTaxonomyBlock,
|
|
46
|
+
evaluateRules,
|
|
47
|
+
fileReport,
|
|
48
|
+
financialStatementAnalysis,
|
|
49
|
+
initializeLedger,
|
|
50
|
+
linkEntityTaxonomy,
|
|
51
|
+
liveFinancialStatement,
|
|
52
|
+
previewEventBlock,
|
|
53
|
+
rebuildSchedule,
|
|
54
|
+
regenerateReport,
|
|
55
|
+
removePublishListMember,
|
|
56
|
+
reopenPeriod,
|
|
57
|
+
setCloseTarget,
|
|
58
|
+
shareReport,
|
|
59
|
+
transitionFilingStatus,
|
|
60
|
+
updateAgent,
|
|
61
|
+
updateEntity,
|
|
62
|
+
updateEventBlock,
|
|
63
|
+
updateEventHandler,
|
|
64
|
+
updateInformationBlock,
|
|
65
|
+
updateJournalEntry,
|
|
66
|
+
updatePublishList,
|
|
67
|
+
updateTaxonomyBlock,
|
|
68
68
|
} from '../sdk.gen'
|
|
69
69
|
import type {
|
|
70
70
|
AddPublishListMembersOperation,
|
|
@@ -559,7 +559,7 @@ export class LedgerClient {
|
|
|
559
559
|
async updateEntity(graphId: string, updates: UpdateEntityRequest): Promise<LedgerEntity> {
|
|
560
560
|
const envelope = await this.callOperation(
|
|
561
561
|
'Update entity',
|
|
562
|
-
|
|
562
|
+
updateEntity({
|
|
563
563
|
path: { graph_id: graphId },
|
|
564
564
|
body: updates,
|
|
565
565
|
})
|
|
@@ -842,7 +842,7 @@ export class LedgerClient {
|
|
|
842
842
|
): Promise<EntityTaxonomyResponse> {
|
|
843
843
|
const envelope = await this.callOperation(
|
|
844
844
|
'Link entity taxonomy',
|
|
845
|
-
|
|
845
|
+
linkEntityTaxonomy({ path: { graph_id: graphId }, body })
|
|
846
846
|
)
|
|
847
847
|
return this.requireResult('Link entity taxonomy', envelope.result)
|
|
848
848
|
}
|
|
@@ -859,7 +859,7 @@ export class LedgerClient {
|
|
|
859
859
|
const headers = idempotencyKey ? { 'Idempotency-Key': idempotencyKey } : undefined
|
|
860
860
|
const envelope = await this.callOperation(
|
|
861
861
|
'Create taxonomy block',
|
|
862
|
-
|
|
862
|
+
createTaxonomyBlock({ path: { graph_id: graphId }, body, headers })
|
|
863
863
|
)
|
|
864
864
|
return this.requireResult('Create taxonomy block', envelope.result)
|
|
865
865
|
}
|
|
@@ -871,7 +871,7 @@ export class LedgerClient {
|
|
|
871
871
|
): Promise<TaxonomyBlockEnvelope> {
|
|
872
872
|
const envelope = await this.callOperation(
|
|
873
873
|
'Update taxonomy block',
|
|
874
|
-
|
|
874
|
+
updateTaxonomyBlock({ path: { graph_id: graphId }, body })
|
|
875
875
|
)
|
|
876
876
|
return this.requireResult('Update taxonomy block', envelope.result)
|
|
877
877
|
}
|
|
@@ -883,7 +883,7 @@ export class LedgerClient {
|
|
|
883
883
|
): Promise<DeleteTaxonomyBlockResponse> {
|
|
884
884
|
const envelope = await this.callOperation(
|
|
885
885
|
'Delete taxonomy block',
|
|
886
|
-
|
|
886
|
+
deleteTaxonomyBlock({ path: { graph_id: graphId }, body })
|
|
887
887
|
)
|
|
888
888
|
return (envelope.result ?? { deleted: true }) as DeleteTaxonomyBlockResponse
|
|
889
889
|
}
|
|
@@ -1016,7 +1016,7 @@ export class LedgerClient {
|
|
|
1016
1016
|
): Promise<AssociationResponse> {
|
|
1017
1017
|
const envelope = await this.callOperation(
|
|
1018
1018
|
'Create mapping association',
|
|
1019
|
-
|
|
1019
|
+
createMappingAssociation({ path: { graph_id: graphId }, body })
|
|
1020
1020
|
)
|
|
1021
1021
|
return this.requireResult('Create mapping association', envelope.result)
|
|
1022
1022
|
}
|
|
@@ -1028,7 +1028,7 @@ export class LedgerClient {
|
|
|
1028
1028
|
): Promise<DeleteResult> {
|
|
1029
1029
|
const envelope = await this.callOperation(
|
|
1030
1030
|
'Delete mapping association',
|
|
1031
|
-
|
|
1031
|
+
deleteMappingAssociation({ path: { graph_id: graphId }, body })
|
|
1032
1032
|
)
|
|
1033
1033
|
return (envelope.result ?? { deleted: true }) as DeleteResult
|
|
1034
1034
|
}
|
|
@@ -1044,7 +1044,7 @@ export class LedgerClient {
|
|
|
1044
1044
|
): Promise<{ operationId: string; status: OperationEnvelope['status'] }> {
|
|
1045
1045
|
const envelope = await this.callOperation(
|
|
1046
1046
|
'Auto-map elements',
|
|
1047
|
-
|
|
1047
|
+
autoMapElements({ path: { graph_id: graphId }, body })
|
|
1048
1048
|
)
|
|
1049
1049
|
return { operationId: envelope.operationId, status: envelope.status }
|
|
1050
1050
|
}
|
|
@@ -1116,7 +1116,7 @@ export class LedgerClient {
|
|
|
1116
1116
|
): Promise<InformationBlockEnvelope> {
|
|
1117
1117
|
const envelope = await this.callOperation(
|
|
1118
1118
|
'Create information block',
|
|
1119
|
-
|
|
1119
|
+
createInformationBlock({
|
|
1120
1120
|
path: { graph_id: graphId },
|
|
1121
1121
|
body,
|
|
1122
1122
|
headers: options?.idempotencyKey
|
|
@@ -1137,7 +1137,7 @@ export class LedgerClient {
|
|
|
1137
1137
|
): Promise<InformationBlockEnvelope> {
|
|
1138
1138
|
const envelope = await this.callOperation(
|
|
1139
1139
|
'Update information block',
|
|
1140
|
-
|
|
1140
|
+
updateInformationBlock({ path: { graph_id: graphId }, body })
|
|
1141
1141
|
)
|
|
1142
1142
|
return this.requireResult('Update information block', envelope.result)
|
|
1143
1143
|
}
|
|
@@ -1153,7 +1153,7 @@ export class LedgerClient {
|
|
|
1153
1153
|
): Promise<DeleteInformationBlockResponse> {
|
|
1154
1154
|
const envelope = await this.callOperation(
|
|
1155
1155
|
'Delete information block',
|
|
1156
|
-
|
|
1156
|
+
deleteInformationBlock({ path: { graph_id: graphId }, body })
|
|
1157
1157
|
)
|
|
1158
1158
|
return (envelope.result ?? { deleted: true }) as DeleteInformationBlockResponse
|
|
1159
1159
|
}
|
|
@@ -1187,7 +1187,7 @@ export class LedgerClient {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
const envelope = await this.callOperation(
|
|
1189
1189
|
'Create schedule',
|
|
1190
|
-
|
|
1190
|
+
createInformationBlock({ path: { graph_id: graphId }, body })
|
|
1191
1191
|
)
|
|
1192
1192
|
const raw = envelope.result as unknown as RawScheduleCreatedResult
|
|
1193
1193
|
return {
|
|
@@ -1212,7 +1212,7 @@ export class LedgerClient {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
const envelope = await this.callOperation(
|
|
1214
1214
|
'Update schedule',
|
|
1215
|
-
|
|
1215
|
+
updateInformationBlock({ path: { graph_id: graphId }, body })
|
|
1216
1216
|
)
|
|
1217
1217
|
return this.requireResult('Update schedule', envelope.result)
|
|
1218
1218
|
}
|
|
@@ -1228,7 +1228,7 @@ export class LedgerClient {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
const envelope = await this.callOperation(
|
|
1230
1230
|
'Delete schedule',
|
|
1231
|
-
|
|
1231
|
+
deleteInformationBlock({ path: { graph_id: graphId }, body })
|
|
1232
1232
|
)
|
|
1233
1233
|
return (envelope.result ?? { deleted: true }) as DeleteInformationBlockResponse
|
|
1234
1234
|
}
|
|
@@ -1254,7 +1254,7 @@ export class LedgerClient {
|
|
|
1254
1254
|
const body: RebuildScheduleRequest = { structure_id: structureId }
|
|
1255
1255
|
const envelope = await this.callOperation(
|
|
1256
1256
|
'Rebuild schedule',
|
|
1257
|
-
|
|
1257
|
+
rebuildSchedule({
|
|
1258
1258
|
path: { graph_id: graphId },
|
|
1259
1259
|
body,
|
|
1260
1260
|
headers: options?.idempotencyKey
|
|
@@ -1312,7 +1312,7 @@ export class LedgerClient {
|
|
|
1312
1312
|
}
|
|
1313
1313
|
const envelope = await this.callOperation(
|
|
1314
1314
|
'Dispose schedule',
|
|
1315
|
-
|
|
1315
|
+
createEventBlock({ path: { graph_id: graphId }, body })
|
|
1316
1316
|
)
|
|
1317
1317
|
return this.requireResult('Dispose schedule', envelope.result)
|
|
1318
1318
|
}
|
|
@@ -1321,7 +1321,7 @@ export class LedgerClient {
|
|
|
1321
1321
|
async evaluateRules(graphId: string, body: EvaluateRulesRequest): Promise<EvaluateRulesResponse> {
|
|
1322
1322
|
const envelope = await this.callOperation(
|
|
1323
1323
|
'Evaluate rules',
|
|
1324
|
-
|
|
1324
|
+
evaluateRules({ path: { graph_id: graphId }, body })
|
|
1325
1325
|
)
|
|
1326
1326
|
return this.requireResult('Evaluate rules', envelope.result)
|
|
1327
1327
|
}
|
|
@@ -1388,7 +1388,7 @@ export class LedgerClient {
|
|
|
1388
1388
|
}
|
|
1389
1389
|
const envelope = await this.callOperation(
|
|
1390
1390
|
'Create closing entry',
|
|
1391
|
-
|
|
1391
|
+
createEventBlock({ path: { graph_id: graphId }, body })
|
|
1392
1392
|
)
|
|
1393
1393
|
return this.requireResult('Create closing entry', envelope.result)
|
|
1394
1394
|
}
|
|
@@ -1433,7 +1433,7 @@ export class LedgerClient {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
const envelope = await this.callOperation(
|
|
1435
1435
|
'Initialize ledger',
|
|
1436
|
-
|
|
1436
|
+
initializeLedger({ path: { graph_id: graphId }, body })
|
|
1437
1437
|
)
|
|
1438
1438
|
const raw = envelope.result as unknown as RawInitializeLedgerResult
|
|
1439
1439
|
return {
|
|
@@ -1452,7 +1452,7 @@ export class LedgerClient {
|
|
|
1452
1452
|
const body: SetCloseTargetOperation = { period, note: note ?? null }
|
|
1453
1453
|
const envelope = await this.callOperation(
|
|
1454
1454
|
'Set close target',
|
|
1455
|
-
|
|
1455
|
+
setCloseTarget({ path: { graph_id: graphId }, body })
|
|
1456
1456
|
)
|
|
1457
1457
|
return rawFiscalCalendarToCamel(envelope.result as unknown as RawFiscalCalendar)
|
|
1458
1458
|
}
|
|
@@ -1470,7 +1470,7 @@ export class LedgerClient {
|
|
|
1470
1470
|
}
|
|
1471
1471
|
const envelope = await this.callOperation(
|
|
1472
1472
|
'Close period',
|
|
1473
|
-
|
|
1473
|
+
closePeriod({ path: { graph_id: graphId }, body })
|
|
1474
1474
|
)
|
|
1475
1475
|
const raw = envelope.result as unknown as RawClosePeriodResult
|
|
1476
1476
|
return {
|
|
@@ -1497,7 +1497,7 @@ export class LedgerClient {
|
|
|
1497
1497
|
}
|
|
1498
1498
|
const envelope = await this.callOperation(
|
|
1499
1499
|
'Reopen period',
|
|
1500
|
-
|
|
1500
|
+
reopenPeriod({ path: { graph_id: graphId }, body })
|
|
1501
1501
|
)
|
|
1502
1502
|
return rawFiscalCalendarToCamel(envelope.result as unknown as RawFiscalCalendar)
|
|
1503
1503
|
}
|
|
@@ -1548,7 +1548,7 @@ export class LedgerClient {
|
|
|
1548
1548
|
: undefined
|
|
1549
1549
|
const envelope = await this.callOperation(
|
|
1550
1550
|
'Create journal entry',
|
|
1551
|
-
|
|
1551
|
+
createEventBlock({ path: { graph_id: graphId }, body, headers })
|
|
1552
1552
|
)
|
|
1553
1553
|
return this.requireResult('Create journal entry', envelope.result)
|
|
1554
1554
|
}
|
|
@@ -1560,7 +1560,7 @@ export class LedgerClient {
|
|
|
1560
1560
|
): Promise<JournalEntryResponse> {
|
|
1561
1561
|
const envelope = await this.callOperation(
|
|
1562
1562
|
'Update journal entry',
|
|
1563
|
-
|
|
1563
|
+
updateJournalEntry({ path: { graph_id: graphId }, body })
|
|
1564
1564
|
)
|
|
1565
1565
|
return this.requireResult('Update journal entry', envelope.result)
|
|
1566
1566
|
}
|
|
@@ -1570,7 +1570,7 @@ export class LedgerClient {
|
|
|
1570
1570
|
const body: DeleteJournalEntryRequest = { entry_id: entryId }
|
|
1571
1571
|
const envelope = await this.callOperation(
|
|
1572
1572
|
'Delete journal entry',
|
|
1573
|
-
|
|
1573
|
+
deleteJournalEntry({ path: { graph_id: graphId }, body })
|
|
1574
1574
|
)
|
|
1575
1575
|
return (envelope.result ?? { deleted: true }) as DeleteResult
|
|
1576
1576
|
}
|
|
@@ -1609,7 +1609,7 @@ export class LedgerClient {
|
|
|
1609
1609
|
}
|
|
1610
1610
|
const envelope = await this.callOperation(
|
|
1611
1611
|
'Reverse journal entry',
|
|
1612
|
-
|
|
1612
|
+
createEventBlock({ path: { graph_id: graphId }, body })
|
|
1613
1613
|
)
|
|
1614
1614
|
return this.requireResult('Reverse journal entry', envelope.result)
|
|
1615
1615
|
}
|
|
@@ -1630,7 +1630,7 @@ export class LedgerClient {
|
|
|
1630
1630
|
): Promise<PreviewEventBlockResponse> {
|
|
1631
1631
|
const envelope = await this.callOperation(
|
|
1632
1632
|
'Preview event block',
|
|
1633
|
-
|
|
1633
|
+
previewEventBlock({ path: { graph_id: graphId }, body })
|
|
1634
1634
|
)
|
|
1635
1635
|
return this.requireResult('Preview event block', envelope.result)
|
|
1636
1636
|
}
|
|
@@ -1647,7 +1647,7 @@ export class LedgerClient {
|
|
|
1647
1647
|
): Promise<EventBlockEnvelope> {
|
|
1648
1648
|
const envelope = await this.callOperation(
|
|
1649
1649
|
'Update event block',
|
|
1650
|
-
|
|
1650
|
+
updateEventBlock({ path: { graph_id: graphId }, body })
|
|
1651
1651
|
)
|
|
1652
1652
|
return this.requireResult('Update event block', envelope.result)
|
|
1653
1653
|
}
|
|
@@ -1668,7 +1668,7 @@ export class LedgerClient {
|
|
|
1668
1668
|
const headers = idempotencyKey ? { 'Idempotency-Key': idempotencyKey } : undefined
|
|
1669
1669
|
const envelope = await this.callOperation(
|
|
1670
1670
|
'Create agent',
|
|
1671
|
-
|
|
1671
|
+
createAgent({ path: { graph_id: graphId }, body, headers })
|
|
1672
1672
|
)
|
|
1673
1673
|
return this.requireResult('Create agent', envelope.result)
|
|
1674
1674
|
}
|
|
@@ -1680,7 +1680,7 @@ export class LedgerClient {
|
|
|
1680
1680
|
async updateAgent(graphId: string, body: UpdateAgentRequest): Promise<LedgerAgentResponse> {
|
|
1681
1681
|
const envelope = await this.callOperation(
|
|
1682
1682
|
'Update agent',
|
|
1683
|
-
|
|
1683
|
+
updateAgent({ path: { graph_id: graphId }, body })
|
|
1684
1684
|
)
|
|
1685
1685
|
return this.requireResult('Update agent', envelope.result)
|
|
1686
1686
|
}
|
|
@@ -1699,7 +1699,7 @@ export class LedgerClient {
|
|
|
1699
1699
|
): Promise<EventHandlerResponse> {
|
|
1700
1700
|
const envelope = await this.callOperation(
|
|
1701
1701
|
'Create event handler',
|
|
1702
|
-
|
|
1702
|
+
createEventHandler({ path: { graph_id: graphId }, body })
|
|
1703
1703
|
)
|
|
1704
1704
|
return this.requireResult('Create event handler', envelope.result)
|
|
1705
1705
|
}
|
|
@@ -1714,7 +1714,7 @@ export class LedgerClient {
|
|
|
1714
1714
|
): Promise<EventHandlerResponse> {
|
|
1715
1715
|
const envelope = await this.callOperation(
|
|
1716
1716
|
'Update event handler',
|
|
1717
|
-
|
|
1717
|
+
updateEventHandler({ path: { graph_id: graphId }, body })
|
|
1718
1718
|
)
|
|
1719
1719
|
return this.requireResult('Update event handler', envelope.result)
|
|
1720
1720
|
}
|
|
@@ -1733,7 +1733,7 @@ export class LedgerClient {
|
|
|
1733
1733
|
): Promise<Record<string, unknown>> {
|
|
1734
1734
|
const envelope = await this.callOperation(
|
|
1735
1735
|
'Live financial statement',
|
|
1736
|
-
|
|
1736
|
+
liveFinancialStatement({ path: { graph_id: graphId }, body })
|
|
1737
1737
|
)
|
|
1738
1738
|
return (envelope.result ?? {}) as Record<string, unknown>
|
|
1739
1739
|
}
|
|
@@ -1750,7 +1750,7 @@ export class LedgerClient {
|
|
|
1750
1750
|
): Promise<Record<string, unknown>> {
|
|
1751
1751
|
const envelope = await this.callOperation(
|
|
1752
1752
|
'Financial statement analysis',
|
|
1753
|
-
|
|
1753
|
+
financialStatementAnalysis({ path: { graph_id: graphId }, body })
|
|
1754
1754
|
)
|
|
1755
1755
|
return (envelope.result ?? {}) as Record<string, unknown>
|
|
1756
1756
|
}
|
|
@@ -1767,7 +1767,7 @@ export class LedgerClient {
|
|
|
1767
1767
|
async buildFactGrid(graphId: string, body: CreateViewRequest): Promise<Record<string, unknown>> {
|
|
1768
1768
|
const envelope = await this.callOperation(
|
|
1769
1769
|
'Build fact grid',
|
|
1770
|
-
|
|
1770
|
+
buildFactGrid({ path: { graph_id: graphId }, body })
|
|
1771
1771
|
)
|
|
1772
1772
|
return (envelope.result ?? {}) as Record<string, unknown>
|
|
1773
1773
|
}
|
|
@@ -1828,7 +1828,7 @@ export class LedgerClient {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
const envelope = await this.callOperation(
|
|
1830
1830
|
'Create report',
|
|
1831
|
-
|
|
1831
|
+
createReport({ path: { graph_id: graphId }, body })
|
|
1832
1832
|
)
|
|
1833
1833
|
return {
|
|
1834
1834
|
operationId: envelope.operationId,
|
|
@@ -1907,13 +1907,13 @@ export class LedgerClient {
|
|
|
1907
1907
|
): Promise<ReportOperationAck<ReportResponse>> {
|
|
1908
1908
|
const envelope = await this.callOperation(
|
|
1909
1909
|
'Regenerate report',
|
|
1910
|
-
|
|
1910
|
+
regenerateReport({
|
|
1911
1911
|
path: { graph_id: graphId },
|
|
1912
1912
|
body: {
|
|
1913
1913
|
report_id: reportId,
|
|
1914
1914
|
period_start: periodStart,
|
|
1915
1915
|
period_end: periodEnd,
|
|
1916
|
-
} as Parameters<typeof
|
|
1916
|
+
} as Parameters<typeof regenerateReport>[0]['body'],
|
|
1917
1917
|
})
|
|
1918
1918
|
)
|
|
1919
1919
|
return {
|
|
@@ -1927,7 +1927,7 @@ export class LedgerClient {
|
|
|
1927
1927
|
async deleteReport(graphId: string, reportId: string): Promise<DeleteResult> {
|
|
1928
1928
|
const envelope = await this.callOperation(
|
|
1929
1929
|
'Delete report',
|
|
1930
|
-
|
|
1930
|
+
deleteReport({
|
|
1931
1931
|
path: { graph_id: graphId },
|
|
1932
1932
|
body: { report_id: reportId },
|
|
1933
1933
|
})
|
|
@@ -1997,12 +1997,12 @@ export class LedgerClient {
|
|
|
1997
1997
|
): Promise<ReportOperationAck<ShareReportResponse>> {
|
|
1998
1998
|
const envelope = await this.callOperation(
|
|
1999
1999
|
'Share report',
|
|
2000
|
-
|
|
2000
|
+
shareReport({
|
|
2001
2001
|
path: { graph_id: graphId },
|
|
2002
2002
|
body: {
|
|
2003
2003
|
report_id: reportId,
|
|
2004
2004
|
publish_list_id: publishListId,
|
|
2005
|
-
} as Parameters<typeof
|
|
2005
|
+
} as Parameters<typeof shareReport>[0]['body'],
|
|
2006
2006
|
})
|
|
2007
2007
|
)
|
|
2008
2008
|
return {
|
|
@@ -2021,7 +2021,7 @@ export class LedgerClient {
|
|
|
2021
2021
|
const body: FileReportRequest = { report_id: reportId }
|
|
2022
2022
|
const envelope = await this.callOperation(
|
|
2023
2023
|
'File report',
|
|
2024
|
-
|
|
2024
|
+
fileReport({ path: { graph_id: graphId }, body })
|
|
2025
2025
|
)
|
|
2026
2026
|
return {
|
|
2027
2027
|
operationId: envelope.operationId,
|
|
@@ -2046,7 +2046,7 @@ export class LedgerClient {
|
|
|
2046
2046
|
}
|
|
2047
2047
|
const envelope = await this.callOperation(
|
|
2048
2048
|
'Transition filing status',
|
|
2049
|
-
|
|
2049
|
+
transitionFilingStatus({ path: { graph_id: graphId }, body })
|
|
2050
2050
|
)
|
|
2051
2051
|
return {
|
|
2052
2052
|
operationId: envelope.operationId,
|
|
@@ -2092,7 +2092,7 @@ export class LedgerClient {
|
|
|
2092
2092
|
}
|
|
2093
2093
|
const envelope = await this.callOperation(
|
|
2094
2094
|
'Create publish list',
|
|
2095
|
-
|
|
2095
|
+
createPublishList({ path: { graph_id: graphId }, body })
|
|
2096
2096
|
)
|
|
2097
2097
|
return this.requireResult('Create publish list', envelope.result)
|
|
2098
2098
|
}
|
|
@@ -2116,7 +2116,7 @@ export class LedgerClient {
|
|
|
2116
2116
|
): Promise<PublishListResponse> {
|
|
2117
2117
|
const envelope = await this.callOperation(
|
|
2118
2118
|
'Update publish list',
|
|
2119
|
-
|
|
2119
|
+
updatePublishList({
|
|
2120
2120
|
path: { graph_id: graphId },
|
|
2121
2121
|
body: {
|
|
2122
2122
|
list_id: listId,
|
|
@@ -2132,7 +2132,7 @@ export class LedgerClient {
|
|
|
2132
2132
|
async deletePublishList(graphId: string, listId: string): Promise<DeleteResult> {
|
|
2133
2133
|
const envelope = await this.callOperation(
|
|
2134
2134
|
'Delete publish list',
|
|
2135
|
-
|
|
2135
|
+
deletePublishList({
|
|
2136
2136
|
path: { graph_id: graphId },
|
|
2137
2137
|
body: { list_id: listId },
|
|
2138
2138
|
})
|
|
@@ -2148,7 +2148,7 @@ export class LedgerClient {
|
|
|
2148
2148
|
): Promise<PublishListMemberResponse[]> {
|
|
2149
2149
|
const envelope = await this.callOperation(
|
|
2150
2150
|
'Add publish list members',
|
|
2151
|
-
|
|
2151
|
+
addPublishListMembers({
|
|
2152
2152
|
path: { graph_id: graphId },
|
|
2153
2153
|
body: {
|
|
2154
2154
|
list_id: listId,
|
|
@@ -2167,7 +2167,7 @@ export class LedgerClient {
|
|
|
2167
2167
|
): Promise<DeleteResult> {
|
|
2168
2168
|
const envelope = await this.callOperation(
|
|
2169
2169
|
'Remove publish list member',
|
|
2170
|
-
|
|
2170
|
+
removePublishListMember({
|
|
2171
2171
|
path: { graph_id: graphId },
|
|
2172
2172
|
body: { list_id: listId, member_id: memberId },
|
|
2173
2173
|
})
|
|
@@ -2178,11 +2178,11 @@ export class LedgerClient {
|
|
|
2178
2178
|
// ── Internal helpers ────────────────────────────────────────────────
|
|
2179
2179
|
|
|
2180
2180
|
/**
|
|
2181
|
-
* Await an SDK-generated
|
|
2181
|
+
* Await an SDK-generated command call, throw a readable error on
|
|
2182
2182
|
* non-2xx, and return the parsed envelope on success.
|
|
2183
2183
|
*
|
|
2184
2184
|
* Generic over the SDK call's response shape so typed ops (e.g.
|
|
2185
|
-
* `
|
|
2185
|
+
* `createEventBlock`, which returns
|
|
2186
2186
|
* `OperationEnvelopeEventBlockEnvelope`) flow through with a typed
|
|
2187
2187
|
* `envelope.result` instead of being widened to `unknown`. Untyped
|
|
2188
2188
|
* ops continue to land as `OperationEnvelope` automatically.
|