@chevre/domain 24.0.0-alpha.21 → 24.0.0-alpha.22

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.
@@ -7,7 +7,7 @@ export { ICancelActionAction };
7
7
  * 汎用アクションリポジトリで開始可能なアクションタイプ
8
8
  */
9
9
  type StartableActionType = Exclude<factory.actionType, factory.actionType.AcceptAction | factory.actionType.CheckAction>;
10
- type IAvailableActionRecipe = IActionRecipe<Exclude<factory.recipe.RecipeCategory, factory.recipe.RecipeCategory.publishPaymentUrl>>;
10
+ type IAvailableActionRecipe = IActionRecipe<Exclude<factory.recipe.RecipeCategory, factory.recipe.RecipeCategory.publishPaymentUrl | factory.recipe.RecipeCategory.checkMovieTicket>>;
11
11
  /**
12
12
  * アクションリポジトリ
13
13
  */
@@ -137,6 +137,10 @@ function checkByIdentifierIfNotYet(params) {
137
137
  if (typeof placeOrderId === 'string') {
138
138
  // no op
139
139
  }
140
+ else {
141
+ // 注文取引IDの未指定ケースがあるかどうか確認するためにlog
142
+ console.log('checkByIdentifierIfNotYet: placeOrderId undefined. params:', JSON.stringify(params));
143
+ }
140
144
  const specifiedCheckedActionId = params.checkedAction?.id;
141
145
  if (typeof specifiedCheckedActionId === 'string' && specifiedCheckedActionId !== '') {
142
146
  alreadyCheckedAction = (await repos.checkMovieTicketAction.findCompletedCheckActions({
@@ -153,6 +157,8 @@ function checkByIdentifierIfNotYet(params) {
153
157
  }
154
158
  }
155
159
  else {
160
+ // 認証IDの未指定ケースがあるかどうか確認するためにlog
161
+ console.log('checkByIdentifierIfNotYet: specifiedCheckedActionId undefined. params:', JSON.stringify(params));
156
162
  alreadyCheckedAction = (await repos.checkMovieTicketAction.findCompletedCheckActions({
157
163
  // limit: 1,
158
164
  // page: 1,
@@ -28,6 +28,7 @@ const factory = __importStar(require("../../factory"));
28
28
  const acceptedOffer_1 = require("../../repo/acceptedOffer");
29
29
  const accountingReport_1 = require("../../repo/accountingReport");
30
30
  const action_1 = require("../../repo/action");
31
+ const checkMovieTicket_1 = require("../../repo/action/checkMovieTicket");
31
32
  const assetTransaction_1 = require("../../repo/assetTransaction");
32
33
  const credentials_1 = require("../../repo/credentials");
33
34
  const event_1 = require("../../repo/event");
@@ -51,7 +52,8 @@ function call(params) {
51
52
  ...params.data,
52
53
  sameAs: { id: params.id, typeOf: 'Task' } // タスクIDを関連付け(2024-04-20~)
53
54
  })({
54
- action: new action_1.ActionRepo(connection),
55
+ // action: new ActionRepo(connection),
56
+ checkMovieTicketAction: new checkMovieTicket_1.CheckMovieTicketActionRepo(connection),
55
57
  acceptedOffer: new acceptedOffer_1.AcceptedOfferRepo(connection),
56
58
  assetTransaction: new assetTransaction_1.AssetTransactionRepo(connection),
57
59
  order: new order_1.OrderRepo(connection)
@@ -1,6 +1,7 @@
1
1
  import type { AcceptedOfferRepo } from '../../../repo/acceptedOffer';
2
2
  import type { AccountingReportRepo } from '../../../repo/accountingReport';
3
3
  import type { ActionRepo } from '../../../repo/action';
4
+ import type { CheckMovieTicketActionRepo } from '../../../repo/action/checkMovieTicket';
4
5
  import type { AssetTransactionRepo } from '../../../repo/assetTransaction';
5
6
  import type { CredentialsRepo } from '../../../repo/credentials';
6
7
  import type { EventRepo } from '../../../repo/event';
@@ -14,7 +15,7 @@ import type { TaskRepo } from '../../../repo/task';
14
15
  import * as factory from '../../../factory';
15
16
  import { Settings } from '../../../settings';
16
17
  interface IPayTask2payActionAttributesRepos {
17
- action: ActionRepo;
18
+ checkMovieTicketAction: CheckMovieTicketActionRepo;
18
19
  acceptedOffer: AcceptedOfferRepo;
19
20
  assetTransaction: AssetTransactionRepo;
20
21
  order: OrderRepo;
@@ -125,7 +125,7 @@ function payTask2payActionAttributes(params) {
125
125
  let checkResult;
126
126
  const checkedActionId = transaction.object.checkedAction?.id;
127
127
  if (typeof checkedActionId === 'string' && checkedActionId !== '') {
128
- const recipe = await repos.action.findRecipeByAction({
128
+ const recipe = await repos.checkMovieTicketAction.findRecipeByAction({
129
129
  project: { id: transaction.project.id },
130
130
  recipeFor: { id: checkedActionId }
131
131
  });
package/package.json CHANGED
@@ -99,5 +99,5 @@
99
99
  "postversion": "git push origin --tags",
100
100
  "prepublishOnly": "npm run clean && npm run build"
101
101
  },
102
- "version": "24.0.0-alpha.21"
102
+ "version": "24.0.0-alpha.22"
103
103
  }