@chevre/factory 4.281.0-alpha.3 → 4.281.0-alpha.5
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 +1 -1
- package/lib/index.d.ts +4 -4
- package/lib/index.js +2 -2
- package/lib/place/busStop.d.ts +41 -0
- package/lib/{trip/busTripSeries.js → place/busStop.js} +0 -0
- package/lib/reservation/busReservation.d.ts +15 -1
- package/lib/reservation/event.d.ts +3 -1
- package/lib/trip/busTrip.d.ts +44 -4
- package/lib/tripType.d.ts +0 -1
- package/lib/tripType.js +0 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -2241
- package/lib/trip/busTripSeries.d.ts +0 -13
package/lib/event/anyEvent.d.ts
CHANGED
|
@@ -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 {
|
|
15
|
+
import { ITripWithDetails as IBusTrip } from '../trip/busTrip';
|
|
16
16
|
import { UnitCode } from '../unitCode';
|
|
17
17
|
/**
|
|
18
18
|
* 予約集計
|
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';
|
|
@@ -113,7 +114,6 @@ import * as WebAPIServiceFactory from './service/webAPI';
|
|
|
113
114
|
import { SortType } from './sortType';
|
|
114
115
|
import * as ThingFactory from './thing';
|
|
115
116
|
import * as BusTripFactory from './trip/busTrip';
|
|
116
|
-
import * as BusTripSeriesFactory from './trip/busTripSeries';
|
|
117
117
|
import { TripType } from './tripType';
|
|
118
118
|
import { UnitCode } from './unitCode';
|
|
119
119
|
import * as UnitPriceOfferFactory from './unitPriceOffer';
|
|
@@ -341,6 +341,7 @@ export import person = PersonFactory;
|
|
|
341
341
|
export import personType = PersonType;
|
|
342
342
|
export import priceCurrency = PriceCurrency;
|
|
343
343
|
export declare namespace place {
|
|
344
|
+
export import busStop = BusStopFactory;
|
|
344
345
|
export import movieTheater = MovieTheaterPlaceFactory;
|
|
345
346
|
export import screeningRoom = ScreeningRoomPlaceFactory;
|
|
346
347
|
export import screeningRoomSection = ScreeningRoomSectionPlaceFactory;
|
|
@@ -429,10 +430,9 @@ export import taskName = TaskName;
|
|
|
429
430
|
export import taskStatus = TaskStatus;
|
|
430
431
|
export import thing = ThingFactory;
|
|
431
432
|
export declare namespace trip {
|
|
432
|
-
type ISearchConditions<T extends TripType> = T extends TripType.BusTrip ? BusTripFactory.ISearchConditions :
|
|
433
|
-
type ITrip<T extends TripType> = T extends TripType.BusTrip ? BusTripFactory.ITrip :
|
|
433
|
+
type ISearchConditions<T extends TripType> = T extends TripType.BusTrip ? BusTripFactory.ISearchConditions : never;
|
|
434
|
+
type ITrip<T extends TripType> = T extends TripType.BusTrip ? BusTripFactory.ITrip : never;
|
|
434
435
|
export import busTrip = BusTripFactory;
|
|
435
|
-
export import busTripSeries = BusTripSeriesFactory;
|
|
436
436
|
}
|
|
437
437
|
export import tripType = TripType;
|
|
438
438
|
export declare namespace assetTransaction {
|
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");
|
|
@@ -103,7 +104,6 @@ var WebAPIServiceFactory = require("./service/webAPI");
|
|
|
103
104
|
var sortType_1 = require("./sortType");
|
|
104
105
|
var ThingFactory = require("./thing");
|
|
105
106
|
var BusTripFactory = require("./trip/busTrip");
|
|
106
|
-
var BusTripSeriesFactory = require("./trip/busTripSeries");
|
|
107
107
|
var tripType_1 = require("./tripType");
|
|
108
108
|
var unitCode_1 = require("./unitCode");
|
|
109
109
|
var UnitPriceOfferFactory = require("./unitPriceOffer");
|
|
@@ -319,6 +319,7 @@ exports.personType = personType_1.PersonType;
|
|
|
319
319
|
exports.priceCurrency = priceCurrency_1.PriceCurrency;
|
|
320
320
|
var place;
|
|
321
321
|
(function (place) {
|
|
322
|
+
place.busStop = BusStopFactory;
|
|
322
323
|
place.movieTheater = MovieTheaterPlaceFactory;
|
|
323
324
|
place.screeningRoom = ScreeningRoomPlaceFactory;
|
|
324
325
|
place.screeningRoomSection = ScreeningRoomSectionPlaceFactory;
|
|
@@ -383,7 +384,6 @@ exports.thing = ThingFactory;
|
|
|
383
384
|
var trip;
|
|
384
385
|
(function (trip) {
|
|
385
386
|
trip.busTrip = BusTripFactory;
|
|
386
|
-
trip.busTripSeries = BusTripSeriesFactory;
|
|
387
387
|
})(trip = exports.trip || (exports.trip = {}));
|
|
388
388
|
exports.tripType = tripType_1.TripType;
|
|
389
389
|
var assetTransaction;
|
|
@@ -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
|
+
}
|
|
File without changes
|
|
@@ -3,7 +3,8 @@ 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 {
|
|
6
|
+
import { ITripWithDetails 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[];
|
package/lib/trip/busTrip.d.ts
CHANGED
|
@@ -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
|
-
|
|
4
|
-
export
|
|
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
|
|
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
package/lib/tripType.js
CHANGED