@gamelobby/common 1.0.198 → 1.0.202

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,4 +1,5 @@
1
1
  import { ColorsUserInfo } from './colorsUserInfo.interface';
2
+ import { Question } from './question.interface';
2
3
  import { UserBanners } from './userBanners.interface';
3
4
  export interface Creator {
4
5
  apellido: string;
@@ -9,4 +10,5 @@ export interface Creator {
9
10
  username: string;
10
11
  categories: string[];
11
12
  colors: ColorsUserInfo;
13
+ questions: Question[];
12
14
  }
@@ -1,9 +1,8 @@
1
- import { GeneralCounter } from "./generalCounter.interface";
2
1
  import { RankingEvents } from "./rankingEvents.enum";
3
2
  export interface GeneralInfoStats {
4
- [RankingEvents.WIN_MATCH]: GeneralCounter[];
5
- [RankingEvents.DRAW_MATCH]: GeneralCounter[];
6
- [RankingEvents.LOSE_MATCH]: GeneralCounter[];
7
- [RankingEvents.FIRST_LOGIN]: GeneralCounter[];
8
- [RankingEvents.DAILY_LOGIN]: GeneralCounter[];
3
+ [RankingEvents.WIN_MATCH]: number;
4
+ [RankingEvents.DRAW_MATCH]: number;
5
+ [RankingEvents.LOSE_MATCH]: number;
6
+ [RankingEvents.FIRST_LOGIN]: number;
7
+ [RankingEvents.DAILY_LOGIN]: number;
9
8
  }
@@ -53,5 +53,9 @@ export * from './rankingAwards.enum';
53
53
  export * from './rankingEvents.enum';
54
54
  export * from './rankingDetail.interface';
55
55
  export * from './userRole.interface';
56
- export * from './generalCounter.interface';
57
56
  export * from './generalInfoStats.interface';
57
+ export * from './generalCounter.interface';
58
+ export * from './rankingStats.interface';
59
+ export * from './question.interface';
60
+ export * from './questionType.enum';
61
+ export * from './userQuestion.interface';
@@ -65,5 +65,9 @@ __exportStar(require("./rankingAwards.enum"), exports);
65
65
  __exportStar(require("./rankingEvents.enum"), exports);
66
66
  __exportStar(require("./rankingDetail.interface"), exports);
67
67
  __exportStar(require("./userRole.interface"), exports);
68
- __exportStar(require("./generalCounter.interface"), exports);
69
68
  __exportStar(require("./generalInfoStats.interface"), exports);
69
+ __exportStar(require("./generalCounter.interface"), exports);
70
+ __exportStar(require("./rankingStats.interface"), exports);
71
+ __exportStar(require("./question.interface"), exports);
72
+ __exportStar(require("./questionType.enum"), exports);
73
+ __exportStar(require("./userQuestion.interface"), exports);
@@ -0,0 +1,10 @@
1
+ import { Option } from "./option.interface";
2
+ import { QuestionType } from "./questionType.enum";
3
+ export interface Question {
4
+ _id?: string;
5
+ name: string;
6
+ options?: Option[];
7
+ value?: string;
8
+ type: QuestionType;
9
+ lastMod?: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export declare enum QuestionType {
2
+ SELECT = "SELECT",
3
+ INPUT = "INPUT"
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["SELECT"] = "SELECT";
7
+ QuestionType["INPUT"] = "INPUT";
8
+ })(QuestionType = exports.QuestionType || (exports.QuestionType = {}));
@@ -0,0 +1,6 @@
1
+ import { GeneralInfoStats } from "./generalInfoStats.interface";
2
+ export interface RankingStats {
3
+ events: GeneralInfoStats;
4
+ total: number;
5
+ position: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,10 @@
1
1
  import { ColorsUserInfo } from "./colorsUserInfo.interface";
2
+ import { Question } from "./question.interface";
2
3
  import { UserBanners } from "./userBanners.interface";
3
4
  export interface UserInfo {
4
5
  username?: string;
5
6
  banners?: UserBanners;
6
7
  categories?: string[];
7
8
  colors?: ColorsUserInfo;
9
+ questions?: Question[];
8
10
  }
@@ -0,0 +1,10 @@
1
+ import { Question } from "./question.interface";
2
+ import { UserInfo } from "./userInfo.interface";
3
+ export interface UserQuestion {
4
+ id?: string;
5
+ userInfo: UserInfo;
6
+ username: string;
7
+ questions: Question[];
8
+ createdAt: string;
9
+ updatedAt: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamelobby/common",
3
- "version": "1.0.198",
3
+ "version": "1.0.202",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",