@chevre/factory 4.280.0-alpha.9 → 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/action/cancel/reservation.d.ts +15 -2
- package/lib/action/reserve.d.ts +1 -1
- package/lib/assetTransaction/cancelReservation.d.ts +12 -4
- package/lib/assetTransaction/reserve.d.ts +2 -2
- package/lib/event/screeningEvent.d.ts +6 -1
- 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
|
@@ -6,11 +6,22 @@ import { ProductType } from '../../product';
|
|
|
6
6
|
import { ReservationStatusType } from '../../reservationStatusType';
|
|
7
7
|
import { ReservationType } from '../../reservationType';
|
|
8
8
|
export declare type IAgent = ActionFactory.IParticipantAsProject;
|
|
9
|
+
export interface IReservationPackageAsObject {
|
|
10
|
+
reservationFor: {
|
|
11
|
+
typeOf: EventType.ScreeningEvent;
|
|
12
|
+
id: string;
|
|
13
|
+
};
|
|
14
|
+
reservationNumber: string;
|
|
15
|
+
/**
|
|
16
|
+
* previousReservationStatusを変更時に指定するために必要
|
|
17
|
+
*/
|
|
18
|
+
reservationStatus: ReservationStatusType;
|
|
19
|
+
typeOf: ReservationType.ReservationPackage;
|
|
20
|
+
}
|
|
9
21
|
/**
|
|
10
22
|
* 予約取消対象
|
|
11
23
|
*/
|
|
12
|
-
export interface
|
|
13
|
-
typeOf: ReservationType.EventReservation;
|
|
24
|
+
export interface IEventReservationAsObject {
|
|
14
25
|
id: string;
|
|
15
26
|
issuedThrough?: {
|
|
16
27
|
typeOf?: ProductType.EventService;
|
|
@@ -24,7 +35,9 @@ export interface IObject {
|
|
|
24
35
|
* previousReservationStatusを変更時に指定するために必要
|
|
25
36
|
*/
|
|
26
37
|
reservationStatus: ReservationStatusType;
|
|
38
|
+
typeOf: ReservationType.EventReservation;
|
|
27
39
|
}
|
|
40
|
+
export declare type IObject = IEventReservationAsObject | IReservationPackageAsObject;
|
|
28
41
|
/**
|
|
29
42
|
* 予約取消結果
|
|
30
43
|
*/
|
package/lib/action/reserve.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface IReservationPackageAsObject {
|
|
|
13
13
|
reservationFor: IReservationFor;
|
|
14
14
|
reservationNumber: string;
|
|
15
15
|
reservationStatus: ReservationStatusType;
|
|
16
|
-
subReservation
|
|
16
|
+
subReservation?: ISubReservation[];
|
|
17
17
|
underName?: IUnderName;
|
|
18
18
|
typeOf: ReservationType.ReservationPackage;
|
|
19
19
|
}
|
|
@@ -4,7 +4,7 @@ import { ITransaction as IReserveTransaction } from '../assetTransaction/reserve
|
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
6
|
import { IClientUser } from '../clientUser';
|
|
7
|
-
import { IReservation as IEventReservation } from '../reservation/event';
|
|
7
|
+
import { IReservation as IEventReservation, IReservationFor } from '../reservation/event';
|
|
8
8
|
export import IAgent = AssetTransactionFactory.IAgent;
|
|
9
9
|
export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObjectWithoutDetail>;
|
|
10
10
|
/**
|
|
@@ -23,20 +23,28 @@ export interface IObjectWithoutDetail {
|
|
|
23
23
|
/**
|
|
24
24
|
* 予約IDをキーに取消
|
|
25
25
|
*/
|
|
26
|
-
id?: string
|
|
26
|
+
id?: string;
|
|
27
27
|
/**
|
|
28
28
|
* 予約番号をキーに取消
|
|
29
29
|
*/
|
|
30
30
|
reservationNumber?: string;
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
+
export declare type IReserveTransactionAsObject = Pick<IReserveTransaction, 'typeOf' | 'id' | 'transactionNumber'> & {
|
|
34
|
+
object: {
|
|
35
|
+
reservationFor: Pick<IReservationFor, 'id' | 'typeOf'>;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare type IEventReservationAsObject = Pick<IEventReservation, 'id' | 'issuedThrough' | 'reservationNumber' | 'typeOf'> & {
|
|
39
|
+
reservationFor: Pick<IReservationFor, 'id' | 'typeOf'>;
|
|
40
|
+
};
|
|
33
41
|
/**
|
|
34
42
|
* 取引対象物
|
|
35
43
|
*/
|
|
36
44
|
export interface IObject {
|
|
37
45
|
clientUser?: IClientUser;
|
|
38
|
-
transaction?:
|
|
39
|
-
reservations?:
|
|
46
|
+
transaction?: IReserveTransactionAsObject;
|
|
47
|
+
reservations?: IEventReservationAsObject[];
|
|
40
48
|
}
|
|
41
49
|
/**
|
|
42
50
|
* 取引確定パラメータ
|
|
@@ -7,7 +7,7 @@ import { IMovieTicket } from '../paymentMethod/paymentCard/movieTicket';
|
|
|
7
7
|
import { IPointAward } from '../product';
|
|
8
8
|
import { IPropertyValue } from '../propertyValue';
|
|
9
9
|
import * as ReservationFactory from '../reservation';
|
|
10
|
-
import {
|
|
10
|
+
import { IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
|
|
11
11
|
import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
|
|
12
12
|
import { ReservationType } from '../reservationType';
|
|
13
13
|
export import IAgent = AssetTransactionFactory.IAgent;
|
|
@@ -189,7 +189,7 @@ export interface IObjectWithoutDetail {
|
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
191
|
export declare type IReservationFor = IEventReservationReservationFor;
|
|
192
|
-
export declare type IObjectSubReservation =
|
|
192
|
+
export declare type IObjectSubReservation = ReserveActionFactory.ISubReservation;
|
|
193
193
|
/**
|
|
194
194
|
* 取引対象物
|
|
195
195
|
*/
|
|
@@ -314,7 +314,12 @@ export interface IAttributes extends EventFactory.IAttributes<EventType.Screenin
|
|
|
314
314
|
export declare type IEvent = EventFactory.IEvent<IAttributes>;
|
|
315
315
|
export declare type ILocation4create = Pick<ILocation, 'branchCode' | 'maximumAttendeeCapacity'>;
|
|
316
316
|
export declare type ISuperEvent4create = Pick<ISuperEvent, 'id'>;
|
|
317
|
-
export declare type ISeller4create = Pick<ISeller, 'makesOffer'
|
|
317
|
+
export declare type ISeller4create = Pick<ISeller, 'makesOffer'> & {
|
|
318
|
+
/**
|
|
319
|
+
* POS以外のアプリケーションの共通設定
|
|
320
|
+
*/
|
|
321
|
+
makesOfferDefault?: Pick<ISellerMakesOffer, 'typeOf' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'>;
|
|
322
|
+
};
|
|
318
323
|
export declare type IOffers4create = Pick<IOffer, 'unacceptedPaymentMethod'> & {
|
|
319
324
|
/**
|
|
320
325
|
* 最大予約数を指定
|
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 = {}));
|