@chevre/factory 4.347.0-alpha.5 → 4.347.0-alpha.7

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.
@@ -5,7 +5,7 @@ import { SortType } from './sortType';
5
5
  import { IThing } from './thing';
6
6
  export declare enum CategorySetIdentifier {
7
7
  /**
8
- * レーティングタイプ
8
+ * レイティング区分
9
9
  */
10
10
  ContentRatingType = "ContentRatingType",
11
11
  /**
@@ -4,7 +4,7 @@ exports.CategorySetIdentifier = void 0;
4
4
  var CategorySetIdentifier;
5
5
  (function (CategorySetIdentifier) {
6
6
  /**
7
- * レーティングタイプ
7
+ * レイティング区分
8
8
  */
9
9
  CategorySetIdentifier["ContentRatingType"] = "ContentRatingType";
10
10
  /**
@@ -41,10 +41,14 @@ export interface ICreativeWork extends Pick<CreativeWorkFactory.ICreativeWork, '
41
41
  /**
42
42
  * コンテンツ作成パラメータ
43
43
  */
44
- export type ICreateParams = Pick<ICreativeWork, 'additionalProperty' | 'contentRating' | 'datePublished' | 'duration' | 'headline' | 'identifier' | 'thumbnailUrl' | 'typeOf'> & {
44
+ export type ICreateParams = Pick<ICreativeWork, 'additionalProperty' | 'datePublished' | 'duration' | 'headline' | 'identifier' | 'thumbnailUrl' | 'typeOf'> & {
45
45
  name?: Pick<IMultilingualString, 'en' | 'ja'>;
46
46
  offers: Pick<IOffer, 'availabilityEnds'>;
47
47
  distributor?: Pick<IDistributor, 'codeValue'>;
48
+ /**
49
+ * レイティング区分コード
50
+ */
51
+ contentRating?: string;
48
52
  };
49
53
  /**
50
54
  * ソート条件
@@ -12,9 +12,9 @@ import { UnitCode } from './unitCode';
12
12
  export interface IAccounting {
13
13
  typeOf: 'Accounting';
14
14
  /**
15
- * 営業収益
15
+ * 細目
16
16
  */
17
- operatingRevenue?: IAccountTitle;
17
+ operatingRevenue?: Pick<IAccountTitle, 'codeValue' | 'typeOf'>;
18
18
  /**
19
19
  * 売上金額
20
20
  */
package/lib/product.d.ts CHANGED
@@ -102,6 +102,21 @@ export interface IProduct extends Pick<IThing, 'name' | 'description'> {
102
102
  serviceType?: IServiceType;
103
103
  additionalProperty?: IPropertyValue<string>[];
104
104
  }
105
+ export type ICreateParams = Pick<IProduct, 'typeOf' | 'productID' | 'name' | 'description' | 'availableChannel' | 'serviceOutput'> & {
106
+ hasOfferCatalog?: Pick<IHasOfferCatalog, 'id'> | {
107
+ /**
108
+ * カタログコードを指定する場合
109
+ */
110
+ identifier: string;
111
+ };
112
+ /**
113
+ * サービスタイプ
114
+ * 興行->興行区分
115
+ * メンバーシップ->メンバーシップ区分
116
+ * ペイメントカード->決済方法区分
117
+ */
118
+ serviceType?: Pick<IServiceType, 'codeValue'>;
119
+ };
105
120
  export interface ISortOrder {
106
121
  productID?: SortType;
107
122
  }
@@ -3,6 +3,7 @@ import { ItemAvailability } from './itemAvailability';
3
3
  import { IAddOn, ICategory, IEligibleCategoryCode, IEligibleMonetaryAmount, IName, IOffer } from './offer';
4
4
  import { OfferType } from './offerType';
5
5
  import { IAmount as IPermitAmount, IDepositAmount, IPaymentAmount } from './permit';
6
+ import { IAccounting } from './priceSpecification';
6
7
  import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
7
8
  import { IProduct, ProductType } from './product';
8
9
  import { IQuantitativeValue } from './quantitativeValue';
@@ -97,7 +98,12 @@ export type ICreateParams = Pick<IUnitPriceOffer, 'acceptedPaymentMethod' | 'eli
97
98
  */
98
99
  identifier: string;
99
100
  }[];
100
- priceSpecification: Pick<IUnitPriceOfferPriceSpecification, 'accounting' | 'appliesToMovieTicket' | 'eligibleQuantity' | 'eligibleTransactionVolume' | 'price' | 'referenceQuantity'>;
101
+ priceSpecification: Pick<IUnitPriceOfferPriceSpecification, 'appliesToMovieTicket' | 'eligibleQuantity' | 'eligibleTransactionVolume' | 'price' | 'referenceQuantity'> & {
102
+ /**
103
+ * 勘定内容
104
+ */
105
+ accounting?: Pick<IAccounting, 'accountsReceivable' | 'operatingRevenue'>;
106
+ };
101
107
  };
102
108
  /**
103
109
  * ソート条件
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.347.0-alpha.5",
3
+ "version": "4.347.0-alpha.7",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",