UNPKG

acquia-dam-sdk

Version:
30 lines (27 loc) 1.17 kB
import { ApiClient } from '../../client/index.js'; import { GetUserResult, GetContactResult } from './responses.js'; declare class UsersApi { private _client; /** * Create an instance of the UsersApi class * * Query for information about users * * @param client Provide an instance of ApiClient. */ constructor(client: ApiClient); /** * Returns information about a user * @param id Retrieve a specific user's information. If omitted, information for the user associated with the provided access token will be returned. * @returns Promise containing the requested user information * @see {@link https://widenv2.docs.apiary.io/#reference/users/get-user-by-id/get-user-by-id} */ getUser(id?: string): Promise<GetUserResult>; /** * Return the calling user's contact. The UUID field may be used as a recipient to create an order. * @returns Promise containing the calling user's contact information * @see {@link https://widenv1.docs.apiary.io/#reference/users-&-contacts/user-address/user-address} */ getContact(): Promise<GetContactResult>; } export { UsersApi };