Skip to content

Commit

Permalink
Add ConditionSettings definition to ViewModel
Browse files Browse the repository at this point in the history
  • Loading branch information
st3mc5 committed Feb 3, 2021
1 parent 8e8c755 commit 5c8e0b1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/sitecore-jss-forms/src/ViewModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,36 @@ export interface ValidationDataModel {
name: string;
}

export interface ConditionsModel {
fieldId: string;
operatorId: string;
value: string;
}

export interface ActionsModel {
fieldId: string;
actionTypeId: string;
value: string;
}

export interface FieldConditionsModel {
matchTypeId: string;
conditions: ConditionsModel[];
actions: ActionsModel[];
}

export interface ConditionSettingsModel {
fieldKey: string;
fieldConditions: FieldConditionsModel[];
}

export interface ViewModel {
itemId: string;
name: string;
templateId: string;
fieldTypeItemId: string;
validationDataModels: ValidationDataModel[];
conditionSettings: ConditionSettingsModel;
}

export interface TextViewModel extends ViewModel {
Expand Down

0 comments on commit 5c8e0b1

Please sign in to comment.