biz-slide-core 1.2.62 → 1.2.64
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,41 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AnalyticModel = void 0;
|
4
|
+
var mongoose_1 = require("mongoose");
|
5
|
+
var eventSchema = new mongoose_1.Schema({
|
6
|
+
name: { type: String, required: true },
|
7
|
+
count: { type: Number, default: 0 }
|
8
|
+
}, {
|
9
|
+
timestamps: false,
|
10
|
+
_id: false
|
11
|
+
});
|
12
|
+
var layoutAnalyticsSchema = new mongoose_1.Schema({
|
13
|
+
name: { type: String, required: true },
|
14
|
+
count: { type: Number, default: 0 },
|
15
|
+
percentage: { type: Number, default: 0 },
|
16
|
+
templateType: { type: String, default: "" }
|
17
|
+
}, {
|
18
|
+
timestamps: false,
|
19
|
+
_id: false
|
20
|
+
});
|
21
|
+
var slideCountSchema = new mongoose_1.Schema({
|
22
|
+
name: { type: String, required: true },
|
23
|
+
count: { type: Number, default: 0 }
|
24
|
+
}, {
|
25
|
+
timestamps: false,
|
26
|
+
_id: false
|
27
|
+
});
|
28
|
+
var AnalyticSchema = new mongoose_1.Schema({
|
29
|
+
appName: { type: String, required: true },
|
30
|
+
noOfPPT: { type: Number, default: 0 },
|
31
|
+
totalDownloaded: { type: Number, default: 0 },
|
32
|
+
navigateFromGPT: { type: Number, default: 0 },
|
33
|
+
noOfGuestPPT: { type: Number, default: 0 },
|
34
|
+
events: { type: [eventSchema], default: [] },
|
35
|
+
totalSlides: { type: [slideCountSchema], default: [] },
|
36
|
+
layouts: { type: [layoutAnalyticsSchema], default: [] },
|
37
|
+
analyticsDate: { type: Date, default: Date.now }
|
38
|
+
}, {
|
39
|
+
timestamps: true,
|
40
|
+
});
|
41
|
+
exports.AnalyticModel = (0, mongoose_1.model)("analytic", AnalyticSchema);
|
package/entity/index.js
CHANGED
@@ -28,3 +28,4 @@ __exportStar(require("./user.entity"), exports);
|
|
28
28
|
__exportStar(require("./training-queue.entity"), exports);
|
29
29
|
__exportStar(require("./config.enity"), exports);
|
30
30
|
__exportStar(require("./logs.entity"), exports);
|
31
|
+
__exportStar(require("./analytic.entity"), exports);
|
@@ -6,6 +6,7 @@ var PPTEventSchema = new mongoose_1.Schema({
|
|
6
6
|
pptRef: { type: mongoose_1.Schema.Types.ObjectId, ref: 'ppt' },
|
7
7
|
message: { type: String, default: null },
|
8
8
|
event: { type: String, default: null },
|
9
|
+
appName: { type: String, default: null }
|
9
10
|
}, {
|
10
11
|
timestamps: true,
|
11
12
|
});
|
@@ -11,7 +11,8 @@ var PPTSlideSchema = new mongoose_1.Schema({
|
|
11
11
|
rawData: { type: String, default: "{}" },
|
12
12
|
originalData: { type: String, default: "{}" },
|
13
13
|
images: { type: String, default: "{}" },
|
14
|
-
istmp: { type: Boolean, default: false }
|
14
|
+
istmp: { type: Boolean, default: false },
|
15
|
+
appName: { type: String, default: null },
|
15
16
|
}, {
|
16
17
|
timestamps: true,
|
17
18
|
});
|