@neutron.co.id/pendidikan-operation 1.29.1 → 1.29.3
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.
|
@@ -173,8 +173,11 @@ const sendScoreNotification = operation.Action.define({
|
|
|
173
173
|
// parentName: parent.user?.name || 'Parent',
|
|
174
174
|
studentName: gradingData.student?.user?.name || "Student",
|
|
175
175
|
gradingType: gradingData.gradingType?.name || "Grading"
|
|
176
|
-
// academicPeriod: gradingData.gradingType?.academicPeriod?.name || 'Period',
|
|
177
176
|
// branch: gradingData.branch?.name || 'Branch',
|
|
177
|
+
// studentId: String(gradingData.studentId),
|
|
178
|
+
// groupId: String(gradingData.studentId),
|
|
179
|
+
// gradingTypeId: gradingData.gradingType?.id || 'Grading ID',
|
|
180
|
+
// academicPeriod: gradingData.gradingType?.academicPeriod?.name || 'Period',
|
|
178
181
|
// reportedAt: DateUtil.formatTz(gradingData.reportedAt, { pattern: 'yyyy-MM-dd' }),
|
|
179
182
|
// scoreCount: scoresList.length,
|
|
180
183
|
// scoreSummary: JSON.stringify(scoreSummary),
|
|
@@ -183,7 +186,9 @@ const sendScoreNotification = operation.Action.define({
|
|
|
183
186
|
overrides: {
|
|
184
187
|
fcm: {
|
|
185
188
|
data: {
|
|
186
|
-
userId: String(
|
|
189
|
+
userId: String(parentUserId),
|
|
190
|
+
studentId: String(gradingData.student.id),
|
|
191
|
+
gradingTypeId: String(gradingData.gradingType?.id),
|
|
187
192
|
moduleType: "score-published-parent",
|
|
188
193
|
moduleId: String(input?.gradingId),
|
|
189
194
|
url: `${config?.appFluffyUrl}/rapor/grading-${input?.gradingId}`
|
|
@@ -195,10 +200,12 @@ const sendScoreNotification = operation.Action.define({
|
|
|
195
200
|
await stream?.actions.data.createOne.execute({
|
|
196
201
|
model: "neu:data:notification",
|
|
197
202
|
data: {
|
|
198
|
-
userId:
|
|
203
|
+
userId: parentUserId,
|
|
199
204
|
moduleType: "score-published-parent",
|
|
200
205
|
moduleId: input?.gradingId,
|
|
201
206
|
messageData: {
|
|
207
|
+
studentId: gradingData.student.id,
|
|
208
|
+
gradingTypeId: gradingData.gradingType?.id,
|
|
202
209
|
id: input?.gradingId,
|
|
203
210
|
message: `Hai, ada penilaian baru untuk ${gradingData.student?.user?.name} dengan penilaian ${gradingData.gradingType?.name}! Yuk, lihat perkembangannya di Rekam Belajar.`
|
|
204
211
|
},
|
|
@@ -171,8 +171,11 @@ const sendScoreNotification = Action.define({
|
|
|
171
171
|
// parentName: parent.user?.name || 'Parent',
|
|
172
172
|
studentName: gradingData.student?.user?.name || "Student",
|
|
173
173
|
gradingType: gradingData.gradingType?.name || "Grading"
|
|
174
|
-
// academicPeriod: gradingData.gradingType?.academicPeriod?.name || 'Period',
|
|
175
174
|
// branch: gradingData.branch?.name || 'Branch',
|
|
175
|
+
// studentId: String(gradingData.studentId),
|
|
176
|
+
// groupId: String(gradingData.studentId),
|
|
177
|
+
// gradingTypeId: gradingData.gradingType?.id || 'Grading ID',
|
|
178
|
+
// academicPeriod: gradingData.gradingType?.academicPeriod?.name || 'Period',
|
|
176
179
|
// reportedAt: DateUtil.formatTz(gradingData.reportedAt, { pattern: 'yyyy-MM-dd' }),
|
|
177
180
|
// scoreCount: scoresList.length,
|
|
178
181
|
// scoreSummary: JSON.stringify(scoreSummary),
|
|
@@ -181,7 +184,9 @@ const sendScoreNotification = Action.define({
|
|
|
181
184
|
overrides: {
|
|
182
185
|
fcm: {
|
|
183
186
|
data: {
|
|
184
|
-
userId: String(
|
|
187
|
+
userId: String(parentUserId),
|
|
188
|
+
studentId: String(gradingData.student.id),
|
|
189
|
+
gradingTypeId: String(gradingData.gradingType?.id),
|
|
185
190
|
moduleType: "score-published-parent",
|
|
186
191
|
moduleId: String(input?.gradingId),
|
|
187
192
|
url: `${config?.appFluffyUrl}/rapor/grading-${input?.gradingId}`
|
|
@@ -193,10 +198,12 @@ const sendScoreNotification = Action.define({
|
|
|
193
198
|
await stream?.actions.data.createOne.execute({
|
|
194
199
|
model: "neu:data:notification",
|
|
195
200
|
data: {
|
|
196
|
-
userId:
|
|
201
|
+
userId: parentUserId,
|
|
197
202
|
moduleType: "score-published-parent",
|
|
198
203
|
moduleId: input?.gradingId,
|
|
199
204
|
messageData: {
|
|
205
|
+
studentId: gradingData.student.id,
|
|
206
|
+
gradingTypeId: gradingData.gradingType?.id,
|
|
200
207
|
id: input?.gradingId,
|
|
201
208
|
message: `Hai, ada penilaian baru untuk ${gradingData.student?.user?.name} dengan penilaian ${gradingData.gradingType?.name}! Yuk, lihat perkembangannya di Rekam Belajar.`
|
|
202
209
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/pendidikan-operation",
|
|
3
|
-
"version": "1.29.
|
|
3
|
+
"version": "1.29.3",
|
|
4
4
|
"description": "Operation package of Neutron Pendidikan.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"contributors": [
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"build":
|
|
89
|
+
"build": 159
|
|
90
90
|
}
|