@robosystems/client 2.28.0 → 2.29.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/types.gen.d.ts CHANGED
@@ -259,6 +259,98 @@ export type AccountInfo = {
259
259
  */
260
260
  provider_account_id: string;
261
261
  };
262
+ /**
263
+ * AcquisitionAllocation
264
+ *
265
+ * Part of an acquisition's excess assigned to an identifiable asset or
266
+ * liability at fair value instead of goodwill: a step-up.
267
+ */
268
+ export type AcquisitionAllocation = {
269
+ /**
270
+ * Concept
271
+ *
272
+ * The rs-gaap concept stepped up, e.g. `rs-gaap:PropertyPlantAndEquipmentNet`; the consolidation entity needs an account mapped to it.
273
+ */
274
+ concept: string;
275
+ /**
276
+ * Amount
277
+ *
278
+ * Cents, debit-positive: fair value less book value at acquisition. Positive raises an asset; negative raises a liability.
279
+ */
280
+ amount: number;
281
+ };
282
+ /**
283
+ * AcquisitionResponse
284
+ *
285
+ * A member's acquisition as recorded: the draft in the consolidation
286
+ * entity its close posts.
287
+ */
288
+ export type AcquisitionResponse = {
289
+ /**
290
+ * Entity Id
291
+ *
292
+ * The member.
293
+ */
294
+ entity_id: string;
295
+ /**
296
+ * Entity Name
297
+ *
298
+ * The member's name.
299
+ */
300
+ entity_name: string;
301
+ /**
302
+ * Joined On
303
+ *
304
+ * When it joined the group.
305
+ */
306
+ joined_on: string;
307
+ /**
308
+ * Equity At Acquisition
309
+ *
310
+ * Cents: the member's equity in its opening balance.
311
+ */
312
+ equity_at_acquisition: number;
313
+ /**
314
+ * Parent Share
315
+ *
316
+ * Cents: the parent's share of that equity.
317
+ */
318
+ parent_share: number;
319
+ /**
320
+ * Consideration
321
+ *
322
+ * Cents paid to the sellers.
323
+ */
324
+ consideration: number;
325
+ /**
326
+ * Excess
327
+ *
328
+ * Cents: consideration less the parent's share of the equity.
329
+ */
330
+ excess: number;
331
+ /**
332
+ * Goodwill
333
+ *
334
+ * Cents of goodwill; negative for a bargain purchase gain.
335
+ */
336
+ goodwill: number;
337
+ /**
338
+ * Noncontrolling Interest
339
+ *
340
+ * Cents added to the outside owners' interest beyond their share of the member's book equity.
341
+ */
342
+ noncontrolling_interest?: number;
343
+ /**
344
+ * The acquisition entry, a draft the close posts.
345
+ */
346
+ entry: JournalEntryResponse;
347
+ /**
348
+ * Replaced
349
+ *
350
+ * True when it replaced an earlier draft of the acquisition.
351
+ */
352
+ replaced?: boolean;
353
+ };
262
354
  /**
263
355
  * AddGraphMemberRequest
264
356
  *
@@ -2653,6 +2745,12 @@ export type ConsolidationResidual = {
2653
2745
  * What the two figures are.
2654
2746
  */
2655
2747
  explanation: string;
2748
+ /**
2749
+ * Cause
2750
+ *
2751
+ * `pre_acquisition` when the member joined the group mid-life and its acquisition is not recorded: the parent paid its sellers, not the member, so `record-acquisition` explains the difference — the consideration, with the excess over the parent's share of the member's equity at acquisition as goodwill or fair-value step-ups.
2752
+ */
2753
+ cause?: 'unexplained' | 'pre_acquisition';
2656
2754
  };
2657
2755
  /**
2658
2756
  * ConsolidationWorksheetRequest
@@ -11244,6 +11342,51 @@ export type OperationEnvelopeAcceptSuggestionsResponse = {
11244
11342
  */
11245
11343
  idempotentReplay?: boolean;
11246
11344
  };
11345
+ /**
11346
+ * OperationEnvelope[AcquisitionResponse]
11347
+ */
11348
+ export type OperationEnvelopeAcquisitionResponse = {
11349
+ /**
11350
+ * Operation
11351
+ *
11352
+ * Kebab-case operation name
11353
+ */
11354
+ operation: string;
11355
+ /**
11356
+ * Operationid
11357
+ *
11358
+ * op_-prefixed ULID for audit and SSE correlation
11359
+ */
11360
+ operationId: string;
11361
+ /**
11362
+ * Status
11363
+ *
11364
+ * Operation lifecycle state
11365
+ */
11366
+ status: 'completed' | 'pending' | 'failed';
11367
+ /**
11368
+ * Command-specific result payload
11369
+ */
11370
+ result?: AcquisitionResponse | null;
11371
+ /**
11372
+ * At
11373
+ *
11374
+ * ISO-8601 UTC timestamp
11375
+ */
11376
+ at: string;
11377
+ /**
11378
+ * Createdby
11379
+ *
11380
+ * User ID that initiated the operation
11381
+ */
11382
+ createdBy?: string | null;
11383
+ /**
11384
+ * Idempotentreplay
11385
+ *
11386
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
11387
+ */
11388
+ idempotentReplay?: boolean;
11389
+ };
11247
11390
  /**
11248
11391
  * OperationEnvelope[AllocationOverrideResponse]
11249
11392
  */
@@ -16823,6 +16966,52 @@ export type ReconcilingItemRegenerated = {
16823
16966
  */
16824
16967
  entry_ids?: Array<string>;
16825
16968
  };
16969
+ /**
16970
+ * RecordAcquisitionRequest
16971
+ *
16972
+ * A member bought from its outside owners: what the parent paid them,
16973
+ * and how the excess over its share of the member's equity at acquisition is
16974
+ * allocated. The engine never invents a fair value; each comes from the
16975
+ * person, with the basis.
16976
+ */
16977
+ export type RecordAcquisitionRequest = {
16978
+ /**
16979
+ * Entity Id
16980
+ *
16981
+ * The member acquired, consolidated in full, with `joined_on` set and its opening balance recorded at acquisition.
16982
+ */
16983
+ entity_id: string;
16984
+ /**
16985
+ * Consideration
16986
+ *
16987
+ * Cents the parent paid the sellers for its interest. Its investment line names the seller, not the member, which is why it is given here.
16988
+ */
16989
+ consideration: number;
16990
+ /**
16991
+ * Nci Fair Value
16992
+ *
16993
+ * Cents: the fair value of the outside owners' interest at acquisition, for goodwill on the whole business (ASC 805). Omitted, the outside owners carry their share of the identifiable net assets and goodwill is the parent's alone.
16994
+ */
16995
+ nci_fair_value?: number | null;
16996
+ /**
16997
+ * Allocations
16998
+ *
16999
+ * Fair-value step-ups; what is left of the excess is goodwill.
17000
+ */
17001
+ allocations?: Array<AcquisitionAllocation>;
17002
+ /**
17003
+ * Basis
17004
+ *
17005
+ * Where the consideration and fair values come from: the purchase agreement, a valuation.
17006
+ */
17007
+ basis: string;
17008
+ /**
17009
+ * Confirm Bargain Purchase
17010
+ *
17011
+ * Required when the parent paid less than its share of the fair value of what it acquired. ASC 805 has the acquirer reassess before recognizing the gain; set it only after that review.
17012
+ */
17013
+ confirm_bargain_purchase?: boolean;
17014
+ };
16826
17015
  /**
16827
17016
  * RecordOpeningBalanceRequest
16828
17017
  *
@@ -31863,6 +32052,65 @@ export type SetAllocationOverrideResponses = {
31863
32052
  200: OperationEnvelopeAllocationOverrideResponse;
31864
32053
  };
31865
32054
  export type SetAllocationOverrideResponse = SetAllocationOverrideResponses[keyof SetAllocationOverrideResponses];
32055
+ export type RecordAcquisitionData = {
32056
+ body: RecordAcquisitionRequest;
32057
+ headers?: {
32058
+ /**
32059
+ * Idempotency-Key
32060
+ */
32061
+ 'Idempotency-Key'?: string | null;
32062
+ };
32063
+ path: {
32064
+ /**
32065
+ * Graph Id
32066
+ */
32067
+ graph_id: string;
32068
+ };
32069
+ query?: never;
32070
+ url: '/extensions/roboledger/{graph_id}/operations/record-acquisition';
32071
+ };
32072
+ export type RecordAcquisitionErrors = {
32073
+ /**
32074
+ * Invalid request
32075
+ */
32076
+ 400: ErrorResponse;
32077
+ /**
32078
+ * Authentication required
32079
+ */
32080
+ 401: ErrorResponse;
32081
+ /**
32082
+ * Access denied
32083
+ */
32084
+ 403: ErrorResponse;
32085
+ /**
32086
+ * Resource not found
32087
+ */
32088
+ 404: ErrorResponse;
32089
+ /**
32090
+ * Idempotency-Key conflict — key reused with different body
32091
+ */
32092
+ 409: ErrorResponse;
32093
+ /**
32094
+ * Validation error
32095
+ */
32096
+ 422: ErrorResponse;
32097
+ /**
32098
+ * Rate limit exceeded
32099
+ */
32100
+ 429: ErrorResponse;
32101
+ /**
32102
+ * Internal server error
32103
+ */
32104
+ 500: ErrorResponse;
32105
+ };
32106
+ export type RecordAcquisitionError = RecordAcquisitionErrors[keyof RecordAcquisitionErrors];
32107
+ export type RecordAcquisitionResponses = {
32108
+ /**
32109
+ * Successful Response
32110
+ */
32111
+ 200: OperationEnvelopeAcquisitionResponse;
32112
+ };
32113
+ export type RecordAcquisitionResponse = RecordAcquisitionResponses[keyof RecordAcquisitionResponses];
31866
32114
  export type UpdateJournalEntryData = {
31867
32115
  body: UpdateJournalEntryRequest;
31868
32116
  headers?: {
package/types.gen.ts CHANGED
@@ -268,6 +268,100 @@ export type AccountInfo = {
268
268
  provider_account_id: string;
269
269
  };
270
270
 
271
+ /**
272
+ * AcquisitionAllocation
273
+ *
274
+ * Part of an acquisition's excess assigned to an identifiable asset or
275
+ * liability at fair value instead of goodwill: a step-up.
276
+ */
277
+ export type AcquisitionAllocation = {
278
+ /**
279
+ * Concept
280
+ *
281
+ * The rs-gaap concept stepped up, e.g. `rs-gaap:PropertyPlantAndEquipmentNet`; the consolidation entity needs an account mapped to it.
282
+ */
283
+ concept: string;
284
+ /**
285
+ * Amount
286
+ *
287
+ * Cents, debit-positive: fair value less book value at acquisition. Positive raises an asset; negative raises a liability.
288
+ */
289
+ amount: number;
290
+ };
291
+
292
+ /**
293
+ * AcquisitionResponse
294
+ *
295
+ * A member's acquisition as recorded: the draft in the consolidation
296
+ * entity its close posts.
297
+ */
298
+ export type AcquisitionResponse = {
299
+ /**
300
+ * Entity Id
301
+ *
302
+ * The member.
303
+ */
304
+ entity_id: string;
305
+ /**
306
+ * Entity Name
307
+ *
308
+ * The member's name.
309
+ */
310
+ entity_name: string;
311
+ /**
312
+ * Joined On
313
+ *
314
+ * When it joined the group.
315
+ */
316
+ joined_on: string;
317
+ /**
318
+ * Equity At Acquisition
319
+ *
320
+ * Cents: the member's equity in its opening balance.
321
+ */
322
+ equity_at_acquisition: number;
323
+ /**
324
+ * Parent Share
325
+ *
326
+ * Cents: the parent's share of that equity.
327
+ */
328
+ parent_share: number;
329
+ /**
330
+ * Consideration
331
+ *
332
+ * Cents paid to the sellers.
333
+ */
334
+ consideration: number;
335
+ /**
336
+ * Excess
337
+ *
338
+ * Cents: consideration less the parent's share of the equity.
339
+ */
340
+ excess: number;
341
+ /**
342
+ * Goodwill
343
+ *
344
+ * Cents of goodwill; negative for a bargain purchase gain.
345
+ */
346
+ goodwill: number;
347
+ /**
348
+ * Noncontrolling Interest
349
+ *
350
+ * Cents added to the outside owners' interest beyond their share of the member's book equity.
351
+ */
352
+ noncontrolling_interest?: number;
353
+ /**
354
+ * The acquisition entry, a draft the close posts.
355
+ */
356
+ entry: JournalEntryResponse;
357
+ /**
358
+ * Replaced
359
+ *
360
+ * True when it replaced an earlier draft of the acquisition.
361
+ */
362
+ replaced?: boolean;
363
+ };
364
+
271
365
  /**
272
366
  * AddGraphMemberRequest
273
367
  *
@@ -2719,6 +2813,12 @@ export type ConsolidationResidual = {
2719
2813
  * What the two figures are.
2720
2814
  */
2721
2815
  explanation: string;
2816
+ /**
2817
+ * Cause
2818
+ *
2819
+ * `pre_acquisition` when the member joined the group mid-life and its acquisition is not recorded: the parent paid its sellers, not the member, so `record-acquisition` explains the difference — the consideration, with the excess over the parent's share of the member's equity at acquisition as goodwill or fair-value step-ups.
2820
+ */
2821
+ cause?: 'unexplained' | 'pre_acquisition';
2722
2822
  };
2723
2823
 
2724
2824
  /**
@@ -11501,6 +11601,52 @@ export type OperationEnvelopeAcceptSuggestionsResponse = {
11501
11601
  idempotentReplay?: boolean;
11502
11602
  };
11503
11603
 
11604
+ /**
11605
+ * OperationEnvelope[AcquisitionResponse]
11606
+ */
11607
+ export type OperationEnvelopeAcquisitionResponse = {
11608
+ /**
11609
+ * Operation
11610
+ *
11611
+ * Kebab-case operation name
11612
+ */
11613
+ operation: string;
11614
+ /**
11615
+ * Operationid
11616
+ *
11617
+ * op_-prefixed ULID for audit and SSE correlation
11618
+ */
11619
+ operationId: string;
11620
+ /**
11621
+ * Status
11622
+ *
11623
+ * Operation lifecycle state
11624
+ */
11625
+ status: 'completed' | 'pending' | 'failed';
11626
+ /**
11627
+ * Command-specific result payload
11628
+ */
11629
+ result?: AcquisitionResponse | null;
11630
+ /**
11631
+ * At
11632
+ *
11633
+ * ISO-8601 UTC timestamp
11634
+ */
11635
+ at: string;
11636
+ /**
11637
+ * Createdby
11638
+ *
11639
+ * User ID that initiated the operation
11640
+ */
11641
+ createdBy?: string | null;
11642
+ /**
11643
+ * Idempotentreplay
11644
+ *
11645
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
11646
+ */
11647
+ idempotentReplay?: boolean;
11648
+ };
11649
+
11504
11650
  /**
11505
11651
  * OperationEnvelope[AllocationOverrideResponse]
11506
11652
  */
@@ -17213,6 +17359,53 @@ export type ReconcilingItemRegenerated = {
17213
17359
  entry_ids?: Array<string>;
17214
17360
  };
17215
17361
 
17362
+ /**
17363
+ * RecordAcquisitionRequest
17364
+ *
17365
+ * A member bought from its outside owners: what the parent paid them,
17366
+ * and how the excess over its share of the member's equity at acquisition is
17367
+ * allocated. The engine never invents a fair value; each comes from the
17368
+ * person, with the basis.
17369
+ */
17370
+ export type RecordAcquisitionRequest = {
17371
+ /**
17372
+ * Entity Id
17373
+ *
17374
+ * The member acquired, consolidated in full, with `joined_on` set and its opening balance recorded at acquisition.
17375
+ */
17376
+ entity_id: string;
17377
+ /**
17378
+ * Consideration
17379
+ *
17380
+ * Cents the parent paid the sellers for its interest. Its investment line names the seller, not the member, which is why it is given here.
17381
+ */
17382
+ consideration: number;
17383
+ /**
17384
+ * Nci Fair Value
17385
+ *
17386
+ * Cents: the fair value of the outside owners' interest at acquisition, for goodwill on the whole business (ASC 805). Omitted, the outside owners carry their share of the identifiable net assets and goodwill is the parent's alone.
17387
+ */
17388
+ nci_fair_value?: number | null;
17389
+ /**
17390
+ * Allocations
17391
+ *
17392
+ * Fair-value step-ups; what is left of the excess is goodwill.
17393
+ */
17394
+ allocations?: Array<AcquisitionAllocation>;
17395
+ /**
17396
+ * Basis
17397
+ *
17398
+ * Where the consideration and fair values come from: the purchase agreement, a valuation.
17399
+ */
17400
+ basis: string;
17401
+ /**
17402
+ * Confirm Bargain Purchase
17403
+ *
17404
+ * Required when the parent paid less than its share of the fair value of what it acquired. ASC 805 has the acquirer reassess before recognizing the gain; set it only after that review.
17405
+ */
17406
+ confirm_bargain_purchase?: boolean;
17407
+ };
17408
+
17216
17409
  /**
17217
17410
  * RecordOpeningBalanceRequest
17218
17411
  *
@@ -33319,6 +33512,70 @@ export type SetAllocationOverrideResponses = {
33319
33512
 
33320
33513
  export type SetAllocationOverrideResponse = SetAllocationOverrideResponses[keyof SetAllocationOverrideResponses];
33321
33514
 
33515
+ export type RecordAcquisitionData = {
33516
+ body: RecordAcquisitionRequest;
33517
+ headers?: {
33518
+ /**
33519
+ * Idempotency-Key
33520
+ */
33521
+ 'Idempotency-Key'?: string | null;
33522
+ };
33523
+ path: {
33524
+ /**
33525
+ * Graph Id
33526
+ */
33527
+ graph_id: string;
33528
+ };
33529
+ query?: never;
33530
+ url: '/extensions/roboledger/{graph_id}/operations/record-acquisition';
33531
+ };
33532
+
33533
+ export type RecordAcquisitionErrors = {
33534
+ /**
33535
+ * Invalid request
33536
+ */
33537
+ 400: ErrorResponse;
33538
+ /**
33539
+ * Authentication required
33540
+ */
33541
+ 401: ErrorResponse;
33542
+ /**
33543
+ * Access denied
33544
+ */
33545
+ 403: ErrorResponse;
33546
+ /**
33547
+ * Resource not found
33548
+ */
33549
+ 404: ErrorResponse;
33550
+ /**
33551
+ * Idempotency-Key conflict — key reused with different body
33552
+ */
33553
+ 409: ErrorResponse;
33554
+ /**
33555
+ * Validation error
33556
+ */
33557
+ 422: ErrorResponse;
33558
+ /**
33559
+ * Rate limit exceeded
33560
+ */
33561
+ 429: ErrorResponse;
33562
+ /**
33563
+ * Internal server error
33564
+ */
33565
+ 500: ErrorResponse;
33566
+ };
33567
+
33568
+ export type RecordAcquisitionError = RecordAcquisitionErrors[keyof RecordAcquisitionErrors];
33569
+
33570
+ export type RecordAcquisitionResponses = {
33571
+ /**
33572
+ * Successful Response
33573
+ */
33574
+ 200: OperationEnvelopeAcquisitionResponse;
33575
+ };
33576
+
33577
+ export type RecordAcquisitionResponse = RecordAcquisitionResponses[keyof RecordAcquisitionResponses];
33578
+
33322
33579
  export type UpdateJournalEntryData = {
33323
33580
  body: UpdateJournalEntryRequest;
33324
33581
  headers?: {