@getlatedev/node 0.1.0
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/LICENSE +190 -0
- package/README.md +232 -0
- package/dist/index.d.mts +4115 -0
- package/dist/index.d.ts +4115 -0
- package/dist/index.js +1135 -0
- package/dist/index.mjs +1106 -0
- package/package.json +79 -0
- package/src/client.ts +425 -0
- package/src/errors.ts +144 -0
- package/src/generated/index.ts +3 -0
- package/src/generated/sdk.gen.ts +1430 -0
- package/src/generated/types.gen.ts +4162 -0
- package/src/index.ts +34 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Late - Official Node.js library for the Late API
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import Late from 'late';
|
|
7
|
+
*
|
|
8
|
+
* const late = new Late();
|
|
9
|
+
*
|
|
10
|
+
* const post = await late.posts.create({
|
|
11
|
+
* body: {
|
|
12
|
+
* content: 'Hello world!',
|
|
13
|
+
* platforms: [{ platform: 'twitter', accountId: 'acc_123' }],
|
|
14
|
+
* publishNow: true,
|
|
15
|
+
* },
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @packageDocumentation
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
// Main client export
|
|
23
|
+
export { Late, Late as default, type ClientOptions } from './client';
|
|
24
|
+
|
|
25
|
+
// Error exports
|
|
26
|
+
export {
|
|
27
|
+
LateApiError,
|
|
28
|
+
RateLimitError,
|
|
29
|
+
ValidationError,
|
|
30
|
+
parseApiError,
|
|
31
|
+
} from './errors';
|
|
32
|
+
|
|
33
|
+
// Re-export generated types for advanced usage
|
|
34
|
+
export * from './generated/types.gen';
|