@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 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(functionName) {
62
- if (!this.config) throw new Error("Firebase API httpsCallable not initialized");
63
- return this.config.httpsCallable(this.functions, functionName);
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.httpsCallable("updateAssignmentGradebookStatus"),
749
- onSetOpened: api.httpsCallable("onSetOpened"),
750
- updateAlgoliaIndex: api.httpsCallable("updateAlgoliaIndex"),
751
- submitAssignmentToGoogleClassroomV2: api.httpsCallable("submitAssignmentToGoogleClassroomV2"),
752
- submitLTIAssignmentScore: api.httpsCallable("submitLTIAssignmentScore"),
753
- submitAssignmentV2: api.httpsCallable("submitLTIAssignmentScoreV2"),
754
- submitAssessment: api.httpsCallable("submitAssessment"),
755
- sendAssessmentScoredEmail: api.httpsCallable("sendAssessmentScoredEmail"),
756
- createNotification: api.httpsCallable("createNotificationV2")
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(functionName) {
62
- if (!this.config) throw new Error("Firebase API httpsCallable not initialized");
63
- return this.config.httpsCallable(this.functions, functionName);
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.httpsCallable("updateAssignmentGradebookStatus"),
749
- onSetOpened: api.httpsCallable("onSetOpened"),
750
- updateAlgoliaIndex: api.httpsCallable("updateAlgoliaIndex"),
751
- submitAssignmentToGoogleClassroomV2: api.httpsCallable("submitAssignmentToGoogleClassroomV2"),
752
- submitLTIAssignmentScore: api.httpsCallable("submitLTIAssignmentScore"),
753
- submitAssignmentV2: api.httpsCallable("submitLTIAssignmentScoreV2"),
754
- submitAssessment: api.httpsCallable("submitAssessment"),
755
- sendAssessmentScoredEmail: api.httpsCallable("sendAssessmentScoredEmail"),
756
- createNotification: api.httpsCallable("createNotificationV2")
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speakableio/core",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Speakable-io/speakable-core.git"