@chevre/factory 4.280.0-alpha.5 → 4.280.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.
@@ -3,7 +3,6 @@ import { ActionType } from '../actionType';
3
3
  import { AssetTransactionType } from '../assetTransactionType';
4
4
  import { OrderType } from '../order';
5
5
  import { IReservation as IEventReservation } from '../reservation/event';
6
- import { IAttributes as IInformActionAttributes } from './interact/inform';
7
6
  import { IAttributes as IMoneyTransferActionAttributes } from './transfer/moneyTransfer';
8
7
  export declare type IAgent = ActionFactory.IParticipantAsProject;
9
8
  /**
@@ -30,7 +29,6 @@ export interface IAssetTransactionAsReservePurpose {
30
29
  id: string;
31
30
  }
32
31
  export declare type IPurpose = IOrderAsReservePurpose | IAssetTransactionAsReservePurpose;
33
- export declare type IInformReservation = IInformActionAttributes<IObject, any>;
34
32
  export interface IPotentialActions {
35
33
  moneyTransfer?: IMoneyTransferActionAttributes[];
36
34
  }
@@ -9,7 +9,6 @@ import { OrganizationType } from '../organizationType';
9
9
  import { PlaceType } from '../placeType';
10
10
  import { PriceCurrency } from '../priceCurrency';
11
11
  import { IServiceType as IProductServiceType } from '../product';
12
- import { IProject } from '../project';
13
12
  import { IQuantitativeValue } from '../quantitativeValue';
14
13
  import * as ReservationFactory from '../reservation';
15
14
  import { ReservationType } from '../reservationType';
@@ -122,7 +121,6 @@ export declare type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode.C62>, '
122
121
  * イベントに対するオファー
123
122
  */
124
123
  export interface IOffer {
125
- project: Pick<IProject, 'id' | 'typeOf'>;
126
124
  typeOf: OfferType.Offer;
127
125
  priceCurrency: PriceCurrency.JPY;
128
126
  /**
@@ -150,7 +148,7 @@ export interface IOffer {
150
148
  unacceptedPaymentMethod?: string[];
151
149
  seller: ISeller;
152
150
  }
153
- export declare type IOffer4COA = Pick<IOffer, 'project' | 'typeOf' | 'offeredThrough' | 'priceCurrency'>;
151
+ export declare type IOffer4COA = Pick<IOffer, 'typeOf' | 'offeredThrough' | 'priceCurrency'>;
154
152
  export interface ICOAInfo {
155
153
  theaterCode: string;
156
154
  dateJouei: string;
@@ -221,7 +219,6 @@ export declare type ICOAOffer = COA.factory.reserve.IUpdReserveTicket & {
221
219
  };
222
220
  export declare type IWorkPerformed = ScreeningEventSeriesFactory.IWorkPerformed;
223
221
  export interface ILocation {
224
- project: Pick<IProject, 'id' | 'typeOf'>;
225
222
  /**
226
223
  * 場所タイプ
227
224
  */
@@ -30,7 +30,7 @@ export interface ISoundFormat {
30
30
  * コンテンツ
31
31
  * contentRatingはCOAのみ存在
32
32
  */
33
- export declare type IWorkPerformed = Pick<IMovie, 'project' | 'typeOf' | 'id' | 'identifier' | 'name' | 'duration' | 'contentRating'>;
33
+ export declare type IWorkPerformed = Pick<IMovie, 'typeOf' | 'id' | 'identifier' | 'name' | 'duration' | 'contentRating'>;
34
34
  export interface IOrganizer {
35
35
  typeOf: OrganizationType.Corporation;
36
36
  identifier: string;
@@ -67,7 +67,6 @@ export interface ICOAInfo {
67
67
  dateMvtkBegin: string;
68
68
  }
69
69
  export interface ILocation {
70
- project: Pick<IProject, 'id' | 'typeOf'>;
71
70
  typeOf: PlaceType.MovieTheater;
72
71
  /**
73
72
  * 施設ID
package/lib/event.d.ts CHANGED
@@ -7,6 +7,7 @@ import * as PlaceFactory from './place';
7
7
  import { IProject } from './project';
8
8
  import { IPropertyValue } from './propertyValue';
9
9
  import { SortType } from './sortType';
10
+ export declare type IOffer = Omit<OfferFactory.IOffer, 'project'>;
10
11
  export interface IAttributes<T extends EventType> {
11
12
  project: Pick<IProject, 'id' | 'typeOf'>;
12
13
  /**
@@ -51,7 +52,7 @@ export interface IAttributes<T extends EventType> {
51
52
  /**
52
53
  * イベントが実行される場所
53
54
  */
54
- location?: PlaceFactory.IPlace;
55
+ location?: Omit<PlaceFactory.IPlace, 'project'>;
55
56
  /**
56
57
  * 最大収容人数
57
58
  */
@@ -60,7 +61,7 @@ export interface IAttributes<T extends EventType> {
60
61
  * An offer to provide this item—for example, an offer to sell a product,
61
62
  * rent the DVD of a movie, perform a service, or give away tickets to an event.
62
63
  */
63
- offers?: OfferFactory.IOffer | OfferFactory.IOffer[];
64
+ offers?: IOffer | IOffer[];
64
65
  /**
65
66
  * 残り収容人数
66
67
  */
package/lib/order.d.ts CHANGED
@@ -86,14 +86,13 @@ export interface IDiscount {
86
86
  */
87
87
  discountCurrency: string;
88
88
  }
89
- export declare type IWorkPerformed = Pick<EventReservationFactory.IOptimizedWorkPerformed, 'project' | 'typeOf' | 'id' | 'identifier' | 'name' | 'duration'>;
89
+ export declare type IWorkPerformed = Pick<EventReservationFactory.IOptimizedWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'name' | 'duration'>;
90
90
  export declare type ISuperEvent = Omit<EventReservationFactory.IOptimizedSuperEvent, 'workPerformed'> & {
91
91
  workPerformed: IWorkPerformed;
92
92
  };
93
93
  export declare type IReservationFor = Omit<EventReservationFactory.IReservationFor, 'superEvent'> & {
94
94
  superEvent: ISuperEvent;
95
95
  };
96
- export declare type IReservedTicketType = Pick<ITicketType, 'additionalProperty' | 'description' | 'id' | 'identifier' | 'name' | 'priceCurrency' | 'project' | 'typeOf'>;
97
96
  export declare type IReservedTicket = Pick<ITicket, 'typeOf' | 'ticketedSeat' | 'dateIssued' | 'ticketNumber' | 'ticketToken' | 'coaTicketInfo' | 'coaReserveAmount'> & {
98
97
  ticketType: ITicketType;
99
98
  };
@@ -225,10 +224,8 @@ export interface IReservationFor4OrderedItem {
225
224
  location?: {
226
225
  branchCode: string;
227
226
  name?: IMultilingualString;
228
- project: IProject;
229
227
  typeOf: PlaceType.ScreeningRoom;
230
228
  };
231
- project: IProject;
232
229
  typeOf: EventType.ScreeningEvent;
233
230
  id: string;
234
231
  name?: IMultilingualString;
@@ -236,7 +233,6 @@ export interface IReservationFor4OrderedItem {
236
233
  endDate?: Date;
237
234
  }
238
235
  export interface IEventServiceAsOrderedItem {
239
- project: IProject;
240
236
  typeOf: ProductType.EventService;
241
237
  serviceOutput: {
242
238
  typeOf: ReservationType.EventReservation | ReservationType.ReservationPackage;
@@ -3,14 +3,13 @@ import { EventStatusType } from '../eventStatusType';
3
3
  import { EventType } from '../eventType';
4
4
  import { IMultilingualString } from '../multilingualString';
5
5
  import { ITicketPriceComponent, ITicketPriceSpecification } from '../order';
6
- import { IProject } from '../project';
7
6
  import * as ReservationFactory from '../reservation';
8
7
  import { ReservationStatusType } from '../reservationStatusType';
9
8
  import { ReservationType } from '../reservationType';
10
- export declare type IOptimizedWorkPerformed = Omit<IWorkPerformed, 'name'> & {
9
+ export declare type IOptimizedWorkPerformed = Omit<IWorkPerformed, 'project' | 'name'> & {
11
10
  name?: string | IMultilingualString;
12
11
  };
13
- export declare type IOptimizedSuperEvent = Pick<ISuperEvent, 'additionalProperty' | 'id' | 'kanaName' | 'location' | 'name' | 'project' | 'soundFormat' | 'typeOf' | 'videoFormat' | 'description' | 'headline' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
12
+ export declare type IOptimizedSuperEvent = Pick<ISuperEvent, 'additionalProperty' | 'id' | 'kanaName' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'videoFormat' | 'description' | 'headline' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
14
13
  workPerformed: IOptimizedWorkPerformed;
15
14
  };
16
15
  export interface IReservationFor {
@@ -28,7 +27,6 @@ export interface IReservationFor {
28
27
  coaInfo?: ICOAInfo;
29
28
  location: IEventLocation;
30
29
  name: IEventName;
31
- project: Pick<IProject, 'id' | 'typeOf'>;
32
30
  startDate: Date;
33
31
  superEvent: IOptimizedSuperEvent;
34
32
  typeOf: EventType.ScreeningEvent;
@@ -27,9 +27,7 @@ export interface ITicketType {
27
27
  id?: string;
28
28
  identifier: string;
29
29
  name?: string | IMultilingualString;
30
- priceCurrency: PriceCurrency;
31
- project: Pick<IProject, 'id' | 'typeOf'>;
32
- typeOf: OfferType;
30
+ typeOf: OfferType.Offer;
33
31
  validRateLimit?: OfferFactory.IValidRateLimit;
34
32
  }
35
33
  export declare type IPriceSpecification = IGenericPriceSpecification<PriceSpecificationType>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.280.0-alpha.5",
3
+ "version": "4.280.0-alpha.7",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",