@speakableio/core 1.0.48 → 1.0.49
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.native.d.mts +5 -2
- package/dist/index.native.d.ts +5 -2
- package/dist/index.native.js +12 -3
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +12 -3
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.d.mts +5 -2
- package/dist/index.web.js +12 -3
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.native.d.mts
CHANGED
|
@@ -173,7 +173,8 @@ declare const enum ActivityPageType {
|
|
|
173
173
|
RESPOND_WRITE = "RESPOND_WRITE",
|
|
174
174
|
MULTIPLE_CHOICE = "MULTIPLE_CHOICE",
|
|
175
175
|
MEDIA_PAGE = "MEDIA_PAGE",
|
|
176
|
-
SHORT_ANSWER = "SHORT_ANSWER"
|
|
176
|
+
SHORT_ANSWER = "SHORT_ANSWER",
|
|
177
|
+
CONVERSATION = "CONVERSATION"
|
|
177
178
|
}
|
|
178
179
|
declare const RESPOND_PAGE_ACTIVITY_TYPES: ActivityPageType[];
|
|
179
180
|
declare const MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES: ActivityPageType[];
|
|
@@ -603,6 +604,7 @@ declare function checkIsRespondWrittenPage(cardType: ActivityPageType | undefine
|
|
|
603
604
|
declare function checkIsRespondAudioPage(cardType: ActivityPageType | undefined): boolean;
|
|
604
605
|
declare const checkIsMediaPage: (cardType: ActivityPageType | undefined) => boolean;
|
|
605
606
|
declare const checkIsShortAnswerPage: (cardType: ActivityPageType | undefined) => boolean;
|
|
607
|
+
declare const checkIsConversationPage: (cardType: ActivityPageType | undefined) => boolean;
|
|
606
608
|
declare const checkTypePageActivity: (cardType: ActivityPageType | undefined) => {
|
|
607
609
|
isRespondAudio: boolean;
|
|
608
610
|
isRespondWritten: boolean;
|
|
@@ -612,6 +614,7 @@ declare const checkTypePageActivity: (cardType: ActivityPageType | undefined) =>
|
|
|
612
614
|
isMediaPage: boolean;
|
|
613
615
|
isShortAnswer: boolean;
|
|
614
616
|
hasSomeType: boolean;
|
|
617
|
+
isConversation: boolean;
|
|
615
618
|
};
|
|
616
619
|
|
|
617
620
|
declare function getPagePrompt(card: PageActivityWithId | undefined): {
|
|
@@ -3412,4 +3415,4 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
|
|
|
3412
3415
|
};
|
|
3413
3416
|
};
|
|
3414
3417
|
|
|
3415
|
-
export { ActivityPageType, type Assignment, type AssignmentAnalyticsType$1 as AssignmentAnalyticsType, type AssignmentWithId, BASE_MULTIPLE_CHOICE_FIELD_VALUES, BASE_REPEAT_FIELD_VALUES, BASE_RESPOND_FIELD_VALUES, type CreditContract, FeedbackTypesCard, FsCtx, type InstitutionSubscription, LENIENCY_OPTIONS, LeniencyCard, MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES, type MediaPageActivity, type Organization, type OrganizationAccess, type PageActivity, type PageActivityWithId, type PageScore, REPEAT_PAGE_ACTIVITY_TYPES, RESPOND_AUDIO_PAGE_ACTIVITY_TYPES, RESPOND_PAGE_ACTIVITY_TYPES, RESPOND_WRITE_PAGE_ACTIVITY_TYPES, type RefsCardsFiresotre, type RefsSetsFirestore, SPEAKABLE_NOTIFICATIONS, STUDENT_LEVELS_OPTIONS, type Score, type ScoreWithId, type Set, type SetWithId, type SpeakableNotificationType, SpeakableNotificationTypes, SpeakableProvider, VerificationCardStatus, assignmentQueryKeys, cardsQueryKeys, checkIsMCPage, checkIsMediaPage, checkIsRepeatPage, checkIsRespondAudioPage, checkIsRespondPage, checkIsRespondWrittenPage, checkIsShortAnswerPage, checkTypePageActivity, cleanString, createAssignmentRepo, createCardRepo, createFsClientNative as createFsClient, createSetRepo, creditQueryKeys, debounce, getCardFromCache, getLabelPage, getPageMediaData, getPagePrompt, getPhraseLength, getRespondCardTool, getSetFromCache, getSingleMediaPageData, getTotalCompletedCards, getTranscript, getTranscriptCycle, getWordHash, purify, refsCardsFiresotre, refsSetsFirestore, scoreQueryKeys, setsQueryKeys, updateCardInCache, updateSetInCache, useActivity, useActivityFeedbackAccess, useAssignment, useBaseOpenAI, useCards, useClearScore, useClearScoreV2, useCreateCard, useCreateCards, useCreateNotification, useGetCard, useOrganizationAccess, useScore, useSet, useSpeakableApi, useSpeakableTranscript, useSpeakableTranscriptCycle, useSubmitAssignmentScore, useSubmitPracticeScore, useUpdateCardScore, useUpdateScore, useUpdateStudentVocab, useUserCredits };
|
|
3418
|
+
export { ActivityPageType, type Assignment, type AssignmentAnalyticsType$1 as AssignmentAnalyticsType, type AssignmentWithId, BASE_MULTIPLE_CHOICE_FIELD_VALUES, BASE_REPEAT_FIELD_VALUES, BASE_RESPOND_FIELD_VALUES, type CreditContract, FeedbackTypesCard, FsCtx, type InstitutionSubscription, LENIENCY_OPTIONS, LeniencyCard, MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES, type MediaPageActivity, type Organization, type OrganizationAccess, type PageActivity, type PageActivityWithId, type PageScore, REPEAT_PAGE_ACTIVITY_TYPES, RESPOND_AUDIO_PAGE_ACTIVITY_TYPES, RESPOND_PAGE_ACTIVITY_TYPES, RESPOND_WRITE_PAGE_ACTIVITY_TYPES, type RefsCardsFiresotre, type RefsSetsFirestore, SPEAKABLE_NOTIFICATIONS, STUDENT_LEVELS_OPTIONS, type Score, type ScoreWithId, type Set, type SetWithId, type SpeakableNotificationType, SpeakableNotificationTypes, SpeakableProvider, VerificationCardStatus, assignmentQueryKeys, cardsQueryKeys, checkIsConversationPage, checkIsMCPage, checkIsMediaPage, checkIsRepeatPage, checkIsRespondAudioPage, checkIsRespondPage, checkIsRespondWrittenPage, checkIsShortAnswerPage, checkTypePageActivity, cleanString, createAssignmentRepo, createCardRepo, createFsClientNative as createFsClient, createSetRepo, creditQueryKeys, debounce, getCardFromCache, getLabelPage, getPageMediaData, getPagePrompt, getPhraseLength, getRespondCardTool, getSetFromCache, getSingleMediaPageData, getTotalCompletedCards, getTranscript, getTranscriptCycle, getWordHash, purify, refsCardsFiresotre, refsSetsFirestore, scoreQueryKeys, setsQueryKeys, updateCardInCache, updateSetInCache, useActivity, useActivityFeedbackAccess, useAssignment, useBaseOpenAI, useCards, useClearScore, useClearScoreV2, useCreateCard, useCreateCards, useCreateNotification, useGetCard, useOrganizationAccess, useScore, useSet, useSpeakableApi, useSpeakableTranscript, useSpeakableTranscriptCycle, useSubmitAssignmentScore, useSubmitPracticeScore, useUpdateCardScore, useUpdateScore, useUpdateStudentVocab, useUserCredits };
|
package/dist/index.native.d.ts
CHANGED
|
@@ -173,7 +173,8 @@ declare const enum ActivityPageType {
|
|
|
173
173
|
RESPOND_WRITE = "RESPOND_WRITE",
|
|
174
174
|
MULTIPLE_CHOICE = "MULTIPLE_CHOICE",
|
|
175
175
|
MEDIA_PAGE = "MEDIA_PAGE",
|
|
176
|
-
SHORT_ANSWER = "SHORT_ANSWER"
|
|
176
|
+
SHORT_ANSWER = "SHORT_ANSWER",
|
|
177
|
+
CONVERSATION = "CONVERSATION"
|
|
177
178
|
}
|
|
178
179
|
declare const RESPOND_PAGE_ACTIVITY_TYPES: ActivityPageType[];
|
|
179
180
|
declare const MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES: ActivityPageType[];
|
|
@@ -603,6 +604,7 @@ declare function checkIsRespondWrittenPage(cardType: ActivityPageType | undefine
|
|
|
603
604
|
declare function checkIsRespondAudioPage(cardType: ActivityPageType | undefined): boolean;
|
|
604
605
|
declare const checkIsMediaPage: (cardType: ActivityPageType | undefined) => boolean;
|
|
605
606
|
declare const checkIsShortAnswerPage: (cardType: ActivityPageType | undefined) => boolean;
|
|
607
|
+
declare const checkIsConversationPage: (cardType: ActivityPageType | undefined) => boolean;
|
|
606
608
|
declare const checkTypePageActivity: (cardType: ActivityPageType | undefined) => {
|
|
607
609
|
isRespondAudio: boolean;
|
|
608
610
|
isRespondWritten: boolean;
|
|
@@ -612,6 +614,7 @@ declare const checkTypePageActivity: (cardType: ActivityPageType | undefined) =>
|
|
|
612
614
|
isMediaPage: boolean;
|
|
613
615
|
isShortAnswer: boolean;
|
|
614
616
|
hasSomeType: boolean;
|
|
617
|
+
isConversation: boolean;
|
|
615
618
|
};
|
|
616
619
|
|
|
617
620
|
declare function getPagePrompt(card: PageActivityWithId | undefined): {
|
|
@@ -3412,4 +3415,4 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
|
|
|
3412
3415
|
};
|
|
3413
3416
|
};
|
|
3414
3417
|
|
|
3415
|
-
export { ActivityPageType, type Assignment, type AssignmentAnalyticsType$1 as AssignmentAnalyticsType, type AssignmentWithId, BASE_MULTIPLE_CHOICE_FIELD_VALUES, BASE_REPEAT_FIELD_VALUES, BASE_RESPOND_FIELD_VALUES, type CreditContract, FeedbackTypesCard, FsCtx, type InstitutionSubscription, LENIENCY_OPTIONS, LeniencyCard, MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES, type MediaPageActivity, type Organization, type OrganizationAccess, type PageActivity, type PageActivityWithId, type PageScore, REPEAT_PAGE_ACTIVITY_TYPES, RESPOND_AUDIO_PAGE_ACTIVITY_TYPES, RESPOND_PAGE_ACTIVITY_TYPES, RESPOND_WRITE_PAGE_ACTIVITY_TYPES, type RefsCardsFiresotre, type RefsSetsFirestore, SPEAKABLE_NOTIFICATIONS, STUDENT_LEVELS_OPTIONS, type Score, type ScoreWithId, type Set, type SetWithId, type SpeakableNotificationType, SpeakableNotificationTypes, SpeakableProvider, VerificationCardStatus, assignmentQueryKeys, cardsQueryKeys, checkIsMCPage, checkIsMediaPage, checkIsRepeatPage, checkIsRespondAudioPage, checkIsRespondPage, checkIsRespondWrittenPage, checkIsShortAnswerPage, checkTypePageActivity, cleanString, createAssignmentRepo, createCardRepo, createFsClientNative as createFsClient, createSetRepo, creditQueryKeys, debounce, getCardFromCache, getLabelPage, getPageMediaData, getPagePrompt, getPhraseLength, getRespondCardTool, getSetFromCache, getSingleMediaPageData, getTotalCompletedCards, getTranscript, getTranscriptCycle, getWordHash, purify, refsCardsFiresotre, refsSetsFirestore, scoreQueryKeys, setsQueryKeys, updateCardInCache, updateSetInCache, useActivity, useActivityFeedbackAccess, useAssignment, useBaseOpenAI, useCards, useClearScore, useClearScoreV2, useCreateCard, useCreateCards, useCreateNotification, useGetCard, useOrganizationAccess, useScore, useSet, useSpeakableApi, useSpeakableTranscript, useSpeakableTranscriptCycle, useSubmitAssignmentScore, useSubmitPracticeScore, useUpdateCardScore, useUpdateScore, useUpdateStudentVocab, useUserCredits };
|
|
3418
|
+
export { ActivityPageType, type Assignment, type AssignmentAnalyticsType$1 as AssignmentAnalyticsType, type AssignmentWithId, BASE_MULTIPLE_CHOICE_FIELD_VALUES, BASE_REPEAT_FIELD_VALUES, BASE_RESPOND_FIELD_VALUES, type CreditContract, FeedbackTypesCard, FsCtx, type InstitutionSubscription, LENIENCY_OPTIONS, LeniencyCard, MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES, type MediaPageActivity, type Organization, type OrganizationAccess, type PageActivity, type PageActivityWithId, type PageScore, REPEAT_PAGE_ACTIVITY_TYPES, RESPOND_AUDIO_PAGE_ACTIVITY_TYPES, RESPOND_PAGE_ACTIVITY_TYPES, RESPOND_WRITE_PAGE_ACTIVITY_TYPES, type RefsCardsFiresotre, type RefsSetsFirestore, SPEAKABLE_NOTIFICATIONS, STUDENT_LEVELS_OPTIONS, type Score, type ScoreWithId, type Set, type SetWithId, type SpeakableNotificationType, SpeakableNotificationTypes, SpeakableProvider, VerificationCardStatus, assignmentQueryKeys, cardsQueryKeys, checkIsConversationPage, checkIsMCPage, checkIsMediaPage, checkIsRepeatPage, checkIsRespondAudioPage, checkIsRespondPage, checkIsRespondWrittenPage, checkIsShortAnswerPage, checkTypePageActivity, cleanString, createAssignmentRepo, createCardRepo, createFsClientNative as createFsClient, createSetRepo, creditQueryKeys, debounce, getCardFromCache, getLabelPage, getPageMediaData, getPagePrompt, getPhraseLength, getRespondCardTool, getSetFromCache, getSingleMediaPageData, getTotalCompletedCards, getTranscript, getTranscriptCycle, getWordHash, purify, refsCardsFiresotre, refsSetsFirestore, scoreQueryKeys, setsQueryKeys, updateCardInCache, updateSetInCache, useActivity, useActivityFeedbackAccess, useAssignment, useBaseOpenAI, useCards, useClearScore, useClearScoreV2, useCreateCard, useCreateCards, useCreateNotification, useGetCard, useOrganizationAccess, useScore, useSet, useSpeakableApi, useSpeakableTranscript, useSpeakableTranscriptCycle, useSubmitAssignmentScore, useSubmitPracticeScore, useUpdateCardScore, useUpdateScore, useUpdateStudentVocab, useUserCredits };
|
package/dist/index.native.js
CHANGED
|
@@ -50,6 +50,7 @@ __export(index_native_exports, {
|
|
|
50
50
|
VerificationCardStatus: () => VerificationCardStatus,
|
|
51
51
|
assignmentQueryKeys: () => assignmentQueryKeys,
|
|
52
52
|
cardsQueryKeys: () => cardsQueryKeys,
|
|
53
|
+
checkIsConversationPage: () => checkIsConversationPage,
|
|
53
54
|
checkIsMCPage: () => checkIsMCPage,
|
|
54
55
|
checkIsMediaPage: () => checkIsMediaPage,
|
|
55
56
|
checkIsRepeatPage: () => checkIsRepeatPage,
|
|
@@ -1716,6 +1717,7 @@ var ActivityPageType = /* @__PURE__ */ ((ActivityPageType2) => {
|
|
|
1716
1717
|
ActivityPageType2["MULTIPLE_CHOICE"] = "MULTIPLE_CHOICE";
|
|
1717
1718
|
ActivityPageType2["MEDIA_PAGE"] = "MEDIA_PAGE";
|
|
1718
1719
|
ActivityPageType2["SHORT_ANSWER"] = "SHORT_ANSWER";
|
|
1720
|
+
ActivityPageType2["CONVERSATION"] = "CONVERSATION";
|
|
1719
1721
|
return ActivityPageType2;
|
|
1720
1722
|
})(ActivityPageType || {});
|
|
1721
1723
|
var RESPOND_PAGE_ACTIVITY_TYPES = [
|
|
@@ -2063,6 +2065,10 @@ var checkIsShortAnswerPage = (cardType) => {
|
|
|
2063
2065
|
if (cardType === void 0) return false;
|
|
2064
2066
|
return cardType === "SHORT_ANSWER" /* SHORT_ANSWER */;
|
|
2065
2067
|
};
|
|
2068
|
+
var checkIsConversationPage = (cardType) => {
|
|
2069
|
+
if (cardType === void 0) return false;
|
|
2070
|
+
return cardType === "CONVERSATION" /* CONVERSATION */;
|
|
2071
|
+
};
|
|
2066
2072
|
var checkTypePageActivity = (cardType) => {
|
|
2067
2073
|
const isRespondAudio = checkIsRespondAudioPage(cardType);
|
|
2068
2074
|
const isRespondWritten = checkIsRespondWrittenPage(cardType);
|
|
@@ -2071,7 +2077,8 @@ var checkTypePageActivity = (cardType) => {
|
|
|
2071
2077
|
const isRepeat = checkIsRepeatPage(cardType);
|
|
2072
2078
|
const isMediaPage = checkIsMediaPage(cardType);
|
|
2073
2079
|
const isShortAnswer = checkIsShortAnswerPage(cardType);
|
|
2074
|
-
const
|
|
2080
|
+
const isConversation = checkIsConversationPage(cardType);
|
|
2081
|
+
const isNoOneOfThem = !isRespond && !isMC && !isRepeat && !isMediaPage && !isShortAnswer && !isConversation;
|
|
2075
2082
|
if (isNoOneOfThem) {
|
|
2076
2083
|
return {
|
|
2077
2084
|
isRespondAudio: false,
|
|
@@ -2081,7 +2088,8 @@ var checkTypePageActivity = (cardType) => {
|
|
|
2081
2088
|
isRepeat: true,
|
|
2082
2089
|
isMediaPage: false,
|
|
2083
2090
|
isShortAnswer: false,
|
|
2084
|
-
hasSomeType: false
|
|
2091
|
+
hasSomeType: false,
|
|
2092
|
+
isConversation: false
|
|
2085
2093
|
};
|
|
2086
2094
|
}
|
|
2087
2095
|
return {
|
|
@@ -2092,7 +2100,8 @@ var checkTypePageActivity = (cardType) => {
|
|
|
2092
2100
|
isRepeat,
|
|
2093
2101
|
isMediaPage,
|
|
2094
2102
|
isShortAnswer,
|
|
2095
|
-
hasSomeType: true
|
|
2103
|
+
hasSomeType: true,
|
|
2104
|
+
isConversation
|
|
2096
2105
|
};
|
|
2097
2106
|
};
|
|
2098
2107
|
|