@robosystems/client 2.21.0 → 2.23.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 +81 -3
- package/artifacts/LedgerClient.js +92 -1
- package/artifacts/LedgerClient.ts +190 -2
- package/artifacts/graphql/generated/graphql.d.ts +329 -0
- package/artifacts/graphql/generated/graphql.js +961 -59
- package/artifacts/graphql/generated/graphql.ts +1275 -59
- package/artifacts/graphql/queries/ledger/agedBalances.d.ts +27 -0
- package/artifacts/graphql/queries/ledger/agedBalances.js +136 -0
- package/artifacts/graphql/queries/ledger/agedBalances.ts +139 -0
- package/artifacts/graphql/queries/ledger/dimensions.d.ts +7 -0
- package/artifacts/graphql/queries/ledger/dimensions.js +27 -0
- package/artifacts/graphql/queries/ledger/dimensions.ts +25 -0
- package/artifacts/graphql/queries/ledger/journalEntries.js +5 -0
- package/artifacts/graphql/queries/ledger/journalEntries.ts +5 -0
- package/artifacts/graphql/queries/ledger/transaction.js +6 -0
- package/artifacts/graphql/queries/ledger/transaction.ts +6 -0
- package/artifacts/graphql/queries/ledger/trialBalance.d.ts +4 -1
- package/artifacts/graphql/queries/ledger/trialBalance.js +19 -3
- package/artifacts/graphql/queries/ledger/trialBalance.ts +19 -3
- package/index.ts +2 -2
- package/package.json +1 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +7 -5
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +21 -5
- package/sdk/sdk.gen.js +40 -6
- package/sdk/sdk.gen.ts +39 -5
- package/sdk/types.gen.d.ts +449 -5
- package/sdk/types.gen.ts +468 -5
- package/sdk.gen.d.ts +21 -5
- package/sdk.gen.js +40 -6
- package/sdk.gen.ts +39 -5
- package/types.gen.d.ts +449 -5
- package/types.gen.ts +468 -5
package/types.gen.ts
CHANGED
|
@@ -3208,6 +3208,32 @@ export type CreateConnectionRequest = {
|
|
|
3208
3208
|
plaid_config?: PlaidConnectionConfig | null;
|
|
3209
3209
|
};
|
|
3210
3210
|
|
|
3211
|
+
/**
|
|
3212
|
+
* CreateDimensionRequest
|
|
3213
|
+
*
|
|
3214
|
+
* Add a member to a management dimension.
|
|
3215
|
+
*/
|
|
3216
|
+
export type CreateDimensionRequest = {
|
|
3217
|
+
/**
|
|
3218
|
+
* Dimension Type
|
|
3219
|
+
*
|
|
3220
|
+
* The axis: `department`, `class`, `location` or `project`, or any other lowercase name, which starts an axis of its own. `scenario` is reserved for forecasts.
|
|
3221
|
+
*/
|
|
3222
|
+
dimension_type: string;
|
|
3223
|
+
/**
|
|
3224
|
+
* Name
|
|
3225
|
+
*
|
|
3226
|
+
* The member's label.
|
|
3227
|
+
*/
|
|
3228
|
+
name: string;
|
|
3229
|
+
/**
|
|
3230
|
+
* Value
|
|
3231
|
+
*
|
|
3232
|
+
* The member's stable key within the axis; omitted, a slug of the name. Refused (409) when the axis already has it.
|
|
3233
|
+
*/
|
|
3234
|
+
value?: string | null;
|
|
3235
|
+
};
|
|
3236
|
+
|
|
3211
3237
|
/**
|
|
3212
3238
|
* CreateDocumentUploadOp
|
|
3213
3239
|
*
|
|
@@ -3447,6 +3473,18 @@ export type CreateEventBlockRequest = {
|
|
|
3447
3473
|
* Accounting recognition date, if different from occurred_at
|
|
3448
3474
|
*/
|
|
3449
3475
|
effective_at?: string | null;
|
|
3476
|
+
/**
|
|
3477
|
+
* Due Date
|
|
3478
|
+
*
|
|
3479
|
+
* When an obligation falls due: an `invoice_issued` or a `bill_received`. Give it, or `terms_days`; with neither, the obligation is due on receipt. Refused on any other event type.
|
|
3480
|
+
*/
|
|
3481
|
+
due_date?: string | null;
|
|
3482
|
+
/**
|
|
3483
|
+
* Terms Days
|
|
3484
|
+
*
|
|
3485
|
+
* Net terms in days from `occurred_at` (30 for net 30), in place of `due_date`. Only on an `invoice_issued` or a `bill_received`.
|
|
3486
|
+
*/
|
|
3487
|
+
terms_days?: number | null;
|
|
3450
3488
|
/**
|
|
3451
3489
|
* Source
|
|
3452
3490
|
*
|
|
@@ -3494,7 +3532,7 @@ export type CreateEventBlockRequest = {
|
|
|
3494
3532
|
/**
|
|
3495
3533
|
* Dimension Ids
|
|
3496
3534
|
*
|
|
3497
|
-
*
|
|
3535
|
+
* Management dimension members tagging this event (department, class, location, project), one per axis. Every line its handler writes carries them on the axes the line does not tag itself.
|
|
3498
3536
|
*/
|
|
3499
3537
|
dimension_ids?: Array<string>;
|
|
3500
3538
|
/**
|
|
@@ -5349,11 +5387,87 @@ export type Dimension = {
|
|
|
5349
5387
|
members?: Array<string>;
|
|
5350
5388
|
};
|
|
5351
5389
|
|
|
5390
|
+
/**
|
|
5391
|
+
* DimensionResponse
|
|
5392
|
+
*
|
|
5393
|
+
* One member of a management dimension.
|
|
5394
|
+
*/
|
|
5395
|
+
export type DimensionResponse = {
|
|
5396
|
+
/**
|
|
5397
|
+
* Id
|
|
5398
|
+
*
|
|
5399
|
+
* The member's id, as lines carry it.
|
|
5400
|
+
*/
|
|
5401
|
+
id: string;
|
|
5402
|
+
/**
|
|
5403
|
+
* Dimension Type
|
|
5404
|
+
*
|
|
5405
|
+
* The axis: department, class, location, project, or another.
|
|
5406
|
+
*/
|
|
5407
|
+
dimension_type: string;
|
|
5408
|
+
/**
|
|
5409
|
+
* Name
|
|
5410
|
+
*
|
|
5411
|
+
* The member's label.
|
|
5412
|
+
*/
|
|
5413
|
+
name: string;
|
|
5414
|
+
/**
|
|
5415
|
+
* Value
|
|
5416
|
+
*
|
|
5417
|
+
* The member's stable key within its axis: the source's id for a synced member, a slug of the name for one created here.
|
|
5418
|
+
*/
|
|
5419
|
+
value: string;
|
|
5420
|
+
/**
|
|
5421
|
+
* Source
|
|
5422
|
+
*
|
|
5423
|
+
* Where the member came from: `native` or `quickbooks`.
|
|
5424
|
+
*/
|
|
5425
|
+
source?: string;
|
|
5426
|
+
/**
|
|
5427
|
+
* Is Active
|
|
5428
|
+
*
|
|
5429
|
+
* False once retired: the member stays on the lines that carry it and can no longer be put on new ones.
|
|
5430
|
+
*/
|
|
5431
|
+
is_active: boolean;
|
|
5432
|
+
/**
|
|
5433
|
+
* Line Count
|
|
5434
|
+
*
|
|
5435
|
+
* How many ledger lines carry the member.
|
|
5436
|
+
*/
|
|
5437
|
+
line_count?: number;
|
|
5438
|
+
/**
|
|
5439
|
+
* Created At
|
|
5440
|
+
*
|
|
5441
|
+
* When it was created.
|
|
5442
|
+
*/
|
|
5443
|
+
created_at?: string | null;
|
|
5444
|
+
};
|
|
5445
|
+
|
|
5352
5446
|
/**
|
|
5353
5447
|
* DimensionType
|
|
5354
5448
|
*/
|
|
5355
5449
|
export type DimensionType = 'element' | 'period' | 'entity';
|
|
5356
5450
|
|
|
5451
|
+
/**
|
|
5452
|
+
* DischargeAllocation
|
|
5453
|
+
*
|
|
5454
|
+
* How much of a payment went to one invoice or bill.
|
|
5455
|
+
*/
|
|
5456
|
+
export type DischargeAllocation = {
|
|
5457
|
+
/**
|
|
5458
|
+
* Obligation Event Id
|
|
5459
|
+
*
|
|
5460
|
+
* The `invoice_issued` or `bill_received` event it settles.
|
|
5461
|
+
*/
|
|
5462
|
+
obligation_event_id: string;
|
|
5463
|
+
/**
|
|
5464
|
+
* Amount
|
|
5465
|
+
*
|
|
5466
|
+
* Positive cents of the payment applied to it.
|
|
5467
|
+
*/
|
|
5468
|
+
amount: number;
|
|
5469
|
+
};
|
|
5470
|
+
|
|
5357
5471
|
/**
|
|
5358
5472
|
* DisclosuresRequest
|
|
5359
5473
|
*
|
|
@@ -6167,6 +6281,12 @@ export type EntryTemplateRequest = {
|
|
|
6167
6281
|
* Auto-generate a reversing entry on the first day of the next period
|
|
6168
6282
|
*/
|
|
6169
6283
|
auto_reverse?: boolean;
|
|
6284
|
+
/**
|
|
6285
|
+
* Dimension Ids
|
|
6286
|
+
*
|
|
6287
|
+
* The management dimension members (department, class, location, project) every entry the schedule drafts carries on both lines, one per axis: a department's depreciation lands in that department.
|
|
6288
|
+
*/
|
|
6289
|
+
dimension_ids?: Array<string>;
|
|
6170
6290
|
};
|
|
6171
6291
|
|
|
6172
6292
|
/**
|
|
@@ -6317,6 +6437,12 @@ export type EventBlockEnvelope = {
|
|
|
6317
6437
|
* Accounting recognition date, when different from `occurred_at`.
|
|
6318
6438
|
*/
|
|
6319
6439
|
effective_at?: string | null;
|
|
6440
|
+
/**
|
|
6441
|
+
* Due Date
|
|
6442
|
+
*
|
|
6443
|
+
* When the obligation falls due (an `invoice_issued` or a `bill_received`); null when none was stated, which reads as due on receipt, and on every other event type.
|
|
6444
|
+
*/
|
|
6445
|
+
due_date?: string | null;
|
|
6320
6446
|
/**
|
|
6321
6447
|
* Source
|
|
6322
6448
|
*
|
|
@@ -9247,6 +9373,26 @@ export type InvoicesResponse = {
|
|
|
9247
9373
|
has_more: boolean;
|
|
9248
9374
|
};
|
|
9249
9375
|
|
|
9376
|
+
/**
|
|
9377
|
+
* JournalEntryLineDimensions
|
|
9378
|
+
*
|
|
9379
|
+
* A line's management dimension members, set in place.
|
|
9380
|
+
*/
|
|
9381
|
+
export type JournalEntryLineDimensions = {
|
|
9382
|
+
/**
|
|
9383
|
+
* Line Id
|
|
9384
|
+
*
|
|
9385
|
+
* The line to re-tag, by id.
|
|
9386
|
+
*/
|
|
9387
|
+
line_id: string;
|
|
9388
|
+
/**
|
|
9389
|
+
* Dimension Ids
|
|
9390
|
+
*
|
|
9391
|
+
* The members the line carries from now on, replacing what it carried; empty clears them. At most one per axis.
|
|
9392
|
+
*/
|
|
9393
|
+
dimension_ids: Array<string>;
|
|
9394
|
+
};
|
|
9395
|
+
|
|
9250
9396
|
/**
|
|
9251
9397
|
* JournalEntryLineFlow
|
|
9252
9398
|
*
|
|
@@ -9306,6 +9452,12 @@ export type JournalEntryLineItemInput = {
|
|
|
9306
9452
|
* The cash flow row this line's cash belongs to, an rs-gaap flow qname (`flowCandidates(entityId)` lists the rows this company's statement offers). Only for a loan drawn or repaid, capital put in or taken out, an asset bought or sold; omitted, the account's default flow applies. A flow set on one side of the entry tags the untagged lines on the other: the cash flow statement reads the cash line and the roll-forwards read the account line. On the group's consolidation entity, which moves no cash, every tagged line counts on its own, cash-effect signed (a credit is an inflow), so an elimination offsets the flow a member's line produced, and a tag does not spread to the other side. Refused when it is not a row of the entity's cash flow statement.
|
|
9307
9453
|
*/
|
|
9308
9454
|
flow_qname?: string | null;
|
|
9455
|
+
/**
|
|
9456
|
+
* Dimension Ids
|
|
9457
|
+
*
|
|
9458
|
+
* The management dimension members this line carries (department, class, location, project), by id from `dimensions`; at most one per axis. An untagged line is read as the axis's Unallocated.
|
|
9459
|
+
*/
|
|
9460
|
+
dimension_ids?: Array<string> | null;
|
|
9309
9461
|
/**
|
|
9310
9462
|
* Metadata
|
|
9311
9463
|
*
|
|
@@ -9352,6 +9504,12 @@ export type JournalEntryLineItemResponse = {
|
|
|
9352
9504
|
* The cash flow row this line carries, when tagged; null means the account's default flow.
|
|
9353
9505
|
*/
|
|
9354
9506
|
flow_qname?: string | null;
|
|
9507
|
+
/**
|
|
9508
|
+
* Dimension Ids
|
|
9509
|
+
*
|
|
9510
|
+
* The management dimension members the line carries, by id.
|
|
9511
|
+
*/
|
|
9512
|
+
dimension_ids?: Array<string>;
|
|
9355
9513
|
};
|
|
9356
9514
|
|
|
9357
9515
|
/**
|
|
@@ -10410,6 +10568,10 @@ export type LiveFinancialStatementRequest = {
|
|
|
10410
10568
|
* Max fact rows returned. Defaults to the ceiling so a statement is never cut mid-section — visible rows would stop footing to visible subtotals. Lower it only for a preview.
|
|
10411
10569
|
*/
|
|
10412
10570
|
limit?: number;
|
|
10571
|
+
/**
|
|
10572
|
+
* Slice an income statement by a management dimension (department, class, location, project). `{type, member_id}` reads one member's lines, current and prior; `member_id: unallocated` reads the lines no member of the axis tags. `{type}` alone reads the current window with one column per member, then Unallocated, then Total, and says in `dimension.ties_out` whether every row's members plus Unallocated equal its Total. Composes with `scope` and `entity_id`; a consolidation entity's lines are untagged, so eliminations read as Unallocated. Refused (422) on any other statement.
|
|
10573
|
+
*/
|
|
10574
|
+
dimension?: StatementDimension | null;
|
|
10413
10575
|
};
|
|
10414
10576
|
|
|
10415
10577
|
/**
|
|
@@ -10482,6 +10644,10 @@ export type LiveFinancialStatementResponse = {
|
|
|
10482
10644
|
* Truncated
|
|
10483
10645
|
*/
|
|
10484
10646
|
truncated?: boolean;
|
|
10647
|
+
/**
|
|
10648
|
+
* How the statement was sliced by a management dimension, when it was: the axis, the one member read, or the columns and whether they tie out to the Total.
|
|
10649
|
+
*/
|
|
10650
|
+
dimension?: StatementDimensionResponse | null;
|
|
10485
10651
|
};
|
|
10486
10652
|
|
|
10487
10653
|
/**
|
|
@@ -12273,6 +12439,52 @@ export type OperationEnvelopeDescribeFilingResponse = {
|
|
|
12273
12439
|
idempotentReplay?: boolean;
|
|
12274
12440
|
};
|
|
12275
12441
|
|
|
12442
|
+
/**
|
|
12443
|
+
* OperationEnvelope[DimensionResponse]
|
|
12444
|
+
*/
|
|
12445
|
+
export type OperationEnvelopeDimensionResponse = {
|
|
12446
|
+
/**
|
|
12447
|
+
* Operation
|
|
12448
|
+
*
|
|
12449
|
+
* Kebab-case operation name
|
|
12450
|
+
*/
|
|
12451
|
+
operation: string;
|
|
12452
|
+
/**
|
|
12453
|
+
* Operationid
|
|
12454
|
+
*
|
|
12455
|
+
* op_-prefixed ULID for audit and SSE correlation
|
|
12456
|
+
*/
|
|
12457
|
+
operationId: string;
|
|
12458
|
+
/**
|
|
12459
|
+
* Status
|
|
12460
|
+
*
|
|
12461
|
+
* Operation lifecycle state
|
|
12462
|
+
*/
|
|
12463
|
+
status: 'completed' | 'pending' | 'failed';
|
|
12464
|
+
/**
|
|
12465
|
+
* Command-specific result payload
|
|
12466
|
+
*/
|
|
12467
|
+
result?: DimensionResponse | null;
|
|
12468
|
+
/**
|
|
12469
|
+
* At
|
|
12470
|
+
*
|
|
12471
|
+
* ISO-8601 UTC timestamp
|
|
12472
|
+
*/
|
|
12473
|
+
at: string;
|
|
12474
|
+
/**
|
|
12475
|
+
* Createdby
|
|
12476
|
+
*
|
|
12477
|
+
* User ID that initiated the operation
|
|
12478
|
+
*/
|
|
12479
|
+
createdBy?: string | null;
|
|
12480
|
+
/**
|
|
12481
|
+
* Idempotentreplay
|
|
12482
|
+
*
|
|
12483
|
+
* True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
|
|
12484
|
+
*/
|
|
12485
|
+
idempotentReplay?: boolean;
|
|
12486
|
+
};
|
|
12487
|
+
|
|
12276
12488
|
/**
|
|
12277
12489
|
* OperationEnvelope[DisclosuresResponse]
|
|
12278
12490
|
*/
|
|
@@ -19525,6 +19737,84 @@ export type SqlStatementResponse = {
|
|
|
19525
19737
|
execution_time_ms: number;
|
|
19526
19738
|
};
|
|
19527
19739
|
|
|
19740
|
+
/**
|
|
19741
|
+
* StatementDimension
|
|
19742
|
+
*
|
|
19743
|
+
* A management slice of a statement or trial balance.
|
|
19744
|
+
*/
|
|
19745
|
+
export type StatementDimension = {
|
|
19746
|
+
/**
|
|
19747
|
+
* Type
|
|
19748
|
+
*
|
|
19749
|
+
* The axis to slice by: `department`, `class`, and so on.
|
|
19750
|
+
*/
|
|
19751
|
+
type: string;
|
|
19752
|
+
/**
|
|
19753
|
+
* Member Id
|
|
19754
|
+
*
|
|
19755
|
+
* One member's lines only, by id, or `unallocated` for the lines no member of the axis tags. Omitted, a statement returns one column per member, then Unallocated, then Total, for the current window.
|
|
19756
|
+
*/
|
|
19757
|
+
member_id?: string | null;
|
|
19758
|
+
};
|
|
19759
|
+
|
|
19760
|
+
/**
|
|
19761
|
+
* StatementDimensionColumn
|
|
19762
|
+
*
|
|
19763
|
+
* One column of a statement read by dimension.
|
|
19764
|
+
*/
|
|
19765
|
+
export type StatementDimensionColumn = {
|
|
19766
|
+
/**
|
|
19767
|
+
* Member Id
|
|
19768
|
+
*
|
|
19769
|
+
* The member the column reads, `unallocated` for the untagged lines, null for the Total.
|
|
19770
|
+
*/
|
|
19771
|
+
member_id?: string | null;
|
|
19772
|
+
/**
|
|
19773
|
+
* Name
|
|
19774
|
+
*
|
|
19775
|
+
* The column's label.
|
|
19776
|
+
*/
|
|
19777
|
+
name: string;
|
|
19778
|
+
};
|
|
19779
|
+
|
|
19780
|
+
/**
|
|
19781
|
+
* StatementDimensionResponse
|
|
19782
|
+
*
|
|
19783
|
+
* How a statement was sliced, and whether the slice ties out.
|
|
19784
|
+
*/
|
|
19785
|
+
export type StatementDimensionResponse = {
|
|
19786
|
+
/**
|
|
19787
|
+
* Type
|
|
19788
|
+
*
|
|
19789
|
+
* The axis the statement was sliced by.
|
|
19790
|
+
*/
|
|
19791
|
+
type: string;
|
|
19792
|
+
/**
|
|
19793
|
+
* Member Id
|
|
19794
|
+
*
|
|
19795
|
+
* The one member read, when the statement was filtered to one; null when it was read by column.
|
|
19796
|
+
*/
|
|
19797
|
+
member_id?: string | null;
|
|
19798
|
+
/**
|
|
19799
|
+
* Columns
|
|
19800
|
+
*
|
|
19801
|
+
* Read by column: one per member, then Unallocated, then Total, aligned with each row's `values` and with `periods`. Empty when filtered to one member.
|
|
19802
|
+
*/
|
|
19803
|
+
columns?: Array<StatementDimensionColumn>;
|
|
19804
|
+
/**
|
|
19805
|
+
* Ties Out
|
|
19806
|
+
*
|
|
19807
|
+
* Read by column: whether every row's members plus Unallocated equal its Total. Null when filtered to one member.
|
|
19808
|
+
*/
|
|
19809
|
+
ties_out?: boolean | null;
|
|
19810
|
+
/**
|
|
19811
|
+
* Differences
|
|
19812
|
+
*
|
|
19813
|
+
* The rows whose members plus Unallocated miss the Total, by qname.
|
|
19814
|
+
*/
|
|
19815
|
+
differences?: Array<string>;
|
|
19816
|
+
};
|
|
19817
|
+
|
|
19528
19818
|
/**
|
|
19529
19819
|
* StatementMechanics
|
|
19530
19820
|
*
|
|
@@ -21043,6 +21333,33 @@ export type UpdateAgentRequest = {
|
|
|
21043
21333
|
};
|
|
21044
21334
|
};
|
|
21045
21335
|
|
|
21336
|
+
/**
|
|
21337
|
+
* UpdateDimensionRequest
|
|
21338
|
+
*
|
|
21339
|
+
* Rename or retire a member. Members are never deleted: lines reference
|
|
21340
|
+
* them.
|
|
21341
|
+
*/
|
|
21342
|
+
export type UpdateDimensionRequest = {
|
|
21343
|
+
/**
|
|
21344
|
+
* Dimension Id
|
|
21345
|
+
*
|
|
21346
|
+
* The member to change.
|
|
21347
|
+
*/
|
|
21348
|
+
dimension_id: string;
|
|
21349
|
+
/**
|
|
21350
|
+
* Name
|
|
21351
|
+
*
|
|
21352
|
+
* The new label. Refused on a synced member, whose name follows its source.
|
|
21353
|
+
*/
|
|
21354
|
+
name?: string | null;
|
|
21355
|
+
/**
|
|
21356
|
+
* Is Active
|
|
21357
|
+
*
|
|
21358
|
+
* False retires the member: lines that carry it keep it, and it can no longer be put on new ones. True brings it back.
|
|
21359
|
+
*/
|
|
21360
|
+
is_active?: boolean | null;
|
|
21361
|
+
};
|
|
21362
|
+
|
|
21046
21363
|
/**
|
|
21047
21364
|
* UpdateEntityRequest
|
|
21048
21365
|
*
|
|
@@ -21220,6 +21537,12 @@ export type UpdateEventBlockRequest = {
|
|
|
21220
21537
|
* New accounting recognition date. Unset = unchanged. Useful when an event was captured against the wrong period.
|
|
21221
21538
|
*/
|
|
21222
21539
|
effective_at?: string | null;
|
|
21540
|
+
/**
|
|
21541
|
+
* Due Date
|
|
21542
|
+
*
|
|
21543
|
+
* New due date of an obligation (an `invoice_issued` or a `bill_received`), such as an extension granted. Unset = unchanged. It moves no ledger row, so it is accepted in a closed period.
|
|
21544
|
+
*/
|
|
21545
|
+
due_date?: string | null;
|
|
21223
21546
|
/**
|
|
21224
21547
|
* Metadata Patch
|
|
21225
21548
|
*
|
|
@@ -21243,9 +21566,15 @@ export type UpdateEventBlockRequest = {
|
|
|
21243
21566
|
/**
|
|
21244
21567
|
* Discharges Event Id
|
|
21245
21568
|
*
|
|
21246
|
-
* Set
|
|
21569
|
+
* Set the settlement link: the one invoice or bill this payment settles, at its full amount; an empty string clears it. Replaces any `discharge_allocations`. Checked as they are.
|
|
21247
21570
|
*/
|
|
21248
21571
|
discharges_event_id?: string | null;
|
|
21572
|
+
/**
|
|
21573
|
+
* Discharge Allocations
|
|
21574
|
+
*
|
|
21575
|
+
* What this payment settles, document by document: one row per invoice or bill with the positive cents applied to it, together at most the payment's amount (the rest is unapplied). Replaces any held; an empty list clears them, and the settlement link becomes the first row's. Each must be an obligation of this event's entity, not voided: an invoice for money in, a bill for money out. A person chooses them; the open items a bank line may settle are `dischargeCandidates` over GraphQL.
|
|
21576
|
+
*/
|
|
21577
|
+
discharge_allocations?: Array<DischargeAllocation> | null;
|
|
21249
21578
|
/**
|
|
21250
21579
|
* Document Id
|
|
21251
21580
|
*
|
|
@@ -21468,9 +21797,9 @@ export type UpdateInformationBlockRequest = ({
|
|
|
21468
21797
|
*
|
|
21469
21798
|
* Update a draft journal entry, or re-tag any entry's flows.
|
|
21470
21799
|
*
|
|
21471
|
-
* Posted entries accept only `line_flows
|
|
21472
|
-
* changes in place, closed month or not. Anything
|
|
21473
|
-
* a reversal and a corrected entry.
|
|
21800
|
+
* Posted entries accept only `line_flows` and `line_dimensions`: neither
|
|
21801
|
+
* moves a balance, so each changes in place, closed month or not. Anything
|
|
21802
|
+
* else on a posted entry is a reversal and a corrected entry.
|
|
21474
21803
|
*
|
|
21475
21804
|
* Omitted fields are left unchanged. If `line_items` is provided, the
|
|
21476
21805
|
* existing line items are replaced entirely (atomic delete + insert)
|
|
@@ -21514,6 +21843,12 @@ export type UpdateJournalEntryRequest = {
|
|
|
21514
21843
|
* Re-tag lines in place: each named line takes its `flow_qname` (null clears it), and when every line on that side of the entry then carries one flow, the lines on the other side not named here follow when they were in step with it — untagged, or carrying the flow the named lines carried before — so the cash line and the account line agree; a line tagged differently on purpose keeps its tag. Allowed on a posted entry, closed month included, and the only change one accepts; recorded on the entry as `flow_retags`, with what each changed line carried before. Not combinable with `line_items`, which replaces the lines (set `flow_qname` on them).
|
|
21515
21844
|
*/
|
|
21516
21845
|
line_flows?: Array<JournalEntryLineFlow> | null;
|
|
21846
|
+
/**
|
|
21847
|
+
* Line Dimensions
|
|
21848
|
+
*
|
|
21849
|
+
* Re-tag lines' management dimensions in place: each named line carries exactly the members given (empty clears them). A dimension moves no balance, so this is allowed on a posted entry, closed month included; recorded on the entry as `dimension_retags`, with what each line carried before. Not combinable with `line_items` (set `dimension_ids` on the new lines).
|
|
21850
|
+
*/
|
|
21851
|
+
line_dimensions?: Array<JournalEntryLineDimensions> | null;
|
|
21517
21852
|
};
|
|
21518
21853
|
|
|
21519
21854
|
/**
|
|
@@ -31979,6 +32314,134 @@ export type UpdateAgentResponses = {
|
|
|
31979
32314
|
|
|
31980
32315
|
export type UpdateAgentResponse = UpdateAgentResponses[keyof UpdateAgentResponses];
|
|
31981
32316
|
|
|
32317
|
+
export type CreateDimensionData = {
|
|
32318
|
+
body: CreateDimensionRequest;
|
|
32319
|
+
headers?: {
|
|
32320
|
+
/**
|
|
32321
|
+
* Idempotency-Key
|
|
32322
|
+
*/
|
|
32323
|
+
'Idempotency-Key'?: string | null;
|
|
32324
|
+
};
|
|
32325
|
+
path: {
|
|
32326
|
+
/**
|
|
32327
|
+
* Graph Id
|
|
32328
|
+
*/
|
|
32329
|
+
graph_id: string;
|
|
32330
|
+
};
|
|
32331
|
+
query?: never;
|
|
32332
|
+
url: '/extensions/roboledger/{graph_id}/operations/create-dimension';
|
|
32333
|
+
};
|
|
32334
|
+
|
|
32335
|
+
export type CreateDimensionErrors = {
|
|
32336
|
+
/**
|
|
32337
|
+
* Invalid request
|
|
32338
|
+
*/
|
|
32339
|
+
400: ErrorResponse;
|
|
32340
|
+
/**
|
|
32341
|
+
* Authentication required
|
|
32342
|
+
*/
|
|
32343
|
+
401: ErrorResponse;
|
|
32344
|
+
/**
|
|
32345
|
+
* Access denied
|
|
32346
|
+
*/
|
|
32347
|
+
403: ErrorResponse;
|
|
32348
|
+
/**
|
|
32349
|
+
* Resource not found
|
|
32350
|
+
*/
|
|
32351
|
+
404: ErrorResponse;
|
|
32352
|
+
/**
|
|
32353
|
+
* Idempotency-Key conflict — key reused with different body
|
|
32354
|
+
*/
|
|
32355
|
+
409: ErrorResponse;
|
|
32356
|
+
/**
|
|
32357
|
+
* Validation error
|
|
32358
|
+
*/
|
|
32359
|
+
422: ErrorResponse;
|
|
32360
|
+
/**
|
|
32361
|
+
* Rate limit exceeded
|
|
32362
|
+
*/
|
|
32363
|
+
429: ErrorResponse;
|
|
32364
|
+
/**
|
|
32365
|
+
* Internal server error
|
|
32366
|
+
*/
|
|
32367
|
+
500: ErrorResponse;
|
|
32368
|
+
};
|
|
32369
|
+
|
|
32370
|
+
export type CreateDimensionError = CreateDimensionErrors[keyof CreateDimensionErrors];
|
|
32371
|
+
|
|
32372
|
+
export type CreateDimensionResponses = {
|
|
32373
|
+
/**
|
|
32374
|
+
* Successful Response
|
|
32375
|
+
*/
|
|
32376
|
+
200: OperationEnvelopeDimensionResponse;
|
|
32377
|
+
};
|
|
32378
|
+
|
|
32379
|
+
export type CreateDimensionResponse = CreateDimensionResponses[keyof CreateDimensionResponses];
|
|
32380
|
+
|
|
32381
|
+
export type UpdateDimensionData = {
|
|
32382
|
+
body: UpdateDimensionRequest;
|
|
32383
|
+
headers?: {
|
|
32384
|
+
/**
|
|
32385
|
+
* Idempotency-Key
|
|
32386
|
+
*/
|
|
32387
|
+
'Idempotency-Key'?: string | null;
|
|
32388
|
+
};
|
|
32389
|
+
path: {
|
|
32390
|
+
/**
|
|
32391
|
+
* Graph Id
|
|
32392
|
+
*/
|
|
32393
|
+
graph_id: string;
|
|
32394
|
+
};
|
|
32395
|
+
query?: never;
|
|
32396
|
+
url: '/extensions/roboledger/{graph_id}/operations/update-dimension';
|
|
32397
|
+
};
|
|
32398
|
+
|
|
32399
|
+
export type UpdateDimensionErrors = {
|
|
32400
|
+
/**
|
|
32401
|
+
* Invalid request
|
|
32402
|
+
*/
|
|
32403
|
+
400: ErrorResponse;
|
|
32404
|
+
/**
|
|
32405
|
+
* Authentication required
|
|
32406
|
+
*/
|
|
32407
|
+
401: ErrorResponse;
|
|
32408
|
+
/**
|
|
32409
|
+
* Access denied
|
|
32410
|
+
*/
|
|
32411
|
+
403: ErrorResponse;
|
|
32412
|
+
/**
|
|
32413
|
+
* Resource not found
|
|
32414
|
+
*/
|
|
32415
|
+
404: ErrorResponse;
|
|
32416
|
+
/**
|
|
32417
|
+
* Idempotency-Key conflict — key reused with different body
|
|
32418
|
+
*/
|
|
32419
|
+
409: ErrorResponse;
|
|
32420
|
+
/**
|
|
32421
|
+
* Validation error
|
|
32422
|
+
*/
|
|
32423
|
+
422: ErrorResponse;
|
|
32424
|
+
/**
|
|
32425
|
+
* Rate limit exceeded
|
|
32426
|
+
*/
|
|
32427
|
+
429: ErrorResponse;
|
|
32428
|
+
/**
|
|
32429
|
+
* Internal server error
|
|
32430
|
+
*/
|
|
32431
|
+
500: ErrorResponse;
|
|
32432
|
+
};
|
|
32433
|
+
|
|
32434
|
+
export type UpdateDimensionError = UpdateDimensionErrors[keyof UpdateDimensionErrors];
|
|
32435
|
+
|
|
32436
|
+
export type UpdateDimensionResponses = {
|
|
32437
|
+
/**
|
|
32438
|
+
* Successful Response
|
|
32439
|
+
*/
|
|
32440
|
+
200: OperationEnvelopeDimensionResponse;
|
|
32441
|
+
};
|
|
32442
|
+
|
|
32443
|
+
export type UpdateDimensionResponse = UpdateDimensionResponses[keyof UpdateDimensionResponses];
|
|
32444
|
+
|
|
31982
32445
|
export type LearnClassificationDefaultsData = {
|
|
31983
32446
|
body: LearnClassificationDefaultsRequest;
|
|
31984
32447
|
headers?: {
|