@bprotsyk/aso-core 1.1.23 → 1.1.26
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/flash/flash-app.d.ts +2 -0
- package/lib/flash/flash-app.js +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +4 -1
- package/lib/panel/user.d.ts +44 -0
- package/lib/panel/user.js +26 -0
- package/package.json +1 -1
- package/src/flash/flash-app.ts +2 -6
- package/src/index.ts +3 -1
- package/src/panel/user.ts +33 -0
package/lib/flash/flash-app.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ import { Model, Schema } from "mongoose";
|
|
|
26
26
|
export interface IFlashApp {
|
|
27
27
|
id: number;
|
|
28
28
|
name: string;
|
|
29
|
+
trackingUrl: string;
|
|
29
30
|
email: string;
|
|
30
31
|
bundle: string;
|
|
31
32
|
pushesEnabled?: boolean;
|
|
@@ -55,6 +56,7 @@ export declare const FlashAppSchema: Schema<any, Model<any, any, any, any, any>,
|
|
|
55
56
|
enabled: boolean;
|
|
56
57
|
id?: number | undefined;
|
|
57
58
|
version?: number | undefined;
|
|
59
|
+
trackingUrl?: string | undefined;
|
|
58
60
|
onesignalAppId?: string | undefined;
|
|
59
61
|
onesignalRestApiKey?: string | undefined;
|
|
60
62
|
appsflyerEnabled?: boolean | undefined;
|
package/lib/flash/flash-app.js
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -17,3 +17,4 @@ export { IOfferWallOffer } from "./aso/offerwall/offerwall-offer";
|
|
|
17
17
|
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
|
+
export { IPanelUser, PanelUserAccessScope, PanelUserSchema } from "./panel/user";
|
package/lib/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.ASOConfigFetch = exports.FlashAppSchema = exports.ASO_v5 = exports.ASO_v4 = exports.ASO_v3 = exports.ASO_v2 = exports.ASO_v1 = exports.ASO_v0 = void 0;
|
|
26
|
+
exports.PanelUserSchema = exports.PanelUserAccessScope = exports.ASOConfigFetch = exports.FlashAppSchema = exports.ASO_v5 = exports.ASO_v4 = exports.ASO_v3 = exports.ASO_v2 = exports.ASO_v1 = exports.ASO_v0 = void 0;
|
|
27
27
|
exports.ASO_v0 = __importStar(require("./aso/config/aso-config-v0"));
|
|
28
28
|
exports.ASO_v1 = __importStar(require("./aso/config/aso-config-v1"));
|
|
29
29
|
exports.ASO_v2 = __importStar(require("./aso/config/aso-config-v2"));
|
|
@@ -33,3 +33,6 @@ exports.ASO_v5 = __importStar(require("./aso/config/aso-config-v5"));
|
|
|
33
33
|
var flash_app_1 = require("./flash/flash-app");
|
|
34
34
|
Object.defineProperty(exports, "FlashAppSchema", { enumerable: true, get: function () { return flash_app_1.FlashAppSchema; } });
|
|
35
35
|
exports.ASOConfigFetch = __importStar(require("./aso/usage-logs/aso-config-fetch-entry"));
|
|
36
|
+
var user_1 = require("./panel/user");
|
|
37
|
+
Object.defineProperty(exports, "PanelUserAccessScope", { enumerable: true, get: function () { return user_1.PanelUserAccessScope; } });
|
|
38
|
+
Object.defineProperty(exports, "PanelUserSchema", { enumerable: true, get: function () { return user_1.PanelUserSchema; } });
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import { Schema } from "mongoose";
|
|
26
|
+
export declare enum PanelUserAccessScope {
|
|
27
|
+
POLICY_GENERATOR = 0,
|
|
28
|
+
FLASH_APPS_RO = 1,
|
|
29
|
+
FLASH_APPS_RW = 2,
|
|
30
|
+
OFFERS_RO = 3,
|
|
31
|
+
OFFERS_RW = 4,
|
|
32
|
+
OFFERWALL_RO = 5,
|
|
33
|
+
OFFERWALL_RW = 6
|
|
34
|
+
}
|
|
35
|
+
export interface IPanelUser {
|
|
36
|
+
username: string;
|
|
37
|
+
passwordHash: string;
|
|
38
|
+
accessScopes: PanelUserAccessScope[];
|
|
39
|
+
}
|
|
40
|
+
export declare const PanelUserSchema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
41
|
+
accessScopes: string[];
|
|
42
|
+
passwordHash?: string | undefined;
|
|
43
|
+
username?: string | undefined;
|
|
44
|
+
}>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PanelUserSchema = exports.PanelUserAccessScope = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
var PanelUserAccessScope;
|
|
6
|
+
(function (PanelUserAccessScope) {
|
|
7
|
+
PanelUserAccessScope[PanelUserAccessScope["POLICY_GENERATOR"] = 0] = "POLICY_GENERATOR";
|
|
8
|
+
PanelUserAccessScope[PanelUserAccessScope["FLASH_APPS_RO"] = 1] = "FLASH_APPS_RO";
|
|
9
|
+
PanelUserAccessScope[PanelUserAccessScope["FLASH_APPS_RW"] = 2] = "FLASH_APPS_RW";
|
|
10
|
+
PanelUserAccessScope[PanelUserAccessScope["OFFERS_RO"] = 3] = "OFFERS_RO";
|
|
11
|
+
PanelUserAccessScope[PanelUserAccessScope["OFFERS_RW"] = 4] = "OFFERS_RW";
|
|
12
|
+
PanelUserAccessScope[PanelUserAccessScope["OFFERWALL_RO"] = 5] = "OFFERWALL_RO";
|
|
13
|
+
PanelUserAccessScope[PanelUserAccessScope["OFFERWALL_RW"] = 6] = "OFFERWALL_RW";
|
|
14
|
+
})(PanelUserAccessScope = exports.PanelUserAccessScope || (exports.PanelUserAccessScope = {}));
|
|
15
|
+
exports.PanelUserSchema = new mongoose_1.Schema({
|
|
16
|
+
username: {
|
|
17
|
+
type: String,
|
|
18
|
+
unique: true
|
|
19
|
+
},
|
|
20
|
+
passwordHash: String,
|
|
21
|
+
accessScopes: [{
|
|
22
|
+
type: String,
|
|
23
|
+
enum: PanelUserAccessScope,
|
|
24
|
+
default: [],
|
|
25
|
+
}]
|
|
26
|
+
});
|
package/package.json
CHANGED
package/src/flash/flash-app.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Model, model, Schema } from "mongoose";
|
|
|
5
5
|
export interface IFlashApp {
|
|
6
6
|
id: number
|
|
7
7
|
name: string
|
|
8
|
+
trackingUrl: string
|
|
8
9
|
email: string
|
|
9
10
|
bundle: string
|
|
10
11
|
pushesEnabled?: boolean,
|
|
@@ -34,12 +35,6 @@ export interface IAppGenerationOptions {
|
|
|
34
35
|
keyPassword: string
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
interface ILinks {
|
|
39
|
-
stream: string // https://host/{key}
|
|
40
|
-
organic: string // https://host/key
|
|
41
|
-
}
|
|
42
|
-
|
|
43
38
|
export const FlashAppSchema = new Schema({
|
|
44
39
|
id: {
|
|
45
40
|
type: Number,
|
|
@@ -49,6 +44,7 @@ export const FlashAppSchema = new Schema({
|
|
|
49
44
|
type: String,
|
|
50
45
|
default: ""
|
|
51
46
|
},
|
|
47
|
+
trackingUrl: String,
|
|
52
48
|
email: {
|
|
53
49
|
type: String,
|
|
54
50
|
default: ""
|
package/src/index.ts
CHANGED
|
@@ -20,4 +20,6 @@ export { IOfferWallResponse } from "./aso/offerwall/offerwall-response"
|
|
|
20
20
|
|
|
21
21
|
export { IFlashApp, FlashAppSchema } from "./flash/flash-app"
|
|
22
22
|
|
|
23
|
-
export * as ASOConfigFetch from "./aso/usage-logs/aso-config-fetch-entry"
|
|
23
|
+
export * as ASOConfigFetch from "./aso/usage-logs/aso-config-fetch-entry"
|
|
24
|
+
|
|
25
|
+
export { IPanelUser, PanelUserAccessScope, PanelUserSchema } from "./panel/user"
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Schema } from "mongoose"
|
|
2
|
+
|
|
3
|
+
export enum PanelUserAccessScope {
|
|
4
|
+
POLICY_GENERATOR,
|
|
5
|
+
|
|
6
|
+
FLASH_APPS_RO,
|
|
7
|
+
FLASH_APPS_RW,
|
|
8
|
+
|
|
9
|
+
OFFERS_RO,
|
|
10
|
+
OFFERS_RW,
|
|
11
|
+
|
|
12
|
+
OFFERWALL_RO,
|
|
13
|
+
OFFERWALL_RW
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface IPanelUser {
|
|
17
|
+
username: string,
|
|
18
|
+
passwordHash: string,
|
|
19
|
+
accessScopes: PanelUserAccessScope[]
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const PanelUserSchema = new Schema({
|
|
23
|
+
username: {
|
|
24
|
+
type: String,
|
|
25
|
+
unique: true
|
|
26
|
+
},
|
|
27
|
+
passwordHash: String,
|
|
28
|
+
accessScopes: [{
|
|
29
|
+
type: String,
|
|
30
|
+
enum: PanelUserAccessScope,
|
|
31
|
+
default: [],
|
|
32
|
+
}]
|
|
33
|
+
})
|