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

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/index.d.ts CHANGED
@@ -82,6 +82,7 @@ import { PaymentStatusType } from './paymentStatusType';
82
82
  import * as PermitFactory from './permit';
83
83
  import * as PersonFactory from './person';
84
84
  import { PersonType } from './personType';
85
+ import * as BusStopFactory from './place/busStop';
85
86
  import * as MovieTheaterPlaceFactory from './place/movieTheater';
86
87
  import * as ScreeningRoomPlaceFactory from './place/screeningRoom';
87
88
  import * as ScreeningRoomSectionPlaceFactory from './place/screeningRoomSection';
@@ -341,6 +342,7 @@ export import person = PersonFactory;
341
342
  export import personType = PersonType;
342
343
  export import priceCurrency = PriceCurrency;
343
344
  export declare namespace place {
345
+ export import busStop = BusStopFactory;
344
346
  export import movieTheater = MovieTheaterPlaceFactory;
345
347
  export import screeningRoom = ScreeningRoomPlaceFactory;
346
348
  export import screeningRoomSection = ScreeningRoomSectionPlaceFactory;
package/lib/index.js CHANGED
@@ -78,6 +78,7 @@ var paymentStatusType_1 = require("./paymentStatusType");
78
78
  var PermitFactory = require("./permit");
79
79
  var PersonFactory = require("./person");
80
80
  var personType_1 = require("./personType");
81
+ var BusStopFactory = require("./place/busStop");
81
82
  var MovieTheaterPlaceFactory = require("./place/movieTheater");
82
83
  var ScreeningRoomPlaceFactory = require("./place/screeningRoom");
83
84
  var ScreeningRoomSectionPlaceFactory = require("./place/screeningRoomSection");
@@ -319,6 +320,7 @@ exports.personType = personType_1.PersonType;
319
320
  exports.priceCurrency = priceCurrency_1.PriceCurrency;
320
321
  var place;
321
322
  (function (place) {
323
+ place.busStop = BusStopFactory;
322
324
  place.movieTheater = MovieTheaterPlaceFactory;
323
325
  place.screeningRoom = ScreeningRoomPlaceFactory;
324
326
  place.screeningRoomSection = ScreeningRoomSectionPlaceFactory;
package/lib/order.d.ts CHANGED
@@ -227,7 +227,7 @@ export interface ISimpleOrder extends Pick<IThing, 'name'> {
227
227
  */
228
228
  orderDate: Date;
229
229
  }
230
- export interface IReservationFor4OrderedItem {
230
+ export interface IReservationFor4EventServiceOrderedItem {
231
231
  location?: {
232
232
  branchCode: string;
233
233
  name?: IMultilingualString;
@@ -243,7 +243,16 @@ export interface IEventServiceAsOrderedItem {
243
243
  typeOf: ProductType.EventService;
244
244
  serviceOutput: {
245
245
  typeOf: ReservationType.EventReservation | ReservationType.ReservationPackage;
246
- reservationFor: IReservationFor4OrderedItem;
246
+ reservationFor: IReservationFor4EventServiceOrderedItem;
247
+ };
248
+ serviceType?: EventReservationFactory.IServiceTypeOfIssuedThrough;
249
+ }
250
+ export declare type IReservationFor4TransportationOrderedItem = Pick<ITripAsReservationFor, 'typeOf' | 'id' | 'arrivalTime' | 'departureTime'>;
251
+ export interface ITransportationAsOrderedItem {
252
+ typeOf: ProductType.Transportation;
253
+ serviceOutput: {
254
+ typeOf: ReservationType.ReservationPackage;
255
+ reservationFor: IReservationFor4TransportationOrderedItem;
247
256
  };
248
257
  serviceType?: EventReservationFactory.IServiceTypeOfIssuedThrough;
249
258
  }
@@ -254,7 +263,7 @@ export declare type IProductAsOrderedItem = Pick<IProduct, 'id' | 'serviceType'
254
263
  */
255
264
  export interface IOrderedItem {
256
265
  typeOf: 'OrderItem';
257
- orderedItem: IProductAsOrderedItem | IEventServiceAsOrderedItem;
266
+ orderedItem: IProductAsOrderedItem | IEventServiceAsOrderedItem | ITransportationAsOrderedItem;
258
267
  }
259
268
  /**
260
269
  * 注文
@@ -0,0 +1,41 @@
1
+ import { IMultilingualString } from '../multilingualString';
2
+ import * as PlaceFactory from '../place';
3
+ import { PlaceType } from '../placeType';
4
+ import { SortType } from '../sortType';
5
+ export interface IPlace extends Pick<PlaceFactory.IPlace, 'project' | 'typeOf' | 'id' | 'name' | 'branchCode'> {
6
+ typeOf: PlaceType.BusStop;
7
+ id: string;
8
+ branchCode: string;
9
+ name: IMultilingualString;
10
+ }
11
+ /**
12
+ * ソート条件
13
+ */
14
+ export interface ISortOrder {
15
+ branchCode?: SortType;
16
+ }
17
+ export interface ISearchConditions {
18
+ limit?: number;
19
+ page?: number;
20
+ sort?: ISortOrder;
21
+ project?: {
22
+ id?: {
23
+ $eq?: string;
24
+ };
25
+ };
26
+ id?: {
27
+ $eq?: string;
28
+ $in?: string[];
29
+ };
30
+ branchCode?: {
31
+ $eq?: string;
32
+ $regex?: string;
33
+ $in?: string[];
34
+ };
35
+ /**
36
+ * 名称
37
+ */
38
+ name?: {
39
+ $regex?: string;
40
+ };
41
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,6 +4,7 @@ import * as ReservationFactory from '../reservation';
4
4
  import { ReservationStatusType } from '../reservationStatusType';
5
5
  import { ReservationType } from '../reservationType';
6
6
  import { ITrip as IBusTrip } from '../trip/busTrip';
7
+ import { TripType } from '../tripType';
7
8
  export declare type IReservationFor = Pick<IBusTrip, 'arrivalBusStop' | 'arrivalTime' | 'busName' | 'busNumber' | 'departureBusStop' | 'departureTime' | 'id' | 'identifier' | 'name' | 'typeOf'>;
8
9
  export declare type IPriceComponentSpecification = ITicketPriceComponent;
9
10
  export declare type IPriceSpecification = ITicketPriceSpecification;
@@ -32,8 +33,21 @@ export interface IReservation extends ReservationFactory.IReservation<IPriceSpec
32
33
  subReservation?: ISubReservation[];
33
34
  typeOf: ReservationType.BusReservation;
34
35
  }
36
+ export interface IReservationForSearchConditions {
37
+ typeOf?: {
38
+ $eq?: TripType;
39
+ };
40
+ id?: {
41
+ $eq?: string;
42
+ $in?: string[];
43
+ };
44
+ }
35
45
  /**
36
46
  * 検索条件
37
47
  */
38
48
  export interface ISearchConditions extends ReservationFactory.ISearchConditions<ReservationType.BusReservation> {
49
+ /**
50
+ * 予約対象
51
+ */
52
+ reservationFor?: IReservationForSearchConditions;
39
53
  }
@@ -60,7 +60,9 @@ export interface IReservation extends ReservationFactory.IReservation<IPriceSpec
60
60
  }
61
61
  export interface IReservationForSearchConditions {
62
62
  typeOf?: EventType;
63
- id?: string;
63
+ id?: string | {
64
+ $eq?: string;
65
+ };
64
66
  ids?: string[];
65
67
  location?: {
66
68
  ids?: string[];
@@ -1,8 +1,9 @@
1
- import { IPlace } from '../place';
1
+ import { IPlace as IBusStop } from '../place/busStop';
2
2
  import { IProject } from '../project';
3
3
  import { ITrip as IBaseTrip } from '../trip';
4
4
  import { TripType } from '../tripType';
5
- export declare type IBusStop = Pick<IPlace, 'typeOf' | 'branchCode' | 'name'>;
5
+ export declare type IArrivalBusStop = Pick<IBusStop, 'typeOf' | 'branchCode' | 'name'>;
6
+ export declare type IDepartureBusStop = Pick<IBusStop, 'typeOf' | 'branchCode' | 'name'>;
6
7
  export interface ITrip extends Pick<IBaseTrip, 'id' | 'name' | 'offers'> {
7
8
  arrivalBusStop: IBusStop;
8
9
  departureBusStop: IBusStop;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.281.0-alpha.2",
3
+ "version": "4.281.0-alpha.4",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",