@bprotsyk/aso-core 1.2.154 → 1.2.156

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.
@@ -27,9 +27,14 @@ export interface IFlashApp extends Document {
27
27
  integrationAlterations?: IntegrationAlterations;
28
28
  removeDataParams?: IRemoveDataParams;
29
29
  privacyPolicyParams?: IPrivacyPolicyParams;
30
+ offersStubParams?: IOffersStubParams;
30
31
  domainParams: IDomainParams;
31
32
  developerParams: IDeveloperParams;
32
33
  }
34
+ export interface IOffersStubParams {
35
+ offersEndpoint: string;
36
+ imagesEndpoint: string;
37
+ }
33
38
  export interface IDomainParams {
34
39
  name: string;
35
40
  clouflareZone: string;
@@ -59,7 +64,8 @@ export interface IPrivacyPolicyParams {
59
64
  }
60
65
  export declare enum IntegrationVersion {
61
66
  MVVM = "MVVM",
62
- POLICY = "POLICY"
67
+ POLICY = "POLICY",
68
+ OFFER_STUB = "OFFER_STUB"
63
69
  }
64
70
  export interface IntegrationAlterations {
65
71
  networkTool: AlternativeNetworkTool;
@@ -118,6 +124,7 @@ export declare const FlashAppSchema: mongoose.Schema<any, mongoose.Model<any, an
118
124
  integrationAlterations?: any;
119
125
  removeDataParams?: any;
120
126
  privacyPolicyParams?: any;
127
+ offersStubParams?: any;
121
128
  domainParams?: any;
122
129
  policyUrl?: string | undefined;
123
130
  linkPath?: string | undefined;
@@ -14,6 +14,7 @@ var IntegrationVersion;
14
14
  (function (IntegrationVersion) {
15
15
  IntegrationVersion["MVVM"] = "MVVM";
16
16
  IntegrationVersion["POLICY"] = "POLICY";
17
+ IntegrationVersion["OFFER_STUB"] = "OFFER_STUB";
17
18
  })(IntegrationVersion = exports.IntegrationVersion || (exports.IntegrationVersion = {}));
18
19
  var PlugType;
19
20
  (function (PlugType) {
@@ -148,6 +149,7 @@ exports.FlashAppSchema = new mongoose_1.Schema({
148
149
  },
149
150
  removeDataParams: Object,
150
151
  privacyPolicyParams: Object,
152
+ offersStubParams: Object,
151
153
  domainParams: Object
152
154
  });
153
155
  // TODO app type (casino / fin)
@@ -1,4 +1,4 @@
1
- import { IAppGenerationOptions, IAppKeitaroData, IDeveloperParams, IDomainParams, IPrivacyPolicyParams, IRemoveDataParams } from "flash/flash-app";
1
+ import { IAppGenerationOptions, IAppKeitaroData, IDeveloperParams, IDomainParams, IOffersStubParams, IPrivacyPolicyParams, IRemoveDataParams, IntegrationVersion } from "flash/flash-app";
2
2
  export interface IUpsertFlashAppRequest {
3
3
  id: number;
4
4
  name: string;
@@ -10,10 +10,12 @@ export interface IUpsertFlashAppRequest {
10
10
  onesignalRestApiKey: string;
11
11
  webInterfaceName: string;
12
12
  policyUrl: string;
13
+ integrationVersion: IntegrationVersion;
13
14
  generationOptions: Partial<IAppGenerationOptions>;
14
15
  keitaroData?: Partial<IAppKeitaroData>;
15
16
  removeDataParams?: IRemoveDataParams;
16
17
  privacyPolicyParams?: IPrivacyPolicyParams;
18
+ offersStubParams?: IOffersStubParams;
17
19
  developerParams?: IDeveloperParams;
18
20
  domainParams: IDomainParams;
19
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.154",
3
+ "version": "1.2.156",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -35,10 +35,16 @@ export interface IFlashApp extends Document {
35
35
 
36
36
  removeDataParams?: IRemoveDataParams
37
37
  privacyPolicyParams?: IPrivacyPolicyParams
38
+ offersStubParams?: IOffersStubParams
38
39
  domainParams: IDomainParams
39
40
  developerParams: IDeveloperParams
40
41
  }
41
42
 
43
+ export interface IOffersStubParams {
44
+ offersEndpoint: string,
45
+ imagesEndpoint: string
46
+ }
47
+
42
48
  export interface IDomainParams {
43
49
  name: string,
44
50
  clouflareZone: string,
@@ -76,6 +82,7 @@ export interface IPrivacyPolicyParams {
76
82
  export enum IntegrationVersion {
77
83
  MVVM = "MVVM",
78
84
  POLICY = "POLICY",
85
+ OFFER_STUB = "OFFER_STUB"
79
86
  }
80
87
 
81
88
  export interface IntegrationAlterations {
@@ -258,6 +265,7 @@ export const FlashAppSchema = new Schema({
258
265
  },
259
266
  removeDataParams: Object,
260
267
  privacyPolicyParams: Object,
268
+ offersStubParams: Object,
261
269
  domainParams: Object
262
270
  })
263
271
 
@@ -1,4 +1,4 @@
1
- import { IAppGenerationOptions, IAppKeitaroData, IDeveloperParams, IDomainParams, IPrivacyPolicyParams, IRemoveDataParams } from "flash/flash-app"
1
+ import { IAppGenerationOptions, IAppKeitaroData, IDeveloperParams, IDomainParams, IOffersStubParams, IPrivacyPolicyParams, IRemoveDataParams, IntegrationVersion } from "flash/flash-app"
2
2
  import { PlugType } from "index"
3
3
 
4
4
  export interface IUpsertFlashAppRequest {
@@ -15,10 +15,13 @@ export interface IUpsertFlashAppRequest {
15
15
 
16
16
  policyUrl: string,
17
17
 
18
+ integrationVersion: IntegrationVersion,
19
+
18
20
  generationOptions: Partial<IAppGenerationOptions>
19
21
  keitaroData?: Partial<IAppKeitaroData>,
20
22
  removeDataParams?: IRemoveDataParams,
21
23
  privacyPolicyParams?: IPrivacyPolicyParams,
24
+ offersStubParams?: IOffersStubParams,
22
25
  developerParams?: IDeveloperParams,
23
26
  domainParams: IDomainParams,
24
27
  }