You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.4 KiB
61 lines
1.4 KiB
type AlertOverrideTarget = { |
|
description?: string; |
|
name: string; |
|
node: string; |
|
type: 'node' | 'subnode'; |
|
uuid: string; |
|
}; |
|
|
|
type AlertOverrideFormikAlertOverride = { |
|
level: number; |
|
target: AlertOverrideTarget | null; |
|
uuid: string; |
|
}; |
|
|
|
type AlertOverrideFormikValues = { |
|
[uuid: string]: AlertOverrideFormikAlertOverride; |
|
}; |
|
|
|
type MailRecipientFormikMailRecipient = APIMailRecipientDetail & { |
|
alertOverrides: AlertOverrideFormikValues; |
|
}; |
|
|
|
type MailRecipientFormikValues = { |
|
[uuid: string]: MailRecipientFormikMailRecipient; |
|
}; |
|
|
|
/** AddMailRecipientForm */ |
|
|
|
type AddMailRecipientFormOptionalProps = { |
|
mailRecipientUuid?: string; |
|
previousFormikValues?: MailRecipientFormikValues; |
|
}; |
|
|
|
type AddMailRecipientFormProps = AddMailRecipientFormOptionalProps & { |
|
alertOverrideTargetOptions: AlertOverrideTarget[]; |
|
tools: CrudListFormTools; |
|
}; |
|
|
|
/** EditMailRecipientForm */ |
|
|
|
type EditMailRecipientFormProps = Required<AddMailRecipientFormProps>; |
|
|
|
/** ManageAlertOverride */ |
|
|
|
type ManageAlertOverrideProps = Required< |
|
Pick< |
|
AddMailRecipientFormProps, |
|
'alertOverrideTargetOptions' | 'mailRecipientUuid' |
|
> |
|
> & { |
|
formikUtils: FormikUtils<MailRecipientFormikValues>; |
|
}; |
|
|
|
/** AlertOverrideInputGroup */ |
|
|
|
type AlertOverrideInputGroupOptionalProps = { |
|
alertOverrideUuid?: string; |
|
}; |
|
|
|
type AlertOverrideInputGroupProps = AlertOverrideInputGroupOptionalProps & |
|
ManageAlertOverrideProps;
|
|
|