@chevre/factory 8.2.0-alpha.0 → 8.2.0-alpha.2

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.
@@ -1,5 +1,5 @@
1
1
  import { IAction as IReturnOrderAction } from '../action/transfer/return/order';
2
- import { IAcceptedOffer, IOrder } from '../order';
2
+ import { IAcceptedOffer, IOrder, ITicketPriceSpecification } from '../order';
3
3
  import { OrderStatus } from '../orderStatus';
4
4
  /**
5
5
  * 返品通知
@@ -19,7 +19,12 @@ export type IProcessingOrder4inform = Pick<IOrder, 'project' | 'typeOf' | 'selle
19
19
  * 配送中通知
20
20
  */
21
21
  export type IInTransitOrder4inform = Pick<IOrder, 'project' | 'typeOf' | 'orderNumber'> & {
22
- acceptedOffers: IAcceptedOffer[];
22
+ acceptedOffers: (Omit<IAcceptedOffer, 'priceSpecification'> & {
23
+ /**
24
+ * COA以外では注文ドキュメントにpriceSpecificationが存在しないのでIFを補完
25
+ */
26
+ priceSpecification?: ITicketPriceSpecification;
27
+ })[];
23
28
  id?: string;
24
29
  orderStatus: OrderStatus.OrderInTransit;
25
30
  };
@@ -23,6 +23,7 @@ import { IReservation as IRawReservation, IReservedTicket as IRawReservedTicket
23
23
  import { ReservationType } from './reservationType';
24
24
  import { ISeller as IBaseSeller } from './seller';
25
25
  import { IPaymentMethodAsServiceOutput, PaymentServiceType } from './service/paymentService';
26
+ import { IService, Identifier } from './service/webAPI';
26
27
  import { SortType } from './sortType';
27
28
  import { UnitCode } from './unitCode';
28
29
  export { OrderType };
@@ -221,20 +222,40 @@ export type ITicketPriceComponent = ICategoryChargePriceComponent | IMovieTicket
221
222
  */
222
223
  export type ITicketPriceSpecification = Pick<ICompoundPriceSpecification<ITicketPriceComponent>, 'priceComponent' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
223
224
  export type IOfferOptimized4acceptedOffer = Pick<IOffer, 'typeOf' | 'id' | 'itemOffered' | 'offeredThrough' | 'name'>;
224
- /**
225
- * 受け入れオファー
226
- */
227
- export interface IAcceptedOffer extends IOfferOptimized4acceptedOffer {
225
+ export interface ICOAAcceptedOffer extends IOfferOptimized4acceptedOffer {
228
226
  /**
229
227
  * オファー対象アイテム
230
228
  */
231
- itemOffered: IItemOffered;
229
+ itemOffered: ICOAEventReservation;
230
+ offeredThrough: Pick<IService<Identifier>, 'typeOf'> & {
231
+ identifier: Identifier.COA;
232
+ };
232
233
  priceSpecification?: ITicketPriceSpecification;
233
234
  /**
234
- * 資産取引を特定する番号(2024-01-30~)
235
+ * 資産取引番号
236
+ * 2024-01-30~
235
237
  */
236
- serialNumber?: string;
238
+ serialNumber: string;
237
239
  }
240
+ export interface IOptimizedAcceptedOffer extends IOfferOptimized4acceptedOffer {
241
+ /**
242
+ * オファー対象アイテム
243
+ */
244
+ itemOffered: IEventReservation;
245
+ offeredThrough: Pick<IService<Identifier>, 'typeOf'> & {
246
+ identifier: Identifier.Chevre;
247
+ };
248
+ priceSpecification?: ITicketPriceSpecification;
249
+ /**
250
+ * 資産取引番号
251
+ * 2024-01-30~
252
+ */
253
+ serialNumber: string;
254
+ }
255
+ /**
256
+ * 受け入れオファー
257
+ */
258
+ export type IAcceptedOffer = ICOAAcceptedOffer | IOptimizedAcceptedOffer;
238
259
  /**
239
260
  * 販売者
240
261
  */
@@ -27,24 +27,12 @@ export interface IOffer extends Pick<IBaseOffer, 'typeOf' | 'eligibleQuantity'>
27
27
  * イベント開始後の販売猶予期間
28
28
  */
29
29
  availabilityEndsGraceTime: IAvailabilityEndsGraceTime;
30
- /**
31
- * イベント開始前の販売猶予期間(POS)
32
- */
33
- availabilityStartsGraceTimeOnPOS?: never;
34
- /**
35
- * イベント開始後の販売猶予期間(POS)
36
- */
37
- availabilityEndsGraceTimeOnPOS?: never;
38
30
  }
39
31
  /**
40
32
  * 施設の操作するPoints-of-Sales
41
33
  */
42
34
  export interface IPOS {
43
- /**
44
- * コード
45
- * @deprecated Use branchCode(2023-09-27~)
46
- */
47
- id: string;
35
+ id?: never;
48
36
  /**
49
37
  * コード
50
38
  */
@@ -67,10 +55,6 @@ export type IParentOrganization = Pick<ISeller, 'typeOf' | 'id'> & {
67
55
  export interface IPlace extends Pick<IBasePlace, 'additionalProperty' | 'branchCode' | 'name' | 'project' | 'telephone' | 'typeOf' | 'url'> {
68
56
  typeOf: PlaceType.MovieTheater;
69
57
  id: string;
70
- /**
71
- * ルーム数
72
- */
73
- screenCount?: number;
74
58
  /**
75
59
  * 施設コード
76
60
  */
@@ -75,7 +75,7 @@ export interface IReservation extends IBaseReservation {
75
75
  numSeats?: never;
76
76
  }
77
77
  export interface IReservationForSearchConditions {
78
- typeOf?: EventType;
78
+ typeOf?: never;
79
79
  id?: string | {
80
80
  $eq?: string;
81
81
  };
@@ -145,11 +145,11 @@ export interface IReservedTicketSearchConditions {
145
145
  }
146
146
  export interface IStringSearchConditions {
147
147
  $eq?: string;
148
- $ne?: string;
149
148
  $in?: string[];
150
- $nin?: string[];
151
- $options?: string;
152
149
  $regex?: string;
150
+ $ne?: never;
151
+ $nin?: never;
152
+ $options?: never;
153
153
  }
154
154
  /**
155
155
  * ソート条件
@@ -207,8 +207,6 @@ export interface ISearchConditions {
207
207
  reservationStatuses?: IAvailableReservationStatusType[];
208
208
  bookingFrom?: Date;
209
209
  bookingThrough?: Date;
210
- modifiedFrom?: Date;
211
- modifiedThrough?: Date;
212
210
  /**
213
211
  * 予約チケット
214
212
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "8.2.0-alpha.0",
3
+ "version": "8.2.0-alpha.2",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [