@chevre/factory 4.389.0-alpha.5 → 4.389.0-alpha.7

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.
package/lib/product.d.ts CHANGED
@@ -135,7 +135,7 @@ export type ICreateParams = Pick<IProduct, 'typeOf' | 'productID' | 'name' | 'de
135
135
  * 興行に複数設定の場合はArray
136
136
  * 最大数: 2
137
137
  */
138
- hasOfferCatalog?: IHasOfferCatalogOnCreate | IHasOfferCatalogOnCreate[];
138
+ hasOfferCatalog?: IHasOfferCatalogOnCreate[];
139
139
  /**
140
140
  * サービスタイプ
141
141
  * 興行->興行区分
package/lib/schedule.d.ts CHANGED
@@ -7,7 +7,7 @@ export interface ISchedule4ttts {
7
7
  film: string;
8
8
  theater: string;
9
9
  /**
10
- * 興行ID
10
+ * 興行プロダクトID
11
11
  */
12
12
  eventServiceProductID?: string;
13
13
  duration: number;
@@ -1,26 +1,41 @@
1
1
  import { IAttributes as IActionAttributes } from '../action';
2
2
  import { ActionType } from '../actionType';
3
+ import { CreativeWorkType } from '../creativeWorkType';
3
4
  import { IAttributes as IScreeningEventAttributes } from '../event/screeningEvent';
4
5
  import { IAttributes as IScreeningEventSeriesAttributes } from '../event/screeningEventSeries';
5
6
  import { IExtendId } from '../autoGenerated';
6
7
  import * as TaskFactory from '../task';
7
8
  import { TaskName } from '../taskName';
8
- export type IActionObject = IScreeningEventAttributes[] | IScreeningEventSeriesAttributes[];
9
9
  export interface IActionInstrument {
10
- createScreeningEventSeriesIfNotExistByWorkPerformed: boolean;
10
+ typeOf?: CreativeWorkType.WebApplication;
11
+ id?: string;
12
+ createScreeningEventSeriesIfNotExistByWorkPerformed: true;
11
13
  /**
12
14
  * 全施設に施設コンテンツを作成するかどうか
13
15
  */
14
16
  createScreeningEventSeriesOnAllLocation?: boolean;
15
17
  }
16
- export type IData = IActionAttributes<ActionType.CreateAction, IActionObject, any> & {
18
+ export interface IEventBySchedule {
19
+ eventSchedule: {
20
+ id: string;
21
+ };
22
+ typeOf: IScreeningEventAttributes['typeOf'];
23
+ }
24
+ export type ICreateEventSeriesAction = Pick<IActionAttributes<ActionType.CreateAction, IScreeningEventSeriesAttributes[], undefined>, 'agent' | 'object' | 'project' | 'targetCollection' | 'typeOf'> & {
17
25
  instrument: IActionInstrument;
18
26
  };
27
+ /**
28
+ * スケジュールによるイベント作成アクション
29
+ */
30
+ export type ICreateEventByScheduleAction = Pick<IActionAttributes<ActionType.CreateAction, IEventBySchedule, undefined>, 'agent' | 'object' | 'project' | 'targetCollection' | 'typeOf'> & {
31
+ instrument?: never;
32
+ };
33
+ export type IData = ICreateEventSeriesAction | ICreateEventByScheduleAction;
19
34
  export interface IAttributes extends TaskFactory.IAttributes {
20
35
  name: TaskName.CreateEvent;
21
36
  data: IData;
22
37
  }
23
38
  /**
24
- * イベント作成タスク
39
+ * イベント or 施設コンテンツ作成タスク
25
40
  */
26
41
  export type ITask = IExtendId<IAttributes>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.389.0-alpha.5",
3
+ "version": "4.389.0-alpha.7",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",