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", 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; 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, };