@chevre/factory 5.1.0-alpha.3 → 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.
|
@@ -275,6 +275,38 @@ export interface ITokenizedMemberProgramTier {
|
|
|
275
275
|
identifier: string;
|
|
276
276
|
};
|
|
277
277
|
}
|
|
278
|
+
/**
|
|
279
|
+
* オファートークンの中身
|
|
280
|
+
* 予約対象イベント識別子、オファー有効期間、アプリケーションオファーコード、対象数量を定義する
|
|
281
|
+
*/
|
|
282
|
+
export interface IOfferTokenPayload {
|
|
283
|
+
/**
|
|
284
|
+
* アプリケーションオファーコード
|
|
285
|
+
*/
|
|
286
|
+
identifier: string;
|
|
287
|
+
/**
|
|
288
|
+
* YYYY-MM-DDTHH:mm:ssZ
|
|
289
|
+
*/
|
|
290
|
+
validFrom: string;
|
|
291
|
+
/**
|
|
292
|
+
* YYYY-MM-DDTHH:mm:ssZ
|
|
293
|
+
*/
|
|
294
|
+
validThrough: string;
|
|
295
|
+
/**
|
|
296
|
+
* 対象数量
|
|
297
|
+
* 最大n席まで
|
|
298
|
+
*/
|
|
299
|
+
eligibleQuantity: {
|
|
300
|
+
maxValue: number;
|
|
301
|
+
};
|
|
302
|
+
itemOffered: {
|
|
303
|
+
/**
|
|
304
|
+
* イベント識別子
|
|
305
|
+
*/
|
|
306
|
+
identifier: string;
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
export type IOfferToken = string;
|
|
278
310
|
export interface IObjectWithoutDetail {
|
|
279
311
|
acceptedOffer?: IAcceptedTicketOfferWithoutDetail[];
|
|
280
312
|
broker?: ReservationFactory.IBroker;
|
|
@@ -286,6 +318,16 @@ export interface IObjectWithoutDetail {
|
|
|
286
318
|
* メンバープログラムティアごとにオファー有効期間が管理されている場合、検証されたトークンに基づいて有効期間が検証されます
|
|
287
319
|
*/
|
|
288
320
|
validForMemberTier?: ITokenizedMemberProgramTier;
|
|
321
|
+
/**
|
|
322
|
+
* support オファートークン
|
|
323
|
+
* 2025-10-21~
|
|
324
|
+
*/
|
|
325
|
+
token?: IOfferToken;
|
|
326
|
+
/**
|
|
327
|
+
* アプリケーションオファーコード
|
|
328
|
+
* オファートークン指定の場合、必須
|
|
329
|
+
*/
|
|
330
|
+
identifier?: string;
|
|
289
331
|
};
|
|
290
332
|
};
|
|
291
333
|
}
|
|
@@ -20,7 +20,7 @@ export interface IDistributor {
|
|
|
20
20
|
* コンテンツ
|
|
21
21
|
* {@link https://schema.org/Movie}
|
|
22
22
|
*/
|
|
23
|
-
export interface ICreativeWork extends Pick<CreativeWorkFactory.ICreativeWork, 'additionalProperty' | 'alternativeHeadline' | 'contentRating' | '
|
|
23
|
+
export interface ICreativeWork extends Pick<CreativeWorkFactory.ICreativeWork, 'additionalProperty' | 'alternativeHeadline' | 'contentRating' | 'datePublished' | 'headline' | 'thumbnailUrl' | 'typeOf' | 'name' | 'identifier' | 'id'> {
|
|
24
24
|
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
25
25
|
identifier: string;
|
|
26
26
|
/**
|
package/lib/creativeWork.d.ts
CHANGED
|
@@ -2,9 +2,6 @@ import type * as COA from '@motionpicture/coa-service';
|
|
|
2
2
|
import { CreativeWorkType } from './creativeWorkType';
|
|
3
3
|
import { IPropertyValue } from './propertyValue';
|
|
4
4
|
import { IThing } from './thing';
|
|
5
|
-
export interface ICopyrightHolder {
|
|
6
|
-
name: string;
|
|
7
|
-
}
|
|
8
5
|
export type IContentRating = COA.factory.master.IKubunNameResult | string;
|
|
9
6
|
/**
|
|
10
7
|
* 作品
|
|
@@ -15,7 +12,6 @@ export interface ICreativeWork extends Pick<IThing, 'name' | 'identifier'> {
|
|
|
15
12
|
id?: string;
|
|
16
13
|
alternativeHeadline?: string;
|
|
17
14
|
contentRating?: IContentRating;
|
|
18
|
-
copyrightHolder?: ICopyrightHolder;
|
|
19
15
|
copyrightYear?: number;
|
|
20
16
|
datePublished?: Date;
|
|
21
17
|
headline?: string;
|
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
|
* 有効なメンバープログラムティア条件
|
|
@@ -25,8 +25,28 @@ interface ISingleEventOffer extends Pick<IOffer, 'typeOf' | 'availabilityEnds' |
|
|
|
25
25
|
* いつまで承認可能か
|
|
26
26
|
*/
|
|
27
27
|
validThrough: Date;
|
|
28
|
+
/**
|
|
29
|
+
* arrayは廃止済だが、sdkに互換性を維持するためにarray型を残す(2024-11-26~)
|
|
30
|
+
*/
|
|
28
31
|
availableAtOrFrom?: IOfferAvailableAtOrFrom | IOfferAvailableAtOrFrom[];
|
|
29
32
|
validForMemberTier?: never;
|
|
33
|
+
/**
|
|
34
|
+
* A pointer to the organization or person making the offer.
|
|
35
|
+
* オファー提供者が定義された場合、オファー承認時にオファー提供者によって署名されたオファートークンが必須
|
|
36
|
+
* その場合、有効期間、適用数量、対応アプリケーションはオファートークンのpayloadに従う
|
|
37
|
+
*/
|
|
38
|
+
offeredBy?: {
|
|
39
|
+
/**
|
|
40
|
+
* オファートークン発行者コード
|
|
41
|
+
*/
|
|
42
|
+
identifier?: string;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* アプリケーションオファーコード
|
|
46
|
+
* イベント内でユニーク必須
|
|
47
|
+
* オファー発行者を指定する場合、必須
|
|
48
|
+
*/
|
|
49
|
+
identifier?: string;
|
|
30
50
|
}
|
|
31
51
|
/**
|
|
32
52
|
* メンバープログラムティア適用のイベントオファー
|
|
@@ -39,6 +59,8 @@ interface IEventOfferForMemberTier extends Pick<ISingleEventOffer, 'typeOf' | 'a
|
|
|
39
59
|
* また、オファーの有効期間がメンバープログラムティアごとのイベントオファーに依存する
|
|
40
60
|
*/
|
|
41
61
|
validForMemberTier: IMemberProgramTier;
|
|
62
|
+
issuedBy?: never;
|
|
63
|
+
identifier?: never;
|
|
42
64
|
}
|
|
43
65
|
/**
|
|
44
66
|
* アプリケーションごとのイベントに対するオファー
|