@bprotsyk/aso-core 2.0.2 → 2.0.3
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/general/shape.js +4 -1
- package/lib/index.js +24 -1
- package/lib/network/keitaro/http.js +4 -1
- package/lib/network/keitaro/keitaro-service.js +4 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -0
- package/lib/general/colored-text.d.ts +0 -7
- package/lib/general/colored-text.js +0 -28
- package/lib/models/cloudflare-domain.d.ts +0 -42
- package/lib/models/cloudflare-domain.js +0 -12
- package/lib/models/domain.d.ts +0 -92
- package/lib/models/domain.js +0 -38
- package/lib/models/namecheap-domain.d.ts +0 -80
- package/lib/models/namecheap-domain.js +0 -14
- package/lib/panel/flash/create-flash-app-request.d.ts +0 -28
- package/lib/panel/flash/create-flash-app-request.js +0 -2
- package/lib/shared/colored-text.d.ts +0 -7
- package/lib/shared/colored-text.js +0 -28
- package/lib/shared/offer.d.ts +0 -12
- package/lib/shared/offer.js +0 -2
- package/lib/shared/push.d.ts +0 -6
- package/lib/shared/push.js +0 -2
- package/lib/shared/queue.d.ts +0 -1
- package/lib/shared/queue.js +0 -2
- package/lib/shared/shape.d.ts +0 -18
- package/lib/shared/shape.js +0 -36
- package/lib/shared/single-offer.d.ts +0 -5
- package/lib/shared/single-offer.js +0 -2
- package/lib/utils/app-gathering-utils.d.ts +0 -15
- package/lib/utils/app-gathering-utils.js +0 -2
package/lib/general/shape.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.ShapeDiv = void 0;
|
|
4
|
-
const styled_components_1 = require("styled-components");
|
|
7
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
5
8
|
exports.ShapeDiv = styled_components_1.default.div `
|
|
6
9
|
background: ${props => typeof props.fill === 'string'
|
|
7
10
|
? props.fill
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.NamecheapBuyRequestSchema = exports.getDomainTargetByIp = exports.CONST_CLOUFLARE_STATUS_READY = exports.DomainTarget = exports.DomainStatus = exports.ICloudflareDomainType = exports.ICloudflareDomainStatus = exports.KeitaroUtils = exports.KeitaroService = 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;
|
|
4
27
|
var offer_1 = require("./offers/offer");
|
|
@@ -30,7 +53,7 @@ var shape_1 = require("./general/shape");
|
|
|
30
53
|
Object.defineProperty(exports, "ShapeDiv", { enumerable: true, get: function () { return shape_1.ShapeDiv; } });
|
|
31
54
|
var keitaro_service_1 = require("./network/keitaro/keitaro-service");
|
|
32
55
|
Object.defineProperty(exports, "KeitaroService", { enumerable: true, get: function () { return keitaro_service_1.KeitaroService; } });
|
|
33
|
-
exports.KeitaroUtils = require("./utils/keitaro-utils");
|
|
56
|
+
exports.KeitaroUtils = __importStar(require("./utils/keitaro-utils"));
|
|
34
57
|
var cloudflare_domain_1 = require("./general/cloudflare-domain");
|
|
35
58
|
Object.defineProperty(exports, "ICloudflareDomainStatus", { enumerable: true, get: function () { return cloudflare_domain_1.ICloudflareDomainStatus; } });
|
|
36
59
|
Object.defineProperty(exports, "ICloudflareDomainType", { enumerable: true, get: function () { return cloudflare_domain_1.ICloudflareDomainType; } });
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const axios_1 = require("axios");
|
|
6
|
+
const axios_1 = __importDefault(require("axios"));
|
|
4
7
|
exports.default = axios_1.default.create({
|
|
5
8
|
baseURL: 'https://aibprtsk.com/admin_api/v1/',
|
|
6
9
|
headers: {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.KeitaroService = exports.upsertStreamToCampaign = void 0;
|
|
4
|
-
const http_1 = require("./http");
|
|
7
|
+
const http_1 = __importDefault(require("./http"));
|
|
5
8
|
const keitaro_utils_1 = require("../../utils/keitaro-utils");
|
|
6
9
|
const general_1 = require("../../utils/general");
|
|
7
10
|
async function getStreamsByCampaignId(campaignId) {
|
package/package.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IColoredString } from 'aso/config/aso-config-v0';
|
|
2
|
-
export interface IColoredTextProps {
|
|
3
|
-
coloredText: IColoredString;
|
|
4
|
-
className: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function ColoredText({ coloredText, className }: IColoredTextProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default ColoredText;
|
|
@@ -1,28 +0,0 @@
|
|
|
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.ColoredText = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const StyledColoredSpan = styled_components_1.default.span `
|
|
10
|
-
color: ${(props) => props.color};
|
|
11
|
-
display: inline;
|
|
12
|
-
`;
|
|
13
|
-
function ColoredText({ coloredText, className }) {
|
|
14
|
-
const { text, colors } = coloredText;
|
|
15
|
-
let startIndex = 0;
|
|
16
|
-
const spans = [];
|
|
17
|
-
for (const { from, to, color } of colors) {
|
|
18
|
-
spans.push((0, jsx_runtime_1.jsx)("span", { children: text.slice(startIndex, from) }, `text_${startIndex}`));
|
|
19
|
-
spans.push((0, jsx_runtime_1.jsx)(StyledColoredSpan, { color: color, children: text.slice(from, to) }, `text_${from}`));
|
|
20
|
-
startIndex = to;
|
|
21
|
-
}
|
|
22
|
-
if (startIndex < text.length) {
|
|
23
|
-
spans.push((0, jsx_runtime_1.jsx)("span", { children: text.slice(startIndex) }, `text_${startIndex}`));
|
|
24
|
-
}
|
|
25
|
-
return (0, jsx_runtime_1.jsx)("div", { className: className, children: spans });
|
|
26
|
-
}
|
|
27
|
-
exports.ColoredText = ColoredText;
|
|
28
|
-
exports.default = ColoredText;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export interface ICloudflareDomain {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
status: string;
|
|
5
|
-
paused: boolean;
|
|
6
|
-
type: string;
|
|
7
|
-
development_mode: number;
|
|
8
|
-
name_servers: string[];
|
|
9
|
-
original_name_servers: string[];
|
|
10
|
-
original_registrar: string | null;
|
|
11
|
-
original_dnshost: string | null;
|
|
12
|
-
modified_on: Date;
|
|
13
|
-
created_on: Date;
|
|
14
|
-
}
|
|
15
|
-
export interface ICloudflareDomainRecord {
|
|
16
|
-
id: string;
|
|
17
|
-
zone_id: string;
|
|
18
|
-
zone_name: string;
|
|
19
|
-
name: string;
|
|
20
|
-
type: string;
|
|
21
|
-
content: string;
|
|
22
|
-
proxiable: boolean;
|
|
23
|
-
proxied: boolean;
|
|
24
|
-
ttl: number;
|
|
25
|
-
locked: boolean;
|
|
26
|
-
meta: {
|
|
27
|
-
auto_added: boolean;
|
|
28
|
-
managed_by_apps: boolean;
|
|
29
|
-
managed_by_argo_tunnel: boolean;
|
|
30
|
-
};
|
|
31
|
-
comment: string;
|
|
32
|
-
tags: string[];
|
|
33
|
-
created_on: string;
|
|
34
|
-
modified_on: string;
|
|
35
|
-
}
|
|
36
|
-
export declare enum ICloudflareDomainStatus {
|
|
37
|
-
PENDING = "pending"
|
|
38
|
-
}
|
|
39
|
-
export declare enum ICloudflareDomainType {
|
|
40
|
-
FULL = "full",
|
|
41
|
-
FLEXIBLE = "flexible"
|
|
42
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ICloudflareDomainType = exports.ICloudflareDomainStatus = void 0;
|
|
4
|
-
var ICloudflareDomainStatus;
|
|
5
|
-
(function (ICloudflareDomainStatus) {
|
|
6
|
-
ICloudflareDomainStatus["PENDING"] = "pending";
|
|
7
|
-
})(ICloudflareDomainStatus = exports.ICloudflareDomainStatus || (exports.ICloudflareDomainStatus = {}));
|
|
8
|
-
var ICloudflareDomainType;
|
|
9
|
-
(function (ICloudflareDomainType) {
|
|
10
|
-
ICloudflareDomainType["FULL"] = "full";
|
|
11
|
-
ICloudflareDomainType["FLEXIBLE"] = "flexible";
|
|
12
|
-
})(ICloudflareDomainType = exports.ICloudflareDomainType || (exports.ICloudflareDomainType = {}));
|
package/lib/models/domain.d.ts
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
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 "models/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
|
-
}>;
|
package/lib/models/domain.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,80 +0,0 @@
|
|
|
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
|
-
}>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { IAppGenerationOptions, IAppKeitaroData, IBannerParams, IDeveloperParams, IDirectParams, IDomainParams, IOffersStubParams, IPrivacyPolicyParams, IRemoveDataParams, IntegrationVersion } from "flash/flash-app";
|
|
2
|
-
export interface IUpsertAppRequest {
|
|
3
|
-
id: number;
|
|
4
|
-
name: string;
|
|
5
|
-
bundle: string;
|
|
6
|
-
sourceUrl?: string;
|
|
7
|
-
enabled: boolean;
|
|
8
|
-
geos: string;
|
|
9
|
-
onesignalAppId: string;
|
|
10
|
-
onesignalRestApiKey: string;
|
|
11
|
-
webInterfaceName: string;
|
|
12
|
-
policyUrl: string;
|
|
13
|
-
integrationVersion: IntegrationVersion;
|
|
14
|
-
generationOptions: Partial<IAppGenerationOptions>;
|
|
15
|
-
keitaroData?: Partial<IAppKeitaroData>;
|
|
16
|
-
removeDataParams?: IRemoveDataParams;
|
|
17
|
-
privacyPolicyParams?: IPrivacyPolicyParams;
|
|
18
|
-
offersStubParams?: IOffersStubParams;
|
|
19
|
-
bannerParams?: IBannerParams;
|
|
20
|
-
developerParams?: IDeveloperParams;
|
|
21
|
-
domainParams: IDomainParams;
|
|
22
|
-
directParams?: IDirectParams;
|
|
23
|
-
}
|
|
24
|
-
export interface IUpsertAppResponse {
|
|
25
|
-
data: IUpsertAppRequest;
|
|
26
|
-
linkName: string;
|
|
27
|
-
archive: string;
|
|
28
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IColoredString } from 'aso/config/aso-config-v0';
|
|
2
|
-
export interface IColoredTextProps {
|
|
3
|
-
coloredText: IColoredString;
|
|
4
|
-
className: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function ColoredText({ coloredText, className }: IColoredTextProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default ColoredText;
|
|
@@ -1,28 +0,0 @@
|
|
|
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.ColoredText = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const StyledColoredSpan = styled_components_1.default.span `
|
|
10
|
-
color: ${(props) => props.color};
|
|
11
|
-
display: inline;
|
|
12
|
-
`;
|
|
13
|
-
function ColoredText({ coloredText, className }) {
|
|
14
|
-
const { text, colors } = coloredText;
|
|
15
|
-
let startIndex = 0;
|
|
16
|
-
const spans = [];
|
|
17
|
-
for (const { from, to, color } of colors) {
|
|
18
|
-
spans.push((0, jsx_runtime_1.jsx)("span", { children: text.slice(startIndex, from) }, `text_${startIndex}`));
|
|
19
|
-
spans.push((0, jsx_runtime_1.jsx)(StyledColoredSpan, { color: color, children: text.slice(from, to) }, `text_${from}`));
|
|
20
|
-
startIndex = to;
|
|
21
|
-
}
|
|
22
|
-
if (startIndex < text.length) {
|
|
23
|
-
spans.push((0, jsx_runtime_1.jsx)("span", { children: text.slice(startIndex) }, `text_${startIndex}`));
|
|
24
|
-
}
|
|
25
|
-
return (0, jsx_runtime_1.jsx)("div", { className: className, children: spans });
|
|
26
|
-
}
|
|
27
|
-
exports.ColoredText = ColoredText;
|
|
28
|
-
exports.default = ColoredText;
|
package/lib/shared/offer.d.ts
DELETED
package/lib/shared/offer.js
DELETED
package/lib/shared/push.d.ts
DELETED
package/lib/shared/push.js
DELETED
package/lib/shared/queue.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/shared/queue.js
DELETED
package/lib/shared/shape.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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>;
|
package/lib/shared/shape.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
`;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type TrackingMap = {
|
|
2
|
-
[key: string]: TrackingMapValue | undefined;
|
|
3
|
-
};
|
|
4
|
-
type TrackingMapValue = {
|
|
5
|
-
trackingUrl: string | undefined;
|
|
6
|
-
};
|
|
7
|
-
export type PasteMap = {
|
|
8
|
-
[key: string]: PasteMapValue;
|
|
9
|
-
};
|
|
10
|
-
type PasteMapValue = {
|
|
11
|
-
content: string;
|
|
12
|
-
paste_id: string;
|
|
13
|
-
ccountId: string;
|
|
14
|
-
};
|
|
15
|
-
export {};
|