Skip to content

Commit 274222b

Browse files
Merge pull request #11 from dabblingwithcode/staging
Staging
2 parents 1c528cd + 2933b9e commit 274222b

205 files changed

Lines changed: 36168 additions & 5481 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deployment-docker-staging.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,14 @@ jobs:
168168
SERVERPOD_MAX_REQUEST_SIZE: ${{ secrets.SERVERPOD_STAGING_MAX_REQUEST_SIZE }}
169169
# The token used to connect with insights must be at least 20 chars
170170
SERVERPOD_SERVICE_SECRET: ${{ secrets.SERVERPOD_STAGING_SERVICE_SECRET }}
171+
# Mail configuration for sending emails
172+
SERVERPOD_MAIL_USERNAME: ${{ secrets.SERVERPOD_MAIL_USERNAME }}
173+
SERVERPOD_MAIL_PASSWORD: ${{ secrets.SERVERPOD_MAIL_PASSWORD }}
174+
SERVERPOD_MAIL_SMTP_HOST: ${{ secrets.SERVERPOD_MAIL_SMTP_HOST }}
175+
SERVERPOD_MAIL_ADMIN: ${{ secrets.SERVERPOD_MAIL_ADMIN }}
176+
# Matrix configuration for sending emails
177+
MATRIX_SERVER_URL: ${{ secrets.MATRIX_SERVER_URL }}
178+
MATRIX_AUTH_TOKEN: ${{ secrets.MATRIX_AUTH_TOKEN }}
171179

172180
- name: cleanup
173181
run: rm -rf ~/.ssh

.github/workflows/deployment-docker.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,14 @@ jobs:
164164
SERVERPOD_MAX_REQUEST_SIZE: ${{ secrets.SERVERPOD_MAX_REQUEST_SIZE }}
165165
# The token used to connect with insights must be at least 20 chars
166166
SERVERPOD_SERVICE_SECRET: ${{ secrets.SERVERPOD_SERVICE_SECRET }}
167+
# Mail configuration for sending emails
168+
SERVERPOD_MAIL_USERNAME: ${{ secrets.SERVERPOD_MAIL_USERNAME }}
169+
SERVERPOD_MAIL_PASSWORD: ${{ secrets.SERVERPOD_MAIL_PASSWORD }}
170+
SERVERPOD_MAIL_SMTP_HOST: ${{ secrets.SERVERPOD_MAIL_SMTP_HOST }}
171+
SERVERPOD_MAIL_ADMIN: ${{ secrets.SERVERPOD_MAIL_ADMIN }}
172+
# Matrix configuration for sending emails
173+
MATRIX_SERVER_URL: ${{ secrets.MATRIX_SERVER_URL }}
174+
MATRIX_AUTH_TOKEN: ${{ secrets.MATRIX_AUTH_TOKEN }}
167175

168176
- name: cleanup
169177
run: rm -rf ~/.ssh

README.md

Lines changed: 183 additions & 92 deletions
Large diffs are not rendered by default.

school_data_hub_client/lib/src/protocol/_features/user/models/staff_user.dart

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ abstract class User implements _i1.SerializableModel {
2424
required this.userInfoId,
2525
this.userInfo,
2626
required this.role,
27+
this.matrixUserId,
2728
required this.timeUnits,
2829
required this.reliefTimeUnits,
2930
this.scheduledLessonsTeacher,
3031
this.lessonsTeacher,
3132
this.pupilsAuth,
33+
this.schooldayEventsProcessingTeam,
3234
required this.credit,
3335
required this.userFlags,
3436
});
@@ -38,11 +40,13 @@ abstract class User implements _i1.SerializableModel {
3840
required int userInfoId,
3941
_i2.UserInfo? userInfo,
4042
required _i3.Role role,
43+
String? matrixUserId,
4144
required int timeUnits,
4245
required int reliefTimeUnits,
4346
List<_i4.ScheduledLessonTeacher>? scheduledLessonsTeacher,
4447
List<_i5.LessonTeacher>? lessonsTeacher,
4548
Set<int>? pupilsAuth,
49+
String? schooldayEventsProcessingTeam,
4650
required int credit,
4751
required _i6.UserFlags userFlags,
4852
}) = _UserImpl;
@@ -56,6 +60,7 @@ abstract class User implements _i1.SerializableModel {
5660
: _i2.UserInfo.fromJson(
5761
(jsonSerialization['userInfo'] as Map<String, dynamic>)),
5862
role: _i3.Role.fromJson((jsonSerialization['role'] as String)),
63+
matrixUserId: jsonSerialization['matrixUserId'] as String?,
5964
timeUnits: jsonSerialization['timeUnits'] as int,
6065
reliefTimeUnits: jsonSerialization['reliefTimeUnits'] as int,
6166
scheduledLessonsTeacher: (jsonSerialization['scheduledLessonsTeacher']
@@ -71,6 +76,8 @@ abstract class User implements _i1.SerializableModel {
7176
: _i1.SetJsonExtension.fromJson(
7277
(jsonSerialization['pupilsAuth'] as List),
7378
itemFromJson: (e) => e as int),
79+
schooldayEventsProcessingTeam:
80+
jsonSerialization['schooldayEventsProcessingTeam'] as String?,
7481
credit: jsonSerialization['credit'] as int,
7582
userFlags: _i6.UserFlags.fromJson(
7683
(jsonSerialization['userFlags'] as Map<String, dynamic>)),
@@ -88,6 +95,8 @@ abstract class User implements _i1.SerializableModel {
8895

8996
_i3.Role role;
9097

98+
String? matrixUserId;
99+
91100
int timeUnits;
92101

93102
int reliefTimeUnits;
@@ -98,6 +107,8 @@ abstract class User implements _i1.SerializableModel {
98107

99108
Set<int>? pupilsAuth;
100109

110+
String? schooldayEventsProcessingTeam;
111+
101112
int credit;
102113

103114
_i6.UserFlags userFlags;
@@ -110,11 +121,13 @@ abstract class User implements _i1.SerializableModel {
110121
int? userInfoId,
111122
_i2.UserInfo? userInfo,
112123
_i3.Role? role,
124+
String? matrixUserId,
113125
int? timeUnits,
114126
int? reliefTimeUnits,
115127
List<_i4.ScheduledLessonTeacher>? scheduledLessonsTeacher,
116128
List<_i5.LessonTeacher>? lessonsTeacher,
117129
Set<int>? pupilsAuth,
130+
String? schooldayEventsProcessingTeam,
118131
int? credit,
119132
_i6.UserFlags? userFlags,
120133
});
@@ -125,6 +138,7 @@ abstract class User implements _i1.SerializableModel {
125138
'userInfoId': userInfoId,
126139
if (userInfo != null) 'userInfo': userInfo?.toJson(),
127140
'role': role.toJson(),
141+
if (matrixUserId != null) 'matrixUserId': matrixUserId,
128142
'timeUnits': timeUnits,
129143
'reliefTimeUnits': reliefTimeUnits,
130144
if (scheduledLessonsTeacher != null)
@@ -134,6 +148,8 @@ abstract class User implements _i1.SerializableModel {
134148
'lessonsTeacher':
135149
lessonsTeacher?.toJson(valueToJson: (v) => v.toJson()),
136150
if (pupilsAuth != null) 'pupilsAuth': pupilsAuth?.toJson(),
151+
if (schooldayEventsProcessingTeam != null)
152+
'schooldayEventsProcessingTeam': schooldayEventsProcessingTeam,
137153
'credit': credit,
138154
'userFlags': userFlags.toJson(),
139155
};
@@ -153,23 +169,27 @@ class _UserImpl extends User {
153169
required int userInfoId,
154170
_i2.UserInfo? userInfo,
155171
required _i3.Role role,
172+
String? matrixUserId,
156173
required int timeUnits,
157174
required int reliefTimeUnits,
158175
List<_i4.ScheduledLessonTeacher>? scheduledLessonsTeacher,
159176
List<_i5.LessonTeacher>? lessonsTeacher,
160177
Set<int>? pupilsAuth,
178+
String? schooldayEventsProcessingTeam,
161179
required int credit,
162180
required _i6.UserFlags userFlags,
163181
}) : super._(
164182
id: id,
165183
userInfoId: userInfoId,
166184
userInfo: userInfo,
167185
role: role,
186+
matrixUserId: matrixUserId,
168187
timeUnits: timeUnits,
169188
reliefTimeUnits: reliefTimeUnits,
170189
scheduledLessonsTeacher: scheduledLessonsTeacher,
171190
lessonsTeacher: lessonsTeacher,
172191
pupilsAuth: pupilsAuth,
192+
schooldayEventsProcessingTeam: schooldayEventsProcessingTeam,
173193
credit: credit,
174194
userFlags: userFlags,
175195
);
@@ -183,11 +203,13 @@ class _UserImpl extends User {
183203
int? userInfoId,
184204
Object? userInfo = _Undefined,
185205
_i3.Role? role,
206+
Object? matrixUserId = _Undefined,
186207
int? timeUnits,
187208
int? reliefTimeUnits,
188209
Object? scheduledLessonsTeacher = _Undefined,
189210
Object? lessonsTeacher = _Undefined,
190211
Object? pupilsAuth = _Undefined,
212+
Object? schooldayEventsProcessingTeam = _Undefined,
191213
int? credit,
192214
_i6.UserFlags? userFlags,
193215
}) {
@@ -197,6 +219,7 @@ class _UserImpl extends User {
197219
userInfo:
198220
userInfo is _i2.UserInfo? ? userInfo : this.userInfo?.copyWith(),
199221
role: role ?? this.role,
222+
matrixUserId: matrixUserId is String? ? matrixUserId : this.matrixUserId,
200223
timeUnits: timeUnits ?? this.timeUnits,
201224
reliefTimeUnits: reliefTimeUnits ?? this.reliefTimeUnits,
202225
scheduledLessonsTeacher: scheduledLessonsTeacher
@@ -209,6 +232,9 @@ class _UserImpl extends User {
209232
pupilsAuth: pupilsAuth is Set<int>?
210233
? pupilsAuth
211234
: this.pupilsAuth?.map((e0) => e0).toSet(),
235+
schooldayEventsProcessingTeam: schooldayEventsProcessingTeam is String?
236+
? schooldayEventsProcessingTeam
237+
: this.schooldayEventsProcessingTeam,
212238
credit: credit ?? this.credit,
213239
userFlags: userFlags ?? this.userFlags.copyWith(),
214240
);

0 commit comments

Comments
 (0)