@chevre/factory 8.0.0-alpha.1 → 8.0.0-alpha.2
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/chevre/action/update/update/object.d.ts +1 -2
- package/lib/chevre/action/update/update/targetCollection.d.ts +1 -2
- package/lib/chevre/index.d.ts +0 -8
- package/lib/chevre/index.js +1 -24
- package/lib/chevre/notification/order.d.ts +6 -2
- package/lib/chevre/order.d.ts +2 -2
- package/lib/chevre/report/accountingReport.d.ts +2 -2
- package/package.json +1 -1
- package/lib/chevre/trip/busTrip.d.ts +0 -51
- package/lib/chevre/trip/busTrip.js +0 -2
- package/lib/chevre/trip.d.ts +0 -13
- package/lib/chevre/trip.js +0 -2
- package/lib/chevre/tripType.d.ts +0 -7
- package/lib/chevre/tripType.js +0 -11
|
@@ -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
|
|
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
|
|
29
|
+
typeOf: IUnitPriceOffer['typeOf'] | IProduct['typeOf'] | 'ProductModel' | ISeller['typeOf'] | IMovie['typeOf'] | EventType;
|
|
31
30
|
}
|
|
32
31
|
export type ITargetCollection = ITargetCollectionAsNote | ITargetCollectionAsReservation | ITargetCollectionAsResource | ITargetCollectionAsResourceById | ITargetCollectionAsEventById[];
|
package/lib/chevre/index.d.ts
CHANGED
|
@@ -129,8 +129,6 @@ import * as WebAPIServiceFactory from './service/webAPI';
|
|
|
129
129
|
import * as ServiceChannelFactory from './serviceChannel';
|
|
130
130
|
import { SortType } from './sortType';
|
|
131
131
|
import * as ThingFactory from './thing';
|
|
132
|
-
import * as BusTripFactory from './trip/busTrip';
|
|
133
|
-
import { TripType } from './tripType';
|
|
134
132
|
import { UnitCode } from './unitCode';
|
|
135
133
|
export * as unitPriceOffer from './unitPriceOffer';
|
|
136
134
|
import * as AccountTitleNotification from './notification/accountTitle';
|
|
@@ -510,12 +508,6 @@ export import sortType = SortType;
|
|
|
510
508
|
export import taskName = TaskName;
|
|
511
509
|
export import taskStatus = TaskStatus;
|
|
512
510
|
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
511
|
export declare namespace assetTransaction {
|
|
520
512
|
type IProject = AssetTransactionFactory.IProject;
|
|
521
513
|
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;
|
package/lib/chevre/index.js
CHANGED
|
@@ -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.
|
|
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");
|
|
@@ -127,8 +127,6 @@ const WebAPIServiceFactory = require("./service/webAPI");
|
|
|
127
127
|
const ServiceChannelFactory = require("./serviceChannel");
|
|
128
128
|
const sortType_1 = require("./sortType");
|
|
129
129
|
const ThingFactory = require("./thing");
|
|
130
|
-
const BusTripFactory = require("./trip/busTrip");
|
|
131
|
-
const tripType_1 = require("./tripType");
|
|
132
130
|
const unitCode_1 = require("./unitCode");
|
|
133
131
|
exports.unitPriceOffer = require("./unitPriceOffer");
|
|
134
132
|
const AccountTitleNotification = require("./notification/accountTitle");
|
|
@@ -339,23 +337,7 @@ exports.creativeWorkType = creativeWorkType_1.CreativeWorkType;
|
|
|
339
337
|
exports.customer = CustomerFactory;
|
|
340
338
|
var event;
|
|
341
339
|
(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
340
|
event.screeningEvent = ScreeningEventFactory;
|
|
358
|
-
// export import screeningEventSeries = ScreeningEventSeriesFactory;
|
|
359
341
|
})(event || (exports.event = event = {}));
|
|
360
342
|
exports.eventSeries = ScreeningEventSeriesFactory; // reimplement from event.screeningEventSeries
|
|
361
343
|
exports.encodingFormat = EncodingFormat;
|
|
@@ -499,11 +481,6 @@ exports.sortType = sortType_1.SortType;
|
|
|
499
481
|
exports.taskName = taskName_1.TaskName;
|
|
500
482
|
exports.taskStatus = taskStatus_1.TaskStatus;
|
|
501
483
|
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
484
|
var assetTransaction;
|
|
508
485
|
(function (assetTransaction) {
|
|
509
486
|
assetTransaction.cancelReservation = CancelReservationAssetTransactionFactory;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { IAction as IReturnOrderAction } from '../action/transfer/return/order';
|
|
2
|
-
import { IAcceptedOffer,
|
|
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
|
|
22
|
+
acceptedOffers: IAcceptedOffer[];
|
|
19
23
|
id?: string;
|
|
20
24
|
orderStatus: OrderStatus.OrderInTransit;
|
|
21
25
|
};
|
package/lib/chevre/order.d.ts
CHANGED
|
@@ -212,11 +212,11 @@ export type IOfferOptimized4acceptedOffer = Pick<IOffer, 'typeOf' | 'id' | 'item
|
|
|
212
212
|
/**
|
|
213
213
|
* 受け入れオファー
|
|
214
214
|
*/
|
|
215
|
-
export interface IAcceptedOffer
|
|
215
|
+
export interface IAcceptedOffer extends IOfferOptimized4acceptedOffer {
|
|
216
216
|
/**
|
|
217
217
|
* オファー対象アイテム
|
|
218
218
|
*/
|
|
219
|
-
itemOffered:
|
|
219
|
+
itemOffered: IItemOffered;
|
|
220
220
|
priceSpecification?: ITicketPriceSpecification;
|
|
221
221
|
/**
|
|
222
222
|
* 資産取引を特定する番号(2024-01-30~)
|
|
@@ -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,
|
|
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
|
|
18
|
+
acceptedOffers: IAcceptedOffer[];
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
21
|
* 経理レポート
|
package/package.json
CHANGED
|
@@ -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
|
-
}
|
package/lib/chevre/trip.d.ts
DELETED
|
@@ -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
|
-
}
|
package/lib/chevre/trip.js
DELETED
package/lib/chevre/tripType.d.ts
DELETED
package/lib/chevre/tripType.js
DELETED
|
@@ -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 = {}));
|