@volant-autonomy/via-sdk 1.6057.1 → 1.6093.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 +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -15,11 +15,11 @@ Run `npm install --save @volant-autonomy/via-sdk` to add the SDK as a dependency
|
|
|
15
15
|
import { createSDK } from '@volant-autonomy/via-sdk'
|
|
16
16
|
|
|
17
17
|
const SDK = createSDK({
|
|
18
|
-
username:
|
|
19
|
-
password:
|
|
18
|
+
username: 'username',
|
|
19
|
+
password: 'password'
|
|
20
20
|
})
|
|
21
21
|
|
|
22
|
-
const {error, data} = await SDK.direct.getAllCharts()
|
|
22
|
+
const { error, data } = await SDK.direct.getAllCharts()
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## Further information
|
|
@@ -50,7 +50,7 @@ As well as offering methods for all endpoints within the API, you have access to
|
|
|
50
50
|
Wrapper that help make some common workflows more convenient. These features are as follows:
|
|
51
51
|
|
|
52
52
|
| Feature | Remark | Method |
|
|
53
|
-
| --------------------------
|
|
53
|
+
| -------------------------- | ----------------------------------------------------------------------------------- | ------------------------------ |
|
|
54
54
|
| Upsert Flightplan | Create a flightplan no ID is supplied. Update existing flightplan if ID is supplied | upsertFlightplan() |
|
|
55
55
|
| Fetch Draft Flightplans | Will fetch a list flightplans that you own that are in `Draft` state | getAllDraftFlightplans() |
|
|
56
56
|
| Fetch Closed Flightplans | Will fetch a list flightplans that you own that are in `Closed` state | getAllClosedFlightplans() |
|
|
@@ -64,7 +64,7 @@ Wrapper that help make some common workflows more convenient. These features are
|
|
|
64
64
|
|
|
65
65
|
Direct functions return an object with a data field and an error field. Only exactly one of these is defined, the other is undefined.
|
|
66
66
|
|
|
67
|
-
The data returned is also not
|
|
67
|
+
The data returned is also not _identical_ to the API, as any "links" are skipped over, to make the data easier to use.
|
|
68
68
|
|
|
69
69
|
For example, if the API would've returned:
|
|
70
70
|
|
package/dist/index.cjs.js
CHANGED
package/dist/index.esm.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volant-autonomy/via-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6093.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@biomejs/biome": "^2.
|
|
25
|
+
"@biomejs/biome": "^2.6.3",
|
|
26
26
|
"@rollup/plugin-commonjs": "^29.0.3",
|
|
27
27
|
"@rollup/plugin-json": "^6.1.0",
|
|
28
28
|
"@rollup/plugin-node-resolve": "^16.0.3",
|