@chevre/factory 6.0.0-alpha.9 → 6.1.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.
- package/lib/assetTransaction/reserve.d.ts +4 -1
- package/lib/index.d.ts +8 -16
- package/lib/index.js +3 -1
- package/lib/notification/reservation.d.ts +3 -1
- package/lib/order.d.ts +99 -7
- package/lib/reservation/event.d.ts +207 -50
- package/lib/reservation/reservationPackage.d.ts +0 -5
- package/lib/reservation.d.ts +6 -191
- package/package.json +1 -1
|
@@ -298,7 +298,10 @@ export interface IObjectWithoutDetail {
|
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
300
|
export type IReservationFor = IEventReservationReservationFor;
|
|
301
|
-
export type ISubReservationReservedTicket = IReservedTicket & {
|
|
301
|
+
export type ISubReservationReservedTicket = Omit<IReservedTicket, 'ticketType'> & {
|
|
302
|
+
/**
|
|
303
|
+
* 予約側ではticketType廃止予定であり、予約取引には残す
|
|
304
|
+
*/
|
|
302
305
|
ticketType: ITicketType;
|
|
303
306
|
};
|
|
304
307
|
export type IEventReservationAsSubReservation = Pick<IEventReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'numSeats' | 'priceCurrency' | 'programMembershipUsed' | 'subReservation' | 'typeOf'> & {
|
package/lib/index.d.ts
CHANGED
|
@@ -474,25 +474,17 @@ export declare namespace report {
|
|
|
474
474
|
}
|
|
475
475
|
export declare namespace reservation {
|
|
476
476
|
export import eventReservation = EventReservationFactory;
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
type IProgramMembershipUsed<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.IProgramMembershipUsed : ReservationFactory.IProgramMembershipUsed;
|
|
477
|
+
export import IProgramMembershipUsed = ReservationFactory.IProgramMembershipUsed;
|
|
478
|
+
export import IBroker = ReservationFactory.IBroker;
|
|
479
|
+
export import IIssuedThrough = ReservationFactory.IIssuedThrough;
|
|
481
480
|
export import IProvider = ReservationFactory.IProvider;
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
type ISeat<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ISeat : ReservationFactory.ISeat;
|
|
487
|
-
type ISubReservation<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.ISubReservation : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.ISubReservation : any;
|
|
488
|
-
type IUnderName<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.IUnderName : ReservationFactory.IUnderName;
|
|
489
|
-
type ITicketIssuedBy = ReservationFactory.ITicketIssuedBy;
|
|
490
|
-
type TicketType = ReservationFactory.TicketType;
|
|
481
|
+
export import ISeat = ReservationFactory.ISeat;
|
|
482
|
+
export import IUnderName = ReservationFactory.IUnderName;
|
|
483
|
+
export import ITicketIssuedBy = ReservationFactory.ITicketIssuedBy;
|
|
484
|
+
export import TicketType = ReservationFactory.TicketType;
|
|
491
485
|
export import IServiceTypeOfIssuedThrough = ReservationFactory.IServiceTypeOfIssuedThrough;
|
|
492
|
-
export import IServiceLocationContainedInPlace = ReservationFactory.IServiceLocationContainedInPlace;
|
|
493
|
-
export import IServiceLocation = ReservationFactory.IServiceLocation;
|
|
494
|
-
export import IServiceChannel = ReservationFactory.IServiceChannel;
|
|
495
486
|
}
|
|
487
|
+
export import reservationPackage = ReservationPackageFactory;
|
|
496
488
|
export import reservationStatusType = ReservationStatusType;
|
|
497
489
|
export import reservationType = ReservationType;
|
|
498
490
|
export { RESERVED_CODE_VALUES };
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.offer = exports.notification = exports.movieTicketType = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.identityProvider = exports.iam = exports.eventType = exports.eventStatusType = exports.entryPoint = exports.encodingFormat = exports.eventSeries = exports.eventOffer = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.CertificationStatusEnumeration = exports.categoryCode = exports.authorization = exports.aggregateOffer = exports.aggregation = exports.advanceBookingRequirement = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.acceptedPaymentMethodOffer = exports.errorCode = exports.errors = exports.project = exports.cognito = exports.waiter = void 0;
|
|
4
|
-
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.role = exports.RESERVED_CODE_VALUES = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.productOffer = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = void 0;
|
|
4
|
+
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.role = exports.RESERVED_CODE_VALUES = exports.reservationType = exports.reservationStatusType = exports.reservationPackage = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.productOffer = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* factory
|
|
7
7
|
*/
|
|
@@ -122,6 +122,7 @@ var QuantitativeValueFactory = require("./quantitativeValue");
|
|
|
122
122
|
var RecipeFactory = require("./recipe");
|
|
123
123
|
var AccountingReportFactory = require("./report/accountingReport");
|
|
124
124
|
var EventReservationFactory = require("./reservation/event");
|
|
125
|
+
var ReservationPackageFactory = require("./reservation/reservationPackage");
|
|
125
126
|
var reservationStatusType_1 = require("./reservationStatusType");
|
|
126
127
|
var reservationType_1 = require("./reservationType");
|
|
127
128
|
var reservedCodeValues_1 = require("./reservedCodeValues");
|
|
@@ -472,6 +473,7 @@ var reservation;
|
|
|
472
473
|
(function (reservation) {
|
|
473
474
|
reservation.eventReservation = EventReservationFactory;
|
|
474
475
|
})(reservation || (exports.reservation = reservation = {}));
|
|
476
|
+
exports.reservationPackage = ReservationPackageFactory;
|
|
475
477
|
exports.reservationStatusType = reservationStatusType_1.ReservationStatusType;
|
|
476
478
|
exports.reservationType = reservationType_1.ReservationType;
|
|
477
479
|
var role;
|
|
@@ -3,10 +3,12 @@ import { IProvider, ITicket, IUnderName } from '../reservation';
|
|
|
3
3
|
import { IIssuedThrough, IReservation as IEventReservation, IReservationFor, IPrice } from '../reservation/event';
|
|
4
4
|
import { ReservationStatusType } from '../reservationStatusType';
|
|
5
5
|
import { ReservationType } from '../reservationType';
|
|
6
|
+
import { ISubReservationReservedTicket } from '../assetTransaction/reserve';
|
|
6
7
|
type IProject = IEventReservation['project'];
|
|
7
8
|
export type IMaskedUnderName = Pick<IUnderName, 'id' | 'typeOf'>;
|
|
8
|
-
export type ISubReservation4inform = Pick<IEventReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'modifiedTime' | 'programMembershipUsed' | '
|
|
9
|
+
export type ISubReservation4inform = Pick<IEventReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'modifiedTime' | 'programMembershipUsed' | 'subReservation' | 'typeOf'> & {
|
|
9
10
|
price?: IPrice;
|
|
11
|
+
reservedTicket: ISubReservationReservedTicket;
|
|
10
12
|
};
|
|
11
13
|
/**
|
|
12
14
|
* 確定予約通知
|
package/lib/order.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type * as COA from '@motionpicture/coa-service';
|
|
1
2
|
import { IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from './action';
|
|
2
3
|
import { ICreativeWork as IWebApplication } from './creativeWork/softwareApplication/webApplication';
|
|
3
4
|
import { ICustomer as ICustomerOrganization } from './customer';
|
|
5
|
+
import { ICOAInfo, ISuperEvent as IEventSeries } from './event/screeningEvent';
|
|
4
6
|
import { EventType } from './eventType';
|
|
5
7
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
6
8
|
import { IMultilingualString } from './multilingualString';
|
|
@@ -16,7 +18,6 @@ import { PriceCurrency } from './priceCurrency';
|
|
|
16
18
|
import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
|
|
17
19
|
import { IMembershipProduct, IPaymentCardProduct, ProductType } from './product';
|
|
18
20
|
import { IPropertyValue } from './propertyValue';
|
|
19
|
-
import { IProgramMembershipUsedSearchConditions } from './reservation';
|
|
20
21
|
import * as EventReservationFactory from './reservation/event';
|
|
21
22
|
import { ReservationType } from './reservationType';
|
|
22
23
|
import { ISeller as IBaseSeller } from './seller';
|
|
@@ -84,21 +85,112 @@ export interface IReferencedInvoice {
|
|
|
84
85
|
referencesOrder?: never;
|
|
85
86
|
}
|
|
86
87
|
export type IWorkPerformed = Pick<EventReservationFactory.IOptimizedWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'name' | 'duration'>;
|
|
87
|
-
export type ISuperEvent = Pick<EventReservationFactory.IOptimizedSuperEvent, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline'
|
|
88
|
+
export type ISuperEvent = Pick<EventReservationFactory.IOptimizedSuperEvent, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline'> & {
|
|
88
89
|
workPerformed: IWorkPerformed;
|
|
90
|
+
identifier?: never;
|
|
91
|
+
alternativeHeadline?: never;
|
|
92
|
+
duration?: never;
|
|
93
|
+
coaInfo?: never;
|
|
89
94
|
};
|
|
90
|
-
|
|
95
|
+
/**
|
|
96
|
+
* COAの場合の施設コンテンツ
|
|
97
|
+
*/
|
|
98
|
+
export type ICOASuperEvent = Pick<EventReservationFactory.IOptimizedSuperEvent, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline'> & Pick<IEventSeries, 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
|
|
99
|
+
workPerformed: IWorkPerformed;
|
|
100
|
+
};
|
|
101
|
+
export type IEventAsReservationFor = Omit<EventReservationFactory.IReservationFor, 'superEvent' | 'identifier' | 'coaInfo'> & {
|
|
91
102
|
superEvent: ISuperEvent;
|
|
103
|
+
/**
|
|
104
|
+
* COA予約でのみ使用されている
|
|
105
|
+
*/
|
|
106
|
+
identifier?: never;
|
|
107
|
+
/**
|
|
108
|
+
* その他COA情報
|
|
109
|
+
* 基本的にsskts対応
|
|
110
|
+
*/
|
|
111
|
+
coaInfo?: never;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* COAの場合のイベント
|
|
115
|
+
*/
|
|
116
|
+
export type ICOAEventAsReservationFor = Omit<EventReservationFactory.IReservationFor, 'superEvent' | 'identifier' | 'coaInfo'> & {
|
|
117
|
+
superEvent: ICOASuperEvent;
|
|
118
|
+
/**
|
|
119
|
+
* COA予約でのみ使用されている
|
|
120
|
+
*/
|
|
121
|
+
identifier?: string;
|
|
122
|
+
/**
|
|
123
|
+
* その他COA情報
|
|
124
|
+
* 基本的にsskts対応
|
|
125
|
+
*/
|
|
126
|
+
coaInfo?: ICOAInfo;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* COA券種情報
|
|
130
|
+
*/
|
|
131
|
+
export type ICOATicketInfoWithDetails = COA.factory.reserve.IUpdReserveTicket & {
|
|
132
|
+
/**
|
|
133
|
+
* チケット名
|
|
134
|
+
*/
|
|
135
|
+
ticketName: string;
|
|
136
|
+
/**
|
|
137
|
+
* チケット名(カナ)
|
|
138
|
+
*/
|
|
139
|
+
ticketNameKana: string;
|
|
140
|
+
/**
|
|
141
|
+
* チケット名(英)
|
|
142
|
+
*/
|
|
143
|
+
ticketNameEng: string;
|
|
144
|
+
/**
|
|
145
|
+
* ポイント割引の場合の消費ポイント
|
|
146
|
+
*/
|
|
147
|
+
usePoint: number;
|
|
92
148
|
};
|
|
93
149
|
export type IReservedTicket = Pick<EventReservationFactory.IReservedTicket, 'typeOf' | 'ticketedSeat' | 'identifier' | // 追加(2024-04-15~)
|
|
94
|
-
'ticketNumber'
|
|
150
|
+
'ticketNumber'> & {
|
|
95
151
|
ticketType: EventReservationFactory.ITicketType;
|
|
152
|
+
dateIssued?: never;
|
|
153
|
+
ticketToken?: never;
|
|
154
|
+
coaTicketInfo?: never;
|
|
155
|
+
coaReserveAmount?: never;
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* COAの場合の予約チケット
|
|
159
|
+
*/
|
|
160
|
+
export type ICOAReservedTicket = Pick<EventReservationFactory.IReservedTicket, 'typeOf' | 'ticketedSeat' | 'identifier' | // 追加(2024-04-15~)
|
|
161
|
+
'ticketNumber' | 'dateIssued' | 'ticketToken'> & {
|
|
162
|
+
ticketType: EventReservationFactory.ITicketType;
|
|
163
|
+
/**
|
|
164
|
+
* COA券種情報
|
|
165
|
+
*/
|
|
166
|
+
coaTicketInfo?: ICOATicketInfoWithDetails;
|
|
167
|
+
coaReserveAmount?: number;
|
|
96
168
|
};
|
|
97
|
-
export
|
|
169
|
+
export interface ICOAIssuedThrough extends Pick<EventReservationFactory.IIssuedThrough, 'typeOf' | 'availableChannel'> {
|
|
170
|
+
typeOf: ProductType.EventService;
|
|
171
|
+
serviceType?: never;
|
|
172
|
+
/**
|
|
173
|
+
* 興行管理をしていないためid未定義
|
|
174
|
+
*/
|
|
175
|
+
id?: never;
|
|
176
|
+
}
|
|
177
|
+
export type IEventReservation = Pick<EventReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'programMembershipUsed' | 'reservationNumber' | 'typeOf'> & {
|
|
178
|
+
issuedThrough: EventReservationFactory.IIssuedThrough;
|
|
98
179
|
reservationFor: IEventAsReservationFor;
|
|
99
180
|
reservedTicket: IReservedTicket;
|
|
100
181
|
};
|
|
101
|
-
|
|
182
|
+
/**
|
|
183
|
+
* COAの場合の予約
|
|
184
|
+
*/
|
|
185
|
+
export type ICOAEventReservation = Pick<EventReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'programMembershipUsed' | 'reservationNumber' | 'typeOf'> & {
|
|
186
|
+
issuedThrough: ICOAIssuedThrough;
|
|
187
|
+
reservationFor: ICOAEventAsReservationFor;
|
|
188
|
+
reservedTicket: ICOAReservedTicket;
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* オファー提供アイテムとしての予約
|
|
192
|
+
*/
|
|
193
|
+
export type IReservation = IEventReservation | ICOAEventReservation;
|
|
102
194
|
export type IPermit = Pick<IBasePermit, 'amount' | 'identifier' | 'name' | 'typeOf' | 'validFor'> & {
|
|
103
195
|
identifier: string;
|
|
104
196
|
issuedThrough?: IIssuedThroughAsProduct;
|
|
@@ -456,7 +548,7 @@ export interface IAcceptedOffersSearchConditions {
|
|
|
456
548
|
/**
|
|
457
549
|
* 使用メンバーシップ
|
|
458
550
|
*/
|
|
459
|
-
programMembershipUsed?: IProgramMembershipUsedSearchConditions;
|
|
551
|
+
programMembershipUsed?: EventReservationFactory.IProgramMembershipUsedSearchConditions;
|
|
460
552
|
reservedTicket?: {
|
|
461
553
|
/**
|
|
462
554
|
* 予約チケット識別子
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ICOAInfo, ILocation as IEventLocation, IName as IEventName, ISuperEvent } from '../event/screeningEvent';
|
|
1
|
+
import { ILocation as IEventLocation, IName as IEventName, ISuperEvent } from '../event/screeningEvent';
|
|
3
2
|
import { IWorkPerformed } from '../event/screeningEventSeries';
|
|
4
3
|
import { EventType } from '../eventType';
|
|
5
4
|
import { IMultilingualString } from '../multilingualString';
|
|
@@ -14,30 +13,52 @@ import { IPropertyValue } from '../propertyValue';
|
|
|
14
13
|
import * as ReservationFactory from '../reservation';
|
|
15
14
|
import { ReservationStatusType } from '../reservationStatusType';
|
|
16
15
|
import { ReservationType } from '../reservationType';
|
|
16
|
+
import { SortType } from '../sortType';
|
|
17
17
|
export type IOptimizedWorkPerformed = Pick<IWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'duration' | 'contentRating' | 'version'> & {
|
|
18
18
|
name?: string | IMultilingualString;
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
/**
|
|
21
|
+
* 予約対象施設コンテンツ
|
|
22
|
+
*/
|
|
23
|
+
export type IOptimizedSuperEvent = Pick<ISuperEvent, 'additionalProperty' | 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline'> & {
|
|
21
24
|
workPerformed: IOptimizedWorkPerformed;
|
|
22
|
-
};
|
|
23
|
-
export interface IReservationFor {
|
|
24
|
-
endDate: Date;
|
|
25
|
-
id: string;
|
|
26
25
|
/**
|
|
27
|
-
* COA
|
|
26
|
+
* COA予約でのみ使用
|
|
28
27
|
*/
|
|
29
|
-
identifier?:
|
|
28
|
+
identifier?: never;
|
|
30
29
|
/**
|
|
31
|
-
*
|
|
32
|
-
* 基本的にsskts対応
|
|
30
|
+
* COA予約でのみ使用
|
|
33
31
|
*/
|
|
34
|
-
|
|
32
|
+
alternativeHeadline?: never;
|
|
33
|
+
/**
|
|
34
|
+
* COA予約でのみ使用
|
|
35
|
+
*/
|
|
36
|
+
duration?: never;
|
|
37
|
+
/**
|
|
38
|
+
* COA予約でのみ使用
|
|
39
|
+
*/
|
|
40
|
+
coaInfo?: never;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* 予約対象イベント
|
|
44
|
+
*/
|
|
45
|
+
export interface IReservationFor {
|
|
46
|
+
endDate: Date;
|
|
47
|
+
id: string;
|
|
35
48
|
location: IEventLocation;
|
|
36
49
|
name: IEventName;
|
|
37
50
|
startDate: Date;
|
|
38
51
|
superEvent: IOptimizedSuperEvent;
|
|
39
52
|
typeOf: EventType.ScreeningEvent;
|
|
40
53
|
doorTime?: Date;
|
|
54
|
+
/**
|
|
55
|
+
* COA予約でのみ使用
|
|
56
|
+
*/
|
|
57
|
+
identifier?: never;
|
|
58
|
+
/**
|
|
59
|
+
* COA予約でのみ使用
|
|
60
|
+
*/
|
|
61
|
+
coaInfo?: never;
|
|
41
62
|
}
|
|
42
63
|
export type ICategoryChargePriceComponent = Pick<ICategoryCodeChargeSpecification, 'accounting' | 'appliesToCategoryCode' | 'name' | 'price' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
|
|
43
64
|
export type IMovieTicketTypeChargePriceComponent = Pick<IMovieTicketTypeChargeSpecification, 'accounting' | 'appliesToMovieTicket' | 'appliesToVideoFormat' | 'name' | 'price' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
|
|
@@ -60,14 +81,6 @@ export interface IIssuedThrough extends ReservationFactory.IIssuedThrough {
|
|
|
60
81
|
*/
|
|
61
82
|
id: string;
|
|
62
83
|
}
|
|
63
|
-
export interface IIssuedThrough4COA extends ReservationFactory.IIssuedThrough {
|
|
64
|
-
typeOf: ProductType.EventService;
|
|
65
|
-
serviceType?: never;
|
|
66
|
-
/**
|
|
67
|
-
* 興行管理をしていないためid未定義
|
|
68
|
-
*/
|
|
69
|
-
id?: never;
|
|
70
|
-
}
|
|
71
84
|
export interface ITicketType {
|
|
72
85
|
additionalProperty?: IPropertyValue<string>[];
|
|
73
86
|
category?: OfferFactory.ICategory;
|
|
@@ -79,37 +92,11 @@ export interface ITicketType {
|
|
|
79
92
|
typeOf: OfferType.Offer;
|
|
80
93
|
validRateLimit?: OfferFactory.IValidRateLimit;
|
|
81
94
|
}
|
|
82
|
-
/**
|
|
83
|
-
* COA券種情報
|
|
84
|
-
*/
|
|
85
|
-
export type ICOATicketInfoWithDetails = COA.factory.reserve.IUpdReserveTicket & {
|
|
86
|
-
/**
|
|
87
|
-
* チケット名
|
|
88
|
-
*/
|
|
89
|
-
ticketName: string;
|
|
90
|
-
/**
|
|
91
|
-
* チケット名(カナ)
|
|
92
|
-
*/
|
|
93
|
-
ticketNameKana: string;
|
|
94
|
-
/**
|
|
95
|
-
* チケット名(英)
|
|
96
|
-
*/
|
|
97
|
-
ticketNameEng: string;
|
|
98
|
-
/**
|
|
99
|
-
* ポイント割引の場合の消費ポイント
|
|
100
|
-
*/
|
|
101
|
-
usePoint: number;
|
|
102
|
-
};
|
|
103
95
|
export type IReservedTicket = ReservationFactory.ITicket & {
|
|
104
96
|
/**
|
|
105
|
-
*
|
|
106
|
-
*/
|
|
107
|
-
ticketType?: ITicketType;
|
|
108
|
-
/**
|
|
109
|
-
* COA券種情報
|
|
97
|
+
* 予約ドキュメント内のticketTypeは廃止済(2026-03-26~)
|
|
110
98
|
*/
|
|
111
|
-
|
|
112
|
-
coaReserveAmount?: number;
|
|
99
|
+
ticketType?: never;
|
|
113
100
|
};
|
|
114
101
|
/**
|
|
115
102
|
* イベント予約
|
|
@@ -117,7 +104,7 @@ export type IReservedTicket = ReservationFactory.ITicket & {
|
|
|
117
104
|
export interface IReservation extends ReservationFactory.IReservation<IPriceSpecification> {
|
|
118
105
|
bookingTime: Date;
|
|
119
106
|
id: string;
|
|
120
|
-
issuedThrough: IIssuedThrough
|
|
107
|
+
issuedThrough: IIssuedThrough;
|
|
121
108
|
reservationFor: IReservationFor;
|
|
122
109
|
reservationNumber: string;
|
|
123
110
|
reservationStatus: ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed;
|
|
@@ -152,10 +139,180 @@ export interface IReservationForSearchConditions {
|
|
|
152
139
|
endFrom?: Date;
|
|
153
140
|
endThrough?: Date;
|
|
154
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* チケットホルダー検索条件
|
|
144
|
+
*/
|
|
145
|
+
export interface IUnderNameSearchConditions {
|
|
146
|
+
id?: string;
|
|
147
|
+
name?: string | {
|
|
148
|
+
$options?: string;
|
|
149
|
+
$regex?: string;
|
|
150
|
+
};
|
|
151
|
+
email?: string | {
|
|
152
|
+
$options?: string;
|
|
153
|
+
$regex?: string;
|
|
154
|
+
};
|
|
155
|
+
telephone?: string;
|
|
156
|
+
givenName?: string | {
|
|
157
|
+
$options?: string;
|
|
158
|
+
$regex?: string;
|
|
159
|
+
};
|
|
160
|
+
familyName?: string | {
|
|
161
|
+
$options?: string;
|
|
162
|
+
$regex?: string;
|
|
163
|
+
};
|
|
164
|
+
identifier?: {
|
|
165
|
+
$all?: IPropertyValue<string>[];
|
|
166
|
+
$in?: IPropertyValue<string>[];
|
|
167
|
+
$nin?: IPropertyValue<string>[];
|
|
168
|
+
$elemMatch?: any;
|
|
169
|
+
};
|
|
170
|
+
identifiers?: IPropertyValue<string>[];
|
|
171
|
+
}
|
|
172
|
+
export type IBrokerSearchConditions = IUnderNameSearchConditions;
|
|
173
|
+
/**
|
|
174
|
+
* 予約チケット検索条件
|
|
175
|
+
*/
|
|
176
|
+
export interface IReservedTicketSearchConditions {
|
|
177
|
+
/**
|
|
178
|
+
* 座席
|
|
179
|
+
*/
|
|
180
|
+
ticketedSeat?: {
|
|
181
|
+
seatNumbers?: string[];
|
|
182
|
+
seatRows?: string[];
|
|
183
|
+
seatSections?: string[];
|
|
184
|
+
seatingType?: {
|
|
185
|
+
$in?: string[];
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* 単価オファー
|
|
190
|
+
* @deprecated 廃止予定
|
|
191
|
+
*/
|
|
192
|
+
ticketType?: {
|
|
193
|
+
ids?: string[];
|
|
194
|
+
category?: {
|
|
195
|
+
ids?: string[];
|
|
196
|
+
codeValue?: {
|
|
197
|
+
$in?: string[];
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
export interface IStringSearchConditions {
|
|
203
|
+
$eq?: string;
|
|
204
|
+
$ne?: string;
|
|
205
|
+
$in?: string[];
|
|
206
|
+
$nin?: string[];
|
|
207
|
+
$options?: string;
|
|
208
|
+
$regex?: string;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* ソート条件
|
|
212
|
+
*/
|
|
213
|
+
export interface ISortOrder {
|
|
214
|
+
bookingTime?: SortType;
|
|
215
|
+
}
|
|
216
|
+
export interface IProgramMembershipUsedSearchConditions {
|
|
217
|
+
identifier?: {
|
|
218
|
+
$eq?: string;
|
|
219
|
+
};
|
|
220
|
+
issuedThrough?: {
|
|
221
|
+
serviceType?: {
|
|
222
|
+
codeValue?: {
|
|
223
|
+
$eq?: string;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
export interface IPriceSearchConditions {
|
|
229
|
+
priceComponent?: {
|
|
230
|
+
appliesToMovieTicket?: {
|
|
231
|
+
identifier?: {
|
|
232
|
+
$eq?: string;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
}
|
|
155
237
|
/**
|
|
156
238
|
* 検索条件
|
|
157
239
|
*/
|
|
158
|
-
export interface ISearchConditions
|
|
240
|
+
export interface ISearchConditions {
|
|
241
|
+
typeOf: ReservationType.EventReservation;
|
|
242
|
+
limit?: number;
|
|
243
|
+
page?: number;
|
|
244
|
+
sort?: ISortOrder;
|
|
245
|
+
project?: {
|
|
246
|
+
id?: {
|
|
247
|
+
$eq?: string;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
provider?: {
|
|
251
|
+
id?: {
|
|
252
|
+
$eq?: string;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
/**
|
|
256
|
+
* IDリスト
|
|
257
|
+
*/
|
|
258
|
+
ids?: string[];
|
|
259
|
+
/**
|
|
260
|
+
* ID
|
|
261
|
+
*/
|
|
262
|
+
id?: IStringSearchConditions;
|
|
263
|
+
/**
|
|
264
|
+
* 予約番号リスト
|
|
265
|
+
*/
|
|
266
|
+
reservationNumbers?: string[];
|
|
267
|
+
/**
|
|
268
|
+
* 予約番号
|
|
269
|
+
*/
|
|
270
|
+
reservationNumber?: string | IStringSearchConditions;
|
|
271
|
+
/**
|
|
272
|
+
* 追加チケットテキスト
|
|
273
|
+
*/
|
|
274
|
+
additionalTicketText?: string | IStringSearchConditions;
|
|
275
|
+
broker?: IBrokerSearchConditions;
|
|
276
|
+
reservationStatus?: {
|
|
277
|
+
$eq?: ReservationFactory.IAvailableReservationStatusType;
|
|
278
|
+
$ne?: ReservationFactory.IAvailableReservationStatusType;
|
|
279
|
+
$in?: ReservationFactory.IAvailableReservationStatusType[];
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* 予約ステータスリスト
|
|
283
|
+
*/
|
|
284
|
+
reservationStatuses?: ReservationFactory.IAvailableReservationStatusType[];
|
|
285
|
+
bookingFrom?: Date;
|
|
286
|
+
bookingThrough?: Date;
|
|
287
|
+
modifiedFrom?: Date;
|
|
288
|
+
modifiedThrough?: Date;
|
|
289
|
+
/**
|
|
290
|
+
* 予約チケット
|
|
291
|
+
*/
|
|
292
|
+
reservedTicket?: IReservedTicketSearchConditions;
|
|
293
|
+
/**
|
|
294
|
+
* チケットホルダー
|
|
295
|
+
*/
|
|
296
|
+
underName?: IUnderNameSearchConditions;
|
|
297
|
+
/**
|
|
298
|
+
* チェックイン(発券)済かどうか
|
|
299
|
+
*/
|
|
300
|
+
checkedIn?: boolean;
|
|
301
|
+
/**
|
|
302
|
+
* 出席(入場)済かどうか
|
|
303
|
+
*/
|
|
304
|
+
attended?: boolean;
|
|
305
|
+
additionalProperty?: {
|
|
306
|
+
$all?: IPropertyValue<string>[];
|
|
307
|
+
$in?: IPropertyValue<string>[];
|
|
308
|
+
$nin?: IPropertyValue<string>[];
|
|
309
|
+
$elemMatch?: any;
|
|
310
|
+
};
|
|
311
|
+
/**
|
|
312
|
+
* 使用メンバーシップ
|
|
313
|
+
*/
|
|
314
|
+
programMembershipUsed?: IProgramMembershipUsedSearchConditions;
|
|
315
|
+
price?: IPriceSearchConditions;
|
|
159
316
|
/**
|
|
160
317
|
* 予約対象
|
|
161
318
|
*/
|
|
@@ -14,8 +14,3 @@ export interface IReservation extends ReservationFactory.IReservation<IPriceSpec
|
|
|
14
14
|
subReservation?: ISubReservation[];
|
|
15
15
|
typeOf: ReservationType.ReservationPackage;
|
|
16
16
|
}
|
|
17
|
-
/**
|
|
18
|
-
* 検索条件
|
|
19
|
-
*/
|
|
20
|
-
export interface ISearchConditions extends ReservationFactory.ISearchConditions<ReservationType.ReservationPackage> {
|
|
21
|
-
}
|
package/lib/reservation.d.ts
CHANGED
|
@@ -2,8 +2,6 @@ import { CreativeWorkType } from './creativeWorkType';
|
|
|
2
2
|
import { IMultilingualString } from './multilingualString';
|
|
3
3
|
import { OrganizationType } from './organizationType';
|
|
4
4
|
import { PersonType } from './personType';
|
|
5
|
-
import * as MovieTheaterFactory from './place/movieTheater';
|
|
6
|
-
import * as ScreeningRoomFactory from './place/screeningRoom';
|
|
7
5
|
import * as SeatFactory from './place/seat';
|
|
8
6
|
import { PlaceType } from './placeType';
|
|
9
7
|
import { PriceCurrency } from './priceCurrency';
|
|
@@ -16,7 +14,6 @@ import { IPropertyValue } from './propertyValue';
|
|
|
16
14
|
import { ReservationStatusType } from './reservationStatusType';
|
|
17
15
|
import { ReservationType } from './reservationType';
|
|
18
16
|
import { PaymentServiceType } from './service/paymentService';
|
|
19
|
-
import { SortType } from './sortType';
|
|
20
17
|
export type TicketType = 'Ticket';
|
|
21
18
|
export type IPriceSpecification = IGenericPriceSpecification<PriceSpecificationType>;
|
|
22
19
|
export type ISeatingType = SeatFactory.ISeatingType;
|
|
@@ -137,26 +134,18 @@ export type IProgramMembershipIssuedThroughMembershipService = Pick<IProgramMemb
|
|
|
137
134
|
};
|
|
138
135
|
export type IProgramMembershipUsed = IProgramMembershipIssuedThroughFaceToFace | IProgramMembershipIssuedThroughCreditCard | IProgramMembershipIssuedThroughMembershipService;
|
|
139
136
|
export type IServiceTypeOfIssuedThrough = Pick<IServiceType, 'codeValue' | 'inCodeSet' | 'typeOf'>;
|
|
140
|
-
export type IServiceLocationContainedInPlace = Pick<MovieTheaterFactory.IPlace, 'typeOf' | 'id' | 'branchCode'> & {
|
|
141
|
-
name?: IMultilingualString;
|
|
142
|
-
};
|
|
143
|
-
export type IServiceLocation = Pick<ScreeningRoomFactory.IPlace, 'typeOf' | 'branchCode'> & {
|
|
144
|
-
containedInPlace: IServiceLocationContainedInPlace;
|
|
145
|
-
name?: IMultilingualString;
|
|
146
|
-
};
|
|
147
|
-
export interface IServiceChannel {
|
|
148
|
-
typeOf: 'ServiceChannel';
|
|
149
|
-
serviceLocation: IServiceLocation;
|
|
150
|
-
}
|
|
151
137
|
export interface IIssuedThrough {
|
|
152
|
-
typeOf: ProductType.
|
|
138
|
+
typeOf: ProductType.EventService;
|
|
153
139
|
serviceType?: IServiceTypeOfIssuedThrough;
|
|
154
140
|
/**
|
|
155
|
-
*
|
|
141
|
+
* 興行ID
|
|
156
142
|
* プロダクト管理をしている場合のみ
|
|
157
143
|
*/
|
|
158
144
|
id?: string;
|
|
159
|
-
|
|
145
|
+
/**
|
|
146
|
+
* discontinue(2026-03-27~)
|
|
147
|
+
*/
|
|
148
|
+
availableChannel?: never;
|
|
160
149
|
}
|
|
161
150
|
export type IAvailableReservationStatusType = ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed | ReservationStatusType.ReservationPending;
|
|
162
151
|
export interface IProvider {
|
|
@@ -274,177 +263,3 @@ export interface IReservation<T extends Omit<IPriceSpecification, 'project'>> {
|
|
|
274
263
|
attended?: boolean;
|
|
275
264
|
additionalProperty?: IPropertyValue<string>[];
|
|
276
265
|
}
|
|
277
|
-
/**
|
|
278
|
-
* チケットホルダー検索条件
|
|
279
|
-
*/
|
|
280
|
-
export interface IUnderNameSearchConditions {
|
|
281
|
-
id?: string;
|
|
282
|
-
name?: string | {
|
|
283
|
-
$options?: string;
|
|
284
|
-
$regex?: string;
|
|
285
|
-
};
|
|
286
|
-
email?: string | {
|
|
287
|
-
$options?: string;
|
|
288
|
-
$regex?: string;
|
|
289
|
-
};
|
|
290
|
-
telephone?: string;
|
|
291
|
-
givenName?: string | {
|
|
292
|
-
$options?: string;
|
|
293
|
-
$regex?: string;
|
|
294
|
-
};
|
|
295
|
-
familyName?: string | {
|
|
296
|
-
$options?: string;
|
|
297
|
-
$regex?: string;
|
|
298
|
-
};
|
|
299
|
-
identifier?: {
|
|
300
|
-
$all?: IPropertyValue<string>[];
|
|
301
|
-
$in?: IPropertyValue<string>[];
|
|
302
|
-
$nin?: IPropertyValue<string>[];
|
|
303
|
-
$elemMatch?: any;
|
|
304
|
-
};
|
|
305
|
-
identifiers?: IPropertyValue<string>[];
|
|
306
|
-
}
|
|
307
|
-
export type IBrokerSearchConditions = IUnderNameSearchConditions;
|
|
308
|
-
/**
|
|
309
|
-
* 予約チケット検索条件
|
|
310
|
-
*/
|
|
311
|
-
export interface IReservedTicketSearchConditions {
|
|
312
|
-
/**
|
|
313
|
-
* 座席
|
|
314
|
-
*/
|
|
315
|
-
ticketedSeat?: {
|
|
316
|
-
seatNumbers?: string[];
|
|
317
|
-
seatRows?: string[];
|
|
318
|
-
seatSections?: string[];
|
|
319
|
-
seatingType?: {
|
|
320
|
-
$in?: string[];
|
|
321
|
-
};
|
|
322
|
-
};
|
|
323
|
-
/**
|
|
324
|
-
* 券種
|
|
325
|
-
*/
|
|
326
|
-
ticketType?: {
|
|
327
|
-
ids?: string[];
|
|
328
|
-
category?: {
|
|
329
|
-
ids?: string[];
|
|
330
|
-
codeValue?: {
|
|
331
|
-
$in?: string[];
|
|
332
|
-
};
|
|
333
|
-
};
|
|
334
|
-
};
|
|
335
|
-
}
|
|
336
|
-
export interface IStringSearchConditions {
|
|
337
|
-
$eq?: string;
|
|
338
|
-
$ne?: string;
|
|
339
|
-
$in?: string[];
|
|
340
|
-
$nin?: string[];
|
|
341
|
-
$options?: string;
|
|
342
|
-
$regex?: string;
|
|
343
|
-
}
|
|
344
|
-
/**
|
|
345
|
-
* ソート条件
|
|
346
|
-
*/
|
|
347
|
-
export interface ISortOrder {
|
|
348
|
-
bookingTime?: SortType;
|
|
349
|
-
}
|
|
350
|
-
export interface IProgramMembershipUsedSearchConditions {
|
|
351
|
-
identifier?: {
|
|
352
|
-
$eq?: string;
|
|
353
|
-
};
|
|
354
|
-
issuedThrough?: {
|
|
355
|
-
serviceType?: {
|
|
356
|
-
codeValue?: {
|
|
357
|
-
$eq?: string;
|
|
358
|
-
};
|
|
359
|
-
};
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
export interface IPriceSearchConditions {
|
|
363
|
-
priceComponent?: {
|
|
364
|
-
appliesToMovieTicket?: {
|
|
365
|
-
identifier?: {
|
|
366
|
-
$eq?: string;
|
|
367
|
-
};
|
|
368
|
-
};
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
/**
|
|
372
|
-
* 検索条件
|
|
373
|
-
*/
|
|
374
|
-
export interface ISearchConditions<T extends ReservationType> {
|
|
375
|
-
typeOf: T;
|
|
376
|
-
limit?: number;
|
|
377
|
-
page?: number;
|
|
378
|
-
sort?: ISortOrder;
|
|
379
|
-
project?: {
|
|
380
|
-
id?: {
|
|
381
|
-
$eq?: string;
|
|
382
|
-
};
|
|
383
|
-
};
|
|
384
|
-
provider?: {
|
|
385
|
-
id?: {
|
|
386
|
-
$eq?: string;
|
|
387
|
-
};
|
|
388
|
-
};
|
|
389
|
-
/**
|
|
390
|
-
* IDリスト
|
|
391
|
-
*/
|
|
392
|
-
ids?: string[];
|
|
393
|
-
/**
|
|
394
|
-
* ID
|
|
395
|
-
*/
|
|
396
|
-
id?: IStringSearchConditions;
|
|
397
|
-
/**
|
|
398
|
-
* 予約番号リスト
|
|
399
|
-
*/
|
|
400
|
-
reservationNumbers?: string[];
|
|
401
|
-
/**
|
|
402
|
-
* 予約番号
|
|
403
|
-
*/
|
|
404
|
-
reservationNumber?: string | IStringSearchConditions;
|
|
405
|
-
/**
|
|
406
|
-
* 追加チケットテキスト
|
|
407
|
-
*/
|
|
408
|
-
additionalTicketText?: string | IStringSearchConditions;
|
|
409
|
-
broker?: IBrokerSearchConditions;
|
|
410
|
-
reservationStatus?: {
|
|
411
|
-
$eq?: IAvailableReservationStatusType;
|
|
412
|
-
$ne?: IAvailableReservationStatusType;
|
|
413
|
-
$in?: IAvailableReservationStatusType[];
|
|
414
|
-
};
|
|
415
|
-
/**
|
|
416
|
-
* 予約ステータスリスト
|
|
417
|
-
*/
|
|
418
|
-
reservationStatuses?: IAvailableReservationStatusType[];
|
|
419
|
-
bookingFrom?: Date;
|
|
420
|
-
bookingThrough?: Date;
|
|
421
|
-
modifiedFrom?: Date;
|
|
422
|
-
modifiedThrough?: Date;
|
|
423
|
-
/**
|
|
424
|
-
* 予約チケット
|
|
425
|
-
*/
|
|
426
|
-
reservedTicket?: IReservedTicketSearchConditions;
|
|
427
|
-
/**
|
|
428
|
-
* チケットホルダー
|
|
429
|
-
*/
|
|
430
|
-
underName?: IUnderNameSearchConditions;
|
|
431
|
-
/**
|
|
432
|
-
* チェックイン(発券)済かどうか
|
|
433
|
-
*/
|
|
434
|
-
checkedIn?: boolean;
|
|
435
|
-
/**
|
|
436
|
-
* 出席(入場)済かどうか
|
|
437
|
-
*/
|
|
438
|
-
attended?: boolean;
|
|
439
|
-
additionalProperty?: {
|
|
440
|
-
$all?: IPropertyValue<string>[];
|
|
441
|
-
$in?: IPropertyValue<string>[];
|
|
442
|
-
$nin?: IPropertyValue<string>[];
|
|
443
|
-
$elemMatch?: any;
|
|
444
|
-
};
|
|
445
|
-
/**
|
|
446
|
-
* 使用メンバーシップ
|
|
447
|
-
*/
|
|
448
|
-
programMembershipUsed?: IProgramMembershipUsedSearchConditions;
|
|
449
|
-
price?: IPriceSearchConditions;
|
|
450
|
-
}
|