@dannychirkov/salesdrive-transport-fetch 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +26 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -71,6 +71,32 @@ const transport = createFetchTransportWithRetry(
71
71
  );
72
72
  ```
73
73
 
74
+ ### SalesDrive Rate Limits
75
+
76
+ SalesDrive API has the following rate limits:
77
+
78
+ - **10 requests per minute**
79
+ - **100 requests per hour**
80
+ - **1000 requests per 24 hours**
81
+
82
+ When limits are exceeded, the API returns HTTP 400 with message `"API limit reached. Please try again later."` (not standard 429). This transport handles both cases automatically.
83
+
84
+ **Recommended retry config for SalesDrive:**
85
+
86
+ ```typescript
87
+ const transport = createFetchTransportWithRetry(
88
+ {
89
+ apiKey: 'your-api-key',
90
+ baseUrl: 'https://demo.salesdrive.me',
91
+ },
92
+ {
93
+ maxRetries: 3,
94
+ retryDelay: 60000, // Wait 60 seconds (full minute window)
95
+ retryMultiplier: 1, // Don't increase delay, just wait another minute
96
+ }
97
+ );
98
+ ```
99
+
74
100
  ## Custom Fetch Implementation
75
101
 
76
102
  ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dannychirkov/salesdrive-transport-fetch",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Fetch-based HTTP transport for SalesDrive API client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",