From fca4ef9370625146cc39ec6493600de510fa0e1b Mon Sep 17 00:00:00 2001 From: Michael Ossig Date: Tue, 18 Mar 2025 11:57:42 -0400 Subject: [PATCH 1/3] adds attribute as entity subscription --- src/resources/Entity/types.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/resources/Entity/types.ts b/src/resources/Entity/types.ts index 156ca7c..f9c80de 100644 --- a/src/resources/Entity/types.ts +++ b/src/resources/Entity/types.ts @@ -251,6 +251,7 @@ export interface IEntityProductListResponse { export const EntitySubscriptionNames = { connect: 'connect', credit_score: 'credit_score', + attribute: 'attribute', } as const; export type TEntitySubscriptionNames = keyof typeof EntitySubscriptionNames; From ab151d0daa580472b9f6b9719034fed26bcca117 Mon Sep 17 00:00:00 2001 From: Michael Ossig Date: Tue, 18 Mar 2025 11:58:07 -0400 Subject: [PATCH 2/3] bump version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 383d222..21434db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "method-node", - "version": "1.1.10", + "version": "1.1.11", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "method-node", - "version": "1.1.10", + "version": "1.1.11", "license": "ISC", "dependencies": { "axios": "^1.7.4", diff --git a/package.json b/package.json index 8882b58..90afb39 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "method-node", - "version": "1.1.10", + "version": "1.1.11", "description": "Node.js library for the Method API", "main": "dist/index.ts", "module": "dist/index.mjs", From 8327f0d75c618f5480e4c677f7950f74d181cbf3 Mon Sep 17 00:00:00 2001 From: Michael Ossig Date: Tue, 18 Mar 2025 15:14:08 -0400 Subject: [PATCH 3/3] fixed test --- test/resources/Entity.tests.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/resources/Entity.tests.ts b/test/resources/Entity.tests.ts index 6fa8766..0494948 100644 --- a/test/resources/Entity.tests.ts +++ b/test/resources/Entity.tests.ts @@ -9,10 +9,8 @@ import type { IEntityIdentity, IEntityProduct, IEntityProductListResponse, - TEntityProductType, IEntitySubscription, IEntitySubscriptionResponse, - TEntitySubscriptionNames, IEntityVerificationSession, IEntityAttributes, IEntityVehicles, @@ -789,7 +787,7 @@ describe('Entities - core methods tests', () => { latest_request_id: entities_retrieve_product_list_response.attribute ?.latest_request_id || null, - is_subscribable: false, + is_subscribable: true, created_at: entities_retrieve_product_list_response.attribute?.created_at || '', updated_at: @@ -890,7 +888,7 @@ describe('Entities - core methods tests', () => { status: 'available', status_error: null, latest_request_id: entity_attribute_product.latest_request_id, - is_subscribable: false, + is_subscribable: true, created_at: entity_attribute_product.created_at, updated_at: entity_attribute_product.updated_at, };