/** * incident.io * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { IncidentFormLifecycleElementConfigV3 } from './IncidentFormLifecycleElementConfigV3.js'; import type { EngineParamBindingPayloadV3 } from './EngineParamBindingPayloadV3.js'; import type { ConditionGroupPayloadV3 } from './ConditionGroupPayloadV3.js'; /** * * @export * @interface IncidentFormLifecycleElementPayloadV3 */ export interface IncidentFormLifecycleElementPayloadV3 { /** * Whether the user can explicitly choose no value. Only meaningful for custom field elements. */ can_select_no_value?: boolean; /** * */ config?: IncidentFormLifecycleElementConfigV3; /** * The custom field this element edits. Set only when element_type is custom_field. */ custom_field_id?: string; /** * */ default_value?: EngineParamBindingPayloadV3; /** * Description shown beside this element, as markdown */ description?: string; /** * What this element captures */ element_type: IncidentFormLifecycleElementPayloadV3ElementTypeEnum; /** * Identifier of an existing divider or text element. Omit when adding an element. */ id?: string; /** * The incident role this element assigns. Set only when element_type is incident_role. */ incident_role_id?: string; /** * The incident timestamp this element sets. Set only when element_type is timestamp. */ incident_timestamp_id?: string; /** * Placeholder text shown in the empty field */ placeholder?: string; /** * When this element must be filled in */ required_if?: IncidentFormLifecycleElementPayloadV3RequiredIfEnum; /** * Condition groups that make this element required. Used when required_if is check_engine_config. */ required_if_condition_groups?: Array; /** * The element is shown when any of these condition groups match. Unset means it is always shown. */ show_if_condition_groups?: Array; } /** * @export */ export declare const IncidentFormLifecycleElementPayloadV3ElementTypeEnum: { readonly Name: "name"; readonly Status: "status"; readonly Severity: "severity"; readonly IncidentRole: "incident_role"; readonly IncidentType: "incident_type"; readonly Summary: "summary"; readonly CustomField: "custom_field"; readonly Timestamp: "timestamp"; readonly UpdateMessage: "update_message"; readonly NextUpdateIn: "next_update_in"; readonly Triage: "triage"; readonly Visibility: "visibility"; readonly Divider: "divider"; readonly Text: "text"; readonly IncidentAttachments: "incident_attachments"; readonly SlackChannel: "slack_channel"; readonly AnnounceRetroIncident: "announce_retro_incident"; readonly EnterPostIncidentFlow: "enter_post_incident_flow"; readonly InvestigationFeedback: "investigation_feedback"; }; export type IncidentFormLifecycleElementPayloadV3ElementTypeEnum = typeof IncidentFormLifecycleElementPayloadV3ElementTypeEnum[keyof typeof IncidentFormLifecycleElementPayloadV3ElementTypeEnum]; /** * @export */ export declare const IncidentFormLifecycleElementPayloadV3RequiredIfEnum: { readonly CheckEngineConfig: "check_engine_config"; readonly AlwaysRequire: "always_require"; readonly NeverRequire: "never_require"; }; export type IncidentFormLifecycleElementPayloadV3RequiredIfEnum = typeof IncidentFormLifecycleElementPayloadV3RequiredIfEnum[keyof typeof IncidentFormLifecycleElementPayloadV3RequiredIfEnum]; /** * Check if a given object implements the IncidentFormLifecycleElementPayloadV3 interface. */ export declare function instanceOfIncidentFormLifecycleElementPayloadV3(value: object): value is IncidentFormLifecycleElementPayloadV3; export declare function IncidentFormLifecycleElementPayloadV3FromJSON(json: any): IncidentFormLifecycleElementPayloadV3; export declare function IncidentFormLifecycleElementPayloadV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFormLifecycleElementPayloadV3; export declare function IncidentFormLifecycleElementPayloadV3ToJSON(json: any): IncidentFormLifecycleElementPayloadV3; export declare function IncidentFormLifecycleElementPayloadV3ToJSONTyped(value?: IncidentFormLifecycleElementPayloadV3 | null, ignoreDiscriminator?: boolean): any;