@bprotsyk/aso-core 1.1.20 → 1.1.22
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/offer/aso-single-offer.d.ts +5 -0
- package/lib/aso/offer/aso-single-offer.js +2 -0
- package/lib/aso/usage-logs/aso-config-fetch-entry.d.ts +7 -7
- package/lib/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/{shared/single-offer.ts → aso/offer/aso-single-offer.ts} +1 -1
- package/src/aso/usage-logs/aso-config-fetch-entry.ts +7 -7
- package/src/index.ts +1 -0
|
@@ -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/lib/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { IAsoOfferResponse } from "./aso/offer/aso-offer-response";
|
|
|
3
3
|
export { IAsoSection } from "./aso/offer/aso-offer-section";
|
|
4
4
|
export { IAsoDefaultConfig } from "./aso/config/aso-default-config";
|
|
5
5
|
export { IAsoConfigResponse } from "./aso/config/aso-single-response";
|
|
6
|
+
export { IAsoSingleOffer } from "./aso/offer/aso-single-offer";
|
|
6
7
|
export * as ASO_v0 from "./aso/config/aso-config-v0";
|
|
7
8
|
export * as ASO_v1 from "./aso/config/aso-config-v1";
|
|
8
9
|
export * as ASO_v2 from "./aso/config/aso-config-v2";
|
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
|
}
|
package/src/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { IAsoOfferResponse } from "./aso/offer/aso-offer-response"
|
|
|
3
3
|
export { IAsoSection } from "./aso/offer/aso-offer-section"
|
|
4
4
|
export { IAsoDefaultConfig } from "./aso/config/aso-default-config"
|
|
5
5
|
export { IAsoConfigResponse } from "./aso/config/aso-single-response"
|
|
6
|
+
export { IAsoSingleOffer } from "./aso/offer/aso-single-offer"
|
|
6
7
|
export * as ASO_v0 from "./aso/config/aso-config-v0"
|
|
7
8
|
export * as ASO_v1 from "./aso/config/aso-config-v1"
|
|
8
9
|
export * as ASO_v2 from "./aso/config/aso-config-v2"
|