@bprotsyk/aso-core 2.1.68 → 2.1.69

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 EBannerType {
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?: EDirectType;
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.EBannerType = 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 EBannerType;
30
+ (function (EBannerType) {
31
+ EBannerType["OFFER_DIRECT"] = "offerDirect";
32
+ })(EBannerType = exports.EBannerType || (exports.EBannerType = {}));
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.69",
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,11 @@ export enum EDirectType{
62
62
  OFFER_DIRECT = 'offerDirect',
63
63
  }
64
64
 
65
+ export enum EBannerType{
66
+
67
+ OFFER_DIRECT = 'offerDirect',
68
+ }
69
+
65
70
 
66
71
  export const getPlatformName = (platform: EPlatform | undefined): string | false => {
67
72
  switch (platform) {
@@ -153,7 +158,8 @@ export interface IBannerParams {
153
158
  imagePath: string,
154
159
  imageParam: string,
155
160
  linkParam: string,
156
- showStubOnError?: boolean
161
+ showStubOnError?: boolean,
162
+ directType?: EDirectType
157
163
  }
158
164
 
159
165
  export interface IRemoveDataParams {