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