@klozeo/sdk 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cjs/client.js +1 -1
- package/dist/esm/client.js +1 -1
- package/dist/types/types.d.ts +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ const blob = await client.leads.export(ExportFormat.CSV, {
|
|
|
60
60
|
|
|
61
61
|
```typescript
|
|
62
62
|
const client = new Klozeo("sk_live_your_api_key", {
|
|
63
|
-
baseUrl: "https://custom.api.com", // default: https://
|
|
63
|
+
baseUrl: "https://custom.api.com", // default: https://api.klozeo.com/api/v1
|
|
64
64
|
timeout: 30_000, // ms, default 30000
|
|
65
65
|
maxRetries: 3, // retries on 429/5xx, default 3
|
|
66
66
|
fetch: customFetch, // optional custom fetch
|
|
@@ -138,4 +138,4 @@ const state = client.rateLimitState();
|
|
|
138
138
|
## Links
|
|
139
139
|
|
|
140
140
|
- API docs: https://docs.klozeo.com
|
|
141
|
-
- Dashboard: https://
|
|
141
|
+
- Dashboard: https://klozeo.com
|
package/dist/cjs/client.js
CHANGED
|
@@ -7,7 +7,7 @@ const leads_1 = require("./resources/leads");
|
|
|
7
7
|
const notes_1 = require("./resources/notes");
|
|
8
8
|
const scoring_1 = require("./resources/scoring");
|
|
9
9
|
const webhooks_1 = require("./resources/webhooks");
|
|
10
|
-
const DEFAULT_BASE_URL = "https://
|
|
10
|
+
const DEFAULT_BASE_URL = "https://api.klozeo.com/api/v1";
|
|
11
11
|
const DEFAULT_TIMEOUT = 30000;
|
|
12
12
|
const DEFAULT_MAX_RETRIES = 3;
|
|
13
13
|
/**
|
package/dist/esm/client.js
CHANGED
|
@@ -4,7 +4,7 @@ import { LeadsResource } from "./resources/leads.js";
|
|
|
4
4
|
import { NotesResource } from "./resources/notes.js";
|
|
5
5
|
import { ScoringResource } from "./resources/scoring.js";
|
|
6
6
|
import { WebhooksResource } from "./resources/webhooks.js";
|
|
7
|
-
const DEFAULT_BASE_URL = "https://
|
|
7
|
+
const DEFAULT_BASE_URL = "https://api.klozeo.com/api/v1";
|
|
8
8
|
const DEFAULT_TIMEOUT = 30_000;
|
|
9
9
|
const DEFAULT_MAX_RETRIES = 3;
|
|
10
10
|
/**
|
package/dist/types/types.d.ts
CHANGED
|
@@ -388,7 +388,7 @@ export interface WebhookListResult {
|
|
|
388
388
|
* Options for the Klozeo client.
|
|
389
389
|
*/
|
|
390
390
|
export interface KlozeoOptions {
|
|
391
|
-
/** Override the API base URL (default: "https://
|
|
391
|
+
/** Override the API base URL (default: "https://api.klozeo.com/api/v1") */
|
|
392
392
|
baseUrl?: string;
|
|
393
393
|
/** Per-request timeout in milliseconds (default: 30000) */
|
|
394
394
|
timeout?: number;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@klozeo/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Official TypeScript SDK for the Klozeo API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Klozeo <hello@klozeo.com>",
|
|
7
|
-
"homepage": "https://github.com/lbframe/sdk-typescript",
|
|
7
|
+
"homepage": "https://github.com/lbframe/klozeo-sdk-typescript",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/lbframe/sdk-typescript"
|
|
10
|
+
"url": "https://github.com/lbframe/klozeo-sdk-typescript"
|
|
11
11
|
},
|
|
12
12
|
"keywords": [
|
|
13
13
|
"klozeo",
|