@bprotsyk/aso-core 2.1.37 → 2.1.39
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/README.md +1 -1
- package/lib/app/app-integration.d.ts +53 -53
- package/lib/app/app-integration.js +63 -63
- package/lib/app/app-list-item.d.ts +5 -5
- package/lib/app/app-list-item.js +2 -2
- package/lib/app/app-type.d.ts +4 -4
- package/lib/app/app-type.js +8 -8
- package/lib/app/app.d.ts +208 -290
- package/lib/app/app.js +156 -156
- package/lib/general/cloudflare-domain.d.ts +42 -42
- package/lib/general/cloudflare-domain.js +12 -12
- package/lib/general/domain.d.ts +110 -169
- package/lib/general/domain.js +62 -62
- package/lib/general/namecheap-domain.d.ts +85 -132
- package/lib/general/namecheap-domain.js +14 -14
- package/lib/general/push.d.ts +6 -6
- package/lib/general/push.js +2 -2
- package/lib/general/queue.d.ts +2 -2
- package/lib/general/queue.js +1 -1
- package/lib/general/shape.d.ts +18 -18
- package/lib/general/shape.js +36 -36
- package/lib/index.d.ts +26 -26
- package/lib/index.js +69 -69
- package/lib/keitaro/keitaro-campaign.d.ts +31 -31
- package/lib/keitaro/keitaro-campaign.js +5 -5
- package/lib/keitaro/keitaro-domain.d.ts +6 -6
- package/lib/keitaro/keitaro-domain.js +2 -2
- package/lib/keitaro/keitaro-offer.d.ts +7 -7
- package/lib/keitaro/keitaro-offer.js +2 -2
- package/lib/keitaro/keitaro-stream.d.ts +20 -20
- package/lib/keitaro/keitaro-stream.js +2 -2
- package/lib/network/keitaro/http.d.ts +2 -2
- package/lib/network/keitaro/http.js +12 -12
- package/lib/network/keitaro/keitaro-service.d.ts +50 -48
- package/lib/network/keitaro/keitaro-service.js +283 -293
- package/lib/offers/list.d.ts +42 -435
- package/lib/offers/list.js +12 -12
- package/lib/offers/offer.d.ts +91 -152
- package/lib/offers/offer.js +42 -42
- package/lib/offers/offerwall/offerwall-home-dialog-data.d.ts +6 -6
- package/lib/offers/offerwall/offerwall-home-dialog-data.js +2 -2
- package/lib/offers/offerwall/offerwall-offer.d.ts +12 -12
- package/lib/offers/offerwall/offerwall-offer.js +2 -2
- package/lib/offers/offerwall/offerwall-response.d.ts +6 -6
- package/lib/offers/offerwall/offerwall-response.js +2 -2
- package/lib/offers/offerwall/offerwall-section.d.ts +6 -6
- package/lib/offers/offerwall/offerwall-section.js +2 -2
- package/lib/offers/section.d.ts +47 -60
- package/lib/offers/section.js +20 -20
- package/lib/panel/app/upsert-flash-app-request.d.ts +31 -31
- package/lib/panel/app/upsert-flash-app-request.js +2 -2
- package/lib/panel/auth.d.ts +9 -9
- package/lib/panel/auth.js +2 -2
- package/lib/panel/flash/upsert-flash-app-request.d.ts +31 -31
- package/lib/panel/flash/upsert-flash-app-request.js +2 -2
- package/lib/panel/user.d.ts +46 -59
- package/lib/panel/user.js +28 -28
- package/lib/templates/nginx-template.conf +35 -35
- package/lib/templates/nginx-template.d.ts +1 -1
- package/lib/templates/nginx-template.js +39 -39
- package/lib/templates/nginx-template.ts +35 -35
- package/lib/utils/general.d.ts +11 -11
- package/lib/utils/general.js +40 -40
- package/lib/utils/huawei/converter.d.ts +2 -2
- package/lib/utils/huawei/converter.js +53 -53
- package/lib/utils/keitaro-utils.d.ts +13 -13
- package/lib/utils/keitaro-utils.js +614 -569
- package/lib/utils/server-util.js +303 -303
- package/package.json +51 -51
- package/src/app/app-integration.ts +66 -66
- package/src/app/app-list-item.ts +4 -4
- package/src/app/app-type.ts +3 -3
- package/src/app/app.ts +317 -317
- package/src/general/cloudflare-domain.ts +44 -44
- package/src/general/domain.ts +106 -106
- package/src/general/namecheap-domain.ts +63 -63
- package/src/general/push.ts +5 -5
- package/src/general/queue.ts +4 -4
- package/src/general/shape.tsx +55 -55
- package/src/index.ts +32 -32
- package/src/keitaro/keitaro-campaign.ts +35 -35
- package/src/keitaro/keitaro-domain.ts +5 -5
- package/src/keitaro/keitaro-offer.ts +6 -6
- package/src/keitaro/keitaro-stream.ts +19 -19
- package/src/network/keitaro/http.ts +8 -8
- package/src/network/keitaro/keitaro-service.ts +348 -364
- package/src/offers/list.ts +22 -19
- package/src/offers/offer.ts +80 -80
- package/src/offers/offerwall/offerwall-home-dialog-data.ts +6 -6
- package/src/offers/offerwall/offerwall-offer.ts +12 -12
- package/src/offers/offerwall/offerwall-response.ts +7 -7
- package/src/offers/offerwall/offerwall-section.ts +7 -7
- package/src/offers/section.ts +29 -29
- package/src/panel/app/upsert-flash-app-request.ts +39 -39
- package/src/panel/auth.ts +9 -9
- package/src/panel/user.ts +38 -38
- package/src/templates/nginx-template.ts +35 -35
- package/src/utils/data.csv +65 -65
- package/src/utils/general.ts +36 -36
- package/src/utils/huawei/converter.ts +55 -55
- package/src/utils/keitaro-utils.ts +717 -664
- package/src/utils/map-apps.json +4747 -4747
- package/src/utils/server-util.ts +368 -368
- package/src/utils/update-postbacks.js +27 -27
- package/tsconfig.json +20 -20
package/lib/offers/offer.d.ts
CHANGED
|
@@ -1,152 +1,91 @@
|
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
keitaroId?: string | null | undefined;
|
|
93
|
-
graphic?: {
|
|
94
|
-
logo?: string | null | undefined;
|
|
95
|
-
bg?: string | null | undefined;
|
|
96
|
-
} | null | undefined;
|
|
97
|
-
history?: {
|
|
98
|
-
name: string[];
|
|
99
|
-
caption: string[];
|
|
100
|
-
link: string[];
|
|
101
|
-
logoNames: string[];
|
|
102
|
-
bgNames: string[];
|
|
103
|
-
} | null | undefined;
|
|
104
|
-
}, Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
105
|
-
type: string;
|
|
106
|
-
id?: number | null | undefined;
|
|
107
|
-
partnerId?: number | null | undefined;
|
|
108
|
-
name?: string | null | undefined;
|
|
109
|
-
hidden?: boolean | null | undefined;
|
|
110
|
-
graphicFolder?: string | null | undefined;
|
|
111
|
-
geo?: string | null | undefined;
|
|
112
|
-
caption?: string | null | undefined;
|
|
113
|
-
link?: string | null | undefined;
|
|
114
|
-
keitaroId?: string | null | undefined;
|
|
115
|
-
graphic?: {
|
|
116
|
-
logo?: string | null | undefined;
|
|
117
|
-
bg?: string | null | undefined;
|
|
118
|
-
} | null | undefined;
|
|
119
|
-
history?: {
|
|
120
|
-
name: string[];
|
|
121
|
-
caption: string[];
|
|
122
|
-
link: string[];
|
|
123
|
-
logoNames: string[];
|
|
124
|
-
bgNames: string[];
|
|
125
|
-
} | null | undefined;
|
|
126
|
-
}>> & import("mongoose").FlatRecord<{
|
|
127
|
-
type: string;
|
|
128
|
-
id?: number | null | undefined;
|
|
129
|
-
partnerId?: number | null | undefined;
|
|
130
|
-
name?: string | null | undefined;
|
|
131
|
-
hidden?: boolean | null | undefined;
|
|
132
|
-
graphicFolder?: string | null | undefined;
|
|
133
|
-
geo?: string | null | undefined;
|
|
134
|
-
caption?: string | null | undefined;
|
|
135
|
-
link?: string | null | undefined;
|
|
136
|
-
keitaroId?: string | null | undefined;
|
|
137
|
-
graphic?: {
|
|
138
|
-
logo?: string | null | undefined;
|
|
139
|
-
bg?: string | null | undefined;
|
|
140
|
-
} | null | undefined;
|
|
141
|
-
history?: {
|
|
142
|
-
name: string[];
|
|
143
|
-
caption: string[];
|
|
144
|
-
link: string[];
|
|
145
|
-
logoNames: string[];
|
|
146
|
-
bgNames: string[];
|
|
147
|
-
} | null | undefined;
|
|
148
|
-
}> & {
|
|
149
|
-
_id: import("mongoose").Types.ObjectId;
|
|
150
|
-
} & {
|
|
151
|
-
__v: number;
|
|
152
|
-
}>;
|
|
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
|
+
partnerId?: number | undefined;
|
|
66
|
+
shortName?: string | undefined;
|
|
67
|
+
name?: string | undefined;
|
|
68
|
+
}>;
|
|
69
|
+
export declare const OfferSchema: Schema<any, Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
70
|
+
type: string;
|
|
71
|
+
id?: number | undefined;
|
|
72
|
+
partnerId?: number | undefined;
|
|
73
|
+
name?: string | undefined;
|
|
74
|
+
graphicFolder?: string | undefined;
|
|
75
|
+
geo?: string | undefined;
|
|
76
|
+
caption?: string | undefined;
|
|
77
|
+
link?: string | undefined;
|
|
78
|
+
keitaroId?: string | undefined;
|
|
79
|
+
hidden?: boolean | undefined;
|
|
80
|
+
graphic?: {
|
|
81
|
+
logo?: string | undefined;
|
|
82
|
+
bg?: string | undefined;
|
|
83
|
+
} | undefined;
|
|
84
|
+
history?: {
|
|
85
|
+
name: string[];
|
|
86
|
+
caption: string[];
|
|
87
|
+
link: string[];
|
|
88
|
+
logoNames: string[];
|
|
89
|
+
bgNames: string[];
|
|
90
|
+
} | undefined;
|
|
91
|
+
}>;
|
package/lib/offers/offer.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OfferSchema = exports.PartnerSchema = exports.IOfferType = void 0;
|
|
4
|
-
const mongoose_1 = require("mongoose");
|
|
5
|
-
var IOfferType;
|
|
6
|
-
(function (IOfferType) {
|
|
7
|
-
IOfferType["GAMBLING"] = "gambling";
|
|
8
|
-
IOfferType["BETTING"] = "betting";
|
|
9
|
-
IOfferType["FIN"] = "fin";
|
|
10
|
-
})(IOfferType = exports.IOfferType || (exports.IOfferType = {}));
|
|
11
|
-
exports.PartnerSchema = new mongoose_1.Schema({
|
|
12
|
-
partnerId: Number,
|
|
13
|
-
shortName: String,
|
|
14
|
-
name: String
|
|
15
|
-
});
|
|
16
|
-
exports.OfferSchema = new mongoose_1.Schema({
|
|
17
|
-
id: { type: Number, unique: true },
|
|
18
|
-
name: String,
|
|
19
|
-
graphicFolder: String,
|
|
20
|
-
graphic: {
|
|
21
|
-
logo: String,
|
|
22
|
-
bg: String
|
|
23
|
-
},
|
|
24
|
-
geo: String,
|
|
25
|
-
caption: String,
|
|
26
|
-
link: String,
|
|
27
|
-
partnerId: Number,
|
|
28
|
-
type: {
|
|
29
|
-
type: String,
|
|
30
|
-
enum: IOfferType,
|
|
31
|
-
default: IOfferType.GAMBLING
|
|
32
|
-
},
|
|
33
|
-
keitaroId: String,
|
|
34
|
-
hidden: Boolean,
|
|
35
|
-
history: {
|
|
36
|
-
link: [String],
|
|
37
|
-
logoNames: [String],
|
|
38
|
-
bgNames: [String],
|
|
39
|
-
name: [String],
|
|
40
|
-
caption: [String]
|
|
41
|
-
}
|
|
42
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OfferSchema = exports.PartnerSchema = exports.IOfferType = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
var IOfferType;
|
|
6
|
+
(function (IOfferType) {
|
|
7
|
+
IOfferType["GAMBLING"] = "gambling";
|
|
8
|
+
IOfferType["BETTING"] = "betting";
|
|
9
|
+
IOfferType["FIN"] = "fin";
|
|
10
|
+
})(IOfferType = exports.IOfferType || (exports.IOfferType = {}));
|
|
11
|
+
exports.PartnerSchema = new mongoose_1.Schema({
|
|
12
|
+
partnerId: Number,
|
|
13
|
+
shortName: String,
|
|
14
|
+
name: String
|
|
15
|
+
});
|
|
16
|
+
exports.OfferSchema = new mongoose_1.Schema({
|
|
17
|
+
id: { type: Number, unique: true },
|
|
18
|
+
name: String,
|
|
19
|
+
graphicFolder: String,
|
|
20
|
+
graphic: {
|
|
21
|
+
logo: String,
|
|
22
|
+
bg: String
|
|
23
|
+
},
|
|
24
|
+
geo: String,
|
|
25
|
+
caption: String,
|
|
26
|
+
link: String,
|
|
27
|
+
partnerId: Number,
|
|
28
|
+
type: {
|
|
29
|
+
type: String,
|
|
30
|
+
enum: IOfferType,
|
|
31
|
+
default: IOfferType.GAMBLING
|
|
32
|
+
},
|
|
33
|
+
keitaroId: String,
|
|
34
|
+
hidden: Boolean,
|
|
35
|
+
history: {
|
|
36
|
+
link: [String],
|
|
37
|
+
logoNames: [String],
|
|
38
|
+
bgNames: [String],
|
|
39
|
+
name: [String],
|
|
40
|
+
caption: [String]
|
|
41
|
+
}
|
|
42
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface IOfferWallHomeDialogData {
|
|
2
|
-
title: string;
|
|
3
|
-
message: string;
|
|
4
|
-
yes: string;
|
|
5
|
-
no: string;
|
|
6
|
-
}
|
|
1
|
+
export interface IOfferWallHomeDialogData {
|
|
2
|
+
title: string;
|
|
3
|
+
message: string;
|
|
4
|
+
yes: string;
|
|
5
|
+
no: string;
|
|
6
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface IOfferWallOffer {
|
|
2
|
-
url: string;
|
|
3
|
-
foregroundUrl: string;
|
|
4
|
-
backgroundUrl: string;
|
|
5
|
-
emojiIcon?: string;
|
|
6
|
-
emojiCaption?: string;
|
|
7
|
-
caption: string;
|
|
8
|
-
name: string;
|
|
9
|
-
new: boolean;
|
|
10
|
-
conversionTime: number;
|
|
11
|
-
priority: number;
|
|
12
|
-
}
|
|
1
|
+
export interface IOfferWallOffer {
|
|
2
|
+
url: string;
|
|
3
|
+
foregroundUrl: string;
|
|
4
|
+
backgroundUrl: string;
|
|
5
|
+
emojiIcon?: string;
|
|
6
|
+
emojiCaption?: string;
|
|
7
|
+
caption: string;
|
|
8
|
+
name: string;
|
|
9
|
+
new: boolean;
|
|
10
|
+
conversionTime: number;
|
|
11
|
+
priority: number;
|
|
12
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IOfferWallHomeDialogData } from "offers/offerwall/offerwall-home-dialog-data";
|
|
2
|
-
import { IOfferWallSection } from "offers/offerwall/offerwall-section";
|
|
3
|
-
export interface IOfferWallResponse {
|
|
4
|
-
sections: IOfferWallSection[];
|
|
5
|
-
homeDialog: IOfferWallHomeDialogData;
|
|
6
|
-
}
|
|
1
|
+
import { IOfferWallHomeDialogData } from "offers/offerwall/offerwall-home-dialog-data";
|
|
2
|
+
import { IOfferWallSection } from "offers/offerwall/offerwall-section";
|
|
3
|
+
export interface IOfferWallResponse {
|
|
4
|
+
sections: IOfferWallSection[];
|
|
5
|
+
homeDialog: IOfferWallHomeDialogData;
|
|
6
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IOfferWallOffer } from "offers/offerwall/offerwall-offer";
|
|
2
|
-
export interface IOfferWallSection {
|
|
3
|
-
offers: IOfferWallOffer[];
|
|
4
|
-
title: string;
|
|
5
|
-
buttonText: string;
|
|
6
|
-
}
|
|
1
|
+
import { IOfferWallOffer } from "offers/offerwall/offerwall-offer";
|
|
2
|
+
export interface IOfferWallSection {
|
|
3
|
+
offers: IOfferWallOffer[];
|
|
4
|
+
title: string;
|
|
5
|
+
buttonText: string;
|
|
6
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/lib/offers/section.d.ts
CHANGED
|
@@ -1,60 +1,47 @@
|
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
title?: any;
|
|
49
|
-
button?: any;
|
|
50
|
-
}> & {
|
|
51
|
-
_id: import("mongoose").Types.ObjectId;
|
|
52
|
-
} & {
|
|
53
|
-
__v: number;
|
|
54
|
-
}>;
|
|
55
|
-
export declare enum DefaultSectionId {
|
|
56
|
-
GAMBLING_MAIN = 0,
|
|
57
|
-
BETTING_MAIN = 1,
|
|
58
|
-
GAMBLING_PLAYED = 2,
|
|
59
|
-
BETTING_PLAYED = 3
|
|
60
|
-
}
|
|
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 IOffersSection {
|
|
27
|
+
id: number;
|
|
28
|
+
title: {
|
|
29
|
+
none: string;
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
};
|
|
32
|
+
button: {
|
|
33
|
+
none: string;
|
|
34
|
+
[key: string]: string;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export declare const OffersSectionSchema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
38
|
+
id: number;
|
|
39
|
+
title?: any;
|
|
40
|
+
button?: any;
|
|
41
|
+
}>;
|
|
42
|
+
export declare enum DefaultSectionId {
|
|
43
|
+
GAMBLING_MAIN = 0,
|
|
44
|
+
BETTING_MAIN = 1,
|
|
45
|
+
GAMBLING_PLAYED = 2,
|
|
46
|
+
BETTING_PLAYED = 3
|
|
47
|
+
}
|
package/lib/offers/section.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DefaultSectionId = exports.OffersSectionSchema = void 0;
|
|
4
|
-
const mongoose_1 = require("mongoose");
|
|
5
|
-
exports.OffersSectionSchema = new mongoose_1.Schema({
|
|
6
|
-
id: {
|
|
7
|
-
type: Number,
|
|
8
|
-
unique: true,
|
|
9
|
-
required: true
|
|
10
|
-
},
|
|
11
|
-
title: Object,
|
|
12
|
-
button: Object
|
|
13
|
-
});
|
|
14
|
-
var DefaultSectionId;
|
|
15
|
-
(function (DefaultSectionId) {
|
|
16
|
-
DefaultSectionId[DefaultSectionId["GAMBLING_MAIN"] = 0] = "GAMBLING_MAIN";
|
|
17
|
-
DefaultSectionId[DefaultSectionId["BETTING_MAIN"] = 1] = "BETTING_MAIN";
|
|
18
|
-
DefaultSectionId[DefaultSectionId["GAMBLING_PLAYED"] = 2] = "GAMBLING_PLAYED";
|
|
19
|
-
DefaultSectionId[DefaultSectionId["BETTING_PLAYED"] = 3] = "BETTING_PLAYED";
|
|
20
|
-
})(DefaultSectionId = exports.DefaultSectionId || (exports.DefaultSectionId = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DefaultSectionId = exports.OffersSectionSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
exports.OffersSectionSchema = new mongoose_1.Schema({
|
|
6
|
+
id: {
|
|
7
|
+
type: Number,
|
|
8
|
+
unique: true,
|
|
9
|
+
required: true
|
|
10
|
+
},
|
|
11
|
+
title: Object,
|
|
12
|
+
button: Object
|
|
13
|
+
});
|
|
14
|
+
var DefaultSectionId;
|
|
15
|
+
(function (DefaultSectionId) {
|
|
16
|
+
DefaultSectionId[DefaultSectionId["GAMBLING_MAIN"] = 0] = "GAMBLING_MAIN";
|
|
17
|
+
DefaultSectionId[DefaultSectionId["BETTING_MAIN"] = 1] = "BETTING_MAIN";
|
|
18
|
+
DefaultSectionId[DefaultSectionId["GAMBLING_PLAYED"] = 2] = "GAMBLING_PLAYED";
|
|
19
|
+
DefaultSectionId[DefaultSectionId["BETTING_PLAYED"] = 3] = "BETTING_PLAYED";
|
|
20
|
+
})(DefaultSectionId = exports.DefaultSectionId || (exports.DefaultSectionId = {}));
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { EImageFormat, IAppKeitaroData, IBannerParams, IDirectParams, IDomainParams, IExternalParams, IOffersStubParams, IPlatformParams, IntegrationVersion } from "app/app";
|
|
2
|
-
export interface IUpsertAppRequest {
|
|
3
|
-
id: number;
|
|
4
|
-
name?: string;
|
|
5
|
-
bundle?: string;
|
|
6
|
-
sourceUrl?: string;
|
|
7
|
-
enabled?: boolean;
|
|
8
|
-
geos?: string;
|
|
9
|
-
geo?: string[];
|
|
10
|
-
appmetricaApiKey?: string;
|
|
11
|
-
appmetricaAppId?: number;
|
|
12
|
-
integrationVersion?: IntegrationVersion;
|
|
13
|
-
keitaroData?: Partial<IAppKeitaroData>;
|
|
14
|
-
offersStubParams?: IOffersStubParams;
|
|
15
|
-
bannerParams?: IBannerParams;
|
|
16
|
-
domainParams: IDomainParams;
|
|
17
|
-
directParams?: IDirectParams;
|
|
18
|
-
externalParams?: IExternalParams;
|
|
19
|
-
platforms: {
|
|
20
|
-
[key: string]: IPlatformParams;
|
|
21
|
-
};
|
|
22
|
-
proxied: boolean;
|
|
23
|
-
imageFormat?: EImageFormat;
|
|
24
|
-
file?: any;
|
|
25
|
-
}
|
|
26
|
-
export interface IUpsertAppResponse {
|
|
27
|
-
data: IUpsertAppRequest;
|
|
28
|
-
linkName: string;
|
|
29
|
-
archive: string;
|
|
30
|
-
externalParams?: IExternalParams;
|
|
31
|
-
}
|
|
1
|
+
import { EImageFormat, IAppKeitaroData, IBannerParams, IDirectParams, IDomainParams, IExternalParams, IOffersStubParams, IPlatformParams, IntegrationVersion } from "app/app";
|
|
2
|
+
export interface IUpsertAppRequest {
|
|
3
|
+
id: number;
|
|
4
|
+
name?: string;
|
|
5
|
+
bundle?: string;
|
|
6
|
+
sourceUrl?: string;
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
geos?: string;
|
|
9
|
+
geo?: string[];
|
|
10
|
+
appmetricaApiKey?: string;
|
|
11
|
+
appmetricaAppId?: number;
|
|
12
|
+
integrationVersion?: IntegrationVersion;
|
|
13
|
+
keitaroData?: Partial<IAppKeitaroData>;
|
|
14
|
+
offersStubParams?: IOffersStubParams;
|
|
15
|
+
bannerParams?: IBannerParams;
|
|
16
|
+
domainParams: IDomainParams;
|
|
17
|
+
directParams?: IDirectParams;
|
|
18
|
+
externalParams?: IExternalParams;
|
|
19
|
+
platforms: {
|
|
20
|
+
[key: string]: IPlatformParams;
|
|
21
|
+
};
|
|
22
|
+
proxied: boolean;
|
|
23
|
+
imageFormat?: EImageFormat;
|
|
24
|
+
file?: any;
|
|
25
|
+
}
|
|
26
|
+
export interface IUpsertAppResponse {
|
|
27
|
+
data: IUpsertAppRequest;
|
|
28
|
+
linkName: string;
|
|
29
|
+
archive: string;
|
|
30
|
+
externalParams?: IExternalParams;
|
|
31
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|