@chevre/factory 4.281.0-alpha.5 → 4.281.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/additionalProperty.d.ts +2 -1
- package/lib/event/anyEvent.d.ts +51 -14
- package/lib/event/screeningEvent.d.ts +9 -5
- package/lib/index.d.ts +6 -1
- package/lib/index.js +6 -1
- package/lib/organization.d.ts +0 -1
- package/lib/place/movieTheater.d.ts +1 -1
- package/lib/place/screeningRoom.d.ts +1 -1
- package/lib/place.d.ts +3 -0
- package/lib/propertyValue/locationFeatureSpecification.d.ts +4 -0
- package/lib/propertyValue/locationFeatureSpecification.js +2 -0
- package/lib/propertyValue.d.ts +3 -0
- package/lib/propertyValue.js +5 -0
- package/lib/service/paymentService.d.ts +10 -5
- package/lib/task/aggregateScreeningEvent.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { EventType } from './eventType';
|
|
2
2
|
import { IMultilingualString } from './multilingualString';
|
|
3
3
|
import { IProject } from './project';
|
|
4
|
+
import { PropertyValueType } from './propertyValue';
|
|
4
5
|
import { SortType } from './sortType';
|
|
5
6
|
import { IThing } from './thing';
|
|
6
|
-
export declare type CategorySetIdentifier = EventType.ScreeningEvent | EventType.ScreeningEventSeries;
|
|
7
|
+
export declare type CategorySetIdentifier = EventType.ScreeningEvent | EventType.ScreeningEventSeries | PropertyValueType.LocationFeatureSpecification;
|
|
7
8
|
/**
|
|
8
9
|
* {@link https://schema.org/CategoryCodeSet}
|
|
9
10
|
*/
|
package/lib/event/anyEvent.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ export interface IItemOffered {
|
|
|
106
106
|
/**
|
|
107
107
|
* サービスアウトプット
|
|
108
108
|
*/
|
|
109
|
-
serviceOutput
|
|
109
|
+
serviceOutput: IServiceOutput;
|
|
110
110
|
typeOf: ProductType.Transportation;
|
|
111
111
|
availableChannel: ReservationFactory.IServiceChannel;
|
|
112
112
|
}
|
|
@@ -119,8 +119,11 @@ export interface ISellerMakesOffer extends Pick<OfferFactory.IOffer, 'typeOf' |
|
|
|
119
119
|
}
|
|
120
120
|
export interface ISeller {
|
|
121
121
|
typeOf: OrganizationType.Corporation;
|
|
122
|
+
/**
|
|
123
|
+
* 販売者ID
|
|
124
|
+
*/
|
|
122
125
|
id: string;
|
|
123
|
-
name?:
|
|
126
|
+
name?: IMultilingualString;
|
|
124
127
|
makesOffer: ISellerMakesOffer[];
|
|
125
128
|
}
|
|
126
129
|
export declare type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode.C62>, 'maxValue' | 'typeOf' | 'unitCode' | 'value'>;
|
|
@@ -132,10 +135,12 @@ export interface IOffer {
|
|
|
132
135
|
priceCurrency: PriceCurrency.JPY;
|
|
133
136
|
/**
|
|
134
137
|
* 情報提供終了日時(オンライン取引アプリケーションの設定)
|
|
138
|
+
* @deprecated Use seller.makesOffer
|
|
135
139
|
*/
|
|
136
140
|
availabilityEnds: Date;
|
|
137
141
|
/**
|
|
138
142
|
* 情報提供開始日時(オンライン取引アプリケーションの設定)
|
|
143
|
+
* @deprecated Use seller.makesOffer
|
|
139
144
|
*/
|
|
140
145
|
availabilityStarts: Date;
|
|
141
146
|
eligibleQuantity: IEligibleQuantity;
|
|
@@ -146,10 +151,12 @@ export interface IOffer {
|
|
|
146
151
|
offeredThrough?: IOfferedThrough;
|
|
147
152
|
/**
|
|
148
153
|
* 販売可能期間from(オンライン取引アプリケーションの設定)
|
|
154
|
+
* @deprecated Use seller.makesOffer
|
|
149
155
|
*/
|
|
150
156
|
validFrom: Date;
|
|
151
157
|
/**
|
|
152
158
|
* 販売可能期間through(オンライン取引アプリケーションの設定)
|
|
159
|
+
* @deprecated Use seller.makesOffer
|
|
153
160
|
*/
|
|
154
161
|
validThrough: Date;
|
|
155
162
|
unacceptedPaymentMethod?: string[];
|
|
@@ -205,7 +212,7 @@ export interface IAttributes extends EventFactory.IAttributes<EventType.Event> {
|
|
|
205
212
|
/**
|
|
206
213
|
* 販売情報
|
|
207
214
|
*/
|
|
208
|
-
offers
|
|
215
|
+
offers: IOffer;
|
|
209
216
|
/**
|
|
210
217
|
* 発券数
|
|
211
218
|
*/
|
|
@@ -238,21 +245,27 @@ export declare type ISeller4create = Pick<ISeller, 'makesOffer'> & {
|
|
|
238
245
|
*/
|
|
239
246
|
makesOfferDefault?: Pick<ISellerMakesOffer, 'typeOf' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'>;
|
|
240
247
|
};
|
|
241
|
-
export
|
|
242
|
-
|
|
243
|
-
|
|
248
|
+
export interface IAvailableChannel4create {
|
|
249
|
+
serviceLocation: {
|
|
250
|
+
/**
|
|
251
|
+
* ルームコード
|
|
252
|
+
*/
|
|
253
|
+
branchCode: string;
|
|
254
|
+
containedInPlace: {
|
|
244
255
|
/**
|
|
245
|
-
*
|
|
256
|
+
* 施設ID
|
|
246
257
|
*/
|
|
247
|
-
|
|
248
|
-
containedInPlace: {
|
|
249
|
-
/**
|
|
250
|
-
* 施設ID
|
|
251
|
-
*/
|
|
252
|
-
id: string;
|
|
253
|
-
};
|
|
258
|
+
id: string;
|
|
254
259
|
};
|
|
255
260
|
};
|
|
261
|
+
}
|
|
262
|
+
export declare type IReservationFor4create = Pick<IReservationFor, 'identifier'>;
|
|
263
|
+
export declare type IServiceOutput4create = Pick<IServiceOutput, 'reservedTicket' | 'typeOf'> & {
|
|
264
|
+
reservationFor: IReservationFor4create;
|
|
265
|
+
};
|
|
266
|
+
export declare type IItemOffered4create = Pick<IItemOffered, 'id'> & {
|
|
267
|
+
availableChannel: IAvailableChannel4create;
|
|
268
|
+
serviceOutput: IServiceOutput4create;
|
|
256
269
|
};
|
|
257
270
|
export declare type IOffers4create = Pick<IOffer, 'unacceptedPaymentMethod'> & {
|
|
258
271
|
/**
|
|
@@ -308,6 +321,30 @@ export interface IOfferSearchConditions {
|
|
|
308
321
|
ids?: string[];
|
|
309
322
|
};
|
|
310
323
|
serviceOutput?: {
|
|
324
|
+
reservationFor?: {
|
|
325
|
+
arrivalBusStop?: {
|
|
326
|
+
/**
|
|
327
|
+
* ターミナルコード
|
|
328
|
+
*/
|
|
329
|
+
branchCode?: {
|
|
330
|
+
$eq?: string;
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
departureBusStop?: {
|
|
334
|
+
/**
|
|
335
|
+
* ターミナルコード
|
|
336
|
+
*/
|
|
337
|
+
branchCode?: {
|
|
338
|
+
$eq?: string;
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
/**
|
|
342
|
+
* トリップコード
|
|
343
|
+
*/
|
|
344
|
+
identifier?: {
|
|
345
|
+
$eq?: string;
|
|
346
|
+
};
|
|
347
|
+
};
|
|
311
348
|
reservedTicket?: {
|
|
312
349
|
ticketedSeat?: {
|
|
313
350
|
typeOfs?: string[];
|
|
@@ -64,11 +64,13 @@ export interface IOffer {
|
|
|
64
64
|
typeOf: OfferType.Offer;
|
|
65
65
|
priceCurrency: PriceCurrency.JPY;
|
|
66
66
|
/**
|
|
67
|
-
* 情報提供終了日時
|
|
67
|
+
* 情報提供終了日時(オンライン取引アプリケーションの設定)
|
|
68
|
+
* @deprecated Use seller.makesOffer
|
|
68
69
|
*/
|
|
69
70
|
availabilityEnds: Date;
|
|
70
71
|
/**
|
|
71
|
-
* 情報提供開始日時
|
|
72
|
+
* 情報提供開始日時(オンライン取引アプリケーションの設定)
|
|
73
|
+
* @deprecated Use seller.makesOffer
|
|
72
74
|
*/
|
|
73
75
|
availabilityStarts: Date;
|
|
74
76
|
eligibleQuantity: IEligibleQuantity;
|
|
@@ -78,11 +80,13 @@ export interface IOffer {
|
|
|
78
80
|
*/
|
|
79
81
|
offeredThrough?: IOfferedThrough;
|
|
80
82
|
/**
|
|
81
|
-
* 販売可能期間from
|
|
83
|
+
* 販売可能期間from(オンライン取引アプリケーションの設定)
|
|
84
|
+
* @deprecated Use seller.makesOffer
|
|
82
85
|
*/
|
|
83
86
|
validFrom: Date;
|
|
84
87
|
/**
|
|
85
|
-
* 販売可能期間through
|
|
88
|
+
* 販売可能期間through(オンライン取引アプリケーションの設定)
|
|
89
|
+
* @deprecated Use seller.makesOffer
|
|
86
90
|
*/
|
|
87
91
|
validThrough: Date;
|
|
88
92
|
unacceptedPaymentMethod?: string[];
|
|
@@ -177,7 +181,7 @@ export interface IAttributes extends Omit<AnyEventFactory.IAttributes, 'offers'
|
|
|
177
181
|
/**
|
|
178
182
|
* 販売情報
|
|
179
183
|
*/
|
|
180
|
-
offers
|
|
184
|
+
offers: IOffer | IOffer4COA;
|
|
181
185
|
/**
|
|
182
186
|
* その他COA情報
|
|
183
187
|
* 基本的にsskts対応
|
package/lib/index.d.ts
CHANGED
|
@@ -99,6 +99,7 @@ import * as ProductFactory from './product';
|
|
|
99
99
|
import * as ProgramMembershipFactory from './programMembership';
|
|
100
100
|
import * as project from './project';
|
|
101
101
|
import * as PropertyValueFactory from './propertyValue';
|
|
102
|
+
import * as LocationFeatureSpecificationFactory from './propertyValue/locationFeatureSpecification';
|
|
102
103
|
import * as QualitativeValueFactory from './qualitativeValue';
|
|
103
104
|
import * as QuantitativeValueFactory from './quantitativeValue';
|
|
104
105
|
import * as AccountingReportFactory from './report/accountingReport';
|
|
@@ -363,7 +364,11 @@ export import priceSpecificationType = PriceSpecificationType;
|
|
|
363
364
|
export import programMembership = ProgramMembershipFactory;
|
|
364
365
|
export import product = ProductFactory;
|
|
365
366
|
export import project = project;
|
|
366
|
-
export
|
|
367
|
+
export declare namespace propertyValue {
|
|
368
|
+
export import PropertyValueType = PropertyValueFactory.PropertyValueType;
|
|
369
|
+
export import IPropertyValue = PropertyValueFactory.IPropertyValue;
|
|
370
|
+
export import locationFeatureSpecification = LocationFeatureSpecificationFactory;
|
|
371
|
+
}
|
|
367
372
|
export import qualitativeValue = QualitativeValueFactory;
|
|
368
373
|
export import quantitativeValue = QuantitativeValueFactory;
|
|
369
374
|
export declare namespace report {
|
package/lib/index.js
CHANGED
|
@@ -91,6 +91,7 @@ var ProductFactory = require("./product");
|
|
|
91
91
|
var ProgramMembershipFactory = require("./programMembership");
|
|
92
92
|
var project = require("./project");
|
|
93
93
|
var PropertyValueFactory = require("./propertyValue");
|
|
94
|
+
var LocationFeatureSpecificationFactory = require("./propertyValue/locationFeatureSpecification");
|
|
94
95
|
var QualitativeValueFactory = require("./qualitativeValue");
|
|
95
96
|
var QuantitativeValueFactory = require("./quantitativeValue");
|
|
96
97
|
var AccountingReportFactory = require("./report/accountingReport");
|
|
@@ -334,7 +335,11 @@ exports.priceSpecificationType = priceSpecificationType_1.PriceSpecificationType
|
|
|
334
335
|
exports.programMembership = ProgramMembershipFactory;
|
|
335
336
|
exports.product = ProductFactory;
|
|
336
337
|
exports.project = project;
|
|
337
|
-
|
|
338
|
+
var propertyValue;
|
|
339
|
+
(function (propertyValue) {
|
|
340
|
+
propertyValue.PropertyValueType = PropertyValueFactory.PropertyValueType;
|
|
341
|
+
propertyValue.locationFeatureSpecification = LocationFeatureSpecificationFactory;
|
|
342
|
+
})(propertyValue = exports.propertyValue || (exports.propertyValue = {}));
|
|
338
343
|
exports.qualitativeValue = QualitativeValueFactory;
|
|
339
344
|
exports.quantitativeValue = QuantitativeValueFactory;
|
|
340
345
|
var report;
|
package/lib/organization.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ export interface IOrganization extends Pick<IThing, 'name' | 'url'> {
|
|
|
14
14
|
legalName?: IMultilingualString;
|
|
15
15
|
location?: ILocation;
|
|
16
16
|
logo?: string;
|
|
17
|
-
parentOrganization?: IParentOrganization;
|
|
18
17
|
telephone?: string;
|
|
19
18
|
/**
|
|
20
19
|
* A property-value pair representing an additional characteristics of the entitity,
|
|
@@ -106,7 +106,7 @@ export interface IPlaceWithoutScreeningRoom extends PlaceFactory.IPlace {
|
|
|
106
106
|
/**
|
|
107
107
|
* The larger organization that this organization is a subOrganization of, if any.
|
|
108
108
|
*/
|
|
109
|
-
parentOrganization
|
|
109
|
+
parentOrganization: IParentOrganization;
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
112
|
* 施設
|
|
@@ -5,7 +5,7 @@ import { IPlace as IScreeningRoomSection } from './screeningRoomSection';
|
|
|
5
5
|
/**
|
|
6
6
|
* ルームインターフェース
|
|
7
7
|
*/
|
|
8
|
-
export interface IPlace extends Pick<PlaceFactory.IPlace, 'project' | 'typeOf' | 'branchCode' | 'name' | 'address' | 'containedInPlace' | 'containsPlace' | 'additionalProperty' | 'openSeatingAllowed' | 'maximumAttendeeCapacity'> {
|
|
8
|
+
export interface IPlace extends Pick<PlaceFactory.IPlace, 'project' | 'typeOf' | 'amenityFeature' | 'branchCode' | 'name' | 'address' | 'containedInPlace' | 'containsPlace' | 'additionalProperty' | 'openSeatingAllowed' | 'maximumAttendeeCapacity'> {
|
|
9
9
|
typeOf: PlaceType.ScreeningRoom;
|
|
10
10
|
/**
|
|
11
11
|
* セクションリスト
|
package/lib/place.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import { IMultilingualString } from './multilingualString';
|
|
|
2
2
|
import { PlaceType } from './placeType';
|
|
3
3
|
import { IProject } from './project';
|
|
4
4
|
import { IPropertyValue } from './propertyValue';
|
|
5
|
+
import { IPropertyValue as ILocationFeatureSpecification } from './propertyValue/locationFeatureSpecification';
|
|
5
6
|
import { IThing } from './thing';
|
|
7
|
+
export declare type IAmenityFeature = ILocationFeatureSpecification;
|
|
6
8
|
/**
|
|
7
9
|
* 場所インターフェース
|
|
8
10
|
*/
|
|
@@ -10,6 +12,7 @@ export interface IPlace extends Pick<IThing, 'identifier' | 'name'> {
|
|
|
10
12
|
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
11
13
|
typeOf: PlaceType;
|
|
12
14
|
id?: string;
|
|
15
|
+
amenityFeature?: IAmenityFeature[];
|
|
13
16
|
address?: IMultilingualString;
|
|
14
17
|
branchCode?: string;
|
|
15
18
|
containedInPlace?: IPlace;
|
package/lib/propertyValue.d.ts
CHANGED
package/lib/propertyValue.js
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PropertyValueType = void 0;
|
|
4
|
+
var PropertyValueType;
|
|
5
|
+
(function (PropertyValueType) {
|
|
6
|
+
PropertyValueType["LocationFeatureSpecification"] = "LocationFeatureSpecification";
|
|
7
|
+
})(PropertyValueType = exports.PropertyValueType || (exports.PropertyValueType = {}));
|
|
@@ -9,6 +9,15 @@ export declare enum PaymentServiceType {
|
|
|
9
9
|
MovieTicket = "MovieTicket",
|
|
10
10
|
PaymentCard = "PaymentCard"
|
|
11
11
|
}
|
|
12
|
+
export interface IPaymentUrlSettings {
|
|
13
|
+
/**
|
|
14
|
+
* 外部決済URL有効時間(秒)
|
|
15
|
+
* 外部決済URL発行が必要な場合のみ
|
|
16
|
+
*/
|
|
17
|
+
expiresInSeconds: number;
|
|
18
|
+
useCallback?: boolean;
|
|
19
|
+
useWebhook?: boolean;
|
|
20
|
+
}
|
|
12
21
|
export interface IProviderCredentials {
|
|
13
22
|
/**
|
|
14
23
|
* GMOショップID
|
|
@@ -22,11 +31,7 @@ export interface IProviderCredentials {
|
|
|
22
31
|
* トークン認証コード
|
|
23
32
|
*/
|
|
24
33
|
tokenizationCode?: string;
|
|
25
|
-
|
|
26
|
-
* 外部決済URL有効時間(秒)
|
|
27
|
-
* 外部決済URL発行が必要な場合のみ
|
|
28
|
-
*/
|
|
29
|
-
paymentUrlExpiresInSeconds?: number;
|
|
34
|
+
paymentUrl?: IPaymentUrlSettings;
|
|
30
35
|
/**
|
|
31
36
|
* ムビチケ興行会社コード
|
|
32
37
|
*/
|
|
@@ -3,7 +3,7 @@ import { EventType } from '../eventType';
|
|
|
3
3
|
import * as TaskFactory from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
5
|
export interface IData {
|
|
6
|
-
typeOf: EventType.ScreeningEvent;
|
|
6
|
+
typeOf: EventType.Event | EventType.ScreeningEvent;
|
|
7
7
|
id: string;
|
|
8
8
|
}
|
|
9
9
|
export interface IAttributes extends TaskFactory.IAttributes {
|