@neutron.co.id/pendidikan-operation 1.27.21 → 1.27.22

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.
@@ -81,6 +81,21 @@ const sendClassConsultationNotification = operation.Action.define({
81
81
  // endTime: DateUtil.formatTz(consultation.endedAt, { pattern: 'HH:mm' }),
82
82
  // branch: consultation.branch?.name || 'Branch',
83
83
  // url: consultationUrl,
84
+ },
85
+ overrides: {
86
+ fcm: {
87
+ data: {
88
+ userId: student.userId,
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
+ },
96
+ url: `${config?.appFluffyUrl}/jadwal/consultation/${input?.classConsultationId}`
97
+ }
98
+ }
84
99
  }
85
100
  })
86
101
  });
@@ -79,6 +79,21 @@ const sendClassConsultationNotification = Action.define({
79
79
  // endTime: DateUtil.formatTz(consultation.endedAt, { pattern: 'HH:mm' }),
80
80
  // branch: consultation.branch?.name || 'Branch',
81
81
  // url: consultationUrl,
82
+ },
83
+ overrides: {
84
+ fcm: {
85
+ data: {
86
+ userId: student.userId,
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
+ },
94
+ url: `${config?.appFluffyUrl}/jadwal/consultation/${input?.classConsultationId}`
95
+ }
96
+ }
82
97
  }
83
98
  })
84
99
  });
@@ -118,6 +118,20 @@ const sendScoreNotification = operation.Action.define({
118
118
  // scoreCount: scoresList.length,
119
119
  // scoreSummary: JSON.stringify(scoreSummary),
120
120
  // url: scoreUrl,
121
+ },
122
+ overrides: {
123
+ fcm: {
124
+ data: {
125
+ userId: gradingData.student.userId,
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
+ },
132
+ url: `${config?.appFluffyUrl}/rapor/grading-${input?.gradingId}`
133
+ }
134
+ }
121
135
  }
122
136
  })
123
137
  });
@@ -169,6 +183,20 @@ const sendScoreNotification = operation.Action.define({
169
183
  // scoreCount: scoresList.length,
170
184
  // scoreSummary: JSON.stringify(scoreSummary),
171
185
  // url: scoreUrl,
186
+ },
187
+ overrides: {
188
+ fcm: {
189
+ data: {
190
+ userId: gradingData.student.userId,
191
+ 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
+ },
197
+ url: `${config?.appFluffyUrl}/rapor/grading-${input?.gradingId}`
198
+ }
199
+ }
172
200
  }
173
201
  })
174
202
  });
@@ -116,6 +116,20 @@ const sendScoreNotification = Action.define({
116
116
  // scoreCount: scoresList.length,
117
117
  // scoreSummary: JSON.stringify(scoreSummary),
118
118
  // url: scoreUrl,
119
+ },
120
+ overrides: {
121
+ fcm: {
122
+ data: {
123
+ userId: gradingData.student.userId,
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
+ },
130
+ url: `${config?.appFluffyUrl}/rapor/grading-${input?.gradingId}`
131
+ }
132
+ }
119
133
  }
120
134
  })
121
135
  });
@@ -167,6 +181,20 @@ const sendScoreNotification = Action.define({
167
181
  // scoreCount: scoresList.length,
168
182
  // scoreSummary: JSON.stringify(scoreSummary),
169
183
  // url: scoreUrl,
184
+ },
185
+ overrides: {
186
+ fcm: {
187
+ data: {
188
+ userId: gradingData.student.userId,
189
+ 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
+ },
195
+ url: `${config?.appFluffyUrl}/rapor/grading-${input?.gradingId}`
196
+ }
197
+ }
170
198
  }
171
199
  })
172
200
  });
@@ -102,6 +102,21 @@ const sendAnswer = operation.Action.define({
102
102
  subject: input.subjectName,
103
103
  date: utils.DateUtil.formatTz(input.askedAt, { pattern: "yyyy-MM-dd HH:mm" }),
104
104
  url: `${config?.appFluffyUrl}/tanya/${input.questionId}`
105
+ },
106
+ overrides: {
107
+ fcm: {
108
+ data: {
109
+ userId: student.userId,
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
+ },
117
+ url: `${config?.appFluffyUrl}/tanya/${input.questionId}`
118
+ }
119
+ }
105
120
  }
106
121
  })
107
122
  });
@@ -100,6 +100,21 @@ const sendAnswer = Action.define({
100
100
  subject: input.subjectName,
101
101
  date: DateUtil.formatTz(input.askedAt, { pattern: "yyyy-MM-dd HH:mm" }),
102
102
  url: `${config?.appFluffyUrl}/tanya/${input.questionId}`
103
+ },
104
+ overrides: {
105
+ fcm: {
106
+ data: {
107
+ userId: student.userId,
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
+ },
115
+ url: `${config?.appFluffyUrl}/tanya/${input.questionId}`
116
+ }
117
+ }
103
118
  }
104
119
  })
105
120
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neutron.co.id/pendidikan-operation",
3
- "version": "1.27.21",
3
+ "version": "1.27.22",
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": 146
89
+ "build": 147
90
90
  }