@chevre/factory 4.360.0-alpha.1 → 4.360.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.
@@ -1,7 +1,6 @@
1
1
  import * as ActionFactory from '../action';
2
2
  import { ActionType } from '../actionType';
3
3
  import { AssetTransactionType } from '../assetTransactionType';
4
- import { OrderType } from '../order';
5
4
  import { IAvailableReservationStatusType } from '../reservation';
6
5
  import { IReservationFor as IBusReservationFor } from '../reservation/busReservation';
7
6
  import { IReservationFor as IEventReservationFor } from '../reservation/event';
@@ -11,21 +10,15 @@ export type IAgent = ActionFactory.IParticipantAsProject;
11
10
  export type IReservationFor = (Pick<IBusReservationFor, 'id' | 'typeOf'> | Pick<IEventReservationFor, 'id' | 'typeOf'>) & {
12
11
  optimized: boolean;
13
12
  };
14
- export interface IReservationPackageAsObject {
13
+ export interface IObject {
15
14
  reservationFor: IReservationFor;
16
15
  reservationNumber: string;
17
16
  reservationStatus: IAvailableReservationStatusType;
18
17
  typeOf: ReservationType.ReservationPackage;
19
18
  }
20
- export type IObject = IReservationPackageAsObject;
21
19
  export interface IResult {
22
20
  confirmedReservationId?: string;
23
21
  }
24
- export interface IOrderAsReservePurpose {
25
- typeOf: OrderType.Order;
26
- confirmationNumber?: string;
27
- orderNumber?: string;
28
- }
29
22
  export interface IAssetTransactionAsReservePurpose {
30
23
  /**
31
24
  * 取引タイプ
@@ -4,6 +4,7 @@ import { ActionType } from '../actionType';
4
4
  import * as AssetTransactionFactory from '../assetTransaction';
5
5
  import { AssetTransactionType } from '../assetTransactionType';
6
6
  import { IExtendId } from '../autoGenerated';
7
+ import { IOrder } from '../order';
7
8
  import { IPropertyValue } from '../propertyValue';
8
9
  import * as ReservationFactory from '../reservation';
9
10
  import { IIssuedThrough as IBusReservationIssuedThrough, IReservation as IBusReservation, IReservationFor as IBusReservationReservationFor } from '../reservation/busReservation';
@@ -194,9 +195,10 @@ export interface IAcceptedOffer4object {
194
195
  appliesToMovieTicket?: IAcceptedAppliesToMovieTicket;
195
196
  };
196
197
  }
198
+ export type IOrderAsReservePurpose = Pick<IOrder, 'confirmationNumber' | 'orderNumber' | 'typeOf'>;
197
199
  export interface IPotentialActionsParams {
198
200
  reserve?: {
199
- purpose?: ReserveActionFactory.IOrderAsReservePurpose;
201
+ purpose?: IOrderAsReservePurpose;
200
202
  };
201
203
  }
202
204
  /**
@@ -3,7 +3,6 @@ import { IExtendId } from './autoGenerated';
3
3
  import { OrganizationType } from './organizationType';
4
4
  import { PersonType } from './personType';
5
5
  import { SortType } from './sortType';
6
- import { IIdentifier } from './thing';
7
6
  import { TransactionStatusType } from './transactionStatusType';
8
7
  import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
9
8
  /**
@@ -16,7 +15,6 @@ export interface IAgentAsSeller {
16
15
  * 名称は必須
17
16
  */
18
17
  name: string;
19
- identifier?: IIdentifier;
20
18
  }
21
19
  /**
22
20
  * 管理者主体
@@ -28,7 +26,6 @@ export interface IAgentAsPerson {
28
26
  * 名称は必須
29
27
  */
30
28
  name: string;
31
- identifier?: IIdentifier;
32
29
  }
33
30
  /**
34
31
  * 資産取引主体は販売者or管理者
@@ -83,7 +80,6 @@ export interface IStartParams<T extends AssetTransactionType, TAgent extends IAg
83
80
  * 資産取引属性
84
81
  */
85
82
  export type IAttributes<TStartParams, TResult, TError, TPotentialActions> = TStartParams & {
86
- purpose?: any;
87
83
  /**
88
84
  * 取引状態
89
85
  */
@@ -11,12 +11,11 @@ export declare enum AssetTransactionType {
11
11
  */
12
12
  Reserve = "Reserve",
13
13
  /**
14
- * 予約キャンセル
14
+ * 予約取消
15
15
  */
16
16
  CancelReservation = "CancelReservation",
17
17
  /**
18
18
  * 決済
19
- * PaymentMethod: PaymentCard,CreditCard...
20
19
  */
21
20
  Pay = "Pay",
22
21
  /**
@@ -15,12 +15,11 @@ var AssetTransactionType;
15
15
  */
16
16
  AssetTransactionType["Reserve"] = "Reserve";
17
17
  /**
18
- * 予約キャンセル
18
+ * 予約取消
19
19
  */
20
20
  AssetTransactionType["CancelReservation"] = "CancelReservation";
21
21
  /**
22
22
  * 決済
23
- * PaymentMethod: PaymentCard,CreditCard...
24
23
  */
25
24
  AssetTransactionType["Pay"] = "Pay";
26
25
  /**
package/lib/order.d.ts CHANGED
@@ -218,17 +218,12 @@ export type IBroker = Pick<IPerson, 'id' | 'typeOf'>;
218
218
  export type IParticipantAsReturner = IParticipantAsPerson | IParticipantAsProject | IParticipantAsWebApplication;
219
219
  export type IReturner = Pick<IParticipantAsReturner, 'id' | 'typeOf'>;
220
220
  export type IIdentifier = IPropertyValue<string>[];
221
- export type ISimpleCustomer = Pick<ICustomer, 'id' | 'typeOf'>;
222
221
  export type ISimpleSeller = Pick<ISeller, 'id' | 'typeOf' | 'name'>;
223
222
  export interface ISimpleOrder {
224
223
  /**
225
224
  * object type
226
225
  */
227
226
  typeOf: OrderType;
228
- /**
229
- * Party placing the order.
230
- */
231
- customer: ISimpleCustomer;
232
227
  /**
233
228
  * The merchant- specific identifier for the transaction.
234
229
  */
@@ -266,6 +261,7 @@ export interface IEventServiceAsOrderedItem {
266
261
  reservationFor: IReservationFor4EventServiceOrderedItem;
267
262
  };
268
263
  serviceType?: EventReservationFactory.IServiceTypeOfIssuedThrough;
264
+ id: string;
269
265
  }
270
266
  export type IReservationFor4TransportationOrderedItem = Pick<ITripAsReservationFor, 'typeOf' | 'id' | 'arrivalTime' | 'departureTime'>;
271
267
  export interface ITransportationAsOrderedItem {
@@ -275,8 +271,11 @@ export interface ITransportationAsOrderedItem {
275
271
  reservationFor: IReservationFor4TransportationOrderedItem;
276
272
  };
277
273
  serviceType?: EventReservationFactory.IServiceTypeOfIssuedThrough;
274
+ id: string;
278
275
  }
279
- export type IProductAsOrderedItem = Pick<IProduct, 'id' | 'serviceType' | 'typeOf'>;
276
+ export type IProductAsOrderedItem = Pick<IProduct, 'serviceType' | 'typeOf'> & {
277
+ id: string;
278
+ };
280
279
  /**
281
280
  * 注文アイテム
282
281
  * {@link https://schema.org/OrderItem}
@@ -4,7 +4,9 @@ import * as ReservationFactory from '../reservation';
4
4
  import { ReservationType } from '../reservationType';
5
5
  import { ITripWithDetails as IBusTrip } from '../trip/busTrip';
6
6
  import { TripType } from '../tripType';
7
- export type IReservationFor = Pick<IBusTrip, 'arrivalBusStop' | 'arrivalTime' | 'busName' | 'busNumber' | 'departureBusStop' | 'departureTime' | 'id' | 'identifier' | 'name' | 'typeOf'>;
7
+ export type IReservationFor = Pick<IBusTrip, 'arrivalBusStop' | 'arrivalTime' | 'busName' | 'busNumber' | 'departureBusStop' | 'departureTime' | 'id' | 'identifier' | 'name' | 'typeOf'> & {
8
+ id: string;
9
+ };
8
10
  export type IPriceComponentSpecification = ITicketPriceComponent;
9
11
  export type IPriceSpecification = ITicketPriceSpecification;
10
12
  export interface ISubReservation {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.360.0-alpha.1",
3
+ "version": "4.360.0-alpha.3",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@aws-sdk/client-cognito-identity-provider": "3.438.0",
57
- "@motionpicture/coa-service": "9.4.0-alpha.0",
57
+ "@motionpicture/coa-service": "9.4.0",
58
58
  "@motionpicture/gmo-service": "5.3.0",
59
59
  "@surfrock/sdk": "1.1.0",
60
60
  "@waiter/factory": "2.2.0",