@bprotsyk/aso-core 1.2.29 → 1.2.31

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.
@@ -212,17 +212,17 @@ async function updateSchemaAndMoveValue(model) {
212
212
  developerEmail: '$email',
213
213
  developerOrganization: '$generationOptions.keyDeveloperOrganization',
214
214
  },
215
- $unset: {
216
- 'email': true,
217
- 'pastebinUrl': true,
218
- 'generationOptions.keyFileName': true,
219
- 'generationOptions.keyDeveloperName': true,
220
- 'generationOptions.keyDeveloperOrganization': true,
221
- 'generationOptions.keyCountryCode': true,
222
- 'generationOptions.keyCity': true,
223
- 'generationOptions.keyAlias': 0,
224
- 'generationOptions.keyPassword': 0
225
- }
215
+ $unset: [
216
+ 'email',
217
+ 'pastebinUrl',
218
+ 'generationOptions.keyFileName',
219
+ 'generationOptions.keyDeveloperName',
220
+ 'generationOptions.keyDeveloperOrganization',
221
+ 'generationOptions.keyCountryCode',
222
+ 'generationOptions.keyCity',
223
+ 'generationOptions.keyAlias',
224
+ 'generationOptions.keyPassword',
225
+ ]
226
226
  };
227
227
  await model.updateMany({}, [
228
228
  ...aggregationPipeline,
@@ -230,3 +230,4 @@ async function updateSchemaAndMoveValue(model) {
230
230
  ]);
231
231
  }
232
232
  exports.updateSchemaAndMoveValue = updateSchemaAndMoveValue;
233
+ ``;
@@ -1,25 +1,25 @@
1
1
  export interface IUpsertFlashAppRequest {
2
2
  id: number;
3
- bundle: string;
4
3
  name: string;
5
- pastebinUrl: string;
4
+ trackingUrl?: string;
5
+ bundle: string;
6
+ pushesEnabled?: boolean;
7
+ plugUrl: string;
8
+ reservePlugUrl?: string;
9
+ policyUrl?: string;
6
10
  onesignalAppId: string;
7
11
  onesignalRestApiKey: string;
12
+ developerName: string;
13
+ developerEmail: string;
14
+ developerOrganization: string;
15
+ generationOptions: IAppGenerationOptions;
16
+ }
17
+ export interface IAppGenerationOptions {
8
18
  splashActivityClassName: string;
9
19
  mainActivityClassName: string;
10
20
  linkName: string;
11
21
  savedName: string;
12
22
  paranoidSeed: number;
13
- keyFileName: string;
14
- keyDeveloperName: string;
15
- keyDeveloperOrganization: string;
16
- keyCountryCode: string;
17
- keyCity: string;
18
- keyAlias: string;
19
- keyPassword: string;
20
- email?: string;
21
- trackingUrl?: string;
22
- pushesEnabled?: boolean;
23
23
  }
24
24
  export interface IUpsertFlashAppResponse {
25
25
  data: IUpsertFlashAppRequest;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.29",
3
+ "version": "1.2.31",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -283,21 +283,21 @@ export async function updateSchemaAndMoveValue(model: Model<IFlashAppUpdated>):
283
283
  developerEmail: '$email',
284
284
  developerOrganization: '$generationOptions.keyDeveloperOrganization',
285
285
  },
286
- $unset: {
287
- 'email': true,
288
- 'pastebinUrl': true,
289
- 'generationOptions.keyFileName': true,
290
- 'generationOptions.keyDeveloperName': true,
291
- 'generationOptions.keyDeveloperOrganization': true,
292
- 'generationOptions.keyCountryCode': true,
293
- 'generationOptions.keyCity': true,
294
- 'generationOptions.keyAlias': 0,
295
- 'generationOptions.keyPassword': 0
296
- }
286
+ $unset: [
287
+ 'email',
288
+ 'pastebinUrl',
289
+ 'generationOptions.keyFileName',
290
+ 'generationOptions.keyDeveloperName',
291
+ 'generationOptions.keyDeveloperOrganization',
292
+ 'generationOptions.keyCountryCode',
293
+ 'generationOptions.keyCity',
294
+ 'generationOptions.keyAlias',
295
+ 'generationOptions.keyPassword',
296
+ ]
297
297
  };
298
298
 
299
299
  await model.updateMany({}, [
300
300
  ...aggregationPipeline,
301
301
  updateOperation
302
302
  ]);
303
- }
303
+ }``
@@ -1,28 +1,29 @@
1
1
  export interface IUpsertFlashAppRequest {
2
2
  id: number
3
- bundle: string
4
3
  name: string
5
- pastebinUrl: string
4
+ trackingUrl?: string
5
+ bundle: string
6
+
7
+ pushesEnabled?: boolean
8
+ plugUrl: string
9
+ reservePlugUrl?: string
10
+ policyUrl?: string
11
+
6
12
  onesignalAppId: string
7
13
  onesignalRestApiKey: string
8
14
 
15
+ developerName: string
16
+ developerEmail: string
17
+ developerOrganization: string
18
+ generationOptions: IAppGenerationOptions
19
+ }
20
+
21
+ export interface IAppGenerationOptions {
9
22
  splashActivityClassName: string
10
23
  mainActivityClassName: string
11
- linkName: string,
24
+ linkName: string
12
25
  savedName: string
13
-
14
26
  paranoidSeed: number
15
- keyFileName: string
16
- keyDeveloperName: string
17
- keyDeveloperOrganization: string
18
- keyCountryCode: string
19
- keyCity: string
20
- keyAlias: string
21
- keyPassword: string,
22
-
23
- email?: string,
24
- trackingUrl?: string
25
- pushesEnabled?: boolean
26
27
  }
27
28
 
28
29
  export interface IUpsertFlashAppResponse {