From 21c3ddcbc6dad9994b9ffad7222d9ba3052c09fb Mon Sep 17 00:00:00 2001 From: Bilal Hussain Date: Tue, 14 Jan 2025 14:34:09 -0600 Subject: [PATCH 1/2] added credit_health_open_accounts to attributes --- package-lock.json | 2 +- package.json | 2 +- src/resources/Entity/types.ts | 2 ++ src/resources/Webhook/index.ts | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index ce6ad11..155eb36 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "method-node", - "version": "1.1.5", + "version": "1.1.7", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 6546a0a..5fe51de 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "method-node", - "version": "1.1.6", + "version": "1.1.7", "description": "Node.js library for the Method API", "main": "dist/index.ts", "module": "dist/index.mjs", diff --git a/src/resources/Entity/types.ts b/src/resources/Entity/types.ts index 1f08b83..e58bbdd 100644 --- a/src/resources/Entity/types.ts +++ b/src/resources/Entity/types.ts @@ -166,6 +166,8 @@ export interface IEntityAttributesType { credit_health_total_accounts: ICreditHealthAttribute; credit_health_credit_age: ICreditHealthAttribute; credit_health_payment_history: ICreditHealthAttribute; + credit_health_open_accounts: ICreditHealthAttribute; + } export interface IEntityAttributes { diff --git a/src/resources/Webhook/index.ts b/src/resources/Webhook/index.ts index 7d2647d..cdc5a43 100644 --- a/src/resources/Webhook/index.ts +++ b/src/resources/Webhook/index.ts @@ -60,6 +60,8 @@ export const WebhookTypes = { attribute_credit_health_credit_age_decreased: 'attribute.credit_health_credit_age.decreased', attribute_credit_health_payment_history_increased: 'attribute.credit_health_payment_history.increased', attribute_credit_health_payment_history_decreased: 'attribute.credit_health_payment_history.decreased', + attribute_credit_health_open_accounts_increased: 'attribute.credit_health_open_accounts.increased', + attribute_credit_health_open_accounts_decreased: 'attribute.credit_health_open_accounts.decreased', } as const; export type TWebhookTypes = typeof WebhookTypes[keyof typeof WebhookTypes]; From 08dde37ede14e6fcc4de3509903b961369335b29 Mon Sep 17 00:00:00 2001 From: Bilal Hussain Date: Tue, 14 Jan 2025 14:59:04 -0600 Subject: [PATCH 2/2] nit --- src/resources/Entity/types.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/resources/Entity/types.ts b/src/resources/Entity/types.ts index e58bbdd..156ca7c 100644 --- a/src/resources/Entity/types.ts +++ b/src/resources/Entity/types.ts @@ -167,7 +167,6 @@ export interface IEntityAttributesType { credit_health_credit_age: ICreditHealthAttribute; credit_health_payment_history: ICreditHealthAttribute; credit_health_open_accounts: ICreditHealthAttribute; - } export interface IEntityAttributes {