/** * 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 { CustomFieldOptionV1 } from './CustomFieldOptionV1.js'; /** * * @export * @interface CustomFieldV1 */ export interface CustomFieldV1 { /** * For catalog fields, the ID of the associated catalog type */ catalog_type_id?: string; /** * When the action was created */ created_at: Date; /** * Description of the custom field */ description: string; /** * Type of custom field */ field_type: CustomFieldV1FieldTypeEnum; /** * Unique identifier for the custom field */ id: string; /** * Human readable name for the custom field */ name: string; /** * What options are available for this custom field, if this field has options */ options: Array; /** * When this custom field must be set during the incident lifecycle. [DEPRECATED: please use required_v2 instead]. */ required?: CustomFieldV1RequiredEnum; /** * When this custom field must be set during the incident lifecycle. */ required_v2?: CustomFieldV1RequiredV2Enum; /** * Whether a custom field should be shown in the incident resolve modal. If this custom field is required before resolution, but no value has been set for it, the field will be shown in the resolve modal whatever the value of this setting. */ show_before_closure: boolean; /** * Whether a custom field should be shown in the incident creation modal. This must be true if the field is always required. */ show_before_creation: boolean; /** * Whether a custom field should be shown in the incident update modal. */ show_before_update: boolean; /** * Whether a custom field should be shown in the list of fields as part of the announcement post when set. */ show_in_announcement_post?: boolean; /** * When the action was last updated */ updated_at: Date; } /** * @export */ export declare const CustomFieldV1FieldTypeEnum: { readonly SingleSelect: "single_select"; readonly MultiSelect: "multi_select"; readonly Text: "text"; readonly Link: "link"; readonly Numeric: "numeric"; }; export type CustomFieldV1FieldTypeEnum = typeof CustomFieldV1FieldTypeEnum[keyof typeof CustomFieldV1FieldTypeEnum]; /** * @export */ export declare const CustomFieldV1RequiredEnum: { readonly Never: "never"; readonly BeforeClosure: "before_closure"; readonly Always: "always"; }; export type CustomFieldV1RequiredEnum = typeof CustomFieldV1RequiredEnum[keyof typeof CustomFieldV1RequiredEnum]; /** * @export */ export declare const CustomFieldV1RequiredV2Enum: { readonly Never: "never"; readonly BeforeResolution: "before_resolution"; readonly Always: "always"; }; export type CustomFieldV1RequiredV2Enum = typeof CustomFieldV1RequiredV2Enum[keyof typeof CustomFieldV1RequiredV2Enum]; /** * Check if a given object implements the CustomFieldV1 interface. */ export declare function instanceOfCustomFieldV1(value: object): value is CustomFieldV1; export declare function CustomFieldV1FromJSON(json: any): CustomFieldV1; export declare function CustomFieldV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomFieldV1; export declare function CustomFieldV1ToJSON(json: any): CustomFieldV1; export declare function CustomFieldV1ToJSONTyped(value?: CustomFieldV1 | null, ignoreDiscriminator?: boolean): any;