@robosystems/client 0.2.47 → 0.2.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extensions/AgentClient.test.ts +403 -0
- package/extensions/LedgerClient.d.ts +196 -7
- package/extensions/LedgerClient.js +282 -8
- package/extensions/LedgerClient.test.ts +1655 -0
- package/extensions/LedgerClient.ts +509 -13
- package/extensions/OperationClient.test.ts +199 -1
- package/extensions/QueryClient.test.ts +169 -0
- package/extensions/ReportClient.test.ts +828 -0
- package/extensions/hooks.test.ts +373 -0
- package/extensions/index.test.ts +279 -60
- package/index.ts +2 -2
- package/package.json +1 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +14 -4
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +126 -1
- package/sdk/sdk.gen.js +201 -2
- package/sdk/sdk.gen.ts +200 -1
- package/sdk/types.gen.d.ts +976 -13
- package/sdk/types.gen.ts +1045 -11
- package/sdk-extensions/AgentClient.test.ts +403 -0
- package/sdk-extensions/LedgerClient.d.ts +196 -7
- package/sdk-extensions/LedgerClient.js +282 -8
- package/sdk-extensions/LedgerClient.test.ts +1655 -0
- package/sdk-extensions/LedgerClient.ts +509 -13
- package/sdk-extensions/OperationClient.test.ts +199 -1
- package/sdk-extensions/QueryClient.test.ts +169 -0
- package/sdk-extensions/ReportClient.test.ts +828 -0
- package/sdk-extensions/hooks.test.ts +373 -0
- package/sdk-extensions/index.test.ts +279 -60
- package/sdk.gen.d.ts +126 -1
- package/sdk.gen.js +201 -2
- package/sdk.gen.ts +200 -1
- package/types.gen.d.ts +976 -13
- package/types.gen.ts +1045 -11
package/types.gen.ts
CHANGED
|
@@ -177,6 +177,96 @@ export type AccountResponse = {
|
|
|
177
177
|
external_source?: string | null;
|
|
178
178
|
};
|
|
179
179
|
|
|
180
|
+
/**
|
|
181
|
+
* AccountRollupGroup
|
|
182
|
+
*/
|
|
183
|
+
export type AccountRollupGroup = {
|
|
184
|
+
/**
|
|
185
|
+
* Reporting Element Id
|
|
186
|
+
*/
|
|
187
|
+
reporting_element_id: string;
|
|
188
|
+
/**
|
|
189
|
+
* Reporting Name
|
|
190
|
+
*/
|
|
191
|
+
reporting_name: string;
|
|
192
|
+
/**
|
|
193
|
+
* Reporting Qname
|
|
194
|
+
*/
|
|
195
|
+
reporting_qname: string;
|
|
196
|
+
/**
|
|
197
|
+
* Classification
|
|
198
|
+
*/
|
|
199
|
+
classification: string;
|
|
200
|
+
/**
|
|
201
|
+
* Balance Type
|
|
202
|
+
*/
|
|
203
|
+
balance_type: string;
|
|
204
|
+
/**
|
|
205
|
+
* Total
|
|
206
|
+
*/
|
|
207
|
+
total: number;
|
|
208
|
+
/**
|
|
209
|
+
* Accounts
|
|
210
|
+
*/
|
|
211
|
+
accounts: Array<AccountRollupRow>;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* AccountRollupRow
|
|
216
|
+
*/
|
|
217
|
+
export type AccountRollupRow = {
|
|
218
|
+
/**
|
|
219
|
+
* Element Id
|
|
220
|
+
*/
|
|
221
|
+
element_id: string;
|
|
222
|
+
/**
|
|
223
|
+
* Account Name
|
|
224
|
+
*/
|
|
225
|
+
account_name: string;
|
|
226
|
+
/**
|
|
227
|
+
* Account Code
|
|
228
|
+
*/
|
|
229
|
+
account_code?: string | null;
|
|
230
|
+
/**
|
|
231
|
+
* Total Debits
|
|
232
|
+
*/
|
|
233
|
+
total_debits: number;
|
|
234
|
+
/**
|
|
235
|
+
* Total Credits
|
|
236
|
+
*/
|
|
237
|
+
total_credits: number;
|
|
238
|
+
/**
|
|
239
|
+
* Net Balance
|
|
240
|
+
*/
|
|
241
|
+
net_balance: number;
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* AccountRollupsResponse
|
|
246
|
+
*/
|
|
247
|
+
export type AccountRollupsResponse = {
|
|
248
|
+
/**
|
|
249
|
+
* Mapping Id
|
|
250
|
+
*/
|
|
251
|
+
mapping_id: string;
|
|
252
|
+
/**
|
|
253
|
+
* Mapping Name
|
|
254
|
+
*/
|
|
255
|
+
mapping_name: string;
|
|
256
|
+
/**
|
|
257
|
+
* Groups
|
|
258
|
+
*/
|
|
259
|
+
groups: Array<AccountRollupGroup>;
|
|
260
|
+
/**
|
|
261
|
+
* Total Mapped
|
|
262
|
+
*/
|
|
263
|
+
total_mapped: number;
|
|
264
|
+
/**
|
|
265
|
+
* Total Unmapped
|
|
266
|
+
*/
|
|
267
|
+
total_unmapped: number;
|
|
268
|
+
};
|
|
269
|
+
|
|
180
270
|
/**
|
|
181
271
|
* AccountTreeNode
|
|
182
272
|
*/
|
|
@@ -1222,38 +1312,158 @@ export type CheckoutStatusResponse = {
|
|
|
1222
1312
|
error?: string | null;
|
|
1223
1313
|
};
|
|
1224
1314
|
|
|
1315
|
+
/**
|
|
1316
|
+
* ClosePeriodRequest
|
|
1317
|
+
*/
|
|
1318
|
+
export type ClosePeriodRequest = {
|
|
1319
|
+
/**
|
|
1320
|
+
* Note
|
|
1321
|
+
*
|
|
1322
|
+
* Free-form note attached to the close event
|
|
1323
|
+
*/
|
|
1324
|
+
note?: string | null;
|
|
1325
|
+
/**
|
|
1326
|
+
* Allow Stale Sync
|
|
1327
|
+
*
|
|
1328
|
+
* Override the sync-currency gate. Only use when you have manually verified that the source data for the period is complete.
|
|
1329
|
+
*/
|
|
1330
|
+
allow_stale_sync?: boolean;
|
|
1331
|
+
};
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
* ClosePeriodResponse
|
|
1335
|
+
*
|
|
1336
|
+
* Response from a single-period close operation.
|
|
1337
|
+
*/
|
|
1338
|
+
export type ClosePeriodResponse = {
|
|
1339
|
+
fiscal_calendar: FiscalCalendarResponse;
|
|
1340
|
+
/**
|
|
1341
|
+
* Period
|
|
1342
|
+
*/
|
|
1343
|
+
period: string;
|
|
1344
|
+
/**
|
|
1345
|
+
* Entries Posted
|
|
1346
|
+
*
|
|
1347
|
+
* Number of draft entries transitioned to posted
|
|
1348
|
+
*/
|
|
1349
|
+
entries_posted?: number;
|
|
1350
|
+
/**
|
|
1351
|
+
* Target Auto Advanced
|
|
1352
|
+
*
|
|
1353
|
+
* Whether close_target was auto-advanced because it was reached
|
|
1354
|
+
*/
|
|
1355
|
+
target_auto_advanced?: boolean;
|
|
1356
|
+
};
|
|
1357
|
+
|
|
1358
|
+
/**
|
|
1359
|
+
* ClosingBookCategory
|
|
1360
|
+
*/
|
|
1361
|
+
export type ClosingBookCategory = {
|
|
1362
|
+
/**
|
|
1363
|
+
* Label
|
|
1364
|
+
*/
|
|
1365
|
+
label: string;
|
|
1366
|
+
/**
|
|
1367
|
+
* Items
|
|
1368
|
+
*/
|
|
1369
|
+
items: Array<ClosingBookItem>;
|
|
1370
|
+
};
|
|
1371
|
+
|
|
1372
|
+
/**
|
|
1373
|
+
* ClosingBookItem
|
|
1374
|
+
*/
|
|
1375
|
+
export type ClosingBookItem = {
|
|
1376
|
+
/**
|
|
1377
|
+
* Id
|
|
1378
|
+
*/
|
|
1379
|
+
id: string;
|
|
1380
|
+
/**
|
|
1381
|
+
* Name
|
|
1382
|
+
*/
|
|
1383
|
+
name: string;
|
|
1384
|
+
/**
|
|
1385
|
+
* Item Type
|
|
1386
|
+
*/
|
|
1387
|
+
item_type: string;
|
|
1388
|
+
/**
|
|
1389
|
+
* Structure Type
|
|
1390
|
+
*/
|
|
1391
|
+
structure_type?: string | null;
|
|
1392
|
+
/**
|
|
1393
|
+
* Report Id
|
|
1394
|
+
*/
|
|
1395
|
+
report_id?: string | null;
|
|
1396
|
+
/**
|
|
1397
|
+
* Status
|
|
1398
|
+
*/
|
|
1399
|
+
status?: string | null;
|
|
1400
|
+
};
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* ClosingBookStructuresResponse
|
|
1404
|
+
*/
|
|
1405
|
+
export type ClosingBookStructuresResponse = {
|
|
1406
|
+
/**
|
|
1407
|
+
* Categories
|
|
1408
|
+
*/
|
|
1409
|
+
categories: Array<ClosingBookCategory>;
|
|
1410
|
+
/**
|
|
1411
|
+
* Has Data
|
|
1412
|
+
*/
|
|
1413
|
+
has_data: boolean;
|
|
1414
|
+
};
|
|
1415
|
+
|
|
1225
1416
|
/**
|
|
1226
1417
|
* ClosingEntryResponse
|
|
1227
1418
|
*/
|
|
1228
1419
|
export type ClosingEntryResponse = {
|
|
1420
|
+
/**
|
|
1421
|
+
* Outcome
|
|
1422
|
+
*
|
|
1423
|
+
* What the idempotent call did: 'created' (new draft), 'unchanged' (existing draft still matches), 'regenerated' (stale draft replaced with fresh one), 'removed' (stale draft deleted; schedule no longer covers this period), 'skipped' (nothing to do — no draft and no in-scope fact).
|
|
1424
|
+
*/
|
|
1425
|
+
outcome: string;
|
|
1229
1426
|
/**
|
|
1230
1427
|
* Entry Id
|
|
1428
|
+
*
|
|
1429
|
+
* The draft entry ID. None for 'removed' and 'skipped' outcomes.
|
|
1231
1430
|
*/
|
|
1232
|
-
entry_id
|
|
1431
|
+
entry_id?: string | null;
|
|
1233
1432
|
/**
|
|
1234
1433
|
* Status
|
|
1434
|
+
*
|
|
1435
|
+
* Entry status (always 'draft' when present).
|
|
1235
1436
|
*/
|
|
1236
|
-
status
|
|
1437
|
+
status?: string | null;
|
|
1237
1438
|
/**
|
|
1238
1439
|
* Posting Date
|
|
1239
1440
|
*/
|
|
1240
|
-
posting_date
|
|
1441
|
+
posting_date?: string | null;
|
|
1241
1442
|
/**
|
|
1242
1443
|
* Memo
|
|
1243
1444
|
*/
|
|
1244
|
-
memo
|
|
1445
|
+
memo?: string | null;
|
|
1245
1446
|
/**
|
|
1246
1447
|
* Debit Element Id
|
|
1247
1448
|
*/
|
|
1248
|
-
debit_element_id
|
|
1449
|
+
debit_element_id?: string | null;
|
|
1249
1450
|
/**
|
|
1250
1451
|
* Credit Element Id
|
|
1251
1452
|
*/
|
|
1252
|
-
credit_element_id
|
|
1453
|
+
credit_element_id?: string | null;
|
|
1253
1454
|
/**
|
|
1254
1455
|
* Amount
|
|
1456
|
+
*
|
|
1457
|
+
* Entry amount in dollars. None for 'removed' and 'skipped'.
|
|
1255
1458
|
*/
|
|
1256
|
-
amount
|
|
1459
|
+
amount?: number | null;
|
|
1460
|
+
/**
|
|
1461
|
+
* Reason
|
|
1462
|
+
*
|
|
1463
|
+
* Explanation for 'removed' and 'skipped' outcomes.
|
|
1464
|
+
*/
|
|
1465
|
+
reason?: string | null;
|
|
1466
|
+
reversal?: ClosingEntryResponse | null;
|
|
1257
1467
|
};
|
|
1258
1468
|
|
|
1259
1469
|
/**
|
|
@@ -1684,6 +1894,36 @@ export type CreateGraphRequest = {
|
|
|
1684
1894
|
tags?: Array<string>;
|
|
1685
1895
|
};
|
|
1686
1896
|
|
|
1897
|
+
/**
|
|
1898
|
+
* CreateManualClosingEntryRequest
|
|
1899
|
+
*/
|
|
1900
|
+
export type CreateManualClosingEntryRequest = {
|
|
1901
|
+
/**
|
|
1902
|
+
* Posting Date
|
|
1903
|
+
*
|
|
1904
|
+
* Posting date for the entry
|
|
1905
|
+
*/
|
|
1906
|
+
posting_date: string;
|
|
1907
|
+
/**
|
|
1908
|
+
* Memo
|
|
1909
|
+
*
|
|
1910
|
+
* Memo describing the business event (e.g., 'Sale of computer to Vendor X on 3/15')
|
|
1911
|
+
*/
|
|
1912
|
+
memo: string;
|
|
1913
|
+
/**
|
|
1914
|
+
* Line Items
|
|
1915
|
+
*
|
|
1916
|
+
* Line items; must balance (total DR = total CR)
|
|
1917
|
+
*/
|
|
1918
|
+
line_items: Array<ManualLineItemRequest>;
|
|
1919
|
+
/**
|
|
1920
|
+
* Entry Type
|
|
1921
|
+
*
|
|
1922
|
+
* Entry type: 'closing' (default), 'adjusting', 'standard', 'reversing'
|
|
1923
|
+
*/
|
|
1924
|
+
entry_type?: 'standard' | 'adjusting' | 'closing' | 'reversing';
|
|
1925
|
+
};
|
|
1926
|
+
|
|
1687
1927
|
/**
|
|
1688
1928
|
* CreatePortfolioRequest
|
|
1689
1929
|
*/
|
|
@@ -1888,6 +2128,12 @@ export type CreateScheduleRequest = {
|
|
|
1888
2128
|
monthly_amount: number;
|
|
1889
2129
|
entry_template: EntryTemplateRequest;
|
|
1890
2130
|
schedule_metadata?: ScheduleMetadataRequest | null;
|
|
2131
|
+
/**
|
|
2132
|
+
* Closed Through
|
|
2133
|
+
*
|
|
2134
|
+
* If provided, facts with period_end ≤ this date are flagged as 'historical' (already reflected in opening balances, ignored by the close workflow). Used during initial ledger setup to create schedules whose early facts have already been captured elsewhere.
|
|
2135
|
+
*/
|
|
2136
|
+
closed_through?: string | null;
|
|
1891
2137
|
};
|
|
1892
2138
|
|
|
1893
2139
|
/**
|
|
@@ -1945,7 +2191,7 @@ export type CreateStructureRequest = {
|
|
|
1945
2191
|
/**
|
|
1946
2192
|
* Structure Type
|
|
1947
2193
|
*/
|
|
1948
|
-
structure_type: 'chart_of_accounts' | 'income_statement' | 'balance_sheet' | '
|
|
2194
|
+
structure_type: 'chart_of_accounts' | 'income_statement' | 'balance_sheet' | 'equity_statement' | 'coa_mapping' | 'schedule' | 'custom';
|
|
1949
2195
|
/**
|
|
1950
2196
|
* Taxonomy Id
|
|
1951
2197
|
*/
|
|
@@ -2972,6 +3218,112 @@ export type DownloadQuota = {
|
|
|
2972
3218
|
resets_at: string;
|
|
2973
3219
|
};
|
|
2974
3220
|
|
|
3221
|
+
/**
|
|
3222
|
+
* DraftEntryResponse
|
|
3223
|
+
*
|
|
3224
|
+
* A single draft entry with full line item detail for review.
|
|
3225
|
+
*/
|
|
3226
|
+
export type DraftEntryResponse = {
|
|
3227
|
+
/**
|
|
3228
|
+
* Entry Id
|
|
3229
|
+
*/
|
|
3230
|
+
entry_id: string;
|
|
3231
|
+
/**
|
|
3232
|
+
* Posting Date
|
|
3233
|
+
*/
|
|
3234
|
+
posting_date: string;
|
|
3235
|
+
/**
|
|
3236
|
+
* Type
|
|
3237
|
+
*
|
|
3238
|
+
* Entry type (e.g., 'closing', 'adjusting')
|
|
3239
|
+
*/
|
|
3240
|
+
type: string;
|
|
3241
|
+
/**
|
|
3242
|
+
* Memo
|
|
3243
|
+
*/
|
|
3244
|
+
memo?: string | null;
|
|
3245
|
+
/**
|
|
3246
|
+
* Provenance
|
|
3247
|
+
*
|
|
3248
|
+
* Where the entry came from: 'ai_generated', 'manual_entry', etc.
|
|
3249
|
+
*/
|
|
3250
|
+
provenance?: string | null;
|
|
3251
|
+
/**
|
|
3252
|
+
* Source Structure Id
|
|
3253
|
+
*
|
|
3254
|
+
* Schedule structure that generated this entry (if any)
|
|
3255
|
+
*/
|
|
3256
|
+
source_structure_id?: string | null;
|
|
3257
|
+
/**
|
|
3258
|
+
* Source Structure Name
|
|
3259
|
+
*
|
|
3260
|
+
* Human-readable name of the source schedule
|
|
3261
|
+
*/
|
|
3262
|
+
source_structure_name?: string | null;
|
|
3263
|
+
/**
|
|
3264
|
+
* Line Items
|
|
3265
|
+
*/
|
|
3266
|
+
line_items: Array<DraftLineItem>;
|
|
3267
|
+
/**
|
|
3268
|
+
* Total Debit
|
|
3269
|
+
*
|
|
3270
|
+
* Sum of debit amounts in cents
|
|
3271
|
+
*/
|
|
3272
|
+
total_debit: number;
|
|
3273
|
+
/**
|
|
3274
|
+
* Total Credit
|
|
3275
|
+
*
|
|
3276
|
+
* Sum of credit amounts in cents
|
|
3277
|
+
*/
|
|
3278
|
+
total_credit: number;
|
|
3279
|
+
/**
|
|
3280
|
+
* Balanced
|
|
3281
|
+
*
|
|
3282
|
+
* True if total_debit == total_credit
|
|
3283
|
+
*/
|
|
3284
|
+
balanced: boolean;
|
|
3285
|
+
};
|
|
3286
|
+
|
|
3287
|
+
/**
|
|
3288
|
+
* DraftLineItem
|
|
3289
|
+
*
|
|
3290
|
+
* A single line item within a draft entry.
|
|
3291
|
+
*/
|
|
3292
|
+
export type DraftLineItem = {
|
|
3293
|
+
/**
|
|
3294
|
+
* Line Item Id
|
|
3295
|
+
*/
|
|
3296
|
+
line_item_id: string;
|
|
3297
|
+
/**
|
|
3298
|
+
* Element Id
|
|
3299
|
+
*/
|
|
3300
|
+
element_id: string;
|
|
3301
|
+
/**
|
|
3302
|
+
* Element Code
|
|
3303
|
+
*/
|
|
3304
|
+
element_code?: string | null;
|
|
3305
|
+
/**
|
|
3306
|
+
* Element Name
|
|
3307
|
+
*/
|
|
3308
|
+
element_name: string;
|
|
3309
|
+
/**
|
|
3310
|
+
* Debit Amount
|
|
3311
|
+
*
|
|
3312
|
+
* Debit amount in cents
|
|
3313
|
+
*/
|
|
3314
|
+
debit_amount: number;
|
|
3315
|
+
/**
|
|
3316
|
+
* Credit Amount
|
|
3317
|
+
*
|
|
3318
|
+
* Credit amount in cents
|
|
3319
|
+
*/
|
|
3320
|
+
credit_amount: number;
|
|
3321
|
+
/**
|
|
3322
|
+
* Description
|
|
3323
|
+
*/
|
|
3324
|
+
description?: string | null;
|
|
3325
|
+
};
|
|
3326
|
+
|
|
2975
3327
|
/**
|
|
2976
3328
|
* ElementListResponse
|
|
2977
3329
|
*/
|
|
@@ -3170,14 +3522,20 @@ export type EntryTemplateRequest = {
|
|
|
3170
3522
|
*
|
|
3171
3523
|
* Entry type for generated entries
|
|
3172
3524
|
*/
|
|
3173
|
-
entry_type?:
|
|
3525
|
+
entry_type?: 'standard' | 'adjusting' | 'closing' | 'reversing';
|
|
3174
3526
|
/**
|
|
3175
3527
|
* Memo Template
|
|
3176
3528
|
*
|
|
3177
3529
|
* Memo template ({structure_name} is replaced)
|
|
3178
3530
|
*/
|
|
3179
3531
|
memo_template?: string;
|
|
3180
|
-
|
|
3532
|
+
/**
|
|
3533
|
+
* Auto Reverse
|
|
3534
|
+
*
|
|
3535
|
+
* Auto-generate a reversing entry on the first day of the next period
|
|
3536
|
+
*/
|
|
3537
|
+
auto_reverse?: boolean;
|
|
3538
|
+
};
|
|
3181
3539
|
|
|
3182
3540
|
/**
|
|
3183
3541
|
* ErrorResponse
|
|
@@ -3416,6 +3774,108 @@ export type FileUploadResponse = {
|
|
|
3416
3774
|
s3_key: string;
|
|
3417
3775
|
};
|
|
3418
3776
|
|
|
3777
|
+
/**
|
|
3778
|
+
* FiscalCalendarResponse
|
|
3779
|
+
*
|
|
3780
|
+
* Current fiscal calendar state for a graph.
|
|
3781
|
+
*/
|
|
3782
|
+
export type FiscalCalendarResponse = {
|
|
3783
|
+
/**
|
|
3784
|
+
* Graph Id
|
|
3785
|
+
*/
|
|
3786
|
+
graph_id: string;
|
|
3787
|
+
/**
|
|
3788
|
+
* Fiscal Year Start Month
|
|
3789
|
+
*/
|
|
3790
|
+
fiscal_year_start_month: number;
|
|
3791
|
+
/**
|
|
3792
|
+
* Closed Through
|
|
3793
|
+
*
|
|
3794
|
+
* Latest closed period (YYYY-MM), or null if nothing closed
|
|
3795
|
+
*/
|
|
3796
|
+
closed_through?: string | null;
|
|
3797
|
+
/**
|
|
3798
|
+
* Close Target
|
|
3799
|
+
*
|
|
3800
|
+
* Target period the user wants closed through (YYYY-MM)
|
|
3801
|
+
*/
|
|
3802
|
+
close_target?: string | null;
|
|
3803
|
+
/**
|
|
3804
|
+
* Gap Periods
|
|
3805
|
+
*
|
|
3806
|
+
* Number of periods between closed_through and close_target (inclusive of close_target). 0 means caught up.
|
|
3807
|
+
*/
|
|
3808
|
+
gap_periods?: number;
|
|
3809
|
+
/**
|
|
3810
|
+
* Catch Up Sequence
|
|
3811
|
+
*
|
|
3812
|
+
* Ordered list of periods that a close run would process
|
|
3813
|
+
*/
|
|
3814
|
+
catch_up_sequence?: Array<string>;
|
|
3815
|
+
/**
|
|
3816
|
+
* Closeable Now
|
|
3817
|
+
*
|
|
3818
|
+
* Whether the next period in the catch-up sequence passes all closeable gates
|
|
3819
|
+
*/
|
|
3820
|
+
closeable_now?: boolean;
|
|
3821
|
+
/**
|
|
3822
|
+
* Blockers
|
|
3823
|
+
*
|
|
3824
|
+
* Structured blocker codes when closeable_now is False: 'sequence_violation', 'period_incomplete', 'sync_stale', 'calendar_not_initialized', 'period_already_closed'
|
|
3825
|
+
*/
|
|
3826
|
+
blockers?: Array<string>;
|
|
3827
|
+
/**
|
|
3828
|
+
* Last Close At
|
|
3829
|
+
*/
|
|
3830
|
+
last_close_at?: string | null;
|
|
3831
|
+
/**
|
|
3832
|
+
* Initialized At
|
|
3833
|
+
*/
|
|
3834
|
+
initialized_at?: string | null;
|
|
3835
|
+
/**
|
|
3836
|
+
* Last Sync At
|
|
3837
|
+
*
|
|
3838
|
+
* Most recent QB sync timestamp (if connected)
|
|
3839
|
+
*/
|
|
3840
|
+
last_sync_at?: string | null;
|
|
3841
|
+
/**
|
|
3842
|
+
* Periods
|
|
3843
|
+
*
|
|
3844
|
+
* Fiscal period rows for this graph
|
|
3845
|
+
*/
|
|
3846
|
+
periods?: Array<FiscalPeriodSummary>;
|
|
3847
|
+
};
|
|
3848
|
+
|
|
3849
|
+
/**
|
|
3850
|
+
* FiscalPeriodSummary
|
|
3851
|
+
*/
|
|
3852
|
+
export type FiscalPeriodSummary = {
|
|
3853
|
+
/**
|
|
3854
|
+
* Name
|
|
3855
|
+
*
|
|
3856
|
+
* Period name (YYYY-MM)
|
|
3857
|
+
*/
|
|
3858
|
+
name: string;
|
|
3859
|
+
/**
|
|
3860
|
+
* Start Date
|
|
3861
|
+
*/
|
|
3862
|
+
start_date: string;
|
|
3863
|
+
/**
|
|
3864
|
+
* End Date
|
|
3865
|
+
*/
|
|
3866
|
+
end_date: string;
|
|
3867
|
+
/**
|
|
3868
|
+
* Status
|
|
3869
|
+
*
|
|
3870
|
+
* 'open' | 'closing' | 'closed'
|
|
3871
|
+
*/
|
|
3872
|
+
status: string;
|
|
3873
|
+
/**
|
|
3874
|
+
* Closed At
|
|
3875
|
+
*/
|
|
3876
|
+
closed_at?: string | null;
|
|
3877
|
+
};
|
|
3878
|
+
|
|
3419
3879
|
/**
|
|
3420
3880
|
* ForgotPasswordRequest
|
|
3421
3881
|
*
|
|
@@ -4398,6 +4858,12 @@ export type InitialEntityData = {
|
|
|
4398
4858
|
* Entity website or URI
|
|
4399
4859
|
*/
|
|
4400
4860
|
uri: string;
|
|
4861
|
+
/**
|
|
4862
|
+
* Ticker
|
|
4863
|
+
*
|
|
4864
|
+
* Entity symbol/ticker (e.g., 'HARB', 'NVDA'). Auto-generated from name if not provided.
|
|
4865
|
+
*/
|
|
4866
|
+
ticker?: string | null;
|
|
4401
4867
|
/**
|
|
4402
4868
|
* Cik
|
|
4403
4869
|
*
|
|
@@ -4442,6 +4908,61 @@ export type InitialEntityData = {
|
|
|
4442
4908
|
ein?: string | null;
|
|
4443
4909
|
};
|
|
4444
4910
|
|
|
4911
|
+
/**
|
|
4912
|
+
* InitializeLedgerRequest
|
|
4913
|
+
*/
|
|
4914
|
+
export type InitializeLedgerRequest = {
|
|
4915
|
+
/**
|
|
4916
|
+
* Closed Through
|
|
4917
|
+
*
|
|
4918
|
+
* YYYY-MM period. Periods ≤ this date are treated as historical (already closed before the user joined). Set to null for a fresh business with no prior close state.
|
|
4919
|
+
*/
|
|
4920
|
+
closed_through?: string | null;
|
|
4921
|
+
/**
|
|
4922
|
+
* Fiscal Year Start Month
|
|
4923
|
+
*
|
|
4924
|
+
* Fiscal year start month (1-12). Defaults to calendar year.
|
|
4925
|
+
*/
|
|
4926
|
+
fiscal_year_start_month?: number;
|
|
4927
|
+
/**
|
|
4928
|
+
* Auto Seed Schedules
|
|
4929
|
+
*
|
|
4930
|
+
* If true, run the SchedulerAgent to create schedules from historical BS activity. NOT YET IMPLEMENTED — returns a warning in v1.
|
|
4931
|
+
*/
|
|
4932
|
+
auto_seed_schedules?: boolean;
|
|
4933
|
+
/**
|
|
4934
|
+
* Earliest Data Period
|
|
4935
|
+
*
|
|
4936
|
+
* YYYY-MM period representing the earliest month that has transaction data. Used to create FiscalPeriod rows. Defaults to 24 months before the current month.
|
|
4937
|
+
*/
|
|
4938
|
+
earliest_data_period?: string | null;
|
|
4939
|
+
/**
|
|
4940
|
+
* Note
|
|
4941
|
+
*
|
|
4942
|
+
* Free-form note attached to the audit event
|
|
4943
|
+
*/
|
|
4944
|
+
note?: string | null;
|
|
4945
|
+
};
|
|
4946
|
+
|
|
4947
|
+
/**
|
|
4948
|
+
* InitializeLedgerResponse
|
|
4949
|
+
*/
|
|
4950
|
+
export type InitializeLedgerResponse = {
|
|
4951
|
+
fiscal_calendar: FiscalCalendarResponse;
|
|
4952
|
+
/**
|
|
4953
|
+
* Periods Created
|
|
4954
|
+
*
|
|
4955
|
+
* Number of FiscalPeriod rows created by initialization
|
|
4956
|
+
*/
|
|
4957
|
+
periods_created?: number;
|
|
4958
|
+
/**
|
|
4959
|
+
* Warnings
|
|
4960
|
+
*
|
|
4961
|
+
* Non-fatal warnings (e.g., auto_seed_schedules not implemented)
|
|
4962
|
+
*/
|
|
4963
|
+
warnings?: Array<string>;
|
|
4964
|
+
};
|
|
4965
|
+
|
|
4445
4966
|
/**
|
|
4446
4967
|
* InstanceUsage
|
|
4447
4968
|
*
|
|
@@ -5195,6 +5716,34 @@ export type McpToolsResponse = {
|
|
|
5195
5716
|
}>;
|
|
5196
5717
|
};
|
|
5197
5718
|
|
|
5719
|
+
/**
|
|
5720
|
+
* ManualLineItemRequest
|
|
5721
|
+
*/
|
|
5722
|
+
export type ManualLineItemRequest = {
|
|
5723
|
+
/**
|
|
5724
|
+
* Element Id
|
|
5725
|
+
*
|
|
5726
|
+
* Element ID (chart of accounts)
|
|
5727
|
+
*/
|
|
5728
|
+
element_id: string;
|
|
5729
|
+
/**
|
|
5730
|
+
* Debit Amount
|
|
5731
|
+
*
|
|
5732
|
+
* Debit in cents
|
|
5733
|
+
*/
|
|
5734
|
+
debit_amount?: number;
|
|
5735
|
+
/**
|
|
5736
|
+
* Credit Amount
|
|
5737
|
+
*
|
|
5738
|
+
* Credit in cents
|
|
5739
|
+
*/
|
|
5740
|
+
credit_amount?: number;
|
|
5741
|
+
/**
|
|
5742
|
+
* Description
|
|
5743
|
+
*/
|
|
5744
|
+
description?: string | null;
|
|
5745
|
+
};
|
|
5746
|
+
|
|
5198
5747
|
/**
|
|
5199
5748
|
* MappingCoverageResponse
|
|
5200
5749
|
*
|
|
@@ -5301,6 +5850,12 @@ export type MaterializeRequest = {
|
|
|
5301
5850
|
* Data source for materialization. Auto-detected from graph type if not specified. 'staged' materializes from uploaded files (generic graphs). 'extensions' materializes from the extensions OLTP database (entity graphs).
|
|
5302
5851
|
*/
|
|
5303
5852
|
source?: string | null;
|
|
5853
|
+
/**
|
|
5854
|
+
* Materialize Embeddings
|
|
5855
|
+
*
|
|
5856
|
+
* Include embedding columns in materialization and build HNSW vector indexes in the graph database. When false (default), embedding columns are NULLed out to save space. Set to true for graphs that need vector search.
|
|
5857
|
+
*/
|
|
5858
|
+
materialize_embeddings?: boolean;
|
|
5304
5859
|
};
|
|
5305
5860
|
|
|
5306
5861
|
/**
|
|
@@ -6085,6 +6640,14 @@ export type PeriodCloseItemResponse = {
|
|
|
6085
6640
|
* Entry Id
|
|
6086
6641
|
*/
|
|
6087
6642
|
entry_id?: string | null;
|
|
6643
|
+
/**
|
|
6644
|
+
* Reversal Entry Id
|
|
6645
|
+
*/
|
|
6646
|
+
reversal_entry_id?: string | null;
|
|
6647
|
+
/**
|
|
6648
|
+
* Reversal Status
|
|
6649
|
+
*/
|
|
6650
|
+
reversal_status?: string | null;
|
|
6088
6651
|
};
|
|
6089
6652
|
|
|
6090
6653
|
/**
|
|
@@ -6117,6 +6680,54 @@ export type PeriodCloseStatusResponse = {
|
|
|
6117
6680
|
total_posted: number;
|
|
6118
6681
|
};
|
|
6119
6682
|
|
|
6683
|
+
/**
|
|
6684
|
+
* PeriodDraftsResponse
|
|
6685
|
+
*
|
|
6686
|
+
* All draft entries for a fiscal period, ready for review before close.
|
|
6687
|
+
*/
|
|
6688
|
+
export type PeriodDraftsResponse = {
|
|
6689
|
+
/**
|
|
6690
|
+
* Period
|
|
6691
|
+
*
|
|
6692
|
+
* YYYY-MM period name
|
|
6693
|
+
*/
|
|
6694
|
+
period: string;
|
|
6695
|
+
/**
|
|
6696
|
+
* Period Start
|
|
6697
|
+
*/
|
|
6698
|
+
period_start: string;
|
|
6699
|
+
/**
|
|
6700
|
+
* Period End
|
|
6701
|
+
*/
|
|
6702
|
+
period_end: string;
|
|
6703
|
+
/**
|
|
6704
|
+
* Draft Count
|
|
6705
|
+
*/
|
|
6706
|
+
draft_count: number;
|
|
6707
|
+
/**
|
|
6708
|
+
* Total Debit
|
|
6709
|
+
*
|
|
6710
|
+
* Sum across all drafts, in cents
|
|
6711
|
+
*/
|
|
6712
|
+
total_debit: number;
|
|
6713
|
+
/**
|
|
6714
|
+
* Total Credit
|
|
6715
|
+
*
|
|
6716
|
+
* Sum across all drafts, in cents
|
|
6717
|
+
*/
|
|
6718
|
+
total_credit: number;
|
|
6719
|
+
/**
|
|
6720
|
+
* All Balanced
|
|
6721
|
+
*
|
|
6722
|
+
* True if every draft entry has debit == credit
|
|
6723
|
+
*/
|
|
6724
|
+
all_balanced: boolean;
|
|
6725
|
+
/**
|
|
6726
|
+
* Drafts
|
|
6727
|
+
*/
|
|
6728
|
+
drafts: Array<DraftEntryResponse>;
|
|
6729
|
+
};
|
|
6730
|
+
|
|
6120
6731
|
/**
|
|
6121
6732
|
* PeriodSpec
|
|
6122
6733
|
*
|
|
@@ -6546,6 +7157,24 @@ export type RegisterRequest = {
|
|
|
6546
7157
|
captcha_token?: string | null;
|
|
6547
7158
|
};
|
|
6548
7159
|
|
|
7160
|
+
/**
|
|
7161
|
+
* ReopenPeriodRequest
|
|
7162
|
+
*/
|
|
7163
|
+
export type ReopenPeriodRequest = {
|
|
7164
|
+
/**
|
|
7165
|
+
* Reason
|
|
7166
|
+
*
|
|
7167
|
+
* Required reason for the reopen (captured in audit log)
|
|
7168
|
+
*/
|
|
7169
|
+
reason: string;
|
|
7170
|
+
/**
|
|
7171
|
+
* Note
|
|
7172
|
+
*
|
|
7173
|
+
* Additional free-form note
|
|
7174
|
+
*/
|
|
7175
|
+
note?: string | null;
|
|
7176
|
+
};
|
|
7177
|
+
|
|
6549
7178
|
/**
|
|
6550
7179
|
* ReportListResponse
|
|
6551
7180
|
*/
|
|
@@ -7179,6 +7808,10 @@ export type SearchHit = {
|
|
|
7179
7808
|
* Source Type
|
|
7180
7809
|
*/
|
|
7181
7810
|
source_type: string;
|
|
7811
|
+
/**
|
|
7812
|
+
* Parent Document Id
|
|
7813
|
+
*/
|
|
7814
|
+
parent_document_id?: string | null;
|
|
7182
7815
|
/**
|
|
7183
7816
|
* Entity Ticker
|
|
7184
7817
|
*/
|
|
@@ -7514,6 +8147,24 @@ export type ServiceOfferingsResponse = {
|
|
|
7514
8147
|
summary: ServiceOfferingSummary;
|
|
7515
8148
|
};
|
|
7516
8149
|
|
|
8150
|
+
/**
|
|
8151
|
+
* SetCloseTargetRequest
|
|
8152
|
+
*/
|
|
8153
|
+
export type SetCloseTargetRequest = {
|
|
8154
|
+
/**
|
|
8155
|
+
* Period
|
|
8156
|
+
*
|
|
8157
|
+
* Target period in YYYY-MM format
|
|
8158
|
+
*/
|
|
8159
|
+
period: string;
|
|
8160
|
+
/**
|
|
8161
|
+
* Note
|
|
8162
|
+
*
|
|
8163
|
+
* Free-form note attached to the audit event
|
|
8164
|
+
*/
|
|
8165
|
+
note?: string | null;
|
|
8166
|
+
};
|
|
8167
|
+
|
|
7517
8168
|
/**
|
|
7518
8169
|
* ShareReportRequest
|
|
7519
8170
|
*/
|
|
@@ -8318,6 +8969,46 @@ export type TrialBalanceRow = {
|
|
|
8318
8969
|
net_balance: number;
|
|
8319
8970
|
};
|
|
8320
8971
|
|
|
8972
|
+
/**
|
|
8973
|
+
* TruncateScheduleRequest
|
|
8974
|
+
*/
|
|
8975
|
+
export type TruncateScheduleRequest = {
|
|
8976
|
+
/**
|
|
8977
|
+
* New End Date
|
|
8978
|
+
*
|
|
8979
|
+
* New last-covered date for the schedule. Facts with period_start > this date are deleted (along with any stale draft entries they produced). Historical facts (already posted) are preserved.
|
|
8980
|
+
*/
|
|
8981
|
+
new_end_date: string;
|
|
8982
|
+
/**
|
|
8983
|
+
* Reason
|
|
8984
|
+
*
|
|
8985
|
+
* Required reason for the truncation (captured in audit log).
|
|
8986
|
+
*/
|
|
8987
|
+
reason: string;
|
|
8988
|
+
};
|
|
8989
|
+
|
|
8990
|
+
/**
|
|
8991
|
+
* TruncateScheduleResponse
|
|
8992
|
+
*/
|
|
8993
|
+
export type TruncateScheduleResponse = {
|
|
8994
|
+
/**
|
|
8995
|
+
* Structure Id
|
|
8996
|
+
*/
|
|
8997
|
+
structure_id: string;
|
|
8998
|
+
/**
|
|
8999
|
+
* New End Date
|
|
9000
|
+
*/
|
|
9001
|
+
new_end_date: string;
|
|
9002
|
+
/**
|
|
9003
|
+
* Facts Deleted
|
|
9004
|
+
*/
|
|
9005
|
+
facts_deleted: number;
|
|
9006
|
+
/**
|
|
9007
|
+
* Reason
|
|
9008
|
+
*/
|
|
9009
|
+
reason: string;
|
|
9010
|
+
};
|
|
9011
|
+
|
|
8321
9012
|
/**
|
|
8322
9013
|
* UnmappedElementResponse
|
|
8323
9014
|
*
|
|
@@ -14195,7 +14886,7 @@ export type GetStatementData = {
|
|
|
14195
14886
|
/**
|
|
14196
14887
|
* Structure Type
|
|
14197
14888
|
*
|
|
14198
|
-
* Structure type: income_statement, balance_sheet,
|
|
14889
|
+
* Structure type: income_statement, balance_sheet, equity_statement
|
|
14199
14890
|
*/
|
|
14200
14891
|
structure_type: string;
|
|
14201
14892
|
};
|
|
@@ -14481,6 +15172,72 @@ export type CreateClosingEntryResponses = {
|
|
|
14481
15172
|
|
|
14482
15173
|
export type CreateClosingEntryResponse = CreateClosingEntryResponses[keyof CreateClosingEntryResponses];
|
|
14483
15174
|
|
|
15175
|
+
export type TruncateScheduleData = {
|
|
15176
|
+
body: TruncateScheduleRequest;
|
|
15177
|
+
path: {
|
|
15178
|
+
/**
|
|
15179
|
+
* Graph Id
|
|
15180
|
+
*/
|
|
15181
|
+
graph_id: string;
|
|
15182
|
+
/**
|
|
15183
|
+
* Structure Id
|
|
15184
|
+
*
|
|
15185
|
+
* Schedule structure ID
|
|
15186
|
+
*/
|
|
15187
|
+
structure_id: string;
|
|
15188
|
+
};
|
|
15189
|
+
query?: never;
|
|
15190
|
+
url: '/v1/ledger/{graph_id}/schedules/{structure_id}/truncate';
|
|
15191
|
+
};
|
|
15192
|
+
|
|
15193
|
+
export type TruncateScheduleErrors = {
|
|
15194
|
+
/**
|
|
15195
|
+
* Validation Error
|
|
15196
|
+
*/
|
|
15197
|
+
422: HttpValidationError;
|
|
15198
|
+
};
|
|
15199
|
+
|
|
15200
|
+
export type TruncateScheduleError = TruncateScheduleErrors[keyof TruncateScheduleErrors];
|
|
15201
|
+
|
|
15202
|
+
export type TruncateScheduleResponses = {
|
|
15203
|
+
/**
|
|
15204
|
+
* Successful Response
|
|
15205
|
+
*/
|
|
15206
|
+
200: TruncateScheduleResponse;
|
|
15207
|
+
};
|
|
15208
|
+
|
|
15209
|
+
export type TruncateScheduleResponse2 = TruncateScheduleResponses[keyof TruncateScheduleResponses];
|
|
15210
|
+
|
|
15211
|
+
export type CreateManualClosingEntryData = {
|
|
15212
|
+
body: CreateManualClosingEntryRequest;
|
|
15213
|
+
path: {
|
|
15214
|
+
/**
|
|
15215
|
+
* Graph Id
|
|
15216
|
+
*/
|
|
15217
|
+
graph_id: string;
|
|
15218
|
+
};
|
|
15219
|
+
query?: never;
|
|
15220
|
+
url: '/v1/ledger/{graph_id}/manual-closing-entry';
|
|
15221
|
+
};
|
|
15222
|
+
|
|
15223
|
+
export type CreateManualClosingEntryErrors = {
|
|
15224
|
+
/**
|
|
15225
|
+
* Validation Error
|
|
15226
|
+
*/
|
|
15227
|
+
422: HttpValidationError;
|
|
15228
|
+
};
|
|
15229
|
+
|
|
15230
|
+
export type CreateManualClosingEntryError = CreateManualClosingEntryErrors[keyof CreateManualClosingEntryErrors];
|
|
15231
|
+
|
|
15232
|
+
export type CreateManualClosingEntryResponses = {
|
|
15233
|
+
/**
|
|
15234
|
+
* Successful Response
|
|
15235
|
+
*/
|
|
15236
|
+
201: ClosingEntryResponse;
|
|
15237
|
+
};
|
|
15238
|
+
|
|
15239
|
+
export type CreateManualClosingEntryResponse = CreateManualClosingEntryResponses[keyof CreateManualClosingEntryResponses];
|
|
15240
|
+
|
|
14484
15241
|
export type ListPublishListsData = {
|
|
14485
15242
|
body?: never;
|
|
14486
15243
|
path: {
|
|
@@ -14726,6 +15483,283 @@ export type RemovePublishListMemberResponses = {
|
|
|
14726
15483
|
|
|
14727
15484
|
export type RemovePublishListMemberResponse = RemovePublishListMemberResponses[keyof RemovePublishListMemberResponses];
|
|
14728
15485
|
|
|
15486
|
+
export type GetAccountRollupsData = {
|
|
15487
|
+
body?: never;
|
|
15488
|
+
path: {
|
|
15489
|
+
/**
|
|
15490
|
+
* Graph Id
|
|
15491
|
+
*/
|
|
15492
|
+
graph_id: string;
|
|
15493
|
+
};
|
|
15494
|
+
query?: {
|
|
15495
|
+
/**
|
|
15496
|
+
* Mapping Id
|
|
15497
|
+
*
|
|
15498
|
+
* Mapping structure ID (auto-discovers if omitted)
|
|
15499
|
+
*/
|
|
15500
|
+
mapping_id?: string | null;
|
|
15501
|
+
/**
|
|
15502
|
+
* Start Date
|
|
15503
|
+
*
|
|
15504
|
+
* Start date (inclusive)
|
|
15505
|
+
*/
|
|
15506
|
+
start_date?: string | null;
|
|
15507
|
+
/**
|
|
15508
|
+
* End Date
|
|
15509
|
+
*
|
|
15510
|
+
* End date (inclusive)
|
|
15511
|
+
*/
|
|
15512
|
+
end_date?: string | null;
|
|
15513
|
+
};
|
|
15514
|
+
url: '/v1/ledger/{graph_id}/account-rollups';
|
|
15515
|
+
};
|
|
15516
|
+
|
|
15517
|
+
export type GetAccountRollupsErrors = {
|
|
15518
|
+
/**
|
|
15519
|
+
* Validation Error
|
|
15520
|
+
*/
|
|
15521
|
+
422: HttpValidationError;
|
|
15522
|
+
};
|
|
15523
|
+
|
|
15524
|
+
export type GetAccountRollupsError = GetAccountRollupsErrors[keyof GetAccountRollupsErrors];
|
|
15525
|
+
|
|
15526
|
+
export type GetAccountRollupsResponses = {
|
|
15527
|
+
/**
|
|
15528
|
+
* Successful Response
|
|
15529
|
+
*/
|
|
15530
|
+
200: AccountRollupsResponse;
|
|
15531
|
+
};
|
|
15532
|
+
|
|
15533
|
+
export type GetAccountRollupsResponse = GetAccountRollupsResponses[keyof GetAccountRollupsResponses];
|
|
15534
|
+
|
|
15535
|
+
export type GetClosingBookStructuresData = {
|
|
15536
|
+
body?: never;
|
|
15537
|
+
path: {
|
|
15538
|
+
/**
|
|
15539
|
+
* Graph Id
|
|
15540
|
+
*/
|
|
15541
|
+
graph_id: string;
|
|
15542
|
+
};
|
|
15543
|
+
query?: never;
|
|
15544
|
+
url: '/v1/ledger/{graph_id}/closing-book/structures';
|
|
15545
|
+
};
|
|
15546
|
+
|
|
15547
|
+
export type GetClosingBookStructuresErrors = {
|
|
15548
|
+
/**
|
|
15549
|
+
* Validation Error
|
|
15550
|
+
*/
|
|
15551
|
+
422: HttpValidationError;
|
|
15552
|
+
};
|
|
15553
|
+
|
|
15554
|
+
export type GetClosingBookStructuresError = GetClosingBookStructuresErrors[keyof GetClosingBookStructuresErrors];
|
|
15555
|
+
|
|
15556
|
+
export type GetClosingBookStructuresResponses = {
|
|
15557
|
+
/**
|
|
15558
|
+
* Successful Response
|
|
15559
|
+
*/
|
|
15560
|
+
200: ClosingBookStructuresResponse;
|
|
15561
|
+
};
|
|
15562
|
+
|
|
15563
|
+
export type GetClosingBookStructuresResponse = GetClosingBookStructuresResponses[keyof GetClosingBookStructuresResponses];
|
|
15564
|
+
|
|
15565
|
+
export type InitializeLedgerData = {
|
|
15566
|
+
body: InitializeLedgerRequest;
|
|
15567
|
+
path: {
|
|
15568
|
+
/**
|
|
15569
|
+
* Graph Id
|
|
15570
|
+
*/
|
|
15571
|
+
graph_id: string;
|
|
15572
|
+
};
|
|
15573
|
+
query?: never;
|
|
15574
|
+
url: '/v1/ledger/{graph_id}/initialize';
|
|
15575
|
+
};
|
|
15576
|
+
|
|
15577
|
+
export type InitializeLedgerErrors = {
|
|
15578
|
+
/**
|
|
15579
|
+
* Validation Error
|
|
15580
|
+
*/
|
|
15581
|
+
422: HttpValidationError;
|
|
15582
|
+
};
|
|
15583
|
+
|
|
15584
|
+
export type InitializeLedgerError = InitializeLedgerErrors[keyof InitializeLedgerErrors];
|
|
15585
|
+
|
|
15586
|
+
export type InitializeLedgerResponses = {
|
|
15587
|
+
/**
|
|
15588
|
+
* Successful Response
|
|
15589
|
+
*/
|
|
15590
|
+
201: InitializeLedgerResponse;
|
|
15591
|
+
};
|
|
15592
|
+
|
|
15593
|
+
export type InitializeLedgerResponse2 = InitializeLedgerResponses[keyof InitializeLedgerResponses];
|
|
15594
|
+
|
|
15595
|
+
export type GetFiscalCalendarData = {
|
|
15596
|
+
body?: never;
|
|
15597
|
+
path: {
|
|
15598
|
+
/**
|
|
15599
|
+
* Graph Id
|
|
15600
|
+
*/
|
|
15601
|
+
graph_id: string;
|
|
15602
|
+
};
|
|
15603
|
+
query?: never;
|
|
15604
|
+
url: '/v1/ledger/{graph_id}/fiscal-calendar';
|
|
15605
|
+
};
|
|
15606
|
+
|
|
15607
|
+
export type GetFiscalCalendarErrors = {
|
|
15608
|
+
/**
|
|
15609
|
+
* Validation Error
|
|
15610
|
+
*/
|
|
15611
|
+
422: HttpValidationError;
|
|
15612
|
+
};
|
|
15613
|
+
|
|
15614
|
+
export type GetFiscalCalendarError = GetFiscalCalendarErrors[keyof GetFiscalCalendarErrors];
|
|
15615
|
+
|
|
15616
|
+
export type GetFiscalCalendarResponses = {
|
|
15617
|
+
/**
|
|
15618
|
+
* Successful Response
|
|
15619
|
+
*/
|
|
15620
|
+
200: FiscalCalendarResponse;
|
|
15621
|
+
};
|
|
15622
|
+
|
|
15623
|
+
export type GetFiscalCalendarResponse = GetFiscalCalendarResponses[keyof GetFiscalCalendarResponses];
|
|
15624
|
+
|
|
15625
|
+
export type SetCloseTargetData = {
|
|
15626
|
+
body: SetCloseTargetRequest;
|
|
15627
|
+
path: {
|
|
15628
|
+
/**
|
|
15629
|
+
* Graph Id
|
|
15630
|
+
*/
|
|
15631
|
+
graph_id: string;
|
|
15632
|
+
};
|
|
15633
|
+
query?: never;
|
|
15634
|
+
url: '/v1/ledger/{graph_id}/fiscal-calendar/close-target';
|
|
15635
|
+
};
|
|
15636
|
+
|
|
15637
|
+
export type SetCloseTargetErrors = {
|
|
15638
|
+
/**
|
|
15639
|
+
* Validation Error
|
|
15640
|
+
*/
|
|
15641
|
+
422: HttpValidationError;
|
|
15642
|
+
};
|
|
15643
|
+
|
|
15644
|
+
export type SetCloseTargetError = SetCloseTargetErrors[keyof SetCloseTargetErrors];
|
|
15645
|
+
|
|
15646
|
+
export type SetCloseTargetResponses = {
|
|
15647
|
+
/**
|
|
15648
|
+
* Successful Response
|
|
15649
|
+
*/
|
|
15650
|
+
200: FiscalCalendarResponse;
|
|
15651
|
+
};
|
|
15652
|
+
|
|
15653
|
+
export type SetCloseTargetResponse = SetCloseTargetResponses[keyof SetCloseTargetResponses];
|
|
15654
|
+
|
|
15655
|
+
export type CloseFiscalPeriodData = {
|
|
15656
|
+
body?: ClosePeriodRequest;
|
|
15657
|
+
path: {
|
|
15658
|
+
/**
|
|
15659
|
+
* Graph Id
|
|
15660
|
+
*/
|
|
15661
|
+
graph_id: string;
|
|
15662
|
+
/**
|
|
15663
|
+
* Period
|
|
15664
|
+
*
|
|
15665
|
+
* Target period in YYYY-MM format
|
|
15666
|
+
*/
|
|
15667
|
+
period: string;
|
|
15668
|
+
};
|
|
15669
|
+
query?: never;
|
|
15670
|
+
url: '/v1/ledger/{graph_id}/periods/{period}/close';
|
|
15671
|
+
};
|
|
15672
|
+
|
|
15673
|
+
export type CloseFiscalPeriodErrors = {
|
|
15674
|
+
/**
|
|
15675
|
+
* Validation Error
|
|
15676
|
+
*/
|
|
15677
|
+
422: HttpValidationError;
|
|
15678
|
+
};
|
|
15679
|
+
|
|
15680
|
+
export type CloseFiscalPeriodError = CloseFiscalPeriodErrors[keyof CloseFiscalPeriodErrors];
|
|
15681
|
+
|
|
15682
|
+
export type CloseFiscalPeriodResponses = {
|
|
15683
|
+
/**
|
|
15684
|
+
* Successful Response
|
|
15685
|
+
*/
|
|
15686
|
+
200: ClosePeriodResponse;
|
|
15687
|
+
};
|
|
15688
|
+
|
|
15689
|
+
export type CloseFiscalPeriodResponse = CloseFiscalPeriodResponses[keyof CloseFiscalPeriodResponses];
|
|
15690
|
+
|
|
15691
|
+
export type ReopenFiscalPeriodData = {
|
|
15692
|
+
body: ReopenPeriodRequest;
|
|
15693
|
+
path: {
|
|
15694
|
+
/**
|
|
15695
|
+
* Graph Id
|
|
15696
|
+
*/
|
|
15697
|
+
graph_id: string;
|
|
15698
|
+
/**
|
|
15699
|
+
* Period
|
|
15700
|
+
*
|
|
15701
|
+
* Period to reopen (YYYY-MM)
|
|
15702
|
+
*/
|
|
15703
|
+
period: string;
|
|
15704
|
+
};
|
|
15705
|
+
query?: never;
|
|
15706
|
+
url: '/v1/ledger/{graph_id}/periods/{period}/reopen';
|
|
15707
|
+
};
|
|
15708
|
+
|
|
15709
|
+
export type ReopenFiscalPeriodErrors = {
|
|
15710
|
+
/**
|
|
15711
|
+
* Validation Error
|
|
15712
|
+
*/
|
|
15713
|
+
422: HttpValidationError;
|
|
15714
|
+
};
|
|
15715
|
+
|
|
15716
|
+
export type ReopenFiscalPeriodError = ReopenFiscalPeriodErrors[keyof ReopenFiscalPeriodErrors];
|
|
15717
|
+
|
|
15718
|
+
export type ReopenFiscalPeriodResponses = {
|
|
15719
|
+
/**
|
|
15720
|
+
* Successful Response
|
|
15721
|
+
*/
|
|
15722
|
+
200: FiscalCalendarResponse;
|
|
15723
|
+
};
|
|
15724
|
+
|
|
15725
|
+
export type ReopenFiscalPeriodResponse = ReopenFiscalPeriodResponses[keyof ReopenFiscalPeriodResponses];
|
|
15726
|
+
|
|
15727
|
+
export type ListPeriodDraftsData = {
|
|
15728
|
+
body?: never;
|
|
15729
|
+
path: {
|
|
15730
|
+
/**
|
|
15731
|
+
* Graph Id
|
|
15732
|
+
*/
|
|
15733
|
+
graph_id: string;
|
|
15734
|
+
/**
|
|
15735
|
+
* Period
|
|
15736
|
+
*
|
|
15737
|
+
* Period in YYYY-MM format
|
|
15738
|
+
*/
|
|
15739
|
+
period: string;
|
|
15740
|
+
};
|
|
15741
|
+
query?: never;
|
|
15742
|
+
url: '/v1/ledger/{graph_id}/periods/{period}/drafts';
|
|
15743
|
+
};
|
|
15744
|
+
|
|
15745
|
+
export type ListPeriodDraftsErrors = {
|
|
15746
|
+
/**
|
|
15747
|
+
* Validation Error
|
|
15748
|
+
*/
|
|
15749
|
+
422: HttpValidationError;
|
|
15750
|
+
};
|
|
15751
|
+
|
|
15752
|
+
export type ListPeriodDraftsError = ListPeriodDraftsErrors[keyof ListPeriodDraftsErrors];
|
|
15753
|
+
|
|
15754
|
+
export type ListPeriodDraftsResponses = {
|
|
15755
|
+
/**
|
|
15756
|
+
* Successful Response
|
|
15757
|
+
*/
|
|
15758
|
+
200: PeriodDraftsResponse;
|
|
15759
|
+
};
|
|
15760
|
+
|
|
15761
|
+
export type ListPeriodDraftsResponse = ListPeriodDraftsResponses[keyof ListPeriodDraftsResponses];
|
|
15762
|
+
|
|
14729
15763
|
export type ListPortfoliosData = {
|
|
14730
15764
|
body?: never;
|
|
14731
15765
|
path: {
|