@chevre/factory 4.222.0 → 4.225.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/chevre.d.ts +2 -0
- package/lib/factory/action/interact/confirm/reservation.d.ts +1 -0
- package/lib/factory/event/screeningEvent.d.ts +12 -12
- package/lib/factory/reservation/event.d.ts +2 -2
- package/lib/factory/reservation.d.ts +5 -4
- package/lib/factory/task/orderProgramMembership.d.ts +1 -2
- package/lib/factory/task.d.ts +20 -4
- package/lib/factory/transaction/placeOrder.d.ts +12 -14
- package/lib/factory/transaction.d.ts +9 -9
- package/package.json +2 -2
package/lib/chevre.d.ts
CHANGED
|
@@ -442,6 +442,8 @@ export declare namespace assetTransaction {
|
|
|
442
442
|
export import reserve = ReserveAssetTransactionFactory;
|
|
443
443
|
}
|
|
444
444
|
export declare namespace transaction {
|
|
445
|
+
export import IAgentProfile = TransactionFactory.IAgentProfile;
|
|
446
|
+
export import IAgent = TransactionFactory.IAgent;
|
|
445
447
|
export import IPassportBeforeStart = TransactionFactory.IPassportBeforeStart;
|
|
446
448
|
export import ISendEmailMessageParams = TransactionFactory.ISendEmailMessageParams;
|
|
447
449
|
export import ISortOrder = TransactionFactory.ISortOrder;
|
|
@@ -5,6 +5,7 @@ import { ISimpleOrder } from '../../../order';
|
|
|
5
5
|
import * as WebAPIFactory from '../../../service/webAPI';
|
|
6
6
|
import * as ConfirmActionFactory from '../confirm';
|
|
7
7
|
export declare type IObject4COA = COA.factory.reserve.IUpdReserveArgs & {
|
|
8
|
+
transactionNumber: string;
|
|
8
9
|
typeOf: 'COAReserveTransaction';
|
|
9
10
|
};
|
|
10
11
|
export declare type IObject4Chevre = Omit<ReserveTransactionFactory.IConfirmParams, 'id'> & {
|
|
@@ -17,7 +17,7 @@ import { IServiceType } from '../serviceType';
|
|
|
17
17
|
import { IThing } from '../thing';
|
|
18
18
|
import { UnitCode } from '../unitCode';
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* 予約集計
|
|
21
21
|
*/
|
|
22
22
|
export interface IAggregateReservation {
|
|
23
23
|
typeOf: 'AggregateReservation';
|
|
@@ -28,7 +28,7 @@ export interface IAggregateReservation {
|
|
|
28
28
|
useActionCount?: number;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* 予約集計つきオファー
|
|
32
32
|
*/
|
|
33
33
|
export interface IOfferWithAggregateReservation extends IThing {
|
|
34
34
|
typeOf: OfferType.Offer;
|
|
@@ -40,7 +40,7 @@ export interface IOfferWithAggregateReservation extends IThing {
|
|
|
40
40
|
remainingAttendeeCapacity?: number;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* オファー集計
|
|
44
44
|
*/
|
|
45
45
|
export interface IAggregateOffer {
|
|
46
46
|
typeOf: OfferType.AggregateOffer;
|
|
@@ -82,7 +82,7 @@ export interface IServiceOutput {
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* イベントのサービス
|
|
86
86
|
*/
|
|
87
87
|
export interface IService {
|
|
88
88
|
/**
|
|
@@ -101,7 +101,7 @@ export interface ISeller {
|
|
|
101
101
|
name?: string | IMultilingualString;
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* イベントに対するオファー
|
|
105
105
|
*/
|
|
106
106
|
export interface IOffer {
|
|
107
107
|
project: IProject;
|
|
@@ -135,7 +135,7 @@ export interface IOffer {
|
|
|
135
135
|
export import ITicketPriceComponent = OfferFactory.ITicketPriceComponent;
|
|
136
136
|
export import ITicketPriceSpecification = OfferFactory.ITicketPriceSpecification;
|
|
137
137
|
/**
|
|
138
|
-
*
|
|
138
|
+
* チケットオファー
|
|
139
139
|
*/
|
|
140
140
|
export interface ITicketOffer extends OfferFactory.IOffer {
|
|
141
141
|
identifier: string;
|
|
@@ -190,7 +190,7 @@ export interface ICOAInfo {
|
|
|
190
190
|
flgEarlyBooking: string;
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
193
|
-
* COA
|
|
193
|
+
* COA券種情報
|
|
194
194
|
*/
|
|
195
195
|
export declare type ICOAOffer = COA.factory.reserve.IUpdReserveTicket & {
|
|
196
196
|
/**
|
|
@@ -237,7 +237,7 @@ export interface ILocation {
|
|
|
237
237
|
export declare type ISuperEvent = ScreeningEventSeriesFactory.IEvent;
|
|
238
238
|
export declare type IName = IMultilingualString;
|
|
239
239
|
/**
|
|
240
|
-
*
|
|
240
|
+
* イベント属性
|
|
241
241
|
*/
|
|
242
242
|
export interface IAttributes extends EventFactory.IAttributes<EventType.ScreeningEvent> {
|
|
243
243
|
/**
|
|
@@ -298,16 +298,16 @@ export interface IAttributes extends EventFactory.IAttributes<EventType.Screenin
|
|
|
298
298
|
aggregateOffer?: IAggregateOffer;
|
|
299
299
|
/**
|
|
300
300
|
* その他COA情報
|
|
301
|
-
*
|
|
301
|
+
* 基本的にsskts対応
|
|
302
302
|
*/
|
|
303
303
|
coaInfo?: ICOAInfo;
|
|
304
304
|
}
|
|
305
305
|
/**
|
|
306
|
-
*
|
|
306
|
+
* イベント
|
|
307
307
|
*/
|
|
308
308
|
export declare type IEvent = EventFactory.IEvent<IAttributes>;
|
|
309
309
|
/**
|
|
310
|
-
*
|
|
310
|
+
* ソート条件
|
|
311
311
|
*/
|
|
312
312
|
export declare type ISortOrder = EventFactory.ISortOrder;
|
|
313
313
|
export interface IOfferSearchConditions {
|
|
@@ -329,7 +329,7 @@ export interface IOfferSearchConditions {
|
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
331
|
/**
|
|
332
|
-
*
|
|
332
|
+
* イベント検索条件
|
|
333
333
|
*/
|
|
334
334
|
export interface ISearchConditions extends EventFactory.ISearchConditions<EventType.ScreeningEvent> {
|
|
335
335
|
/**
|
|
@@ -18,7 +18,7 @@ export interface IReservationFor {
|
|
|
18
18
|
identifier?: string;
|
|
19
19
|
/**
|
|
20
20
|
* その他COA情報
|
|
21
|
-
*
|
|
21
|
+
* 基本的にsskts対応
|
|
22
22
|
*/
|
|
23
23
|
coaInfo?: ICOAInfo;
|
|
24
24
|
location: IEventLocation;
|
|
@@ -38,7 +38,7 @@ export interface ISubReservation {
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* イベント予約
|
|
42
42
|
*/
|
|
43
43
|
export interface IReservation extends ReservationFactory.IReservation<IPriceSpecification> {
|
|
44
44
|
id: string;
|
|
@@ -154,11 +154,12 @@ export interface ITicket {
|
|
|
154
154
|
* COA券種情報
|
|
155
155
|
*/
|
|
156
156
|
coaTicketInfo?: ICOATicketInfoWithDetails;
|
|
157
|
+
coaReserveAmount?: number;
|
|
157
158
|
}
|
|
158
159
|
export declare type IBroker = IUnderName;
|
|
159
160
|
export declare type IProgramMembershipUsed = IPermit;
|
|
160
161
|
/**
|
|
161
|
-
*
|
|
162
|
+
* 予約
|
|
162
163
|
* Describes a reservation for travel, dining or an event. Some reservations require tickets.
|
|
163
164
|
* Note: This type is for information about actual reservations,
|
|
164
165
|
* e.g. in confirmation emails or HTML pages with individual confirmations of reservations.
|
|
@@ -263,7 +264,7 @@ export interface IReservation<T extends IPriceSpecification> extends IThing {
|
|
|
263
264
|
additionalProperty?: IPropertyValue<string>[];
|
|
264
265
|
}
|
|
265
266
|
/**
|
|
266
|
-
*
|
|
267
|
+
* チケットホルダー検索条件
|
|
267
268
|
*/
|
|
268
269
|
export interface IUnderNameSearchConditions {
|
|
269
270
|
id?: string;
|
|
@@ -294,7 +295,7 @@ export interface IUnderNameSearchConditions {
|
|
|
294
295
|
}
|
|
295
296
|
export declare type IBrokerSearchConditions = IUnderNameSearchConditions;
|
|
296
297
|
/**
|
|
297
|
-
*
|
|
298
|
+
* 予約チケット検索条件
|
|
298
299
|
*/
|
|
299
300
|
export interface IReservedTicketSearchConditions {
|
|
300
301
|
/**
|
|
@@ -330,7 +331,7 @@ export interface IStringSearchConditions {
|
|
|
330
331
|
$regex?: string;
|
|
331
332
|
}
|
|
332
333
|
/**
|
|
333
|
-
*
|
|
334
|
+
* ソート条件
|
|
334
335
|
*/
|
|
335
336
|
export interface ISortOrder {
|
|
336
337
|
modifiedTime?: SortType;
|
|
@@ -2,7 +2,7 @@ import { ActionType } from '../actionType';
|
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import { OfferType } from '../offerType';
|
|
4
4
|
import { PermitType } from '../permit';
|
|
5
|
-
import {
|
|
5
|
+
import { IIdentifier } from '../person';
|
|
6
6
|
import { PersonType } from '../personType';
|
|
7
7
|
import { ProductType } from '../product';
|
|
8
8
|
import { IProject } from '../project';
|
|
@@ -12,7 +12,6 @@ import { IPotentialActionsParams as IOrderPotentialActionsParams } from '../tran
|
|
|
12
12
|
export interface IAgent {
|
|
13
13
|
typeOf: PersonType.Person;
|
|
14
14
|
id: string;
|
|
15
|
-
additionalProperty?: IAdditionalProperty;
|
|
16
15
|
identifier: IIdentifier;
|
|
17
16
|
}
|
|
18
17
|
export interface IAcceptedOffer {
|
package/lib/factory/task.d.ts
CHANGED
|
@@ -5,14 +5,14 @@ import { TaskName } from './taskName';
|
|
|
5
5
|
import { TaskStatus } from './taskStatus';
|
|
6
6
|
export declare type IData = any;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* タスク実行結果
|
|
9
9
|
*/
|
|
10
10
|
export interface IExecutionResult {
|
|
11
11
|
executedAt: Date;
|
|
12
12
|
error: any;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* タスク
|
|
16
16
|
*/
|
|
17
17
|
export declare type ITask = IExtendId<IAttributes>;
|
|
18
18
|
export interface IAttributes {
|
|
@@ -52,13 +52,28 @@ export interface IAttributes {
|
|
|
52
52
|
data: IData;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* ソート条件
|
|
56
56
|
*/
|
|
57
57
|
export interface ISortOrder {
|
|
58
58
|
runsAt?: SortType;
|
|
59
59
|
}
|
|
60
|
+
export interface IDataSearchConditions {
|
|
61
|
+
object?: {
|
|
62
|
+
transactionNumber?: {
|
|
63
|
+
$eq?: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
purpose?: {
|
|
67
|
+
id?: {
|
|
68
|
+
$eq?: string;
|
|
69
|
+
};
|
|
70
|
+
orderNumber?: {
|
|
71
|
+
$eq?: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
}
|
|
60
75
|
/**
|
|
61
|
-
*
|
|
76
|
+
* タスク検索条件
|
|
62
77
|
*/
|
|
63
78
|
export interface ISearchConditions<T extends TaskName | string> {
|
|
64
79
|
limit?: number;
|
|
@@ -75,4 +90,5 @@ export interface ISearchConditions<T extends TaskName | string> {
|
|
|
75
90
|
runsThrough?: Date;
|
|
76
91
|
lastTriedFrom?: Date;
|
|
77
92
|
lastTriedThrough?: Date;
|
|
93
|
+
data?: IDataSearchConditions;
|
|
78
94
|
}
|
|
@@ -12,9 +12,10 @@ import * as WebAPIFactory from '../service/webAPI';
|
|
|
12
12
|
import * as TransactionFactory from '../transaction';
|
|
13
13
|
import { TransactionType } from '../transactionType';
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* 取引人
|
|
16
16
|
*/
|
|
17
17
|
export declare type IAgent = TransactionFactory.IAgent;
|
|
18
|
+
export declare type ICustomer = OrderFactory.ICustomer;
|
|
18
19
|
export interface IPaymentMethodByPaymentUrl {
|
|
19
20
|
/**
|
|
20
21
|
* 決済方法区分
|
|
@@ -30,7 +31,7 @@ export interface IPaymentMethodByPaymentUrl {
|
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
/**
|
|
33
|
-
*
|
|
34
|
+
* 注文特典口座
|
|
34
35
|
*/
|
|
35
36
|
export interface IAwardAccount {
|
|
36
37
|
typeOf: AccountType.Account;
|
|
@@ -39,7 +40,7 @@ export interface IAwardAccount {
|
|
|
39
40
|
export interface IObject {
|
|
40
41
|
clientUser?: IClientUser;
|
|
41
42
|
broker?: OrderFactory.IBroker;
|
|
42
|
-
customer?:
|
|
43
|
+
customer?: ICustomer;
|
|
43
44
|
identifier?: OrderFactory.IIdentifier;
|
|
44
45
|
/**
|
|
45
46
|
* 確認番号
|
|
@@ -82,7 +83,7 @@ export interface IStartParamsWithoutDetail {
|
|
|
82
83
|
};
|
|
83
84
|
object: {
|
|
84
85
|
clientUser?: IClientUser;
|
|
85
|
-
customer?:
|
|
86
|
+
customer?: ICustomer;
|
|
86
87
|
passport?: TransactionFactory.IPassportBeforeStart;
|
|
87
88
|
/**
|
|
88
89
|
* 注文名称
|
|
@@ -94,7 +95,7 @@ export interface ISeller extends TransactionFactory.ISeller {
|
|
|
94
95
|
id: string;
|
|
95
96
|
}
|
|
96
97
|
/**
|
|
97
|
-
*
|
|
98
|
+
* 取引開始パラメーター
|
|
98
99
|
*/
|
|
99
100
|
export interface IStartParams extends TransactionFactory.IStartParams<TransactionType.PlaceOrder, IAgent, undefined, IObject> {
|
|
100
101
|
/**
|
|
@@ -176,30 +177,27 @@ export interface IConfirmParams {
|
|
|
176
177
|
result?: IResultParams;
|
|
177
178
|
}
|
|
178
179
|
/**
|
|
179
|
-
*
|
|
180
|
+
* 取引結果
|
|
180
181
|
*/
|
|
181
182
|
export interface IResult {
|
|
182
183
|
/**
|
|
183
|
-
*
|
|
184
|
+
* 注文
|
|
184
185
|
*/
|
|
185
186
|
order: OrderFactory.IOrder;
|
|
186
187
|
}
|
|
187
188
|
/**
|
|
188
|
-
*
|
|
189
|
+
* エラー
|
|
189
190
|
*/
|
|
190
191
|
export declare type IError = any;
|
|
191
192
|
export interface IPotentialActions {
|
|
192
193
|
order: IOrderActionAttributes;
|
|
193
194
|
}
|
|
195
|
+
export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
196
|
+
}
|
|
194
197
|
/**
|
|
195
|
-
*
|
|
198
|
+
* 注文取引
|
|
196
199
|
*/
|
|
197
200
|
export declare type ITransaction = IExtendId<IAttributes>;
|
|
198
|
-
/**
|
|
199
|
-
* 注文取引インターフェース
|
|
200
|
-
*/
|
|
201
|
-
export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
202
|
-
}
|
|
203
201
|
export interface ISearchConditions extends TransactionFactory.ISearchConditions<TransactionType.PlaceOrder> {
|
|
204
202
|
seller?: {
|
|
205
203
|
ids?: string[];
|
|
@@ -10,10 +10,13 @@ import { SortType } from './sortType';
|
|
|
10
10
|
import { TransactionStatusType } from './transactionStatusType';
|
|
11
11
|
import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
|
|
12
12
|
import { TransactionType } from './transactionType';
|
|
13
|
-
export declare type
|
|
14
|
-
export declare type
|
|
13
|
+
export declare type IOmittedProfileAttributes = 'email' | 'telephone' | 'familyName' | 'givenName' | 'age' | 'address' | 'gender' | 'additionalProperty' | 'url';
|
|
14
|
+
export declare type IAgentProfile = Omit<PersonFactory.IProfile, IOmittedProfileAttributes>;
|
|
15
|
+
export declare type IWebApplicationAgent = IWebApplication & IAgentProfile;
|
|
16
|
+
export declare type IPersonAgent = PersonFactory.IPerson;
|
|
17
|
+
export declare type IAgent = Omit<IWebApplicationAgent | PersonFactory.IPerson, IOmittedProfileAttributes>;
|
|
15
18
|
/**
|
|
16
|
-
*
|
|
19
|
+
* 販売者
|
|
17
20
|
* 最適化(2022-05-20~)
|
|
18
21
|
*/
|
|
19
22
|
export declare type ISeller = Omit<SellerFactory.ISeller, 'branchCode' | 'paymentAccepted' | 'additionalProperty' | 'hasMerchantReturnPolicy' | 'email' | 'telephone' | 'location' | 'url' | 'project'>;
|
|
@@ -44,7 +47,7 @@ export interface IPassportBeforeStart {
|
|
|
44
47
|
secret: string;
|
|
45
48
|
}
|
|
46
49
|
/**
|
|
47
|
-
*
|
|
50
|
+
* 取引開始パラメータ
|
|
48
51
|
*/
|
|
49
52
|
export interface IStartParams<T extends TransactionType, TAgent, TRecipient, TObject> {
|
|
50
53
|
project: IProject;
|
|
@@ -69,10 +72,6 @@ export interface IStartParams<T extends TransactionType, TAgent, TRecipient, TOb
|
|
|
69
72
|
*/
|
|
70
73
|
expires: Date;
|
|
71
74
|
}
|
|
72
|
-
export declare type ITransaction<TStartParams, TResult, TError, TPotentialActions> = IExtendId<IAttributes<TStartParams, TResult, TError, TPotentialActions>>;
|
|
73
|
-
/**
|
|
74
|
-
* 取引インターフェース
|
|
75
|
-
*/
|
|
76
75
|
export declare type IAttributes<TStartParams, TResult, TError, TPotentialActions> = TStartParams & {
|
|
77
76
|
/**
|
|
78
77
|
* 取引状態
|
|
@@ -111,8 +110,9 @@ export declare type IAttributes<TStartParams, TResult, TError, TPotentialActions
|
|
|
111
110
|
*/
|
|
112
111
|
potentialActions?: TPotentialActions;
|
|
113
112
|
};
|
|
113
|
+
export declare type ITransaction<TStartParams, TResult, TError, TPotentialActions> = IExtendId<IAttributes<TStartParams, TResult, TError, TPotentialActions>>;
|
|
114
114
|
/**
|
|
115
|
-
*
|
|
115
|
+
* ソート条件
|
|
116
116
|
*/
|
|
117
117
|
export interface ISortOrder {
|
|
118
118
|
startDate?: SortType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chevre/factory",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.225.0",
|
|
4
4
|
"description": "Chevre Factory Library for Javascript",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"typescript": "^4.3.2"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@motionpicture/coa-service": "
|
|
63
|
+
"@motionpicture/coa-service": "9.2.0",
|
|
64
64
|
"@motionpicture/gmo-service": "^5.0.0",
|
|
65
65
|
"@surfrock/sdk": "1.1.0",
|
|
66
66
|
"@waiter/factory": "2.1.0",
|