@chevre/factory 4.281.0-alpha.4 → 4.281.0-alpha.6

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.
@@ -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
  */
@@ -12,7 +12,7 @@ import * as ReservationFactory from '../reservation';
12
12
  import { ReservationType } from '../reservationType';
13
13
  import * as WebAPIFactory from '../service/webAPI';
14
14
  import { IThing } from '../thing';
15
- import { ITrip as IBusTrip } from '../trip/busTrip';
15
+ import { ITripWithDetails as IBusTrip } from '../trip/busTrip';
16
16
  import { UnitCode } from '../unitCode';
17
17
  /**
18
18
  * 予約集計
@@ -308,6 +308,30 @@ export interface IOfferSearchConditions {
308
308
  ids?: string[];
309
309
  };
310
310
  serviceOutput?: {
311
+ reservationFor?: {
312
+ arrivalBusStop?: {
313
+ /**
314
+ * ターミナルコード
315
+ */
316
+ branchCode?: {
317
+ $eq?: string;
318
+ };
319
+ };
320
+ departureBusStop?: {
321
+ /**
322
+ * ターミナルコード
323
+ */
324
+ branchCode?: {
325
+ $eq?: string;
326
+ };
327
+ };
328
+ /**
329
+ * トリップコード
330
+ */
331
+ identifier?: {
332
+ $eq?: string;
333
+ };
334
+ };
311
335
  reservedTicket?: {
312
336
  ticketedSeat?: {
313
337
  typeOfs?: string[];
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';
@@ -114,7 +115,6 @@ import * as WebAPIServiceFactory from './service/webAPI';
114
115
  import { SortType } from './sortType';
115
116
  import * as ThingFactory from './thing';
116
117
  import * as BusTripFactory from './trip/busTrip';
117
- import * as BusTripSeriesFactory from './trip/busTripSeries';
118
118
  import { TripType } from './tripType';
119
119
  import { UnitCode } from './unitCode';
120
120
  import * as UnitPriceOfferFactory from './unitPriceOffer';
@@ -364,7 +364,11 @@ export import priceSpecificationType = PriceSpecificationType;
364
364
  export import programMembership = ProgramMembershipFactory;
365
365
  export import product = ProductFactory;
366
366
  export import project = project;
367
- export import propertyValue = PropertyValueFactory;
367
+ export declare namespace propertyValue {
368
+ export import PropertyValueType = PropertyValueFactory.PropertyValueType;
369
+ export import IPropertyValue = PropertyValueFactory.IPropertyValue;
370
+ export import locationFeatureSpecification = LocationFeatureSpecificationFactory;
371
+ }
368
372
  export import qualitativeValue = QualitativeValueFactory;
369
373
  export import quantitativeValue = QuantitativeValueFactory;
370
374
  export declare namespace report {
@@ -431,10 +435,9 @@ export import taskName = TaskName;
431
435
  export import taskStatus = TaskStatus;
432
436
  export import thing = ThingFactory;
433
437
  export declare namespace trip {
434
- type ISearchConditions<T extends TripType> = T extends TripType.BusTrip ? BusTripFactory.ISearchConditions : T extends TripType.BusTripSeries ? BusTripSeriesFactory.ISearchConditions : never;
435
- type ITrip<T extends TripType> = T extends TripType.BusTrip ? BusTripFactory.ITrip : T extends TripType.BusTripSeries ? BusTripSeriesFactory.ITrip : never;
438
+ type ISearchConditions<T extends TripType> = T extends TripType.BusTrip ? BusTripFactory.ISearchConditions : never;
439
+ type ITrip<T extends TripType> = T extends TripType.BusTrip ? BusTripFactory.ITrip : never;
436
440
  export import busTrip = BusTripFactory;
437
- export import busTripSeries = BusTripSeriesFactory;
438
441
  }
439
442
  export import tripType = TripType;
440
443
  export declare namespace assetTransaction {
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");
@@ -104,7 +105,6 @@ var WebAPIServiceFactory = require("./service/webAPI");
104
105
  var sortType_1 = require("./sortType");
105
106
  var ThingFactory = require("./thing");
106
107
  var BusTripFactory = require("./trip/busTrip");
107
- var BusTripSeriesFactory = require("./trip/busTripSeries");
108
108
  var tripType_1 = require("./tripType");
109
109
  var unitCode_1 = require("./unitCode");
110
110
  var UnitPriceOfferFactory = require("./unitPriceOffer");
@@ -335,7 +335,11 @@ exports.priceSpecificationType = priceSpecificationType_1.PriceSpecificationType
335
335
  exports.programMembership = ProgramMembershipFactory;
336
336
  exports.product = ProductFactory;
337
337
  exports.project = project;
338
- exports.propertyValue = PropertyValueFactory;
338
+ var propertyValue;
339
+ (function (propertyValue) {
340
+ propertyValue.PropertyValueType = PropertyValueFactory.PropertyValueType;
341
+ propertyValue.locationFeatureSpecification = LocationFeatureSpecificationFactory;
342
+ })(propertyValue = exports.propertyValue || (exports.propertyValue = {}));
339
343
  exports.qualitativeValue = QualitativeValueFactory;
340
344
  exports.quantitativeValue = QuantitativeValueFactory;
341
345
  var report;
@@ -385,7 +389,6 @@ exports.thing = ThingFactory;
385
389
  var trip;
386
390
  (function (trip) {
387
391
  trip.busTrip = BusTripFactory;
388
- trip.busTripSeries = BusTripSeriesFactory;
389
392
  })(trip = exports.trip || (exports.trip = {}));
390
393
  exports.tripType = tripType_1.TripType;
391
394
  var assetTransaction;
@@ -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;
@@ -0,0 +1,4 @@
1
+ import * as PropertyValueFactory from '../propertyValue';
2
+ export interface IPropertyValue extends Pick<PropertyValueFactory.IPropertyValue<string>, 'name' | 'value'> {
3
+ typeOf: PropertyValueFactory.PropertyValueType.LocationFeatureSpecification;
4
+ }
@@ -1,3 +1,6 @@
1
+ export declare enum PropertyValueType {
2
+ LocationFeatureSpecification = "LocationFeatureSpecification"
3
+ }
1
4
  /**
2
5
  * 属性値インターフェース
3
6
  */
@@ -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 = {}));
@@ -3,7 +3,7 @@ import { ProductType } from '../product';
3
3
  import * as ReservationFactory from '../reservation';
4
4
  import { ReservationStatusType } from '../reservationStatusType';
5
5
  import { ReservationType } from '../reservationType';
6
- import { ITrip as IBusTrip } from '../trip/busTrip';
6
+ import { ITripWithDetails as IBusTrip } from '../trip/busTrip';
7
7
  import { TripType } from '../tripType';
8
8
  export declare type IReservationFor = Pick<IBusTrip, 'arrivalBusStop' | 'arrivalTime' | 'busName' | 'busNumber' | 'departureBusStop' | 'departureTime' | 'id' | 'identifier' | 'name' | 'typeOf'>;
9
9
  export declare type IPriceComponentSpecification = ITicketPriceComponent;
@@ -1,11 +1,51 @@
1
1
  import { IMultilingualString } from '../multilingualString';
2
+ import { IPlace as IBusStop } from '../place/busStop';
3
+ import { IProject } from '../project';
4
+ import { ITrip as IBaseTrip } from '../trip';
2
5
  import { TripType } from '../tripType';
3
- import { ITrip as IBusTripSeries } from './busTripSeries';
4
- export interface ITrip extends Pick<IBusTripSeries, 'id' | 'name' | 'offers' | 'project' | 'arrivalBusStop' | 'departureBusStop' | 'identifier'> {
6
+ export declare type IArrivalBusStop = Pick<IBusStop, 'typeOf' | 'branchCode' | 'name'>;
7
+ export declare type IDepartureBusStop = Pick<IBusStop, 'typeOf' | 'branchCode' | 'name'>;
8
+ export interface ITrip extends Pick<IBaseTrip, 'id' | 'name' | 'offers'> {
9
+ arrivalBusStop: IArrivalBusStop;
10
+ departureBusStop: IDepartureBusStop;
11
+ identifier: string;
12
+ project: Pick<IProject, 'id' | 'typeOf'>;
13
+ typeOf: TripType.BusTrip;
14
+ }
15
+ export interface ITripWithDetails extends Pick<ITrip, 'id' | 'name' | 'arrivalBusStop' | 'departureBusStop' | 'identifier' | 'typeOf'> {
5
16
  arrivalTime: Date;
6
17
  busName: IMultilingualString;
7
18
  busNumber: string;
8
19
  departureTime: Date;
9
- typeOf: TripType.BusTrip;
10
20
  }
11
- export declare type ISearchConditions = any;
21
+ export declare type ISortOrder = any;
22
+ export interface ISearchConditions {
23
+ limit?: number;
24
+ page?: number;
25
+ sort?: ISortOrder;
26
+ project?: {
27
+ id?: {
28
+ $eq?: string;
29
+ };
30
+ };
31
+ id?: {
32
+ $in?: string[];
33
+ };
34
+ identifier?: {
35
+ $eq?: string;
36
+ };
37
+ name?: {
38
+ $regex?: string;
39
+ };
40
+ typeOf: TripType;
41
+ additionalProperty?: {
42
+ $elemMatch?: {
43
+ name?: {
44
+ /**
45
+ * 一致する名称の追加特性がひとつでも存在する
46
+ */
47
+ $eq?: string;
48
+ };
49
+ };
50
+ };
51
+ }
package/lib/tripType.d.ts CHANGED
@@ -3,6 +3,5 @@
3
3
  */
4
4
  export declare enum TripType {
5
5
  BusTrip = "BusTrip",
6
- BusTripSeries = "BusTripSeries",
7
6
  Trip = "Trip"
8
7
  }
package/lib/tripType.js CHANGED
@@ -7,6 +7,5 @@ exports.TripType = void 0;
7
7
  var TripType;
8
8
  (function (TripType) {
9
9
  TripType["BusTrip"] = "BusTrip";
10
- TripType["BusTripSeries"] = "BusTripSeries";
11
10
  TripType["Trip"] = "Trip";
12
11
  })(TripType = exports.TripType || (exports.TripType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.281.0-alpha.4",
3
+ "version": "4.281.0-alpha.6",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -1,14 +0,0 @@
1
- import { IPlace as IBusStop } from '../place/busStop';
2
- import { IProject } from '../project';
3
- import { ITrip as IBaseTrip } from '../trip';
4
- import { TripType } from '../tripType';
5
- export declare type IArrivalBusStop = Pick<IBusStop, 'typeOf' | 'branchCode' | 'name'>;
6
- export declare type IDepartureBusStop = Pick<IBusStop, 'typeOf' | 'branchCode' | 'name'>;
7
- export interface ITrip extends Pick<IBaseTrip, 'id' | 'name' | 'offers'> {
8
- arrivalBusStop: IBusStop;
9
- departureBusStop: IBusStop;
10
- identifier: string;
11
- project: Pick<IProject, 'id' | 'typeOf'>;
12
- typeOf: TripType.BusTripSeries;
13
- }
14
- export declare type ISearchConditions = any;