biz-slide-core 1.2.135 → 2.0.1

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.
@@ -0,0 +1,40 @@
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose/types/inferschematype" />
25
+ import { Types } from "mongoose";
26
+ export interface IPPTSlideLayerSchema {
27
+ pptRef: Types.ObjectId;
28
+ pptSlideRef: Types.ObjectId;
29
+ slideRef: Types.ObjectId;
30
+ slideLayoutRef: Types.ObjectId;
31
+ layerId: string;
32
+ optionsMetaPatch?: Record<string, any>;
33
+ chatMetaPatch?: Record<string, any>;
34
+ createdAt?: Date;
35
+ updatedAt?: Date;
36
+ }
37
+ export declare const PPTSlideLayerModel: import("mongoose").Model<IPPTSlideLayerSchema, {}, {}, {}, import("mongoose").Document<unknown, {}, IPPTSlideLayerSchema> & IPPTSlideLayerSchema & {
38
+ _id: Types.ObjectId;
39
+ }, any>;
40
+ //# sourceMappingURL=ppt-slide-layer.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ppt-slide-layer.entity.d.ts","sourceRoot":"","sources":["../../src/entity/ppt-slide-layer.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAiB,KAAK,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC;IACvB,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;IACzB,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AAiCD,eAAO,MAAM,kBAAkB;;OAG9B,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PPTSlideLayerModel = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const PPTSlideLayerSchema = new mongoose_1.Schema({
6
+ pptRef: { type: mongoose_1.Schema.Types.ObjectId, ref: "ppt", required: true },
7
+ pptSlideRef: {
8
+ type: mongoose_1.Schema.Types.ObjectId,
9
+ ref: "ppt-slide",
10
+ required: true,
11
+ },
12
+ slideRef: { type: mongoose_1.Schema.Types.ObjectId, ref: "slidev2", default: null },
13
+ slideLayoutRef: {
14
+ type: mongoose_1.Schema.Types.ObjectId,
15
+ ref: "slide-layout",
16
+ default: null,
17
+ },
18
+ layerId: { type: String, required: true },
19
+ optionsMetaPatch: { type: mongoose_1.Schema.Types.Mixed, default: undefined },
20
+ chatMetaPatch: { type: mongoose_1.Schema.Types.Mixed, default: undefined },
21
+ }, { timestamps: true });
22
+ // One override per layer per ppt-slide
23
+ PPTSlideLayerSchema.index({ pptSlideRef: 1, layerId: 1 }, { unique: true });
24
+ // Fast fetch all overrides for a slide
25
+ PPTSlideLayerSchema.index({ pptSlideRef: 1 });
26
+ // Fast cleanup all overrides in a PPT
27
+ PPTSlideLayerSchema.index({ pptRef: 1 });
28
+ exports.PPTSlideLayerModel = (0, mongoose_1.model)("ppt-slide-layer", PPTSlideLayerSchema);
@@ -5,7 +5,7 @@ const mongoose_1 = require("mongoose");
5
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
- slideRef: { type: mongoose_1.Schema.Types.ObjectId, ref: 'slide' },
8
+ slideRef: { type: mongoose_1.Schema.Types.ObjectId, ref: 'slidev2' },
9
9
  slideLayoutRef: { type: mongoose_1.Schema.Types.ObjectId, ref: 'slide-layout' },
10
10
  title: { type: String, default: null },
11
11
  slideSummary: { type: String, default: "" },
@@ -49,6 +49,7 @@ export interface ISlideV2Schema {
49
49
  category: string;
50
50
  version: number;
51
51
  changeNote: string;
52
+ isDeprecated: boolean;
52
53
  }
53
54
  export declare const SlideV2Model: import("mongoose").Model<ISlideV2Schema, {}, {}, {}, import("mongoose").Document<unknown, {}, ISlideV2Schema> & ISlideV2Schema & {
54
55
  _id: Types.ObjectId;
@@ -1 +1 @@
1
- {"version":3,"file":"slidev2.entity.d.ts","sourceRoot":"","sources":["../../src/entity/slidev2.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAiB,KAAK,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,MAAM,QAAQ,GAChB,MAAM,GACN,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,UAAU,GACV,MAAM,CAAC;AAEX,MAAM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AG,CAAC;IACd,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;CACxB;AAqCD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IAEd,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC5B,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC9B,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC3B,MAAM,EAAE,WAAW,EAAE,CAAC;IAEtB,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAElB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAEhB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IAEjB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;CACvB;AAkCD,eAAO,MAAM,YAAY;;OAAgD,CAAC"}
@@ -44,7 +44,8 @@ const SlideSchema = new mongoose_1.Schema({
44
44
  isDefault: { type: Boolean, default: false },
45
45
  category: { type: String, default: "Default" },
46
46
  version: { type: Number, default: 1 },
47
- changeNote: { type: String, default: "" }
47
+ changeNote: { type: String, default: "" },
48
+ isDeprecated: { type: Boolean, default: false }
48
49
  }, {
49
50
  timestamps: true,
50
51
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz-slide-core",
3
- "version": "1.2.135",
3
+ "version": "2.0.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",