@lendi/act-credit-decisions-transform 2.0.19 → 2.0.21

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.
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "applicationId": {
35
35
  "description": "Application ID",
36
- "type": "string"
36
+ "type": ["string"]
37
37
  },
38
38
  "applicantId": {
39
39
  "description": "Application ID",
@@ -358,9 +358,25 @@
358
358
  }
359
359
  },
360
360
  "required": ["idNumber", "idType"]
361
+ },
362
+ "entityId": {
363
+ "description": "Entity ID",
364
+ "type": ["string", "null"]
365
+ },
366
+ "entityType": {
367
+ "description": "Entity type - EAC only supports APPLICATION type",
368
+ "type": "string"
361
369
  }
362
370
  },
363
- "required": ["id", "applicationId", "applicantId"]
371
+ "required": ["id", "applicantId"],
372
+ "anyOf": [
373
+ {
374
+ "required": ["applicationId"]
375
+ },
376
+ {
377
+ "required": ["applicationId", "entityId", "entityType"]
378
+ }
379
+ ]
364
380
  }
365
381
  }
366
382
  }
@@ -23,6 +23,14 @@ export interface Payload {
23
23
  */
24
24
  createdAt?: string;
25
25
  eConsent?: EConsent;
26
+ /**
27
+ * Entity ID
28
+ */
29
+ entityId?: null | string;
30
+ /**
31
+ * Entity type - EAC only supports APPLICATION type
32
+ */
33
+ entityType?: string;
26
34
  /**
27
35
  * Expiry Date (can be null if no expiry date set)
28
36
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Guarantee that the uniqueId is no more than maxLength length
2
+ * Guarantee that the uniqueId of the expense by using md5 hashing
3
3
  *
4
4
  * @param id
5
5
  * @returns
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.generateUniqueExpenseId = void 0;
4
4
  const crypto = require("crypto");
5
5
  /**
6
- * Guarantee that the uniqueId is no more than maxLength length
6
+ * Guarantee that the uniqueId of the expense by using md5 hashing
7
7
  *
8
8
  * @param id
9
9
  * @returns
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lendi/act-credit-decisions-transform",
3
- "version": "2.0.19",
3
+ "version": "2.0.21",
4
4
  "private": false,
5
5
  "description": "Library for kafka event data transforming",
6
6
  "author": "Integrations <integrations@lendi.com.au>",