@bprotsyk/aso-core 1.2.115 → 1.2.117
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.
|
@@ -25,6 +25,11 @@ export declare enum AlternativeLayoutType {
|
|
|
25
25
|
BY_ID = "findViewById",
|
|
26
26
|
PROGRAMATICALLY = "Create in code"
|
|
27
27
|
}
|
|
28
|
+
export declare enum AlternativeFullscreen {
|
|
29
|
+
INSETS = "Insets",
|
|
30
|
+
FLAGS = "Flags",
|
|
31
|
+
IMMERSIVE = "Immersive"
|
|
32
|
+
}
|
|
28
33
|
export declare enum AlternativeSourceType {
|
|
29
34
|
FIREBASE_REALTIME_DATABASE = "Firebase Realtime DB",
|
|
30
35
|
GET_RETROFIT = "From link via Retrofit",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AlternativeOnActivityResult = exports.AlternativeOnBackPressed = exports.AlternativeSourceType = exports.AlternativeLayoutType = exports.AlternativeStorageType = exports.AlternativeNavigation = exports.AlternativeLogicType = exports.AlternativeNetworkTool = void 0;
|
|
3
|
+
exports.AlternativeOnActivityResult = exports.AlternativeOnBackPressed = exports.AlternativeSourceType = exports.AlternativeFullscreen = exports.AlternativeLayoutType = exports.AlternativeStorageType = exports.AlternativeNavigation = exports.AlternativeLogicType = exports.AlternativeNetworkTool = void 0;
|
|
4
4
|
var AlternativeNetworkTool;
|
|
5
5
|
(function (AlternativeNetworkTool) {
|
|
6
6
|
AlternativeNetworkTool["RETROFIT"] = "Retrofit";
|
|
@@ -33,6 +33,12 @@ var AlternativeLayoutType;
|
|
|
33
33
|
AlternativeLayoutType["BY_ID"] = "findViewById";
|
|
34
34
|
AlternativeLayoutType["PROGRAMATICALLY"] = "Create in code";
|
|
35
35
|
})(AlternativeLayoutType = exports.AlternativeLayoutType || (exports.AlternativeLayoutType = {}));
|
|
36
|
+
var AlternativeFullscreen;
|
|
37
|
+
(function (AlternativeFullscreen) {
|
|
38
|
+
AlternativeFullscreen["INSETS"] = "Insets";
|
|
39
|
+
AlternativeFullscreen["FLAGS"] = "Flags";
|
|
40
|
+
AlternativeFullscreen["IMMERSIVE"] = "Immersive";
|
|
41
|
+
})(AlternativeFullscreen = exports.AlternativeFullscreen || (exports.AlternativeFullscreen = {}));
|
|
36
42
|
var AlternativeSourceType;
|
|
37
43
|
(function (AlternativeSourceType) {
|
|
38
44
|
AlternativeSourceType["FIREBASE_REALTIME_DATABASE"] = "Firebase Realtime DB";
|
package/lib/flash/flash-app.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AlternativeLayoutType, AlternativeLogicType, AlternativeNavigation, AlternativeNetworkTool, AlternativeOnActivityResult, AlternativeOnBackPressed, AlternativeSourceType, AlternativeStorageType } from "index";
|
|
2
2
|
import { FlashAppType } from "./flash-app-type";
|
|
3
3
|
import mongoose, { Document, Model } from "mongoose";
|
|
4
|
+
import { AlternativeFullscreen } from "flash/flash-app-integration";
|
|
4
5
|
export declare enum FlashAppPlugStatus {
|
|
5
6
|
DISABLED = 0,
|
|
6
7
|
TEST_MODE = 1,
|
|
@@ -39,12 +40,14 @@ export interface IntegrationAlterations {
|
|
|
39
40
|
onBackPressed: AlternativeOnBackPressed;
|
|
40
41
|
onActivityResult: AlternativeOnActivityResult;
|
|
41
42
|
layoutType: AlternativeLayoutType;
|
|
43
|
+
fullscreen: AlternativeFullscreen;
|
|
42
44
|
}
|
|
43
45
|
export interface IAppGenerationOptions {
|
|
44
46
|
splashName: string;
|
|
45
47
|
webViewName: string;
|
|
46
48
|
linkName: string;
|
|
47
49
|
savedName: string;
|
|
50
|
+
paranoidSeed: number;
|
|
48
51
|
}
|
|
49
52
|
export interface IAppKeitaroData {
|
|
50
53
|
redirectCampaignId: number;
|
|
@@ -87,6 +90,7 @@ export declare const FlashAppSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
87
90
|
webViewName: string;
|
|
88
91
|
linkName: string;
|
|
89
92
|
savedName: string;
|
|
93
|
+
paranoidSeed: number;
|
|
90
94
|
} | undefined;
|
|
91
95
|
keitaroData?: {
|
|
92
96
|
redirectCampaignId: number;
|
package/lib/flash/flash-app.js
CHANGED
package/package.json
CHANGED
|
@@ -30,6 +30,12 @@ export enum AlternativeLayoutType {
|
|
|
30
30
|
PROGRAMATICALLY = "Create in code"
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
export enum AlternativeFullscreen {
|
|
34
|
+
INSETS = "Insets",
|
|
35
|
+
FLAGS = "Flags",
|
|
36
|
+
IMMERSIVE = "Immersive"
|
|
37
|
+
}
|
|
38
|
+
|
|
33
39
|
export enum AlternativeSourceType {
|
|
34
40
|
FIREBASE_REALTIME_DATABASE = "Firebase Realtime DB",
|
|
35
41
|
GET_RETROFIT = "From link via Retrofit",
|
package/src/flash/flash-app.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AlternativeLayoutType, AlternativeLogicType, AlternativeNavigation, AlternativeNetworkTool, AlternativeOnActivityResult, AlternativeOnBackPressed, AlternativeSourceType, AlternativeStorageType } from "index";
|
|
2
2
|
import { FlashAppType } from "./flash-app-type";
|
|
3
3
|
import mongoose, { Document, Model, model, PipelineStage, Schema, UpdateQuery, UpdateWithAggregationPipeline } from "mongoose";
|
|
4
|
+
import { AlternativeFullscreen } from "flash/flash-app-integration";
|
|
4
5
|
const util = require("util")
|
|
5
6
|
|
|
6
7
|
export enum FlashAppPlugStatus {
|
|
@@ -46,7 +47,8 @@ export interface IntegrationAlterations {
|
|
|
46
47
|
sourceType: AlternativeSourceType, // Source
|
|
47
48
|
onBackPressed: AlternativeOnBackPressed,
|
|
48
49
|
onActivityResult: AlternativeOnActivityResult,
|
|
49
|
-
layoutType: AlternativeLayoutType
|
|
50
|
+
layoutType: AlternativeLayoutType,
|
|
51
|
+
fullscreen: AlternativeFullscreen
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
export interface IAppGenerationOptions {
|
|
@@ -54,6 +56,7 @@ export interface IAppGenerationOptions {
|
|
|
54
56
|
webViewName: string
|
|
55
57
|
linkName:string,
|
|
56
58
|
savedName: string,
|
|
59
|
+
paranoidSeed: number
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
export interface IAppKeitaroData {
|
|
@@ -157,6 +160,11 @@ export const FlashAppSchema = new Schema({
|
|
|
157
160
|
type: String,
|
|
158
161
|
required: true
|
|
159
162
|
},
|
|
163
|
+
paranoidSeed: {
|
|
164
|
+
type: Number,
|
|
165
|
+
unique: true,
|
|
166
|
+
required: true
|
|
167
|
+
},
|
|
160
168
|
},
|
|
161
169
|
|
|
162
170
|
keitaroData: {
|