@chevre/domain 24.0.0-alpha.70 → 24.0.0-alpha.71
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/order/deleteOrder.js +1 -3
- package/lib/chevre/service/task/cancelPendingReservation.js +1 -1
- package/lib/chevre/service/task/confirmReserveTransaction.js +1 -1
- package/lib/chevre/service/task/deletePerson.js +8 -25
- package/lib/chevre/service/task/returnReserveTransaction.js +1 -1
- package/lib/chevre/service/task/voidReserveTransaction.js +1 -1
- package/package.json +5 -5
|
@@ -79,9 +79,7 @@ function deletePersonIfNecessary(order) {
|
|
|
79
79
|
},
|
|
80
80
|
physically: true,
|
|
81
81
|
userPoolId: setting.userPoolIdNew,
|
|
82
|
-
//
|
|
83
|
-
migrate: false,
|
|
84
|
-
useUsernameAsGMOMemberId: false,
|
|
82
|
+
// migrate: false,
|
|
85
83
|
executeBackground: true
|
|
86
84
|
}
|
|
87
85
|
};
|
|
@@ -94,11 +94,8 @@ function deleteById(params
|
|
|
94
94
|
const deleteObject = {
|
|
95
95
|
id: params.id,
|
|
96
96
|
typeOf: factory_1.factory.personType.Person,
|
|
97
|
-
migrate: params.migrate,
|
|
97
|
+
// migrate: params.migrate, // discontinue(2026-04-08~)
|
|
98
98
|
physically: params.physically
|
|
99
|
-
// discontinue(2025-03-29~)
|
|
100
|
-
// ...(typeof params.migratePersonRecipientUrl === 'string')
|
|
101
|
-
// ? { migratePersonRecipientUrl: params.migratePersonRecipientUrl } : undefined
|
|
102
99
|
};
|
|
103
100
|
const deleteMemberAction = {
|
|
104
101
|
agent: params.agent,
|
|
@@ -109,10 +106,6 @@ function deleteById(params
|
|
|
109
106
|
const action = await repos.action.start(deleteMemberAction);
|
|
110
107
|
let existingPeople;
|
|
111
108
|
try {
|
|
112
|
-
// const project = <Pick<factory.project.IProject, 'settings' | 'id'>>await repos.project.findById({
|
|
113
|
-
// id: params.project.id,
|
|
114
|
-
// inclusion: ['settings']
|
|
115
|
-
// });
|
|
116
109
|
existingPeople = await repos.newPerson.search({ id: params.id });
|
|
117
110
|
// exclude ADMIN_PROVIDER_NAME
|
|
118
111
|
const username = existingPeople.at(0)?.Username;
|
|
@@ -120,24 +113,14 @@ function deleteById(params
|
|
|
120
113
|
if (isAdminPerson) {
|
|
121
114
|
throw new factory_1.factory.errors.Argument('id', `${ADMIN_PROVIDER_NAME} people cannot be deleted`);
|
|
122
115
|
}
|
|
123
|
-
//
|
|
124
|
-
// 移行の場合、全所有権情報通知タスクを作成
|
|
125
|
-
// if (params.migrate && typeof params.migratePersonRecipientUrl === 'string') {
|
|
126
|
-
// await createInformTask({
|
|
127
|
-
// id: params.id,
|
|
128
|
-
// project: { id: params.project.id },
|
|
129
|
-
// now: action.startDate,
|
|
130
|
-
// migratePersonRecipientUrl: params.migratePersonRecipientUrl
|
|
131
|
-
// })(repos);
|
|
116
|
+
// if (!params.migrate) {
|
|
132
117
|
// }
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
})({ task: repos.task });
|
|
140
|
-
}
|
|
118
|
+
// 移行でなければDeleteTransactionタスクを作成(2023-07-03~)
|
|
119
|
+
await createDeleteTransactionTask({
|
|
120
|
+
id: params.id,
|
|
121
|
+
project: { id: params.project.id },
|
|
122
|
+
now: action.startDate
|
|
123
|
+
})({ task: repos.task });
|
|
141
124
|
if (existingPeople.length > 0) {
|
|
142
125
|
// if (repos.creditCard !== undefined) {
|
|
143
126
|
// // クレジットカード削除
|
package/package.json
CHANGED
|
@@ -11,10 +11,10 @@
|
|
|
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": "7.0.0-alpha.
|
|
15
|
-
"@cinerino/sdk": "14.0.0-alpha.
|
|
16
|
-
"@motionpicture/coa-service": "10.0.0
|
|
17
|
-
"@motionpicture/gmo-service": "6.0.0
|
|
14
|
+
"@chevre/factory": "7.0.0-alpha.1",
|
|
15
|
+
"@cinerino/sdk": "14.0.0-alpha.8",
|
|
16
|
+
"@motionpicture/coa-service": "10.0.0",
|
|
17
|
+
"@motionpicture/gmo-service": "6.0.0",
|
|
18
18
|
"@sendgrid/client": "8.1.4",
|
|
19
19
|
"@surfrock/sdk": "2.0.0-alpha.2",
|
|
20
20
|
"debug": "^3.2.7",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"postversion": "git push origin --tags",
|
|
97
97
|
"prepublishOnly": "npm run clean && npm run build"
|
|
98
98
|
},
|
|
99
|
-
"version": "24.0.0-alpha.
|
|
99
|
+
"version": "24.0.0-alpha.71"
|
|
100
100
|
}
|