@chevre/factory 8.0.0-alpha.1 → 8.0.0-alpha.3

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.
@@ -7,7 +7,6 @@ import { IOrder } from '../../../order';
7
7
  import { IProduct } from '../../../product';
8
8
  import { ReservationType } from '../../../reservationType';
9
9
  import { ISeller } from '../../../seller';
10
- import { TripType } from '../../../tripType';
11
10
  import { IUnitPriceOffer } from '../../../unitPriceOffer';
12
11
  export interface IObjectAsNote {
13
12
  identifier: string;
@@ -42,6 +41,6 @@ export type IObjectAsOrder = Pick<IOrder, 'orderNumber' | 'typeOf'> & {
42
41
  };
43
42
  export interface IObjectAsResourceById {
44
43
  id: string;
45
- typeOf: IUnitPriceOffer['typeOf'] | IProduct['typeOf'] | 'ProductModel' | ISeller['typeOf'] | IMovie['typeOf'] | EventType | TripType;
44
+ typeOf: IUnitPriceOffer['typeOf'] | IProduct['typeOf'] | 'ProductModel' | ISeller['typeOf'] | IMovie['typeOf'] | EventType;
46
45
  }
47
46
  export type IObject = IObjectAsOfferCatalog[] | IObjectAsOffer[] | IObjectAsProduct[] | IObjectAsMovie[] | IObjectAsEventSeriesByVersion[] | IObjectAsNote[] | IObjectAsResourceById[] | IObjectAsReservation | IObjectAsEvent4ttts | IObjectAsOrder;
@@ -8,7 +8,6 @@ import { OrderType } from '../../../order';
8
8
  import { IProduct } from '../../../product';
9
9
  import { ReservationType } from '../../../reservationType';
10
10
  import { ISeller } from '../../../seller';
11
- import { TripType } from '../../../tripType';
12
11
  import { IUnitPriceOffer } from '../../../unitPriceOffer';
13
12
  export interface ITargetCollectionAsNote {
14
13
  typeOf: CreativeWorkType.NoteDigitalDocument;
@@ -27,6 +26,6 @@ export interface ITargetCollectionAsEventById {
27
26
  }
28
27
  export interface ITargetCollectionAsResourceById {
29
28
  id: string;
30
- typeOf: IUnitPriceOffer['typeOf'] | IProduct['typeOf'] | 'ProductModel' | ISeller['typeOf'] | IMovie['typeOf'] | EventType | TripType;
29
+ typeOf: IUnitPriceOffer['typeOf'] | IProduct['typeOf'] | 'ProductModel' | ISeller['typeOf'] | IMovie['typeOf'] | EventType;
31
30
  }
32
31
  export type ITargetCollection = ITargetCollectionAsNote | ITargetCollectionAsReservation | ITargetCollectionAsResource | ITargetCollectionAsResourceById | ITargetCollectionAsEventById[];
@@ -90,7 +90,6 @@ import { PaymentStatusType } from './paymentStatusType';
90
90
  import * as PermitFactory from './permit';
91
91
  import * as PersonFactory from './person';
92
92
  import { PersonType } from './personType';
93
- import * as BusStopFactory from './place/busStop';
94
93
  import * as EntranceGateFactory from './place/entranceGate';
95
94
  import * as MovieTheaterPlaceFactory from './place/movieTheater';
96
95
  import * as ScreeningRoomPlaceFactory from './place/screeningRoom';
@@ -129,8 +128,6 @@ import * as WebAPIServiceFactory from './service/webAPI';
129
128
  import * as ServiceChannelFactory from './serviceChannel';
130
129
  import { SortType } from './sortType';
131
130
  import * as ThingFactory from './thing';
132
- import * as BusTripFactory from './trip/busTrip';
133
- import { TripType } from './tripType';
134
131
  import { UnitCode } from './unitCode';
135
132
  export * as unitPriceOffer from './unitPriceOffer';
136
133
  import * as AccountTitleNotification from './notification/accountTitle';
@@ -403,7 +400,6 @@ export import person = PersonFactory;
403
400
  export import personType = PersonType;
404
401
  export import priceCurrency = PriceCurrency;
405
402
  export declare namespace place {
406
- export import busStop = BusStopFactory;
407
403
  export import entranceGate = EntranceGateFactory;
408
404
  export import movieTheater = MovieTheaterPlaceFactory;
409
405
  export import screeningRoom = ScreeningRoomPlaceFactory;
@@ -510,12 +506,6 @@ export import sortType = SortType;
510
506
  export import taskName = TaskName;
511
507
  export import taskStatus = TaskStatus;
512
508
  export import thing = ThingFactory;
513
- export declare namespace trip {
514
- type ISearchConditions<T extends TripType> = T extends TripType.BusTrip ? BusTripFactory.ISearchConditions : never;
515
- type ITrip<T extends TripType> = T extends TripType.BusTrip ? BusTripFactory.ITrip : never;
516
- export import busTrip = BusTripFactory;
517
- }
518
- export import tripType = TripType;
519
509
  export declare namespace assetTransaction {
520
510
  type IProject = AssetTransactionFactory.IProject;
521
511
  type IStartParams<T extends AssetTransactionType> = T extends AssetTransactionType.CancelReservation ? CancelReservationAssetTransactionFactory.IStartParams : T extends AssetTransactionType.Pay ? PayAssetTransactionFactory.IStartParams : T extends AssetTransactionType.Refund ? RefundAssetTransactionFactory.IStartParams : T extends AssetTransactionType.Reserve ? ReserveAssetTransactionFactory.IStartParams : never;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.notification = exports.movieTicketType = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.identityProvider = exports.iam = exports.eventType = exports.eventStatusType = exports.entryPoint = exports.encodingFormat = exports.eventSeries = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.CertificationStatusEnumeration = exports.categoryCode = exports.authorization = exports.aggregation = exports.advanceBookingRequirement = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.errorCode = exports.recipe = exports.errors = exports.unitPriceOffer = exports.project = exports.order = exports.productOffer = exports.eventOffer = exports.aggregateOffer = exports.offer = exports.account = exports.cognito = exports.waiter = void 0;
4
- exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.role = exports.RESERVED_CODE_VALUES = exports.reservationType = exports.reservationStatusType = exports.reservationPackage = exports.reservation = exports.report = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = void 0;
4
+ exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.role = exports.RESERVED_CODE_VALUES = exports.reservationType = exports.reservationStatusType = exports.reservationPackage = exports.reservation = exports.report = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = void 0;
5
5
  exports.waiter = require("@waiter/factory");
6
6
  exports.cognito = require("./cognito");
7
7
  exports.account = require("./account");
@@ -90,7 +90,6 @@ const paymentStatusType_1 = require("./paymentStatusType");
90
90
  const PermitFactory = require("./permit");
91
91
  const PersonFactory = require("./person");
92
92
  const personType_1 = require("./personType");
93
- const BusStopFactory = require("./place/busStop");
94
93
  const EntranceGateFactory = require("./place/entranceGate");
95
94
  const MovieTheaterPlaceFactory = require("./place/movieTheater");
96
95
  const ScreeningRoomPlaceFactory = require("./place/screeningRoom");
@@ -127,8 +126,6 @@ const WebAPIServiceFactory = require("./service/webAPI");
127
126
  const ServiceChannelFactory = require("./serviceChannel");
128
127
  const sortType_1 = require("./sortType");
129
128
  const ThingFactory = require("./thing");
130
- const BusTripFactory = require("./trip/busTrip");
131
- const tripType_1 = require("./tripType");
132
129
  const unitCode_1 = require("./unitCode");
133
130
  exports.unitPriceOffer = require("./unitPriceOffer");
134
131
  const AccountTitleNotification = require("./notification/accountTitle");
@@ -339,23 +336,7 @@ exports.creativeWorkType = creativeWorkType_1.CreativeWorkType;
339
336
  exports.customer = CustomerFactory;
340
337
  var event;
341
338
  (function (event) {
342
- // export type ISearchConditions<T extends EventType.ScreeningEvent> =
343
- // T extends EventType.ScreeningEvent ? ScreeningEventFactory.ISearchConditions :
344
- // never;
345
- // export type IAttributes<T extends EventType> =
346
- // T extends EventType.ScreeningEvent ? ScreeningEventFactory.IAttributes :
347
- // never;
348
- // export type IEvent<T extends EventType> =
349
- // T extends EventType.ScreeningEvent ? ScreeningEventFactory.IEvent :
350
- // never;
351
- // export type ICreateParams<T extends EventType> =
352
- // T extends EventType.ScreeningEvent ? ScreeningEventFactory.ICreateParams :
353
- // never;
354
- // export type IUpdateParams<T extends EventType> =
355
- // T extends EventType.ScreeningEvent ? ScreeningEventFactory.IUpdateParams :
356
- // never;
357
339
  event.screeningEvent = ScreeningEventFactory;
358
- // export import screeningEventSeries = ScreeningEventSeriesFactory;
359
340
  })(event || (exports.event = event = {}));
360
341
  exports.eventSeries = ScreeningEventSeriesFactory; // reimplement from event.screeningEventSeries
361
342
  exports.encodingFormat = EncodingFormat;
@@ -410,7 +391,6 @@ exports.personType = personType_1.PersonType;
410
391
  exports.priceCurrency = priceCurrency_1.PriceCurrency;
411
392
  var place;
412
393
  (function (place) {
413
- place.busStop = BusStopFactory;
414
394
  place.entranceGate = EntranceGateFactory;
415
395
  place.movieTheater = MovieTheaterPlaceFactory;
416
396
  place.screeningRoom = ScreeningRoomPlaceFactory;
@@ -499,11 +479,6 @@ exports.sortType = sortType_1.SortType;
499
479
  exports.taskName = taskName_1.TaskName;
500
480
  exports.taskStatus = taskStatus_1.TaskStatus;
501
481
  exports.thing = ThingFactory;
502
- var trip;
503
- (function (trip) {
504
- trip.busTrip = BusTripFactory;
505
- })(trip || (exports.trip = trip = {}));
506
- exports.tripType = tripType_1.TripType;
507
482
  var assetTransaction;
508
483
  (function (assetTransaction) {
509
484
  assetTransaction.cancelReservation = CancelReservationAssetTransactionFactory;
@@ -1,6 +1,10 @@
1
1
  import { IAction as IReturnOrderAction } from '../action/transfer/return/order';
2
- import { IAcceptedOffer, IItemOffered, IOrder } from '../order';
2
+ import { IAcceptedOffer, IOrder } from '../order';
3
3
  import { OrderStatus } from '../orderStatus';
4
+ /**
5
+ * 返品通知
6
+ * add IReturnAction4inform(2025-01-21~)
7
+ */
4
8
  export type IReturnAction4inform = Pick<IReturnOrderAction, 'id' | 'instrument' | 'object' | 'project' | 'typeOf'>;
5
9
  /**
6
10
  * 注文作成通知
@@ -15,7 +19,7 @@ export type IProcessingOrder4inform = Pick<IOrder, 'project' | 'typeOf' | 'selle
15
19
  * 配送中通知
16
20
  */
17
21
  export type IInTransitOrder4inform = Pick<IOrder, 'project' | 'typeOf' | 'orderNumber'> & {
18
- acceptedOffers: IAcceptedOffer<IItemOffered>[];
22
+ acceptedOffers: IAcceptedOffer[];
19
23
  id?: string;
20
24
  orderStatus: OrderStatus.OrderInTransit;
21
25
  };
@@ -1,6 +1,5 @@
1
1
  import { ICategoryCode } from './categoryCode';
2
2
  import { ItemAvailability } from './itemAvailability';
3
- import { IMonetaryAmount } from './monetaryAmount';
4
3
  import { IMultilingualString } from './multilingualString';
5
4
  import { OfferType } from './offerType';
6
5
  import { OrganizationType } from './organizationType';
@@ -24,9 +23,6 @@ export interface ICategory {
24
23
  export type IEligibleCategoryCode = Pick<ICategoryCode, 'typeOf' | 'id' | 'codeValue' | 'inCodeSet'> & {
25
24
  id: string;
26
25
  };
27
- export type IEligibleMonetaryAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'> & {
28
- value: number;
29
- };
30
26
  /**
31
27
  * 対象サブ予約条件
32
28
  */
@@ -144,11 +140,6 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
144
140
  * 対象座席タイプ
145
141
  */
146
142
  eligibleSeatingType?: [IEligibleCategoryCode];
147
- /**
148
- * 対象金額
149
- * 6ポイントで無料、などの設定に使用
150
- */
151
- eligibleMonetaryAmount?: [IEligibleMonetaryAmount];
152
143
  /**
153
144
  * 対象サブ予約条件
154
145
  */
@@ -212,11 +212,11 @@ export type IOfferOptimized4acceptedOffer = Pick<IOffer, 'typeOf' | 'id' | 'item
212
212
  /**
213
213
  * 受け入れオファー
214
214
  */
215
- export interface IAcceptedOffer<T extends IItemOffered> extends IOfferOptimized4acceptedOffer {
215
+ export interface IAcceptedOffer extends IOfferOptimized4acceptedOffer {
216
216
  /**
217
217
  * オファー対象アイテム
218
218
  */
219
- itemOffered: T;
219
+ itemOffered: IItemOffered;
220
220
  priceSpecification?: ITicketPriceSpecification;
221
221
  /**
222
222
  * 資産取引を特定する番号(2024-01-30~)
@@ -3,7 +3,6 @@
3
3
  */
4
4
  export declare enum PlaceType {
5
5
  AggregatePlace = "AggregatePlace",
6
- BusStop = "BusStop",
7
6
  EntranceGate = "EntranceGate",
8
7
  MovieTheater = "MovieTheater",
9
8
  Place = "Place",
@@ -7,7 +7,6 @@ exports.PlaceType = void 0;
7
7
  var PlaceType;
8
8
  (function (PlaceType) {
9
9
  PlaceType["AggregatePlace"] = "AggregatePlace";
10
- PlaceType["BusStop"] = "BusStop";
11
10
  PlaceType["EntranceGate"] = "EntranceGate";
12
11
  PlaceType["MovieTheater"] = "MovieTheater";
13
12
  PlaceType["Place"] = "Place";
@@ -336,7 +336,7 @@ export type IMinimizedTicketAddOn = IAddOn4unitPriceOffer;
336
336
  * プロダクトオファー
337
337
  */
338
338
  export interface ITicketOffer extends Pick<IBaseOffer, 'acceptedPaymentMethod' | // add(2023-11-15~)
339
- 'name' | 'description' | 'alternateName' | 'color' | 'typeOf' | 'id' | 'availability' | 'category' | 'eligibleMembershipType' | 'eligibleSeatingType' | 'eligibleMonetaryAmount' | 'eligibleSubReservation' | 'eligibleQuantity' | 'offeredThrough' | 'priceCurrency' | 'validFrom' | 'validThrough' | 'validRateLimit' | 'additionalProperty'> {
339
+ 'name' | 'description' | 'alternateName' | 'color' | 'typeOf' | 'id' | 'availability' | 'category' | 'eligibleMembershipType' | 'eligibleSeatingType' | 'eligibleSubReservation' | 'eligibleQuantity' | 'offeredThrough' | 'priceCurrency' | 'validFrom' | 'validThrough' | 'validRateLimit' | 'additionalProperty'> {
340
340
  addOn?: IMinimizedTicketAddOn[];
341
341
  identifier: string;
342
342
  name: IOfferName;
@@ -1,6 +1,6 @@
1
1
  import { IAction as IPayAction, IPaymentService as IPayObject } from '../action/trade/pay';
2
2
  import { IAction as IRefundAction, IPaymentService as IRefundObject } from '../action/trade/refund';
3
- import { IAcceptedOffer, ICustomer, IItemOffered, IOrder } from '../order';
3
+ import { IAcceptedOffer, ICustomer, IOrder } from '../order';
4
4
  import { OrganizationType } from '../organizationType';
5
5
  export type IPayActionObject = Pick<IPayObject, 'id' | 'paymentMethod' | 'typeOf'>;
6
6
  export type IOptimizedPayAction = Pick<IPayAction, 'actionStatus' | 'endDate' | 'id' | 'purpose' | 'startDate' | 'typeOf'> & {
@@ -15,7 +15,7 @@ export type IOptimizedCustomer = Pick<ICustomer, 'additionalProperty' | 'id' | '
15
15
  export type IOrderAsMainEntity = Pick<IOrder, 'broker' | 'confirmationNumber' | 'id' | 'orderDate' | 'orderNumber' | 'orderedItem' | 'paymentMethods' | 'price' | 'priceCurrency' | 'seller' | 'typeOf'> & {
16
16
  numItems: number;
17
17
  customer: IOptimizedCustomer;
18
- acceptedOffers: IAcceptedOffer<IItemOffered>[];
18
+ acceptedOffers: IAcceptedOffer[];
19
19
  };
20
20
  /**
21
21
  * 経理レポート
@@ -85,7 +85,6 @@ exports.RESERVED_CODE_VALUES = [
85
85
  paymentStatusType_1.PaymentStatusType.PaymentPastDue,
86
86
  personType_1.PersonType.Person,
87
87
  placeType_1.PlaceType.AggregatePlace,
88
- placeType_1.PlaceType.BusStop,
89
88
  placeType_1.PlaceType.MovieTheater,
90
89
  placeType_1.PlaceType.Place,
91
90
  placeType_1.PlaceType.ScreeningRoom,
@@ -1,6 +1,6 @@
1
1
  import { IAdvanceBookingRequirement as IActualAdvanceBookingRequirement } from './advanceBookingRequirement';
2
2
  import { ItemAvailability } from './itemAvailability';
3
- import { IAddOn, ICategory, IEligibleCategoryCode, IEligibleMonetaryAmount, IName, IOffer } from './offer';
3
+ import { IAddOn, ICategory, IEligibleCategoryCode, IName, IOffer } from './offer';
4
4
  import { OfferType } from './offerType';
5
5
  import { IAmount as IPermitAmount, IDepositAmount, IPaymentAmount } from './permit';
6
6
  import { IAccounting } from './priceSpecification';
@@ -60,7 +60,7 @@ export type IAvailability = ItemAvailability.InStock | ItemAvailability.OutOfSto
60
60
  /**
61
61
  * 単価オファー
62
62
  */
63
- export interface IUnitPriceOffer extends Pick<IOffer, 'acceptedPaymentMethod' | 'project' | 'typeOf' | 'priceCurrency' | 'id' | 'identifier' | 'name' | 'description' | 'alternateName' | 'availability' | 'availableAtOrFrom' | 'itemOffered' | 'priceSpecification' | 'additionalProperty' | 'color' | 'category' | 'eligibleSeatingType' | 'eligibleMembershipType' | 'eligibleMonetaryAmount' | 'eligibleSubReservation' | 'validFrom' | 'validThrough' | 'validRateLimit'> {
63
+ export interface IUnitPriceOffer extends Pick<IOffer, 'acceptedPaymentMethod' | 'project' | 'typeOf' | 'priceCurrency' | 'id' | 'identifier' | 'name' | 'description' | 'alternateName' | 'availability' | 'availableAtOrFrom' | 'itemOffered' | 'priceSpecification' | 'additionalProperty' | 'color' | 'category' | 'eligibleSeatingType' | 'eligibleMembershipType' | 'eligibleSubReservation' | 'validFrom' | 'validThrough' | 'validRateLimit'> {
64
64
  /**
65
65
  * The amount of time that is required between accepting the offer and the actual usage of the resource or service.
66
66
  * 事前予約要件(興行オファー承認日時とイベント開始日時の差)
@@ -121,7 +121,6 @@ export type ICreateParams = Pick<IUnitPriceOffer, 'acceptedPaymentMethod' | 'eli
121
121
  * 対象メンバーシップ
122
122
  */
123
123
  eligibleMembershipType?: [Pick<IEligibleCategoryCode, 'codeValue'>];
124
- eligibleMonetaryAmount?: [Pick<IEligibleMonetaryAmount, 'currency' | 'value'>];
125
124
  eligibleSeatingType?: [Pick<IEligibleCategoryCode, 'codeValue'>];
126
125
  /**
127
126
  * 返品ポリシー
@@ -246,14 +245,6 @@ export interface ISearchConditions {
246
245
  $eq?: string;
247
246
  };
248
247
  };
249
- eligibleMonetaryAmount?: {
250
- /**
251
- * 対象通貨区分
252
- */
253
- currency?: {
254
- $eq?: string;
255
- };
256
- };
257
248
  eligibleSeatingType?: {
258
249
  /**
259
250
  * 対象座席区分
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "8.0.0-alpha.1",
3
+ "version": "8.0.0-alpha.3",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [
@@ -1,41 +0,0 @@
1
- import { IMultilingualString } from '../multilingualString';
2
- import { IPlace as IBasePlace } from '../place';
3
- import { PlaceType } from '../placeType';
4
- import { SortType } from '../sortType';
5
- export interface IPlace extends Pick<IBasePlace, '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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,51 +0,0 @@
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';
5
- import { TripType } from '../tripType';
6
- export type IArrivalBusStop = Pick<IBusStop, 'typeOf' | 'branchCode' | 'name'>;
7
- export 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'> {
16
- arrivalTime: Date;
17
- busName: IMultilingualString;
18
- busNumber: string;
19
- departureTime: Date;
20
- }
21
- export 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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * トリップタイプ
3
- */
4
- export declare enum TripType {
5
- BusTrip = "BusTrip",
6
- Trip = "Trip"
7
- }
@@ -1,11 +0,0 @@
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["Trip"] = "Trip";
11
- })(TripType || (exports.TripType = TripType = {}));