@dimo-network/data-sdk 1.5.1 → 1.5.2

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,13 +1,14 @@
1
1
  /** @format */
2
2
  import { DimoEnvironment } from "./environments";
3
3
  import { Identity, Telemetry } from "./graphql/resources/DimoGraphqlResources";
4
- import { Agents, Attestation, Auth, DeviceDefinitions, Devices, TokenExchange, Trips, Valuations, VehicleTriggers } from "./api/resources/DimoRestResources";
4
+ import { Agents, Attestation, Auth, DeviceDefinitions, Devices, Fetch, TokenExchange, Trips, Valuations, VehicleTriggers } from "./api/resources/DimoRestResources";
5
5
  export declare class DIMO {
6
6
  agents: Agents;
7
7
  attestation: Attestation;
8
8
  auth: Auth;
9
9
  devicedefinitions: DeviceDefinitions;
10
10
  devices: Devices;
11
+ fetch: Fetch;
11
12
  identity: Identity;
12
13
  telemetry: Telemetry;
13
14
  tokenexchange: TokenExchange;
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 { Agents, Attestation, Auth, DeviceDefinitions, Devices, TokenExchange, Trips, Valuations, VehicleTriggers, } from "./api/resources/DimoRestResources";
5
+ import { Agents, Attestation, Auth, DeviceDefinitions, Devices, Fetch, TokenExchange, Trips, Valuations, VehicleTriggers, } from "./api/resources/DimoRestResources";
6
6
  // import { Stream } from './streamr';
7
7
  export class DIMO {
8
8
  agents;
@@ -10,6 +10,7 @@ export class DIMO {
10
10
  auth;
11
11
  devicedefinitions;
12
12
  devices;
13
+ fetch;
13
14
  identity;
14
15
  telemetry;
15
16
  tokenexchange;
@@ -27,6 +28,7 @@ export class DIMO {
27
28
  this.auth = new Auth(DimoEnvironment[env].Auth, env);
28
29
  this.devicedefinitions = new DeviceDefinitions(DimoEnvironment[env].DeviceDefinitions, env);
29
30
  this.devices = new Devices(DimoEnvironment[env].Devices, env);
31
+ this.fetch = new Fetch(DimoEnvironment[env].Fetch, env);
30
32
  this.tokenexchange = new TokenExchange(DimoEnvironment[env].TokenExchange, env);
31
33
  this.trips = new Trips(DimoEnvironment[env].Trips, env);
32
34
  this.valuations = new Valuations(DimoEnvironment[env].Valuations, env);
@@ -7,6 +7,7 @@ export declare const DimoEnvironment: {
7
7
  readonly Identity: "https://identity-api.dimo.zone/query";
8
8
  readonly Devices: "https://devices-api.dimo.zone";
9
9
  readonly DeviceDefinitions: "https://device-definitions-api.dimo.zone";
10
+ readonly Fetch: "https://fetch-api.dimo.zone";
10
11
  readonly Telemetry: "https://telemetry-api.dimo.zone/query";
11
12
  readonly TokenExchange: "https://token-exchange-api.dimo.zone";
12
13
  readonly Trips: "https://trips-api.dimo.zone";
@@ -21,6 +22,7 @@ export declare const DimoEnvironment: {
21
22
  readonly Identity: "https://identity-api.dev.dimo.zone/query";
22
23
  readonly Devices: "https://devices-api.dev.dimo.zone";
23
24
  readonly DeviceDefinitions: "https://device-definitions-api.dev.dimo.zone";
25
+ readonly Fetch: "https://fetch-api.dev.dimo.zone";
24
26
  readonly Telemetry: "https://telemetry-api.dev.dimo.zone/query";
25
27
  readonly TokenExchange: "https://token-exchange-api.dev.dimo.zone";
26
28
  readonly Trips: "https://trips-api.dev.dimo.zone";
@@ -7,6 +7,7 @@ export const DimoEnvironment = {
7
7
  Identity: 'https://identity-api.dimo.zone/query',
8
8
  Devices: 'https://devices-api.dimo.zone',
9
9
  DeviceDefinitions: 'https://device-definitions-api.dimo.zone',
10
+ Fetch: 'https://fetch-api.dimo.zone',
10
11
  Telemetry: 'https://telemetry-api.dimo.zone/query',
11
12
  TokenExchange: 'https://token-exchange-api.dimo.zone',
12
13
  Trips: 'https://trips-api.dimo.zone',
@@ -21,6 +22,7 @@ export const DimoEnvironment = {
21
22
  Identity: 'https://identity-api.dev.dimo.zone/query',
22
23
  Devices: 'https://devices-api.dev.dimo.zone',
23
24
  DeviceDefinitions: 'https://device-definitions-api.dev.dimo.zone',
25
+ Fetch: 'https://fetch-api.dev.dimo.zone',
24
26
  Telemetry: 'https://telemetry-api.dev.dimo.zone/query',
25
27
  TokenExchange: 'https://token-exchange-api.dev.dimo.zone',
26
28
  Trips: 'https://trips-api.dev.dimo.zone',
package/dist/esm/index.js CHANGED
@@ -20168,6 +20168,7 @@ const DimoEnvironment = {
20168
20168
  Identity: 'https://identity-api.dimo.zone/query',
20169
20169
  Devices: 'https://devices-api.dimo.zone',
20170
20170
  DeviceDefinitions: 'https://device-definitions-api.dimo.zone',
20171
+ Fetch: 'https://fetch-api.dimo.zone',
20171
20172
  Telemetry: 'https://telemetry-api.dimo.zone/query',
20172
20173
  TokenExchange: 'https://token-exchange-api.dimo.zone',
20173
20174
  Trips: 'https://trips-api.dimo.zone',
@@ -20182,6 +20183,7 @@ const DimoEnvironment = {
20182
20183
  Identity: 'https://identity-api.dev.dimo.zone/query',
20183
20184
  Devices: 'https://devices-api.dev.dimo.zone',
20184
20185
  DeviceDefinitions: 'https://device-definitions-api.dev.dimo.zone',
20186
+ Fetch: 'https://fetch-api.dev.dimo.zone',
20185
20187
  Telemetry: 'https://telemetry-api.dev.dimo.zone/query',
20186
20188
  TokenExchange: 'https://token-exchange-api.dev.dimo.zone',
20187
20189
  Trips: 'https://trips-api.dev.dimo.zone',
@@ -20637,6 +20639,7 @@ class DIMO {
20637
20639
  auth;
20638
20640
  devicedefinitions;
20639
20641
  devices;
20642
+ fetch;
20640
20643
  identity;
20641
20644
  telemetry;
20642
20645
  tokenexchange;
@@ -20654,6 +20657,7 @@ class DIMO {
20654
20657
  this.auth = new Auth(DimoEnvironment[env].Auth, env);
20655
20658
  this.devicedefinitions = new DeviceDefinitions(DimoEnvironment[env].DeviceDefinitions, env);
20656
20659
  this.devices = new Devices(DimoEnvironment[env].Devices, env);
20660
+ this.fetch = new Fetch(DimoEnvironment[env].Fetch, env);
20657
20661
  this.tokenexchange = new TokenExchange(DimoEnvironment[env].TokenExchange, env);
20658
20662
  this.trips = new Trips(DimoEnvironment[env].Trips, env);
20659
20663
  this.valuations = new Valuations(DimoEnvironment[env].Valuations, env);
@@ -142673,6 +142677,70 @@ class Devices extends Resource {
142673
142677
  }
142674
142678
  }
142675
142679
 
142680
+ class Fetch extends Resource {
142681
+ constructor(api, env) {
142682
+ super(api, 'Fetch', env);
142683
+ this.setResource({
142684
+ getIndexKeys: {
142685
+ method: 'GET',
142686
+ path: '/v1/vehicle/index-keys/:tokenId',
142687
+ queryParams: {
142688
+ after: false,
142689
+ before: false,
142690
+ id: false,
142691
+ limit: false,
142692
+ producer: false,
142693
+ source: false,
142694
+ type: false
142695
+ },
142696
+ auth: 'vehicle_jwt'
142697
+ },
142698
+ getLatestIndexKey: {
142699
+ method: 'GET',
142700
+ path: '/v1/vehicle/latest-index-key/:tokenId',
142701
+ queryParams: {
142702
+ after: false,
142703
+ before: false,
142704
+ id: false,
142705
+ limit: false,
142706
+ producer: false,
142707
+ source: false,
142708
+ type: false
142709
+ },
142710
+ auth: 'vehicle_jwt'
142711
+ },
142712
+ getLatestObject: {
142713
+ method: 'GET',
142714
+ path: '/v1/vehicle/latest-object/:tokenId',
142715
+ queryParams: {
142716
+ after: false,
142717
+ before: false,
142718
+ id: false,
142719
+ limit: false,
142720
+ producer: false,
142721
+ source: false,
142722
+ type: false
142723
+ },
142724
+ auth: 'vehicle_jwt'
142725
+ },
142726
+ getObjects: {
142727
+ method: 'GET',
142728
+ path: '/v1/vehicle/objects/:tokenId',
142729
+ queryParams: {
142730
+ after: false,
142731
+ before: false,
142732
+ id: false,
142733
+ limit: false,
142734
+ producer: false,
142735
+ source: false,
142736
+ type: false
142737
+ },
142738
+ auth: 'vehicle_jwt'
142739
+ }
142740
+ });
142741
+ }
142742
+ }
142743
+
142676
142744
  class TokenExchange extends Resource {
142677
142745
  constructor(api, env) {
142678
142746
  super(api, 'TokenExchange', env);
@@ -142813,5 +142881,5 @@ class VehicleTriggers extends Resource {
142813
142881
  }
142814
142882
  }
142815
142883
 
142816
- export { Agents, Attestation, Auth, DIMO, DeviceDefinitions, Devices, DimoConstants, DimoEnvironment, DimoError, Identity, Telemetry, TokenExchange, Trips, Valuations, VehicleTriggers };
142884
+ export { Agents, Attestation, Auth, DIMO, DeviceDefinitions, Devices, DimoConstants, DimoEnvironment, DimoError, Fetch, Identity, Telemetry, TokenExchange, Trips, Valuations, VehicleTriggers };
142817
142885
  //# sourceMappingURL=index.js.map