/** * 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 CustomFieldsUpdatePayloadV1 */ export interface CustomFieldsUpdatePayloadV1 { /** * Description of the custom field */ description: string; /** * 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?: CustomFieldsUpdatePayloadV1RequiredEnum; /** * When this custom field must be set during the incident lifecycle. */ required_v2?: CustomFieldsUpdatePayloadV1RequiredV2Enum; /** * 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 CustomFieldsUpdatePayloadV1RequiredEnum: { readonly Never: "never"; readonly BeforeClosure: "before_closure"; readonly Always: "always"; }; export type CustomFieldsUpdatePayloadV1RequiredEnum = typeof CustomFieldsUpdatePayloadV1RequiredEnum[keyof typeof CustomFieldsUpdatePayloadV1RequiredEnum]; /** * @export */ export declare const CustomFieldsUpdatePayloadV1RequiredV2Enum: { readonly Never: "never"; readonly BeforeResolution: "before_resolution"; readonly Always: "always"; }; export type CustomFieldsUpdatePayloadV1RequiredV2Enum = typeof CustomFieldsUpdatePayloadV1RequiredV2Enum[keyof typeof CustomFieldsUpdatePayloadV1RequiredV2Enum]; /** * Check if a given object implements the CustomFieldsUpdatePayloadV1 interface. */ export declare function instanceOfCustomFieldsUpdatePayloadV1(value: object): value is CustomFieldsUpdatePayloadV1; export declare function CustomFieldsUpdatePayloadV1FromJSON(json: any): CustomFieldsUpdatePayloadV1; export declare function CustomFieldsUpdatePayloadV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomFieldsUpdatePayloadV1; export declare function CustomFieldsUpdatePayloadV1ToJSON(json: any): CustomFieldsUpdatePayloadV1; export declare function CustomFieldsUpdatePayloadV1ToJSONTyped(value?: CustomFieldsUpdatePayloadV1 | null, ignoreDiscriminator?: boolean): any;