@bprotsyk/aso-core 2.1.97 → 2.1.98

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 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;
@@ -167,6 +175,7 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
167
175
  proxied: boolean;
168
176
  ech: boolean;
169
177
  imageFormat: string;
178
+ status: string;
170
179
  bundle: string;
171
180
  trackingUrl: string;
172
181
  integrationVersion: string;
@@ -206,6 +215,7 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
206
215
  proxied: boolean;
207
216
  ech: boolean;
208
217
  imageFormat: string;
218
+ status: string;
209
219
  bundle: string;
210
220
  trackingUrl: string;
211
221
  integrationVersion: string;
@@ -245,6 +255,7 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
245
255
  proxied: boolean;
246
256
  ech: boolean;
247
257
  imageFormat: string;
258
+ status: string;
248
259
  bundle: string;
249
260
  trackingUrl: string;
250
261
  integrationVersion: string;
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,
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "2.1.97",
3
+ "version": "2.1.98",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
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,
@@ -240,6 +249,11 @@ export const AppSchema = new Schema({
240
249
  enum: EImageFormat,
241
250
  default: EImageFormat.PNG
242
251
  },
252
+ status: {
253
+ type: String,
254
+ enum: AppStatus,
255
+ default: AppStatus.INACTIVE
256
+ },
243
257
 
244
258
  bundle: {
245
259
  type: String,