@chevre/factory 11.1.0-alpha.4 → 11.1.0-alpha.5
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,8 +1,6 @@
|
|
|
1
1
|
import { IAvailableAtOrFrom, ICategory as IOfferCategory } from '../offer';
|
|
2
2
|
import { OfferType } from '../offerType';
|
|
3
3
|
import { IServiceType as IProductServiceType } from '../product';
|
|
4
|
-
import { ISellerMakesOffer } from './sellerMakesOffer';
|
|
5
|
-
export { ISellerMakesOffer };
|
|
6
4
|
/**
|
|
7
5
|
* 予約集計
|
|
8
6
|
*/
|
|
@@ -39,6 +37,3 @@ export type IServiceType = IProductServiceType & {
|
|
|
39
37
|
id?: string;
|
|
40
38
|
};
|
|
41
39
|
export type IOfferAvailableAtOrFrom = Pick<IAvailableAtOrFrom, 'id'>;
|
|
42
|
-
export type ISellerMakesOffer4create = Pick<ISellerMakesOffer, 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough' | 'typeOf' | 'identifier'> & {
|
|
43
|
-
availableAtOrFrom: Pick<IOfferAvailableAtOrFrom, 'id'>;
|
|
44
|
-
};
|
|
@@ -14,8 +14,9 @@ import { TicketType } from '../reservation';
|
|
|
14
14
|
import { ReservationType } from '../reservationType';
|
|
15
15
|
import { Identifier as WebAPIIdentifier, IService as IWebAPIService } from '../service/webAPI';
|
|
16
16
|
import { SortType } from '../sortType';
|
|
17
|
-
import { IAggregateReservation, IOfferWithAggregateReservation, IAggregateOffer, IOfferAvailableAtOrFrom,
|
|
18
|
-
|
|
17
|
+
import { IAggregateReservation, IOfferWithAggregateReservation, IAggregateOffer, IOfferAvailableAtOrFrom, IServiceType } from './anyEvent';
|
|
18
|
+
import { ISellerMakesOffer, ISellerMakesOffer4create } from './sellerMakesOffer';
|
|
19
|
+
export { IAggregateReservation, IOfferWithAggregateReservation, IAggregateOffer, IOfferAvailableAtOrFrom, IServiceType, IEligibleQuantity, ISellerMakesOffer, ISellerMakesOffer4create };
|
|
19
20
|
export interface IServiceOutput {
|
|
20
21
|
typeOf: ReservationType.EventReservation;
|
|
21
22
|
reservedTicket?: {
|
|
@@ -52,7 +53,6 @@ export interface IItemOffered {
|
|
|
52
53
|
*/
|
|
53
54
|
serviceOutput?: IServiceOutput;
|
|
54
55
|
typeOf: ProductType.EventService;
|
|
55
|
-
availableChannel?: never;
|
|
56
56
|
}
|
|
57
57
|
export type IOfferedThrough = Pick<IWebAPIService<WebAPIIdentifier.Chevre>, 'identifier' | 'typeOf'>;
|
|
58
58
|
export interface ISeller {
|
|
@@ -63,11 +63,14 @@ export interface ISeller {
|
|
|
63
63
|
id: string;
|
|
64
64
|
name?: IMultilingualString;
|
|
65
65
|
/**
|
|
66
|
-
* アプリケーションごとのオファー
|
|
66
|
+
* アプリケーションごとのオファー(max:10)
|
|
67
67
|
*/
|
|
68
68
|
makesOffer: ISellerMakesOffer[];
|
|
69
69
|
}
|
|
70
70
|
export interface ISeller4create {
|
|
71
|
+
/**
|
|
72
|
+
* アプリケーションごとのオファー(max:10)
|
|
73
|
+
*/
|
|
71
74
|
makesOffer: ISellerMakesOffer4create[];
|
|
72
75
|
/**
|
|
73
76
|
* POS以外のアプリケーションの共通設定
|
|
@@ -87,7 +90,6 @@ export interface IOffer {
|
|
|
87
90
|
unacceptedPaymentMethod?: IUnacceptedPaymentMethodType[];
|
|
88
91
|
seller: ISeller;
|
|
89
92
|
itemOffered: IItemOffered;
|
|
90
|
-
identifier?: never;
|
|
91
93
|
}
|
|
92
94
|
/**
|
|
93
95
|
* 拡張可能なイベントオファー
|
|
@@ -103,7 +105,6 @@ export interface IExtensibleEventOffer {
|
|
|
103
105
|
seller: ISeller;
|
|
104
106
|
itemOffered: IItemOffered;
|
|
105
107
|
offeredThrough?: never;
|
|
106
|
-
identifier?: never;
|
|
107
108
|
}
|
|
108
109
|
export type ISeller4COA = Pick<ISeller, 'id' | 'makesOffer' | 'typeOf'>;
|
|
109
110
|
export type IOffer4COA = Pick<IOffer, 'typeOf' | 'eligibleQuantity'> & {
|
|
@@ -116,7 +117,6 @@ export type IOffer4COA = Pick<IOffer, 'typeOf' | 'eligibleQuantity'> & {
|
|
|
116
117
|
availableChannel?: never;
|
|
117
118
|
};
|
|
118
119
|
unacceptedPaymentMethod?: never;
|
|
119
|
-
identifier?: never;
|
|
120
120
|
};
|
|
121
121
|
export type ICOAKubun = COAFactory.master.IKubunNameResult;
|
|
122
122
|
export type ICOAInfo = Pick<COAFactory.master.IScheduleResult, 'dateJouei' | 'titleCode' | 'titleBranchNum' | 'timeBegin' | 'timeEnd' | 'screenCode' | 'trailerTime' | 'nameServiceDay' | 'availableNum' | 'rsvStartDate' | 'rsvEndDate' | 'flgEarlyBooking'> & {
|
|
@@ -180,12 +180,6 @@ export interface ILocation {
|
|
|
180
180
|
* COAでは値無し
|
|
181
181
|
*/
|
|
182
182
|
address?: IMultilingualString;
|
|
183
|
-
/**
|
|
184
|
-
* maximumPhysicalAttendeeCapacityへ移行
|
|
185
|
-
* 2025-08-24時点で、まだ実態としては属性が残っている
|
|
186
|
-
* 2025-08-30: 値をunset
|
|
187
|
-
*/
|
|
188
|
-
maximumAttendeeCapacity?: never;
|
|
189
183
|
}
|
|
190
184
|
export type IName = IMultilingualString;
|
|
191
185
|
/**
|
|
@@ -285,7 +279,7 @@ export interface IAttributes extends Pick<IAnyEventAttributes, 'maximumPhysicalA
|
|
|
285
279
|
export type IEvent = IAttributes & {
|
|
286
280
|
id: string;
|
|
287
281
|
};
|
|
288
|
-
export type IOffers4create = Pick<IOffer, 'unacceptedPaymentMethod'
|
|
282
|
+
export type IOffers4create = Pick<IOffer, 'unacceptedPaymentMethod'> & {
|
|
289
283
|
/**
|
|
290
284
|
* 最大予約数を指定
|
|
291
285
|
*/
|
|
@@ -300,24 +294,18 @@ export type IOffers4create = Pick<IOffer, 'unacceptedPaymentMethod' | 'identifie
|
|
|
300
294
|
seller: ISeller4create;
|
|
301
295
|
};
|
|
302
296
|
export type ICreateParams = Pick<IAttributes, 'doorTime' | 'startDate' | 'endDate' | 'eventStatus' | 'additionalProperty' | 'identifier' | 'maximumPhysicalAttendeeCapacity'> & {
|
|
303
|
-
location?: never;
|
|
304
|
-
superEvent?: never;
|
|
305
297
|
offers: IOffers4create;
|
|
306
298
|
};
|
|
307
|
-
export type IOffer4update = Pick<IOffers4create, 'eligibleQuantity' | '
|
|
299
|
+
export type IOffer4update = Pick<IOffers4create, 'eligibleQuantity' | 'unacceptedPaymentMethod'> & {
|
|
308
300
|
/**
|
|
309
301
|
* 興行IDを指定
|
|
310
302
|
*/
|
|
311
|
-
itemOffered: Pick<IItemOffered, 'id'> & {
|
|
312
|
-
serviceOutput?: never;
|
|
313
|
-
};
|
|
314
|
-
seller?: never;
|
|
303
|
+
itemOffered: Pick<IItemOffered, 'id'> & {};
|
|
315
304
|
};
|
|
316
305
|
/**
|
|
317
306
|
* 単一イベント編集パラメータ
|
|
318
307
|
*/
|
|
319
308
|
export type IUpdateByIdParams = Pick<ICreateParams, 'additionalProperty' | 'doorTime' | 'endDate' | 'eventStatus' | 'startDate' | 'maximumPhysicalAttendeeCapacity'> & {
|
|
320
|
-
location?: never;
|
|
321
309
|
offers: IOffer4update;
|
|
322
310
|
};
|
|
323
311
|
/**
|
|
@@ -334,15 +322,12 @@ export type IUpdateByIdentifierParams = Pick<IUpdateByIdParams, 'additionalPrope
|
|
|
334
322
|
*/
|
|
335
323
|
seller: Pick<ISeller4create, 'makesOffer'>;
|
|
336
324
|
};
|
|
337
|
-
location?: never;
|
|
338
|
-
superEvent?: never;
|
|
339
325
|
};
|
|
340
326
|
export interface IOfferSearchConditions {
|
|
341
327
|
itemOffered?: {
|
|
342
328
|
id?: {
|
|
343
329
|
$in?: string[];
|
|
344
330
|
};
|
|
345
|
-
serviceType?: never;
|
|
346
331
|
serviceOutput?: {
|
|
347
332
|
reservedTicket?: {
|
|
348
333
|
ticketedSeat?: {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { IAvailableAtOrFrom
|
|
1
|
+
import { IAvailableAtOrFrom } from '../offer';
|
|
2
2
|
import { OfferType } from '../offerType';
|
|
3
3
|
type IOfferAvailableAtOrFrom = Pick<IAvailableAtOrFrom, 'id'>;
|
|
4
4
|
/**
|
|
5
5
|
* イベントに対する単一オファー
|
|
6
6
|
* 利用可能アプリケーションのみ定義
|
|
7
|
+
* 基本的にこれ以上拡張はしない(2026-10-11)
|
|
7
8
|
*/
|
|
8
|
-
interface ISingleEventOffer
|
|
9
|
+
interface ISingleEventOffer {
|
|
9
10
|
typeOf: OfferType.Offer;
|
|
10
11
|
/**
|
|
11
12
|
* いつまで表示可能か
|
|
@@ -24,13 +25,13 @@ interface ISingleEventOffer extends Pick<IOffer, 'typeOf' | 'availabilityEnds' |
|
|
|
24
25
|
*/
|
|
25
26
|
validThrough: Date;
|
|
26
27
|
availableAtOrFrom: IOfferAvailableAtOrFrom;
|
|
27
|
-
identifier?: never;
|
|
28
|
-
validForMemberTier?: never;
|
|
29
|
-
offeredBy?: never;
|
|
30
28
|
}
|
|
31
29
|
/**
|
|
32
30
|
* アプリケーションごとのイベントに対するオファー
|
|
33
31
|
* 基本的に有効期間を定義
|
|
34
32
|
*/
|
|
35
33
|
type ISellerMakesOffer = ISingleEventOffer;
|
|
36
|
-
export
|
|
34
|
+
export type ISellerMakesOffer4create = Pick<ISellerMakesOffer, 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough' | 'typeOf'> & {
|
|
35
|
+
availableAtOrFrom: Pick<IOfferAvailableAtOrFrom, 'id'>;
|
|
36
|
+
};
|
|
37
|
+
export { ISellerMakesOffer };
|