@bprotsyk/aso-core 1.2.1 → 1.2.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.
@@ -22,7 +22,7 @@
22
22
  /// <reference types="mongoose/types/validation" />
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
- import { Schema } from "mongoose";
25
+ import { Document, Schema } from "mongoose";
26
26
  export declare enum PanelUserAccessScope {
27
27
  ADMIN = 0,
28
28
  POLICY_GENERATOR = 1,
@@ -34,7 +34,7 @@ export declare enum PanelUserAccessScope {
34
34
  OFFERWALL_RW = 7,
35
35
  ASO_LOGS = 8
36
36
  }
37
- export interface IPanelUser {
37
+ export interface IPanelUser extends Document {
38
38
  username: string;
39
39
  passwordHash: string;
40
40
  accessScopes: PanelUserAccessScope[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -32,7 +32,7 @@ export interface IAppGenerationOptions {
32
32
  keyCountryCode: string
33
33
  keyCity: string
34
34
  keyAlias: string
35
- keyPassword: string
35
+ keyPassword: string,
36
36
  }
37
37
 
38
38
  export const FlashAppSchema = new Schema({
package/src/panel/user.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Schema } from "mongoose"
1
+ import { Document, Schema } from "mongoose"
2
2
 
3
3
  export enum PanelUserAccessScope {
4
4
  ADMIN,
@@ -17,7 +17,7 @@ export enum PanelUserAccessScope {
17
17
  ASO_LOGS
18
18
  }
19
19
 
20
- export interface IPanelUser {
20
+ export interface IPanelUser extends Document {
21
21
  username: string,
22
22
  passwordHash: string,
23
23
  accessScopes: PanelUserAccessScope[]