biz-slide-core 1.2.70 → 1.2.72

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PPTEmailQueueModel = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ var PPTEmailQueueSchema = new mongoose_1.Schema({
6
+ pptRef: { type: mongoose_1.Schema.Types.ObjectId, ref: 'ppt' },
7
+ emailType: { type: String, required: true },
8
+ sent: { type: Boolean, default: false }
9
+ }, {
10
+ timestamps: true,
11
+ });
12
+ PPTEmailQueueSchema.index({ sent: 1, createdAt: 1 });
13
+ exports.PPTEmailQueueModel = (0, mongoose_1.model)("ppt-email-queue", PPTEmailQueueSchema);
@@ -6,7 +6,7 @@ var 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 },
9
- fileCreated: { type: Boolean, default: false },
9
+ fileCreated: { type: Boolean, default: false }, // S3 file creation
10
10
  userId: { type: String, default: null },
11
11
  templateTypeId: { type: mongoose_1.Schema.Types.ObjectId, ref: "template-type" },
12
12
  systemGeneratedtopics: { type: [String], default: [], _id: false },
@@ -29,7 +29,8 @@ var PPTSchema = new mongoose_1.Schema({
29
29
  noOfSlides: { type: Number, default: null },
30
30
  appName: { type: String, default: null },
31
31
  navigateFromGPT: { type: Boolean, default: false },
32
- googleDriveId: { type: String, default: null }
32
+ googleDriveId: { type: String, default: null }, // google file creation
33
+ isPartialFile: { type: Boolean, default: false } // was free file created
33
34
  }, {
34
35
  timestamps: true,
35
36
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz-slide-core",
3
- "version": "1.2.70",
3
+ "version": "1.2.72",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {