@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.
@@ -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 createFsClientWeb: ({ db, httpsCallable, logEvent }: FsClientParam
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, createFsClientWeb 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, createFsClientWeb 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.web.js CHANGED
@@ -1604,6 +1604,7 @@ var ActivityPageType = /* @__PURE__ */ ((ActivityPageType2) => {
1604
1604
  ActivityPageType2["MULTIPLE_CHOICE"] = "MULTIPLE_CHOICE";
1605
1605
  ActivityPageType2["MEDIA_PAGE"] = "MEDIA_PAGE";
1606
1606
  ActivityPageType2["SHORT_ANSWER"] = "SHORT_ANSWER";
1607
+ ActivityPageType2["CONVERSATION"] = "CONVERSATION";
1607
1608
  return ActivityPageType2;
1608
1609
  })(ActivityPageType || {});
1609
1610
  var RESPOND_PAGE_ACTIVITY_TYPES = [
@@ -1951,6 +1952,10 @@ var checkIsShortAnswerPage = (cardType) => {
1951
1952
  if (cardType === void 0) return false;
1952
1953
  return cardType === "SHORT_ANSWER" /* SHORT_ANSWER */;
1953
1954
  };
1955
+ var checkIsConversationPage = (cardType) => {
1956
+ if (cardType === void 0) return false;
1957
+ return cardType === "CONVERSATION" /* CONVERSATION */;
1958
+ };
1954
1959
  var checkTypePageActivity = (cardType) => {
1955
1960
  const isRespondAudio = checkIsRespondAudioPage(cardType);
1956
1961
  const isRespondWritten = checkIsRespondWrittenPage(cardType);
@@ -1959,7 +1964,8 @@ var checkTypePageActivity = (cardType) => {
1959
1964
  const isRepeat = checkIsRepeatPage(cardType);
1960
1965
  const isMediaPage = checkIsMediaPage(cardType);
1961
1966
  const isShortAnswer = checkIsShortAnswerPage(cardType);
1962
- const isNoOneOfThem = !isRespond && !isMC && !isRepeat && !isMediaPage && !isShortAnswer;
1967
+ const isConversation = checkIsConversationPage(cardType);
1968
+ const isNoOneOfThem = !isRespond && !isMC && !isRepeat && !isMediaPage && !isShortAnswer && !isConversation;
1963
1969
  if (isNoOneOfThem) {
1964
1970
  return {
1965
1971
  isRespondAudio: false,
@@ -1969,7 +1975,8 @@ var checkTypePageActivity = (cardType) => {
1969
1975
  isRepeat: true,
1970
1976
  isMediaPage: false,
1971
1977
  isShortAnswer: false,
1972
- hasSomeType: false
1978
+ hasSomeType: false,
1979
+ isConversation: false
1973
1980
  };
1974
1981
  }
1975
1982
  return {
@@ -1980,7 +1987,8 @@ var checkTypePageActivity = (cardType) => {
1980
1987
  isRepeat,
1981
1988
  isMediaPage,
1982
1989
  isShortAnswer,
1983
- hasSomeType: true
1990
+ hasSomeType: true,
1991
+ isConversation
1984
1992
  };
1985
1993
  };
1986
1994
 
@@ -3783,6 +3791,7 @@ export {
3783
3791
  VerificationCardStatus,
3784
3792
  assignmentQueryKeys,
3785
3793
  cardsQueryKeys,
3794
+ checkIsConversationPage,
3786
3795
  checkIsMCPage,
3787
3796
  checkIsMediaPage,
3788
3797
  checkIsRepeatPage,