Skip to content

Commit

Permalink
コンテンツのICreateParamsを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovegadd committed Dec 10, 2023
1 parent e119524 commit 6f07bff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

### Added

- コンテンツのICreateParamsを追加

### Changed

- 施設コンテンツのICreateParamsを最適化
Expand Down
12 changes: 12 additions & 0 deletions src/creativeWork/movie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@ export interface ICreativeWork extends Pick<
typeOf: CreativeWorkType.Movie;
}

/**
* コンテンツ作成パラメータ
*/
export type ICreateParams = Pick<
ICreativeWork,
'additionalProperty' | 'contentRating' | 'datePublished' | 'duration' | 'headline' | 'identifier' | 'thumbnailUrl' | 'typeOf'
> & {
name?: Pick<IMultilingualString, 'en' | 'ja'>;
offers: Pick<IOffer, 'availabilityEnds'>;
distributor?: Pick<IDistributor, 'codeValue'>;
};

/**
* ソート条件
*/
Expand Down

0 comments on commit 6f07bff

Please sign in to comment.