@chevre/factory 4.259.0-alpha.10 → 4.259.0-alpha.11
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/factory/account.d.ts +1 -1
- package/lib/factory/accountTitle.d.ts +1 -1
- package/lib/factory/action/authorize/offer/product.d.ts +5 -1
- package/lib/factory/action/interact/confirm/registerService.d.ts +1 -1
- package/lib/factory/action/interact/confirm/reservation.d.ts +1 -1
- package/lib/factory/action.d.ts +2 -2
- package/lib/factory/assetTransaction/pay.d.ts +1 -1
- package/lib/factory/authorization.d.ts +1 -1
- package/lib/factory/creativeWork/message/email.d.ts +1 -1
- package/lib/factory/creativeWork/movie.d.ts +1 -1
- package/lib/factory/customer.d.ts +1 -1
- package/lib/factory/event/screeningEvent.d.ts +4 -3
- package/lib/factory/event/screeningEventSeries.d.ts +2 -2
- package/lib/factory/merchantReturnPolicy.d.ts +1 -1
- package/lib/factory/permit.d.ts +1 -1
- package/lib/factory/place.d.ts +1 -1
- package/lib/factory/priceSpecification.d.ts +1 -1
- package/lib/factory/report/accountingReport.d.ts +14 -8
- package/lib/factory/reservation/event.d.ts +1 -1
- package/lib/factory/reservation.d.ts +2 -2
- package/lib/factory/seller.d.ts +2 -2
- package/lib/factory/service/paymentService.d.ts +5 -2
- package/lib/factory/task/importEventCapacitiesFromCOA.d.ts +1 -1
- package/lib/factory/task/importEventsFromCOA.d.ts +1 -1
- package/lib/factory/task/importOffersFromCOA.d.ts +1 -1
- package/lib/factory/task/orderProgramMembership.d.ts +1 -1
- package/lib/factory/task/placeOrder.d.ts +1 -1
- package/lib/factory/task/sendOrder.d.ts +1 -1
- package/lib/factory/task/voidMoneyTransferTransaction.d.ts +1 -1
- package/lib/factory/task/voidPayTransaction.d.ts +1 -1
- package/lib/factory/task/voidRegisterServiceTransaction.d.ts +1 -1
- package/lib/factory/task/voidReserveTransaction.d.ts +1 -1
- package/lib/factory/task.d.ts +1 -1
- package/lib/factory/transaction/moneyTransfer.d.ts +1 -1
- package/lib/factory/transaction/placeOrder.d.ts +1 -1
- package/package.json +1 -1
package/lib/factory/account.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface IDefinedTerm {
|
|
|
12
12
|
* {@link https://pending.schema.org/CategoryCode}
|
|
13
13
|
*/
|
|
14
14
|
export interface IAccountTitle {
|
|
15
|
-
project: IProject
|
|
15
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
16
16
|
typeOf: 'AccountTitle';
|
|
17
17
|
/**
|
|
18
18
|
* A short textual code that uniquely identifies the value.
|
|
@@ -14,7 +14,11 @@ export declare type IRecipient = ActionFactory.IParticipantAsWebApplication | Ac
|
|
|
14
14
|
export declare type IItemOffered = Pick<IProduct, 'project' | 'typeOf' | 'id' | 'name' | 'serviceOutput' | 'pointAward'>;
|
|
15
15
|
export declare type IAcceptedOfferWithoutDetail = RegisterServiceTransactionFactory.IAcceptedOfferWithoutDetail;
|
|
16
16
|
export declare type ISellerMakesOffer = Pick<ISeller, 'project' | 'id' | 'name' | 'typeOf'>;
|
|
17
|
-
export interface IAcceptedOffer extends
|
|
17
|
+
export interface IAcceptedOffer extends Pick<IOffer, 'project' | 'typeOf' | 'id' | 'identifier' | 'itemOffered' | 'name' | 'priceCurrency' | 'priceSpecification' | 'seller'> {
|
|
18
|
+
/**
|
|
19
|
+
* オファーコード
|
|
20
|
+
*/
|
|
21
|
+
identifier?: string;
|
|
18
22
|
/**
|
|
19
23
|
* オファー対象アイテム
|
|
20
24
|
*/
|
|
@@ -3,7 +3,7 @@ import { AssetTransactionType } from '../../../assetTransactionType';
|
|
|
3
3
|
import { ISimpleOrder } from '../../../order';
|
|
4
4
|
import * as OrderProgramMembershipFactory from '../../../task/orderProgramMembership';
|
|
5
5
|
import * as ConfirmActionFactory from '../confirm';
|
|
6
|
-
export declare type IObject =
|
|
6
|
+
export declare type IObject = Pick<RegisterServiceFactory.IConfirmParams, 'transactionNumber' | 'endDate'> & {
|
|
7
7
|
transactionNumber?: string;
|
|
8
8
|
typeOf: AssetTransactionType.RegisterService;
|
|
9
9
|
object?: {
|
|
@@ -8,7 +8,7 @@ export declare type IObject4COA = COA.factory.reserve.IUpdReserveArgs & {
|
|
|
8
8
|
transactionNumber: string;
|
|
9
9
|
typeOf: 'COAReserveTransaction';
|
|
10
10
|
};
|
|
11
|
-
export declare type IObject4Chevre =
|
|
11
|
+
export declare type IObject4Chevre = Pick<ReserveTransactionFactory.IConfirmParams, 'transactionNumber' | 'object' | 'potentialActions'> & {
|
|
12
12
|
transactionNumber: string;
|
|
13
13
|
typeOf: AssetTransactionType.Reserve;
|
|
14
14
|
};
|
package/lib/factory/action.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface IParticipantAsWebApplication {
|
|
|
13
13
|
name?: string;
|
|
14
14
|
url?: string;
|
|
15
15
|
}
|
|
16
|
-
export declare type IParticipantAsPerson =
|
|
16
|
+
export declare type IParticipantAsPerson = Pick<IPersonAttributes, 'id' | 'typeOf'> & {
|
|
17
17
|
name?: string;
|
|
18
18
|
url?: string;
|
|
19
19
|
};
|
|
@@ -54,7 +54,7 @@ export declare type IAdditionalProperty = IPropertyValue<string>[];
|
|
|
54
54
|
*/
|
|
55
55
|
export interface IAttributes<T extends ActionType, TObject, TResult> {
|
|
56
56
|
identifier?: string;
|
|
57
|
-
project: IProject
|
|
57
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
58
58
|
/**
|
|
59
59
|
* A property-value pair representing an additional characteristics of the entitity,
|
|
60
60
|
* e.g. a product feature or another characteristic for which there is no matching property in schema.org.
|
|
@@ -95,7 +95,7 @@ export interface IObject {
|
|
|
95
95
|
payAction?: any;
|
|
96
96
|
onPaymentStatusChanged?: IOnPaymentStatusChanged;
|
|
97
97
|
}
|
|
98
|
-
export declare type IObjectWithoutDetail =
|
|
98
|
+
export declare type IObjectWithoutDetail = Pick<IObject, 'typeOf' | 'id' | 'paymentMethod'>;
|
|
99
99
|
export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObjectWithoutDetail> & {
|
|
100
100
|
recipient: IRecipient;
|
|
101
101
|
purpose?: IPayPurpose;
|
|
@@ -19,7 +19,7 @@ export interface IAbout extends Pick<IThing, 'name'> {
|
|
|
19
19
|
name: string;
|
|
20
20
|
}
|
|
21
21
|
export interface IAttributes {
|
|
22
|
-
project?: IProject
|
|
22
|
+
project?: Pick<IProject, 'id' | 'typeOf'>;
|
|
23
23
|
typeOf: CreativeWorkType.EmailMessage;
|
|
24
24
|
sender: IParticipant;
|
|
25
25
|
toRecipient: IParticipant;
|
|
@@ -20,7 +20,7 @@ export interface IDistributor {
|
|
|
20
20
|
* {@link https://schema.org/Movie}
|
|
21
21
|
*/
|
|
22
22
|
export interface ICreativeWork extends CreativeWorkFactory.ICreativeWork {
|
|
23
|
-
project: IProject
|
|
23
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
24
24
|
identifier: string;
|
|
25
25
|
/**
|
|
26
26
|
* The duration of the item (movie, audio recording, event, etc.) in ISO 8601 date format.
|
|
@@ -107,7 +107,7 @@ export interface ISeller {
|
|
|
107
107
|
* イベントに対するオファー
|
|
108
108
|
*/
|
|
109
109
|
export interface IOffer {
|
|
110
|
-
project: IProject
|
|
110
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
111
111
|
typeOf: OfferType.Offer;
|
|
112
112
|
priceCurrency: PriceCurrency.JPY;
|
|
113
113
|
/**
|
|
@@ -135,6 +135,7 @@ export interface IOffer {
|
|
|
135
135
|
unacceptedPaymentMethod?: string[];
|
|
136
136
|
seller: ISeller;
|
|
137
137
|
}
|
|
138
|
+
export declare type IOffer4COA = Pick<IOffer, 'project' | 'typeOf' | 'offeredThrough' | 'priceCurrency'>;
|
|
138
139
|
export import ITicketPriceComponent = OfferFactory.ITicketPriceComponent;
|
|
139
140
|
export import ITicketPriceSpecification = OfferFactory.ITicketPriceSpecification;
|
|
140
141
|
/**
|
|
@@ -215,7 +216,7 @@ export declare type ICOAOffer = COA.factory.reserve.IUpdReserveTicket & {
|
|
|
215
216
|
};
|
|
216
217
|
export declare type IWorkPerformed = ScreeningEventSeriesFactory.IWorkPerformed;
|
|
217
218
|
export interface ILocation {
|
|
218
|
-
project: IProject
|
|
219
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
219
220
|
/**
|
|
220
221
|
* 場所タイプ
|
|
221
222
|
*/
|
|
@@ -278,7 +279,7 @@ export interface IAttributes extends EventFactory.IAttributes<EventType.Screenin
|
|
|
278
279
|
/**
|
|
279
280
|
* 販売情報
|
|
280
281
|
*/
|
|
281
|
-
offers?: IOffer;
|
|
282
|
+
offers?: IOffer | IOffer4COA;
|
|
282
283
|
/**
|
|
283
284
|
* 発券数
|
|
284
285
|
*/
|
|
@@ -13,7 +13,7 @@ import { IProject } from '../project';
|
|
|
13
13
|
* 施設コンテンツに対するオファー
|
|
14
14
|
*/
|
|
15
15
|
export interface IOffer {
|
|
16
|
-
project: IProject
|
|
16
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
17
17
|
typeOf: OfferType.Offer;
|
|
18
18
|
priceCurrency: PriceCurrency.JPY;
|
|
19
19
|
unacceptedPaymentMethod?: string[];
|
|
@@ -67,7 +67,7 @@ export interface ICOAInfo {
|
|
|
67
67
|
dateMvtkBegin: string;
|
|
68
68
|
}
|
|
69
69
|
export interface ILocation {
|
|
70
|
-
project: IProject
|
|
70
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
71
71
|
typeOf: PlaceType.MovieTheater;
|
|
72
72
|
/**
|
|
73
73
|
* 施設ID
|
|
@@ -41,7 +41,7 @@ export declare enum MerchantReturnEnumeration {
|
|
|
41
41
|
*/
|
|
42
42
|
MerchantReturnUnspecified = "MerchantReturnUnspecified"
|
|
43
43
|
}
|
|
44
|
-
export interface IMerchantReturnPolicy extends Pick<IThing, 'name'> {
|
|
44
|
+
export interface IMerchantReturnPolicy extends Pick<IThing, 'name' | 'url'> {
|
|
45
45
|
typeOf: 'MerchantReturnPolicy';
|
|
46
46
|
/**
|
|
47
47
|
* The type of return fees if the product is returned due to customer remorse.
|
package/lib/factory/permit.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare type IIssuedThrough = Pick<IProduct, 'id' | 'project' | 'serviceT
|
|
|
14
14
|
* {@link https://schema.org/Permit}
|
|
15
15
|
*/
|
|
16
16
|
export interface IPermit extends Pick<IThing, 'name'> {
|
|
17
|
-
project: IProject
|
|
17
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
18
18
|
typeOf: PermitType;
|
|
19
19
|
identifier?: string;
|
|
20
20
|
accessCode?: string;
|
package/lib/factory/place.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export interface IAccounting {
|
|
|
28
28
|
* 価格仕様インターフェース
|
|
29
29
|
*/
|
|
30
30
|
export interface IPriceSpecification<T extends PriceSpecificationType> {
|
|
31
|
-
project: IProject
|
|
31
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
32
32
|
id?: string;
|
|
33
33
|
typeOf: T;
|
|
34
34
|
name?: string | IMultilingualString;
|
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
import { IAction as IPayAction } from '../action/trade/pay';
|
|
2
|
-
import { IAction as IRefundAction } from '../action/trade/refund';
|
|
1
|
+
import { IAction as IPayAction, IPaymentService as IPayObject } from '../action/trade/pay';
|
|
2
|
+
import { IAction as IRefundAction, IPaymentService as IRefundObject } from '../action/trade/refund';
|
|
3
3
|
import { IOrder } from '../order';
|
|
4
|
-
export declare type
|
|
5
|
-
export declare type IOptimizedPayAction =
|
|
6
|
-
|
|
4
|
+
export declare type IPayActionObject = Pick<IPayObject, 'id' | 'paymentMethod' | 'typeOf'>;
|
|
5
|
+
export declare type IOptimizedPayAction = Pick<IPayAction, 'actionStatus' | 'endDate' | 'id' | 'project' | 'purpose' | 'startDate' | 'typeOf'> & {
|
|
6
|
+
object: IPayActionObject[];
|
|
7
|
+
};
|
|
8
|
+
export declare type IRefundActionObject = Pick<IRefundObject, 'id' | 'paymentMethod' | 'typeOf'>;
|
|
9
|
+
export declare type IOptimizedRefundAction = Pick<IRefundAction, 'actionStatus' | 'endDate' | 'id' | 'project' | 'purpose' | 'startDate' | 'typeOf'> & {
|
|
10
|
+
object: IRefundActionObject[];
|
|
11
|
+
};
|
|
7
12
|
export declare type IAction = IOptimizedPayAction | IOptimizedRefundAction;
|
|
13
|
+
export declare type IOrderAsMainEntity = IOrder;
|
|
8
14
|
/**
|
|
9
|
-
*
|
|
15
|
+
* 経理レポート
|
|
10
16
|
*/
|
|
11
17
|
export interface IReport {
|
|
12
18
|
mainEntity: IAction;
|
|
13
19
|
isPartOf: {
|
|
14
|
-
mainEntity:
|
|
20
|
+
mainEntity: IOrderAsMainEntity;
|
|
15
21
|
};
|
|
16
22
|
}
|
|
17
23
|
/**
|
|
18
|
-
*
|
|
24
|
+
* 検索条件
|
|
19
25
|
*/
|
|
20
26
|
export interface ISearchConditions {
|
|
21
27
|
limit?: number;
|
|
@@ -31,7 +31,7 @@ export interface IReservationFor {
|
|
|
31
31
|
coaInfo?: ICOAInfo;
|
|
32
32
|
location: IEventLocation;
|
|
33
33
|
name: IEventName;
|
|
34
|
-
project: IProject
|
|
34
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
35
35
|
startDate: Date;
|
|
36
36
|
superEvent: IOptimizedSuperEvent;
|
|
37
37
|
typeOf: EventType.ScreeningEvent;
|
|
@@ -28,7 +28,7 @@ export interface ITicketType {
|
|
|
28
28
|
identifier: string;
|
|
29
29
|
name?: string | IMultilingualString;
|
|
30
30
|
priceCurrency: PriceCurrency;
|
|
31
|
-
project: IProject
|
|
31
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
32
32
|
typeOf: OfferType;
|
|
33
33
|
validRateLimit?: OfferFactory.IValidRateLimit;
|
|
34
34
|
}
|
|
@@ -179,7 +179,7 @@ export interface IIssuedThrough {
|
|
|
179
179
|
* {@link https://schema.org/Reservation}
|
|
180
180
|
*/
|
|
181
181
|
export interface IReservation<T extends IPriceSpecification> extends Pick<IThing, 'identifier' | 'name'> {
|
|
182
|
-
project: IProject
|
|
182
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
183
183
|
/**
|
|
184
184
|
* type of object
|
|
185
185
|
*/
|
package/lib/factory/seller.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { OrganizationType } from './organizationType';
|
|
|
5
5
|
import { IProject } from './project';
|
|
6
6
|
import { IPropertyValue } from './propertyValue';
|
|
7
7
|
import { SortType } from './sortType';
|
|
8
|
-
export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee'>;
|
|
8
|
+
export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'url'>;
|
|
9
9
|
export declare type IHasMerchantReturnPolicy = ISellerMerchantReturnPolicy[];
|
|
10
10
|
/**
|
|
11
11
|
* 利用可能決済インターフェース
|
|
@@ -17,7 +17,7 @@ export interface IPaymentAccepted {
|
|
|
17
17
|
paymentMethodType: string;
|
|
18
18
|
}
|
|
19
19
|
export interface ISeller extends Pick<IOrganization, 'typeOf' | 'id' | 'location' | 'telephone' | 'additionalProperty' | 'name' | 'url'> {
|
|
20
|
-
project: IProject
|
|
20
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
21
21
|
/**
|
|
22
22
|
* The geographic area where a service or offered item is provided.
|
|
23
23
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IOrganization } from '../organization';
|
|
2
|
-
import { IAvailableChannel, IServiceType } from '../product';
|
|
3
|
-
import { IProject } from '../project';
|
|
2
|
+
import { IAvailableChannel as IProductAvailableChannel, IServiceType } from '../product';
|
|
3
|
+
import { IOnPaymentStatusChanged, IProject } from '../project';
|
|
4
4
|
import { IPropertyValue } from '../propertyValue';
|
|
5
5
|
import { IThing } from '../thing';
|
|
6
6
|
export declare enum PaymentServiceType {
|
|
@@ -42,6 +42,9 @@ export interface IProvider extends Pick<IOrganization, 'id' | 'name' | 'typeOf'>
|
|
|
42
42
|
*/
|
|
43
43
|
credentials?: IProviderCredentials;
|
|
44
44
|
}
|
|
45
|
+
export declare type IAvailableChannel = IProductAvailableChannel & {
|
|
46
|
+
onPaymentStatusChanged?: IOnPaymentStatusChanged;
|
|
47
|
+
};
|
|
45
48
|
/**
|
|
46
49
|
* 決済サービスインターフェース
|
|
47
50
|
* {@link https://schema.org/Service}
|
|
@@ -3,7 +3,7 @@ import { IProject } from '../project';
|
|
|
3
3
|
import * as TaskFactory from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
5
|
export interface IData {
|
|
6
|
-
project: IProject
|
|
6
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
7
7
|
theaterCode: string;
|
|
8
8
|
}
|
|
9
9
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
@@ -41,7 +41,7 @@ export interface IData {
|
|
|
41
41
|
* 注文取引確定後アクション
|
|
42
42
|
*/
|
|
43
43
|
potentialActions?: IPotentialActions;
|
|
44
|
-
project: IProject
|
|
44
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
45
45
|
typeOf: ActionType.OrderAction;
|
|
46
46
|
}
|
|
47
47
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
@@ -4,7 +4,7 @@ import { IProject } from '../project';
|
|
|
4
4
|
import * as TaskFactory from '../task';
|
|
5
5
|
import { TaskName } from '../taskName';
|
|
6
6
|
export interface IData {
|
|
7
|
-
project: IProject
|
|
7
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
8
8
|
object: {
|
|
9
9
|
confirmationNumber: string;
|
|
10
10
|
orderNumber: string;
|
|
@@ -4,7 +4,7 @@ import { IProject } from '../project';
|
|
|
4
4
|
import * as TaskFactory from '../task';
|
|
5
5
|
import { TaskName } from '../taskName';
|
|
6
6
|
export interface IData {
|
|
7
|
-
project: IProject
|
|
7
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
8
8
|
object: SendOrderActionFactory.IObject;
|
|
9
9
|
potentialActions?: SendOrderActionFactory.IPotentialActions;
|
|
10
10
|
}
|
package/lib/factory/task.d.ts
CHANGED