@bprotsyk/aso-core 2.0.48 → 2.0.49

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
@@ -157,7 +157,6 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
157
157
  trackingUrl: string;
158
158
  geos: string;
159
159
  integrationVersion: string;
160
- platforms: any[];
161
160
  name?: string | undefined;
162
161
  webInterfaceName?: string | undefined;
163
162
  pushesEnabled?: boolean | undefined;
@@ -169,6 +168,7 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
169
168
  bannerParams?: any;
170
169
  directParams?: any;
171
170
  remoteServerParams?: any;
171
+ platforms?: any;
172
172
  policyUrl?: string | undefined;
173
173
  onesignalAppId?: string | undefined;
174
174
  onesignalRestApiKey?: string | undefined;
package/lib/app/app.js CHANGED
@@ -180,7 +180,7 @@ exports.AppSchema = new mongoose_1.Schema({
180
180
  type: String,
181
181
  },
182
182
  },
183
- platforms: { type: [Object] }
183
+ platforms: Object
184
184
  });
185
185
  // TODO app type (casino / fin)
186
186
  async function updateSchemaAndMoveValue(model) {
@@ -21,7 +21,9 @@ export interface IUpsertAppRequest {
21
21
  domainParams: IDomainParams;
22
22
  directParams?: IDirectParams;
23
23
  externalParams?: IExternalParams;
24
- platforms: IPlatformParams[];
24
+ platforms: {
25
+ [key: string]: IPlatformParams;
26
+ };
25
27
  }
26
28
  export interface IUpsertAppResponse {
27
29
  data: IUpsertAppRequest;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "2.0.48",
3
+ "version": "2.0.49",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
package/src/app/app.ts CHANGED
@@ -334,8 +334,7 @@ export const AppSchema = new Schema({
334
334
  type: String,
335
335
  },
336
336
  },
337
- platforms: { type: [Object] }
338
-
337
+ platforms: Object
339
338
  })
340
339
 
341
340
  // TODO app type (casino / fin)
@@ -12,11 +12,11 @@ export interface IUpsertAppRequest {
12
12
 
13
13
  // onesignalAppId: string
14
14
  // onesignalRestApiKey: string
15
-
15
+
16
16
  policyUrl?: string,
17
-
17
+
18
18
  integrationVersion?: IntegrationVersion,
19
-
19
+
20
20
  webInterfaceName?: string,
21
21
  generationOptions?: Partial<IAppGenerationOptions>
22
22
  keitaroData?: Partial<IAppKeitaroData>,
@@ -28,15 +28,14 @@ export interface IUpsertAppRequest {
28
28
  remoteServerParams?: IRemoteServerParams,
29
29
  domainParams: IDomainParams,
30
30
  directParams?: IDirectParams,
31
- externalParams?:IExternalParams,
32
- platforms: IPlatformParams[],
31
+ externalParams?: IExternalParams,
32
+ platforms: { [key: string]: IPlatformParams },
33
33
  }
34
34
 
35
-
36
35
  export interface IUpsertAppResponse {
37
36
  data: IUpsertAppRequest,
38
37
  linkName: string,
39
38
  archive: string,
40
- externalParams?:IExternalParams,
39
+ externalParams?: IExternalParams,
41
40
  }
42
41