@bprotsyk/aso-core 1.2.2 → 1.2.6

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.
@@ -51,22 +51,28 @@ export interface IAppGenerationOptions {
51
51
  keyPassword: string;
52
52
  }
53
53
  export declare const FlashAppSchema: Schema<any, Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
54
- name: string;
55
- email: string;
56
- enabled: boolean;
54
+ trackingUrl: string;
55
+ name?: string | undefined;
57
56
  id?: number | undefined;
58
- version?: number | undefined;
59
- trackingUrl?: string | undefined;
57
+ email?: string | undefined;
58
+ pushesEnabled?: boolean | undefined;
59
+ policyUrl?: string | undefined;
60
+ bundle?: string | undefined;
61
+ pastebinUrl?: string | undefined;
60
62
  onesignalAppId?: string | undefined;
61
63
  onesignalRestApiKey?: string | undefined;
62
- appsflyerEnabled?: boolean | undefined;
63
- appsflyerKey?: string | undefined;
64
- uidParameter?: string | undefined;
65
- geos?: string | undefined;
66
- privacyPolicyActivityClassName?: string | undefined;
67
- logicClassName?: string | undefined;
68
- appClassName?: string | undefined;
69
- paramsMapping?: any;
70
- configMapping?: any;
71
- bundle?: string | undefined;
64
+ generationOptions?: {
65
+ splashActivityClassName?: string | undefined;
66
+ mainActivityClassName?: string | undefined;
67
+ linkName?: string | undefined;
68
+ savedName?: string | undefined;
69
+ paranoidSeed?: number | undefined;
70
+ keyFileName?: string | undefined;
71
+ keyDeveloperName?: string | undefined;
72
+ keyDeveloperOrganization?: string | undefined;
73
+ keyCountryCode?: string | undefined;
74
+ keyCity?: string | undefined;
75
+ keyAlias?: string | undefined;
76
+ keyPassword?: string | undefined;
77
+ } | undefined;
72
78
  }>;
@@ -7,33 +7,42 @@ exports.FlashAppSchema = new mongoose_1.Schema({
7
7
  type: Number,
8
8
  unique: true
9
9
  },
10
- name: {
10
+ bundle: {
11
11
  type: String,
12
- default: ""
12
+ unique: true
13
13
  },
14
- trackingUrl: String,
15
- email: {
14
+ name: String,
15
+ trackingUrl: {
16
16
  type: String,
17
- default: ""
17
+ default: null
18
18
  },
19
- bundle: {
19
+ email: String,
20
+ pushesEnabled: Boolean,
21
+ pastebinUrl: {
20
22
  type: String,
21
- unique: false
23
+ unique: true
22
24
  },
23
- enabled: {
24
- type: Boolean,
25
- default: true
25
+ policyUrl: String,
26
+ onesignalAppId: {
27
+ type: String,
28
+ unique: true
29
+ },
30
+ onesignalRestApiKey: {
31
+ type: String,
32
+ unique: true
26
33
  },
27
- onesignalAppId: String,
28
- onesignalRestApiKey: String,
29
- appsflyerEnabled: Boolean,
30
- appsflyerKey: String,
31
- uidParameter: String,
32
- geos: String,
33
- privacyPolicyActivityClassName: String,
34
- logicClassName: String,
35
- appClassName: String,
36
- paramsMapping: Object,
37
- configMapping: Object,
38
- version: Number
34
+ generationOptions: {
35
+ splashActivityClassName: String,
36
+ mainActivityClassName: String,
37
+ linkName: String,
38
+ savedName: String,
39
+ paranoidSeed: Number,
40
+ keyFileName: String,
41
+ keyDeveloperName: String,
42
+ keyDeveloperOrganization: String,
43
+ keyCountryCode: String,
44
+ keyCity: String,
45
+ keyAlias: String,
46
+ keyPassword: String,
47
+ }
39
48
  });
package/lib/index.d.ts CHANGED
@@ -19,3 +19,4 @@ export { IFlashApp, FlashAppSchema } from "./flash/flash-app";
19
19
  export * as ASOConfigFetch from "./aso/usage-logs/aso-config-fetch-entry";
20
20
  export { IPanelUser, PanelUserAccessScope, PanelUserSchema } from "./panel/user";
21
21
  export { IAuthToken } from "./panel/auth";
22
+ export { IUpsertFlashAppRequest } from "./panel/flash/create-flash-app-request";
@@ -3,5 +3,6 @@ export interface IAuthToken {
3
3
  id: string;
4
4
  username: string;
5
5
  accessScopes: PanelUserAccessScope[];
6
+ token: string;
6
7
  expiresIn: string;
7
8
  }
@@ -0,0 +1,19 @@
1
+ export interface IUpsertFlashAppRequest {
2
+ id: number;
3
+ name: string;
4
+ pastebinUrl: string;
5
+ onesignalAppId: string;
6
+ onesignalRestApiKey: string;
7
+ splashActivityClassName: string;
8
+ mainActivityClassName: string;
9
+ linkName: string;
10
+ savedName: string;
11
+ paranoidSeed: number;
12
+ keyFileName: string;
13
+ keyDeveloperName: string;
14
+ keyDeveloperOrganization: string;
15
+ keyCountryCode: string;
16
+ keyCity: string;
17
+ keyAlias: string;
18
+ keyPassword: string;
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.2",
3
+ "version": "1.2.6",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -26,7 +26,6 @@ export interface IAppGenerationOptions {
26
26
 
27
27
  paranoidSeed: number
28
28
  keyFileName: string
29
-
30
29
  keyDeveloperName: string
31
30
  keyDeveloperOrganization: string
32
31
  keyCountryCode: string
@@ -40,40 +39,46 @@ export const FlashAppSchema = new Schema({
40
39
  type: Number,
41
40
  unique: true
42
41
  },
43
- name: {
42
+ bundle: {
44
43
  type: String,
45
- default: ""
44
+ unique: true
46
45
  },
47
- trackingUrl: String,
48
- email: {
46
+ name: String,
47
+ trackingUrl: {
49
48
  type: String,
50
- default: ""
49
+ default: null
51
50
  },
52
- bundle: {
51
+ email: String,
52
+
53
+ pushesEnabled: Boolean,
54
+ pastebinUrl: {
53
55
  type: String,
54
- unique: false
55
- },
56
- enabled: {
57
- type: Boolean,
58
- default: true
56
+ unique: true
59
57
  },
58
+ policyUrl: String,
60
59
 
61
- onesignalAppId: String,
62
- onesignalRestApiKey: String,
63
-
64
- appsflyerEnabled: Boolean,
65
- appsflyerKey: String,
66
-
67
- uidParameter: String,
68
-
69
- geos: String,
70
-
71
- privacyPolicyActivityClassName: String,
72
- logicClassName: String,
73
- appClassName: String,
60
+ onesignalAppId: {
61
+ type: String,
62
+ unique: true
63
+ },
64
+ onesignalRestApiKey: {
65
+ type: String,
66
+ unique: true
67
+ },
74
68
 
75
- paramsMapping: Object,
76
- configMapping: Object,
77
- version: Number
69
+ generationOptions: {
70
+ splashActivityClassName: String,
71
+ mainActivityClassName: String,
72
+ linkName: String,
73
+ savedName: String,
74
+ paranoidSeed: Number,
75
+ keyFileName: String,
76
+ keyDeveloperName: String,
77
+ keyDeveloperOrganization: String,
78
+ keyCountryCode: String,
79
+ keyCity: String,
80
+ keyAlias: String,
81
+ keyPassword: String,
82
+ }
78
83
  })
79
84
 
package/src/index.ts CHANGED
@@ -23,4 +23,5 @@ export { IFlashApp, FlashAppSchema } from "./flash/flash-app"
23
23
  export * as ASOConfigFetch from "./aso/usage-logs/aso-config-fetch-entry"
24
24
 
25
25
  export { IPanelUser, PanelUserAccessScope, PanelUserSchema } from "./panel/user"
26
- export { IAuthToken } from "./panel/auth"
26
+ export { IAuthToken } from "./panel/auth"
27
+ export { IUpsertFlashAppRequest } from "./panel/flash/create-flash-app-request"
package/src/panel/auth.ts CHANGED
@@ -4,5 +4,6 @@ export interface IAuthToken {
4
4
  id: string,
5
5
  username: string,
6
6
  accessScopes: PanelUserAccessScope[],
7
+ token: string,
7
8
  expiresIn: string
8
9
  }
@@ -0,0 +1,22 @@
1
+ export interface IUpsertFlashAppRequest {
2
+ id: number
3
+ name: string
4
+ pastebinUrl: string
5
+ onesignalAppId: string
6
+ onesignalRestApiKey: string
7
+
8
+ splashActivityClassName: string
9
+ mainActivityClassName: string
10
+ linkName: string,
11
+ savedName: string
12
+
13
+ paranoidSeed: number
14
+ keyFileName: string
15
+ keyDeveloperName: string
16
+ keyDeveloperOrganization: string
17
+ keyCountryCode: string
18
+ keyCity: string
19
+ keyAlias: string
20
+ keyPassword: string,
21
+ }
22
+