@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.
@@ -79,9 +79,7 @@ function deletePersonIfNecessary(order) {
79
79
  },
80
80
  physically: true,
81
81
  userPoolId: setting.userPoolIdNew,
82
- // project: { id: order.project.id },
83
- migrate: false,
84
- useUsernameAsGMOMemberId: false,
82
+ // migrate: false,
85
83
  executeBackground: true
86
84
  }
87
85
  };
@@ -17,7 +17,7 @@ let coaAuthClientCreated = false;
17
17
  let coaAuthClient = new coa_service_1.COA.auth.RefreshToken({
18
18
  endpoint: '', // 使用されないので空文字でok
19
19
  refreshToken: '', // 使用されないので空文字でok
20
- useFetch: true
20
+ // useFetch: true
21
21
  });
22
22
  /**
23
23
  * タスク実行関数
@@ -22,7 +22,7 @@ let coaAuthClientCreated = false;
22
22
  let coaAuthClient = new coa_service_1.COA.auth.RefreshToken({
23
23
  endpoint: '', // 使用されないので空文字でok
24
24
  refreshToken: '', // 使用されないので空文字でok
25
- useFetch: true
25
+ // useFetch: true
26
26
  });
27
27
  /**
28
28
  * タスク実行関数
@@ -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
- // discontinue(2025-03-29~)
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
- if (!params.migrate) {
134
- // 移行でなければDeleteTransactionタスクを作成(2023-07-03~)
135
- await createDeleteTransactionTask({
136
- id: params.id,
137
- project: { id: params.project.id },
138
- now: action.startDate
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
  // // クレジットカード削除
@@ -43,7 +43,7 @@ let coaAuthClientCreated = false;
43
43
  let coaAuthClient = new coa_service_1.COA.auth.RefreshToken({
44
44
  endpoint: '', // 使用されないので空文字でok
45
45
  refreshToken: '', // 使用されないので空文字でok
46
- useFetch: true
46
+ // useFetch: true
47
47
  });
48
48
  /**
49
49
  * タスク実行関数
@@ -21,7 +21,7 @@ let coaAuthClientCreated = false;
21
21
  let coaAuthClient = new coa_service_1.COA.auth.RefreshToken({
22
22
  endpoint: '', // 使用されないので空文字でok
23
23
  refreshToken: '', // 使用されないので空文字でok
24
- useFetch: true
24
+ // useFetch: true
25
25
  });
26
26
  /**
27
27
  * タスク実行関数
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.0",
15
- "@cinerino/sdk": "14.0.0-alpha.7",
16
- "@motionpicture/coa-service": "10.0.0-alpha.0",
17
- "@motionpicture/gmo-service": "6.0.0-alpha.3",
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.70"
99
+ "version": "24.0.0-alpha.71"
100
100
  }