@chevre/factory 4.281.0-alpha.4 → 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 +2 -4
- package/lib/index.js +0 -2
- package/lib/reservation/busReservation.d.ts +1 -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/lib/trip/busTripSeries.d.ts +0 -14
- package/lib/trip/busTripSeries.js +0 -2
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
|
@@ -114,7 +114,6 @@ import * as WebAPIServiceFactory from './service/webAPI';
|
|
|
114
114
|
import { SortType } from './sortType';
|
|
115
115
|
import * as ThingFactory from './thing';
|
|
116
116
|
import * as BusTripFactory from './trip/busTrip';
|
|
117
|
-
import * as BusTripSeriesFactory from './trip/busTripSeries';
|
|
118
117
|
import { TripType } from './tripType';
|
|
119
118
|
import { UnitCode } from './unitCode';
|
|
120
119
|
import * as UnitPriceOfferFactory from './unitPriceOffer';
|
|
@@ -431,10 +430,9 @@ export import taskName = TaskName;
|
|
|
431
430
|
export import taskStatus = TaskStatus;
|
|
432
431
|
export import thing = ThingFactory;
|
|
433
432
|
export declare namespace trip {
|
|
434
|
-
type ISearchConditions<T extends TripType> = T extends TripType.BusTrip ? BusTripFactory.ISearchConditions :
|
|
435
|
-
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;
|
|
436
435
|
export import busTrip = BusTripFactory;
|
|
437
|
-
export import busTripSeries = BusTripSeriesFactory;
|
|
438
436
|
}
|
|
439
437
|
export import tripType = TripType;
|
|
440
438
|
export declare namespace assetTransaction {
|
package/lib/index.js
CHANGED
|
@@ -104,7 +104,6 @@ var WebAPIServiceFactory = require("./service/webAPI");
|
|
|
104
104
|
var sortType_1 = require("./sortType");
|
|
105
105
|
var ThingFactory = require("./thing");
|
|
106
106
|
var BusTripFactory = require("./trip/busTrip");
|
|
107
|
-
var BusTripSeriesFactory = require("./trip/busTripSeries");
|
|
108
107
|
var tripType_1 = require("./tripType");
|
|
109
108
|
var unitCode_1 = require("./unitCode");
|
|
110
109
|
var UnitPriceOfferFactory = require("./unitPriceOffer");
|
|
@@ -385,7 +384,6 @@ exports.thing = ThingFactory;
|
|
|
385
384
|
var trip;
|
|
386
385
|
(function (trip) {
|
|
387
386
|
trip.busTrip = BusTripFactory;
|
|
388
|
-
trip.busTripSeries = BusTripSeriesFactory;
|
|
389
387
|
})(trip = exports.trip || (exports.trip = {}));
|
|
390
388
|
exports.tripType = tripType_1.TripType;
|
|
391
389
|
var assetTransaction;
|
|
@@ -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 {
|
|
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;
|
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
package/package.json
CHANGED
|
@@ -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;
|