@chevre/factory 10.5.0-alpha.8 → 11.0.0-alpha.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/chevre/index.d.ts
CHANGED
|
@@ -492,12 +492,6 @@ 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 : 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
495
|
export import placeOrder = PlaceOrderTransactionFactory;
|
|
502
496
|
export import returnOrder = ReturnOrderTransactionFactory;
|
|
503
497
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { IAttributes as IReturnOrderActionAttributes, IReturnPolicy } from '../action/transfer/return/order';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import {
|
|
4
|
-
import { IAgent, ISeller, ISendEmailMessageParams, IStartParams as IBaseStartParams, IAttributes as IBaseAttributes } from '../transaction';
|
|
3
|
+
import { IAgent as IBaseAgent, ISendEmailMessageParams, IStartParams as IBaseStartParams, IAttributes as IBaseAttributes } from '../transaction';
|
|
5
4
|
import { TransactionType } from '../transactionType';
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
export type IAgent = Pick<IBaseAgent, 'id' | 'typeOf'> & {
|
|
6
|
+
identifier?: never;
|
|
7
|
+
};
|
|
9
8
|
/**
|
|
10
9
|
* 返品理由
|
|
11
10
|
*/
|
|
@@ -26,30 +25,12 @@ export interface IReturnableOrder {
|
|
|
26
25
|
confirmationNumber: string;
|
|
27
26
|
orderNumber: string;
|
|
28
27
|
}
|
|
29
|
-
/**
|
|
30
|
-
* 注文返品開始パラメータ
|
|
31
|
-
*/
|
|
32
|
-
export interface IStartParamsWithoutDetail {
|
|
33
|
-
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
34
|
-
expiresInSeconds?: number;
|
|
35
|
-
agent: IAgent;
|
|
36
|
-
object: {
|
|
37
|
-
order: IReturnableOrder | IReturnableOrder[];
|
|
38
|
-
reason: Reason;
|
|
39
|
-
};
|
|
40
|
-
seller: {
|
|
41
|
-
id: string;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
28
|
/**
|
|
45
29
|
* 取引開始パラメータ
|
|
46
30
|
*/
|
|
47
|
-
export interface IStartParams extends
|
|
48
|
-
/**
|
|
49
|
-
* 販売者
|
|
50
|
-
*/
|
|
51
|
-
seller: ISeller;
|
|
31
|
+
export interface IStartParams extends Pick<IBaseStartParams<TransactionType.ReturnOrder, IAgent, undefined, IObject>, 'project' | 'typeOf' | 'object' | 'agent'> {
|
|
52
32
|
expiresInSeconds: number;
|
|
33
|
+
seller?: never;
|
|
53
34
|
}
|
|
54
35
|
/**
|
|
55
36
|
* 返金アクションカスタムパラメータ
|
|
@@ -98,20 +79,7 @@ export interface IPotentialActionsParams {
|
|
|
98
79
|
/**
|
|
99
80
|
* 注文返品アクション
|
|
100
81
|
*/
|
|
101
|
-
returnOrder?: IReturnOrderActionParams | IReturnOrderActionParams
|
|
102
|
-
}
|
|
103
|
-
export interface IConfirmParams {
|
|
104
|
-
/**
|
|
105
|
-
* 取引ID
|
|
106
|
-
*/
|
|
107
|
-
id: string;
|
|
108
|
-
agent?: {
|
|
109
|
-
id?: string;
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* 取引確定後アクション
|
|
113
|
-
*/
|
|
114
|
-
potentialActions?: IPotentialActionsParams;
|
|
82
|
+
returnOrder?: IReturnOrderActionParams | [IReturnOrderActionParams];
|
|
115
83
|
}
|
|
116
84
|
/**
|
|
117
85
|
* 取引対象物
|
|
@@ -132,7 +100,7 @@ export interface IPotentialActions {
|
|
|
132
100
|
*/
|
|
133
101
|
returnOrder: IReturnOrderPotentialAction[];
|
|
134
102
|
}
|
|
135
|
-
export interface IAttributes extends IBaseAttributes<
|
|
103
|
+
export interface IAttributes extends IBaseAttributes<Pick<IStartParams, 'project' | 'typeOf' | 'object' | 'agent'>, never, never, IPotentialActions> {
|
|
136
104
|
}
|
|
137
105
|
/**
|
|
138
106
|
* 返品取引
|