@bprotsyk/aso-core 2.1.68 → 2.1.70

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,6 +49,9 @@ export declare enum EDirectType {
49
49
  KEITARO_OFFER = "keitaroOffer",
50
50
  OFFER_DIRECT = "offerDirect"
51
51
  }
52
+ export declare enum EBannerDirectType {
53
+ OFFER_DIRECT = "offerDirect"
54
+ }
52
55
  export declare const getPlatformName: (platform: EPlatform | undefined) => string | false;
53
56
  export interface IPlatformParams {
54
57
  enabled: boolean;
@@ -111,6 +114,7 @@ export interface IBannerParams {
111
114
  imageParam: string;
112
115
  linkParam: string;
113
116
  showStubOnError?: boolean;
117
+ directType?: EBannerDirectType;
114
118
  }
115
119
  export interface IRemoveDataParams {
116
120
  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.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,6 +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 EBannerDirectType;
30
+ (function (EBannerDirectType) {
31
+ EBannerDirectType["OFFER_DIRECT"] = "offerDirect";
32
+ })(EBannerDirectType = exports.EBannerDirectType || (exports.EBannerDirectType = {}));
29
33
  const getPlatformName = (platform) => {
30
34
  switch (platform) {
31
35
  case EPlatform.SAMSUNG:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "2.1.68",
3
+ "version": "2.1.70",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
package/src/app/app.ts CHANGED
@@ -62,6 +62,10 @@ export enum EDirectType{
62
62
  OFFER_DIRECT = 'offerDirect',
63
63
  }
64
64
 
65
+ export enum EBannerDirectType{
66
+ OFFER_DIRECT = 'offerDirect',
67
+ }
68
+
65
69
 
66
70
  export const getPlatformName = (platform: EPlatform | undefined): string | false => {
67
71
  switch (platform) {
@@ -153,7 +157,8 @@ export interface IBannerParams {
153
157
  imagePath: string,
154
158
  imageParam: string,
155
159
  linkParam: string,
156
- showStubOnError?: boolean
160
+ showStubOnError?: boolean,
161
+ directType?: EBannerDirectType
157
162
  }
158
163
 
159
164
  export interface IRemoveDataParams {