@lendi/integrations-transform 1.7.3 → 1.7.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.
Files changed (40) hide show
  1. package/lib/schemas/public-expense-event.json +1 -0
  2. package/lib/schemas/public-liability-event.json +4 -0
  3. package/lib/transform-events/transform-liability.js +6 -0
  4. package/lib/types/enum-mappings/alieo-frequency.d.ts +3 -3
  5. package/lib/types/enum-mappings/applicant-gender.d.ts +1 -1
  6. package/lib/types/enum-mappings/applicant-type.d.ts +1 -1
  7. package/lib/types/enum-mappings/builder-type.d.ts +1 -1
  8. package/lib/types/enum-mappings/construction-type.d.ts +1 -1
  9. package/lib/types/enum-mappings/country-code.d.ts +1 -1
  10. package/lib/types/enum-mappings/employment-basis.d.ts +1 -1
  11. package/lib/types/enum-mappings/expense-frequency.d.ts +1 -1
  12. package/lib/types/enum-mappings/funding-position.d.ts +4 -4
  13. package/lib/types/enum-mappings/government-benefits.d.ts +1 -1
  14. package/lib/types/enum-mappings/housing-status.d.ts +1 -1
  15. package/lib/types/enum-mappings/income-type.d.ts +1 -1
  16. package/lib/types/enum-mappings/liability-payment-type.d.ts +1 -1
  17. package/lib/types/enum-mappings/liability-type.d.ts +1 -1
  18. package/lib/types/enum-mappings/living-expense.d.ts +1 -1
  19. package/lib/types/enum-mappings/living-expense.js +1 -0
  20. package/lib/types/enum-mappings/marital-status.d.ts +1 -1
  21. package/lib/types/enum-mappings/postcode.d.ts +1 -1
  22. package/lib/types/enum-mappings/preferred-repayment.d.ts +1 -1
  23. package/lib/types/enum-mappings/proof-of-identity.d.ts +1 -1
  24. package/lib/types/enum-mappings/property-expense-category.d.ts +1 -1
  25. package/lib/types/enum-mappings/public-financial-asset.d.ts +1 -1
  26. package/lib/types/enum-mappings/public-primary-purpose.d.ts +1 -1
  27. package/lib/types/enum-mappings/public-property-status.d.ts +1 -1
  28. package/lib/types/enum-mappings/public-property-type.d.ts +1 -1
  29. package/lib/types/enum-mappings/residency-status.d.ts +1 -1
  30. package/lib/types/enum-mappings/title-gender.d.ts +1 -1
  31. package/lib/types/enum-mappings/title.d.ts +1 -1
  32. package/lib/types/enum-mappings/transaction-type.d.ts +1 -1
  33. package/lib/types/events/public-expense.d.ts +1 -0
  34. package/lib/types/events/public-expense.js +1 -0
  35. package/lib/types/events/public-liability.d.ts +4 -0
  36. package/lib/types/partial-application.d.ts +1 -1
  37. package/lib/types/recursive-partial.d.ts +1 -1
  38. package/lib/utils/address-tools.d.ts +4 -4
  39. package/lib/utils/normalise-date.d.ts +1 -1
  40. package/package.json +2 -2
@@ -68,6 +68,7 @@
68
68
  "type": {
69
69
  "type": "string",
70
70
  "enum": [
71
+ "RENT_UTILITIES",
71
72
  "LIVING_EXPENSES_ESTIMATE",
72
73
  "GROCERIES",
73
74
  "CHILDCARE",
@@ -213,6 +213,10 @@
213
213
  },
214
214
  "description": {
215
215
  "$ref": "#/definitions/description"
216
+ },
217
+ "toBeToppedUp": {
218
+ "type": "boolean",
219
+ "description": "Is the loan (split) to be topped up"
216
220
  }
217
221
  },
218
222
  "required": ["type", "outstandingBalance"]
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.transformLiability = void 0;
4
4
  const application_paths_1 = require("@lendi/integrations-protocol/lib/utils/application-paths");
5
+ const application_paths_2 = require("@lendi/integrations-credit-protocol/utils/application-paths");
5
6
  const lodash_1 = require("lodash");
6
7
  const alieo_frequency_1 = require("../types/enum-mappings/alieo-frequency");
7
8
  const enum_mappings_1 = require("../types/enum-mappings");
@@ -40,6 +41,7 @@ function transformLiability({ applicationId, id, liability }) {
40
41
  remainingTermDuration: `${application_paths_1.paths.Liability}.RemainingTerm.@Duration`,
41
42
  repaymentTypeDetails: `${application_paths_1.paths.Liability}.Repayment[0].@PaymentType`,
42
43
  outstandingBalance: `${application_paths_1.paths.Liability}.@OutstandingBalance`,
44
+ toBeToppedUp: `${application_paths_2.paths.AccountVariation}.@x_AccountToVary`,
43
45
  type: `${application_paths_1.paths.Liability}.@Type`,
44
46
  percentOwned: `${application_paths_1.paths.Liability}.PercentOwned`,
45
47
  };
@@ -65,6 +67,10 @@ function transformLiability({ applicationId, id, liability }) {
65
67
  case 'repaymentAmount':
66
68
  (0, lodash_1.set)(partialApplication, liabilityMapping[key], (0, round_decimal_1.roundDecimal)(value));
67
69
  break;
70
+ case 'toBeToppedUp':
71
+ if (value)
72
+ (0, lodash_1.set)(partialApplication, liabilityMapping[key], id);
73
+ break;
68
74
  case 'interestOnlyRemainingTerm':
69
75
  (0, lodash_1.set)(partialApplication, liabilityMapping[key], (0, round_decimal_1.roundDecimal)(value));
70
76
  (0, lodash_1.set)(partialApplication, `${application_paths_1.paths.Liability}.OriginalTerm.@PaymentType`, lixi_internal_request_1.PaymentTypeList.InterestOnly);
@@ -1,13 +1,13 @@
1
1
  import { List as LIXIFrequency } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
2
2
  import { RepaymentFrequency } from '../events/public-liability';
3
3
  import { Frequency } from '../events/public-income';
4
- export declare type LiabilityFrequencyMapping = {
4
+ export type LiabilityFrequencyMapping = {
5
5
  [key in RepaymentFrequency]: LIXIFrequency;
6
6
  };
7
- export declare type IncomeExpenseFrequencyMapping = {
7
+ export type IncomeExpenseFrequencyMapping = {
8
8
  [key in RepaymentFrequency | Frequency]: LIXIFrequency;
9
9
  };
10
- export declare type RentalIncomeFrequencyMapping = {
10
+ export type RentalIncomeFrequencyMapping = {
11
11
  [key in Frequency]: LIXIFrequency;
12
12
  };
13
13
  export declare const incomeExpenseFrequencyMapping: IncomeExpenseFrequencyMapping;
@@ -1,6 +1,6 @@
1
1
  import { Gender } from '../events/public-applicant';
2
2
  import { GenderList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
3
- export declare type ApplicantGenderMapping = {
3
+ export type ApplicantGenderMapping = {
4
4
  [key in Gender]: GenderList;
5
5
  };
6
6
  export declare const applicantGenderMapping: ApplicantGenderMapping;
@@ -1,6 +1,6 @@
1
1
  import { ApplicantTypeList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
2
2
  import { ApplicantType } from '../events/public-applicant';
3
- export declare type ApplicantTypeMapping = {
3
+ export type ApplicantTypeMapping = {
4
4
  [key in ApplicantType]: ApplicantTypeList;
5
5
  };
6
6
  export declare const applicantTypeMapping: ApplicantTypeMapping;
@@ -1,6 +1,6 @@
1
1
  import { BuilderTypeList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
2
2
  import { BuilderType } from '../events/public-asset';
3
- declare type BuilderTypeMapping = {
3
+ type BuilderTypeMapping = {
4
4
  [key in BuilderType]: BuilderTypeList;
5
5
  };
6
6
  export declare const builderTypeMapping: BuilderTypeMapping;
@@ -1,6 +1,6 @@
1
1
  import { ConstructionTypeList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
2
2
  import { ConstructionType } from '../events/public-asset';
3
- declare type ConstructionTypeMapping = {
3
+ type ConstructionTypeMapping = {
4
4
  [key in ConstructionType]: ConstructionTypeList;
5
5
  };
6
6
  export declare const constructionTypeMapping: ConstructionTypeMapping;
@@ -1,6 +1,6 @@
1
1
  import { Countries } from '../events/public-applicant';
2
2
  import { CountryCodeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
3
- declare type CountryCodeMapping = {
3
+ type CountryCodeMapping = {
4
4
  [key in Countries]: CountryCodeList;
5
5
  };
6
6
  export declare const countryCodeMapping: Partial<CountryCodeMapping>;
@@ -1,6 +1,6 @@
1
1
  import { PaygBasisList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
2
2
  import { EmploymentBasis } from '../events/public-employment';
3
- declare type PaygEmploymentBasisMapping = {
3
+ type PaygEmploymentBasisMapping = {
4
4
  [key in EmploymentBasis]: PaygBasisList;
5
5
  };
6
6
  export declare const paygEmploymentBasisMapping: PaygEmploymentBasisMapping;
@@ -1,6 +1,6 @@
1
1
  import { List as FrequencyList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
2
2
  import { Frequency } from '../events/public-expense';
3
- declare type FrequencyMapping = {
3
+ type FrequencyMapping = {
4
4
  [key in Frequency]: FrequencyList;
5
5
  };
6
6
  export declare const frequencyMapping: Partial<FrequencyMapping>;
@@ -1,17 +1,17 @@
1
1
  import { FeeCategoryList, FeeTypeList, Custom4DescriptionList as DescriptionList, ContributionFundsTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
2
- declare type CategoryMapping = {
2
+ type CategoryMapping = {
3
3
  [key: string]: FeeCategoryList;
4
4
  };
5
5
  export declare const categoryMapping: CategoryMapping;
6
- declare type TypeMapping = {
6
+ type TypeMapping = {
7
7
  [key: string]: FeeTypeList;
8
8
  };
9
9
  export declare const typeMapping: TypeMapping;
10
- declare type DescriptionMapping = {
10
+ type DescriptionMapping = {
11
11
  [key: string]: DescriptionList;
12
12
  };
13
13
  export declare const descriptionMapping: DescriptionMapping;
14
- declare type ContributionMapping = {
14
+ type ContributionMapping = {
15
15
  [key: string]: ContributionFundsTypeList;
16
16
  };
17
17
  export declare const contributionMapping: ContributionMapping;
@@ -1,6 +1,6 @@
1
1
  import { GovernmentBenefitsTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
2
2
  import { BenefitType } from '../events/public-income';
3
- declare type GovernmentBenefitsMapping = {
3
+ type GovernmentBenefitsMapping = {
4
4
  [key in BenefitType]: GovernmentBenefitsTypeList;
5
5
  };
6
6
  export declare const governmentBenefitsMapping: Partial<GovernmentBenefitsMapping>;
@@ -1,6 +1,6 @@
1
1
  import { HousingStatusList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
2
2
  import { HousingStatusList as ApplicantEventHousingStatusList } from '../events/public-applicant';
3
- declare type HousingStatusMapping = {
3
+ type HousingStatusMapping = {
4
4
  [key in ApplicantEventHousingStatusList]: HousingStatusList;
5
5
  };
6
6
  export declare const housingStatusMapping: HousingStatusMapping;
@@ -1,6 +1,6 @@
1
1
  import { OtherIncomeTypeList, Custom0DescriptionList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
2
2
  import { IncomeType } from '../events/public-income';
3
- declare type OtherIncomeMapping = {
3
+ type OtherIncomeMapping = {
4
4
  [key in IncomeType]: OtherIncomeTypeList | Custom0DescriptionList;
5
5
  };
6
6
  export declare const otherIncomeMapping: Partial<OtherIncomeMapping>;
@@ -1,6 +1,6 @@
1
1
  import { PaymentTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
2
2
  import { RepaymentTypeDetails } from '../events/public-liability';
3
- declare type LiabilityPaymentTypeMapping = {
3
+ type LiabilityPaymentTypeMapping = {
4
4
  [key in RepaymentTypeDetails]: PaymentTypeList;
5
5
  };
6
6
  export declare const liabilityPaymentTypeMapping: LiabilityPaymentTypeMapping;
@@ -1,6 +1,6 @@
1
1
  import { LiabilityTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
2
2
  import { LiabilityType } from '../events/public-liability';
3
- declare type LiabilityTypeMapping = {
3
+ type LiabilityTypeMapping = {
4
4
  [key in LiabilityType]: LiabilityTypeList;
5
5
  };
6
6
  export declare const liabilityTypeMapping: LiabilityTypeMapping;
@@ -1,6 +1,6 @@
1
1
  import { OtherCommitmentCategoryList, LivingExpenseCategoryList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
2
2
  import { ExpenseType } from '../events/public-expense';
3
- declare type LivingExpenseMapping = {
3
+ type LivingExpenseMapping = {
4
4
  [key in ExpenseType]: LivingExpenseCategoryList | OtherCommitmentCategoryList;
5
5
  };
6
6
  export declare const livingExpenseMapping: LivingExpenseMapping;
@@ -24,6 +24,7 @@ exports.livingExpenseMapping = {
24
24
  [public_expense_1.ExpenseType.PrivateSchoolingAndTuition]: lixi_internal_request_1.LivingExpenseCategoryList.PrivateSchoolingAndTuition,
25
25
  [public_expense_1.ExpenseType.RecreationAndEntertainment]: lixi_internal_request_1.LivingExpenseCategoryList.RecreationAndEntertainment,
26
26
  [public_expense_1.ExpenseType.Rent]: lixi_internal_request_1.OtherCommitmentCategoryList.Rent,
27
+ [public_expense_1.ExpenseType.RentUtilities]: lixi_internal_request_1.LivingExpenseCategoryList.PrimaryResidenceRunningCosts,
27
28
  [public_expense_1.ExpenseType.SecondaryResidenceRunningCosts]: lixi_internal_request_1.LivingExpenseCategoryList.SecondaryResidenceRunningCosts,
28
29
  [public_expense_1.ExpenseType.TelephoneInternetPayTvAndMediaStreamingSubscriptions]: lixi_internal_request_1.LivingExpenseCategoryList.TelephoneInternetPayTVAndMediaStreamingSubscriptions,
29
30
  [public_expense_1.ExpenseType.Transport]: lixi_internal_request_1.LivingExpenseCategoryList.Transport,
@@ -1,6 +1,6 @@
1
1
  import { MaritalStatusList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
2
2
  import { MaritalStatus } from '../events/public-applicant';
3
- declare type MaritalStatusMapping = {
3
+ type MaritalStatusMapping = {
4
4
  [key in MaritalStatus]: MaritalStatusList;
5
5
  };
6
6
  export declare const maritalStatusMapping: MaritalStatusMapping;
@@ -1,5 +1,5 @@
1
1
  import { AustralianState } from '../events/public-required-document';
2
- declare type PostCodeMapping = {
2
+ type PostCodeMapping = {
3
3
  [key in AustralianState]: string;
4
4
  };
5
5
  export declare const postcodeMapping: PostCodeMapping;
@@ -1,6 +1,6 @@
1
1
  import { PaymentTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
2
2
  import { PaymentType } from '../events/public-application';
3
- declare type PreferredRepaymentMapping = {
3
+ type PreferredRepaymentMapping = {
4
4
  [key in PaymentType]: PaymentTypeList;
5
5
  };
6
6
  export declare const preferredRepaymentMapping: PreferredRepaymentMapping;
@@ -1,6 +1,6 @@
1
1
  import { DocumentTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
2
2
  import { IDType } from '../events/public-required-document';
3
- declare type ProofOfIdentityMapping = {
3
+ type ProofOfIdentityMapping = {
4
4
  [key in IDType]: DocumentTypeList;
5
5
  };
6
6
  export declare const proofOfIdentityMapping: ProofOfIdentityMapping;
@@ -1,6 +1,6 @@
1
1
  import { PropertyExpenseCategoryList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
2
2
  import { PropertyExpenseType } from '../events/public-asset';
3
- declare type PropertyExpenseCategoryMapping = {
3
+ type PropertyExpenseCategoryMapping = {
4
4
  [key in PropertyExpenseType]: PropertyExpenseCategoryList;
5
5
  };
6
6
  export declare const propertyExpenseCategoryMapping: PropertyExpenseCategoryMapping;
@@ -1,6 +1,6 @@
1
1
  import { FinancialAssetTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
2
2
  import { AssetType } from '../events/public-asset';
3
- declare type FinancialAssetMapping = {
3
+ type FinancialAssetMapping = {
4
4
  [key in AssetType]: FinancialAssetTypeList;
5
5
  };
6
6
  export declare const financialAssetMapping: Partial<FinancialAssetMapping>;
@@ -1,6 +1,6 @@
1
1
  import { PrimaryPurposeRealEstateAssetList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
2
2
  import { PrimaryPurpose } from '../events/public-asset';
3
- declare type PrimaryPurposeMapping = {
3
+ type PrimaryPurposeMapping = {
4
4
  [key in PrimaryPurpose]: PrimaryPurposeRealEstateAssetList;
5
5
  };
6
6
  export declare const primaryPurposeMapping: PrimaryPurposeMapping;
@@ -1,6 +1,6 @@
1
1
  import { RealEstateAssetStatusList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
2
2
  import { PropertyStatus } from '../events/public-asset';
3
- declare type PropertyStatusMapping = {
3
+ type PropertyStatusMapping = {
4
4
  [key in PropertyStatus]: RealEstateAssetStatusList;
5
5
  };
6
6
  export declare const propertyStatusMapping: PropertyStatusMapping;
@@ -1,6 +1,6 @@
1
1
  import { PropertyType } from '../events/public-asset';
2
2
  import { ResidentialTypeList, Custom2PropertyTypeNameList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
3
- declare type PropertyTypeMapping = {
3
+ type PropertyTypeMapping = {
4
4
  [key in PropertyType]: ResidentialTypeList | Custom2PropertyTypeNameList;
5
5
  };
6
6
  export declare const propertyTypeMapping: PropertyTypeMapping;
@@ -1,6 +1,6 @@
1
1
  import { ResidencyStatus } from '../events/public-applicant';
2
2
  import { ResidencyStatusList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
3
- declare type ResidencyStatusMapping = {
3
+ type ResidencyStatusMapping = {
4
4
  [key in ResidencyStatus]: ResidencyStatusList;
5
5
  };
6
6
  export declare const residencyStatusMapping: ResidencyStatusMapping;
@@ -1,6 +1,6 @@
1
1
  import { IDTitle } from '../events/public-required-document';
2
2
  import { GenderList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
3
- declare type TitleGenderMapping = {
3
+ type TitleGenderMapping = {
4
4
  [key in IDTitle]: GenderList;
5
5
  };
6
6
  export declare const titleGenderMapping: Partial<TitleGenderMapping>;
@@ -1,6 +1,6 @@
1
1
  import { Title } from '../events/public-applicant';
2
2
  import { NameTitleList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
3
- declare type TitleMapping = {
3
+ type TitleMapping = {
4
4
  [key in Title]: NameTitleList;
5
5
  };
6
6
  export declare const titleMapping: TitleMapping;
@@ -1,6 +1,6 @@
1
1
  import { PurposeOfApplicationList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
2
2
  import { PrimaryPurpose } from '../events/public-application';
3
- declare type TransactionTypeMapping = {
3
+ type TransactionTypeMapping = {
4
4
  [key in PrimaryPurpose]: PurposeOfApplicationList;
5
5
  };
6
6
  export declare const transactionTypeMapping: TransactionTypeMapping;
@@ -53,6 +53,7 @@ export declare enum ExpenseType {
53
53
  PrivateSchoolingAndTuition = "PRIVATE_SCHOOLING_AND_TUITION",
54
54
  RecreationAndEntertainment = "RECREATION_AND_ENTERTAINMENT",
55
55
  Rent = "RENT",
56
+ RentUtilities = "RENT_UTILITIES",
56
57
  SecondaryResidenceRunningCosts = "SECONDARY_RESIDENCE_RUNNING_COSTS",
57
58
  TelephoneInternetPayTvAndMediaStreamingSubscriptions = "TELEPHONE_INTERNET_PAY_TV_AND_MEDIA_STREAMING_SUBSCRIPTIONS",
58
59
  Transport = "TRANSPORT"
@@ -31,6 +31,7 @@ var ExpenseType;
31
31
  ExpenseType["PrivateSchoolingAndTuition"] = "PRIVATE_SCHOOLING_AND_TUITION";
32
32
  ExpenseType["RecreationAndEntertainment"] = "RECREATION_AND_ENTERTAINMENT";
33
33
  ExpenseType["Rent"] = "RENT";
34
+ ExpenseType["RentUtilities"] = "RENT_UTILITIES";
34
35
  ExpenseType["SecondaryResidenceRunningCosts"] = "SECONDARY_RESIDENCE_RUNNING_COSTS";
35
36
  ExpenseType["TelephoneInternetPayTvAndMediaStreamingSubscriptions"] = "TELEPHONE_INTERNET_PAY_TV_AND_MEDIA_STREAMING_SUBSCRIPTIONS";
36
37
  ExpenseType["Transport"] = "TRANSPORT";
@@ -43,6 +43,10 @@ export interface Liability {
43
43
  repaymentAmount?: number;
44
44
  repaymentFrequency?: RepaymentFrequency;
45
45
  repaymentTypeDetails?: RepaymentTypeDetails;
46
+ /**
47
+ * Is the loan (split) to be topped up
48
+ */
49
+ toBeToppedUp?: boolean;
46
50
  type: LiabilityType;
47
51
  }
48
52
  export declare enum ClearingFromOtherSource {
@@ -1,3 +1,3 @@
1
1
  import { InternalRequest } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
2
2
  import { RecursivePartial } from './recursive-partial';
3
- export declare type PartialApplication = RecursivePartial<InternalRequest>;
3
+ export type PartialApplication = RecursivePartial<InternalRequest>;
@@ -1,3 +1,3 @@
1
- export declare type RecursivePartial<T> = {
1
+ export type RecursivePartial<T> = {
2
2
  [P in keyof T]?: RecursivePartial<T[P]>;
3
3
  };
@@ -6,7 +6,7 @@ import { Address, CommonAddressProperties, Countries, PreviousAddress as Interna
6
6
  /**
7
7
  * Type definition for functions used to transform types while mapping from event values to LIXI values.
8
8
  */
9
- export declare type MappingTransformFunction<I = any, O = any> = (input: I) => O;
9
+ export type MappingTransformFunction<I = any, O = any> = (input: I) => O;
10
10
  /**
11
11
  * Specifies the destination path of the object in dot notation along with an optional data transform function.
12
12
  */
@@ -23,7 +23,7 @@ export interface MappedTransform {
23
23
  /**
24
24
  * A type defining a record set of path mapped transforms
25
25
  */
26
- export declare type PathMappedTransform = Record<string, MappedTransform>;
26
+ export type PathMappedTransform = Record<string, MappedTransform>;
27
27
  export declare const lixiContactAddressMapping: PathMappedTransform;
28
28
  export declare const australianStates: string[];
29
29
  /**
@@ -37,8 +37,8 @@ export declare const lixiAddressMapping: PathMappedTransform;
37
37
  * @param pathMappedTransform A PathMappedTransform to be applied to the source
38
38
  */
39
39
  export declare function mapTransform<T>(source: any, pathMappedTransform: PathMappedTransform): T;
40
- declare type EventAddressType = InternalPreviousAddress | CommonAddressProperties;
41
- export declare type LixiContactAddressType = CurrentAddress | PreviousAddress;
40
+ type EventAddressType = InternalPreviousAddress | CommonAddressProperties;
41
+ export type LixiContactAddressType = CurrentAddress | PreviousAddress;
42
42
  export interface AddressTransformedType {
43
43
  lixiAddress: AddressType;
44
44
  lixiContactAddress: LixiContactAddressType;
@@ -1,4 +1,4 @@
1
- export declare type DateConstructorParam = ConstructorParameters<DateConstructor>[0];
1
+ export type DateConstructorParam = ConstructorParameters<DateConstructor>[0];
2
2
  /**
3
3
  * Accepts any type of data format and normalises it into a consistent format
4
4
  * as "2019-09-19".
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lendi/integrations-transform",
3
- "version": "1.7.3",
3
+ "version": "1.7.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,7 +21,7 @@
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.18.0",
24
+ "@lendi/integrations-credit-protocol": "1.18.1",
25
25
  "@lendi/integrations-protocol": "2.7.0",
26
26
  "@lendi/logging": "^1.0.0",
27
27
  "clean-deep": "^3.4.0",