@speakableio/core 0.1.61 → 0.1.63
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 +47 -48
- package/dist/index.native.mjs +65 -75
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.d.mts +47 -48
- package/dist/index.web.js +65 -75
- 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,17 +747,17 @@ declare const createCardRepo: () => {
|
|
|
748
747
|
}[]>;
|
|
749
748
|
getCard: (params: {
|
|
750
749
|
cardId: string;
|
|
751
|
-
}) => Promise<
|
|
750
|
+
}) => Promise<PageActivityWithId | null>;
|
|
752
751
|
};
|
|
753
752
|
|
|
754
|
-
declare function
|
|
755
|
-
declare function
|
|
756
|
-
declare function
|
|
757
|
-
declare function
|
|
758
|
-
declare function
|
|
759
|
-
declare const
|
|
760
|
-
declare const
|
|
761
|
-
declare const
|
|
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
|
|
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<
|
|
993
|
+
data: Partial<PageActivity>;
|
|
995
994
|
}) => Promise<{
|
|
996
995
|
id: string;
|
|
997
|
-
} & Partial<
|
|
996
|
+
} & Partial<PageActivity>>;
|
|
998
997
|
createCards: (args_0: {
|
|
999
|
-
cards:
|
|
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:
|
|
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<
|
|
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,
|
|
1236
|
-
query: _tanstack_react_query.UseQueryResult<
|
|
1237
|
-
cardsArray:
|
|
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<
|
|
2633
|
+
data: Partial<PageActivity>;
|
|
2635
2634
|
}) => Promise<{
|
|
2636
2635
|
id: string;
|
|
2637
|
-
} & Partial<
|
|
2636
|
+
} & Partial<PageActivity>>;
|
|
2638
2637
|
createCards: (args_0: {
|
|
2639
|
-
cards:
|
|
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:
|
|
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<
|
|
2703
|
+
}) => Promise<PageActivityWithId | null>;
|
|
2705
2704
|
};
|
|
2706
2705
|
};
|
|
2707
2706
|
|
|
2708
|
-
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";
|
|
@@ -1833,42 +1824,42 @@ var createCardRepo = () => {
|
|
|
1833
1824
|
};
|
|
1834
1825
|
|
|
1835
1826
|
// src/domains/cards/utils/check-page-type.ts
|
|
1836
|
-
function
|
|
1827
|
+
function checkIsRepeatPage(cardType) {
|
|
1837
1828
|
if (cardType === void 0) return false;
|
|
1838
|
-
return
|
|
1829
|
+
return REPEAT_PAGE_ACTIVITY_TYPES.includes(cardType);
|
|
1839
1830
|
}
|
|
1840
|
-
function
|
|
1831
|
+
function checkIsMCPage(cardType) {
|
|
1841
1832
|
if (cardType === void 0) return false;
|
|
1842
|
-
return
|
|
1833
|
+
return MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES.includes(cardType);
|
|
1843
1834
|
}
|
|
1844
|
-
function
|
|
1835
|
+
function checkIsRespondPage(cardType) {
|
|
1845
1836
|
if (cardType === void 0) return false;
|
|
1846
|
-
return
|
|
1837
|
+
return RESPOND_PAGE_ACTIVITY_TYPES.includes(cardType);
|
|
1847
1838
|
}
|
|
1848
|
-
function
|
|
1839
|
+
function checkIsRespondWrittenPage(cardType) {
|
|
1849
1840
|
if (cardType === void 0) return false;
|
|
1850
|
-
return
|
|
1841
|
+
return RESPOND_WRITE_PAGE_ACTIVITY_TYPES.includes(cardType);
|
|
1851
1842
|
}
|
|
1852
|
-
function
|
|
1843
|
+
function checkIsRespondAudioPage(cardType) {
|
|
1853
1844
|
if (cardType === void 0) return false;
|
|
1854
|
-
return
|
|
1845
|
+
return RESPOND_AUDIO_PAGE_ACTIVITY_TYPES.includes(cardType);
|
|
1855
1846
|
}
|
|
1856
|
-
var
|
|
1847
|
+
var checkIsMediaPage = (cardType) => {
|
|
1857
1848
|
if (cardType === void 0) return false;
|
|
1858
1849
|
return cardType === "MEDIA_PAGE" /* MEDIA_PAGE */;
|
|
1859
1850
|
};
|
|
1860
|
-
var
|
|
1851
|
+
var checkIsShortAnswerPage = (cardType) => {
|
|
1861
1852
|
if (cardType === void 0) return false;
|
|
1862
1853
|
return cardType === "SHORT_ANSWER" /* SHORT_ANSWER */;
|
|
1863
1854
|
};
|
|
1864
|
-
var
|
|
1865
|
-
const isRespondAudio =
|
|
1866
|
-
const isRespondWritten =
|
|
1867
|
-
const isRespond =
|
|
1868
|
-
const isMC =
|
|
1869
|
-
const isRepeat =
|
|
1870
|
-
const isMediaPage =
|
|
1871
|
-
const isShortAnswer =
|
|
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
|
-
|
|
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
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
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
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
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,
|