biz-slide-core 1.0.7 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
- import { Schema, model, Types, Document } from "mongoose";
1
+ import { Schema, model, Types } from "mongoose";
2
2
 
3
3
 
4
- export interface IPPTEventSchema extends Document {
4
+ export interface IPPTEventSchema {
5
5
  pptRef: Types.ObjectId;
6
6
  message: string;
7
7
  createdAt?: Date;
@@ -1,5 +1,5 @@
1
- import { Schema, model, Types, Document } from "mongoose";
2
- export interface IPPTSlideSchema extends Document {
1
+ import { Schema, model, Types } from "mongoose";
2
+ export interface IPPTSlideSchema {
3
3
  pptRef: Types.ObjectId;
4
4
  slideRef: Types.ObjectId;
5
5
  slideLayoutRef: Types.ObjectId;
@@ -1,4 +1,4 @@
1
- import { Schema, model, Types, Document } from "mongoose";
1
+ import { Schema, model, Types } from "mongoose";
2
2
 
3
3
  interface IPPTQuestions {
4
4
  question: string;
@@ -13,12 +13,12 @@ const questionSchema = new Schema<IPPTQuestions>({
13
13
  _id: false
14
14
  })
15
15
 
16
- export interface IPPTQuestionSchema extends Document {
16
+ export interface IPPTQuestionSchema {
17
17
  question: string;
18
18
  answer: string;
19
19
  }
20
20
 
21
- export interface IPPTSchema extends Document {
21
+ export interface IPPTSchema {
22
22
  systemGeneratedtopics: Array<string>;
23
23
  colors: Array<string>;
24
24
  slideRefs: Types.ObjectId[];
@@ -28,6 +28,7 @@ export interface IPPTSchema extends Document {
28
28
  userId: string;
29
29
  questions: IPPTQuestions[];
30
30
  isLocked?: boolean;
31
+ fileCreated?: boolean;
31
32
  isCompleted?: boolean;
32
33
  createdAt?: Date;
33
34
  updatedAt?: Date;
@@ -41,6 +42,7 @@ const PPTSchema = new Schema<IPPTSchema>(
41
42
  deletedAt: { type: Date, default: null },
42
43
  isLocked: { type: Boolean, default: false },
43
44
  isCompleted: { type: Boolean, default: false },
45
+ fileCreated: { type: Boolean, default: false },
44
46
  userId: { type: String, default: null },
45
47
  template_type: { type: String, default: null },
46
48
  systemGeneratedtopics: { type: [String], default: [], _id: false },
@@ -1,6 +1,6 @@
1
- import { Schema, model, Document, Types } from "mongoose";
1
+ import { Schema, model, Types } from "mongoose";
2
2
 
3
- export interface ISlideLayoutSchema extends Document {
3
+ export interface ISlideLayoutSchema {
4
4
  name: string;
5
5
  templateId: Types.ObjectId;
6
6
  createdAt: Date;
@@ -1,4 +1,4 @@
1
- import { Schema, model, Document, Types } from "mongoose";
1
+ import { Schema, model, Types } from "mongoose";
2
2
 
3
3
  interface layer {
4
4
  metaType: String;
@@ -15,7 +15,7 @@ const layerSchema = new Schema<layer>({
15
15
  _id: false
16
16
  })
17
17
 
18
- export interface ISlideSchema extends Document {
18
+ export interface ISlideSchema {
19
19
  name: string;
20
20
  postfix: string;
21
21
  rules: string;
@@ -1,6 +1,6 @@
1
- import { Schema, model, Document } from "mongoose";
1
+ import { Schema, model } from "mongoose";
2
2
 
3
- export interface ITemplateSchema extends Document {
3
+ export interface ITemplateSchema{
4
4
  name: string;
5
5
  template_type: string;
6
6
  createdAt: Date,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz-slide-core",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {