@bprotsyk/aso-core 1.2.36 → 1.2.39
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 +3 -27
- package/lib/flash/flash-app.js +15 -13
- package/package.json +1 -1
- package/src/flash/flash-app.ts +16 -14
package/lib/flash/flash-app.d.ts
CHANGED
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import { Model, Schema } from "mongoose";
|
|
1
|
+
import mongoose, { Model } from "mongoose";
|
|
26
2
|
export interface IFlashApp {
|
|
27
3
|
id: number;
|
|
28
4
|
name: string;
|
|
@@ -73,7 +49,7 @@ export interface IAppGenerationOptions {
|
|
|
73
49
|
keyAlias: string;
|
|
74
50
|
keyPassword: string;
|
|
75
51
|
}
|
|
76
|
-
export declare const FlashAppSchema: Schema<any, Model<any, any, any, any, any>, {}, {}, {}, {},
|
|
52
|
+
export declare const FlashAppSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
77
53
|
email: string;
|
|
78
54
|
id: number;
|
|
79
55
|
bundle: string;
|
|
@@ -99,7 +75,7 @@ export declare const FlashAppSchema: Schema<any, Model<any, any, any, any, any>,
|
|
|
99
75
|
keyPassword: string;
|
|
100
76
|
} | undefined;
|
|
101
77
|
}>;
|
|
102
|
-
export declare const FlashAppSchemaUpdated: Schema<any, Model<any, any, any, any, any>, {}, {}, {}, {},
|
|
78
|
+
export declare const FlashAppSchemaUpdated: mongoose.Schema<any, mongoose.Model<any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
103
79
|
id: number;
|
|
104
80
|
bundle: string;
|
|
105
81
|
trackingUrl: string;
|
package/lib/flash/flash-app.js
CHANGED
|
@@ -177,24 +177,26 @@ exports.FlashAppSchemaUpdated = new mongoose_1.Schema({
|
|
|
177
177
|
});
|
|
178
178
|
async function updateSchemaAndMoveValue(model) {
|
|
179
179
|
const aggregationPipeline = [
|
|
180
|
-
{
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
},
|
|
180
|
+
// {
|
|
181
|
+
// '$project': {
|
|
182
|
+
// "pastebinUrl": "REMOVE",
|
|
183
|
+
// "email": "REMOVE",
|
|
184
|
+
// "generationOptions.keyFileName": "REMOVE",
|
|
185
|
+
// "generationOptions.keyDeveloperName": "REMOVE",
|
|
186
|
+
// "generationOptions.keyDeveloperOrganization": "REMOVE",
|
|
187
|
+
// "generationOptions.keyCountryCode": "REMOVE",
|
|
188
|
+
// "generationOptions.keyCity": "REMOVE",
|
|
189
|
+
// "generationOptions.keyAlias": "REMOVE",
|
|
190
|
+
// "generationOptions.keyPassword": "REMOVE"
|
|
191
|
+
// }
|
|
192
|
+
// },
|
|
193
193
|
{
|
|
194
194
|
'$addFields': {
|
|
195
195
|
'plugUrl': `$pastebinUrl`,
|
|
196
196
|
'reservePlugUrl': null,
|
|
197
197
|
'developerName': '$email',
|
|
198
|
+
'developerOrganization': '$generationOptions.keyDeveloperOrganization',
|
|
199
|
+
'developerEmail': '$email',
|
|
198
200
|
}
|
|
199
201
|
}
|
|
200
202
|
];
|
package/package.json
CHANGED
package/src/flash/flash-app.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Model, model, Schema, UpdateQuery } from "mongoose";
|
|
1
|
+
import mongoose, { Model, model, Schema, UpdateQuery } from "mongoose";
|
|
2
2
|
|
|
3
3
|
// TODO add date of policy in case we need to recreate it
|
|
4
4
|
// and all data necessary. test
|
|
@@ -247,24 +247,26 @@ export const FlashAppSchemaUpdated = new Schema({
|
|
|
247
247
|
|
|
248
248
|
export async function updateSchemaAndMoveValue(model: Model<IFlashAppUpdated>): Promise<void> {
|
|
249
249
|
const aggregationPipeline = [
|
|
250
|
-
{
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
},
|
|
250
|
+
// {
|
|
251
|
+
// '$project': {
|
|
252
|
+
// "pastebinUrl": "REMOVE",
|
|
253
|
+
// "email": "REMOVE",
|
|
254
|
+
// "generationOptions.keyFileName": "REMOVE",
|
|
255
|
+
// "generationOptions.keyDeveloperName": "REMOVE",
|
|
256
|
+
// "generationOptions.keyDeveloperOrganization": "REMOVE",
|
|
257
|
+
// "generationOptions.keyCountryCode": "REMOVE",
|
|
258
|
+
// "generationOptions.keyCity": "REMOVE",
|
|
259
|
+
// "generationOptions.keyAlias": "REMOVE",
|
|
260
|
+
// "generationOptions.keyPassword": "REMOVE"
|
|
261
|
+
// }
|
|
262
|
+
// },
|
|
263
263
|
{
|
|
264
264
|
'$addFields': {
|
|
265
265
|
'plugUrl': `$pastebinUrl`,
|
|
266
266
|
'reservePlugUrl': null,
|
|
267
267
|
'developerName': '$email',
|
|
268
|
+
'developerOrganization': '$generationOptions.keyDeveloperOrganization',
|
|
269
|
+
'developerEmail': '$email',
|
|
268
270
|
}
|
|
269
271
|
}
|
|
270
272
|
];
|