@chevre/factory 4.351.0-alpha.9 → 4.352.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.
@@ -1,27 +1,21 @@
1
1
  import * as ActionFactory from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
- import * as OrderFactory from '../../order';
3
+ import { ISimpleOrder } from '../../order';
4
4
  import { TransactionType } from '../../transactionType';
5
5
  import { IAttributes as IGivePointAwardActionAttributes } from '../transfer/give/pointAward';
6
6
  import { IAttributes as ISendOrderActionAttributes } from '../transfer/send/order';
7
7
  export type IAgent = ActionFactory.IParticipant;
8
8
  export type IRecipient = ActionFactory.IParticipant;
9
- export type IObject = OrderFactory.ISimpleOrder;
9
+ export type IObject = ISimpleOrder;
10
10
  export type IResult = any;
11
+ export type ISendOrderPotentialAction = Pick<ISendOrderActionAttributes, 'potentialActions'>;
11
12
  export interface IPotentialActions {
12
13
  /**
13
14
  * ポイント付与アクション
14
15
  * 現時点で複数口座にポイントを付与することはないが、可能性もこめてリストで持っておく
15
16
  */
16
17
  givePointAward?: IGivePointAwardActionAttributes[];
17
- /**
18
- * 決済アクションリスト
19
- * 廃止(2023-02-03~)
20
- */
21
- /**
22
- * 注文配送アクション
23
- */
24
- sendOrder?: ISendOrderActionAttributes;
18
+ sendOrder?: ISendOrderPotentialAction;
25
19
  }
26
20
  export interface IPurpose {
27
21
  typeOf: TransactionType.PlaceOrder;
package/lib/action.d.ts CHANGED
@@ -90,6 +90,9 @@ export interface ISearchConditions {
90
90
  limit?: number;
91
91
  page?: number;
92
92
  sort?: ISortOrder;
93
+ id?: {
94
+ $nin?: string[];
95
+ };
93
96
  project?: {
94
97
  id?: {
95
98
  $eq?: string;
@@ -9,7 +9,7 @@ export type IObject = SendOrderActionFactory.IObject & {
9
9
  /**
10
10
  * OrderInTransit導入期の互換性維持対応として
11
11
  */
12
- previousOrderStatus?: OrderStatus.OrderProcessing | OrderStatus.OrderInTransit;
12
+ previousOrderStatus?: OrderStatus.OrderInTransit;
13
13
  };
14
14
  export interface IData {
15
15
  project: Pick<IProject, 'id' | 'typeOf'>;
@@ -178,6 +178,9 @@ export interface IConfirmParams {
178
178
  export type IOrderAsResult = OrderFactory.IOrder & {
179
179
  acceptedOffers: OrderFactory.IAcceptedOffer<OrderFactory.IItemOffered>[];
180
180
  };
181
+ export interface IAuthorizeActionAsResult {
182
+ id: string;
183
+ }
181
184
  /**
182
185
  * 取引結果
183
186
  */
@@ -186,6 +189,14 @@ export interface IResult {
186
189
  * 注文
187
190
  */
188
191
  order: IOrderAsResult;
192
+ /**
193
+ * 承認アクションID(2024-01-17~)
194
+ */
195
+ authorizeActions?: IAuthorizeActionAsResult[];
196
+ /**
197
+ * オファー数(2024-01-17~)
198
+ */
199
+ numAcceptedOffers?: number;
189
200
  }
190
201
  /**
191
202
  * エラー
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.351.0-alpha.9",
3
+ "version": "4.352.0-alpha.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",