import { IProject } from './project'; import { IPropertyValue } from './propertyValue'; import { SortType } from './sortType'; export interface IDefinedTerm { typeOf: 'DefinedTerm'; termCode: string; name?: string; description?: string; } /** * 勘定科目 * {@link https://pending.schema.org/CategoryCode} */ export interface IAccountTitle { project: Pick; typeOf: 'AccountTitle'; /** * A short textual code that uniquely identifies the value. */ codeValue: string; /** * The name of the item. */ name?: string; /** * A description of the item. */ /** * A CategoryCodeSet that contains this catagory code. */ inCodeSet?: IAccountTitle; /** * A Category code contained in this code set. */ hasCategoryCode?: IAccountTitle[]; /** * A DefinedTermSet that contains this term. */ inDefinedTermSet?: IDefinedTerm; /** * A Defined Term contained in this term set. */ hasDefinedTerm?: IDefinedTerm[]; additionalProperty?: IPropertyValue[]; } /** * ソート条件 */ export interface ISortOrder { codeValue?: SortType; } /** * 検索条件 */ export interface ISearchConditions { limit?: number; page?: number; sort?: ISortOrder; project?: { id?: { $eq?: string; }; }; codeValue?: string | { $eq?: string; }; name?: string; inCodeSet?: { codeValue?: string | { $eq?: string; }; name?: string; inCodeSet?: { codeValue?: string | { $eq?: string; }; name?: string; }; }; additionalProperty?: { $elemMatch?: any; }; }