@shizuoka-its/core 2.0.0-rc.1 → 2.0.1
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/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# @shizuoka-its/core
|
|
2
|
-
|
|
2
|
+
静岡大学ITソルーション室(ITS)で使用する共通のデータベースアクセス層とビジネスロジックを提供するTypeScriptライブラリです。
|
|
3
3
|
|
|
4
4
|
## インストール
|
|
5
5
|
```bash
|
|
@@ -7,15 +7,17 @@ npm install @shizuoka-its/core
|
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
## 利用例
|
|
10
|
-
|
|
10
|
+
メンバー情報表示
|
|
11
11
|
```ts
|
|
12
12
|
import { createMemberUseCases, type Member } from "@shizuoka-its/core";
|
|
13
13
|
|
|
14
14
|
const memberUseCases = createMemberUseCases();
|
|
15
15
|
|
|
16
16
|
// メンバー情報の取得
|
|
17
|
-
const
|
|
17
|
+
const result = await memberUseCases.getMemberByEmail
|
|
18
18
|
.execute({ email: "example@shizuoka.ac.jp" });
|
|
19
|
+
|
|
20
|
+
console.log(result.member);
|
|
19
21
|
```
|
|
20
22
|
|
|
21
23
|
## アーキテクチャ
|
|
@@ -127,5 +129,5 @@ npx prisma studio
|
|
|
127
129
|
```
|
|
128
130
|
|
|
129
131
|
## コントリビューター
|
|
130
|
-
@KinjiKawaguchi
|
|
131
|
-
@KikyoNanakusa
|
|
132
|
+
- @KinjiKawaguchi
|
|
133
|
+
- @KikyoNanakusa
|
|
@@ -62,7 +62,7 @@ class PrismaMemberRepository {
|
|
|
62
62
|
update: {
|
|
63
63
|
name: memberSnapshot.name,
|
|
64
64
|
studentId: memberSnapshot.studentId,
|
|
65
|
-
department: memberSnapshot.department.
|
|
65
|
+
department: memberSnapshot.department.getValue(),
|
|
66
66
|
email: memberSnapshot.email.getValue(),
|
|
67
67
|
personalEmail: (_a = memberSnapshot.personalEmail) === null || _a === void 0 ? void 0 : _a.getValue(),
|
|
68
68
|
},
|
|
@@ -70,7 +70,7 @@ class PrismaMemberRepository {
|
|
|
70
70
|
id: memberSnapshot.id,
|
|
71
71
|
name: memberSnapshot.name,
|
|
72
72
|
studentId: memberSnapshot.studentId,
|
|
73
|
-
department: memberSnapshot.department.
|
|
73
|
+
department: memberSnapshot.department.getValue(),
|
|
74
74
|
email: memberSnapshot.email.getValue(),
|
|
75
75
|
personalEmail: (_b = memberSnapshot.personalEmail) === null || _b === void 0 ? void 0 : _b.getValue(),
|
|
76
76
|
},
|