/** * Locations service. * @module api/LocationsApi */ export default class LocationsApi { /** * Constructs a new LocationsApi. * @alias LocationsApi * @class * @param {module:ApiClient} [apiClient] Optional API client implementation to use, * default to {@link module:ApiClient#instance} if unspecified. */ constructor(apiClient?: any); apiClient: any; /** * Callback function to receive the result of the getLocation operation. * @callback getLocationCallback * @param {Error|null} error Error object if failed, null otherwise. * @param {LocationsGetResponseBody} [data] The data returned by the service call. * @param {Object} [response] Full response object if successful. */ /** * Get Location * Returns a location object. * @param {String} locationId The unique location ID. * @param {getLocationCallback} [callback] The callback function, accepting three arguments: error, data, response * data is of type: {@link LocationsGetResponseBody} * @returns {Promise<(LocationsGetResponseBody | undefined)>} Depending on whether the `callback` parameter is provided, the promise will resolve with a `LocationsGetResponseBody` object or with `undefined`. */ getLocation(locationId: string, callback?: (error: Error | null, data?: LocationsGetResponseBody, response?: any) => any): Promise<(LocationsGetResponseBody | undefined)>; /** * Callback function to receive the result of the listLocations operation. * @callback listLocationsCallback * @param {Error|null} error Error object if failed, null otherwise. * @param {LocationsListResponseBody} [data] The data returned by the service call. * @param {Object} [response] Full response object if successful. */ /** * List Locations * Returns a list of your locations. * @param {{ limit?: Number, order?: Exclude, filters?: ParameterFiltersListLocations, endDate?: Date, }} [opts] Optional parameters * @param {listLocationsCallback} [callback] The callback function, accepting three arguments: error, data, response * data is of type: {@link LocationsListResponseBody} * @returns {Promise<(LocationsListResponseBody | undefined)>} Depending on whether the `callback` parameter is provided, the promise will resolve with a `LocationsListResponseBody` object or with `undefined`. */ listLocations(opts?: { limit?: number; order?: Exclude; filters?: ParameterFiltersListLocations; endDate?: Date; }, callback?: (error: Error | null, data?: LocationsListResponseBody, response?: any) => any): Promise<(LocationsListResponseBody | undefined)>; } import LocationsGetResponseBody from '../model/LocationsGetResponseBody'; import ParameterOrderListLocations from '../model/ParameterOrderListLocations'; import ParameterFiltersListLocations from '../model/ParameterFiltersListLocations'; import LocationsListResponseBody from '../model/LocationsListResponseBody';