@chevre/factory 4.259.0-alpha.8 → 4.259.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/factory/action/authorize/offer/product.d.ts +2 -2
- package/lib/factory/assetTransaction/registerService.d.ts +4 -2
- package/lib/factory/order.d.ts +3 -2
- package/lib/factory/ownershipInfo.d.ts +3 -3
- package/lib/factory/permit.d.ts +2 -1
- package/lib/factory/product.d.ts +3 -3
- package/lib/factory/service/paymentService.d.ts +3 -3
- package/package.json +1 -1
|
@@ -11,14 +11,14 @@ import { TransactionType } from '../../../transactionType';
|
|
|
11
11
|
import * as AuthorizeActionFactory from '../../authorize';
|
|
12
12
|
export declare type IAgent = ActionFactory.IParticipantAsSeller;
|
|
13
13
|
export declare type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
14
|
-
export declare type
|
|
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
17
|
export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'price' | 'availability' | 'availableAtOrFrom'> {
|
|
18
18
|
/**
|
|
19
19
|
* オファー対象アイテム
|
|
20
20
|
*/
|
|
21
|
-
itemOffered:
|
|
21
|
+
itemOffered: IItemOffered;
|
|
22
22
|
/**
|
|
23
23
|
* 販売者
|
|
24
24
|
*/
|
|
@@ -4,7 +4,8 @@ import * as AssetTransactionFactory from '../assetTransaction';
|
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
6
|
import { OfferType } from '../offerType';
|
|
7
|
-
import {
|
|
7
|
+
import { IPermit } from '../permit';
|
|
8
|
+
import { IProduct } from '../product';
|
|
8
9
|
export import IAgent = AssetTransactionFactory.IAgent;
|
|
9
10
|
export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObjectWithoutDetail>;
|
|
10
11
|
/**
|
|
@@ -51,6 +52,7 @@ export interface IAcceptedPointAward {
|
|
|
51
52
|
};
|
|
52
53
|
};
|
|
53
54
|
}
|
|
55
|
+
export declare type IServiceOutput = IPermit;
|
|
54
56
|
export interface IAcceptedItemOffered {
|
|
55
57
|
id?: string;
|
|
56
58
|
pointAward?: IAcceptedPointAward;
|
|
@@ -61,7 +63,7 @@ export interface IAcceptedOfferWithoutDetail {
|
|
|
61
63
|
id: string;
|
|
62
64
|
itemOffered: IAcceptedItemOffered;
|
|
63
65
|
}
|
|
64
|
-
export interface IItemOffered extends IProduct {
|
|
66
|
+
export interface IItemOffered extends Pick<IProduct, 'id' | 'pointAward' | 'project' | 'serviceOutput' | 'typeOf'> {
|
|
65
67
|
serviceOutput: IServiceOutput;
|
|
66
68
|
}
|
|
67
69
|
export interface IAcceptedOffer {
|
package/lib/factory/order.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ export declare type IReservation = Pick<EventReservationFactory.IReservation, 'a
|
|
|
98
98
|
reservationFor: IReservationFor;
|
|
99
99
|
reservedTicket: IReservedTicket;
|
|
100
100
|
};
|
|
101
|
-
export declare type IPermit =
|
|
101
|
+
export declare type IPermit = Pick<PermitFactory.IPermit, 'amount' | 'identifier' | 'issuedThrough' | 'name' | 'project' | 'typeOf' | 'validFor'>;
|
|
102
102
|
export interface IMoneyTransferPendingTransaction {
|
|
103
103
|
typeOf: AssetTransactionType.MoneyTransfer;
|
|
104
104
|
/**
|
|
@@ -239,13 +239,14 @@ export interface IEventServiceAsOrderedItem {
|
|
|
239
239
|
};
|
|
240
240
|
serviceType?: IServiceType;
|
|
241
241
|
}
|
|
242
|
+
export declare type IProductAsOrderedItem = Pick<IProduct, 'id' | 'serviceType' | 'typeOf'>;
|
|
242
243
|
/**
|
|
243
244
|
* 注文アイテム
|
|
244
245
|
* {@link https://schema.org/OrderItem}
|
|
245
246
|
*/
|
|
246
247
|
export interface IOrderedItem {
|
|
247
248
|
typeOf: 'OrderItem';
|
|
248
|
-
orderedItem:
|
|
249
|
+
orderedItem: IProductAsOrderedItem | IEventServiceAsOrderedItem;
|
|
249
250
|
}
|
|
250
251
|
/**
|
|
251
252
|
* 注文
|
|
@@ -32,7 +32,7 @@ export interface IReservation {
|
|
|
32
32
|
bookingService?: IBookingService;
|
|
33
33
|
}
|
|
34
34
|
export declare type IReservationWithDetail = IReservation & IEventReservation;
|
|
35
|
-
export declare type IPermit = PermitFactory.IPermit
|
|
35
|
+
export declare type IPermit = Pick<PermitFactory.IPermit, 'identifier' | 'issuedThrough' | 'name' | 'project' | 'typeOf' | 'validFor'>;
|
|
36
36
|
/**
|
|
37
37
|
* 所有対象物 (Product or Service)
|
|
38
38
|
*/
|
|
@@ -40,7 +40,7 @@ export declare type IGood = IReservation | IPermit;
|
|
|
40
40
|
/**
|
|
41
41
|
* 所有対象物(対象物詳細有)
|
|
42
42
|
*/
|
|
43
|
-
export declare type IGoodWithDetail = IReservationWithDetail | IPermit;
|
|
43
|
+
export declare type IGoodWithDetail = IReservationWithDetail | PermitFactory.IPermit;
|
|
44
44
|
/**
|
|
45
45
|
* 所有者
|
|
46
46
|
*/
|
|
@@ -74,7 +74,7 @@ export declare type OwnershipInfoType = 'OwnershipInfo';
|
|
|
74
74
|
* 所有権
|
|
75
75
|
*/
|
|
76
76
|
export interface IOwnershipInfo<T extends IGood | IGoodWithDetail> {
|
|
77
|
-
project: IProject
|
|
77
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
78
78
|
/**
|
|
79
79
|
* object type
|
|
80
80
|
*/
|
package/lib/factory/permit.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { IThing } from './thing';
|
|
|
8
8
|
export declare enum PermitType {
|
|
9
9
|
Permit = "Permit"
|
|
10
10
|
}
|
|
11
|
+
export declare type IIssuedThrough = Pick<IProduct, 'id' | 'project' | 'serviceType' | 'typeOf'>;
|
|
11
12
|
/**
|
|
12
13
|
* A permit issued by an organization, e.g. a parking pass.
|
|
13
14
|
* {@link https://schema.org/Permit}
|
|
@@ -30,7 +31,7 @@ export interface IPermit extends IThing {
|
|
|
30
31
|
/**
|
|
31
32
|
* The service through with the permit was granted.
|
|
32
33
|
*/
|
|
33
|
-
issuedThrough?:
|
|
34
|
+
issuedThrough?: IIssuedThrough;
|
|
34
35
|
/**
|
|
35
36
|
* The target audience for this permit.
|
|
36
37
|
*/
|
package/lib/factory/product.d.ts
CHANGED
|
@@ -87,8 +87,8 @@ export interface IAvailableChannel {
|
|
|
87
87
|
* プロダクトインターフェース
|
|
88
88
|
* {@link https://schema.org/Product}
|
|
89
89
|
*/
|
|
90
|
-
export interface IProduct extends IThing {
|
|
91
|
-
project: IProject
|
|
90
|
+
export interface IProduct extends Pick<IThing, 'name' | 'description'> {
|
|
91
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
92
92
|
typeOf: ProductType;
|
|
93
93
|
id?: string;
|
|
94
94
|
availableChannel?: IAvailableChannel;
|
|
@@ -104,7 +104,7 @@ export interface IProduct extends IThing {
|
|
|
104
104
|
/**
|
|
105
105
|
* The product identifier, such as ISBN. For example: meta itemprop="productID" content="isbn:123-456-789".
|
|
106
106
|
*/
|
|
107
|
-
productID
|
|
107
|
+
productID: string;
|
|
108
108
|
/**
|
|
109
109
|
* The tangible thing generated by the service, e.g. a passport, permit, etc.
|
|
110
110
|
*/
|
|
@@ -47,12 +47,12 @@ export interface IProvider extends IOrganization {
|
|
|
47
47
|
* 決済サービスインターフェース
|
|
48
48
|
* {@link https://schema.org/Service}
|
|
49
49
|
*/
|
|
50
|
-
export interface IService extends IThing {
|
|
51
|
-
project: IProject
|
|
50
|
+
export interface IService extends Pick<IThing, 'name' | 'description'> {
|
|
51
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
52
52
|
typeOf: PaymentServiceType;
|
|
53
53
|
id?: string;
|
|
54
54
|
availableChannel?: IAvailableChannel;
|
|
55
|
-
productID
|
|
55
|
+
productID: string;
|
|
56
56
|
/**
|
|
57
57
|
* 決済サービス提供者(決済サービスを利用する販売者)
|
|
58
58
|
*/
|