@bprotsyk/aso-core 1.1.13 → 1.1.14

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.
Files changed (43) hide show
  1. package/lib/aso/config/aso-config-v0.d.ts +79 -10
  2. package/lib/aso/config/aso-config-v0.js +2 -0
  3. package/lib/aso/config/aso-config-v1.d.ts +90 -22
  4. package/lib/aso/config/aso-config-v1.js +1 -0
  5. package/lib/aso/config/aso-config-v2.d.ts +83 -16
  6. package/lib/aso/config/aso-config-v2.js +2 -0
  7. package/lib/aso/config/aso-config-v3.d.ts +91 -24
  8. package/lib/aso/config/aso-config-v3.js +2 -0
  9. package/lib/aso/config/aso-config-v4.d.ts +29 -26
  10. package/lib/aso/config/aso-config-v4.js +2 -0
  11. package/lib/aso/config/aso-config-v5.d.ts +228 -0
  12. package/lib/aso/config/aso-config-v5.js +58 -0
  13. package/lib/aso/config/aso-default-config.d.ts +2 -1
  14. package/lib/aso/config/aso-single-response.d.ts +2 -2
  15. package/lib/aso/offer/aso-customized-offer.d.ts +1 -0
  16. package/lib/aso/offerwall/offerwall-offer.d.ts +7 -0
  17. package/lib/aso/offerwall/offerwall-offer.js +2 -0
  18. package/lib/aso/offerwall/offerwall-response.d.ts +4 -0
  19. package/lib/aso/offerwall/offerwall-response.js +2 -0
  20. package/lib/aso/offerwall/offerwall-section.d.ts +6 -0
  21. package/lib/aso/offerwall/offerwall-section.js +2 -0
  22. package/lib/flash/flash-app.d.ts +71 -0
  23. package/lib/flash/flash-app.js +38 -0
  24. package/lib/index.d.ts +3 -0
  25. package/lib/shared/offer.d.ts +1 -0
  26. package/lib/shared/single-offer.d.ts +0 -1
  27. package/package.json +4 -2
  28. package/src/aso/config/aso-config-v0.ts +37 -19
  29. package/src/aso/config/aso-config-v1.ts +45 -30
  30. package/src/aso/config/aso-config-v2.ts +43 -23
  31. package/src/aso/config/aso-config-v3.ts +56 -38
  32. package/src/aso/config/aso-config-v4.ts +33 -29
  33. package/src/aso/config/aso-config-v5.ts +328 -0
  34. package/src/aso/config/aso-default-config.ts +2 -1
  35. package/src/aso/config/aso-single-response.ts +2 -2
  36. package/src/aso/offer/aso-customized-offer.ts +2 -1
  37. package/src/aso/offerwall/offerwall-offer.ts +8 -0
  38. package/src/aso/offerwall/offerwall-response.ts +5 -0
  39. package/src/aso/offerwall/offerwall-section.ts +7 -0
  40. package/src/flash/flash-app.ts +84 -0
  41. package/src/index.ts +5 -1
  42. package/src/shared/offer.ts +9 -8
  43. package/src/shared/single-offer.ts +0 -1
@@ -1,19 +1,4 @@
1
- import { DefaultConfig } from "./aso-default-config";
2
- interface AuthorizationActionMapping {
3
- hasNextAction: string;
4
- nextActionIn: string;
5
- changeNumberCaption: string;
6
- nextActionCaption: string;
7
- nextActionPatternCaption: string;
8
- actualTitlePattern: string;
9
- expiredTitlePattern: string;
10
- subtitle: string;
11
- when: string;
12
- authorized: string;
13
- }
14
- interface LocalizationMap {
15
- [key: string]: Localization;
16
- }
1
+ import { ASODefaultConfig } from "./aso-default-config";
17
2
  export interface ASOConfig_v4 {
18
3
  name: string;
19
4
  email: string;
@@ -22,7 +7,9 @@ export interface ASOConfig_v4 {
22
7
  host: string;
23
8
  ip: string;
24
9
  sshPassword: string;
10
+ sshPort?: string;
25
11
  trackingLink: string;
12
+ newTrackingLink?: string;
26
13
  fullAccess: boolean;
27
14
  appsflyerKey: string;
28
15
  onesignalKey: string;
@@ -75,15 +62,31 @@ export interface ASOConfig_v4 {
75
62
  pinImitationCountries?: string;
76
63
  exportedTranslations?: boolean;
77
64
  readyForPanel?: boolean;
65
+ oldHosts?: string[];
78
66
  betting?: boolean;
79
67
  version: number;
80
68
  }
81
- interface IOfferSectionMapping {
69
+ export interface AuthorizationActionMapping {
70
+ hasNextAction: string;
71
+ nextActionIn: string;
72
+ changeNumberCaption: string;
73
+ nextActionCaption: string;
74
+ nextActionPatternCaption: string;
75
+ actualTitlePattern: string;
76
+ expiredTitlePattern: string;
77
+ subtitle: string;
78
+ when: string;
79
+ authorized: string;
80
+ }
81
+ interface LocalizationMap {
82
+ [key: string]: Localization;
83
+ }
84
+ export interface IOfferSectionMapping {
82
85
  offers: string;
83
86
  title: string;
84
87
  internal: [string, any][];
85
88
  }
86
- interface IOfferResultMapping {
89
+ export interface IOfferResultMapping {
87
90
  id: string;
88
91
  backgroundImage: string;
89
92
  foregroundImage: string;
@@ -92,11 +95,11 @@ interface IOfferResultMapping {
92
95
  buttonText: string;
93
96
  mappingName: string;
94
97
  }
95
- interface LocalizedString {
98
+ export interface LocalizedString {
96
99
  en: string;
97
100
  ru: string;
98
101
  }
99
- interface Localization {
102
+ export interface Localization {
100
103
  numberWillReceiveACallPattern: string;
101
104
  numberReceivedACallPattern: string;
102
105
  numberReceivedASmsPattern: string;
@@ -141,7 +144,7 @@ interface Localization {
141
144
  auth_privacyPolicyAcceptance: string;
142
145
  auth_privacyPolicy: ColoredString;
143
146
  }
144
- interface ColoredString {
147
+ export interface ColoredString {
145
148
  text: string;
146
149
  colors: ColoredSpan[];
147
150
  mappingName: string;
@@ -151,17 +154,17 @@ interface ColoredSpan {
151
154
  to: number;
152
155
  color: string;
153
156
  }
154
- interface ColoredStringMapping {
157
+ export interface ColoredStringMapping {
155
158
  text: string;
156
159
  colors: string;
157
160
  internal: [string, ColoredSpanMapping][];
158
161
  }
159
- interface ColoredSpanMapping {
162
+ export interface ColoredSpanMapping {
160
163
  from: string;
161
164
  to: string;
162
165
  color: string;
163
166
  }
164
- interface ConfigMapping {
167
+ export interface ConfigMapping {
165
168
  fullAccess: string;
166
169
  appsflyerKey: string;
167
170
  onesignalKey: string;
@@ -172,7 +175,7 @@ interface ConfigMapping {
172
175
  localization: string;
173
176
  internal: [string, LocalizationMapping][];
174
177
  }
175
- interface LocalizationMapping {
178
+ export interface LocalizationMapping {
176
179
  game_spin: string;
177
180
  game_balance_pattern: string;
178
181
  game_win_pattern: string;
@@ -201,5 +204,5 @@ interface LocalizationMapping {
201
204
  auth_privacyPolicy: string;
202
205
  internal: [string, ColoredStringMapping][];
203
206
  }
204
- export declare let asoConfigToDefault_v4: (config: ASOConfig_v4) => DefaultConfig;
207
+ export declare let asoConfigToDefault_v4: (config: ASOConfig_v4) => ASODefaultConfig;
205
208
  export {};
@@ -10,7 +10,9 @@ let asoConfigToDefault_v4 = (config) => {
10
10
  host: config.host,
11
11
  ip: config.ip,
12
12
  sshPassword: config.sshPassword,
13
+ sshPort: config.sshPort,
13
14
  trackingLink: config.trackingLink,
15
+ newTrackingLink: config.newTrackingLink,
14
16
  fullAccess: config.fullAccess,
15
17
  appsflyerKey: config.appsflyerKey,
16
18
  onesignalKey: config.onesignalKey,
@@ -0,0 +1,228 @@
1
+ import { ASODefaultConfig } from "./aso-default-config";
2
+ export interface ASOConfig_v5 {
3
+ name: string;
4
+ email: string;
5
+ id: number;
6
+ bundle: string;
7
+ host: string;
8
+ ip: string;
9
+ sshPassword: string;
10
+ sshPort?: string;
11
+ trackingLink: string;
12
+ newTrackingLink?: string;
13
+ fullAccess: boolean;
14
+ appsflyerKey: string;
15
+ onesignalKey: string;
16
+ onesignalRestApiKey?: string;
17
+ allowedCountries: string;
18
+ excludedCountries: string;
19
+ supportUrl?: string;
20
+ support?: {
21
+ [key: string]: string;
22
+ };
23
+ privacyPolicyUrl: string;
24
+ callCoolDown: number;
25
+ smsCoolDown: number;
26
+ maxSmsTries: number;
27
+ maxCallTries: number;
28
+ smscLogin: string;
29
+ smscPassword: string;
30
+ localization?: LocalizationMap | Localization;
31
+ localizationMapping: LocalizationMapping;
32
+ authorizationActionMapping: AuthorizationActionMapping;
33
+ offerSectionMapping: IOfferSectionMapping;
34
+ offerResultMapping: IOfferResultMapping;
35
+ configMapping: ConfigMapping;
36
+ coloredStringMapping: ColoredStringMapping;
37
+ coloredSpanMapping: ColoredSpanMapping;
38
+ configEndpoint: string;
39
+ offersEndpoint: string;
40
+ nextActionEndpoint: string;
41
+ currentActionEndpoint: string;
42
+ validationEndpoint: string;
43
+ imageEndpoint: string;
44
+ sectionsParameter: string;
45
+ phoneParameter: string;
46
+ codeParameter: string;
47
+ validityParameter: string;
48
+ appsflyerIdParameter: string;
49
+ advertisingIdParameter: string;
50
+ onesignalIdParameter: string;
51
+ offerIdParameter: string;
52
+ countryCodeParameter: string;
53
+ redirectFolderName?: string;
54
+ redirectHtmlName: string;
55
+ redirectJsName: string;
56
+ redirectJsCustomNumberParameter?: string;
57
+ networkErrorDialogTitle: LocalizedString;
58
+ networkErrorDialogMessage: LocalizedString;
59
+ networkErrorDialogButton: LocalizedString;
60
+ skipCode?: boolean;
61
+ externalIpGeo?: boolean;
62
+ pinImitationCountries?: string;
63
+ exportedTranslations?: boolean;
64
+ readyForPanel?: boolean;
65
+ oldHosts?: string[];
66
+ betting?: boolean;
67
+ backPressBounceTimeSeconds: number;
68
+ backPressesToShowHome: number;
69
+ homeOnBackPressEnabled: boolean;
70
+ homeButtonEnabled: boolean;
71
+ version: number;
72
+ }
73
+ export interface AuthorizationActionMapping {
74
+ hasNextAction: string;
75
+ nextActionIn: string;
76
+ changeNumberCaption: string;
77
+ nextActionCaption: string;
78
+ nextActionPatternCaption: string;
79
+ actualTitlePattern: string;
80
+ expiredTitlePattern: string;
81
+ subtitle: string;
82
+ when: string;
83
+ authorized: string;
84
+ }
85
+ interface LocalizationMap {
86
+ [key: string]: Localization;
87
+ }
88
+ export interface IOfferSectionMapping {
89
+ offers: string;
90
+ title: string;
91
+ internal: [string, any][];
92
+ }
93
+ export interface IOfferResultMapping {
94
+ id: string;
95
+ backgroundImage: string;
96
+ foregroundImage: string;
97
+ emoji: string;
98
+ emojiCaption: string;
99
+ buttonText: string;
100
+ mappingName: string;
101
+ }
102
+ export interface LocalizedString {
103
+ en: string;
104
+ ru: string;
105
+ }
106
+ export interface Localization {
107
+ numberWillReceiveACallPattern: string;
108
+ numberReceivedACallPattern: string;
109
+ numberReceivedASmsPattern: string;
110
+ numberWillReceiveASmsPattern: string;
111
+ enterLastFourDigits: string;
112
+ enterCodeFromSms: string;
113
+ callAgainSPattern: string;
114
+ callAgain: string;
115
+ smsAgain: string;
116
+ smsAgainSPattern: string;
117
+ changeNumber: string;
118
+ sendSms: string;
119
+ sendSmsSPattern: string;
120
+ unfortunatelyYourTriesLeft: string;
121
+ error_phone: string;
122
+ error_serverTitle: string;
123
+ error_serverMessage: string;
124
+ error_serverOkButton: string;
125
+ error_serverAgainButton: string;
126
+ error_serverExitButton: string;
127
+ error_invalidCode: string;
128
+ changeNumber_title: string;
129
+ changeNumber_message: string;
130
+ changeNumber_no: string;
131
+ changeNumber_yes: string;
132
+ next_title: string;
133
+ next_message: string;
134
+ next_yes: string;
135
+ next_no: string;
136
+ supportCaption: string;
137
+ appIsNotInstalledCaption: string;
138
+ game_spin: string;
139
+ game_balance: string;
140
+ game_balance_pattern: string;
141
+ game_win: string;
142
+ game_win_pattern: string;
143
+ game_authorize: string;
144
+ game_demo_welcome: string;
145
+ game_demo_available_after_auth: string;
146
+ game_min_rate_error_pattern: string;
147
+ game_yourLevel: string;
148
+ auth_title: ColoredString;
149
+ auth_subtitle: ColoredString;
150
+ auth_changeNumber: string;
151
+ auth_getAccess: string;
152
+ auth_enterAsGuest: string;
153
+ auth_privacyPolicyAcceptance: string;
154
+ auth_privacyPolicy: ColoredString;
155
+ homeHint: string;
156
+ }
157
+ export interface ColoredString {
158
+ text: string;
159
+ colors: ColoredSpan[];
160
+ mappingName: string;
161
+ }
162
+ interface ColoredSpan {
163
+ from: number;
164
+ to: number;
165
+ color: string;
166
+ }
167
+ export interface ColoredStringMapping {
168
+ text: string;
169
+ colors: string;
170
+ internal: [string, ColoredSpanMapping][];
171
+ }
172
+ export interface ColoredSpanMapping {
173
+ from: string;
174
+ to: string;
175
+ color: string;
176
+ }
177
+ export interface ConfigMapping {
178
+ fullAccess: string;
179
+ appsflyerKey: string;
180
+ onesignalKey: string;
181
+ allowedCountries: string;
182
+ excludedCountries: string;
183
+ supportUrl: string;
184
+ privacyPolicyUrl: string;
185
+ localization: string;
186
+ backPressBounceTimeSeconds: string;
187
+ backPressesToShowHome: string;
188
+ homeOnBackPressEnabled: string;
189
+ homeButtonEnabled: string;
190
+ internal: [string, LocalizationMapping][];
191
+ }
192
+ export interface LocalizationMapping {
193
+ game_spin: string;
194
+ game_balance_pattern: string;
195
+ game_win_pattern: string;
196
+ game_authorize: string;
197
+ game_demo_welcome: string;
198
+ game_demo_available_after_auth: string;
199
+ game_min_rate_error_pattern: string;
200
+ game_yourLevel: string;
201
+ error_phone: string;
202
+ error_serverTitle: string;
203
+ error_serverMessage: string;
204
+ error_serverOkButton: string;
205
+ error_serverAgainButton: string;
206
+ error_serverExitButton: string;
207
+ error_invalidCode: string;
208
+ changeNumber_title: string;
209
+ changeNumber_message: string;
210
+ changeNumber_no: string;
211
+ changeNumber_yes: string;
212
+ next_title: string;
213
+ next_message: string;
214
+ next_yes: string;
215
+ next_no: string;
216
+ supportCaption: string;
217
+ appIsNotInstalledCaption: string;
218
+ auth_title: string;
219
+ auth_subtitle: string;
220
+ auth_getAccess: string;
221
+ auth_enterAsGuest: string;
222
+ auth_privacyPolicyAcceptance: string;
223
+ auth_privacyPolicy: string;
224
+ homeHint: string;
225
+ internal: [string, ColoredStringMapping][];
226
+ }
227
+ export declare let asoConfigToDefault_v5: (config: ASOConfig_v5) => ASODefaultConfig;
228
+ export {};
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.asoConfigToDefault_v5 = void 0;
4
+ let asoConfigToDefault_v5 = (config) => {
5
+ return {
6
+ id: config.id,
7
+ bundle: config.bundle,
8
+ name: config.name,
9
+ email: config.email,
10
+ host: config.host,
11
+ ip: config.ip,
12
+ sshPassword: config.sshPassword,
13
+ sshPort: config.sshPort,
14
+ trackingLink: config.trackingLink,
15
+ newTrackingLink: config.newTrackingLink,
16
+ fullAccess: config.fullAccess,
17
+ appsflyerKey: config.appsflyerKey,
18
+ onesignalKey: config.onesignalKey,
19
+ onesignalRestApiKey: config.onesignalRestApiKey,
20
+ allowedCountries: config.allowedCountries,
21
+ excludedCountries: config.excludedCountries,
22
+ callCoolDown: config.callCoolDown,
23
+ smsCoolDown: config.smsCoolDown,
24
+ maxSmsTries: config.maxSmsTries,
25
+ maxCallTries: config.maxCallTries,
26
+ smscLogin: config.smscLogin,
27
+ smscPassword: config.sshPassword,
28
+ support: config.support,
29
+ configMapping: config.configMapping,
30
+ offerSectionMapping: config.offerSectionMapping,
31
+ authorizationActionMapping: config.authorizationActionMapping,
32
+ configEndpoint: config.configEndpoint,
33
+ offersEndpoint: config.offersEndpoint,
34
+ nextActionEndpoint: config.nextActionEndpoint,
35
+ currentActionEndpoint: config.currentActionEndpoint,
36
+ validationEndpoint: config.validationEndpoint,
37
+ imageEndpoint: config.imageEndpoint,
38
+ sectionsParameter: config.sectionsParameter,
39
+ phoneParameter: config.phoneParameter,
40
+ codeParameter: config.codeParameter,
41
+ validityParameter: config.validityParameter,
42
+ appsflyerIdParameter: config.appsflyerIdParameter,
43
+ advertisingIdParameter: config.advertisingIdParameter,
44
+ onesignalIdParameter: config.onesignalIdParameter,
45
+ offerIdParameter: config.offerIdParameter,
46
+ countryCodeParameter: config.countryCodeParameter,
47
+ redirectFolderName: config.redirectFolderName,
48
+ redirectHtmlName: config.redirectHtmlName,
49
+ redirectJsName: config.redirectJsName,
50
+ redirectJsCustomNumberParameter: config.redirectJsCustomNumberParameter,
51
+ skipCode: config.skipCode,
52
+ externalIpGeo: config.externalIpGeo,
53
+ exportedTranslations: config.exportedTranslations,
54
+ readyForPanel: config.readyForPanel,
55
+ version: 5
56
+ };
57
+ };
58
+ exports.asoConfigToDefault_v5 = asoConfigToDefault_v5;
@@ -1,4 +1,4 @@
1
- export interface DefaultConfig {
1
+ export interface ASODefaultConfig {
2
2
  id: number;
3
3
  bundle: string;
4
4
  name: string;
@@ -6,6 +6,7 @@ export interface DefaultConfig {
6
6
  host: string;
7
7
  ip: string;
8
8
  sshPassword: string;
9
+ sshPort?: string;
9
10
  trackingLink: string;
10
11
  fullAccess: boolean;
11
12
  appsflyerKey: string;
@@ -1,5 +1,5 @@
1
- import { DefaultConfig } from "./aso-default-config";
1
+ import { ASODefaultConfig } from "./aso-default-config";
2
2
  export interface IConfigResponse {
3
- default: DefaultConfig;
3
+ default: ASODefaultConfig;
4
4
  plain: any;
5
5
  }
@@ -6,4 +6,5 @@ export interface IAsoCustomizedOffer {
6
6
  emojiCaption?: string;
7
7
  customUrl?: string;
8
8
  hidden?: boolean;
9
+ geo?: string;
9
10
  }
@@ -0,0 +1,7 @@
1
+ export interface IOfferWallOffer {
2
+ url: string;
3
+ foregroundUrl: string;
4
+ backgroundUrl: string;
5
+ emojiIcon?: string;
6
+ emojiCaption?: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { IOfferWallSection } from "aso/offerwall/offerwall-section";
2
+ export interface IOfferWallResponse {
3
+ sections: IOfferWallSection[];
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { IOfferWallOffer } from "aso/offerwall/offerwall-offer";
2
+ export interface IOfferWallSection {
3
+ offers: IOfferWallOffer[];
4
+ title: string;
5
+ buttonText: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,71 @@
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 { Model, Schema } from "mongoose";
26
+ export interface IApp {
27
+ id: number;
28
+ name: string;
29
+ email: string;
30
+ bundle: string;
31
+ pushesEnabled?: boolean;
32
+ pastebinUrl: string;
33
+ policyUrl: string | null;
34
+ onesignalAppId: string;
35
+ onesignalRestApiKey: string;
36
+ generationOptions: IAppGenerationOptions;
37
+ }
38
+ export interface IAppGenerationOptions {
39
+ splashActivityClassName: string;
40
+ mainActivityClassName: string;
41
+ filePickerTitle: string;
42
+ linkName: string;
43
+ savedName: string;
44
+ paranoidSeed: number;
45
+ keyFileName: string;
46
+ keyDeveloperName: string;
47
+ keyDeveloperOrganization: string;
48
+ keyCountryCode: string;
49
+ keyCity: string;
50
+ keyAlias: string;
51
+ keyPassword: string;
52
+ }
53
+ export declare const FlashAppSchema: Schema<any, Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
54
+ name: string;
55
+ email: string;
56
+ enabled: boolean;
57
+ id?: number | undefined;
58
+ version?: number | undefined;
59
+ onesignalAppId?: string | undefined;
60
+ onesignalRestApiKey?: string | undefined;
61
+ appsflyerEnabled?: boolean | undefined;
62
+ appsflyerKey?: string | undefined;
63
+ uidParameter?: string | undefined;
64
+ geos?: string | undefined;
65
+ privacyPolicyActivityClassName?: string | undefined;
66
+ logicClassName?: string | undefined;
67
+ appClassName?: string | undefined;
68
+ paramsMapping?: any;
69
+ configMapping?: any;
70
+ bundle?: string | undefined;
71
+ }>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FlashAppSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ exports.FlashAppSchema = new mongoose_1.Schema({
6
+ id: {
7
+ type: Number,
8
+ unique: true
9
+ },
10
+ name: {
11
+ type: String,
12
+ default: ""
13
+ },
14
+ email: {
15
+ type: String,
16
+ default: ""
17
+ },
18
+ bundle: {
19
+ type: String,
20
+ unique: false
21
+ },
22
+ enabled: {
23
+ type: Boolean,
24
+ default: true
25
+ },
26
+ onesignalAppId: String,
27
+ onesignalRestApiKey: String,
28
+ appsflyerEnabled: Boolean,
29
+ appsflyerKey: String,
30
+ uidParameter: String,
31
+ geos: String,
32
+ privacyPolicyActivityClassName: String,
33
+ logicClassName: String,
34
+ appClassName: String,
35
+ paramsMapping: Object,
36
+ configMapping: Object,
37
+ version: Number
38
+ });
package/lib/index.d.ts CHANGED
@@ -8,3 +8,6 @@ export { ASOConfig_v3, asoConfigToDefault_v3 } from "./aso/config/aso-config-v3"
8
8
  export { ASOConfig_v4, asoConfigToDefault_v4 } from "./aso/config/aso-config-v4";
9
9
  export { IPush } from "./shared/push";
10
10
  export { IOffer } from "./shared/offer";
11
+ export { IOfferWallSection } from "./aso/offerwall/offerwall-section";
12
+ export { IOfferWallOffer } from "./aso/offerwall/offerwall-offer";
13
+ export { IOfferWallResponse } from "./aso/offerwall/offerwall-response";
@@ -7,4 +7,5 @@ export interface IOffer {
7
7
  emojiCaption?: string;
8
8
  hidden?: boolean;
9
9
  customUrl?: string;
10
+ newTracker?: boolean;
10
11
  }
@@ -1,6 +1,5 @@
1
1
  export interface ISingleOffer {
2
2
  name: string;
3
- oldTracker?: boolean;
4
3
  newTracker?: boolean;
5
4
  customUrl?: string;
6
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -21,7 +21,9 @@
21
21
  "description": "",
22
22
  "dependencies": {
23
23
  "@types/module-alias": "^2.0.1",
24
- "module-alias": "^2.2.2"
24
+ "@types/mongoose": "^5.11.97",
25
+ "module-alias": "^2.2.2",
26
+ "mongoose": "^6.8.3"
25
27
  },
26
28
  "devDependencies": {
27
29
  "typescript": "^4.8.0-dev.20220623"