/** * 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. */ /** * * @export * @interface CustomFieldsCreatePayloadV1 */ export interface CustomFieldsCreatePayloadV1 { /** * Description of the custom field */ description: string; /** * Type of custom field */ field_type: CustomFieldsCreatePayloadV1FieldTypeEnum; /** * Human readable name for the custom field */ name: string; /** * When this custom field must be set during the incident lifecycle. [DEPRECATED: please use required_v2 instead]. */ required?: CustomFieldsCreatePayloadV1RequiredEnum; /** * When this custom field must be set during the incident lifecycle. */ required_v2?: CustomFieldsCreatePayloadV1RequiredV2Enum; /** * 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; } /** * @export */ export declare const CustomFieldsCreatePayloadV1FieldTypeEnum: { readonly SingleSelect: "single_select"; readonly MultiSelect: "multi_select"; readonly Text: "text"; readonly Link: "link"; readonly Numeric: "numeric"; }; export type CustomFieldsCreatePayloadV1FieldTypeEnum = typeof CustomFieldsCreatePayloadV1FieldTypeEnum[keyof typeof CustomFieldsCreatePayloadV1FieldTypeEnum]; /** * @export */ export declare const CustomFieldsCreatePayloadV1RequiredEnum: { readonly Never: "never"; readonly BeforeClosure: "before_closure"; readonly Always: "always"; }; export type CustomFieldsCreatePayloadV1RequiredEnum = typeof CustomFieldsCreatePayloadV1RequiredEnum[keyof typeof CustomFieldsCreatePayloadV1RequiredEnum]; /** * @export */ export declare const CustomFieldsCreatePayloadV1RequiredV2Enum: { readonly Never: "never"; readonly BeforeResolution: "before_resolution"; readonly Always: "always"; }; export type CustomFieldsCreatePayloadV1RequiredV2Enum = typeof CustomFieldsCreatePayloadV1RequiredV2Enum[keyof typeof CustomFieldsCreatePayloadV1RequiredV2Enum]; /** * Check if a given object implements the CustomFieldsCreatePayloadV1 interface. */ export declare function instanceOfCustomFieldsCreatePayloadV1(value: object): value is CustomFieldsCreatePayloadV1; export declare function CustomFieldsCreatePayloadV1FromJSON(json: any): CustomFieldsCreatePayloadV1; export declare function CustomFieldsCreatePayloadV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomFieldsCreatePayloadV1; export declare function CustomFieldsCreatePayloadV1ToJSON(json: any): CustomFieldsCreatePayloadV1; export declare function CustomFieldsCreatePayloadV1ToJSONTyped(value?: CustomFieldsCreatePayloadV1 | null, ignoreDiscriminator?: boolean): any;