@fintekkers/ledger-models 0.4.42 → 0.4.44

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 (254) hide show
  1. package/node/fintekkers/models/portfolio/portfolio_pb.d.ts +7 -15
  2. package/node/fintekkers/models/portfolio/portfolio_pb.js +35 -132
  3. package/node/fintekkers/models/position/position_filter_pb.d.ts +7 -15
  4. package/node/fintekkers/models/position/position_filter_pb.js +35 -132
  5. package/node/fintekkers/models/position/position_pb.d.ts +7 -15
  6. package/node/fintekkers/models/position/position_pb.js +35 -132
  7. package/node/fintekkers/models/price/price_pb.d.ts +7 -15
  8. package/node/fintekkers/models/price/price_pb.js +35 -132
  9. package/node/fintekkers/models/security/bond/issuance_pb.d.ts +7 -15
  10. package/node/fintekkers/models/security/bond/issuance_pb.js +35 -132
  11. package/node/fintekkers/models/security/identifier/identifier_pb.d.ts +7 -15
  12. package/node/fintekkers/models/security/identifier/identifier_pb.js +35 -132
  13. package/node/fintekkers/models/security/index_composition_pb.d.ts +7 -15
  14. package/node/fintekkers/models/security/index_composition_pb.js +35 -132
  15. package/node/fintekkers/models/security/security_pb.d.ts +7 -15
  16. package/node/fintekkers/models/security/security_pb.js +35 -132
  17. package/node/fintekkers/models/security/security_pb.test.js +4 -8
  18. package/node/fintekkers/models/security/security_pb.test.js.map +1 -1
  19. package/node/fintekkers/models/security/security_pb.test.ts +4 -5
  20. package/node/fintekkers/models/security/tenor_pb.d.ts +7 -15
  21. package/node/fintekkers/models/security/tenor_pb.js +35 -132
  22. package/node/fintekkers/models/strategy/strategy_allocation_pb.d.ts +7 -15
  23. package/node/fintekkers/models/strategy/strategy_allocation_pb.js +35 -132
  24. package/node/fintekkers/models/strategy/strategy_pb.d.ts +7 -15
  25. package/node/fintekkers/models/strategy/strategy_pb.js +35 -132
  26. package/node/fintekkers/models/transaction/transaction_pb.d.ts +7 -15
  27. package/node/fintekkers/models/transaction/transaction_pb.js +35 -132
  28. package/node/fintekkers/models/util/api/api_key_pb.d.ts +7 -15
  29. package/node/fintekkers/models/util/api/api_key_pb.js +35 -132
  30. package/node/fintekkers/models/util/date_range_pb.d.ts +7 -15
  31. package/node/fintekkers/models/util/date_range_pb.js +35 -132
  32. package/node/fintekkers/models/util/decimal_value_pb.d.ts +0 -5
  33. package/node/fintekkers/models/util/decimal_value_pb.js +0 -30
  34. package/node/fintekkers/models/util/lock/node_partition_pb.d.ts +7 -15
  35. package/node/fintekkers/models/util/lock/node_partition_pb.js +35 -132
  36. package/node/fintekkers/models/util/lock/node_state_pb.d.ts +7 -15
  37. package/node/fintekkers/models/util/lock/node_state_pb.js +35 -132
  38. package/node/fintekkers/models/util/object_type_pb.d.ts +0 -3
  39. package/node/fintekkers/models/util/object_type_pb.js +0 -28
  40. package/node/fintekkers/models/util/version_grpc_pb.js +1 -0
  41. package/node/fintekkers/models/util/version_pb.d.ts +33 -0
  42. package/node/fintekkers/models/util/version_pb.js +236 -0
  43. package/node/fintekkers/requests/index_composition/create_index_composition_request_pb.d.ts +13 -30
  44. package/node/fintekkers/requests/index_composition/create_index_composition_request_pb.js +68 -264
  45. package/node/fintekkers/requests/index_composition/get_index_composition_request_pb.d.ts +13 -30
  46. package/node/fintekkers/requests/index_composition/get_index_composition_request_pb.js +68 -264
  47. package/node/fintekkers/requests/portfolio/create_portfolio_request_pb.d.ts +7 -15
  48. package/node/fintekkers/requests/portfolio/create_portfolio_request_pb.js +35 -132
  49. package/node/fintekkers/requests/portfolio/create_portfolio_response_pb.d.ts +7 -15
  50. package/node/fintekkers/requests/portfolio/create_portfolio_response_pb.js +35 -132
  51. package/node/fintekkers/requests/portfolio/query_portfolio_request_pb.d.ts +7 -15
  52. package/node/fintekkers/requests/portfolio/query_portfolio_request_pb.js +35 -132
  53. package/node/fintekkers/requests/portfolio/query_portfolio_response_pb.d.ts +7 -15
  54. package/node/fintekkers/requests/portfolio/query_portfolio_response_pb.js +35 -132
  55. package/node/fintekkers/requests/position/query_position_request_pb.d.ts +7 -15
  56. package/node/fintekkers/requests/position/query_position_request_pb.js +35 -132
  57. package/node/fintekkers/requests/position/query_position_response_pb.d.ts +7 -15
  58. package/node/fintekkers/requests/position/query_position_response_pb.js +35 -132
  59. package/node/fintekkers/requests/price/create_price_request_pb.d.ts +7 -15
  60. package/node/fintekkers/requests/price/create_price_request_pb.js +35 -132
  61. package/node/fintekkers/requests/price/create_price_response_pb.d.ts +7 -15
  62. package/node/fintekkers/requests/price/create_price_response_pb.js +35 -132
  63. package/node/fintekkers/requests/price/query_price_request_pb.d.ts +7 -15
  64. package/node/fintekkers/requests/price/query_price_request_pb.js +35 -132
  65. package/node/fintekkers/requests/price/query_price_response_pb.d.ts +7 -15
  66. package/node/fintekkers/requests/price/query_price_response_pb.js +35 -132
  67. package/node/fintekkers/requests/security/create_security_request_pb.d.ts +7 -15
  68. package/node/fintekkers/requests/security/create_security_request_pb.js +35 -132
  69. package/node/fintekkers/requests/security/create_security_response_pb.d.ts +7 -15
  70. package/node/fintekkers/requests/security/create_security_response_pb.js +35 -132
  71. package/node/fintekkers/requests/security/get_field_values_request_pb.d.ts +7 -15
  72. package/node/fintekkers/requests/security/get_field_values_request_pb.js +35 -132
  73. package/node/fintekkers/requests/security/get_field_values_response_pb.d.ts +7 -15
  74. package/node/fintekkers/requests/security/get_field_values_response_pb.js +35 -132
  75. package/node/fintekkers/requests/security/get_fields_response_pb.d.ts +7 -15
  76. package/node/fintekkers/requests/security/get_fields_response_pb.js +35 -132
  77. package/node/fintekkers/requests/security/query_security_request_pb.d.ts +7 -15
  78. package/node/fintekkers/requests/security/query_security_request_pb.js +35 -132
  79. package/node/fintekkers/requests/security/query_security_response_pb.d.ts +7 -15
  80. package/node/fintekkers/requests/security/query_security_response_pb.js +35 -132
  81. package/node/fintekkers/requests/transaction/create_transaction_request_pb.d.ts +7 -15
  82. package/node/fintekkers/requests/transaction/create_transaction_request_pb.js +35 -132
  83. package/node/fintekkers/requests/transaction/create_transaction_response_pb.d.ts +7 -15
  84. package/node/fintekkers/requests/transaction/create_transaction_response_pb.js +35 -132
  85. package/node/fintekkers/requests/transaction/query_transaction_request_pb.d.ts +7 -15
  86. package/node/fintekkers/requests/transaction/query_transaction_request_pb.js +35 -132
  87. package/node/fintekkers/requests/transaction/query_transaction_response_pb.d.ts +7 -15
  88. package/node/fintekkers/requests/transaction/query_transaction_response_pb.js +35 -132
  89. package/node/fintekkers/requests/util/delete_request_pb.d.ts +13 -30
  90. package/node/fintekkers/requests/util/delete_request_pb.js +68 -264
  91. package/node/fintekkers/requests/util/lock/lock_request_pb.d.ts +7 -15
  92. package/node/fintekkers/requests/util/lock/lock_request_pb.js +35 -132
  93. package/node/fintekkers/requests/util/lock/lock_response_pb.d.ts +7 -15
  94. package/node/fintekkers/requests/util/lock/lock_response_pb.js +35 -132
  95. package/node/fintekkers/requests/valuation/curve_request_pb.d.ts +7 -15
  96. package/node/fintekkers/requests/valuation/curve_request_pb.js +35 -132
  97. package/node/fintekkers/requests/valuation/curve_response_pb.d.ts +19 -15
  98. package/node/fintekkers/requests/valuation/curve_response_pb.js +138 -133
  99. package/node/fintekkers/requests/valuation/product_inputs.test.js +10 -17
  100. package/node/fintekkers/requests/valuation/product_inputs.test.js.map +1 -1
  101. package/node/fintekkers/requests/valuation/product_inputs.test.ts +10 -16
  102. package/node/fintekkers/requests/valuation/valuation_request_pb.d.ts +7 -15
  103. package/node/fintekkers/requests/valuation/valuation_request_pb.js +35 -132
  104. package/node/fintekkers/requests/valuation/valuation_response_pb.d.ts +7 -15
  105. package/node/fintekkers/requests/valuation/valuation_response_pb.js +35 -132
  106. package/node/wrappers/models/portfolio/portfolio.test.js +0 -2
  107. package/node/wrappers/models/portfolio/portfolio.test.js.map +1 -1
  108. package/node/wrappers/models/portfolio/portfolio.test.ts +0 -2
  109. package/node/wrappers/models/portfolio-price-transaction.lazy-hydrate.test.js +2 -3
  110. package/node/wrappers/models/portfolio-price-transaction.lazy-hydrate.test.js.map +1 -1
  111. package/node/wrappers/models/portfolio-price-transaction.lazy-hydrate.test.ts +2 -2
  112. package/node/wrappers/models/position/position.test.js +5 -6
  113. package/node/wrappers/models/position/position.test.js.map +1 -1
  114. package/node/wrappers/models/position/position.test.ts +5 -4
  115. package/node/wrappers/models/position/positionfilter.js +1 -1
  116. package/node/wrappers/models/position/positionfilter.js.map +1 -1
  117. package/node/wrappers/models/position/positionfilter.test.js +4 -2
  118. package/node/wrappers/models/position/positionfilter.test.js.map +1 -1
  119. package/node/wrappers/models/position/positionfilter.test.ts +3 -2
  120. package/node/wrappers/models/position/positionfilter.ts +1 -1
  121. package/node/wrappers/models/price/Price.cash.test.js +4 -5
  122. package/node/wrappers/models/price/Price.cash.test.js.map +1 -1
  123. package/node/wrappers/models/price/Price.cash.test.ts +2 -3
  124. package/node/wrappers/models/price/Price.js +2 -2
  125. package/node/wrappers/models/price/Price.js.map +1 -1
  126. package/node/wrappers/models/price/Price.test.js +4 -2
  127. package/node/wrappers/models/price/Price.test.js.map +1 -1
  128. package/node/wrappers/models/price/Price.test.ts +4 -2
  129. package/node/wrappers/models/price/Price.ts +2 -2
  130. package/node/wrappers/models/price/price_rules.test.js +9 -4
  131. package/node/wrappers/models/price/price_rules.test.js.map +1 -1
  132. package/node/wrappers/models/price/price_rules.test.ts +9 -4
  133. package/node/wrappers/models/security/BondSecurity.priceScale.test.js +2 -4
  134. package/node/wrappers/models/security/BondSecurity.priceScale.test.js.map +1 -1
  135. package/node/wrappers/models/security/BondSecurity.priceScale.test.ts +2 -3
  136. package/node/wrappers/models/security/BondSecurity.test.js +7 -13
  137. package/node/wrappers/models/security/BondSecurity.test.js.map +1 -1
  138. package/node/wrappers/models/security/BondSecurity.test.ts +7 -12
  139. package/node/wrappers/models/security/IndexSecurity.test.js +0 -8
  140. package/node/wrappers/models/security/IndexSecurity.test.js.map +1 -1
  141. package/node/wrappers/models/security/IndexSecurity.test.ts +0 -8
  142. package/node/wrappers/models/security/Issuance.test.js +6 -6
  143. package/node/wrappers/models/security/Issuance.test.js.map +1 -1
  144. package/node/wrappers/models/security/Issuance.test.ts +6 -5
  145. package/node/wrappers/models/security/MortgageBackedSecurity.fromPricerInputs.test.js +13 -14
  146. package/node/wrappers/models/security/MortgageBackedSecurity.fromPricerInputs.test.js.map +1 -1
  147. package/node/wrappers/models/security/MortgageBackedSecurity.fromPricerInputs.test.ts +13 -12
  148. package/node/wrappers/models/security/security-roundtrip.test.js +9 -21
  149. package/node/wrappers/models/security/security-roundtrip.test.js.map +1 -1
  150. package/node/wrappers/models/security/security-roundtrip.test.ts +9 -20
  151. package/node/wrappers/models/security/security.identifiers.test.js +0 -2
  152. package/node/wrappers/models/security/security.identifiers.test.js.map +1 -1
  153. package/node/wrappers/models/security/security.identifiers.test.ts +0 -2
  154. package/node/wrappers/models/security/security.tbillCoupon.test.js +3 -2
  155. package/node/wrappers/models/security/security.tbillCoupon.test.js.map +1 -1
  156. package/node/wrappers/models/security/security.tbillCoupon.test.ts +3 -2
  157. package/node/wrappers/models/security/security.test.js +14 -14
  158. package/node/wrappers/models/security/security.test.js.map +1 -1
  159. package/node/wrappers/models/security/security.test.ts +14 -13
  160. package/node/wrappers/models/transaction/transaction.derived.test.js +3 -9
  161. package/node/wrappers/models/transaction/transaction.derived.test.js.map +1 -1
  162. package/node/wrappers/models/transaction/transaction.derived.test.ts +3 -8
  163. package/node/wrappers/models/transaction/transaction.js +2 -2
  164. package/node/wrappers/models/transaction/transaction.js.map +1 -1
  165. package/node/wrappers/models/transaction/transaction.test.js +3 -3
  166. package/node/wrappers/models/transaction/transaction.test.js.map +1 -1
  167. package/node/wrappers/models/transaction/transaction.test.ts +3 -2
  168. package/node/wrappers/models/transaction/transaction.ts +2 -2
  169. package/node/wrappers/models/transaction/transaction_constructor.test.js +6 -9
  170. package/node/wrappers/models/transaction/transaction_constructor.test.js.map +1 -1
  171. package/node/wrappers/models/transaction/transaction_constructor.test.ts +6 -7
  172. package/node/wrappers/models/transaction/transaction_price_defaults.test.js +2 -10
  173. package/node/wrappers/models/transaction/transaction_price_defaults.test.js.map +1 -1
  174. package/node/wrappers/models/transaction/transaction_price_defaults.test.ts +2 -9
  175. package/node/wrappers/models/transaction/transaction_security_defaults.test.js +0 -6
  176. package/node/wrappers/models/transaction/transaction_security_defaults.test.js.map +1 -1
  177. package/node/wrappers/models/transaction/transaction_security_defaults.test.ts +0 -6
  178. package/node/wrappers/models/utils/date.test.js +0 -2
  179. package/node/wrappers/models/utils/date.test.js.map +1 -1
  180. package/node/wrappers/models/utils/date.test.ts +0 -2
  181. package/node/wrappers/models/utils/datetime.test.js +0 -2
  182. package/node/wrappers/models/utils/datetime.test.js.map +1 -1
  183. package/node/wrappers/models/utils/datetime.test.ts +0 -2
  184. package/node/wrappers/models/utils/decimal.d.ts +9 -28
  185. package/node/wrappers/models/utils/decimal.js +13 -52
  186. package/node/wrappers/models/utils/decimal.js.map +1 -1
  187. package/node/wrappers/models/utils/decimal.test.js +12 -68
  188. package/node/wrappers/models/utils/decimal.test.js.map +1 -1
  189. package/node/wrappers/models/utils/decimal.test.ts +14 -76
  190. package/node/wrappers/models/utils/decimal.ts +12 -60
  191. package/node/wrappers/models/utils/serialization.test.js +0 -4
  192. package/node/wrappers/models/utils/serialization.test.js.map +1 -1
  193. package/node/wrappers/models/utils/serialization.test.ts +0 -4
  194. package/node/wrappers/requests/position/QueryPositionRequest.js +1 -1
  195. package/node/wrappers/requests/position/QueryPositionRequest.js.map +1 -1
  196. package/node/wrappers/requests/position/QueryPositionRequest.ts +1 -1
  197. package/node/wrappers/requests/query-paging.test.js +4 -28
  198. package/node/wrappers/requests/query-paging.test.js.map +1 -1
  199. package/node/wrappers/requests/query-paging.test.ts +3 -36
  200. package/node/wrappers/services/portfolio-service/PortfolioService.js +3 -3
  201. package/node/wrappers/services/portfolio-service/PortfolioService.js.map +1 -1
  202. package/node/wrappers/services/portfolio-service/PortfolioService.ts +3 -3
  203. package/node/wrappers/services/portfolio-service/portfolioService.test.js +0 -2
  204. package/node/wrappers/services/portfolio-service/portfolioService.test.js.map +1 -1
  205. package/node/wrappers/services/portfolio-service/portfolioService.test.ts +0 -2
  206. package/node/wrappers/services/price-service/PriceService.js +3 -3
  207. package/node/wrappers/services/price-service/PriceService.js.map +1 -1
  208. package/node/wrappers/services/price-service/PriceService.ts +3 -3
  209. package/node/wrappers/services/price-service/price-wrapper.test.js +2 -6
  210. package/node/wrappers/services/price-service/price-wrapper.test.js.map +1 -1
  211. package/node/wrappers/services/price-service/price-wrapper.test.ts +2 -6
  212. package/node/wrappers/services/price-service/price.test.js +8 -17
  213. package/node/wrappers/services/price-service/price.test.js.map +1 -1
  214. package/node/wrappers/services/price-service/price.test.ts +8 -14
  215. package/node/wrappers/services/searchWithSecurities.test.js +2 -7
  216. package/node/wrappers/services/searchWithSecurities.test.js.map +1 -1
  217. package/node/wrappers/services/searchWithSecurities.test.ts +2 -6
  218. package/node/wrappers/services/security-service/SecurityService.js +3 -3
  219. package/node/wrappers/services/security-service/SecurityService.js.map +1 -1
  220. package/node/wrappers/services/security-service/SecurityService.ts +3 -3
  221. package/node/wrappers/services/security-service/security.test.js +3 -7
  222. package/node/wrappers/services/security-service/security.test.js.map +1 -1
  223. package/node/wrappers/services/security-service/security.test.ts +3 -6
  224. package/node/wrappers/services/transaction-service/TransactionService.js +3 -3
  225. package/node/wrappers/services/transaction-service/TransactionService.js.map +1 -1
  226. package/node/wrappers/services/transaction-service/TransactionService.ts +3 -3
  227. package/node/wrappers/services/transaction-service/transaction.test.js +3 -8
  228. package/node/wrappers/services/transaction-service/transaction.test.js.map +1 -1
  229. package/node/wrappers/services/transaction-service/transaction.test.ts +3 -6
  230. package/node/wrappers/util/link-resolver.js +3 -3
  231. package/node/wrappers/util/link-resolver.js.map +1 -1
  232. package/node/wrappers/util/link-resolver.test.js +4 -13
  233. package/node/wrappers/util/link-resolver.test.js.map +1 -1
  234. package/node/wrappers/util/link-resolver.test.ts +4 -12
  235. package/node/wrappers/util/link-resolver.ts +3 -3
  236. package/node/wrappers/util/object-types.d.ts +21 -47
  237. package/node/wrappers/util/object-types.js +19 -178
  238. package/node/wrappers/util/object-types.js.map +1 -1
  239. package/node/wrappers/util/object-types.test.js +50 -151
  240. package/node/wrappers/util/object-types.test.js.map +1 -1
  241. package/node/wrappers/util/object-types.test.ts +55 -170
  242. package/node/wrappers/util/object-types.ts +28 -182
  243. package/package.json +1 -1
  244. package/node/wrappers/models/position/position.test copy.js +0 -107
  245. package/node/wrappers/models/position/position.test copy.js.map +0 -1
  246. package/node/wrappers/models/utils/decimal.legacy.test.d.ts +0 -1
  247. package/node/wrappers/models/utils/decimal.legacy.test.js +0 -174
  248. package/node/wrappers/models/utils/decimal.legacy.test.js.map +0 -1
  249. package/node/wrappers/models/utils/decimal.legacy.test.ts +0 -158
  250. package/node/wrappers/models/utils/decimal.typings.test.d.ts +0 -1
  251. package/node/wrappers/models/utils/decimal.typings.test.js +0 -39
  252. package/node/wrappers/models/utils/decimal.typings.test.js.map +0 -1
  253. package/node/wrappers/models/utils/decimal.typings.test.ts +0 -16
  254. package/node/wrappers/util/object-type-legacy.json +0 -21
@@ -37,6 +37,8 @@ var fintekkers_requests_valuation_product_inputs_pb = require('../../../fintekke
37
37
  goog.object.extend(proto, fintekkers_requests_valuation_product_inputs_pb);
38
38
  var fintekkers_models_util_object_type_pb = require('../../../fintekkers/models/util/object_type_pb.js');
39
39
  goog.object.extend(proto, fintekkers_models_util_object_type_pb);
40
+ var fintekkers_models_util_version_pb = require('../../../fintekkers/models/util/version_pb.js');
41
+ goog.object.extend(proto, fintekkers_models_util_version_pb);
40
42
  goog.exportSymbol('proto.fintekkers.requests.valuation.ValuationRequestProto', null, global);
41
43
  /**
42
44
  * Generated by JsPbCodeGenerator.
@@ -49,7 +51,7 @@ goog.exportSymbol('proto.fintekkers.requests.valuation.ValuationRequestProto', n
49
51
  * @constructor
50
52
  */
51
53
  proto.fintekkers.requests.valuation.ValuationRequestProto = function(opt_data) {
52
- jspb.Message.initialize(this, opt_data, 0, 500, proto.fintekkers.requests.valuation.ValuationRequestProto.repeatedFields_, null);
54
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.fintekkers.requests.valuation.ValuationRequestProto.repeatedFields_, null);
53
55
  };
54
56
  goog.inherits(proto.fintekkers.requests.valuation.ValuationRequestProto, jspb.Message);
55
57
  if (goog.DEBUG && !COMPILED) {
@@ -98,12 +100,8 @@ proto.fintekkers.requests.valuation.ValuationRequestProto.prototype.toObject = f
98
100
  */
99
101
  proto.fintekkers.requests.valuation.ValuationRequestProto.toObject = function(includeInstance, msg) {
100
102
  var f, obj = {
101
- objectClass: jspb.Message.getFieldWithDefault(msg, 1, ""),
102
- version: jspb.Message.getFieldWithDefault(msg, 2, ""),
103
- objectType: jspb.Message.getFieldWithDefault(msg, 1001, 0),
104
- versionMajor: jspb.Message.getFieldWithDefault(msg, 1002, 0),
105
- versionMinor: jspb.Message.getFieldWithDefault(msg, 1003, 0),
106
- versionPatch: jspb.Message.getFieldWithDefault(msg, 1004, 0),
103
+ objectType: jspb.Message.getFieldWithDefault(msg, 1, 0),
104
+ version: (f = msg.getVersion()) && fintekkers_models_util_version_pb.VersionProto.toObject(includeInstance, f),
107
105
  operationType: jspb.Message.getFieldWithDefault(msg, 10, 0),
108
106
  measuresList: (f = jspb.Message.getRepeatedField(msg, 30)) == null ? undefined : f,
109
107
  securityInput: (f = msg.getSecurityInput()) && fintekkers_models_security_security_pb.SecurityProto.toObject(includeInstance, f),
@@ -150,28 +148,13 @@ proto.fintekkers.requests.valuation.ValuationRequestProto.deserializeBinaryFromR
150
148
  var field = reader.getFieldNumber();
151
149
  switch (field) {
152
150
  case 1:
153
- var value = /** @type {string} */ (reader.readString());
154
- msg.setObjectClass(value);
155
- break;
156
- case 2:
157
- var value = /** @type {string} */ (reader.readString());
158
- msg.setVersion(value);
159
- break;
160
- case 1001:
161
151
  var value = /** @type {!proto.fintekkers.models.util.ObjectTypeProto} */ (reader.readEnum());
162
152
  msg.setObjectType(value);
163
153
  break;
164
- case 1002:
165
- var value = /** @type {number} */ (reader.readUint32());
166
- msg.setVersionMajor(value);
167
- break;
168
- case 1003:
169
- var value = /** @type {number} */ (reader.readUint32());
170
- msg.setVersionMinor(value);
171
- break;
172
- case 1004:
173
- var value = /** @type {number} */ (reader.readUint32());
174
- msg.setVersionPatch(value);
154
+ case 2:
155
+ var value = new fintekkers_models_util_version_pb.VersionProto;
156
+ reader.readMessage(value,fintekkers_models_util_version_pb.VersionProto.deserializeBinaryFromReader);
157
+ msg.setVersion(value);
175
158
  break;
176
159
  case 10:
177
160
  var value = /** @type {!proto.fintekkers.requests.util.RequestOperationTypeProto} */ (reader.readEnum());
@@ -247,46 +230,19 @@ proto.fintekkers.requests.valuation.ValuationRequestProto.prototype.serializeBin
247
230
  */
248
231
  proto.fintekkers.requests.valuation.ValuationRequestProto.serializeBinaryToWriter = function(message, writer) {
249
232
  var f = undefined;
250
- f = message.getObjectClass();
251
- if (f.length > 0) {
252
- writer.writeString(
253
- 1,
254
- f
255
- );
256
- }
257
- f = message.getVersion();
258
- if (f.length > 0) {
259
- writer.writeString(
260
- 2,
261
- f
262
- );
263
- }
264
233
  f = message.getObjectType();
265
234
  if (f !== 0.0) {
266
235
  writer.writeEnum(
267
- 1001,
268
- f
269
- );
270
- }
271
- f = message.getVersionMajor();
272
- if (f !== 0) {
273
- writer.writeUint32(
274
- 1002,
275
- f
276
- );
277
- }
278
- f = message.getVersionMinor();
279
- if (f !== 0) {
280
- writer.writeUint32(
281
- 1003,
236
+ 1,
282
237
  f
283
238
  );
284
239
  }
285
- f = message.getVersionPatch();
286
- if (f !== 0) {
287
- writer.writeUint32(
288
- 1004,
289
- f
240
+ f = message.getVersion();
241
+ if (f != null) {
242
+ writer.writeMessage(
243
+ 2,
244
+ f,
245
+ fintekkers_models_util_version_pb.VersionProto.serializeBinaryToWriter
290
246
  );
291
247
  }
292
248
  f = message.getOperationType();
@@ -363,47 +319,11 @@ proto.fintekkers.requests.valuation.ValuationRequestProto.serializeBinaryToWrite
363
319
 
364
320
 
365
321
  /**
366
- * optional string object_class = 1;
367
- * @return {string}
368
- */
369
- proto.fintekkers.requests.valuation.ValuationRequestProto.prototype.getObjectClass = function() {
370
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
371
- };
372
-
373
-
374
- /**
375
- * @param {string} value
376
- * @return {!proto.fintekkers.requests.valuation.ValuationRequestProto} returns this
377
- */
378
- proto.fintekkers.requests.valuation.ValuationRequestProto.prototype.setObjectClass = function(value) {
379
- return jspb.Message.setProto3StringField(this, 1, value);
380
- };
381
-
382
-
383
- /**
384
- * optional string version = 2;
385
- * @return {string}
386
- */
387
- proto.fintekkers.requests.valuation.ValuationRequestProto.prototype.getVersion = function() {
388
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
389
- };
390
-
391
-
392
- /**
393
- * @param {string} value
394
- * @return {!proto.fintekkers.requests.valuation.ValuationRequestProto} returns this
395
- */
396
- proto.fintekkers.requests.valuation.ValuationRequestProto.prototype.setVersion = function(value) {
397
- return jspb.Message.setProto3StringField(this, 2, value);
398
- };
399
-
400
-
401
- /**
402
- * optional fintekkers.models.util.ObjectTypeProto object_type = 1001;
322
+ * optional fintekkers.models.util.ObjectTypeProto object_type = 1;
403
323
  * @return {!proto.fintekkers.models.util.ObjectTypeProto}
404
324
  */
405
325
  proto.fintekkers.requests.valuation.ValuationRequestProto.prototype.getObjectType = function() {
406
- return /** @type {!proto.fintekkers.models.util.ObjectTypeProto} */ (jspb.Message.getFieldWithDefault(this, 1001, 0));
326
+ return /** @type {!proto.fintekkers.models.util.ObjectTypeProto} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
407
327
  };
408
328
 
409
329
 
@@ -412,61 +332,44 @@ proto.fintekkers.requests.valuation.ValuationRequestProto.prototype.getObjectTyp
412
332
  * @return {!proto.fintekkers.requests.valuation.ValuationRequestProto} returns this
413
333
  */
414
334
  proto.fintekkers.requests.valuation.ValuationRequestProto.prototype.setObjectType = function(value) {
415
- return jspb.Message.setProto3EnumField(this, 1001, value);
335
+ return jspb.Message.setProto3EnumField(this, 1, value);
416
336
  };
417
337
 
418
338
 
419
339
  /**
420
- * optional uint32 version_major = 1002;
421
- * @return {number}
340
+ * optional fintekkers.models.util.VersionProto version = 2;
341
+ * @return {?proto.fintekkers.models.util.VersionProto}
422
342
  */
423
- proto.fintekkers.requests.valuation.ValuationRequestProto.prototype.getVersionMajor = function() {
424
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1002, 0));
343
+ proto.fintekkers.requests.valuation.ValuationRequestProto.prototype.getVersion = function() {
344
+ return /** @type{?proto.fintekkers.models.util.VersionProto} */ (
345
+ jspb.Message.getWrapperField(this, fintekkers_models_util_version_pb.VersionProto, 2));
425
346
  };
426
347
 
427
348
 
428
349
  /**
429
- * @param {number} value
350
+ * @param {?proto.fintekkers.models.util.VersionProto|undefined} value
430
351
  * @return {!proto.fintekkers.requests.valuation.ValuationRequestProto} returns this
431
- */
432
- proto.fintekkers.requests.valuation.ValuationRequestProto.prototype.setVersionMajor = function(value) {
433
- return jspb.Message.setProto3IntField(this, 1002, value);
434
- };
435
-
436
-
437
- /**
438
- * optional uint32 version_minor = 1003;
439
- * @return {number}
440
- */
441
- proto.fintekkers.requests.valuation.ValuationRequestProto.prototype.getVersionMinor = function() {
442
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1003, 0));
352
+ */
353
+ proto.fintekkers.requests.valuation.ValuationRequestProto.prototype.setVersion = function(value) {
354
+ return jspb.Message.setWrapperField(this, 2, value);
443
355
  };
444
356
 
445
357
 
446
358
  /**
447
- * @param {number} value
359
+ * Clears the message field making it undefined.
448
360
  * @return {!proto.fintekkers.requests.valuation.ValuationRequestProto} returns this
449
361
  */
450
- proto.fintekkers.requests.valuation.ValuationRequestProto.prototype.setVersionMinor = function(value) {
451
- return jspb.Message.setProto3IntField(this, 1003, value);
362
+ proto.fintekkers.requests.valuation.ValuationRequestProto.prototype.clearVersion = function() {
363
+ return this.setVersion(undefined);
452
364
  };
453
365
 
454
366
 
455
367
  /**
456
- * optional uint32 version_patch = 1004;
457
- * @return {number}
458
- */
459
- proto.fintekkers.requests.valuation.ValuationRequestProto.prototype.getVersionPatch = function() {
460
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1004, 0));
461
- };
462
-
463
-
464
- /**
465
- * @param {number} value
466
- * @return {!proto.fintekkers.requests.valuation.ValuationRequestProto} returns this
368
+ * Returns whether this field is set.
369
+ * @return {boolean}
467
370
  */
468
- proto.fintekkers.requests.valuation.ValuationRequestProto.prototype.setVersionPatch = function(value) {
469
- return jspb.Message.setProto3IntField(this, 1004, value);
371
+ proto.fintekkers.requests.valuation.ValuationRequestProto.prototype.hasVersion = function() {
372
+ return jspb.Message.getField(this, 2) != null;
470
373
  };
471
374
 
472
375
 
@@ -10,20 +10,16 @@ import * as fintekkers_models_valuation_cashflow_pb from "../../../fintekkers/mo
10
10
  import * as fintekkers_requests_valuation_valuation_request_pb from "../../../fintekkers/requests/valuation/valuation_request_pb";
11
11
  import * as fintekkers_requests_util_errors_summary_pb from "../../../fintekkers/requests/util/errors/summary_pb";
12
12
  import * as fintekkers_models_util_object_type_pb from "../../../fintekkers/models/util/object_type_pb";
13
+ import * as fintekkers_models_util_version_pb from "../../../fintekkers/models/util/version_pb";
13
14
 
14
15
  export class ValuationResponseProto extends jspb.Message {
15
- getObjectClass(): string;
16
- setObjectClass(value: string): ValuationResponseProto;
17
- getVersion(): string;
18
- setVersion(value: string): ValuationResponseProto;
19
16
  getObjectType(): fintekkers_models_util_object_type_pb.ObjectTypeProto;
20
17
  setObjectType(value: fintekkers_models_util_object_type_pb.ObjectTypeProto): ValuationResponseProto;
21
- getVersionMajor(): number;
22
- setVersionMajor(value: number): ValuationResponseProto;
23
- getVersionMinor(): number;
24
- setVersionMinor(value: number): ValuationResponseProto;
25
- getVersionPatch(): number;
26
- setVersionPatch(value: number): ValuationResponseProto;
18
+
19
+ hasVersion(): boolean;
20
+ clearVersion(): void;
21
+ getVersion(): fintekkers_models_util_version_pb.VersionProto | undefined;
22
+ setVersion(value?: fintekkers_models_util_version_pb.VersionProto): ValuationResponseProto;
27
23
 
28
24
  hasValuationRequest(): boolean;
29
25
  clearValuationRequest(): void;
@@ -55,12 +51,8 @@ export class ValuationResponseProto extends jspb.Message {
55
51
 
56
52
  export namespace ValuationResponseProto {
57
53
  export type AsObject = {
58
- objectClass: string,
59
- version: string,
60
54
  objectType: fintekkers_models_util_object_type_pb.ObjectTypeProto,
61
- versionMajor: number,
62
- versionMinor: number,
63
- versionPatch: number,
55
+ version?: fintekkers_models_util_version_pb.VersionProto.AsObject,
64
56
  valuationRequest?: fintekkers_requests_valuation_valuation_request_pb.ValuationRequestProto.AsObject,
65
57
  measureResultsList: Array<fintekkers_models_position_position_util_pb.MeasureMapEntry.AsObject>,
66
58
  summary?: fintekkers_requests_util_errors_summary_pb.SummaryProto.AsObject,
@@ -31,6 +31,8 @@ var fintekkers_requests_util_errors_summary_pb = require('../../../fintekkers/re
31
31
  goog.object.extend(proto, fintekkers_requests_util_errors_summary_pb);
32
32
  var fintekkers_models_util_object_type_pb = require('../../../fintekkers/models/util/object_type_pb.js');
33
33
  goog.object.extend(proto, fintekkers_models_util_object_type_pb);
34
+ var fintekkers_models_util_version_pb = require('../../../fintekkers/models/util/version_pb.js');
35
+ goog.object.extend(proto, fintekkers_models_util_version_pb);
34
36
  goog.exportSymbol('proto.fintekkers.requests.valuation.ValuationResponseProto', null, global);
35
37
  /**
36
38
  * Generated by JsPbCodeGenerator.
@@ -43,7 +45,7 @@ goog.exportSymbol('proto.fintekkers.requests.valuation.ValuationResponseProto',
43
45
  * @constructor
44
46
  */
45
47
  proto.fintekkers.requests.valuation.ValuationResponseProto = function(opt_data) {
46
- jspb.Message.initialize(this, opt_data, 0, 500, proto.fintekkers.requests.valuation.ValuationResponseProto.repeatedFields_, null);
48
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.fintekkers.requests.valuation.ValuationResponseProto.repeatedFields_, null);
47
49
  };
48
50
  goog.inherits(proto.fintekkers.requests.valuation.ValuationResponseProto, jspb.Message);
49
51
  if (goog.DEBUG && !COMPILED) {
@@ -92,12 +94,8 @@ proto.fintekkers.requests.valuation.ValuationResponseProto.prototype.toObject =
92
94
  */
93
95
  proto.fintekkers.requests.valuation.ValuationResponseProto.toObject = function(includeInstance, msg) {
94
96
  var f, obj = {
95
- objectClass: jspb.Message.getFieldWithDefault(msg, 1, ""),
96
- version: jspb.Message.getFieldWithDefault(msg, 2, ""),
97
- objectType: jspb.Message.getFieldWithDefault(msg, 1001, 0),
98
- versionMajor: jspb.Message.getFieldWithDefault(msg, 1002, 0),
99
- versionMinor: jspb.Message.getFieldWithDefault(msg, 1003, 0),
100
- versionPatch: jspb.Message.getFieldWithDefault(msg, 1004, 0),
97
+ objectType: jspb.Message.getFieldWithDefault(msg, 1, 0),
98
+ version: (f = msg.getVersion()) && fintekkers_models_util_version_pb.VersionProto.toObject(includeInstance, f),
101
99
  valuationRequest: (f = msg.getValuationRequest()) && fintekkers_requests_valuation_valuation_request_pb.ValuationRequestProto.toObject(includeInstance, f),
102
100
  measureResultsList: jspb.Message.toObjectList(msg.getMeasureResultsList(),
103
101
  fintekkers_models_position_position_util_pb.MeasureMapEntry.toObject, includeInstance),
@@ -141,28 +139,13 @@ proto.fintekkers.requests.valuation.ValuationResponseProto.deserializeBinaryFrom
141
139
  var field = reader.getFieldNumber();
142
140
  switch (field) {
143
141
  case 1:
144
- var value = /** @type {string} */ (reader.readString());
145
- msg.setObjectClass(value);
146
- break;
147
- case 2:
148
- var value = /** @type {string} */ (reader.readString());
149
- msg.setVersion(value);
150
- break;
151
- case 1001:
152
142
  var value = /** @type {!proto.fintekkers.models.util.ObjectTypeProto} */ (reader.readEnum());
153
143
  msg.setObjectType(value);
154
144
  break;
155
- case 1002:
156
- var value = /** @type {number} */ (reader.readUint32());
157
- msg.setVersionMajor(value);
158
- break;
159
- case 1003:
160
- var value = /** @type {number} */ (reader.readUint32());
161
- msg.setVersionMinor(value);
162
- break;
163
- case 1004:
164
- var value = /** @type {number} */ (reader.readUint32());
165
- msg.setVersionPatch(value);
145
+ case 2:
146
+ var value = new fintekkers_models_util_version_pb.VersionProto;
147
+ reader.readMessage(value,fintekkers_models_util_version_pb.VersionProto.deserializeBinaryFromReader);
148
+ msg.setVersion(value);
166
149
  break;
167
150
  case 20:
168
151
  var value = new fintekkers_requests_valuation_valuation_request_pb.ValuationRequestProto;
@@ -213,46 +196,19 @@ proto.fintekkers.requests.valuation.ValuationResponseProto.prototype.serializeBi
213
196
  */
214
197
  proto.fintekkers.requests.valuation.ValuationResponseProto.serializeBinaryToWriter = function(message, writer) {
215
198
  var f = undefined;
216
- f = message.getObjectClass();
217
- if (f.length > 0) {
218
- writer.writeString(
219
- 1,
220
- f
221
- );
222
- }
223
- f = message.getVersion();
224
- if (f.length > 0) {
225
- writer.writeString(
226
- 2,
227
- f
228
- );
229
- }
230
199
  f = message.getObjectType();
231
200
  if (f !== 0.0) {
232
201
  writer.writeEnum(
233
- 1001,
234
- f
235
- );
236
- }
237
- f = message.getVersionMajor();
238
- if (f !== 0) {
239
- writer.writeUint32(
240
- 1002,
241
- f
242
- );
243
- }
244
- f = message.getVersionMinor();
245
- if (f !== 0) {
246
- writer.writeUint32(
247
- 1003,
202
+ 1,
248
203
  f
249
204
  );
250
205
  }
251
- f = message.getVersionPatch();
252
- if (f !== 0) {
253
- writer.writeUint32(
254
- 1004,
255
- f
206
+ f = message.getVersion();
207
+ if (f != null) {
208
+ writer.writeMessage(
209
+ 2,
210
+ f,
211
+ fintekkers_models_util_version_pb.VersionProto.serializeBinaryToWriter
256
212
  );
257
213
  }
258
214
  f = message.getValuationRequest();
@@ -291,47 +247,11 @@ proto.fintekkers.requests.valuation.ValuationResponseProto.serializeBinaryToWrit
291
247
 
292
248
 
293
249
  /**
294
- * optional string object_class = 1;
295
- * @return {string}
296
- */
297
- proto.fintekkers.requests.valuation.ValuationResponseProto.prototype.getObjectClass = function() {
298
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
299
- };
300
-
301
-
302
- /**
303
- * @param {string} value
304
- * @return {!proto.fintekkers.requests.valuation.ValuationResponseProto} returns this
305
- */
306
- proto.fintekkers.requests.valuation.ValuationResponseProto.prototype.setObjectClass = function(value) {
307
- return jspb.Message.setProto3StringField(this, 1, value);
308
- };
309
-
310
-
311
- /**
312
- * optional string version = 2;
313
- * @return {string}
314
- */
315
- proto.fintekkers.requests.valuation.ValuationResponseProto.prototype.getVersion = function() {
316
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
317
- };
318
-
319
-
320
- /**
321
- * @param {string} value
322
- * @return {!proto.fintekkers.requests.valuation.ValuationResponseProto} returns this
323
- */
324
- proto.fintekkers.requests.valuation.ValuationResponseProto.prototype.setVersion = function(value) {
325
- return jspb.Message.setProto3StringField(this, 2, value);
326
- };
327
-
328
-
329
- /**
330
- * optional fintekkers.models.util.ObjectTypeProto object_type = 1001;
250
+ * optional fintekkers.models.util.ObjectTypeProto object_type = 1;
331
251
  * @return {!proto.fintekkers.models.util.ObjectTypeProto}
332
252
  */
333
253
  proto.fintekkers.requests.valuation.ValuationResponseProto.prototype.getObjectType = function() {
334
- return /** @type {!proto.fintekkers.models.util.ObjectTypeProto} */ (jspb.Message.getFieldWithDefault(this, 1001, 0));
254
+ return /** @type {!proto.fintekkers.models.util.ObjectTypeProto} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
335
255
  };
336
256
 
337
257
 
@@ -340,61 +260,44 @@ proto.fintekkers.requests.valuation.ValuationResponseProto.prototype.getObjectTy
340
260
  * @return {!proto.fintekkers.requests.valuation.ValuationResponseProto} returns this
341
261
  */
342
262
  proto.fintekkers.requests.valuation.ValuationResponseProto.prototype.setObjectType = function(value) {
343
- return jspb.Message.setProto3EnumField(this, 1001, value);
263
+ return jspb.Message.setProto3EnumField(this, 1, value);
344
264
  };
345
265
 
346
266
 
347
267
  /**
348
- * optional uint32 version_major = 1002;
349
- * @return {number}
268
+ * optional fintekkers.models.util.VersionProto version = 2;
269
+ * @return {?proto.fintekkers.models.util.VersionProto}
350
270
  */
351
- proto.fintekkers.requests.valuation.ValuationResponseProto.prototype.getVersionMajor = function() {
352
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1002, 0));
271
+ proto.fintekkers.requests.valuation.ValuationResponseProto.prototype.getVersion = function() {
272
+ return /** @type{?proto.fintekkers.models.util.VersionProto} */ (
273
+ jspb.Message.getWrapperField(this, fintekkers_models_util_version_pb.VersionProto, 2));
353
274
  };
354
275
 
355
276
 
356
277
  /**
357
- * @param {number} value
278
+ * @param {?proto.fintekkers.models.util.VersionProto|undefined} value
358
279
  * @return {!proto.fintekkers.requests.valuation.ValuationResponseProto} returns this
359
- */
360
- proto.fintekkers.requests.valuation.ValuationResponseProto.prototype.setVersionMajor = function(value) {
361
- return jspb.Message.setProto3IntField(this, 1002, value);
362
- };
363
-
364
-
365
- /**
366
- * optional uint32 version_minor = 1003;
367
- * @return {number}
368
- */
369
- proto.fintekkers.requests.valuation.ValuationResponseProto.prototype.getVersionMinor = function() {
370
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1003, 0));
280
+ */
281
+ proto.fintekkers.requests.valuation.ValuationResponseProto.prototype.setVersion = function(value) {
282
+ return jspb.Message.setWrapperField(this, 2, value);
371
283
  };
372
284
 
373
285
 
374
286
  /**
375
- * @param {number} value
287
+ * Clears the message field making it undefined.
376
288
  * @return {!proto.fintekkers.requests.valuation.ValuationResponseProto} returns this
377
289
  */
378
- proto.fintekkers.requests.valuation.ValuationResponseProto.prototype.setVersionMinor = function(value) {
379
- return jspb.Message.setProto3IntField(this, 1003, value);
290
+ proto.fintekkers.requests.valuation.ValuationResponseProto.prototype.clearVersion = function() {
291
+ return this.setVersion(undefined);
380
292
  };
381
293
 
382
294
 
383
295
  /**
384
- * optional uint32 version_patch = 1004;
385
- * @return {number}
386
- */
387
- proto.fintekkers.requests.valuation.ValuationResponseProto.prototype.getVersionPatch = function() {
388
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1004, 0));
389
- };
390
-
391
-
392
- /**
393
- * @param {number} value
394
- * @return {!proto.fintekkers.requests.valuation.ValuationResponseProto} returns this
296
+ * Returns whether this field is set.
297
+ * @return {boolean}
395
298
  */
396
- proto.fintekkers.requests.valuation.ValuationResponseProto.prototype.setVersionPatch = function(value) {
397
- return jspb.Message.setProto3IntField(this, 1004, value);
299
+ proto.fintekkers.requests.valuation.ValuationResponseProto.prototype.hasVersion = function() {
300
+ return jspb.Message.getField(this, 2) != null;
398
301
  };
399
302
 
400
303
 
@@ -18,8 +18,6 @@ function testSerialization() {
18
18
  }
19
19
  function dummyPortfolio() {
20
20
  const portfolioProto = new portfolio_pb_1.PortfolioProto();
21
- portfolioProto.setObjectClass('Portfolio');
22
- portfolioProto.setVersion('0.0.1');
23
21
  portfolioProto.setUuid(uuid_1.UUID.random().toUUIDProto());
24
22
  portfolioProto.setPortfolioName('Test Portfolio');
25
23
  portfolioProto.setAsOf(datetime_1.ZonedDateTime.now().toProto());
@@ -1 +1 @@
1
- {"version":3,"file":"portfolio.test.js","sourceRoot":"","sources":["portfolio.test.ts"],"names":[],"mappings":";;;;;;AAAA,wCAAqC;AACrC,gDAAkD;AAElD,iCAAkC;AAClC,4DAAoC;AAEpC,oFAAmF;AAGnF,IAAI,CAAC,4BAA4B,EAAE,GAAG,EAAE;IACpC,iBAAiB,EAAE,CAAC;AACxB,CAAC,CAAC,CAAC;AAEH,SAAS,iBAAiB;IACtB,MAAM,SAAS,GAAG,cAAc,EAAE,CAAC;IAEnC,MAAM,CAAC,SAAS,CAAC,gBAAgB,EAAE,KAAK,gBAAgB,CAAC,CAAC;AAC9D,CAAC;AAED,SAAgB,cAAc;IAC1B,MAAM,cAAc,GAAG,IAAI,6BAAc,EAAE,CAAC;IAC5C,cAAc,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAC3C,cAAc,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACnC,cAAc,CAAC,OAAO,CAAC,WAAI,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;IACpD,cAAc,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAClD,cAAc,CAAC,OAAO,CAAC,wBAAa,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;IACtD,OAAO,IAAI,mBAAS,CAAC,cAAc,CAAC,CAAC;AACzC,CAAC;AARD,wCAQC"}
1
+ {"version":3,"file":"portfolio.test.js","sourceRoot":"","sources":["portfolio.test.ts"],"names":[],"mappings":";;;;;;AAAA,wCAAqC;AACrC,gDAAkD;AAElD,iCAAkC;AAClC,4DAAoC;AAEpC,oFAAmF;AAGnF,IAAI,CAAC,4BAA4B,EAAE,GAAG,EAAE;IACpC,iBAAiB,EAAE,CAAC;AACxB,CAAC,CAAC,CAAC;AAEH,SAAS,iBAAiB;IACtB,MAAM,SAAS,GAAG,cAAc,EAAE,CAAC;IAEnC,MAAM,CAAC,SAAS,CAAC,gBAAgB,EAAE,KAAK,gBAAgB,CAAC,CAAC;AAC9D,CAAC;AAED,SAAgB,cAAc;IAC1B,MAAM,cAAc,GAAG,IAAI,6BAAc,EAAE,CAAC;IAC5C,cAAc,CAAC,OAAO,CAAC,WAAI,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;IACpD,cAAc,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAClD,cAAc,CAAC,OAAO,CAAC,wBAAa,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;IACtD,OAAO,IAAI,mBAAS,CAAC,cAAc,CAAC,CAAC;AACzC,CAAC;AAND,wCAMC"}
@@ -19,8 +19,6 @@ function testSerialization(): void {
19
19
 
20
20
  export function dummyPortfolio(): Portfolio {
21
21
  const portfolioProto = new PortfolioProto();
22
- portfolioProto.setObjectClass('Portfolio');
23
- portfolioProto.setVersion('0.0.1');
24
22
  portfolioProto.setUuid(UUID.random().toUUIDProto());
25
23
  portfolioProto.setPortfolioName('Test Portfolio');
26
24
  portfolioProto.setAsOf(ZonedDateTime.now().toProto());
@@ -36,10 +36,10 @@ const datetime_1 = require("./utils/datetime");
36
36
  const portfolio_pb_1 = require("../../fintekkers/models/portfolio/portfolio_pb");
37
37
  const price_pb_1 = require("../../fintekkers/models/price/price_pb");
38
38
  const transaction_pb_1 = require("../../fintekkers/models/transaction/transaction_pb");
39
- const decimal_value_pb_1 = require("../../fintekkers/models/util/decimal_value_pb");
40
39
  const local_timestamp_pb_1 = require("../../fintekkers/models/util/local_timestamp_pb");
41
40
  const timestamp_pb_1 = require("google-protobuf/google/protobuf/timestamp_pb");
42
41
  const LinkCache = __importStar(require("../util/link-cache"));
42
+ const decimal_1 = require("./utils/decimal");
43
43
  function makeAsOf(epochSeconds = 1700000000) {
44
44
  const ts = new timestamp_pb_1.Timestamp();
45
45
  ts.setSeconds(epochSeconds);
@@ -76,8 +76,7 @@ function fullPriceProto(uuid, asOf, value) {
76
76
  p.setUuid(uuid.toUUIDProto());
77
77
  p.setAsOf(asOf.toProto());
78
78
  p.setIsLink(false);
79
- const dv = new decimal_value_pb_1.DecimalValueProto();
80
- dv.setArbitraryPrecisionValue(value);
79
+ const dv = (0, decimal_1.encodeDecimal)((0, decimal_1.parseDecimalString)(value));
81
80
  p.setPrice(dv);
82
81
  return p;
83
82
  }
@@ -1 +1 @@
1
- {"version":3,"file":"portfolio-price-transaction.lazy-hydrate.test.js","sourceRoot":"","sources":["portfolio-price-transaction.lazy-hydrate.test.ts"],"names":[],"mappings":";AAAA,mEAAmE;AACnE,+EAA+E;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE/E,sEAA8C;AAC9C,0DAAkC;AAClC,4EAAoD;AACpD,uCAAoC;AACpC,+CAAiD;AAEjD,iFAAgF;AAChF,qEAAoE;AACpE,uFAAsF;AACtF,oFAAkF;AAClF,wFAAsF;AACtF,+EAAyE;AAEzE,8DAAgD;AAEhD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;IACpD,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9B,MAAM,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;AACrD,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"portfolio-price-transaction.lazy-hydrate.test.js","sourceRoot":"","sources":["portfolio-price-transaction.lazy-hydrate.test.ts"],"names":[],"mappings":";AAAA,mEAAmE;AACnE,+EAA+E;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE/E,sEAA8C;AAC9C,0DAAkC;AAClC,4EAAoD;AACpD,uCAAoC;AACpC,+CAAiD;AAEjD,iFAAgF;AAChF,qEAAoE;AACpE,uFAAsF;AAEtF,wFAAsF;AACtF,+EAAyE;AAEzE,8DAAgD;AAChD,6CAAoE;AAEpE,SAAS,QAAQ,CAAC,YAAY,GAAG,UAAa;IAC5C,MAAM,EAAE,GAAG,IAAI,wBAAS,EAAE,CAAC;IAC3B,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IAC5B,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACf,MAAM,KAAK,GAAG,IAAI,wCAAmB,EAAE,CAAC;IACxC,KAAK,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IACvB,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACzB,OAAO,IAAI,wBAAa,CAAC,KAAK,CAAC,CAAC;AAClC,CAAC;AAED,SAAS,aAAa,CAAC,IAAU,EAAE,IAAmB;IACpD,MAAM,CAAC,GAAG,IAAI,6BAAc,EAAE,CAAC;IAC/B,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IAC9B,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IAC1B,CAAC,CAAC,SA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3B,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACzB,MAAM,CAAC,GAAG,IAAI,qBAAW,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;IACpD,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;AACtE,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,gDAAgD,EAAE,GAAG,EAAE;IAC1D,MAAM,IAAI,GAAG,WAAI,CAAC,MAAM,EAAE,CAAC;IAC3B,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACzB,oEAAoE;IACpE,MAAM,CAAC,GAAG,IAAI,qBAAW,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;IACpD,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9B,MAAM,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;AACrD,CAAC,CAAC,CAAC"}
@@ -15,6 +15,7 @@ import { LocalTimestampProto } from '../../fintekkers/models/util/local_timestam
15
15
  import { Timestamp } from 'google-protobuf/google/protobuf/timestamp_pb';
16
16
 
17
17
  import * as LinkCache from '../util/link-cache';
18
+ import { encodeDecimal, parseDecimalString } from './utils/decimal';
18
19
 
19
20
  function makeAsOf(epochSeconds = 1_700_000_000): ZonedDateTime {
20
21
  const ts = new Timestamp();
@@ -56,8 +57,7 @@ function fullPriceProto(uuid: UUID, asOf: ZonedDateTime, value: string): PricePr
56
57
  p.setUuid(uuid.toUUIDProto());
57
58
  p.setAsOf(asOf.toProto());
58
59
  p.setIsLink(false);
59
- const dv = new DecimalValueProto();
60
- dv.setArbitraryPrecisionValue(value);
60
+ const dv = encodeDecimal(parseDecimalString(value));
61
61
  p.setPrice(dv);
62
62
  return p;
63
63
  }