/** * Pipedrive API v2 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.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. */ /** * Required fields configuration for marking the field as mandatory when interacted with in the Pipedrive web UI. * @export * @interface AddDealFieldRequestRequiredFields */ export interface AddDealFieldRequestRequiredFields { [key: string]: any | any; /** * Whether the field is required. When false, the field is optional. When true with empty stage_ids, the field is required everywhere. When true with specific stage_ids, the field is required only at those stages. Default is false. * @type {boolean} */ 'enabled'?: boolean; /** * Array of deal stage IDs where this field is required. Must reference valid, active deal stages. Empty array when enabled is false. The stages must be in pipelines where this field is visible (show_in_pipelines). * @type {Array} */ 'stage_ids'?: Array; /** * Pipeline-specific status requirements for when deals are won or lost. Keys are pipeline IDs (as strings), values are arrays of status strings (\'won\', \'lost\'). Example - `{\"1\":[\"won\",\"lost\"],\"2\":[\"won\"]}` means the field is required when marking deals as won or lost in pipeline 1, and only when won in pipeline 2. Must reference valid, active pipelines. * @type {{ [key: string]: Array | undefined; }} */ 'statuses'?: { [key: string]: Array | undefined; }; } export declare const AddDealFieldRequestRequiredFieldsStatusesConst: { readonly won: "won"; readonly lost: "lost"; }; export type AddDealFieldRequestRequiredFieldsStatusesConst = typeof AddDealFieldRequestRequiredFieldsStatusesConst[keyof typeof AddDealFieldRequestRequiredFieldsStatusesConst];