@bprotsyk/aso-core 1.2.0 → 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.
- package/lib/index.d.ts +1 -0
- package/lib/panel/auth.d.ts +1 -1
- package/lib/panel/user.d.ts +2 -2
- package/package.json +2 -2
- package/src/flash/flash-app.ts +1 -1
- package/src/index.ts +2 -1
- package/src/panel/auth.ts +1 -1
- package/src/panel/user.ts +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -18,3 +18,4 @@ export { IOfferWallResponse } from "./aso/offerwall/offerwall-response";
|
|
|
18
18
|
export { IFlashApp, FlashAppSchema } from "./flash/flash-app";
|
|
19
19
|
export * as ASOConfigFetch from "./aso/usage-logs/aso-config-fetch-entry";
|
|
20
20
|
export { IPanelUser, PanelUserAccessScope, PanelUserSchema } from "./panel/user";
|
|
21
|
+
export { IAuthToken } from "./panel/auth";
|
package/lib/panel/auth.d.ts
CHANGED
package/lib/panel/user.d.ts
CHANGED
|
@@ -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,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bprotsyk/aso-core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"prod": "tsc; git add .; git commit -m \"Stub\"; git push origin master; npm version
|
|
7
|
+
"prod": "tsc; git add .; git commit -m \"Stub\"; git push origin master; npm version patch; npm publish;",
|
|
8
8
|
"build": "tsc",
|
|
9
9
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
10
10
|
},
|
package/src/flash/flash-app.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -22,4 +22,5 @@ export { IFlashApp, FlashAppSchema } from "./flash/flash-app"
|
|
|
22
22
|
|
|
23
23
|
export * as ASOConfigFetch from "./aso/usage-logs/aso-config-fetch-entry"
|
|
24
24
|
|
|
25
|
-
export { IPanelUser, PanelUserAccessScope, PanelUserSchema } from "./panel/user"
|
|
25
|
+
export { IPanelUser, PanelUserAccessScope, PanelUserSchema } from "./panel/user"
|
|
26
|
+
export { IAuthToken } from "./panel/auth"
|
package/src/panel/auth.ts
CHANGED
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[]
|