@lendi/act-credit-decisions-transform 2.0.25 → 2.0.26

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.
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "http://json-schema.org/schema#",
2
3
  "type": "object",
3
4
  "properties": {
4
5
  "payload": {
@@ -16,49 +17,47 @@
16
17
  "definitions": {
17
18
  "payload": {
18
19
  "type": "object",
19
- "allOf": [
20
- {
21
- "properties": {
22
- "applicationId": {
23
- "type": "string"
24
- },
25
- "applicantId": {
26
- "type": "string"
27
- },
28
- "customerId": {
29
- "type": "string"
30
- },
31
- "source": {
32
- "description": "A list of credit report service provider",
33
- "type": "string",
34
- "enum": ["equifax"]
35
- },
36
- "createdAt": {
37
- "description": "ISO 8601 time when the event is created",
38
- "type": "string",
39
- "format": "date-time",
40
- "example": ["2020-11-03T03:43:33.333Z"]
41
- }
42
- },
43
- "required": ["applicationId", "applicantId", "customerId", "source"]
20
+ "properties": {
21
+ "applicationId": {
22
+ "type": "string"
44
23
  },
45
- {
46
- "oneOf": [
47
- {
48
- "$ref": "#/definitions/Response"
49
- },
50
- {
51
- "$ref": "#/definitions/ResponseError"
52
- },
53
- {
54
- "$ref": "#/definitions/ResponseDeidentified"
55
- },
56
- {
57
- "$ref": "#/definitions/ValidationErrors"
58
- }
59
- ]
24
+ "applicantId": {
25
+ "type": "string"
26
+ },
27
+ "customerId": {
28
+ "type": "string"
29
+ },
30
+ "source": {
31
+ "description": "A list of credit report service provider",
32
+ "type": "string",
33
+ "enum": ["equifax"]
34
+ },
35
+ "createdAt": {
36
+ "description": "ISO 8601 time when the event is created",
37
+ "type": "string",
38
+ "format": "date-time",
39
+ "example": ["2020-11-03T03:43:33.333Z"]
40
+ },
41
+ "raw": {
42
+ "description": "Credit report raw content, compressed and 64-base encoded.",
43
+ "type": "string"
44
+ },
45
+ "transformedJson": {
46
+ "description": "The transformed credit report from the raw content. All enumerated fields are mapped to their corresponding internal Lendi values while preserving the original values wherever possible. This is a work in progress; additional fields can be added as needed.",
47
+ "$ref": "#/definitions/TransformedCreditReport"
48
+ },
49
+ "json": {
50
+ "description": "Transformed credit report in json format from the raw content. This field is deprecated and will be removed in the future. Consider to use field transformedJson instead.",
51
+ "deprecated": true,
52
+ "$ref": "#/definitions/CreditReport"
53
+ },
54
+ "isNoMatch": {
55
+ "description": "Indicate whether there is a match found or not for the customer.",
56
+ "type": "boolean",
57
+ "default": false
60
58
  }
61
- ]
59
+ },
60
+ "required": ["applicationId", "applicantId", "customerId", "source", "raw"]
62
61
  },
63
62
  "Address": {
64
63
  "type": "object",
@@ -798,78 +797,6 @@
798
797
  "$ref": "#/definitions/TransformedConsumerCreditFile"
799
798
  }
800
799
  }
801
- },
802
- "Response": {
803
- "type": "object",
804
- "properties": {
805
- "raw": {
806
- "description": "Credit report raw content, compressed and 64-base encoded.",
807
- "type": "string"
808
- },
809
- "transformedJson": {
810
- "description": "The transformed credit report from the raw content. All enumerated fields are mapped to their corresponding internal Lendi values while preserving the original values wherever possible. This is a work in progress; additional fields can be added as needed.",
811
- "$ref": "#/definitions/TransformedCreditReport"
812
- },
813
- "json": {
814
- "description": "Transformed credit report in json format from the raw content. This field is deprecated and will be removed in the future. Consider to use field transformedJson instead.",
815
- "deprecated": true,
816
- "$ref": "#/definitions/CreditReport"
817
- },
818
- "isNoMatch": {
819
- "description": "Indicate whether there is a match found or not for the customer.",
820
- "type": "boolean",
821
- "default": false
822
- }
823
- },
824
- "required": ["raw", "json"]
825
- },
826
- "ResponseError": {
827
- "type": "object",
828
- "properties": {
829
- "message": {
830
- "type": "string"
831
- },
832
- "isNoMatch": {
833
- "type": "boolean"
834
- }
835
- },
836
- "required": ["message"]
837
- },
838
- "ResponseDeidentified": {
839
- "type": "object",
840
- "properties": {
841
- "isDeidentified": {
842
- "type": "boolean"
843
- }
844
- },
845
- "required": ["isDeidentified"]
846
- },
847
- "ValidationErrors": {
848
- "type": "object",
849
- "properties": {
850
- "errors": {
851
- "type": "array",
852
- "items": {
853
- "$ref": "#/definitions/ValidationError"
854
- }
855
- }
856
- },
857
- "required": ["errors"]
858
- },
859
- "ValidationError": {
860
- "type": "object",
861
- "properties": {
862
- "path": {
863
- "type": "array",
864
- "items": {
865
- "type": "string"
866
- }
867
- },
868
- "message": {
869
- "description": "Validation error message",
870
- "type": "string"
871
- }
872
- }
873
800
  }
874
801
  }
875
802
  }
@@ -11,8 +11,6 @@ export interface Payload {
11
11
  */
12
12
  createdAt?: string;
13
13
  customerId: string;
14
- errors?: ValidationError[];
15
- isDeidentified?: boolean;
16
14
  /**
17
15
  * Indicate whether there is a match found or not for the customer.
18
16
  */
@@ -22,11 +20,10 @@ export interface Payload {
22
20
  * and will be removed in the future. Consider to use field transformedJson instead.
23
21
  */
24
22
  json?: CreditReport;
25
- message?: string;
26
23
  /**
27
24
  * Credit report raw content, compressed and 64-base encoded.
28
25
  */
29
- raw?: string;
26
+ raw: string;
30
27
  /**
31
28
  * A list of credit report service provider
32
29
  */
@@ -38,13 +35,6 @@ export interface Payload {
38
35
  */
39
36
  transformedJson?: TransformedCreditReport;
40
37
  }
41
- export interface ValidationError {
42
- /**
43
- * Validation error message
44
- */
45
- message?: string;
46
- path?: string[];
47
- }
48
38
  /**
49
39
  * Transformed credit report in json format from the raw content. This field is deprecated
50
40
  * and will be removed in the future. Consider to use field transformedJson instead.
@@ -416,6 +416,9 @@ export interface PropertyExpense {
416
416
  amount?: number;
417
417
  comments?: string;
418
418
  frequency?: Frequency;
419
+ /**
420
+ * BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX is deprecated.
421
+ */
419
422
  type: PropertyExpenseType;
420
423
  }
421
424
  export declare enum Frequency {
@@ -425,16 +428,16 @@ export declare enum Frequency {
425
428
  Weekly = "WEEKLY",
426
429
  Yearly = "YEARLY"
427
430
  }
431
+ /**
432
+ * BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX is deprecated.
433
+ */
428
434
  export declare enum PropertyExpenseType {
429
- /**
430
- * @deprecated The field has been deprecated and replaced with StrataBodyCorporateFees and LandTax
431
- */
432
435
  BodyCorporateFeesStrataFeesAndLandTax = "BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX",
433
- StrataBodyCorporateFees = "STRATA_BODY_CORPORATE_FEES",
434
- LandTax = "LAND_TAX",
435
436
  InvestmentPropertyRunningCosts = "INVESTMENT_PROPERTY_RUNNING_COSTS",
437
+ LandTax = "LAND_TAX",
436
438
  PrimaryResidenceRunningCosts = "PRIMARY_RESIDENCE_RUNNING_COSTS",
437
- SecondaryResidenceRunningCosts = "SECONDARY_RESIDENCE_RUNNING_COSTS"
439
+ SecondaryResidenceRunningCosts = "SECONDARY_RESIDENCE_RUNNING_COSTS",
440
+ StrataBodyCorporateFees = "STRATA_BODY_CORPORATE_FEES"
438
441
  }
439
442
  export declare enum PropertyStatus {
440
443
  Established = "ESTABLISHED",
@@ -277,17 +277,17 @@ var Frequency;
277
277
  Frequency["Weekly"] = "WEEKLY";
278
278
  Frequency["Yearly"] = "YEARLY";
279
279
  })(Frequency || (exports.Frequency = Frequency = {}));
280
+ /**
281
+ * BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX is deprecated.
282
+ */
280
283
  var PropertyExpenseType;
281
284
  (function (PropertyExpenseType) {
282
- /**
283
- * @deprecated The field has been deprecated and replaced with StrataBodyCorporateFees and LandTax
284
- */
285
285
  PropertyExpenseType["BodyCorporateFeesStrataFeesAndLandTax"] = "BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX";
286
- PropertyExpenseType["StrataBodyCorporateFees"] = "STRATA_BODY_CORPORATE_FEES";
287
- PropertyExpenseType["LandTax"] = "LAND_TAX";
288
286
  PropertyExpenseType["InvestmentPropertyRunningCosts"] = "INVESTMENT_PROPERTY_RUNNING_COSTS";
287
+ PropertyExpenseType["LandTax"] = "LAND_TAX";
289
288
  PropertyExpenseType["PrimaryResidenceRunningCosts"] = "PRIMARY_RESIDENCE_RUNNING_COSTS";
290
289
  PropertyExpenseType["SecondaryResidenceRunningCosts"] = "SECONDARY_RESIDENCE_RUNNING_COSTS";
290
+ PropertyExpenseType["StrataBodyCorporateFees"] = "STRATA_BODY_CORPORATE_FEES";
291
291
  })(PropertyExpenseType || (exports.PropertyExpenseType = PropertyExpenseType = {}));
292
292
  var PropertyStatus;
293
293
  (function (PropertyStatus) {
@@ -23,6 +23,9 @@ export interface Expense {
23
23
  amount?: number;
24
24
  comments?: string;
25
25
  frequency: Frequency;
26
+ /**
27
+ * BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX has been deprecated
28
+ */
26
29
  type: ExpenseType;
27
30
  }
28
31
  export declare enum Frequency {
@@ -32,8 +35,12 @@ export declare enum Frequency {
32
35
  Weekly = "WEEKLY",
33
36
  Yearly = "YEARLY"
34
37
  }
38
+ /**
39
+ * BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX has been deprecated
40
+ */
35
41
  export declare enum ExpenseType {
36
42
  Board = "BOARD",
43
+ BodyCorporateFeesStrataFeesAndLandTax = "BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX",
37
44
  ChildAndSpousalMaintenance = "CHILD_AND_SPOUSAL_MAINTENANCE",
38
45
  Childcare = "CHILDCARE",
39
46
  ClothingAndPersonalCare = "CLOTHING_AND_PERSONAL_CARE",
@@ -42,6 +49,7 @@ export declare enum ExpenseType {
42
49
  HigherVocationalTrainingEducation = "HIGHER_VOCATIONAL_TRAINING_EDUCATION",
43
50
  Insurance = "INSURANCE",
44
51
  InvestmentPropertyRunningCosts = "INVESTMENT_PROPERTY_RUNNING_COSTS",
52
+ LandTax = "LAND_TAX",
45
53
  LifeInsurance = "LIFE_INSURANCE",
46
54
  LivingExpensesEstimate = "LIVING_EXPENSES_ESTIMATE",
47
55
  MedicalAndHealth = "MEDICAL_AND_HEALTH",
@@ -54,14 +62,9 @@ export declare enum ExpenseType {
54
62
  Rent = "RENT",
55
63
  RentUtilities = "RENT_UTILITIES",
56
64
  SecondaryResidenceRunningCosts = "SECONDARY_RESIDENCE_RUNNING_COSTS",
57
- TelephoneInternetPayTvAndMediaStreamingSubscriptions = "TELEPHONE_INTERNET_PAY_TV_AND_MEDIA_STREAMING_SUBSCRIPTIONS",
58
- Transport = "TRANSPORT",
59
- /**
60
- * @deprecated The field has been deprecated and replaced with StrataBodyCorporateFees and LandTax
61
- */
62
- BodyCorporateFeesStrataFeesAndLandTax = "BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX",
63
65
  StrataBodyCorporateFees = "STRATA_BODY_CORPORATE_FEES",
64
- LandTax = "LAND_TAX"
66
+ TelephoneInternetPayTvAndMediaStreamingSubscriptions = "TELEPHONE_INTERNET_PAY_TV_AND_MEDIA_STREAMING_SUBSCRIPTIONS",
67
+ Transport = "TRANSPORT"
65
68
  }
66
69
  /**
67
70
  * The metadata of the alieo
@@ -9,9 +9,13 @@ var Frequency;
9
9
  Frequency["Weekly"] = "WEEKLY";
10
10
  Frequency["Yearly"] = "YEARLY";
11
11
  })(Frequency || (exports.Frequency = Frequency = {}));
12
+ /**
13
+ * BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX has been deprecated
14
+ */
12
15
  var ExpenseType;
13
16
  (function (ExpenseType) {
14
17
  ExpenseType["Board"] = "BOARD";
18
+ ExpenseType["BodyCorporateFeesStrataFeesAndLandTax"] = "BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX";
15
19
  ExpenseType["ChildAndSpousalMaintenance"] = "CHILD_AND_SPOUSAL_MAINTENANCE";
16
20
  ExpenseType["Childcare"] = "CHILDCARE";
17
21
  ExpenseType["ClothingAndPersonalCare"] = "CLOTHING_AND_PERSONAL_CARE";
@@ -20,6 +24,7 @@ var ExpenseType;
20
24
  ExpenseType["HigherVocationalTrainingEducation"] = "HIGHER_VOCATIONAL_TRAINING_EDUCATION";
21
25
  ExpenseType["Insurance"] = "INSURANCE";
22
26
  ExpenseType["InvestmentPropertyRunningCosts"] = "INVESTMENT_PROPERTY_RUNNING_COSTS";
27
+ ExpenseType["LandTax"] = "LAND_TAX";
23
28
  ExpenseType["LifeInsurance"] = "LIFE_INSURANCE";
24
29
  ExpenseType["LivingExpensesEstimate"] = "LIVING_EXPENSES_ESTIMATE";
25
30
  ExpenseType["MedicalAndHealth"] = "MEDICAL_AND_HEALTH";
@@ -32,14 +37,9 @@ var ExpenseType;
32
37
  ExpenseType["Rent"] = "RENT";
33
38
  ExpenseType["RentUtilities"] = "RENT_UTILITIES";
34
39
  ExpenseType["SecondaryResidenceRunningCosts"] = "SECONDARY_RESIDENCE_RUNNING_COSTS";
40
+ ExpenseType["StrataBodyCorporateFees"] = "STRATA_BODY_CORPORATE_FEES";
35
41
  ExpenseType["TelephoneInternetPayTvAndMediaStreamingSubscriptions"] = "TELEPHONE_INTERNET_PAY_TV_AND_MEDIA_STREAMING_SUBSCRIPTIONS";
36
42
  ExpenseType["Transport"] = "TRANSPORT";
37
- /**
38
- * @deprecated The field has been deprecated and replaced with StrataBodyCorporateFees and LandTax
39
- */
40
- ExpenseType["BodyCorporateFeesStrataFeesAndLandTax"] = "BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX";
41
- ExpenseType["StrataBodyCorporateFees"] = "STRATA_BODY_CORPORATE_FEES";
42
- ExpenseType["LandTax"] = "LAND_TAX";
43
43
  })(ExpenseType || (exports.ExpenseType = ExpenseType = {}));
44
44
  /**
45
45
  * role of the user that made the action
@@ -18,9 +18,6 @@ export interface Income {
18
18
  bas?: BASDefinition[];
19
19
  benefitType?: BenefitType;
20
20
  comments?: string;
21
- /**
22
- * SelfEmployed
23
- */
24
21
  companyId?: string;
25
22
  description?: string;
26
23
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lendi/act-credit-decisions-transform",
3
- "version": "2.0.25",
3
+ "version": "2.0.26",
4
4
  "private": false,
5
5
  "description": "Library for kafka event data transforming",
6
6
  "author": "Integrations <integrations@lendi.com.au>",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@lendi/integrations-credit-protocol": "1.18.8",
26
- "@lendi/act-eac-integrations-protocol": "3.1.9",
26
+ "@lendi/act-eac-integrations-protocol": "3.1.10",
27
27
  "clean-deep": "^3.4.0",
28
28
  "date-fns": "2.19.0",
29
29
  "lodash": "^4.17.15"