@chevre/factory 8.1.0-alpha.0 → 8.1.0-alpha.2
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,20 +1,25 @@
|
|
|
1
1
|
import { IParticipantAsPerson, IParticipantAsWebApplication } from '../../../action';
|
|
2
2
|
import { IOrder } from '../../../order';
|
|
3
3
|
import { PlaceType } from '../../../placeType';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { TicketType } from '../../../reservation';
|
|
5
|
+
import { IReservation, IReservationForMinimized } from '../../../reservation/event';
|
|
6
6
|
import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../use';
|
|
7
7
|
export type IAgent = IParticipantAsPerson | IParticipantAsWebApplication;
|
|
8
8
|
/**
|
|
9
9
|
* 予約使用アクションオブジェクト
|
|
10
10
|
* optimize(2024-05-06~)
|
|
11
|
+
* optimize(2026-05-06~)
|
|
11
12
|
*/
|
|
12
13
|
export interface IReservationAsObject extends Pick<IReservation, 'id' | 'reservationNumber' | 'typeOf'> {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
reservationFor: Pick<IReservationForMinimized, 'id' | 'typeOf'>;
|
|
15
|
+
/**
|
|
16
|
+
* discontinue(2026-05-06~)
|
|
17
|
+
*/
|
|
18
|
+
issuedThrough?: never;
|
|
19
|
+
/**
|
|
20
|
+
* discontinue(2026-05-06~)
|
|
21
|
+
*/
|
|
22
|
+
reservedTicket?: never;
|
|
18
23
|
}
|
|
19
24
|
export type IObject = IReservationAsObject[];
|
|
20
25
|
export interface IResult {
|
|
@@ -22,29 +27,27 @@ export interface IResult {
|
|
|
22
27
|
export interface ILocation {
|
|
23
28
|
typeOf: PlaceType.Place;
|
|
24
29
|
/**
|
|
25
|
-
*
|
|
30
|
+
* 入場ゲートコード
|
|
26
31
|
*/
|
|
27
32
|
identifier: string;
|
|
28
33
|
}
|
|
29
34
|
export type IOrderAsInstrument = Pick<IOrder, 'orderNumber' | 'typeOf'>;
|
|
30
35
|
export interface ITicketAsInstrument {
|
|
31
36
|
/**
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
token?: never;
|
|
35
|
-
/**
|
|
36
|
-
* 承認コード
|
|
37
|
+
* 注文承認コード
|
|
37
38
|
*/
|
|
38
39
|
ticketToken?: string;
|
|
39
40
|
typeOf: TicketType;
|
|
41
|
+
/**
|
|
42
|
+
* JWT
|
|
43
|
+
* discontinue(2024-10-03~)
|
|
44
|
+
*/
|
|
45
|
+
token?: never;
|
|
40
46
|
}
|
|
41
47
|
export type IInstrument = IOrderAsInstrument | ITicketAsInstrument;
|
|
42
48
|
export interface IAttributes extends Pick<IBaseAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'location' | 'object' | 'project' | 'result' | 'typeOf' | 'error'> {
|
|
43
49
|
agent: IAgent;
|
|
44
|
-
|
|
45
|
-
* extend to array(2025-02-17~)
|
|
46
|
-
*/
|
|
47
|
-
instrument: IInstrument | IInstrument[];
|
|
50
|
+
instrument: IInstrument[];
|
|
48
51
|
location?: ILocation;
|
|
49
52
|
}
|
|
50
53
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IAction as IPayAction, IPaymentService as IPayObject } from '../action/trade/pay';
|
|
2
2
|
import { IAction as IRefundAction, IPaymentService as IRefundObject } from '../action/trade/refund';
|
|
3
|
-
import {
|
|
3
|
+
import { ICustomer, IOrder, ISeller } from '../order';
|
|
4
4
|
import { OrganizationType } from '../organizationType';
|
|
5
5
|
export type IPayActionObject = Pick<IPayObject, 'id' | 'paymentMethod' | 'typeOf'>;
|
|
6
6
|
export type IOptimizedPayAction = Pick<IPayAction, 'actionStatus' | 'endDate' | 'id' | 'purpose' | 'startDate' | 'typeOf'> & {
|
|
@@ -11,11 +11,18 @@ export type IOptimizedRefundAction = Pick<IRefundAction, 'actionStatus' | 'endDa
|
|
|
11
11
|
object: IRefundActionObject[];
|
|
12
12
|
};
|
|
13
13
|
export type IAction = IOptimizedPayAction | IOptimizedRefundAction;
|
|
14
|
-
export type IOptimizedCustomer = Pick<ICustomer, '
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
export type IOptimizedCustomer = Pick<ICustomer, 'id' | 'typeOf'>;
|
|
15
|
+
/**
|
|
16
|
+
* 経理レポートドキュメントに保管される注文
|
|
17
|
+
* optimize(2026-05-06~)
|
|
18
|
+
*/
|
|
19
|
+
export type IOrderAsMainEntity = Pick<IOrder, 'confirmationNumber' | 'id' | 'orderDate' | 'orderNumber' | 'paymentMethods' | 'price' | 'priceCurrency' | 'typeOf'> & {
|
|
17
20
|
customer: IOptimizedCustomer;
|
|
18
|
-
|
|
21
|
+
seller: Pick<ISeller, 'id' | 'name' | 'typeOf'>;
|
|
22
|
+
broker?: never;
|
|
23
|
+
orderedItem?: never;
|
|
24
|
+
acceptedOffers?: never;
|
|
25
|
+
numItems?: never;
|
|
19
26
|
};
|
|
20
27
|
/**
|
|
21
28
|
* 経理レポート
|
|
@@ -225,13 +225,9 @@ export interface IReservedTicketSearchConditions {
|
|
|
225
225
|
};
|
|
226
226
|
};
|
|
227
227
|
/**
|
|
228
|
-
*
|
|
229
|
-
* @deprecated 廃止予定(tttsのみ集計で使用)
|
|
228
|
+
* discontinue ticketType(2026-05-06~)
|
|
230
229
|
*/
|
|
231
|
-
ticketType?:
|
|
232
|
-
ids?: string[];
|
|
233
|
-
category?: never;
|
|
234
|
-
};
|
|
230
|
+
ticketType?: never;
|
|
235
231
|
}
|
|
236
232
|
export interface IStringSearchConditions {
|
|
237
233
|
$eq?: string;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { IAttributes as IUseReservationActionAttributes, IReservationAsObject } from '../action/consume/use/reservation';
|
|
1
|
+
import { IAttributes as IUseReservationActionAttributes, IReservationAsObject, ILocation } from '../action/consume/use/reservation';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import { ITaskAttributes } from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
|
-
export type IUseReservationObject = Pick<IReservationAsObject, 'id'
|
|
6
|
-
export type
|
|
5
|
+
export type IUseReservationObject = Pick<IReservationAsObject, 'id'>;
|
|
6
|
+
export type IUseReservationLocation = Pick<ILocation, 'identifier'>;
|
|
7
|
+
export type IData = Pick<IUseReservationActionAttributes, 'agent' | 'instrument'> & {
|
|
7
8
|
object: IUseReservationObject;
|
|
9
|
+
location?: IUseReservationLocation;
|
|
8
10
|
};
|
|
9
11
|
export interface IAttributes extends ITaskAttributes {
|
|
10
12
|
name: TaskName.UseReservation;
|