@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.
@@ -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
  ],
@@ -21,6 +21,8 @@ exports.GET_HOLDINGS = (0, graphql_request_1.gql) `
21
21
  totalCostBasisDollars
22
22
  totalCurrentValueDollars
23
23
  positionCount
24
+ markedPositionCount
25
+ currentValueIsPartial
24
26
  securities {
25
27
  securityId
26
28
  securityName
@@ -19,6 +19,8 @@ export const GET_HOLDINGS = gql`
19
19
  totalCostBasisDollars
20
20
  totalCurrentValueDollars
21
21
  positionCount
22
+ markedPositionCount
23
+ currentValueIsPartial
22
24
  securities {
23
25
  securityId
24
26
  securityName
@@ -53,6 +53,8 @@ exports.GET_PORTFOLIO_BLOCK = (0, graphql_request_1.gql) `
53
53
  totalCostBasisDollars
54
54
  totalCurrentValueDollars
55
55
  activePositionCount
56
+ markedPositionCount
57
+ currentValueIsPartial
56
58
  createdAt
57
59
  updatedAt
58
60
  }
@@ -51,6 +51,8 @@ export const GET_PORTFOLIO_BLOCK = gql`
51
51
  totalCostBasisDollars
52
52
  totalCurrentValueDollars
53
53
  activePositionCount
54
+ markedPositionCount
55
+ currentValueIsPartial
54
56
  createdAt
55
57
  updatedAt
56
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robosystems/client",
3
- "version": "2.41.0",
3
+ "version": "2.41.1",
4
4
  "description": "TypeScript SDK for RoboSystems, the open-source knowledge graph for finance",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -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
  *