@chevre/domain 25.1.0-alpha.0 → 25.1.0-alpha.1

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.
@@ -10,14 +10,14 @@ const deleteOrder_1 = require("../order/deleteOrder");
10
10
  */
11
11
  function deleteTransaction(params) {
12
12
  return async (repos) => {
13
- if (params.object.specifyingMethod === factory_1.factory.action.update.deleteAction.ObjectAsTransactionSpecifyingMethod.AgentId) {
14
- throw new factory_1.factory.errors.NotImplemented('deleteTransaction by agentId discontinued'); // discontinue(2026-06-28~)
15
- // // transaction.agent.id指定による取引削除に対応(2023-06-30~)
16
- // await createDeleteTransactionTasksByAgentId(params)(repos);
17
- }
18
- else {
19
- await deleteTransactionById(params)(repos);
20
- }
13
+ // if (params.object.specifyingMethod === factory.action.update.deleteAction.ObjectAsTransactionSpecifyingMethod.AgentId) {
14
+ // throw new factory.errors.NotImplemented('deleteTransaction by agentId discontinued'); // discontinue(2026-06-28~)
15
+ // // // transaction.agent.id指定による取引削除に対応(2023-06-30~)
16
+ // // await createDeleteTransactionTasksByAgentId(params)(repos);
17
+ // } else {
18
+ // await deleteTransactionById(params)(repos);
19
+ // }
20
+ await deleteTransactionById(params)(repos);
21
21
  };
22
22
  }
23
23
  function deleteTransactionById(params) {
@@ -55,10 +55,11 @@ function deleteTransactionById(params) {
55
55
  return;
56
56
  }
57
57
  // アクション開始
58
+ const { project: _project, startDate: _startDate, endDate: _endDate, ...minimizedObject } = params.object; // minimize object(2026-07-01~)
58
59
  const actionAttributes = {
59
60
  typeOf: factory_1.factory.actionType.DeleteAction,
60
61
  project: transaction.project,
61
- object: params.object,
62
+ object: minimizedObject,
62
63
  agent: transaction.project
63
64
  };
64
65
  let deletePayTransactionResult;
@@ -104,10 +104,10 @@ function createTasks(params, setting) {
104
104
  ? { orderNumber: transaction.object.orderNumber }
105
105
  : undefined
106
106
  },
107
- project: transaction.project,
108
- startDate: transaction.startDate,
107
+ // project: transaction.project,
108
+ // startDate: transaction.startDate,
109
109
  typeOf: transaction.typeOf,
110
- ...(transaction.endDate !== undefined) ? { endDate: transaction.endDate } : undefined
110
+ // ...(transaction.endDate !== undefined) ? { endDate: transaction.endDate } : undefined
111
111
  }
112
112
  }
113
113
  };
@@ -59,10 +59,10 @@ function createTasks(params, setting
59
59
  object: {
60
60
  order: transaction.object.order
61
61
  },
62
- project: transaction.project,
63
- startDate: transaction.startDate,
62
+ // project: transaction.project,
63
+ // startDate: transaction.startDate,
64
64
  typeOf: transaction.typeOf,
65
- ...(transaction.endDate !== undefined) ? { endDate: transaction.endDate } : undefined
65
+ // ...(transaction.endDate !== undefined) ? { endDate: transaction.endDate } : undefined
66
66
  }
67
67
  }
68
68
  };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "dependencies": {
12
12
  "@aws-sdk/client-cognito-identity-provider": "3.600.0",
13
13
  "@aws-sdk/credential-providers": "3.600.0",
14
- "@chevre/factory": "9.3.0",
14
+ "@chevre/factory": "9.4.0",
15
15
  "@motionpicture/coa-service": "10.0.0",
16
16
  "@motionpicture/gmo-service": "6.1.0-alpha.0",
17
17
  "@sendgrid/client": "8.1.4",
@@ -91,5 +91,5 @@
91
91
  "postversion": "git push origin --tags",
92
92
  "prepublishOnly": "npm run clean && npm run build"
93
93
  },
94
- "version": "25.1.0-alpha.0"
94
+ "version": "25.1.0-alpha.1"
95
95
  }