@chevre/factory 5.1.0-alpha.4 → 5.1.0-alpha.5
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,7 +4,6 @@ import { ActionType } from '../actionType';
|
|
|
4
4
|
import * as AssetTransactionFactory from '../assetTransaction';
|
|
5
5
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
6
6
|
import { IExtendId } from '../autoGenerated';
|
|
7
|
-
import { IEligibleQuantity } from '../offer';
|
|
8
7
|
import { IOrder } from '../order';
|
|
9
8
|
import { PermitType } from '../permit';
|
|
10
9
|
import { ProductType } from '../product';
|
|
@@ -278,9 +277,13 @@ export interface ITokenizedMemberProgramTier {
|
|
|
278
277
|
}
|
|
279
278
|
/**
|
|
280
279
|
* オファートークンの中身
|
|
281
|
-
*
|
|
280
|
+
* 予約対象イベント識別子、オファー有効期間、アプリケーションオファーコード、対象数量を定義する
|
|
282
281
|
*/
|
|
283
282
|
export interface IOfferTokenPayload {
|
|
283
|
+
/**
|
|
284
|
+
* アプリケーションオファーコード
|
|
285
|
+
*/
|
|
286
|
+
identifier: string;
|
|
284
287
|
/**
|
|
285
288
|
* YYYY-MM-DDTHH:mm:ssZ
|
|
286
289
|
*/
|
|
@@ -289,18 +292,13 @@ export interface IOfferTokenPayload {
|
|
|
289
292
|
* YYYY-MM-DDTHH:mm:ssZ
|
|
290
293
|
*/
|
|
291
294
|
validThrough: string;
|
|
292
|
-
availableAtOrFrom: {
|
|
293
|
-
/**
|
|
294
|
-
* 販売アプリケーションコード
|
|
295
|
-
* イベント管理で設定されたアプリケーションコード
|
|
296
|
-
*/
|
|
297
|
-
identifier: string;
|
|
298
|
-
};
|
|
299
295
|
/**
|
|
300
296
|
* 対象数量
|
|
301
297
|
* 最大n席まで
|
|
302
298
|
*/
|
|
303
|
-
eligibleQuantity:
|
|
299
|
+
eligibleQuantity: {
|
|
300
|
+
maxValue: number;
|
|
301
|
+
};
|
|
304
302
|
itemOffered: {
|
|
305
303
|
/**
|
|
306
304
|
* イベント識別子
|
|
@@ -325,6 +323,11 @@ export interface IObjectWithoutDetail {
|
|
|
325
323
|
* 2025-10-21~
|
|
326
324
|
*/
|
|
327
325
|
token?: IOfferToken;
|
|
326
|
+
/**
|
|
327
|
+
* アプリケーションオファーコード
|
|
328
|
+
* オファートークン指定の場合、必須
|
|
329
|
+
*/
|
|
330
|
+
identifier?: string;
|
|
328
331
|
};
|
|
329
332
|
};
|
|
330
333
|
}
|
package/lib/event/anyEvent.d.ts
CHANGED
|
@@ -175,7 +175,7 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType>, '
|
|
|
175
175
|
organizer: IOrganizer;
|
|
176
176
|
}
|
|
177
177
|
export type IMemberProgramTier4create = Pick<IMemberProgramTier, 'typeOf'>;
|
|
178
|
-
export type ISellerMakesOffer4create = Pick<ISellerMakesOffer, 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough' | 'typeOf'> & {
|
|
178
|
+
export type ISellerMakesOffer4create = Pick<ISellerMakesOffer, 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough' | 'typeOf' | 'identifier'> & {
|
|
179
179
|
availableAtOrFrom: Pick<IOfferAvailableAtOrFrom, 'id'>;
|
|
180
180
|
/**
|
|
181
181
|
* 有効なメンバープログラムティア条件
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { issuer } from '../issuer';
|
|
2
2
|
import { IAvailableAtOrFrom, IOffer } from '../offer';
|
|
3
3
|
import { OfferType } from '../offerType';
|
|
4
|
-
type IOfferAvailableAtOrFrom = Pick<IAvailableAtOrFrom, 'id'
|
|
5
|
-
/**
|
|
6
|
-
* アプリケーションコード
|
|
7
|
-
* イベントの販売アプリケーション間でユニーク必須
|
|
8
|
-
* オファートークン利用時に必須(トークンのpayloadで必要)
|
|
9
|
-
*/
|
|
10
|
-
identifier?: string;
|
|
11
|
-
};
|
|
4
|
+
type IOfferAvailableAtOrFrom = Pick<IAvailableAtOrFrom, 'id'>;
|
|
12
5
|
type IMemberProgramTier = Pick<issuer.IMemberProgramTier, 'typeOf'>;
|
|
13
6
|
/**
|
|
14
7
|
* イベントに対する単一オファー
|
|
@@ -32,19 +25,28 @@ interface ISingleEventOffer extends Pick<IOffer, 'typeOf' | 'availabilityEnds' |
|
|
|
32
25
|
* いつまで承認可能か
|
|
33
26
|
*/
|
|
34
27
|
validThrough: Date;
|
|
28
|
+
/**
|
|
29
|
+
* arrayは廃止済だが、sdkに互換性を維持するためにarray型を残す(2024-11-26~)
|
|
30
|
+
*/
|
|
35
31
|
availableAtOrFrom?: IOfferAvailableAtOrFrom | IOfferAvailableAtOrFrom[];
|
|
36
32
|
validForMemberTier?: never;
|
|
37
33
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
34
|
+
* A pointer to the organization or person making the offer.
|
|
35
|
+
* オファー提供者が定義された場合、オファー承認時にオファー提供者によって署名されたオファートークンが必須
|
|
40
36
|
* その場合、有効期間、適用数量、対応アプリケーションはオファートークンのpayloadに従う
|
|
41
37
|
*/
|
|
42
|
-
|
|
38
|
+
offeredBy?: {
|
|
43
39
|
/**
|
|
44
40
|
* オファートークン発行者コード
|
|
45
41
|
*/
|
|
46
42
|
identifier?: string;
|
|
47
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* アプリケーションオファーコード
|
|
46
|
+
* イベント内でユニーク必須
|
|
47
|
+
* オファー発行者を指定する場合、必須
|
|
48
|
+
*/
|
|
49
|
+
identifier?: string;
|
|
48
50
|
}
|
|
49
51
|
/**
|
|
50
52
|
* メンバープログラムティア適用のイベントオファー
|
|
@@ -58,6 +60,7 @@ interface IEventOfferForMemberTier extends Pick<ISingleEventOffer, 'typeOf' | 'a
|
|
|
58
60
|
*/
|
|
59
61
|
validForMemberTier: IMemberProgramTier;
|
|
60
62
|
issuedBy?: never;
|
|
63
|
+
identifier?: never;
|
|
61
64
|
}
|
|
62
65
|
/**
|
|
63
66
|
* アプリケーションごとのイベントに対するオファー
|