@bprotsyk/aso-core 2.1.5 → 2.1.7
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.d.ts +3 -1
- package/lib/app/app.js +6 -0
- package/package.json +1 -1
- package/src/app/app.ts +8 -3
package/lib/app/app.d.ts
CHANGED
|
@@ -39,7 +39,8 @@ export declare enum EPlatform {
|
|
|
39
39
|
ruSTORE = "rs",
|
|
40
40
|
XIAOMI = "xm",
|
|
41
41
|
APKPURE = "ap",
|
|
42
|
-
TELEGRAM = "tg"
|
|
42
|
+
TELEGRAM = "tg",
|
|
43
|
+
AMAZON = "am"
|
|
43
44
|
}
|
|
44
45
|
export interface IPlatformParams {
|
|
45
46
|
enabled: boolean;
|
|
@@ -164,6 +165,7 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
|
|
|
164
165
|
enabled: boolean;
|
|
165
166
|
bundle: string;
|
|
166
167
|
trackingUrl: string;
|
|
168
|
+
integrationVersion: string;
|
|
167
169
|
geos: string;
|
|
168
170
|
name?: string | undefined;
|
|
169
171
|
pushesEnabled?: boolean | undefined;
|
package/lib/app/app.js
CHANGED
|
@@ -13,6 +13,7 @@ var EPlatform;
|
|
|
13
13
|
EPlatform["XIAOMI"] = "xm";
|
|
14
14
|
EPlatform["APKPURE"] = "ap";
|
|
15
15
|
EPlatform["TELEGRAM"] = "tg";
|
|
16
|
+
EPlatform["AMAZON"] = "am";
|
|
16
17
|
})(EPlatform = exports.EPlatform || (exports.EPlatform = {}));
|
|
17
18
|
var IntegrationVersion;
|
|
18
19
|
(function (IntegrationVersion) {
|
|
@@ -53,6 +54,11 @@ exports.AppSchema = new mongoose_1.Schema({
|
|
|
53
54
|
default: null
|
|
54
55
|
},
|
|
55
56
|
pushesEnabled: Boolean,
|
|
57
|
+
integrationVersion: {
|
|
58
|
+
type: String,
|
|
59
|
+
enum: IntegrationVersion,
|
|
60
|
+
default: null
|
|
61
|
+
},
|
|
56
62
|
type: {
|
|
57
63
|
type: String,
|
|
58
64
|
enum: app_type_1.AppType,
|
package/package.json
CHANGED
package/src/app/app.ts
CHANGED
|
@@ -47,7 +47,8 @@ export enum EPlatform {
|
|
|
47
47
|
ruSTORE = 'rs',
|
|
48
48
|
XIAOMI = 'xm',
|
|
49
49
|
APKPURE = 'ap',
|
|
50
|
-
TELEGRAM = 'tg'
|
|
50
|
+
TELEGRAM = 'tg',
|
|
51
|
+
AMAZON = 'am'
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
export interface IPlatformParams {
|
|
@@ -68,7 +69,7 @@ export interface IAdjustEventIds {
|
|
|
68
69
|
export interface IExternalParams {
|
|
69
70
|
showButton: boolean,
|
|
70
71
|
schema: string,
|
|
71
|
-
autoRedirect: boolean
|
|
72
|
+
autoRedirect: boolean
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
export interface IRemoteServerParams {
|
|
@@ -210,7 +211,11 @@ export const AppSchema = new Schema({
|
|
|
210
211
|
},
|
|
211
212
|
|
|
212
213
|
pushesEnabled: Boolean,
|
|
213
|
-
|
|
214
|
+
integrationVersion: {
|
|
215
|
+
type: String,
|
|
216
|
+
enum: IntegrationVersion,
|
|
217
|
+
default: null
|
|
218
|
+
},
|
|
214
219
|
type: {
|
|
215
220
|
type: String,
|
|
216
221
|
enum: AppType,
|