@bprotsyk/aso-core 1.2.56 → 1.2.58
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.js +49 -42
- package/package.json +1 -1
- package/src/flash/flash-app.ts +42 -35
package/lib/flash/flash-app.js
CHANGED
|
@@ -149,48 +149,55 @@ exports.FlashAppSchema = new mongoose_1.Schema({
|
|
|
149
149
|
});
|
|
150
150
|
// TODO app type (casino / fin)
|
|
151
151
|
async function updateSchemaAndMoveValue(model) {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
152
|
+
await model.syncIndexes();
|
|
153
|
+
// let pipelineStage: PipelineStage[] = [
|
|
154
|
+
// {
|
|
155
|
+
// // $set: {
|
|
156
|
+
// // city: "$employee_addr.city",
|
|
157
|
+
// // street: "$employee_addr.street",
|
|
158
|
+
// // apartment: "$employee_addr.apartment",
|
|
159
|
+
// // employee_addr: "$$REMOVE"
|
|
160
|
+
// // },
|
|
161
|
+
// $set: {
|
|
162
|
+
// "generationOptions.keyDeveloperName": "$$REMOVE",
|
|
163
|
+
// }
|
|
164
|
+
// }
|
|
165
|
+
// ]
|
|
166
|
+
// let aggregation = model.aggregate(pipelineStage)
|
|
167
|
+
// await aggregation.exec()
|
|
168
|
+
// const updateOperation: UpdateQuery<IFlashApp> = {
|
|
169
|
+
// $set: {
|
|
170
|
+
// pushesEnabled: true,
|
|
171
|
+
// keitaroData: {
|
|
172
|
+
// redirectCampaignId: "none",
|
|
173
|
+
// redirectCampaignName: "none",
|
|
174
|
+
// trackingCampaignId: "none",
|
|
175
|
+
// trackingCampaignName: "none",
|
|
176
|
+
// clickIdParameterName: "none",
|
|
177
|
+
// offerIdParameterName: "none",
|
|
178
|
+
// domainId: "none",
|
|
179
|
+
// domainName: "none",
|
|
180
|
+
// },
|
|
181
|
+
// plugUrl: "none",
|
|
182
|
+
// plugType: PlugType.PASTEBIN,
|
|
183
|
+
// reservePlugUrl: "none",
|
|
184
|
+
// reservePlugType: PlugType.GIST,
|
|
185
|
+
// developerName: "none",
|
|
186
|
+
// type: FlashAppType.GAMBLING
|
|
187
|
+
// },
|
|
188
|
+
// $addToSet
|
|
189
|
+
// $unset: [
|
|
190
|
+
// "pastebinUrl",
|
|
191
|
+
// "email",
|
|
192
|
+
// "generationOptions.keyFileName",
|
|
193
|
+
// "generationOptions.keyDeveloperName",
|
|
194
|
+
// "generationOptions.keyDeveloperOrganization",
|
|
195
|
+
// "generationOptions.keyCountryCode",
|
|
196
|
+
// "generationOptions.keyCity",
|
|
197
|
+
// "generationOptions.keyAlias",
|
|
198
|
+
// "generationOptions.keyPassword",
|
|
199
|
+
// ],
|
|
200
|
+
// };
|
|
194
201
|
// await model.updateMany({}, updateOperation);
|
|
195
202
|
}
|
|
196
203
|
exports.updateSchemaAndMoveValue = updateSchemaAndMoveValue;
|
package/package.json
CHANGED
package/src/flash/flash-app.ts
CHANGED
|
@@ -200,40 +200,47 @@ export const FlashAppSchema = new Schema({
|
|
|
200
200
|
})
|
|
201
201
|
// TODO app type (casino / fin)
|
|
202
202
|
export async function updateSchemaAndMoveValue(model: Model<IFlashApp>): Promise<void> {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
203
|
+
await model.syncIndexes()
|
|
204
|
+
// let pipelineStage: PipelineStage[] = [
|
|
205
|
+
// {
|
|
206
|
+
// // $set: {
|
|
207
|
+
// // city: "$employee_addr.city",
|
|
208
|
+
// // street: "$employee_addr.street",
|
|
209
|
+
// // apartment: "$employee_addr.apartment",
|
|
210
|
+
// // employee_addr: "$$REMOVE"
|
|
211
|
+
// // },
|
|
212
|
+
// $set: {
|
|
213
|
+
// "generationOptions.keyDeveloperName": "$$REMOVE",
|
|
214
|
+
// }
|
|
215
|
+
// }
|
|
216
|
+
// ]
|
|
217
|
+
|
|
218
|
+
// let aggregation = model.aggregate(pipelineStage)
|
|
219
|
+
|
|
220
|
+
// await aggregation.exec()
|
|
221
|
+
|
|
222
|
+
// const updateOperation: UpdateQuery<IFlashApp> = {
|
|
223
|
+
// $set: {
|
|
224
|
+
// pushesEnabled: true,
|
|
225
|
+
// keitaroData: {
|
|
226
|
+
// redirectCampaignId: "none",
|
|
227
|
+
// redirectCampaignName: "none",
|
|
228
|
+
// trackingCampaignId: "none",
|
|
229
|
+
// trackingCampaignName: "none",
|
|
230
|
+
|
|
231
|
+
// clickIdParameterName: "none",
|
|
232
|
+
// offerIdParameterName: "none",
|
|
233
|
+
|
|
234
|
+
// domainId: "none",
|
|
235
|
+
// domainName: "none",
|
|
236
|
+
// },
|
|
237
|
+
// plugUrl: "none",
|
|
238
|
+
// plugType: PlugType.PASTEBIN,
|
|
239
|
+
// reservePlugUrl: "none",
|
|
240
|
+
// reservePlugType: PlugType.GIST,
|
|
241
|
+
// developerName: "none",
|
|
242
|
+
// type: FlashAppType.GAMBLING
|
|
243
|
+
// },
|
|
237
244
|
// $addToSet
|
|
238
245
|
// $unset: [
|
|
239
246
|
// "pastebinUrl",
|
|
@@ -246,7 +253,7 @@ export async function updateSchemaAndMoveValue(model: Model<IFlashApp>): Promise
|
|
|
246
253
|
// "generationOptions.keyAlias",
|
|
247
254
|
// "generationOptions.keyPassword",
|
|
248
255
|
// ],
|
|
249
|
-
};
|
|
256
|
+
// };
|
|
250
257
|
|
|
251
258
|
// await model.updateMany({}, updateOperation);
|
|
252
259
|
}
|