import { IApp, ICreateAppBuilder, IAppEnv, IAppAction, IAppActionBody, IAppActionResponseInfo, IAppAuth, ISample, IAppVariables, IAppConstants, IAppWebhook, IAppWebhookEvent, IParsedSample, Categories, RequestAction, IBuilderInit, KeyDescription, IActionUpdate } from '../../types'; export interface IAppBuilderService { createApp({ app_name, description }: ICreateAppBuilder): Promise<{ app_id: string; }>; fetchApp(): IApp; initializeApp(app_id: string): Promise; initializeAppByName(app_name: string): Promise; initializeAppByTag(app_tag: string): Promise; updateApp(data: Partial): Promise; createEnv(data: IAppEnv): Promise; updateEnv(slug: string, data: Partial): Promise; fetchEnvs(): Promise; fetchEnv(slug: string, throwErrorIfExists?: boolean): Promise; updateDataValidation(locator: string, update: Partial): Promise; updateAction(tag: string, data: Partial): Promise; fetchAction(identifier: string): Promise; fetchActions(): Promise>; createAuth(data: Partial): Promise; updateAuth(tag: string, data: Partial): Promise; fetchAuth(tag: string): Promise; fetchAuths(): Promise>; createWebhook(data: Partial): Promise; updateWebhook(tag: string, data: Partial): Promise; deleteWebhook(tag: string): Promise; fetchWebhook(tag: string): Promise; fetchWebhooks(): Promise>; createWebhookEvent(data: Partial): Promise; updateWebhookEvent(data: Partial): Promise; deleteWebhookEvent(eventTag: string): Promise; fetchWebhookEvent(tag: string): Promise; fetchWebhookEvents(tag: string): Promise>; checkIfAppExists(app_name: string): Promise; parseResponsePayload(payload: IAppActionResponseInfo): Promise; parseRequestData(category: Categories, payload: ISample, key_description: Array): Promise; extractResourceData(url: string): Promise<{ query: Partial; params: Partial; }>; createConstant(data: Partial): Promise; updateConstant(key: string, data: Partial): Promise; fetchConstants(): Promise>; fetchConstant(key: string, throwErrorIfExists?: boolean): Promise; createVariable(data: Partial): Promise; updateVariable(key: string, data: Partial): Promise; fetchVariables(): Promise>; fetchVariable(key: string, throwErrorIfExists?: boolean): Promise; } export default class AppBuilderService implements IAppBuilderService { private user_id; private workspace_id; private token; private app_id; private public_key; private access_key; private app; private appVersion; private workspace; private appApi; private workspaceApi; private inputsService; constructor({ workspace_id, public_key, user_id, token, env_type, access_key }: IBuilderInit); createApp(data: ICreateAppBuilder): Promise<{ app_id: string; }>; initAppVersion(versionTag?: string): void; initializeAppByTag(app_tag: string): Promise; initializeApp(app_id: string): Promise; initializeWorkspace(subCheck?: boolean): Promise; private createNewApp; initializeAppByName(app_name: string): Promise; checkIfAppExists(app_name: string): Promise; fetchApp(): IApp; updateApp(data: Partial): Promise; createEnv(data: IAppEnv, throwErrorIfExists?: boolean): Promise; updateEnv(slug: string, data: Partial): Promise; fetchEnvs(): Promise; fetchEnv(slug: string, throwErrorIfExists?: boolean): Promise; extractResourceData(url: string): Promise<{ query: Partial; params: Partial; }>; private mergeMetadataIntoSchema; private mergeNestedBodyMetadata; createAction(data: Partial & { tag: string; name: string; resource: string; method: string; folder_id?: string; }, throwErrorIfExists?: boolean): Promise; private extractMetadata; fetchActions(): Promise>; fetchAction(identifier: string): Promise; updateAction(tag: string, data: Partial): Promise; updateActionProcess(tag: string, data: Partial, action: RequestAction): Promise; createActionRequestData(category: Categories, tag: string, payload: IAppActionBody, throwErrorIfExists?: boolean): Promise; parseRequestData(category: Categories, payload: ISample, key_description?: Array): Promise; fetchActionRequestData(category: Categories, tag: string): Promise>; fetchActionRequestSample(category: Categories, tag: string): Promise; createAppActionResponse(action_tag: string, payload: IAppActionResponseInfo): Promise; parseResponsePayload(payload: IAppActionResponseInfo): Promise; fetchAppActionResponse(action_tag: string, response_tag: string, throwErrorIfExists?: boolean): Promise; extractAuthData(data: Partial): Promise>; createAuth(data: Partial): Promise; updateAuth(tag: string, data: Partial): Promise; fetchAuths(): Promise>; fetchAuth(tag: string): Promise; createVariable(data: Partial, throwErrorIfExists?: boolean): Promise; updateVariable(key: string, data: Partial): Promise; fetchVariables(): Promise>; fetchVariable(key: string, throwErrorIfExists?: boolean): Promise; createConstant(data: Partial, throwErrorIfExists?: boolean): Promise; updateConstant(key: string, data: Partial): Promise; fetchConstants(): Promise>; fetchConstant(key: string, throwErrorIfExists?: boolean): Promise; updateDataValidation(locator: string, update: Partial): Promise; private updateValidation; createWebhook(data: Partial, throwErrorIfExists?: boolean): Promise; updateWebhook(tag: string, data: Partial): Promise; deleteWebhook(tag: string): Promise; fetchWebhook(tag: string): Promise; fetchWebhooks(): Promise>; createWebhookEvent(data: Partial, throwErrorIfExists?: boolean): Promise; updateWebhookEvent(data: Partial): Promise; deleteWebhookEvent(eventTag: string): Promise; fetchWebhookEvent(tag: string): Promise; fetchWebhookEvents(tag: string): Promise>; private getUserAccess; }