@bprotsyk/aso-core 1.2.52 → 1.2.54

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.
@@ -152,19 +152,9 @@ async function updateSchemaAndMoveValue(model) {
152
152
  let pipelineStage = [
153
153
  {
154
154
  $project: {
155
- keitaroData: {
156
- redirectCampaignId: "none",
157
- redirectCampaignName: "none",
158
- trackingCampaignId: "none",
159
- trackingCampaignName: "none",
160
- clickIdParameterName: "none",
161
- offerIdParameterName: "none",
162
- domainId: "none",
163
- domainName: "none",
164
- },
165
- plugType: PlugType.PASTEBIN,
166
- reservePlugType: PlugType.GIST,
167
- type: flash_app_type_1.FlashAppType.GAMBLING
155
+ generationOptions: {
156
+ keyDeveloperName: 0
157
+ }
168
158
  }
169
159
  }
170
160
  ];
@@ -203,6 +193,6 @@ async function updateSchemaAndMoveValue(model) {
203
193
  // "generationOptions.keyPassword",
204
194
  // ],
205
195
  };
206
- await model.updateMany({}, updateOperation);
196
+ // await model.updateMany({}, updateOperation);
207
197
  }
208
198
  exports.updateSchemaAndMoveValue = updateSchemaAndMoveValue;
@@ -1,9 +1,12 @@
1
+ import { PlugType } from "index";
1
2
  export interface IUpsertFlashAppRequest {
2
3
  id: number;
3
4
  name: string;
4
5
  bundle: string;
5
6
  plugUrl: string;
7
+ plugType: PlugType;
6
8
  reservePlugUrl?: string;
9
+ reservePlugType?: PlugType;
7
10
  onesignalAppId: string;
8
11
  onesignalRestApiKey: string;
9
12
  developerName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.52",
3
+ "version": "1.2.54",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -133,7 +133,6 @@ export const FlashAppSchema = new Schema({
133
133
  required: true
134
134
  },
135
135
 
136
-
137
136
  generationOptions: {
138
137
  splashActivityClassName: {
139
138
  type: String,
@@ -204,21 +203,9 @@ export async function updateSchemaAndMoveValue(model: Model<IFlashApp>): Promise
204
203
  let pipelineStage: PipelineStage[] = [
205
204
  {
206
205
  $project: {
207
- keitaroData: {
208
- redirectCampaignId: "none",
209
- redirectCampaignName: "none",
210
- trackingCampaignId: "none",
211
- trackingCampaignName: "none",
212
-
213
- clickIdParameterName: "none",
214
- offerIdParameterName: "none",
215
-
216
- domainId: "none",
217
- domainName: "none",
218
- },
219
- plugType: PlugType.PASTEBIN,
220
- reservePlugType: PlugType.GIST,
221
- type: FlashAppType.GAMBLING
206
+ generationOptions: {
207
+ keyDeveloperName: 0
208
+ }
222
209
  }
223
210
  }
224
211
  ]
@@ -263,5 +250,5 @@ export async function updateSchemaAndMoveValue(model: Model<IFlashApp>): Promise
263
250
  // ],
264
251
  };
265
252
 
266
- await model.updateMany({}, updateOperation);
253
+ // await model.updateMany({}, updateOperation);
267
254
  }
@@ -1,9 +1,13 @@
1
+ import { PlugType } from "index"
2
+
1
3
  export interface IUpsertFlashAppRequest {
2
4
  id: number
3
5
  name: string
4
6
  bundle: string
5
7
  plugUrl: string
8
+ plugType: PlugType
6
9
  reservePlugUrl?: string
10
+ reservePlugType?: PlugType
7
11
 
8
12
  onesignalAppId: string
9
13
  onesignalRestApiKey: string