@space-df/sdk 0.0.1-dev.18 → 0.0.1-dev.20

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/api.doc.md CHANGED
@@ -2554,6 +2554,7 @@ list(params: ListParamsResponse, options?: Core.RequestOptions): Core.APIPromise
2554
2554
  - `search` _(string, optional)_: A search term to filter results.
2555
2555
  - `limit` _(integer, optional)_: Number of results to return per page.
2556
2556
  - `offset` _(integer, optional)_: The initial index from which to return the results.
2557
+ - `include_latest_checkpoint` _(boolean, optional)_: Include latest checkpoint
2557
2558
  - `options` _(Core.RequestOptions)_: Additional request options.
2558
2559
 
2559
2560
  **Returns:** `Promise<DeviceSpacesListResponse>`
@@ -2618,6 +2619,46 @@ await client.deviceSpaces.delete('789e0123-e89b-12d3-a456-426614174002');
2618
2619
 
2619
2620
  The `Trip` class provides methods for managing device trips, including creating, retrieving, updating, listing, and deleting trip records. Trips represent journeys or data collection periods for devices. Below are the details for each method, including parameters, return types, and example usage.
2620
2621
 
2622
+ ## Types
2623
+
2624
+ ### TripParams
2625
+
2626
+ ```typescript
2627
+ interface TripParams {
2628
+ space_device: string; // The unique identifier of the device associated with this trip
2629
+ start_at: string; // The start timestamp of the trip (ISO 8601 format)
2630
+ ended_at: string; // The end timestamp of the trip (ISO 8601 format)
2631
+ }
2632
+ ```
2633
+
2634
+ ### TripListParams
2635
+
2636
+ ```typescript
2637
+ interface TripListParams extends ListParamsResponse {
2638
+ include_checkpoints?: boolean; // Whether to include checkpoints in the response
2639
+ }
2640
+ ```
2641
+
2642
+ This interface extends `ListParamsResponse` which includes:
2643
+
2644
+ - `limit?: number` - Number of results to return per page
2645
+ - `offset?: number` - The initial index from which to return the results
2646
+ - `ordering?: string` - Which field to use when ordering the results
2647
+ - `search?: string` - A search term to filter results
2648
+
2649
+ ### TripListResponse
2650
+
2651
+ ```typescript
2652
+ type TripListResponse = ListResponse<TripParams>;
2653
+ ```
2654
+
2655
+ Where `ListResponse<T>` includes:
2656
+
2657
+ - `count: number` - Total number of trips matching the query
2658
+ - `results: TripParams[]` - Array of trip objects
2659
+ - `next?: string | null` - URL to the next page of results, or null
2660
+ - `previous?: string | null` - URL to the previous page of results, or null
2661
+
2621
2662
  <details>
2622
2663
  <summary><strong>create</strong></summary>
2623
2664
 
@@ -2659,14 +2700,18 @@ Retrieve details of a trip by its ID.
2659
2700
  **Signature:**
2660
2701
 
2661
2702
  ```typescript
2662
- retrieve(id: string, params: { include_transformed_data?: boolean }, options?: Core.RequestOptions): Core.APIPromise<TripParams>
2703
+ retrieve(id: string, params: TripListParams, options?: Core.RequestOptions): Core.APIPromise<TripParams>
2663
2704
  ```
2664
2705
 
2665
2706
  **Parameters:**
2666
2707
 
2667
2708
  - `id` _(string)_: The unique identifier of the trip to retrieve.
2668
- - `params` _(object)_: Query parameters for the request.
2669
- - `include_transformed_data` _(boolean, optional)_: Whether to include transformed data in the response.
2709
+ - `params` _(TripListParams)_: Query parameters for the request.
2710
+ - `include_checkpoints` _(boolean, optional)_: Whether to include checkpoints in the response.
2711
+ - `ordering` _(string, optional)_: Which field to use when ordering the results.
2712
+ - `search` _(string, optional)_: A search term to filter results.
2713
+ - `limit` _(integer, optional)_: Number of results to return per page.
2714
+ - `offset` _(integer, optional)_: The initial index from which to return the results.
2670
2715
  - `options` _(Core.RequestOptions)_: Additional request options.
2671
2716
 
2672
2717
  **Returns:** `Promise<TripParams>`
@@ -2675,7 +2720,7 @@ retrieve(id: string, params: { include_transformed_data?: boolean }, options?: C
2675
2720
 
2676
2721
  ```typescript
2677
2722
  const trip = await client.trip.retrieve('trip-uuid-456', {
2678
- include_transformed_data: true,
2723
+ include_checkpoints: true,
2679
2724
  });
2680
2725
  console.log(trip.space_device);
2681
2726
  ```
@@ -2690,17 +2735,18 @@ List trips with optional filtering, ordering, and pagination.
2690
2735
  **Signature:**
2691
2736
 
2692
2737
  ```typescript
2693
- list(params: TripListParams, options?: Core.RequestOptions): Core.APIPromise<TripListResponse>
2738
+ list(params: TripListParams & { space_device__device_id: string }, options?: Core.RequestOptions): Core.APIPromise<TripListResponse>
2694
2739
  ```
2695
2740
 
2696
2741
  **Parameters:**
2697
2742
 
2698
- - `params` _(TripListParams)_: Query parameters for filtering, ordering, and pagination:
2743
+ - `params` _(TripListParams & { space_device\_\_device_id: string })_: Query parameters for filtering, ordering, and pagination:
2744
+ - `space_device__device_id` _(string)_: **Required.** The device ID to filter trips by.
2699
2745
  - `ordering` _(string, optional)_: Which field to use when ordering the results.
2700
2746
  - `search` _(string, optional)_: A search term to filter results.
2701
2747
  - `limit` _(integer, optional)_: Number of results to return per page.
2702
2748
  - `offset` _(integer, optional)_: The initial index from which to return the results.
2703
- - `include_transformed_data` _(boolean, optional)_: Whether to include transformed data in the response.
2749
+ - `include_checkpoints` _(boolean, optional)_: Whether to include checkpoints in the response.
2704
2750
  - `options` _(Core.RequestOptions)_: Additional request options.
2705
2751
 
2706
2752
  **Returns:** `Promise<TripListResponse>`
@@ -2716,10 +2762,11 @@ list(params: TripListParams, options?: Core.RequestOptions): Core.APIPromise<Tri
2716
2762
 
2717
2763
  ```typescript
2718
2764
  const listResponse = await client.trip.list({
2765
+ space_device__device_id: 'device-uuid-123',
2719
2766
  ordering: 'start_at',
2720
2767
  limit: 20,
2721
2768
  offset: 0,
2722
- include_transformed_data: false,
2769
+ include_checkpoints: false,
2723
2770
  });
2724
2771
  console.log(listResponse.results);
2725
2772
  ```
@@ -2768,16 +2815,16 @@ Partially update an existing trip by its ID.
2768
2815
  **Signature:**
2769
2816
 
2770
2817
  ```typescript
2771
- partialUpdate(id: string, params: TripParams, options?: Core.RequestOptions): Core.APIPromise<TripParams>
2818
+ partialUpdate(id: string, params: Partial<TripParams>, options?: Core.RequestOptions): Core.APIPromise<TripParams>
2772
2819
  ```
2773
2820
 
2774
2821
  **Parameters:**
2775
2822
 
2776
2823
  - `id` _(string)_: The unique identifier of the trip to update.
2777
- - `params` _(TripParams)_: Parameters for partially updating the trip. Only provided fields will be updated.
2778
- - `space_device`: _(string, optional)_: The unique identifier of the device associated with this trip.
2779
- - `start_at`: _(string, optional)_: The start timestamp of the trip (ISO 8601 format).
2780
- - `ended_at`: _(string, optional)_: The end timestamp of the trip (ISO 8601 format).
2824
+ - `params` _(Partial<TripParams>)_: Parameters for partially updating the trip. Only provided fields will be updated.
2825
+ - `space_device` _(string, optional)_: The unique identifier of the device associated with this trip.
2826
+ - `start_at` _(string, optional)_: The start timestamp of the trip (ISO 8601 format).
2827
+ - `ended_at` _(string, optional)_: The end timestamp of the trip (ISO 8601 format).
2781
2828
  - `options` _(Core.RequestOptions)_: Additional request options.
2782
2829
 
2783
2830
  **Returns:** `Promise<TripParams>`
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@space-df/sdk",
3
- "version": "0.0.1-dev.18",
3
+ "version": "0.0.1-dev.20",
4
4
  "description": "The official TypeScript library for the Spacedf SDK API",
5
5
  "author": "Spacedf SDK <support@digitalfortress.dev>",
6
6
  "types": "./index.d.ts",
@@ -1,9 +1,12 @@
1
1
  import { APIResource } from "../../resource.js";
2
2
  import * as Core from "../../core.js";
3
3
  import { ListParamsResponse, ListResponse } from "../../types/api.js";
4
+ interface DeviceSpacesListParams extends ListParamsResponse {
5
+ include_latest_checkpoint?: boolean;
6
+ }
4
7
  export declare class DeviceSpaces extends APIResource {
5
8
  create(params: DeviceSpacesParams, options?: Core.RequestOptions): Core.APIPromise<DeviceSpacesParams>;
6
- list(params: ListParamsResponse, options?: Core.RequestOptions): Core.APIPromise<DeviceSpacesListResponse>;
9
+ list(params: DeviceSpacesListParams, options?: Core.RequestOptions): Core.APIPromise<DeviceSpacesListResponse>;
7
10
  delete(id: string, options?: Core.RequestOptions): Core.APIPromise<void>;
8
11
  }
9
12
  export interface DeviceSpacesParams {
@@ -12,4 +15,5 @@ export interface DeviceSpacesParams {
12
15
  description: string;
13
16
  }
14
17
  export type DeviceSpacesListResponse = ListResponse<DeviceSpacesParams>;
18
+ export {};
15
19
  //# sourceMappingURL=device-spaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"device-spaces.d.ts","sourceRoot":"","sources":["../../src/resources/device/device-spaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEnE,qBAAa,YAAa,SAAQ,WAAW;IACzC,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAStG,IAAI,CAAC,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAS1G,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;CAM3E;AAED,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"device-spaces.d.ts","sourceRoot":"","sources":["../../src/resources/device/device-spaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEnE,UAAU,sBAAuB,SAAQ,kBAAkB;IACvD,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACvC;AAED,qBAAa,Y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@
1
- {"version":3,"file":"device-spaces.mjs","sourceRoot":"","sources":["../../src/resources/device/device-spaces.ts"],"names":[],"mappings":"OAAO,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,YAAa,SAAQ,WAAW;IACzC,MAAM,CAAC,MAA0B,EAAE,OAA6B;QAC5D,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACvC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SACnC,CAAC,CAAC;IACP,CAAC;IAED,IAAI,CAAC,MAA0B,EAAE,OAA6B;QAC1D,MAAM,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE;YACtC,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SACnC,CAAC,CAAC;IACP,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,OAA6B;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,EAAE,EAAE;YAC/C,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAClD,CAAC,CAAC;IACP,CAAC;CACJ"}
1
+ {"version":3,"file":"device-spaces.mjs","sourceRoot":"","sources":["../../src/resources/device/device-spaces.ts"],"names":[],"mappings":"OAAO,EAAE,WAAW,EAAE;AAQtB,MAAM,OAAO,YAAa,SAAQ,WAAW;IACzC,MAAM,CAAC,MAA0B,EAAE,OAA6B;QAC5D,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACvC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SACnC,CAAC,CAAC;IACP,CAAC;IAED,IAAI,CAAC,MAA8B,EAAE,OAA6B;QAC9D,MAAM,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE;YACtC,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SACnC,CAAC,CAAC;IACP,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,OAA6B;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,EAAE,EAAE;YAC/C,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAClD,CAAC,CAAC;IACP,CAAC;CACJ"}
@@ -2,14 +2,14 @@ import { APIResource } from "../../resource.js";
2
2
  import { ListParamsResponse, ListResponse } from "../../types/api.js";
3
3
  import * as Core from "../../core.js";
4
4
  interface TripListParams extends ListParamsResponse {
5
- include_transformed_data?: boolean;
5
+ include_checkpoints?: boolean;
6
6
  }
7
7
  export declare class Trip extends APIResource {
8
8
  create(params: TripParams, options?: Core.RequestOptions): Core.APIPromise<TripParams>;
9
- retrieve(id: string, params: {
10
- include_transformed_data?: boolean;
11
- }, options?: Core.RequestOptions): Core.APIPromise<TripParams>;
12
- list(params: TripListParams, options?: Core.RequestOptions): Core.APIPromise<TripListResponse>;
9
+ retrieve(id: string, params: TripListParams, options?: Core.RequestOptions): Core.APIPromise<TripParams>;
10
+ list(params: TripListParams & {
11
+ space_device__device_id: string;
12
+ }, options?: Core.RequestOptions): Core.APIPromise<TripListResponse>;
13
13
  delete(id: string, options?: Core.RequestOptions): Core.APIPromise<void>;
14
14
  partialUpdate(id: string, params: TripParams, options?: Core.RequestOptions): Core.APIPromise<TripParams>;
15
15
  update(id: string, params: TripParams, options?: Core.RequestOptions): Core.APIPromise<TripParams>;
@@ -1 +1 @@
1
- {"version":3,"file":"trip.d.ts","sourceRoot":"","sources":["../../src/resources/device/trip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,UAAU,cAAe,SAAQ,kBAAkB;IAC/C,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACtC;AAED,qBAAa,IAAK,SAAQ,WAAW;IACjC,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;IAQtF,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;QAAE,wBAAwB,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;IAQhI,IAAI,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC;IAQ9F,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAOxE,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;IAQzG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,IAAI,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,UAAU,EAAE,GAAG,EAAE;YACvC,IAAI,EAAE,MAAM;YACZ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SACnC,CAAC,CAAC;IACP,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,MAAkB,EAAE,OAA6B;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,GAAG,EAAE;YACrC,IAAI,EAAE,MAAM;YACZ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SACnC,CAAC,CAAC;IACP,CAAC;CACJ"}
@@ -2,6 +2,10 @@ import { APIResource } from '../../resource';
2
2
  import * as Core from '../../core';
3
3
  import { ListParamsResponse, ListResponse } from '../../types/api';
4
4
 
5
+ interface DeviceSpacesListParams extends ListParamsResponse {
6
+ include_latest_checkpoint?: boolean;
7
+ }
8
+
5
9
  export class DeviceSpaces extends APIResource {
6
10
  create(params: DeviceSpacesParams, options?: Core.RequestOptions): Core.APIPromise<DeviceSpacesParams> {
7
11
  const { ...body } = params;
@@ -12,7 +16,7 @@ export class DeviceSpaces extends APIResource {
12
16
  });
13
17
  }
14
18
 
15
- list(params: ListParamsResponse, options?: Core.RequestOptions): Core.APIPromise<DeviceSpacesListResponse> {
19
+ list(params: DeviceSpacesListParams, options?: Core.RequestOptions): Core.APIPromise<DeviceSpacesListResponse> {
16
20
  const { ...query } = params;
17
21
  return this._client.get(`/device-spaces`, {
18
22
  query,
@@ -3,7 +3,7 @@ import { ListParamsResponse, ListResponse } from '../../types/api';
3
3
  import * as Core from '../../core';
4
4
 
5
5
  interface TripListParams extends ListParamsResponse {
6
- include_transformed_data?: boolean;
6
+ include_checkpoints?: boolean;
7
7
  }
8
8
 
9
9
  export class Trip extends APIResource {
@@ -15,7 +15,7 @@ export class Trip extends APIResource {
15
15
  });
16
16
  }
17
17
 
18
- retrieve(id: string, params: { include_transformed_data?: boolean }, options?: Core.RequestOptions): Core.APIPromise<TripParams> {
18
+ retrieve(id: string, params: TripListParams, options?: Core.RequestOptions): Core.APIPromise<TripParams> {
19
19
  return this._client.get(`/trips/${id}/`, {
20
20
  query: params,
21
21
  ...options,
@@ -23,7 +23,12 @@ export class Trip extends APIResource {
23
23
  });
24
24
  }
25
25
 
26
- list(params: TripListParams, options?: Core.RequestOptions): Core.APIPromise<TripListResponse> {
26
+ list(
27
+ params: TripListParams & {
28
+ space_device__device_id: string;
29
+ },
30
+ options?: Core.RequestOptions,
31
+ ): Core.APIPromise<TripListResponse> {
27
32
  return this._client.get(`/trips/`, {
28
33
  query: params,
29
34
  ...options,
@@ -1 +1 @@
1
- export const VERSION = '0.0.1-dev.18';
1
+ export const VERSION = '0.0.1-dev.20';
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.0.1-dev.18";
1
+ export declare const VERSION = "0.0.1-dev.20";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.0.1-dev.18';
4
+ exports.VERSION = '0.0.1-dev.20';
5
5
  //# sourceMappingURL=version.js.map
package/dist/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.0.1-dev.18';
1
+ export const VERSION = '0.0.1-dev.20';
2
2
  //# sourceMappingURL=version.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@space-df/sdk",
3
- "version": "0.0.1-dev.18",
3
+ "version": "0.0.1-dev.20",
4
4
  "description": "The official TypeScript library for the Spacedf SDK API",
5
5
  "author": "Spacedf SDK <support@digitalfortress.dev>",
6
6
  "types": "dist/index.d.ts",
@@ -2,6 +2,10 @@ import { APIResource } from '../../resource';
2
2
  import * as Core from '../../core';
3
3
  import { ListParamsResponse, ListResponse } from '../../types/api';
4
4
 
5
+ interface DeviceSpacesListParams extends ListParamsResponse {
6
+ include_latest_checkpoint?: boolean;
7
+ }
8
+
5
9
  export class DeviceSpaces extends APIResource {
6
10
  create(params: DeviceSpacesParams, options?: Core.RequestOptions): Core.APIPromise<DeviceSpacesParams> {
7
11
  const { ...body } = params;
@@ -12,7 +16,7 @@ export class DeviceSpaces extends APIResource {
12
16
  });
13
17
  }
14
18
 
15
- list(params: ListParamsResponse, options?: Core.RequestOptions): Core.APIPromise<DeviceSpacesListResponse> {
19
+ list(params: DeviceSpacesListParams, options?: Core.RequestOptions): Core.APIPromise<DeviceSpacesListResponse> {
16
20
  const { ...query } = params;
17
21
  return this._client.get(`/device-spaces`, {
18
22
  query,
@@ -3,7 +3,7 @@ import { ListParamsResponse, ListResponse } from '../../types/api';
3
3
  import * as Core from '../../core';
4
4
 
5
5
  interface TripListParams extends ListParamsResponse {
6
- include_transformed_data?: boolean;
6
+ include_checkpoints?: boolean;
7
7
  }
8
8
 
9
9
  export class Trip extends APIResource {
@@ -15,7 +15,7 @@ export class Trip extends APIResource {
15
15
  });
16
16
  }
17
17
 
18
- retrieve(id: string, params: { include_transformed_data?: boolean }, options?: Core.RequestOptions): Core.APIPromise<TripParams> {
18
+ retrieve(id: string, params: TripListParams, options?: Core.RequestOptions): Core.APIPromise<TripParams> {
19
19
  return this._client.get(`/trips/${id}/`, {
20
20
  query: params,
21
21
  ...options,
@@ -23,7 +23,12 @@ export class Trip extends APIResource {
23
23
  });
24
24
  }
25
25
 
26
- list(params: TripListParams, options?: Core.RequestOptions): Core.APIPromise<TripListResponse> {
26
+ list(
27
+ params: TripListParams & {
28
+ space_device__device_id: string;
29
+ },
30
+ options?: Core.RequestOptions,
31
+ ): Core.APIPromise<TripListResponse> {
27
32
  return this._client.get(`/trips/`, {
28
33
  query: params,
29
34
  ...options,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.0.1-dev.18';
1
+ export const VERSION = '0.0.1-dev.20';