@chevre/domain 21.20.0-alpha.52 → 21.20.0-alpha.53
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.
- package/lib/chevre/service/reserve/checkInReservation.d.ts +1 -3
- package/lib/chevre/service/reserve/checkInReservation.js +1 -4
- package/lib/chevre/service/reserve/useReservation.d.ts +0 -1
- package/lib/chevre/service/reserve/useReservation.js +1 -4
- package/lib/chevre/service/task/onAuthorizationCreated.js +0 -1
- package/lib/chevre/service/task/useReservation.js +1 -1
- package/package.json +2 -2
|
@@ -30,9 +30,7 @@ interface ICheckInReservationParams {
|
|
|
30
30
|
code: string;
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
export declare function checkInReservation(params: ICheckInReservationParams
|
|
34
|
-
reserveIfNotYet: boolean;
|
|
35
|
-
}): (repos: {
|
|
33
|
+
export declare function checkInReservation(params: ICheckInReservationParams): (repos: {
|
|
36
34
|
action: ActionRepo;
|
|
37
35
|
assetTransaction: AssetTransactionRepo;
|
|
38
36
|
event: EventRepo;
|
|
@@ -19,10 +19,7 @@ function checkInReservation(params) {
|
|
|
19
19
|
return (repos) => __awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
const now = new Date();
|
|
21
21
|
// confirmReservationが間に合わない可能性を考慮する(2023-06-01~)
|
|
22
|
-
|
|
23
|
-
if (params.reserveIfNotYet === true) {
|
|
24
|
-
yield reserveIfNotYet(params)(repos);
|
|
25
|
-
}
|
|
22
|
+
yield reserveIfNotYet(params)(repos);
|
|
26
23
|
// 発券処理(Array対応)
|
|
27
24
|
let checkedInReservationIds;
|
|
28
25
|
if (Array.isArray(params.object.ids) && params.object.ids.length > 0) {
|
|
@@ -38,10 +38,7 @@ function useReservation(params) {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
// confirmReservationが間に合わない可能性を考慮する(2023-06-01~)
|
|
41
|
-
|
|
42
|
-
if (params.reserveIfNotYet === true) {
|
|
43
|
-
yield reserveIfNotYet({ object: params.object })(repos);
|
|
44
|
-
}
|
|
41
|
+
yield reserveIfNotYet({ object: params.object })(repos);
|
|
45
42
|
// 予約検索
|
|
46
43
|
// 取得属性最適化(2023-01-30~)
|
|
47
44
|
const reservation = yield repos.reservation.findById({
|
|
@@ -24,7 +24,7 @@ function call(data) {
|
|
|
24
24
|
var _a, _b;
|
|
25
25
|
yield (0, reserve_1.useReservation)(Object.assign(Object.assign({ project: data.project, agent: data.agent, object: data.object,
|
|
26
26
|
// タスク作成前に検証済なので検証不要
|
|
27
|
-
verifyToken: false
|
|
27
|
+
verifyToken: false }, (typeof ((_a = data.instrument) === null || _a === void 0 ? void 0 : _a.typeOf) === 'string') ? { instrument: data.instrument } : undefined), (typeof ((_b = data.location) === null || _b === void 0 ? void 0 : _b.typeOf) === 'string') ? { location: data.location } : undefined))({
|
|
28
28
|
action: new action_1.MongoRepository(settings.connection),
|
|
29
29
|
assetTransaction: new assetTransaction_1.MongoRepository(settings.connection),
|
|
30
30
|
order: new order_1.MongoRepository(settings.connection),
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@aws-sdk/credential-providers": "3.433.0",
|
|
13
|
-
"@chevre/factory": "4.352.0-alpha.
|
|
13
|
+
"@chevre/factory": "4.352.0-alpha.8",
|
|
14
14
|
"@cinerino/sdk": "5.9.0-alpha.1",
|
|
15
15
|
"@motionpicture/coa-service": "9.3.0-alpha.4",
|
|
16
16
|
"@motionpicture/gmo-service": "5.3.0-alpha.2",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"postversion": "git push origin --tags",
|
|
112
112
|
"prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
|
|
113
113
|
},
|
|
114
|
-
"version": "21.20.0-alpha.
|
|
114
|
+
"version": "21.20.0-alpha.53"
|
|
115
115
|
}
|