@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.
@@ -0,0 +1,5 @@
1
+ export interface IAsoSingleOffer {
2
+ name: string;
3
+ newTracker?: boolean;
4
+ customUrl?: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,28 +1,28 @@
1
1
  import { Document } from "mongoose";
2
- export interface IASOUsageLogEntry extends Document {
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 IASOUsageLogRequest {
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 IASOCountryInfo {
15
+ interface ICountryInfo {
16
16
  all: number;
17
17
  authorized: number;
18
18
  }
19
- export interface IASOUsageLogResponse {
19
+ export interface IUsageLogResponse {
20
20
  countriesInfo: {
21
- [key: string]: IASOCountryInfo;
21
+ [key: string]: ICountryInfo;
22
22
  };
23
23
  first: number;
24
24
  last: number;
25
- entries: IASOUsageLogEntry[];
26
- newEntries: IASOUsageLogEntry[];
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.1.20",
3
+ "version": "1.1.22",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -1,4 +1,4 @@
1
- export interface ISingleOffer {
1
+ export interface IAsoSingleOffer {
2
2
  name: string
3
3
  newTracker?: boolean,
4
4
  customUrl?: string
@@ -1,13 +1,13 @@
1
1
  import { Document } from "mongoose"
2
2
 
3
- export interface IASOUsageLogEntry extends Document {
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 IASOUsageLogRequest {
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 IASOCountryInfo {
18
+ interface ICountryInfo {
19
19
  all: number,
20
20
  authorized: number
21
21
  }
22
22
 
23
- export interface IASOUsageLogResponse {
23
+ export interface IUsageLogResponse {
24
24
  countriesInfo: {
25
- [key: string]: IASOCountryInfo
25
+ [key: string]: ICountryInfo
26
26
  },
27
27
  first: number,
28
28
  last: number,
29
- entries: IASOUsageLogEntry[],
30
- newEntries: IASOUsageLogEntry[]
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"