@bprotsyk/aso-core 1.1.19 → 1.1.21
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IAsoDefaultConfig } from "./aso-default-config";
|
|
1
2
|
export interface IConfig {
|
|
2
3
|
id: number;
|
|
3
4
|
name: string;
|
|
@@ -329,3 +330,4 @@ export interface ILocalizationMapping {
|
|
|
329
330
|
auth_privacyPolicy: string;
|
|
330
331
|
internal: [string, IColoredStringMapping][];
|
|
331
332
|
}
|
|
333
|
+
export declare let toDefault: (config: IConfig) => IAsoDefaultConfig;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toDefault = void 0;
|
|
3
4
|
let toDefault = (config) => {
|
|
4
5
|
return {
|
|
5
6
|
id: config.id,
|
|
@@ -55,3 +56,4 @@ let toDefault = (config) => {
|
|
|
55
56
|
version: 0
|
|
56
57
|
};
|
|
57
58
|
};
|
|
59
|
+
exports.toDefault = toDefault;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
|
-
export interface
|
|
2
|
+
export interface IUsageLogEntry extends Document {
|
|
3
3
|
countryCode: string;
|
|
4
4
|
ip: string;
|
|
5
5
|
timestamp: number;
|
|
6
6
|
phone: string;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface IUsageLogRequest {
|
|
9
9
|
from: number;
|
|
10
10
|
to: number;
|
|
11
11
|
first: number;
|
|
12
12
|
last: number;
|
|
13
13
|
count: number;
|
|
14
14
|
}
|
|
15
|
-
interface
|
|
15
|
+
interface ICountryInfo {
|
|
16
16
|
all: number;
|
|
17
17
|
authorized: number;
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
19
|
+
export interface IUsageLogResponse {
|
|
20
20
|
countriesInfo: {
|
|
21
|
-
[key: string]:
|
|
21
|
+
[key: string]: ICountryInfo;
|
|
22
22
|
};
|
|
23
23
|
first: number;
|
|
24
24
|
last: number;
|
|
25
|
-
entries:
|
|
26
|
-
newEntries:
|
|
25
|
+
entries: IUsageLogEntry[];
|
|
26
|
+
newEntries: IUsageLogEntry[];
|
|
27
27
|
}
|
|
28
28
|
export {};
|
package/package.json
CHANGED
|
@@ -374,7 +374,7 @@ export interface ILocalizationMapping {
|
|
|
374
374
|
internal: [string, IColoredStringMapping][]
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
let toDefault = (config: IConfig): IAsoDefaultConfig => {
|
|
377
|
+
export let toDefault = (config: IConfig): IAsoDefaultConfig => {
|
|
378
378
|
return {
|
|
379
379
|
id: config.id,
|
|
380
380
|
bundle: config.bundle,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Document } from "mongoose"
|
|
2
2
|
|
|
3
|
-
export interface
|
|
3
|
+
export interface IUsageLogEntry extends Document {
|
|
4
4
|
countryCode: string,
|
|
5
5
|
ip: string,
|
|
6
6
|
timestamp: number,
|
|
7
7
|
phone: string
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export interface
|
|
10
|
+
export interface IUsageLogRequest {
|
|
11
11
|
from: number,
|
|
12
12
|
to: number,
|
|
13
13
|
first: number,
|
|
@@ -15,17 +15,17 @@ export interface IASOUsageLogRequest {
|
|
|
15
15
|
count: number
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
interface
|
|
18
|
+
interface ICountryInfo {
|
|
19
19
|
all: number,
|
|
20
20
|
authorized: number
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export interface
|
|
23
|
+
export interface IUsageLogResponse {
|
|
24
24
|
countriesInfo: {
|
|
25
|
-
[key: string]:
|
|
25
|
+
[key: string]: ICountryInfo
|
|
26
26
|
},
|
|
27
27
|
first: number,
|
|
28
28
|
last: number,
|
|
29
|
-
entries:
|
|
30
|
-
newEntries:
|
|
29
|
+
entries: IUsageLogEntry[],
|
|
30
|
+
newEntries: IUsageLogEntry[]
|
|
31
31
|
}
|