@chevre/factory 4.360.0-alpha.2 → 4.360.0-alpha.4

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.
@@ -2,7 +2,7 @@ import * as ActionFactory from '../../../action';
2
2
  import * as OrderFactory from '../../../order';
3
3
  import { ObjectType as AuthorizePointAwardActionObjectType } from '../../authorize/award/point';
4
4
  import * as GiveActionFactory from '../give';
5
- export type IAgent = ActionFactory.IParticipantAsProject;
5
+ export type IAgent = ActionFactory.IParticipantAsSeller;
6
6
  export import ObjectType = AuthorizePointAwardActionObjectType;
7
7
  /**
8
8
  * ポイント特典付与対象
package/lib/order.d.ts CHANGED
@@ -218,17 +218,11 @@ 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
- export type ISimpleSeller = Pick<ISeller, 'id' | 'typeOf' | 'name'>;
223
221
  export interface ISimpleOrder {
224
222
  /**
225
223
  * object type
226
224
  */
227
225
  typeOf: OrderType;
228
- /**
229
- * Party placing the order.
230
- */
231
- customer: ISimpleCustomer;
232
226
  /**
233
227
  * The merchant- specific identifier for the transaction.
234
228
  */
@@ -245,7 +239,6 @@ export interface ISimpleOrder {
245
239
  * Date order was placed.
246
240
  */
247
241
  orderDate: Date;
248
- seller: ISimpleSeller;
249
242
  }
250
243
  export interface IReservationFor4EventServiceOrderedItem {
251
244
  location?: {
@@ -266,6 +259,7 @@ export interface IEventServiceAsOrderedItem {
266
259
  reservationFor: IReservationFor4EventServiceOrderedItem;
267
260
  };
268
261
  serviceType?: EventReservationFactory.IServiceTypeOfIssuedThrough;
262
+ id: string;
269
263
  }
270
264
  export type IReservationFor4TransportationOrderedItem = Pick<ITripAsReservationFor, 'typeOf' | 'id' | 'arrivalTime' | 'departureTime'>;
271
265
  export interface ITransportationAsOrderedItem {
@@ -275,8 +269,11 @@ export interface ITransportationAsOrderedItem {
275
269
  reservationFor: IReservationFor4TransportationOrderedItem;
276
270
  };
277
271
  serviceType?: EventReservationFactory.IServiceTypeOfIssuedThrough;
272
+ id: string;
278
273
  }
279
- export type IProductAsOrderedItem = Pick<IProduct, 'id' | 'serviceType' | 'typeOf'>;
274
+ export type IProductAsOrderedItem = Pick<IProduct, 'serviceType' | 'typeOf'> & {
275
+ id: string;
276
+ };
280
277
  /**
281
278
  * 注文アイテム
282
279
  * {@link https://schema.org/OrderItem}
@@ -289,7 +286,7 @@ export interface IOrderedItem {
289
286
  * 注文
290
287
  * {@link https://schema.org/Order}
291
288
  */
292
- export interface IOrder extends Omit<ISimpleOrder, 'customer'> {
289
+ export interface IOrder extends ISimpleOrder {
293
290
  id?: string;
294
291
  project: IProject;
295
292
  additionalProperty?: IPropertyValue<string>[];
@@ -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.2",
3
+ "version": "4.360.0-alpha.4",
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",