@fintekkers/ledger-models 0.1.60 → 0.1.61

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 (58) hide show
  1. package/babel.config.js +3 -1
  2. package/index.js +1 -15
  3. package/index.js.map +1 -1
  4. package/index.ts +1 -19
  5. package/jest.config.js +4 -0
  6. package/node/fintekkers/models/security/security_pb.test.js +29 -30
  7. package/node/fintekkers/models/security/security_pb.test.js.map +1 -0
  8. package/node/fintekkers/models/security/security_pb.test.ts +33 -0
  9. package/node/wrappers/models/security/security.js +1 -1
  10. package/node/wrappers/models/security/security.js.map +1 -1
  11. package/node/wrappers/models/security/security.ts +1 -1
  12. package/node/wrappers/models/transaction/transaction.js +10 -8
  13. package/node/wrappers/models/transaction/transaction.js.map +1 -1
  14. package/node/wrappers/models/transaction/transaction.test.js +26 -0
  15. package/node/wrappers/models/transaction/transaction.test.js.map +1 -0
  16. package/node/wrappers/models/transaction/transaction.test.ts +37 -0
  17. package/node/wrappers/models/transaction/transaction.ts +13 -11
  18. package/node/wrappers/models/transaction/transaction_type.js +45 -0
  19. package/node/wrappers/models/transaction/transaction_type.js.map +1 -0
  20. package/node/wrappers/models/transaction/transaction_type.ts +47 -0
  21. package/node/wrappers/models/utils/date.js +25 -0
  22. package/node/wrappers/models/utils/date.js.map +1 -0
  23. package/node/wrappers/models/utils/date.ts +31 -0
  24. package/node/wrappers/models/utils/datetime.js +4 -4
  25. package/node/wrappers/models/utils/datetime.js.map +1 -1
  26. package/node/wrappers/models/utils/datetime.ts +4 -4
  27. package/node/wrappers/models/utils/serialization.test.js +14 -54
  28. package/node/wrappers/models/utils/serialization.test.js.map +1 -1
  29. package/node/wrappers/models/utils/serialization.test.ts +11 -7
  30. package/node/wrappers/services/portfolio-service/PortfolioService.js +2 -5
  31. package/node/wrappers/services/portfolio-service/PortfolioService.js.map +1 -1
  32. package/node/wrappers/services/portfolio-service/PortfolioService.ts +2 -5
  33. package/node/wrappers/{portfolio.test.js → services/portfolio-service/portfolio.test.js} +10 -9
  34. package/node/wrappers/services/portfolio-service/portfolio.test.js.map +1 -0
  35. package/node/wrappers/{portfolio.test.ts → services/portfolio-service/portfolio.test.ts} +15 -11
  36. package/node/wrappers/services/position-service/PositionService.js +2 -5
  37. package/node/wrappers/services/position-service/PositionService.js.map +1 -1
  38. package/node/wrappers/services/position-service/PositionService.ts +2 -5
  39. package/node/wrappers/{position.test.js → services/position-service/position.test.js} +17 -20
  40. package/node/wrappers/services/position-service/position.test.js.map +1 -0
  41. package/node/wrappers/{position.test.ts → services/position-service/position.test.ts} +21 -28
  42. package/node/wrappers/services/security-service/SecurityService.js +2 -5
  43. package/node/wrappers/services/security-service/SecurityService.js.map +1 -1
  44. package/node/wrappers/services/security-service/SecurityService.ts +2 -5
  45. package/node/wrappers/{security.test.js → services/security-service/security.test.js} +15 -16
  46. package/node/wrappers/services/security-service/security.test.js.map +1 -0
  47. package/node/wrappers/{security.test.ts → services/security-service/security.test.ts} +19 -17
  48. package/node/wrappers/services/transaction-service/TransactionService.js +2 -6
  49. package/node/wrappers/services/transaction-service/TransactionService.js.map +1 -1
  50. package/node/wrappers/services/transaction-service/TransactionService.ts +2 -7
  51. package/node/wrappers/{transaction.test.js → services/transaction-service/transaction.test.js} +17 -18
  52. package/node/wrappers/services/transaction-service/transaction.test.js.map +1 -0
  53. package/node/wrappers/{transaction.test.ts → services/transaction-service/transaction.test.ts} +22 -25
  54. package/package.json +3 -2
  55. package/node/wrappers/portfolio.test.js.map +0 -1
  56. package/node/wrappers/position.test.js.map +0 -1
  57. package/node/wrappers/security.test.js.map +0 -1
  58. package/node/wrappers/transaction.test.js.map +0 -1
@@ -36,19 +36,22 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  }
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.testSecurity = void 0;
40
39
  // Models
41
- var security_pb_1 = require("../fintekkers/models/security/security_pb");
42
- var coupon_frequency_pb_1 = require("../fintekkers/models/security/coupon_frequency_pb");
43
- var decimal_value_pb_1 = require("../fintekkers/models/util/decimal_value_pb");
44
- var coupon_type_pb_1 = require("../fintekkers/models/security/coupon_type_pb");
45
- var security_type_pb_1 = require("../fintekkers/models/security/security_type_pb");
46
- var local_date_pb_1 = require("../fintekkers/models/util/local_date_pb");
40
+ var security_pb_1 = require("../../../fintekkers/models/security/security_pb");
41
+ var coupon_frequency_pb_1 = require("../../../fintekkers/models/security/coupon_frequency_pb");
42
+ var decimal_value_pb_1 = require("../../../fintekkers/models/util/decimal_value_pb");
43
+ var coupon_type_pb_1 = require("../../../fintekkers/models/security/coupon_type_pb");
44
+ var security_type_pb_1 = require("../../../fintekkers/models/security/security_type_pb");
45
+ var local_date_pb_1 = require("../../../fintekkers/models/util/local_date_pb");
47
46
  // Model Utils
48
- var field_pb_1 = require("../fintekkers/models/position/field_pb");
49
- var uuid = require("./models/utils/uuid");
50
- var dt = require("./models/utils/datetime");
51
- var SecurityService_1 = require("./services/security-service/SecurityService");
47
+ var field_pb_1 = require("../../../fintekkers/models/position/field_pb");
48
+ var uuid = require("../../models/utils/uuid");
49
+ var dt = require("../../models/utils/datetime");
50
+ var SecurityService_1 = require("./SecurityService");
51
+ test('test creating a security against the api.fintekkers.org portfolio service', function () {
52
+ var isTrue = testSecurity();
53
+ expect(isTrue).resolves.toBe(true);
54
+ }, 30000);
52
55
  function testSecurity() {
53
56
  return __awaiter(this, void 0, void 0, function () {
54
57
  var id_proto, now, securityService, usd_security, security, faceValue, couponRate, issueDate, maturityDate, validationSummary, createSecurityResponse, searchResults;
@@ -97,19 +100,15 @@ function testSecurity() {
97
100
  return [4 /*yield*/, securityService.validateCreateSecurity(security)];
98
101
  case 2:
99
102
  validationSummary = _a.sent();
100
- console.log(validationSummary);
101
103
  return [4 /*yield*/, securityService.createSecurity(security)];
102
104
  case 3:
103
105
  createSecurityResponse = _a.sent();
104
- console.log(createSecurityResponse);
105
106
  return [4 /*yield*/, securityService.searchSecurity(now.to_date_proto(), field_pb_1.FieldProto.ASSET_CLASS, 'Fixed Income')];
106
107
  case 4:
107
108
  searchResults = _a.sent();
108
- console.log('There are %d securities in this response', searchResults.length);
109
- return [2 /*return*/];
109
+ return [2 /*return*/, true];
110
110
  }
111
111
  });
112
112
  });
113
113
  }
114
- exports.testSecurity = testSecurity;
115
114
  //# sourceMappingURL=security.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security.test.js","sourceRoot":"","sources":["security.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS;AACT,+EAAgF;AAChF,+FAA+F;AAC/F,qFAAqF;AACrF,qFAAqF;AACrF,yFAAyF;AACzF,+EAA+E;AAE/E,cAAc;AACd,yEAA0E;AAE1E,8CAAgD;AAChD,gDAAkD;AAGlD,qDAAoD;AAEpD,IAAI,CAAC,2EAA2E,EAAE;IAChF,IAAM,MAAM,GAAG,YAAY,EAAE,CAAC;IAC9B,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACrC,CAAC,EAAE,KAAK,CAAC,CAAC;AAEV,SAAe,YAAY;;;;;;oBACnB,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC;oBAC5C,GAAG,GAAG,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC;oBAE7B,eAAe,GAAG,IAAI,iCAAe,EAAE,CAAC;oBAE3B,qBAAM,eAAe;6BACrC,cAAc,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,qBAAU,CAAC,WAAW,EAAE,MAAM,CAAC;6BACnE,IAAI,CAAC,UAAC,UAAU;4BACf,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC;wBACvB,CAAC,CAAC,EAAA;;oBAJA,YAAY,GAAG,SAIf;oBAEE,QAAQ,GAAG,IAAI,2BAAa,EAAE,CAAC;oBACrC,QAAQ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,CAAC,KAAK;oBACjC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;oBACzB,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;oBACvB,QAAQ,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;oBAEvC,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;oBACtC,QAAQ,CAAC,cAAc,CAAC,4BAA4B,CAAC,CAAC;oBAE9B,qBAAM,eAAe,CAAC,sBAAsB,CAAC,QAAQ,CAAC,EAAA;;oBAA1E,iBAAiB,GAAG,SAAsD;oBAErB,qBAAM,eAAe,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAA;;oBAAnG,sBAAsB,GAA+B,SAA8C;oBAEnF,qBAAM,eAAe,CAAC,cAAc,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,qBAAU,CAAC,WAAW,EAAE,cAAc,CAAC,EAAA;;oBAAjH,aAAa,GAAG,SAAiG;oBAErH,sBAAO,IAAI,EAAC;;;;CACb"}
@@ -1,21 +1,26 @@
1
1
  // Models
2
- import { SecurityProto } from '../fintekkers/models/security/security_pb';
3
- import { CouponFrequencyProto } from '../fintekkers/models/security/coupon_frequency_pb';
4
- import { DecimalValueProto } from '../fintekkers/models/util/decimal_value_pb';
5
- import { CouponTypeProto } from '../fintekkers/models/security/coupon_type_pb';
6
- import { SecurityTypeProto } from '../fintekkers/models/security/security_type_pb';
7
- import { LocalDateProto } from '../fintekkers/models/util/local_date_pb';
2
+ import { SecurityProto } from '../../../fintekkers/models/security/security_pb';
3
+ import { CouponFrequencyProto } from '../../../fintekkers/models/security/coupon_frequency_pb';
4
+ import { DecimalValueProto } from '../../../fintekkers/models/util/decimal_value_pb';
5
+ import { CouponTypeProto } from '../../../fintekkers/models/security/coupon_type_pb';
6
+ import { SecurityTypeProto } from '../../../fintekkers/models/security/security_type_pb';
7
+ import { LocalDateProto } from '../../../fintekkers/models/util/local_date_pb';
8
8
 
9
9
  // Model Utils
10
- import { FieldProto } from '../fintekkers/models/position/field_pb';
10
+ import { FieldProto } from '../../../fintekkers/models/position/field_pb';
11
11
 
12
- import * as uuid from './models/utils/uuid';
13
- import * as dt from './models/utils/datetime';
12
+ import * as uuid from '../../models/utils/uuid';
13
+ import * as dt from '../../models/utils/datetime';
14
14
 
15
- import { CreateSecurityResponseProto } from '../fintekkers/requests/security/create_security_response_pb';
16
- import { SecurityService } from './services/security-service/SecurityService';
15
+ import { CreateSecurityResponseProto } from '../../../fintekkers/requests/security/create_security_response_pb';
16
+ import { SecurityService } from './SecurityService';
17
17
 
18
- async function testSecurity(): Promise<void> {
18
+ test('test creating a security against the api.fintekkers.org portfolio service', () => {
19
+ const isTrue = testSecurity();
20
+ expect(isTrue).resolves.toBe(true);
21
+ }, 30000);
22
+
23
+ async function testSecurity(): Promise<boolean> {
19
24
  const id_proto = uuid.UUID.random().toUUIDProto();
20
25
  const now = dt.ZonedDateTime.now();
21
26
 
@@ -63,13 +68,10 @@ async function testSecurity(): Promise<void> {
63
68
  security.setDescription('Dummy US Treasury 10Y Bond');
64
69
 
65
70
  var validationSummary = await securityService.validateCreateSecurity(security);
66
- console.log(validationSummary);
67
71
 
68
72
  var createSecurityResponse:CreateSecurityResponseProto = await securityService.createSecurity(security);
69
- console.log(createSecurityResponse);
70
73
 
71
74
  var searchResults = await securityService.searchSecurity(now.to_date_proto(), FieldProto.ASSET_CLASS, 'Fixed Income');
72
- console.log('There are %d securities in this response', searchResults.length);
73
- }
74
75
 
75
- export { testSecurity };
76
+ return true;
77
+ }
@@ -50,8 +50,8 @@ var create_transaction_request_pb_1 = require("../../../fintekkers/requests/tran
50
50
  var query_transaction_request_pb_1 = require("../../../fintekkers/requests/transaction/query_transaction_request_pb");
51
51
  var TransactionService = /** @class */ (function () {
52
52
  function TransactionService() {
53
- // this.client = new SecurityClient('api.fintekkers.org:8082', grpc.credentials.createSsl());
54
- this.client = new transaction_service_grpc_pb_1.TransactionClient('localhost:8082', grpc.credentials.createInsecure());
53
+ this.client = new transaction_service_grpc_pb_1.TransactionClient('api.fintekkers.org:8082', grpc.credentials.createSsl());
54
+ // this.client = new TransactionClient('localhost:8082', grpc.credentials.createInsecure());
55
55
  }
56
56
  TransactionService.prototype.validateCreateTransaction = function (transaction) {
57
57
  return __awaiter(this, void 0, void 0, function () {
@@ -100,15 +100,11 @@ var TransactionService = /** @class */ (function () {
100
100
  stream2 = tmpClient.search(searchRequest);
101
101
  return [2 /*return*/, new Promise(function (resolve, reject) {
102
102
  stream2.on('data', function (response) {
103
- console.log('Result of the transaction search call');
104
- console.log('Response:', response);
105
103
  response.getTransactionResponseList().forEach(function (transaction) {
106
104
  listTransactions.push(new transaction_1.default(transaction));
107
105
  });
108
- console.log('Size of transactions:', listTransactions.length);
109
106
  });
110
107
  stream2.on('end', function () {
111
- console.log('Stream ended.');
112
108
  resolve(listTransactions);
113
109
  });
114
110
  stream2.on('error', function (err) {
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionService.js","sourceRoot":"","sources":["TransactionService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oCAAsC;AACtC,6BAAiC;AAEjC,SAAS;AACT,oEAA+D;AAC/D,gDAA8D;AAI9D,cAAc;AACd,6FAA6F;AAG7F,sBAAsB;AACtB,4HAAiH;AACjH,wHAAuH;AAEvH,sHAAqH;AAIrH;IAGE;QACE,6FAA6F;QAC7F,IAAI,CAAC,MAAM,GAAG,IAAI,+CAAiB,CAAC,gBAAgB,EAAE,IAAI,CAAC,WAAW,CAAC,cAAc,EAAE,CAAC,CAAC;IAC3F,CAAC;IAEK,sDAAyB,GAA/B,UAAgC,WAAwB;;;;;;wBAChD,aAAa,GAAG,IAAI,6DAA6B,EAAE,CAAC;wBAC1D,aAAa,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;wBACnD,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;wBAClC,aAAa,CAAC,yBAAyB,CAAC,WAAW,C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wBAEtB,cAAc,GAAG,IAAI,wCAAmB,EAAE,CAAC;wBACjD,cAAc,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC;wBAChD,cAAc,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;wBAE7B,aAAa,GAAG,IAAA,0BAAmB,EAAC,UAAU,EAAE,UAAU,CAAC,CAAC;wBAClE,cAAc,CAAC,cAAc,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC;wBAE/C,aAAa,CAAC,yBAAyB,CAAC,cAAc,CAAC,CAAC;wBAElD,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC;wBAExB,gBAAgB,GAAkB,EAAE,CAAC;wBAuBpC,qBAAM,0BAA0B,EAAE,EAAA;4BAAzC,sBAAO,SAAkC,EAAC;;;;KAC3C;IACH,yBAAC;AAAD,CAAC,AAxED,IAwEC;AAEQ,gDAAkB"}
@@ -23,8 +23,8 @@ class TransactionService {
23
23
  private client: TransactionClient;
24
24
 
25
25
  constructor() {
26
- // this.client = new SecurityClient('api.fintekkers.org:8082', grpc.credentials.createSsl());
27
- this.client = new TransactionClient('localhost:8082', grpc.credentials.createInsecure());
26
+ this.client = new TransactionClient('api.fintekkers.org:8082', grpc.credentials.createSsl());
27
+ // this.client = new TransactionClient('localhost:8082', grpc.credentials.createInsecure());
28
28
  }
29
29
 
30
30
  async validateCreateTransaction(transaction: Transaction): Promise<SummaryProto> {
@@ -73,17 +73,12 @@ class TransactionService {
73
73
 
74
74
  return new Promise<Transaction[]>((resolve, reject) => {
75
75
  stream2.on('data', (response:QueryTransactionResponseProto) => {
76
- console.log('Result of the transaction search call');
77
- console.log('Response:', response);
78
76
  response.getTransactionResponseList().forEach((transaction) => {
79
77
  listTransactions.push(new Transaction(transaction));
80
78
  });
81
-
82
- console.log('Size of transactions:', listTransactions.length );
83
79
  });
84
80
 
85
81
  stream2.on('end', () => {
86
- console.log('Stream ended.');
87
82
  resolve(listTransactions);
88
83
  });
89
84
 
@@ -36,21 +36,24 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  }
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.testTransaction = void 0;
40
39
  // Models
41
- var decimal_value_pb_1 = require("../fintekkers/models/util/decimal_value_pb");
42
- var local_date_pb_1 = require("../fintekkers/models/util/local_date_pb");
40
+ var decimal_value_pb_1 = require("../../../fintekkers/models/util/decimal_value_pb");
41
+ var local_date_pb_1 = require("../../../fintekkers/models/util/local_date_pb");
43
42
  // Model Utils
44
- var field_pb_1 = require("../fintekkers/models/position/field_pb");
45
- var uuid = require("./models/utils/uuid");
46
- var dt = require("./models/utils/datetime");
47
- var SecurityService_1 = require("./services/security-service/SecurityService");
48
- var transaction_type_pb_1 = require("../fintekkers/models/transaction/transaction_type_pb");
49
- var transaction_pb_1 = require("../fintekkers/models/transaction/transaction_pb");
50
- var price_pb_1 = require("../fintekkers/models/price/price_pb");
51
- var PortfolioService_1 = require("./services/portfolio-service/PortfolioService");
52
- var TransactionService_1 = require("./services/transaction-service/TransactionService");
53
- var transaction_1 = require("./models/transaction/transaction");
43
+ var field_pb_1 = require("../../../fintekkers/models/position/field_pb");
44
+ var uuid = require("../../models/utils/uuid");
45
+ var dt = require("../../models/utils/datetime");
46
+ var SecurityService_1 = require("../security-service/SecurityService");
47
+ var transaction_type_pb_1 = require("../../../fintekkers/models/transaction/transaction_type_pb");
48
+ var transaction_pb_1 = require("../../../fintekkers/models/transaction/transaction_pb");
49
+ var price_pb_1 = require("../../../fintekkers/models/price/price_pb");
50
+ var PortfolioService_1 = require("../portfolio-service/PortfolioService");
51
+ var TransactionService_1 = require("./TransactionService");
52
+ var transaction_1 = require("../../models/transaction/transaction");
53
+ test('test creating a transaction against the api.fintekkers.org portfolio service', function () {
54
+ var isTrue = testTransaction();
55
+ expect(isTrue).resolves.toBe(true);
56
+ }, 30000);
54
57
  function testTransaction() {
55
58
  return __awaiter(this, void 0, void 0, function () {
56
59
  var id_proto, now, today, securityService, portfolioService, transactionService, fixedIncomeSecurities, security, portfolios, portfolio, transaction, createTransactionResponse, searchResults;
@@ -77,7 +80,6 @@ function testTransaction() {
77
80
  if (portfolios === undefined) {
78
81
  throw new Error('No portfolios found');
79
82
  }
80
- console.log('There are %d portfolios in this response', portfolios.length);
81
83
  portfolio = portfolios[0];
82
84
  if (portfolio.getPortfolioName().includes('Federal')) {
83
85
  throw new Error('Portfolio is not a test portfolio! Abandoning test');
@@ -103,15 +105,12 @@ function testTransaction() {
103
105
  return [4 /*yield*/, transactionService.createTransaction(new transaction_1.default(transaction))];
104
106
  case 3:
105
107
  createTransactionResponse = _a.sent();
106
- console.log(createTransactionResponse);
107
108
  return [4 /*yield*/, transactionService.searchTransaction(now.to_date_proto(), field_pb_1.FieldProto.ASSET_CLASS, 'Fixed Income')];
108
109
  case 4:
109
110
  searchResults = _a.sent();
110
- console.log('There are %d transactions in this response', searchResults.length);
111
- return [2 /*return*/];
111
+ return [2 /*return*/, true];
112
112
  }
113
113
  });
114
114
  });
115
115
  }
116
- exports.testTransaction = testTransaction;
117
116
  //# sourceMappingURL=transaction.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction.test.js","sourceRoot":"","sources":["transaction.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS;AACT,qFAAqF;AACrF,+EAA+E;AAE/E,cAAc;AACd,yEAA0E;AAE1E,8CAAgD;AAChD,gDAAkD;AAElD,uEAAsE;AACtE,kGAAkG;AAClG,wFAAyF;AACzF,sEAAuE;AACvE,0EAAyE;AACzE,2DAA0D;AAC1D,oEAA+D;AAG/D,IAAI,CAAC,8EAA8E,EAAE;IACnF,IAAM,MAAM,GAAG,eAAe,EAAE,CAAC;IACjC,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACrC,CAAC,EAAE,KAAK,CAAC,CAAC;AAGV,SAAe,eAAe;;;;;;oBACtB,QAAQ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,SAAuG;oBAE3H,sBAAO,IAAI,EAAC;;;;CACb"}
@@ -1,23 +1,29 @@
1
1
  // Models
2
- import { DecimalValueProto } from '../fintekkers/models/util/decimal_value_pb';
3
- import { LocalDateProto } from '../fintekkers/models/util/local_date_pb';
2
+ import { DecimalValueProto } from '../../../fintekkers/models/util/decimal_value_pb';
3
+ import { LocalDateProto } from '../../../fintekkers/models/util/local_date_pb';
4
4
 
5
5
  // Model Utils
6
- import { FieldProto } from '../fintekkers/models/position/field_pb';
6
+ import { FieldProto } from '../../../fintekkers/models/position/field_pb';
7
7
 
8
- import * as uuid from './models/utils/uuid';
9
- import * as dt from './models/utils/datetime';
8
+ import * as uuid from '../../models/utils/uuid';
9
+ import * as dt from '../../models/utils/datetime';
10
10
 
11
- import { SecurityService } from './services/security-service/SecurityService';
12
- import { TransactionTypeProto } from '../fintekkers/models/transaction/transaction_type_pb';
13
- import { TransactionProto } from '../fintekkers/models/transaction/transaction_pb';
14
- import { PriceProto } from '../fintekkers/models/price/price_pb';
15
- import { PortfolioService } from './services/portfolio-service/PortfolioService';
16
- import { TransactionService } from './services/transaction-service/TransactionService';
17
- import Transaction from './models/transaction/transaction';
18
- import { CreateTransactionResponseProto } from '../fintekkers/requests/transaction/create_transaction_response_pb';
11
+ import { SecurityService } from '../security-service/SecurityService';
12
+ import { TransactionTypeProto } from '../../../fintekkers/models/transaction/transaction_type_pb';
13
+ import { TransactionProto } from '../../../fintekkers/models/transaction/transaction_pb';
14
+ import { PriceProto } from '../../../fintekkers/models/price/price_pb';
15
+ import { PortfolioService } from '../portfolio-service/PortfolioService';
16
+ import { TransactionService } from './TransactionService';
17
+ import Transaction from '../../models/transaction/transaction';
18
+ import { CreateTransactionResponseProto } from '../../../fintekkers/requests/transaction/create_transaction_response_pb';
19
19
 
20
- async function testTransaction(): Promise<void> {
20
+ test('test creating a transaction against the api.fintekkers.org portfolio service', () => {
21
+ const isTrue = testTransaction();
22
+ expect(isTrue).resolves.toBe(true);
23
+ }, 30000);
24
+
25
+
26
+ async function testTransaction(): Promise<boolean> {
21
27
  const id_proto = uuid.UUID.random().toUUIDProto();
22
28
  const now = dt.ZonedDateTime.now();
23
29
  const today = new LocalDateProto().setDay(1).setMonth(1).setYear(2021);
@@ -26,12 +32,6 @@ async function testTransaction(): Promise<void> {
26
32
  const portfolioService = new PortfolioService();
27
33
  const transactionService = new TransactionService();
28
34
 
29
- // let usd_security = await securityService
30
- // .searchSecurity(now.to_date_proto(), FieldProto.ASSET_CLASS, 'Cash')
31
- // .then((securities) => {
32
- // return securities[0];
33
- // });
34
-
35
35
  let fixedIncomeSecurities = await securityService
36
36
  .searchSecurity(now.to_date_proto(), FieldProto.ASSET_CLASS, 'Fixed Income')
37
37
  .then((fixedIncomeSecurities) => {
@@ -49,7 +49,6 @@ async function testTransaction(): Promise<void> {
49
49
  throw new Error('No portfolios found');
50
50
  }
51
51
 
52
- console.log('There are %d portfolios in this response', portfolios.length);
53
52
  const portfolio = portfolios[0];
54
53
 
55
54
  if(portfolio.getPortfolioName().includes('Federal')){
@@ -81,10 +80,8 @@ async function testTransaction(): Promise<void> {
81
80
  // console.log(validationSummary);
82
81
 
83
82
  var createTransactionResponse:CreateTransactionResponseProto = await transactionService.createTransaction(new Transaction(transaction));
84
- console.log(createTransactionResponse);
85
83
 
86
84
  var searchResults = await transactionService.searchTransaction(now.to_date_proto(), FieldProto.ASSET_CLASS, 'Fixed Income');
87
- console.log('There are %d transactions in this response', searchResults.length);
88
- }
89
85
 
90
- export { testTransaction };
86
+ return true;
87
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fintekkers/ledger-models",
3
3
  "todo": "Replace the version with build script version number",
4
- "version": "0.1.60",
4
+ "version": "0.1.61",
5
5
  "description": "ledger model protos ",
6
6
  "authors": [
7
7
  "David Doherty",
@@ -28,7 +28,8 @@
28
28
  "@types/jest": "^29.5.3",
29
29
  "grpc_tools_node_protoc_ts": "^5.3.3",
30
30
  "jest": "^29.6.1",
31
- "jsdom": "^22.1.0"
31
+ "jsdom": "^22.1.0",
32
+ "ts-jest": "^29.1.1"
32
33
  },
33
34
  "dependencies": {
34
35
  "@grpc/grpc-js": "^1.8.18",
@@ -1 +0,0 @@
1
- {"version":3,"file":"portfolio.test.js","sourceRoot":"","sources":["portfolio.test.ts"],"names":[],"mappings":";AAAA,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAET,cAAc;AACd,mEAAoE;AACpE,0CAA4C;AAC5C,4CAA8C;AAE9C,qBAAqB;AACrB,kFAAiF;AACjF,4EAA6E;AAG7E,SAAe,aAAa;;;;;;oBACpB,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC;oBAC5C,GAAG,GAAG,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC;oBAE7B,gBAAgB,GAAG,IAAI,mCAAgB,EAAE,CAAC;oBAE1C,SAAS,GAAG,IAAI,6BAAc,EAAE,CAAC;oBACvC,SAAS,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;oBACtC,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;oBAC9B,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;oBAC5B,SAAS,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;oBAC7C,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC,CAAC;oBAEf,qBAAM,gBAAgB,CAAC,uBAAuB,CAAC,SAAS,CAAC,EAAA;;oBAA7E,iBAAiB,GAAG,SAAyD;oBACjF,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;oBAE4B,qBAAM,gBAAgB,CAAC,eAAe,CAAC,SAAS,CAAC,EAAA;;oBAAxG,uBAAuB,GAAgC,SAAiD;oBAC5G,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;oBAEjB,qBAAM,gBAAgB,CAAC,eAAe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