UNPKG

@recursyve/deeplinks-client

Version:

Node.js client for Recursyve's Deeplinks API

28 lines (27 loc) 960 B
import { Application, ClientConfig, CreateApplicationDto, CreateDomainDto, CreateLinkDto, Domain, DynamicLink, FetchLinkDetailsDto, PatchApplicationDto } from "./types"; export declare class NiceDeeplinksClient { private readonly client; private readonly apiKey; private readonly tenantId; constructor(config: ClientConfig); /** * Create a new application */ createApplication(data: CreateApplicationDto): Promise<Application>; /** * Update an application by ID */ updateApplication(id: string, data: PatchApplicationDto): Promise<Application>; /** * Create a new domain */ createDomain(data: CreateDomainDto): Promise<Domain>; /** * Create a new dynamic link */ createDynamicLink(data: CreateLinkDto): Promise<DynamicLink>; /** * Fetch dynamic link details by code */ fetchLinkDetails(code: string, params: FetchLinkDetailsDto): Promise<DynamicLink>; }