@chevre/domain 22.6.0-alpha.37 → 22.6.0-alpha.38

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.
@@ -29,26 +29,24 @@ function onReservationUsed(attendedReservation, action) {
29
29
  const informTaskRunsAt = now;
30
30
  // support notification.reservation.IUseAction(2024-11-11~)
31
31
  let reservation4inform;
32
- if (settings.useNotificationUseAction) {
33
- reservation4inform = Object.assign({ typeOf: action.typeOf, project: action.project, id: action.id, object: {
34
- typeOf: attendedReservation.typeOf,
35
- id: attendedReservation.id,
36
- modifiedTime: attendedReservation.modifiedTime,
37
- reservedTicket: { dateUsed: attendedReservation.reservedTicket.dateUsed }
38
- } }, (typeof ((_a = action.location) === null || _a === void 0 ? void 0 : _a.identifier) === 'string')
39
- ? { location: { identifier: action.location.identifier } }
40
- : undefined);
41
- }
42
- else {
43
- reservation4inform = {
32
+ // let reservation4inform: factory.notification.reservation.IReservation4informUsed
33
+ // | factory.notification.reservation.IUseAction;
34
+ reservation4inform = Object.assign({ typeOf: action.typeOf, project: action.project, id: action.id, object: {
44
35
  typeOf: attendedReservation.typeOf,
45
- project: attendedReservation.project,
46
36
  id: attendedReservation.id,
47
- attended: true,
48
37
  modifiedTime: attendedReservation.modifiedTime,
49
38
  reservedTicket: { dateUsed: attendedReservation.reservedTicket.dateUsed }
50
- };
51
- }
39
+ } }, (typeof ((_a = action.location) === null || _a === void 0 ? void 0 : _a.identifier) === 'string')
40
+ ? { location: { identifier: action.location.identifier } }
41
+ : undefined);
42
+ // reservation4inform = {
43
+ // typeOf: attendedReservation.typeOf,
44
+ // project: attendedReservation.project,
45
+ // id: attendedReservation.id,
46
+ // attended: true,
47
+ // modifiedTime: attendedReservation.modifiedTime,
48
+ // reservedTicket: { dateUsed: attendedReservation.reservedTicket.dateUsed }
49
+ // };
52
50
  const modifiedTimeInMilliseconds = moment(attendedReservation.modifiedTime)
53
51
  .valueOf();
54
52
  const informIdentifier = `${attendedReservation.typeOf}:${attendedReservation.id}:attended:${modifiedTimeInMilliseconds}`;
@@ -87,7 +87,6 @@ interface IOptions {
87
87
  movieticketReserve: ISurfrockSettings;
88
88
  useAssetTransactionSyncProcessing: boolean;
89
89
  useExperimentalFeature: boolean;
90
- useNotificationUseAction?: boolean;
91
90
  notification: IWebhookSettings;
92
91
  }
93
92
  /**
@@ -133,7 +132,6 @@ declare class Settings {
133
132
  readonly movieticketReserve: ISurfrockSettings;
134
133
  readonly useAssetTransactionSyncProcessing: boolean;
135
134
  readonly useExperimentalFeature: boolean;
136
- readonly useNotificationUseAction: boolean;
137
135
  /**
138
136
  * 通知設定
139
137
  */
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "AggregationSettings", { enumerable: true, get: f
8
8
  */
9
9
  class Settings {
10
10
  constructor(options) {
11
- const { onEventChanged, onOrderStatusChanged, onResourceUpdated, onReservationStatusChanged, userPoolIdOld, userPoolIdNew, abortedTasksWithoutReport, numTryConfirmReserveTransaction, transaction, defaultSenderEmail, deliverOrderLimit, coa, gmo, movieticketReserve, useAssetTransactionSyncProcessing, useExperimentalFeature, useNotificationUseAction, notification } = options;
11
+ const { onEventChanged, onOrderStatusChanged, onResourceUpdated, onReservationStatusChanged, userPoolIdOld, userPoolIdNew, abortedTasksWithoutReport, numTryConfirmReserveTransaction, transaction, defaultSenderEmail, deliverOrderLimit, coa, gmo, movieticketReserve, useAssetTransactionSyncProcessing, useExperimentalFeature, notification } = options;
12
12
  this.onEventChanged = onEventChanged;
13
13
  this.onOrderStatusChanged = onOrderStatusChanged;
14
14
  this.onResourceUpdated = onResourceUpdated;
@@ -25,7 +25,6 @@ class Settings {
25
25
  this.movieticketReserve = movieticketReserve;
26
26
  this.useAssetTransactionSyncProcessing = useAssetTransactionSyncProcessing;
27
27
  this.useExperimentalFeature = useExperimentalFeature;
28
- this.useNotificationUseAction = useNotificationUseAction === true;
29
28
  this.notification = notification;
30
29
  }
31
30
  }
package/package.json CHANGED
@@ -108,5 +108,5 @@
108
108
  "postversion": "git push origin --tags",
109
109
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
110
110
  },
111
- "version": "22.6.0-alpha.37"
111
+ "version": "22.6.0-alpha.38"
112
112
  }