@fintekkers/ledger-models 1.1.21 → 1.1.23

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.
@@ -13,7 +13,8 @@ import { PriceProto } from '../../fintekkers/models/price/price_pb';
13
13
  import { TransactionProto } from '../../fintekkers/models/transaction/transaction_pb';
14
14
  import { PortfolioProto } from '../../fintekkers/models/portfolio/portfolio_pb';
15
15
  import { TransactionTypeProto } from '../../fintekkers/models/transaction/transaction_type_pb';
16
- import { PositionTypeProto, PositionViewProto } from '../../fintekkers/models/position/position_pb';
16
+ import { PositionProto, PositionTypeProto, PositionViewProto } from '../../fintekkers/models/position/position_pb';
17
+ import { MeasureProto } from '../../fintekkers/models/position/measure_pb';
17
18
  import { QuerySecurityResponseProto } from '../../fintekkers/requests/security/query_security_response_pb';
18
19
  import { QueryPortfolioResponseProto } from '../../fintekkers/requests/portfolio/query_portfolio_response_pb';
19
20
  import { QueryTransactionResponseProto } from '../../fintekkers/requests/transaction/query_transaction_response_pb';
@@ -45,6 +46,8 @@ import Transaction from '../models/transaction/transaction';
45
46
  import { TransactionType } from '../models/transaction/transaction_type';
46
47
  import { PositionFilter } from '../models/position/positionfilter';
47
48
  import { QueryPositionRequest } from '../requests/position/QueryPositionRequest';
49
+ import { ValuationRequests } from '../requests/valuation/ValuationRequests';
50
+ import { forSecurity } from '../models/security/product_inputs';
48
51
  import { UUID } from '../models/utils/uuid';
49
52
  import { ZonedDateTime } from '../models/utils/datetime';
50
53
  import { PriceService } from '../services/price-service/PriceService';
@@ -281,6 +284,9 @@ const BUILDERS: Builder[] = [
281
284
  (c) => resolverRequest((r) => r.resolveSecurities([linkedPrice(c)]))),
282
285
  B('LinkResolver.resolvePortfolios', T.OBJECT_TYPE_QUERY_PORTFOLIO_REQUEST,
283
286
  (c) => resolverRequest((r) => r.resolvePortfolios([linkedTransaction(c)]))),
287
+ // LM-410: the request is the builder's; the product input's security and the position are the caller's.
288
+ B('ValuationRequests.typed', T.OBJECT_TYPE_VALUATION_REQUEST, (c) => ValuationRequests.typed(
289
+ asOf, forSecurity(bond(c).proto, new PriceProto()), c(new PositionProto()), [MeasureProto.MARKET_VALUE])),
284
290
  ];
285
291
 
286
292
  /** The messages a builder returned: wrappers are read through `proto`, arrays item by item. */
@@ -577,6 +583,8 @@ const EXCLUSIONS: Record<string, string> = {
577
583
  'object-types.stampOwn': 'the stamping helper itself (tested above)',
578
584
  'price_rules.validate': 'local stand-in for null input; never returned or sent',
579
585
  'price_rules.requireValid': 'local stand-in for null input; never returned or sent',
586
+ 'product_inputs.checkProductInput': 'local stand-in SecurityProto for an arm with no security; never returned or sent',
587
+ 'product_inputs.forSecurity': "builds a ProductInput, which has no object_type, around the caller's security; flagged only for calling checkProductInput",
580
588
  'Security.create': "picks the wrapper class for the caller's proto (pass-through ruling)",
581
589
  'Position.fromJSON': DESERIALIZES,
582
590
  'ProtoSerializationUtil.deserialize': DESERIALIZES,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fintekkers/ledger-models",
3
3
  "todo": "Replace the version with build script version number",
4
- "version": "1.1.21",
4
+ "version": "1.1.23",
5
5
  "description": "ledger model protos ",
6
6
  "authors": [
7
7
  "David Doherty",