@spektrum-ai/sdk 0.0.4 → 0.0.5
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 +0 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -135,20 +135,6 @@ await spektrum.codeAndDeploy(updatedTask)
|
|
|
135
135
|
| `getAppUrl(projectId)` | Returns the live app URL |
|
|
136
136
|
| `leaveComment(taskId, comment, authorId)` | Requests changes to a task |
|
|
137
137
|
|
|
138
|
-
## Error Handling
|
|
139
|
-
|
|
140
|
-
```typescript
|
|
141
|
-
import { SpektrumSDK, SpektrumError } from "@spektrum-ai/sdk"
|
|
142
|
-
|
|
143
|
-
try {
|
|
144
|
-
await spektrum.codeAndDeploy(task)
|
|
145
|
-
} catch (error) {
|
|
146
|
-
if (error instanceof SpektrumError) {
|
|
147
|
-
console.error(`API Error [${error.status}]: ${error.message}`)
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
```
|
|
151
|
-
|
|
152
138
|
## Complete Example
|
|
153
139
|
|
|
154
140
|
For a full working example with step-by-step instructions, check out:
|
|
@@ -157,12 +143,6 @@ For a full working example with step-by-step instructions, check out:
|
|
|
157
143
|
|
|
158
144
|
Clone it, run `npm install`, add your API key, and you'll have a deployed finance dashboard in seconds.
|
|
159
145
|
|
|
160
|
-
## Links
|
|
161
|
-
|
|
162
|
-
- [JigJoy Platform](https://jigjoy.ai/spektrum) — Get your API key and monitor your apps
|
|
163
|
-
- [Working Example](https://github.com/jigjoy-ai/spektrum-sdk-example) — Clone and run in seconds
|
|
164
|
-
- [npm Package](https://www.npmjs.com/package/@spektrum-ai/sdk) — Latest version
|
|
165
|
-
|
|
166
146
|
## License
|
|
167
147
|
|
|
168
148
|
MIT
|