@fintekkers/ledger-models 0.1.62 → 0.1.64

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 (71) hide show
  1. package/.env +3 -0
  2. package/node/fintekkers/models/position/field_pb.d.ts +1 -0
  3. package/node/fintekkers/models/position/field_pb.js +1 -0
  4. package/node/fintekkers/models/security/bond/auction_type_grpc_pb.js +1 -0
  5. package/node/fintekkers/models/security/bond/auction_type_pb.d.ts +12 -0
  6. package/node/fintekkers/models/security/bond/auction_type_pb.js +33 -0
  7. package/node/fintekkers/models/security/bond/issuance_grpc_pb.js +1 -0
  8. package/node/fintekkers/models/security/bond/issuance_pb.d.ts +85 -0
  9. package/node/fintekkers/models/security/bond/issuance_pb.js +652 -0
  10. package/node/fintekkers/models/security/security_pb.d.ts +6 -0
  11. package/node/fintekkers/models/security/security_pb.js +64 -2
  12. package/node/wrappers/models/portfolio/portfolio.js +41 -0
  13. package/node/wrappers/models/portfolio/portfolio.js.map +1 -0
  14. package/node/wrappers/models/portfolio/portfolio.ts +49 -0
  15. package/node/wrappers/models/position/position.test.ts +1 -1
  16. package/node/wrappers/models/position/positionfilter.js +35 -0
  17. package/node/wrappers/models/position/positionfilter.js.map +1 -0
  18. package/node/wrappers/models/position/positionfilter.ts +38 -0
  19. package/node/wrappers/models/security/security.test.js +33 -0
  20. package/node/wrappers/models/security/security.test.js.map +1 -0
  21. package/node/wrappers/models/security/security.test.ts +41 -0
  22. package/node/wrappers/models/transaction/transaction.js +4 -3
  23. package/node/wrappers/models/transaction/transaction.js.map +1 -1
  24. package/node/wrappers/models/transaction/transaction.test.js.map +1 -1
  25. package/node/wrappers/models/transaction/transaction.test.ts +1 -5
  26. package/node/wrappers/models/transaction/transaction.ts +29 -29
  27. package/node/wrappers/models/utils/datetime.js +9 -0
  28. package/node/wrappers/models/utils/datetime.js.map +1 -1
  29. package/node/wrappers/models/utils/datetime.ts +16 -4
  30. package/node/wrappers/models/utils/serialization.js +8 -0
  31. package/node/wrappers/models/utils/serialization.js.map +1 -1
  32. package/node/wrappers/models/utils/serialization.ts +48 -40
  33. package/node/wrappers/models/utils/serialization.util.js +49 -17
  34. package/node/wrappers/models/utils/serialization.util.js.map +1 -1
  35. package/node/wrappers/models/utils/serialization.util.test.js +12 -0
  36. package/node/wrappers/models/utils/serialization.util.test.js.map +1 -1
  37. package/node/wrappers/models/utils/serialization.util.test.ts +18 -0
  38. package/node/wrappers/models/utils/serialization.util.ts +62 -26
  39. package/node/wrappers/services/portfolio-service/PortfolioService.js +5 -13
  40. package/node/wrappers/services/portfolio-service/PortfolioService.js.map +1 -1
  41. package/node/wrappers/services/portfolio-service/PortfolioService.ts +11 -23
  42. package/node/wrappers/services/portfolio-service/portfolio.test.js +30 -34
  43. package/node/wrappers/services/portfolio-service/portfolio.test.js.map +1 -1
  44. package/node/wrappers/services/portfolio-service/portfolio.test.ts +8 -12
  45. package/node/wrappers/services/position-service/position.test.js +9 -3
  46. package/node/wrappers/services/position-service/position.test.js.map +1 -1
  47. package/node/wrappers/services/position-service/position.test.ts +52 -49
  48. package/node/wrappers/services/security-service/SecurityService.js +14 -12
  49. package/node/wrappers/services/security-service/SecurityService.js.map +1 -1
  50. package/node/wrappers/services/security-service/SecurityService.ts +13 -16
  51. package/node/wrappers/services/security-service/security.maturityLadder.test.js +59 -0
  52. package/node/wrappers/services/security-service/security.maturityLadder.test.js.map +1 -0
  53. package/node/wrappers/services/security-service/security.maturityLadder.test.ts +39 -0
  54. package/node/wrappers/services/security-service/security.test.js +6 -2
  55. package/node/wrappers/services/security-service/security.test.js.map +1 -1
  56. package/node/wrappers/services/security-service/security.test.ts +7 -3
  57. package/node/wrappers/services/transaction-service/TransactionService.js +2 -9
  58. package/node/wrappers/services/transaction-service/TransactionService.js.map +1 -1
  59. package/node/wrappers/services/transaction-service/TransactionService.ts +8 -18
  60. package/node/wrappers/services/transaction-service/transaction.test.js +21 -5
  61. package/node/wrappers/services/transaction-service/transaction.test.js.map +1 -1
  62. package/node/wrappers/services/transaction-service/transaction.test.ts +32 -15
  63. package/package.json +1 -1
  64. package/web/fintekkers/models/position/field_pb.d.ts +1 -0
  65. package/web/fintekkers/models/position/field_pb.js +1 -0
  66. package/web/fintekkers/models/security/bond/auction_type_pb.d.ts +8 -0
  67. package/web/fintekkers/models/security/bond/auction_type_pb.js +27 -0
  68. package/web/fintekkers/models/security/bond/issuance_pb.d.ts +82 -0
  69. package/web/fintekkers/models/security/bond/issuance_pb.js +646 -0
  70. package/web/fintekkers/models/security/security_pb.d.ts +7 -0
  71. package/web/fintekkers/models/security/security_pb.js +64 -2
package/.env ADDED
@@ -0,0 +1,3 @@
1
+ # API_URL=api.fintekkers.org #this will be the default value so doesn't need to be set unless you override
2
+ # API_URL=localhost #this is the value to use when running services locally
3
+
@@ -14,6 +14,7 @@ export enum FieldProto {
14
14
  STRATEGY = 11,
15
15
  SECURITY = 12,
16
16
  SECURITY_DESCRIPTION = 61,
17
+ SECURITY_ISSUER_NAME = 62,
17
18
  CASH_IMPACT_SECURITY = 13,
18
19
  ASSET_CLASS = 50,
19
20
  PRODUCT_CLASS = 51,
@@ -33,6 +33,7 @@ proto.fintekkers.models.position.FieldProto = {
33
33
  STRATEGY: 11,
34
34
  SECURITY: 12,
35
35
  SECURITY_DESCRIPTION: 61,
36
+ SECURITY_ISSUER_NAME: 62,
36
37
  CASH_IMPACT_SECURITY: 13,
37
38
  ASSET_CLASS: 50,
38
39
  PRODUCT_CLASS: 51,
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1,12 @@
1
+ // package: fintekkers.models.security.bond
2
+ // file: fintekkers/models/security/bond/auction_type.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as jspb from "google-protobuf";
8
+
9
+ export enum AuctionTypeProto {
10
+ UNKNOWN_AUCTION_TYPE = 0,
11
+ SINGLE_PRICE = 1,
12
+ }
@@ -0,0 +1,33 @@
1
+ // source: fintekkers/models/security/bond/auction_type.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.AuctionTypeProto', null, global);
25
+ /**
26
+ * @enum {number}
27
+ */
28
+ proto.fintekkers.models.security.bond.AuctionTypeProto = {
29
+ UNKNOWN_AUCTION_TYPE: 0,
30
+ SINGLE_PRICE: 1
31
+ };
32
+
33
+ goog.object.extend(exports, proto.fintekkers.models.security.bond);
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1,85 @@
1
+ // package: fintekkers.models.security.bond
2
+ // file: fintekkers/models/security/bond/issuance.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as jspb from "google-protobuf";
8
+ import * as fintekkers_models_security_bond_auction_type_pb from "../../../../fintekkers/models/security/bond/auction_type_pb";
9
+ import * as fintekkers_models_util_decimal_value_pb from "../../../../fintekkers/models/util/decimal_value_pb";
10
+ import * as fintekkers_models_util_local_date_pb from "../../../../fintekkers/models/util/local_date_pb";
11
+ import * as fintekkers_models_util_local_timestamp_pb from "../../../../fintekkers/models/util/local_timestamp_pb";
12
+
13
+ export class IssuanceProto extends jspb.Message {
14
+ getObjectClass(): string;
15
+ setObjectClass(value: string): IssuanceProto;
16
+ getVersion(): string;
17
+ setVersion(value: string): IssuanceProto;
18
+
19
+ hasAsOf(): boolean;
20
+ clearAsOf(): void;
21
+ getAsOf(): fintekkers_models_util_local_timestamp_pb.LocalTimestampProto | undefined;
22
+ setAsOf(value?: fintekkers_models_util_local_timestamp_pb.LocalTimestampProto): IssuanceProto;
23
+
24
+ hasValidFrom(): boolean;
25
+ clearValidFrom(): void;
26
+ getValidFrom(): fintekkers_models_util_local_timestamp_pb.LocalTimestampProto | undefined;
27
+ setValidFrom(value?: fintekkers_models_util_local_timestamp_pb.LocalTimestampProto): IssuanceProto;
28
+
29
+ hasValidTo(): boolean;
30
+ clearValidTo(): void;
31
+ getValidTo(): fintekkers_models_util_local_timestamp_pb.LocalTimestampProto | undefined;
32
+ setValidTo(value?: fintekkers_models_util_local_timestamp_pb.LocalTimestampProto): IssuanceProto;
33
+
34
+ hasAuctionAnnouncementDate(): boolean;
35
+ clearAuctionAnnouncementDate(): void;
36
+ getAuctionAnnouncementDate(): fintekkers_models_util_local_date_pb.LocalDateProto | undefined;
37
+ setAuctionAnnouncementDate(value?: fintekkers_models_util_local_date_pb.LocalDateProto): IssuanceProto;
38
+
39
+ hasAuctionIssueDate(): boolean;
40
+ clearAuctionIssueDate(): void;
41
+ getAuctionIssueDate(): fintekkers_models_util_local_date_pb.LocalDateProto | undefined;
42
+ setAuctionIssueDate(value?: fintekkers_models_util_local_date_pb.LocalDateProto): IssuanceProto;
43
+
44
+ hasPreauctionOutstandingQuantity(): boolean;
45
+ clearPreauctionOutstandingQuantity(): void;
46
+ getPreauctionOutstandingQuantity(): fintekkers_models_util_decimal_value_pb.DecimalValueProto | undefined;
47
+ setPreauctionOutstandingQuantity(value?: fintekkers_models_util_decimal_value_pb.DecimalValueProto): IssuanceProto;
48
+
49
+ hasAuctionOfferingAmount(): boolean;
50
+ clearAuctionOfferingAmount(): void;
51
+ getAuctionOfferingAmount(): fintekkers_models_util_decimal_value_pb.DecimalValueProto | undefined;
52
+ setAuctionOfferingAmount(value?: fintekkers_models_util_decimal_value_pb.DecimalValueProto): IssuanceProto;
53
+ getAuctionType(): fintekkers_models_security_bond_auction_type_pb.AuctionTypeProto;
54
+ setAuctionType(value: fintekkers_models_security_bond_auction_type_pb.AuctionTypeProto): IssuanceProto;
55
+
56
+ hasPriceForSinglePriceAuction(): boolean;
57
+ clearPriceForSinglePriceAuction(): void;
58
+ getPriceForSinglePriceAuction(): fintekkers_models_util_decimal_value_pb.DecimalValueProto | undefined;
59
+ setPriceForSinglePriceAuction(value?: fintekkers_models_util_decimal_value_pb.DecimalValueProto): IssuanceProto;
60
+
61
+ serializeBinary(): Uint8Array;
62
+ toObject(includeInstance?: boolean): IssuanceProto.AsObject;
63
+ static toObject(includeInstance: boolean, msg: IssuanceProto): IssuanceProto.AsObject;
64
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
65
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
66
+ static serializeBinaryToWriter(message: IssuanceProto, writer: jspb.BinaryWriter): void;
67
+ static deserializeBinary(bytes: Uint8Array): IssuanceProto;
68
+ static deserializeBinaryFromReader(message: IssuanceProto, reader: jspb.BinaryReader): IssuanceProto;
69
+ }
70
+
71
+ export namespace IssuanceProto {
72
+ export type AsObject = {
73
+ objectClass: string,
74
+ version: string,
75
+ asOf?: fintekkers_models_util_local_timestamp_pb.LocalTimestampProto.AsObject,
76
+ validFrom?: fintekkers_models_util_local_timestamp_pb.LocalTimestampProto.AsObject,
77
+ validTo?: fintekkers_models_util_local_timestamp_pb.LocalTimestampProto.AsObject,
78
+ auctionAnnouncementDate?: fintekkers_models_util_local_date_pb.LocalDateProto.AsObject,
79
+ auctionIssueDate?: fintekkers_models_util_local_date_pb.LocalDateProto.AsObject,
80
+ preauctionOutstandingQuantity?: fintekkers_models_util_decimal_value_pb.DecimalValueProto.AsObject,
81
+ auctionOfferingAmount?: fintekkers_models_util_decimal_value_pb.DecimalValueProto.AsObject,
82
+ auctionType: fintekkers_models_security_bond_auction_type_pb.AuctionTypeProto,
83
+ priceForSinglePriceAuction?: fintekkers_models_util_decimal_value_pb.DecimalValueProto.AsObject,
84
+ }
85
+ }