synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
71 lines • 1.4 kB
TypeScript
export declare enum StepStateEnum {
TODO = 0,
PROGRESS = 1,
COMPLETED = 2,
EXCLUDED = 3,
ERROR = 4
}
export type Step = {
id: string;
title: string;
order: number;
state: StepStateEnum;
inProgress: boolean;
rules?: any[];
validationRules?: any[];
default: string;
excluded?: boolean;
final?: boolean;
description?: string;
copy?: string;
static?: boolean;
child?: boolean;
children?: string[];
};
export declare enum NavActionEnum {
PREVIOUS = 0,
NEXT = 1,
GO_TO_STEP = 2,
SAVE = 3,
SUBMIT = 4,
VALIDATE = 5,
NONE = 6
}
export declare enum StatusEnum {
PROGRESS = 0,
ERROR = 1,
SAVE_SUCCESS = 2,
SUBMIT_SUCCESS = 3,
ERROR_CRITICAL = 4
}
export interface SummaryFormat {
screen: Step;
label: string;
value: string;
}
export type FormSchema = {
properties?: any;
definitions?: any;
};
export interface IRulesEvent {
type: string;
params: any;
}
export interface IRulesNavigationEvent extends IRulesEvent {
params: {
next: string;
};
}
export interface IRulesValidationEvent extends IRulesEvent {
params: {
message: string;
name: string;
property: string;
};
}
export interface IAdditionalError {
screen: string;
field: string;
message: string;
}
//# sourceMappingURL=types.d.ts.map