biz-slide-core 1.2.96 → 1.2.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.
@@ -23,23 +23,34 @@
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  import { Types } from "mongoose";
26
- export interface IPPTSlideSchema {
27
- pptRef: Types.ObjectId;
28
- slideRef: Types.ObjectId;
29
- slideLayoutRef: Types.ObjectId;
30
- slideSummary: string;
26
+ interface IPPTSlideData {
31
27
  title: string;
32
28
  rawData: string;
33
- originalData: string;
34
29
  images: string;
35
30
  staticData: string;
31
+ originalData: string;
32
+ }
33
+ export interface IPPTSlideSchema extends IPPTSlideData {
34
+ pptRef: Types.ObjectId;
35
+ slideRef: Types.ObjectId;
36
+ slideLayoutRef: Types.ObjectId;
37
+ slideSummary: string;
36
38
  createdAt?: Date;
37
39
  updatedAt?: Date;
38
40
  deletedAt?: Date;
39
41
  istmp?: boolean;
40
42
  appName: string;
41
43
  }
44
+ export interface IPPTSlideVersionSchema extends IPPTSlideData {
45
+ pptSlideRef: Types.ObjectId;
46
+ pptRef: Types.ObjectId;
47
+ verison: string;
48
+ }
42
49
  export declare const PPTSlideModel: import("mongoose").Model<IPPTSlideSchema, {}, {}, {}, import("mongoose").Document<unknown, {}, IPPTSlideSchema> & Omit<IPPTSlideSchema & {
43
50
  _id: Types.ObjectId;
44
51
  }, never>, any>;
52
+ export declare const PPTSlideVersionModel: import("mongoose").Model<IPPTSlideSchema, {}, {}, {}, import("mongoose").Document<unknown, {}, IPPTSlideSchema> & Omit<IPPTSlideSchema & {
53
+ _id: Types.ObjectId;
54
+ }, never>, any>;
55
+ export {};
45
56
  //# sourceMappingURL=ppt-slide.entity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ppt-slide.entity.d.ts","sourceRoot":"","sources":["../../src/entity/ppt-slide.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;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,CAAC,EAAE,IAAI,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,sBAAuB,SAAQ,aAAa;IACzD,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC5B,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;CACnB;AA2CD,eAAO,MAAM,aAAa;;eAAsD,CAAC;AACjF,eAAO,MAAM,oBAAoB;;eAAqE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PPTSlideModel = void 0;
3
+ exports.PPTSlideVersionModel = exports.PPTSlideModel = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const PPTSlideSchema = new mongoose_1.Schema({
6
6
  deletedAt: { type: Date, default: null },
@@ -19,4 +19,18 @@ const PPTSlideSchema = new mongoose_1.Schema({
19
19
  timestamps: true,
20
20
  });
21
21
  PPTSlideSchema.index({ createdAt: 1, istmp: 1 });
22
+ const PPTSlideVersionSchema = new mongoose_1.Schema({
23
+ pptRef: { type: mongoose_1.Schema.Types.ObjectId, ref: 'ppt' },
24
+ pptSlideRef: { type: mongoose_1.Schema.Types.ObjectId, ref: 'ppt-slide' },
25
+ verison: { type: String, default: "default" },
26
+ title: { type: String, default: null },
27
+ rawData: { type: String, default: "{}" },
28
+ originalData: { type: String, default: "{}" },
29
+ staticData: { type: String, default: "{}" },
30
+ images: { type: String, default: "{}" }
31
+ }, {
32
+ timestamps: true,
33
+ });
34
+ PPTSlideVersionSchema.index({ pptRef: 1, pptSlideRef: 1, verison: 1 });
22
35
  exports.PPTSlideModel = (0, mongoose_1.model)("ppt-slide", PPTSlideSchema);
36
+ exports.PPTSlideVersionModel = (0, mongoose_1.model)("ppt-slide-version", PPTSlideVersionSchema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz-slide-core",
3
- "version": "1.2.96",
3
+ "version": "1.2.98",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",