@bprotsyk/aso-core 1.2.118 → 1.2.125

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.
@@ -25,7 +25,22 @@ export interface IFlashApp extends Document {
25
25
  generationOptions: IAppGenerationOptions;
26
26
  keitaroData: IAppKeitaroData | null;
27
27
  integrationVersion: IntegrationVersion;
28
- integrationAlterations: IntegrationAlterations;
28
+ integrationAlterations?: IntegrationAlterations;
29
+ removeDataParams?: IRemoveDataParams;
30
+ privacyPolicyParams?: IPrivacyPolicyParams;
31
+ }
32
+ export interface IRemoveDataParams {
33
+ titleSuffix?: string;
34
+ buttonText?: string;
35
+ resultText?: string;
36
+ inputHint?: string;
37
+ }
38
+ export interface IPrivacyPolicyParams {
39
+ callbackMethodName?: string;
40
+ button?: {
41
+ text: string;
42
+ };
43
+ mustRead?: boolean;
29
44
  }
30
45
  export declare enum IntegrationVersion {
31
46
  _3 = 3,
@@ -84,6 +99,7 @@ export declare const FlashAppSchema: mongoose.Schema<any, mongoose.Model<any, an
84
99
  sourceUrl?: string | undefined;
85
100
  integrationVersion?: number | undefined;
86
101
  integrationAlterations?: any;
102
+ removeDataParams?: any;
87
103
  policyUrl?: string | undefined;
88
104
  generationOptions?: {
89
105
  splashName: string;
@@ -160,7 +160,8 @@ exports.FlashAppSchema = new mongoose_1.Schema({
160
160
  },
161
161
  clickIdParameterName: String,
162
162
  offerIdParameterName: String,
163
- }
163
+ },
164
+ removeDataParams: Object,
164
165
  });
165
166
  // TODO app type (casino / fin)
166
167
  async function updateSchemaAndMoveValue(model) {
@@ -127,6 +127,7 @@ let removeGeosFromAllRedirectCampaigns = async (geoToRemove) => {
127
127
  exports.removeGeosFromAllRedirectCampaigns = removeGeosFromAllRedirectCampaigns;
128
128
  let createOrFindFlashRedirectCampaign = async (app) => {
129
129
  if (app.keitaroData && app.keitaroData?.redirectCampaignId != 0) {
130
+ console.log(app.keitaroData?.redirectCampaignId);
130
131
  let campaign = await keitaro_service_1.KeitaroService.getCampaignById(app.keitaroData.redirectCampaignId);
131
132
  return campaign;
132
133
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.118",
3
+ "version": "1.2.125",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -31,7 +31,24 @@ export interface IFlashApp extends Document {
31
31
  generationOptions: IAppGenerationOptions,
32
32
  keitaroData: IAppKeitaroData | null,
33
33
  integrationVersion: IntegrationVersion
34
- integrationAlterations: IntegrationAlterations
34
+ integrationAlterations?: IntegrationAlterations,
35
+ removeDataParams?: IRemoveDataParams,
36
+ privacyPolicyParams?: IPrivacyPolicyParams
37
+ }
38
+
39
+ export interface IRemoveDataParams {
40
+ titleSuffix?: string,
41
+ buttonText?: string,
42
+ resultText?: string,
43
+ inputHint?: string,
44
+ }
45
+
46
+ export interface IPrivacyPolicyParams {
47
+ callbackMethodName?: string,
48
+ button?: {
49
+ text: string
50
+ },
51
+ mustRead?: boolean,
35
52
  }
36
53
 
37
54
  export enum IntegrationVersion {
@@ -227,7 +244,9 @@ export const FlashAppSchema = new Schema({
227
244
 
228
245
  clickIdParameterName: String,
229
246
  offerIdParameterName: String,
230
- }
247
+ },
248
+ removeDataParams: Object,
249
+
231
250
  })
232
251
  // TODO app type (casino / fin)
233
252
  export async function updateSchemaAndMoveValue(model: Model<IFlashApp>): Promise<void> {
@@ -273,6 +292,4 @@ export async function updateSchemaAndMoveValue(model: Model<IFlashApp>): Promise
273
292
  };
274
293
 
275
294
  await model.updateMany({}, updateOperation);
276
-
277
-
278
295
  }
@@ -15,6 +15,7 @@ export interface IUpsertFlashAppRequest {
15
15
  developerOrganization: string
16
16
  generationOptions: Partial<IAppGenerationOptions>
17
17
  keitaroData?: Partial<IAppKeitaroData>
18
+
18
19
  }
19
20
 
20
21
  export interface IUpsertFlashAppResponse {
@@ -138,6 +138,7 @@ export let removeGeosFromAllRedirectCampaigns = async (geoToRemove: string) => {
138
138
 
139
139
  export let createOrFindFlashRedirectCampaign = async (app: IFlashApp): Promise<IKeitaroCampaign> => {
140
140
  if (app.keitaroData && app.keitaroData?.redirectCampaignId != 0) {
141
+ console.log(app.keitaroData?.redirectCampaignId)
141
142
  let campaign = await KeitaroService.getCampaignById(app.keitaroData.redirectCampaignId)
142
143
  return campaign
143
144
  }