@dimo-network/data-sdk 1.2.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/.credentials.json.example +5 -0
- package/.eslintrc.json +20 -0
- package/.github/workflows/npm-publish.yml +42 -0
- package/CONTRIBUTING.md +82 -0
- package/LICENSE +76 -0
- package/README.md +216 -0
- package/dist/api/Method.d.ts +2 -0
- package/dist/api/Method.js +136 -0
- package/dist/api/Method.test.d.ts +1 -0
- package/dist/api/Method.test.js +67 -0
- package/dist/api/Resource.d.ts +11 -0
- package/dist/api/Resource.js +20 -0
- package/dist/api/functions/getToken.d.ts +7 -0
- package/dist/api/functions/getToken.js +20 -0
- package/dist/api/functions/index.d.ts +3 -0
- package/dist/api/functions/index.js +3 -0
- package/dist/api/functions/signChallenge.d.ts +5 -0
- package/dist/api/functions/signChallenge.js +8 -0
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +1 -0
- package/dist/api/resources/Attestation/index.d.ts +5 -0
- package/dist/api/resources/Attestation/index.js +21 -0
- package/dist/api/resources/Auth/index.d.ts +5 -0
- package/dist/api/resources/Auth/index.js +42 -0
- package/dist/api/resources/DeviceDefinitions/index.d.ts +5 -0
- package/dist/api/resources/DeviceDefinitions/index.js +29 -0
- package/dist/api/resources/Devices/index.d.ts +5 -0
- package/dist/api/resources/Devices/index.js +154 -0
- package/dist/api/resources/DimoRestResources.d.ts +9 -0
- package/dist/api/resources/DimoRestResources.js +9 -0
- package/dist/api/resources/TokenExchange/index.d.ts +5 -0
- package/dist/api/resources/TokenExchange/index.js +20 -0
- package/dist/api/resources/Trips/index.d.ts +5 -0
- package/dist/api/resources/Trips/index.js +16 -0
- package/dist/api/resources/Valuations/index.d.ts +5 -0
- package/dist/api/resources/Valuations/index.js +23 -0
- package/dist/api/resources/VehicleSignalDecoding/index.d.ts +5 -0
- package/dist/api/resources/VehicleSignalDecoding/index.js +59 -0
- package/dist/constants.d.ts +11 -0
- package/dist/constants.js +10 -0
- package/dist/dimo.d.ts +17 -0
- package/dist/dimo.js +68 -0
- package/dist/dimo.test.d.ts +1 -0
- package/dist/dimo.test.js +57 -0
- package/dist/environments/index.d.ts +33 -0
- package/dist/environments/index.js +32 -0
- package/dist/errors/DimoError.d.ts +9 -0
- package/dist/errors/DimoError.js +27 -0
- package/dist/errors/index.d.ts +1 -0
- package/dist/errors/index.js +1 -0
- package/dist/graphql/Query.d.ts +2 -0
- package/dist/graphql/Query.js +104 -0
- package/dist/graphql/Query.test.d.ts +1 -0
- package/dist/graphql/Query.test.js +47 -0
- package/dist/graphql/Resource.d.ts +16 -0
- package/dist/graphql/Resource.js +29 -0
- package/dist/graphql/index.d.ts +1 -0
- package/dist/graphql/index.js +1 -0
- package/dist/graphql/resources/DimoGraphqlResources.d.ts +3 -0
- package/dist/graphql/resources/DimoGraphqlResources.js +3 -0
- package/dist/graphql/resources/Identity/index.d.ts +6 -0
- package/dist/graphql/resources/Identity/index.js +100 -0
- package/dist/graphql/resources/Telemetry/index.d.ts +5 -0
- package/dist/graphql/resources/Telemetry/index.js +39 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +18 -0
- package/dist/streamr/index.d.ts +0 -0
- package/dist/streamr/index.js +51 -0
- package/jest.config.js +16 -0
- package/package.json +43 -0
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dimo-network/data-sdk",
|
|
3
|
+
"version": "1.2.1",
|
|
4
|
+
"description": "DIMO Data SDK for JavaScript",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"author": "James Li",
|
|
7
|
+
"contributors": [],
|
|
8
|
+
"license": "Apache-2.0",
|
|
9
|
+
"type": "module",
|
|
10
|
+
"keywords": [
|
|
11
|
+
"data-sdk"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://dimo.org/developers",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/DIMO-Network/data-sdk/issues"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/DIMO-Network/data-sdk.git"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"test": "jest",
|
|
23
|
+
"build": "tsc"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"axios": "^1.6.7",
|
|
27
|
+
"fs": "^0.0.1-security",
|
|
28
|
+
"rxjs": "^7.8.1",
|
|
29
|
+
"web3": "^4.6.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@types/dotenv-safe": "^8.1.6",
|
|
33
|
+
"@types/jest": "^29.5.12",
|
|
34
|
+
"@types/node": "^20.11.25",
|
|
35
|
+
"eslint": "^8.56.0",
|
|
36
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
37
|
+
"eslint-plugin-import": "^2.29.1",
|
|
38
|
+
"jest": "^29.7.0",
|
|
39
|
+
"ts-jest": "^29.1.4",
|
|
40
|
+
"typescript": "^5.4.5"
|
|
41
|
+
},
|
|
42
|
+
"types": "./dist/index.d.ts"
|
|
43
|
+
}
|