@quizpot/quizcore 0.0.2 → 0.0.3
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.cjs +582 -0
- package/dist/index.d.cts +472 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +472 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +522 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +4 -4
- package/dist/events/client/host/kick-player.d.ts +0 -8
- package/dist/events/client/host/kick-player.d.ts.map +0 -1
- package/dist/events/client/host/kick-player.js +0 -4
- package/dist/events/client/host/next-step.d.ts +0 -5
- package/dist/events/client/host/next-step.d.ts.map +0 -1
- package/dist/events/client/host/next-step.js +0 -3
- package/dist/events/client/host/start-lobby.d.ts +0 -6
- package/dist/events/client/host/start-lobby.d.ts.map +0 -1
- package/dist/events/client/host/start-lobby.js +0 -4
- package/dist/events/client/player/submit-answer.d.ts +0 -9
- package/dist/events/client/player/submit-answer.d.ts.map +0 -1
- package/dist/events/client/player/submit-answer.js +0 -4
- package/dist/events/server/lobby-deleted.d.ts +0 -8
- package/dist/events/server/lobby-deleted.d.ts.map +0 -1
- package/dist/events/server/lobby-deleted.js +0 -4
- package/dist/events/server/lobby-joined.d.ts +0 -14
- package/dist/events/server/lobby-joined.d.ts.map +0 -1
- package/dist/events/server/lobby-joined.js +0 -18
- package/dist/events/server/lobby-status-update.d.ts +0 -32
- package/dist/events/server/lobby-status-update.d.ts.map +0 -1
- package/dist/events/server/lobby-status-update.js +0 -4
- package/dist/events/server/player-answer-result.d.ts +0 -11
- package/dist/events/server/player-answer-result.d.ts.map +0 -1
- package/dist/events/server/player-answer-result.js +0 -4
- package/dist/events/server/player-joined.d.ts +0 -9
- package/dist/events/server/player-joined.d.ts.map +0 -1
- package/dist/events/server/player-joined.js +0 -4
- package/dist/events/server/player-kicked.d.ts +0 -6
- package/dist/events/server/player-kicked.d.ts.map +0 -1
- package/dist/events/server/player-kicked.js +0 -4
- package/dist/events/server/player-left.d.ts +0 -9
- package/dist/events/server/player-left.d.ts.map +0 -1
- package/dist/events/server/player-left.js +0 -4
- package/dist/events/server/player-update.d.ts +0 -9
- package/dist/events/server/player-update.d.ts.map +0 -1
- package/dist/events/server/player-update.js +0 -4
- package/dist/events/server/update-lobby-answers.d.ts +0 -8
- package/dist/events/server/update-lobby-answers.d.ts.map +0 -1
- package/dist/events/server/update-lobby-answers.js +0 -4
- package/dist/index.d.ts +0 -26
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -25
- package/dist/managers/lobby-manager.d.ts +0 -12
- package/dist/managers/lobby-manager.d.ts.map +0 -1
- package/dist/managers/lobby-manager.js +0 -112
- package/dist/types/events.d.ts +0 -16
- package/dist/types/events.d.ts.map +0 -1
- package/dist/types/events.js +0 -1
- package/dist/types/lobby.d.ts +0 -42
- package/dist/types/lobby.d.ts.map +0 -1
- package/dist/types/lobby.js +0 -10
- package/dist/types/question.d.ts +0 -106
- package/dist/types/question.d.ts.map +0 -1
- package/dist/types/question.js +0 -22
- package/dist/types/questions/multiple-choice.d.ts +0 -51
- package/dist/types/questions/multiple-choice.d.ts.map +0 -1
- package/dist/types/questions/multiple-choice.js +0 -21
- package/dist/types/questions/short-answer.d.ts +0 -34
- package/dist/types/questions/short-answer.d.ts.map +0 -1
- package/dist/types/questions/short-answer.js +0 -11
- package/dist/types/questions/true-false.d.ts +0 -36
- package/dist/types/questions/true-false.d.ts.map +0 -1
- package/dist/types/questions/true-false.js +0 -12
- package/dist/types/quizfile.d.ts +0 -79
- package/dist/types/quizfile.d.ts.map +0 -1
- package/dist/types/quizfile.js +0 -23
- package/dist/types/quizstep.d.ts +0 -73
- package/dist/types/quizstep.d.ts.map +0 -1
- package/dist/types/quizstep.js +0 -7
- package/dist/types/quiztheme.d.ts +0 -7
- package/dist/types/quiztheme.d.ts.map +0 -1
- package/dist/types/quiztheme.js +0 -5
- package/dist/types/slide.d.ts +0 -18
- package/dist/types/slide.d.ts.map +0 -1
- package/dist/types/slide.js +0 -9
- package/dist/types/slides/comparison.d.ts +0 -9
- package/dist/types/slides/comparison.d.ts.map +0 -1
- package/dist/types/slides/comparison.js +0 -7
- package/dist/types/slides/titleImageTextSlide.d.ts +0 -9
- package/dist/types/slides/titleImageTextSlide.d.ts.map +0 -1
- package/dist/types/slides/titleImageTextSlide.js +0 -7
- package/dist/types/slides/titleSlide.d.ts +0 -8
- package/dist/types/slides/titleSlide.d.ts.map +0 -1
- package/dist/types/slides/titleSlide.js +0 -6
- package/dist/util/guards.d.ts +0 -18
- package/dist/util/guards.d.ts.map +0 -1
- package/dist/util/guards.js +0 -15
- package/dist/util/names/additives.json +0 -23
- package/dist/util/names/animals.json +0 -23
- package/dist/util/names/colors.json +0 -14
- package/dist/util/names/names.d.ts +0 -4
- package/dist/util/names/names.d.ts.map +0 -1
- package/dist/util/names/names.js +0 -31
- package/dist/util/sanitizer.d.ts +0 -3
- package/dist/util/sanitizer.d.ts.map +0 -1
- package/dist/util/sanitizer.js +0 -18
- package/dist/util/score.d.ts +0 -11
- package/dist/util/score.d.ts.map +0 -1
- package/dist/util/score.js +0 -33
- package/dist/util/validator.d.ts +0 -14
- package/dist/util/validator.d.ts.map +0 -1
- package/dist/util/validator.js +0 -27
package/dist/types/question.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { MultipleChoiceQuestionSchema, SafeMultipleChoiceQuestionSchema } from "./questions/multiple-choice";
|
|
3
|
-
import { SafeTrueFalseQuestionSchema, TrueFalseQuestionSchema } from "./questions/true-false";
|
|
4
|
-
import { SafeShortAnswerQuestionSchema, ShortAnswerQuestionSchema } from "./questions/short-answer";
|
|
5
|
-
export const QuestionSchema = z.discriminatedUnion("type", [
|
|
6
|
-
MultipleChoiceQuestionSchema,
|
|
7
|
-
TrueFalseQuestionSchema,
|
|
8
|
-
ShortAnswerQuestionSchema,
|
|
9
|
-
]);
|
|
10
|
-
export const SafeQuestionSchema = z.discriminatedUnion("type", [
|
|
11
|
-
SafeMultipleChoiceQuestionSchema,
|
|
12
|
-
SafeTrueFalseQuestionSchema,
|
|
13
|
-
SafeShortAnswerQuestionSchema,
|
|
14
|
-
]);
|
|
15
|
-
export const QuestionPointsSchema = z.enum(["normalPoints", "doublePoints", "noPoints"]);
|
|
16
|
-
export const BaseQuestionSchema = z.object({
|
|
17
|
-
question: z.string().min(1),
|
|
18
|
-
imageHash: z.hash("sha256", { error: "Invalid image hash" }).optional(),
|
|
19
|
-
displayTime: z.number().min(1).max(60),
|
|
20
|
-
timeLimit: z.number().min(1).max(180),
|
|
21
|
-
points: QuestionPointsSchema,
|
|
22
|
-
});
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const ChoiceSchema: z.ZodObject<{
|
|
3
|
-
text: z.ZodString;
|
|
4
|
-
correct: z.ZodBoolean;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
export type Choice = z.infer<typeof ChoiceSchema>;
|
|
7
|
-
export declare const SafeChoiceSchema: z.ZodObject<{
|
|
8
|
-
text: z.ZodString;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
export type SafeChoice = z.infer<typeof SafeChoiceSchema>;
|
|
11
|
-
export declare const MultipleChoiceQuestionSchema: z.ZodObject<{
|
|
12
|
-
question: z.ZodString;
|
|
13
|
-
imageHash: z.ZodOptional<z.ZodCustomStringFormat<"sha256_hex">>;
|
|
14
|
-
displayTime: z.ZodNumber;
|
|
15
|
-
timeLimit: z.ZodNumber;
|
|
16
|
-
points: z.ZodEnum<{
|
|
17
|
-
normalPoints: "normalPoints";
|
|
18
|
-
doublePoints: "doublePoints";
|
|
19
|
-
noPoints: "noPoints";
|
|
20
|
-
}>;
|
|
21
|
-
type: z.ZodLiteral<"multiple-choice">;
|
|
22
|
-
choices: z.ZodArray<z.ZodObject<{
|
|
23
|
-
text: z.ZodString;
|
|
24
|
-
correct: z.ZodBoolean;
|
|
25
|
-
}, z.core.$strip>>;
|
|
26
|
-
matchAll: z.ZodBoolean;
|
|
27
|
-
}, z.core.$strip>;
|
|
28
|
-
export type MultipleChoiceQuestion = z.infer<typeof MultipleChoiceQuestionSchema>;
|
|
29
|
-
export declare const SafeMultipleChoiceQuestionSchema: z.ZodObject<{
|
|
30
|
-
points: z.ZodEnum<{
|
|
31
|
-
normalPoints: "normalPoints";
|
|
32
|
-
doublePoints: "doublePoints";
|
|
33
|
-
noPoints: "noPoints";
|
|
34
|
-
}>;
|
|
35
|
-
type: z.ZodLiteral<"multiple-choice">;
|
|
36
|
-
question: z.ZodString;
|
|
37
|
-
imageHash: z.ZodOptional<z.ZodCustomStringFormat<"sha256_hex">>;
|
|
38
|
-
displayTime: z.ZodNumber;
|
|
39
|
-
timeLimit: z.ZodNumber;
|
|
40
|
-
matchAll: z.ZodBoolean;
|
|
41
|
-
choices: z.ZodArray<z.ZodObject<{
|
|
42
|
-
text: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
export type SafeMultipleChoiceQuestion = z.infer<typeof SafeMultipleChoiceQuestionSchema>;
|
|
46
|
-
export declare const MultipleChoiceQuestionAnswerSchema: z.ZodObject<{
|
|
47
|
-
type: z.ZodLiteral<"multiple-choice">;
|
|
48
|
-
choices: z.ZodArray<z.ZodNumber>;
|
|
49
|
-
}, z.core.$strip>;
|
|
50
|
-
export type MultipleChoiceQuestionAnswer = z.infer<typeof MultipleChoiceQuestionAnswerSchema>;
|
|
51
|
-
//# sourceMappingURL=multiple-choice.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multiple-choice.d.ts","sourceRoot":"","sources":["../../../src/types/questions/multiple-choice.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,YAAY;;;iBAGvB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,gBAAgB;;iBAAuC,CAAC;AAErE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;iBAIvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;iBAI3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,eAAO,MAAM,kCAAkC;;;iBAG7C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { BaseQuestionSchema } from "../question";
|
|
3
|
-
export const ChoiceSchema = z.object({
|
|
4
|
-
text: z.string(),
|
|
5
|
-
correct: z.boolean(),
|
|
6
|
-
});
|
|
7
|
-
export const SafeChoiceSchema = ChoiceSchema.omit({ correct: true });
|
|
8
|
-
export const MultipleChoiceQuestionSchema = BaseQuestionSchema.extend({
|
|
9
|
-
type: z.literal("multiple-choice"),
|
|
10
|
-
choices: z.array(ChoiceSchema).min(2),
|
|
11
|
-
matchAll: z.boolean(),
|
|
12
|
-
});
|
|
13
|
-
export const SafeMultipleChoiceQuestionSchema = MultipleChoiceQuestionSchema.omit({
|
|
14
|
-
choices: true
|
|
15
|
-
}).extend({
|
|
16
|
-
choices: z.array(SafeChoiceSchema).min(2),
|
|
17
|
-
});
|
|
18
|
-
export const MultipleChoiceQuestionAnswerSchema = z.object({
|
|
19
|
-
type: z.literal("multiple-choice"),
|
|
20
|
-
choices: z.array(z.number()).min(1),
|
|
21
|
-
});
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const ShortAnswerQuestionSchema: z.ZodObject<{
|
|
3
|
-
question: z.ZodString;
|
|
4
|
-
imageHash: z.ZodOptional<z.ZodCustomStringFormat<"sha256_hex">>;
|
|
5
|
-
displayTime: z.ZodNumber;
|
|
6
|
-
timeLimit: z.ZodNumber;
|
|
7
|
-
points: z.ZodEnum<{
|
|
8
|
-
normalPoints: "normalPoints";
|
|
9
|
-
doublePoints: "doublePoints";
|
|
10
|
-
noPoints: "noPoints";
|
|
11
|
-
}>;
|
|
12
|
-
type: z.ZodLiteral<"short-answer">;
|
|
13
|
-
answers: z.ZodArray<z.ZodString>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
export type ShortAnswerQuestion = z.infer<typeof ShortAnswerQuestionSchema>;
|
|
16
|
-
export declare const SafeShortAnswerQuestionSchema: z.ZodObject<{
|
|
17
|
-
points: z.ZodEnum<{
|
|
18
|
-
normalPoints: "normalPoints";
|
|
19
|
-
doublePoints: "doublePoints";
|
|
20
|
-
noPoints: "noPoints";
|
|
21
|
-
}>;
|
|
22
|
-
type: z.ZodLiteral<"short-answer">;
|
|
23
|
-
question: z.ZodString;
|
|
24
|
-
imageHash: z.ZodOptional<z.ZodCustomStringFormat<"sha256_hex">>;
|
|
25
|
-
displayTime: z.ZodNumber;
|
|
26
|
-
timeLimit: z.ZodNumber;
|
|
27
|
-
}, z.core.$strip>;
|
|
28
|
-
export type SafeShortAnswerQuestion = z.infer<typeof SafeShortAnswerQuestionSchema>;
|
|
29
|
-
export declare const ShortAnswerQuestionAnswerSchema: z.ZodObject<{
|
|
30
|
-
type: z.ZodLiteral<"short-answer">;
|
|
31
|
-
answer: z.ZodString;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
export type ShortAnswerQuestionAnswer = z.infer<typeof ShortAnswerQuestionAnswerSchema>;
|
|
34
|
-
//# sourceMappingURL=short-answer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"short-answer.d.ts","sourceRoot":"","sources":["../../../src/types/questions/short-answer.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;iBAGpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,6BAA6B;;;;;;;;;;;iBAAoD,CAAC;AAE/F,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,+BAA+B;;;iBAG1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { BaseQuestionSchema } from "../question";
|
|
3
|
-
export const ShortAnswerQuestionSchema = BaseQuestionSchema.extend({
|
|
4
|
-
type: z.literal("short-answer"),
|
|
5
|
-
answers: z.array(z.string()).min(1),
|
|
6
|
-
});
|
|
7
|
-
export const SafeShortAnswerQuestionSchema = ShortAnswerQuestionSchema.omit({ answers: true });
|
|
8
|
-
export const ShortAnswerQuestionAnswerSchema = z.object({
|
|
9
|
-
type: z.literal("short-answer"),
|
|
10
|
-
answer: z.string(),
|
|
11
|
-
});
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const TrueFalseQuestionSchema: z.ZodObject<{
|
|
3
|
-
question: z.ZodString;
|
|
4
|
-
imageHash: z.ZodOptional<z.ZodCustomStringFormat<"sha256_hex">>;
|
|
5
|
-
displayTime: z.ZodNumber;
|
|
6
|
-
timeLimit: z.ZodNumber;
|
|
7
|
-
points: z.ZodEnum<{
|
|
8
|
-
normalPoints: "normalPoints";
|
|
9
|
-
doublePoints: "doublePoints";
|
|
10
|
-
noPoints: "noPoints";
|
|
11
|
-
}>;
|
|
12
|
-
type: z.ZodLiteral<"true-false">;
|
|
13
|
-
answer: z.ZodBoolean;
|
|
14
|
-
labels: z.ZodArray<z.ZodString>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
export type TrueFalseQuestion = z.infer<typeof TrueFalseQuestionSchema>;
|
|
17
|
-
export declare const SafeTrueFalseQuestionSchema: z.ZodObject<{
|
|
18
|
-
points: z.ZodEnum<{
|
|
19
|
-
normalPoints: "normalPoints";
|
|
20
|
-
doublePoints: "doublePoints";
|
|
21
|
-
noPoints: "noPoints";
|
|
22
|
-
}>;
|
|
23
|
-
type: z.ZodLiteral<"true-false">;
|
|
24
|
-
question: z.ZodString;
|
|
25
|
-
imageHash: z.ZodOptional<z.ZodCustomStringFormat<"sha256_hex">>;
|
|
26
|
-
displayTime: z.ZodNumber;
|
|
27
|
-
timeLimit: z.ZodNumber;
|
|
28
|
-
labels: z.ZodArray<z.ZodString>;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
export type SafeTrueFalseQuestion = z.infer<typeof SafeTrueFalseQuestionSchema>;
|
|
31
|
-
export declare const TrueFalseQuestionAnswerSchema: z.ZodObject<{
|
|
32
|
-
type: z.ZodLiteral<"true-false">;
|
|
33
|
-
answer: z.ZodBoolean;
|
|
34
|
-
}, z.core.$strip>;
|
|
35
|
-
export type TrueFalseQuestionAnswer = z.infer<typeof TrueFalseQuestionAnswerSchema>;
|
|
36
|
-
//# sourceMappingURL=true-false.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"true-false.d.ts","sourceRoot":"","sources":["../../../src/types/questions/true-false.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;iBAIlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;iBAAiD,CAAC;AAE1F,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,6BAA6B;;;iBAGxC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { BaseQuestionSchema } from "../question";
|
|
3
|
-
export const TrueFalseQuestionSchema = BaseQuestionSchema.extend({
|
|
4
|
-
type: z.literal("true-false"),
|
|
5
|
-
answer: z.boolean(),
|
|
6
|
-
labels: z.array(z.string()).min(2).max(2),
|
|
7
|
-
});
|
|
8
|
-
export const SafeTrueFalseQuestionSchema = TrueFalseQuestionSchema.omit({ answer: true });
|
|
9
|
-
export const TrueFalseQuestionAnswerSchema = z.object({
|
|
10
|
-
type: z.literal("true-false"),
|
|
11
|
-
answer: z.boolean(),
|
|
12
|
-
});
|
package/dist/types/quizfile.d.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export type QuizFile = z.infer<typeof QuizFileSchema>;
|
|
3
|
-
export declare const QuizFileSchema: z.ZodObject<{
|
|
4
|
-
id: z.ZodUUID;
|
|
5
|
-
version: z.ZodLiteral<2>;
|
|
6
|
-
title: z.ZodString;
|
|
7
|
-
description: z.ZodOptional<z.ZodString>;
|
|
8
|
-
theme: z.ZodObject<{
|
|
9
|
-
color: z.ZodString;
|
|
10
|
-
background: z.ZodOptional<z.ZodCustomStringFormat<"sha256_hex">>;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
language: z.ZodString;
|
|
13
|
-
steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14
|
-
type: z.ZodLiteral<"question">;
|
|
15
|
-
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16
|
-
question: z.ZodString;
|
|
17
|
-
imageHash: z.ZodOptional<z.ZodCustomStringFormat<"sha256_hex">>;
|
|
18
|
-
displayTime: z.ZodNumber;
|
|
19
|
-
timeLimit: z.ZodNumber;
|
|
20
|
-
points: z.ZodEnum<{
|
|
21
|
-
normalPoints: "normalPoints";
|
|
22
|
-
doublePoints: "doublePoints";
|
|
23
|
-
noPoints: "noPoints";
|
|
24
|
-
}>;
|
|
25
|
-
type: z.ZodLiteral<"multiple-choice">;
|
|
26
|
-
choices: z.ZodArray<z.ZodObject<{
|
|
27
|
-
text: z.ZodString;
|
|
28
|
-
correct: z.ZodBoolean;
|
|
29
|
-
}, z.core.$strip>>;
|
|
30
|
-
matchAll: z.ZodBoolean;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
question: z.ZodString;
|
|
33
|
-
imageHash: z.ZodOptional<z.ZodCustomStringFormat<"sha256_hex">>;
|
|
34
|
-
displayTime: z.ZodNumber;
|
|
35
|
-
timeLimit: z.ZodNumber;
|
|
36
|
-
points: z.ZodEnum<{
|
|
37
|
-
normalPoints: "normalPoints";
|
|
38
|
-
doublePoints: "doublePoints";
|
|
39
|
-
noPoints: "noPoints";
|
|
40
|
-
}>;
|
|
41
|
-
type: z.ZodLiteral<"true-false">;
|
|
42
|
-
answer: z.ZodBoolean;
|
|
43
|
-
labels: z.ZodArray<z.ZodString>;
|
|
44
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
-
question: z.ZodString;
|
|
46
|
-
imageHash: z.ZodOptional<z.ZodCustomStringFormat<"sha256_hex">>;
|
|
47
|
-
displayTime: z.ZodNumber;
|
|
48
|
-
timeLimit: z.ZodNumber;
|
|
49
|
-
points: z.ZodEnum<{
|
|
50
|
-
normalPoints: "normalPoints";
|
|
51
|
-
doublePoints: "doublePoints";
|
|
52
|
-
noPoints: "noPoints";
|
|
53
|
-
}>;
|
|
54
|
-
type: z.ZodLiteral<"short-answer">;
|
|
55
|
-
answers: z.ZodArray<z.ZodString>;
|
|
56
|
-
}, z.core.$strip>], "type">;
|
|
57
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
-
type: z.ZodLiteral<"slide">;
|
|
59
|
-
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
60
|
-
slideType: z.ZodLiteral<"title">;
|
|
61
|
-
title: z.ZodString;
|
|
62
|
-
subtitle: z.ZodOptional<z.ZodString>;
|
|
63
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
-
slideType: z.ZodLiteral<"titleImageText">;
|
|
65
|
-
title: z.ZodString;
|
|
66
|
-
imageHash: z.ZodOptional<z.ZodCustomStringFormat<"sha256_hex">>;
|
|
67
|
-
text: z.ZodString;
|
|
68
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
-
slideType: z.ZodLiteral<"comparison">;
|
|
70
|
-
title: z.ZodString;
|
|
71
|
-
left: z.ZodString;
|
|
72
|
-
right: z.ZodString;
|
|
73
|
-
}, z.core.$strip>], "slideType">;
|
|
74
|
-
}, z.core.$strip>], "type">>;
|
|
75
|
-
images: z.ZodRecord<z.ZodCustomStringFormat<"sha256_hex">, z.ZodString>;
|
|
76
|
-
updatedAt: z.ZodISODateTime;
|
|
77
|
-
createdAt: z.ZodISODateTime;
|
|
78
|
-
}, z.core.$strip>;
|
|
79
|
-
//# sourceMappingURL=quizfile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quizfile.d.ts","sourceRoot":"","sources":["../../src/types/quizfile.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0BzB,CAAC"}
|
package/dist/types/quizfile.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { QuizThemeSchema } from "./quiztheme";
|
|
3
|
-
import { QuizStepSchema } from "./quizstep";
|
|
4
|
-
export const QuizFileSchema = z.object({
|
|
5
|
-
id: z.uuid(),
|
|
6
|
-
version: z.literal(2),
|
|
7
|
-
title: z.string()
|
|
8
|
-
.min(1, "Title must be atleast 1 character long")
|
|
9
|
-
.max(64, "Title can't be longer than 64 characters"),
|
|
10
|
-
description: z.string()
|
|
11
|
-
.max(255, "Description can't be longer than 256 characters")
|
|
12
|
-
.optional(),
|
|
13
|
-
theme: QuizThemeSchema,
|
|
14
|
-
language: z.string()
|
|
15
|
-
.length(2, "Language must be a 2-letter ISO 639-1 code"),
|
|
16
|
-
steps: z.array(QuizStepSchema)
|
|
17
|
-
.min(1, "Quiz must have at least 1 step"),
|
|
18
|
-
images: z.record(z.hash("sha256", { error: "Invalid image hash" }), z.string().refine((val) => {
|
|
19
|
-
return val.startsWith("http") || val.startsWith("data:image/");
|
|
20
|
-
}, "Image must be a valid URL or Base64 data string")),
|
|
21
|
-
updatedAt: z.iso.datetime(),
|
|
22
|
-
createdAt: z.iso.datetime(),
|
|
23
|
-
});
|
package/dist/types/quizstep.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { Question } from "./question";
|
|
3
|
-
import { Slide } from "./slide";
|
|
4
|
-
export type QuizStep = {
|
|
5
|
-
type: "question";
|
|
6
|
-
data: Question;
|
|
7
|
-
} | {
|
|
8
|
-
type: "slide";
|
|
9
|
-
data: Slide;
|
|
10
|
-
};
|
|
11
|
-
export declare const QuizStepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12
|
-
type: z.ZodLiteral<"question">;
|
|
13
|
-
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14
|
-
question: z.ZodString;
|
|
15
|
-
imageHash: z.ZodOptional<z.ZodCustomStringFormat<"sha256_hex">>;
|
|
16
|
-
displayTime: z.ZodNumber;
|
|
17
|
-
timeLimit: z.ZodNumber;
|
|
18
|
-
points: z.ZodEnum<{
|
|
19
|
-
normalPoints: "normalPoints";
|
|
20
|
-
doublePoints: "doublePoints";
|
|
21
|
-
noPoints: "noPoints";
|
|
22
|
-
}>;
|
|
23
|
-
type: z.ZodLiteral<"multiple-choice">;
|
|
24
|
-
choices: z.ZodArray<z.ZodObject<{
|
|
25
|
-
text: z.ZodString;
|
|
26
|
-
correct: z.ZodBoolean;
|
|
27
|
-
}, z.core.$strip>>;
|
|
28
|
-
matchAll: z.ZodBoolean;
|
|
29
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
-
question: z.ZodString;
|
|
31
|
-
imageHash: z.ZodOptional<z.ZodCustomStringFormat<"sha256_hex">>;
|
|
32
|
-
displayTime: z.ZodNumber;
|
|
33
|
-
timeLimit: z.ZodNumber;
|
|
34
|
-
points: z.ZodEnum<{
|
|
35
|
-
normalPoints: "normalPoints";
|
|
36
|
-
doublePoints: "doublePoints";
|
|
37
|
-
noPoints: "noPoints";
|
|
38
|
-
}>;
|
|
39
|
-
type: z.ZodLiteral<"true-false">;
|
|
40
|
-
answer: z.ZodBoolean;
|
|
41
|
-
labels: z.ZodArray<z.ZodString>;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
question: z.ZodString;
|
|
44
|
-
imageHash: z.ZodOptional<z.ZodCustomStringFormat<"sha256_hex">>;
|
|
45
|
-
displayTime: z.ZodNumber;
|
|
46
|
-
timeLimit: z.ZodNumber;
|
|
47
|
-
points: z.ZodEnum<{
|
|
48
|
-
normalPoints: "normalPoints";
|
|
49
|
-
doublePoints: "doublePoints";
|
|
50
|
-
noPoints: "noPoints";
|
|
51
|
-
}>;
|
|
52
|
-
type: z.ZodLiteral<"short-answer">;
|
|
53
|
-
answers: z.ZodArray<z.ZodString>;
|
|
54
|
-
}, z.core.$strip>], "type">;
|
|
55
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
-
type: z.ZodLiteral<"slide">;
|
|
57
|
-
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
58
|
-
slideType: z.ZodLiteral<"title">;
|
|
59
|
-
title: z.ZodString;
|
|
60
|
-
subtitle: z.ZodOptional<z.ZodString>;
|
|
61
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
-
slideType: z.ZodLiteral<"titleImageText">;
|
|
63
|
-
title: z.ZodString;
|
|
64
|
-
imageHash: z.ZodOptional<z.ZodCustomStringFormat<"sha256_hex">>;
|
|
65
|
-
text: z.ZodString;
|
|
66
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
-
slideType: z.ZodLiteral<"comparison">;
|
|
68
|
-
title: z.ZodString;
|
|
69
|
-
left: z.ZodString;
|
|
70
|
-
right: z.ZodString;
|
|
71
|
-
}, z.core.$strip>], "slideType">;
|
|
72
|
-
}, z.core.$strip>], "type">;
|
|
73
|
-
//# sourceMappingURL=quizstep.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quizstep.d.ts","sourceRoot":"","sources":["../../src/types/quizstep.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAkB,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,KAAK,EAAe,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,QAAQ,GAChB;IACE,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,QAAQ,CAAC;CAChB,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,KAAK,CAAC;CACb,CAAC;AAEN,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAGzB,CAAC"}
|
package/dist/types/quizstep.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { QuestionSchema } from "./question";
|
|
3
|
-
import { SlideSchema } from "./slide";
|
|
4
|
-
export const QuizStepSchema = z.discriminatedUnion("type", [
|
|
5
|
-
z.object({ type: z.literal("question"), data: QuestionSchema }),
|
|
6
|
-
z.object({ type: z.literal("slide"), data: SlideSchema }),
|
|
7
|
-
]);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export type QuizTheme = z.infer<typeof QuizThemeSchema>;
|
|
3
|
-
export declare const QuizThemeSchema: z.ZodObject<{
|
|
4
|
-
color: z.ZodString;
|
|
5
|
-
background: z.ZodOptional<z.ZodCustomStringFormat<"sha256_hex">>;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
//# sourceMappingURL=quiztheme.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quiztheme.d.ts","sourceRoot":"","sources":["../../src/types/quiztheme.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,eAAe;;;iBAM1B,CAAC"}
|
package/dist/types/quiztheme.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export const QuizThemeSchema = z.object({
|
|
3
|
-
color: z.string().regex(/^#[0-9a-fA-F]{6}$/, { message: 'Invalid color format. Must be a 7-character hex code (e.g., #RRGGBB).' }),
|
|
4
|
-
background: z.hash("sha256", { error: "Invalid background hash" }).optional(),
|
|
5
|
-
});
|
package/dist/types/slide.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export type Slide = z.infer<typeof SlideSchema>;
|
|
3
|
-
export declare const SlideSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4
|
-
slideType: z.ZodLiteral<"title">;
|
|
5
|
-
title: z.ZodString;
|
|
6
|
-
subtitle: z.ZodOptional<z.ZodString>;
|
|
7
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
8
|
-
slideType: z.ZodLiteral<"titleImageText">;
|
|
9
|
-
title: z.ZodString;
|
|
10
|
-
imageHash: z.ZodOptional<z.ZodCustomStringFormat<"sha256_hex">>;
|
|
11
|
-
text: z.ZodString;
|
|
12
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
-
slideType: z.ZodLiteral<"comparison">;
|
|
14
|
-
title: z.ZodString;
|
|
15
|
-
left: z.ZodString;
|
|
16
|
-
right: z.ZodString;
|
|
17
|
-
}, z.core.$strip>], "slideType">;
|
|
18
|
-
//# sourceMappingURL=slide.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slide.d.ts","sourceRoot":"","sources":["../../src/types/slide.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAKpB,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;gCAItB,CAAC"}
|
package/dist/types/slide.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { TitleSlideLayoutSchema } from "./slides/titleSlide";
|
|
3
|
-
import { TitleImageTextSlideLayoutSchema } from "./slides/titleImageTextSlide";
|
|
4
|
-
import { ComparisonSlideLayoutSchema } from "./slides/comparison";
|
|
5
|
-
export const SlideSchema = z.discriminatedUnion("slideType", [
|
|
6
|
-
TitleSlideLayoutSchema,
|
|
7
|
-
TitleImageTextSlideLayoutSchema,
|
|
8
|
-
ComparisonSlideLayoutSchema
|
|
9
|
-
]);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const ComparisonSlideLayoutSchema: z.ZodObject<{
|
|
3
|
-
slideType: z.ZodLiteral<"comparison">;
|
|
4
|
-
title: z.ZodString;
|
|
5
|
-
left: z.ZodString;
|
|
6
|
-
right: z.ZodString;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
export type ComparisonSlideLayout = z.infer<typeof ComparisonSlideLayoutSchema>;
|
|
9
|
-
//# sourceMappingURL=comparison.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"comparison.d.ts","sourceRoot":"","sources":["../../../src/types/slides/comparison.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,2BAA2B;;;;;iBAKtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const TitleImageTextSlideLayoutSchema: z.ZodObject<{
|
|
3
|
-
slideType: z.ZodLiteral<"titleImageText">;
|
|
4
|
-
title: z.ZodString;
|
|
5
|
-
imageHash: z.ZodOptional<z.ZodCustomStringFormat<"sha256_hex">>;
|
|
6
|
-
text: z.ZodString;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
export type TitleImageTextSlideLayout = z.infer<typeof TitleImageTextSlideLayoutSchema>;
|
|
9
|
-
//# sourceMappingURL=titleImageTextSlide.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"titleImageTextSlide.d.ts","sourceRoot":"","sources":["../../../src/types/slides/titleImageTextSlide.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,+BAA+B;;;;;iBAK1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
export declare const TitleSlideLayoutSchema: z.ZodObject<{
|
|
3
|
-
slideType: z.ZodLiteral<"title">;
|
|
4
|
-
title: z.ZodString;
|
|
5
|
-
subtitle: z.ZodOptional<z.ZodString>;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export type TitleSlideLayout = z.infer<typeof TitleSlideLayoutSchema>;
|
|
8
|
-
//# sourceMappingURL=titleSlide.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"titleSlide.d.ts","sourceRoot":"","sources":["../../../src/types/slides/titleSlide.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
package/dist/util/guards.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Question } from "../types/question";
|
|
2
|
-
import { MultipleChoiceQuestion } from "../types/questions/multiple-choice";
|
|
3
|
-
import { ShortAnswerQuestion } from "../types/questions/short-answer";
|
|
4
|
-
import { TrueFalseQuestion } from "../types/questions/true-false";
|
|
5
|
-
import { QuizStep } from "../types/quizstep";
|
|
6
|
-
import { Slide } from "../types/slide";
|
|
7
|
-
export declare const isQuestion: (step: QuizStep) => step is {
|
|
8
|
-
type: "question";
|
|
9
|
-
data: Question;
|
|
10
|
-
};
|
|
11
|
-
export declare const isSlide: (step: QuizStep) => step is {
|
|
12
|
-
type: "slide";
|
|
13
|
-
data: Slide;
|
|
14
|
-
};
|
|
15
|
-
export declare const isMultipleChoice: (data: Question) => data is MultipleChoiceQuestion;
|
|
16
|
-
export declare const isTrueFalse: (data: Question) => data is TrueFalseQuestion;
|
|
17
|
-
export declare const isShortAnswer: (data: Question) => data is ShortAnswerQuestion;
|
|
18
|
-
//# sourceMappingURL=guards.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../src/util/guards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,eAAO,MAAM,UAAU,GAAI,MAAM,QAAQ,KAAG,IAAI,IAAI;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAErF,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,MAAM,QAAQ,KAAG,IAAI,IAAI;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,KAAK,CAAA;CAE5E,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,MAAM,QAAQ,KAAG,IAAI,IAAI,sBAEzD,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,MAAM,QAAQ,KAAG,IAAI,IAAI,iBAEpD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,MAAM,QAAQ,KAAG,IAAI,IAAI,mBAEtD,CAAC"}
|
package/dist/util/guards.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export const isQuestion = (step) => {
|
|
2
|
-
return step.type === "question";
|
|
3
|
-
};
|
|
4
|
-
export const isSlide = (step) => {
|
|
5
|
-
return step.type === "slide";
|
|
6
|
-
};
|
|
7
|
-
export const isMultipleChoice = (data) => {
|
|
8
|
-
return data.type === "multiple-choice";
|
|
9
|
-
};
|
|
10
|
-
export const isTrueFalse = (data) => {
|
|
11
|
-
return data.type === "true-false";
|
|
12
|
-
};
|
|
13
|
-
export const isShortAnswer = (data) => {
|
|
14
|
-
return data.type === "short-answer";
|
|
15
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
"Funny",
|
|
3
|
-
"Happy",
|
|
4
|
-
"Sad",
|
|
5
|
-
"Angry",
|
|
6
|
-
"Scary",
|
|
7
|
-
"Serious",
|
|
8
|
-
"Cautious",
|
|
9
|
-
"Joyful",
|
|
10
|
-
"Broken",
|
|
11
|
-
"Smart",
|
|
12
|
-
"Shy",
|
|
13
|
-
"Silly",
|
|
14
|
-
"Lazy",
|
|
15
|
-
"Cheerful",
|
|
16
|
-
"Calm",
|
|
17
|
-
"Sleepy",
|
|
18
|
-
"Tired",
|
|
19
|
-
"Lonely",
|
|
20
|
-
"Crazy",
|
|
21
|
-
"Mad",
|
|
22
|
-
"Gentle"
|
|
23
|
-
]
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
"Dog",
|
|
3
|
-
"Cat",
|
|
4
|
-
"Rabbit",
|
|
5
|
-
"Lion",
|
|
6
|
-
"Tiger",
|
|
7
|
-
"Bear",
|
|
8
|
-
"Wolf",
|
|
9
|
-
"Fox",
|
|
10
|
-
"Panda",
|
|
11
|
-
"Elephant",
|
|
12
|
-
"Gorilla",
|
|
13
|
-
"Giraffe",
|
|
14
|
-
"Hippo",
|
|
15
|
-
"Rhino",
|
|
16
|
-
"Zebra",
|
|
17
|
-
"Crocodile",
|
|
18
|
-
"Alligator",
|
|
19
|
-
"Octopus",
|
|
20
|
-
"Butterfly",
|
|
21
|
-
"Bee",
|
|
22
|
-
"Ant"
|
|
23
|
-
]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"names.d.ts","sourceRoot":"","sources":["../../../src/util/names/names.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,YAAY,QAAO,MAM/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,SAAS,MAAM,EAAE,KAAG,MAwBtD,CAAC"}
|