@bprotsyk/aso-core 2.1.69 → 2.1.71

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/app/app.d.ts CHANGED
@@ -49,7 +49,7 @@ export declare enum EDirectType {
49
49
  KEITARO_OFFER = "keitaroOffer",
50
50
  OFFER_DIRECT = "offerDirect"
51
51
  }
52
- export declare enum EBannerType {
52
+ export declare enum EBannerDirectType {
53
53
  OFFER_DIRECT = "offerDirect"
54
54
  }
55
55
  export declare const getPlatformName: (platform: EPlatform | undefined) => string | false;
@@ -114,7 +114,10 @@ export interface IBannerParams {
114
114
  imageParam: string;
115
115
  linkParam: string;
116
116
  showStubOnError?: boolean;
117
- directType?: EDirectType;
117
+ directType?: {
118
+ enabled: boolean;
119
+ type: EBannerDirectType;
120
+ };
118
121
  }
119
122
  export interface IRemoveDataParams {
120
123
  buttonText: string;
package/lib/app/app.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppSchema = exports.PlugType = exports.IntegrationVersion = exports.getPlatformName = exports.EBannerType = exports.EDirectType = exports.EPlatform = exports.EImageFormat = void 0;
3
+ exports.AppSchema = exports.PlugType = exports.IntegrationVersion = exports.getPlatformName = exports.EBannerDirectType = exports.EDirectType = exports.EPlatform = exports.EImageFormat = void 0;
4
4
  const app_type_1 = require("./app-type");
5
5
  const mongoose_1 = require("mongoose");
6
6
  const util = require("util");
@@ -26,10 +26,10 @@ var EDirectType;
26
26
  EDirectType["KEITARO_OFFER"] = "keitaroOffer";
27
27
  EDirectType["OFFER_DIRECT"] = "offerDirect";
28
28
  })(EDirectType = exports.EDirectType || (exports.EDirectType = {}));
29
- var EBannerType;
30
- (function (EBannerType) {
31
- EBannerType["OFFER_DIRECT"] = "offerDirect";
32
- })(EBannerType = exports.EBannerType || (exports.EBannerType = {}));
29
+ var EBannerDirectType;
30
+ (function (EBannerDirectType) {
31
+ EBannerDirectType["OFFER_DIRECT"] = "offerDirect";
32
+ })(EBannerDirectType = exports.EBannerDirectType || (exports.EBannerDirectType = {}));
33
33
  const getPlatformName = (platform) => {
34
34
  switch (platform) {
35
35
  case EPlatform.SAMSUNG:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "2.1.69",
3
+ "version": "2.1.71",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
package/src/app/app.ts CHANGED
@@ -62,8 +62,7 @@ export enum EDirectType{
62
62
  OFFER_DIRECT = 'offerDirect',
63
63
  }
64
64
 
65
- export enum EBannerType{
66
-
65
+ export enum EBannerDirectType{
67
66
  OFFER_DIRECT = 'offerDirect',
68
67
  }
69
68
 
@@ -159,7 +158,10 @@ export interface IBannerParams {
159
158
  imageParam: string,
160
159
  linkParam: string,
161
160
  showStubOnError?: boolean,
162
- directType?: EDirectType
161
+ directType?: {
162
+ enabled: boolean,
163
+ type: EBannerDirectType
164
+ }
163
165
  }
164
166
 
165
167
  export interface IRemoveDataParams {