UNPKG

@viewdo/dxp-story-cli

Version:

DXP Story Management CLI

35 lines (34 loc) 1.95 kB
import { ActionInput } from './../models/configuration/support/ActionInput'; import { StoryConfiguration } from './../models/configuration/StoryConfiguration'; import { EventType } from './../models/configuration/support/EventType'; import { ActionType } from './../models/configuration/support/ActionType'; import { AxiosError } from 'axios'; import { ConsoleService } from './ConsoleService'; import { ConventionService } from './ConventionService'; import { ServiceProviderType } from '../models/configuration/support/ServiceProviderType'; export declare class ActionsService { private console; private _baseURL; private _api; constructor(console: ConsoleService, conventions: ConventionService); withToken(token: string): ActionsService; _handleError(err: AxiosError): Promise<never>; eventDataMap: { OnSent: (story: StoryConfiguration) => Array<string>; OnBounced: (story: StoryConfiguration) => Array<string>; OnOpened: (story: StoryConfiguration) => Array<string>; OnExternalEvent: (story: StoryConfiguration) => Array<string>; OnStoryEvent: (story: StoryConfiguration) => Array<string>; OnInboundLink: (story: StoryConfiguration) => Array<string>; OnOutboundLink: (story: StoryConfiguration) => Array<string>; OnMilestone: (story: StoryConfiguration) => Array<string>; OnDataChanged: (story: StoryConfiguration) => Array<string>; }; private _serviceMap; listProvidersByAction(action: ActionType): Array<ServiceProviderType>; listAvailableActions(): Array<ActionType>; listEvents(): Array<EventType>; listActionsByEvent(event: any): Promise<Array<ActionType>>; listActionsParameters(provider: ServiceProviderType, action: ActionType): Promise<Array<ActionInput>>; getDynamicActionParameter(provider: ServiceProviderType, action: ActionType, parameterKey: string, storyKey: string): Promise<ActionInput>; }