@bprotsyk/aso-core 1.1.15 → 1.1.17
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/aso/config/aso-config-v0.d.ts +26 -35
- package/lib/aso/config/aso-config-v0.js +1 -3
- package/lib/aso/config/aso-config-v1.d.ts +26 -27
- package/lib/aso/config/aso-config-v1.js +3 -3
- package/lib/aso/config/aso-config-v2.d.ts +24 -24
- package/lib/aso/config/aso-config-v2.js +3 -3
- package/lib/aso/config/aso-config-v3.d.ts +23 -23
- package/lib/aso/config/aso-config-v3.js +3 -3
- package/lib/aso/config/aso-config-v4.d.ts +26 -26
- package/lib/aso/config/aso-config-v4.js +3 -3
- package/lib/aso/config/aso-config-v5.d.ts +26 -27
- package/lib/aso/config/aso-config-v5.js +3 -3
- package/lib/aso/config/aso-default-config.d.ts +1 -1
- package/lib/aso/config/aso-single-response.d.ts +2 -2
- package/lib/aso/offer/config/aso-config-v0.d.ts +22 -22
- package/lib/aso/offer/config/aso-config-v1.d.ts +21 -21
- package/lib/aso/offer/config/aso-config-v2.d.ts +20 -20
- package/lib/aso/offer/config/aso-config-v3.d.ts +20 -20
- package/lib/aso/offer/config/aso-config-v4.d.ts +23 -23
- package/lib/aso/usage-logs/aso-config-fetch-entry.d.ts +28 -0
- package/lib/aso/usage-logs/aso-config-fetch-entry.js +2 -0
- package/lib/index.d.ts +7 -5
- package/lib/index.js +31 -11
- package/package.json +1 -1
- package/src/aso/config/aso-config-v0.ts +31 -36
- package/src/aso/config/aso-config-v1.ts +29 -26
- package/src/aso/config/aso-config-v2.ts +26 -24
- package/src/aso/config/aso-config-v3.ts +25 -23
- package/src/aso/config/aso-config-v4.ts +27 -26
- package/src/aso/config/aso-config-v5.ts +26 -26
- package/src/aso/config/aso-default-config.ts +1 -1
- package/src/aso/config/aso-single-response.ts +2 -2
- package/src/aso/usage-logs/aso-config-fetch-entry.ts +31 -0
- package/src/index.ts +9 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultConfig } from "./aso-default-config";
|
|
2
|
-
interface
|
|
2
|
+
interface IAuthorizationActionMapping {
|
|
3
3
|
hasNextAction: string;
|
|
4
4
|
nextActionIn: string;
|
|
5
5
|
changeNumberCaption: string;
|
|
@@ -11,8 +11,8 @@ interface AuthorizationActionMapping {
|
|
|
11
11
|
when: string;
|
|
12
12
|
authorized: string;
|
|
13
13
|
}
|
|
14
|
-
interface
|
|
15
|
-
[key: string]:
|
|
14
|
+
interface ILocalizationMap {
|
|
15
|
+
[key: string]: ILocalization;
|
|
16
16
|
}
|
|
17
17
|
export interface ASOConfig_v3 {
|
|
18
18
|
id: number;
|
|
@@ -46,10 +46,10 @@ export interface ASOConfig_v3 {
|
|
|
46
46
|
smscPassword: string;
|
|
47
47
|
autoSmsCodeCatch: boolean;
|
|
48
48
|
autoCallCodeCatch: boolean;
|
|
49
|
-
localization?:
|
|
50
|
-
authorizationActionMapping:
|
|
49
|
+
localization?: ILocalizationMap | ILocalization;
|
|
50
|
+
authorizationActionMapping: IAuthorizationActionMapping;
|
|
51
51
|
offersSectionMapping: IOfferSectionMapping;
|
|
52
|
-
configMapping:
|
|
52
|
+
configMapping: IConfigMapping;
|
|
53
53
|
configEndpoint: string;
|
|
54
54
|
offersEndpoint: string;
|
|
55
55
|
offerEndpoint: string;
|
|
@@ -84,7 +84,7 @@ interface IOfferSectionMapping {
|
|
|
84
84
|
title: string;
|
|
85
85
|
internal: [string, any][];
|
|
86
86
|
}
|
|
87
|
-
interface
|
|
87
|
+
interface ILocalization {
|
|
88
88
|
numberWillReceiveACallPattern: string;
|
|
89
89
|
numberReceivedACallPattern: string;
|
|
90
90
|
numberReceivedASmsPattern: string;
|
|
@@ -131,36 +131,36 @@ interface Localization {
|
|
|
131
131
|
game_demo_available_after_auth: string;
|
|
132
132
|
game_min_rate_error_pattern: string;
|
|
133
133
|
game_yourLevel: string;
|
|
134
|
-
auth_title:
|
|
135
|
-
auth_subtitle:
|
|
134
|
+
auth_title: IColoredString;
|
|
135
|
+
auth_subtitle: IColoredString;
|
|
136
136
|
auth_nameHint: string;
|
|
137
137
|
auth_changeNumber: string;
|
|
138
138
|
auth_getAccess: string;
|
|
139
139
|
auth_enterAsGuest: string;
|
|
140
140
|
auth_privacyPolicyAcceptance: string;
|
|
141
|
-
auth_privacyPolicy:
|
|
141
|
+
auth_privacyPolicy: IColoredString;
|
|
142
142
|
}
|
|
143
|
-
interface
|
|
143
|
+
interface IColoredString {
|
|
144
144
|
text: string;
|
|
145
|
-
colors:
|
|
145
|
+
colors: IColoredSpan[];
|
|
146
146
|
mappingName: string;
|
|
147
147
|
}
|
|
148
|
-
interface
|
|
148
|
+
interface IColoredSpan {
|
|
149
149
|
from: number;
|
|
150
150
|
to: number;
|
|
151
151
|
color: string;
|
|
152
152
|
}
|
|
153
|
-
interface
|
|
153
|
+
interface IColoredStringMapping {
|
|
154
154
|
text: string;
|
|
155
155
|
colors: string;
|
|
156
|
-
internal: [string,
|
|
156
|
+
internal: [string, IColoredSpanMapping][];
|
|
157
157
|
}
|
|
158
|
-
interface
|
|
158
|
+
interface IColoredSpanMapping {
|
|
159
159
|
from: string;
|
|
160
160
|
to: string;
|
|
161
161
|
color: string;
|
|
162
162
|
}
|
|
163
|
-
interface
|
|
163
|
+
interface IConfigMapping {
|
|
164
164
|
id: string;
|
|
165
165
|
fullAccess: string;
|
|
166
166
|
showVideo: string;
|
|
@@ -180,9 +180,9 @@ interface ConfigMapping {
|
|
|
180
180
|
autoSmsCodeCatch: string;
|
|
181
181
|
autoCallCodeCatch: string;
|
|
182
182
|
localization: string;
|
|
183
|
-
internal: [string,
|
|
183
|
+
internal: [string, ILocalizationMapping][];
|
|
184
184
|
}
|
|
185
|
-
interface
|
|
185
|
+
interface ILocalizationMapping {
|
|
186
186
|
game_spin: string;
|
|
187
187
|
game_balance_pattern: string;
|
|
188
188
|
game_win_pattern: string;
|
|
@@ -221,7 +221,7 @@ interface LocalizationMapping {
|
|
|
221
221
|
auth_enterAsGuest: string;
|
|
222
222
|
auth_privacyPolicyAcceptance: string;
|
|
223
223
|
auth_privacyPolicy: string;
|
|
224
|
-
internal: [string,
|
|
224
|
+
internal: [string, IColoredStringMapping][];
|
|
225
225
|
}
|
|
226
226
|
export declare let asoConfigToDefault_v3: (config: ASOConfig_v3) => DefaultConfig;
|
|
227
227
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultConfig } from "./aso-default-config";
|
|
2
|
-
interface
|
|
2
|
+
interface IAuthorizationActionMapping {
|
|
3
3
|
hasNextAction: string;
|
|
4
4
|
nextActionIn: string;
|
|
5
5
|
changeNumberCaption: string;
|
|
@@ -11,8 +11,8 @@ interface AuthorizationActionMapping {
|
|
|
11
11
|
when: string;
|
|
12
12
|
authorized: string;
|
|
13
13
|
}
|
|
14
|
-
interface
|
|
15
|
-
[key: string]:
|
|
14
|
+
interface ILocalizationMap {
|
|
15
|
+
[key: string]: ILocalization;
|
|
16
16
|
}
|
|
17
17
|
export interface ASOConfig_v4 {
|
|
18
18
|
name: string;
|
|
@@ -40,14 +40,14 @@ export interface ASOConfig_v4 {
|
|
|
40
40
|
maxCallTries: number;
|
|
41
41
|
smscLogin: string;
|
|
42
42
|
smscPassword: string;
|
|
43
|
-
localization?:
|
|
44
|
-
localizationMapping:
|
|
45
|
-
authorizationActionMapping:
|
|
43
|
+
localization?: ILocalizationMap | ILocalization;
|
|
44
|
+
localizationMapping: ILocalizationMapping;
|
|
45
|
+
authorizationActionMapping: IAuthorizationActionMapping;
|
|
46
46
|
offerSectionMapping: IOfferSectionMapping;
|
|
47
47
|
offerResultMapping: IOfferResultMapping;
|
|
48
|
-
configMapping:
|
|
49
|
-
coloredStringMapping:
|
|
50
|
-
coloredSpanMapping:
|
|
48
|
+
configMapping: IConfigMapping;
|
|
49
|
+
coloredStringMapping: IColoredStringMapping;
|
|
50
|
+
coloredSpanMapping: IColoredSpanMapping;
|
|
51
51
|
configEndpoint: string;
|
|
52
52
|
offersEndpoint: string;
|
|
53
53
|
nextActionEndpoint: string;
|
|
@@ -96,7 +96,7 @@ interface LocalizedString {
|
|
|
96
96
|
en: string;
|
|
97
97
|
ru: string;
|
|
98
98
|
}
|
|
99
|
-
interface
|
|
99
|
+
interface ILocalization {
|
|
100
100
|
numberWillReceiveACallPattern: string;
|
|
101
101
|
numberReceivedACallPattern: string;
|
|
102
102
|
numberReceivedASmsPattern: string;
|
|
@@ -133,35 +133,35 @@ interface Localization {
|
|
|
133
133
|
game_demo_available_after_auth: string;
|
|
134
134
|
game_min_rate_error_pattern: string;
|
|
135
135
|
game_yourLevel: string;
|
|
136
|
-
auth_title:
|
|
137
|
-
auth_subtitle:
|
|
136
|
+
auth_title: IColoredString;
|
|
137
|
+
auth_subtitle: IColoredString;
|
|
138
138
|
auth_changeNumber: string;
|
|
139
139
|
auth_getAccess: string;
|
|
140
140
|
auth_enterAsGuest: string;
|
|
141
141
|
auth_privacyPolicyAcceptance: string;
|
|
142
|
-
auth_privacyPolicy:
|
|
142
|
+
auth_privacyPolicy: IColoredString;
|
|
143
143
|
}
|
|
144
|
-
interface
|
|
144
|
+
interface IColoredString {
|
|
145
145
|
text: string;
|
|
146
|
-
colors:
|
|
146
|
+
colors: IColoredSpan[];
|
|
147
147
|
mappingName: string;
|
|
148
148
|
}
|
|
149
|
-
interface
|
|
149
|
+
interface IColoredSpan {
|
|
150
150
|
from: number;
|
|
151
151
|
to: number;
|
|
152
152
|
color: string;
|
|
153
153
|
}
|
|
154
|
-
interface
|
|
154
|
+
interface IColoredStringMapping {
|
|
155
155
|
text: string;
|
|
156
156
|
colors: string;
|
|
157
|
-
internal: [string,
|
|
157
|
+
internal: [string, IColoredSpanMapping][];
|
|
158
158
|
}
|
|
159
|
-
interface
|
|
159
|
+
interface IColoredSpanMapping {
|
|
160
160
|
from: string;
|
|
161
161
|
to: string;
|
|
162
162
|
color: string;
|
|
163
163
|
}
|
|
164
|
-
interface
|
|
164
|
+
interface IConfigMapping {
|
|
165
165
|
fullAccess: string;
|
|
166
166
|
appsflyerKey: string;
|
|
167
167
|
onesignalKey: string;
|
|
@@ -170,9 +170,9 @@ interface ConfigMapping {
|
|
|
170
170
|
supportUrl: string;
|
|
171
171
|
privacyPolicyUrl: string;
|
|
172
172
|
localization: string;
|
|
173
|
-
internal: [string,
|
|
173
|
+
internal: [string, ILocalizationMapping][];
|
|
174
174
|
}
|
|
175
|
-
interface
|
|
175
|
+
interface ILocalizationMapping {
|
|
176
176
|
game_spin: string;
|
|
177
177
|
game_balance_pattern: string;
|
|
178
178
|
game_win_pattern: string;
|
|
@@ -199,7 +199,7 @@ interface LocalizationMapping {
|
|
|
199
199
|
auth_enterAsGuest: string;
|
|
200
200
|
auth_privacyPolicyAcceptance: string;
|
|
201
201
|
auth_privacyPolicy: string;
|
|
202
|
-
internal: [string,
|
|
202
|
+
internal: [string, IColoredStringMapping][];
|
|
203
203
|
}
|
|
204
204
|
export declare let asoConfigToDefault_v4: (config: ASOConfig_v4) => DefaultConfig;
|
|
205
205
|
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Document } from "mongoose";
|
|
2
|
+
export interface IASOUsageLogEntry extends Document {
|
|
3
|
+
countryCode: string;
|
|
4
|
+
ip: string;
|
|
5
|
+
timestamp: number;
|
|
6
|
+
phone: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IASOUsageLogRequest {
|
|
9
|
+
from: number;
|
|
10
|
+
to: number;
|
|
11
|
+
first: number;
|
|
12
|
+
last: number;
|
|
13
|
+
count: number;
|
|
14
|
+
}
|
|
15
|
+
interface IASOCountryInfo {
|
|
16
|
+
all: number;
|
|
17
|
+
authorized: number;
|
|
18
|
+
}
|
|
19
|
+
export interface IASOUsageLogResponse {
|
|
20
|
+
countriesInfo: {
|
|
21
|
+
[key: string]: IASOCountryInfo;
|
|
22
|
+
};
|
|
23
|
+
first: number;
|
|
24
|
+
last: number;
|
|
25
|
+
entries: IASOUsageLogEntry[];
|
|
26
|
+
newEntries: IASOUsageLogEntry[];
|
|
27
|
+
}
|
|
28
|
+
export {};
|
package/lib/index.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
export { IAsoCustomizedOffer } from "./aso/offer/aso-customized-offer";
|
|
2
2
|
export { IAsoOfferResponse } from "./aso/offer/aso-offer-response";
|
|
3
3
|
export { IAsoSection } from "./aso/offer/aso-offer-section";
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
4
|
+
export * as ASO_v0 from "./aso/config/aso-config-v0";
|
|
5
|
+
export * as ASO_v1 from "./aso/config/aso-config-v1";
|
|
6
|
+
export * as ASO_v2 from "./aso/config/aso-config-v2";
|
|
7
|
+
export * as ASO_v3 from "./aso/config/aso-config-v3";
|
|
8
|
+
export * as ASO_v4 from "./aso/config/aso-config-v4";
|
|
9
|
+
export * as ASO_v5 from "./aso/config/aso-config-v5";
|
|
9
10
|
export { IPush } from "./shared/push";
|
|
10
11
|
export { IOffer } from "./shared/offer";
|
|
11
12
|
export { IOfferWallSection } from "./aso/offerwall/offerwall-section";
|
|
12
13
|
export { IOfferWallOffer } from "./aso/offerwall/offerwall-offer";
|
|
13
14
|
export { IOfferWallResponse } from "./aso/offerwall/offerwall-response";
|
|
14
15
|
export { IFlashApp, FlashAppSchema } from "./flash/flash-app";
|
|
16
|
+
export * as ASOConfigFetch from "./aso/usage-logs/aso-config-fetch-entry";
|
package/lib/index.js
CHANGED
|
@@ -1,15 +1,35 @@
|
|
|
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
|
-
exports.FlashAppSchema = exports.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var aso_config_v3_1 = require("./aso/config/aso-config-v3");
|
|
11
|
-
Object.defineProperty(exports, "asoConfigToDefault_v3", { enumerable: true, get: function () { return aso_config_v3_1.asoConfigToDefault_v3; } });
|
|
12
|
-
var aso_config_v4_1 = require("./aso/config/aso-config-v4");
|
|
13
|
-
Object.defineProperty(exports, "asoConfigToDefault_v4", { enumerable: true, get: function () { return aso_config_v4_1.asoConfigToDefault_v4; } });
|
|
26
|
+
exports.ASOConfigFetch = exports.FlashAppSchema = exports.ASO_v5 = exports.ASO_v4 = exports.ASO_v3 = exports.ASO_v2 = exports.ASO_v1 = exports.ASO_v0 = void 0;
|
|
27
|
+
exports.ASO_v0 = __importStar(require("./aso/config/aso-config-v0"));
|
|
28
|
+
exports.ASO_v1 = __importStar(require("./aso/config/aso-config-v1"));
|
|
29
|
+
exports.ASO_v2 = __importStar(require("./aso/config/aso-config-v2"));
|
|
30
|
+
exports.ASO_v3 = __importStar(require("./aso/config/aso-config-v3"));
|
|
31
|
+
exports.ASO_v4 = __importStar(require("./aso/config/aso-config-v4"));
|
|
32
|
+
exports.ASO_v5 = __importStar(require("./aso/config/aso-config-v5"));
|
|
14
33
|
var flash_app_1 = require("./flash/flash-app");
|
|
15
34
|
Object.defineProperty(exports, "FlashAppSchema", { enumerable: true, get: function () { return flash_app_1.FlashAppSchema; } });
|
|
35
|
+
exports.ASOConfigFetch = __importStar(require("./aso/usage-logs/aso-config-fetch-entry"));
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IASODefaultConfig } from "./aso-default-config"
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
export interface ASOConfig_v0 {
|
|
3
|
+
export interface IConfig {
|
|
5
4
|
id: number,
|
|
6
5
|
name: string,
|
|
7
6
|
email: string,
|
|
@@ -39,10 +38,10 @@ export interface ASOConfig_v0 {
|
|
|
39
38
|
autoSmsCodeCatch: boolean,
|
|
40
39
|
autoCallCodeCatch: boolean,
|
|
41
40
|
|
|
42
|
-
localization
|
|
43
|
-
authorizationActionMapping:
|
|
41
|
+
localization?: ILocalizationMap | ILocalization,
|
|
42
|
+
authorizationActionMapping: IAuthorizationActionMapping,
|
|
44
43
|
offersSectionMapping: IOfferSectionMapping
|
|
45
|
-
configMapping:
|
|
44
|
+
configMapping: IConfigMapping,
|
|
46
45
|
|
|
47
46
|
configEndpoint: string,
|
|
48
47
|
offersEndpoint: string,
|
|
@@ -84,9 +83,9 @@ export interface ASOConfig_v0 {
|
|
|
84
83
|
}
|
|
85
84
|
|
|
86
85
|
|
|
87
|
-
export interface
|
|
88
|
-
hasNextAction: string,
|
|
86
|
+
export interface IAuthorizationActionMapping {
|
|
89
87
|
nextActionIn: string,
|
|
88
|
+
hasNextAction: string,
|
|
90
89
|
changeNumberCaption: string,
|
|
91
90
|
nextActionCaption: string,
|
|
92
91
|
nextActionPatternCaption: string,
|
|
@@ -98,8 +97,8 @@ export interface AuthorizationActionMapping {
|
|
|
98
97
|
canChangeNumber: string
|
|
99
98
|
}
|
|
100
99
|
|
|
101
|
-
interface
|
|
102
|
-
[key: string]:
|
|
100
|
+
export interface ILocalizationMap {
|
|
101
|
+
[key: string]: ILocalization
|
|
103
102
|
}
|
|
104
103
|
|
|
105
104
|
export interface ISectionPalette {
|
|
@@ -117,7 +116,7 @@ export interface ISectionPalette {
|
|
|
117
116
|
emojiCaption: string
|
|
118
117
|
}
|
|
119
118
|
|
|
120
|
-
interface IOfferResult {
|
|
119
|
+
export interface IOfferResult {
|
|
121
120
|
id: string,
|
|
122
121
|
backgroundImage: string,
|
|
123
122
|
foregroundImage: string,
|
|
@@ -125,7 +124,7 @@ interface IOfferResult {
|
|
|
125
124
|
buttonText: string
|
|
126
125
|
}
|
|
127
126
|
|
|
128
|
-
interface IOfferResultEmoji {
|
|
127
|
+
export interface IOfferResultEmoji {
|
|
129
128
|
emoji: string | null,
|
|
130
129
|
caption: string | null,
|
|
131
130
|
}
|
|
@@ -137,13 +136,6 @@ export interface IOffersSection {
|
|
|
137
136
|
palette: ISectionPalette
|
|
138
137
|
}
|
|
139
138
|
|
|
140
|
-
export interface IOffersSection {
|
|
141
|
-
id: number,
|
|
142
|
-
offers: IOfferResult[]
|
|
143
|
-
title: string
|
|
144
|
-
palette: ISectionPalette
|
|
145
|
-
}
|
|
146
|
-
|
|
147
139
|
export interface ISectionPaletteMapping {
|
|
148
140
|
titleBorder: string
|
|
149
141
|
titleText: string
|
|
@@ -158,6 +150,7 @@ export interface ISectionPaletteMapping {
|
|
|
158
150
|
emojiCaptionBackground: string,
|
|
159
151
|
emojiCaption: string
|
|
160
152
|
}
|
|
153
|
+
|
|
161
154
|
export interface IOfferSectionMapping {
|
|
162
155
|
id: string,
|
|
163
156
|
offers: string
|
|
@@ -165,6 +158,7 @@ export interface IOfferSectionMapping {
|
|
|
165
158
|
palette: string,
|
|
166
159
|
internal: [string, any][]
|
|
167
160
|
}
|
|
161
|
+
|
|
168
162
|
export interface IOfferResultMapping {
|
|
169
163
|
id: string,
|
|
170
164
|
backgroundImage: string,
|
|
@@ -182,7 +176,7 @@ export interface IOfferSectionMapping {
|
|
|
182
176
|
internal: [string, any][]
|
|
183
177
|
}
|
|
184
178
|
|
|
185
|
-
export interface
|
|
179
|
+
export interface ILocalization {
|
|
186
180
|
numberWillReceiveACallPattern: string,
|
|
187
181
|
numberReceivedACallPattern: string,
|
|
188
182
|
numberReceivedASmsPattern: string,
|
|
@@ -245,42 +239,43 @@ export interface Localization {
|
|
|
245
239
|
auth_changeTitle: string,
|
|
246
240
|
auth_changeMessage: string,
|
|
247
241
|
|
|
248
|
-
auth_titleTop:
|
|
249
|
-
auth_titleBottom:
|
|
242
|
+
auth_titleTop: IColoredString,
|
|
243
|
+
auth_titleBottom: IColoredString,
|
|
250
244
|
auth_getAccess: string,
|
|
251
|
-
auth_subtitle:
|
|
245
|
+
auth_subtitle: IColoredString
|
|
252
246
|
auth_cantBeEmpty: string,
|
|
253
247
|
auth_nameHint: string,
|
|
254
|
-
auth_changeNumber:
|
|
248
|
+
auth_changeNumber: IColoredString,
|
|
255
249
|
auth_enterAsGuest: string,
|
|
256
250
|
auth_privacyPolicyAcceptance: string,
|
|
257
|
-
auth_privacyPolicy:
|
|
251
|
+
auth_privacyPolicy: IColoredString,
|
|
258
252
|
}
|
|
259
253
|
|
|
260
|
-
export interface
|
|
254
|
+
export interface IColoredString {
|
|
261
255
|
text: string,
|
|
262
|
-
colors:
|
|
256
|
+
colors: IColoredSpan[]
|
|
263
257
|
mappingName: string
|
|
264
258
|
}
|
|
265
259
|
|
|
266
|
-
interface
|
|
260
|
+
export interface IColoredSpan {
|
|
267
261
|
from: number,
|
|
268
262
|
to: number,
|
|
269
263
|
color: string
|
|
270
264
|
}
|
|
271
265
|
|
|
272
|
-
export interface
|
|
266
|
+
export interface IColoredStringMapping {
|
|
273
267
|
text: string,
|
|
274
268
|
colors: string,
|
|
275
|
-
internal: [string,
|
|
269
|
+
internal: [string, IColoredSpanMapping][]
|
|
276
270
|
}
|
|
277
271
|
|
|
278
|
-
export interface
|
|
272
|
+
export interface IColoredSpanMapping {
|
|
279
273
|
from: string,
|
|
280
274
|
to: string,
|
|
281
275
|
color: string
|
|
282
276
|
}
|
|
283
|
-
|
|
277
|
+
|
|
278
|
+
export interface IConfigMapping {
|
|
284
279
|
id: string,
|
|
285
280
|
fullAccess: string,
|
|
286
281
|
showVideo: string,
|
|
@@ -303,10 +298,10 @@ export interface ConfigMapping {
|
|
|
303
298
|
autoSmsCodeCatch: string,
|
|
304
299
|
autoCallCodeCatch: string,
|
|
305
300
|
localization: string,
|
|
306
|
-
internal: [string,
|
|
301
|
+
internal: [string, ILocalizationMapping][],
|
|
307
302
|
}
|
|
308
303
|
|
|
309
|
-
export interface
|
|
304
|
+
export interface ILocalizationMapping {
|
|
310
305
|
numberWillReceiveACallPattern: string,
|
|
311
306
|
numberReceivedACallPattern: string,
|
|
312
307
|
numberReceivedASmsPattern: string,
|
|
@@ -376,10 +371,10 @@ export interface LocalizationMapping {
|
|
|
376
371
|
auth_privacyPolicyAcceptance: string,
|
|
377
372
|
auth_privacyPolicy: string,
|
|
378
373
|
|
|
379
|
-
internal: [string,
|
|
374
|
+
internal: [string, IColoredStringMapping][]
|
|
380
375
|
}
|
|
381
376
|
|
|
382
|
-
|
|
377
|
+
let toDefault = (config: IConfig): IASODefaultConfig => {
|
|
383
378
|
return {
|
|
384
379
|
id: config.id,
|
|
385
380
|
bundle: config.bundle,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IASODefaultConfig } from "./aso-default-config"
|
|
2
2
|
|
|
3
|
-
export interface
|
|
3
|
+
export interface IConfig {
|
|
4
4
|
id: number,
|
|
5
5
|
name: string,
|
|
6
6
|
email: string,
|
|
@@ -39,10 +39,10 @@ export interface ASOConfig_v1 {
|
|
|
39
39
|
autoSmsCodeCatch: boolean,
|
|
40
40
|
autoCallCodeCatch: boolean,
|
|
41
41
|
|
|
42
|
-
localization?:
|
|
43
|
-
authorizationActionMapping:
|
|
42
|
+
localization?: ILocalizationMap | ILocalization,
|
|
43
|
+
authorizationActionMapping: IAuthorizationActionMapping,
|
|
44
44
|
offersSectionMapping: IOfferSectionMapping
|
|
45
|
-
configMapping:
|
|
45
|
+
configMapping: IConfigMapping,
|
|
46
46
|
|
|
47
47
|
configEndpoint: string,
|
|
48
48
|
offersEndpoint: string,
|
|
@@ -99,7 +99,7 @@ export interface ISectionPalette {
|
|
|
99
99
|
emojiCaption: string
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
export interface
|
|
102
|
+
export interface IAuthorizationActionMapping {
|
|
103
103
|
hasNextAction: string,
|
|
104
104
|
nextActionIn: string,
|
|
105
105
|
changeNumberCaption: string,
|
|
@@ -113,7 +113,7 @@ export interface AuthorizationActionMapping {
|
|
|
113
113
|
canChangeNumber: string
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
interface IOfferResult {
|
|
116
|
+
export interface IOfferResult {
|
|
117
117
|
id: string,
|
|
118
118
|
backgroundImage: string,
|
|
119
119
|
foregroundImage: string,
|
|
@@ -121,7 +121,7 @@ interface IOfferResult {
|
|
|
121
121
|
buttonText: string
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
interface IOfferResultEmoji {
|
|
124
|
+
export interface IOfferResultEmoji {
|
|
125
125
|
emoji: string | null,
|
|
126
126
|
caption: string | null,
|
|
127
127
|
}
|
|
@@ -154,6 +154,7 @@ export interface ISectionPaletteMapping {
|
|
|
154
154
|
emojiCaptionBackground: string,
|
|
155
155
|
emojiCaption: string
|
|
156
156
|
}
|
|
157
|
+
|
|
157
158
|
export interface IOfferSectionMapping {
|
|
158
159
|
id: string,
|
|
159
160
|
offers: string
|
|
@@ -161,6 +162,7 @@ export interface IOfferSectionMapping {
|
|
|
161
162
|
palette: string,
|
|
162
163
|
internal: [string, any][]
|
|
163
164
|
}
|
|
165
|
+
|
|
164
166
|
export interface IOfferResultMapping {
|
|
165
167
|
id: string,
|
|
166
168
|
backgroundImage: string,
|
|
@@ -178,7 +180,7 @@ export interface IOfferSectionMapping {
|
|
|
178
180
|
internal: [string, any][]
|
|
179
181
|
}
|
|
180
182
|
|
|
181
|
-
export interface
|
|
183
|
+
export interface ILocalization {
|
|
182
184
|
numberWillReceiveACallPattern: string,
|
|
183
185
|
numberReceivedACallPattern: string,
|
|
184
186
|
numberReceivedASmsPattern: string,
|
|
@@ -238,40 +240,41 @@ export interface Localization {
|
|
|
238
240
|
auth_changeTitle: string,
|
|
239
241
|
auth_changeMessage: string,
|
|
240
242
|
|
|
241
|
-
auth_titleTop:
|
|
242
|
-
auth_titleBottom:
|
|
243
|
-
auth_subtitle:
|
|
243
|
+
auth_titleTop: IColoredString,
|
|
244
|
+
auth_titleBottom: IColoredString,
|
|
245
|
+
auth_subtitle: IColoredString
|
|
244
246
|
auth_nameHint: string,
|
|
245
247
|
auth_changeNumber: string,
|
|
246
248
|
auth_enterAsGuest: string,
|
|
247
249
|
auth_privacyPolicyAcceptance: string,
|
|
248
|
-
auth_privacyPolicy:
|
|
250
|
+
auth_privacyPolicy: IColoredString
|
|
249
251
|
}
|
|
250
252
|
|
|
251
|
-
export interface
|
|
253
|
+
export interface IColoredString {
|
|
252
254
|
text: string,
|
|
253
|
-
colors:
|
|
255
|
+
colors: IColoredSpan[]
|
|
254
256
|
mappingName: string
|
|
255
257
|
}
|
|
256
258
|
|
|
257
|
-
interface
|
|
259
|
+
export interface IColoredSpan {
|
|
258
260
|
from: number,
|
|
259
261
|
to: number,
|
|
260
262
|
color: string
|
|
261
263
|
}
|
|
262
264
|
|
|
263
|
-
export interface
|
|
265
|
+
export interface IColoredStringMapping {
|
|
264
266
|
text: string,
|
|
265
267
|
colors: string,
|
|
266
|
-
internal: [string,
|
|
268
|
+
internal: [string, IColoredSpanMapping][]
|
|
267
269
|
}
|
|
268
270
|
|
|
269
|
-
export interface
|
|
271
|
+
export interface IColoredSpanMapping {
|
|
270
272
|
from: string,
|
|
271
273
|
to: string,
|
|
272
274
|
color: string
|
|
273
275
|
}
|
|
274
|
-
|
|
276
|
+
|
|
277
|
+
export interface IConfigMapping {
|
|
275
278
|
id: string,
|
|
276
279
|
fullAccess: string,
|
|
277
280
|
showVideo: string,
|
|
@@ -294,14 +297,14 @@ export interface ConfigMapping {
|
|
|
294
297
|
autoSmsCodeCatch: string,
|
|
295
298
|
autoCallCodeCatch: string,
|
|
296
299
|
localization: string,
|
|
297
|
-
internal: [string,
|
|
300
|
+
internal: [string, ILocalizationMapping][],
|
|
298
301
|
}
|
|
299
302
|
|
|
300
|
-
interface
|
|
301
|
-
[key: string]:
|
|
303
|
+
export interface ILocalizationMap {
|
|
304
|
+
[key: string]: ILocalization
|
|
302
305
|
}
|
|
303
306
|
|
|
304
|
-
export interface
|
|
307
|
+
export interface ILocalizationMapping {
|
|
305
308
|
numberWillReceiveACallPattern: string,
|
|
306
309
|
numberReceivedACallPattern: string,
|
|
307
310
|
numberReceivedASmsPattern: string,
|
|
@@ -368,10 +371,10 @@ export interface LocalizationMapping {
|
|
|
368
371
|
auth_privacyPolicyAcceptance: string,
|
|
369
372
|
auth_privacyPolicy: string,
|
|
370
373
|
|
|
371
|
-
internal: [string,
|
|
374
|
+
internal: [string, IColoredStringMapping][]
|
|
372
375
|
}
|
|
373
376
|
|
|
374
|
-
export let
|
|
377
|
+
export let toDefault = (config: IConfig): IASODefaultConfig => {
|
|
375
378
|
return {
|
|
376
379
|
id: config.id,
|
|
377
380
|
bundle: config.bundle,
|