@bprotsyk/aso-core 1.2.157 → 1.2.159

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.
@@ -32,8 +32,8 @@ export interface IFlashApp extends Document {
32
32
  developerParams: IDeveloperParams;
33
33
  }
34
34
  export interface IOffersStubParams {
35
- offersEndpoint: string;
36
- imagesEndpoint: string;
35
+ offersPath: string;
36
+ imagesPath: string;
37
37
  }
38
38
  export interface IDomainParams {
39
39
  name: string;
@@ -125,7 +125,6 @@ export declare const FlashAppSchema: mongoose.Schema<any, mongoose.Model<any, an
125
125
  removeDataParams?: any;
126
126
  privacyPolicyParams?: any;
127
127
  offersStubParams?: any;
128
- domainParams?: any;
129
128
  policyUrl?: string | undefined;
130
129
  linkPath?: string | undefined;
131
130
  generationOptions?: {
@@ -148,5 +147,9 @@ export declare const FlashAppSchema: mongoose.Schema<any, mongoose.Model<any, an
148
147
  clickIdParameterName?: string | undefined;
149
148
  offerIdParameterName?: string | undefined;
150
149
  } | undefined;
150
+ domainParams?: {
151
+ name?: string | undefined;
152
+ clouflareZone?: string | undefined;
153
+ } | undefined;
151
154
  }>;
152
155
  export declare function updateSchemaAndMoveValue(model: Model<IFlashApp>): Promise<void>;
@@ -154,7 +154,16 @@ exports.FlashAppSchema = new mongoose_1.Schema({
154
154
  removeDataParams: Object,
155
155
  privacyPolicyParams: Object,
156
156
  offersStubParams: Object,
157
- domainParams: Object
157
+ domainParams: {
158
+ name: {
159
+ type: String,
160
+ unique: true
161
+ },
162
+ clouflareZone: {
163
+ type: String,
164
+ unique: true
165
+ },
166
+ }
158
167
  });
159
168
  // TODO app type (casino / fin)
160
169
  async function updateSchemaAndMoveValue(model) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.157",
3
+ "version": "1.2.159",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -41,8 +41,8 @@ export interface IFlashApp extends Document {
41
41
  }
42
42
 
43
43
  export interface IOffersStubParams {
44
- offersEndpoint: string,
45
- imagesEndpoint: string
44
+ offersPath: string,
45
+ imagesPath: string
46
46
  }
47
47
 
48
48
  export interface IDomainParams {
@@ -270,7 +270,16 @@ export const FlashAppSchema = new Schema({
270
270
  removeDataParams: Object,
271
271
  privacyPolicyParams: Object,
272
272
  offersStubParams: Object,
273
- domainParams: Object
273
+ domainParams: {
274
+ name: {
275
+ type: String,
276
+ unique: true
277
+ },
278
+ clouflareZone: {
279
+ type: String,
280
+ unique: true
281
+ },
282
+ }
274
283
  })
275
284
 
276
285
  // TODO app type (casino / fin)