@chevre/factory 8.0.0-alpha.6 → 8.0.0-alpha.8
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/chevre/action/update/delete.d.ts +1 -1
- package/lib/chevre/action/update/update/object.d.ts +1 -1
- package/lib/chevre/action/update/update/result.d.ts +1 -1
- package/lib/chevre/action/update/update/targetCollection.d.ts +1 -1
- package/lib/chevre/event/{screeningEventSeries.d.ts → eventSeries.d.ts} +5 -10
- package/lib/chevre/event/screeningEvent.d.ts +1 -1
- package/lib/chevre/index.d.ts +1 -4
- package/lib/chevre/index.js +3 -6
- package/lib/chevre/notification/eventSeries.d.ts +1 -1
- package/lib/chevre/reservation/event.d.ts +1 -1
- package/lib/chevre/unitPriceOffer.d.ts +0 -16
- package/package.json +1 -1
- package/lib/chevre/advanceBookingRequirement.d.ts +0 -60
- package/lib/chevre/event/screeningEventSeries.js +0 -2
- /package/lib/chevre/{advanceBookingRequirement.js → event/eventSeries.js} +0 -0
|
@@ -4,7 +4,7 @@ import { IAbout as INoteAbout } from '../../creativeWork/noteDigitalDocument';
|
|
|
4
4
|
import { CreativeWorkType } from '../../creativeWorkType';
|
|
5
5
|
import { IPerson } from '../../person';
|
|
6
6
|
import { IInstrumentAsApplication } from './instrumentAsApplication';
|
|
7
|
-
import { IEvent as IEventSeries } from '../../event/
|
|
7
|
+
import { IEvent as IEventSeries } from '../../event/eventSeries';
|
|
8
8
|
import { IAggregateOffer } from '../../offer/aggregateOffer';
|
|
9
9
|
import { IOfferCatalog } from '../../offerCatalog';
|
|
10
10
|
import { IGood, IOwnershipInfo } from '../../ownershipInfo';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ICreativeWork as IMovie } from '../../../creativeWork/movie';
|
|
2
2
|
import { CreativeWorkType } from '../../../creativeWorkType';
|
|
3
|
-
import { IEvent as IEventSeries } from '../../../event/
|
|
3
|
+
import { IEvent as IEventSeries } from '../../../event/eventSeries';
|
|
4
4
|
import { EventType } from '../../../eventType';
|
|
5
5
|
import { IOfferCatalog } from '../../../offerCatalog';
|
|
6
6
|
import { IOrder } from '../../../order';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ICreativeWork as IMovie } from '../../../creativeWork/movie';
|
|
2
2
|
import { CreativeWorkType } from '../../../creativeWorkType';
|
|
3
|
-
import { IEvent as IEventSeries } from '../../../event/
|
|
3
|
+
import { IEvent as IEventSeries } from '../../../event/eventSeries';
|
|
4
4
|
import { EventType } from '../../../eventType';
|
|
5
5
|
import { IOfferCatalog } from '../../../offerCatalog';
|
|
6
6
|
import { IOrder } from '../../../order';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ICreativeWork as IMovie } from '../../../creativeWork/movie';
|
|
2
2
|
import { IAbout as INoteAbout } from '../../../creativeWork/noteDigitalDocument';
|
|
3
3
|
import { CreativeWorkType } from '../../../creativeWorkType';
|
|
4
|
-
import { IEvent as IEventSeries } from '../../../event/
|
|
4
|
+
import { IEvent as IEventSeries } from '../../../event/eventSeries';
|
|
5
5
|
import { EventType } from '../../../eventType';
|
|
6
6
|
import { IOfferCatalog } from '../../../offerCatalog';
|
|
7
7
|
import { OrderType } from '../../../order';
|
|
@@ -17,14 +17,6 @@ export interface ISingleOffer {
|
|
|
17
17
|
*/
|
|
18
18
|
unacceptedPaymentMethod?: IUnacceptedPaymentMethodType[];
|
|
19
19
|
}
|
|
20
|
-
/**
|
|
21
|
-
* 施設コンテンツに対する集約オファー
|
|
22
|
-
* 対応決済方法は別リポジトリで管理される
|
|
23
|
-
*/
|
|
24
|
-
export interface IAggregateOffer {
|
|
25
|
-
typeOf: OfferType.AggregateOffer;
|
|
26
|
-
unacceptedPaymentMethod?: never;
|
|
27
|
-
}
|
|
28
20
|
export interface IVideoFormat {
|
|
29
21
|
typeOf: string;
|
|
30
22
|
name: string;
|
|
@@ -118,7 +110,6 @@ export interface IAttributes extends Pick<IBaseAttributes<EventType.ScreeningEve
|
|
|
118
110
|
* 吹替利用可能言語
|
|
119
111
|
*/
|
|
120
112
|
dubLanguage?: ILanguage;
|
|
121
|
-
videoFormat?: never;
|
|
122
113
|
/**
|
|
123
114
|
* 音響方式
|
|
124
115
|
*/
|
|
@@ -154,7 +145,7 @@ export interface IAttributes extends Pick<IBaseAttributes<EventType.ScreeningEve
|
|
|
154
145
|
/**
|
|
155
146
|
* 販売情報
|
|
156
147
|
*/
|
|
157
|
-
offers?: ISingleOffer
|
|
148
|
+
offers?: ISingleOffer;
|
|
158
149
|
/**
|
|
159
150
|
* その他COA情報
|
|
160
151
|
*/
|
|
@@ -217,6 +208,10 @@ export interface ISearchConditions extends Pick<IBaseSearchConditions<EventType.
|
|
|
217
208
|
$eq?: string;
|
|
218
209
|
};
|
|
219
210
|
};
|
|
211
|
+
/**
|
|
212
|
+
* 上映方式区分
|
|
213
|
+
* subEvent.videoFormatで検索します
|
|
214
|
+
*/
|
|
220
215
|
videoFormat?: {
|
|
221
216
|
typeOf?: {
|
|
222
217
|
$eq?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { COAFactory } from '@coasystems/factory';
|
|
2
2
|
import { IEvent as IBaseEvent, ISearchConditions as IBaseSearchConditions, ISortOrder } from '../event';
|
|
3
|
-
import { IEvent as IEventSeries, IUnacceptedPaymentMethodType } from '
|
|
3
|
+
import { IEvent as IEventSeries, IUnacceptedPaymentMethodType } from './eventSeries';
|
|
4
4
|
import { EventType } from '../eventType';
|
|
5
5
|
import { OfferType } from '../offerType';
|
|
6
6
|
import { PlaceType } from '../placeType';
|
package/lib/chevre/index.d.ts
CHANGED
|
@@ -36,7 +36,6 @@ import { ActionStatusType } from './actionStatusType';
|
|
|
36
36
|
import { ActionType } from './actionType';
|
|
37
37
|
import * as AccountTitleFactory from './accountTitle';
|
|
38
38
|
import * as AdditionalPropertyFactory from './additionalProperty';
|
|
39
|
-
import * as AdvanceBookingRequirementFactory from './advanceBookingRequirement';
|
|
40
39
|
import * as AggregationFactory from './aggregation';
|
|
41
40
|
import * as AuthorizationFactory from './authorization';
|
|
42
41
|
import * as CategoryCodeFactory from './categoryCode';
|
|
@@ -55,7 +54,7 @@ import * as CustomerFactory from './customer';
|
|
|
55
54
|
import * as EncodingFormat from './encodingFormat';
|
|
56
55
|
import * as entryPoint from './entryPoint';
|
|
57
56
|
import * as ScreeningEventFactory from './event/screeningEvent';
|
|
58
|
-
|
|
57
|
+
export * as eventSeries from './event/eventSeries';
|
|
59
58
|
import { EventStatusType } from './eventStatusType';
|
|
60
59
|
import { EventType } from './eventType';
|
|
61
60
|
import * as IAMFactory from './iam';
|
|
@@ -294,7 +293,6 @@ export declare namespace action {
|
|
|
294
293
|
}
|
|
295
294
|
export import accountTitle = AccountTitleFactory;
|
|
296
295
|
export import additionalProperty = AdditionalPropertyFactory;
|
|
297
|
-
export import advanceBookingRequirement = AdvanceBookingRequirementFactory;
|
|
298
296
|
export import aggregation = AggregationFactory;
|
|
299
297
|
export import authorization = AuthorizationFactory;
|
|
300
298
|
export import categoryCode = CategoryCodeFactory;
|
|
@@ -336,7 +334,6 @@ export import customer = CustomerFactory;
|
|
|
336
334
|
export declare namespace event {
|
|
337
335
|
export import screeningEvent = ScreeningEventFactory;
|
|
338
336
|
}
|
|
339
|
-
export import eventSeries = ScreeningEventSeriesFactory;
|
|
340
337
|
export import encodingFormat = EncodingFormat;
|
|
341
338
|
export { entryPoint };
|
|
342
339
|
export import eventStatusType = EventStatusType;
|
package/lib/chevre/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.permit = exports.paymentStatusType = 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.
|
|
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 =
|
|
3
|
+
exports.person = exports.permit = exports.paymentStatusType = 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.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.CertificationStatusEnumeration = exports.categoryCode = exports.authorization = exports.aggregation = exports.additionalProperty = 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.eventSeries = 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 = void 0;
|
|
5
5
|
exports.waiter = require("@waiter/factory");
|
|
6
6
|
exports.cognito = require("./cognito");
|
|
7
7
|
const AcceptCOAOfferActionFactory = require("./action/accept/coaOffer");
|
|
@@ -37,7 +37,6 @@ const actionStatusType_1 = require("./actionStatusType");
|
|
|
37
37
|
const actionType_1 = require("./actionType");
|
|
38
38
|
const AccountTitleFactory = require("./accountTitle");
|
|
39
39
|
const AdditionalPropertyFactory = require("./additionalProperty");
|
|
40
|
-
const AdvanceBookingRequirementFactory = require("./advanceBookingRequirement");
|
|
41
40
|
const AggregationFactory = require("./aggregation");
|
|
42
41
|
const AuthorizationFactory = require("./authorization");
|
|
43
42
|
const CategoryCodeFactory = require("./categoryCode");
|
|
@@ -58,7 +57,7 @@ const EncodingFormat = require("./encodingFormat");
|
|
|
58
57
|
const entryPoint = require("./entryPoint");
|
|
59
58
|
exports.entryPoint = entryPoint;
|
|
60
59
|
const ScreeningEventFactory = require("./event/screeningEvent");
|
|
61
|
-
|
|
60
|
+
exports.eventSeries = require("./event/eventSeries");
|
|
62
61
|
const eventStatusType_1 = require("./eventStatusType");
|
|
63
62
|
const eventType_1 = require("./eventType");
|
|
64
63
|
const IAMFactory = require("./iam");
|
|
@@ -283,7 +282,6 @@ var action;
|
|
|
283
282
|
})(action || (exports.action = action = {}));
|
|
284
283
|
exports.accountTitle = AccountTitleFactory;
|
|
285
284
|
exports.additionalProperty = AdditionalPropertyFactory;
|
|
286
|
-
exports.advanceBookingRequirement = AdvanceBookingRequirementFactory;
|
|
287
285
|
exports.aggregation = AggregationFactory;
|
|
288
286
|
exports.authorization = AuthorizationFactory;
|
|
289
287
|
exports.categoryCode = CategoryCodeFactory;
|
|
@@ -330,7 +328,6 @@ var event;
|
|
|
330
328
|
(function (event) {
|
|
331
329
|
event.screeningEvent = ScreeningEventFactory;
|
|
332
330
|
})(event || (exports.event = event = {}));
|
|
333
|
-
exports.eventSeries = ScreeningEventSeriesFactory; // reimplement from event.screeningEventSeries
|
|
334
331
|
exports.encodingFormat = EncodingFormat;
|
|
335
332
|
exports.eventStatusType = eventStatusType_1.EventStatusType;
|
|
336
333
|
exports.eventType = eventType_1.EventType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ILocation as IEventLocation, IName as IEventName, ISuperEvent } from '../event/screeningEvent';
|
|
2
|
-
import { IWorkPerformed } from '../event/
|
|
2
|
+
import { IWorkPerformed } from '../event/eventSeries';
|
|
3
3
|
import { EventType } from '../eventType';
|
|
4
4
|
import { IMultilingualString } from '../multilingualString';
|
|
5
5
|
import { ICategory as IOfferCategory, IValidRateLimit } from '../offer';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IAdvanceBookingRequirement as IActualAdvanceBookingRequirement } from './advanceBookingRequirement';
|
|
2
1
|
import { ItemAvailability } from './itemAvailability';
|
|
3
2
|
import { IAddOn, ICategory, IEligibleCategoryCode, IName, IOffer } from './offer';
|
|
4
3
|
import { OfferType } from './offerType';
|
|
@@ -41,17 +40,11 @@ export interface ISettings {
|
|
|
41
40
|
*/
|
|
42
41
|
includedInAggregateReservation?: boolean;
|
|
43
42
|
}
|
|
44
|
-
export type IAdvanceBookingRequirement = Pick<IActualAdvanceBookingRequirement, 'id' | 'identifier' | 'typeOf'>;
|
|
45
43
|
export type IAvailability = ItemAvailability.InStock | ItemAvailability.OutOfStock;
|
|
46
44
|
/**
|
|
47
45
|
* 単価オファー
|
|
48
46
|
*/
|
|
49
47
|
export interface IUnitPriceOffer extends Pick<IOffer, 'acceptedPaymentMethod' | 'project' | 'typeOf' | 'priceCurrency' | 'id' | 'identifier' | 'name' | 'description' | 'alternateName' | 'availability' | 'availableAtOrFrom' | 'itemOffered' | 'priceSpecification' | 'additionalProperty' | 'color' | 'category' | 'eligibleSeatingType' | 'eligibleMembershipType' | 'eligibleSubReservation' | 'validFrom' | 'validThrough' | 'validRateLimit'> {
|
|
50
|
-
/**
|
|
51
|
-
* The amount of time that is required between accepting the offer and the actual usage of the resource or service.
|
|
52
|
-
* 事前予約要件(興行オファー承認日時とイベント開始日時の差)
|
|
53
|
-
*/
|
|
54
|
-
advanceBookingRequirement?: IAdvanceBookingRequirement;
|
|
55
48
|
availability: IAvailability;
|
|
56
49
|
/**
|
|
57
50
|
* コード
|
|
@@ -95,10 +88,6 @@ export type ICreateParams = Pick<IUnitPriceOffer, 'acceptedPaymentMethod' | 'eli
|
|
|
95
88
|
id: string;
|
|
96
89
|
};
|
|
97
90
|
}[];
|
|
98
|
-
/**
|
|
99
|
-
* 事前予約要件
|
|
100
|
-
*/
|
|
101
|
-
advanceBookingRequirement?: Pick<IActualAdvanceBookingRequirement, 'identifier'>;
|
|
102
91
|
/**
|
|
103
92
|
* カテゴリー
|
|
104
93
|
*/
|
|
@@ -290,11 +279,6 @@ export interface ISearchConditions {
|
|
|
290
279
|
};
|
|
291
280
|
};
|
|
292
281
|
};
|
|
293
|
-
advanceBookingRequirement?: {
|
|
294
|
-
id?: {
|
|
295
|
-
$eq?: string;
|
|
296
|
-
};
|
|
297
|
-
};
|
|
298
282
|
/**
|
|
299
283
|
* 有効期間設定がない、あるいは、有効期間内
|
|
300
284
|
*/
|
package/package.json
CHANGED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { IMultilingualString } from './multilingualString';
|
|
2
|
-
import { IProject } from './project';
|
|
3
|
-
import { IQuantitativeValue } from './quantitativeValue';
|
|
4
|
-
import { SortType } from './sortType';
|
|
5
|
-
import { UnitCode } from './unitCode';
|
|
6
|
-
interface IAdvanceBookingActualUsageHours {
|
|
7
|
-
typeOf: 'OpeningHoursSpecification';
|
|
8
|
-
/**
|
|
9
|
-
* 開始時刻
|
|
10
|
-
* hh:mm:ss[Z|(+|-)hh:mm]
|
|
11
|
-
*/
|
|
12
|
-
opens: string;
|
|
13
|
-
}
|
|
14
|
-
interface IAdvanceBookingRequirement extends Pick<IQuantitativeValue<UnitCode.Day>, 'typeOf' | 'maxValue' | 'minValue' | 'unitCode' | 'description'> {
|
|
15
|
-
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
16
|
-
id: string;
|
|
17
|
-
/**
|
|
18
|
-
* 事前予約要件コード
|
|
19
|
-
*/
|
|
20
|
-
identifier: string;
|
|
21
|
-
/**
|
|
22
|
-
* n日前から
|
|
23
|
-
*/
|
|
24
|
-
maxValue?: number;
|
|
25
|
-
/**
|
|
26
|
-
* n日前まで
|
|
27
|
-
*/
|
|
28
|
-
minValue?: number;
|
|
29
|
-
/**
|
|
30
|
-
* 要件説明
|
|
31
|
-
*/
|
|
32
|
-
description?: IMultilingualString;
|
|
33
|
-
unitCode: UnitCode.Day;
|
|
34
|
-
/**
|
|
35
|
-
* 基準となるイベント開始日の時刻
|
|
36
|
-
* 未定義の場合、イベントのstartDate
|
|
37
|
-
*/
|
|
38
|
-
valueReference?: IAdvanceBookingActualUsageHours;
|
|
39
|
-
}
|
|
40
|
-
interface ISearchConditions {
|
|
41
|
-
limit?: number;
|
|
42
|
-
page?: number;
|
|
43
|
-
sort?: {
|
|
44
|
-
identifier?: SortType;
|
|
45
|
-
};
|
|
46
|
-
project?: {
|
|
47
|
-
id?: {
|
|
48
|
-
$eq?: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
id?: {
|
|
52
|
-
$eq?: string;
|
|
53
|
-
$in?: string[];
|
|
54
|
-
};
|
|
55
|
-
identifier?: {
|
|
56
|
-
$eq?: string;
|
|
57
|
-
$regex?: string;
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
export { IAdvanceBookingActualUsageHours, IAdvanceBookingRequirement, ISearchConditions };
|
|
File without changes
|