@bprotsyk/aso-core 2.1.109 → 2.1.111
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
|
@@ -88,6 +88,7 @@ export interface IPlatformParams {
|
|
|
88
88
|
apiToken: string;
|
|
89
89
|
eventIds?: Record<string, string>;
|
|
90
90
|
appId?: string;
|
|
91
|
+
devKey: string;
|
|
91
92
|
};
|
|
92
93
|
proxied?: boolean;
|
|
93
94
|
keitaroData?: IAppKeitaroData | boolean;
|
|
@@ -133,7 +134,8 @@ export declare enum AppStatus {
|
|
|
133
134
|
PUBLISHED = "PUBLISHED",
|
|
134
135
|
MODERATION = "ACTIVE",
|
|
135
136
|
REMOVED = "REMOVED",
|
|
136
|
-
ARCHIVED = "ARCHIVED"
|
|
137
|
+
ARCHIVED = "ARCHIVED",
|
|
138
|
+
TEST = "TEST"
|
|
137
139
|
}
|
|
138
140
|
export interface IRemoveDataParams {
|
|
139
141
|
buttonText: string;
|
package/lib/app/app.js
CHANGED
|
@@ -64,6 +64,7 @@ var AppStatus;
|
|
|
64
64
|
AppStatus["MODERATION"] = "ACTIVE";
|
|
65
65
|
AppStatus["REMOVED"] = "REMOVED";
|
|
66
66
|
AppStatus["ARCHIVED"] = "ARCHIVED";
|
|
67
|
+
AppStatus["TEST"] = "TEST";
|
|
67
68
|
})(AppStatus = exports.AppStatus || (exports.AppStatus = {}));
|
|
68
69
|
var IntegrationVersion;
|
|
69
70
|
(function (IntegrationVersion) {
|
|
@@ -286,7 +286,7 @@ async function cloneTraffleCampaign(app, platform, addDefaultStreams) {
|
|
|
286
286
|
}
|
|
287
287
|
const maxGroupId = Math.max(...allCampaigns.map(c => c.group_id || 0));
|
|
288
288
|
const originalStreams = await getStreamsByCampaignId(ORIGINAL_CLONE_CAMPAIGN_ID);
|
|
289
|
-
let parameters = await TrafleKeitaroParameters({ bundle: app.bundle, appsflyerDevKey: app.platforms[platform].appsflyerParams?.
|
|
289
|
+
let parameters = await TrafleKeitaroParameters({ bundle: app.bundle, appsflyerDevKey: app.platforms[platform].appsflyerParams?.devKey, name: name, originalParameters: originalCampaign.parameters });
|
|
290
290
|
const createStreamWithoutIds = async (stream, campaignId) => {
|
|
291
291
|
// Створюємо базовий об'єкт потоку без ID
|
|
292
292
|
const newStream = {
|
package/package.json
CHANGED
package/src/app/app.ts
CHANGED
|
@@ -123,7 +123,8 @@ export interface IPlatformParams {
|
|
|
123
123
|
appsflyerParams? :{
|
|
124
124
|
apiToken: string,
|
|
125
125
|
eventIds?: Record<string, string>,
|
|
126
|
-
appId?: string
|
|
126
|
+
appId?: string,
|
|
127
|
+
devKey: string
|
|
127
128
|
},
|
|
128
129
|
proxied?: boolean,
|
|
129
130
|
|
|
@@ -178,7 +179,8 @@ export enum AppStatus {
|
|
|
178
179
|
PUBLISHED = "PUBLISHED",
|
|
179
180
|
MODERATION = "ACTIVE",
|
|
180
181
|
REMOVED = "REMOVED",
|
|
181
|
-
ARCHIVED = "ARCHIVED"
|
|
182
|
+
ARCHIVED = "ARCHIVED",
|
|
183
|
+
TEST = "TEST"
|
|
182
184
|
}
|
|
183
185
|
|
|
184
186
|
export interface IRemoveDataParams {
|
|
@@ -381,7 +381,7 @@ async function cloneTraffleCampaign(app: IApp, platform: EPlatform, addDefaultSt
|
|
|
381
381
|
const originalStreams = await getStreamsByCampaignId(ORIGINAL_CLONE_CAMPAIGN_ID);
|
|
382
382
|
|
|
383
383
|
|
|
384
|
-
let parameters = await TrafleKeitaroParameters({bundle: app.bundle, appsflyerDevKey: app.platforms[platform].appsflyerParams?.
|
|
384
|
+
let parameters = await TrafleKeitaroParameters({bundle: app.bundle, appsflyerDevKey: app.platforms[platform].appsflyerParams?.devKey, name: name, originalParameters: originalCampaign.parameters})
|
|
385
385
|
|
|
386
386
|
const createStreamWithoutIds = async (stream: IKeitaroStream, campaignId: number) => {
|
|
387
387
|
// Створюємо базовий об'єкт потоку без ID
|