@bprotsyk/aso-core 1.1.15 → 1.1.16
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 +24 -33
- package/lib/aso/config/aso-config-v0.js +1 -3
- package/lib/index.d.ts +1 -1
- package/lib/index.js +25 -3
- package/package.json +1 -1
- package/src/aso/config/aso-config-v0.ts +28 -33
- package/src/index.ts +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export interface ASOConfig_v0 {
|
|
1
|
+
export interface IConfig {
|
|
3
2
|
id: number;
|
|
4
3
|
name: string;
|
|
5
4
|
email: string;
|
|
@@ -36,10 +35,10 @@ export interface ASOConfig_v0 {
|
|
|
36
35
|
smscPassword: string;
|
|
37
36
|
autoSmsCodeCatch: boolean;
|
|
38
37
|
autoCallCodeCatch: boolean;
|
|
39
|
-
localization: LocalizationMap |
|
|
38
|
+
localization: LocalizationMap | ILocalization;
|
|
40
39
|
authorizationActionMapping: AuthorizationActionMapping;
|
|
41
40
|
offersSectionMapping: IOfferSectionMapping;
|
|
42
|
-
configMapping:
|
|
41
|
+
configMapping: IConfigMapping;
|
|
43
42
|
configEndpoint: string;
|
|
44
43
|
offersEndpoint: string;
|
|
45
44
|
offerEndpoint: string;
|
|
@@ -73,8 +72,8 @@ export interface ASOConfig_v0 {
|
|
|
73
72
|
version: number;
|
|
74
73
|
}
|
|
75
74
|
export interface AuthorizationActionMapping {
|
|
76
|
-
hasNextAction: string;
|
|
77
75
|
nextActionIn: string;
|
|
76
|
+
hasNextAction: string;
|
|
78
77
|
changeNumberCaption: string;
|
|
79
78
|
nextActionCaption: string;
|
|
80
79
|
nextActionPatternCaption: string;
|
|
@@ -85,8 +84,8 @@ export interface AuthorizationActionMapping {
|
|
|
85
84
|
authorized: string;
|
|
86
85
|
canChangeNumber: string;
|
|
87
86
|
}
|
|
88
|
-
interface LocalizationMap {
|
|
89
|
-
[key: string]:
|
|
87
|
+
export interface LocalizationMap {
|
|
88
|
+
[key: string]: ILocalization;
|
|
90
89
|
}
|
|
91
90
|
export interface ISectionPalette {
|
|
92
91
|
titleBorder: string;
|
|
@@ -102,14 +101,14 @@ export interface ISectionPalette {
|
|
|
102
101
|
emojiCaptionBackground: string;
|
|
103
102
|
emojiCaption: string;
|
|
104
103
|
}
|
|
105
|
-
interface IOfferResult {
|
|
104
|
+
export interface IOfferResult {
|
|
106
105
|
id: string;
|
|
107
106
|
backgroundImage: string;
|
|
108
107
|
foregroundImage: string;
|
|
109
108
|
emoji: IOfferResultEmoji | null;
|
|
110
109
|
buttonText: string;
|
|
111
110
|
}
|
|
112
|
-
interface IOfferResultEmoji {
|
|
111
|
+
export interface IOfferResultEmoji {
|
|
113
112
|
emoji: string | null;
|
|
114
113
|
caption: string | null;
|
|
115
114
|
}
|
|
@@ -119,12 +118,6 @@ export interface IOffersSection {
|
|
|
119
118
|
title: string;
|
|
120
119
|
palette: ISectionPalette;
|
|
121
120
|
}
|
|
122
|
-
export interface IOffersSection {
|
|
123
|
-
id: number;
|
|
124
|
-
offers: IOfferResult[];
|
|
125
|
-
title: string;
|
|
126
|
-
palette: ISectionPalette;
|
|
127
|
-
}
|
|
128
121
|
export interface ISectionPaletteMapping {
|
|
129
122
|
titleBorder: string;
|
|
130
123
|
titleText: string;
|
|
@@ -161,7 +154,7 @@ export interface IOfferSectionMapping {
|
|
|
161
154
|
title: string;
|
|
162
155
|
internal: [string, any][];
|
|
163
156
|
}
|
|
164
|
-
export interface
|
|
157
|
+
export interface ILocalization {
|
|
165
158
|
numberWillReceiveACallPattern: string;
|
|
166
159
|
numberReceivedACallPattern: string;
|
|
167
160
|
numberReceivedASmsPattern: string;
|
|
@@ -216,38 +209,38 @@ export interface Localization {
|
|
|
216
209
|
game_min_rate_error_pattern: string;
|
|
217
210
|
auth_changeTitle: string;
|
|
218
211
|
auth_changeMessage: string;
|
|
219
|
-
auth_titleTop:
|
|
220
|
-
auth_titleBottom:
|
|
212
|
+
auth_titleTop: IColoredString;
|
|
213
|
+
auth_titleBottom: IColoredString;
|
|
221
214
|
auth_getAccess: string;
|
|
222
|
-
auth_subtitle:
|
|
215
|
+
auth_subtitle: IColoredString;
|
|
223
216
|
auth_cantBeEmpty: string;
|
|
224
217
|
auth_nameHint: string;
|
|
225
|
-
auth_changeNumber:
|
|
218
|
+
auth_changeNumber: IColoredString;
|
|
226
219
|
auth_enterAsGuest: string;
|
|
227
220
|
auth_privacyPolicyAcceptance: string;
|
|
228
|
-
auth_privacyPolicy:
|
|
221
|
+
auth_privacyPolicy: IColoredString;
|
|
229
222
|
}
|
|
230
|
-
export interface
|
|
223
|
+
export interface IColoredString {
|
|
231
224
|
text: string;
|
|
232
|
-
colors:
|
|
225
|
+
colors: IColoredSpan[];
|
|
233
226
|
mappingName: string;
|
|
234
227
|
}
|
|
235
|
-
interface
|
|
228
|
+
export interface IColoredSpan {
|
|
236
229
|
from: number;
|
|
237
230
|
to: number;
|
|
238
231
|
color: string;
|
|
239
232
|
}
|
|
240
|
-
export interface
|
|
233
|
+
export interface IColoredStringMapping {
|
|
241
234
|
text: string;
|
|
242
235
|
colors: string;
|
|
243
|
-
internal: [string,
|
|
236
|
+
internal: [string, IColoredSpanMapping][];
|
|
244
237
|
}
|
|
245
|
-
export interface
|
|
238
|
+
export interface IColoredSpanMapping {
|
|
246
239
|
from: string;
|
|
247
240
|
to: string;
|
|
248
241
|
color: string;
|
|
249
242
|
}
|
|
250
|
-
export interface
|
|
243
|
+
export interface IConfigMapping {
|
|
251
244
|
id: string;
|
|
252
245
|
fullAccess: string;
|
|
253
246
|
showVideo: string;
|
|
@@ -270,9 +263,9 @@ export interface ConfigMapping {
|
|
|
270
263
|
autoSmsCodeCatch: string;
|
|
271
264
|
autoCallCodeCatch: string;
|
|
272
265
|
localization: string;
|
|
273
|
-
internal: [string,
|
|
266
|
+
internal: [string, ILocalizationMapping][];
|
|
274
267
|
}
|
|
275
|
-
export interface
|
|
268
|
+
export interface ILocalizationMapping {
|
|
276
269
|
numberWillReceiveACallPattern: string;
|
|
277
270
|
numberReceivedACallPattern: string;
|
|
278
271
|
numberReceivedASmsPattern: string;
|
|
@@ -334,7 +327,5 @@ export interface LocalizationMapping {
|
|
|
334
327
|
auth_enterAsGuest: string;
|
|
335
328
|
auth_privacyPolicyAcceptance: string;
|
|
336
329
|
auth_privacyPolicy: string;
|
|
337
|
-
internal: [string,
|
|
330
|
+
internal: [string, IColoredStringMapping][];
|
|
338
331
|
}
|
|
339
|
-
export declare let asoConfigToDefault_v0: (config: ASOConfig_v0) => ASODefaultConfig;
|
|
340
|
-
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
let asoConfigToDefault_v0 = (config) => {
|
|
3
|
+
let toDefault = (config) => {
|
|
5
4
|
return {
|
|
6
5
|
id: config.id,
|
|
7
6
|
bundle: config.bundle,
|
|
@@ -56,4 +55,3 @@ let asoConfigToDefault_v0 = (config) => {
|
|
|
56
55
|
version: 0
|
|
57
56
|
};
|
|
58
57
|
};
|
|
59
|
-
exports.asoConfigToDefault_v0 = asoConfigToDefault_v0;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
4
|
+
export * as ASO_v0 from "./aso/config/aso-config-v0";
|
|
5
5
|
export { ASOConfig_v1, asoConfigToDefault_v1 } from "./aso/config/aso-config-v1";
|
|
6
6
|
export { ASOConfig_v2, asoConfigToDefault_v2 } from "./aso/config/aso-config-v2";
|
|
7
7
|
export { ASOConfig_v3, asoConfigToDefault_v3 } from "./aso/config/aso-config-v3";
|
package/lib/index.js
CHANGED
|
@@ -1,8 +1,30 @@
|
|
|
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.asoConfigToDefault_v4 = exports.asoConfigToDefault_v3 = exports.asoConfigToDefault_v2 = exports.asoConfigToDefault_v1 = exports.
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "asoConfigToDefault_v0", { enumerable: true, get: function () { return aso_config_v0_1.asoConfigToDefault_v0; } });
|
|
26
|
+
exports.FlashAppSchema = exports.asoConfigToDefault_v4 = exports.asoConfigToDefault_v3 = exports.asoConfigToDefault_v2 = exports.asoConfigToDefault_v1 = exports.ASO_v0 = void 0;
|
|
27
|
+
exports.ASO_v0 = __importStar(require("./aso/config/aso-config-v0"));
|
|
6
28
|
var aso_config_v1_1 = require("./aso/config/aso-config-v1");
|
|
7
29
|
Object.defineProperty(exports, "asoConfigToDefault_v1", { enumerable: true, get: function () { return aso_config_v1_1.asoConfigToDefault_v1; } });
|
|
8
30
|
var aso_config_v2_1 = require("./aso/config/aso-config-v2");
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ASODefaultConfig } 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: LocalizationMap |
|
|
41
|
+
localization: LocalizationMap | ILocalization,
|
|
43
42
|
authorizationActionMapping: AuthorizationActionMapping,
|
|
44
43
|
offersSectionMapping: IOfferSectionMapping
|
|
45
|
-
configMapping:
|
|
44
|
+
configMapping: IConfigMapping,
|
|
46
45
|
|
|
47
46
|
configEndpoint: string,
|
|
48
47
|
offersEndpoint: string,
|
|
@@ -85,8 +84,8 @@ export interface ASOConfig_v0 {
|
|
|
85
84
|
|
|
86
85
|
|
|
87
86
|
export interface AuthorizationActionMapping {
|
|
88
|
-
hasNextAction: string,
|
|
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 LocalizationMap {
|
|
102
|
-
[key: string]:
|
|
100
|
+
export interface LocalizationMap {
|
|
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): ASODefaultConfig => {
|
|
383
378
|
return {
|
|
384
379
|
id: config.id,
|
|
385
380
|
bundle: config.bundle,
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
4
|
+
export * as ASO_v0 from "./aso/config/aso-config-v0"
|
|
5
5
|
export {ASOConfig_v1, asoConfigToDefault_v1} from "./aso/config/aso-config-v1"
|
|
6
6
|
export {ASOConfig_v2, asoConfigToDefault_v2} from "./aso/config/aso-config-v2"
|
|
7
7
|
export {ASOConfig_v3, asoConfigToDefault_v3} from "./aso/config/aso-config-v3"
|