@chevre/factory 4.250.0 → 4.253.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,8 +28,9 @@ export interface ISoundFormat {
28
28
  }
29
29
  /**
30
30
  * コンテンツ
31
+ * contentRatingはCOAのみ存在
31
32
  */
32
- export declare type IWorkPerformed = IMovie;
33
+ export declare type IWorkPerformed = Pick<IMovie, 'project' | 'typeOf' | 'id' | 'identifier' | 'name' | 'duration' | 'contentRating'>;
33
34
  export interface IOrganizer {
34
35
  typeOf: OrganizationType;
35
36
  identifier: string;
@@ -1,7 +1,6 @@
1
1
  import { CreativeWorkType } from './creativeWorkType';
2
2
  import { OrganizationType } from './organizationType';
3
3
  import * as PermitFactory from './permit';
4
- import { IMemberOf } from './person';
5
4
  import { PersonType } from './personType';
6
5
  import * as ProductFactory from './product';
7
6
  import { IProject } from './project';
@@ -48,17 +47,12 @@ export declare type IGoodWithDetail = IReservationWithDetail | IPermit;
48
47
  export interface IOwnerAsOrganization {
49
48
  typeOf: OrganizationType.Organization;
50
49
  id: string;
51
- project: {
52
- id: string;
53
- typeOf: OrganizationType.Project;
54
- };
55
50
  identifier?: IPropertyValue<string>[];
56
51
  }
57
52
  export interface IOwnerAsPerson {
58
53
  typeOf: PersonType;
59
54
  id: string;
60
55
  identifier?: IPropertyValue<string>[];
61
- memberOf?: IMemberOf;
62
56
  }
63
57
  export interface IOwnerAsWebApplication {
64
58
  typeOf: CreativeWorkType.WebApplication;
@@ -95,8 +89,9 @@ export interface IOwnershipInfo<T extends IGood | IGoodWithDetail> {
95
89
  identifier?: any;
96
90
  /**
97
91
  * owned by whom
92
+ * Array対応(2022-07-25~)
98
93
  */
99
- ownedBy: IOwner;
94
+ ownedBy: IOwner | IOwner[];
100
95
  /**
101
96
  * The organization or person from which the product was acquired.
102
97
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.250.0",
3
+ "version": "4.253.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",