@chevre/factory 4.393.0-alpha.34 → 4.393.0-alpha.36

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.
@@ -71,7 +71,6 @@ export type IAvailableChannel = Pick<IProductAvailableChannel, 'typeOf'> & {
71
71
  * add paymentServiceChannel ID(2025-02-21~)
72
72
  */
73
73
  id?: string;
74
- serviceUrl?: string;
75
74
  credentials?: never;
76
75
  totalPaymentDue?: {
77
76
  maxValue?: number;
@@ -1,3 +1,4 @@
1
+ import { IAttributes as ICancelCOAReserveActionAttributes } from '../action/cancel/coaReserve';
1
2
  import { IPurpose } from '../action/cancel/reservation';
2
3
  import { AssetTransactionType } from '../assetTransactionType';
3
4
  import { IExtendId } from '../autoGenerated';
@@ -6,14 +7,23 @@ import { TaskName } from '../taskName';
6
7
  export interface ICancelPurpose extends IPurpose {
7
8
  typeOf: AssetTransactionType.Reserve;
8
9
  }
9
- export interface IData {
10
+ export interface IPotentialCancelAction {
10
11
  purpose: ICancelPurpose;
12
+ object?: never;
13
+ instrument?: never;
11
14
  }
15
+ /**
16
+ * support COAReserve(2025-03-01~)
17
+ */
18
+ export type IPotentialCancelCOAReserveAction = Pick<ICancelCOAReserveActionAttributes, 'instrument' | 'object'> & {
19
+ purpose?: never;
20
+ };
21
+ export type IData = IPotentialCancelAction | IPotentialCancelCOAReserveAction;
12
22
  export interface IAttributes extends TaskFactory.IAttributes {
13
23
  name: TaskName.CancelPendingReservation;
14
24
  data: IData;
15
25
  }
16
26
  /**
17
- * 保留予約取消タスク
27
+ * cancel pending reservations task
18
28
  */
19
29
  export type ITask = IExtendId<IAttributes>;
@@ -1,21 +1,26 @@
1
1
  /**
2
- * タスクステータス
2
+ * task statuses
3
3
  */
4
4
  export declare enum TaskStatus {
5
5
  /**
6
- * 準備OK
6
+ * wait for run
7
7
  */
8
8
  Ready = "Ready",
9
9
  /**
10
- * 実行中
10
+ * running
11
11
  */
12
12
  Running = "Running",
13
13
  /**
14
- * 実行済
14
+ * successfully run
15
15
  */
16
16
  Executed = "Executed",
17
17
  /**
18
- * 実行中止
18
+ * aborted
19
19
  */
20
- Aborted = "Aborted"
20
+ Aborted = "Aborted",
21
+ /**
22
+ * exipred
23
+ * 2025-03-01~
24
+ */
25
+ Expired = "Expired"
21
26
  }
package/lib/taskStatus.js CHANGED
@@ -2,24 +2,29 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TaskStatus = void 0;
4
4
  /**
5
- * タスクステータス
5
+ * task statuses
6
6
  */
7
7
  var TaskStatus;
8
8
  (function (TaskStatus) {
9
9
  /**
10
- * 準備OK
10
+ * wait for run
11
11
  */
12
12
  TaskStatus["Ready"] = "Ready";
13
13
  /**
14
- * 実行中
14
+ * running
15
15
  */
16
16
  TaskStatus["Running"] = "Running";
17
17
  /**
18
- * 実行済
18
+ * successfully run
19
19
  */
20
20
  TaskStatus["Executed"] = "Executed";
21
21
  /**
22
- * 実行中止
22
+ * aborted
23
23
  */
24
24
  TaskStatus["Aborted"] = "Aborted";
25
+ /**
26
+ * exipred
27
+ * 2025-03-01~
28
+ */
29
+ TaskStatus["Expired"] = "Expired";
25
30
  })(TaskStatus = exports.TaskStatus || (exports.TaskStatus = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.393.0-alpha.34",
3
+ "version": "4.393.0-alpha.36",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",