@bmostickit/common 1.0.12 → 1.0.14

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.
@@ -1,16 +1,19 @@
1
1
  import { Subjects } from './subjects';
2
+ import { GameStatus } from './types/game-status';
3
+ import { QuestionType } from './types/quesetion-type';
2
4
  export interface QuizSelectedEvent {
3
5
  subject: Subjects.QuizSelected;
4
6
  data: {
7
+ id: string;
5
8
  userId: string;
6
- status: 'lobby' | 'in-progess' | 'completed';
9
+ status: GameStatus;
7
10
  quizSnapshot: {
8
11
  quizId: string;
9
12
  title: string;
10
13
  minPoints: number;
11
14
  maxPoints: number;
12
15
  questions: {
13
- questionType: 'short-answer' | 'multiple-choice';
16
+ questionType: QuestionType;
14
17
  question: string;
15
18
  shortAnswer?: string;
16
19
  answerOne?: string;
@@ -0,0 +1,6 @@
1
+ export declare enum GameStatus {
2
+ Lobby = "lobby",
3
+ InProgress = "in-progress",
4
+ Complete = "complete",
5
+ Cancelled = "cancelled"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GameStatus = void 0;
4
+ var GameStatus;
5
+ (function (GameStatus) {
6
+ GameStatus["Lobby"] = "lobby";
7
+ GameStatus["InProgress"] = "in-progress";
8
+ GameStatus["Complete"] = "complete";
9
+ GameStatus["Cancelled"] = "cancelled";
10
+ })(GameStatus || (exports.GameStatus = GameStatus = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum QuestionType {
2
+ ShortAnswer = "short-answer",
3
+ MultipleChoice = "multiple-choice"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QuestionType = void 0;
4
+ var QuestionType;
5
+ (function (QuestionType) {
6
+ QuestionType["ShortAnswer"] = "short-answer";
7
+ QuestionType["MultipleChoice"] = "multiple-choice";
8
+ })(QuestionType || (exports.QuestionType = QuestionType = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum QuizCategory {
2
+ Math = "math",
3
+ Science = "science",
4
+ Language = "languange",
5
+ SocialStudies = "social-studies"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QuizCategory = void 0;
4
+ var QuizCategory;
5
+ (function (QuizCategory) {
6
+ QuizCategory["Math"] = "math";
7
+ QuizCategory["Science"] = "science";
8
+ QuizCategory["Language"] = "languange";
9
+ QuizCategory["SocialStudies"] = "social-studies";
10
+ })(QuizCategory || (exports.QuizCategory = QuizCategory = {}));
package/build/index.d.ts CHANGED
@@ -14,3 +14,6 @@ export * from './events/base-publisher';
14
14
  export * from './events/subjects';
15
15
  export * from './events/quiz-selected-event';
16
16
  export * from './events/types/expirations';
17
+ export * from './events/types/game-status';
18
+ export * from './events/types/quesetion-type';
19
+ export * from './events/types/quiz-category';
package/build/index.js CHANGED
@@ -30,3 +30,6 @@ __exportStar(require("./events/base-publisher"), exports);
30
30
  __exportStar(require("./events/subjects"), exports);
31
31
  __exportStar(require("./events/quiz-selected-event"), exports);
32
32
  __exportStar(require("./events/types/expirations"), exports);
33
+ __exportStar(require("./events/types/game-status"), exports);
34
+ __exportStar(require("./events/types/quesetion-type"), exports);
35
+ __exportStar(require("./events/types/quiz-category"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bmostickit/common",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",