@speakableio/core 0.1.6 → 0.1.8
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/dist/index.js +16 -12
- package/dist/index.mjs +16 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -58,9 +58,11 @@ var FirebaseAPI = class _FirebaseAPI {
|
|
|
58
58
|
if (!this.config) throw new Error("Firebase API not initialized");
|
|
59
59
|
return this.config.functions;
|
|
60
60
|
}
|
|
61
|
-
httpsCallable(
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
get httpsCallable() {
|
|
62
|
+
return this.config.httpsCallable;
|
|
63
|
+
}
|
|
64
|
+
customHttpsCallable(functionName) {
|
|
65
|
+
return this.httpsCallable(this.functions, functionName);
|
|
64
66
|
}
|
|
65
67
|
accessQueryConstraints() {
|
|
66
68
|
const { query, orderBy, limit, startAt, startAfter, endAt, endBefore } = this.helpers;
|
|
@@ -745,15 +747,17 @@ var WEB_BASE_URL = "https://app.speakable.io";
|
|
|
745
747
|
|
|
746
748
|
// src/lib/firebase/firebase-functions.ts
|
|
747
749
|
var SpeakableFirebaseFunctions = {
|
|
748
|
-
updateAssignmentGradebookStatus: api.
|
|
749
|
-
onSetOpened: api.
|
|
750
|
-
updateAlgoliaIndex: api.
|
|
751
|
-
submitAssignmentToGoogleClassroomV2: api.
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
750
|
+
updateAssignmentGradebookStatus: api.customHttpsCallable("updateAssignmentGradebookStatus"),
|
|
751
|
+
onSetOpened: api.customHttpsCallable("onSetOpened"),
|
|
752
|
+
updateAlgoliaIndex: api.customHttpsCallable("updateAlgoliaIndex"),
|
|
753
|
+
submitAssignmentToGoogleClassroomV2: api.customHttpsCallable(
|
|
754
|
+
"submitAssignmentToGoogleClassroomV2"
|
|
755
|
+
),
|
|
756
|
+
submitLTIAssignmentScore: api.customHttpsCallable("submitLTIAssignmentScore"),
|
|
757
|
+
submitAssignmentV2: api.customHttpsCallable("submitLTIAssignmentScoreV2"),
|
|
758
|
+
submitAssessment: api.customHttpsCallable("submitAssessment"),
|
|
759
|
+
sendAssessmentScoredEmail: api.customHttpsCallable("sendAssessmentScoredEmail"),
|
|
760
|
+
createNotification: api.customHttpsCallable("createNotificationV2")
|
|
757
761
|
};
|
|
758
762
|
|
|
759
763
|
// src/domains/notification/services/send-notification.service.ts
|
package/dist/index.mjs
CHANGED
|
@@ -58,9 +58,11 @@ var FirebaseAPI = class _FirebaseAPI {
|
|
|
58
58
|
if (!this.config) throw new Error("Firebase API not initialized");
|
|
59
59
|
return this.config.functions;
|
|
60
60
|
}
|
|
61
|
-
httpsCallable(
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
get httpsCallable() {
|
|
62
|
+
return this.config.httpsCallable;
|
|
63
|
+
}
|
|
64
|
+
customHttpsCallable(functionName) {
|
|
65
|
+
return this.httpsCallable(this.functions, functionName);
|
|
64
66
|
}
|
|
65
67
|
accessQueryConstraints() {
|
|
66
68
|
const { query, orderBy, limit, startAt, startAfter, endAt, endBefore } = this.helpers;
|
|
@@ -745,15 +747,17 @@ var WEB_BASE_URL = "https://app.speakable.io";
|
|
|
745
747
|
|
|
746
748
|
// src/lib/firebase/firebase-functions.ts
|
|
747
749
|
var SpeakableFirebaseFunctions = {
|
|
748
|
-
updateAssignmentGradebookStatus: api.
|
|
749
|
-
onSetOpened: api.
|
|
750
|
-
updateAlgoliaIndex: api.
|
|
751
|
-
submitAssignmentToGoogleClassroomV2: api.
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
750
|
+
updateAssignmentGradebookStatus: api.customHttpsCallable("updateAssignmentGradebookStatus"),
|
|
751
|
+
onSetOpened: api.customHttpsCallable("onSetOpened"),
|
|
752
|
+
updateAlgoliaIndex: api.customHttpsCallable("updateAlgoliaIndex"),
|
|
753
|
+
submitAssignmentToGoogleClassroomV2: api.customHttpsCallable(
|
|
754
|
+
"submitAssignmentToGoogleClassroomV2"
|
|
755
|
+
),
|
|
756
|
+
submitLTIAssignmentScore: api.customHttpsCallable("submitLTIAssignmentScore"),
|
|
757
|
+
submitAssignmentV2: api.customHttpsCallable("submitLTIAssignmentScoreV2"),
|
|
758
|
+
submitAssessment: api.customHttpsCallable("submitAssessment"),
|
|
759
|
+
sendAssessmentScoredEmail: api.customHttpsCallable("sendAssessmentScoredEmail"),
|
|
760
|
+
createNotification: api.customHttpsCallable("createNotificationV2")
|
|
757
761
|
};
|
|
758
762
|
|
|
759
763
|
// src/domains/notification/services/send-notification.service.ts
|