{"_id":"@calljacob/leaddocket-typescript","_rev":"3-66e9398cd279b3c13884dedee059b878","name":"@calljacob/leaddocket-typescript","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.1":{"name":"@calljacob/leaddocket-typescript","version":"1.0.1","keywords":["leaddocket","lead-docket","api","client","typescript","sdk","openapi"],"author":{"name":"bhubbard"},"license":"MIT","_id":"@calljacob/leaddocket-typescript@1.0.1","maintainers":[{"name":"bhubbard","email":"bkhubbard@gmail.com"}],"homepage":"https://github.com/calljacob/leaddocket-typescript#readme","bugs":{"url":"https://github.com/calljacob/leaddocket-typescript/issues"},"dist":{"shasum":"559eafe98492bf3695fc2371746d8cf39fb41693","tarball":"https://registry.npmjs.org/@calljacob/leaddocket-typescript/-/leaddocket-typescript-1.0.1.tgz","fileCount":9,"integrity":"sha512-5keOn+N/WU+BfTYLV/afvQRy8l9k0Smlys4lazXuR9HkwQansgLNffyqcoLn6fPQI96wO5HLn6YZlX71baP+SA==","signatures":[{"sig":"MEUCIQCIJM5dyBSIbb1jnvGRD873mfA4geLJIAiA3mrK8P0pxgIgLfOMbf0mjpMTAVpReP3/QFNUScR0D+lAYUYkv13pKFM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":718738},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"db6999a411983168e48a07eb4046391b454dc887","scripts":{"lint":"eslint .","test":"vitest run","build":"tsup","format":"prettier --write .","prepublishOnly":"npm run build"},"_npmUser":{"name":"bhubbard","email":"bkhubbard@gmail.com"},"repository":{"url":"git+https://github.com/calljacob/leaddocket-typescript.git","type":"git"},"_npmVersion":"11.18.0","description":"A strongly-typed API client library for Lead Docket, automatically generated from the official OpenAPI schema.","directories":{},"_nodeVersion":"24.13.1","dependencies":{"@hey-api/client-fetch":"^0.13.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","eslint":"^10.7.0","vitest":"^4.1.10","prettier":"^3.9.5","@eslint/js":"^10.0.1","typescript":"5.5","@types/node":"^26.1.1","typescript-eslint":"^8.64.0","@hey-api/openapi-ts":"^0.99.0","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.6"},"_npmOperationalInternal":{"tmp":"tmp/leaddocket-typescript_1.0.1_1784069405020_0.46486083522937416","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@calljacob/leaddocket-typescript","version":"1.0.2","keywords":["leaddocket","lead-docket","api","client","typescript","sdk","openapi"],"author":{"name":"bhubbard"},"license":"MIT","_id":"@calljacob/leaddocket-typescript@1.0.2","maintainers":[{"name":"bhubbard","email":"bkhubbard@gmail.com"}],"homepage":"https://github.com/calljacob/leaddocket-typescript#readme","bugs":{"url":"https://github.com/calljacob/leaddocket-typescript/issues"},"dist":{"shasum":"e1c8b7fae7e7ab1af1aadc6ebdeac96881eadea9","tarball":"https://registry.npmjs.org/@calljacob/leaddocket-typescript/-/leaddocket-typescript-1.0.2.tgz","fileCount":9,"integrity":"sha512-hXQYUKSQYh3Z8qe8ARjOc/38quW1vo4neJEywKxCL4mmDtaIPgiFsu1mYYImIVWCf1WB18rC03WwdqAuBUDOGg==","signatures":[{"sig":"MEYCIQDYWkh2JOk81OME/tu4a8ltEt6fFt/z33+o/GTpj5SGDQIhAOTODV1BLI34FEVZODFL8QiIVDgCNIBBGz1Tisgdo5aW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":718767},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"83a1a6beb015d983a231cc50c39928240acb66c8","scripts":{"lint":"eslint .","test":"vitest run","build":"tsup","format":"prettier --write .","prepublishOnly":"npm run build"},"_npmUser":{"name":"bhubbard","email":"bkhubbard@gmail.com"},"repository":{"url":"git+https://github.com/calljacob/leaddocket-typescript.git","type":"git"},"_npmVersion":"11.18.0","description":"A strongly-typed API client library for Lead Docket, automatically generated from the official OpenAPI schema.","directories":{},"_nodeVersion":"24.13.1","dependencies":{"@hey-api/client-fetch":"^0.13.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","eslint":"^10.7.0","vitest":"^4.1.10","prettier":"^3.9.5","@eslint/js":"^10.0.1","typescript":"5.5","@types/node":"^26.1.1","typescript-eslint":"^8.64.0","@hey-api/openapi-ts":"^0.99.0","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.6"},"_npmOperationalInternal":{"tmp":"tmp/leaddocket-typescript_1.0.2_1784071470571_0.2857213555627034","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@calljacob/leaddocket-typescript","version":"1.0.3","description":"A strongly-typed API client library for Lead Docket, automatically generated from the official OpenAPI schema.","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"prepublishOnly":"npm run build","test":"vitest run","build":"tsup","lint":"eslint .","format":"prettier --write ."},"repository":{"type":"git","url":"git+https://github.com/calljacob/leaddocket-typescript.git"},"keywords":["leaddocket","lead-docket","api","client","typescript","sdk","openapi"],"author":{"name":"bhubbard"},"license":"MIT","type":"commonjs","bugs":{"url":"https://github.com/calljacob/leaddocket-typescript/issues"},"homepage":"https://github.com/calljacob/leaddocket-typescript#readme","devDependencies":{"@eslint/js":"^10.0.1","@hey-api/openapi-ts":"^0.99.0","@types/node":"^26.1.1","eslint":"^10.7.0","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.6","prettier":"^3.9.5","tsup":"^8.5.1","typescript":"5.5","typescript-eslint":"^8.64.0","vitest":"^4.1.10"},"gitHead":"59b4f30a3b499dd890a4ca3ef267f8864fb4bc3c","_id":"@calljacob/leaddocket-typescript@1.0.3","_nodeVersion":"24.13.1","_npmVersion":"11.18.0","dist":{"integrity":"sha512-tqd/B5RoqmEijM0qG23dJjwWYvC9O0PHO/zjNXMYCK/sxCzN0CMUubTFVi4ov4qWgT7jIXMx98koBarwoQIokw==","shasum":"74c63a64eecc4f279b9f99a264163e40753bc895","tarball":"https://registry.npmjs.org/@calljacob/leaddocket-typescript/-/leaddocket-typescript-1.0.3.tgz","fileCount":9,"unpackedSize":718703,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFSbr3CP7PgDNjLjbbm0/hV7NNaHnjFCiodMXeF7uWopAiACfFKWi3E2O6gDlH5K8/w1EBbsGJ6ApfhfR1GdQkfBOg=="}]},"_npmUser":{"name":"bhubbard","email":"bkhubbard@gmail.com"},"directories":{},"maintainers":[{"name":"bhubbard","email":"bkhubbard@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/leaddocket-typescript_1.0.3_1784072139786_0.9535547842930934"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-14T22:50:04.883Z","modified":"2026-07-14T23:35:40.058Z","1.0.1":"2026-07-14T22:50:05.170Z","1.0.2":"2026-07-14T23:24:30.752Z","1.0.3":"2026-07-14T23:35:39.915Z"},"bugs":{"url":"https://github.com/calljacob/leaddocket-typescript/issues"},"author":{"name":"bhubbard"},"license":"MIT","homepage":"https://github.com/calljacob/leaddocket-typescript#readme","keywords":["leaddocket","lead-docket","api","client","typescript","sdk","openapi"],"repository":{"type":"git","url":"git+https://github.com/calljacob/leaddocket-typescript.git"},"description":"A strongly-typed API client library for Lead Docket, automatically generated from the official OpenAPI schema.","maintainers":[{"name":"bhubbard","email":"bkhubbard@gmail.com"}],"readme":"# Lead Docket TypeScript API Client\n\n[![npm version](https://badge.fury.io/js/leaddocket-typescript.svg)](https://badge.fury.io/js/leaddocket-typescript)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nA strongly-typed, auto-generated TypeScript API client library for the [Lead Docket API](https://{example}.leaddocket.com/api/explore/index.html).\n\nThis library provides full TypeScript definitions, autocomplete, and a native `fetch` implementation for all 114 Lead Docket API endpoints.\n\n## Installation\n\n```bash\nnpm install leaddocket-typescript\n```\nor\n```bash\nyarn add leaddocket-typescript\n```\nor\n```bash\npnpm add leaddocket-typescript\n```\n\n## Usage\n\nYou can use the exported `client` instance to configure your credentials and base URL globally.\n\n```typescript\nimport { client, ContactsService, LeadsService } from 'leaddocket-typescript';\n\n// 1. Configure the client\nclient.setConfig({\n  baseUrl: 'https://{example}.leaddocket.com', // Replace {example} with your organization's subdomain\n  headers: {\n    Authorization: 'Bearer YOUR_API_TOKEN',\n  },\n});\n\n// 2. Call an endpoint using one of the generated services\nasync function fetchLeads() {\n  try {\n    const { data, error } = await LeadsService.leadsGetByStatus({\n      statusId: 123,\n    });\n\n    if (error) {\n      console.error('Failed to fetch leads:', error);\n      return;\n    }\n\n    console.log('Leads:', data);\n  } catch (err) {\n    console.error('Network Error:', err);\n  }\n}\n\nfetchLeads();\n```\n\n## Features\n\n- **Fully Typed:** Generated directly from the official OpenAPI v3 schema.\n- **Zero Dependencies:** Built on the native web `fetch` API. Works in Node.js 18+, browsers, Edge runtime, Next.js, and Cloudflare Workers.\n- **Comprehensive:** Covers all 114 endpoints across Leads, Contacts, Opportunities, External Calls, Settlements, and more.\n\n## Development\n\nTo build the project locally:\n\n```bash\nnpm install\nnpm run build\n```\n\nTo run tests and linting:\n\n```bash\nnpm run test\nnpm run lint\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}