@neutron.co.id/pendidikan-operation 1.27.22 → 1.27.24
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/build/actions/jadwal/sendClassConsultationNotification/sendClassConsultationNotification.action.cjs +2 -7
- package/build/actions/jadwal/sendClassConsultationNotification/sendClassConsultationNotification.action.mjs +2 -7
- package/build/actions/penilaian/sendScoreNotification/sendScoreNotification.action.cjs +4 -12
- package/build/actions/penilaian/sendScoreNotification/sendScoreNotification.action.mjs +4 -12
- package/build/actions/tanya/action.sendAnswer.cjs +2 -7
- package/build/actions/tanya/action.sendAnswer.mjs +2 -7
- package/package.json +2 -2
|
@@ -85,14 +85,9 @@ const sendClassConsultationNotification = operation.Action.define({
|
|
|
85
85
|
overrides: {
|
|
86
86
|
fcm: {
|
|
87
87
|
data: {
|
|
88
|
-
userId: student.userId,
|
|
88
|
+
userId: String(student.userId),
|
|
89
89
|
moduleType: "classConsultation-created",
|
|
90
|
-
moduleId: input?.classConsultationId,
|
|
91
|
-
messageData: {
|
|
92
|
-
id: consultation.id,
|
|
93
|
-
subject: consultation.subject?.name,
|
|
94
|
-
message: `Hai! Kamu baru saja ditambahkan ke Interaksi pelajaran ${consultation.subject?.name} oleh Pengajar. Yuk, cek sekarang!`
|
|
95
|
-
},
|
|
90
|
+
moduleId: String(input?.classConsultationId),
|
|
96
91
|
url: `${config?.appFluffyUrl}/jadwal/consultation/${input?.classConsultationId}`
|
|
97
92
|
}
|
|
98
93
|
}
|
|
@@ -83,14 +83,9 @@ const sendClassConsultationNotification = Action.define({
|
|
|
83
83
|
overrides: {
|
|
84
84
|
fcm: {
|
|
85
85
|
data: {
|
|
86
|
-
userId: student.userId,
|
|
86
|
+
userId: String(student.userId),
|
|
87
87
|
moduleType: "classConsultation-created",
|
|
88
|
-
moduleId: input?.classConsultationId,
|
|
89
|
-
messageData: {
|
|
90
|
-
id: consultation.id,
|
|
91
|
-
subject: consultation.subject?.name,
|
|
92
|
-
message: `Hai! Kamu baru saja ditambahkan ke Interaksi pelajaran ${consultation.subject?.name} oleh Pengajar. Yuk, cek sekarang!`
|
|
93
|
-
},
|
|
88
|
+
moduleId: String(input?.classConsultationId),
|
|
94
89
|
url: `${config?.appFluffyUrl}/jadwal/consultation/${input?.classConsultationId}`
|
|
95
90
|
}
|
|
96
91
|
}
|
|
@@ -122,13 +122,9 @@ const sendScoreNotification = operation.Action.define({
|
|
|
122
122
|
overrides: {
|
|
123
123
|
fcm: {
|
|
124
124
|
data: {
|
|
125
|
-
userId: gradingData.student.userId,
|
|
125
|
+
userId: String(gradingData.student.userId),
|
|
126
126
|
moduleType: "score-published",
|
|
127
|
-
moduleId: input?.gradingId,
|
|
128
|
-
messageData: {
|
|
129
|
-
id: input?.gradingId,
|
|
130
|
-
message: `Hai! Ada Penilaian baru di Rekam Belajar kamu dengan penilaian ${gradingData.gradingType?.name}. Yuk, cek hasilnya dan lihat progresmu!`
|
|
131
|
-
},
|
|
127
|
+
moduleId: String(input?.gradingId),
|
|
132
128
|
url: `${config?.appFluffyUrl}/rapor/grading-${input?.gradingId}`
|
|
133
129
|
}
|
|
134
130
|
}
|
|
@@ -187,13 +183,9 @@ const sendScoreNotification = operation.Action.define({
|
|
|
187
183
|
overrides: {
|
|
188
184
|
fcm: {
|
|
189
185
|
data: {
|
|
190
|
-
userId: gradingData.student.userId,
|
|
186
|
+
userId: String(gradingData.student.userId),
|
|
191
187
|
moduleType: "score-published-parent",
|
|
192
|
-
moduleId: input?.gradingId,
|
|
193
|
-
messageData: {
|
|
194
|
-
id: input?.gradingId,
|
|
195
|
-
message: `Hai, ada penilaian baru untuk ${gradingData.student?.user?.name} dengan penilaian ${gradingData.gradingType?.name}! Yuk, lihat perkembangannya di Rekam Belajar.`
|
|
196
|
-
},
|
|
188
|
+
moduleId: String(input?.gradingId),
|
|
197
189
|
url: `${config?.appFluffyUrl}/rapor/grading-${input?.gradingId}`
|
|
198
190
|
}
|
|
199
191
|
}
|
|
@@ -120,13 +120,9 @@ const sendScoreNotification = Action.define({
|
|
|
120
120
|
overrides: {
|
|
121
121
|
fcm: {
|
|
122
122
|
data: {
|
|
123
|
-
userId: gradingData.student.userId,
|
|
123
|
+
userId: String(gradingData.student.userId),
|
|
124
124
|
moduleType: "score-published",
|
|
125
|
-
moduleId: input?.gradingId,
|
|
126
|
-
messageData: {
|
|
127
|
-
id: input?.gradingId,
|
|
128
|
-
message: `Hai! Ada Penilaian baru di Rekam Belajar kamu dengan penilaian ${gradingData.gradingType?.name}. Yuk, cek hasilnya dan lihat progresmu!`
|
|
129
|
-
},
|
|
125
|
+
moduleId: String(input?.gradingId),
|
|
130
126
|
url: `${config?.appFluffyUrl}/rapor/grading-${input?.gradingId}`
|
|
131
127
|
}
|
|
132
128
|
}
|
|
@@ -185,13 +181,9 @@ const sendScoreNotification = Action.define({
|
|
|
185
181
|
overrides: {
|
|
186
182
|
fcm: {
|
|
187
183
|
data: {
|
|
188
|
-
userId: gradingData.student.userId,
|
|
184
|
+
userId: String(gradingData.student.userId),
|
|
189
185
|
moduleType: "score-published-parent",
|
|
190
|
-
moduleId: input?.gradingId,
|
|
191
|
-
messageData: {
|
|
192
|
-
id: input?.gradingId,
|
|
193
|
-
message: `Hai, ada penilaian baru untuk ${gradingData.student?.user?.name} dengan penilaian ${gradingData.gradingType?.name}! Yuk, lihat perkembangannya di Rekam Belajar.`
|
|
194
|
-
},
|
|
186
|
+
moduleId: String(input?.gradingId),
|
|
195
187
|
url: `${config?.appFluffyUrl}/rapor/grading-${input?.gradingId}`
|
|
196
188
|
}
|
|
197
189
|
}
|
|
@@ -106,14 +106,9 @@ const sendAnswer = operation.Action.define({
|
|
|
106
106
|
overrides: {
|
|
107
107
|
fcm: {
|
|
108
108
|
data: {
|
|
109
|
-
userId: student.userId,
|
|
109
|
+
userId: String(student.userId || identifier.userId),
|
|
110
110
|
moduleType: "question-answered",
|
|
111
|
-
moduleId: input.questionId,
|
|
112
|
-
messageData: {
|
|
113
|
-
id: input.questionId,
|
|
114
|
-
subject: input.subjectName,
|
|
115
|
-
message: `Pertanyaan ${input.code} anda dengan mata pelajaran ${input.subjectName} telah dijawab oleh Pengajar`
|
|
116
|
-
},
|
|
111
|
+
moduleId: String(input.questionId),
|
|
117
112
|
url: `${config?.appFluffyUrl}/tanya/${input.questionId}`
|
|
118
113
|
}
|
|
119
114
|
}
|
|
@@ -104,14 +104,9 @@ const sendAnswer = Action.define({
|
|
|
104
104
|
overrides: {
|
|
105
105
|
fcm: {
|
|
106
106
|
data: {
|
|
107
|
-
userId: student.userId,
|
|
107
|
+
userId: String(student.userId || identifier.userId),
|
|
108
108
|
moduleType: "question-answered",
|
|
109
|
-
moduleId: input.questionId,
|
|
110
|
-
messageData: {
|
|
111
|
-
id: input.questionId,
|
|
112
|
-
subject: input.subjectName,
|
|
113
|
-
message: `Pertanyaan ${input.code} anda dengan mata pelajaran ${input.subjectName} telah dijawab oleh Pengajar`
|
|
114
|
-
},
|
|
109
|
+
moduleId: String(input.questionId),
|
|
115
110
|
url: `${config?.appFluffyUrl}/tanya/${input.questionId}`
|
|
116
111
|
}
|
|
117
112
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/pendidikan-operation",
|
|
3
|
-
"version": "1.27.
|
|
3
|
+
"version": "1.27.24",
|
|
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": 149
|
|
90
90
|
}
|