@chevre/factory 4.344.0 → 4.346.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/order.d.ts CHANGED
@@ -288,11 +288,6 @@ export interface IOrderedItem {
288
288
  export interface IOrder extends Omit<ISimpleOrder, 'customer'> {
289
289
  id?: string;
290
290
  project: IProject;
291
- /**
292
- * Offer
293
- * The offers included in the order.Also accepts an array of objects.
294
- */
295
- acceptedOffers?: IAcceptedOffer<IItemOffered>[];
296
291
  additionalProperty?: IPropertyValue<string>[];
297
292
  /**
298
293
  * An entity that arranges for an exchange between a buyer and a seller.
@@ -22,7 +22,12 @@ export interface IPlace extends Pick<PlaceFactory.IPlace, 'project' | 'typeOf' |
22
22
  export interface IPlaceWithOffer extends IPlace {
23
23
  containsPlace: ISeatWithOffer[];
24
24
  }
25
+ export interface IProjection {
26
+ containedInPlace?: 1;
27
+ seatCount?: 1;
28
+ }
25
29
  export interface ISearchConditions {
30
+ $projection?: IProjection;
26
31
  limit?: number;
27
32
  page?: number;
28
33
  sort?: any;
@@ -53,9 +58,6 @@ export interface ISearchConditions {
53
58
  name?: {
54
59
  $regex?: string;
55
60
  };
56
- $projection?: {
57
- seatCount?: 1;
58
- };
59
61
  additionalProperty?: {
60
62
  $elemMatch?: {
61
63
  name?: {
@@ -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 { ICustomer, IOrder } from '../order';
3
+ import { IAcceptedOffer, ICustomer, IItemOffered, IOrder } from '../order';
4
4
  export type IPayActionObject = Pick<IPayObject, 'id' | 'paymentMethod' | 'typeOf'>;
5
5
  export type IOptimizedPayAction = Pick<IPayAction, 'actionStatus' | 'endDate' | 'id' | 'purpose' | 'startDate' | 'typeOf'> & {
6
6
  object: IPayActionObject[];
@@ -11,9 +11,10 @@ export type IOptimizedRefundAction = Pick<IRefundAction, 'actionStatus' | 'endDa
11
11
  };
12
12
  export type IAction = IOptimizedPayAction | IOptimizedRefundAction;
13
13
  export type IOptimizedCustomer = Pick<ICustomer, 'additionalProperty' | 'id' | 'identifier' | 'typeOf'>;
14
- export type IOrderAsMainEntity = Pick<IOrder, 'acceptedOffers' | 'broker' | 'confirmationNumber' | 'id' | 'orderDate' | 'orderNumber' | 'orderedItem' | 'paymentMethods' | 'price' | 'priceCurrency' | 'seller' | 'typeOf'> & {
14
+ export type IOrderAsMainEntity = Pick<IOrder, 'broker' | 'confirmationNumber' | 'id' | 'orderDate' | 'orderNumber' | 'orderedItem' | 'paymentMethods' | 'price' | 'priceCurrency' | 'seller' | 'typeOf'> & {
15
15
  numItems: number;
16
16
  customer: IOptimizedCustomer;
17
+ acceptedOffers: IAcceptedOffer<IItemOffered>[];
17
18
  };
18
19
  /**
19
20
  * 経理レポート
@@ -169,6 +169,9 @@ export interface IConfirmParams {
169
169
  */
170
170
  result?: IResultParams;
171
171
  }
172
+ export type IOrderAsResult = OrderFactory.IOrder & {
173
+ acceptedOffers: OrderFactory.IAcceptedOffer<OrderFactory.IItemOffered>[];
174
+ };
172
175
  /**
173
176
  * 取引結果
174
177
  */
@@ -176,7 +179,7 @@ export interface IResult {
176
179
  /**
177
180
  * 注文
178
181
  */
179
- order: OrderFactory.IOrder;
182
+ order: IOrderAsResult;
180
183
  }
181
184
  /**
182
185
  * エラー
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.344.0",
3
+ "version": "4.346.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",