@bprotsyk/aso-core 2.1.116 → 2.1.118

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/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, AppStatus, IPublicationHistory, IRemovalInfo } from "./app/app";
5
+ export { IAdjustEventIds, IntegrationVersion, IApp, AppSchema, PlugType, IAppKeitaroData, IExternalParams, IPlatformParams, EPlatform, AppStatus, IPublicationHistory, IRemovalInfo, EDirectType } 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.KeitaroCLOGeosService = exports.TraffleKeitaroService = 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;
26
+ exports.KeitaroCLOGeosService = exports.TraffleKeitaroService = 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.EDirectType = 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");
@@ -37,6 +37,7 @@ Object.defineProperty(exports, "AppSchema", { enumerable: true, get: function ()
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
39
  Object.defineProperty(exports, "AppStatus", { enumerable: true, get: function () { return app_1.AppStatus; } });
40
+ Object.defineProperty(exports, "EDirectType", { enumerable: true, get: function () { return app_1.EDirectType; } });
40
41
  var app_type_1 = require("./app/app-type");
41
42
  Object.defineProperty(exports, "AppType", { enumerable: true, get: function () { return app_type_1.AppType; } });
42
43
  var app_integration_1 = require("./app/app-integration");
@@ -200,25 +200,26 @@ async function syncKeitaroCLOGeosWithApps(apps) {
200
200
  // Порівнюємо гео
201
201
  const missingGeos = keitaroGeos.filter(geo => !appGeos.includes(geo));
202
202
  const needsUpdate = missingGeos.length > 0;
203
- console.log(` Відсутні гео: ${missingGeos.join(', ')}`);
203
+ console.log(` Відсутні гео в app: ${missingGeos.join(', ')}`);
204
204
  console.log(` Потребує оновлення: ${needsUpdate}`);
205
205
  if (needsUpdate) {
206
206
  summary.appsNeedingUpdate++;
207
+ // Формуємо нові гео - беремо тільки ті, що є в Keitaro
207
208
  const updateData = {
208
209
  appId: parseInt(group),
209
210
  platform: platform,
210
- newGeos: [...appGeos, ...missingGeos]
211
+ newGeos: keitaroGeos // Використовуємо гео з Keitaro як джерело істини
211
212
  };
212
213
  summary.updates.push(updateData);
213
214
  console.log(`✅ Додаток ${group} (${platform}) потребує оновлення гео:`);
214
215
  console.log(` Кампанія: ${campaign.name}`);
215
216
  console.log(` Keitaro гео: ${keitaroGeos.join(', ')}`);
216
217
  console.log(` App гео: ${appGeos.join(', ')}`);
217
- console.log(` Відсутні гео: ${missingGeos.join(', ')}`);
218
- console.log(` Нові гео: ${updateData.newGeos.join(', ')}`);
218
+ console.log(` Відсутні гео в app: ${missingGeos.join(', ')}`);
219
+ console.log(` Нові гео (з Keitaro): ${updateData.newGeos.join(', ')}`);
219
220
  }
220
221
  else {
221
- console.log(`✅ Додаток ${group} (${platform}) не потребує оновлення гео`);
222
+ console.log(`✅ Додаток ${group} (${platform}) не потребує оновлення гео - гео ідентичні`);
222
223
  }
223
224
  }
224
225
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "2.1.116",
3
+ "version": "2.1.118",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
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, AppStatus, IPublicationHistory, IRemovalInfo } from "./app/app"
7
+ export { IAdjustEventIds, IntegrationVersion, IApp, AppSchema, PlugType, IAppKeitaroData, IExternalParams, IPlatformParams, EPlatform, AppStatus, IPublicationHistory, IRemovalInfo, EDirectType } 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"
@@ -254,16 +254,17 @@ export async function syncKeitaroCLOGeosWithApps(apps: IApp[]): Promise<IGeoSync
254
254
  const missingGeos = keitaroGeos.filter(geo => !appGeos.includes(geo));
255
255
  const needsUpdate = missingGeos.length > 0;
256
256
 
257
- console.log(` Відсутні гео: ${missingGeos.join(', ')}`);
257
+ console.log(` Відсутні гео в app: ${missingGeos.join(', ')}`);
258
258
  console.log(` Потребує оновлення: ${needsUpdate}`);
259
259
 
260
260
  if (needsUpdate) {
261
261
  summary.appsNeedingUpdate++;
262
262
 
263
+ // Формуємо нові гео - беремо тільки ті, що є в Keitaro
263
264
  const updateData: IGeoUpdateData = {
264
265
  appId: parseInt(group),
265
266
  platform: platform,
266
- newGeos: [...appGeos, ...missingGeos]
267
+ newGeos: keitaroGeos // Використовуємо гео з Keitaro як джерело істини
267
268
  };
268
269
 
269
270
  summary.updates.push(updateData);
@@ -272,10 +273,10 @@ export async function syncKeitaroCLOGeosWithApps(apps: IApp[]): Promise<IGeoSync
272
273
  console.log(` Кампанія: ${campaign.name}`);
273
274
  console.log(` Keitaro гео: ${keitaroGeos.join(', ')}`);
274
275
  console.log(` App гео: ${appGeos.join(', ')}`);
275
- console.log(` Відсутні гео: ${missingGeos.join(', ')}`);
276
- console.log(` Нові гео: ${updateData.newGeos.join(', ')}`);
276
+ console.log(` Відсутні гео в app: ${missingGeos.join(', ')}`);
277
+ console.log(` Нові гео (з Keitaro): ${updateData.newGeos.join(', ')}`);
277
278
  } else {
278
- console.log(`✅ Додаток ${group} (${platform}) не потребує оновлення гео`);
279
+ console.log(`✅ Додаток ${group} (${platform}) не потребує оновлення гео - гео ідентичні`);
279
280
  }
280
281
 
281
282
  } catch (error) {