@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.
@@ -4,8 +4,9 @@ import { Attestation } from './Attestation';
4
4
  import { Auth } from './Auth';
5
5
  import { DeviceDefinitions } from './DeviceDefinitions';
6
6
  import { Devices } from './Devices';
7
+ import { Fetch } from './Fetch';
7
8
  import { TokenExchange } from './TokenExchange';
8
9
  import { Trips } from './Trips';
9
10
  import { Valuations } from './Valuations';
10
11
  import { VehicleTriggers } from './VehicleTriggers';
11
- export { Agents, Attestation, Auth, DeviceDefinitions, Devices, TokenExchange, Trips, Valuations, VehicleTriggers, };
12
+ export { Agents, Attestation, Auth, DeviceDefinitions, Devices, Fetch, TokenExchange, Trips, Valuations, VehicleTriggers, };
@@ -4,8 +4,9 @@ import { Attestation } from './Attestation';
4
4
  import { Auth } from './Auth';
5
5
  import { DeviceDefinitions } from './DeviceDefinitions';
6
6
  import { Devices } from './Devices';
7
+ import { Fetch } from './Fetch';
7
8
  import { TokenExchange } from './TokenExchange';
8
9
  import { Trips } from './Trips';
9
10
  import { Valuations } from './Valuations';
10
11
  import { VehicleTriggers } from './VehicleTriggers';
11
- export { Agents, Attestation, Auth, DeviceDefinitions, Devices, TokenExchange, Trips, Valuations, VehicleTriggers, };
12
+ export { Agents, Attestation, Auth, DeviceDefinitions, Devices, Fetch, TokenExchange, Trips, Valuations, VehicleTriggers, };
@@ -0,0 +1,5 @@
1
+ import { Resource } from '../../Resource';
2
+ import { DimoEnvironment } from '../../../environments';
3
+ export declare class Fetch extends Resource {
4
+ constructor(api: any, env: keyof typeof DimoEnvironment);
5
+ }
@@ -0,0 +1,64 @@
1
+ import { Resource } from '../../Resource';
2
+ export class Fetch extends Resource {
3
+ constructor(api, env) {
4
+ super(api, 'Fetch', env);
5
+ this.setResource({
6
+ getIndexKeys: {
7
+ method: 'GET',
8
+ path: '/v1/vehicle/index-keys/:tokenId',
9
+ queryParams: {
10
+ after: false,
11
+ before: false,
12
+ id: false,
13
+ limit: false,
14
+ producer: false,
15
+ source: false,
16
+ type: false
17
+ },
18
+ auth: 'vehicle_jwt'
19
+ },
20
+ getLatestIndexKey: {
21
+ method: 'GET',
22
+ path: '/v1/vehicle/latest-index-key/:tokenId',
23
+ queryParams: {
24
+ after: false,
25
+ before: false,
26
+ id: false,
27
+ limit: false,
28
+ producer: false,
29
+ source: false,
30
+ type: false
31
+ },
32
+ auth: 'vehicle_jwt'
33
+ },
34
+ getLatestObject: {
35
+ method: 'GET',
36
+ path: '/v1/vehicle/latest-object/:tokenId',
37
+ queryParams: {
38
+ after: false,
39
+ before: false,
40
+ id: false,
41
+ limit: false,
42
+ producer: false,
43
+ source: false,
44
+ type: false
45
+ },
46
+ auth: 'vehicle_jwt'
47
+ },
48
+ getObjects: {
49
+ method: 'GET',
50
+ path: '/v1/vehicle/objects/:tokenId',
51
+ queryParams: {
52
+ after: false,
53
+ before: false,
54
+ id: false,
55
+ limit: false,
56
+ producer: false,
57
+ source: false,
58
+ type: false
59
+ },
60
+ auth: 'vehicle_jwt'
61
+ }
62
+ });
63
+ }
64
+ }
package/dist/cjs/index.js CHANGED
@@ -20170,6 +20170,7 @@ const DimoEnvironment = {
20170
20170
  Identity: 'https://identity-api.dimo.zone/query',
20171
20171
  Devices: 'https://devices-api.dimo.zone',
20172
20172
  DeviceDefinitions: 'https://device-definitions-api.dimo.zone',
20173
+ Fetch: 'https://fetch-api.dimo.zone',
20173
20174
  Telemetry: 'https://telemetry-api.dimo.zone/query',
20174
20175
  TokenExchange: 'https://token-exchange-api.dimo.zone',
20175
20176
  Trips: 'https://trips-api.dimo.zone',
@@ -20184,6 +20185,7 @@ const DimoEnvironment = {
20184
20185
  Identity: 'https://identity-api.dev.dimo.zone/query',
20185
20186
  Devices: 'https://devices-api.dev.dimo.zone',
20186
20187
  DeviceDefinitions: 'https://device-definitions-api.dev.dimo.zone',
20188
+ Fetch: 'https://fetch-api.dev.dimo.zone',
20187
20189
  Telemetry: 'https://telemetry-api.dev.dimo.zone/query',
20188
20190
  TokenExchange: 'https://token-exchange-api.dev.dimo.zone',
20189
20191
  Trips: 'https://trips-api.dev.dimo.zone',
@@ -20639,6 +20641,7 @@ class DIMO {
20639
20641
  auth;
20640
20642
  devicedefinitions;
20641
20643
  devices;
20644
+ fetch;
20642
20645
  identity;
20643
20646
  telemetry;
20644
20647
  tokenexchange;
@@ -20656,6 +20659,7 @@ class DIMO {
20656
20659
  this.auth = new Auth(DimoEnvironment[env].Auth, env);
20657
20660
  this.devicedefinitions = new DeviceDefinitions(DimoEnvironment[env].DeviceDefinitions, env);
20658
20661
  this.devices = new Devices(DimoEnvironment[env].Devices, env);
20662
+ this.fetch = new Fetch(DimoEnvironment[env].Fetch, env);
20659
20663
  this.tokenexchange = new TokenExchange(DimoEnvironment[env].TokenExchange, env);
20660
20664
  this.trips = new Trips(DimoEnvironment[env].Trips, env);
20661
20665
  this.valuations = new Valuations(DimoEnvironment[env].Valuations, env);
@@ -142675,6 +142679,70 @@ class Devices extends Resource {
142675
142679
  }
142676
142680
  }
142677
142681
 
142682
+ class Fetch extends Resource {
142683
+ constructor(api, env) {
142684
+ super(api, 'Fetch', env);
142685
+ this.setResource({
142686
+ getIndexKeys: {
142687
+ method: 'GET',
142688
+ path: '/v1/vehicle/index-keys/:tokenId',
142689
+ queryParams: {
142690
+ after: false,
142691
+ before: false,
142692
+ id: false,
142693
+ limit: false,
142694
+ producer: false,
142695
+ source: false,
142696
+ type: false
142697
+ },
142698
+ auth: 'vehicle_jwt'
142699
+ },
142700
+ getLatestIndexKey: {
142701
+ method: 'GET',
142702
+ path: '/v1/vehicle/latest-index-key/:tokenId',
142703
+ queryParams: {
142704
+ after: false,
142705
+ before: false,
142706
+ id: false,
142707
+ limit: false,
142708
+ producer: false,
142709
+ source: false,
142710
+ type: false
142711
+ },
142712
+ auth: 'vehicle_jwt'
142713
+ },
142714
+ getLatestObject: {
142715
+ method: 'GET',
142716
+ path: '/v1/vehicle/latest-object/:tokenId',
142717
+ queryParams: {
142718
+ after: false,
142719
+ before: false,
142720
+ id: false,
142721
+ limit: false,
142722
+ producer: false,
142723
+ source: false,
142724
+ type: false
142725
+ },
142726
+ auth: 'vehicle_jwt'
142727
+ },
142728
+ getObjects: {
142729
+ method: 'GET',
142730
+ path: '/v1/vehicle/objects/:tokenId',
142731
+ queryParams: {
142732
+ after: false,
142733
+ before: false,
142734
+ id: false,
142735
+ limit: false,
142736
+ producer: false,
142737
+ source: false,
142738
+ type: false
142739
+ },
142740
+ auth: 'vehicle_jwt'
142741
+ }
142742
+ });
142743
+ }
142744
+ }
142745
+
142678
142746
  class TokenExchange extends Resource {
142679
142747
  constructor(api, env) {
142680
142748
  super(api, 'TokenExchange', env);
@@ -142824,6 +142892,7 @@ exports.Devices = Devices;
142824
142892
  exports.DimoConstants = DimoConstants;
142825
142893
  exports.DimoEnvironment = DimoEnvironment;
142826
142894
  exports.DimoError = DimoError;
142895
+ exports.Fetch = Fetch;
142827
142896
  exports.Identity = Identity;
142828
142897
  exports.Telemetry = Telemetry;
142829
142898
  exports.TokenExchange = TokenExchange;