@fintekkers/ledger-models 0.1.96 → 0.1.97

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 (202) hide show
  1. package/node/fintekkers/models/portfolio/portfolio_grpc_pb.js +1 -0
  2. package/node/fintekkers/models/position/field_grpc_pb.js +1 -0
  3. package/node/fintekkers/models/position/measure_grpc_pb.js +1 -0
  4. package/node/fintekkers/models/position/position_filter_grpc_pb.js +1 -0
  5. package/node/fintekkers/models/position/position_grpc_pb.js +1 -0
  6. package/node/fintekkers/models/position/position_status_grpc_pb.js +1 -0
  7. package/node/fintekkers/models/position/position_util_grpc_pb.js +1 -0
  8. package/node/fintekkers/models/price/price_grpc_pb.js +1 -0
  9. package/node/fintekkers/models/security/bond/auction_type_grpc_pb.js +1 -0
  10. package/node/fintekkers/models/security/bond/issuance_grpc_pb.js +1 -0
  11. package/node/fintekkers/models/security/coupon_frequency_grpc_pb.js +1 -0
  12. package/node/fintekkers/models/security/coupon_type_grpc_pb.js +1 -0
  13. package/node/fintekkers/models/security/identifier/identifier_grpc_pb.js +1 -0
  14. package/node/fintekkers/models/security/identifier/identifier_type_grpc_pb.js +1 -0
  15. package/node/fintekkers/models/security/security_grpc_pb.js +1 -0
  16. package/node/fintekkers/models/security/security_pb.test.d.ts +1 -0
  17. package/node/fintekkers/models/security/security_pb.test.js +10 -10
  18. package/node/fintekkers/models/security/security_pb.test.js.map +1 -1
  19. package/node/fintekkers/models/security/security_quantity_type_grpc_pb.js +1 -0
  20. package/node/fintekkers/models/security/security_type_grpc_pb.js +1 -0
  21. package/node/fintekkers/models/security/tenor_grpc_pb.js +1 -0
  22. package/node/fintekkers/models/security/tenor_type_grpc_pb.js +1 -0
  23. package/node/fintekkers/models/strategy/strategy_allocation_grpc_pb.js +1 -0
  24. package/node/fintekkers/models/strategy/strategy_grpc_pb.js +1 -0
  25. package/node/fintekkers/models/transaction/transaction_grpc_pb.js +1 -0
  26. package/node/fintekkers/models/transaction/transaction_type_grpc_pb.js +1 -0
  27. package/node/fintekkers/models/util/api/api_key_grpc_pb.js +1 -0
  28. package/node/fintekkers/models/util/date_range_grpc_pb.js +1 -0
  29. package/node/fintekkers/models/util/date_range_pb.d.ts +43 -0
  30. package/node/fintekkers/models/util/date_range_pb.js +310 -0
  31. package/node/fintekkers/models/util/decimal_value_grpc_pb.js +1 -0
  32. package/node/fintekkers/models/util/endpoint_grpc_pb.js +1 -0
  33. package/node/fintekkers/models/util/local_date_grpc_pb.js +1 -0
  34. package/node/fintekkers/models/util/local_timestamp_grpc_pb.js +1 -0
  35. package/node/fintekkers/models/util/lock/node_partition_grpc_pb.js +1 -0
  36. package/node/fintekkers/models/util/lock/node_state_grpc_pb.js +1 -0
  37. package/node/fintekkers/models/util/uuid_grpc_pb.js +1 -0
  38. package/node/fintekkers/requests/portfolio/create_portfolio_request_grpc_pb.js +1 -0
  39. package/node/fintekkers/requests/portfolio/create_portfolio_response_grpc_pb.js +1 -0
  40. package/node/fintekkers/requests/portfolio/query_portfolio_request_grpc_pb.js +1 -0
  41. package/node/fintekkers/requests/portfolio/query_portfolio_response_grpc_pb.js +1 -0
  42. package/node/fintekkers/requests/position/query_position_request_grpc_pb.js +1 -0
  43. package/node/fintekkers/requests/position/query_position_response_grpc_pb.js +1 -0
  44. package/node/fintekkers/requests/price/create_price_request_grpc_pb.js +1 -0
  45. package/node/fintekkers/requests/price/create_price_response_grpc_pb.js +1 -0
  46. package/node/fintekkers/requests/price/query_price_request_grpc_pb.js +1 -0
  47. package/node/fintekkers/requests/price/query_price_request_pb.d.ts +47 -0
  48. package/node/fintekkers/requests/price/query_price_request_pb.js +190 -2
  49. package/node/fintekkers/requests/price/query_price_response_grpc_pb.js +1 -0
  50. package/node/fintekkers/requests/security/create_security_request_grpc_pb.js +1 -0
  51. package/node/fintekkers/requests/security/create_security_response_grpc_pb.js +1 -0
  52. package/node/fintekkers/requests/security/get_field_values_request_grpc_pb.js +1 -0
  53. package/node/fintekkers/requests/security/get_field_values_request_pb.js +238 -0
  54. package/node/fintekkers/requests/security/get_field_values_response_grpc_pb.js +1 -0
  55. package/node/fintekkers/requests/security/get_field_values_response_pb.js +268 -0
  56. package/node/fintekkers/requests/security/get_fields_response_grpc_pb.js +1 -0
  57. package/node/fintekkers/requests/security/get_fields_response_pb.js +266 -0
  58. package/node/fintekkers/requests/security/query_security_request_grpc_pb.js +1 -0
  59. package/node/fintekkers/requests/security/query_security_response_grpc_pb.js +1 -0
  60. package/node/fintekkers/requests/transaction/create_transaction_request_grpc_pb.js +1 -0
  61. package/node/fintekkers/requests/transaction/create_transaction_response_grpc_pb.js +1 -0
  62. package/node/fintekkers/requests/transaction/query_transaction_request_grpc_pb.js +1 -0
  63. package/node/fintekkers/requests/transaction/query_transaction_response_grpc_pb.js +1 -0
  64. package/node/fintekkers/requests/util/errors/error_grpc_pb.js +1 -0
  65. package/node/fintekkers/requests/util/errors/message_grpc_pb.js +1 -0
  66. package/node/fintekkers/requests/util/errors/summary_grpc_pb.js +1 -0
  67. package/node/fintekkers/requests/util/lock/lock_request_grpc_pb.js +1 -0
  68. package/node/fintekkers/requests/util/lock/lock_request_pb.js +54 -1
  69. package/node/fintekkers/requests/util/lock/lock_response_grpc_pb.js +1 -0
  70. package/node/fintekkers/requests/util/operation_grpc_pb.js +1 -0
  71. package/node/fintekkers/requests/valuation/valuation_request_grpc_pb.js +1 -0
  72. package/node/fintekkers/requests/valuation/valuation_response_grpc_pb.js +1 -0
  73. package/node/wrappers/models/portfolio/portfolio.d.ts +15 -0
  74. package/node/wrappers/models/portfolio/portfolio.js +26 -21
  75. package/node/wrappers/models/portfolio/portfolio.js.map +1 -1
  76. package/node/wrappers/models/portfolio/portfolio.ts +6 -2
  77. package/node/wrappers/models/position/field.d.ts +7 -0
  78. package/node/wrappers/models/position/field.js +10 -14
  79. package/node/wrappers/models/position/field.js.map +1 -1
  80. package/node/wrappers/models/position/field.test.d.ts +1 -0
  81. package/node/wrappers/models/position/field.test.js +10 -48
  82. package/node/wrappers/models/position/field.test.js.map +1 -1
  83. package/node/wrappers/models/position/field.ts +1 -2
  84. package/node/wrappers/models/position/position.d.ts +32 -0
  85. package/node/wrappers/models/position/position.js +89 -83
  86. package/node/wrappers/models/position/position.js.map +1 -1
  87. package/node/wrappers/models/position/position.test.d.ts +1 -0
  88. package/node/wrappers/models/position/position.test.js +128 -198
  89. package/node/wrappers/models/position/position.test.js.map +1 -1
  90. package/node/wrappers/models/position/position.test.ts +1 -1
  91. package/node/wrappers/models/position/position.ts +19 -12
  92. package/node/wrappers/models/position/positionfilter.d.ts +24 -0
  93. package/node/wrappers/models/position/positionfilter.js +19 -20
  94. package/node/wrappers/models/position/positionfilter.js.map +1 -1
  95. package/node/wrappers/models/position/positionfilter.ts +1 -1
  96. package/node/wrappers/models/security/security.d.ts +23 -0
  97. package/node/wrappers/models/security/security.js +55 -44
  98. package/node/wrappers/models/security/security.js.map +1 -1
  99. package/node/wrappers/models/security/security.test.d.ts +1 -0
  100. package/node/wrappers/models/security/security.test.js +14 -11
  101. package/node/wrappers/models/security/security.test.js.map +1 -1
  102. package/node/wrappers/models/security/security.ts +13 -6
  103. package/node/wrappers/models/transaction/transaction.d.ts +36 -0
  104. package/node/wrappers/models/transaction/transaction.js +98 -68
  105. package/node/wrappers/models/transaction/transaction.js.map +1 -1
  106. package/node/wrappers/models/transaction/transaction.test.d.ts +1 -0
  107. package/node/wrappers/models/transaction/transaction.test.js +12 -9
  108. package/node/wrappers/models/transaction/transaction.test.js.map +1 -1
  109. package/node/wrappers/models/transaction/transaction.ts +30 -12
  110. package/node/wrappers/models/transaction/transaction_type.d.ts +17 -0
  111. package/node/wrappers/models/transaction/transaction_type.js +12 -12
  112. package/node/wrappers/models/transaction/transaction_type.js.map +1 -1
  113. package/node/wrappers/models/transaction/transaction_type.ts +5 -5
  114. package/node/wrappers/models/utils/date.d.ts +11 -0
  115. package/node/wrappers/models/utils/date.js +16 -17
  116. package/node/wrappers/models/utils/date.js.map +1 -1
  117. package/node/wrappers/models/utils/date.test.d.ts +1 -0
  118. package/node/wrappers/models/utils/date.test.js +28 -58
  119. package/node/wrappers/models/utils/date.test.js.map +1 -1
  120. package/node/wrappers/models/utils/date.ts +1 -1
  121. package/node/wrappers/models/utils/datetime.d.ts +14 -0
  122. package/node/wrappers/models/utils/datetime.js +41 -34
  123. package/node/wrappers/models/utils/datetime.js.map +1 -1
  124. package/node/wrappers/models/utils/datetime.test.d.ts +1 -0
  125. package/node/wrappers/models/utils/datetime.test.js +40 -70
  126. package/node/wrappers/models/utils/datetime.test.js.map +1 -1
  127. package/node/wrappers/models/utils/datetime.ts +13 -8
  128. package/node/wrappers/models/utils/protoEnum.d.ts +12 -0
  129. package/node/wrappers/models/utils/protoEnum.js +22 -24
  130. package/node/wrappers/models/utils/protoEnum.js.map +1 -1
  131. package/node/wrappers/models/utils/protoEnum.test.d.ts +1 -0
  132. package/node/wrappers/models/utils/protoEnum.test.js +13 -13
  133. package/node/wrappers/models/utils/protoEnum.test.js.map +1 -1
  134. package/node/wrappers/models/utils/requestcontext.d.ts +13 -0
  135. package/node/wrappers/models/utils/requestcontext.js +52 -44
  136. package/node/wrappers/models/utils/requestcontext.js.map +1 -1
  137. package/node/wrappers/models/utils/requestcontext.ts +15 -15
  138. package/node/wrappers/models/utils/requestcontext_d.d.ts +6 -0
  139. package/node/wrappers/models/utils/requestcontext_d.js +1 -0
  140. package/node/wrappers/models/utils/serialization.d.ts +12 -0
  141. package/node/wrappers/models/utils/serialization.js +19 -22
  142. package/node/wrappers/models/utils/serialization.js.map +1 -1
  143. package/node/wrappers/models/utils/serialization.test.d.ts +1 -0
  144. package/node/wrappers/models/utils/serialization.test.js +14 -14
  145. package/node/wrappers/models/utils/serialization.test.js.map +1 -1
  146. package/node/wrappers/models/utils/serialization.ts +1 -1
  147. package/node/wrappers/models/utils/serialization.util.d.ts +4 -0
  148. package/node/wrappers/models/utils/serialization.util.js +25 -25
  149. package/node/wrappers/models/utils/serialization.util.js.map +1 -1
  150. package/node/wrappers/models/utils/serialization.util.test.d.ts +1 -0
  151. package/node/wrappers/models/utils/serialization.util.test.js +15 -15
  152. package/node/wrappers/models/utils/serialization.util.test.js.map +1 -1
  153. package/node/wrappers/models/utils/serialization.util.ts +5 -5
  154. package/node/wrappers/models/utils/uuid.d.ts +13 -0
  155. package/node/wrappers/models/utils/uuid.js +53 -31
  156. package/node/wrappers/models/utils/uuid.js.map +1 -1
  157. package/node/wrappers/models/utils/uuid.test.d.ts +1 -0
  158. package/node/wrappers/models/utils/uuid.test.js +7 -7
  159. package/node/wrappers/models/utils/uuid.test.js.map +1 -1
  160. package/node/wrappers/models/utils/uuid.ts +1 -1
  161. package/node/wrappers/requests/position/QueryPositionRequest.d.ts +19 -0
  162. package/node/wrappers/requests/position/QueryPositionRequest.js +19 -20
  163. package/node/wrappers/requests/position/QueryPositionRequest.js.map +1 -1
  164. package/node/wrappers/services/portfolio-service/PortfolioService.d.ts +15 -0
  165. package/node/wrappers/services/portfolio-service/PortfolioService.js +58 -109
  166. package/node/wrappers/services/portfolio-service/PortfolioService.js.map +1 -1
  167. package/node/wrappers/services/portfolio-service/PortfolioService.ts +2 -2
  168. package/node/wrappers/services/portfolio-service/portfolioService.test.d.ts +1 -0
  169. package/node/wrappers/services/portfolio-service/portfolioService.test.js +47 -64
  170. package/node/wrappers/services/portfolio-service/portfolioService.test.js.map +1 -1
  171. package/node/wrappers/services/position-service/PositionService.d.ts +10 -0
  172. package/node/wrappers/services/position-service/PositionService.js +45 -83
  173. package/node/wrappers/services/position-service/PositionService.js.map +1 -1
  174. package/node/wrappers/services/position-service/position.test.d.ts +1 -0
  175. package/node/wrappers/services/position-service/position.test.js +52 -118
  176. package/node/wrappers/services/position-service/position.test.js.map +1 -1
  177. package/node/wrappers/services/position-service/position.test.ts +7 -1
  178. package/node/wrappers/services/security-service/SecurityService.d.ts +15 -0
  179. package/node/wrappers/services/security-service/SecurityService.js +86 -117
  180. package/node/wrappers/services/security-service/SecurityService.js.map +1 -1
  181. package/node/wrappers/services/security-service/SecurityService.ts +2 -2
  182. package/node/wrappers/services/security-service/security.maturityLadder.test.d.ts +1 -0
  183. package/node/wrappers/services/security-service/security.maturityLadder.test.js +40 -75
  184. package/node/wrappers/services/security-service/security.maturityLadder.test.js.map +1 -1
  185. package/node/wrappers/services/security-service/security.maturityLadder.test.ts +1 -1
  186. package/node/wrappers/services/security-service/security.test.d.ts +1 -0
  187. package/node/wrappers/services/security-service/security.test.js +88 -114
  188. package/node/wrappers/services/security-service/security.test.js.map +1 -1
  189. package/node/wrappers/services/security-service/security.test.ts +2 -2
  190. package/node/wrappers/services/transaction-service/TransactionService.d.ts +13 -0
  191. package/node/wrappers/services/transaction-service/TransactionService.js +53 -98
  192. package/node/wrappers/services/transaction-service/TransactionService.js.map +1 -1
  193. package/node/wrappers/services/transaction-service/TransactionService.ts +2 -2
  194. package/node/wrappers/services/transaction-service/transaction.search.test.d.ts +1 -0
  195. package/node/wrappers/services/transaction-service/transaction.search.test.js +51 -70
  196. package/node/wrappers/services/transaction-service/transaction.search.test.js.map +1 -1
  197. package/node/wrappers/services/transaction-service/transaction.test.d.ts +1 -0
  198. package/node/wrappers/services/transaction-service/transaction.test.js +127 -171
  199. package/node/wrappers/services/transaction-service/transaction.test.js.map +1 -1
  200. package/node/wrappers/services/transaction-service/transaction.test.ts +3 -1
  201. package/package.json +4 -1
  202. package/tsconfig.json +15 -6
@@ -8,76 +8,46 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
11
  Object.defineProperty(exports, "__esModule", { value: true });
39
- var field_pb_1 = require("../../../fintekkers/models/position/field_pb");
40
- var position_pb_1 = require("../../../fintekkers/models/position/position_pb");
41
- var position_util_pb_1 = require("../../../fintekkers/models/position/position_util_pb");
42
- var position_1 = require("../position/position");
43
- var datetime_1 = require("./datetime");
44
- var any_pb_1 = require("google-protobuf/google/protobuf/any_pb");
45
- var local_timestamp_pb_1 = require("../../../fintekkers/models/util/local_timestamp_pb");
46
- var timestamp_pb_js_1 = require("google-protobuf/google/protobuf/timestamp_pb.js");
12
+ const field_pb_1 = require("../../../fintekkers/models/position/field_pb");
13
+ const position_pb_1 = require("../../../fintekkers/models/position/position_pb");
14
+ const position_util_pb_1 = require("../../../fintekkers/models/position/position_util_pb");
15
+ const position_1 = require("../position/position");
16
+ const datetime_1 = require("./datetime");
17
+ const any_pb_1 = require("google-protobuf/google/protobuf/any_pb");
18
+ const local_timestamp_pb_1 = require("../../../fintekkers/models/util/local_timestamp_pb");
19
+ const timestamp_pb_js_1 = require("google-protobuf/google/protobuf/timestamp_pb.js");
47
20
  // import Timestamp from "google-protobuf/google/protobuf/timestamp_pb";
48
- test('test the date time', function () { return __awaiter(void 0, void 0, void 0, function () {
49
- var localTimestampProto, timestamp, now, nowTimestampString, nowProto, nowPacked, position, field1, pos, timestampStr;
50
- return __generator(this, function (_a) {
51
- localTimestampProto = new local_timestamp_pb_1.LocalTimestampProto();
52
- timestamp = new timestamp_pb_js_1.Timestamp();
53
- timestamp.setSeconds(1643723400); // Set the seconds
54
- timestamp.setNanos(0); // Set the nanoseconds
55
- localTimestampProto.setTimestamp(timestamp);
56
- // Set the time zone
57
- localTimestampProto.setTimeZone('America/New_York');
58
- now = new datetime_1.ZonedDateTime(localTimestampProto);
59
- nowTimestampString = now.toDateTime().toString();
60
- expect(nowTimestampString).toContain("2022-02-01");
61
- expect(nowTimestampString).toContain("08:50:00");
62
- nowProto = now.toProto();
63
- nowPacked = new any_pb_1.Any();
64
- nowPacked.setTypeUrl("DUMMYTYPE_DATE");
65
- nowPacked.setValue(nowProto.serializeBinary());
66
- position = new position_pb_1.PositionProto();
67
- // Set properties
68
- position.setObjectClass(' MyClass');
69
- position.setVersion('1.0');
70
- position.setPositionView(position_pb_1.PositionViewProto.DEFAULT_VIEW);
71
- position.setPositionType(position_pb_1.PositionTypeProto.TRANSACTION);
72
- field1 = new position_util_pb_1.FieldMapEntry();
73
- field1.setField(field_pb_1.FieldProto.AS_OF);
74
- field1.setFieldValuePacked(nowPacked);
75
- position.addFields(field1);
76
- pos = new position_1.Position(position);
77
- timestampStr = pos.getFieldDisplay(field1);
78
- //Expect timestamp match
79
- expect(timestampStr).toMatch(/^[0-9]{4}\/[0-9]{2}\/[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}$/);
80
- return [2 /*return*/];
81
- });
82
- }); });
21
+ test('test the date time', () => __awaiter(void 0, void 0, void 0, function* () {
22
+ const localTimestampProto = new local_timestamp_pb_1.LocalTimestampProto();
23
+ const timestamp = new timestamp_pb_js_1.Timestamp();
24
+ timestamp.setSeconds(1643723400); // Set the seconds
25
+ timestamp.setNanos(0); // Set the nanoseconds
26
+ localTimestampProto.setTimestamp(timestamp);
27
+ // Set the time zone
28
+ localTimestampProto.setTimeZone('America/New_York');
29
+ const now = new datetime_1.ZonedDateTime(localTimestampProto);
30
+ let nowTimestampString = now.toDateTime().toString();
31
+ expect(nowTimestampString).toContain("2022-02-01");
32
+ expect(nowTimestampString).toContain("08:50:00");
33
+ const nowProto = now.toProto();
34
+ const nowPacked = new any_pb_1.Any();
35
+ nowPacked.setTypeUrl(`DUMMYTYPE_DATE`);
36
+ nowPacked.setValue(nowProto.serializeBinary());
37
+ const position = new position_pb_1.PositionProto();
38
+ // Set properties
39
+ position.setObjectClass(' MyClass');
40
+ position.setVersion('1.0');
41
+ position.setPositionView(position_pb_1.PositionViewProto.DEFAULT_VIEW);
42
+ position.setPositionType(position_pb_1.PositionTypeProto.TRANSACTION);
43
+ // Add fields
44
+ const field1 = new position_util_pb_1.FieldMapEntry();
45
+ field1.setField(field_pb_1.FieldProto.AS_OF);
46
+ field1.setFieldValuePacked(nowPacked);
47
+ position.addFields(field1);
48
+ const pos = new position_1.Position(position);
49
+ const timestampStr = pos.getFieldDisplay(field1);
50
+ //Expect timestamp match
51
+ expect(timestampStr).toMatch(/^[0-9]{4}\/[0-9]{2}\/[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}$/);
52
+ }));
83
53
  //# sourceMappingURL=datetime.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"datetime.test.js","sourceRoot":"","sources":["datetime.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,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{DateTime} from 'luxon';
1
+ import { LocalTimestampProto } from '../../../fintekkers/models/util/local_timestamp_pb';
2
+ import { Timestamp } from 'google-protobuf/google/protobuf/timestamp_pb';
3
+ import { DateTime } from 'luxon';
4
4
 
5
5
  class ZonedDateTime {
6
6
  private proto: LocalTimestampProto;
@@ -14,17 +14,22 @@ class ZonedDateTime {
14
14
  }
15
15
 
16
16
  getSeconds(): number {
17
- return this.proto.getTimestamp().getSeconds();
17
+ const timestamp = this.proto.getTimestamp();
18
+ if (!timestamp) throw new Error("Timestamp is required");
19
+ return timestamp.getSeconds();
18
20
  }
19
21
 
20
22
  getNanoSeconds(): number {
21
- return this.proto.getTimestamp().getNanos();
23
+ const timestamp = this.proto.getTimestamp();
24
+ if (!timestamp) throw new Error("Timestamp is required");
25
+ return timestamp.getNanos();
22
26
  }
23
27
 
24
28
  toDateTime(): DateTime {
25
- // Creating a DateTime object with the current date and time in a specific time zone (e.g., 'America/New_York')
26
- const unixTimestampSeconds = this.proto.getTimestamp().getSeconds();
27
- const nanoseconds = this.proto.getTimestamp().getNanos();
29
+ const timestamp = this.proto.getTimestamp();
30
+ if (!timestamp) throw new Error("Timestamp is required");
31
+ const unixTimestampSeconds = timestamp.getSeconds();
32
+ const nanoseconds = timestamp.getNanos();
28
33
 
29
34
  let dateTime = DateTime.fromSeconds(unixTimestampSeconds, { zone: this.proto.getTimeZone() });
30
35
 
@@ -0,0 +1,12 @@
1
+ export declare class ProtoEnum {
2
+ private enumValue;
3
+ private enumDescriptor;
4
+ constructor(enumDescriptor: any, enumValue: number);
5
+ static fromEnumName(enumName: string, enumValue: number): ProtoEnum;
6
+ private static getFieldDescriptorFromName;
7
+ getEnumDescriptor(): string;
8
+ getEnumName(): Error;
9
+ getEnumValue(): number;
10
+ getEnumValueName(): string;
11
+ toString(): string;
12
+ }
@@ -1,18 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ProtoEnum = void 0;
4
- var transaction_type_pb_1 = require("../../../fintekkers/models/transaction/transaction_type_pb");
5
- var position_status_pb_1 = require("../../../fintekkers/models/position/position_status_pb");
6
- var field_pb_1 = require("../../../fintekkers/models/position/field_pb");
7
- var ProtoEnum = /** @class */ (function () {
8
- function ProtoEnum(enumDescriptor, enumValue) {
4
+ const transaction_type_pb_1 = require("../../../fintekkers/models/transaction/transaction_type_pb");
5
+ const position_status_pb_1 = require("../../../fintekkers/models/position/position_status_pb");
6
+ const field_pb_1 = require("../../../fintekkers/models/position/field_pb");
7
+ class ProtoEnum {
8
+ constructor(enumDescriptor, enumValue) {
9
9
  this.enumValue = enumValue;
10
10
  this.enumDescriptor = enumDescriptor;
11
11
  }
12
- ProtoEnum.fromEnumName = function (enumName, enumValue) {
12
+ static fromEnumName(enumName, enumValue) {
13
13
  return new ProtoEnum(ProtoEnum.getFieldDescriptorFromName(enumName), enumValue);
14
- };
15
- ProtoEnum.getFieldDescriptorFromName = function (enumName) {
14
+ }
15
+ static getFieldDescriptorFromName(enumName) {
16
16
  if (enumName === "TRANSACTION_TYPE") {
17
17
  return transaction_type_pb_1.TransactionTypeProto;
18
18
  }
@@ -22,33 +22,31 @@ var ProtoEnum = /** @class */ (function () {
22
22
  if (enumName === "FIELD") {
23
23
  return field_pb_1.FieldProto;
24
24
  }
25
- throw new Error("Enum has not been mapped: ".concat(enumName));
26
- };
27
- ProtoEnum.prototype.getEnumDescriptor = function () {
25
+ throw new Error(`Enum has not been mapped: ${enumName}`);
26
+ }
27
+ getEnumDescriptor() {
28
28
  return this.enumDescriptor;
29
- };
30
- ProtoEnum.prototype.getEnumName = function () {
29
+ }
30
+ getEnumName() {
31
31
  // Assuming your enumDescriptor has a name property or similar
32
32
  throw new Error("Not supported currently");
33
33
  // return this.enumDescriptor.name;
34
- };
35
- ProtoEnum.prototype.getEnumValue = function () {
34
+ }
35
+ getEnumValue() {
36
36
  return this.enumValue;
37
- };
38
- ProtoEnum.prototype.getEnumValueName = function () {
39
- var _this = this;
37
+ }
38
+ getEnumValueName() {
40
39
  // In TypeScript/JS, enum values can be accessed directly if you know the value
41
40
  // Assuming your enums are simple objects or as generated by protobuf ts
42
- var enumKey = Object.keys(this.enumDescriptor).find(function (key) { return _this.enumDescriptor[key] === _this.enumValue; });
41
+ const enumKey = Object.keys(this.enumDescriptor).find(key => this.enumDescriptor[key] === this.enumValue);
43
42
  if (!enumKey) {
44
43
  return 'UNKNOWN'; // Or handle as appropriate
45
44
  }
46
45
  return enumKey;
47
- };
48
- ProtoEnum.prototype.toString = function () {
46
+ }
47
+ toString() {
49
48
  return this.getEnumValueName();
50
- };
51
- return ProtoEnum;
52
- }());
49
+ }
50
+ }
53
51
  exports.ProtoEnum = ProtoEnum;
54
52
  //# sourceMappingURL=protoEnum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"protoEnum.js","sourceRoot":"","sources":["protoEnum.ts"],"names":[],"mappings":";;;AACA,kGAAkG;AAClG,6FAA6F;AAC7F,yEAA0E;AAE1E;IAII,mBAAY,cAAmB,EAAE,SAAiB;QAC9C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACzC,CAAC;IAEM,sBAAY,GAAnB,UAAoB,QAAgB,EAAE,SAAiB;QACnD,OAAO,IAAI,SAAS,CAAC,SAAS,CAAC,0BAA0B,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,CAAC;IACpF,CAAC;IAEc,oCAA0B,GAAzC,UAA0C,QAAgB;QACtD,IAAI,QAAQ,KAAK,kBAAkB,EAAE;YACjC,OAAO,0CAAoB,CAAC;SAC/B;QACD,IAAI,QAAQ,KAAK,iBAAiB,EAAE;YAChC,OAAO,wCAAmB,CAAC;SAC9B;QACD,IAAI,QAAQ,KAAK,OAAO,EAAE;YACtB,OAAO,qBAAU,CAAC;SACrB;QACD,MAAM,IAAI,KAAK,CAAC,oCAA6B,QAAQ,CAAE,CAAC,CAAC;IAC7D,CAAC;IAED,qCAAiB,GAAj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AC;YAClC,OAAO,0CAAoB,CAAC;QAChC,CAAC;QACD,IAAI,QAAQ,KAAK,iBAAiB,EAAE,CAAC;YACjC,OAAO,wCAAmB,CAAC;QAC/B,CAAC;QACD,IAAI,QAAQ,KAAK,OAAO,EAAE,CAAC;YACvB,OAAO,qBAAU,CAAC;QACtB,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,6BAA6B,QAAQ,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED,iBAAiB;QACb,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IAED,WAAW;QACP,8DAA8D;QAC9D,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC3C,oCAAoC;IACxC,CAAC;IAED,YAAY;QACR,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED,gBAAgB;QACZ,+EAA+E;QAC/E,wEAAwE;QACxE,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC;QAC1G,IAAI,CAAC,OAAO,EAAE,CAAC;YACX,OAAO,SAAS,CAAC,CAAC,2BAA2B;QACjD,CAAC;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,QAAQ;QACJ,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACnC,CAAC;CACJ;AArDD,8BAqDC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -1,24 +1,24 @@
1
1
  "use strict";
2
2
  // ProtoEnum.test.ts
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- var position_status_pb_1 = require("../../../fintekkers/models/position/position_status_pb");
5
- var transaction_type_pb_1 = require("../../../fintekkers/models/transaction/transaction_type_pb");
6
- var protoEnum_1 = require("./protoEnum");
7
- describe('ProtoEnum', function () {
8
- it('should correctly identify the name of the enum value for TransactionTypeProto', function () {
9
- var protoEnum = new protoEnum_1.ProtoEnum(transaction_type_pb_1.TransactionTypeProto, 1);
4
+ const position_status_pb_1 = require("../../../fintekkers/models/position/position_status_pb");
5
+ const transaction_type_pb_1 = require("../../../fintekkers/models/transaction/transaction_type_pb");
6
+ const protoEnum_1 = require("./protoEnum");
7
+ describe('ProtoEnum', () => {
8
+ it('should correctly identify the name of the enum value for TransactionTypeProto', () => {
9
+ const protoEnum = new protoEnum_1.ProtoEnum(transaction_type_pb_1.TransactionTypeProto, 1);
10
10
  expect(protoEnum.getEnumValueName()).toEqual('BUY');
11
11
  });
12
- it('should correctly return the enum value for PositionStatusProto', function () {
13
- var protoEnum = new protoEnum_1.ProtoEnum(position_status_pb_1.PositionStatusProto.INTENDED, 2);
12
+ it('should correctly return the enum value for PositionStatusProto', () => {
13
+ const protoEnum = new protoEnum_1.ProtoEnum(position_status_pb_1.PositionStatusProto.INTENDED, 2);
14
14
  expect(protoEnum.getEnumValue()).toEqual(2);
15
15
  });
16
- it('should correctly return the enum name for PositionStatusProto', function () {
17
- var protoEnum = new protoEnum_1.ProtoEnum(position_status_pb_1.PositionStatusProto.INTENDED, 2);
18
- expect(function () { return protoEnum.getEnumName(); }).toThrow(Error);
16
+ it('should correctly return the enum name for PositionStatusProto', () => {
17
+ const protoEnum = new protoEnum_1.ProtoEnum(position_status_pb_1.PositionStatusProto.INTENDED, 2);
18
+ expect(() => protoEnum.getEnumName()).toThrow(Error);
19
19
  });
20
- it('should throw an error for an unmapped enum name', function () {
21
- expect(function () { return protoEnum_1.ProtoEnum.fromEnumName('UNMAPPED_ENUM', 0); }).toThrow('Enum has not been mapped: UNMAPPED_ENUM');
20
+ it('should throw an error for an unmapped enum name', () => {
21
+ expect(() => protoEnum_1.ProtoEnum.fromEnumName('UNMAPPED_ENUM', 0)).toThrow('Enum has not been mapped: UNMAPPED_ENUM');
22
22
  });
23
23
  // Add more tests as necessary to cover your use cases
24
24
  });
@@ -1 +1 @@
1
- {"version":3,"file":"protoEnum.test.js","sourceRoot":"","sources":["protoEnum.test.ts"],"names":[],"mappings":";AAAA,oBAAoB;;AAEpB,6FAA6F;AAC7F,kGAAkG;AAClG,yCAAwC;AAExC,QAAQ,CAAC,WAAW,EAAE;IAClB,EAAE,CAAC,+EAA+E,EAAE;QAChF,IAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,0CAAoB,EAAE,CAAC,CAAC,CAAC;QACzD,MAAM,CAAC,SAAS,CAAC,gBAAgB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gEAAgE,EAAE;QACjE,IAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,wCAAmB,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;QACjE,MAAM,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+DAA+D,EAAE;QAChE,IAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,wCAAmB,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;QACjE,MAAM,CAAC,cAAM,OAAA,SAAS,CAAC,WAAW,EAAE,EAAvB,CAAuB,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iDAAiD,EAAE;QAClD,MAAM,CAAC,cAAM,OAAA,qBAAS,CAAC,YAAY,CAAC,eAAe,EAAE,CAAC,CAAC,EAA1C,CAA0C,CAAC,CAAC,OAAO,CAAC,yCAAyC,CAAC,CAAC;IAChH,CAAC,CAAC,CAAC;IAEH,sDAAsD;AAC1D,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"protoEnum.test.js","sourceRoot":"","sources":["protoEnum.test.ts"],"names":[],"mappings":";AAAA,oBAAoB;;AAEpB,+FAA6F;AAC7F,oGAAkG;AAClG,2CAAwC;AAExC,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACvB,EAAE,CAAC,+EAA+E,EAAE,GAAG,EAAE;QACrF,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,0CAAoB,EAAE,CAAC,CAAC,CAAC;QACzD,MAAM,CAAC,SAAS,CAAC,gBAAgB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gEAAgE,EAAE,GAAG,EAAE;QACtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,wCAAmB,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;QACjE,MAAM,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+DAA+D,EAAE,GAAG,EAAE;QACrE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,wCAAmB,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;QACjE,MAAM,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;QACvD,MAAM,CAAC,GAAG,EAAE,CAAC,qBAAS,CAAC,YAAY,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,yCAAyC,CAAC,CAAC;IAChH,CAAC,CAAC,CAAC;IAEH,sDAAsD;AAC1D,CAAC,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import * as grpc from '@grpc/grpc-js';
2
+ declare class EnvConfig {
3
+ private static getEnvVar;
4
+ static get apiKey(): string;
5
+ /**
6
+ * Returns the URL for the backend GRPC service. It will default to
7
+ * api.fintekkers.org if the environment variable is not set. You
8
+ * cann set the environment variable by adding API_URL to your .env file.
9
+ */
10
+ static get apiURL(): string;
11
+ static get apiCredentials(): grpc.ChannelCredentials;
12
+ }
13
+ export default EnvConfig;
@@ -1,55 +1,63 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var dotenv = require("dotenv");
26
+ const dotenv = __importStar(require("dotenv"));
4
27
  dotenv.config();
5
- var grpc = require("@grpc/grpc-js");
6
- var EnvConfig = /** @class */ (function () {
7
- function EnvConfig() {
8
- }
9
- EnvConfig.getEnvVar = function (key, defaultValue) {
10
- var value = process.env[key];
28
+ const grpc = __importStar(require("@grpc/grpc-js"));
29
+ class EnvConfig {
30
+ static getEnvVar(key, defaultValue) {
31
+ const value = process.env[key];
11
32
  if (value === undefined) {
12
33
  if (defaultValue === undefined) {
13
- throw new Error("Environment variable ".concat(key, " is not set."));
34
+ throw new Error(`Environment variable ${key} is not set.`);
14
35
  }
15
36
  return defaultValue;
16
37
  }
17
38
  return value;
18
- };
19
- Object.defineProperty(EnvConfig, "apiKey", {
20
- get: function () {
21
- throw new Error("API keys not supported currently.");
22
- // return EnvConfig.getEnvVar('API_KEY');
23
- },
24
- enumerable: false,
25
- configurable: true
26
- });
27
- Object.defineProperty(EnvConfig, "apiURL", {
28
- /**
29
- * Returns the URL for the backend GRPC service. It will default to
30
- * api.fintekkers.org if the environment variable is not set. You
31
- * cann set the environment variable by adding API_URL to your .env file.
32
- */
33
- get: function () {
34
- var url = EnvConfig.getEnvVar('API_URL', "api.fintekkers.org") + ":8082";
35
- return url;
36
- },
37
- enumerable: false,
38
- configurable: true
39
- });
40
- Object.defineProperty(EnvConfig, "apiCredentials", {
41
- get: function () {
42
- if (this.apiURL === "localhost:8082") {
43
- return grpc.credentials.createInsecure();
44
- }
45
- else {
46
- return grpc.credentials.createSsl();
47
- }
48
- },
49
- enumerable: false,
50
- configurable: true
51
- });
52
- return EnvConfig;
53
- }());
39
+ }
40
+ static get apiKey() {
41
+ throw new Error("API keys not supported currently.");
42
+ // return EnvConfig.getEnvVar('API_KEY');
43
+ }
44
+ /**
45
+ * Returns the URL for the backend GRPC service. It will default to
46
+ * api.fintekkers.org if the environment variable is not set. You
47
+ * cann set the environment variable by adding API_URL to your .env file.
48
+ */
49
+ static get apiURL() {
50
+ const url = EnvConfig.getEnvVar('API_URL', "api.fintekkers.org") + ":8082";
51
+ return url;
52
+ }
53
+ static get apiCredentials() {
54
+ if (this.apiURL === "localhost:8082") {
55
+ return grpc.credentials.createInsecure();
56
+ }
57
+ else {
58
+ return grpc.credentials.createSsl();
59
+ }
60
+ }
61
+ }
54
62
  exports.default = EnvConfig;
55
63
  //# sourceMappingURL=requestcontext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"requestcontext.js","sourceRoot":"","sources":["requestcontext.ts"],"names":[],"mappings":";;AAAA,+BAAiC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,oCAAsC;AAEtC;IAAA;IAoCA,CAAC;IAnCkB,mBAAS,GAAxB,UAAyB,GA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,SAAS,EAAE,CAAC;gBAC/B,MAAM,IAAI,KAAK,CAAC,wBAAwB,GAAG,cAAc,CAAC,CAAC;YAC7D,CAAC;YACD,OAAO,YAAY,CAAC;QACtB,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,KAAK,MAAM;QACf,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAA;QACpD,yCAAyC;IAC3C,CAAC;IAED;;;;OAIG;IACH,MAAM,KAAK,MAAM;QACf,MAAM,GAAG,GAAW,SAAS,CAAC,SAAS,CAAC,SAAS,EAAE,oBAAoB,CAAC,GAAG,OAAO,CAAC;QACnF,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,KAAK,cAAc;QACvB,IAAI,IAAI,CAAC,MAAM,KAAK,gBAAgB,EAAE,CAAC;YACrC,OAAO,IAAI,CAAC,WAAW,CAAC,cAAc,EAAE,CAAC;QAC3C,CAAC;aACI,CAAC;YACJ,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC;QACtC,CAAC;IACH,CAAC;CAEF;AAED,kBAAe,SAAS,CAAC"}
@@ -4,16 +4,16 @@ dotenv.config();
4
4
  import * as grpc from '@grpc/grpc-js';
5
5
 
6
6
  class EnvConfig {
7
- private static getEnvVar(key: string, defaultValue?: string): string {
8
- const value = process.env[key];
9
- if (value === undefined) {
10
- if (defaultValue === undefined) {
11
- throw new Error(`Environment variable ${key} is not set.`);
12
- }
13
- return defaultValue;
14
- }
15
- return value;
7
+ private static getEnvVar(key: string, defaultValue?: string): string {
8
+ const value = process.env[key];
9
+ if (value === undefined) {
10
+ if (defaultValue === undefined) {
11
+ throw new Error(`Environment variable ${key} is not set.`);
16
12
  }
13
+ return defaultValue;
14
+ }
15
+ return value;
16
+ }
17
17
 
18
18
  static get apiKey(): string {
19
19
  throw new Error("API keys not supported currently.")
@@ -26,19 +26,19 @@ class EnvConfig {
26
26
  * cann set the environment variable by adding API_URL to your .env file.
27
27
  */
28
28
  static get apiURL(): string {
29
- const url:string = EnvConfig.getEnvVar('API_URL', "api.fintekkers.org") + ":8082";
29
+ const url: string = EnvConfig.getEnvVar('API_URL', "api.fintekkers.org") + ":8082";
30
30
  return url;
31
31
  }
32
32
 
33
33
  static get apiCredentials(): grpc.ChannelCredentials {
34
- if(this.apiURL === "localhost:8082"){
35
- return grpc.credentials.createInsecure();
34
+ if (this.apiURL === "localhost:8082") {
35
+ return grpc.credentials.createInsecure();
36
36
  }
37
- else {
38
- return grpc.credentials.createSsl();
37
+ else {
38
+ return grpc.credentials.createSsl();
39
39
  }
40
40
  }
41
-
41
+
42
42
  }
43
43
 
44
44
  export default EnvConfig;
@@ -0,0 +1,6 @@
1
+ declare namespace NodeJS {
2
+ interface ProcessEnv {
3
+ API_KEY: string;
4
+ PORT: string;
5
+ }
6
+ }
@@ -1 +1,2 @@
1
+ "use strict";
1
2
  //# sourceMappingURL=requestcontext_d.js.map
@@ -0,0 +1,12 @@
1
+ import { DecimalValueProto } from "../../../fintekkers/models/util/decimal_value_pb";
2
+ import { LocalDateProto } from "../../../fintekkers/models/util/local_date_pb";
3
+ import { LocalTimestampProto } from "../../../fintekkers/models/util/local_timestamp_pb";
4
+ import { UUIDProto } from "../../../fintekkers/models/util/uuid_pb";
5
+ import { ZonedDateTime } from "./datetime";
6
+ import { ProtoEnum } from "./protoEnum";
7
+ import { UUID } from "./uuid";
8
+ import { StringValue } from 'google-protobuf/google/protobuf/wrappers_pb';
9
+ export declare class ProtoSerializationUtil {
10
+ static serialize(obj: any): DecimalValueProto | LocalDateProto | LocalTimestampProto | UUIDProto | StringValue;
11
+ static deserialize(obj: any): string | number | ZonedDateTime | Date | UUID | ProtoEnum;
12
+ }
@@ -1,19 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ProtoSerializationUtil = void 0;
4
- var identifier_pb_1 = require("../../../fintekkers/models/security/identifier/identifier_pb");
5
- var decimal_value_pb_1 = require("../../../fintekkers/models/util/decimal_value_pb");
6
- var local_date_pb_1 = require("../../../fintekkers/models/util/local_date_pb");
7
- var local_timestamp_pb_1 = require("../../../fintekkers/models/util/local_timestamp_pb");
8
- var uuid_pb_1 = require("../../../fintekkers/models/util/uuid_pb");
9
- var datetime_1 = require("./datetime");
10
- var protoEnum_1 = require("./protoEnum");
11
- var uuid_1 = require("./uuid");
12
- var wrappers_pb_1 = require("google-protobuf/google/protobuf/wrappers_pb");
13
- var ProtoSerializationUtil = /** @class */ (function () {
14
- function ProtoSerializationUtil() {
15
- }
16
- ProtoSerializationUtil.serialize = function (obj) {
4
+ const identifier_pb_1 = require("../../../fintekkers/models/security/identifier/identifier_pb");
5
+ const decimal_value_pb_1 = require("../../../fintekkers/models/util/decimal_value_pb");
6
+ const local_date_pb_1 = require("../../../fintekkers/models/util/local_date_pb");
7
+ const local_timestamp_pb_1 = require("../../../fintekkers/models/util/local_timestamp_pb");
8
+ const uuid_pb_1 = require("../../../fintekkers/models/util/uuid_pb");
9
+ const datetime_1 = require("./datetime");
10
+ const protoEnum_1 = require("./protoEnum");
11
+ const uuid_1 = require("./uuid");
12
+ const wrappers_pb_1 = require("google-protobuf/google/protobuf/wrappers_pb");
13
+ class ProtoSerializationUtil {
14
+ static serialize(obj) {
17
15
  if (obj instanceof uuid_1.UUID) {
18
16
  return obj.toUUIDProto();
19
17
  }
@@ -30,16 +28,16 @@ var ProtoSerializationUtil = /** @class */ (function () {
30
28
  return new decimal_value_pb_1.DecimalValueProto().setArbitraryPrecisionValue(obj.toString());
31
29
  }
32
30
  if (obj instanceof String) {
33
- return wrappers_pb_1.StringValue.of(obj);
31
+ return new wrappers_pb_1.StringValue().setValue(obj.toString());
34
32
  }
35
- throw new Error("Could not serialize object of type ".concat(typeof obj, ". Value: ").concat(obj));
36
- };
37
- ProtoSerializationUtil.deserialize = function (obj) {
33
+ throw new Error(`Could not serialize object of type ${typeof obj}. Value: ${obj}`);
34
+ }
35
+ static deserialize(obj) {
38
36
  if (obj instanceof uuid_pb_1.UUIDProto) {
39
37
  return uuid_1.UUID.fromU8Array(obj.getRawUuid_asU8());
40
38
  }
41
39
  if (obj instanceof local_date_pb_1.LocalDateProto) {
42
- var date = new Date(obj.getYear(), obj.getMonth() - 1, obj.getDay());
40
+ const date = new Date(obj.getYear(), obj.getMonth() - 1, obj.getDay());
43
41
  date.setHours(0, 0, 0, 0);
44
42
  return date;
45
43
  }
@@ -58,9 +56,8 @@ var ProtoSerializationUtil = /** @class */ (function () {
58
56
  if (obj !== null && 'enum_name' in obj && typeof obj.enum_name !== 'undefined' && obj.enum_name !== null) {
59
57
  return new protoEnum_1.ProtoEnum(obj.descriptor, obj.enum_value);
60
58
  }
61
- throw new Error("Could not deserialize object of type ".concat(typeof obj, ". Value: ").concat(obj));
62
- };
63
- return ProtoSerializationUtil;
64
- }());
59
+ throw new Error(`Could not deserialize object of type ${typeof obj}. Value: ${obj}`);
60
+ }
61
+ }
65
62
  exports.ProtoSerializationUtil = ProtoSerializationUtil;
66
63
  //# sourceMappingURL=serialization.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"serialization.js","sourceRoot":"","sources":["serialization.ts"],"names":[],"mappings":";;;AACA,8FAA+F;AAC/F,qFAAqF;AACrF,+EAA+E;AAC/E,yFAAyF;AACzF,mEAAoE;AAEpE,uCAA2C;AAC3C,yCAAwC;AACxC,+BAA8B;AAC9B,2EAA0E;AAG1E;IAAA;IAmDA,CAAC;IAlDQ,gCAAS,GAAhB,UAAiB,GAAQ;QACvB,IAAI,GAAG,YAAY,WAAI,EAAE;YACvB,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC;SAC1B;QACD,IAAI,GAAG,YAAY,IAAI,EAAE;YACvB,OAAO,IAAI,8BAAc,EAAE;iBACxB,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;iBAC1B,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;iBAC5B,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE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