@speakableio/core 0.1.6 → 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 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(functionName) {
61
+ get httpsCallable() {
62
62
  if (!this.config) throw new Error("Firebase API httpsCallable not initialized");
63
- return this.config.httpsCallable(this.functions, functionName);
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.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")
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(functionName) {
61
+ get httpsCallable() {
62
62
  if (!this.config) throw new Error("Firebase API httpsCallable not initialized");
63
- return this.config.httpsCallable(this.functions, functionName);
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.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")
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speakableio/core",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Speakable-io/speakable-core.git"