@bprotsyk/aso-core 1.2.220 → 1.2.224
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/app/app-integration.d.ts +53 -0
- package/lib/app/app-integration.js +63 -0
- package/lib/app/app-list-item.d.ts +5 -0
- package/lib/app/app-list-item.js +2 -0
- package/lib/app/app-type.d.ts +4 -0
- package/lib/app/app-type.js +8 -0
- package/lib/app/app.d.ts +177 -0
- package/lib/app/app.js +216 -0
- package/lib/general/cloudflare-domain.d.ts +42 -0
- package/lib/general/cloudflare-domain.js +12 -0
- package/lib/general/colored-text.d.ts +7 -0
- package/lib/general/colored-text.js +28 -0
- package/lib/general/domain.d.ts +92 -0
- package/lib/general/domain.js +38 -0
- package/lib/general/namecheap-domain.d.ts +80 -0
- package/lib/general/namecheap-domain.js +14 -0
- package/lib/general/push.d.ts +6 -0
- package/lib/general/push.js +2 -0
- package/lib/general/queue.d.ts +1 -0
- package/lib/general/queue.js +2 -0
- package/lib/general/shape.d.ts +18 -0
- package/lib/general/shape.js +36 -0
- package/lib/index.d.ts +13 -32
- package/lib/index.js +28 -29
- package/lib/network/keitaro/keitaro-service.d.ts +4 -4
- package/lib/offers/list.d.ts +37 -0
- package/lib/offers/list.js +12 -0
- package/lib/offers/offer.d.ts +95 -0
- package/lib/offers/offer.js +38 -0
- package/lib/offers/section.d.ts +47 -0
- package/lib/offers/section.js +20 -0
- package/lib/panel/flash/upsert-flash-app-request.d.ts +1 -1
- package/lib/utils/keitaro-utils.d.ts +7 -7
- package/package.json +1 -1
- package/src/{flash/flash-app-integration.ts → app/app-integration.ts} +1 -1
- package/src/{flash/flash-app-list-item.ts → app/app-list-item.ts} +1 -1
- package/src/{flash/flash-app-type.ts → app/app-type.ts} +1 -1
- package/src/{flash/flash-app.ts → app/app.ts} +19 -9
- package/src/{models → general}/domain.ts +1 -1
- package/src/index.ts +13 -34
- package/src/network/keitaro/keitaro-service.ts +4 -4
- package/src/offers/list.ts +20 -0
- package/src/offers/offer.ts +77 -0
- package/src/offers/section.ts +30 -0
- package/src/panel/flash/upsert-flash-app-request.ts +1 -1
- package/src/utils/keitaro-utils.ts +10 -10
- package/src/aso/config/aso-config-v0.ts +0 -441
- package/src/aso/config/aso-config-v1.ts +0 -440
- package/src/aso/config/aso-config-v2.ts +0 -399
- package/src/aso/config/aso-config-v3.ts +0 -396
- package/src/aso/config/aso-config-v4.ts +0 -305
- package/src/aso/config/aso-config-v5.ts +0 -328
- package/src/aso/config/aso-default-config.ts +0 -67
- package/src/aso/config/aso-single-response.ts +0 -6
- package/src/aso/offer/aso-customized-offer.ts +0 -12
- package/src/aso/offer/aso-offer-response.ts +0 -7
- package/src/aso/offer/aso-offer-section.ts +0 -7
- package/src/aso/offer/aso-single-offer.ts +0 -5
- package/src/aso/offerwall/auth/offerwall-auth-config.ts +0 -17
- package/src/aso/offerwall/auth/offerwall-auth-localization.ts +0 -9
- package/src/aso/offerwall/auth/offerwall-auth-submit-request.ts +0 -3
- package/src/aso/offerwall/auth/offerwall-auth-submit-response.ts +0 -3
- package/src/aso/offerwall/offerwall-home-dialog-data.ts +0 -6
- package/src/aso/offerwall/offerwall-offer.ts +0 -9
- package/src/aso/offerwall/offerwall-response.ts +0 -7
- package/src/aso/offerwall/offerwall-section.ts +0 -7
- package/src/aso/usage-logs/aso-config-fetch-entry.ts +0 -31
- package/src/shared/offer.ts +0 -12
- /package/src/{models → general}/cloudflare-domain.ts +0 -0
- /package/src/{shared → general}/colored-text.tsx +0 -0
- /package/src/{models → general}/namecheap-domain.ts +0 -0
- /package/src/{shared → general}/push.ts +0 -0
- /package/src/{shared → general}/queue.ts +0 -0
- /package/src/{shared → general}/shape.tsx +0 -0
|
@@ -0,0 +1,92 @@
|
|
|
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 { ICloudflareDomainType } from "general/cloudflare-domain";
|
|
26
|
+
import { Document, Model, Schema } from "mongoose";
|
|
27
|
+
export interface IDomain extends Document {
|
|
28
|
+
id: string;
|
|
29
|
+
namecheapId: string;
|
|
30
|
+
name: string;
|
|
31
|
+
caption: string;
|
|
32
|
+
status: DomainStatus;
|
|
33
|
+
cloudflareStatus: string;
|
|
34
|
+
paused: boolean;
|
|
35
|
+
type: ICloudflareDomainType;
|
|
36
|
+
autorenew: boolean;
|
|
37
|
+
nameServers: string[];
|
|
38
|
+
originalNameServers: string[];
|
|
39
|
+
originalRegistrar: string | null;
|
|
40
|
+
originalDNSHost: string | null;
|
|
41
|
+
createdAt: number;
|
|
42
|
+
expiresAt: number;
|
|
43
|
+
ip: string;
|
|
44
|
+
subdomain: string | null;
|
|
45
|
+
txtRecords: string[];
|
|
46
|
+
target: DomainTarget;
|
|
47
|
+
assignedTo: number[];
|
|
48
|
+
}
|
|
49
|
+
export interface IDomainsBuyRequestResponse {
|
|
50
|
+
requestId: string;
|
|
51
|
+
totalPrice: number;
|
|
52
|
+
info: {
|
|
53
|
+
name: string;
|
|
54
|
+
price: number;
|
|
55
|
+
}[];
|
|
56
|
+
}
|
|
57
|
+
export interface IDomainSetupResult {
|
|
58
|
+
succeed: string[];
|
|
59
|
+
failed: string[];
|
|
60
|
+
}
|
|
61
|
+
export declare const CONST_CLOUFLARE_STATUS_READY = "active";
|
|
62
|
+
export declare enum DomainStatus {
|
|
63
|
+
PENDING = "pending",
|
|
64
|
+
READY = "ready",
|
|
65
|
+
READY_AND_NOTIFIED = "ready-and-notified"
|
|
66
|
+
}
|
|
67
|
+
export declare enum DomainTarget {
|
|
68
|
+
PANEL = "panel",
|
|
69
|
+
KEITARO = "keitaro",
|
|
70
|
+
OTHER = "other"
|
|
71
|
+
}
|
|
72
|
+
export declare const DomainSchema: Schema<any, Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
73
|
+
nameServers: string[];
|
|
74
|
+
originalNameServers: string[];
|
|
75
|
+
txtRecords: string[];
|
|
76
|
+
assignedTo: number[];
|
|
77
|
+
name?: string | undefined;
|
|
78
|
+
type?: string | undefined;
|
|
79
|
+
paused?: boolean | undefined;
|
|
80
|
+
caption?: string | undefined;
|
|
81
|
+
status?: string | undefined;
|
|
82
|
+
id?: string | undefined;
|
|
83
|
+
target?: string | undefined;
|
|
84
|
+
namecheapId?: string | undefined;
|
|
85
|
+
cloudflareStatus?: string | undefined;
|
|
86
|
+
originalRegistrar?: string | undefined;
|
|
87
|
+
originalDNSHost?: string | undefined;
|
|
88
|
+
createdAt?: number | undefined;
|
|
89
|
+
expiresAt?: number | undefined;
|
|
90
|
+
ip?: string | undefined;
|
|
91
|
+
subdomain?: string | undefined;
|
|
92
|
+
}>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DomainSchema = exports.DomainTarget = exports.DomainStatus = exports.CONST_CLOUFLARE_STATUS_READY = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
exports.CONST_CLOUFLARE_STATUS_READY = "active";
|
|
6
|
+
var DomainStatus;
|
|
7
|
+
(function (DomainStatus) {
|
|
8
|
+
DomainStatus["PENDING"] = "pending";
|
|
9
|
+
DomainStatus["READY"] = "ready";
|
|
10
|
+
DomainStatus["READY_AND_NOTIFIED"] = "ready-and-notified";
|
|
11
|
+
})(DomainStatus = exports.DomainStatus || (exports.DomainStatus = {}));
|
|
12
|
+
var DomainTarget;
|
|
13
|
+
(function (DomainTarget) {
|
|
14
|
+
DomainTarget["PANEL"] = "panel";
|
|
15
|
+
DomainTarget["KEITARO"] = "keitaro";
|
|
16
|
+
DomainTarget["OTHER"] = "other";
|
|
17
|
+
})(DomainTarget = exports.DomainTarget || (exports.DomainTarget = {}));
|
|
18
|
+
exports.DomainSchema = new mongoose_1.Schema({
|
|
19
|
+
id: String,
|
|
20
|
+
namecheapId: String,
|
|
21
|
+
name: String,
|
|
22
|
+
caption: String,
|
|
23
|
+
status: String,
|
|
24
|
+
cloudflareStatus: String,
|
|
25
|
+
paused: Boolean,
|
|
26
|
+
type: String,
|
|
27
|
+
nameServers: [String],
|
|
28
|
+
originalNameServers: [String],
|
|
29
|
+
originalRegistrar: String,
|
|
30
|
+
originalDNSHost: String,
|
|
31
|
+
createdAt: Number,
|
|
32
|
+
expiresAt: Number,
|
|
33
|
+
ip: String,
|
|
34
|
+
subdomain: String,
|
|
35
|
+
txtRecords: [String],
|
|
36
|
+
target: String,
|
|
37
|
+
assignedTo: [Number]
|
|
38
|
+
});
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
3
|
+
/// <reference types="mongoose/types/callback" />
|
|
4
|
+
/// <reference types="mongoose/types/collection" />
|
|
5
|
+
/// <reference types="mongoose/types/connection" />
|
|
6
|
+
/// <reference types="mongoose/types/cursor" />
|
|
7
|
+
/// <reference types="mongoose/types/document" />
|
|
8
|
+
/// <reference types="mongoose/types/error" />
|
|
9
|
+
/// <reference types="mongoose/types/expressions" />
|
|
10
|
+
/// <reference types="mongoose/types/helpers" />
|
|
11
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
12
|
+
/// <reference types="mongoose/types/indexes" />
|
|
13
|
+
/// <reference types="mongoose/types/models" />
|
|
14
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
15
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
16
|
+
/// <reference types="mongoose/types/populate" />
|
|
17
|
+
/// <reference types="mongoose/types/query" />
|
|
18
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
19
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
20
|
+
/// <reference types="mongoose/types/session" />
|
|
21
|
+
/// <reference types="mongoose/types/types" />
|
|
22
|
+
/// <reference types="mongoose/types/utility" />
|
|
23
|
+
/// <reference types="mongoose/types/validation" />
|
|
24
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
25
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
26
|
+
import { Schema } from "mongoose";
|
|
27
|
+
export interface INamecheapDomain {
|
|
28
|
+
ID: string;
|
|
29
|
+
Name: string;
|
|
30
|
+
User: string;
|
|
31
|
+
Created: string;
|
|
32
|
+
Expires: string;
|
|
33
|
+
IsExpired: 'true' | 'false';
|
|
34
|
+
IsLocked: 'true' | 'false';
|
|
35
|
+
AutoRenew: 'true' | 'false';
|
|
36
|
+
WhoisGuard: 'ENABLED' | 'DISABLED';
|
|
37
|
+
IsPremium: 'true' | 'false';
|
|
38
|
+
IsOurDNS: 'true' | 'false';
|
|
39
|
+
}
|
|
40
|
+
export interface INamecheapContactInfo {
|
|
41
|
+
FirstName: string;
|
|
42
|
+
LastName: string;
|
|
43
|
+
Address1: string;
|
|
44
|
+
City: string;
|
|
45
|
+
StateProvince: string;
|
|
46
|
+
PostalCode: string;
|
|
47
|
+
Country: string;
|
|
48
|
+
Phone: string;
|
|
49
|
+
EmailAddress: string;
|
|
50
|
+
Address2?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface INamecheapBuyRequest extends Document {
|
|
53
|
+
domains: {
|
|
54
|
+
name: string;
|
|
55
|
+
price: number;
|
|
56
|
+
available: boolean;
|
|
57
|
+
}[];
|
|
58
|
+
ip: string;
|
|
59
|
+
fullfilled: boolean;
|
|
60
|
+
id: string;
|
|
61
|
+
}
|
|
62
|
+
export interface NamecheapBuyResult {
|
|
63
|
+
succeed: {
|
|
64
|
+
[key: string]: string;
|
|
65
|
+
};
|
|
66
|
+
failed: {
|
|
67
|
+
[key: string]: string;
|
|
68
|
+
};
|
|
69
|
+
paidTotal: number;
|
|
70
|
+
}
|
|
71
|
+
export declare const NamecheapBuyRequestSchema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
72
|
+
domains: {
|
|
73
|
+
name?: string | undefined;
|
|
74
|
+
available?: boolean | undefined;
|
|
75
|
+
price?: string | undefined;
|
|
76
|
+
}[];
|
|
77
|
+
id?: string | undefined;
|
|
78
|
+
ip?: string | undefined;
|
|
79
|
+
fullfilled?: boolean | undefined;
|
|
80
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NamecheapBuyRequestSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
exports.NamecheapBuyRequestSchema = new mongoose_1.Schema({
|
|
6
|
+
domains: [{
|
|
7
|
+
name: String,
|
|
8
|
+
price: String,
|
|
9
|
+
available: Boolean
|
|
10
|
+
}],
|
|
11
|
+
ip: String,
|
|
12
|
+
fullfilled: Boolean,
|
|
13
|
+
id: String
|
|
14
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface IGradient {
|
|
2
|
+
startColor: string;
|
|
3
|
+
centerColor?: string;
|
|
4
|
+
endColor: string;
|
|
5
|
+
angle?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface IStroke {
|
|
8
|
+
width: number;
|
|
9
|
+
color: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IShape {
|
|
12
|
+
fill: IGradient | string;
|
|
13
|
+
stroke?: IStroke;
|
|
14
|
+
textColor?: string;
|
|
15
|
+
fontUrl?: string;
|
|
16
|
+
cornerRadius?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare const ShapeDiv: import("styled-components").StyledComponent<"div", any, IShape, never>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ShapeDiv = void 0;
|
|
7
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
+
exports.ShapeDiv = styled_components_1.default.div `
|
|
9
|
+
background: ${props => typeof props.fill === 'string'
|
|
10
|
+
? props.fill
|
|
11
|
+
: props.fill.angle
|
|
12
|
+
? `linear-gradient(${props.fill.angle}deg, ${props.fill.startColor} 0%, ${props.fill.centerColor || props.fill.startColor} 50%, ${props.fill.endColor} 100%)`
|
|
13
|
+
: `radial-gradient(circle, ${props.fill.startColor} 0%, ${props.fill.endColor} 100%)`};
|
|
14
|
+
|
|
15
|
+
${props => props.stroke &&
|
|
16
|
+
`
|
|
17
|
+
border: ${props.stroke.width}px solid ${props.stroke.color};
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
`};
|
|
20
|
+
|
|
21
|
+
${props => props.cornerRadius &&
|
|
22
|
+
`
|
|
23
|
+
border-radius: ${props.cornerRadius}px;
|
|
24
|
+
`}
|
|
25
|
+
|
|
26
|
+
color: ${props => props.textColor || "white"};
|
|
27
|
+
|
|
28
|
+
${props => props.fontUrl &&
|
|
29
|
+
`
|
|
30
|
+
@font-face {
|
|
31
|
+
font-family: 'custom';
|
|
32
|
+
src: url(${props.fontUrl});
|
|
33
|
+
}
|
|
34
|
+
font-family: 'custom', sans-serif;
|
|
35
|
+
`};
|
|
36
|
+
`;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,41 +1,22 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export * as ASO_v2 from "./aso/config/aso-config-v2";
|
|
10
|
-
export * as ASO_v3 from "./aso/config/aso-config-v3";
|
|
11
|
-
export * as ASO_v4 from "./aso/config/aso-config-v4";
|
|
12
|
-
export * as ASO_v5 from "./aso/config/aso-config-v5";
|
|
13
|
-
export { IPush } from "./shared/push";
|
|
14
|
-
export { IOffer } from "./shared/offer";
|
|
15
|
-
export { IOfferWallSection } from "./aso/offerwall/offerwall-section";
|
|
16
|
-
export { IOfferWallOffer } from "./aso/offerwall/offerwall-offer";
|
|
17
|
-
export { IOfferWallResponse } from "./aso/offerwall/offerwall-response";
|
|
18
|
-
export { IOfferWallHomeDialogData } from "./aso/offerwall/offerwall-home-dialog-data";
|
|
19
|
-
export { IntegrationAlterations, IntegrationVersion, IFlashApp, FlashAppSchema, updateSchemaAndMoveValue, PlugType } from "./flash/flash-app";
|
|
20
|
-
export { IFlashAppListItem } from "./flash/flash-app-list-item";
|
|
21
|
-
export { FlashAppType } from "./flash/flash-app-type";
|
|
22
|
-
export { AlternativeLayoutType, AlternativeSourceType, AlternativeLogicType, AlternativeNetworkTool, AlternativeStorageType, AlternativeNavigation, AlternativeOnBackPressed, AlternativeOnActivityResult, IFlashIntegration } from "./flash/flash-app-integration";
|
|
23
|
-
export * as ASOConfigFetch from "./aso/usage-logs/aso-config-fetch-entry";
|
|
1
|
+
export { IPush } from "./general/push";
|
|
2
|
+
export { IOffer, IPartner, IOfferType } from "./offers/offer";
|
|
3
|
+
export { IOffersSection, OffersSectionSchema, DefaultSectionId } from "./offers/section";
|
|
4
|
+
export { IAppOffersSection, ISectionsList, SectionsListSchema } from "./offers/list";
|
|
5
|
+
export { IntegrationAlterations, IntegrationVersion, IApp, AppSchema, PlugType } from "./app/app";
|
|
6
|
+
export { IAppListItem } from "./app/app-list-item";
|
|
7
|
+
export { AppType } from "./app/app-type";
|
|
8
|
+
export { AlternativeLayoutType, AlternativeSourceType, AlternativeLogicType, AlternativeNetworkTool, AlternativeStorageType, AlternativeNavigation, AlternativeOnBackPressed, AlternativeOnActivityResult, IAppIntegration as IFlashIntegration } from "./app/app-integration";
|
|
24
9
|
export { IPanelUser, PanelUserAccessScope, PanelUserSchema } from "./panel/user";
|
|
25
10
|
export { IAuthToken } from "./panel/auth";
|
|
26
11
|
export { IUpsertFlashAppRequest, IUpsertFlashAppResponse } from "./panel/flash/upsert-flash-app-request";
|
|
27
|
-
export { IGradient, IStroke, IShape, ShapeDiv } from "./
|
|
28
|
-
export { ColoredText, IColoredTextProps } from "./
|
|
29
|
-
export { IOfferWallAuthConfig } from "./aso/offerwall/auth/offerwall-auth-config";
|
|
30
|
-
export { IOfferWallAuthLocalization } from "./aso/offerwall/auth/offerwall-auth-localization";
|
|
31
|
-
export { IOfferWallAuthSubmitRequest } from "./aso/offerwall/auth/offerwall-auth-submit-request";
|
|
32
|
-
export { IOfferWallAuthSubmitResponse } from "./aso/offerwall/auth/offerwall-auth-submit-response";
|
|
12
|
+
export { IGradient, IStroke, IShape, ShapeDiv } from "./general/shape";
|
|
13
|
+
export { ColoredText, IColoredTextProps } from "./general/colored-text";
|
|
33
14
|
export { KeitaroService, IKeitaroOffersFilter } from "./network/keitaro/keitaro-service";
|
|
34
15
|
export * as KeitaroUtils from "./utils/keitaro-utils";
|
|
35
16
|
export { IKeitaroCampaign, IKeitaroCampaignParameters, IKeitaroCampaignParameter } from "./keitaro/keitaro-campaign";
|
|
36
17
|
export { IKeitaroDomain } from "./keitaro/keitaro-domain";
|
|
37
18
|
export { IKeitaroOffer } from "./keitaro/keitaro-offer";
|
|
38
19
|
export { IKeitaroStream } from "./keitaro/keitaro-stream";
|
|
39
|
-
export { ICloudflareDomainStatus, ICloudflareDomainType, ICloudflareDomain } from "./
|
|
40
|
-
export { IDomain, IDomainSetupResult, DomainStatus, DomainTarget, CONST_CLOUFLARE_STATUS_READY, IDomainsBuyRequestResponse } from "./
|
|
41
|
-
export { INamecheapDomain, INamecheapBuyRequest, INamecheapContactInfo, NamecheapBuyRequestSchema } from "./
|
|
20
|
+
export { ICloudflareDomainStatus, ICloudflareDomainType, ICloudflareDomain } from "./general/cloudflare-domain";
|
|
21
|
+
export { IDomain, IDomainSetupResult, DomainStatus, DomainTarget, CONST_CLOUFLARE_STATUS_READY, IDomainsBuyRequestResponse } from "./general/domain";
|
|
22
|
+
export { INamecheapDomain, INamecheapBuyRequest, INamecheapContactInfo, NamecheapBuyRequestSchema } from "./general/namecheap-domain";
|
package/lib/index.js
CHANGED
|
@@ -23,46 +23,45 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.NamecheapBuyRequestSchema = exports.CONST_CLOUFLARE_STATUS_READY = exports.DomainTarget = exports.DomainStatus = exports.ICloudflareDomainType = exports.ICloudflareDomainStatus = exports.KeitaroUtils = exports.KeitaroService = exports.ColoredText = exports.ShapeDiv = exports.PanelUserSchema = exports.PanelUserAccessScope = exports.
|
|
27
|
-
|
|
28
|
-
exports
|
|
29
|
-
|
|
30
|
-
exports
|
|
31
|
-
exports
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
Object.defineProperty(exports, "
|
|
36
|
-
Object.defineProperty(exports, "
|
|
37
|
-
Object.defineProperty(exports, "PlugType", { enumerable: true, get: function () { return
|
|
38
|
-
var
|
|
39
|
-
Object.defineProperty(exports, "
|
|
40
|
-
var
|
|
41
|
-
Object.defineProperty(exports, "AlternativeLayoutType", { enumerable: true, get: function () { return
|
|
42
|
-
Object.defineProperty(exports, "AlternativeSourceType", { enumerable: true, get: function () { return
|
|
43
|
-
Object.defineProperty(exports, "AlternativeLogicType", { enumerable: true, get: function () { return
|
|
44
|
-
Object.defineProperty(exports, "AlternativeNetworkTool", { enumerable: true, get: function () { return
|
|
45
|
-
Object.defineProperty(exports, "AlternativeStorageType", { enumerable: true, get: function () { return
|
|
46
|
-
Object.defineProperty(exports, "AlternativeNavigation", { enumerable: true, get: function () { return
|
|
47
|
-
Object.defineProperty(exports, "AlternativeOnBackPressed", { enumerable: true, get: function () { return
|
|
48
|
-
Object.defineProperty(exports, "AlternativeOnActivityResult", { enumerable: true, get: function () { return
|
|
49
|
-
exports.ASOConfigFetch = __importStar(require("./aso/usage-logs/aso-config-fetch-entry"));
|
|
26
|
+
exports.NamecheapBuyRequestSchema = exports.CONST_CLOUFLARE_STATUS_READY = exports.DomainTarget = exports.DomainStatus = exports.ICloudflareDomainType = exports.ICloudflareDomainStatus = exports.KeitaroUtils = exports.KeitaroService = exports.ColoredText = exports.ShapeDiv = exports.PanelUserSchema = exports.PanelUserAccessScope = exports.AlternativeOnActivityResult = exports.AlternativeOnBackPressed = exports.AlternativeNavigation = exports.AlternativeStorageType = exports.AlternativeNetworkTool = exports.AlternativeLogicType = exports.AlternativeSourceType = exports.AlternativeLayoutType = exports.AppType = exports.PlugType = exports.AppSchema = exports.IntegrationVersion = exports.SectionsListSchema = exports.DefaultSectionId = exports.OffersSectionSchema = exports.IOfferType = void 0;
|
|
27
|
+
var offer_1 = require("./offers/offer");
|
|
28
|
+
Object.defineProperty(exports, "IOfferType", { enumerable: true, get: function () { return offer_1.IOfferType; } });
|
|
29
|
+
var section_1 = require("./offers/section");
|
|
30
|
+
Object.defineProperty(exports, "OffersSectionSchema", { enumerable: true, get: function () { return section_1.OffersSectionSchema; } });
|
|
31
|
+
Object.defineProperty(exports, "DefaultSectionId", { enumerable: true, get: function () { return section_1.DefaultSectionId; } });
|
|
32
|
+
var list_1 = require("./offers/list");
|
|
33
|
+
Object.defineProperty(exports, "SectionsListSchema", { enumerable: true, get: function () { return list_1.SectionsListSchema; } });
|
|
34
|
+
var app_1 = require("./app/app");
|
|
35
|
+
Object.defineProperty(exports, "IntegrationVersion", { enumerable: true, get: function () { return app_1.IntegrationVersion; } });
|
|
36
|
+
Object.defineProperty(exports, "AppSchema", { enumerable: true, get: function () { return app_1.AppSchema; } });
|
|
37
|
+
Object.defineProperty(exports, "PlugType", { enumerable: true, get: function () { return app_1.PlugType; } });
|
|
38
|
+
var app_type_1 = require("./app/app-type");
|
|
39
|
+
Object.defineProperty(exports, "AppType", { enumerable: true, get: function () { return app_type_1.AppType; } });
|
|
40
|
+
var app_integration_1 = require("./app/app-integration");
|
|
41
|
+
Object.defineProperty(exports, "AlternativeLayoutType", { enumerable: true, get: function () { return app_integration_1.AlternativeLayoutType; } });
|
|
42
|
+
Object.defineProperty(exports, "AlternativeSourceType", { enumerable: true, get: function () { return app_integration_1.AlternativeSourceType; } });
|
|
43
|
+
Object.defineProperty(exports, "AlternativeLogicType", { enumerable: true, get: function () { return app_integration_1.AlternativeLogicType; } });
|
|
44
|
+
Object.defineProperty(exports, "AlternativeNetworkTool", { enumerable: true, get: function () { return app_integration_1.AlternativeNetworkTool; } });
|
|
45
|
+
Object.defineProperty(exports, "AlternativeStorageType", { enumerable: true, get: function () { return app_integration_1.AlternativeStorageType; } });
|
|
46
|
+
Object.defineProperty(exports, "AlternativeNavigation", { enumerable: true, get: function () { return app_integration_1.AlternativeNavigation; } });
|
|
47
|
+
Object.defineProperty(exports, "AlternativeOnBackPressed", { enumerable: true, get: function () { return app_integration_1.AlternativeOnBackPressed; } });
|
|
48
|
+
Object.defineProperty(exports, "AlternativeOnActivityResult", { enumerable: true, get: function () { return app_integration_1.AlternativeOnActivityResult; } });
|
|
50
49
|
var user_1 = require("./panel/user");
|
|
51
50
|
Object.defineProperty(exports, "PanelUserAccessScope", { enumerable: true, get: function () { return user_1.PanelUserAccessScope; } });
|
|
52
51
|
Object.defineProperty(exports, "PanelUserSchema", { enumerable: true, get: function () { return user_1.PanelUserSchema; } });
|
|
53
|
-
var shape_1 = require("./
|
|
52
|
+
var shape_1 = require("./general/shape");
|
|
54
53
|
Object.defineProperty(exports, "ShapeDiv", { enumerable: true, get: function () { return shape_1.ShapeDiv; } });
|
|
55
|
-
var colored_text_1 = require("./
|
|
54
|
+
var colored_text_1 = require("./general/colored-text");
|
|
56
55
|
Object.defineProperty(exports, "ColoredText", { enumerable: true, get: function () { return colored_text_1.ColoredText; } });
|
|
57
56
|
var keitaro_service_1 = require("./network/keitaro/keitaro-service");
|
|
58
57
|
Object.defineProperty(exports, "KeitaroService", { enumerable: true, get: function () { return keitaro_service_1.KeitaroService; } });
|
|
59
58
|
exports.KeitaroUtils = __importStar(require("./utils/keitaro-utils"));
|
|
60
|
-
var cloudflare_domain_1 = require("./
|
|
59
|
+
var cloudflare_domain_1 = require("./general/cloudflare-domain");
|
|
61
60
|
Object.defineProperty(exports, "ICloudflareDomainStatus", { enumerable: true, get: function () { return cloudflare_domain_1.ICloudflareDomainStatus; } });
|
|
62
61
|
Object.defineProperty(exports, "ICloudflareDomainType", { enumerable: true, get: function () { return cloudflare_domain_1.ICloudflareDomainType; } });
|
|
63
|
-
var domain_1 = require("./
|
|
62
|
+
var domain_1 = require("./general/domain");
|
|
64
63
|
Object.defineProperty(exports, "DomainStatus", { enumerable: true, get: function () { return domain_1.DomainStatus; } });
|
|
65
64
|
Object.defineProperty(exports, "DomainTarget", { enumerable: true, get: function () { return domain_1.DomainTarget; } });
|
|
66
65
|
Object.defineProperty(exports, "CONST_CLOUFLARE_STATUS_READY", { enumerable: true, get: function () { return domain_1.CONST_CLOUFLARE_STATUS_READY; } });
|
|
67
|
-
var namecheap_domain_1 = require("./
|
|
66
|
+
var namecheap_domain_1 = require("./general/namecheap-domain");
|
|
68
67
|
Object.defineProperty(exports, "NamecheapBuyRequestSchema", { enumerable: true, get: function () { return namecheap_domain_1.NamecheapBuyRequestSchema; } });
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IKeitaroStream } from "../../keitaro/keitaro-stream";
|
|
2
|
-
import { IOffer } from "../../
|
|
2
|
+
import { IOffer } from "../../offers/offer";
|
|
3
3
|
import { IKeitaroCampaign } from "../../keitaro/keitaro-campaign";
|
|
4
4
|
import { IKeitaroDomain } from "../../keitaro/keitaro-domain";
|
|
5
|
-
import {
|
|
5
|
+
import { IApp } from "../../app/app";
|
|
6
6
|
import { IKeitaroOffer } from "index";
|
|
7
7
|
export interface IKeitaroOffersFilter {
|
|
8
8
|
keitaroId?: number;
|
|
@@ -21,8 +21,8 @@ declare function addOfferToKeitaro(offer: IOffer, affiliateId: number, link: str
|
|
|
21
21
|
declare function createCampaign(campaignData: Partial<IKeitaroCampaign>): Promise<IKeitaroCampaign>;
|
|
22
22
|
declare function getCampaignById(id: number): Promise<IKeitaroCampaign>;
|
|
23
23
|
export declare function upsertStreamToCampaign(campaign: IKeitaroCampaign, stream: Partial<IKeitaroStream>): Promise<void>;
|
|
24
|
-
declare function cloneOWCampaign(app:
|
|
25
|
-
declare function cloneDCampaign(app:
|
|
24
|
+
declare function cloneOWCampaign(app: IApp): Promise<IKeitaroCampaign>;
|
|
25
|
+
declare function cloneDCampaign(app: IApp): Promise<IKeitaroCampaign>;
|
|
26
26
|
declare function changeCampaignsGroup(fromId: number, toId: number, exceptForCampaignIds: number[]): Promise<void>;
|
|
27
27
|
declare function getDomains(onlyActive?: boolean): Promise<IKeitaroDomain[]>;
|
|
28
28
|
declare function getProfitForTimeRange(from: number, to: number): Promise<number>;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 interface ISectionsList {
|
|
27
|
+
id: number;
|
|
28
|
+
content: IAppOffersSection[];
|
|
29
|
+
}
|
|
30
|
+
export interface IAppOffersSection {
|
|
31
|
+
sectionId: number;
|
|
32
|
+
offerIdsOrdered: number[];
|
|
33
|
+
}
|
|
34
|
+
export declare const SectionsListSchema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
35
|
+
content: any[];
|
|
36
|
+
id: number;
|
|
37
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SectionsListSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
exports.SectionsListSchema = new mongoose_1.Schema({
|
|
6
|
+
id: {
|
|
7
|
+
type: Number,
|
|
8
|
+
unique: true,
|
|
9
|
+
required: true
|
|
10
|
+
},
|
|
11
|
+
content: [Object],
|
|
12
|
+
});
|
|
@@ -0,0 +1,95 @@
|
|
|
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 { Document, Model, Schema } from "mongoose";
|
|
26
|
+
export interface IOffer extends Document {
|
|
27
|
+
id: number;
|
|
28
|
+
name: string;
|
|
29
|
+
graphicFolder: string;
|
|
30
|
+
graphic: {
|
|
31
|
+
logo: string;
|
|
32
|
+
bg: string;
|
|
33
|
+
};
|
|
34
|
+
geo: string;
|
|
35
|
+
caption: string;
|
|
36
|
+
partnerId: number;
|
|
37
|
+
link: string;
|
|
38
|
+
type: IOfferType;
|
|
39
|
+
keitaroId: string | null;
|
|
40
|
+
hidden?: boolean;
|
|
41
|
+
history: {
|
|
42
|
+
link: string[];
|
|
43
|
+
logo: string[];
|
|
44
|
+
bg: string[];
|
|
45
|
+
name: string[];
|
|
46
|
+
caption: string[];
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export interface IPartner {
|
|
50
|
+
partnerId: number;
|
|
51
|
+
shortName: string;
|
|
52
|
+
name: string;
|
|
53
|
+
}
|
|
54
|
+
export declare enum IOfferType {
|
|
55
|
+
GAMBLING = "gambling",
|
|
56
|
+
BETTING = "betting",
|
|
57
|
+
FIN = "fin"
|
|
58
|
+
}
|
|
59
|
+
export interface IPartnerSection {
|
|
60
|
+
id: number;
|
|
61
|
+
name: string;
|
|
62
|
+
offers: IOffer[];
|
|
63
|
+
}
|
|
64
|
+
export declare const PartnerSchema: Schema<any, Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
65
|
+
name?: string | undefined;
|
|
66
|
+
partnerId?: number | undefined;
|
|
67
|
+
shortName?: string | undefined;
|
|
68
|
+
}>;
|
|
69
|
+
export declare const OfferSchema: Schema<any, Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
70
|
+
link?: string | undefined;
|
|
71
|
+
name?: string | undefined;
|
|
72
|
+
type?: {
|
|
73
|
+
GAMBLING?: unknown;
|
|
74
|
+
BETTING?: unknown;
|
|
75
|
+
FIN?: unknown;
|
|
76
|
+
} | undefined;
|
|
77
|
+
hidden?: boolean | undefined;
|
|
78
|
+
caption?: string | undefined;
|
|
79
|
+
id?: number | undefined;
|
|
80
|
+
history?: {
|
|
81
|
+
link: string[];
|
|
82
|
+
name: string[];
|
|
83
|
+
caption: string[];
|
|
84
|
+
logoNames: string[];
|
|
85
|
+
bgNames: string[];
|
|
86
|
+
} | undefined;
|
|
87
|
+
partnerId?: number | undefined;
|
|
88
|
+
graphicFolder?: string | undefined;
|
|
89
|
+
geo?: string | undefined;
|
|
90
|
+
keitaroId?: string | undefined;
|
|
91
|
+
graphic?: {
|
|
92
|
+
logo?: string | undefined;
|
|
93
|
+
bg?: string | undefined;
|
|
94
|
+
} | undefined;
|
|
95
|
+
}>;
|