@chevre/factory 10.5.0-alpha.7 → 10.5.0-alpha.8

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.
@@ -8,7 +8,6 @@ import { IPlace as IRoom } from '../../place/screeningRoom';
8
8
  import { IProduct } from '../../product';
9
9
  import { ISeller } from '../../seller';
10
10
  import { IObject as IPlaceOrderObject, ITransaction as IPlaceOrder } from '../../transaction/placeOrder';
11
- import { IObject as IReturnOrderObject, ITransaction as IReturnOrder } from '../../transaction/returnOrder';
12
11
  /**
13
12
  * 削除者は現時点でプロジェクトのみ
14
13
  */
@@ -37,14 +36,7 @@ export type IObjectAsPlaceOrder = Pick<IPlaceOrder, 'id' | 'typeOf'> & {
37
36
  endDate?: never;
38
37
  project?: never;
39
38
  };
40
- export type IObjectAsReturnOrder = Pick<IReturnOrder, 'id' | 'typeOf'> & {
41
- object: Pick<IReturnOrderObject, 'order'>;
42
- specifyingMethod?: ObjectAsTransactionSpecifyingMethod.Id;
43
- startDate?: never;
44
- endDate?: never;
45
- project?: never;
46
- };
47
- export type IObject = IObjectAsProduct | IObjectAsOfferCatalog | IObjectAsAggregateOffer | IObjectAsSeller | IObjectAsMovieTheater | IObjectAsRoom | IObjectAsEventSeries | IObjectAsPlaceOrder | IObjectAsReturnOrder;
39
+ export type IObject = IObjectAsProduct | IObjectAsOfferCatalog | IObjectAsAggregateOffer | IObjectAsSeller | IObjectAsMovieTheater | IObjectAsRoom | IObjectAsEventSeries | IObjectAsPlaceOrder;
48
40
  /**
49
41
  * deleteクエリのレスポンスなど削除結果を定義するべきであるが、ひとまず汎用的に
50
42
  */
@@ -492,12 +492,12 @@ export declare namespace transaction {
492
492
  export import ISendEmailMessageParams = TransactionFactory.ISendEmailMessageParams;
493
493
  export import ISortOrder = TransactionFactory.ISortOrder;
494
494
  export import ITasksExportAction = TransactionFactory.ITasksExportAction;
495
- type ISearchConditions<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.ISearchConditions : T extends TransactionType.ReturnOrder ? ReturnOrderTransactionFactory.ISearchConditions : never;
496
- type IStartParams<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.IStartParams : T extends TransactionType.ReturnOrder ? ReturnOrderTransactionFactory.IStartParams : never;
497
- type IResult<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.IResult : T extends TransactionType.ReturnOrder ? ReturnOrderTransactionFactory.IResult : never;
498
- type IPotentialActions<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.IPotentialActions : T extends TransactionType.ReturnOrder ? ReturnOrderTransactionFactory.IPotentialActions : never;
499
- type IAttributes<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.IAttributes : T extends TransactionType.ReturnOrder ? ReturnOrderTransactionFactory.IAttributes : never;
500
- type ITransaction<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.ITransaction : T extends TransactionType.ReturnOrder ? ReturnOrderTransactionFactory.ITransaction : never;
495
+ type ISearchConditions<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.ISearchConditions : never;
496
+ type IStartParams<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.IStartParams : never;
497
+ type IResult<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.IResult : never;
498
+ type IPotentialActions<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.IPotentialActions : never;
499
+ type IAttributes<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.IAttributes : never;
500
+ type ITransaction<T extends TransactionType> = T extends TransactionType.PlaceOrder ? PlaceOrderTransactionFactory.ITransaction : never;
501
501
  export import placeOrder = PlaceOrderTransactionFactory;
502
502
  export import returnOrder = ReturnOrderTransactionFactory;
503
503
  }
@@ -2,7 +2,7 @@ import { IExtendId } from '../autoGenerated';
2
2
  import { ITaskAttributes } from '../task';
3
3
  import { TaskName } from '../taskName';
4
4
  import type { ITransaction as IReturnOrder } from '../transaction/returnOrder';
5
- export type IData = Pick<IReturnOrder, 'object' | 'potentialActions' | 'typeOf' | 'agent' | 'endDate' | 'startDate' | 'project' | 'id'>;
5
+ export type IData = Pick<IReturnOrder, 'object' | 'potentialActions' | 'typeOf' | 'agent' | 'startDate' | 'id'>;
6
6
  export interface IAttributes extends ITaskAttributes {
7
7
  name: TaskName.ConfirmReturnOrder;
8
8
  data: IData;
@@ -1,9 +1,9 @@
1
- import { IObjectAsPlaceOrder, IObjectAsReturnOrder } from '../action/update/delete';
1
+ import { IObjectAsPlaceOrder } from '../action/update/delete';
2
2
  import { IExtendId } from '../autoGenerated';
3
3
  import { ITaskAttributes } from '../task';
4
4
  import { TaskName } from '../taskName';
5
- export { IObjectAsPlaceOrder, IObjectAsReturnOrder, };
6
- export type IObject = IObjectAsPlaceOrder | IObjectAsReturnOrder;
5
+ export { IObjectAsPlaceOrder, };
6
+ export type IObject = IObjectAsPlaceOrder;
7
7
  export interface IData {
8
8
  object: IObject;
9
9
  }
@@ -1,11 +1,10 @@
1
1
  import { IAttributes as IReturnOrderActionAttributes, IReturnPolicy } from '../action/transfer/return/order';
2
2
  import { IExtendId } from '../autoGenerated';
3
3
  import { IProject } from '../project';
4
- import { IAgent, ISeller, ISearchConditions as IBaseSearchConditions, ISendEmailMessageParams, IStartParams as IBaseStartParams, IAttributes as IBaseAttributes } from '../transaction';
4
+ import { IAgent, ISeller, ISendEmailMessageParams, IStartParams as IBaseStartParams, IAttributes as IBaseAttributes } from '../transaction';
5
5
  import { TransactionType } from '../transactionType';
6
6
  export { IAgent, ISeller };
7
- export interface IResult {
8
- }
7
+ export type IResult = never;
9
8
  export type IError = any;
10
9
  /**
11
10
  * 返品理由
@@ -139,14 +138,3 @@ export interface IAttributes extends IBaseAttributes<Omit<IStartParams, 'expires
139
138
  * 返品取引
140
139
  */
141
140
  export type ITransaction = IExtendId<IAttributes>;
142
- export interface ISearchConditions extends IBaseSearchConditions<TransactionType.ReturnOrder> {
143
- object?: {
144
- order?: {
145
- /**
146
- * 返品対象注文番号
147
- */
148
- orderNumbers?: string[];
149
- };
150
- result?: {};
151
- };
152
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "10.5.0-alpha.7",
3
+ "version": "10.5.0-alpha.8",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [