@chevre/factory 4.280.0-alpha.7 → 4.280.0-alpha.9
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/action/reserve.d.ts +17 -12
- package/lib/index.d.ts +1 -0
- package/lib/reservation/event.d.ts +0 -2
- package/lib/reservation.d.ts +6 -5
- package/package.json +1 -1
package/lib/action/reserve.d.ts
CHANGED
|
@@ -2,17 +2,25 @@ import * as ActionFactory from '../action';
|
|
|
2
2
|
import { ActionType } from '../actionType';
|
|
3
3
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
4
4
|
import { OrderType } from '../order';
|
|
5
|
-
import {
|
|
5
|
+
import { IUnderName } from '../reservation';
|
|
6
|
+
import { IReservation as IEventReservation, IReservationFor } from '../reservation/event';
|
|
7
|
+
import { ReservationStatusType } from '../reservationStatusType';
|
|
8
|
+
import { ReservationType } from '../reservationType';
|
|
6
9
|
import { IAttributes as IMoneyTransferActionAttributes } from './transfer/moneyTransfer';
|
|
7
10
|
export declare type IAgent = ActionFactory.IParticipantAsProject;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
export declare type ISubReservation = Omit<IEventReservation, 'reservationFor'>;
|
|
12
|
+
export interface IReservationPackageAsObject {
|
|
13
|
+
reservationFor: IReservationFor;
|
|
14
|
+
reservationNumber: string;
|
|
15
|
+
reservationStatus: ReservationStatusType;
|
|
16
|
+
subReservation: ISubReservation[];
|
|
17
|
+
underName?: IUnderName;
|
|
18
|
+
typeOf: ReservationType.ReservationPackage;
|
|
19
|
+
}
|
|
20
|
+
export declare type IObject = IEventReservation | IReservationPackageAsObject;
|
|
21
|
+
export interface IResult {
|
|
22
|
+
confirmedReservationId?: string;
|
|
23
|
+
}
|
|
16
24
|
export interface IOrderAsReservePurpose {
|
|
17
25
|
typeOf: OrderType.Order;
|
|
18
26
|
confirmationNumber?: string;
|
|
@@ -32,9 +40,6 @@ export declare type IPurpose = IOrderAsReservePurpose | IAssetTransactionAsReser
|
|
|
32
40
|
export interface IPotentialActions {
|
|
33
41
|
moneyTransfer?: IMoneyTransferActionAttributes[];
|
|
34
42
|
}
|
|
35
|
-
/**
|
|
36
|
-
* アクション属性
|
|
37
|
-
*/
|
|
38
43
|
export interface IAttributes extends ActionFactory.IAttributes<ActionType.ReserveAction, IObject, IResult> {
|
|
39
44
|
agent: IAgent;
|
|
40
45
|
potentialActions?: IPotentialActions;
|
package/lib/index.d.ts
CHANGED
|
@@ -375,6 +375,7 @@ export declare namespace reservation {
|
|
|
375
375
|
type ISubReservation<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.ISubReservation : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.ISubReservation : any;
|
|
376
376
|
export import ITicket = ReservationFactory.ITicket;
|
|
377
377
|
type IUnderName<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.IUnderName : ReservationFactory.IUnderName;
|
|
378
|
+
type ITicketIssuedBy<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ITicketIssuedBy : ReservationFactory.ITicketIssuedBy;
|
|
378
379
|
type TicketType<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.TicketType : ReservationFactory.TicketType;
|
|
379
380
|
type ITicketType<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ITicketType : ReservationFactory.ITicketType;
|
|
380
381
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ICOAInfo, ILocation as IEventLocation, IName as IEventName, ISuperEvent, IWorkPerformed } from '../event/screeningEvent';
|
|
2
|
-
import { EventStatusType } from '../eventStatusType';
|
|
3
2
|
import { EventType } from '../eventType';
|
|
4
3
|
import { IMultilingualString } from '../multilingualString';
|
|
5
4
|
import { ITicketPriceComponent, ITicketPriceSpecification } from '../order';
|
|
@@ -14,7 +13,6 @@ export declare type IOptimizedSuperEvent = Pick<ISuperEvent, 'additionalProperty
|
|
|
14
13
|
};
|
|
15
14
|
export interface IReservationFor {
|
|
16
15
|
endDate: Date;
|
|
17
|
-
eventStatus: EventStatusType;
|
|
18
16
|
id: string;
|
|
19
17
|
/**
|
|
20
18
|
* COA予約でのみ使用されている
|
package/lib/reservation.d.ts
CHANGED
|
@@ -99,6 +99,10 @@ export declare type IReservationFor = any;
|
|
|
99
99
|
/**
|
|
100
100
|
* 予約チケット情報
|
|
101
101
|
*/
|
|
102
|
+
export interface ITicketIssuedBy {
|
|
103
|
+
typeOf: IUnderNameType;
|
|
104
|
+
name: string;
|
|
105
|
+
}
|
|
102
106
|
export interface ITicket {
|
|
103
107
|
typeOf: TicketType;
|
|
104
108
|
/**
|
|
@@ -112,14 +116,13 @@ export interface ITicket {
|
|
|
112
116
|
/**
|
|
113
117
|
* The organization issuing the ticket or permit.
|
|
114
118
|
*/
|
|
115
|
-
issuedBy?:
|
|
119
|
+
issuedBy?: ITicketIssuedBy;
|
|
116
120
|
/**
|
|
117
121
|
* The total price for the reservation or ticket, including applicable taxes, shipping, etc.
|
|
118
122
|
*/
|
|
119
123
|
/**
|
|
120
124
|
* The currency (in 3-letter ISO 4217 format) of the Reservation's price.
|
|
121
125
|
*/
|
|
122
|
-
priceCurrency?: PriceCurrency;
|
|
123
126
|
/**
|
|
124
127
|
* The seat associated with the ticket.
|
|
125
128
|
* 座席指定でない場合、この値は存在しない
|
|
@@ -128,7 +131,6 @@ export interface ITicket {
|
|
|
128
131
|
/**
|
|
129
132
|
* Where the ticket can be downloaded.
|
|
130
133
|
*/
|
|
131
|
-
ticketDownloadUrl?: string;
|
|
132
134
|
/**
|
|
133
135
|
* The number or id of the ticket.
|
|
134
136
|
*/
|
|
@@ -136,7 +138,6 @@ export interface ITicket {
|
|
|
136
138
|
/**
|
|
137
139
|
* Where the ticket can be printed.
|
|
138
140
|
*/
|
|
139
|
-
ticketPrintUrl?: string;
|
|
140
141
|
/**
|
|
141
142
|
* If the barcode image is hosted on your site, the value of the field is URL of the image, or a barcode or QR URI,
|
|
142
143
|
* such as "barcode128:AB34" (ISO-15417 barcodes), "qrCode:AB34" (QR codes),
|
|
@@ -145,8 +146,8 @@ export interface ITicket {
|
|
|
145
146
|
ticketToken?: string;
|
|
146
147
|
/**
|
|
147
148
|
* The person or organization the reservation is for.
|
|
149
|
+
* ルートのunderNameに統合(2022-12-19~)
|
|
148
150
|
*/
|
|
149
|
-
underName?: IUnderName;
|
|
150
151
|
/**
|
|
151
152
|
* 券種
|
|
152
153
|
*/
|