-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
87 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import * as CreativeWorkFactory from '../creativeWork'; | ||
import { CreativeWorkType } from '../creativeWorkType'; | ||
import { IOrder } from '../order'; | ||
import { IPerson } from '../person'; | ||
import { IProject } from '../project'; | ||
import { SortType } from '../sortType'; | ||
|
||
export type IAboutAsOrder = Pick<IOrder, 'orderNumber' | 'typeOf'> & { | ||
id: string; | ||
}; | ||
export type IAbout = IAboutAsOrder; | ||
export type ICreator = Pick<IPerson, 'id' | 'typeOf'>; | ||
export type IEditor = Pick<IPerson, 'id' | 'typeOf'>; | ||
/** | ||
* メモ | ||
*/ | ||
export interface INoteDigitalDocument extends Pick<CreativeWorkFactory.ICreativeWork, 'id' | 'typeOf'> { | ||
/** | ||
* メモ識別子 | ||
*/ | ||
identifier: string; | ||
/** | ||
* メモコンテンツ | ||
*/ | ||
text: string; | ||
project: Pick<IProject, 'id' | 'typeOf'>; | ||
about: IAbout; | ||
dateCreated: Date; | ||
dateModified?: Date; | ||
creator: ICreator; // 作成者 | ||
editor?: IEditor; // 変更者 | ||
version: string; // バージョン | ||
typeOf: CreativeWorkType.NoteDigitalDocument; | ||
} | ||
|
||
/** | ||
* ソート条件 | ||
*/ | ||
export interface ISortOrder { | ||
identifier?: SortType; | ||
} | ||
|
||
/** | ||
* 検索条件 | ||
*/ | ||
export interface ISearchConditions { | ||
limit?: number; | ||
page?: number; | ||
sort?: ISortOrder; | ||
id?: { | ||
$in?: string[]; | ||
}; | ||
project?: { | ||
id?: { $eq?: string }; | ||
}; | ||
about?: { | ||
id?: { | ||
$eq?: string; | ||
$in?: string[]; | ||
}; | ||
orderNumber?: { | ||
$eq?: string; | ||
$in?: string[]; | ||
}; | ||
}; | ||
identifier?: { | ||
$eq?: string; | ||
$in?: string[]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters