@bprotsyk/aso-core 1.1.20 → 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,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
|
@@ -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
|
}
|