@bprotsyk/aso-core 2.1.97 → 2.1.99
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/app/app.d.ts +20 -0
- package/lib/app/app.js +18 -1
- package/lib/general/domain.d.ts +3 -3
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/package.json +1 -1
- package/src/app/app.ts +25 -0
- package/src/index.ts +1 -1
package/lib/app/app.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface IApp extends Document {
|
|
|
9
9
|
pushesEnabled?: boolean;
|
|
10
10
|
policyUrl?: string;
|
|
11
11
|
type: AppType;
|
|
12
|
+
status: AppStatus;
|
|
12
13
|
geo: string[];
|
|
13
14
|
onesignalAppId: string;
|
|
14
15
|
onesignalRestApiKey: string;
|
|
@@ -114,6 +115,13 @@ export interface IBannerParams {
|
|
|
114
115
|
linkParam: string;
|
|
115
116
|
showStubOnError?: boolean;
|
|
116
117
|
}
|
|
118
|
+
export declare enum AppStatus {
|
|
119
|
+
INACTIVE = "INACTIVE",
|
|
120
|
+
PUBLISHED = "PUBLISHED",
|
|
121
|
+
MODERATION = "ACTIVE",
|
|
122
|
+
REMOVED = "REMOVED",
|
|
123
|
+
ARCHIVED = "ARCHIVED"
|
|
124
|
+
}
|
|
117
125
|
export interface IRemoveDataParams {
|
|
118
126
|
buttonText: string;
|
|
119
127
|
resultText: string;
|
|
@@ -124,6 +132,12 @@ export interface IRemoveDataParams {
|
|
|
124
132
|
callbackFunctionName: string;
|
|
125
133
|
toSplashAfterSuccess: boolean;
|
|
126
134
|
}
|
|
135
|
+
export interface IRemoveInfo {
|
|
136
|
+
reason: string;
|
|
137
|
+
date: number;
|
|
138
|
+
status: string;
|
|
139
|
+
images: string[];
|
|
140
|
+
}
|
|
127
141
|
export interface IPrivacyPolicyParams {
|
|
128
142
|
showButtonQuery: string;
|
|
129
143
|
button?: {
|
|
@@ -167,9 +181,11 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
|
|
|
167
181
|
proxied: boolean;
|
|
168
182
|
ech: boolean;
|
|
169
183
|
imageFormat: string;
|
|
184
|
+
status: string;
|
|
170
185
|
bundle: string;
|
|
171
186
|
trackingUrl: string;
|
|
172
187
|
integrationVersion: string;
|
|
188
|
+
removeInfo: any;
|
|
173
189
|
name?: string | null | undefined;
|
|
174
190
|
pushesEnabled?: boolean | null | undefined;
|
|
175
191
|
removeDataParams?: any;
|
|
@@ -206,9 +222,11 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
|
|
|
206
222
|
proxied: boolean;
|
|
207
223
|
ech: boolean;
|
|
208
224
|
imageFormat: string;
|
|
225
|
+
status: string;
|
|
209
226
|
bundle: string;
|
|
210
227
|
trackingUrl: string;
|
|
211
228
|
integrationVersion: string;
|
|
229
|
+
removeInfo: any;
|
|
212
230
|
name?: string | null | undefined;
|
|
213
231
|
pushesEnabled?: boolean | null | undefined;
|
|
214
232
|
removeDataParams?: any;
|
|
@@ -245,9 +263,11 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
|
|
|
245
263
|
proxied: boolean;
|
|
246
264
|
ech: boolean;
|
|
247
265
|
imageFormat: string;
|
|
266
|
+
status: string;
|
|
248
267
|
bundle: string;
|
|
249
268
|
trackingUrl: string;
|
|
250
269
|
integrationVersion: string;
|
|
270
|
+
removeInfo: any;
|
|
251
271
|
name?: string | null | undefined;
|
|
252
272
|
pushesEnabled?: boolean | null | undefined;
|
|
253
273
|
removeDataParams?: any;
|
package/lib/app/app.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AppSchema = exports.PlugType = exports.IntegrationVersion = exports.getPlatformName = exports.EDirectType = exports.EPlatform = exports.EImageFormat = void 0;
|
|
3
|
+
exports.AppSchema = exports.PlugType = exports.IntegrationVersion = exports.AppStatus = exports.getPlatformName = exports.EDirectType = exports.EPlatform = exports.EImageFormat = void 0;
|
|
4
4
|
const app_type_1 = require("./app-type");
|
|
5
5
|
const mongoose_1 = require("mongoose");
|
|
6
6
|
const util = require("util");
|
|
@@ -49,6 +49,14 @@ const getPlatformName = (platform) => {
|
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
exports.getPlatformName = getPlatformName;
|
|
52
|
+
var AppStatus;
|
|
53
|
+
(function (AppStatus) {
|
|
54
|
+
AppStatus["INACTIVE"] = "INACTIVE";
|
|
55
|
+
AppStatus["PUBLISHED"] = "PUBLISHED";
|
|
56
|
+
AppStatus["MODERATION"] = "ACTIVE";
|
|
57
|
+
AppStatus["REMOVED"] = "REMOVED";
|
|
58
|
+
AppStatus["ARCHIVED"] = "ARCHIVED";
|
|
59
|
+
})(AppStatus = exports.AppStatus || (exports.AppStatus = {}));
|
|
52
60
|
var IntegrationVersion;
|
|
53
61
|
(function (IntegrationVersion) {
|
|
54
62
|
IntegrationVersion["NONE"] = "MVVM";
|
|
@@ -90,6 +98,11 @@ exports.AppSchema = new mongoose_1.Schema({
|
|
|
90
98
|
enum: EImageFormat,
|
|
91
99
|
default: EImageFormat.PNG
|
|
92
100
|
},
|
|
101
|
+
status: {
|
|
102
|
+
type: String,
|
|
103
|
+
enum: AppStatus,
|
|
104
|
+
default: AppStatus.INACTIVE
|
|
105
|
+
},
|
|
93
106
|
bundle: {
|
|
94
107
|
type: String,
|
|
95
108
|
unique: true,
|
|
@@ -166,6 +179,10 @@ exports.AppSchema = new mongoose_1.Schema({
|
|
|
166
179
|
},
|
|
167
180
|
},
|
|
168
181
|
removeDataParams: Object,
|
|
182
|
+
removeInfo: {
|
|
183
|
+
type: Object,
|
|
184
|
+
default: null
|
|
185
|
+
},
|
|
169
186
|
privacyPolicyParams: Object,
|
|
170
187
|
offersStubParams: Object,
|
|
171
188
|
bannerParams: Object,
|
package/lib/general/domain.d.ts
CHANGED
|
@@ -91,9 +91,9 @@ export declare const DomainSchema: Schema<any, Model<any, any, any, any, any, an
|
|
|
91
91
|
caption?: string | null | undefined;
|
|
92
92
|
title?: string | null | undefined;
|
|
93
93
|
proxied?: boolean | null | undefined;
|
|
94
|
+
status?: string | null | undefined;
|
|
94
95
|
ip?: string | null | undefined;
|
|
95
96
|
namecheapId?: string | null | undefined;
|
|
96
|
-
status?: string | null | undefined;
|
|
97
97
|
isUpdating?: boolean | null | undefined;
|
|
98
98
|
cloudflareStatus?: string | null | undefined;
|
|
99
99
|
paused?: boolean | null | undefined;
|
|
@@ -118,9 +118,9 @@ export declare const DomainSchema: Schema<any, Model<any, any, any, any, any, an
|
|
|
118
118
|
caption?: string | null | undefined;
|
|
119
119
|
title?: string | null | undefined;
|
|
120
120
|
proxied?: boolean | null | undefined;
|
|
121
|
+
status?: string | null | undefined;
|
|
121
122
|
ip?: string | null | undefined;
|
|
122
123
|
namecheapId?: string | null | undefined;
|
|
123
|
-
status?: string | null | undefined;
|
|
124
124
|
isUpdating?: boolean | null | undefined;
|
|
125
125
|
cloudflareStatus?: string | null | undefined;
|
|
126
126
|
paused?: boolean | null | undefined;
|
|
@@ -145,9 +145,9 @@ export declare const DomainSchema: Schema<any, Model<any, any, any, any, any, an
|
|
|
145
145
|
caption?: string | null | undefined;
|
|
146
146
|
title?: string | null | undefined;
|
|
147
147
|
proxied?: boolean | null | undefined;
|
|
148
|
+
status?: string | null | undefined;
|
|
148
149
|
ip?: string | null | undefined;
|
|
149
150
|
namecheapId?: string | null | undefined;
|
|
150
|
-
status?: string | null | undefined;
|
|
151
151
|
isUpdating?: boolean | null | undefined;
|
|
152
152
|
cloudflareStatus?: string | null | undefined;
|
|
153
153
|
paused?: boolean | null | undefined;
|
package/lib/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { IPush } from "./general/push";
|
|
|
2
2
|
export { IOffer, IPartner, IOfferType } from "./offers/offer";
|
|
3
3
|
export { IOffersSection, OffersSectionSchema, DefaultSectionId } from "./offers/section";
|
|
4
4
|
export { IAppOffersSection, ISectionsList, SectionsListSchema, IOfferState } from "./offers/list";
|
|
5
|
-
export { IAdjustEventIds, IntegrationVersion, IApp, AppSchema, PlugType, IAppKeitaroData, IExternalParams, IPlatformParams, EPlatform } from "./app/app";
|
|
5
|
+
export { IAdjustEventIds, IntegrationVersion, IApp, AppSchema, PlugType, IAppKeitaroData, IExternalParams, IPlatformParams, EPlatform, AppStatus } from "./app/app";
|
|
6
6
|
export { IAppListItem } from "./app/app-list-item";
|
|
7
7
|
export { AppType } from "./app/app-type";
|
|
8
8
|
export { AlternativeLayoutType, AlternativeSourceType, AlternativeLogicType, AlternativeNetworkTool, AlternativeStorageType, AlternativeNavigation, AlternativeOnBackPressed, AlternativeOnActivityResult, IAppIntegration as IFlashIntegration } from "./app/app-integration";
|
package/lib/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.NginxTemplate = exports.NamecheapBuyRequestSchema = exports.getDomainTargetByIp = exports.CONST_CLOUFLARE_STATUS_READY = exports.DomainTarget = exports.DomainStatus = exports.ICloudflareDomainType = exports.ICloudflareDomainStatus = exports.KeitaroUtils = exports.KeitaroService = exports.ShapeDiv = exports.PanelUserSchema = exports.PanelUserAccessScope = exports.AlternativeOnActivityResult = exports.AlternativeOnBackPressed = exports.AlternativeNavigation = exports.AlternativeStorageType = exports.AlternativeNetworkTool = exports.AlternativeLogicType = exports.AlternativeSourceType = exports.AlternativeLayoutType = exports.AppType = exports.EPlatform = exports.PlugType = exports.AppSchema = exports.IntegrationVersion = exports.SectionsListSchema = exports.DefaultSectionId = exports.OffersSectionSchema = exports.IOfferType = void 0;
|
|
26
|
+
exports.NginxTemplate = exports.NamecheapBuyRequestSchema = exports.getDomainTargetByIp = exports.CONST_CLOUFLARE_STATUS_READY = exports.DomainTarget = exports.DomainStatus = exports.ICloudflareDomainType = exports.ICloudflareDomainStatus = exports.KeitaroUtils = exports.KeitaroService = exports.ShapeDiv = exports.PanelUserSchema = exports.PanelUserAccessScope = exports.AlternativeOnActivityResult = exports.AlternativeOnBackPressed = exports.AlternativeNavigation = exports.AlternativeStorageType = exports.AlternativeNetworkTool = exports.AlternativeLogicType = exports.AlternativeSourceType = exports.AlternativeLayoutType = exports.AppType = exports.AppStatus = exports.EPlatform = exports.PlugType = exports.AppSchema = exports.IntegrationVersion = exports.SectionsListSchema = exports.DefaultSectionId = exports.OffersSectionSchema = exports.IOfferType = void 0;
|
|
27
27
|
var offer_1 = require("./offers/offer");
|
|
28
28
|
Object.defineProperty(exports, "IOfferType", { enumerable: true, get: function () { return offer_1.IOfferType; } });
|
|
29
29
|
var section_1 = require("./offers/section");
|
|
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "IntegrationVersion", { enumerable: true, get: fu
|
|
|
36
36
|
Object.defineProperty(exports, "AppSchema", { enumerable: true, get: function () { return app_1.AppSchema; } });
|
|
37
37
|
Object.defineProperty(exports, "PlugType", { enumerable: true, get: function () { return app_1.PlugType; } });
|
|
38
38
|
Object.defineProperty(exports, "EPlatform", { enumerable: true, get: function () { return app_1.EPlatform; } });
|
|
39
|
+
Object.defineProperty(exports, "AppStatus", { enumerable: true, get: function () { return app_1.AppStatus; } });
|
|
39
40
|
var app_type_1 = require("./app/app-type");
|
|
40
41
|
Object.defineProperty(exports, "AppType", { enumerable: true, get: function () { return app_type_1.AppType; } });
|
|
41
42
|
var app_integration_1 = require("./app/app-integration");
|
package/package.json
CHANGED
package/src/app/app.ts
CHANGED
|
@@ -14,6 +14,7 @@ export interface IApp extends Document {
|
|
|
14
14
|
pushesEnabled?: boolean
|
|
15
15
|
policyUrl?: string
|
|
16
16
|
type: AppType
|
|
17
|
+
status: AppStatus
|
|
17
18
|
geo: string[]
|
|
18
19
|
|
|
19
20
|
onesignalAppId: string
|
|
@@ -161,6 +162,14 @@ export interface IBannerParams {
|
|
|
161
162
|
showStubOnError?: boolean,
|
|
162
163
|
}
|
|
163
164
|
|
|
165
|
+
export enum AppStatus {
|
|
166
|
+
INACTIVE = "INACTIVE",
|
|
167
|
+
PUBLISHED = "PUBLISHED",
|
|
168
|
+
MODERATION = "ACTIVE",
|
|
169
|
+
REMOVED = "REMOVED",
|
|
170
|
+
ARCHIVED = "ARCHIVED"
|
|
171
|
+
}
|
|
172
|
+
|
|
164
173
|
export interface IRemoveDataParams {
|
|
165
174
|
buttonText: string,
|
|
166
175
|
resultText: string,
|
|
@@ -174,6 +183,13 @@ export interface IRemoveDataParams {
|
|
|
174
183
|
toSplashAfterSuccess: boolean
|
|
175
184
|
}
|
|
176
185
|
|
|
186
|
+
export interface IRemoveInfo {
|
|
187
|
+
reason: string,
|
|
188
|
+
date: number,
|
|
189
|
+
status: string,
|
|
190
|
+
images: string[]
|
|
191
|
+
}
|
|
192
|
+
|
|
177
193
|
export interface IPrivacyPolicyParams {
|
|
178
194
|
showButtonQuery: string,
|
|
179
195
|
button?: {
|
|
@@ -240,6 +256,11 @@ export const AppSchema = new Schema({
|
|
|
240
256
|
enum: EImageFormat,
|
|
241
257
|
default: EImageFormat.PNG
|
|
242
258
|
},
|
|
259
|
+
status: {
|
|
260
|
+
type: String,
|
|
261
|
+
enum: AppStatus,
|
|
262
|
+
default: AppStatus.INACTIVE
|
|
263
|
+
},
|
|
243
264
|
|
|
244
265
|
bundle: {
|
|
245
266
|
type: String,
|
|
@@ -320,6 +341,10 @@ export const AppSchema = new Schema({
|
|
|
320
341
|
},
|
|
321
342
|
},
|
|
322
343
|
removeDataParams: Object,
|
|
344
|
+
removeInfo: {
|
|
345
|
+
type: Object,
|
|
346
|
+
default: null
|
|
347
|
+
},
|
|
323
348
|
privacyPolicyParams: Object,
|
|
324
349
|
offersStubParams: Object,
|
|
325
350
|
bannerParams: Object,
|
package/src/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { IOffer, IPartner, IOfferType } from "./offers/offer"
|
|
|
4
4
|
export { IOffersSection, OffersSectionSchema, DefaultSectionId } from "./offers/section"
|
|
5
5
|
export { IAppOffersSection, ISectionsList, SectionsListSchema, IOfferState } from "./offers/list"
|
|
6
6
|
|
|
7
|
-
export { IAdjustEventIds, IntegrationVersion, IApp, AppSchema, PlugType, IAppKeitaroData, IExternalParams, IPlatformParams, EPlatform } from "./app/app"
|
|
7
|
+
export { IAdjustEventIds, IntegrationVersion, IApp, AppSchema, PlugType, IAppKeitaroData, IExternalParams, IPlatformParams, EPlatform, AppStatus } from "./app/app"
|
|
8
8
|
export { IAppListItem } from "./app/app-list-item"
|
|
9
9
|
export { AppType } from "./app/app-type"
|
|
10
10
|
export { AlternativeLayoutType, AlternativeSourceType, AlternativeLogicType, AlternativeNetworkTool, AlternativeStorageType, AlternativeNavigation, AlternativeOnBackPressed, AlternativeOnActivityResult, IAppIntegration as IFlashIntegration } from "./app/app-integration"
|