@chevre/factory 4.269.0-alpha.1 → 4.270.0-alpha.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' | 'serviceOutput' | 'pointAward'>;
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/offer.d.ts CHANGED
@@ -73,6 +73,9 @@ export declare type IHasMerchantReturnPolicy = (Pick<IOfferMerchantReturnPolicy,
73
73
  })[];
74
74
  export { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder };
75
75
  export interface IAvailableAtOrFrom {
76
+ /**
77
+ * アプリケーションID
78
+ */
76
79
  id: string;
77
80
  }
78
81
  /**
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 IServiceOutput = IPermit & {
37
- membershipPointsEarned?: IQuantitativeValue<any>;
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
@@ -7,7 +7,7 @@ exports.ProductType = void 0;
7
7
  var ProductType;
8
8
  (function (ProductType) {
9
9
  /**
10
- * イベントサービス
10
+ * 興行
11
11
  */
12
12
  ProductType["EventService"] = "EventService";
13
13
  /**
@@ -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
  */
package/lib/seller.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { IMerchantReturnPolicy } from './merchantReturnPolicy';
2
2
  import { IMultilingualString } from './multilingualString';
3
+ import { IOffer } from './offer';
3
4
  import { IOrganization } from './organization';
4
5
  import { OrganizationType } from './organizationType';
5
6
  import { IProject } from './project';
@@ -8,7 +9,7 @@ import { SortType } from './sortType';
8
9
  export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'url'>;
9
10
  export declare type IHasMerchantReturnPolicy = ISellerMerchantReturnPolicy[];
10
11
  /**
11
- * 利用可能決済インターフェース
12
+ * 利用可能決済
12
13
  */
13
14
  export interface IPaymentAccepted {
14
15
  /**
@@ -16,6 +17,7 @@ export interface IPaymentAccepted {
16
17
  */
17
18
  paymentMethodType: string;
18
19
  }
20
+ export declare type IMakesOffer = Pick<IOffer, 'typeOf' | 'availableAtOrFrom'>;
19
21
  export interface ISeller extends Pick<IOrganization, 'typeOf' | 'id' | 'location' | 'telephone' | 'additionalProperty' | 'name' | 'url'> {
20
22
  project: Pick<IProject, 'id' | 'typeOf'>;
21
23
  /**
@@ -30,17 +32,18 @@ export interface ISeller extends Pick<IOrganization, 'typeOf' | 'id' | 'location
30
32
  /**
31
33
  * A pointer to products or services offered by the organization or person.
32
34
  */
35
+ makesOffer?: IMakesOffer[];
33
36
  paymentAccepted?: IPaymentAccepted[];
34
37
  typeOf: OrganizationType.Corporation;
35
38
  }
36
39
  /**
37
- * ソート条件インターフェース
40
+ * ソート条件
38
41
  */
39
42
  export interface ISortOrder {
40
43
  branchCode?: SortType;
41
44
  }
42
45
  /**
43
- * 販売者検索条件インターフェース
46
+ * 販売者検索条件
44
47
  */
45
48
  export interface ISearchConditions {
46
49
  limit?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.269.0-alpha.1",
3
+ "version": "4.270.0-alpha.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",