@chevre/factory 4.280.0 → 4.281.0-alpha.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/index.d.ts +10 -0
- package/lib/index.js +10 -1
- package/lib/placeType.d.ts +1 -0
- package/lib/placeType.js +1 -0
- package/lib/product.d.ts +5 -1
- package/lib/product.js +4 -0
- package/lib/trip/busTrip.d.ts +11 -0
- package/lib/trip/busTrip.js +2 -0
- package/lib/trip/busTripSeries.d.ts +13 -0
- package/lib/trip/busTripSeries.js +2 -0
- package/lib/trip.d.ts +13 -0
- package/lib/trip.js +2 -0
- package/lib/tripType.d.ts +8 -0
- package/lib/tripType.js +12 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -110,6 +110,9 @@ import * as PaymentServiceFactory from './service/paymentService';
|
|
|
110
110
|
import * as WebAPIServiceFactory from './service/webAPI';
|
|
111
111
|
import { SortType } from './sortType';
|
|
112
112
|
import * as ThingFactory from './thing';
|
|
113
|
+
import * as BusTripFactory from './trip/busTrip';
|
|
114
|
+
import * as BusTripSeriesFactory from './trip/busTripSeries';
|
|
115
|
+
import { TripType } from './tripType';
|
|
113
116
|
import { UnitCode } from './unitCode';
|
|
114
117
|
import * as UnitPriceOfferFactory from './unitPriceOffer';
|
|
115
118
|
import * as TaskFactory from './task';
|
|
@@ -417,6 +420,13 @@ export import sortType = SortType;
|
|
|
417
420
|
export import taskName = TaskName;
|
|
418
421
|
export import taskStatus = TaskStatus;
|
|
419
422
|
export import thing = ThingFactory;
|
|
423
|
+
export declare namespace trip {
|
|
424
|
+
type ISearchConditions<T extends TripType> = T extends TripType.BusTrip ? BusTripFactory.ISearchConditions : T extends TripType.BusTripSeries ? BusTripSeriesFactory.ISearchConditions : never;
|
|
425
|
+
type ITrip<T extends TripType> = T extends TripType.BusTrip ? BusTripFactory.ITrip : T extends TripType.BusTripSeries ? BusTripSeriesFactory.ITrip : never;
|
|
426
|
+
export import busTrip = BusTripFactory;
|
|
427
|
+
export import busTripSeries = BusTripSeriesFactory;
|
|
428
|
+
}
|
|
429
|
+
export import tripType = TripType;
|
|
420
430
|
export declare namespace assetTransaction {
|
|
421
431
|
type IProject = AssetTransactionFactory.IProject;
|
|
422
432
|
type IStartParams<T extends AssetTransactionType> = T extends AssetTransactionType.CancelReservation ? CancelReservationAssetTransactionFactory.IStartParams : T extends AssetTransactionType.MoneyTransfer ? MoneyTransferAssetTransactionFactory.IStartParams : T extends AssetTransactionType.Pay ? PayAssetTransactionFactory.IStartParams : T extends AssetTransactionType.Refund ? RefundAssetTransactionFactory.IStartParams : T extends AssetTransactionType.RegisterService ? RegisterServiceAssetTransactionFactory.IStartParams : T extends AssetTransactionType.Reserve ? ReserveAssetTransactionFactory.IStartParams : never;
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.qualitativeValue = exports.propertyValue = exports.project = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerCatalog = exports.offer = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.iam = exports.eventType = exports.eventStatusType = exports.encodingFormat = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.categoryCode = exports.authorization = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
|
|
4
|
-
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.quantitativeValue = void 0;
|
|
4
|
+
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.quantitativeValue = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* factory
|
|
7
7
|
*/
|
|
@@ -100,6 +100,9 @@ var PaymentServiceFactory = require("./service/paymentService");
|
|
|
100
100
|
var WebAPIServiceFactory = require("./service/webAPI");
|
|
101
101
|
var sortType_1 = require("./sortType");
|
|
102
102
|
var ThingFactory = require("./thing");
|
|
103
|
+
var BusTripFactory = require("./trip/busTrip");
|
|
104
|
+
var BusTripSeriesFactory = require("./trip/busTripSeries");
|
|
105
|
+
var tripType_1 = require("./tripType");
|
|
103
106
|
var unitCode_1 = require("./unitCode");
|
|
104
107
|
var UnitPriceOfferFactory = require("./unitPriceOffer");
|
|
105
108
|
var AccountMoneyTransferTaskFactory = require("./task/accountMoneyTransfer");
|
|
@@ -372,6 +375,12 @@ exports.sortType = sortType_1.SortType;
|
|
|
372
375
|
exports.taskName = taskName_1.TaskName;
|
|
373
376
|
exports.taskStatus = taskStatus_1.TaskStatus;
|
|
374
377
|
exports.thing = ThingFactory;
|
|
378
|
+
var trip;
|
|
379
|
+
(function (trip) {
|
|
380
|
+
trip.busTrip = BusTripFactory;
|
|
381
|
+
trip.busTripSeries = BusTripSeriesFactory;
|
|
382
|
+
})(trip = exports.trip || (exports.trip = {}));
|
|
383
|
+
exports.tripType = tripType_1.TripType;
|
|
375
384
|
var assetTransaction;
|
|
376
385
|
(function (assetTransaction) {
|
|
377
386
|
assetTransaction.cancelReservation = CancelReservationAssetTransactionFactory;
|
package/lib/placeType.d.ts
CHANGED
package/lib/placeType.js
CHANGED
|
@@ -7,6 +7,7 @@ exports.PlaceType = void 0;
|
|
|
7
7
|
var PlaceType;
|
|
8
8
|
(function (PlaceType) {
|
|
9
9
|
PlaceType["AggregatePlace"] = "AggregatePlace";
|
|
10
|
+
PlaceType["BusStop"] = "BusStop";
|
|
10
11
|
PlaceType["MovieTheater"] = "MovieTheater";
|
|
11
12
|
PlaceType["Place"] = "Place";
|
|
12
13
|
PlaceType["ScreeningRoom"] = "ScreeningRoom";
|
package/lib/product.d.ts
CHANGED
package/lib/product.js
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IMultilingualString } from '../multilingualString';
|
|
2
|
+
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'> {
|
|
5
|
+
arrivalTime: Date;
|
|
6
|
+
busName: IMultilingualString;
|
|
7
|
+
busNumber: string;
|
|
8
|
+
departureTime: Date;
|
|
9
|
+
typeOf: TripType.BusTrip;
|
|
10
|
+
}
|
|
11
|
+
export declare type ISearchConditions = any;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IPlace } from '../place';
|
|
2
|
+
import { IProject } from '../project';
|
|
3
|
+
import { ITrip as IBaseTrip } from '../trip';
|
|
4
|
+
import { TripType } from '../tripType';
|
|
5
|
+
export declare type IBusStop = Pick<IPlace, 'typeOf' | 'branchCode' | 'name'>;
|
|
6
|
+
export interface ITrip extends Pick<IBaseTrip, 'id' | 'name' | 'offers'> {
|
|
7
|
+
arrivalBusStop: IBusStop;
|
|
8
|
+
departureBusStop: IBusStop;
|
|
9
|
+
identifier: string;
|
|
10
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
11
|
+
typeOf: TripType.BusTripSeries;
|
|
12
|
+
}
|
|
13
|
+
export declare type ISearchConditions = any;
|
package/lib/trip.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IThing } from './thing';
|
|
2
|
+
import { TripType } from './tripType';
|
|
3
|
+
/**
|
|
4
|
+
* トリップ
|
|
5
|
+
* {@link https://schema.org/Trip}
|
|
6
|
+
*/
|
|
7
|
+
export interface ITrip extends Pick<IThing, 'name'> {
|
|
8
|
+
arrivalTime: Date;
|
|
9
|
+
departureTime: Date;
|
|
10
|
+
id?: string;
|
|
11
|
+
offers?: any;
|
|
12
|
+
typeOf: TripType;
|
|
13
|
+
}
|
package/lib/trip.js
ADDED
package/lib/tripType.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TripType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* トリップタイプ
|
|
6
|
+
*/
|
|
7
|
+
var TripType;
|
|
8
|
+
(function (TripType) {
|
|
9
|
+
TripType["BusTrip"] = "BusTrip";
|
|
10
|
+
TripType["BusTripSeries"] = "BusTripSeries";
|
|
11
|
+
TripType["Trip"] = "Trip";
|
|
12
|
+
})(TripType = exports.TripType || (exports.TripType = {}));
|