@engagently/types 4.8.0 → 4.8.2

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.
@@ -331,6 +331,14 @@ export declare const defaultResources: {
331
331
  vote_one: string;
332
332
  vote_other: string;
333
333
  };
334
+ readonly quiz: {
335
+ "start-quiz": string;
336
+ "submit-choice": string;
337
+ "show-results": string;
338
+ "next-question": string;
339
+ progress: string;
340
+ "result-msg": string;
341
+ };
334
342
  };
335
343
  en: {
336
344
  readonly common: {
@@ -659,6 +667,14 @@ export declare const defaultResources: {
659
667
  vote_one: string;
660
668
  vote_other: string;
661
669
  };
670
+ readonly quiz: {
671
+ "start-quiz": string;
672
+ "next-question": string;
673
+ "submit-choice": string;
674
+ "show-results": string;
675
+ progress: string;
676
+ "result-msg": string;
677
+ };
662
678
  };
663
679
  };
664
680
  declare const resources: {
@@ -990,6 +1006,14 @@ declare const resources: {
990
1006
  vote_one: string;
991
1007
  vote_other: string;
992
1008
  };
1009
+ readonly quiz: {
1010
+ "start-quiz": string;
1011
+ "submit-choice": string;
1012
+ "show-results": string;
1013
+ "next-question": string;
1014
+ progress: string;
1015
+ "result-msg": string;
1016
+ };
993
1017
  };
994
1018
  en: {
995
1019
  readonly common: {
@@ -1318,6 +1342,14 @@ declare const resources: {
1318
1342
  vote_one: string;
1319
1343
  vote_other: string;
1320
1344
  };
1345
+ readonly quiz: {
1346
+ "start-quiz": string;
1347
+ "next-question": string;
1348
+ "submit-choice": string;
1349
+ "show-results": string;
1350
+ progress: string;
1351
+ "result-msg": string;
1352
+ };
1321
1353
  };
1322
1354
  };
1323
1355
  declare const options: InitOptions;
@@ -62,3 +62,22 @@ export type ChartData = {
62
62
  };
63
63
  } | null> | null;
64
64
  };
65
+ export interface QuizChoice {
66
+ id: string;
67
+ text: string;
68
+ isCorrect: boolean;
69
+ }
70
+ export interface QuizQuestion {
71
+ id: string;
72
+ text: string;
73
+ choices: QuizChoice[];
74
+ }
75
+ export interface QuizBarData {
76
+ backgroundImageUrl?: string;
77
+ title: string;
78
+ questions: QuizQuestion[];
79
+ }
80
+ export interface QuizStats {
81
+ clicks?: number;
82
+ views?: number;
83
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engagently/types",
3
- "version": "4.8.0",
3
+ "version": "4.8.2",
4
4
  "main": "./index.ts",
5
5
  "types": "dist/types/engagently.d.ts",
6
6
  "files": [