@bprotsyk/aso-core 1.2.3 → 1.2.7
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/flash/flash-app.d.ts +24 -18
- package/lib/flash/flash-app.js +73 -23
- package/lib/index.d.ts +1 -0
- package/lib/panel/flash/create-flash-app-request.d.ts +19 -0
- package/lib/panel/flash/create-flash-app-request.js +2 -0
- package/package.json +1 -1
- package/src/flash/flash-app.ts +75 -29
- package/src/index.ts +2 -1
- package/src/panel/flash/create-flash-app-request.ts +22 -0
package/lib/flash/flash-app.d.ts
CHANGED
|
@@ -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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
54
|
+
id: number;
|
|
55
|
+
bundle: string;
|
|
56
|
+
trackingUrl: string;
|
|
57
|
+
pastebinUrl: string;
|
|
58
|
+
onesignalAppId: string;
|
|
59
|
+
onesignalRestApiKey: string;
|
|
60
|
+
name?: string | undefined;
|
|
61
|
+
email?: string | undefined;
|
|
62
|
+
pushesEnabled?: boolean | undefined;
|
|
63
|
+
policyUrl?: string | undefined;
|
|
64
|
+
generationOptions?: {
|
|
65
|
+
splashActivityClassName: string;
|
|
66
|
+
mainActivityClassName: string;
|
|
67
|
+
linkName: string;
|
|
68
|
+
savedName: string;
|
|
69
|
+
paranoidSeed: number;
|
|
70
|
+
keyFileName: string;
|
|
71
|
+
keyDeveloperName: string;
|
|
72
|
+
keyDeveloperOrganization: string;
|
|
73
|
+
keyCountryCode: string;
|
|
74
|
+
keyCity: string;
|
|
75
|
+
keyAlias: string;
|
|
76
|
+
keyPassword: string;
|
|
77
|
+
} | undefined;
|
|
72
78
|
}>;
|
package/lib/flash/flash-app.js
CHANGED
|
@@ -5,35 +5,85 @@ const mongoose_1 = require("mongoose");
|
|
|
5
5
|
exports.FlashAppSchema = new mongoose_1.Schema({
|
|
6
6
|
id: {
|
|
7
7
|
type: Number,
|
|
8
|
-
unique: true
|
|
8
|
+
unique: true,
|
|
9
|
+
required: true
|
|
9
10
|
},
|
|
10
|
-
|
|
11
|
+
bundle: {
|
|
11
12
|
type: String,
|
|
12
|
-
|
|
13
|
+
unique: true,
|
|
14
|
+
required: true
|
|
13
15
|
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
name: String,
|
|
17
|
+
trackingUrl: {
|
|
16
18
|
type: String,
|
|
17
|
-
default:
|
|
19
|
+
default: null
|
|
18
20
|
},
|
|
19
|
-
|
|
21
|
+
email: String,
|
|
22
|
+
pushesEnabled: Boolean,
|
|
23
|
+
pastebinUrl: {
|
|
20
24
|
type: String,
|
|
21
|
-
unique:
|
|
25
|
+
unique: true,
|
|
26
|
+
required: true
|
|
22
27
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
policyUrl: String,
|
|
29
|
+
onesignalAppId: {
|
|
30
|
+
type: String,
|
|
31
|
+
unique: true,
|
|
32
|
+
required: true
|
|
33
|
+
},
|
|
34
|
+
onesignalRestApiKey: {
|
|
35
|
+
type: String,
|
|
36
|
+
unique: true,
|
|
37
|
+
required: true
|
|
26
38
|
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
generationOptions: {
|
|
40
|
+
splashActivityClassName: {
|
|
41
|
+
type: String,
|
|
42
|
+
required: true
|
|
43
|
+
},
|
|
44
|
+
mainActivityClassName: {
|
|
45
|
+
type: String,
|
|
46
|
+
required: true
|
|
47
|
+
},
|
|
48
|
+
linkName: {
|
|
49
|
+
type: String,
|
|
50
|
+
required: true
|
|
51
|
+
},
|
|
52
|
+
savedName: {
|
|
53
|
+
type: String,
|
|
54
|
+
required: true
|
|
55
|
+
},
|
|
56
|
+
paranoidSeed: {
|
|
57
|
+
type: Number,
|
|
58
|
+
required: true
|
|
59
|
+
},
|
|
60
|
+
keyFileName: {
|
|
61
|
+
type: String,
|
|
62
|
+
required: true
|
|
63
|
+
},
|
|
64
|
+
keyDeveloperName: {
|
|
65
|
+
type: String,
|
|
66
|
+
required: true
|
|
67
|
+
},
|
|
68
|
+
keyDeveloperOrganization: {
|
|
69
|
+
type: String,
|
|
70
|
+
required: true
|
|
71
|
+
},
|
|
72
|
+
keyCountryCode: {
|
|
73
|
+
type: String,
|
|
74
|
+
required: true
|
|
75
|
+
},
|
|
76
|
+
keyCity: {
|
|
77
|
+
type: String,
|
|
78
|
+
required: true
|
|
79
|
+
},
|
|
80
|
+
keyAlias: {
|
|
81
|
+
type: String,
|
|
82
|
+
required: true
|
|
83
|
+
},
|
|
84
|
+
keyPassword: {
|
|
85
|
+
type: String,
|
|
86
|
+
required: true
|
|
87
|
+
}
|
|
88
|
+
}
|
|
39
89
|
});
|
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";
|
|
@@ -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
|
+
}
|
package/package.json
CHANGED
package/src/flash/flash-app.ts
CHANGED
|
@@ -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
|
|
@@ -38,42 +37,89 @@ export interface IAppGenerationOptions {
|
|
|
38
37
|
export const FlashAppSchema = new Schema({
|
|
39
38
|
id: {
|
|
40
39
|
type: Number,
|
|
41
|
-
unique: true
|
|
40
|
+
unique: true,
|
|
41
|
+
required: true
|
|
42
42
|
},
|
|
43
|
-
|
|
43
|
+
bundle: {
|
|
44
44
|
type: String,
|
|
45
|
-
|
|
45
|
+
unique: true,
|
|
46
|
+
required: true
|
|
46
47
|
},
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
name: String,
|
|
49
|
+
trackingUrl: {
|
|
49
50
|
type: String,
|
|
50
|
-
default:
|
|
51
|
+
default: null
|
|
51
52
|
},
|
|
52
|
-
|
|
53
|
+
email: String,
|
|
54
|
+
|
|
55
|
+
pushesEnabled: Boolean,
|
|
56
|
+
pastebinUrl: {
|
|
53
57
|
type: String,
|
|
54
|
-
unique:
|
|
58
|
+
unique: true,
|
|
59
|
+
required: true
|
|
55
60
|
},
|
|
56
|
-
|
|
57
|
-
type: Boolean,
|
|
58
|
-
default: true
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
onesignalAppId: String,
|
|
62
|
-
onesignalRestApiKey: String,
|
|
63
|
-
|
|
64
|
-
appsflyerEnabled: Boolean,
|
|
65
|
-
appsflyerKey: String,
|
|
61
|
+
policyUrl: String,
|
|
66
62
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
63
|
+
onesignalAppId: {
|
|
64
|
+
type: String,
|
|
65
|
+
unique: true,
|
|
66
|
+
required: true
|
|
67
|
+
},
|
|
68
|
+
onesignalRestApiKey: {
|
|
69
|
+
type: String,
|
|
70
|
+
unique: true,
|
|
71
|
+
required: true
|
|
72
|
+
},
|
|
74
73
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
generationOptions: {
|
|
75
|
+
splashActivityClassName: {
|
|
76
|
+
type: String,
|
|
77
|
+
required: true
|
|
78
|
+
},
|
|
79
|
+
mainActivityClassName: {
|
|
80
|
+
type: String,
|
|
81
|
+
required: true
|
|
82
|
+
},
|
|
83
|
+
linkName: {
|
|
84
|
+
type: String,
|
|
85
|
+
required: true
|
|
86
|
+
},
|
|
87
|
+
savedName: {
|
|
88
|
+
type: String,
|
|
89
|
+
required: true
|
|
90
|
+
},
|
|
91
|
+
paranoidSeed: {
|
|
92
|
+
type: Number,
|
|
93
|
+
required: true
|
|
94
|
+
},
|
|
95
|
+
keyFileName: {
|
|
96
|
+
type: String,
|
|
97
|
+
required: true
|
|
98
|
+
},
|
|
99
|
+
keyDeveloperName: {
|
|
100
|
+
type: String,
|
|
101
|
+
required: true
|
|
102
|
+
},
|
|
103
|
+
keyDeveloperOrganization: {
|
|
104
|
+
type: String,
|
|
105
|
+
required: true
|
|
106
|
+
},
|
|
107
|
+
keyCountryCode: {
|
|
108
|
+
type: String,
|
|
109
|
+
required: true
|
|
110
|
+
},
|
|
111
|
+
keyCity: {
|
|
112
|
+
type: String,
|
|
113
|
+
required: true
|
|
114
|
+
},
|
|
115
|
+
keyAlias: {
|
|
116
|
+
type: String,
|
|
117
|
+
required: true
|
|
118
|
+
},
|
|
119
|
+
keyPassword: {
|
|
120
|
+
type: String,
|
|
121
|
+
required: true
|
|
122
|
+
}
|
|
123
|
+
}
|
|
78
124
|
})
|
|
79
125
|
|
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"
|
|
@@ -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
|
+
|