From 262c7dae6196b415a1e9f5bdc04d5592f4279f37 Mon Sep 17 00:00:00 2001 From: vprudnikoff Date: Fri, 2 Oct 2026 14:31:22 +0100 Subject: [PATCH] Hint how to unlock Sales Navigator actions on plusPlanRequired plusPlanRequired shared its case with subscriptionRequired and printed only the API message. It now has its own case with a hint, as trialLimitReached does: Sales Navigator actions need a Plus seat, where to switch, and that the LinkedIn account stays connected. Bumped to 1.2.16 so the merge publishes it. --- package-lock.json | 4 ++-- package.json | 4 ++-- src/core/errors/error-handler.ts | 7 +++++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 88527b4..2475ed4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@linkedapi/linkedin-cli", - "version": "1.2.15", + "version": "1.2.16", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@linkedapi/linkedin-cli", - "version": "1.2.15", + "version": "1.2.16", "license": "MIT", "dependencies": { "@linkedapi/node": "^2.3.13", diff --git a/package.json b/package.json index 939d303..b6a78fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@linkedapi/linkedin-cli", - "version": "1.2.15", + "version": "1.2.16", "description": "AI-agent-friendly CLI for controlling LinkedIn accounts and retrieving real-time data.", "author": "Linked API", "license": "MIT", @@ -135,4 +135,4 @@ "engines": { "node": ">=20.0.0" } -} \ No newline at end of file +} diff --git a/src/core/errors/error-handler.ts b/src/core/errors/error-handler.ts index c64d04b..740ce66 100644 --- a/src/core/errors/error-handler.ts +++ b/src/core/errors/error-handler.ts @@ -33,11 +33,18 @@ export function mapLinkedApiErrorToCliError(error: LinkedApiError): TCliError { }; case 'subscriptionRequired': + return { + exitCode: EXIT_CODE.SUBSCRIPTION, + error: error.type, + message: error.message, + }; + case 'plusPlanRequired': return { exitCode: EXIT_CODE.SUBSCRIPTION, error: error.type, message: error.message, + hint: 'Sales Navigator actions need a Plus seat – switch your subscription to Plus at https://app.linkedapi.io/accounts (Manage Subscription → Billing & Invoices). Your LinkedIn account stays connected.', }; case 'trialLimitReached':