@bprotsyk/aso-core 2.1.62 → 2.1.63
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
|
@@ -204,11 +204,15 @@ async function cloneOWCampaign(app, platform) {
|
|
|
204
204
|
let matchingCampaign = [];
|
|
205
205
|
if (platform && platform !== app_1.EPlatform.GENERAL) {
|
|
206
206
|
// Шукаємо кампанію з платформою
|
|
207
|
-
matchingCampaign = allCampaigns.filter((c) => c.name.includes(`#${app.id}`) &&
|
|
207
|
+
matchingCampaign = allCampaigns.filter((c) => c.name.includes(`#${app.id}`) &&
|
|
208
|
+
c.name.includes(`[◈]`) &&
|
|
209
|
+
c.name.includes(`(${platformName})`));
|
|
208
210
|
}
|
|
209
211
|
else {
|
|
210
212
|
// Шукаємо кампанію без платформи або з суфіксом
|
|
211
|
-
matchingCampaign = allCampaigns.filter((c) => c.name.includes(`#${app.id}`) &&
|
|
213
|
+
matchingCampaign = allCampaigns.filter((c) => c.name.includes(`#${app.id}`) &&
|
|
214
|
+
c.name.includes(`[◈]`) &&
|
|
215
|
+
!c.name.includes('('));
|
|
212
216
|
}
|
|
213
217
|
if (matchingCampaign.length > 0)
|
|
214
218
|
return matchingCampaign[0];
|
|
@@ -273,7 +277,7 @@ async function cloneOWCampaign(app, platform) {
|
|
|
273
277
|
return updatedCampaign;
|
|
274
278
|
}
|
|
275
279
|
async function cloneDirectCampaign(app, platform) {
|
|
276
|
-
let name = `#${app.id} [
|
|
280
|
+
let name = `#${app.id} [➥]`;
|
|
277
281
|
let platformName = platform ? (0, app_1.getPlatformName)(platform) : null;
|
|
278
282
|
const platformCampaignName = `#${app.id} [✦] (${platformName})`;
|
|
279
283
|
const generateAlias = () => {
|
|
@@ -285,13 +289,13 @@ async function cloneDirectCampaign(app, platform) {
|
|
|
285
289
|
if (platform && platform !== app_1.EPlatform.GENERAL) {
|
|
286
290
|
// Шукаємо кампанію з платформою
|
|
287
291
|
matchingCampaign = allCampaigns.filter((c) => c.name.includes(`#${app.id}`) &&
|
|
288
|
-
c.name.includes(`[
|
|
292
|
+
c.name.includes(`[➥]`) &&
|
|
289
293
|
c.name.includes(`(${platformName})`));
|
|
290
294
|
}
|
|
291
295
|
else {
|
|
292
296
|
// Шукаємо кампанію без платформи або з суфіксом
|
|
293
297
|
matchingCampaign = allCampaigns.filter((c) => c.name.includes(`#${app.id}`) &&
|
|
294
|
-
c.name.includes(`[
|
|
298
|
+
c.name.includes(`[➥]`) &&
|
|
295
299
|
!c.name.includes('('));
|
|
296
300
|
}
|
|
297
301
|
if (matchingCampaign.length > 0)
|
package/package.json
CHANGED
package/src/app/app.ts
CHANGED
|
@@ -256,12 +256,16 @@ async function cloneOWCampaign(app: IApp, platform?: EPlatform): Promise<IKeitar
|
|
|
256
256
|
if (platform && platform !== EPlatform.GENERAL) {
|
|
257
257
|
// Шукаємо кампанію з платформою
|
|
258
258
|
matchingCampaign = allCampaigns.filter((c) =>
|
|
259
|
-
c.name.includes(`#${app.id}`) &&
|
|
259
|
+
c.name.includes(`#${app.id}`) &&
|
|
260
|
+
c.name.includes(`[◈]`) &&
|
|
261
|
+
c.name.includes(`(${platformName})`)
|
|
260
262
|
);
|
|
261
263
|
} else {
|
|
262
264
|
// Шукаємо кампанію без платформи або з суфіксом
|
|
263
265
|
matchingCampaign = allCampaigns.filter((c) =>
|
|
264
|
-
c.name.includes(`#${app.id}`) &&
|
|
266
|
+
c.name.includes(`#${app.id}`) &&
|
|
267
|
+
c.name.includes(`[◈]`) &&
|
|
268
|
+
!c.name.includes('(')
|
|
265
269
|
);
|
|
266
270
|
}
|
|
267
271
|
|
|
@@ -338,7 +342,7 @@ async function cloneOWCampaign(app: IApp, platform?: EPlatform): Promise<IKeitar
|
|
|
338
342
|
}
|
|
339
343
|
|
|
340
344
|
async function cloneDirectCampaign(app: IApp, platform?: EPlatform): Promise<IKeitaroCampaign | any> {
|
|
341
|
-
let name = `#${app.id} [
|
|
345
|
+
let name = `#${app.id} [➥]`
|
|
342
346
|
let platformName = platform ? getPlatformName(platform) : null;
|
|
343
347
|
const platformCampaignName = `#${app.id} [✦] (${platformName})`;
|
|
344
348
|
const generateAlias = () => {
|
|
@@ -357,14 +361,14 @@ async function cloneDirectCampaign(app: IApp, platform?: EPlatform): Promise<IKe
|
|
|
357
361
|
// Шукаємо кампанію з платформою
|
|
358
362
|
matchingCampaign = allCampaigns.filter((c) =>
|
|
359
363
|
c.name.includes(`#${app.id}`) &&
|
|
360
|
-
c.name.includes(`[
|
|
364
|
+
c.name.includes(`[➥]`) &&
|
|
361
365
|
c.name.includes(`(${platformName})`)
|
|
362
366
|
);
|
|
363
367
|
} else {
|
|
364
368
|
// Шукаємо кампанію без платформи або з суфіксом
|
|
365
369
|
matchingCampaign = allCampaigns.filter((c) =>
|
|
366
370
|
c.name.includes(`#${app.id}`) &&
|
|
367
|
-
c.name.includes(`[
|
|
371
|
+
c.name.includes(`[➥]`) &&
|
|
368
372
|
!c.name.includes('(')
|
|
369
373
|
);
|
|
370
374
|
}
|