@chevre/factory 5.2.0 → 5.3.0-alpha.1

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.
@@ -276,12 +276,12 @@ export interface ITokenizedMemberProgramTier {
276
276
  };
277
277
  }
278
278
  /**
279
- * オファートークンの中身
280
- * 予約対象イベント識別子、オファー有効期間、アプリケーションオファーコード、対象数量を定義する
279
+ * イベントオファートークンの中身
280
+ * 予約対象イベント、オファー有効期間、イベントオファーコード、対象数量を定義する
281
281
  */
282
- export interface IOfferTokenPayload {
282
+ export interface IEventOfferTokenPayload {
283
283
  /**
284
- * アプリケーションオファーコード
284
+ * イベントオファーコード
285
285
  */
286
286
  identifier: string;
287
287
  /**
@@ -299,14 +299,22 @@ export interface IOfferTokenPayload {
299
299
  eligibleQuantity: {
300
300
  maxValue: number;
301
301
  };
302
+ /**
303
+ * 対象イベント
304
+ */
302
305
  itemOffered: {
303
306
  /**
304
- * イベント識別子
307
+ * イベントID
305
308
  */
306
- identifier: string;
309
+ id: string;
307
310
  };
308
311
  }
309
- export type IOfferToken = string;
312
+ /**
313
+ * イベントオファートークン
314
+ * 外部組織がイベントオファーを定義する場合に使用
315
+ * トークンの中身については @see IEventOfferTokenPayload
316
+ */
317
+ export type IEventOfferToken = string;
310
318
  export interface IObjectWithoutDetail {
311
319
  acceptedOffer?: IAcceptedTicketOfferWithoutDetail[];
312
320
  broker?: ReservationFactory.IBroker;
@@ -1,5 +1,5 @@
1
+ import { IEventOfferToken } from './assetTransaction/reserve';
1
2
  import { CreativeWorkType } from './creativeWorkType';
2
- import { IMember, IMemberOfRole } from './iam';
3
3
  import { IInvoice } from './invoice';
4
4
  import { OfferType } from './offerType';
5
5
  import { IOrder } from './order';
@@ -12,6 +12,9 @@ import { ReservationType } from './reservationType';
12
12
  import { PaymentServiceType } from './service/paymentService';
13
13
  import { SortType } from './sortType';
14
14
  import { TransactionType } from './transactionType';
15
+ /**
16
+ * 発券対象の注文
17
+ */
15
18
  export type IOrderAsObject = Pick<IOrder, 'orderNumber' | 'typeOf'>;
16
19
  export type IPermitIssuedThroughOfObjectTypeOfGood = Pick<IPermitIssuedThroughAsProduct, 'id' | 'typeOf'>;
17
20
  export type IPermitAsTypeOfGood = Pick<IPermitAsGood, 'identifier' | 'typeOf'> & {
@@ -50,13 +53,10 @@ export type IPaymentMethodOwnershipInfo = Pick<IOwnershipInfo<IPaymentMethodAsTy
50
53
  * support(2025-11-12~)
51
54
  */
52
55
  export type IFaceToFacePaymentMethodOwnershipInfo = Pick<IOwnershipInfo<IFaceToFacePaymentMethodAsTypeOfGood>, 'typeOf' | 'typeOfGood'>;
53
- export type IOwnershipInfoAsObject = IPermitOwnershipInfo | IPaymentMethodOwnershipInfo | IFaceToFacePaymentMethodOwnershipInfo;
54
56
  /**
55
- * 承認対象としてのIAMメンバー
57
+ * Permit所有権あるいは決済方法所有権
56
58
  */
57
- export type IRoleAsObject = Pick<IMember, 'member' | 'typeOf'> & {
58
- member: Pick<IMemberOfRole, 'hasRole' | 'id' | 'memberOf' | 'typeOf'>;
59
- };
59
+ export type IOwnershipInfoAsObject = IPermitOwnershipInfo | IPaymentMethodOwnershipInfo | IFaceToFacePaymentMethodOwnershipInfo;
60
60
  /**
61
61
  * トークン化されたメンバープログラムティア
62
62
  */
@@ -72,7 +72,6 @@ export interface ITokenizedMemberProgramTier {
72
72
  identifier: string;
73
73
  };
74
74
  }
75
- export type IOfferToken = string;
76
75
  /**
77
76
  * 承認対象としての興行オファー
78
77
  */
@@ -96,17 +95,17 @@ export interface IOfferAsObject {
96
95
  */
97
96
  id?: string;
98
97
  /**
99
- * support オファートークン
98
+ * イベントオファートークン
100
99
  * 2025-10-21~
101
100
  */
102
- token?: IOfferToken;
101
+ token?: IEventOfferToken;
103
102
  /**
104
103
  * メンバープログラムティアトークン
105
104
  * メンバープログラムティアごとにオファー有効期間が管理されている場合、検証されたトークンに基づいて有効期間が検証されます
106
105
  */
107
106
  validForMemberTier?: ITokenizedMemberProgramTier;
108
107
  }
109
- export type IObject = IOrderAsObject | IOwnershipInfoAsObject | IRoleAsObject | IOfferAsObject;
108
+ export type IObject = IOrderAsObject | IOwnershipInfoAsObject | IOfferAsObject;
110
109
  export interface IAudienceAsPlaceOrder {
111
110
  /**
112
111
  * 取引ID
@@ -122,16 +121,24 @@ export interface IAudienceAsApplication {
122
121
  typeOf: CreativeWorkType.SoftwareApplication | CreativeWorkType.WebApplication;
123
122
  }
124
123
  export type IAudience = IAudienceAsApplication | IAudienceAsPlaceOrder;
124
+ /**
125
+ * 承認作成者
126
+ * 現時点でSoftwareApplicationは認めない
127
+ */
125
128
  export interface IAuthor {
126
129
  id: string;
127
130
  typeOf: PersonType.Person | CreativeWorkType.WebApplication;
128
131
  }
132
+ /**
133
+ * 承認発行組織
134
+ */
129
135
  export interface IIssuedBy {
130
136
  id: string;
131
137
  typeOf: OrganizationType.Corporation | OrganizationType.Project;
132
138
  }
133
139
  /**
134
140
  * 承認
141
+ * 任意の情報をチケット化するために使用
135
142
  */
136
143
  export interface IAuthorization {
137
144
  project: Pick<IProject, 'id' | 'typeOf'>;
@@ -154,8 +161,14 @@ export interface IAuthorization {
154
161
  */
155
162
  validUntil: Date;
156
163
  audience?: IAudience;
157
- author?: IAuthor;
158
- issuedBy?: IIssuedBy;
164
+ /**
165
+ * 承認作成者
166
+ */
167
+ author: IAuthor;
168
+ /**
169
+ * 承認発行組織
170
+ */
171
+ issuedBy: IIssuedBy;
159
172
  }
160
173
  /**
161
174
  * ソート条件
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "5.2.0",
3
+ "version": "5.3.0-alpha.1",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",