@fintekkers/ledger-models 0.4.1 → 0.4.3

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.
Files changed (56) hide show
  1. package/hierarchy.json +2 -2
  2. package/node/fintekkers/models/security/bond/agency_grpc_pb.js +1 -0
  3. package/node/fintekkers/models/security/bond/agency_pb.d.ts +14 -0
  4. package/node/fintekkers/models/security/bond/agency_pb.js +35 -0
  5. package/node/fintekkers/models/security/product_type_pb.d.ts +1 -0
  6. package/node/fintekkers/models/security/product_type_pb.js +1 -0
  7. package/node/fintekkers/models/security/security_pb.d.ts +69 -0
  8. package/node/fintekkers/models/security/security_pb.js +572 -1
  9. package/node/wrappers/models/security/BondSecurity.d.ts +5 -21
  10. package/node/wrappers/models/security/BondSecurity.fromPricerInputs.test.js +17 -11
  11. package/node/wrappers/models/security/BondSecurity.fromPricerInputs.test.js.map +1 -1
  12. package/node/wrappers/models/security/BondSecurity.fromPricerInputs.test.ts +17 -11
  13. package/node/wrappers/models/security/BondSecurity.js +15 -32
  14. package/node/wrappers/models/security/BondSecurity.js.map +1 -1
  15. package/node/wrappers/models/security/BondSecurity.ts +18 -37
  16. package/node/wrappers/models/security/Issuance.d.ts +3 -5
  17. package/node/wrappers/models/security/Issuance.js +3 -8
  18. package/node/wrappers/models/security/Issuance.js.map +1 -1
  19. package/node/wrappers/models/security/Issuance.test.js +16 -8
  20. package/node/wrappers/models/security/Issuance.test.js.map +1 -1
  21. package/node/wrappers/models/security/Issuance.test.ts +10 -2
  22. package/node/wrappers/models/security/Issuance.ts +6 -12
  23. package/node/wrappers/models/security/MortgageBackedSecurity.d.ts +48 -0
  24. package/node/wrappers/models/security/MortgageBackedSecurity.fromPricerInputs.test.d.ts +1 -0
  25. package/node/wrappers/models/security/MortgageBackedSecurity.fromPricerInputs.test.js +97 -0
  26. package/node/wrappers/models/security/MortgageBackedSecurity.fromPricerInputs.test.js.map +1 -0
  27. package/node/wrappers/models/security/MortgageBackedSecurity.fromPricerInputs.test.ts +111 -0
  28. package/node/wrappers/models/security/MortgageBackedSecurity.js +131 -0
  29. package/node/wrappers/models/security/MortgageBackedSecurity.js.map +1 -0
  30. package/node/wrappers/models/security/MortgageBackedSecurity.ts +125 -0
  31. package/node/wrappers/models/security/TIPSBond.d.ts +2 -3
  32. package/node/wrappers/models/security/TIPSBond.js +2 -4
  33. package/node/wrappers/models/security/TIPSBond.js.map +1 -1
  34. package/node/wrappers/models/security/TIPSBond.ts +5 -7
  35. package/node/wrappers/models/security/security.d.ts +39 -12
  36. package/node/wrappers/models/security/security.js +64 -16
  37. package/node/wrappers/models/security/security.js.map +1 -1
  38. package/node/wrappers/models/security/security.test.js +91 -10
  39. package/node/wrappers/models/security/security.test.js.map +1 -1
  40. package/node/wrappers/models/security/security.test.ts +106 -11
  41. package/node/wrappers/models/security/security.ts +70 -17
  42. package/node/wrappers/models/transaction/transaction.d.ts +2 -3
  43. package/node/wrappers/models/transaction/transaction.js +23 -21
  44. package/node/wrappers/models/transaction/transaction.js.map +1 -1
  45. package/node/wrappers/models/transaction/transaction.ts +22 -21
  46. package/node/wrappers/models/transaction/transaction_constructor.test.js +4 -2
  47. package/node/wrappers/models/transaction/transaction_constructor.test.js.map +1 -1
  48. package/node/wrappers/models/transaction/transaction_constructor.test.ts +10 -8
  49. package/node/wrappers/models/utils/date.d.ts +13 -1
  50. package/node/wrappers/models/utils/date.js +26 -1
  51. package/node/wrappers/models/utils/date.js.map +1 -1
  52. package/node/wrappers/models/utils/date.ts +25 -1
  53. package/node/wrappers/services/security-service/security.maturityLadder.test.js +4 -2
  54. package/node/wrappers/services/security-service/security.maturityLadder.test.js.map +1 -1
  55. package/node/wrappers/services/security-service/security.maturityLadder.test.ts +3 -2
  56. package/package.json +1 -1
package/hierarchy.json CHANGED
@@ -20,8 +20,8 @@
20
20
  "CONVERTIBLE_BOND": { "parent": "CREDIT_BOND", "asset_class": "CREDIT", "instrument_type": "CASH", "label": "Convertible Bond", "status": "planned" },
21
21
  "COCO": { "parent": "CREDIT_BOND", "asset_class": "CREDIT", "instrument_type": "CASH", "label": "Contingent Convertible Bond (CoCo)", "status": "planned" },
22
22
 
23
- "STRUCTURED_BOND": { "parent": "BOND", "abstract": true, "status": "planned", "label": "Structured Bond" },
24
- "MBS_PASSTHROUGH": { "parent": "STRUCTURED_BOND", "asset_class": "CREDIT", "instrument_type": "CASH", "label": "MBS Pass-Through", "status": "planned" },
23
+ "STRUCTURED_BOND": { "parent": "BOND", "abstract": true, "label": "Structured Bond" },
24
+ "MORTGAGE_BACKED": { "parent": "STRUCTURED_BOND", "asset_class": "CREDIT", "instrument_type": "CASH", "label": "Agency MBS Pass-Through", "status": "active" },
25
25
  "CMBS": { "parent": "STRUCTURED_BOND", "asset_class": "CREDIT", "instrument_type": "CASH", "label": "Commercial MBS", "status": "planned" },
26
26
  "ABS": { "parent": "STRUCTURED_BOND", "asset_class": "CREDIT", "instrument_type": "CASH", "label": "Asset-Backed Security", "status": "planned" },
27
27
  "CLO": { "parent": "STRUCTURED_BOND", "asset_class": "CREDIT", "instrument_type": "CASH", "label": "Collateralized Loan Obligation", "status": "planned" },
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1,14 @@
1
+ // package: fintekkers.models.security.bond
2
+ // file: fintekkers/models/security/bond/agency.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as jspb from "google-protobuf";
8
+
9
+ export enum AgencyProto {
10
+ AGENCY_UNKNOWN = 0,
11
+ FNMA = 1,
12
+ FHLMC = 2,
13
+ GNMA = 3,
14
+ }
@@ -0,0 +1,35 @@
1
+ // source: fintekkers/models/security/bond/agency.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
23
+
24
+ goog.exportSymbol('proto.fintekkers.models.security.bond.AgencyProto', null, global);
25
+ /**
26
+ * @enum {number}
27
+ */
28
+ proto.fintekkers.models.security.bond.AgencyProto = {
29
+ AGENCY_UNKNOWN: 0,
30
+ FNMA: 1,
31
+ FHLMC: 2,
32
+ GNMA: 3
33
+ };
34
+
35
+ goog.object.extend(exports, proto.fintekkers.models.security.bond);
@@ -17,6 +17,7 @@ export enum ProductTypeProto {
17
17
  SOVEREIGN_BOND = 7,
18
18
  CORP_BOND = 8,
19
19
  MUNI_BOND = 9,
20
+ MORTGAGE_BACKED = 10,
20
21
  COMMON_STOCK = 20,
21
22
  PREFERRED_STOCK = 21,
22
23
  ADR = 22,
@@ -36,6 +36,7 @@ proto.fintekkers.models.security.ProductTypeProto = {
36
36
  SOVEREIGN_BOND: 7,
37
37
  CORP_BOND: 8,
38
38
  MUNI_BOND: 9,
39
+ MORTGAGE_BACKED: 10,
39
40
  COMMON_STOCK: 20,
40
41
  PREFERRED_STOCK: 21,
41
42
  ADR: 22,
@@ -10,6 +10,7 @@ import * as fintekkers_models_util_local_date_pb from "../../../fintekkers/model
10
10
  import * as fintekkers_models_util_local_timestamp_pb from "../../../fintekkers/models/util/local_timestamp_pb";
11
11
  import * as fintekkers_models_util_uuid_pb from "../../../fintekkers/models/util/uuid_pb";
12
12
  import * as fintekkers_models_security_identifier_identifier_pb from "../../../fintekkers/models/security/identifier/identifier_pb";
13
+ import * as fintekkers_models_security_bond_agency_pb from "../../../fintekkers/models/security/bond/agency_pb";
13
14
  import * as fintekkers_models_security_bond_issuance_pb from "../../../fintekkers/models/security/bond/issuance_pb";
14
15
  import * as fintekkers_models_security_product_type_pb from "../../../fintekkers/models/security/product_type_pb";
15
16
  import * as fintekkers_models_security_instrument_type_pb from "../../../fintekkers/models/security/instrument_type_pb";
@@ -111,6 +112,11 @@ export class SecurityProto extends jspb.Message {
111
112
  getFxSpotDetails(): FxSpotDetailsProto | undefined;
112
113
  setFxSpotDetails(value?: FxSpotDetailsProto): SecurityProto;
113
114
 
115
+ hasMbsExtension(): boolean;
116
+ clearMbsExtension(): void;
117
+ getMbsExtension(): MbsExtensionProto | undefined;
118
+ setMbsExtension(value?: MbsExtensionProto): SecurityProto;
119
+
114
120
  getNonBondDetailsCase(): SecurityProto.NonBondDetailsCase;
115
121
 
116
122
  serializeBinary(): Uint8Array;
@@ -149,6 +155,7 @@ export namespace SecurityProto {
149
155
  equityDetails?: EquityDetailsProto.AsObject,
150
156
  cashDetails?: CashDetailsProto.AsObject,
151
157
  fxSpotDetails?: FxSpotDetailsProto.AsObject,
158
+ mbsExtension?: MbsExtensionProto.AsObject,
152
159
  }
153
160
 
154
161
  export enum NonBondDetailsCase {
@@ -280,6 +287,68 @@ export namespace FrnExtensionProto {
280
287
  }
281
288
  }
282
289
 
290
+ export class MbsExtensionProto extends jspb.Message {
291
+ getPoolNumber(): string;
292
+ setPoolNumber(value: string): MbsExtensionProto;
293
+ getAgency(): fintekkers_models_security_bond_agency_pb.AgencyProto;
294
+ setAgency(value: fintekkers_models_security_bond_agency_pb.AgencyProto): MbsExtensionProto;
295
+
296
+ hasWac(): boolean;
297
+ clearWac(): void;
298
+ getWac(): fintekkers_models_util_decimal_value_pb.DecimalValueProto | undefined;
299
+ setWac(value?: fintekkers_models_util_decimal_value_pb.DecimalValueProto): MbsExtensionProto;
300
+ getWam(): number;
301
+ setWam(value: number): MbsExtensionProto;
302
+
303
+ hasPassThroughRate(): boolean;
304
+ clearPassThroughRate(): void;
305
+ getPassThroughRate(): fintekkers_models_util_decimal_value_pb.DecimalValueProto | undefined;
306
+ setPassThroughRate(value?: fintekkers_models_util_decimal_value_pb.DecimalValueProto): MbsExtensionProto;
307
+
308
+ hasCurrentFactor(): boolean;
309
+ clearCurrentFactor(): void;
310
+ getCurrentFactor(): fintekkers_models_util_decimal_value_pb.DecimalValueProto | undefined;
311
+ setCurrentFactor(value?: fintekkers_models_util_decimal_value_pb.DecimalValueProto): MbsExtensionProto;
312
+
313
+ hasOriginalFaceValue(): boolean;
314
+ clearOriginalFaceValue(): void;
315
+ getOriginalFaceValue(): fintekkers_models_util_decimal_value_pb.DecimalValueProto | undefined;
316
+ setOriginalFaceValue(value?: fintekkers_models_util_decimal_value_pb.DecimalValueProto): MbsExtensionProto;
317
+
318
+ hasCurrentUpb(): boolean;
319
+ clearCurrentUpb(): void;
320
+ getCurrentUpb(): fintekkers_models_util_decimal_value_pb.DecimalValueProto | undefined;
321
+ setCurrentUpb(value?: fintekkers_models_util_decimal_value_pb.DecimalValueProto): MbsExtensionProto;
322
+
323
+ hasPsaSpeed(): boolean;
324
+ clearPsaSpeed(): void;
325
+ getPsaSpeed(): fintekkers_models_util_decimal_value_pb.DecimalValueProto | undefined;
326
+ setPsaSpeed(value?: fintekkers_models_util_decimal_value_pb.DecimalValueProto): MbsExtensionProto;
327
+
328
+ serializeBinary(): Uint8Array;
329
+ toObject(includeInstance?: boolean): MbsExtensionProto.AsObject;
330
+ static toObject(includeInstance: boolean, msg: MbsExtensionProto): MbsExtensionProto.AsObject;
331
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
332
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
333
+ static serializeBinaryToWriter(message: MbsExtensionProto, writer: jspb.BinaryWriter): void;
334
+ static deserializeBinary(bytes: Uint8Array): MbsExtensionProto;
335
+ static deserializeBinaryFromReader(message: MbsExtensionProto, reader: jspb.BinaryReader): MbsExtensionProto;
336
+ }
337
+
338
+ export namespace MbsExtensionProto {
339
+ export type AsObject = {
340
+ poolNumber: string,
341
+ agency: fintekkers_models_security_bond_agency_pb.AgencyProto,
342
+ wac?: fintekkers_models_util_decimal_value_pb.DecimalValueProto.AsObject,
343
+ wam: number,
344
+ passThroughRate?: fintekkers_models_util_decimal_value_pb.DecimalValueProto.AsObject,
345
+ currentFactor?: fintekkers_models_util_decimal_value_pb.DecimalValueProto.AsObject,
346
+ originalFaceValue?: fintekkers_models_util_decimal_value_pb.DecimalValueProto.AsObject,
347
+ currentUpb?: fintekkers_models_util_decimal_value_pb.DecimalValueProto.AsObject,
348
+ psaSpeed?: fintekkers_models_util_decimal_value_pb.DecimalValueProto.AsObject,
349
+ }
350
+ }
351
+
283
352
  export class IndexDetailsProto extends jspb.Message {
284
353
  getIndexType(): fintekkers_models_security_index_index_type_pb.IndexTypeProto;
285
354
  setIndexType(value: fintekkers_models_security_index_index_type_pb.IndexTypeProto): IndexDetailsProto;