@bprotsyk/aso-core 1.2.50 → 1.2.51
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
CHANGED
|
@@ -7,7 +7,9 @@ export interface IFlashApp {
|
|
|
7
7
|
bundle: string;
|
|
8
8
|
pushesEnabled?: boolean;
|
|
9
9
|
plugUrl: string;
|
|
10
|
+
plugType: PlugType;
|
|
10
11
|
reservePlugUrl?: string;
|
|
12
|
+
reservePlugType?: PlugType;
|
|
11
13
|
policyUrl?: string;
|
|
12
14
|
type: FlashAppType;
|
|
13
15
|
geos: string;
|
|
@@ -36,13 +38,18 @@ export interface IAppKeitaroData {
|
|
|
36
38
|
domainId: string;
|
|
37
39
|
domainName: string;
|
|
38
40
|
}
|
|
41
|
+
export declare enum PlugType {
|
|
42
|
+
PASTEBIN = "PASTEBIN",
|
|
43
|
+
GIST = "GIST",
|
|
44
|
+
OTHER = "OTHER"
|
|
45
|
+
}
|
|
39
46
|
export declare const FlashAppSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
40
47
|
type: string;
|
|
41
48
|
id: number;
|
|
42
49
|
bundle: string;
|
|
43
50
|
trackingUrl: string;
|
|
44
51
|
plugUrl: string;
|
|
45
|
-
|
|
52
|
+
plugType: string;
|
|
46
53
|
geos: string;
|
|
47
54
|
onesignalAppId: string;
|
|
48
55
|
onesignalRestApiKey: string;
|
|
@@ -51,6 +58,8 @@ export declare const FlashAppSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
51
58
|
developerOrganization: string;
|
|
52
59
|
name?: string | undefined;
|
|
53
60
|
pushesEnabled?: boolean | undefined;
|
|
61
|
+
reservePlugUrl?: string | undefined;
|
|
62
|
+
reservePlugType?: string | undefined;
|
|
54
63
|
policyUrl?: string | undefined;
|
|
55
64
|
generationOptions?: {
|
|
56
65
|
splashActivityClassName: string;
|
package/lib/flash/flash-app.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateSchemaAndMoveValue = exports.FlashAppSchema = void 0;
|
|
3
|
+
exports.updateSchemaAndMoveValue = exports.FlashAppSchema = exports.PlugType = void 0;
|
|
4
4
|
const flash_app_type_1 = require("./flash-app-type");
|
|
5
5
|
const mongoose_1 = require("mongoose");
|
|
6
|
+
var PlugType;
|
|
7
|
+
(function (PlugType) {
|
|
8
|
+
PlugType["PASTEBIN"] = "PASTEBIN";
|
|
9
|
+
PlugType["GIST"] = "GIST";
|
|
10
|
+
PlugType["OTHER"] = "OTHER";
|
|
11
|
+
})(PlugType = exports.PlugType || (exports.PlugType = {}));
|
|
6
12
|
exports.FlashAppSchema = new mongoose_1.Schema({
|
|
7
13
|
id: {
|
|
8
14
|
type: Number,
|
|
@@ -25,10 +31,22 @@ exports.FlashAppSchema = new mongoose_1.Schema({
|
|
|
25
31
|
unique: true,
|
|
26
32
|
required: true
|
|
27
33
|
},
|
|
34
|
+
plugType: {
|
|
35
|
+
type: String,
|
|
36
|
+
enum: PlugType,
|
|
37
|
+
default: PlugType.PASTEBIN,
|
|
38
|
+
required: true
|
|
39
|
+
},
|
|
28
40
|
reservePlugUrl: {
|
|
29
41
|
type: String,
|
|
30
42
|
unique: true,
|
|
31
|
-
required:
|
|
43
|
+
required: false
|
|
44
|
+
},
|
|
45
|
+
reservePlugType: {
|
|
46
|
+
type: String,
|
|
47
|
+
enum: PlugType,
|
|
48
|
+
default: PlugType.GIST,
|
|
49
|
+
required: false
|
|
32
50
|
},
|
|
33
51
|
policyUrl: {
|
|
34
52
|
type: String,
|
|
@@ -46,12 +64,10 @@ exports.FlashAppSchema = new mongoose_1.Schema({
|
|
|
46
64
|
},
|
|
47
65
|
onesignalAppId: {
|
|
48
66
|
type: String,
|
|
49
|
-
unique: true,
|
|
50
67
|
required: true
|
|
51
68
|
},
|
|
52
69
|
onesignalRestApiKey: {
|
|
53
70
|
type: String,
|
|
54
|
-
unique: true,
|
|
55
71
|
required: true
|
|
56
72
|
},
|
|
57
73
|
developerName: {
|
|
@@ -146,6 +162,8 @@ async function updateSchemaAndMoveValue(model) {
|
|
|
146
162
|
domainId: "none",
|
|
147
163
|
domainName: "none",
|
|
148
164
|
},
|
|
165
|
+
plugType: PlugType.PASTEBIN,
|
|
166
|
+
reservePlugType: PlugType.GIST,
|
|
149
167
|
type: flash_app_type_1.FlashAppType.GAMBLING
|
|
150
168
|
}
|
|
151
169
|
}
|
|
@@ -166,6 +184,9 @@ async function updateSchemaAndMoveValue(model) {
|
|
|
166
184
|
domainName: "none",
|
|
167
185
|
},
|
|
168
186
|
plugUrl: "none",
|
|
187
|
+
plugType: PlugType.PASTEBIN,
|
|
188
|
+
reservePlugUrl: "none",
|
|
189
|
+
reservePlugType: PlugType.GIST,
|
|
169
190
|
developerName: "none",
|
|
170
191
|
type: flash_app_type_1.FlashAppType.GAMBLING
|
|
171
192
|
},
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
export interface IUpsertFlashAppRequest {
|
|
2
2
|
id: number;
|
|
3
3
|
name: string;
|
|
4
|
-
trackingUrl?: string;
|
|
5
4
|
bundle: string;
|
|
6
|
-
pushesEnabled?: boolean;
|
|
7
5
|
plugUrl: string;
|
|
8
6
|
reservePlugUrl?: string;
|
|
9
|
-
policyUrl?: string;
|
|
10
7
|
onesignalAppId: string;
|
|
11
8
|
onesignalRestApiKey: string;
|
|
12
9
|
developerName: string;
|
package/package.json
CHANGED
package/src/flash/flash-app.ts
CHANGED
|
@@ -9,7 +9,9 @@ export interface IFlashApp {
|
|
|
9
9
|
|
|
10
10
|
pushesEnabled?: boolean
|
|
11
11
|
plugUrl: string
|
|
12
|
+
plugType: PlugType
|
|
12
13
|
reservePlugUrl?: string
|
|
14
|
+
reservePlugType?: PlugType
|
|
13
15
|
policyUrl?: string
|
|
14
16
|
type: FlashAppType,
|
|
15
17
|
geos: string,
|
|
@@ -45,6 +47,12 @@ export interface IAppKeitaroData {
|
|
|
45
47
|
domainName: string
|
|
46
48
|
}
|
|
47
49
|
|
|
50
|
+
export enum PlugType {
|
|
51
|
+
PASTEBIN = "PASTEBIN",
|
|
52
|
+
GIST = "GIST",
|
|
53
|
+
OTHER = "OTHER"
|
|
54
|
+
}
|
|
55
|
+
|
|
48
56
|
export const FlashAppSchema = new Schema({
|
|
49
57
|
id: {
|
|
50
58
|
type: Number,
|
|
@@ -68,10 +76,22 @@ export const FlashAppSchema = new Schema({
|
|
|
68
76
|
unique: true,
|
|
69
77
|
required: true
|
|
70
78
|
},
|
|
79
|
+
plugType: {
|
|
80
|
+
type: String,
|
|
81
|
+
enum: PlugType,
|
|
82
|
+
default: PlugType.PASTEBIN,
|
|
83
|
+
required: true
|
|
84
|
+
},
|
|
71
85
|
reservePlugUrl: {
|
|
72
86
|
type: String,
|
|
73
87
|
unique: true,
|
|
74
|
-
required:
|
|
88
|
+
required: false
|
|
89
|
+
},
|
|
90
|
+
reservePlugType: {
|
|
91
|
+
type: String,
|
|
92
|
+
enum: PlugType,
|
|
93
|
+
default: PlugType.GIST,
|
|
94
|
+
required: false
|
|
75
95
|
},
|
|
76
96
|
policyUrl: {
|
|
77
97
|
type: String,
|
|
@@ -90,12 +110,10 @@ export const FlashAppSchema = new Schema({
|
|
|
90
110
|
|
|
91
111
|
onesignalAppId: {
|
|
92
112
|
type: String,
|
|
93
|
-
unique: true,
|
|
94
113
|
required: true
|
|
95
114
|
},
|
|
96
115
|
onesignalRestApiKey: {
|
|
97
116
|
type: String,
|
|
98
|
-
unique: true,
|
|
99
117
|
required: true
|
|
100
118
|
},
|
|
101
119
|
|
|
@@ -191,13 +209,15 @@ export async function updateSchemaAndMoveValue(model: Model<IFlashApp>): Promise
|
|
|
191
209
|
redirectCampaignName: "none",
|
|
192
210
|
trackingCampaignId: "none",
|
|
193
211
|
trackingCampaignName: "none",
|
|
194
|
-
|
|
212
|
+
|
|
195
213
|
clickIdParameterName: "none",
|
|
196
214
|
offerIdParameterName: "none",
|
|
197
|
-
|
|
215
|
+
|
|
198
216
|
domainId: "none",
|
|
199
217
|
domainName: "none",
|
|
200
218
|
},
|
|
219
|
+
plugType: PlugType.PASTEBIN,
|
|
220
|
+
reservePlugType: PlugType.GIST,
|
|
201
221
|
type: FlashAppType.GAMBLING
|
|
202
222
|
}
|
|
203
223
|
}
|
|
@@ -223,6 +243,9 @@ export async function updateSchemaAndMoveValue(model: Model<IFlashApp>): Promise
|
|
|
223
243
|
domainName: "none",
|
|
224
244
|
},
|
|
225
245
|
plugUrl: "none",
|
|
246
|
+
plugType: PlugType.PASTEBIN,
|
|
247
|
+
reservePlugUrl: "none",
|
|
248
|
+
reservePlugType: PlugType.GIST,
|
|
226
249
|
developerName: "none",
|
|
227
250
|
type: FlashAppType.GAMBLING
|
|
228
251
|
},
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
export interface IUpsertFlashAppRequest {
|
|
2
2
|
id: number
|
|
3
3
|
name: string
|
|
4
|
-
trackingUrl?: string
|
|
5
4
|
bundle: string
|
|
6
|
-
|
|
7
|
-
pushesEnabled?: boolean
|
|
8
5
|
plugUrl: string
|
|
9
6
|
reservePlugUrl?: string
|
|
10
|
-
policyUrl?: string
|
|
11
7
|
|
|
12
8
|
onesignalAppId: string
|
|
13
9
|
onesignalRestApiKey: string
|