biz-slide-core 1.2.85 → 1.2.87
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/dist/entity/analytic.entity.js +4 -4
- package/dist/entity/config.enity.js +2 -2
- package/dist/entity/cron.entity.js +2 -2
- package/dist/entity/customer.entity.js +3 -3
- package/dist/entity/image.entity.js +2 -2
- package/dist/entity/logs.entity.js +2 -2
- package/dist/entity/png-svg.entity.js +2 -2
- package/dist/entity/ppt-email-queue.entity.js +2 -2
- package/dist/entity/ppt-event.entity.js +2 -2
- package/dist/entity/ppt-slide.entity.js +2 -2
- package/dist/entity/ppt.entity.d.ts +1 -0
- package/dist/entity/ppt.entity.d.ts.map +1 -1
- package/dist/entity/ppt.entity.js +2 -2
- package/dist/entity/slide-layout.entity.js +4 -4
- package/dist/entity/slide.entity.js +3 -3
- package/dist/entity/socket.entity.js +2 -2
- package/dist/entity/template-type.entity.js +6 -6
- package/dist/entity/template.entity.js +2 -2
- package/dist/entity/training-queue.entity.js +2 -2
- package/dist/entity/user.entity.js +2 -2
- package/dist/middleware/authentication.js +112 -215
- package/dist/middleware/schemaValidate.js +10 -52
- package/dist/resHandler/errorHandler.js +20 -42
- package/dist/resHandler/successHandler.js +1 -1
- package/dist/utilities/callWithRetries.js +9 -67
- package/dist/utilities/createFolder.js +10 -51
- package/dist/utilities/encryptionUtils.js +14 -54
- package/dist/utilities/hasAbusiveWords.js +4 -5
- package/package.json +3 -1
- package/src/entity/analytic.entity.ts +0 -62
- package/src/entity/common.ts +0 -19
- package/src/entity/config.enity.ts +0 -18
- package/src/entity/cron.entity.ts +0 -22
- package/src/entity/customer.entity.ts +0 -40
- package/src/entity/image.entity.ts +0 -32
- package/src/entity/index.ts +0 -20
- package/src/entity/logs.entity.ts +0 -20
- package/src/entity/png-svg.entity.ts +0 -44
- package/src/entity/ppt-email-queue.entity.ts +0 -22
- package/src/entity/ppt-event.entity.ts +0 -25
- package/src/entity/ppt-slide.entity.ts +0 -40
- package/src/entity/ppt.entity.ts +0 -79
- package/src/entity/slide-layout.entity.ts +0 -56
- package/src/entity/slide.entity.ts +0 -61
- package/src/entity/socket.entity.ts +0 -20
- package/src/entity/template-type.entity.ts +0 -87
- package/src/entity/template.entity.ts +0 -38
- package/src/entity/training-queue.entity.ts +0 -26
- package/src/entity/user.entity.ts +0 -24
- package/src/index.ts +0 -6
- package/src/middleware/authentication.ts +0 -150
- package/src/middleware/index.ts +0 -3
- package/src/middleware/role.ts +0 -5
- package/src/middleware/schemaValidate.ts +0 -20
- package/src/resHandler/errorHandler.ts +0 -66
- package/src/resHandler/index.ts +0 -2
- package/src/resHandler/successHandler.ts +0 -11
- package/src/types/IController.ts +0 -6
- package/src/types/IRequest.ts +0 -8
- package/src/types/index.ts +0 -11
- package/src/utilities/callWithRetries.ts +0 -9
- package/src/utilities/createFolder.ts +0 -11
- package/src/utilities/encryptionUtils.ts +0 -26
- package/src/utilities/hasAbusiveWords.ts +0 -33
- package/src/utilities/index.ts +0 -5
- package/src/utilities/pngSvgCategories.ts +0 -167
- package/tsconfig.json +0 -11
@@ -1,15 +1,15 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.AnalyticModel = void 0;
|
4
|
-
|
5
|
-
|
4
|
+
const mongoose_1 = require("mongoose");
|
5
|
+
const eventSchema = new mongoose_1.Schema({
|
6
6
|
name: { type: String, required: true },
|
7
7
|
count: { type: Number, default: 0 }
|
8
8
|
}, {
|
9
9
|
timestamps: false,
|
10
10
|
_id: false
|
11
11
|
});
|
12
|
-
|
12
|
+
const layoutAnalyticsSchema = new mongoose_1.Schema({
|
13
13
|
name: { type: String, required: true },
|
14
14
|
count: { type: Number, default: 0 },
|
15
15
|
percentage: { type: Number, default: 0 }
|
@@ -17,7 +17,7 @@ var layoutAnalyticsSchema = new mongoose_1.Schema({
|
|
17
17
|
timestamps: false,
|
18
18
|
_id: false
|
19
19
|
});
|
20
|
-
|
20
|
+
const AnalyticSchema = new mongoose_1.Schema({
|
21
21
|
templateTypeId: { type: mongoose_1.Schema.Types.ObjectId, ref: "template-type" },
|
22
22
|
appName: { type: String, required: true },
|
23
23
|
noOfPPT: { type: Number, default: 0 },
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ConfigModel = void 0;
|
4
|
-
|
5
|
-
|
4
|
+
const mongoose_1 = require("mongoose");
|
5
|
+
const CongigSchema = new mongoose_1.Schema({
|
6
6
|
configType: { type: String, required: true },
|
7
7
|
value: { type: String, required: true },
|
8
8
|
}, {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.CronModel = void 0;
|
4
|
-
|
5
|
-
|
4
|
+
const mongoose_1 = require("mongoose");
|
5
|
+
const CronSchema = new mongoose_1.Schema({
|
6
6
|
name: { type: String, required: true },
|
7
7
|
status: { type: Boolean, default: false }
|
8
8
|
}, {
|
@@ -1,14 +1,14 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.CustomerModel = void 0;
|
4
|
-
|
5
|
-
|
4
|
+
const mongoose_1 = require("mongoose");
|
5
|
+
const EmailTemplateStatusSchema = new mongoose_1.Schema({
|
6
6
|
sent: { type: Boolean, default: false },
|
7
7
|
}, {
|
8
8
|
timestamps: false,
|
9
9
|
_id: false
|
10
10
|
});
|
11
|
-
|
11
|
+
const CustomerSchema = new mongoose_1.Schema({
|
12
12
|
appName: { type: String, required: true },
|
13
13
|
userId: { type: String, required: true },
|
14
14
|
emailId: { type: String, default: "" },
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ImageModel = void 0;
|
4
|
-
|
5
|
-
|
4
|
+
const mongoose_1 = require("mongoose");
|
5
|
+
const ImageSchema = new mongoose_1.Schema({
|
6
6
|
focusPoint: { x: Number, y: Number },
|
7
7
|
url: { type: String, required: true },
|
8
8
|
radius: { type: String, required: true },
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.LogsModel = void 0;
|
4
|
-
|
5
|
-
|
4
|
+
const mongoose_1 = require("mongoose");
|
5
|
+
const LogsSchema = new mongoose_1.Schema({
|
6
6
|
type: { type: String, required: true },
|
7
7
|
event: { type: String, required: true },
|
8
8
|
message: { type: String, required: true },
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.PngSvgModel = void 0;
|
4
|
-
|
5
|
-
|
4
|
+
const mongoose_1 = require("mongoose");
|
5
|
+
const PngSvgSchema = new mongoose_1.Schema({
|
6
6
|
deletedAt: { type: Date, default: null },
|
7
7
|
isLocked: { type: Boolean, default: false },
|
8
8
|
optionsDownloaded: mongoose_1.Schema.Types.Mixed,
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.PPTEmailQueueModel = void 0;
|
4
|
-
|
5
|
-
|
4
|
+
const mongoose_1 = require("mongoose");
|
5
|
+
const PPTEmailQueueSchema = new mongoose_1.Schema({
|
6
6
|
pptRef: { type: mongoose_1.Schema.Types.ObjectId, ref: 'ppt' },
|
7
7
|
emailType: { type: String, required: true },
|
8
8
|
sent: { type: Boolean, default: false }
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.PPTSlideEventModel = void 0;
|
4
|
-
|
5
|
-
|
4
|
+
const mongoose_1 = require("mongoose");
|
5
|
+
const 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 },
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.PPTSlideModel = void 0;
|
4
|
-
|
5
|
-
|
4
|
+
const mongoose_1 = require("mongoose");
|
5
|
+
const PPTSlideSchema = new mongoose_1.Schema({
|
6
6
|
deletedAt: { type: Date, default: null },
|
7
7
|
pptRef: { type: mongoose_1.Schema.Types.ObjectId, ref: 'ppt' },
|
8
8
|
slideRef: { type: mongoose_1.Schema.Types.ObjectId, ref: 'slide' },
|
@@ -55,6 +55,7 @@ export interface IPPTSchema {
|
|
55
55
|
navigateFromGPT: boolean;
|
56
56
|
googleDriveId: string;
|
57
57
|
isPartialFile: boolean;
|
58
|
+
isEditable: boolean;
|
58
59
|
}
|
59
60
|
export declare const PPTModel: import("mongoose").Model<IPPTSchema, {}, {}, {}, import("mongoose").Document<unknown, {}, IPPTSchema> & Omit<IPPTSchema & {
|
60
61
|
_id: Types.ObjectId;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ppt.entity.d.ts","sourceRoot":"","sources":["../../src/entity/ppt.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAiB,KAAK,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,WAAW,UAAU;IACvB,qBAAqB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC,kBAAkB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC,kBAAkB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,SAAS,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC5B,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC3B,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC/B,M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AC,QAAQ,CAAC;IAC3B,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;CACvB;AA2CD,eAAO,MAAM,QAAQ;;eAAsC,CAAC"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.PPTModel = void 0;
|
4
|
-
|
5
|
-
|
4
|
+
const mongoose_1 = require("mongoose");
|
5
|
+
const PPTSchema = new mongoose_1.Schema({
|
6
6
|
deletedAt: { type: Date, default: null },
|
7
7
|
isLocked: { type: Boolean, default: false },
|
8
8
|
isCompleted: { type: Boolean, default: false },
|
@@ -1,22 +1,22 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.SlideLayoutModel = void 0;
|
4
|
-
|
5
|
-
|
4
|
+
const mongoose_1 = require("mongoose");
|
5
|
+
const messageSchema = new mongoose_1.Schema({
|
6
6
|
message: { type: String },
|
7
7
|
keys: { type: [String] },
|
8
8
|
}, {
|
9
9
|
timestamps: false,
|
10
10
|
_id: false
|
11
11
|
});
|
12
|
-
|
12
|
+
const systemSchema = new mongoose_1.Schema({
|
13
13
|
system: messageSchema,
|
14
14
|
user: messageSchema
|
15
15
|
}, {
|
16
16
|
timestamps: false,
|
17
17
|
_id: false
|
18
18
|
});
|
19
|
-
|
19
|
+
const SlideLayoutSchema = new mongoose_1.Schema({
|
20
20
|
published: { type: Boolean, default: false },
|
21
21
|
name: { type: String, default: "", required: true },
|
22
22
|
displayName: { type: String, default: "" },
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.SlideModel = void 0;
|
4
|
-
|
5
|
-
|
4
|
+
const mongoose_1 = require("mongoose");
|
5
|
+
const layerSchema = new mongoose_1.Schema({
|
6
6
|
metaType: { type: String, enum: ['text', 'image', 'shape', 'list', 'table'] },
|
7
7
|
optionsMeta: { type: String },
|
8
8
|
chatMeta: { type: String },
|
@@ -10,7 +10,7 @@ var layerSchema = new mongoose_1.Schema({
|
|
10
10
|
timestamps: false,
|
11
11
|
_id: false
|
12
12
|
});
|
13
|
-
|
13
|
+
const SlideSchema = new mongoose_1.Schema({
|
14
14
|
name: { type: String, default: "", required: true },
|
15
15
|
published: { type: Boolean, default: false },
|
16
16
|
postfix: { type: String, default: "" },
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.SocketModel = void 0;
|
4
|
-
|
5
|
-
|
4
|
+
const mongoose_1 = require("mongoose");
|
5
|
+
const SocketSchema = new mongoose_1.Schema({
|
6
6
|
userId: { type: String, default: null },
|
7
7
|
socketIds: { type: [String], default: [] }
|
8
8
|
}, {
|
@@ -1,36 +1,36 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.TemplateTypeModel = void 0;
|
4
|
-
|
5
|
-
|
4
|
+
const mongoose_1 = require("mongoose");
|
5
|
+
const layoutsSchema = new mongoose_1.Schema({
|
6
6
|
title: { type: String },
|
7
7
|
layoutType: { type: String },
|
8
8
|
}, {
|
9
9
|
timestamps: false,
|
10
10
|
_id: false
|
11
11
|
});
|
12
|
-
|
12
|
+
const messageSchema = new mongoose_1.Schema({
|
13
13
|
message: { type: String },
|
14
14
|
keys: { type: [String] },
|
15
15
|
}, {
|
16
16
|
timestamps: false,
|
17
17
|
_id: false
|
18
18
|
});
|
19
|
-
|
19
|
+
const systemSchema = new mongoose_1.Schema({
|
20
20
|
system: messageSchema,
|
21
21
|
user: messageSchema
|
22
22
|
}, {
|
23
23
|
timestamps: false,
|
24
24
|
_id: false
|
25
25
|
});
|
26
|
-
|
26
|
+
const variantsSystemSchema = new mongoose_1.Schema({
|
27
27
|
single: systemSchema,
|
28
28
|
multiple: systemSchema
|
29
29
|
}, {
|
30
30
|
timestamps: false,
|
31
31
|
_id: false
|
32
32
|
});
|
33
|
-
|
33
|
+
const TemplateTypeSchema = new mongoose_1.Schema({
|
34
34
|
published: { type: Boolean, default: false },
|
35
35
|
name: { type: String, default: "", required: true },
|
36
36
|
layouts: [layoutsSchema],
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.TemplateModel = void 0;
|
4
|
-
|
5
|
-
|
4
|
+
const mongoose_1 = require("mongoose");
|
5
|
+
const TemplateSchema = new mongoose_1.Schema({
|
6
6
|
name: { type: String, default: "", required: true },
|
7
7
|
published: { type: Boolean, default: false },
|
8
8
|
templateTypeId: { type: mongoose_1.Schema.Types.ObjectId, ref: "template-type" },
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.TrainingQueueModel = void 0;
|
4
|
-
|
5
|
-
|
4
|
+
const mongoose_1 = require("mongoose");
|
5
|
+
const TrainingQueueSchema = new mongoose_1.Schema({
|
6
6
|
filename: { type: String, default: null },
|
7
7
|
isCompleted: { type: Boolean, default: false },
|
8
8
|
userId: { type: mongoose_1.Schema.Types.ObjectId, ref: "user" },
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.UserModel = void 0;
|
4
|
-
|
5
|
-
|
4
|
+
const mongoose_1 = require("mongoose");
|
5
|
+
const UserSchema = new mongoose_1.Schema({
|
6
6
|
email: { type: String, unique: true, sparse: true },
|
7
7
|
password: { type: String, default: null },
|
8
8
|
role: { type: String, default: null },
|