@chevre/factory 4.280.0-alpha.6 → 4.280.0-alpha.8

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.
@@ -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/index.d.ts CHANGED
@@ -375,6 +375,7 @@ export declare namespace reservation {
375
375
  type ISubReservation<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.ISubReservation : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.ISubReservation : any;
376
376
  export import ITicket = ReservationFactory.ITicket;
377
377
  type IUnderName<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.IUnderName : ReservationFactory.IUnderName;
378
+ type ITicketIssuedBy<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ITicketIssuedBy : ReservationFactory.ITicketIssuedBy;
378
379
  type TicketType<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.TicketType : ReservationFactory.TicketType;
379
380
  type ITicketType<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ITicketType : ReservationFactory.ITicketType;
380
381
  }
package/lib/order.d.ts CHANGED
@@ -86,7 +86,7 @@ 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
  };
@@ -224,10 +224,8 @@ export interface IReservationFor4OrderedItem {
224
224
  location?: {
225
225
  branchCode: string;
226
226
  name?: IMultilingualString;
227
- project: IProject;
228
227
  typeOf: PlaceType.ScreeningRoom;
229
228
  };
230
- project: IProject;
231
229
  typeOf: EventType.ScreeningEvent;
232
230
  id: string;
233
231
  name?: IMultilingualString;
@@ -235,7 +233,6 @@ export interface IReservationFor4OrderedItem {
235
233
  endDate?: Date;
236
234
  }
237
235
  export interface IEventServiceAsOrderedItem {
238
- project: IProject;
239
236
  typeOf: ProductType.EventService;
240
237
  serviceOutput: {
241
238
  typeOf: ReservationType.EventReservation | ReservationType.ReservationPackage;
@@ -1,21 +1,18 @@
1
1
  import { ICOAInfo, ILocation as IEventLocation, IName as IEventName, ISuperEvent, IWorkPerformed } from '../event/screeningEvent';
2
- import { EventStatusType } from '../eventStatusType';
3
2
  import { EventType } from '../eventType';
4
3
  import { IMultilingualString } from '../multilingualString';
5
4
  import { ITicketPriceComponent, ITicketPriceSpecification } from '../order';
6
- import { IProject } from '../project';
7
5
  import * as ReservationFactory from '../reservation';
8
6
  import { ReservationStatusType } from '../reservationStatusType';
9
7
  import { ReservationType } from '../reservationType';
10
- export declare type IOptimizedWorkPerformed = Omit<IWorkPerformed, 'name'> & {
8
+ export declare type IOptimizedWorkPerformed = Omit<IWorkPerformed, 'project' | 'name'> & {
11
9
  name?: string | IMultilingualString;
12
10
  };
13
- export declare type IOptimizedSuperEvent = Pick<ISuperEvent, 'additionalProperty' | 'id' | 'kanaName' | 'location' | 'name' | 'project' | 'soundFormat' | 'typeOf' | 'videoFormat' | 'description' | 'headline' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
11
+ export declare type IOptimizedSuperEvent = Pick<ISuperEvent, 'additionalProperty' | 'id' | 'kanaName' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'videoFormat' | 'description' | 'headline' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
14
12
  workPerformed: IOptimizedWorkPerformed;
15
13
  };
16
14
  export interface IReservationFor {
17
15
  endDate: Date;
18
- eventStatus: EventStatusType;
19
16
  id: string;
20
17
  /**
21
18
  * COA予約でのみ使用されている
@@ -28,7 +25,6 @@ export interface IReservationFor {
28
25
  coaInfo?: ICOAInfo;
29
26
  location: IEventLocation;
30
27
  name: IEventName;
31
- project: Pick<IProject, 'id' | 'typeOf'>;
32
28
  startDate: Date;
33
29
  superEvent: IOptimizedSuperEvent;
34
30
  typeOf: EventType.ScreeningEvent;
@@ -99,6 +99,10 @@ export declare type IReservationFor = any;
99
99
  /**
100
100
  * 予約チケット情報
101
101
  */
102
+ export interface ITicketIssuedBy {
103
+ typeOf: IUnderNameType;
104
+ name: string;
105
+ }
102
106
  export interface ITicket {
103
107
  typeOf: TicketType;
104
108
  /**
@@ -112,14 +116,13 @@ export interface ITicket {
112
116
  /**
113
117
  * The organization issuing the ticket or permit.
114
118
  */
115
- issuedBy?: IUnderName;
119
+ issuedBy?: ITicketIssuedBy;
116
120
  /**
117
121
  * The total price for the reservation or ticket, including applicable taxes, shipping, etc.
118
122
  */
119
123
  /**
120
124
  * The currency (in 3-letter ISO 4217 format) of the Reservation's price.
121
125
  */
122
- priceCurrency?: PriceCurrency;
123
126
  /**
124
127
  * The seat associated with the ticket.
125
128
  * 座席指定でない場合、この値は存在しない
@@ -128,7 +131,6 @@ export interface ITicket {
128
131
  /**
129
132
  * Where the ticket can be downloaded.
130
133
  */
131
- ticketDownloadUrl?: string;
132
134
  /**
133
135
  * The number or id of the ticket.
134
136
  */
@@ -136,7 +138,6 @@ export interface ITicket {
136
138
  /**
137
139
  * Where the ticket can be printed.
138
140
  */
139
- ticketPrintUrl?: string;
140
141
  /**
141
142
  * If the barcode image is hosted on your site, the value of the field is URL of the image, or a barcode or QR URI,
142
143
  * such as "barcode128:AB34" (ISO-15417 barcodes), "qrCode:AB34" (QR codes),
@@ -145,8 +146,8 @@ export interface ITicket {
145
146
  ticketToken?: string;
146
147
  /**
147
148
  * The person or organization the reservation is for.
149
+ * ルートのunderNameに統合(2022-12-19~)
148
150
  */
149
- underName?: IUnderName;
150
151
  /**
151
152
  * 券種
152
153
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.280.0-alpha.6",
3
+ "version": "4.280.0-alpha.8",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",