@bprotsyk/aso-core 1.2.158 → 1.2.160
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 +12 -7
- package/lib/flash/flash-app.js +13 -8
- package/package.json +1 -1
- package/src/flash/flash-app.ts +19 -8
package/lib/flash/flash-app.d.ts
CHANGED
|
@@ -2,11 +2,6 @@ import { AlternativeLayoutType, AlternativeLogicType, AlternativeNavigation, Alt
|
|
|
2
2
|
import { FlashAppType } from "./flash-app-type";
|
|
3
3
|
import mongoose, { Document, Model } from "mongoose";
|
|
4
4
|
import { AlternativeFullscreen } from "flash/flash-app-integration";
|
|
5
|
-
export declare enum FlashAppPlugStatus {
|
|
6
|
-
DISABLED = 0,
|
|
7
|
-
TEST_MODE = 1,
|
|
8
|
-
ENABLED = 2
|
|
9
|
-
}
|
|
10
5
|
export interface IFlashApp extends Document {
|
|
11
6
|
id: number;
|
|
12
7
|
enabled: boolean;
|
|
@@ -28,6 +23,7 @@ export interface IFlashApp extends Document {
|
|
|
28
23
|
removeDataParams?: IRemoveDataParams;
|
|
29
24
|
privacyPolicyParams?: IPrivacyPolicyParams;
|
|
30
25
|
offersStubParams?: IOffersStubParams;
|
|
26
|
+
directParams?: IDirectParams;
|
|
31
27
|
domainParams: IDomainParams;
|
|
32
28
|
developerParams: IDeveloperParams;
|
|
33
29
|
}
|
|
@@ -39,6 +35,10 @@ export interface IDomainParams {
|
|
|
39
35
|
name: string;
|
|
40
36
|
clouflareZone: string;
|
|
41
37
|
}
|
|
38
|
+
export interface IDirectParams {
|
|
39
|
+
path: string;
|
|
40
|
+
response: string;
|
|
41
|
+
}
|
|
42
42
|
export interface IRemoveDataParams {
|
|
43
43
|
buttonText: string;
|
|
44
44
|
resultText: string;
|
|
@@ -65,7 +65,8 @@ export interface IPrivacyPolicyParams {
|
|
|
65
65
|
export declare enum IntegrationVersion {
|
|
66
66
|
MVVM = "MVVM",
|
|
67
67
|
POLICY = "POLICY",
|
|
68
|
-
OFFER_STUB = "OFFER_STUB"
|
|
68
|
+
OFFER_STUB = "OFFER_STUB",
|
|
69
|
+
DIRECT = "DIRECT"
|
|
69
70
|
}
|
|
70
71
|
export interface IntegrationAlterations {
|
|
71
72
|
networkTool: AlternativeNetworkTool;
|
|
@@ -125,7 +126,7 @@ export declare const FlashAppSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
125
126
|
removeDataParams?: any;
|
|
126
127
|
privacyPolicyParams?: any;
|
|
127
128
|
offersStubParams?: any;
|
|
128
|
-
|
|
129
|
+
directParams?: any;
|
|
129
130
|
policyUrl?: string | undefined;
|
|
130
131
|
linkPath?: string | undefined;
|
|
131
132
|
generationOptions?: {
|
|
@@ -148,5 +149,9 @@ export declare const FlashAppSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
148
149
|
clickIdParameterName?: string | undefined;
|
|
149
150
|
offerIdParameterName?: string | undefined;
|
|
150
151
|
} | undefined;
|
|
152
|
+
domainParams?: {
|
|
153
|
+
name?: string | undefined;
|
|
154
|
+
clouflareZone?: string | undefined;
|
|
155
|
+
} | undefined;
|
|
151
156
|
}>;
|
|
152
157
|
export declare function updateSchemaAndMoveValue(model: Model<IFlashApp>): Promise<void>;
|
package/lib/flash/flash-app.js
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateSchemaAndMoveValue = exports.FlashAppSchema = exports.PlugType = exports.IntegrationVersion =
|
|
3
|
+
exports.updateSchemaAndMoveValue = exports.FlashAppSchema = exports.PlugType = exports.IntegrationVersion = void 0;
|
|
4
4
|
const flash_app_type_1 = require("./flash-app-type");
|
|
5
5
|
const mongoose_1 = require("mongoose");
|
|
6
6
|
const util = require("util");
|
|
7
|
-
var FlashAppPlugStatus;
|
|
8
|
-
(function (FlashAppPlugStatus) {
|
|
9
|
-
FlashAppPlugStatus[FlashAppPlugStatus["DISABLED"] = 0] = "DISABLED";
|
|
10
|
-
FlashAppPlugStatus[FlashAppPlugStatus["TEST_MODE"] = 1] = "TEST_MODE";
|
|
11
|
-
FlashAppPlugStatus[FlashAppPlugStatus["ENABLED"] = 2] = "ENABLED";
|
|
12
|
-
})(FlashAppPlugStatus = exports.FlashAppPlugStatus || (exports.FlashAppPlugStatus = {}));
|
|
13
7
|
var IntegrationVersion;
|
|
14
8
|
(function (IntegrationVersion) {
|
|
15
9
|
IntegrationVersion["MVVM"] = "MVVM";
|
|
16
10
|
IntegrationVersion["POLICY"] = "POLICY";
|
|
17
11
|
IntegrationVersion["OFFER_STUB"] = "OFFER_STUB";
|
|
12
|
+
IntegrationVersion["DIRECT"] = "DIRECT";
|
|
18
13
|
})(IntegrationVersion = exports.IntegrationVersion || (exports.IntegrationVersion = {}));
|
|
19
14
|
var PlugType;
|
|
20
15
|
(function (PlugType) {
|
|
@@ -154,7 +149,17 @@ exports.FlashAppSchema = new mongoose_1.Schema({
|
|
|
154
149
|
removeDataParams: Object,
|
|
155
150
|
privacyPolicyParams: Object,
|
|
156
151
|
offersStubParams: Object,
|
|
157
|
-
|
|
152
|
+
directParams: Object,
|
|
153
|
+
domainParams: {
|
|
154
|
+
name: {
|
|
155
|
+
type: String,
|
|
156
|
+
unique: true
|
|
157
|
+
},
|
|
158
|
+
clouflareZone: {
|
|
159
|
+
type: String,
|
|
160
|
+
unique: true
|
|
161
|
+
},
|
|
162
|
+
}
|
|
158
163
|
});
|
|
159
164
|
// TODO app type (casino / fin)
|
|
160
165
|
async function updateSchemaAndMoveValue(model) {
|
package/package.json
CHANGED
package/src/flash/flash-app.ts
CHANGED
|
@@ -4,12 +4,6 @@ import mongoose, { Document, Model, model, PipelineStage, Schema, UpdateQuery, U
|
|
|
4
4
|
import { AlternativeFullscreen } from "flash/flash-app-integration";
|
|
5
5
|
const util = require("util")
|
|
6
6
|
|
|
7
|
-
export enum FlashAppPlugStatus {
|
|
8
|
-
DISABLED = 0,
|
|
9
|
-
TEST_MODE = 1,
|
|
10
|
-
ENABLED = 2
|
|
11
|
-
}
|
|
12
|
-
|
|
13
7
|
export interface IFlashApp extends Document {
|
|
14
8
|
id: number
|
|
15
9
|
enabled: boolean,
|
|
@@ -36,6 +30,7 @@ export interface IFlashApp extends Document {
|
|
|
36
30
|
removeDataParams?: IRemoveDataParams
|
|
37
31
|
privacyPolicyParams?: IPrivacyPolicyParams
|
|
38
32
|
offersStubParams?: IOffersStubParams
|
|
33
|
+
directParams?: IDirectParams,
|
|
39
34
|
domainParams: IDomainParams
|
|
40
35
|
developerParams: IDeveloperParams
|
|
41
36
|
}
|
|
@@ -50,6 +45,11 @@ export interface IDomainParams {
|
|
|
50
45
|
clouflareZone: string,
|
|
51
46
|
}
|
|
52
47
|
|
|
48
|
+
export interface IDirectParams {
|
|
49
|
+
path: string,
|
|
50
|
+
response: string,
|
|
51
|
+
}
|
|
52
|
+
|
|
53
53
|
export interface IRemoveDataParams {
|
|
54
54
|
buttonText: string,
|
|
55
55
|
resultText: string,
|
|
@@ -82,7 +82,8 @@ export interface IPrivacyPolicyParams {
|
|
|
82
82
|
export enum IntegrationVersion {
|
|
83
83
|
MVVM = "MVVM",
|
|
84
84
|
POLICY = "POLICY",
|
|
85
|
-
OFFER_STUB = "OFFER_STUB"
|
|
85
|
+
OFFER_STUB = "OFFER_STUB",
|
|
86
|
+
DIRECT = "DIRECT"
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
export interface IntegrationAlterations {
|
|
@@ -270,7 +271,17 @@ export const FlashAppSchema = new Schema({
|
|
|
270
271
|
removeDataParams: Object,
|
|
271
272
|
privacyPolicyParams: Object,
|
|
272
273
|
offersStubParams: Object,
|
|
273
|
-
|
|
274
|
+
directParams: Object,
|
|
275
|
+
domainParams: {
|
|
276
|
+
name: {
|
|
277
|
+
type: String,
|
|
278
|
+
unique: true
|
|
279
|
+
},
|
|
280
|
+
clouflareZone: {
|
|
281
|
+
type: String,
|
|
282
|
+
unique: true
|
|
283
|
+
},
|
|
284
|
+
}
|
|
274
285
|
})
|
|
275
286
|
|
|
276
287
|
// TODO app type (casino / fin)
|