@chevre/factory 8.1.0-alpha.4 → 8.1.0-alpha.6
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/chevre/action/cancel/reservation.d.ts +15 -17
- package/lib/chevre/action/create.d.ts +9 -3
- package/lib/chevre/actionType.d.ts +0 -3
- package/lib/chevre/actionType.js +3 -3
- package/lib/chevre/assetTransaction/reserve.d.ts +4 -1
- package/lib/chevre/index.d.ts +0 -9
- package/lib/chevre/index.js +0 -5
- package/lib/chevre/order.d.ts +1 -1
- package/lib/chevre/reservation/event.d.ts +4 -3
- package/lib/chevre/reservation.d.ts +1 -24
- package/package.json +1 -1
- package/lib/chevre/action/interact/register/service.d.ts +0 -17
- package/lib/chevre/action/interact/register/service.js +0 -2
- package/lib/chevre/action/interact/register.d.ts +0 -15
- package/lib/chevre/action/interact/register.js +0 -2
|
@@ -1,40 +1,37 @@
|
|
|
1
1
|
import { IParticipantAsProject, IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
4
|
-
import { EventType } from '../../eventType';
|
|
5
4
|
import { IOrder } from '../../order';
|
|
6
|
-
import {
|
|
7
|
-
import { IAvailableReservationStatusType } from '../../reservation';
|
|
5
|
+
import { ReservationStatusType } from '../../reservationStatusType';
|
|
8
6
|
import { ReservationType } from '../../reservationType';
|
|
9
7
|
import { ITransaction as IPlaceOrder } from '../../transaction/placeOrder';
|
|
10
8
|
import { IAction as IReturnReserveTransactionAction } from '../transfer/return/reserveTransaction';
|
|
11
9
|
export type IAgent = IParticipantAsProject;
|
|
10
|
+
/**
|
|
11
|
+
* 予約取引中止、あるいは、予約番号による予約取消取引確定時のオブジェクト
|
|
12
|
+
*/
|
|
12
13
|
export interface IReservationPackageAsObject {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
id: string;
|
|
16
|
-
};
|
|
14
|
+
id?: never;
|
|
15
|
+
reservationFor?: never;
|
|
17
16
|
reservationNumber: string;
|
|
18
17
|
/**
|
|
19
18
|
* previousReservationStatusを変更時に指定するために必要
|
|
20
19
|
*/
|
|
21
|
-
reservationStatus:
|
|
20
|
+
reservationStatus: ReservationStatusType.ReservationConfirmed | ReservationStatusType.ReservationPending;
|
|
22
21
|
typeOf: ReservationType.ReservationPackage;
|
|
23
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* 予約IDによる予約取消取引確定時のオブジェクト
|
|
25
|
+
*/
|
|
24
26
|
export interface IEventReservationAsObject {
|
|
25
27
|
id: string;
|
|
26
|
-
issuedThrough?:
|
|
27
|
-
|
|
28
|
-
};
|
|
29
|
-
reservationFor: {
|
|
30
|
-
typeOf: EventType.ScreeningEvent;
|
|
31
|
-
id: string;
|
|
32
|
-
};
|
|
28
|
+
issuedThrough?: never;
|
|
29
|
+
reservationFor?: never;
|
|
33
30
|
reservationNumber: string;
|
|
34
31
|
/**
|
|
35
32
|
* previousReservationStatusを変更時に指定するために必要
|
|
36
33
|
*/
|
|
37
|
-
reservationStatus:
|
|
34
|
+
reservationStatus: ReservationStatusType.ReservationConfirmed;
|
|
38
35
|
typeOf: ReservationType.EventReservation;
|
|
39
36
|
}
|
|
40
37
|
export type IObject = IEventReservationAsObject | IReservationPackageAsObject;
|
|
@@ -43,10 +40,11 @@ export interface IResult {
|
|
|
43
40
|
export interface IPurpose {
|
|
44
41
|
/**
|
|
45
42
|
* 取引タイプ
|
|
43
|
+
* 予約取引中止、あるいは、予約取消取引確定時にアクションが発生する
|
|
46
44
|
*/
|
|
47
45
|
typeOf: AssetTransactionType.Reserve | AssetTransactionType.CancelReservation;
|
|
48
46
|
/**
|
|
49
|
-
* 取引ID
|
|
47
|
+
* 取引(Reserve or CancelReservation)ID
|
|
50
48
|
*/
|
|
51
49
|
id: string;
|
|
52
50
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../action';
|
|
1
|
+
import { IParticipantAsProject, IAction as IBaseAction, IAttributes as IBaseAttributes, ISameAs } from '../action';
|
|
2
2
|
import { ActionType } from '../actionType';
|
|
3
3
|
import { ISimpleOrder } from '../order';
|
|
4
4
|
import { IOrderAsMainEntity, IReportDocument } from '../report/accountingReport';
|
|
5
|
+
export type IAgent = IParticipantAsProject;
|
|
5
6
|
export type IObjectAsAccountingReport = Pick<IReportDocument, 'typeOf'> & {
|
|
6
7
|
mainEntity: Pick<IOrderAsMainEntity, 'orderNumber'>;
|
|
7
8
|
};
|
|
@@ -11,9 +12,14 @@ export interface IResult {
|
|
|
11
12
|
export type IPurposeAsOrder = ISimpleOrder;
|
|
12
13
|
export type IPurpose = IPurposeAsOrder;
|
|
13
14
|
export interface IAttributes extends Pick<IBaseAttributes<ActionType.CreateAction, IObject, IResult>, 'agent' | 'error' | 'object' | 'project' | 'purpose' | 'sameAs' | 'typeOf'> {
|
|
14
|
-
|
|
15
|
+
agent: IAgent;
|
|
16
|
+
purpose: IPurpose;
|
|
17
|
+
/**
|
|
18
|
+
* 必ずCreateAccountingReportタスクからアクションが発生する
|
|
19
|
+
*/
|
|
20
|
+
sameAs: ISameAs;
|
|
15
21
|
}
|
|
16
22
|
/**
|
|
17
|
-
*
|
|
23
|
+
* 経理レポート作成アクション
|
|
18
24
|
*/
|
|
19
25
|
export type IAction = IBaseAction<IAttributes>;
|
|
@@ -11,16 +11,13 @@ export declare enum ActionType {
|
|
|
11
11
|
CreateAction = "CreateAction",
|
|
12
12
|
DeleteAction = "DeleteAction",
|
|
13
13
|
InformAction = "InformAction",
|
|
14
|
-
MoneyTransfer = "MoneyTransfer",
|
|
15
14
|
OrderAction = "OrderAction",
|
|
16
15
|
PayAction = "PayAction",
|
|
17
16
|
RefundAction = "RefundAction",
|
|
18
|
-
RegisterAction = "RegisterAction",
|
|
19
17
|
ReplaceAction = "ReplaceAction",
|
|
20
18
|
ReserveAction = "ReserveAction",
|
|
21
19
|
ReturnAction = "ReturnAction",
|
|
22
20
|
SendAction = "SendAction",
|
|
23
|
-
UnRegisterAction = "UnRegisterAction",
|
|
24
21
|
UpdateAction = "UpdateAction",
|
|
25
22
|
UseAction = "UseAction"
|
|
26
23
|
}
|
package/lib/chevre/actionType.js
CHANGED
|
@@ -15,16 +15,16 @@ var ActionType;
|
|
|
15
15
|
ActionType["CreateAction"] = "CreateAction";
|
|
16
16
|
ActionType["DeleteAction"] = "DeleteAction";
|
|
17
17
|
ActionType["InformAction"] = "InformAction";
|
|
18
|
-
|
|
18
|
+
// MoneyTransfer = 'MoneyTransfer', // discontinue(2026-05-09~)
|
|
19
19
|
ActionType["OrderAction"] = "OrderAction";
|
|
20
20
|
ActionType["PayAction"] = "PayAction";
|
|
21
21
|
ActionType["RefundAction"] = "RefundAction";
|
|
22
|
-
|
|
22
|
+
// RegisterAction = 'RegisterAction', // discontinue(2026-05-09~)
|
|
23
23
|
ActionType["ReplaceAction"] = "ReplaceAction";
|
|
24
24
|
ActionType["ReserveAction"] = "ReserveAction";
|
|
25
25
|
ActionType["ReturnAction"] = "ReturnAction";
|
|
26
26
|
ActionType["SendAction"] = "SendAction";
|
|
27
|
-
|
|
27
|
+
// UnRegisterAction = 'UnRegisterAction', // discontinue(2026-05-09~)
|
|
28
28
|
ActionType["UpdateAction"] = "UpdateAction";
|
|
29
29
|
ActionType["UseAction"] = "UseAction";
|
|
30
30
|
})(ActionType || (exports.ActionType = ActionType = {}));
|
|
@@ -299,7 +299,10 @@ export type IUnderName = Pick<IReservationUnderName, 'email' | 'givenName' | 'fa
|
|
|
299
299
|
export interface IObject extends Pick<IReservationPackage, 'broker' | 'provider' | 'reservationStatus' | 'typeOf'> {
|
|
300
300
|
underName?: IUnderName;
|
|
301
301
|
acceptedOffer?: IAcceptedOffer4object[];
|
|
302
|
-
|
|
302
|
+
/**
|
|
303
|
+
* 予約取引開始時に確定するはず
|
|
304
|
+
*/
|
|
305
|
+
issuedThrough: IIssuedThrough;
|
|
303
306
|
reservationFor?: IReservationFor;
|
|
304
307
|
reservationNumber: string;
|
|
305
308
|
reservationStatus: ReservationStatusType.ReservationPending;
|
package/lib/chevre/index.d.ts
CHANGED
|
@@ -17,8 +17,6 @@ import * as CreateActionFactory from './action/create';
|
|
|
17
17
|
import * as ConfirmPayActionFactory from './action/interact/confirm/pay';
|
|
18
18
|
import * as ConfirmReservationActionFactory from './action/interact/confirm/reservation';
|
|
19
19
|
import * as InformActionFactory from './action/interact/inform';
|
|
20
|
-
import * as RegisterActionFactory from './action/interact/register';
|
|
21
|
-
import * as RegisterServiceActionFactory from './action/interact/register/service';
|
|
22
20
|
import * as ReserveActionFactory from './action/reserve';
|
|
23
21
|
import * as OrderActionFactory from './action/trade/order';
|
|
24
22
|
import * as PayActionFactory from './action/trade/pay';
|
|
@@ -249,11 +247,6 @@ export declare namespace action {
|
|
|
249
247
|
export import reservation = ConfirmReservationActionFactory;
|
|
250
248
|
}
|
|
251
249
|
export import inform = InformActionFactory;
|
|
252
|
-
namespace register {
|
|
253
|
-
export import IAction = RegisterActionFactory.IAction;
|
|
254
|
-
export import IAttributes = RegisterActionFactory.IAttributes;
|
|
255
|
-
export import service = RegisterServiceActionFactory;
|
|
256
|
-
}
|
|
257
250
|
}
|
|
258
251
|
namespace trade {
|
|
259
252
|
export import order = OrderActionFactory;
|
|
@@ -423,13 +416,11 @@ export declare namespace reservation {
|
|
|
423
416
|
export import eventReservation = EventReservationFactory;
|
|
424
417
|
export import IProgramMembershipUsed = ReservationFactory.IProgramMembershipUsed;
|
|
425
418
|
export import IBroker = ReservationFactory.IBroker;
|
|
426
|
-
export import IIssuedThrough = ReservationFactory.IIssuedThrough;
|
|
427
419
|
export import IProvider = ReservationFactory.IProvider;
|
|
428
420
|
export import ISeat = ReservationFactory.ISeat;
|
|
429
421
|
export import IUnderName = ReservationFactory.IUnderName;
|
|
430
422
|
export import ITicketIssuedBy = ReservationFactory.ITicketIssuedBy;
|
|
431
423
|
export import TicketType = ReservationFactory.TicketType;
|
|
432
|
-
export import IServiceTypeOfIssuedThrough = ReservationFactory.IServiceTypeOfIssuedThrough;
|
|
433
424
|
}
|
|
434
425
|
export import reservationStatusType = ReservationStatusType;
|
|
435
426
|
export import reservationType = ReservationType;
|
package/lib/chevre/index.js
CHANGED
|
@@ -19,7 +19,6 @@ const CreateActionFactory = require("./action/create");
|
|
|
19
19
|
const ConfirmPayActionFactory = require("./action/interact/confirm/pay");
|
|
20
20
|
const ConfirmReservationActionFactory = require("./action/interact/confirm/reservation");
|
|
21
21
|
const InformActionFactory = require("./action/interact/inform");
|
|
22
|
-
const RegisterServiceActionFactory = require("./action/interact/register/service");
|
|
23
22
|
const ReserveActionFactory = require("./action/reserve");
|
|
24
23
|
const OrderActionFactory = require("./action/trade/order");
|
|
25
24
|
const PayActionFactory = require("./action/trade/pay");
|
|
@@ -231,10 +230,6 @@ var action;
|
|
|
231
230
|
confirm.reservation = ConfirmReservationActionFactory;
|
|
232
231
|
})(confirm = interact.confirm || (interact.confirm = {}));
|
|
233
232
|
interact.inform = InformActionFactory;
|
|
234
|
-
let register;
|
|
235
|
-
(function (register) {
|
|
236
|
-
register.service = RegisterServiceActionFactory;
|
|
237
|
-
})(register = interact.register || (interact.register = {}));
|
|
238
233
|
})(interact = action.interact || (action.interact = {}));
|
|
239
234
|
let trade;
|
|
240
235
|
(function (trade) {
|
package/lib/chevre/order.d.ts
CHANGED
|
@@ -171,7 +171,7 @@ export type ICOAReservedTicket = Pick<IRawReservedTicket, 'typeOf' | 'ticketedSe
|
|
|
171
171
|
coaTicketInfo?: ICOATicketInfoWithDetails;
|
|
172
172
|
coaReserveAmount?: number;
|
|
173
173
|
};
|
|
174
|
-
export interface ICOAIssuedThrough extends Pick<IIssuedThrough, 'typeOf'
|
|
174
|
+
export interface ICOAIssuedThrough extends Pick<IIssuedThrough, 'typeOf'> {
|
|
175
175
|
typeOf: ProductType.EventService;
|
|
176
176
|
serviceType?: never;
|
|
177
177
|
/**
|
|
@@ -10,7 +10,7 @@ import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from '../p
|
|
|
10
10
|
import { IPriceSpecification as IUnitPriceOfferPriceSpecification } from '../priceSpecification/unitPriceSpecification';
|
|
11
11
|
import { ProductType } from '../product';
|
|
12
12
|
import { IPropertyValue } from '../propertyValue';
|
|
13
|
-
import { TicketType, ISeat as IReservationSeat, IServiceTypeOfIssuedThrough,
|
|
13
|
+
import { TicketType, ISeat as IReservationSeat, IServiceTypeOfIssuedThrough, IReservation as IBaseReservation, IAvailableReservationStatusType, ITicket } from '../reservation';
|
|
14
14
|
import { ReservationStatusType } from '../reservationStatusType';
|
|
15
15
|
import { ReservationType } from '../reservationType';
|
|
16
16
|
import { SortType } from '../sortType';
|
|
@@ -112,7 +112,7 @@ export interface ISubReservation {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
export { IServiceTypeOfIssuedThrough };
|
|
115
|
-
export interface IIssuedThrough
|
|
115
|
+
export interface IIssuedThrough {
|
|
116
116
|
typeOf: ProductType.EventService;
|
|
117
117
|
serviceType?: IServiceTypeOfIssuedThrough;
|
|
118
118
|
/**
|
|
@@ -143,13 +143,14 @@ export type IReservedTicket = ITicket & {
|
|
|
143
143
|
export interface IReservation extends IBaseReservation<IPriceSpecification> {
|
|
144
144
|
bookingTime: Date;
|
|
145
145
|
id: string;
|
|
146
|
-
issuedThrough: IIssuedThrough;
|
|
147
146
|
reservationFor: IReservationForMinimized;
|
|
148
147
|
reservationNumber: string;
|
|
149
148
|
reservationStatus: ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed;
|
|
150
149
|
reservedTicket: IReservedTicket;
|
|
151
150
|
subReservation?: ISubReservation[];
|
|
152
151
|
typeOf: ReservationType.EventReservation;
|
|
152
|
+
issuedThrough?: never;
|
|
153
|
+
priceCurrency?: never;
|
|
153
154
|
}
|
|
154
155
|
export interface IReservationForSearchConditions {
|
|
155
156
|
typeOf?: EventType;
|
|
@@ -5,7 +5,7 @@ import { ISeatingType } from './place/seat';
|
|
|
5
5
|
import { PlaceType } from './placeType';
|
|
6
6
|
import { IPriceSpecification as IGenericPriceSpecification } from './priceSpecification';
|
|
7
7
|
import { PriceSpecificationType } from './priceSpecificationType';
|
|
8
|
-
import { IServiceType
|
|
8
|
+
import { IServiceType } from './product';
|
|
9
9
|
import { IProgramMembership } from './programMembership';
|
|
10
10
|
import { IProject } from './project';
|
|
11
11
|
import { IPropertyValue } from './propertyValue';
|
|
@@ -123,19 +123,6 @@ export type IProgramMembershipIssuedThroughCreditCard = Pick<IProgramMembership,
|
|
|
123
123
|
};
|
|
124
124
|
export type IProgramMembershipUsed = IProgramMembershipIssuedThroughFaceToFace | IProgramMembershipIssuedThroughCreditCard;
|
|
125
125
|
export type IServiceTypeOfIssuedThrough = Pick<IServiceType, 'codeValue' | 'inCodeSet' | 'typeOf'>;
|
|
126
|
-
export interface IIssuedThrough {
|
|
127
|
-
typeOf: ProductType.EventService;
|
|
128
|
-
serviceType?: IServiceTypeOfIssuedThrough;
|
|
129
|
-
/**
|
|
130
|
-
* 興行ID
|
|
131
|
-
* プロダクト管理をしている場合のみ
|
|
132
|
-
*/
|
|
133
|
-
id?: string;
|
|
134
|
-
/**
|
|
135
|
-
* discontinue(2026-03-27~)
|
|
136
|
-
*/
|
|
137
|
-
availableChannel?: never;
|
|
138
|
-
}
|
|
139
126
|
export type IAvailableReservationStatusType = ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed | ReservationStatusType.ReservationPending;
|
|
140
127
|
export interface IProvider {
|
|
141
128
|
/**
|
|
@@ -179,16 +166,6 @@ export interface IReservation<T extends Omit<IPriceSpecification, 'project'>> {
|
|
|
179
166
|
* In most cases a broker never acquires or releases ownership of a product or service involved in an exchange.
|
|
180
167
|
*/
|
|
181
168
|
broker?: IBroker;
|
|
182
|
-
/**
|
|
183
|
-
* Web page where reservation can be cancelled.
|
|
184
|
-
*/
|
|
185
|
-
/**
|
|
186
|
-
* Webpage where the passenger can check in.
|
|
187
|
-
*/
|
|
188
|
-
/**
|
|
189
|
-
* Web page where reservation can be confirmed.
|
|
190
|
-
*/
|
|
191
|
-
issuedThrough?: IIssuedThrough;
|
|
192
169
|
/**
|
|
193
170
|
* Time the reservation was last modified.
|
|
194
171
|
*/
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IParticipantAsProject } from '../../../action';
|
|
2
|
-
import { IPermit } from '../../../permit';
|
|
3
|
-
import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../register';
|
|
4
|
-
export type IAgent = IParticipantAsProject;
|
|
5
|
-
export type IObject = IPermit;
|
|
6
|
-
export type IResult = any;
|
|
7
|
-
export interface IPotentialActions {
|
|
8
|
-
moneyTransfer?: never;
|
|
9
|
-
}
|
|
10
|
-
export interface IAttributes extends IBaseAttributes<IObject, IResult> {
|
|
11
|
-
agent: IAgent;
|
|
12
|
-
potentialActions?: IPotentialActions;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* サービス登録アクション
|
|
16
|
-
*/
|
|
17
|
-
export type IAction = IBaseAction<IAttributes>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IParticipant, IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../action';
|
|
2
|
-
import { ActionType } from '../../actionType';
|
|
3
|
-
export type IAgent = IParticipant;
|
|
4
|
-
export type IRecipient = IParticipant;
|
|
5
|
-
export type IObject = any;
|
|
6
|
-
export type IResult = any;
|
|
7
|
-
export interface IPotentialActions {
|
|
8
|
-
}
|
|
9
|
-
export interface IAttributes<TObject, TResult> extends IBaseAttributes<ActionType.RegisterAction, TObject, TResult> {
|
|
10
|
-
potentialActions?: IPotentialActions;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* 登録アクションインターフェース
|
|
14
|
-
*/
|
|
15
|
-
export type IAction<TAttributes extends IAttributes<IObject, IResult>> = IBaseAction<TAttributes>;
|