@lendi/integrations-transform 1.9.4 → 1.9.5

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.
@@ -533,7 +533,9 @@
533
533
  "BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX",
534
534
  "PRIMARY_RESIDENCE_RUNNING_COSTS",
535
535
  "INVESTMENT_PROPERTY_RUNNING_COSTS",
536
- "SECONDARY_RESIDENCE_RUNNING_COSTS"
536
+ "SECONDARY_RESIDENCE_RUNNING_COSTS",
537
+ "STRATA_BODY_CORPORATE_FEES",
538
+ "LAND_TAX"
537
539
  ]
538
540
  },
539
541
  "amount": {
@@ -82,6 +82,8 @@
82
82
  "PET_CARE",
83
83
  "TRANSPORT",
84
84
  "BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX",
85
+ "STRATA_BODY_CORPORATE_FEES",
86
+ "LAND_TAX",
85
87
  "PRIMARY_RESIDENCE_RUNNING_COSTS",
86
88
  "INVESTMENT_PROPERTY_RUNNING_COSTS",
87
89
  "SECONDARY_RESIDENCE_RUNNING_COSTS",
@@ -15,6 +15,8 @@ const propertyExpenseCategories = [
15
15
  public_expense_1.ExpenseType.BodyCorporateFeesStrataFeesAndLandTax,
16
16
  public_expense_1.ExpenseType.SecondaryResidenceRunningCosts,
17
17
  public_expense_1.ExpenseType.PrimaryResidenceRunningCosts,
18
+ public_expense_1.ExpenseType.LandTax,
19
+ public_expense_1.ExpenseType.StrataBodyCorporateFees,
18
20
  ];
19
21
  /**
20
22
  * @description Transforms expense items on the application from the event.
@@ -1,4 +1,4 @@
1
- import { OtherCommitmentCategoryList, LivingExpenseCategoryList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
1
+ import { OtherCommitmentCategoryList, LivingExpenseCategoryList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
2
2
  import { ExpenseType } from '../events/public-expense';
3
3
  type LivingExpenseMapping = {
4
4
  [key in ExpenseType]: LivingExpenseCategoryList | OtherCommitmentCategoryList;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.livingExpenseMapping = void 0;
4
- const lixi_internal_request_1 = require("@lendi/integrations-protocol/lib/types/lixi-internal-request");
4
+ const lixi_internal_request_1 = require("@lendi/integrations-credit-protocol/types/lixi-internal-request");
5
5
  const public_expense_1 = require("../events/public-expense");
6
6
  exports.livingExpenseMapping = {
7
7
  [public_expense_1.ExpenseType.Board]: lixi_internal_request_1.OtherCommitmentCategoryList.Board,
@@ -28,4 +28,6 @@ exports.livingExpenseMapping = {
28
28
  [public_expense_1.ExpenseType.SecondaryResidenceRunningCosts]: lixi_internal_request_1.LivingExpenseCategoryList.SecondaryResidenceRunningCosts,
29
29
  [public_expense_1.ExpenseType.TelephoneInternetPayTvAndMediaStreamingSubscriptions]: lixi_internal_request_1.LivingExpenseCategoryList.TelephoneInternetPayTVAndMediaStreamingSubscriptions,
30
30
  [public_expense_1.ExpenseType.Transport]: lixi_internal_request_1.LivingExpenseCategoryList.Transport,
31
+ [public_expense_1.ExpenseType.LandTax]: lixi_internal_request_1.LivingExpenseCategoryList.LandTaxOnOwnerOccupiedPrincipalPlaceOfResidence,
32
+ [public_expense_1.ExpenseType.StrataBodyCorporateFees]: lixi_internal_request_1.LivingExpenseCategoryList.PrimaryResidenceOngoingRunningCosts,
31
33
  };
@@ -8,4 +8,6 @@ exports.propertyExpenseCategoryMapping = {
8
8
  [public_asset_1.PropertyExpenseType.InvestmentPropertyRunningCosts]: lixi_internal_request_1.PropertyExpenseCategoryList.RunningCosts,
9
9
  [public_asset_1.PropertyExpenseType.PrimaryResidenceRunningCosts]: lixi_internal_request_1.PropertyExpenseCategoryList.RunningCosts,
10
10
  [public_asset_1.PropertyExpenseType.SecondaryResidenceRunningCosts]: lixi_internal_request_1.PropertyExpenseCategoryList.RunningCosts,
11
+ [public_asset_1.PropertyExpenseType.LandTax]: lixi_internal_request_1.PropertyExpenseCategoryList.BodyCorporateFeesStrataFeesAndLandTax,
12
+ [public_asset_1.PropertyExpenseType.StrataBodyCorporateFees]: lixi_internal_request_1.PropertyExpenseCategoryList.BodyCorporateFeesStrataFeesAndLandTax,
11
13
  };
@@ -428,8 +428,10 @@ export declare enum Frequency {
428
428
  export declare enum PropertyExpenseType {
429
429
  BodyCorporateFeesStrataFeesAndLandTax = "BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX",
430
430
  InvestmentPropertyRunningCosts = "INVESTMENT_PROPERTY_RUNNING_COSTS",
431
+ LandTax = "LAND_TAX",
431
432
  PrimaryResidenceRunningCosts = "PRIMARY_RESIDENCE_RUNNING_COSTS",
432
- SecondaryResidenceRunningCosts = "SECONDARY_RESIDENCE_RUNNING_COSTS"
433
+ SecondaryResidenceRunningCosts = "SECONDARY_RESIDENCE_RUNNING_COSTS",
434
+ StrataBodyCorporateFees = "STRATA_BODY_CORPORATE_FEES"
433
435
  }
434
436
  export declare enum PropertyStatus {
435
437
  Established = "ESTABLISHED",
@@ -281,8 +281,10 @@ var PropertyExpenseType;
281
281
  (function (PropertyExpenseType) {
282
282
  PropertyExpenseType["BodyCorporateFeesStrataFeesAndLandTax"] = "BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX";
283
283
  PropertyExpenseType["InvestmentPropertyRunningCosts"] = "INVESTMENT_PROPERTY_RUNNING_COSTS";
284
+ PropertyExpenseType["LandTax"] = "LAND_TAX";
284
285
  PropertyExpenseType["PrimaryResidenceRunningCosts"] = "PRIMARY_RESIDENCE_RUNNING_COSTS";
285
286
  PropertyExpenseType["SecondaryResidenceRunningCosts"] = "SECONDARY_RESIDENCE_RUNNING_COSTS";
287
+ PropertyExpenseType["StrataBodyCorporateFees"] = "STRATA_BODY_CORPORATE_FEES";
286
288
  })(PropertyExpenseType = exports.PropertyExpenseType || (exports.PropertyExpenseType = {}));
287
289
  var PropertyStatus;
288
290
  (function (PropertyStatus) {
@@ -43,6 +43,7 @@ export declare enum ExpenseType {
43
43
  HigherVocationalTrainingEducation = "HIGHER_VOCATIONAL_TRAINING_EDUCATION",
44
44
  Insurance = "INSURANCE",
45
45
  InvestmentPropertyRunningCosts = "INVESTMENT_PROPERTY_RUNNING_COSTS",
46
+ LandTax = "LAND_TAX",
46
47
  LifeInsurance = "LIFE_INSURANCE",
47
48
  LivingExpensesEstimate = "LIVING_EXPENSES_ESTIMATE",
48
49
  MedicalAndHealth = "MEDICAL_AND_HEALTH",
@@ -55,6 +56,7 @@ export declare enum ExpenseType {
55
56
  Rent = "RENT",
56
57
  RentUtilities = "RENT_UTILITIES",
57
58
  SecondaryResidenceRunningCosts = "SECONDARY_RESIDENCE_RUNNING_COSTS",
59
+ StrataBodyCorporateFees = "STRATA_BODY_CORPORATE_FEES",
58
60
  TelephoneInternetPayTvAndMediaStreamingSubscriptions = "TELEPHONE_INTERNET_PAY_TV_AND_MEDIA_STREAMING_SUBSCRIPTIONS",
59
61
  Transport = "TRANSPORT"
60
62
  }
@@ -21,6 +21,7 @@ var ExpenseType;
21
21
  ExpenseType["HigherVocationalTrainingEducation"] = "HIGHER_VOCATIONAL_TRAINING_EDUCATION";
22
22
  ExpenseType["Insurance"] = "INSURANCE";
23
23
  ExpenseType["InvestmentPropertyRunningCosts"] = "INVESTMENT_PROPERTY_RUNNING_COSTS";
24
+ ExpenseType["LandTax"] = "LAND_TAX";
24
25
  ExpenseType["LifeInsurance"] = "LIFE_INSURANCE";
25
26
  ExpenseType["LivingExpensesEstimate"] = "LIVING_EXPENSES_ESTIMATE";
26
27
  ExpenseType["MedicalAndHealth"] = "MEDICAL_AND_HEALTH";
@@ -33,6 +34,7 @@ var ExpenseType;
33
34
  ExpenseType["Rent"] = "RENT";
34
35
  ExpenseType["RentUtilities"] = "RENT_UTILITIES";
35
36
  ExpenseType["SecondaryResidenceRunningCosts"] = "SECONDARY_RESIDENCE_RUNNING_COSTS";
37
+ ExpenseType["StrataBodyCorporateFees"] = "STRATA_BODY_CORPORATE_FEES";
36
38
  ExpenseType["TelephoneInternetPayTvAndMediaStreamingSubscriptions"] = "TELEPHONE_INTERNET_PAY_TV_AND_MEDIA_STREAMING_SUBSCRIPTIONS";
37
39
  ExpenseType["Transport"] = "TRANSPORT";
38
40
  })(ExpenseType = exports.ExpenseType || (exports.ExpenseType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lendi/integrations-transform",
3
- "version": "1.9.4",
3
+ "version": "1.9.5",
4
4
  "description": "Library for kafka event data transforming",
5
5
  "author": "Integrations <integrations@lendi.com.au>",
6
6
  "homepage": "https://bitbucket.org/lendi-dev/integrations-shared-packages#readme",
@@ -21,12 +21,14 @@
21
21
  "url": "git+ssh://git@bitbucket.org/lendi-dev/integrations-shared-packages.git"
22
22
  },
23
23
  "dependencies": {
24
- "@lendi/integrations-credit-protocol": "1.19.0",
24
+ "@lendi/integrations-credit-protocol": "1.20.0",
25
25
  "@lendi/integrations-protocol": "2.7.4",
26
26
  "@lendi/logging": "^1.0.3",
27
27
  "clean-deep": "^3.4.0",
28
28
  "date-fns": "2.19.0",
29
- "lodash": "^4.17.15"
29
+ "jest": "^29.2.1",
30
+ "lodash": "^4.17.15",
31
+ "ts-jest": "^29.0.0"
30
32
  },
31
33
  "devDependencies": {
32
34
  "@lendi/prettier-config": "^1.0.0",