export interface ActivationActionLog { /** Action ID */ id?: string; /** Activation ID */ activationId?: string; /** Action type */ type?: Type; /** Action activation status */ activationStatus?: Status; /** Started status information */ startedInfo?: StartedStatusInfo; /** Ended status information */ endedInfo?: EndedStatusInfo; /** Skipped status information */ skippedInfo?: SkippedStatusInfo; /** Failed status information */ failedInfo?: FailedStatusInfo; /** Warnings information */ warnings?: Warning[]; } export interface StartedStatusInfoAppDefinedActionInfo { /** Action input */ input?: Record | null; } export interface StartedStatusInfoDelayActionInfo { /** Indicates when this action becomes completed and the activation will move to the post actions */ date?: Date | null; } export interface ExpressionEvaluationResult { /** Indicates if the expression was evaluated to true or false */ passed?: boolean; /** Indicates if there was an error in the evaluation process */ error?: boolean; } export interface AppDefinedActionInfo { /** The output that the action implementer returned */ output?: Record | null; } export interface ConditionActionInfo { /** Indicates that the condition `if` clause evaluated to `true` */ passed?: boolean; /** Collects results per each expression evaluation that took place */ expressionResults?: Record; } export interface RateLimitActionInfo { /** Indicates if the rate limiter passed (not reached the quota) */ passed?: boolean; } export interface DelayActionInfo { /** Enriched and refreshed payload */ payload?: Record | null; } export interface SetVariablesActionInfo { /** Output returned after jsonata expression evaluation */ output?: Record | null; } export declare enum Type { /** Automation will be triggered according to the trigger configuration. */ UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE", /** App defined Action. */ APP_DEFINED = "APP_DEFINED", /** Condition Action. */ CONDITION = "CONDITION", /** Delay Action. */ DELAY = "DELAY", /** RateLimit Action. */ RATE_LIMIT = "RATE_LIMIT", /** Set Variables Action. */ SET_VARIABLES = "SET_VARIABLES", /** Output Action. */ OUTPUT = "OUTPUT" } export declare enum Status { UNKNOWN_ACTION_ACTIVATION_STATUS = "UNKNOWN_ACTION_ACTIVATION_STATUS", /** * Indicating that action activation has been started and it's in progress * Relevant to action types: APP_DEFINED, DELAY */ STARTED = "STARTED", /** * Indicating that the action activation is completed without errors * Relevant to action types: APP_DEFINED, DELAY, CONDITION, RATE_LIMIT */ ENDED = "ENDED", /** * Indicating that the action is skipped and post actions will not start * Relevant to action types: APP_DEFINED */ SKIPPED = "SKIPPED", /** * Indicating that the action failed * Relevant to action types: APP_DEFINED, DELAY, RATE_LIMIT */ FAILED = "FAILED" } export interface StartedStatusInfo extends StartedStatusInfoTypeInfoOneOf { /** APP DEFINED action additional info */ appDefinedActionInfo?: StartedStatusInfoAppDefinedActionInfo; /** Delay action additional info */ delayActionInfo?: StartedStatusInfoDelayActionInfo; /** Created date */ statusChangedDate?: Date | null; } /** @oneof */ export interface StartedStatusInfoTypeInfoOneOf { /** APP DEFINED action additional info */ appDefinedActionInfo?: StartedStatusInfoAppDefinedActionInfo; /** Delay action additional info */ delayActionInfo?: StartedStatusInfoDelayActionInfo; } export interface EndedStatusInfo extends EndedStatusInfoTypeInfoOneOf { /** APP DEFINED action additional info */ appDefinedActionInfo?: AppDefinedActionInfo; /** Condition action additional info */ conditionActionInfo?: ConditionActionInfo; /** Rate limit action additional info */ rateLimitActionInfo?: RateLimitActionInfo; /** Delay action additional info */ delayActionInfo?: DelayActionInfo; /** Set variables action additional info */ setVariablesActionInfo?: SetVariablesActionInfo; /** Created date */ statusChangedDate?: Date | null; } /** @oneof */ export interface EndedStatusInfoTypeInfoOneOf { /** APP DEFINED action additional info */ appDefinedActionInfo?: AppDefinedActionInfo; /** Condition action additional info */ conditionActionInfo?: ConditionActionInfo; /** Rate limit action additional info */ rateLimitActionInfo?: RateLimitActionInfo; /** Delay action additional info */ delayActionInfo?: DelayActionInfo; /** Set variables action additional info */ setVariablesActionInfo?: SetVariablesActionInfo; } export interface SkippedStatusInfo { /** Created date */ statusChangedDate?: Date | null; } export interface FailedStatusInfo { /** Created date */ statusChangedDate?: Date | null; /** Error description */ errorDescription?: string; /** Error code */ errorCode?: string | null; } export interface Warning { /** Event date */ warningDate?: Date | null; /** * Detailed description of what caused the warning * @readonly */ errorDescription?: string; /** * Error code of what caused the warning * @readonly */ errorCode?: string | null; /** The reason for the warning */ reason?: WarningReason; } export declare enum WarningReason { UNKNOWN_WARNING_REASON = "UNKNOWN_WARNING_REASON", /** Failed to enrich payload with studio site enrichment */ STUDIO_SITE_ENRICHMENT_FAILED = "STUDIO_SITE_ENRICHMENT_FAILED", /** Failed to refresh payload data */ REFRESH_PAYLOAD_FAILED = "REFRESH_PAYLOAD_FAILED", /** Failed to retrieve contact information */ GET_CONTACT_ENRICHMENT_FAILED = "GET_CONTACT_ENRICHMENT_FAILED", /** Failed to retrieve member information */ GET_MEMBER_ENRICHMENT_FAILED = "GET_MEMBER_ENRICHMENT_FAILED" } export interface ListActivationActionLogsRequest { /** Activation ID */ activationId?: string; } export interface ListActivationActionLogsResponse { /** List of activation action logs */ activationActionLogs?: ActivationActionLog[]; } interface ConditionActionInfoNonNullableFields { passed: boolean; } interface RateLimitActionInfoNonNullableFields { passed: boolean; } interface EndedStatusInfoNonNullableFields { conditionActionInfo?: ConditionActionInfoNonNullableFields; rateLimitActionInfo?: RateLimitActionInfoNonNullableFields; } interface FailedStatusInfoNonNullableFields { errorDescription: string; } interface WarningNonNullableFields { errorDescription: string; reason: WarningReason; } interface ActivationActionLogNonNullableFields { id: string; activationId: string; type: Type; activationStatus: Status; endedInfo?: EndedStatusInfoNonNullableFields; failedInfo?: FailedStatusInfoNonNullableFields; warnings: WarningNonNullableFields[]; } export interface ListActivationActionLogsResponseNonNullableFields { activationActionLogs: ActivationActionLogNonNullableFields[]; } export {};