@speakableio/core 1.0.49 → 1.0.51
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 +96 -1
- package/dist/index.native.d.ts +96 -1
- package/dist/index.native.js +14 -1
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +14 -1
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.d.mts +96 -1
- package/dist/index.web.js +14 -1
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.native.d.mts
CHANGED
|
@@ -92,6 +92,10 @@ interface MediaPageActivity {
|
|
|
92
92
|
url: string;
|
|
93
93
|
transcript?: string | null;
|
|
94
94
|
}
|
|
95
|
+
declare enum ConversationPageMode {
|
|
96
|
+
VoiceAndText = "voice_and_text",
|
|
97
|
+
PhoneCall = "phone_call"
|
|
98
|
+
}
|
|
95
99
|
interface PageActivity {
|
|
96
100
|
owners: string[];
|
|
97
101
|
checked?: boolean;
|
|
@@ -163,6 +167,14 @@ interface PageActivity {
|
|
|
163
167
|
correct_answer_exact_match?: boolean;
|
|
164
168
|
ai_context_block_ids?: string[];
|
|
165
169
|
resolvedContext?: string;
|
|
170
|
+
goal?: string;
|
|
171
|
+
mode?: ConversationPageMode;
|
|
172
|
+
personality?: string;
|
|
173
|
+
voice?: string;
|
|
174
|
+
topic?: string;
|
|
175
|
+
vocab?: string[];
|
|
176
|
+
questions?: string[];
|
|
177
|
+
showHints?: boolean;
|
|
166
178
|
}
|
|
167
179
|
declare const enum ActivityPageType {
|
|
168
180
|
READ_REPEAT = "READ_REPEAT",
|
|
@@ -181,6 +193,7 @@ declare const MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES: ActivityPageType[];
|
|
|
181
193
|
declare const REPEAT_PAGE_ACTIVITY_TYPES: ActivityPageType[];
|
|
182
194
|
declare const RESPOND_WRITE_PAGE_ACTIVITY_TYPES: ActivityPageType[];
|
|
183
195
|
declare const RESPOND_AUDIO_PAGE_ACTIVITY_TYPES: ActivityPageType[];
|
|
196
|
+
declare const CONVERSATION_PAGE_ACTIVITY_TYPES: ActivityPageType[];
|
|
184
197
|
|
|
185
198
|
declare const cardsQueryKeys: {
|
|
186
199
|
all: string[];
|
|
@@ -267,6 +280,14 @@ declare function useCards({ cardIds, enabled, asObject, }: {
|
|
|
267
280
|
correct_answer_exact_match?: boolean;
|
|
268
281
|
ai_context_block_ids?: string[];
|
|
269
282
|
resolvedContext?: string;
|
|
283
|
+
goal?: string;
|
|
284
|
+
mode?: ConversationPageMode;
|
|
285
|
+
personality?: string;
|
|
286
|
+
voice?: string;
|
|
287
|
+
topic?: string;
|
|
288
|
+
vocab?: string[];
|
|
289
|
+
questions?: string[];
|
|
290
|
+
showHints?: boolean;
|
|
270
291
|
} | null, Error>[];
|
|
271
292
|
};
|
|
272
293
|
declare function useCreateCard(): {
|
|
@@ -349,6 +370,14 @@ declare function useCreateCards(): {
|
|
|
349
370
|
correct_answer_exact_match?: boolean;
|
|
350
371
|
ai_context_block_ids?: string[];
|
|
351
372
|
resolvedContext?: string;
|
|
373
|
+
goal?: string;
|
|
374
|
+
mode?: ConversationPageMode;
|
|
375
|
+
personality?: string;
|
|
376
|
+
voice?: string;
|
|
377
|
+
topic?: string;
|
|
378
|
+
vocab?: string[];
|
|
379
|
+
questions?: string[];
|
|
380
|
+
showHints?: boolean;
|
|
352
381
|
}[], Error, {
|
|
353
382
|
cards: PageActivity[];
|
|
354
383
|
}, unknown>;
|
|
@@ -437,6 +466,14 @@ declare function useGetCard({ cardId, enabled }: {
|
|
|
437
466
|
correct_answer_exact_match?: boolean;
|
|
438
467
|
ai_context_block_ids?: string[];
|
|
439
468
|
resolvedContext?: string;
|
|
469
|
+
goal?: string;
|
|
470
|
+
mode?: ConversationPageMode;
|
|
471
|
+
personality?: string;
|
|
472
|
+
voice?: string;
|
|
473
|
+
topic?: string;
|
|
474
|
+
vocab?: string[];
|
|
475
|
+
questions?: string[];
|
|
476
|
+
showHints?: boolean;
|
|
440
477
|
} | null, Error>;
|
|
441
478
|
|
|
442
479
|
declare const createCardRepo: () => {
|
|
@@ -519,6 +556,14 @@ declare const createCardRepo: () => {
|
|
|
519
556
|
correct_answer_exact_match?: boolean;
|
|
520
557
|
ai_context_block_ids?: string[];
|
|
521
558
|
resolvedContext?: string;
|
|
559
|
+
goal?: string;
|
|
560
|
+
mode?: ConversationPageMode;
|
|
561
|
+
personality?: string;
|
|
562
|
+
voice?: string;
|
|
563
|
+
topic?: string;
|
|
564
|
+
vocab?: string[];
|
|
565
|
+
questions?: string[];
|
|
566
|
+
showHints?: boolean;
|
|
522
567
|
}[]>;
|
|
523
568
|
getCard: (params: {
|
|
524
569
|
cardId: string;
|
|
@@ -594,6 +639,14 @@ declare const createCardRepo: () => {
|
|
|
594
639
|
correct_answer_exact_match?: boolean;
|
|
595
640
|
ai_context_block_ids?: string[];
|
|
596
641
|
resolvedContext?: string;
|
|
642
|
+
goal?: string;
|
|
643
|
+
mode?: ConversationPageMode;
|
|
644
|
+
personality?: string;
|
|
645
|
+
voice?: string;
|
|
646
|
+
topic?: string;
|
|
647
|
+
vocab?: string[];
|
|
648
|
+
questions?: string[];
|
|
649
|
+
showHints?: boolean;
|
|
597
650
|
} | null>;
|
|
598
651
|
};
|
|
599
652
|
|
|
@@ -844,6 +897,8 @@ interface PageScore {
|
|
|
844
897
|
transcript?: string | null;
|
|
845
898
|
} | null;
|
|
846
899
|
transcriptModel?: 'gemini' | 'assemblyai' | 'whisper';
|
|
900
|
+
createdAt?: CustomTimestamp;
|
|
901
|
+
finishedAt?: CustomTimestamp;
|
|
847
902
|
}
|
|
848
903
|
|
|
849
904
|
declare enum AssignmentAnalyticsType {
|
|
@@ -1454,6 +1509,14 @@ declare function createFsClientBase({ db, helpers, httpsCallable, logEvent, }: {
|
|
|
1454
1509
|
correct_answer_exact_match?: boolean;
|
|
1455
1510
|
ai_context_block_ids?: string[];
|
|
1456
1511
|
resolvedContext?: string;
|
|
1512
|
+
goal?: string;
|
|
1513
|
+
mode?: ConversationPageMode;
|
|
1514
|
+
personality?: string;
|
|
1515
|
+
voice?: string;
|
|
1516
|
+
topic?: string;
|
|
1517
|
+
vocab?: string[];
|
|
1518
|
+
questions?: string[];
|
|
1519
|
+
showHints?: boolean;
|
|
1457
1520
|
}[]>;
|
|
1458
1521
|
getCard: (params: {
|
|
1459
1522
|
cardId: string;
|
|
@@ -1529,6 +1592,14 @@ declare function createFsClientBase({ db, helpers, httpsCallable, logEvent, }: {
|
|
|
1529
1592
|
correct_answer_exact_match?: boolean;
|
|
1530
1593
|
ai_context_block_ids?: string[];
|
|
1531
1594
|
resolvedContext?: string;
|
|
1595
|
+
goal?: string;
|
|
1596
|
+
mode?: ConversationPageMode;
|
|
1597
|
+
personality?: string;
|
|
1598
|
+
voice?: string;
|
|
1599
|
+
topic?: string;
|
|
1600
|
+
vocab?: string[];
|
|
1601
|
+
questions?: string[];
|
|
1602
|
+
showHints?: boolean;
|
|
1532
1603
|
} | null>;
|
|
1533
1604
|
};
|
|
1534
1605
|
};
|
|
@@ -1788,6 +1859,14 @@ declare function useActivity({ id, isAssignment, onAssignmentSubmitted, ltiData,
|
|
|
1788
1859
|
correct_answer_exact_match?: boolean;
|
|
1789
1860
|
ai_context_block_ids?: string[];
|
|
1790
1861
|
resolvedContext?: string;
|
|
1862
|
+
goal?: string;
|
|
1863
|
+
mode?: ConversationPageMode;
|
|
1864
|
+
personality?: string;
|
|
1865
|
+
voice?: string;
|
|
1866
|
+
topic?: string;
|
|
1867
|
+
vocab?: string[];
|
|
1868
|
+
questions?: string[];
|
|
1869
|
+
showHints?: boolean;
|
|
1791
1870
|
} | null, Error>[];
|
|
1792
1871
|
cardsArray: PageActivityWithId[];
|
|
1793
1872
|
};
|
|
@@ -3336,6 +3415,14 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
|
|
|
3336
3415
|
correct_answer_exact_match?: boolean;
|
|
3337
3416
|
ai_context_block_ids?: string[];
|
|
3338
3417
|
resolvedContext?: string;
|
|
3418
|
+
goal?: string;
|
|
3419
|
+
mode?: ConversationPageMode;
|
|
3420
|
+
personality?: string;
|
|
3421
|
+
voice?: string;
|
|
3422
|
+
topic?: string;
|
|
3423
|
+
vocab?: string[];
|
|
3424
|
+
questions?: string[];
|
|
3425
|
+
showHints?: boolean;
|
|
3339
3426
|
}[]>;
|
|
3340
3427
|
getCard: (params: {
|
|
3341
3428
|
cardId: string;
|
|
@@ -3411,8 +3498,16 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
|
|
|
3411
3498
|
correct_answer_exact_match?: boolean;
|
|
3412
3499
|
ai_context_block_ids?: string[];
|
|
3413
3500
|
resolvedContext?: string;
|
|
3501
|
+
goal?: string;
|
|
3502
|
+
mode?: ConversationPageMode;
|
|
3503
|
+
personality?: string;
|
|
3504
|
+
voice?: string;
|
|
3505
|
+
topic?: string;
|
|
3506
|
+
vocab?: string[];
|
|
3507
|
+
questions?: string[];
|
|
3508
|
+
showHints?: boolean;
|
|
3414
3509
|
} | null>;
|
|
3415
3510
|
};
|
|
3416
3511
|
};
|
|
3417
3512
|
|
|
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 };
|
|
3513
|
+
export { ActivityPageType, type Assignment, type AssignmentAnalyticsType$1 as AssignmentAnalyticsType, type AssignmentWithId, BASE_MULTIPLE_CHOICE_FIELD_VALUES, BASE_REPEAT_FIELD_VALUES, BASE_RESPOND_FIELD_VALUES, CONVERSATION_PAGE_ACTIVITY_TYPES, ConversationPageMode, 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
|
@@ -92,6 +92,10 @@ interface MediaPageActivity {
|
|
|
92
92
|
url: string;
|
|
93
93
|
transcript?: string | null;
|
|
94
94
|
}
|
|
95
|
+
declare enum ConversationPageMode {
|
|
96
|
+
VoiceAndText = "voice_and_text",
|
|
97
|
+
PhoneCall = "phone_call"
|
|
98
|
+
}
|
|
95
99
|
interface PageActivity {
|
|
96
100
|
owners: string[];
|
|
97
101
|
checked?: boolean;
|
|
@@ -163,6 +167,14 @@ interface PageActivity {
|
|
|
163
167
|
correct_answer_exact_match?: boolean;
|
|
164
168
|
ai_context_block_ids?: string[];
|
|
165
169
|
resolvedContext?: string;
|
|
170
|
+
goal?: string;
|
|
171
|
+
mode?: ConversationPageMode;
|
|
172
|
+
personality?: string;
|
|
173
|
+
voice?: string;
|
|
174
|
+
topic?: string;
|
|
175
|
+
vocab?: string[];
|
|
176
|
+
questions?: string[];
|
|
177
|
+
showHints?: boolean;
|
|
166
178
|
}
|
|
167
179
|
declare const enum ActivityPageType {
|
|
168
180
|
READ_REPEAT = "READ_REPEAT",
|
|
@@ -181,6 +193,7 @@ declare const MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES: ActivityPageType[];
|
|
|
181
193
|
declare const REPEAT_PAGE_ACTIVITY_TYPES: ActivityPageType[];
|
|
182
194
|
declare const RESPOND_WRITE_PAGE_ACTIVITY_TYPES: ActivityPageType[];
|
|
183
195
|
declare const RESPOND_AUDIO_PAGE_ACTIVITY_TYPES: ActivityPageType[];
|
|
196
|
+
declare const CONVERSATION_PAGE_ACTIVITY_TYPES: ActivityPageType[];
|
|
184
197
|
|
|
185
198
|
declare const cardsQueryKeys: {
|
|
186
199
|
all: string[];
|
|
@@ -267,6 +280,14 @@ declare function useCards({ cardIds, enabled, asObject, }: {
|
|
|
267
280
|
correct_answer_exact_match?: boolean;
|
|
268
281
|
ai_context_block_ids?: string[];
|
|
269
282
|
resolvedContext?: string;
|
|
283
|
+
goal?: string;
|
|
284
|
+
mode?: ConversationPageMode;
|
|
285
|
+
personality?: string;
|
|
286
|
+
voice?: string;
|
|
287
|
+
topic?: string;
|
|
288
|
+
vocab?: string[];
|
|
289
|
+
questions?: string[];
|
|
290
|
+
showHints?: boolean;
|
|
270
291
|
} | null, Error>[];
|
|
271
292
|
};
|
|
272
293
|
declare function useCreateCard(): {
|
|
@@ -349,6 +370,14 @@ declare function useCreateCards(): {
|
|
|
349
370
|
correct_answer_exact_match?: boolean;
|
|
350
371
|
ai_context_block_ids?: string[];
|
|
351
372
|
resolvedContext?: string;
|
|
373
|
+
goal?: string;
|
|
374
|
+
mode?: ConversationPageMode;
|
|
375
|
+
personality?: string;
|
|
376
|
+
voice?: string;
|
|
377
|
+
topic?: string;
|
|
378
|
+
vocab?: string[];
|
|
379
|
+
questions?: string[];
|
|
380
|
+
showHints?: boolean;
|
|
352
381
|
}[], Error, {
|
|
353
382
|
cards: PageActivity[];
|
|
354
383
|
}, unknown>;
|
|
@@ -437,6 +466,14 @@ declare function useGetCard({ cardId, enabled }: {
|
|
|
437
466
|
correct_answer_exact_match?: boolean;
|
|
438
467
|
ai_context_block_ids?: string[];
|
|
439
468
|
resolvedContext?: string;
|
|
469
|
+
goal?: string;
|
|
470
|
+
mode?: ConversationPageMode;
|
|
471
|
+
personality?: string;
|
|
472
|
+
voice?: string;
|
|
473
|
+
topic?: string;
|
|
474
|
+
vocab?: string[];
|
|
475
|
+
questions?: string[];
|
|
476
|
+
showHints?: boolean;
|
|
440
477
|
} | null, Error>;
|
|
441
478
|
|
|
442
479
|
declare const createCardRepo: () => {
|
|
@@ -519,6 +556,14 @@ declare const createCardRepo: () => {
|
|
|
519
556
|
correct_answer_exact_match?: boolean;
|
|
520
557
|
ai_context_block_ids?: string[];
|
|
521
558
|
resolvedContext?: string;
|
|
559
|
+
goal?: string;
|
|
560
|
+
mode?: ConversationPageMode;
|
|
561
|
+
personality?: string;
|
|
562
|
+
voice?: string;
|
|
563
|
+
topic?: string;
|
|
564
|
+
vocab?: string[];
|
|
565
|
+
questions?: string[];
|
|
566
|
+
showHints?: boolean;
|
|
522
567
|
}[]>;
|
|
523
568
|
getCard: (params: {
|
|
524
569
|
cardId: string;
|
|
@@ -594,6 +639,14 @@ declare const createCardRepo: () => {
|
|
|
594
639
|
correct_answer_exact_match?: boolean;
|
|
595
640
|
ai_context_block_ids?: string[];
|
|
596
641
|
resolvedContext?: string;
|
|
642
|
+
goal?: string;
|
|
643
|
+
mode?: ConversationPageMode;
|
|
644
|
+
personality?: string;
|
|
645
|
+
voice?: string;
|
|
646
|
+
topic?: string;
|
|
647
|
+
vocab?: string[];
|
|
648
|
+
questions?: string[];
|
|
649
|
+
showHints?: boolean;
|
|
597
650
|
} | null>;
|
|
598
651
|
};
|
|
599
652
|
|
|
@@ -844,6 +897,8 @@ interface PageScore {
|
|
|
844
897
|
transcript?: string | null;
|
|
845
898
|
} | null;
|
|
846
899
|
transcriptModel?: 'gemini' | 'assemblyai' | 'whisper';
|
|
900
|
+
createdAt?: CustomTimestamp;
|
|
901
|
+
finishedAt?: CustomTimestamp;
|
|
847
902
|
}
|
|
848
903
|
|
|
849
904
|
declare enum AssignmentAnalyticsType {
|
|
@@ -1454,6 +1509,14 @@ declare function createFsClientBase({ db, helpers, httpsCallable, logEvent, }: {
|
|
|
1454
1509
|
correct_answer_exact_match?: boolean;
|
|
1455
1510
|
ai_context_block_ids?: string[];
|
|
1456
1511
|
resolvedContext?: string;
|
|
1512
|
+
goal?: string;
|
|
1513
|
+
mode?: ConversationPageMode;
|
|
1514
|
+
personality?: string;
|
|
1515
|
+
voice?: string;
|
|
1516
|
+
topic?: string;
|
|
1517
|
+
vocab?: string[];
|
|
1518
|
+
questions?: string[];
|
|
1519
|
+
showHints?: boolean;
|
|
1457
1520
|
}[]>;
|
|
1458
1521
|
getCard: (params: {
|
|
1459
1522
|
cardId: string;
|
|
@@ -1529,6 +1592,14 @@ declare function createFsClientBase({ db, helpers, httpsCallable, logEvent, }: {
|
|
|
1529
1592
|
correct_answer_exact_match?: boolean;
|
|
1530
1593
|
ai_context_block_ids?: string[];
|
|
1531
1594
|
resolvedContext?: string;
|
|
1595
|
+
goal?: string;
|
|
1596
|
+
mode?: ConversationPageMode;
|
|
1597
|
+
personality?: string;
|
|
1598
|
+
voice?: string;
|
|
1599
|
+
topic?: string;
|
|
1600
|
+
vocab?: string[];
|
|
1601
|
+
questions?: string[];
|
|
1602
|
+
showHints?: boolean;
|
|
1532
1603
|
} | null>;
|
|
1533
1604
|
};
|
|
1534
1605
|
};
|
|
@@ -1788,6 +1859,14 @@ declare function useActivity({ id, isAssignment, onAssignmentSubmitted, ltiData,
|
|
|
1788
1859
|
correct_answer_exact_match?: boolean;
|
|
1789
1860
|
ai_context_block_ids?: string[];
|
|
1790
1861
|
resolvedContext?: string;
|
|
1862
|
+
goal?: string;
|
|
1863
|
+
mode?: ConversationPageMode;
|
|
1864
|
+
personality?: string;
|
|
1865
|
+
voice?: string;
|
|
1866
|
+
topic?: string;
|
|
1867
|
+
vocab?: string[];
|
|
1868
|
+
questions?: string[];
|
|
1869
|
+
showHints?: boolean;
|
|
1791
1870
|
} | null, Error>[];
|
|
1792
1871
|
cardsArray: PageActivityWithId[];
|
|
1793
1872
|
};
|
|
@@ -3336,6 +3415,14 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
|
|
|
3336
3415
|
correct_answer_exact_match?: boolean;
|
|
3337
3416
|
ai_context_block_ids?: string[];
|
|
3338
3417
|
resolvedContext?: string;
|
|
3418
|
+
goal?: string;
|
|
3419
|
+
mode?: ConversationPageMode;
|
|
3420
|
+
personality?: string;
|
|
3421
|
+
voice?: string;
|
|
3422
|
+
topic?: string;
|
|
3423
|
+
vocab?: string[];
|
|
3424
|
+
questions?: string[];
|
|
3425
|
+
showHints?: boolean;
|
|
3339
3426
|
}[]>;
|
|
3340
3427
|
getCard: (params: {
|
|
3341
3428
|
cardId: string;
|
|
@@ -3411,8 +3498,16 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
|
|
|
3411
3498
|
correct_answer_exact_match?: boolean;
|
|
3412
3499
|
ai_context_block_ids?: string[];
|
|
3413
3500
|
resolvedContext?: string;
|
|
3501
|
+
goal?: string;
|
|
3502
|
+
mode?: ConversationPageMode;
|
|
3503
|
+
personality?: string;
|
|
3504
|
+
voice?: string;
|
|
3505
|
+
topic?: string;
|
|
3506
|
+
vocab?: string[];
|
|
3507
|
+
questions?: string[];
|
|
3508
|
+
showHints?: boolean;
|
|
3414
3509
|
} | null>;
|
|
3415
3510
|
};
|
|
3416
3511
|
};
|
|
3417
3512
|
|
|
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 };
|
|
3513
|
+
export { ActivityPageType, type Assignment, type AssignmentAnalyticsType$1 as AssignmentAnalyticsType, type AssignmentWithId, BASE_MULTIPLE_CHOICE_FIELD_VALUES, BASE_REPEAT_FIELD_VALUES, BASE_RESPOND_FIELD_VALUES, CONVERSATION_PAGE_ACTIVITY_TYPES, ConversationPageMode, 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
|
@@ -34,6 +34,8 @@ __export(index_native_exports, {
|
|
|
34
34
|
BASE_MULTIPLE_CHOICE_FIELD_VALUES: () => BASE_MULTIPLE_CHOICE_FIELD_VALUES,
|
|
35
35
|
BASE_REPEAT_FIELD_VALUES: () => BASE_REPEAT_FIELD_VALUES,
|
|
36
36
|
BASE_RESPOND_FIELD_VALUES: () => BASE_RESPOND_FIELD_VALUES,
|
|
37
|
+
CONVERSATION_PAGE_ACTIVITY_TYPES: () => CONVERSATION_PAGE_ACTIVITY_TYPES,
|
|
38
|
+
ConversationPageMode: () => ConversationPageMode,
|
|
37
39
|
FeedbackTypesCard: () => FeedbackTypesCard,
|
|
38
40
|
FsCtx: () => FsCtx,
|
|
39
41
|
LENIENCY_OPTIONS: () => LENIENCY_OPTIONS,
|
|
@@ -1707,6 +1709,11 @@ var import_react_query3 = require("@tanstack/react-query");
|
|
|
1707
1709
|
var import_react2 = require("react");
|
|
1708
1710
|
|
|
1709
1711
|
// src/domains/cards/card.model.ts
|
|
1712
|
+
var ConversationPageMode = /* @__PURE__ */ ((ConversationPageMode2) => {
|
|
1713
|
+
ConversationPageMode2["VoiceAndText"] = "voice_and_text";
|
|
1714
|
+
ConversationPageMode2["PhoneCall"] = "phone_call";
|
|
1715
|
+
return ConversationPageMode2;
|
|
1716
|
+
})(ConversationPageMode || {});
|
|
1710
1717
|
var ActivityPageType = /* @__PURE__ */ ((ActivityPageType2) => {
|
|
1711
1718
|
ActivityPageType2["READ_REPEAT"] = "READ_REPEAT";
|
|
1712
1719
|
ActivityPageType2["READ_RESPOND"] = "READ_RESPOND";
|
|
@@ -1736,6 +1743,7 @@ var RESPOND_AUDIO_PAGE_ACTIVITY_TYPES = [
|
|
|
1736
1743
|
"RESPOND" /* RESPOND */,
|
|
1737
1744
|
"READ_RESPOND" /* READ_RESPOND */
|
|
1738
1745
|
];
|
|
1746
|
+
var CONVERSATION_PAGE_ACTIVITY_TYPES = ["CONVERSATION" /* CONVERSATION */];
|
|
1739
1747
|
|
|
1740
1748
|
// src/domains/cards/card.constants.ts
|
|
1741
1749
|
var FeedbackTypesCard = /* @__PURE__ */ ((FeedbackTypesCard2) => {
|
|
@@ -2112,7 +2120,9 @@ function extractTextFromRichText(richText) {
|
|
|
2112
2120
|
}
|
|
2113
2121
|
function getPagePrompt(card) {
|
|
2114
2122
|
if (!card) return { has: false, text: "", rich_text: "", isTextEqualToRichText: false };
|
|
2115
|
-
const { isMC, isRepeat, isRespond, isShortAnswer } = checkTypePageActivity(
|
|
2123
|
+
const { isMC, isRepeat, isRespond, isShortAnswer, isConversation } = checkTypePageActivity(
|
|
2124
|
+
card == null ? void 0 : card.type
|
|
2125
|
+
);
|
|
2116
2126
|
const hidePrompt = (card == null ? void 0 : card.hidePrompt) === true;
|
|
2117
2127
|
const createReturnObject = (text, richText) => {
|
|
2118
2128
|
const plainText = text || "";
|
|
@@ -2127,6 +2137,9 @@ function getPagePrompt(card) {
|
|
|
2127
2137
|
if (isRepeat) {
|
|
2128
2138
|
return createReturnObject(card == null ? void 0 : card.target_text, card == null ? void 0 : card.rich_text);
|
|
2129
2139
|
}
|
|
2140
|
+
if (isConversation) {
|
|
2141
|
+
return createReturnObject(card == null ? void 0 : card.topic, card == null ? void 0 : card.rich_text);
|
|
2142
|
+
}
|
|
2130
2143
|
if (isRespond && !hidePrompt) {
|
|
2131
2144
|
return createReturnObject(card == null ? void 0 : card.prompt, card == null ? void 0 : card.rich_text);
|
|
2132
2145
|
}
|