@chevre/factory 4.378.0 → 4.379.0-alpha.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.
@@ -8,7 +8,7 @@ import { PlaceType } from '../placeType';
8
8
  import { IServiceType as IProductServiceType, ProductType } from '../product';
9
9
  import * as ReservationFactory from '../reservation';
10
10
  import { ReservationType } from '../reservationType';
11
- import * as WebAPIFactory from '../service/webAPI';
11
+ import { Identifier as WebAPIIdentifier, IService as IWebAPIService } from '../service/webAPI';
12
12
  import { ITripWithDetails as IBusTrip } from '../trip/busTrip';
13
13
  /**
14
14
  * 予約集計
@@ -109,7 +109,7 @@ export interface IItemOffered {
109
109
  typeOf: ProductType.Transportation;
110
110
  availableChannel: ReservationFactory.IServiceChannel;
111
111
  }
112
- export type IOfferedThrough = WebAPIFactory.IService<WebAPIFactory.Identifier.Chevre>;
112
+ export type IOfferedThrough = IWebAPIService<WebAPIIdentifier.Chevre>;
113
113
  export interface ISellerMakesOffer extends Pick<OfferFactory.IOffer, 'typeOf' | 'availableAtOrFrom' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'> {
114
114
  availabilityEnds: Date;
115
115
  availabilityStarts: Date;
@@ -138,12 +138,12 @@ export interface IOffer {
138
138
  * 情報提供終了日時(オンライン取引アプリケーションの設定)
139
139
  * @deprecated Use seller.makesOffer
140
140
  */
141
- availabilityEnds: Date;
141
+ availabilityEnds?: Date;
142
142
  /**
143
143
  * 情報提供開始日時(オンライン取引アプリケーションの設定)
144
144
  * @deprecated Use seller.makesOffer
145
145
  */
146
- availabilityStarts: Date;
146
+ availabilityStarts?: Date;
147
147
  eligibleQuantity: IEligibleQuantity;
148
148
  itemOffered: IItemOffered;
149
149
  /**
@@ -154,12 +154,12 @@ export interface IOffer {
154
154
  * 販売可能期間from(オンライン取引アプリケーションの設定)
155
155
  * @deprecated Use seller.makesOffer
156
156
  */
157
- validFrom: Date;
157
+ validFrom?: Date;
158
158
  /**
159
159
  * 販売可能期間through(オンライン取引アプリケーションの設定)
160
160
  * @deprecated Use seller.makesOffer
161
161
  */
162
- validThrough: Date;
162
+ validThrough?: Date;
163
163
  unacceptedPaymentMethod?: EventFactory.IUnacceptedPaymentMethodType[];
164
164
  seller: ISeller;
165
165
  }
@@ -4,10 +4,10 @@ import * as ScreeningEventSeriesFactory from '../event/screeningEventSeries';
4
4
  import { EventType } from '../eventType';
5
5
  import { OfferType } from '../offerType';
6
6
  import { PlaceType } from '../placeType';
7
- import { IServiceType as IProductServiceType, ProductType } from '../product';
7
+ import { ProductType } from '../product';
8
8
  import * as ReservationFactory from '../reservation';
9
9
  import { ReservationType } from '../reservationType';
10
- import * as WebAPIFactory from '../service/webAPI';
10
+ import { Identifier as WebAPIIdentifier, IService as IWebAPIService } from '../service/webAPI';
11
11
  import * as AnyEventFactory from './anyEvent';
12
12
  export interface IServiceOutput {
13
13
  typeOf: ReservationType.EventReservation;
@@ -22,9 +22,7 @@ export interface IServiceOutput {
22
22
  };
23
23
  };
24
24
  }
25
- export type IServiceType = IProductServiceType & {
26
- id?: string;
27
- };
25
+ export import IServiceType = AnyEventFactory.IServiceType;
28
26
  /**
29
27
  * 興行
30
28
  */
@@ -47,7 +45,7 @@ export interface IItemOffered {
47
45
  typeOf: ProductType.EventService;
48
46
  availableChannel: ReservationFactory.IServiceChannel;
49
47
  }
50
- export type IOfferedThrough = WebAPIFactory.IService<WebAPIFactory.Identifier>;
48
+ export import IOfferedThrough = AnyEventFactory.IOfferedThrough;
51
49
  export import ISellerMakesOffer = AnyEventFactory.ISellerMakesOffer;
52
50
  export import ISeller = AnyEventFactory.ISeller;
53
51
  export import IEligibleQuantity = AnyEventFactory.IEligibleQuantity;
@@ -85,10 +83,17 @@ export interface IOffer {
85
83
  unacceptedPaymentMethod?: EventFactory.IUnacceptedPaymentMethodType[];
86
84
  seller: ISeller;
87
85
  }
88
- export type IOffer4COA = Pick<IOffer, 'typeOf' | 'offeredThrough' | 'eligibleQuantity' | 'seller'> & {
86
+ export type ISeller4COA = Pick<ISeller, 'id' | 'makesOffer' | 'typeOf'>;
87
+ export type IOffer4COA = Pick<IOffer, 'typeOf' | 'eligibleQuantity'> & {
88
+ offeredThrough: IWebAPIService<WebAPIIdentifier.COA>;
89
+ seller: ISeller4COA;
89
90
  itemOffered: {
90
91
  serviceOutput: Pick<IServiceOutput, 'reservedTicket'>;
92
+ id?: never;
93
+ serviceType?: never;
94
+ availableChannel?: never;
91
95
  };
96
+ unacceptedPaymentMethod?: never;
92
97
  };
93
98
  export interface ICOAInfo {
94
99
  theaterCode: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.378.0",
3
+ "version": "4.379.0-alpha.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",