@chevre/factory 6.0.0-alpha.6 → 6.0.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.
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { IParticipantAsPerson, IParticipantAsWebApplication } from '../../../action';
|
|
2
2
|
import { IOrder } from '../../../order';
|
|
3
3
|
import { PlaceType } from '../../../placeType';
|
|
4
|
-
import { ITicket,
|
|
4
|
+
import { ITicket, TicketType } from '../../../reservation';
|
|
5
5
|
import { IIssuedThrough, IReservation, IReservationFor } from '../../../reservation/event';
|
|
6
6
|
import * as UseActionFactory from '../use';
|
|
7
7
|
export type IAgent = IParticipantAsPerson | IParticipantAsWebApplication;
|
|
8
|
+
/**
|
|
9
|
+
* 予約使用アクションオブジェクト
|
|
10
|
+
* optimize(2024-05-06~)
|
|
11
|
+
*/
|
|
8
12
|
export interface IReservationAsObject extends Pick<IReservation, 'id' | 'reservationNumber' | 'typeOf'> {
|
|
9
13
|
issuedThrough: Pick<IIssuedThrough, 'id' | 'typeOf'>;
|
|
10
14
|
reservationFor: Pick<IReservationFor, 'id' | 'typeOf'>;
|
|
11
15
|
reservedTicket: Pick<ITicket, 'identifier' | 'ticketedSeat' | 'typeOf'> & {
|
|
12
|
-
ticketType
|
|
16
|
+
ticketType?: never;
|
|
13
17
|
};
|
|
14
18
|
}
|
|
15
19
|
export type IObject = IReservationAsObject[];
|
|
@@ -9,7 +9,7 @@ import { PermitType } from '../permit';
|
|
|
9
9
|
import { ProductType } from '../product';
|
|
10
10
|
import { IPropertyValue } from '../propertyValue';
|
|
11
11
|
import * as ReservationFactory from '../reservation';
|
|
12
|
-
import { IIssuedThrough as IEventReservationIssuedThrough, IPrice as IReservationPrice, IReservation as IEventReservation, IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
|
|
12
|
+
import { IIssuedThrough as IEventReservationIssuedThrough, IPrice as IReservationPrice, IReservation as IEventReservation, IReservationFor as IEventReservationReservationFor, IReservedTicket, ISubReservation as ISubReservation4eventReservation, ITicketType } from '../reservation/event';
|
|
13
13
|
import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
|
|
14
14
|
import { ReservationStatusType } from '../reservationStatusType';
|
|
15
15
|
import { ReservationType } from '../reservationType';
|
|
@@ -298,8 +298,12 @@ export interface IObjectWithoutDetail {
|
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
300
|
export type IReservationFor = IEventReservationReservationFor;
|
|
301
|
-
export type
|
|
301
|
+
export type ISubReservationReservedTicket = IReservedTicket & {
|
|
302
|
+
ticketType: ITicketType;
|
|
303
|
+
};
|
|
304
|
+
export type IEventReservationAsSubReservation = Pick<IEventReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'numSeats' | 'priceCurrency' | 'programMembershipUsed' | 'subReservation' | 'typeOf'> & {
|
|
302
305
|
price?: IReservationPrice;
|
|
306
|
+
reservedTicket: ISubReservationReservedTicket;
|
|
303
307
|
};
|
|
304
308
|
export type IObjectSubReservation = IEventReservationAsSubReservation;
|
|
305
309
|
export type IIssuedThrough = IEventReservationIssuedThrough;
|
package/lib/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* factory
|
|
3
3
|
*/
|
|
4
4
|
export * as waiter from '@waiter/factory';
|
|
5
|
-
export * as cognito from '
|
|
5
|
+
export * as cognito from './cognito';
|
|
6
6
|
import * as AccountFactory from './account';
|
|
7
7
|
import * as ActionFactory from './action';
|
|
8
8
|
import * as AcceptCOAOfferActionFactory from './action/accept/coaOffer';
|
|
@@ -485,11 +485,9 @@ export declare namespace reservation {
|
|
|
485
485
|
type ISortOrder<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ISortOrder : ReservationFactory.ISortOrder;
|
|
486
486
|
type ISeat<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ISeat : ReservationFactory.ISeat;
|
|
487
487
|
type ISubReservation<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.ISubReservation : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.ISubReservation : any;
|
|
488
|
-
export import ITicket = ReservationFactory.ITicket;
|
|
489
488
|
type IUnderName<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.IUnderName : ReservationFactory.IUnderName;
|
|
490
|
-
type ITicketIssuedBy
|
|
491
|
-
type TicketType
|
|
492
|
-
type ITicketType<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ITicketType : ReservationFactory.ITicketType;
|
|
489
|
+
type ITicketIssuedBy = ReservationFactory.ITicketIssuedBy;
|
|
490
|
+
type TicketType = ReservationFactory.TicketType;
|
|
493
491
|
export import IServiceTypeOfIssuedThrough = ReservationFactory.IServiceTypeOfIssuedThrough;
|
|
494
492
|
export import IServiceLocationContainedInPlace = ReservationFactory.IServiceLocationContainedInPlace;
|
|
495
493
|
export import IServiceLocation = ReservationFactory.IServiceLocation;
|
package/lib/index.js
CHANGED
|
@@ -5,12 +5,8 @@ exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = expor
|
|
|
5
5
|
/**
|
|
6
6
|
* factory
|
|
7
7
|
*/
|
|
8
|
-
// import * as waiter from '@waiter/factory';
|
|
9
8
|
exports.waiter = require("@waiter/factory");
|
|
10
|
-
|
|
11
|
-
exports.cognito = require("@waiter/factory");
|
|
12
|
-
// export import cognito = cognito;
|
|
13
|
-
// export import waiter = waiter;
|
|
9
|
+
exports.cognito = require("./cognito");
|
|
14
10
|
var AccountFactory = require("./account");
|
|
15
11
|
var AcceptCOAOfferActionFactory = require("./action/accept/coaOffer");
|
|
16
12
|
var AcceptPayActionFactory = require("./action/accept/pay");
|
package/lib/order.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import { PriceCurrency } from './priceCurrency';
|
|
|
16
16
|
import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
|
|
17
17
|
import { IMembershipProduct, IPaymentCardProduct, ProductType } from './product';
|
|
18
18
|
import { IPropertyValue } from './propertyValue';
|
|
19
|
-
import { IProgramMembershipUsedSearchConditions
|
|
19
|
+
import { IProgramMembershipUsedSearchConditions } from './reservation';
|
|
20
20
|
import * as EventReservationFactory from './reservation/event';
|
|
21
21
|
import { ReservationType } from './reservationType';
|
|
22
22
|
import { ISeller as IBaseSeller } from './seller';
|
|
@@ -90,9 +90,9 @@ export type ISuperEvent = Pick<EventReservationFactory.IOptimizedSuperEvent, 'id
|
|
|
90
90
|
export type IEventAsReservationFor = Omit<EventReservationFactory.IReservationFor, 'superEvent'> & {
|
|
91
91
|
superEvent: ISuperEvent;
|
|
92
92
|
};
|
|
93
|
-
export type IReservedTicket = Pick<
|
|
93
|
+
export type IReservedTicket = Pick<EventReservationFactory.IReservedTicket, 'typeOf' | 'ticketedSeat' | 'identifier' | // 追加(2024-04-15~)
|
|
94
94
|
'ticketNumber' | 'dateIssued' | 'ticketToken' | 'coaTicketInfo' | 'coaReserveAmount'> & {
|
|
95
|
-
ticketType: ITicketType;
|
|
95
|
+
ticketType: EventReservationFactory.ITicketType;
|
|
96
96
|
};
|
|
97
97
|
export type IEventReservation = Pick<EventReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'reservationNumber' | 'typeOf'> & {
|
|
98
98
|
reservationFor: IEventAsReservationFor;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
import type * as COA from '@motionpicture/coa-service';
|
|
1
2
|
import { ICOAInfo, ILocation as IEventLocation, IName as IEventName, ISuperEvent } from '../event/screeningEvent';
|
|
2
3
|
import { IWorkPerformed } from '../event/screeningEventSeries';
|
|
3
4
|
import { EventType } from '../eventType';
|
|
4
5
|
import { IMultilingualString } from '../multilingualString';
|
|
6
|
+
import * as OfferFactory from '../offer';
|
|
7
|
+
import { OfferType } from '../offerType';
|
|
5
8
|
import { IPriceSpecification as ICategoryCodeChargeSpecification } from '../priceSpecification/categoryCodeChargeSpecification';
|
|
6
9
|
import { IPriceSpecification as ICompoundPriceSpecification } from '../priceSpecification/compoundPriceSpecification';
|
|
7
10
|
import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from '../priceSpecification/movieTicketTypeChargeSpecification';
|
|
8
11
|
import { IPriceSpecification as IUnitPriceOfferPriceSpecification } from '../priceSpecification/unitPriceSpecification';
|
|
9
12
|
import { ProductType } from '../product';
|
|
13
|
+
import { IPropertyValue } from '../propertyValue';
|
|
10
14
|
import * as ReservationFactory from '../reservation';
|
|
11
15
|
import { ReservationStatusType } from '../reservationStatusType';
|
|
12
16
|
import { ReservationType } from '../reservationType';
|
|
@@ -40,7 +44,7 @@ export type IMovieTicketTypeChargePriceComponent = Pick<IMovieTicketTypeChargeSp
|
|
|
40
44
|
export type IUnitPriceComponent = Pick<IUnitPriceOfferPriceSpecification, 'accounting' | 'appliesToMovieTicket' | 'appliesToAddOn' | 'name' | 'price' | 'priceCurrency' | 'referenceQuantity' | 'typeOf' | 'valueAddedTaxIncluded'>;
|
|
41
45
|
export type ITicketPriceComponent = ICategoryChargePriceComponent | IMovieTicketTypeChargePriceComponent | IUnitPriceComponent;
|
|
42
46
|
export type IPrice = Pick<ICompoundPriceSpecification<ITicketPriceComponent>, 'priceComponent' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
|
|
43
|
-
export type IPriceSpecification =
|
|
47
|
+
export type IPriceSpecification = never;
|
|
44
48
|
export interface ISubReservation {
|
|
45
49
|
reservedTicket: {
|
|
46
50
|
typeOf: ReservationFactory.TicketType;
|
|
@@ -64,6 +68,49 @@ export interface IIssuedThrough4COA extends ReservationFactory.IIssuedThrough {
|
|
|
64
68
|
*/
|
|
65
69
|
id?: never;
|
|
66
70
|
}
|
|
71
|
+
export interface ITicketType {
|
|
72
|
+
additionalProperty?: IPropertyValue<string>[];
|
|
73
|
+
category?: OfferFactory.ICategory;
|
|
74
|
+
color?: string;
|
|
75
|
+
description?: string | IMultilingualString;
|
|
76
|
+
id?: string;
|
|
77
|
+
identifier: string;
|
|
78
|
+
name?: IMultilingualString;
|
|
79
|
+
typeOf: OfferType.Offer;
|
|
80
|
+
validRateLimit?: OfferFactory.IValidRateLimit;
|
|
81
|
+
}
|
|
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
|
+
export type IReservedTicket = ReservationFactory.ITicket & {
|
|
104
|
+
/**
|
|
105
|
+
* オファー
|
|
106
|
+
*/
|
|
107
|
+
ticketType?: ITicketType;
|
|
108
|
+
/**
|
|
109
|
+
* COA券種情報
|
|
110
|
+
*/
|
|
111
|
+
coaTicketInfo?: ICOATicketInfoWithDetails;
|
|
112
|
+
coaReserveAmount?: number;
|
|
113
|
+
};
|
|
67
114
|
/**
|
|
68
115
|
* イベント予約
|
|
69
116
|
*/
|
|
@@ -74,7 +121,7 @@ export interface IReservation extends ReservationFactory.IReservation<IPriceSpec
|
|
|
74
121
|
reservationFor: IReservationFor;
|
|
75
122
|
reservationNumber: string;
|
|
76
123
|
reservationStatus: ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed;
|
|
77
|
-
reservedTicket:
|
|
124
|
+
reservedTicket: IReservedTicket;
|
|
78
125
|
subReservation?: ISubReservation[];
|
|
79
126
|
typeOf: ReservationType.EventReservation;
|
|
80
127
|
}
|
package/lib/reservation.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import type * as COA from '@motionpicture/coa-service';
|
|
2
1
|
import { CreativeWorkType } from './creativeWorkType';
|
|
3
2
|
import { IMultilingualString } from './multilingualString';
|
|
4
|
-
import * as OfferFactory from './offer';
|
|
5
|
-
import { OfferType } from './offerType';
|
|
6
3
|
import { OrganizationType } from './organizationType';
|
|
7
4
|
import { PersonType } from './personType';
|
|
8
5
|
import * as MovieTheaterFactory from './place/movieTheater';
|
|
@@ -21,17 +18,6 @@ import { ReservationType } from './reservationType';
|
|
|
21
18
|
import { PaymentServiceType } from './service/paymentService';
|
|
22
19
|
import { SortType } from './sortType';
|
|
23
20
|
export type TicketType = 'Ticket';
|
|
24
|
-
export interface ITicketType {
|
|
25
|
-
additionalProperty?: IPropertyValue<string>[];
|
|
26
|
-
category?: OfferFactory.ICategory;
|
|
27
|
-
color?: string;
|
|
28
|
-
description?: string | IMultilingualString;
|
|
29
|
-
id?: string;
|
|
30
|
-
identifier: string;
|
|
31
|
-
name?: IMultilingualString;
|
|
32
|
-
typeOf: OfferType.Offer;
|
|
33
|
-
validRateLimit?: OfferFactory.IValidRateLimit;
|
|
34
|
-
}
|
|
35
21
|
export type IPriceSpecification = IGenericPriceSpecification<PriceSpecificationType>;
|
|
36
22
|
export type ISeatingType = SeatFactory.ISeatingType;
|
|
37
23
|
export type IUnderNameType = CreativeWorkType.WebApplication | PersonType.Person | OrganizationType.Organization | OrganizationType.Corporation | OrganizationType.Project;
|
|
@@ -79,27 +65,6 @@ export interface ISeat {
|
|
|
79
65
|
*/
|
|
80
66
|
seatSection: string;
|
|
81
67
|
}
|
|
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
68
|
export type IReservationFor = any;
|
|
104
69
|
/**
|
|
105
70
|
* 予約チケット情報
|
|
@@ -126,12 +91,6 @@ export interface ITicket {
|
|
|
126
91
|
* The organization issuing the ticket or permit.
|
|
127
92
|
*/
|
|
128
93
|
issuedBy?: ITicketIssuedBy;
|
|
129
|
-
/**
|
|
130
|
-
* The total price for the reservation or ticket, including applicable taxes, shipping, etc.
|
|
131
|
-
*/
|
|
132
|
-
/**
|
|
133
|
-
* The currency (in 3-letter ISO 4217 format) of the Reservation's price.
|
|
134
|
-
*/
|
|
135
94
|
/**
|
|
136
95
|
* The seat associated with the ticket.
|
|
137
96
|
* 座席指定でない場合、この値は存在しない
|
|
@@ -147,15 +106,6 @@ export interface ITicket {
|
|
|
147
106
|
* "aztecCode:AB34" (Aztec codes), "barcodeEAN:1234" (EAN codes) and "barcodeUPCA:1234" (UPCA codes).
|
|
148
107
|
*/
|
|
149
108
|
ticketToken?: string;
|
|
150
|
-
/**
|
|
151
|
-
* オファー
|
|
152
|
-
*/
|
|
153
|
-
ticketType: ITicketType;
|
|
154
|
-
/**
|
|
155
|
-
* COA券種情報
|
|
156
|
-
*/
|
|
157
|
-
coaTicketInfo?: ICOATicketInfoWithDetails;
|
|
158
|
-
coaReserveAmount?: number;
|
|
159
109
|
}
|
|
160
110
|
export interface IBroker {
|
|
161
111
|
typeOf: PersonType.Person;
|