@chevre/domain 20.1.0-alpha.47 → 20.1.0-alpha.48
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.
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NUM_TRY_INFORM_RESERVATION = exports.maskUnderName = void 0;
|
|
4
|
-
const reservedAgentIdentifireNames_1 = require("../../factory/reservedAgentIdentifireNames");
|
|
5
4
|
const MASKED_PROFILE = '****';
|
|
6
5
|
function maskUnderName(reservation) {
|
|
7
|
-
var _a, _b, _c;
|
|
8
6
|
// 予約後を隠蔽(2022-12-24~)
|
|
9
|
-
const underNameIdentifiers
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
// const underNameIdentifiers: factory.propertyValue.IPropertyValue<string>[] | undefined =
|
|
8
|
+
// (Array.isArray(reservation.underName?.identifier))
|
|
9
|
+
// ? reservation.underName?.identifier.filter((p) => {
|
|
10
|
+
// return !RESERVED_AGENT_IDENTIFIER_NAMES.includes(p.name);
|
|
11
|
+
// })
|
|
12
|
+
// : undefined;
|
|
13
|
+
var _a;
|
|
14
|
+
const underName = (typeof ((_a = reservation.underName) === null || _a === void 0 ? void 0 : _a.typeOf) === 'string')
|
|
15
|
+
? Object.assign(Object.assign({}, reservation.underName), { email: MASKED_PROFILE, telephone: MASKED_PROFILE, name: MASKED_PROFILE, familyName: MASKED_PROFILE, givenName: MASKED_PROFILE,
|
|
16
|
+
// ... (Array.isArray(underNameIdentifiers)) ? { identifier: underNameIdentifiers } : undefined,
|
|
17
|
+
// identifierも隠蔽(2022-12-27~)
|
|
18
|
+
identifier: [] }) : undefined;
|
|
16
19
|
return Object.assign(Object.assign({}, reservation), (underName !== undefined) ? { underName } : undefined);
|
|
17
20
|
}
|
|
18
21
|
exports.maskUnderName = maskUnderName;
|
package/package.json
CHANGED