fetch-jsd
Version:
A simple and typed library, based on OpenAPI spec from developer.atlassian.com, for accessing product APIs.
77 lines (76 loc) • 2.11 kB
TypeScript
/**
* Service Desk Public REST API
* Public REST API for Jira Service Desk
*
* The version of the OpenAPI document: 1001.0.0-SNAPSHOT
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { JsonTypeBean } from './';
/**
* The metadata describing an issue field.
* @export
* @interface FieldMetadata
*/
export interface FieldMetadata {
/**
* Indicates whether the field is required.
* @type {boolean}
* @memberof FieldMetadata
*/
readonly required: boolean;
/**
* The data type of the field.
* @type {JsonTypeBean}
* @memberof FieldMetadata
*/
readonly schema?: JsonTypeBean;
/**
* The name of the field.
* @type {string}
* @memberof FieldMetadata
*/
readonly name: string;
/**
* The key of the field.
* @type {string}
* @memberof FieldMetadata
*/
readonly key: string;
/**
* The URL that can be used to automatically complete the field.
* @type {string}
* @memberof FieldMetadata
*/
readonly autoCompleteUrl?: string;
/**
* Indicates whether the field has a default value.
* @type {boolean}
* @memberof FieldMetadata
*/
readonly hasDefaultValue?: boolean;
/**
* The list of operations that can be performed on the field.
* @type {Array<string>}
* @memberof FieldMetadata
*/
readonly operations: Array<string>;
/**
* The list of values allowed in the field.
* @type {Array<object>}
* @memberof FieldMetadata
*/
readonly allowedValues?: Array<object>;
/**
* The default value of the field.
* @type {object}
* @memberof FieldMetadata
*/
readonly defaultValue?: object;
}
export declare function FieldMetadataFromJSON(json: any): FieldMetadata;
export declare function FieldMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldMetadata;
export declare function FieldMetadataToJSON(value?: FieldMetadata): any;