@robosystems/client 2.41.0 → 2.41.2
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/LedgerClient.d.ts +5 -0
- package/artifacts/LedgerClient.js +1 -0
- package/artifacts/LedgerClient.ts +6 -0
- package/artifacts/graphql/generated/graphql.d.ts +5 -0
- package/artifacts/graphql/generated/graphql.js +14 -0
- package/artifacts/graphql/generated/graphql.ts +19 -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/artifacts/graphql/queries/ledger/eventBlocks.js +2 -0
- package/artifacts/graphql/queries/ledger/eventBlocks.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
|
}
|
|
@@ -746,6 +746,11 @@ export declare class LedgerClient {
|
|
|
746
746
|
status?: string;
|
|
747
747
|
agentId?: string;
|
|
748
748
|
source?: string;
|
|
749
|
+
/**
|
|
750
|
+
* The id a source sent the event under. With `source` it names at
|
|
751
|
+
* most one event.
|
|
752
|
+
*/
|
|
753
|
+
externalId?: string;
|
|
749
754
|
/** Only posted events whose source payload changed afterwards. */
|
|
750
755
|
isReconcilingItem?: boolean;
|
|
751
756
|
limit?: number;
|
|
@@ -225,6 +225,7 @@ class LedgerClient {
|
|
|
225
225
|
status: options?.status ?? null,
|
|
226
226
|
agentId: options?.agentId ?? null,
|
|
227
227
|
source: options?.source ?? null,
|
|
228
|
+
externalId: options?.externalId ?? null,
|
|
228
229
|
isReconcilingItem: options?.isReconcilingItem ?? null,
|
|
229
230
|
limit: options?.limit ?? 50,
|
|
230
231
|
offset: options?.offset ?? 0,
|
|
@@ -1514,6 +1514,11 @@ export class LedgerClient {
|
|
|
1514
1514
|
status?: string
|
|
1515
1515
|
agentId?: string
|
|
1516
1516
|
source?: string
|
|
1517
|
+
/**
|
|
1518
|
+
* The id a source sent the event under. With `source` it names at
|
|
1519
|
+
* most one event.
|
|
1520
|
+
*/
|
|
1521
|
+
externalId?: string
|
|
1517
1522
|
/** Only posted events whose source payload changed afterwards. */
|
|
1518
1523
|
isReconcilingItem?: boolean
|
|
1519
1524
|
limit?: number
|
|
@@ -1530,6 +1535,7 @@ export class LedgerClient {
|
|
|
1530
1535
|
status: options?.status ?? null,
|
|
1531
1536
|
agentId: options?.agentId ?? null,
|
|
1532
1537
|
source: options?.source ?? null,
|
|
1538
|
+
externalId: options?.externalId ?? null,
|
|
1533
1539
|
isReconcilingItem: options?.isReconcilingItem ?? null,
|
|
1534
1540
|
limit: options?.limit ?? 50,
|
|
1535
1541
|
offset: options?.offset ?? 0,
|
|
@@ -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: {
|
|
@@ -1183,6 +1187,7 @@ export type ListLedgerEventBlocksQueryVariables = Exact<{
|
|
|
1183
1187
|
status: string | null | undefined;
|
|
1184
1188
|
agentId: string | null | undefined;
|
|
1185
1189
|
source: string | null | undefined;
|
|
1190
|
+
externalId: string | null | undefined;
|
|
1186
1191
|
isReconcilingItem: boolean | null | undefined;
|
|
1187
1192
|
limit?: number;
|
|
1188
1193
|
offset?: number;
|
|
@@ -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
|
],
|
|
@@ -3309,6 +3313,11 @@ exports.ListLedgerEventBlocksDocument = {
|
|
|
3309
3313
|
variable: { kind: 'Variable', name: { kind: 'Name', value: 'source' } },
|
|
3310
3314
|
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3311
3315
|
},
|
|
3316
|
+
{
|
|
3317
|
+
kind: 'VariableDefinition',
|
|
3318
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'externalId' } },
|
|
3319
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3320
|
+
},
|
|
3312
3321
|
{
|
|
3313
3322
|
kind: 'VariableDefinition',
|
|
3314
3323
|
variable: { kind: 'Variable', name: { kind: 'Name', value: 'isReconcilingItem' } },
|
|
@@ -3370,6 +3379,11 @@ exports.ListLedgerEventBlocksDocument = {
|
|
|
3370
3379
|
name: { kind: 'Name', value: 'source' },
|
|
3371
3380
|
value: { kind: 'Variable', name: { kind: 'Name', value: 'source' } },
|
|
3372
3381
|
},
|
|
3382
|
+
{
|
|
3383
|
+
kind: 'Argument',
|
|
3384
|
+
name: { kind: 'Name', value: 'externalId' },
|
|
3385
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'externalId' } },
|
|
3386
|
+
},
|
|
3373
3387
|
{
|
|
3374
3388
|
kind: 'Argument',
|
|
3375
3389
|
name: { kind: 'Name', value: 'isReconcilingItem' },
|
|
@@ -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
|
|
@@ -1179,6 +1183,7 @@ export type ListLedgerEventBlocksQueryVariables = Exact<{
|
|
|
1179
1183
|
status: string | null | undefined
|
|
1180
1184
|
agentId: string | null | undefined
|
|
1181
1185
|
source: string | null | undefined
|
|
1186
|
+
externalId: string | null | undefined
|
|
1182
1187
|
isReconcilingItem: boolean | null | undefined
|
|
1183
1188
|
limit?: number
|
|
1184
1189
|
offset?: number
|
|
@@ -3301,6 +3306,8 @@ export const GetInvestorHoldingsDocument = {
|
|
|
3301
3306
|
{ kind: 'Field', name: { kind: 'Name', value: 'totalCostBasisDollars' } },
|
|
3302
3307
|
{ kind: 'Field', name: { kind: 'Name', value: 'totalCurrentValueDollars' } },
|
|
3303
3308
|
{ kind: 'Field', name: { kind: 'Name', value: 'positionCount' } },
|
|
3309
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'markedPositionCount' } },
|
|
3310
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'currentValueIsPartial' } },
|
|
3304
3311
|
{
|
|
3305
3312
|
kind: 'Field',
|
|
3306
3313
|
name: { kind: 'Name', value: 'securities' },
|
|
@@ -3428,6 +3435,8 @@ export const GetInvestorPortfolioBlockDocument = {
|
|
|
3428
3435
|
{ kind: 'Field', name: { kind: 'Name', value: 'totalCostBasisDollars' } },
|
|
3429
3436
|
{ kind: 'Field', name: { kind: 'Name', value: 'totalCurrentValueDollars' } },
|
|
3430
3437
|
{ kind: 'Field', name: { kind: 'Name', value: 'activePositionCount' } },
|
|
3438
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'markedPositionCount' } },
|
|
3439
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'currentValueIsPartial' } },
|
|
3431
3440
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
|
|
3432
3441
|
{ kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
|
|
3433
3442
|
],
|
|
@@ -6270,6 +6279,11 @@ export const ListLedgerEventBlocksDocument = {
|
|
|
6270
6279
|
variable: { kind: 'Variable', name: { kind: 'Name', value: 'source' } },
|
|
6271
6280
|
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
6272
6281
|
},
|
|
6282
|
+
{
|
|
6283
|
+
kind: 'VariableDefinition',
|
|
6284
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'externalId' } },
|
|
6285
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
6286
|
+
},
|
|
6273
6287
|
{
|
|
6274
6288
|
kind: 'VariableDefinition',
|
|
6275
6289
|
variable: { kind: 'Variable', name: { kind: 'Name', value: 'isReconcilingItem' } },
|
|
@@ -6331,6 +6345,11 @@ export const ListLedgerEventBlocksDocument = {
|
|
|
6331
6345
|
name: { kind: 'Name', value: 'source' },
|
|
6332
6346
|
value: { kind: 'Variable', name: { kind: 'Name', value: 'source' } },
|
|
6333
6347
|
},
|
|
6348
|
+
{
|
|
6349
|
+
kind: 'Argument',
|
|
6350
|
+
name: { kind: 'Name', value: 'externalId' },
|
|
6351
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'externalId' } },
|
|
6352
|
+
},
|
|
6334
6353
|
{
|
|
6335
6354
|
kind: 'Argument',
|
|
6336
6355
|
name: { kind: 'Name', value: 'isReconcilingItem' },
|
|
@@ -20,6 +20,7 @@ exports.LIST_EVENT_BLOCKS = (0, graphql_request_1.gql) `
|
|
|
20
20
|
$status: String
|
|
21
21
|
$agentId: String
|
|
22
22
|
$source: String
|
|
23
|
+
$externalId: String
|
|
23
24
|
$isReconcilingItem: Boolean
|
|
24
25
|
$limit: Int! = 50
|
|
25
26
|
$offset: Int! = 0
|
|
@@ -31,6 +32,7 @@ exports.LIST_EVENT_BLOCKS = (0, graphql_request_1.gql) `
|
|
|
31
32
|
status: $status
|
|
32
33
|
agentId: $agentId
|
|
33
34
|
source: $source
|
|
35
|
+
externalId: $externalId
|
|
34
36
|
isReconcilingItem: $isReconcilingItem
|
|
35
37
|
limit: $limit
|
|
36
38
|
offset: $offset
|
|
@@ -18,6 +18,7 @@ export const LIST_EVENT_BLOCKS = gql`
|
|
|
18
18
|
$status: String
|
|
19
19
|
$agentId: String
|
|
20
20
|
$source: String
|
|
21
|
+
$externalId: String
|
|
21
22
|
$isReconcilingItem: Boolean
|
|
22
23
|
$limit: Int! = 50
|
|
23
24
|
$offset: Int! = 0
|
|
@@ -29,6 +30,7 @@ export const LIST_EVENT_BLOCKS = gql`
|
|
|
29
30
|
status: $status
|
|
30
31
|
agentId: $agentId
|
|
31
32
|
source: $source
|
|
33
|
+
externalId: $externalId
|
|
32
34
|
isReconcilingItem: $isReconcilingItem
|
|
33
35
|
limit: $limit
|
|
34
36
|
offset: $offset
|
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
|
*
|