@dimo-network/data-sdk 1.3.3 → 1.4.0

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/dist/dimo.d.ts CHANGED
@@ -1,7 +1,7 @@
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, VehicleEvents } from "./api/resources/DimoRestResources";
4
+ import { Attestation, Auth, DeviceDefinitions, Devices, TokenExchange, Trips, Valuations, VehicleTriggers } from "./api/resources/DimoRestResources";
5
5
  export declare class DIMO {
6
6
  attestation: Attestation;
7
7
  auth: Auth;
@@ -12,7 +12,7 @@ export declare class DIMO {
12
12
  tokenexchange: TokenExchange;
13
13
  trips: Trips;
14
14
  valuations: Valuations;
15
- vehicleEvents: VehicleEvents;
15
+ vehicleTriggers: VehicleTriggers;
16
16
  constructor(env: keyof typeof DimoEnvironment);
17
17
  authenticate(): Promise<any>;
18
18
  }
package/dist/dimo.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { DimoEnvironment } from "./environments";
3
3
  import { DimoError } from "./errors";
4
4
  import { Identity, Telemetry } from "./graphql/resources/DimoGraphqlResources";
5
- import { Attestation, Auth, DeviceDefinitions, Devices, TokenExchange, Trips, Valuations, VehicleEvents, } from "./api/resources/DimoRestResources";
5
+ import { Attestation, Auth, DeviceDefinitions, Devices, TokenExchange, Trips, Valuations, VehicleTriggers, } from "./api/resources/DimoRestResources";
6
6
  // import { Stream } from './streamr';
7
7
  export class DIMO {
8
8
  attestation;
@@ -14,7 +14,7 @@ export class DIMO {
14
14
  tokenexchange;
15
15
  trips;
16
16
  valuations;
17
- vehicleEvents;
17
+ vehicleTriggers;
18
18
  constructor(env) {
19
19
  this.identity = new Identity(DimoEnvironment[env].Identity, env);
20
20
  this.telemetry = new Telemetry(DimoEnvironment[env].Telemetry, env);
@@ -28,7 +28,7 @@ export class DIMO {
28
28
  this.tokenexchange = new TokenExchange(DimoEnvironment[env].TokenExchange, env);
29
29
  this.trips = new Trips(DimoEnvironment[env].Trips, env);
30
30
  this.valuations = new Valuations(DimoEnvironment[env].Valuations, env);
31
- this.vehicleEvents = new VehicleEvents(DimoEnvironment[env].VehicleEvents, env);
31
+ this.vehicleTriggers = new VehicleTriggers(DimoEnvironment[env].VehicleTriggers, env);
32
32
  }
33
33
  // Helper Function
34
34
  async authenticate() {
@@ -11,7 +11,7 @@ export declare const DimoEnvironment: {
11
11
  readonly Trips: "https://trips-api.dimo.zone";
12
12
  readonly Valuations: "https://valuations-api.dimo.zone";
13
13
  readonly VehicleSignalDecoding: "https://vehicle-signal-decoding.dimo.zone";
14
- readonly VehicleEvents: "https://vehicle-events-api.dimo.zone";
14
+ readonly VehicleTriggers: "https://vehicle-triggers-api.dimo.zone";
15
15
  };
16
16
  readonly Dev: {
17
17
  readonly Attestation: "https://attestation-api.dev.dimo.zone";
@@ -24,7 +24,7 @@ export declare const DimoEnvironment: {
24
24
  readonly Trips: "https://trips-api.dev.dimo.zone";
25
25
  readonly Valuations: "https://valuations-api.dev.dimo.zone";
26
26
  readonly VehicleSignalDecoding: "https://vehicle-signal-decoding.dev.dimo.zone";
27
- readonly VehicleEvents: "https://vehicle-events-api.dev.dimo.zone";
27
+ readonly VehicleTriggers: "https://vehicle-triggers-api.dev.dimo.zone";
28
28
  };
29
29
  };
30
30
  export type DimoEnvironment = typeof DimoEnvironment.Production | typeof DimoEnvironment.Dev;
@@ -11,7 +11,7 @@ export const DimoEnvironment = {
11
11
  Trips: 'https://trips-api.dimo.zone',
12
12
  Valuations: 'https://valuations-api.dimo.zone',
13
13
  VehicleSignalDecoding: 'https://vehicle-signal-decoding.dimo.zone',
14
- VehicleEvents: 'https://vehicle-events-api.dimo.zone',
14
+ VehicleTriggers: 'https://vehicle-triggers-api.dimo.zone',
15
15
  },
16
16
  Dev: {
17
17
  Attestation: 'https://attestation-api.dev.dimo.zone',
@@ -24,6 +24,6 @@ export const DimoEnvironment = {
24
24
  Trips: 'https://trips-api.dev.dimo.zone',
25
25
  Valuations: 'https://valuations-api.dev.dimo.zone',
26
26
  VehicleSignalDecoding: 'https://vehicle-signal-decoding.dev.dimo.zone',
27
- VehicleEvents: 'https://vehicle-events-api.dev.dimo.zone',
27
+ VehicleTriggers: 'https://vehicle-triggers-api.dev.dimo.zone',
28
28
  },
29
29
  };