@chevre/factory 4.399.0-alpha.8 → 4.399.0-alpha.9

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.
@@ -2,8 +2,63 @@ import * as ActionFactory from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
3
  import { Identifier as WebAPIIdentifier, IService as IWebAPI } from '../../service/webAPI';
4
4
  import { IInstrumentAsApplication } from './instrumentAsApplication';
5
+ import { ICreativeWork as IMovie } from '../../creativeWork/movie';
6
+ import { IEvent as IEventSeries } from '../../event/screeningEventSeries';
7
+ import { EventType } from '../../eventType';
8
+ import { IOfferCatalog } from '../../offerCatalog';
9
+ import { OrganizationType } from '../../organizationType';
10
+ import { PlaceType } from '../../placeType';
11
+ import { IProduct } from '../../product';
12
+ import { IUnitPriceOffer } from '../../unitPriceOffer';
5
13
  export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsSoftwareApplication;
6
- export type IObject = any;
14
+ export type IObjectAsOfferCatalog = Pick<IOfferCatalog, 'identifier' | 'typeOf'>;
15
+ export type IObjectAsOffer = Pick<IUnitPriceOffer, 'identifier' | 'typeOf'>;
16
+ export type IObjectAsProduct = Pick<IProduct, 'productID' | 'typeOf'>;
17
+ export type IObjectAsMovie = Pick<IMovie, 'identifier' | 'typeOf'>;
18
+ export type IObjectAsEventSeriesByVersion = Pick<IEventSeries, 'typeOf'> & {
19
+ workPerformed: {
20
+ identifier: string;
21
+ version: string;
22
+ };
23
+ location: {
24
+ branchCode: string;
25
+ };
26
+ };
27
+ interface IImportFromCOAParams {
28
+ project: {
29
+ id: string;
30
+ typeOf: OrganizationType.Project;
31
+ };
32
+ /**
33
+ * 施設コード
34
+ */
35
+ locationBranchCode: string;
36
+ importFrom: Date;
37
+ importThrough: Date;
38
+ /**
39
+ * 施設を保管するかどうか
40
+ */
41
+ saveMovieTheater: boolean;
42
+ /**
43
+ * 施設コンテンツを保管するかどうか
44
+ */
45
+ saveScreeningEventSeries: boolean;
46
+ saveScreeningEventSeriesPeriodInMonth: number;
47
+ }
48
+ export interface IObjectAsEventByCOA extends IImportFromCOAParams {
49
+ startDate: string;
50
+ superEvent: {
51
+ location: {
52
+ branchCode: string;
53
+ };
54
+ };
55
+ typeOf: EventType.ScreeningEvent;
56
+ }
57
+ export interface IObjectAsMovieTheaterByCOA extends IImportFromCOAParams {
58
+ branchCode: string;
59
+ typeOf: PlaceType.MovieTheater;
60
+ }
61
+ export type IObject = IObjectAsOfferCatalog | IObjectAsOffer | IObjectAsProduct | IObjectAsMovie | IObjectAsEventSeriesByVersion;
7
62
  export type IResult = any;
8
63
  export type IReplacer = any;
9
64
  export interface IInstrumentAsCOAAPI {
@@ -26,3 +81,4 @@ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.R
26
81
  * 置換アクション
27
82
  */
28
83
  export type IAction = ActionFactory.IAction<IAttributes>;
84
+ export {};
@@ -2,28 +2,53 @@ import * as ActionFactory from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
3
  import { IAbout as INoteAbout } from '../../creativeWork/noteDigitalDocument';
4
4
  import { CreativeWorkType } from '../../creativeWorkType';
5
+ import { EventType } from '../../eventType';
6
+ import { ReservationType } from '../../reservationType';
5
7
  import { IInstrumentAsApplication } from './instrumentAsApplication';
6
8
  export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsSoftwareApplication;
7
9
  export interface IObjectAsNote {
8
10
  identifier: string;
9
11
  typeOf: CreativeWorkType.NoteDigitalDocument;
10
12
  }
11
- export type IObject = IObjectAsNote[];
12
- export interface IUpdatedObject {
13
+ export interface IObjectAsReservation {
13
14
  id: string;
14
- typeOf: CreativeWorkType.NoteDigitalDocument;
15
+ reservationNumber: string;
16
+ typeOf: ReservationType.EventReservation;
17
+ additionalTicketText?: string;
18
+ }
19
+ export interface IObjectAsEvent4ttts {
20
+ id: string;
21
+ identifier: string;
22
+ typeOf: EventType.ScreeningEvent;
23
+ }
24
+ export type IObject = IObjectAsNote[] | IObjectAsReservation | IObjectAsEvent4ttts;
25
+ export interface IUpdatedResource {
26
+ id: string;
27
+ typeOf: CreativeWorkType.NoteDigitalDocument | EventType.ScreeningEvent;
15
28
  }
16
- export type IResult = IUpdatedObject[];
29
+ export interface IUpdatedReservation {
30
+ id: string;
31
+ typeOf: ReservationType.EventReservation;
32
+ additionalTicketText?: string;
33
+ }
34
+ export type IResult = IUpdatedResource[] | IUpdatedReservation;
17
35
  export type IInstrument = IInstrumentAsApplication;
18
36
  export interface ITargetCollectionAsNote {
19
37
  typeOf: CreativeWorkType.NoteDigitalDocument;
20
38
  about: Pick<INoteAbout, 'typeOf'>;
21
39
  }
22
- export type ITargetCollection = ITargetCollectionAsNote;
40
+ export interface ITargetCollectionAsReservation {
41
+ typeOf: ReservationType.EventReservation;
42
+ id: string;
43
+ }
44
+ export interface ITargetCollectionAsEvent {
45
+ typeOf: EventType.ScreeningEvent;
46
+ }
47
+ export type ITargetCollection = ITargetCollectionAsNote | ITargetCollectionAsReservation | ITargetCollectionAsEvent;
23
48
  export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.UpdateAction, IObject, IResult>, 'typeOf' | 'targetCollection' | 'sameAs' | 'result' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
24
49
  potentialActions?: never;
25
50
  purpose?: never;
26
- instrument: IInstrument;
51
+ instrument?: IInstrument;
27
52
  targetCollection: ITargetCollection;
28
53
  }
29
54
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.399.0-alpha.8",
3
+ "version": "4.399.0-alpha.9",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",