@bprotsyk/aso-core 2.1.98 → 2.1.100

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
@@ -26,6 +26,7 @@ export interface IApp extends Document {
26
26
  platforms: {
27
27
  [key: string]: IPlatformParams;
28
28
  };
29
+ publicationHistory: IPublicationHistory;
29
30
  offersListId: number;
30
31
  externalParams?: IExternalParams;
31
32
  proxied: boolean;
@@ -51,6 +52,10 @@ export declare enum EDirectType {
51
52
  KEITARO_OFFER = "keitaroOffer",
52
53
  OFFER_DIRECT = "offerDirect"
53
54
  }
55
+ export interface IPublicationHistory {
56
+ publications: number[];
57
+ removals: IRemovalInfo[];
58
+ }
54
59
  export declare const getPlatformName: (platform: EPlatform | undefined) => string | false;
55
60
  export interface IPlatformParams {
56
61
  enabled: boolean;
@@ -132,6 +137,12 @@ export interface IRemoveDataParams {
132
137
  callbackFunctionName: string;
133
138
  toSplashAfterSuccess: boolean;
134
139
  }
140
+ export interface IRemovalInfo {
141
+ reason: string;
142
+ date: number;
143
+ status: string;
144
+ images: string[];
145
+ }
135
146
  export interface IPrivacyPolicyParams {
136
147
  showButtonQuery: string;
137
148
  button?: {
@@ -179,8 +190,10 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
179
190
  bundle: string;
180
191
  trackingUrl: string;
181
192
  integrationVersion: string;
193
+ removeInfo: any;
182
194
  name?: string | null | undefined;
183
195
  pushesEnabled?: boolean | null | undefined;
196
+ publicationHistory?: any;
184
197
  removeDataParams?: any;
185
198
  privacyPolicyParams?: any;
186
199
  offersStubParams?: any;
@@ -219,8 +232,10 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
219
232
  bundle: string;
220
233
  trackingUrl: string;
221
234
  integrationVersion: string;
235
+ removeInfo: any;
222
236
  name?: string | null | undefined;
223
237
  pushesEnabled?: boolean | null | undefined;
238
+ publicationHistory?: any;
224
239
  removeDataParams?: any;
225
240
  privacyPolicyParams?: any;
226
241
  offersStubParams?: any;
@@ -259,8 +274,10 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
259
274
  bundle: string;
260
275
  trackingUrl: string;
261
276
  integrationVersion: string;
277
+ removeInfo: any;
262
278
  name?: string | null | undefined;
263
279
  pushesEnabled?: boolean | null | undefined;
280
+ publicationHistory?: any;
264
281
  removeDataParams?: any;
265
282
  privacyPolicyParams?: any;
266
283
  offersStubParams?: any;
package/lib/app/app.js CHANGED
@@ -178,7 +178,12 @@ exports.AppSchema = new mongoose_1.Schema({
178
178
  default: "none"
179
179
  },
180
180
  },
181
+ publicationHistory: Object,
181
182
  removeDataParams: Object,
183
+ removeInfo: {
184
+ type: Object,
185
+ default: null
186
+ },
182
187
  privacyPolicyParams: Object,
183
188
  offersStubParams: Object,
184
189
  bannerParams: Object,
package/lib/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export { IPush } from "./general/push";
2
2
  export { IOffer, IPartner, IOfferType } from "./offers/offer";
3
3
  export { IOffersSection, OffersSectionSchema, DefaultSectionId } from "./offers/section";
4
4
  export { IAppOffersSection, ISectionsList, SectionsListSchema, IOfferState } from "./offers/list";
5
- export { IAdjustEventIds, IntegrationVersion, IApp, AppSchema, PlugType, IAppKeitaroData, IExternalParams, IPlatformParams, EPlatform } from "./app/app";
5
+ export { IAdjustEventIds, IntegrationVersion, IApp, AppSchema, PlugType, IAppKeitaroData, IExternalParams, IPlatformParams, EPlatform, AppStatus, IPublicationHistory, IRemovalInfo } from "./app/app";
6
6
  export { IAppListItem } from "./app/app-list-item";
7
7
  export { AppType } from "./app/app-type";
8
8
  export { AlternativeLayoutType, AlternativeSourceType, AlternativeLogicType, AlternativeNetworkTool, AlternativeStorageType, AlternativeNavigation, AlternativeOnBackPressed, AlternativeOnActivityResult, IAppIntegration as IFlashIntegration } from "./app/app-integration";
package/lib/index.js CHANGED
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.NginxTemplate = exports.NamecheapBuyRequestSchema = exports.getDomainTargetByIp = exports.CONST_CLOUFLARE_STATUS_READY = exports.DomainTarget = exports.DomainStatus = exports.ICloudflareDomainType = exports.ICloudflareDomainStatus = exports.KeitaroUtils = exports.KeitaroService = exports.ShapeDiv = exports.PanelUserSchema = exports.PanelUserAccessScope = exports.AlternativeOnActivityResult = exports.AlternativeOnBackPressed = exports.AlternativeNavigation = exports.AlternativeStorageType = exports.AlternativeNetworkTool = exports.AlternativeLogicType = exports.AlternativeSourceType = exports.AlternativeLayoutType = exports.AppType = exports.EPlatform = exports.PlugType = exports.AppSchema = exports.IntegrationVersion = exports.SectionsListSchema = exports.DefaultSectionId = exports.OffersSectionSchema = exports.IOfferType = void 0;
26
+ exports.NginxTemplate = exports.NamecheapBuyRequestSchema = exports.getDomainTargetByIp = exports.CONST_CLOUFLARE_STATUS_READY = exports.DomainTarget = exports.DomainStatus = exports.ICloudflareDomainType = exports.ICloudflareDomainStatus = exports.KeitaroUtils = exports.KeitaroService = exports.ShapeDiv = exports.PanelUserSchema = exports.PanelUserAccessScope = exports.AlternativeOnActivityResult = exports.AlternativeOnBackPressed = exports.AlternativeNavigation = exports.AlternativeStorageType = exports.AlternativeNetworkTool = exports.AlternativeLogicType = exports.AlternativeSourceType = exports.AlternativeLayoutType = exports.AppType = exports.AppStatus = exports.EPlatform = exports.PlugType = exports.AppSchema = exports.IntegrationVersion = exports.SectionsListSchema = exports.DefaultSectionId = exports.OffersSectionSchema = exports.IOfferType = void 0;
27
27
  var offer_1 = require("./offers/offer");
28
28
  Object.defineProperty(exports, "IOfferType", { enumerable: true, get: function () { return offer_1.IOfferType; } });
29
29
  var section_1 = require("./offers/section");
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "IntegrationVersion", { enumerable: true, get: fu
36
36
  Object.defineProperty(exports, "AppSchema", { enumerable: true, get: function () { return app_1.AppSchema; } });
37
37
  Object.defineProperty(exports, "PlugType", { enumerable: true, get: function () { return app_1.PlugType; } });
38
38
  Object.defineProperty(exports, "EPlatform", { enumerable: true, get: function () { return app_1.EPlatform; } });
39
+ Object.defineProperty(exports, "AppStatus", { enumerable: true, get: function () { return app_1.AppStatus; } });
39
40
  var app_type_1 = require("./app/app-type");
40
41
  Object.defineProperty(exports, "AppType", { enumerable: true, get: function () { return app_type_1.AppType; } });
41
42
  var app_integration_1 = require("./app/app-integration");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "2.1.98",
3
+ "version": "2.1.100",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
package/src/app/app.ts CHANGED
@@ -34,6 +34,7 @@ export interface IApp extends Document {
34
34
  remoteServerParams?: IRemoteServerParams,
35
35
  domainParams: IDomainParams
36
36
  platforms: { [key: string]: IPlatformParams },
37
+ publicationHistory: IPublicationHistory,
37
38
 
38
39
  offersListId: number,
39
40
  externalParams?: IExternalParams,
@@ -64,8 +65,10 @@ export enum EDirectType{
64
65
  OFFER_DIRECT = 'offerDirect',
65
66
  }
66
67
 
67
-
68
-
68
+ export interface IPublicationHistory {
69
+ publications: number[],
70
+ removals: IRemovalInfo[]
71
+ }
69
72
 
70
73
  export const getPlatformName = (platform: EPlatform | undefined): string | false => {
71
74
  switch (platform) {
@@ -183,6 +186,13 @@ export interface IRemoveDataParams {
183
186
  toSplashAfterSuccess: boolean
184
187
  }
185
188
 
189
+ export interface IRemovalInfo {
190
+ reason: string,
191
+ date: number,
192
+ status: string,
193
+ images: string[]
194
+ }
195
+
186
196
  export interface IPrivacyPolicyParams {
187
197
  showButtonQuery: string,
188
198
  button?: {
@@ -333,7 +343,12 @@ export const AppSchema = new Schema({
333
343
  default: "none"
334
344
  },
335
345
  },
346
+ publicationHistory: Object,
336
347
  removeDataParams: Object,
348
+ removeInfo: {
349
+ type: Object,
350
+ default: null
351
+ },
337
352
  privacyPolicyParams: Object,
338
353
  offersStubParams: Object,
339
354
  bannerParams: Object,
package/src/index.ts CHANGED
@@ -4,7 +4,7 @@ export { IOffer, IPartner, IOfferType } from "./offers/offer"
4
4
  export { IOffersSection, OffersSectionSchema, DefaultSectionId } from "./offers/section"
5
5
  export { IAppOffersSection, ISectionsList, SectionsListSchema, IOfferState } from "./offers/list"
6
6
 
7
- export { IAdjustEventIds, IntegrationVersion, IApp, AppSchema, PlugType, IAppKeitaroData, IExternalParams, IPlatformParams, EPlatform } from "./app/app"
7
+ export { IAdjustEventIds, IntegrationVersion, IApp, AppSchema, PlugType, IAppKeitaroData, IExternalParams, IPlatformParams, EPlatform, AppStatus, IPublicationHistory, IRemovalInfo } from "./app/app"
8
8
  export { IAppListItem } from "./app/app-list-item"
9
9
  export { AppType } from "./app/app-type"
10
10
  export { AlternativeLayoutType, AlternativeSourceType, AlternativeLogicType, AlternativeNetworkTool, AlternativeStorageType, AlternativeNavigation, AlternativeOnBackPressed, AlternativeOnActivityResult, IAppIntegration as IFlashIntegration } from "./app/app-integration"