@speakableio/core 0.1.60 → 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.
- package/dist/index.native.d.mts +56 -40
- package/dist/index.native.mjs +93 -47
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.d.mts +56 -40
- package/dist/index.web.js +93 -47
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.native.d.mts
CHANGED
|
@@ -478,10 +478,10 @@ declare const refsCardsFiresotre: {
|
|
|
478
478
|
card: (id: string) => `flashcards/${string}`;
|
|
479
479
|
};
|
|
480
480
|
|
|
481
|
-
interface
|
|
481
|
+
interface PageActivityWithId extends PageActivity {
|
|
482
482
|
id: string;
|
|
483
483
|
}
|
|
484
|
-
interface
|
|
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:
|
|
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
|
|
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
|
|
571
|
-
declare const
|
|
572
|
-
declare const
|
|
573
|
-
declare const
|
|
574
|
-
declare const
|
|
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:
|
|
589
|
-
cardsObject: Record<string,
|
|
590
|
-
cardsQueries: _tanstack_react_query.UseQueryResult<
|
|
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<
|
|
596
|
-
data: Partial<
|
|
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:
|
|
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:
|
|
661
|
+
cards: PageActivity[];
|
|
663
662
|
}, unknown>;
|
|
664
663
|
};
|
|
665
664
|
declare function getCardFromCache({ cardId, queryClient, }: {
|
|
666
665
|
cardId: string;
|
|
667
666
|
queryClient: QueryClient;
|
|
668
|
-
}):
|
|
667
|
+
}): PageActivityWithId | undefined;
|
|
669
668
|
declare function updateCardInCache({ cardId, card, queryClient, }: {
|
|
670
669
|
cardId: string;
|
|
671
|
-
card:
|
|
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<
|
|
676
|
+
}): _tanstack_react_query.UseQueryResult<PageActivityWithId | null, Error>;
|
|
678
677
|
|
|
679
678
|
declare const createCardRepo: () => {
|
|
680
679
|
createCard: (args_0: {
|
|
681
|
-
data: Partial<
|
|
680
|
+
data: Partial<PageActivity>;
|
|
682
681
|
}) => Promise<{
|
|
683
682
|
id: string;
|
|
684
|
-
} & Partial<
|
|
683
|
+
} & Partial<PageActivity>>;
|
|
685
684
|
createCards: (args_0: {
|
|
686
|
-
cards:
|
|
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:
|
|
710
|
+
type: ActivityPageType;
|
|
712
711
|
grading_criteria?: string;
|
|
713
712
|
scoring_type?: string;
|
|
714
713
|
grading_method?: "simple" | "rubric" | "manual" | "standards_based";
|
|
@@ -748,7 +747,24 @@ declare const createCardRepo: () => {
|
|
|
748
747
|
}[]>;
|
|
749
748
|
getCard: (params: {
|
|
750
749
|
cardId: string;
|
|
751
|
-
}) => Promise<
|
|
750
|
+
}) => Promise<PageActivityWithId | null>;
|
|
751
|
+
};
|
|
752
|
+
|
|
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) => {
|
|
761
|
+
isRespondAudio: boolean;
|
|
762
|
+
isRespondWritten: boolean;
|
|
763
|
+
isRespond: boolean;
|
|
764
|
+
isMC: boolean;
|
|
765
|
+
isRepeat: boolean;
|
|
766
|
+
isMediaPage: boolean;
|
|
767
|
+
isShortAnswer: boolean;
|
|
752
768
|
};
|
|
753
769
|
|
|
754
770
|
interface SetWithId extends Set {
|
|
@@ -774,7 +790,7 @@ interface Set {
|
|
|
774
790
|
name: string;
|
|
775
791
|
content: string[];
|
|
776
792
|
types: {
|
|
777
|
-
[key in
|
|
793
|
+
[key in ActivityPageType]?: number;
|
|
778
794
|
};
|
|
779
795
|
defaultLanguage: string;
|
|
780
796
|
createdAt: FieldValue;
|
|
@@ -974,12 +990,12 @@ declare function createFsClientBase({ db, helpers, httpsCallable, logEvent, }: {
|
|
|
974
990
|
};
|
|
975
991
|
cardRepo: {
|
|
976
992
|
createCard: (args_0: {
|
|
977
|
-
data: Partial<
|
|
993
|
+
data: Partial<PageActivity>;
|
|
978
994
|
}) => Promise<{
|
|
979
995
|
id: string;
|
|
980
|
-
} & Partial<
|
|
996
|
+
} & Partial<PageActivity>>;
|
|
981
997
|
createCards: (args_0: {
|
|
982
|
-
cards:
|
|
998
|
+
cards: PageActivity[];
|
|
983
999
|
}) => Promise<{
|
|
984
1000
|
id: string;
|
|
985
1001
|
owners: string[];
|
|
@@ -1004,7 +1020,7 @@ declare function createFsClientBase({ db, helpers, httpsCallable, logEvent, }: {
|
|
|
1004
1020
|
difficulty?: string;
|
|
1005
1021
|
default_language?: string;
|
|
1006
1022
|
target_text?: string;
|
|
1007
|
-
type:
|
|
1023
|
+
type: ActivityPageType;
|
|
1008
1024
|
grading_criteria?: string;
|
|
1009
1025
|
scoring_type?: string;
|
|
1010
1026
|
grading_method?: "simple" | "rubric" | "manual" | "standards_based";
|
|
@@ -1044,7 +1060,7 @@ declare function createFsClientBase({ db, helpers, httpsCallable, logEvent, }: {
|
|
|
1044
1060
|
}[]>;
|
|
1045
1061
|
getCard: (params: {
|
|
1046
1062
|
cardId: string;
|
|
1047
|
-
}) => Promise<
|
|
1063
|
+
}) => Promise<PageActivityWithId | null>;
|
|
1048
1064
|
};
|
|
1049
1065
|
};
|
|
1050
1066
|
|
|
@@ -1215,9 +1231,9 @@ declare function useActivity({ id, isAssignment, onAssignmentSubmitted, ltiData,
|
|
|
1215
1231
|
query: _tanstack_react_query.UseQueryResult<SetWithId | null, Error>;
|
|
1216
1232
|
};
|
|
1217
1233
|
cards: {
|
|
1218
|
-
data: Record<string,
|
|
1219
|
-
query: _tanstack_react_query.UseQueryResult<
|
|
1220
|
-
cardsArray:
|
|
1234
|
+
data: Record<string, PageActivityWithId> | null;
|
|
1235
|
+
query: _tanstack_react_query.UseQueryResult<PageActivityWithId | null, Error>[];
|
|
1236
|
+
cardsArray: PageActivityWithId[];
|
|
1221
1237
|
};
|
|
1222
1238
|
assignment: {
|
|
1223
1239
|
data: AssignmentWithId | {
|
|
@@ -2614,12 +2630,12 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
|
|
|
2614
2630
|
};
|
|
2615
2631
|
cardRepo: {
|
|
2616
2632
|
createCard: (args_0: {
|
|
2617
|
-
data: Partial<
|
|
2633
|
+
data: Partial<PageActivity>;
|
|
2618
2634
|
}) => Promise<{
|
|
2619
2635
|
id: string;
|
|
2620
|
-
} & Partial<
|
|
2636
|
+
} & Partial<PageActivity>>;
|
|
2621
2637
|
createCards: (args_0: {
|
|
2622
|
-
cards:
|
|
2638
|
+
cards: PageActivity[];
|
|
2623
2639
|
}) => Promise<{
|
|
2624
2640
|
id: string;
|
|
2625
2641
|
owners: string[];
|
|
@@ -2644,7 +2660,7 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
|
|
|
2644
2660
|
difficulty?: string;
|
|
2645
2661
|
default_language?: string;
|
|
2646
2662
|
target_text?: string;
|
|
2647
|
-
type:
|
|
2663
|
+
type: ActivityPageType;
|
|
2648
2664
|
grading_criteria?: string;
|
|
2649
2665
|
scoring_type?: string;
|
|
2650
2666
|
grading_method?: "simple" | "rubric" | "manual" | "standards_based";
|
|
@@ -2684,8 +2700,8 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
|
|
|
2684
2700
|
}[]>;
|
|
2685
2701
|
getCard: (params: {
|
|
2686
2702
|
cardId: string;
|
|
2687
|
-
}) => Promise<
|
|
2703
|
+
}) => Promise<PageActivityWithId | null>;
|
|
2688
2704
|
};
|
|
2689
2705
|
};
|
|
2690
2706
|
|
|
2691
|
-
export {
|
|
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 };
|
package/dist/index.native.mjs
CHANGED
|
@@ -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
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
return
|
|
1631
|
-
})(
|
|
1632
|
-
var
|
|
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
|
|
1639
|
-
var
|
|
1640
|
-
var
|
|
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
|
|
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";
|
|
@@ -1832,6 +1823,54 @@ var createCardRepo = () => {
|
|
|
1832
1823
|
};
|
|
1833
1824
|
};
|
|
1834
1825
|
|
|
1826
|
+
// src/domains/cards/utils/check-page-type.ts
|
|
1827
|
+
function checkIsRepeatPage(cardType) {
|
|
1828
|
+
if (cardType === void 0) return false;
|
|
1829
|
+
return REPEAT_PAGE_ACTIVITY_TYPES.includes(cardType);
|
|
1830
|
+
}
|
|
1831
|
+
function checkIsMCPage(cardType) {
|
|
1832
|
+
if (cardType === void 0) return false;
|
|
1833
|
+
return MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES.includes(cardType);
|
|
1834
|
+
}
|
|
1835
|
+
function checkIsRespondPage(cardType) {
|
|
1836
|
+
if (cardType === void 0) return false;
|
|
1837
|
+
return RESPOND_PAGE_ACTIVITY_TYPES.includes(cardType);
|
|
1838
|
+
}
|
|
1839
|
+
function checkIsRespondWrittenPage(cardType) {
|
|
1840
|
+
if (cardType === void 0) return false;
|
|
1841
|
+
return RESPOND_WRITE_PAGE_ACTIVITY_TYPES.includes(cardType);
|
|
1842
|
+
}
|
|
1843
|
+
function checkIsRespondAudioPage(cardType) {
|
|
1844
|
+
if (cardType === void 0) return false;
|
|
1845
|
+
return RESPOND_AUDIO_PAGE_ACTIVITY_TYPES.includes(cardType);
|
|
1846
|
+
}
|
|
1847
|
+
var checkIsMediaPage = (cardType) => {
|
|
1848
|
+
if (cardType === void 0) return false;
|
|
1849
|
+
return cardType === "MEDIA_PAGE" /* MEDIA_PAGE */;
|
|
1850
|
+
};
|
|
1851
|
+
var checkIsShortAnswerPage = (cardType) => {
|
|
1852
|
+
if (cardType === void 0) return false;
|
|
1853
|
+
return cardType === "SHORT_ANSWER" /* SHORT_ANSWER */;
|
|
1854
|
+
};
|
|
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);
|
|
1863
|
+
return {
|
|
1864
|
+
isRespondAudio,
|
|
1865
|
+
isRespondWritten,
|
|
1866
|
+
isRespond,
|
|
1867
|
+
isMC,
|
|
1868
|
+
isRepeat,
|
|
1869
|
+
isMediaPage,
|
|
1870
|
+
isShortAnswer
|
|
1871
|
+
};
|
|
1872
|
+
};
|
|
1873
|
+
|
|
1835
1874
|
// src/domains/sets/set.hooks.ts
|
|
1836
1875
|
import { useQuery as useQuery4 } from "@tanstack/react-query";
|
|
1837
1876
|
|
|
@@ -2993,20 +3032,19 @@ var createFsClientNative = ({ db, httpsCallable, logEvent }) => {
|
|
|
2993
3032
|
});
|
|
2994
3033
|
};
|
|
2995
3034
|
export {
|
|
2996
|
-
|
|
3035
|
+
ActivityPageType,
|
|
2997
3036
|
BASE_MULTIPLE_CHOICE_FIELD_VALUES,
|
|
2998
3037
|
BASE_REPEAT_FIELD_VALUES,
|
|
2999
3038
|
BASE_RESPOND_FIELD_VALUES,
|
|
3000
|
-
CardActivityType,
|
|
3001
3039
|
FeedbackTypesCard,
|
|
3002
3040
|
FsCtx,
|
|
3003
3041
|
LENIENCY_OPTIONS,
|
|
3004
3042
|
LeniencyCard,
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
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,
|
|
3010
3048
|
SPEAKABLE_NOTIFICATIONS,
|
|
3011
3049
|
STUDENT_LEVELS_OPTIONS,
|
|
3012
3050
|
SpeakableNotificationTypes,
|
|
@@ -3014,6 +3052,14 @@ export {
|
|
|
3014
3052
|
VerificationCardStatus,
|
|
3015
3053
|
assignmentQueryKeys,
|
|
3016
3054
|
cardsQueryKeys,
|
|
3055
|
+
checkIsMCPage,
|
|
3056
|
+
checkIsMediaPage,
|
|
3057
|
+
checkIsRepeatPage,
|
|
3058
|
+
checkIsRespondAudioPage,
|
|
3059
|
+
checkIsRespondPage,
|
|
3060
|
+
checkIsRespondWrittenPage,
|
|
3061
|
+
checkIsShortAnswerPage,
|
|
3062
|
+
checkTypePageActivity,
|
|
3017
3063
|
cleanString,
|
|
3018
3064
|
createAssignmentRepo,
|
|
3019
3065
|
createCardRepo,
|