@robinpath/hubspot
Advanced tools
+36
-7
| { | ||
| "name": "@robinpath/hubspot", | ||
| "version": "0.1.0", | ||
| "publishConfig": { "access": "public" }, | ||
| "version": "0.1.1", | ||
| "publishConfig": { | ||
| "access": "public" | ||
| }, | ||
| "type": "module", | ||
| "main": "dist/index.js", | ||
| "types": "dist/index.d.ts", | ||
| "exports": { ".": { "import": "./dist/index.js", "types": "./dist/index.d.ts" } }, | ||
| "files": ["dist"], | ||
| "scripts": { "build": "tsc" }, | ||
| "peerDependencies": { "@wiredwp/robinpath": ">=0.20.0" }, | ||
| "devDependencies": { "@wiredwp/robinpath": "^0.30.1", "typescript": "^5.6.0" } | ||
| "exports": { | ||
| ".": { | ||
| "import": "./dist/index.js", | ||
| "types": "./dist/index.d.ts" | ||
| } | ||
| }, | ||
| "files": [ | ||
| "dist" | ||
| ], | ||
| "scripts": { | ||
| "build": "tsc" | ||
| }, | ||
| "peerDependencies": { | ||
| "@robinpath/core": ">=0.20.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@robinpath/core": "^0.30.1", | ||
| "typescript": "^5.6.0" | ||
| }, | ||
| "description": "HubSpot module for RobinPath.", | ||
| "keywords": [ | ||
| "hubspot", | ||
| "crm" | ||
| ], | ||
| "license": "MIT", | ||
| "robinpath": { | ||
| "category": "crm", | ||
| "type": "integration", | ||
| "auth": "bearer-token", | ||
| "functionCount": 12, | ||
| "baseUrl": "https://api.hubapi.com" | ||
| } | ||
| } |
| import type { BuiltinHandler } from "@wiredwp/robinpath"; | ||
| export declare const HubspotFunctions: Record<string, BuiltinHandler>; | ||
| export declare const HubspotFunctionMetadata: { | ||
| setToken: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| createContact: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| getContact: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| updateContact: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| listContacts: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| searchContacts: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| createDeal: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| getDeal: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| updateDeal: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| listDeals: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| createCompany: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| getCompany: { | ||
| description: string; | ||
| parameters: { | ||
| name: string; | ||
| dataType: string; | ||
| description: string; | ||
| formInputType: string; | ||
| required: boolean; | ||
| }[]; | ||
| returnType: string; | ||
| returnDescription: string; | ||
| example: string; | ||
| }; | ||
| }; | ||
| export declare const HubspotModuleMetadata: { | ||
| description: string; | ||
| category: string; | ||
| methods: string[]; | ||
| }; | ||
| //# sourceMappingURL=hubspot.d.ts.map |
| {"version":3,"file":"hubspot.d.ts","sourceRoot":"","sources":["../src/hubspot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAA2C,MAAM,oBAAoB,CAAC;AA6HlG,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAa3D,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmHnC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;CAIjC,CAAC"} |
-267
| const config = new Map(); | ||
| function getToken() { | ||
| const token = config.get("token"); | ||
| if (!token) | ||
| throw new Error('HubSpot: token not configured. Call hubspot.setToken first.'); | ||
| return token; | ||
| } | ||
| async function hubspotApi(path, method = "GET", body) { | ||
| const token = getToken(); | ||
| const res = await fetch(`https://api.hubapi.com${path}`, { | ||
| method, | ||
| headers: { | ||
| Authorization: `Bearer ${token}`, | ||
| "Content-Type": "application/json", | ||
| }, | ||
| body: body ? JSON.stringify(body) : undefined, | ||
| }); | ||
| if (!res.ok) { | ||
| const text = await res.text(); | ||
| throw new Error(`HubSpot API error (${res.status}): ${text}`); | ||
| } | ||
| if (res.status === 204) | ||
| return { success: true }; | ||
| return res.json(); | ||
| } | ||
| const setToken = (args) => { | ||
| const token = args[0]; | ||
| if (!token) | ||
| throw new Error("hubspot.setToken requires a token."); | ||
| config.set("token", token); | ||
| return "HubSpot token configured."; | ||
| }; | ||
| const createContact = async (args) => { | ||
| const properties = args[0]; | ||
| if (!properties) | ||
| throw new Error("hubspot.createContact requires properties."); | ||
| return hubspotApi("/crm/v3/objects/contacts", "POST", { properties }); | ||
| }; | ||
| const getContact = async (args) => { | ||
| const contactId = args[0]; | ||
| const properties = args[1]; | ||
| if (!contactId) | ||
| throw new Error("hubspot.getContact requires a contactId."); | ||
| let path = `/crm/v3/objects/contacts/${contactId}`; | ||
| if (properties?.length) | ||
| path += `?properties=${properties.join(",")}`; | ||
| return hubspotApi(path); | ||
| }; | ||
| const updateContact = async (args) => { | ||
| const contactId = args[0]; | ||
| const properties = args[1]; | ||
| if (!contactId || !properties) | ||
| throw new Error("hubspot.updateContact requires contactId and properties."); | ||
| return hubspotApi(`/crm/v3/objects/contacts/${contactId}`, "PATCH", { properties }); | ||
| }; | ||
| const listContacts = async (args) => { | ||
| const opts = (typeof args[0] === "object" && args[0] !== null ? args[0] : {}); | ||
| const params = new URLSearchParams(); | ||
| if (opts.limit) | ||
| params.set("limit", String(opts.limit)); | ||
| if (opts.after) | ||
| params.set("after", String(opts.after)); | ||
| if (opts.properties) | ||
| params.set("properties", String(opts.properties)); | ||
| return hubspotApi(`/crm/v3/objects/contacts?${params.toString()}`); | ||
| }; | ||
| const searchContacts = async (args) => { | ||
| const query = args[0]; | ||
| const opts = (typeof args[1] === "object" && args[1] !== null ? args[1] : {}); | ||
| if (!query) | ||
| throw new Error("hubspot.searchContacts requires a query."); | ||
| const payload = { | ||
| query, | ||
| limit: opts.limit ?? 10, | ||
| }; | ||
| if (opts.properties) | ||
| payload.properties = opts.properties; | ||
| if (opts.filterGroups) | ||
| payload.filterGroups = opts.filterGroups; | ||
| return hubspotApi("/crm/v3/objects/contacts/search", "POST", payload); | ||
| }; | ||
| const createDeal = async (args) => { | ||
| const properties = args[0]; | ||
| if (!properties) | ||
| throw new Error("hubspot.createDeal requires properties."); | ||
| return hubspotApi("/crm/v3/objects/deals", "POST", { properties }); | ||
| }; | ||
| const getDeal = async (args) => { | ||
| const dealId = args[0]; | ||
| const properties = args[1]; | ||
| if (!dealId) | ||
| throw new Error("hubspot.getDeal requires a dealId."); | ||
| let path = `/crm/v3/objects/deals/${dealId}`; | ||
| if (properties?.length) | ||
| path += `?properties=${properties.join(",")}`; | ||
| return hubspotApi(path); | ||
| }; | ||
| const updateDeal = async (args) => { | ||
| const dealId = args[0]; | ||
| const properties = args[1]; | ||
| if (!dealId || !properties) | ||
| throw new Error("hubspot.updateDeal requires dealId and properties."); | ||
| return hubspotApi(`/crm/v3/objects/deals/${dealId}`, "PATCH", { properties }); | ||
| }; | ||
| const listDeals = async (args) => { | ||
| const opts = (typeof args[0] === "object" && args[0] !== null ? args[0] : {}); | ||
| const params = new URLSearchParams(); | ||
| if (opts.limit) | ||
| params.set("limit", String(opts.limit)); | ||
| if (opts.after) | ||
| params.set("after", String(opts.after)); | ||
| if (opts.properties) | ||
| params.set("properties", String(opts.properties)); | ||
| return hubspotApi(`/crm/v3/objects/deals?${params.toString()}`); | ||
| }; | ||
| const createCompany = async (args) => { | ||
| const properties = args[0]; | ||
| if (!properties) | ||
| throw new Error("hubspot.createCompany requires properties."); | ||
| return hubspotApi("/crm/v3/objects/companies", "POST", { properties }); | ||
| }; | ||
| const getCompany = async (args) => { | ||
| const companyId = args[0]; | ||
| const properties = args[1]; | ||
| if (!companyId) | ||
| throw new Error("hubspot.getCompany requires a companyId."); | ||
| let path = `/crm/v3/objects/companies/${companyId}`; | ||
| if (properties?.length) | ||
| path += `?properties=${properties.join(",")}`; | ||
| return hubspotApi(path); | ||
| }; | ||
| export const HubspotFunctions = { | ||
| setToken, | ||
| createContact, | ||
| getContact, | ||
| updateContact, | ||
| listContacts, | ||
| searchContacts, | ||
| createDeal, | ||
| getDeal, | ||
| updateDeal, | ||
| listDeals, | ||
| createCompany, | ||
| getCompany, | ||
| }; | ||
| export const HubspotFunctionMetadata = { | ||
| setToken: { | ||
| description: "Set the HubSpot private app access token.", | ||
| parameters: [ | ||
| { name: "token", dataType: "string", description: "HubSpot access token", formInputType: "text", required: true }, | ||
| ], | ||
| returnType: "string", | ||
| returnDescription: "Confirmation message.", | ||
| example: 'hubspot.setToken "pat-xxx"', | ||
| }, | ||
| createContact: { | ||
| description: "Create a new contact in HubSpot.", | ||
| parameters: [ | ||
| { name: "properties", dataType: "object", description: "Contact properties (email, firstname, lastname, etc.)", formInputType: "json", required: true }, | ||
| ], | ||
| returnType: "object", | ||
| returnDescription: "Created contact object.", | ||
| example: 'hubspot.createContact {"email":"john@example.com","firstname":"John","lastname":"Doe"}', | ||
| }, | ||
| getContact: { | ||
| description: "Get a contact by ID.", | ||
| parameters: [ | ||
| { name: "contactId", dataType: "string", description: "Contact ID", formInputType: "text", required: true }, | ||
| { name: "properties", dataType: "array", description: "Properties to return", formInputType: "json", required: false }, | ||
| ], | ||
| returnType: "object", | ||
| returnDescription: "Contact object.", | ||
| example: 'hubspot.getContact "123"', | ||
| }, | ||
| updateContact: { | ||
| description: "Update a contact's properties.", | ||
| parameters: [ | ||
| { name: "contactId", dataType: "string", description: "Contact ID", formInputType: "text", required: true }, | ||
| { name: "properties", dataType: "object", description: "Properties to update", formInputType: "json", required: true }, | ||
| ], | ||
| returnType: "object", | ||
| returnDescription: "Updated contact object.", | ||
| example: 'hubspot.updateContact "123" {"phone":"+1234567890"}', | ||
| }, | ||
| listContacts: { | ||
| description: "List contacts with pagination.", | ||
| parameters: [ | ||
| { name: "options", dataType: "object", description: "Options: limit, after, properties", formInputType: "json", required: false }, | ||
| ], | ||
| returnType: "object", | ||
| returnDescription: "Contacts list with paging.", | ||
| example: 'hubspot.listContacts {"limit":10}', | ||
| }, | ||
| searchContacts: { | ||
| description: "Search contacts by query string.", | ||
| parameters: [ | ||
| { name: "query", dataType: "string", description: "Search query", formInputType: "text", required: true }, | ||
| { name: "options", dataType: "object", description: "Options: limit, properties, filterGroups", formInputType: "json", required: false }, | ||
| ], | ||
| returnType: "object", | ||
| returnDescription: "Search results.", | ||
| example: 'hubspot.searchContacts "john@example.com"', | ||
| }, | ||
| createDeal: { | ||
| description: "Create a new deal in HubSpot.", | ||
| parameters: [ | ||
| { name: "properties", dataType: "object", description: "Deal properties (dealname, amount, dealstage, etc.)", formInputType: "json", required: true }, | ||
| ], | ||
| returnType: "object", | ||
| returnDescription: "Created deal object.", | ||
| example: 'hubspot.createDeal {"dealname":"Big Deal","amount":"10000","dealstage":"appointmentscheduled"}', | ||
| }, | ||
| getDeal: { | ||
| description: "Get a deal by ID.", | ||
| parameters: [ | ||
| { name: "dealId", dataType: "string", description: "Deal ID", formInputType: "text", required: true }, | ||
| { name: "properties", dataType: "array", description: "Properties to return", formInputType: "json", required: false }, | ||
| ], | ||
| returnType: "object", | ||
| returnDescription: "Deal object.", | ||
| example: 'hubspot.getDeal "456"', | ||
| }, | ||
| updateDeal: { | ||
| description: "Update a deal's properties.", | ||
| parameters: [ | ||
| { name: "dealId", dataType: "string", description: "Deal ID", formInputType: "text", required: true }, | ||
| { name: "properties", dataType: "object", description: "Properties to update", formInputType: "json", required: true }, | ||
| ], | ||
| returnType: "object", | ||
| returnDescription: "Updated deal object.", | ||
| example: 'hubspot.updateDeal "456" {"amount":"20000"}', | ||
| }, | ||
| listDeals: { | ||
| description: "List deals with pagination.", | ||
| parameters: [ | ||
| { name: "options", dataType: "object", description: "Options: limit, after, properties", formInputType: "json", required: false }, | ||
| ], | ||
| returnType: "object", | ||
| returnDescription: "Deals list with paging.", | ||
| example: 'hubspot.listDeals {"limit":10}', | ||
| }, | ||
| createCompany: { | ||
| description: "Create a new company in HubSpot.", | ||
| parameters: [ | ||
| { name: "properties", dataType: "object", description: "Company properties (name, domain, industry, etc.)", formInputType: "json", required: true }, | ||
| ], | ||
| returnType: "object", | ||
| returnDescription: "Created company object.", | ||
| example: 'hubspot.createCompany {"name":"Acme Inc","domain":"acme.com"}', | ||
| }, | ||
| getCompany: { | ||
| description: "Get a company by ID.", | ||
| parameters: [ | ||
| { name: "companyId", dataType: "string", description: "Company ID", formInputType: "text", required: true }, | ||
| { name: "properties", dataType: "array", description: "Properties to return", formInputType: "json", required: false }, | ||
| ], | ||
| returnType: "object", | ||
| returnDescription: "Company object.", | ||
| example: 'hubspot.getCompany "789"', | ||
| }, | ||
| }; | ||
| export const HubspotModuleMetadata = { | ||
| description: "Manage HubSpot contacts, deals, and companies via the HubSpot CRM API v3.", | ||
| category: "crm", | ||
| methods: Object.keys(HubspotFunctions), | ||
| }; | ||
| //# sourceMappingURL=hubspot.js.map |
| {"version":3,"file":"hubspot.js","sourceRoot":"","sources":["../src/hubspot.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;AAEzC,SAAS,QAAQ;IACf,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAClC,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC;IAC3F,OAAO,KAAK,CAAC;AACf,CAAC;AAED,KAAK,UAAU,UAAU,CAAC,IAAY,EAAE,MAAM,GAAG,KAAK,EAAE,IAAc;IACpE,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,yBAAyB,IAAI,EAAE,EAAE;QACvD,MAAM;QACN,OAAO,EAAE;YACP,aAAa,EAAE,UAAU,KAAK,EAAE;YAChC,cAAc,EAAE,kBAA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AAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,mDAAmD,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;SACpJ;QACD,UAAU,EAAE,QAAQ;QACpB,iBAAiB,EAAE,yBAAyB;QAC5C,OAAO,EAAE,+DAA+D;KACzE;IACD,UAAU,EAAE;QACV,WAAW,EAAE,sBAAsB;QACnC,UAAU,EAAE;YACV,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC3G,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;SACvH;QACD,UAAU,EAAE,QAAQ;QACpB,iBAAiB,EAAE,iBAAiB;QACpC,OAAO,EAAE,0BAA0B;KACpC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,WAAW,EAAE,2EAA2E;IACxF,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC;CACvC,CAAC"} |
| import type { ModuleAdapter } from "@wiredwp/robinpath"; | ||
| declare const HubspotModule: ModuleAdapter; | ||
| export default HubspotModule; | ||
| export { HubspotModule }; | ||
| export { HubspotFunctions, HubspotFunctionMetadata, HubspotModuleMetadata } from "./hubspot.js"; | ||
| //# sourceMappingURL=index.d.ts.map |
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxD,QAAA,MAAM,aAAa,EAAE,aAMpB,CAAC;AAEF,eAAe,aAAa,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC"} |
| import { HubspotFunctions, HubspotFunctionMetadata, HubspotModuleMetadata } from "./hubspot.js"; | ||
| const HubspotModule = { | ||
| name: "hubspot", | ||
| functions: HubspotFunctions, | ||
| functionMetadata: HubspotFunctionMetadata, | ||
| moduleMetadata: HubspotModuleMetadata, | ||
| global: false, | ||
| }; // as ModuleAdapter | ||
| export default HubspotModule; | ||
| export { HubspotModule }; | ||
| export { HubspotFunctions, HubspotFunctionMetadata, HubspotModuleMetadata } from "./hubspot.js"; | ||
| //# sourceMappingURL=index.js.map |
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAEhG,MAAM,aAAa,GAAkB;IACnC,IAAI,EAAE,SAAS;IACf,SAAS,EAAE,gBAAgB;IAC3B,gBAAgB,EAAE,uBAA8B;IAChD,cAAc,EAAE,qBAA4B;IAC5C,MAAM,EAAE,KAAK;CACd,CAAC,CAAC,mBAAmB;AAEtB,eAAe,aAAa,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC"} |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Network access
Supply chain riskThis module accesses the network.
No License Found
LicenseLicense information could not be found.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
0
-100%1
-50%3993
-86.79%2
-80%0
-100%2
100%