@dimo-network/data-sdk 1.3.3 → 1.5.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/.github/workflows/npm-publish.yml +6 -3
- package/README.md +82 -0
- package/dist/api/Method.js +7 -2
- package/dist/api/Method.test.js +10 -5
- package/dist/api/resources/Agents/index.d.ts +5 -0
- package/dist/api/resources/Agents/index.js +63 -0
- package/dist/api/resources/DimoRestResources.d.ts +3 -2
- package/dist/api/resources/DimoRestResources.js +3 -2
- package/dist/api/resources/{VehicleEvents → VehicleTriggers}/index.d.ts +2 -2
- package/dist/api/resources/{VehicleEvents → VehicleTriggers}/index.js +13 -19
- package/dist/cjs/index.js +607 -503
- package/dist/cjs/index.js.map +1 -1
- package/dist/dimo.d.ts +3 -2
- package/dist/dimo.js +5 -3
- package/dist/dimo.test.js +4 -0
- package/dist/environments/index.d.ts +4 -2
- package/dist/environments/index.js +4 -2
- package/dist/esm/index.js +606 -503
- package/dist/esm/index.js.map +1 -1
- package/dist/types/api/resources/Agents/index.d.ts +5 -0
- package/dist/types/api/resources/DimoRestResources.d.ts +3 -2
- package/dist/types/api/resources/{VehicleEvents → VehicleTriggers}/index.d.ts +2 -2
- package/dist/types/dimo.d.ts +3 -2
- package/dist/types/environments/index.d.ts +4 -2
- package/package.json +4 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @format */
|
|
2
|
+
import { Agents } from './Agents';
|
|
2
3
|
import { Attestation } from './Attestation';
|
|
3
4
|
import { Auth } from './Auth';
|
|
4
5
|
import { DeviceDefinitions } from './DeviceDefinitions';
|
|
@@ -6,5 +7,5 @@ import { Devices } from './Devices';
|
|
|
6
7
|
import { TokenExchange } from './TokenExchange';
|
|
7
8
|
import { Trips } from './Trips';
|
|
8
9
|
import { Valuations } from './Valuations';
|
|
9
|
-
import {
|
|
10
|
-
export { Attestation, Auth, DeviceDefinitions, Devices, TokenExchange, Trips, Valuations,
|
|
10
|
+
import { VehicleTriggers } from './VehicleTriggers';
|
|
11
|
+
export { Agents, Attestation, Auth, DeviceDefinitions, Devices, TokenExchange, Trips, Valuations, VehicleTriggers, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @format */
|
|
2
2
|
import { Resource } from '../../Resource';
|
|
3
3
|
import { DimoEnvironment } from '../../../environments';
|
|
4
|
-
declare class
|
|
4
|
+
declare class VehicleTriggers extends Resource {
|
|
5
5
|
constructor(api: any, env: keyof typeof DimoEnvironment);
|
|
6
6
|
}
|
|
7
|
-
export {
|
|
7
|
+
export { VehicleTriggers };
|
package/dist/types/dimo.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/** @format */
|
|
2
2
|
import { DimoEnvironment } from "./environments";
|
|
3
3
|
import { Identity, Telemetry } from "./graphql/resources/DimoGraphqlResources";
|
|
4
|
-
import { Attestation, Auth, DeviceDefinitions, Devices, TokenExchange, Trips, Valuations,
|
|
4
|
+
import { Agents, Attestation, Auth, DeviceDefinitions, Devices, TokenExchange, Trips, Valuations, VehicleTriggers } from "./api/resources/DimoRestResources";
|
|
5
5
|
export declare class DIMO {
|
|
6
|
+
agents: Agents;
|
|
6
7
|
attestation: Attestation;
|
|
7
8
|
auth: Auth;
|
|
8
9
|
devicedefinitions: DeviceDefinitions;
|
|
@@ -12,7 +13,7 @@ export declare class DIMO {
|
|
|
12
13
|
tokenexchange: TokenExchange;
|
|
13
14
|
trips: Trips;
|
|
14
15
|
valuations: Valuations;
|
|
15
|
-
|
|
16
|
+
vehicleTriggers: VehicleTriggers;
|
|
16
17
|
constructor(env: keyof typeof DimoEnvironment);
|
|
17
18
|
authenticate(): Promise<any>;
|
|
18
19
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** @format */
|
|
2
2
|
export declare const DimoEnvironment: {
|
|
3
3
|
readonly Production: {
|
|
4
|
+
readonly Agents: "https://agents.dimo.zone";
|
|
4
5
|
readonly Attestation: "https://attestation-api.dimo.zone";
|
|
5
6
|
readonly Auth: "https://auth.dimo.zone";
|
|
6
7
|
readonly Identity: "https://identity-api.dimo.zone/query";
|
|
@@ -11,9 +12,10 @@ export declare const DimoEnvironment: {
|
|
|
11
12
|
readonly Trips: "https://trips-api.dimo.zone";
|
|
12
13
|
readonly Valuations: "https://valuations-api.dimo.zone";
|
|
13
14
|
readonly VehicleSignalDecoding: "https://vehicle-signal-decoding.dimo.zone";
|
|
14
|
-
readonly
|
|
15
|
+
readonly VehicleTriggers: "https://vehicle-triggers-api.dimo.zone";
|
|
15
16
|
};
|
|
16
17
|
readonly Dev: {
|
|
18
|
+
readonly Agents: "https://agents.dev.dimo.zone";
|
|
17
19
|
readonly Attestation: "https://attestation-api.dev.dimo.zone";
|
|
18
20
|
readonly Auth: "https://auth.dev.dimo.zone";
|
|
19
21
|
readonly Identity: "https://identity-api.dev.dimo.zone/query";
|
|
@@ -24,7 +26,7 @@ export declare const DimoEnvironment: {
|
|
|
24
26
|
readonly Trips: "https://trips-api.dev.dimo.zone";
|
|
25
27
|
readonly Valuations: "https://valuations-api.dev.dimo.zone";
|
|
26
28
|
readonly VehicleSignalDecoding: "https://vehicle-signal-decoding.dev.dimo.zone";
|
|
27
|
-
readonly
|
|
29
|
+
readonly VehicleTriggers: "https://vehicle-triggers-api.dev.dimo.zone";
|
|
28
30
|
};
|
|
29
31
|
};
|
|
30
32
|
export type DimoEnvironment = typeof DimoEnvironment.Production | typeof DimoEnvironment.Dev;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dimo-network/data-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "DIMO Data SDK for JavaScript",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"author": "James Li",
|
|
9
9
|
"contributors": [
|
|
10
10
|
"Yusuf Çırak",
|
|
11
|
-
"Eduardo Rodriguez"
|
|
11
|
+
"Eduardo Rodriguez",
|
|
12
|
+
"Barrett Kowalsky"
|
|
12
13
|
],
|
|
13
14
|
"license": "Apache-2.0",
|
|
14
15
|
"type": "module",
|
|
@@ -22,7 +23,7 @@
|
|
|
22
23
|
"dimo",
|
|
23
24
|
"dimo-network"
|
|
24
25
|
],
|
|
25
|
-
"homepage": "https://dimo.org/
|
|
26
|
+
"homepage": "https://dimo.org/",
|
|
26
27
|
"bugs": {
|
|
27
28
|
"url": "https://github.com/DIMO-Network/data-sdk/issues"
|
|
28
29
|
},
|