@chevre/factory 8.0.0-alpha.3 → 8.0.0-alpha.4

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.
@@ -271,9 +271,6 @@ export interface IObjectWithoutDetail {
271
271
  broker?: IBroker;
272
272
  reservationFor?: {
273
273
  id: string;
274
- offers?: {
275
- validForMemberTier?: never;
276
- };
277
274
  };
278
275
  }
279
276
  export type IReservationFor = IEventReservationReservationFor;
@@ -106,11 +106,6 @@ export interface IOfferAsObject {
106
106
  * 2025-10-21~
107
107
  */
108
108
  token?: IEventOfferToken;
109
- /**
110
- * メンバープログラムティアトークン
111
- * メンバープログラムティアごとにオファー有効期間が管理されている場合、検証されたトークンに基づいて有効期間が検証されます
112
- */
113
- validForMemberTier?: ITokenizedMemberProgramTier;
114
109
  }
115
110
  export type IObject = IOrderAsObject | IOwnershipInfoAsObject | IOfferAsObject;
116
111
  export interface IAudienceAsPlaceOrder {
@@ -7,8 +7,8 @@ import { OrganizationType } from '../organizationType';
7
7
  import { PlaceType } from '../placeType';
8
8
  import { IServiceType as IProductServiceType } from '../product';
9
9
  import { Identifier as WebAPIIdentifier, IService as IWebAPIService } from '../service/webAPI';
10
- import { IEventOfferForMemberTier, IMemberProgramTier, ISellerMakesOffer } from './sellerMakesOffer';
11
- export { IEventOfferForMemberTier, ISellerMakesOffer };
10
+ import { ISellerMakesOffer } from './sellerMakesOffer';
11
+ export { ISellerMakesOffer };
12
12
  /**
13
13
  * 予約集計
14
14
  */
@@ -161,14 +161,8 @@ export interface IAttributes extends Pick<IBaseAttributes<EventType>, 'additiona
161
161
  aggregateReservation?: IAggregateReservation;
162
162
  organizer: IOrganizer;
163
163
  }
164
- export type IMemberProgramTier4create = Pick<IMemberProgramTier, 'typeOf'>;
165
164
  export type ISellerMakesOffer4create = Pick<ISellerMakesOffer, 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough' | 'typeOf' | 'identifier'> & {
166
165
  availableAtOrFrom: Pick<IOfferAvailableAtOrFrom, 'id'>;
167
- /**
168
- * 有効なメンバープログラムティア条件
169
- * メンバープログラムティアごとにプロダクトオファーを管理する場合に指定
170
- */
171
- validForMemberTier?: IMemberProgramTier4create;
172
166
  };
173
167
  export interface ISeller4create {
174
168
  makesOffer: ISellerMakesOffer4create[];
@@ -8,8 +8,8 @@ import { ProductType } from '../product';
8
8
  import { TicketType } from '../reservation';
9
9
  import { ReservationType } from '../reservationType';
10
10
  import { Identifier as WebAPIIdentifier, IService as IWebAPIService } from '../service/webAPI';
11
- import { IAggregateReservation, IOfferWithAggregateReservation, IAggregateOffer, IOfferAvailableAtOrFrom, IEventOfferForMemberTier, ISellerMakesOffer, IServiceType, IOfferedThrough, ISeller, IEligibleQuantity, ILocation, IName, ISellerMakesOffer4create, ISeller4create, IAttributes as IAnyEventAttributes } from './anyEvent';
12
- export { IAggregateReservation, IOfferWithAggregateReservation, IAggregateOffer, IOfferAvailableAtOrFrom, IEventOfferForMemberTier, ISellerMakesOffer, IServiceType, IOfferedThrough, ISeller, IEligibleQuantity, ILocation, IName, ISellerMakesOffer4create, ISeller4create };
11
+ import { IAggregateReservation, IOfferWithAggregateReservation, IAggregateOffer, IOfferAvailableAtOrFrom, ISellerMakesOffer, IServiceType, IOfferedThrough, ISeller, IEligibleQuantity, ILocation, IName, ISellerMakesOffer4create, ISeller4create, IAttributes as IAnyEventAttributes } from './anyEvent';
12
+ export { IAggregateReservation, IOfferWithAggregateReservation, IAggregateOffer, IOfferAvailableAtOrFrom, ISellerMakesOffer, IServiceType, IOfferedThrough, ISeller, IEligibleQuantity, ILocation, IName, ISellerMakesOffer4create, ISeller4create };
13
13
  export interface IServiceOutput {
14
14
  typeOf: ReservationType.EventReservation;
15
15
  reservedTicket?: {
@@ -60,13 +60,8 @@ export interface IOffer {
60
60
  offeredThrough?: IOfferedThrough;
61
61
  unacceptedPaymentMethod?: IUnacceptedPaymentMethodType[];
62
62
  seller: ISeller;
63
- /**
64
- * プロダクトオファーコレクションコード
65
- * メンバープログラムティアごとにプロダクトオファーを管理する場合に指定
66
- * 指定した場合、別管理のプロダクトオファーに従います
67
- */
68
- identifier?: string;
69
63
  itemOffered: IItemOffered;
64
+ identifier?: never;
70
65
  }
71
66
  /**
72
67
  * 拡張可能なイベントオファー
@@ -1,8 +1,6 @@
1
- import { issuer } from '../issuer';
2
1
  import { IAvailableAtOrFrom, IOffer } from '../offer';
3
2
  import { OfferType } from '../offerType';
4
3
  type IOfferAvailableAtOrFrom = Pick<IAvailableAtOrFrom, 'id'>;
5
- type IMemberProgramTier = Pick<issuer.IMemberProgramTier, 'typeOf'>;
6
4
  /**
7
5
  * イベントに対する単一オファー
8
6
  * 利用可能アプリケーションのみ定義
@@ -30,22 +28,9 @@ interface ISingleEventOffer extends Pick<IOffer, 'typeOf' | 'availabilityEnds' |
30
28
  validForMemberTier?: never;
31
29
  offeredBy?: never;
32
30
  }
33
- /**
34
- * メンバープログラムティア適用のイベントオファー
35
- * ティアごとの有効期間はプロダクトオファーで管理される
36
- */
37
- interface IEventOfferForMemberTier extends Pick<ISingleEventOffer, 'typeOf' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough' | 'availableAtOrFrom' | 'identifier'> {
38
- /**
39
- * 有効なメンバープログラムティア
40
- * 定義されている場合、オファー承認の際にメンバーシップトークンが必須
41
- * また、オファーの有効期間がメンバープログラムティアごとのイベントオファーに依存する
42
- */
43
- validForMemberTier: IMemberProgramTier;
44
- offeredBy?: never;
45
- }
46
31
  /**
47
32
  * アプリケーションごとのイベントに対するオファー
48
33
  * 基本的に有効期間を定義
49
34
  */
50
- type ISellerMakesOffer = ISingleEventOffer | IEventOfferForMemberTier;
51
- export { ISellerMakesOffer, IEventOfferForMemberTier, IMemberProgramTier };
35
+ type ISellerMakesOffer = ISingleEventOffer;
36
+ export { ISellerMakesOffer, };
@@ -74,7 +74,6 @@ import { IMultilingualString } from './multilingualString';
74
74
  export * as offer from './offer';
75
75
  export * as aggregateOffer from './offer/aggregateOffer';
76
76
  export * as eventOffer from './offer/eventOffer';
77
- export * as productOffer from './offer/productOffer';
78
77
  import * as OfferCatalogFactory from './offerCatalog';
79
78
  import * as OfferItemConditionFactory from './offerItemCondition';
80
79
  import { OfferType } from './offerType';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.notification = exports.movieTicketType = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.identityProvider = exports.iam = exports.eventType = exports.eventStatusType = exports.entryPoint = exports.encodingFormat = exports.eventSeries = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.CertificationStatusEnumeration = exports.categoryCode = exports.authorization = exports.aggregation = exports.advanceBookingRequirement = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.errorCode = exports.recipe = exports.errors = exports.unitPriceOffer = exports.project = exports.order = exports.productOffer = exports.eventOffer = exports.aggregateOffer = exports.offer = exports.account = exports.cognito = exports.waiter = void 0;
4
- exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.role = exports.RESERVED_CODE_VALUES = exports.reservationType = exports.reservationStatusType = exports.reservationPackage = exports.reservation = exports.report = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = void 0;
3
+ exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.notification = exports.movieTicketType = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.identityProvider = exports.iam = exports.eventType = exports.eventStatusType = exports.entryPoint = exports.encodingFormat = exports.eventSeries = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.CertificationStatusEnumeration = exports.categoryCode = exports.authorization = exports.aggregation = exports.advanceBookingRequirement = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.errorCode = exports.recipe = exports.errors = exports.unitPriceOffer = exports.project = exports.order = exports.eventOffer = exports.aggregateOffer = exports.offer = exports.account = exports.cognito = exports.waiter = void 0;
4
+ exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.role = exports.RESERVED_CODE_VALUES = exports.reservationType = exports.reservationStatusType = exports.reservationPackage = exports.reservation = exports.report = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = void 0;
5
5
  exports.waiter = require("@waiter/factory");
6
6
  exports.cognito = require("./cognito");
7
7
  exports.account = require("./account");
@@ -75,7 +75,7 @@ const MovieTicketTypeFactory = require("./movieTicketType");
75
75
  exports.offer = require("./offer");
76
76
  exports.aggregateOffer = require("./offer/aggregateOffer");
77
77
  exports.eventOffer = require("./offer/eventOffer");
78
- exports.productOffer = require("./offer/productOffer");
78
+ // export * as productOffer from './offer/productOffer'; // discontinue(2026-04-20~)
79
79
  const OfferCatalogFactory = require("./offerCatalog");
80
80
  const OfferItemConditionFactory = require("./offerItemCondition");
81
81
  const offerType_1 = require("./offerType");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "8.0.0-alpha.3",
3
+ "version": "8.0.0-alpha.4",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [
@@ -1,152 +0,0 @@
1
- import { issuer } from '../issuer';
2
- import { ItemAvailability } from '../itemAvailability';
3
- import { OfferType } from '../offerType';
4
- import { OrganizationType } from '../organizationType';
5
- import { SortType } from '../sortType';
6
- type IValidForMemberTier = Pick<issuer.IMemberProgramTier, 'identifier' | 'typeOf'>;
7
- interface IAcceptedPaymentMethod {
8
- typeOf: 'PaymentMethod';
9
- /**
10
- * 決済方法区分コード
11
- */
12
- identifier: string;
13
- }
14
- interface IOfferedByAsSeller {
15
- id: string;
16
- typeOf: OrganizationType.Corporation;
17
- }
18
- interface IOfferedByAsProject {
19
- id: string;
20
- typeOf: OrganizationType.Project;
21
- }
22
- type IOfferedBy = IOfferedByAsSeller | IOfferedByAsProject;
23
- interface IProductOfferCommonAttributes {
24
- project: {
25
- id: string;
26
- typeOf: OrganizationType.Project;
27
- };
28
- typeOf: OfferType.Offer;
29
- /**
30
- * プロダクトオファーコード
31
- * プロダクトオファーコレクション内でユニーク
32
- */
33
- identifier: string;
34
- itemOffered: {
35
- typeOf: OfferType.AggregateOffer;
36
- /**
37
- * プロダクトオファーコレクションコード
38
- * オファーコレクションの識別子
39
- */
40
- identifier: string;
41
- };
42
- offeredBy: IOfferedBy;
43
- availability: ItemAvailability.InStock | ItemAvailability.OutOfStock;
44
- validFrom: Date;
45
- validThrough: Date;
46
- }
47
- interface IProductOfferAcceptedPaymentMethod extends IProductOfferCommonAttributes {
48
- /**
49
- * オファー提供プロジェクト
50
- */
51
- offeredBy: IOfferedByAsProject;
52
- acceptedPaymentMethod: IAcceptedPaymentMethod;
53
- validForMemberTier?: never;
54
- }
55
- /**
56
- * メンバープログラムティアで有効なプロダクトオファー
57
- */
58
- interface IProductOfferValidForMemberTier extends IProductOfferCommonAttributes {
59
- /**
60
- * オファー提供販売者
61
- */
62
- offeredBy: IOfferedByAsSeller;
63
- acceptedPaymentMethod?: never;
64
- /**
65
- * 有効なメンバープログラムティア
66
- */
67
- validForMemberTier: IValidForMemberTier;
68
- }
69
- /**
70
- * プロダクトオファー
71
- * 汎用的なオファー設定
72
- */
73
- type IProductOffer = IProductOfferAcceptedPaymentMethod | IProductOfferValidForMemberTier;
74
- interface ISearchConditions {
75
- limit?: number;
76
- page?: number;
77
- sort?: {
78
- validFrom?: SortType;
79
- };
80
- project?: {
81
- id?: {
82
- $eq?: string;
83
- };
84
- };
85
- id?: {
86
- $eq?: string;
87
- };
88
- /**
89
- * オファーコード
90
- */
91
- identifier?: {
92
- $eq?: string;
93
- $in?: string[];
94
- };
95
- itemOffered?: {
96
- /**
97
- * オファーコレクションコード
98
- */
99
- identifier?: {
100
- $eq?: string;
101
- $in?: string[];
102
- };
103
- };
104
- offeredBy?: {
105
- /**
106
- * オファー提供者ID
107
- */
108
- id?: {
109
- $eq?: string;
110
- };
111
- };
112
- seller?: {
113
- /**
114
- * 提供販売者ID
115
- */
116
- id?: {
117
- $eq?: string;
118
- };
119
- };
120
- validForMemberTier?: {
121
- identifier?: {
122
- $eq?: string;
123
- };
124
- };
125
- validFrom?: {
126
- $lte?: Date;
127
- };
128
- validThrough?: {
129
- $gte?: Date;
130
- };
131
- }
132
- /**
133
- * メンバープログラムティア有効プロダクトオファー追加パラメータ
134
- */
135
- interface IAddValidForMemberTierParams {
136
- acceptedPaymentMethod?: never;
137
- /**
138
- * プロダクトオファーコード
139
- * プロダクトオファーコレクション内でユニーク
140
- */
141
- identifier: string;
142
- validForMemberTier: {
143
- /**
144
- * プロダクトオファーコレクションコード
145
- * オファーコレクションの識別子
146
- */
147
- identifier: string;
148
- };
149
- validFrom: Date;
150
- validThrough: Date;
151
- }
152
- export { IProductOffer, IProductOfferAcceptedPaymentMethod, IProductOfferValidForMemberTier, IValidForMemberTier, IAcceptedPaymentMethod, ISearchConditions, IAddValidForMemberTierParams };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });