UNPKG

@allthings/sdk

Version:
24 lines (23 loc) 955 B
import { IAllthingsRestClient } from '../types'; export interface IApp { readonly emailToTicketEnabled: boolean; readonly emailToTicketForwardingEnabled: boolean; readonly id: string; readonly name: string; readonly siteUrl: string; } export type PartialApp = Partial<IApp>; export type AppResult = Promise<IApp>; export type CreateAppResult = Promise<IApp>; export type MethodAppCreate = (userId: string, data: PartialApp & { readonly name: string; readonly notificationsEmailAddress: string; readonly siteUrl: string; }) => CreateAppResult; export declare function appCreate(client: IAllthingsRestClient, userId: string, data: PartialApp & { readonly name: string; readonly notificationsEmailAddress: string; readonly siteUrl: string; }): CreateAppResult; export type MethodAppGetById = (appId: string) => AppResult; export declare function appGetById(client: IAllthingsRestClient, appId: string): AppResult;