import { BaseClient, RequestOptions } from './base-client'; import { VendorListResponse, VendorResponse, VendorUpdateRequest, VendorDetailsUpdateRequest, VendorCreateRequest } 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 VendorsClient * @param {(string)} [url] - The URL of the API endpoint. */ export declare class VendorsClient extends BaseClient { /** * Retrieve a list of vendors for a specified owner. * @method * @name VendorsClient#listVendors * @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. * @param {string} counts - A list of entity types to return counts for that belong to this vendor, comma delimited, i.e. `counts=client,asset,device`. Each additional entity affects the performance of the query and should be used sparingly. */ listVendors(owner: string, offset?: number, limit?: number, sort?: string, filter?: string, counts?: string, $options?: RequestOptions): Promise; /** * Creates a new vendor account * @method * @name VendorsClient#createVendor * @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) */ createVendor(request: VendorCreateRequest, $options?: RequestOptions): Promise; /** * Returns vendor details for the specified id * @method * @name VendorsClient#getVendor * @param {string} id - The UUID of the vendor */ getVendor(id: string, $options?: RequestOptions): Promise; /** * Updates an existing vendor account * @method * @name VendorsClient#updateVendor * @param {string} id - The UUID of the vendor * @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) */ updateVendor(id: string, request: VendorUpdateRequest, $options?: RequestOptions): Promise; /** * Updates an existing vendor account details. Unlike updateVendor, this route is available to vendor users. * @method * @name VendorsClient#updateVendorDetails * @param {string} id - The UUID of the vendor * @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) */ updateVendorDetails(id: string, request: VendorDetailsUpdateRequest, $options?: RequestOptions): Promise; /** * Return the specified vendor's logo in binary format. Should the vendor not have a custom logo, the logo of the distributor will be supplied. * @method * @name VendorsClient#getVendorLogo * @param {string} id - The vendor UUID you are requesting data for. * @param {string} size - The size of the returned image. Can be either "small" or "large". */ getVendorLogo(id: string, size?: string, $options?: RequestOptions): Promise; /** * Updates the specified vendor's logo. * @method * @name VendorsClient#updateVendorLogo * @param {string} id - The vendor UUID you are requesting data for. * @param {string} size - The size of the image. Can be either "small" or "large". */ updateVendorLogo(id: string, size: string, $options?: RequestOptions): Promise; /** * Permanently deletes a custom vendor logo. The logo will revert to the vendor's parent logo. * @method * @name VendorsClient#deleteVendorLogo * @param {string} id - The vendor UUID. * @param {string} size - The size of the image. Can be either "small" or "large". */ deleteVendorLogo(id: string, size: string, $options?: RequestOptions): Promise; }