@fintekkers/ledger-models 1.1.47 → 1.1.49
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/node/wrappers/models/hydrate.test.ts +5 -5
- package/node/wrappers/models/portfolio/portfolio.d.ts +1 -1
- package/node/wrappers/models/portfolio/portfolio.ts +1 -1
- package/node/wrappers/models/position/position.d.ts +1 -1
- package/node/wrappers/models/position/position.test.ts +1 -1
- package/node/wrappers/models/position/position.ts +2 -2
- package/node/wrappers/models/position/positionfilter.d.ts +2 -2
- package/node/wrappers/models/position/positionfilter.test.ts +1 -1
- package/node/wrappers/models/position/positionfilter.ts +2 -2
- package/node/wrappers/models/price/Price.ts +1 -1
- package/node/wrappers/models/price/price_rules.d.ts +1 -1
- package/node/wrappers/models/price/price_rules.ts +1 -1
- package/node/wrappers/models/security/BondSecurity.d.ts +3 -3
- package/node/wrappers/models/security/BondSecurity.js.map +1 -1
- package/node/wrappers/models/security/BondSecurity.ts +5 -5
- package/node/wrappers/models/security/FloatingRateNote.d.ts +2 -2
- package/node/wrappers/models/security/FloatingRateNote.ts +2 -2
- package/node/wrappers/models/security/IndexSecurity.d.ts +1 -1
- package/node/wrappers/models/security/IndexSecurity.ts +1 -1
- package/node/wrappers/models/security/Issuance.d.ts +3 -3
- package/node/wrappers/models/security/Issuance.ts +4 -4
- package/node/wrappers/models/security/MortgageBackedSecurity.d.ts +2 -2
- package/node/wrappers/models/security/MortgageBackedSecurity.ts +2 -2
- package/node/wrappers/models/security/TIPSBond.d.ts +2 -2
- package/node/wrappers/models/security/TIPSBond.ts +2 -2
- package/node/wrappers/models/security/TreasuryFrnFixings.d.ts +2 -2
- package/node/wrappers/models/security/TreasuryFrnFixings.ts +3 -3
- package/node/wrappers/models/security/default_price_types.d.ts +1 -1
- package/node/wrappers/models/security/default_price_types.ts +1 -1
- package/node/wrappers/models/security/identifier.d.ts +1 -1
- package/node/wrappers/models/security/identifier.ts +1 -1
- package/node/wrappers/models/security/product_input_builders.test.ts +1 -1
- package/node/wrappers/models/security/product_inputs.d.ts +1 -1
- package/node/wrappers/models/security/product_inputs.ts +1 -1
- package/node/wrappers/models/security/security-roundtrip.test.ts +1 -1
- package/node/wrappers/models/security/security.d.ts +1 -1
- package/node/wrappers/models/security/security.ts +3 -3
- package/node/wrappers/models/security/security_rules.d.ts +2 -2
- package/node/wrappers/models/security/security_rules.js.map +1 -1
- package/node/wrappers/models/security/security_rules.ts +3 -3
- package/node/wrappers/models/transaction/transaction.d.ts +1 -1
- package/node/wrappers/models/transaction/transaction.ts +3 -3
- package/node/wrappers/models/transaction/transaction_price_rules.test.ts +1 -1
- package/node/wrappers/models/transaction/transaction_rules.d.ts +2 -2
- package/node/wrappers/models/transaction/transaction_rules.ts +3 -3
- package/node/wrappers/models/utils/serialization.test.ts +1 -1
- package/node/wrappers/models/utils/serialization.util.test.ts +1 -1
- package/node/wrappers/models/utils/uuid.test.ts +1 -1
- package/node/wrappers/requests/position/QueryPositionRequest.d.ts +2 -2
- package/node/wrappers/requests/position/QueryPositionRequest.ts +2 -2
- package/node/wrappers/requests/valuation/ValuationRequests.d.ts +4 -4
- package/node/wrappers/requests/valuation/ValuationRequests.ts +4 -4
- package/node/wrappers/services/portfolio-service/PortfolioService.d.ts +5 -5
- package/node/wrappers/services/portfolio-service/PortfolioService.ts +6 -6
- package/node/wrappers/services/portfolio-service/portfolioService.test.ts +1 -1
- package/node/wrappers/services/position-service/PositionService.d.ts +2 -2
- package/node/wrappers/services/position-service/PositionService.ts +4 -4
- package/node/wrappers/services/price-service/PriceService.d.ts +4 -4
- package/node/wrappers/services/price-service/PriceService.ts +5 -5
- package/node/wrappers/services/price-service/price-wrapper.test.ts +1 -1
- package/node/wrappers/services/price-service/price.test.ts +1 -1
- package/node/wrappers/services/price.search-by-security.test.ts +1 -1
- package/node/wrappers/services/searchWithSecurities.test.ts +1 -1
- package/node/wrappers/services/security-service/SecurityService.d.ts +5 -5
- package/node/wrappers/services/security-service/SecurityService.ts +6 -6
- package/node/wrappers/services/security-service/security.maturityLadder.test.ts +2 -2
- package/node/wrappers/services/security-service/security.test.ts +2 -2
- package/node/wrappers/services/transaction-service/TransactionService.d.ts +4 -4
- package/node/wrappers/services/transaction-service/TransactionService.ts +5 -5
- package/node/wrappers/services/transaction-service/transaction.search.test.ts +1 -1
- package/node/wrappers/services/transaction-service/transaction.test.ts +1 -1
- package/node/wrappers/util/link-cache.d.ts +5 -5
- package/node/wrappers/util/link-cache.ts +5 -5
- package/node/wrappers/util/link-resolver.d.ts +3 -3
- package/node/wrappers/util/link-resolver.test.ts +3 -3
- package/node/wrappers/util/link-resolver.ts +8 -8
- package/node/wrappers/util/object-type-coverage.test.ts +1 -1
- package/node/wrappers/util/object-types.test.ts +3 -3
- package/package.json +4 -4
- package/tsconfig.check.json +22 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Tests for the W1 async `hydrate()` method on Security/Portfolio wrappers
|
|
2
2
|
// and the LinkResolver default singleton.
|
|
3
3
|
|
|
4
|
-
import * as grpc from '@grpc/grpc-js';
|
|
4
|
+
import type * as grpc from '@grpc/grpc-js';
|
|
5
5
|
|
|
6
6
|
import { UUID } from './utils/uuid';
|
|
7
7
|
import { ZonedDateTime } from './utils/datetime';
|
|
@@ -9,12 +9,12 @@ import { LocalTimestampProto } from '../../fintekkers/models/util/local_timestam
|
|
|
9
9
|
import { Timestamp } from 'google-protobuf/google/protobuf/timestamp_pb';
|
|
10
10
|
import { SecurityProto } from '../../fintekkers/models/security/security_pb';
|
|
11
11
|
import { PortfolioProto } from '../../fintekkers/models/portfolio/portfolio_pb';
|
|
12
|
-
import { QuerySecurityRequestProto } from '../../fintekkers/requests/security/query_security_request_pb';
|
|
12
|
+
import type { QuerySecurityRequestProto } from '../../fintekkers/requests/security/query_security_request_pb';
|
|
13
13
|
import { QuerySecurityResponseProto } from '../../fintekkers/requests/security/query_security_response_pb';
|
|
14
|
-
import { QueryPortfolioRequestProto } from '../../fintekkers/requests/portfolio/query_portfolio_request_pb';
|
|
14
|
+
import type { QueryPortfolioRequestProto } from '../../fintekkers/requests/portfolio/query_portfolio_request_pb';
|
|
15
15
|
import { QueryPortfolioResponseProto } from '../../fintekkers/requests/portfolio/query_portfolio_response_pb';
|
|
16
|
-
import { SecurityClient } from '../../fintekkers/services/security-service/security_service_grpc_pb';
|
|
17
|
-
import { PortfolioClient } from '../../fintekkers/services/portfolio-service/portfolio_service_grpc_pb';
|
|
16
|
+
import type { SecurityClient } from '../../fintekkers/services/security-service/security_service_grpc_pb';
|
|
17
|
+
import type { PortfolioClient } from '../../fintekkers/services/portfolio-service/portfolio_service_grpc_pb';
|
|
18
18
|
|
|
19
19
|
import Security from './security/security';
|
|
20
20
|
import Portfolio from './portfolio/portfolio';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PortfolioProto } from "../../../fintekkers/models/portfolio/portfolio_pb";
|
|
1
|
+
import type { PortfolioProto } from "../../../fintekkers/models/portfolio/portfolio_pb";
|
|
2
2
|
import { FieldProto } from "../../../fintekkers/models/position/field_pb";
|
|
3
3
|
import { ZonedDateTime } from "../utils/datetime";
|
|
4
4
|
import { UUID } from "../utils/uuid";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PortfolioProto } from "../../../fintekkers/models/portfolio/portfolio_pb";
|
|
1
|
+
import type { PortfolioProto } from "../../../fintekkers/models/portfolio/portfolio_pb";
|
|
2
2
|
import { FieldProto } from "../../../fintekkers/models/position/field_pb";
|
|
3
3
|
import { ZonedDateTime } from "../utils/datetime";
|
|
4
4
|
import { UUID } from "../utils/uuid";
|
|
@@ -4,7 +4,7 @@ import { FieldMapEntry, MeasureMapEntry } from "../../../fintekkers/models/posit
|
|
|
4
4
|
import Portfolio from "../portfolio/portfolio";
|
|
5
5
|
import Security from "../security/security";
|
|
6
6
|
import { MeasureProto } from "../../../fintekkers/models/position/measure_pb";
|
|
7
|
-
import Decimal from "decimal.js";
|
|
7
|
+
import type Decimal from "decimal.js";
|
|
8
8
|
import { ProtoEnum } from "../utils/protoEnum";
|
|
9
9
|
import { UUID } from "../utils/uuid";
|
|
10
10
|
import { ZonedDateTime } from "../utils/datetime";
|
|
@@ -11,7 +11,7 @@ import { PortfolioProto } from '../../../fintekkers/models/portfolio/portfolio_p
|
|
|
11
11
|
import { Position } from "./position";
|
|
12
12
|
import { LocalDate } from '../utils/date';
|
|
13
13
|
import { PositionStatusProto } from '../../../fintekkers/models/position/position_status_pb';
|
|
14
|
-
import { ProtoEnum } from '../utils/protoEnum';
|
|
14
|
+
import type { ProtoEnum } from '../utils/protoEnum';
|
|
15
15
|
import { TransactionTypeProto } from '../../../fintekkers/models/transaction/transaction_type_pb';
|
|
16
16
|
import { PriceProto } from '../../../fintekkers/models/price/price_pb';
|
|
17
17
|
import { TenorProto } from '../../../fintekkers/models/security/tenor_pb';
|
|
@@ -5,7 +5,7 @@ import { FieldMapEntry, MeasureMapEntry } from "../../../fintekkers/models/posit
|
|
|
5
5
|
import Portfolio from "../portfolio/portfolio";
|
|
6
6
|
import Security from "../security/security";
|
|
7
7
|
import { MeasureProto } from "../../../fintekkers/models/position/measure_pb";
|
|
8
|
-
import Decimal from "decimal.js";
|
|
8
|
+
import type Decimal from "decimal.js";
|
|
9
9
|
import { ProtoSerializationUtil } from "../utils/serialization";
|
|
10
10
|
import { ProtoEnum } from "../utils/protoEnum";
|
|
11
11
|
import { Field } from "./field";
|
|
@@ -13,7 +13,7 @@ import { UUID } from "../utils/uuid";
|
|
|
13
13
|
import { ZonedDateTime } from "../utils/datetime";
|
|
14
14
|
import { PriceProto } from "../../../fintekkers/models/price/price_pb";
|
|
15
15
|
import Transaction from "../transaction/transaction";
|
|
16
|
-
import { DateTime } from 'luxon';
|
|
16
|
+
import type { DateTime } from 'luxon';
|
|
17
17
|
import { UUIDProto } from "../../../fintekkers/models/util/uuid_pb";
|
|
18
18
|
import { LocalTimestampProto } from "../../../fintekkers/models/util/local_timestamp_pb";
|
|
19
19
|
import { LocalDateProto } from "../../../fintekkers/models/util/local_date_pb";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FieldMapEntry, PositionFilterOperator } from '../../../fintekkers/models/position/position_util_pb';
|
|
2
|
-
import { FieldProto } from '../../../fintekkers/models/position/field_pb';
|
|
2
|
+
import type { FieldProto } from '../../../fintekkers/models/position/field_pb';
|
|
3
3
|
import { PositionFilterProto } from '../../../fintekkers/models/position/position_filter_pb';
|
|
4
|
-
import { Identifier } from '../security/identifier';
|
|
4
|
+
import type { Identifier } from '../security/identifier';
|
|
5
5
|
export declare class PositionFilter {
|
|
6
6
|
filters: FieldMapEntry[];
|
|
7
7
|
constructor();
|
|
@@ -6,7 +6,7 @@ import { Identifier } from '../security/identifier';
|
|
|
6
6
|
import { IdentifierProto } from '../../../fintekkers/models/security/identifier/identifier_pb';
|
|
7
7
|
import { IdentifierTypeProto } from '../../../fintekkers/models/security/identifier/identifier_type_pb';
|
|
8
8
|
import { unpack } from '../utils/serialization.util';
|
|
9
|
-
import { Any } from 'google-protobuf/google/protobuf/any_pb';
|
|
9
|
+
import type { Any } from 'google-protobuf/google/protobuf/any_pb';
|
|
10
10
|
import { TransactionTypeProto } from '../../../fintekkers/models/transaction/transaction_type_pb';
|
|
11
11
|
import { ObjectTypeProto } from '../../../fintekkers/models/util/object_type_pb';
|
|
12
12
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FieldMapEntry, PositionFilterOperator } from '../../../fintekkers/models/position/position_util_pb';
|
|
2
|
-
import { FieldProto } from '../../../fintekkers/models/position/field_pb';
|
|
2
|
+
import type { FieldProto } from '../../../fintekkers/models/position/field_pb';
|
|
3
3
|
import { pack } from '../utils/serialization.util';
|
|
4
4
|
import { PositionFilterProto } from '../../../fintekkers/models/position/position_filter_pb';
|
|
5
|
-
import { Identifier } from '../security/identifier';
|
|
5
|
+
import type { Identifier } from '../security/identifier';
|
|
6
6
|
import { ObjectTypeProto } from '../../../fintekkers/models/util/object_type_pb';
|
|
7
7
|
import { stamp } from '../../util/object-types';
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PriceProto } from "../../../fintekkers/models/price/price_pb";
|
|
2
2
|
import { PriceTypeProto } from "../../../fintekkers/models/price/price_type_pb";
|
|
3
|
-
import { DecimalValueProto } from "../../../fintekkers/models/util/decimal_value_pb";
|
|
3
|
+
import type { DecimalValueProto } from "../../../fintekkers/models/util/decimal_value_pb";
|
|
4
4
|
import { SecurityProto } from "../../../fintekkers/models/security/security_pb";
|
|
5
5
|
import Security from "../security/security";
|
|
6
6
|
import { ZonedDateTime } from "../utils/datetime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PriceProto } from '../../../fintekkers/models/price/price_pb';
|
|
2
|
-
import { FieldViolationProto } from '../../../fintekkers/requests/util/errors/field_violation_pb';
|
|
2
|
+
import type { FieldViolationProto } from '../../../fintekkers/requests/util/errors/field_violation_pb';
|
|
3
3
|
/**
|
|
4
4
|
* Price input rules (LM-289): JS counterpart of Java's PriceRules
|
|
5
5
|
* (docs/adr/typed-input-errors.md). Pure: proto in, violations out.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PriceProto } from '../../../fintekkers/models/price/price_pb';
|
|
2
2
|
import { PriceTypeProto } from '../../../fintekkers/models/price/price_type_pb';
|
|
3
|
-
import { FieldViolationProto } from '../../../fintekkers/requests/util/errors/field_violation_pb';
|
|
3
|
+
import type { FieldViolationProto } from '../../../fintekkers/requests/util/errors/field_violation_pb';
|
|
4
4
|
import { ModelValidationError, violation } from '../errors';
|
|
5
5
|
import { UUID } from '../utils/uuid';
|
|
6
6
|
import { isUnsetDecimal } from '../utils/decimal';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import Security from './security';
|
|
2
2
|
import { SecurityProto, BondDetailsProto } from '../../../fintekkers/models/security/security_pb';
|
|
3
|
-
import { DecimalValueProto } from '../../../fintekkers/models/util/decimal_value_pb';
|
|
3
|
+
import type { DecimalValueProto } from '../../../fintekkers/models/util/decimal_value_pb';
|
|
4
4
|
import { CouponFrequency } from './coupon_frequency';
|
|
5
5
|
import { CouponType } from './coupon_type';
|
|
6
6
|
import { Tenor } from './term';
|
|
7
|
-
import { CouponTypeProto } from '../../../fintekkers/models/security/coupon_type_pb';
|
|
8
|
-
import { CouponFrequencyProto } from '../../../fintekkers/models/security/coupon_frequency_pb';
|
|
7
|
+
import type { CouponTypeProto } from '../../../fintekkers/models/security/coupon_type_pb';
|
|
8
|
+
import type { CouponFrequencyProto } from '../../../fintekkers/models/security/coupon_frequency_pb';
|
|
9
9
|
import { Decimal } from 'decimal.js';
|
|
10
10
|
import Issuance from './Issuance';
|
|
11
11
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BondSecurity.js","sourceRoot":"","sources":["BondSecurity.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAkC;AAClC,iFAAkG;AAClG,yFAAuF;AAGvF,wCAA2G;AAE3G,yDAAqD;AACrD,+CAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"BondSecurity.js","sourceRoot":"","sources":["BondSecurity.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAkC;AAClC,iFAAkG;AAClG,yFAAuF;AAGvF,wCAA2G;AAE3G,yDAAqD;AACrD,+CAA2C;AAC3C,iCAA4C;AAC5C,qFAAmF;AAGnF,2CAAqC;AACrC,2DAAqD;AACrD,0DAAkC;AAClC,8CAAuG;AACvG,0DAAmD;AAenD,wEAAwE;AACxE,SAAgB,cAAc,CAAC,CAAU;IACvC,OAAO,IAAA,uBAAa,EAAC,IAAA,uBAAa,EAAC,CAAC,CAAC,CAAC,CAAC;AACzC,CAAC;AAFD,wCAEC;AAED;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,IAAsB;IACrD,OAAO,IAAI,8BAAgB,EAAE;SAC1B,YAAY,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAC5C,aAAa,CAAC,cAAc,CAAC,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AAM,IAAI,KAAK,GAAG,EAAE,EAAE;YACrB,OAAO,MAAM,CAAC;SACf;aAAM;YACL,OAAO,MAAM,CAAC;SACf;IACH,CAAC;CACF;AAED,kBAAe,YAAY,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import Security from './security';
|
|
2
2
|
import { SecurityProto, BondDetailsProto } from '../../../fintekkers/models/security/security_pb';
|
|
3
3
|
import { ProductTypeProto } from "../../../fintekkers/models/security/product_type_pb";
|
|
4
|
-
import { DecimalValueProto } from '../../../fintekkers/models/util/decimal_value_pb';
|
|
4
|
+
import type { DecimalValueProto } from '../../../fintekkers/models/util/decimal_value_pb';
|
|
5
5
|
import { LocalDateProto } from '../../../fintekkers/models/util/local_date_pb';
|
|
6
6
|
import { dateToLocalDateProto, localDateProtoToDate, daysBetween, plusMonthsClamped } from '../utils/date';
|
|
7
|
-
import { IssuanceProto } from '../../../fintekkers/models/security/bond/issuance_pb';
|
|
7
|
+
import type { IssuanceProto } from '../../../fintekkers/models/security/bond/issuance_pb';
|
|
8
8
|
import { CouponFrequency } from './coupon_frequency';
|
|
9
9
|
import { CouponType } from './coupon_type';
|
|
10
|
-
import { Tenor, Period } from './term';
|
|
10
|
+
import { Tenor, type Period } from './term';
|
|
11
11
|
import { TenorTypeProto } from '../../../fintekkers/models/security/tenor_type_pb';
|
|
12
|
-
import { CouponTypeProto } from '../../../fintekkers/models/security/coupon_type_pb';
|
|
13
|
-
import { CouponFrequencyProto } from '../../../fintekkers/models/security/coupon_frequency_pb';
|
|
12
|
+
import type { CouponTypeProto } from '../../../fintekkers/models/security/coupon_type_pb';
|
|
13
|
+
import type { CouponFrequencyProto } from '../../../fintekkers/models/security/coupon_frequency_pb';
|
|
14
14
|
import { Decimal } from 'decimal.js';
|
|
15
15
|
import { isDescendantOf } from './product_hierarchy';
|
|
16
16
|
import Issuance from './Issuance';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import BondSecurity, { BondPricerInputs } from './BondSecurity';
|
|
1
|
+
import BondSecurity, { type BondPricerInputs } from './BondSecurity';
|
|
2
2
|
import { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
3
3
|
import { IndexTypeProto } from '../../../fintekkers/models/security/index/index_type_pb';
|
|
4
4
|
import { CouponFrequencyProto } from '../../../fintekkers/models/security/coupon_frequency_pb';
|
|
5
|
-
import { Decimal } from 'decimal.js';
|
|
5
|
+
import type { Decimal } from 'decimal.js';
|
|
6
6
|
/**
|
|
7
7
|
* FRN-specific accessors layered on top of BondSecurity. The floating-rate
|
|
8
8
|
* fields live in the parallel frn_extension sub-message; bond_details
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BondSecurity, {
|
|
2
|
-
BondPricerInputs,
|
|
2
|
+
type BondPricerInputs,
|
|
3
3
|
buildBondDetails,
|
|
4
4
|
decimalToProto,
|
|
5
5
|
} from './BondSecurity';
|
|
@@ -7,7 +7,7 @@ import { SecurityProto, FrnExtensionProto } from '../../../fintekkers/models/sec
|
|
|
7
7
|
import { ProductTypeProto } from '../../../fintekkers/models/security/product_type_pb';
|
|
8
8
|
import { IndexTypeProto } from '../../../fintekkers/models/security/index/index_type_pb';
|
|
9
9
|
import { CouponFrequencyProto } from '../../../fintekkers/models/security/coupon_frequency_pb';
|
|
10
|
-
import { Decimal } from 'decimal.js';
|
|
10
|
+
import type { Decimal } from 'decimal.js';
|
|
11
11
|
import { decodeDecimal, toDecimalJs, withField } from '../utils/decimal';
|
|
12
12
|
import { stampOwn } from '../../util/object-types';
|
|
13
13
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Security from './security';
|
|
2
|
-
import { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
2
|
+
import type { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
3
3
|
import { IndexTypeProto } from '../../../fintekkers/models/security/index/index_type_pb';
|
|
4
4
|
/**
|
|
5
5
|
* Wrapper for Security messages whose product_type is a descendant of
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Security from './security';
|
|
2
|
-
import { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
2
|
+
import type { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
3
3
|
import { IndexTypeProto } from '../../../fintekkers/models/security/index/index_type_pb';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IssuanceProto } from "../../../fintekkers/models/security/bond/issuance_pb";
|
|
2
|
-
import { AuctionTypeProto } from "../../../fintekkers/models/security/bond/auction_type_pb";
|
|
3
|
-
import Decimal from "decimal.js";
|
|
1
|
+
import type { IssuanceProto } from "../../../fintekkers/models/security/bond/issuance_pb";
|
|
2
|
+
import type { AuctionTypeProto } from "../../../fintekkers/models/security/bond/auction_type_pb";
|
|
3
|
+
import type Decimal from "decimal.js";
|
|
4
4
|
/**
|
|
5
5
|
* Typed wrapper around a single IssuanceProto. Returns null for unset
|
|
6
6
|
* sub-messages and Decimal/Date for populated ones — callers no longer
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IssuanceProto } from "../../../fintekkers/models/security/bond/issuance_pb";
|
|
2
|
-
import { AuctionTypeProto } from "../../../fintekkers/models/security/bond/auction_type_pb";
|
|
3
|
-
import { DecimalValueProto } from "../../../fintekkers/models/util/decimal_value_pb";
|
|
1
|
+
import type { IssuanceProto } from "../../../fintekkers/models/security/bond/issuance_pb";
|
|
2
|
+
import type { AuctionTypeProto } from "../../../fintekkers/models/security/bond/auction_type_pb";
|
|
3
|
+
import type { DecimalValueProto } from "../../../fintekkers/models/util/decimal_value_pb";
|
|
4
4
|
import { localDateProtoToDate } from "../utils/date";
|
|
5
|
-
import Decimal from "decimal.js";
|
|
5
|
+
import type Decimal from "decimal.js";
|
|
6
6
|
import { decodeDecimal, isUnsetDecimal, toDecimalJs } from "../utils/decimal";
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import BondSecurity, { BondPricerInputs } from './BondSecurity';
|
|
1
|
+
import BondSecurity, { type BondPricerInputs } from './BondSecurity';
|
|
2
2
|
import { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
3
3
|
import { AgencyProto } from '../../../fintekkers/models/security/bond/agency_pb';
|
|
4
|
-
import { Decimal } from 'decimal.js';
|
|
4
|
+
import type { Decimal } from 'decimal.js';
|
|
5
5
|
/**
|
|
6
6
|
* MBS-specific accessors layered on top of BondSecurity. Pool-level fields
|
|
7
7
|
* (agency, WAC, WAM, pass-through rate, factors, balances, PSA) live in
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import BondSecurity, {
|
|
2
|
-
BondPricerInputs,
|
|
2
|
+
type BondPricerInputs,
|
|
3
3
|
buildBondDetails,
|
|
4
4
|
decimalToProto,
|
|
5
5
|
} from './BondSecurity';
|
|
6
6
|
import { SecurityProto, MbsExtensionProto } from '../../../fintekkers/models/security/security_pb';
|
|
7
7
|
import { AgencyProto } from '../../../fintekkers/models/security/bond/agency_pb';
|
|
8
8
|
import { ProductTypeProto } from '../../../fintekkers/models/security/product_type_pb';
|
|
9
|
-
import { Decimal } from 'decimal.js';
|
|
9
|
+
import type { Decimal } from 'decimal.js';
|
|
10
10
|
import { decodeDecimal, toDecimalJs, withField } from '../utils/decimal';
|
|
11
11
|
import { stampOwn } from '../../util/object-types';
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import BondSecurity, { BondPricerInputs } from './BondSecurity';
|
|
1
|
+
import BondSecurity, { type BondPricerInputs } from './BondSecurity';
|
|
2
2
|
import { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
3
3
|
import { IndexTypeProto } from '../../../fintekkers/models/security/index/index_type_pb';
|
|
4
|
-
import { Decimal } from 'decimal.js';
|
|
4
|
+
import type { Decimal } from 'decimal.js';
|
|
5
5
|
/**
|
|
6
6
|
* TIPS-specific accessors layered on top of BondSecurity. The inflation
|
|
7
7
|
* fields live in the parallel tips_extension sub-message; bond_details
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BondSecurity, {
|
|
2
|
-
BondPricerInputs,
|
|
2
|
+
type BondPricerInputs,
|
|
3
3
|
buildBondDetails,
|
|
4
4
|
decimalToProto,
|
|
5
5
|
} from './BondSecurity';
|
|
@@ -7,7 +7,7 @@ import { SecurityProto, TipsExtensionProto } from '../../../fintekkers/models/se
|
|
|
7
7
|
import { ProductTypeProto } from '../../../fintekkers/models/security/product_type_pb';
|
|
8
8
|
import { IndexTypeProto } from '../../../fintekkers/models/security/index/index_type_pb';
|
|
9
9
|
import { dateToLocalDateProto, localDateProtoToDate } from '../utils/date';
|
|
10
|
-
import { Decimal } from 'decimal.js';
|
|
10
|
+
import type { Decimal } from 'decimal.js';
|
|
11
11
|
import { decodeDecimal, toDecimalJs, withField } from '../utils/decimal';
|
|
12
12
|
import { stampOwn } from '../../util/object-types';
|
|
13
13
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import BondSecurity from './BondSecurity';
|
|
2
|
-
import { Tenor } from './term';
|
|
1
|
+
import type BondSecurity from './BondSecurity';
|
|
2
|
+
import type { Tenor } from './term';
|
|
3
3
|
import { ReferenceRateFixingProto } from '../../../fintekkers/requests/valuation/product_inputs_pb';
|
|
4
4
|
/**
|
|
5
5
|
* The standard bill term, in weeks, that `tenor` is within 3 days of: 4, 6,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import BondSecurity from './BondSecurity';
|
|
2
|
-
import Issuance from './Issuance';
|
|
3
|
-
import { Tenor } from './term';
|
|
1
|
+
import type BondSecurity from './BondSecurity';
|
|
2
|
+
import type Issuance from './Issuance';
|
|
3
|
+
import type { Tenor } from './term';
|
|
4
4
|
import { TenorTypeProto } from '../../../fintekkers/models/security/tenor_type_pb';
|
|
5
5
|
import { IndexTypeProto } from '../../../fintekkers/models/security/index/index_type_pb';
|
|
6
6
|
import { ReferenceRateFixingProto } from '../../../fintekkers/requests/valuation/product_inputs_pb';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PriceTypeProto } from '../../../fintekkers/models/price/price_type_pb';
|
|
2
|
-
import { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
2
|
+
import type { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
3
3
|
/** A parsed, checked default_price_types section: node -> PriceTypeProto value. */
|
|
4
4
|
export declare class DefaultPriceTypes {
|
|
5
5
|
/** node -> type, as written in the section. Read-only. */
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import hierarchy from '../../../../hierarchy.json';
|
|
18
18
|
import { PriceTypeProto } from '../../../fintekkers/models/price/price_type_pb';
|
|
19
19
|
import { ProductTypeProto } from '../../../fintekkers/models/security/product_type_pb';
|
|
20
|
-
import { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
20
|
+
import type { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
21
21
|
import { NoDefaultPriceTypeError } from '../errors';
|
|
22
22
|
import { UUID } from '../utils/uuid';
|
|
23
23
|
import { allProductTypes, parentOf } from './product_hierarchy';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IdentifierProto } from '../../../fintekkers/models/security/identifier/identifier_pb';
|
|
2
2
|
import { IdentifierTypeProto } from '../../../fintekkers/models/security/identifier/identifier_type_pb';
|
|
3
|
-
import { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
3
|
+
import type { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
4
4
|
/**
|
|
5
5
|
* Raised when an IdentifierProto is rejected by the client-side guard
|
|
6
6
|
* before being sent to SecurityService. See FinTekkers/second-brain#347.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IdentifierProto } from '../../../fintekkers/models/security/identifier/identifier_pb';
|
|
2
2
|
import { IdentifierTypeProto } from '../../../fintekkers/models/security/identifier/identifier_type_pb';
|
|
3
|
-
import { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
3
|
+
import type { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
4
4
|
import { stampOwn } from '../../util/object-types';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import * as fs from 'fs';
|
|
10
10
|
import * as path from 'path';
|
|
11
|
-
import * as jspb from 'google-protobuf';
|
|
11
|
+
import type * as jspb from 'google-protobuf';
|
|
12
12
|
|
|
13
13
|
import hierarchy from '../../../../hierarchy.json';
|
|
14
14
|
import { inputTypeFor, checkProductInput, forSecurity, MarketData } from './product_inputs';
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* valuation_arms / arm keys.
|
|
25
25
|
*/
|
|
26
26
|
import { MeasureProto } from '../../../fintekkers/models/position/measure_pb';
|
|
27
|
-
import { PriceProto } from '../../../fintekkers/models/price/price_pb';
|
|
27
|
+
import type { PriceProto } from '../../../fintekkers/models/price/price_pb';
|
|
28
28
|
import { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
29
29
|
import { InflationIndexInput, ProductInput, ReferenceRateFixingProto, YieldCurveInput } from '../../../fintekkers/requests/valuation/product_inputs_pb';
|
|
30
30
|
/** The closed requires vocabulary: market data an input type needs beyond the price. */
|
|
@@ -29,7 +29,7 @@ import catalog from '../../../../catalog/measures.json';
|
|
|
29
29
|
import { MeasureProto } from '../../../fintekkers/models/position/measure_pb';
|
|
30
30
|
import { CouponTypeProto } from '../../../fintekkers/models/security/coupon_type_pb';
|
|
31
31
|
import { ProductTypeProto } from '../../../fintekkers/models/security/product_type_pb';
|
|
32
|
-
import { PriceProto } from '../../../fintekkers/models/price/price_pb';
|
|
32
|
+
import type { PriceProto } from '../../../fintekkers/models/price/price_pb';
|
|
33
33
|
import { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
34
34
|
import {
|
|
35
35
|
BondInput, CashInput, EquityInput, FrnInput, InflationIndexInput, MbsInput, ProductInput,
|
|
@@ -15,7 +15,7 @@ import { SecurityQuantityTypeProto } from '../../../fintekkers/models/security/s
|
|
|
15
15
|
import { IdentifierProto } from '../../../fintekkers/models/security/identifier/identifier_pb';
|
|
16
16
|
import { IdentifierTypeProto } from '../../../fintekkers/models/security/identifier/identifier_type_pb';
|
|
17
17
|
import { IndexTypeProto } from '../../../fintekkers/models/security/index/index_type_pb';
|
|
18
|
-
import { DecimalValueProto } from '../../../fintekkers/models/util/decimal_value_pb';
|
|
18
|
+
import type { DecimalValueProto } from '../../../fintekkers/models/util/decimal_value_pb';
|
|
19
19
|
import { LocalDateProto } from '../../../fintekkers/models/util/local_date_pb';
|
|
20
20
|
import { decodeDecimal, encodeDecimal, parseDecimalString, toCanonicalString } from '../utils/decimal';
|
|
21
21
|
|
|
@@ -2,7 +2,7 @@ import { FieldProto } from "../../../fintekkers/models/position/field_pb";
|
|
|
2
2
|
import { SecurityProto } from "../../../fintekkers/models/security/security_pb";
|
|
3
3
|
import { ZonedDateTime } from "../utils/datetime";
|
|
4
4
|
import { UUID } from "../utils/uuid";
|
|
5
|
-
import { IdentifierTypeProto } from "../../../fintekkers/models/security/identifier/identifier_type_pb";
|
|
5
|
+
import type { IdentifierTypeProto } from "../../../fintekkers/models/security/identifier/identifier_type_pb";
|
|
6
6
|
import { Identifier } from "./identifier";
|
|
7
7
|
import LinkResolver from "../../util/link-resolver";
|
|
8
8
|
declare class Security {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FieldProto } from "../../../fintekkers/models/position/field_pb";
|
|
2
2
|
import { SecurityProto } from "../../../fintekkers/models/security/security_pb";
|
|
3
|
-
import { UUIDProto } from "../../../fintekkers/models/util/uuid_pb";
|
|
4
|
-
import { LocalTimestampProto } from "../../../fintekkers/models/util/local_timestamp_pb";
|
|
3
|
+
import type { UUIDProto } from "../../../fintekkers/models/util/uuid_pb";
|
|
4
|
+
import type { LocalTimestampProto } from "../../../fintekkers/models/util/local_timestamp_pb";
|
|
5
5
|
import { ZonedDateTime } from "../utils/datetime";
|
|
6
6
|
import { UUID } from "../utils/uuid";
|
|
7
7
|
import { localDateProtoToDate } from "../utils/date";
|
|
8
8
|
import { ProductTypeProto } from "../../../fintekkers/models/security/product_type_pb";
|
|
9
|
-
import { IdentifierTypeProto } from "../../../fintekkers/models/security/identifier/identifier_type_pb";
|
|
9
|
+
import type { IdentifierTypeProto } from "../../../fintekkers/models/security/identifier/identifier_type_pb";
|
|
10
10
|
import { Identifier } from "./identifier";
|
|
11
11
|
import { isDescendantOf } from "./product_hierarchy";
|
|
12
12
|
import * as LinkCacheModule from "../../util/link-cache";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
2
|
-
import { FieldViolationProto } from '../../../fintekkers/requests/util/errors/field_violation_pb';
|
|
1
|
+
import type { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
2
|
+
import type { FieldViolationProto } from '../../../fintekkers/requests/util/errors/field_violation_pb';
|
|
3
3
|
/**
|
|
4
4
|
* Security input rules: JS counterpart of Java's SecurityRules
|
|
5
5
|
* (docs/adr/typed-input-errors.md). Pure: proto in, violations out.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security_rules.js","sourceRoot":"","sources":["security_rules.ts"],"names":[],"mappings":";;;AAAA,yFAAuF;AAGvF,sCAA4D;AAC5D,wCAAqC;AACrC,
|
|
1
|
+
{"version":3,"file":"security_rules.js","sourceRoot":"","sources":["security_rules.ts"],"names":[],"mappings":";;;AAAA,yFAAuF;AAGvF,sCAA4D;AAC5D,wCAAqC;AACrC,8CAAyG;AAEzG;;;;;;;;GAQG;AAEU,QAAA,WAAW,GAAG,0BAA0B,CAAC;AAEtD;;;GAGG;AACH,SAAgB,QAAQ,CAAC,KAAoB;IACzC,IAAI,KAAK,CAAC,SAAS,EAAE;QAAE,OAAO,EAAE,CAAC;IACjC,MAAM,GAAG,GAA0B,EAAE,CAAC;IACtC,MAAM,MAAM,GAAG,oBAAoB,CAAC,KAAK,EAAE,UAAU,CAAC,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,GAAG,IAAI,GAAG,CAAC,MAAM,KAAK,EAAE,CAAC,CAAC,CAAC,WAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACxE,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ProductTypeProto } from '../../../fintekkers/models/security/product_type_pb';
|
|
2
|
-
import { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
3
|
-
import { FieldViolationProto } from '../../../fintekkers/requests/util/errors/field_violation_pb';
|
|
2
|
+
import type { SecurityProto } from '../../../fintekkers/models/security/security_pb';
|
|
3
|
+
import type { FieldViolationProto } from '../../../fintekkers/requests/util/errors/field_violation_pb';
|
|
4
4
|
import { ModelValidationError, violation } from '../errors';
|
|
5
5
|
import { UUID } from '../utils/uuid';
|
|
6
|
-
import { decodeDecimal, isUnsetDecimal, toCanonicalString, CompactDecimal } from '../utils/decimal';
|
|
6
|
+
import { decodeDecimal, isUnsetDecimal, toCanonicalString, type CompactDecimal } from '../utils/decimal';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Security input rules: JS counterpart of Java's SecurityRules
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PriceProto } from "../../../fintekkers/models/price/price_pb";
|
|
1
|
+
import type { PriceProto } from "../../../fintekkers/models/price/price_pb";
|
|
2
2
|
import { PriceTypeProto } from "../../../fintekkers/models/price/price_type_pb";
|
|
3
3
|
import { TransactionType } from "./transaction_type";
|
|
4
4
|
import { StrategyAllocationProto } from "../../../fintekkers/models/strategy/strategy_allocation_pb";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
//Models
|
|
2
|
-
import { PriceProto } from "../../../fintekkers/models/price/price_pb";
|
|
2
|
+
import type { PriceProto } from "../../../fintekkers/models/price/price_pb";
|
|
3
3
|
import { PriceTypeProto } from "../../../fintekkers/models/price/price_type_pb";
|
|
4
|
-
import { SecurityProto } from "../../../fintekkers/models/security/security_pb";
|
|
4
|
+
import type { SecurityProto } from "../../../fintekkers/models/security/security_pb";
|
|
5
5
|
import { TransactionType } from "./transaction_type";
|
|
6
6
|
import { TransactionTypeProto } from "../../../fintekkers/models/transaction/transaction_type_pb";
|
|
7
7
|
import { StrategyAllocationProto } from "../../../fintekkers/models/strategy/strategy_allocation_pb";
|
|
8
8
|
import { TransactionProto } from "../../../fintekkers/models/transaction/transaction_pb";
|
|
9
9
|
import { FieldProto } from "../../../fintekkers/models/position/field_pb";
|
|
10
10
|
import { PositionStatusProto } from "../../../fintekkers/models/position/position_status_pb";
|
|
11
|
-
import { DecimalValueProto } from "../../../fintekkers/models/util/decimal_value_pb";
|
|
11
|
+
import type { DecimalValueProto } from "../../../fintekkers/models/util/decimal_value_pb";
|
|
12
12
|
|
|
13
13
|
import Security from "../security/security";
|
|
14
14
|
import Portfolio from "../portfolio/portfolio";
|
|
@@ -6,7 +6,7 @@ import * as path from 'path';
|
|
|
6
6
|
import { PriceProto } from '../../../fintekkers/models/price/price_pb';
|
|
7
7
|
import { PriceTypeProto } from '../../../fintekkers/models/price/price_type_pb';
|
|
8
8
|
import { TransactionProto } from '../../../fintekkers/models/transaction/transaction_pb';
|
|
9
|
-
import { FieldViolationProto } from '../../../fintekkers/requests/util/errors/field_violation_pb';
|
|
9
|
+
import type { FieldViolationProto } from '../../../fintekkers/requests/util/errors/field_violation_pb';
|
|
10
10
|
import { UUID } from '../utils/uuid';
|
|
11
11
|
import { PRICE_PREFIX, UNKNOWN_TRADE_PRICE_TYPE, validate } from './transaction_rules';
|
|
12
12
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TransactionProto } from '../../../fintekkers/models/transaction/transaction_pb';
|
|
2
|
-
import { FieldViolationProto } from '../../../fintekkers/requests/util/errors/field_violation_pb';
|
|
1
|
+
import type { TransactionProto } from '../../../fintekkers/models/transaction/transaction_pb';
|
|
2
|
+
import type { FieldViolationProto } from '../../../fintekkers/requests/util/errors/field_violation_pb';
|
|
3
3
|
/**
|
|
4
4
|
* Transaction input rules: JS counterpart of Java's TransactionRules
|
|
5
5
|
* (docs/adr/typed-input-errors.md). Pure: proto in, violations out.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PriceTypeProto } from '../../../fintekkers/models/price/price_type_pb';
|
|
2
2
|
import { ProductTypeProto } from '../../../fintekkers/models/security/product_type_pb';
|
|
3
|
-
import { TransactionProto } from '../../../fintekkers/models/transaction/transaction_pb';
|
|
4
|
-
import { UUIDProto } from '../../../fintekkers/models/util/uuid_pb';
|
|
5
|
-
import { FieldViolationProto } from '../../../fintekkers/requests/util/errors/field_violation_pb';
|
|
3
|
+
import type { TransactionProto } from '../../../fintekkers/models/transaction/transaction_pb';
|
|
4
|
+
import type { UUIDProto } from '../../../fintekkers/models/util/uuid_pb';
|
|
5
|
+
import type { FieldViolationProto } from '../../../fintekkers/requests/util/errors/field_violation_pb';
|
|
6
6
|
import { ModelValidationError, violation } from '../errors';
|
|
7
7
|
import { PRICE_TYPE } from '../price/price_rules';
|
|
8
8
|
import { validate as validateSecurity } from '../security/security_rules';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UUIDProto } from '../../../fintekkers/models/util/uuid_pb';
|
|
1
|
+
import type { UUIDProto } from '../../../fintekkers/models/util/uuid_pb';
|
|
2
2
|
import { StrategyAllocationProto } from '../../../fintekkers/models/strategy/strategy_allocation_pb';
|
|
3
3
|
import { ProtoSerializationUtil } from './serialization';
|
|
4
4
|
import { UUID } from './uuid';
|