import { BaseClient, RequestOptions } from './base-client'; import { TelemetryStateResponse, AssetListResponse, AssetResponse, AssetUpdateRequest, AssetCreateRequest, AssetSharedLocationResponse, AssetSharedLocationTokenResponse, AssetSharedLocationTokenListResponse, AssetSharedLocationTokenRequest, DeviceConfigurationResponse, AssetPrivacyRequest, AssetLinkResponse, AssetLinkRequest, AssetMoveRequest } from './model'; /** * Welcome to the Key Telematics Fleet API specification. This document outlines the REST routes and data structures returned by the API and offers examples of usage. The API publishes a [swagger](https://swagger.io/) specification that can be used to [generate a client library](https://github.com/swagger-api/swagger-codegen) for your language of choice. The latest swagger file is available for download from the following link: [https://api.eu1.kt1.io/fleet/v2/swagger.json](https://api.eu1.kt1.io/fleet/v2/swagger.json) * @class AssetsClient * @param {(string)} [url] - The URL of the API endpoint. */ export declare class AssetsClient extends BaseClient { /** * Retrieve a list of assets for a specified owner. * @method * @name AssetsClient#listAssets * @param {string} owner - The owner id you are requesting data for * @param {number} offset - An offset into the result set, useful for pagination * @param {number} limit - Limit the number of results to this value. * @param {string} sort - Sorting column or attribute name with an optional direction, e.g. `sort=name:desc` * @param {string} filter - A filter to apply to the data in RQL format. */ listAssets(owner: string, offset?: number, limit?: number, sort?: string, filter?: string, $options?: RequestOptions): Promise; /** * Creates a new asset entity * @method * @name AssetsClient#createAsset * @param {object} request - Welcome to the Key Telematics Fleet API specification. This document outlines the REST routes and data structures returned by the API and offers examples of usage. The API publishes a [swagger](https://swagger.io/) specification that can be used to [generate a client library](https://github.com/swagger-api/swagger-codegen) for your language of choice. The latest swagger file is available for download from the following link: [https://api.eu1.kt1.io/fleet/v2/swagger.json](https://api.eu1.kt1.io/fleet/v2/swagger.json) */ createAsset(request: AssetCreateRequest, $options?: RequestOptions): Promise; /** * Returns asset details for the specified id * @method * @name AssetsClient#getAsset * @param {string} id - The UUID of the asset */ getAsset(id: string, $options?: RequestOptions): Promise; /** * Updates an existing asset * @method * @name AssetsClient#updateAsset * @param {string} id - Welcome to the Key Telematics Fleet API specification. This document outlines the REST routes and data structures returned by the API and offers examples of usage. The API publishes a [swagger](https://swagger.io/) specification that can be used to [generate a client library](https://github.com/swagger-api/swagger-codegen) for your language of choice. The latest swagger file is available for download from the following link: [https://api.eu1.kt1.io/fleet/v2/swagger.json](https://api.eu1.kt1.io/fleet/v2/swagger.json) * @param {object} request - Welcome to the Key Telematics Fleet API specification. This document outlines the REST routes and data structures returned by the API and offers examples of usage. The API publishes a [swagger](https://swagger.io/) specification that can be used to [generate a client library](https://github.com/swagger-api/swagger-codegen) for your language of choice. The latest swagger file is available for download from the following link: [https://api.eu1.kt1.io/fleet/v2/swagger.json](https://api.eu1.kt1.io/fleet/v2/swagger.json) */ updateAsset(id: string, request: AssetUpdateRequest, $options?: RequestOptions): Promise; /** * Returns the latest known telemetry record for an asset using a shared token * @method * @name AssetsClient#getSharedAssetLocation * @param {string} token - The shared token */ getSharedAssetLocation(token: string, $options?: RequestOptions): Promise; /** * Update a shared asset location token * @method * @name AssetsClient#updateSharedAssetLocationToken * @param {string} token - The shared asset token to update * @param {object} request - Welcome to the Key Telematics Fleet API specification. This document outlines the REST routes and data structures returned by the API and offers examples of usage. The API publishes a [swagger](https://swagger.io/) specification that can be used to [generate a client library](https://github.com/swagger-api/swagger-codegen) for your language of choice. The latest swagger file is available for download from the following link: [https://api.eu1.kt1.io/fleet/v2/swagger.json](https://api.eu1.kt1.io/fleet/v2/swagger.json) */ updateSharedAssetLocationToken(token: string, request: AssetSharedLocationTokenRequest, $options?: RequestOptions): Promise; /** * Deletes a shared asset location token * @method * @name AssetsClient#deleteSharedAssetLocationToken * @param {string} token - The shared asset token to delete */ deleteSharedAssetLocationToken(token: string, $options?: RequestOptions): Promise; /** * Retrieve a list of shared asset tokens for an asset or client. * @method * @name AssetsClient#listSharedAssetLocationTokens * @param {string} owner - The owner id you are requesting data for * @param {string} asset - The asset id you are requesting data for * @param {number} offset - An offset into the result set, useful for pagination * @param {number} limit - Limit the number of results to this value. * @param {string} sort - Sorting column or attribute name with an optional direction, e.g. `sort=name:desc` * @param {string} filter - A filter to apply to the data in RQL format. */ listSharedAssetLocationTokens(owner?: string, asset?: string, offset?: number, limit?: number, sort?: string, filter?: string, $options?: RequestOptions): Promise; /** * Creates a new shared asset location token * @method * @name AssetsClient#createSharedAssetLocationToken * @param {string} id - The UUID of the asset * @param {object} request - Welcome to the Key Telematics Fleet API specification. This document outlines the REST routes and data structures returned by the API and offers examples of usage. The API publishes a [swagger](https://swagger.io/) specification that can be used to [generate a client library](https://github.com/swagger-api/swagger-codegen) for your language of choice. The latest swagger file is available for download from the following link: [https://api.eu1.kt1.io/fleet/v2/swagger.json](https://api.eu1.kt1.io/fleet/v2/swagger.json) */ createSharedAssetLocationToken(id: string, request: AssetSharedLocationTokenRequest, $options?: RequestOptions): Promise; /** * Returns the device configuration of the device attached to this asset (also works for cloned assets) * @method * @name AssetsClient#getAssetDeviceConfiguration * @param {string} id - The UUID of the asset */ getAssetDeviceConfiguration(id: string, $options?: RequestOptions): Promise; /** * Update asset privacy mode * @method * @name AssetsClient#setAssetPrivacy * @param {string} id - The UUID of the asset * @param {object} request - Welcome to the Key Telematics Fleet API specification. This document outlines the REST routes and data structures returned by the API and offers examples of usage. The API publishes a [swagger](https://swagger.io/) specification that can be used to [generate a client library](https://github.com/swagger-api/swagger-codegen) for your language of choice. The latest swagger file is available for download from the following link: [https://api.eu1.kt1.io/fleet/v2/swagger.json](https://api.eu1.kt1.io/fleet/v2/swagger.json) */ setAssetPrivacy(id: string, request: AssetPrivacyRequest, $options?: RequestOptions): Promise; /** * Return the asset avatar in binary format * @method * @name AssetsClient#getAssetAvatar * @param {string} id - The UUID of the asset */ getAssetAvatar(id: string, $options?: RequestOptions): Promise; /** * Updates the specified asset's avatar. * @method * @name AssetsClient#updateAssetAvatar * @param {string} id - The asset UUID you are requesting data for. */ updateAssetAvatar(id: string, $options?: RequestOptions): Promise; /** * Permanently deletes a asset avatar. * @method * @name AssetsClient#deleteAssetAvatar * @param {string} id - The asset UUID. */ deleteAssetAvatar(id: string, $options?: RequestOptions): Promise; /** * Returns the latest known telemetry record for an asset * @method * @name AssetsClient#getAssetLocation * @param {string} id - The UUID of the asset */ getAssetLocation(id: string, $options?: RequestOptions): Promise; /** * Links an asset from one account to one in another account. All data from the source asset will be duplicated for the destination asset. Returns both the source and destination asset if successful. * @method * @name AssetsClient#linkAssets * @param {string} id - The source asset UUID you would like to link. * @param {object} request - Welcome to the Key Telematics Fleet API specification. This document outlines the REST routes and data structures returned by the API and offers examples of usage. The API publishes a [swagger](https://swagger.io/) specification that can be used to [generate a client library](https://github.com/swagger-api/swagger-codegen) for your language of choice. The latest swagger file is available for download from the following link: [https://api.eu1.kt1.io/fleet/v2/swagger.json](https://api.eu1.kt1.io/fleet/v2/swagger.json) */ linkAssets(id: string, request: AssetLinkRequest, $options?: RequestOptions): Promise; /** * Unlinks an asset linked to another. Returns both the source and destination asset if successful. * @method * @name AssetsClient#unlinkAssets * @param {string} id - The source asset UUID you would like to unlink from. * @param {string} asset - The destination asset UUID you would like to unlink from. */ unlinkAssets(id: string, asset: string, $options?: RequestOptions): Promise; /** * Moves an asset from one client to another by deleting the asset in the source client and recreating it in the destination client. Also moves any associated device and simcard if assigned. * @method * @name AssetsClient#moveAsset * @param {string} id - The asset UUID you would like to move. * @param {object} request - Welcome to the Key Telematics Fleet API specification. This document outlines the REST routes and data structures returned by the API and offers examples of usage. The API publishes a [swagger](https://swagger.io/) specification that can be used to [generate a client library](https://github.com/swagger-api/swagger-codegen) for your language of choice. The latest swagger file is available for download from the following link: [https://api.eu1.kt1.io/fleet/v2/swagger.json](https://api.eu1.kt1.io/fleet/v2/swagger.json) */ moveAsset(id: string, request: AssetMoveRequest, $options?: RequestOptions): Promise; }