@lendi/integrations-transform 1.8.1 → 1.8.2

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 (35) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/lib/types/enum-mappings/alieo-frequency.d.ts +3 -3
  3. package/lib/types/enum-mappings/applicant-gender.d.ts +1 -1
  4. package/lib/types/enum-mappings/applicant-type.d.ts +1 -1
  5. package/lib/types/enum-mappings/builder-type.d.ts +1 -1
  6. package/lib/types/enum-mappings/construction-type.d.ts +1 -1
  7. package/lib/types/enum-mappings/country-code.d.ts +1 -1
  8. package/lib/types/enum-mappings/employment-basis.d.ts +1 -1
  9. package/lib/types/enum-mappings/expense-frequency.d.ts +1 -1
  10. package/lib/types/enum-mappings/funding-position.d.ts +4 -4
  11. package/lib/types/enum-mappings/government-benefits.d.ts +1 -1
  12. package/lib/types/enum-mappings/housing-status.d.ts +1 -1
  13. package/lib/types/enum-mappings/income-type.d.ts +1 -1
  14. package/lib/types/enum-mappings/liability-payment-type.d.ts +1 -1
  15. package/lib/types/enum-mappings/liability-type.d.ts +1 -1
  16. package/lib/types/enum-mappings/living-expense.d.ts +1 -1
  17. package/lib/types/enum-mappings/marital-status.d.ts +1 -1
  18. package/lib/types/enum-mappings/postcode.d.ts +1 -1
  19. package/lib/types/enum-mappings/preferred-repayment.d.ts +1 -1
  20. package/lib/types/enum-mappings/proof-of-identity.d.ts +1 -1
  21. package/lib/types/enum-mappings/property-expense-category.d.ts +1 -1
  22. package/lib/types/enum-mappings/public-financial-asset.d.ts +1 -1
  23. package/lib/types/enum-mappings/public-primary-purpose.d.ts +1 -1
  24. package/lib/types/enum-mappings/public-property-status.d.ts +1 -1
  25. package/lib/types/enum-mappings/public-property-type.d.ts +1 -1
  26. package/lib/types/enum-mappings/residency-status.d.ts +1 -1
  27. package/lib/types/enum-mappings/title-gender.d.ts +1 -1
  28. package/lib/types/enum-mappings/title.d.ts +1 -1
  29. package/lib/types/enum-mappings/transaction-type.d.ts +1 -1
  30. package/lib/types/enum-mappings/trust.d.ts +1 -1
  31. package/lib/types/partial-application.d.ts +1 -1
  32. package/lib/types/recursive-partial.d.ts +1 -1
  33. package/lib/utils/address-tools.d.ts +4 -4
  34. package/lib/utils/normalise-date.d.ts +1 -1
  35. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 1.8.2
2
+
3
+ Changes
4
+ * Use `@lendi/integrations-protocol@2.7.4`
5
+
1
6
  # 1.8.1
2
7
 
3
8
  Changes
@@ -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 type LiabilityFrequencyMapping = {
4
+ export declare type LiabilityFrequencyMapping = {
5
5
  [key in RepaymentFrequency]: LIXIFrequency;
6
6
  };
7
- export type IncomeExpenseFrequencyMapping = {
7
+ export declare type IncomeExpenseFrequencyMapping = {
8
8
  [key in RepaymentFrequency | Frequency]: LIXIFrequency;
9
9
  };
10
- export type RentalIncomeFrequencyMapping = {
10
+ export declare 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 type ApplicantGenderMapping = {
3
+ export declare 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 type ApplicantTypeMapping = {
3
+ export declare 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
- type BuilderTypeMapping = {
3
+ declare 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
- type ConstructionTypeMapping = {
3
+ declare 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
- type CountryCodeMapping = {
3
+ declare 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
- type PaygEmploymentBasisMapping = {
3
+ declare 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
- type FrequencyMapping = {
3
+ declare 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
- type CategoryMapping = {
2
+ declare type CategoryMapping = {
3
3
  [key: string]: FeeCategoryList;
4
4
  };
5
5
  export declare const categoryMapping: CategoryMapping;
6
- type TypeMapping = {
6
+ declare type TypeMapping = {
7
7
  [key: string]: FeeTypeList;
8
8
  };
9
9
  export declare const typeMapping: TypeMapping;
10
- type DescriptionMapping = {
10
+ declare type DescriptionMapping = {
11
11
  [key: string]: DescriptionList;
12
12
  };
13
13
  export declare const descriptionMapping: DescriptionMapping;
14
- type ContributionMapping = {
14
+ declare 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
- type GovernmentBenefitsMapping = {
3
+ declare 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
- type HousingStatusMapping = {
3
+ declare 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
- type OtherIncomeMapping = {
3
+ declare 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
- type LiabilityPaymentTypeMapping = {
3
+ declare 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
- type LiabilityTypeMapping = {
3
+ declare 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
- type LivingExpenseMapping = {
3
+ declare type LivingExpenseMapping = {
4
4
  [key in ExpenseType]: LivingExpenseCategoryList | OtherCommitmentCategoryList;
5
5
  };
6
6
  export declare const livingExpenseMapping: LivingExpenseMapping;
@@ -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
- type MaritalStatusMapping = {
3
+ declare 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
- type PostCodeMapping = {
2
+ declare 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
- type PreferredRepaymentMapping = {
3
+ declare 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
- type ProofOfIdentityMapping = {
3
+ declare 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
- type PropertyExpenseCategoryMapping = {
3
+ declare 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
- type FinancialAssetMapping = {
3
+ declare 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
- type PrimaryPurposeMapping = {
3
+ declare 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
- type PropertyStatusMapping = {
3
+ declare 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
- type PropertyTypeMapping = {
3
+ declare 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
- type ResidencyStatusMapping = {
3
+ declare 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
- type TitleGenderMapping = {
3
+ declare 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
- type TitleMapping = {
3
+ declare 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
- type TransactionTypeMapping = {
3
+ declare type TransactionTypeMapping = {
4
4
  [key in PrimaryPurpose]: PurposeOfApplicationList;
5
5
  };
6
6
  export declare const transactionTypeMapping: TransactionTypeMapping;
@@ -1,6 +1,6 @@
1
1
  import { TrustType } from '../events/public-applicant';
2
2
  import { TrustStructureList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
3
- type TrustTypeMapping = {
3
+ declare type TrustTypeMapping = {
4
4
  [key in TrustType]: TrustStructureList;
5
5
  };
6
6
  export declare const trustTypeMapping: Partial<TrustTypeMapping>;
@@ -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 type PartialApplication = RecursivePartial<InternalRequest>;
3
+ export declare type PartialApplication = RecursivePartial<InternalRequest>;
@@ -1,3 +1,3 @@
1
- export type RecursivePartial<T> = {
1
+ export declare 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 type MappingTransformFunction<I = any, O = any> = (input: I) => O;
9
+ export declare 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 type PathMappedTransform = Record<string, MappedTransform>;
26
+ export declare 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
- type EventAddressType = InternalPreviousAddress | CommonAddressProperties;
41
- export type LixiContactAddressType = CurrentAddress | PreviousAddress;
40
+ declare type EventAddressType = InternalPreviousAddress | CommonAddressProperties;
41
+ export declare type LixiContactAddressType = CurrentAddress | PreviousAddress;
42
42
  export interface AddressTransformedType {
43
43
  lixiAddress: AddressType;
44
44
  lixiContactAddress: LixiContactAddressType;
@@ -1,4 +1,4 @@
1
- export type DateConstructorParam = ConstructorParameters<DateConstructor>[0];
1
+ export declare 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.8.1",
3
+ "version": "1.8.2",
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",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@lendi/integrations-credit-protocol": "1.18.5",
25
- "@lendi/integrations-protocol": "2.7.2",
25
+ "@lendi/integrations-protocol": "2.7.4",
26
26
  "@lendi/logging": "^1.0.0",
27
27
  "clean-deep": "^3.4.0",
28
28
  "date-fns": "2.19.0",