@robosystems/client 2.41.0 → 2.41.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 +2 -0
- package/artifacts/InvestorClient.ts +4 -0
- package/artifacts/graphql/generated/graphql.d.ts +4 -0
- package/artifacts/graphql/generated/graphql.js +4 -0
- package/artifacts/graphql/generated/graphql.ts +8 -0
- package/artifacts/graphql/queries/investor/holdings.js +2 -0
- package/artifacts/graphql/queries/investor/holdings.ts +2 -0
- package/artifacts/graphql/queries/investor/portfolio_block.js +2 -0
- package/artifacts/graphql/queries/investor/portfolio_block.ts +2 -0
- package/package.json +1 -1
- package/sdk/types.gen.d.ts +12 -0
- package/sdk/types.gen.ts +12 -0
- package/types.gen.d.ts +12 -0
- package/types.gen.ts +12 -0
|
@@ -265,6 +265,8 @@ function rawToPortfolioBlock(raw) {
|
|
|
265
265
|
totalCostBasisDollars: raw.total_cost_basis_dollars,
|
|
266
266
|
totalCurrentValueDollars: raw.total_current_value_dollars,
|
|
267
267
|
activePositionCount: raw.active_position_count,
|
|
268
|
+
markedPositionCount: raw.marked_position_count ?? 0,
|
|
269
|
+
currentValueIsPartial: raw.current_value_is_partial ?? false,
|
|
268
270
|
createdAt: raw.created_at,
|
|
269
271
|
updatedAt: raw.updated_at,
|
|
270
272
|
};
|
|
@@ -525,6 +525,8 @@ interface RawPortfolioBlockResponse {
|
|
|
525
525
|
total_cost_basis_dollars: number
|
|
526
526
|
total_current_value_dollars: number | null
|
|
527
527
|
active_position_count: number
|
|
528
|
+
marked_position_count?: number
|
|
529
|
+
current_value_is_partial?: boolean
|
|
528
530
|
created_at: string
|
|
529
531
|
updated_at: string
|
|
530
532
|
}
|
|
@@ -597,6 +599,8 @@ function rawToPortfolioBlock(raw: RawPortfolioBlockResponse): InvestorPortfolioB
|
|
|
597
599
|
totalCostBasisDollars: raw.total_cost_basis_dollars,
|
|
598
600
|
totalCurrentValueDollars: raw.total_current_value_dollars,
|
|
599
601
|
activePositionCount: raw.active_position_count,
|
|
602
|
+
markedPositionCount: raw.marked_position_count ?? 0,
|
|
603
|
+
currentValueIsPartial: raw.current_value_is_partial ?? false,
|
|
600
604
|
createdAt: raw.created_at,
|
|
601
605
|
updatedAt: raw.updated_at,
|
|
602
606
|
}
|
|
@@ -25,6 +25,8 @@ export type GetInvestorHoldingsQuery = {
|
|
|
25
25
|
totalCostBasisDollars: number;
|
|
26
26
|
totalCurrentValueDollars: number | null;
|
|
27
27
|
positionCount: number;
|
|
28
|
+
markedPositionCount: number;
|
|
29
|
+
currentValueIsPartial: boolean;
|
|
28
30
|
securities: Array<{
|
|
29
31
|
securityId: string;
|
|
30
32
|
securityName: string;
|
|
@@ -51,6 +53,8 @@ export type GetInvestorPortfolioBlockQuery = {
|
|
|
51
53
|
totalCostBasisDollars: number;
|
|
52
54
|
totalCurrentValueDollars: number | null;
|
|
53
55
|
activePositionCount: number;
|
|
56
|
+
markedPositionCount: number;
|
|
57
|
+
currentValueIsPartial: boolean;
|
|
54
58
|
createdAt: string;
|
|
55
59
|
updatedAt: string;
|
|
56
60
|
owner: {
|
|
@@ -352,6 +352,8 @@ exports.GetInvestorHoldingsDocument = {
|
|
|
352
352
|
{ kind: 'Field', name: { kind: 'Name', value: 'totalCostBasisDollars' } },
|
|
353
353
|
{ kind: 'Field', name: { kind: 'Name', value: 'totalCurrentValueDollars' } },
|
|
354
354
|
{ kind: 'Field', name: { kind: 'Name', value: 'positionCount' } },
|
|
355
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'markedPositionCount' } },
|
|
356
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'currentValueIsPartial' } },
|
|
355
357
|
{
|
|
356
358
|
kind: 'Field',
|
|
357
359
|
name: { kind: 'Name', value: 'securities' },
|
|
@@ -479,6 +481,8 @@ exports.GetInvestorPortfolioBlockDocument = {
|
|
|
479
481
|
{ kind: 'Field', name: { kind: 'Name', value: 'totalCostBasisDollars' } },
|
|
480
482
|
{ kind: 'Field', name: { kind: 'Name', value: 'totalCurrentValueDollars' } },
|
|
481
483
|
{ kind: 'Field', name: { kind: 'Name', value: 'activePositionCount' } },
|
|
484
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'markedPositionCount' } },
|
|
485
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'currentValueIsPartial' } },
|
|
482
486
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
|
|
483
487
|
{ kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
|
|
484
488
|
],
|
|
@@ -23,6 +23,8 @@ export type GetInvestorHoldingsQuery = {
|
|
|
23
23
|
totalCostBasisDollars: number
|
|
24
24
|
totalCurrentValueDollars: number | null
|
|
25
25
|
positionCount: number
|
|
26
|
+
markedPositionCount: number
|
|
27
|
+
currentValueIsPartial: boolean
|
|
26
28
|
securities: Array<{
|
|
27
29
|
securityId: string
|
|
28
30
|
securityName: string
|
|
@@ -51,6 +53,8 @@ export type GetInvestorPortfolioBlockQuery = {
|
|
|
51
53
|
totalCostBasisDollars: number
|
|
52
54
|
totalCurrentValueDollars: number | null
|
|
53
55
|
activePositionCount: number
|
|
56
|
+
markedPositionCount: number
|
|
57
|
+
currentValueIsPartial: boolean
|
|
54
58
|
createdAt: string
|
|
55
59
|
updatedAt: string
|
|
56
60
|
owner: { id: string; name: string; sourceGraphId: string | null } | null
|
|
@@ -3301,6 +3305,8 @@ export const GetInvestorHoldingsDocument = {
|
|
|
3301
3305
|
{ kind: 'Field', name: { kind: 'Name', value: 'totalCostBasisDollars' } },
|
|
3302
3306
|
{ kind: 'Field', name: { kind: 'Name', value: 'totalCurrentValueDollars' } },
|
|
3303
3307
|
{ kind: 'Field', name: { kind: 'Name', value: 'positionCount' } },
|
|
3308
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'markedPositionCount' } },
|
|
3309
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'currentValueIsPartial' } },
|
|
3304
3310
|
{
|
|
3305
3311
|
kind: 'Field',
|
|
3306
3312
|
name: { kind: 'Name', value: 'securities' },
|
|
@@ -3428,6 +3434,8 @@ export const GetInvestorPortfolioBlockDocument = {
|
|
|
3428
3434
|
{ kind: 'Field', name: { kind: 'Name', value: 'totalCostBasisDollars' } },
|
|
3429
3435
|
{ kind: 'Field', name: { kind: 'Name', value: 'totalCurrentValueDollars' } },
|
|
3430
3436
|
{ kind: 'Field', name: { kind: 'Name', value: 'activePositionCount' } },
|
|
3437
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'markedPositionCount' } },
|
|
3438
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'currentValueIsPartial' } },
|
|
3431
3439
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
|
|
3432
3440
|
{ kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
|
|
3433
3441
|
],
|
package/package.json
CHANGED
package/sdk/types.gen.d.ts
CHANGED
|
@@ -16369,6 +16369,18 @@ export type PortfolioBlockEnvelope = {
|
|
|
16369
16369
|
* Count of positions with `status='active'`.
|
|
16370
16370
|
*/
|
|
16371
16371
|
active_position_count: number;
|
|
16372
|
+
/**
|
|
16373
|
+
* Marked Position Count
|
|
16374
|
+
*
|
|
16375
|
+
* How many active positions have a mark, and so how many `total_current_value_dollars` covers.
|
|
16376
|
+
*/
|
|
16377
|
+
marked_position_count?: number;
|
|
16378
|
+
/**
|
|
16379
|
+
* Current Value Is Partial
|
|
16380
|
+
*
|
|
16381
|
+
* True when some active positions have a mark and some do not: `total_current_value_dollars` then leaves the unmarked ones out and is not comparable with `total_cost_basis_dollars`, which covers them all.
|
|
16382
|
+
*/
|
|
16383
|
+
current_value_is_partial?: boolean;
|
|
16372
16384
|
/**
|
|
16373
16385
|
* Created At
|
|
16374
16386
|
*
|
package/sdk/types.gen.ts
CHANGED
|
@@ -16743,6 +16743,18 @@ export type PortfolioBlockEnvelope = {
|
|
|
16743
16743
|
* Count of positions with `status='active'`.
|
|
16744
16744
|
*/
|
|
16745
16745
|
active_position_count: number;
|
|
16746
|
+
/**
|
|
16747
|
+
* Marked Position Count
|
|
16748
|
+
*
|
|
16749
|
+
* How many active positions have a mark, and so how many `total_current_value_dollars` covers.
|
|
16750
|
+
*/
|
|
16751
|
+
marked_position_count?: number;
|
|
16752
|
+
/**
|
|
16753
|
+
* Current Value Is Partial
|
|
16754
|
+
*
|
|
16755
|
+
* True when some active positions have a mark and some do not: `total_current_value_dollars` then leaves the unmarked ones out and is not comparable with `total_cost_basis_dollars`, which covers them all.
|
|
16756
|
+
*/
|
|
16757
|
+
current_value_is_partial?: boolean;
|
|
16746
16758
|
/**
|
|
16747
16759
|
* Created At
|
|
16748
16760
|
*
|
package/types.gen.d.ts
CHANGED
|
@@ -16369,6 +16369,18 @@ export type PortfolioBlockEnvelope = {
|
|
|
16369
16369
|
* Count of positions with `status='active'`.
|
|
16370
16370
|
*/
|
|
16371
16371
|
active_position_count: number;
|
|
16372
|
+
/**
|
|
16373
|
+
* Marked Position Count
|
|
16374
|
+
*
|
|
16375
|
+
* How many active positions have a mark, and so how many `total_current_value_dollars` covers.
|
|
16376
|
+
*/
|
|
16377
|
+
marked_position_count?: number;
|
|
16378
|
+
/**
|
|
16379
|
+
* Current Value Is Partial
|
|
16380
|
+
*
|
|
16381
|
+
* True when some active positions have a mark and some do not: `total_current_value_dollars` then leaves the unmarked ones out and is not comparable with `total_cost_basis_dollars`, which covers them all.
|
|
16382
|
+
*/
|
|
16383
|
+
current_value_is_partial?: boolean;
|
|
16372
16384
|
/**
|
|
16373
16385
|
* Created At
|
|
16374
16386
|
*
|
package/types.gen.ts
CHANGED
|
@@ -16743,6 +16743,18 @@ export type PortfolioBlockEnvelope = {
|
|
|
16743
16743
|
* Count of positions with `status='active'`.
|
|
16744
16744
|
*/
|
|
16745
16745
|
active_position_count: number;
|
|
16746
|
+
/**
|
|
16747
|
+
* Marked Position Count
|
|
16748
|
+
*
|
|
16749
|
+
* How many active positions have a mark, and so how many `total_current_value_dollars` covers.
|
|
16750
|
+
*/
|
|
16751
|
+
marked_position_count?: number;
|
|
16752
|
+
/**
|
|
16753
|
+
* Current Value Is Partial
|
|
16754
|
+
*
|
|
16755
|
+
* True when some active positions have a mark and some do not: `total_current_value_dollars` then leaves the unmarked ones out and is not comparable with `total_cost_basis_dollars`, which covers them all.
|
|
16756
|
+
*/
|
|
16757
|
+
current_value_is_partial?: boolean;
|
|
16746
16758
|
/**
|
|
16747
16759
|
* Created At
|
|
16748
16760
|
*
|