@vxil/sdk 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.
- package/README.md +2 -2
- package/package.json +5 -12
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ import { Vxil } from '@vxil/sdk';
|
|
|
12
12
|
const vx = new Vxil({ apiKey: process.env.VXIL_API_KEY! });
|
|
13
13
|
|
|
14
14
|
await vx.users.upsert({ id: 'u_1', email: 'ada@example.com' });
|
|
15
|
-
await vx.notifications.send({
|
|
15
|
+
await vx.notifications.send({ user_id: 'u_1', template: 'welcome', data: { app_name: 'MyApp' } });
|
|
16
16
|
const items = await vx.from('tasks').list({ status: 'open' });
|
|
17
17
|
```
|
|
18
18
|
|
|
@@ -21,6 +21,6 @@ const items = await vx.from('tasks').list({ status: 'open' });
|
|
|
21
21
|
- Every feature the tenant has enabled is available as a typed namespace; generate a
|
|
22
22
|
project-exact client with `npx vxil gen`.
|
|
23
23
|
|
|
24
|
-
Docs: [vxil.com](https://vxil.com) · Dashboard: [
|
|
24
|
+
Docs: [vxil.com](https://vxil.com) · Dashboard: [vxil.com/dashboard](https://vxil.com/dashboard) · Terms: [vxil.com/terms](https://vxil.com/terms)
|
|
25
25
|
|
|
26
26
|
MIT © techmaker.io
|
package/package.json
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vxil/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Typed client for the Vxil REST API (notifications, auth, jobs, files, cms, comments, webhooks, realtime, orgs, rate-limits).",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"homepage": "https://vxil.com",
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/vxilhq/vxil.git",
|
|
12
|
-
"directory": "packages/sdk"
|
|
13
|
-
},
|
|
14
|
-
"bugs": {
|
|
15
|
-
"url": "https://github.com/vxilhq/vxil/issues"
|
|
16
|
-
},
|
|
17
9
|
"keywords": [
|
|
18
10
|
"backend",
|
|
19
11
|
"baas",
|
|
@@ -36,10 +28,11 @@
|
|
|
36
28
|
"files": [
|
|
37
29
|
"dist"
|
|
38
30
|
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "tsc -p tsconfig.build.json",
|
|
33
|
+
"prepublishOnly": "pnpm run build"
|
|
34
|
+
},
|
|
39
35
|
"publishConfig": {
|
|
40
36
|
"access": "public"
|
|
41
|
-
},
|
|
42
|
-
"scripts": {
|
|
43
|
-
"build": "tsc -p tsconfig.build.json"
|
|
44
37
|
}
|
|
45
38
|
}
|