@allthings/sdk
Version:
Allthings Node/Javascript SDK
19 lines (18 loc) • 761 B
TypeScript
import { EnumLookupUserType, EnumResource, IAllthingsRestClient } from '../types';
export type LookupIdResult = Promise<{
readonly [externalId: string]: string | null;
}>;
export type MethodLookupIds = (appId: string, data: {
readonly dataSource?: string;
readonly externalIds: string | readonly string[];
readonly parentId?: string;
readonly resource: EnumResource;
readonly userType?: EnumLookupUserType;
}) => LookupIdResult;
export declare function lookupIds(client: IAllthingsRestClient, appId: string, data: {
readonly dataSource?: string;
readonly externalIds: string | readonly string[];
readonly parentId?: string;
readonly resource: EnumResource;
readonly userType?: EnumLookupUserType;
}): LookupIdResult;