UNPKG

unomi-node

Version:
60 lines (59 loc) 2.08 kB
import { AxiosInstance } from "axios"; import { CreateProperties, ExistingProperties, GetByProperty, QueryConfig } from "../types/profiles"; import { FilteredResponse } from "../types/sdkResponse"; import { QueryParams } from "../types/queryBuilder"; /** * @function create * @param {AxiosInterface} axios * @param {CreateProperties} properties * @returns {FilteredResponse} */ export declare function create(axios: AxiosInstance, properties: CreateProperties): FilteredResponse; /** * @function get * @param {AxiosInterface} axios * @param {string} profileId * @returns {FilteredResponse} */ export declare function get(axios: AxiosInstance, profileId: string): FilteredResponse; /** * @function delete * @param {AxiosInterface} axios * @param {string} profileId * @returns {FilteredResponse} */ export declare function deleteProfile(axios: AxiosInstance, profileId: string): FilteredResponse; /** * @function count * @param {AxiosInterface} axios * @returns {FilteredResponse} */ export declare function count(axios: AxiosInstance): FilteredResponse; /** * @function existingProperties * @param {AxiosInterface} axios * @param {ExistingProperties} params * @returns {FilteredResponse} */ export declare function existingProperties(axios: AxiosInstance, params: ExistingProperties): FilteredResponse; /** * @function allProperties * @param {AxiosInterface} axios * @returns {FilteredResponse} */ export declare function allProperties(axios: AxiosInstance): FilteredResponse; /** * @function sessions * @param {AxiosInstance} axios * @param {FilteredResponse} profileId * @returns {FilteredResponse} */ export declare function sessions(axios: AxiosInstance, profileId: string): FilteredResponse; /** * @function getByProperty * @param {AxiosInstance} axios * @param {GetByProperty} params * @returns {FilteredResponse} */ export declare function getBySingleProperty(axios: AxiosInstance, params: GetByProperty): FilteredResponse; export declare function query(axios: AxiosInstance, params: QueryConfig, query: QueryParams[]): FilteredResponse;