@chevre/factory 8.1.0-alpha.1 → 8.1.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.
@@ -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, IOrder } from '../order';
3
+ import { ICustomer, IOrder, ISeller } 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'> & {
@@ -11,11 +11,18 @@ export type IOptimizedRefundAction = Pick<IRefundAction, 'actionStatus' | 'endDa
11
11
  object: IRefundActionObject[];
12
12
  };
13
13
  export type IAction = IOptimizedPayAction | IOptimizedRefundAction;
14
- export type IOptimizedCustomer = Pick<ICustomer, 'additionalProperty' | 'id' | 'identifier' | 'typeOf'>;
15
- export type IOrderAsMainEntity = Pick<IOrder, 'broker' | 'confirmationNumber' | 'id' | 'orderDate' | 'orderNumber' | 'orderedItem' | 'paymentMethods' | 'price' | 'priceCurrency' | 'seller' | 'typeOf'> & {
16
- numItems: number;
14
+ export type IOptimizedCustomer = Pick<ICustomer, 'id' | 'typeOf'>;
15
+ /**
16
+ * 経理レポートドキュメントに保管される注文
17
+ * optimize(2026-05-06~)
18
+ */
19
+ export type IOrderAsMainEntity = Pick<IOrder, 'confirmationNumber' | 'id' | 'orderDate' | 'orderNumber' | 'paymentMethods' | 'price' | 'priceCurrency' | 'typeOf'> & {
17
20
  customer: IOptimizedCustomer;
18
- acceptedOffers: IAcceptedOffer[];
21
+ seller: Pick<ISeller, 'id' | 'name' | 'typeOf'>;
22
+ broker?: never;
23
+ orderedItem?: never;
24
+ acceptedOffers?: never;
25
+ numItems?: never;
19
26
  };
20
27
  /**
21
28
  * 経理レポート
@@ -1,10 +1,12 @@
1
- import { IAttributes as IUseReservationActionAttributes, IReservationAsObject } from '../action/consume/use/reservation';
1
+ import { IAttributes as IUseReservationActionAttributes, IReservationAsObject, ILocation } from '../action/consume/use/reservation';
2
2
  import { IExtendId } from '../autoGenerated';
3
3
  import { ITaskAttributes } from '../task';
4
4
  import { TaskName } from '../taskName';
5
- export type IUseReservationObject = Pick<IReservationAsObject, 'id' | 'typeOf'>;
6
- export type IData = Pick<IUseReservationActionAttributes, 'agent' | 'instrument' | 'location' | 'project' | 'typeOf'> & {
5
+ export type IUseReservationObject = Pick<IReservationAsObject, 'id'>;
6
+ export type IUseReservationLocation = Pick<ILocation, 'identifier'>;
7
+ export type IData = Pick<IUseReservationActionAttributes, 'agent' | 'instrument'> & {
7
8
  object: IUseReservationObject;
9
+ location?: IUseReservationLocation;
8
10
  };
9
11
  export interface IAttributes extends ITaskAttributes {
10
12
  name: TaskName.UseReservation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "8.1.0-alpha.1",
3
+ "version": "8.1.0-alpha.2",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [