@chevre/factory 5.0.0-alpha.2 → 5.0.0
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.
- package/lib/event/anyEvent.d.ts +14 -1
- package/lib/event/screeningEvent.d.ts +6 -4
- package/lib/event/screeningEventSeries.d.ts +12 -4
- package/lib/event.d.ts +0 -49
- package/lib/index.d.ts +10 -3
- package/lib/index.js +14 -0
- package/lib/reservation/event.d.ts +2 -1
- package/package.json +1 -1
package/lib/event/anyEvent.d.ts
CHANGED
|
@@ -120,7 +120,20 @@ export interface IOrganizer {
|
|
|
120
120
|
/**
|
|
121
121
|
* イベント属性
|
|
122
122
|
*/
|
|
123
|
-
export interface IAttributes extends Pick<EventFactory.IAttributes<EventType>, '
|
|
123
|
+
export interface IAttributes extends Pick<EventFactory.IAttributes<EventType>, 'additionalProperty' | 'project' | 'identifier' | 'description' | 'eventStatus' | 'name' | 'typeOf'> {
|
|
124
|
+
/**
|
|
125
|
+
* 予約集計結果としてのキャパシティ
|
|
126
|
+
*/
|
|
127
|
+
maximumAttendeeCapacity?: number;
|
|
128
|
+
/**
|
|
129
|
+
* イベント固有のキャパシティ
|
|
130
|
+
* 施設のキャパシティに依存しない場合に使用
|
|
131
|
+
*/
|
|
132
|
+
maximumPhysicalAttendeeCapacity?: number;
|
|
133
|
+
/**
|
|
134
|
+
* 残り収容人数
|
|
135
|
+
*/
|
|
136
|
+
remainingAttendeeCapacity?: number;
|
|
124
137
|
/**
|
|
125
138
|
* ルーム
|
|
126
139
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as COA from '@motionpicture/coa-service';
|
|
2
2
|
import * as EventFactory from '../event';
|
|
3
|
-
import
|
|
3
|
+
import { IEvent as IEventSeries, IUnacceptedPaymentMethodType } from '../event/screeningEventSeries';
|
|
4
4
|
import { EventType } from '../eventType';
|
|
5
5
|
import { OfferType } from '../offerType';
|
|
6
6
|
import { PlaceType } from '../placeType';
|
|
@@ -65,7 +65,7 @@ export interface IOffer {
|
|
|
65
65
|
* オファー供給サービス
|
|
66
66
|
*/
|
|
67
67
|
offeredThrough?: IOfferedThrough;
|
|
68
|
-
unacceptedPaymentMethod?:
|
|
68
|
+
unacceptedPaymentMethod?: IUnacceptedPaymentMethodType[];
|
|
69
69
|
seller: ISeller;
|
|
70
70
|
/**
|
|
71
71
|
* プロダクトオファーコレクションコード
|
|
@@ -122,9 +122,11 @@ export type ICOAOffer = COA.factory.reserve.IUpdReserveTicket & {
|
|
|
122
122
|
*/
|
|
123
123
|
usePoint: number;
|
|
124
124
|
};
|
|
125
|
-
export type IWorkPerformed = ScreeningEventSeriesFactory.IWorkPerformed;
|
|
126
125
|
export import ILocation = AnyEventFactory.ILocation;
|
|
127
|
-
export type ISuperEvent = Pick<
|
|
126
|
+
export type ISuperEvent = Pick<IEventSeries, 'typeOf' | 'id' | 'videoFormat' | 'soundFormat' | 'workPerformed' | 'location' | 'kanaName' | 'name' | 'additionalProperty' | 'description' | 'headline' | 'dubLanguage' | 'subtitleLanguage' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
|
|
127
|
+
startDate?: Date;
|
|
128
|
+
endDate?: Date;
|
|
129
|
+
};
|
|
128
130
|
export import IName = AnyEventFactory.IName;
|
|
129
131
|
/**
|
|
130
132
|
* イベント属性
|
|
@@ -6,6 +6,7 @@ import { ILanguage } from '../language';
|
|
|
6
6
|
import { IMultilingualString } from '../multilingualString';
|
|
7
7
|
import { OfferType } from '../offerType';
|
|
8
8
|
import { PlaceType } from '../placeType';
|
|
9
|
+
export type IUnacceptedPaymentMethodType = 'MovieTicket';
|
|
9
10
|
/**
|
|
10
11
|
* 施設コンテンツに対するオファー
|
|
11
12
|
*/
|
|
@@ -14,7 +15,7 @@ export interface IOffer {
|
|
|
14
15
|
/**
|
|
15
16
|
* 利用不可決済方法区分
|
|
16
17
|
*/
|
|
17
|
-
unacceptedPaymentMethod?:
|
|
18
|
+
unacceptedPaymentMethod?: IUnacceptedPaymentMethodType[];
|
|
18
19
|
}
|
|
19
20
|
export interface IVideoFormat {
|
|
20
21
|
typeOf: string;
|
|
@@ -76,7 +77,14 @@ export interface ILocation {
|
|
|
76
77
|
*/
|
|
77
78
|
name?: IMultilingualString;
|
|
78
79
|
}
|
|
79
|
-
export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.ScreeningEventSeries>, 'project' | 'typeOf' | 'identifier' | 'name' | '
|
|
80
|
+
export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.ScreeningEventSeries>, 'project' | 'typeOf' | 'identifier' | 'name' | 'description' | 'eventStatus' | 'additionalProperty'> {
|
|
81
|
+
alternativeHeadline?: IMultilingualString | string;
|
|
82
|
+
headline?: IMultilingualString;
|
|
83
|
+
/**
|
|
84
|
+
* イベント上演時間
|
|
85
|
+
* ISO 8601 date format
|
|
86
|
+
*/
|
|
87
|
+
duration?: string;
|
|
80
88
|
/**
|
|
81
89
|
* 字幕利用可能言語
|
|
82
90
|
*/
|
|
@@ -115,12 +123,12 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Scr
|
|
|
115
123
|
* 終了日時
|
|
116
124
|
* ISO 8601 date format
|
|
117
125
|
*/
|
|
118
|
-
endDate
|
|
126
|
+
endDate: Date;
|
|
119
127
|
/**
|
|
120
128
|
* 開始日時
|
|
121
129
|
* ISO 8601 date format
|
|
122
130
|
*/
|
|
123
|
-
startDate
|
|
131
|
+
startDate: Date;
|
|
124
132
|
/**
|
|
125
133
|
* 販売情報
|
|
126
134
|
*/
|
package/lib/event.d.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { EventStatusType } from './eventStatusType';
|
|
2
2
|
import { EventType } from './eventType';
|
|
3
3
|
import { IMultilingualString } from './multilingualString';
|
|
4
|
-
import * as OfferFactory from './offer';
|
|
5
|
-
import * as PlaceFactory from './place';
|
|
6
4
|
import { IProject } from './project';
|
|
7
5
|
import { IPropertyValue } from './propertyValue';
|
|
8
6
|
import { SortType } from './sortType';
|
|
9
|
-
export type IUnacceptedPaymentMethodType = 'MovieTicket';
|
|
10
|
-
export type IOffer = Pick<OfferFactory.IOffer, 'typeOf' | 'unacceptedPaymentMethod' | 'seller' | 'eligibleQuantity' | 'itemOffered' | 'offeredThrough'>;
|
|
11
7
|
export interface IAttributes<T extends EventType> {
|
|
12
8
|
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
13
9
|
/**
|
|
@@ -23,60 +19,15 @@ export interface IAttributes<T extends EventType> {
|
|
|
23
19
|
* イベント名称
|
|
24
20
|
*/
|
|
25
21
|
name: IMultilingualString;
|
|
26
|
-
alternateName?: IMultilingualString;
|
|
27
|
-
alternativeHeadline?: IMultilingualString | string;
|
|
28
22
|
/**
|
|
29
23
|
* イベント説明
|
|
30
24
|
*/
|
|
31
25
|
description?: IMultilingualString;
|
|
32
|
-
/**
|
|
33
|
-
* 開場日時
|
|
34
|
-
* ISO 8601 date format
|
|
35
|
-
*/
|
|
36
|
-
doorTime?: Date;
|
|
37
|
-
/**
|
|
38
|
-
* イベント上演時間
|
|
39
|
-
* ISO 8601 date format
|
|
40
|
-
*/
|
|
41
|
-
duration?: string;
|
|
42
|
-
/**
|
|
43
|
-
* 終了日時
|
|
44
|
-
* ISO 8601 date format
|
|
45
|
-
*/
|
|
46
|
-
endDate?: Date;
|
|
47
26
|
/**
|
|
48
27
|
* イベントステータス
|
|
49
28
|
* イベントがキャンセル、あるいは、延期された場合に主に使用されます。
|
|
50
29
|
*/
|
|
51
30
|
eventStatus: EventStatusType;
|
|
52
|
-
headline?: IMultilingualString;
|
|
53
|
-
/**
|
|
54
|
-
* イベントが実行される場所
|
|
55
|
-
*/
|
|
56
|
-
location?: Omit<PlaceFactory.IPlace, 'project'>;
|
|
57
|
-
/**
|
|
58
|
-
* 予約集計結果としてのキャパシティ
|
|
59
|
-
*/
|
|
60
|
-
maximumAttendeeCapacity?: number;
|
|
61
|
-
/**
|
|
62
|
-
* イベント固有のキャパシティ
|
|
63
|
-
* 施設のキャパシティに依存しない場合に使用
|
|
64
|
-
*/
|
|
65
|
-
maximumPhysicalAttendeeCapacity?: number;
|
|
66
|
-
/**
|
|
67
|
-
* An offer to provide this item—for example, an offer to sell a product,
|
|
68
|
-
* rent the DVD of a movie, perform a service, or give away tickets to an event.
|
|
69
|
-
*/
|
|
70
|
-
offers?: IOffer | IOffer[];
|
|
71
|
-
/**
|
|
72
|
-
* 残り収容人数
|
|
73
|
-
*/
|
|
74
|
-
remainingAttendeeCapacity?: number;
|
|
75
|
-
/**
|
|
76
|
-
* 開始日時
|
|
77
|
-
* ISO 8601 date format
|
|
78
|
-
*/
|
|
79
|
-
startDate?: Date;
|
|
80
31
|
additionalProperty?: IPropertyValue<string>[];
|
|
81
32
|
}
|
|
82
33
|
/**
|
package/lib/index.d.ts
CHANGED
|
@@ -58,7 +58,6 @@ import * as AuthorizationFactory from './authorization';
|
|
|
58
58
|
import * as CategoryCodeFactory from './categoryCode';
|
|
59
59
|
import { CertificationStatusEnumeration } from './certificationStatusEnumeration';
|
|
60
60
|
import * as ClientUserFactory from './clientUser';
|
|
61
|
-
import * as CreativeWorkFactory from './creativeWork';
|
|
62
61
|
import * as softwareApplicationCertification from './creativeWork/certification/softwareApplication';
|
|
63
62
|
import * as webApplicationCertification from './creativeWork/certification/webApplication';
|
|
64
63
|
import * as webSiteCertification from './creativeWork/certification/webSite';
|
|
@@ -351,7 +350,6 @@ export import categoryCode = CategoryCodeFactory;
|
|
|
351
350
|
export { CertificationStatusEnumeration };
|
|
352
351
|
export import clientUser = ClientUserFactory;
|
|
353
352
|
export declare namespace creativeWork {
|
|
354
|
-
export import ICreativeWork = CreativeWorkFactory.ICreativeWork;
|
|
355
353
|
namespace certification {
|
|
356
354
|
/**
|
|
357
355
|
* マシーンアイデンティティ
|
|
@@ -361,16 +359,25 @@ export declare namespace creativeWork {
|
|
|
361
359
|
* アプリケーションアイデンティティ
|
|
362
360
|
*/
|
|
363
361
|
export import webApplication = webApplicationCertification;
|
|
362
|
+
/**
|
|
363
|
+
* ウェブサイトアイデンティティ
|
|
364
|
+
*/
|
|
364
365
|
export import webSite = webSiteCertification;
|
|
365
366
|
}
|
|
366
367
|
export import comment = CommentFactory;
|
|
367
368
|
namespace message {
|
|
368
369
|
export import email = EmailMessageFactory;
|
|
369
370
|
}
|
|
371
|
+
/**
|
|
372
|
+
* コンテンツ
|
|
373
|
+
*/
|
|
370
374
|
export import movie = MovieFactory;
|
|
375
|
+
/**
|
|
376
|
+
* メモ
|
|
377
|
+
*/
|
|
371
378
|
export import noteDigitalDocument = NoteDigitalDocumentFactory;
|
|
372
379
|
namespace softwareApplication {
|
|
373
|
-
export import
|
|
380
|
+
export import softwareApplication = SoftwareApplicationFactory;
|
|
374
381
|
export import webApplication = WebApplicationFactory;
|
|
375
382
|
}
|
|
376
383
|
}
|
package/lib/index.js
CHANGED
|
@@ -66,6 +66,7 @@ var CommentFactory = require("./creativeWork/comment");
|
|
|
66
66
|
var EmailMessageFactory = require("./creativeWork/message/email");
|
|
67
67
|
var MovieFactory = require("./creativeWork/movie");
|
|
68
68
|
var NoteDigitalDocumentFactory = require("./creativeWork/noteDigitalDocument");
|
|
69
|
+
var SoftwareApplicationFactory = require("./creativeWork/softwareApplication");
|
|
69
70
|
var WebApplicationFactory = require("./creativeWork/softwareApplication/webApplication");
|
|
70
71
|
var creativeWorkType_1 = require("./creativeWorkType");
|
|
71
72
|
var CustomerFactory = require("./customer");
|
|
@@ -342,6 +343,7 @@ exports.categoryCode = CategoryCodeFactory;
|
|
|
342
343
|
exports.clientUser = ClientUserFactory;
|
|
343
344
|
var creativeWork;
|
|
344
345
|
(function (creativeWork) {
|
|
346
|
+
// export import ICreativeWork = CreativeWorkFactory.ICreativeWork;
|
|
345
347
|
var certification;
|
|
346
348
|
(function (certification) {
|
|
347
349
|
/**
|
|
@@ -353,6 +355,9 @@ var creativeWork;
|
|
|
353
355
|
* アプリケーションアイデンティティ
|
|
354
356
|
*/
|
|
355
357
|
certification.webApplication = webApplicationCertification;
|
|
358
|
+
/**
|
|
359
|
+
* ウェブサイトアイデンティティ
|
|
360
|
+
*/
|
|
356
361
|
certification.webSite = webSiteCertification;
|
|
357
362
|
})(certification = creativeWork.certification || (creativeWork.certification = {}));
|
|
358
363
|
creativeWork.comment = CommentFactory;
|
|
@@ -360,10 +365,19 @@ var creativeWork;
|
|
|
360
365
|
(function (message) {
|
|
361
366
|
message.email = EmailMessageFactory;
|
|
362
367
|
})(message = creativeWork.message || (creativeWork.message = {}));
|
|
368
|
+
/**
|
|
369
|
+
* コンテンツ
|
|
370
|
+
*/
|
|
363
371
|
creativeWork.movie = MovieFactory;
|
|
372
|
+
/**
|
|
373
|
+
* メモ
|
|
374
|
+
*/
|
|
364
375
|
creativeWork.noteDigitalDocument = NoteDigitalDocumentFactory;
|
|
365
376
|
var softwareApplication;
|
|
366
377
|
(function (softwareApplication) {
|
|
378
|
+
// export import ISoftwareApplication = SoftwareApplicationFactory.ISoftwareApplication;
|
|
379
|
+
// tslint:disable-next-line:no-shadowed-variable
|
|
380
|
+
softwareApplication.softwareApplication = SoftwareApplicationFactory;
|
|
367
381
|
softwareApplication.webApplication = WebApplicationFactory;
|
|
368
382
|
})(softwareApplication = creativeWork.softwareApplication || (creativeWork.softwareApplication = {}));
|
|
369
383
|
})(creativeWork = exports.creativeWork || (exports.creativeWork = {}));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ICOAInfo, ILocation as IEventLocation, IName as IEventName, ISuperEvent
|
|
1
|
+
import { ICOAInfo, ILocation as IEventLocation, IName as IEventName, ISuperEvent } from '../event/screeningEvent';
|
|
2
|
+
import { IWorkPerformed } from '../event/screeningEventSeries';
|
|
2
3
|
import { EventType } from '../eventType';
|
|
3
4
|
import { IMultilingualString } from '../multilingualString';
|
|
4
5
|
import { IPriceSpecification as ICategoryCodeChargeSpecification } from '../priceSpecification/categoryCodeChargeSpecification';
|