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

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,16 @@ 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
+ url: `${config?.appFluffyUrl}/jadwal/consultation/${input?.classConsultationId}`
92
+ }
93
+ }
84
94
  }
85
95
  })
86
96
  });
@@ -79,6 +79,16 @@ 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
+ url: `${config?.appFluffyUrl}/jadwal/consultation/${input?.classConsultationId}`
90
+ }
91
+ }
82
92
  }
83
93
  })
84
94
  });
@@ -118,6 +118,16 @@ 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
+ url: `${config?.appFluffyUrl}/rapor/grading-${input?.gradingId}`
129
+ }
130
+ }
121
131
  }
122
132
  })
123
133
  });
@@ -169,6 +179,16 @@ const sendScoreNotification = operation.Action.define({
169
179
  // scoreCount: scoresList.length,
170
180
  // scoreSummary: JSON.stringify(scoreSummary),
171
181
  // url: scoreUrl,
182
+ },
183
+ overrides: {
184
+ fcm: {
185
+ data: {
186
+ userId: gradingData.student.userId,
187
+ moduleType: "score-published-parent",
188
+ moduleId: input?.gradingId,
189
+ url: `${config?.appFluffyUrl}/rapor/grading-${input?.gradingId}`
190
+ }
191
+ }
172
192
  }
173
193
  })
174
194
  });
@@ -116,6 +116,16 @@ 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
+ url: `${config?.appFluffyUrl}/rapor/grading-${input?.gradingId}`
127
+ }
128
+ }
119
129
  }
120
130
  })
121
131
  });
@@ -167,6 +177,16 @@ const sendScoreNotification = Action.define({
167
177
  // scoreCount: scoresList.length,
168
178
  // scoreSummary: JSON.stringify(scoreSummary),
169
179
  // url: scoreUrl,
180
+ },
181
+ overrides: {
182
+ fcm: {
183
+ data: {
184
+ userId: gradingData.student.userId,
185
+ moduleType: "score-published-parent",
186
+ moduleId: input?.gradingId,
187
+ url: `${config?.appFluffyUrl}/rapor/grading-${input?.gradingId}`
188
+ }
189
+ }
170
190
  }
171
191
  })
172
192
  });
@@ -102,6 +102,16 @@ 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 || identifier.userId,
110
+ moduleType: "question-answered",
111
+ moduleId: input.questionId,
112
+ url: `${config?.appFluffyUrl}/tanya/${input.questionId}`
113
+ }
114
+ }
105
115
  }
106
116
  })
107
117
  });
@@ -100,6 +100,16 @@ 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 || identifier.userId,
108
+ moduleType: "question-answered",
109
+ moduleId: input.questionId,
110
+ url: `${config?.appFluffyUrl}/tanya/${input.questionId}`
111
+ }
112
+ }
103
113
  }
104
114
  })
105
115
  });
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.23",
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": 148
90
90
  }