@speakableio/core 0.1.61 → 0.1.62

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.
@@ -478,10 +478,10 @@ declare const refsCardsFiresotre: {
478
478
  card: (id: string) => `flashcards/${string}`;
479
479
  };
480
480
 
481
- interface CardActivityWithId extends CardActivity {
481
+ interface PageActivityWithId extends PageActivity {
482
482
  id: string;
483
483
  }
484
- interface CardActivity {
484
+ interface PageActivity {
485
485
  owners: string[];
486
486
  checked?: boolean;
487
487
  completed?: boolean;
@@ -504,7 +504,7 @@ interface CardActivity {
504
504
  difficulty?: string;
505
505
  default_language?: string;
506
506
  target_text?: string;
507
- type: CardActivityType;
507
+ type: ActivityPageType;
508
508
  grading_criteria?: string;
509
509
  scoring_type?: string;
510
510
  grading_method?: 'simple' | 'rubric' | 'manual' | 'standards_based';
@@ -542,7 +542,7 @@ interface CardActivity {
542
542
  target_proficiency_level?: string;
543
543
  allowTTS?: boolean;
544
544
  }
545
- declare const enum CardActivityType {
545
+ declare const enum ActivityPageType {
546
546
  READ_REPEAT = "READ_REPEAT",
547
547
  VIDEO = "VIDEO",
548
548
  TEXT = "TEXT",
@@ -567,12 +567,11 @@ declare const enum CardActivityType {
567
567
  READ = "READ",
568
568
  ANSWER = "ANSWER"
569
569
  }
570
- declare const RESPOND_CARD_ACTIVITY_TYPES: CardActivityType[];
571
- declare const MULTIPLE_CHOICE_CARD_ACTIVITY_TYPES: CardActivityType[];
572
- declare const REPEAT_CARD_ACTIVITY_TYPES: CardActivityType[];
573
- declare const RESPOND_WRITE_CARD_ACTIVITY_TYPES: CardActivityType[];
574
- declare const RESPOND_AUDIO_CARD_ACTIVITY_TYPES: CardActivityType[];
575
- declare const ALLOWED_CARD_ACTIVITY_TYPES_FOR_SUMMARY: CardActivityType[];
570
+ declare const RESPOND_PAGE_ACTIVITY_TYPES: ActivityPageType[];
571
+ declare const MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES: ActivityPageType[];
572
+ declare const REPEAT_PAGE_ACTIVITY_TYPES: ActivityPageType[];
573
+ declare const RESPOND_WRITE_PAGE_ACTIVITY_TYPES: ActivityPageType[];
574
+ declare const RESPOND_AUDIO_PAGE_ACTIVITY_TYPES: ActivityPageType[];
576
575
 
577
576
  declare const cardsQueryKeys: {
578
577
  all: string[];
@@ -585,15 +584,15 @@ declare function useCards({ cardIds, enabled, asObject, }: {
585
584
  enabled: boolean;
586
585
  asObject?: boolean;
587
586
  }): {
588
- cards: CardActivityWithId[];
589
- cardsObject: Record<string, CardActivityWithId> | null;
590
- cardsQueries: _tanstack_react_query.UseQueryResult<CardActivityWithId | null, Error>[];
587
+ cards: PageActivityWithId[];
588
+ cardsObject: Record<string, PageActivityWithId> | null;
589
+ cardsQueries: _tanstack_react_query.UseQueryResult<PageActivityWithId | null, Error>[];
591
590
  };
592
591
  declare function useCreateCard(): {
593
592
  mutationCreateCard: _tanstack_react_query.UseMutationResult<{
594
593
  id: string;
595
- } & Partial<CardActivity>, Error, {
596
- data: Partial<CardActivity>;
594
+ } & Partial<PageActivity>, Error, {
595
+ data: Partial<PageActivity>;
597
596
  }, unknown>;
598
597
  };
599
598
  declare function useCreateCards(): {
@@ -621,7 +620,7 @@ declare function useCreateCards(): {
621
620
  difficulty?: string;
622
621
  default_language?: string;
623
622
  target_text?: string;
624
- type: CardActivityType;
623
+ type: ActivityPageType;
625
624
  grading_criteria?: string;
626
625
  scoring_type?: string;
627
626
  grading_method?: "simple" | "rubric" | "manual" | "standards_based";
@@ -659,31 +658,31 @@ declare function useCreateCards(): {
659
658
  target_proficiency_level?: string;
660
659
  allowTTS?: boolean;
661
660
  }[], Error, {
662
- cards: CardActivity[];
661
+ cards: PageActivity[];
663
662
  }, unknown>;
664
663
  };
665
664
  declare function getCardFromCache({ cardId, queryClient, }: {
666
665
  cardId: string;
667
666
  queryClient: QueryClient;
668
- }): CardActivityWithId | undefined;
667
+ }): PageActivityWithId | undefined;
669
668
  declare function updateCardInCache({ cardId, card, queryClient, }: {
670
669
  cardId: string;
671
- card: CardActivityWithId | null;
670
+ card: PageActivityWithId | null;
672
671
  queryClient: QueryClient;
673
672
  }): void;
674
673
  declare function useGetCard({ cardId, enabled }: {
675
674
  cardId: string;
676
675
  enabled?: boolean;
677
- }): _tanstack_react_query.UseQueryResult<CardActivityWithId | null, Error>;
676
+ }): _tanstack_react_query.UseQueryResult<PageActivityWithId | null, Error>;
678
677
 
679
678
  declare const createCardRepo: () => {
680
679
  createCard: (args_0: {
681
- data: Partial<CardActivity>;
680
+ data: Partial<PageActivity>;
682
681
  }) => Promise<{
683
682
  id: string;
684
- } & Partial<CardActivity>>;
683
+ } & Partial<PageActivity>>;
685
684
  createCards: (args_0: {
686
- cards: CardActivity[];
685
+ cards: PageActivity[];
687
686
  }) => Promise<{
688
687
  id: string;
689
688
  owners: string[];
@@ -708,7 +707,7 @@ declare const createCardRepo: () => {
708
707
  difficulty?: string;
709
708
  default_language?: string;
710
709
  target_text?: string;
711
- type: CardActivityType;
710
+ type: ActivityPageType;
712
711
  grading_criteria?: string;
713
712
  scoring_type?: string;
714
713
  grading_method?: "simple" | "rubric" | "manual" | "standards_based";
@@ -748,17 +747,17 @@ declare const createCardRepo: () => {
748
747
  }[]>;
749
748
  getCard: (params: {
750
749
  cardId: string;
751
- }) => Promise<CardActivityWithId | null>;
750
+ }) => Promise<PageActivityWithId | null>;
752
751
  };
753
752
 
754
- declare function checkIsRepeatCard(cardType: CardActivityType | undefined): boolean;
755
- declare function checkIsMCCard(cardType: CardActivityType | undefined): boolean;
756
- declare function checkIsRespondCard(cardType: CardActivityType | undefined): boolean;
757
- declare function checkIsRespondWrittenCard(cardType: CardActivityType | undefined): boolean;
758
- declare function checkIsRespondAudioCard(cardType: CardActivityType | undefined): boolean;
759
- declare const checkIsMediaPageCard: (cardType: CardActivityType | undefined) => boolean;
760
- declare const checkIsShortAnswerCard: (cardType: CardActivityType | undefined) => boolean;
761
- declare const checkTypeCardActivity: (cardType: CardActivityType | undefined) => {
753
+ declare function checkIsRepeatPage(cardType: ActivityPageType | undefined): boolean;
754
+ declare function checkIsMCPage(cardType: ActivityPageType | undefined): boolean;
755
+ declare function checkIsRespondPage(cardType: ActivityPageType | undefined): boolean;
756
+ declare function checkIsRespondWrittenPage(cardType: ActivityPageType | undefined): boolean;
757
+ declare function checkIsRespondAudioPage(cardType: ActivityPageType | undefined): boolean;
758
+ declare const checkIsMediaPage: (cardType: ActivityPageType | undefined) => boolean;
759
+ declare const checkIsShortAnswerPage: (cardType: ActivityPageType | undefined) => boolean;
760
+ declare const checkTypePageActivity: (cardType: ActivityPageType | undefined) => {
762
761
  isRespondAudio: boolean;
763
762
  isRespondWritten: boolean;
764
763
  isRespond: boolean;
@@ -791,7 +790,7 @@ interface Set {
791
790
  name: string;
792
791
  content: string[];
793
792
  types: {
794
- [key in CardActivityType]?: number;
793
+ [key in ActivityPageType]?: number;
795
794
  };
796
795
  defaultLanguage: string;
797
796
  createdAt: FieldValue;
@@ -991,12 +990,12 @@ declare function createFsClientBase({ db, helpers, httpsCallable, logEvent, }: {
991
990
  };
992
991
  cardRepo: {
993
992
  createCard: (args_0: {
994
- data: Partial<CardActivity>;
993
+ data: Partial<PageActivity>;
995
994
  }) => Promise<{
996
995
  id: string;
997
- } & Partial<CardActivity>>;
996
+ } & Partial<PageActivity>>;
998
997
  createCards: (args_0: {
999
- cards: CardActivity[];
998
+ cards: PageActivity[];
1000
999
  }) => Promise<{
1001
1000
  id: string;
1002
1001
  owners: string[];
@@ -1021,7 +1020,7 @@ declare function createFsClientBase({ db, helpers, httpsCallable, logEvent, }: {
1021
1020
  difficulty?: string;
1022
1021
  default_language?: string;
1023
1022
  target_text?: string;
1024
- type: CardActivityType;
1023
+ type: ActivityPageType;
1025
1024
  grading_criteria?: string;
1026
1025
  scoring_type?: string;
1027
1026
  grading_method?: "simple" | "rubric" | "manual" | "standards_based";
@@ -1061,7 +1060,7 @@ declare function createFsClientBase({ db, helpers, httpsCallable, logEvent, }: {
1061
1060
  }[]>;
1062
1061
  getCard: (params: {
1063
1062
  cardId: string;
1064
- }) => Promise<CardActivityWithId | null>;
1063
+ }) => Promise<PageActivityWithId | null>;
1065
1064
  };
1066
1065
  };
1067
1066
 
@@ -1232,9 +1231,9 @@ declare function useActivity({ id, isAssignment, onAssignmentSubmitted, ltiData,
1232
1231
  query: _tanstack_react_query.UseQueryResult<SetWithId | null, Error>;
1233
1232
  };
1234
1233
  cards: {
1235
- data: Record<string, CardActivityWithId> | null;
1236
- query: _tanstack_react_query.UseQueryResult<CardActivityWithId | null, Error>[];
1237
- cardsArray: CardActivityWithId[];
1234
+ data: Record<string, PageActivityWithId> | null;
1235
+ query: _tanstack_react_query.UseQueryResult<PageActivityWithId | null, Error>[];
1236
+ cardsArray: PageActivityWithId[];
1238
1237
  };
1239
1238
  assignment: {
1240
1239
  data: AssignmentWithId | {
@@ -2631,12 +2630,12 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
2631
2630
  };
2632
2631
  cardRepo: {
2633
2632
  createCard: (args_0: {
2634
- data: Partial<CardActivity>;
2633
+ data: Partial<PageActivity>;
2635
2634
  }) => Promise<{
2636
2635
  id: string;
2637
- } & Partial<CardActivity>>;
2636
+ } & Partial<PageActivity>>;
2638
2637
  createCards: (args_0: {
2639
- cards: CardActivity[];
2638
+ cards: PageActivity[];
2640
2639
  }) => Promise<{
2641
2640
  id: string;
2642
2641
  owners: string[];
@@ -2661,7 +2660,7 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
2661
2660
  difficulty?: string;
2662
2661
  default_language?: string;
2663
2662
  target_text?: string;
2664
- type: CardActivityType;
2663
+ type: ActivityPageType;
2665
2664
  grading_criteria?: string;
2666
2665
  scoring_type?: string;
2667
2666
  grading_method?: "simple" | "rubric" | "manual" | "standards_based";
@@ -2701,8 +2700,8 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
2701
2700
  }[]>;
2702
2701
  getCard: (params: {
2703
2702
  cardId: string;
2704
- }) => Promise<CardActivityWithId | null>;
2703
+ }) => Promise<PageActivityWithId | null>;
2705
2704
  };
2706
2705
  };
2707
2706
 
2708
- export { ALLOWED_CARD_ACTIVITY_TYPES_FOR_SUMMARY, type Assignment, type AssignmentWithId, BASE_MULTIPLE_CHOICE_FIELD_VALUES, BASE_REPEAT_FIELD_VALUES, BASE_RESPOND_FIELD_VALUES, type CardActivity, CardActivityType, type CardActivityWithId, type CardScore, type CreditContract, FeedbackTypesCard, FsCtx, type InstitutionSubscription, LENIENCY_OPTIONS, LeniencyCard, MULTIPLE_CHOICE_CARD_ACTIVITY_TYPES, type Organization, type OrganizationAccess, REPEAT_CARD_ACTIVITY_TYPES, RESPOND_AUDIO_CARD_ACTIVITY_TYPES, RESPOND_CARD_ACTIVITY_TYPES, RESPOND_WRITE_CARD_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, checkIsMCCard, checkIsMediaPageCard, checkIsRepeatCard, checkIsRespondAudioCard, checkIsRespondCard, checkIsRespondWrittenCard, checkIsShortAnswerCard, checkTypeCardActivity, cleanString, createAssignmentRepo, createCardRepo, createFsClientNative as createFsClient, createSetRepo, creditQueryKeys, debounce, getCardFromCache, getRespondCardTool, getSetFromCache, getWordHash, purify, refsCardsFiresotre, refsSetsFirestore, scoreQueryKeys, setsQueryKeys, updateCardInCache, updateSetInCache, useActivity, useActivityFeedbackAccess, useAssignment, useBaseOpenAI, useCards, useClearScore, useCreateCard, useCreateCards, useCreateNotification, useGetCard, useOrganizationAccess, useScore, useSet, useSpeakableApi, useSubmitAssignmentScore, useSubmitPracticeScore, useUpdateCardScore, useUpdateScore, useUserCredits };
2707
+ export { ActivityPageType, type Assignment, type AssignmentWithId, BASE_MULTIPLE_CHOICE_FIELD_VALUES, BASE_REPEAT_FIELD_VALUES, BASE_RESPOND_FIELD_VALUES, type CardScore, type CreditContract, FeedbackTypesCard, FsCtx, type InstitutionSubscription, LENIENCY_OPTIONS, LeniencyCard, MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES, type Organization, type OrganizationAccess, type PageActivity, type PageActivityWithId, 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, getRespondCardTool, getSetFromCache, getWordHash, purify, refsCardsFiresotre, refsSetsFirestore, scoreQueryKeys, setsQueryKeys, updateCardInCache, updateSetInCache, useActivity, useActivityFeedbackAccess, useAssignment, useBaseOpenAI, useCards, useClearScore, useCreateCard, useCreateCards, useCreateNotification, useGetCard, useOrganizationAccess, useScore, useSet, useSpeakableApi, useSubmitAssignmentScore, useSubmitPracticeScore, useUpdateCardScore, useUpdateScore, useUserCredits };
@@ -1603,57 +1603,48 @@ var getCard = withErrorHandler(_getCard, "getCard");
1603
1603
  import { v4 } from "uuid";
1604
1604
 
1605
1605
  // src/domains/cards/card.model.ts
1606
- var CardActivityType = /* @__PURE__ */ ((CardActivityType2) => {
1607
- CardActivityType2["READ_REPEAT"] = "READ_REPEAT";
1608
- CardActivityType2["VIDEO"] = "VIDEO";
1609
- CardActivityType2["TEXT"] = "TEXT";
1610
- CardActivityType2["READ_RESPOND"] = "READ_RESPOND";
1611
- CardActivityType2["FREE_RESPONSE"] = "FREE_RESPONSE";
1612
- CardActivityType2["REPEAT"] = "REPEAT";
1613
- CardActivityType2["RESPOND"] = "RESPOND";
1614
- CardActivityType2["RESPOND_WRITE"] = "RESPOND_WRITE";
1615
- CardActivityType2["TEXT_TO_SPEECH"] = "TEXT_TO_SPEECH";
1616
- CardActivityType2["MULTIPLE_CHOICE"] = "MULTIPLE_CHOICE";
1617
- CardActivityType2["PODCAST"] = "PODCAST";
1618
- CardActivityType2["MEDIA_PAGE"] = "MEDIA_PAGE";
1619
- CardActivityType2["WRITE"] = "WRITE";
1620
- CardActivityType2["SHORT_ANSWER"] = "SHORT_ANSWER";
1621
- CardActivityType2["SHORT_STORY"] = "SHORT_STORY";
1622
- CardActivityType2["SPEAK"] = "SPEAK";
1623
- CardActivityType2["CONVERSATION"] = "CONVERSATION";
1624
- CardActivityType2["CONVERSATION_WRITE"] = "CONVERSATION_WRITE";
1625
- CardActivityType2["DIALOGUE"] = "DIALOGUE";
1626
- CardActivityType2["INSTRUCTION"] = "INSTRUCTION";
1627
- CardActivityType2["LISTEN"] = "LISTEN";
1628
- CardActivityType2["READ"] = "READ";
1629
- CardActivityType2["ANSWER"] = "ANSWER";
1630
- return CardActivityType2;
1631
- })(CardActivityType || {});
1632
- var RESPOND_CARD_ACTIVITY_TYPES = [
1606
+ var ActivityPageType = /* @__PURE__ */ ((ActivityPageType2) => {
1607
+ ActivityPageType2["READ_REPEAT"] = "READ_REPEAT";
1608
+ ActivityPageType2["VIDEO"] = "VIDEO";
1609
+ ActivityPageType2["TEXT"] = "TEXT";
1610
+ ActivityPageType2["READ_RESPOND"] = "READ_RESPOND";
1611
+ ActivityPageType2["FREE_RESPONSE"] = "FREE_RESPONSE";
1612
+ ActivityPageType2["REPEAT"] = "REPEAT";
1613
+ ActivityPageType2["RESPOND"] = "RESPOND";
1614
+ ActivityPageType2["RESPOND_WRITE"] = "RESPOND_WRITE";
1615
+ ActivityPageType2["TEXT_TO_SPEECH"] = "TEXT_TO_SPEECH";
1616
+ ActivityPageType2["MULTIPLE_CHOICE"] = "MULTIPLE_CHOICE";
1617
+ ActivityPageType2["PODCAST"] = "PODCAST";
1618
+ ActivityPageType2["MEDIA_PAGE"] = "MEDIA_PAGE";
1619
+ ActivityPageType2["WRITE"] = "WRITE";
1620
+ ActivityPageType2["SHORT_ANSWER"] = "SHORT_ANSWER";
1621
+ ActivityPageType2["SHORT_STORY"] = "SHORT_STORY";
1622
+ ActivityPageType2["SPEAK"] = "SPEAK";
1623
+ ActivityPageType2["CONVERSATION"] = "CONVERSATION";
1624
+ ActivityPageType2["CONVERSATION_WRITE"] = "CONVERSATION_WRITE";
1625
+ ActivityPageType2["DIALOGUE"] = "DIALOGUE";
1626
+ ActivityPageType2["INSTRUCTION"] = "INSTRUCTION";
1627
+ ActivityPageType2["LISTEN"] = "LISTEN";
1628
+ ActivityPageType2["READ"] = "READ";
1629
+ ActivityPageType2["ANSWER"] = "ANSWER";
1630
+ return ActivityPageType2;
1631
+ })(ActivityPageType || {});
1632
+ var RESPOND_PAGE_ACTIVITY_TYPES = [
1633
1633
  "READ_RESPOND" /* READ_RESPOND */,
1634
1634
  "RESPOND" /* RESPOND */,
1635
1635
  "RESPOND_WRITE" /* RESPOND_WRITE */,
1636
1636
  "FREE_RESPONSE" /* FREE_RESPONSE */
1637
1637
  ];
1638
- var MULTIPLE_CHOICE_CARD_ACTIVITY_TYPES = ["MULTIPLE_CHOICE" /* MULTIPLE_CHOICE */];
1639
- var REPEAT_CARD_ACTIVITY_TYPES = ["READ_REPEAT" /* READ_REPEAT */, "REPEAT" /* REPEAT */];
1640
- var RESPOND_WRITE_CARD_ACTIVITY_TYPES = [
1638
+ var MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES = ["MULTIPLE_CHOICE" /* MULTIPLE_CHOICE */];
1639
+ var REPEAT_PAGE_ACTIVITY_TYPES = ["READ_REPEAT" /* READ_REPEAT */, "REPEAT" /* REPEAT */];
1640
+ var RESPOND_WRITE_PAGE_ACTIVITY_TYPES = [
1641
1641
  "RESPOND_WRITE" /* RESPOND_WRITE */,
1642
1642
  "FREE_RESPONSE" /* FREE_RESPONSE */
1643
1643
  ];
1644
- var RESPOND_AUDIO_CARD_ACTIVITY_TYPES = [
1644
+ var RESPOND_AUDIO_PAGE_ACTIVITY_TYPES = [
1645
1645
  "RESPOND" /* RESPOND */,
1646
1646
  "READ_RESPOND" /* READ_RESPOND */
1647
1647
  ];
1648
- var ALLOWED_CARD_ACTIVITY_TYPES_FOR_SUMMARY = [
1649
- "REPEAT" /* REPEAT */,
1650
- "RESPOND" /* RESPOND */,
1651
- "READ_REPEAT" /* READ_REPEAT */,
1652
- "READ_RESPOND" /* READ_RESPOND */,
1653
- "FREE_RESPONSE" /* FREE_RESPONSE */,
1654
- "RESPOND_WRITE" /* RESPOND_WRITE */,
1655
- "MULTIPLE_CHOICE" /* MULTIPLE_CHOICE */
1656
- ];
1657
1648
 
1658
1649
  // src/utils/text-utils.ts
1659
1650
  import sha1 from "js-sha1";
@@ -1833,42 +1824,42 @@ var createCardRepo = () => {
1833
1824
  };
1834
1825
 
1835
1826
  // src/domains/cards/utils/check-page-type.ts
1836
- function checkIsRepeatCard(cardType) {
1827
+ function checkIsRepeatPage(cardType) {
1837
1828
  if (cardType === void 0) return false;
1838
- return REPEAT_CARD_ACTIVITY_TYPES.includes(cardType);
1829
+ return REPEAT_PAGE_ACTIVITY_TYPES.includes(cardType);
1839
1830
  }
1840
- function checkIsMCCard(cardType) {
1831
+ function checkIsMCPage(cardType) {
1841
1832
  if (cardType === void 0) return false;
1842
- return MULTIPLE_CHOICE_CARD_ACTIVITY_TYPES.includes(cardType);
1833
+ return MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES.includes(cardType);
1843
1834
  }
1844
- function checkIsRespondCard(cardType) {
1835
+ function checkIsRespondPage(cardType) {
1845
1836
  if (cardType === void 0) return false;
1846
- return RESPOND_CARD_ACTIVITY_TYPES.includes(cardType);
1837
+ return RESPOND_PAGE_ACTIVITY_TYPES.includes(cardType);
1847
1838
  }
1848
- function checkIsRespondWrittenCard(cardType) {
1839
+ function checkIsRespondWrittenPage(cardType) {
1849
1840
  if (cardType === void 0) return false;
1850
- return RESPOND_WRITE_CARD_ACTIVITY_TYPES.includes(cardType);
1841
+ return RESPOND_WRITE_PAGE_ACTIVITY_TYPES.includes(cardType);
1851
1842
  }
1852
- function checkIsRespondAudioCard(cardType) {
1843
+ function checkIsRespondAudioPage(cardType) {
1853
1844
  if (cardType === void 0) return false;
1854
- return RESPOND_AUDIO_CARD_ACTIVITY_TYPES.includes(cardType);
1845
+ return RESPOND_AUDIO_PAGE_ACTIVITY_TYPES.includes(cardType);
1855
1846
  }
1856
- var checkIsMediaPageCard = (cardType) => {
1847
+ var checkIsMediaPage = (cardType) => {
1857
1848
  if (cardType === void 0) return false;
1858
1849
  return cardType === "MEDIA_PAGE" /* MEDIA_PAGE */;
1859
1850
  };
1860
- var checkIsShortAnswerCard = (cardType) => {
1851
+ var checkIsShortAnswerPage = (cardType) => {
1861
1852
  if (cardType === void 0) return false;
1862
1853
  return cardType === "SHORT_ANSWER" /* SHORT_ANSWER */;
1863
1854
  };
1864
- var checkTypeCardActivity = (cardType) => {
1865
- const isRespondAudio = checkIsRespondAudioCard(cardType);
1866
- const isRespondWritten = checkIsRespondWrittenCard(cardType);
1867
- const isRespond = checkIsRespondCard(cardType);
1868
- const isMC = checkIsMCCard(cardType);
1869
- const isRepeat = checkIsRepeatCard(cardType);
1870
- const isMediaPage = checkIsMediaPageCard(cardType);
1871
- const isShortAnswer = checkIsShortAnswerCard(cardType);
1855
+ var checkTypePageActivity = (cardType) => {
1856
+ const isRespondAudio = checkIsRespondAudioPage(cardType);
1857
+ const isRespondWritten = checkIsRespondWrittenPage(cardType);
1858
+ const isRespond = checkIsRespondPage(cardType);
1859
+ const isMC = checkIsMCPage(cardType);
1860
+ const isRepeat = checkIsRepeatPage(cardType);
1861
+ const isMediaPage = checkIsMediaPage(cardType);
1862
+ const isShortAnswer = checkIsShortAnswerPage(cardType);
1872
1863
  return {
1873
1864
  isRespondAudio,
1874
1865
  isRespondWritten,
@@ -3041,20 +3032,19 @@ var createFsClientNative = ({ db, httpsCallable, logEvent }) => {
3041
3032
  });
3042
3033
  };
3043
3034
  export {
3044
- ALLOWED_CARD_ACTIVITY_TYPES_FOR_SUMMARY,
3035
+ ActivityPageType,
3045
3036
  BASE_MULTIPLE_CHOICE_FIELD_VALUES,
3046
3037
  BASE_REPEAT_FIELD_VALUES,
3047
3038
  BASE_RESPOND_FIELD_VALUES,
3048
- CardActivityType,
3049
3039
  FeedbackTypesCard,
3050
3040
  FsCtx,
3051
3041
  LENIENCY_OPTIONS,
3052
3042
  LeniencyCard,
3053
- MULTIPLE_CHOICE_CARD_ACTIVITY_TYPES,
3054
- REPEAT_CARD_ACTIVITY_TYPES,
3055
- RESPOND_AUDIO_CARD_ACTIVITY_TYPES,
3056
- RESPOND_CARD_ACTIVITY_TYPES,
3057
- RESPOND_WRITE_CARD_ACTIVITY_TYPES,
3043
+ MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES,
3044
+ REPEAT_PAGE_ACTIVITY_TYPES,
3045
+ RESPOND_AUDIO_PAGE_ACTIVITY_TYPES,
3046
+ RESPOND_PAGE_ACTIVITY_TYPES,
3047
+ RESPOND_WRITE_PAGE_ACTIVITY_TYPES,
3058
3048
  SPEAKABLE_NOTIFICATIONS,
3059
3049
  STUDENT_LEVELS_OPTIONS,
3060
3050
  SpeakableNotificationTypes,
@@ -3062,14 +3052,14 @@ export {
3062
3052
  VerificationCardStatus,
3063
3053
  assignmentQueryKeys,
3064
3054
  cardsQueryKeys,
3065
- checkIsMCCard,
3066
- checkIsMediaPageCard,
3067
- checkIsRepeatCard,
3068
- checkIsRespondAudioCard,
3069
- checkIsRespondCard,
3070
- checkIsRespondWrittenCard,
3071
- checkIsShortAnswerCard,
3072
- checkTypeCardActivity,
3055
+ checkIsMCPage,
3056
+ checkIsMediaPage,
3057
+ checkIsRepeatPage,
3058
+ checkIsRespondAudioPage,
3059
+ checkIsRespondPage,
3060
+ checkIsRespondWrittenPage,
3061
+ checkIsShortAnswerPage,
3062
+ checkTypePageActivity,
3073
3063
  cleanString,
3074
3064
  createAssignmentRepo,
3075
3065
  createCardRepo,