@chevre/factory 4.269.0-alpha.1 → 4.269.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.
|
@@ -4,14 +4,17 @@ import * as RegisterServiceTransactionFactory from '../../../assetTransaction/re
|
|
|
4
4
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
5
5
|
import { IOffer, ITicketPriceSpecification } from '../../../offer';
|
|
6
6
|
import * as OrderFactory from '../../../order';
|
|
7
|
+
import { IPermit } from '../../../permit';
|
|
7
8
|
import { PriceCurrency } from '../../../priceCurrency';
|
|
8
|
-
import { IProduct } from '../../../product';
|
|
9
|
+
import { IProduct, IServiceOutput as IProductServiceOutput } from '../../../product';
|
|
9
10
|
import { ISeller } from '../../../seller';
|
|
10
11
|
import { TransactionType } from '../../../transactionType';
|
|
11
12
|
import * as AuthorizeActionFactory from '../../authorize';
|
|
12
13
|
export declare type IAgent = ActionFactory.IParticipantAsSeller;
|
|
13
14
|
export declare type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
14
|
-
export declare type IItemOffered = Pick<IProduct, 'project' | 'typeOf' | 'id' | 'name' | '
|
|
15
|
+
export declare type IItemOffered = Pick<IProduct, 'project' | 'typeOf' | 'id' | 'name' | 'pointAward'> & {
|
|
16
|
+
serviceOutput: IProductServiceOutput & IPermit;
|
|
17
|
+
};
|
|
15
18
|
export declare type IAcceptedOfferWithoutDetail = RegisterServiceTransactionFactory.IAcceptedOfferWithoutDetail;
|
|
16
19
|
export declare type ISellerMakesOffer = Pick<ISeller, 'project' | 'id' | 'name' | 'typeOf'>;
|
|
17
20
|
export interface IAcceptedOffer extends Pick<IOffer, 'project' | 'typeOf' | 'id' | 'identifier' | 'itemOffered' | 'name' | 'priceCurrency' | 'priceSpecification' | 'seller'> {
|
package/lib/product.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActionType } from './actionType';
|
|
2
2
|
import { ICategoryCode } from './categoryCode';
|
|
3
3
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
4
|
-
import { IOffer } from './offer';
|
|
4
|
+
import { IOffer as IBaseOffer } from './offer';
|
|
5
5
|
import { IPermit } from './permit';
|
|
6
6
|
import { IProject } from './project';
|
|
7
7
|
import { IPropertyValue } from './propertyValue';
|
|
@@ -13,7 +13,7 @@ import { IThing } from './thing';
|
|
|
13
13
|
*/
|
|
14
14
|
export declare enum ProductType {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* 興行
|
|
17
17
|
*/
|
|
18
18
|
EventService = "EventService",
|
|
19
19
|
/**
|
|
@@ -33,8 +33,9 @@ export interface IHasOfferCatalog {
|
|
|
33
33
|
typeOf: 'OfferCatalog';
|
|
34
34
|
id: string;
|
|
35
35
|
}
|
|
36
|
-
export declare type
|
|
37
|
-
|
|
36
|
+
export declare type IMembershipPointsEarned = Pick<IQuantitativeValue<string>, 'name' | 'typeOf' | 'unitText' | 'value'>;
|
|
37
|
+
export declare type IServiceOutput = Pick<IPermit, 'typeOf' | 'amount'> & {
|
|
38
|
+
membershipPointsEarned?: IMembershipPointsEarned;
|
|
38
39
|
automaticRenewal?: boolean;
|
|
39
40
|
};
|
|
40
41
|
export declare type IPointAwardAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
|
|
@@ -85,6 +86,11 @@ export interface IAvailableChannel {
|
|
|
85
86
|
credentials?: ICredentials;
|
|
86
87
|
}
|
|
87
88
|
export declare type IServiceType = Pick<ICategoryCode, 'codeValue' | 'inCodeSet' | 'project' | 'typeOf'>;
|
|
89
|
+
export declare type IOffer = Pick<IBaseOffer, 'project' | 'typeOf' | 'priceCurrency' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'> & {
|
|
90
|
+
seller?: {
|
|
91
|
+
id?: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
88
94
|
/**
|
|
89
95
|
* プロダクトインターフェース
|
|
90
96
|
* {@link https://schema.org/Product}
|
package/lib/product.js
CHANGED
|
@@ -8,7 +8,7 @@ export declare enum StringValue {
|
|
|
8
8
|
* A point value or interval for product characteristics and other purposes.
|
|
9
9
|
* {@link https://schema.org/QuantitativeValue}
|
|
10
10
|
*/
|
|
11
|
-
export interface IQuantitativeValue<T extends UnitCode> extends Pick<IThing, 'name'> {
|
|
11
|
+
export interface IQuantitativeValue<T extends UnitCode | string> extends Pick<IThing, 'name'> {
|
|
12
12
|
/**
|
|
13
13
|
* The upper value of some characteristic or property.
|
|
14
14
|
*/
|