biz-slide-core 1.2.99 → 1.2.100
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/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
|
package/dist/entity/index.js
CHANGED
@@ -32,3 +32,4 @@ __exportStar(require("./analytic.entity"), exports);
|
|
32
32
|
__exportStar(require("./ppt-email-queue.entity"), exports);
|
33
33
|
__exportStar(require("./customer.entity"), exports);
|
34
34
|
__exportStar(require("./cron.entity"), exports);
|
35
|
+
__exportStar(require("./prompt.entity"), exports);
|
@@ -0,0 +1,39 @@
|
|
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
|
+
import { IMessageSchema } from "./common";
|
27
|
+
export interface IPromptSchema {
|
28
|
+
system: IMessageSchema;
|
29
|
+
user: IMessageSchema;
|
30
|
+
name: string;
|
31
|
+
templateTypeId: Types.ObjectId;
|
32
|
+
createdAt: Date;
|
33
|
+
updatedAt: Date;
|
34
|
+
deletedAt: Date;
|
35
|
+
}
|
36
|
+
export declare const PromptModel: import("mongoose").Model<IPromptSchema, {}, {}, {}, import("mongoose").Document<unknown, {}, IPromptSchema> & Omit<IPromptSchema & {
|
37
|
+
_id: Types.ObjectId;
|
38
|
+
}, never>, any>;
|
39
|
+
//# sourceMappingURL=prompt.entity.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"prompt.entity.d.ts","sourceRoot":"","sources":["../../src/entity/prompt.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAiB,KAAK,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,cAAc,CAAC;IACvB,IAAI,EAAE,cAAc,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC/B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB;AAwBD,eAAO,MAAM,WAAW;;eAA+C,CAAC"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PromptModel = void 0;
|
4
|
+
const mongoose_1 = require("mongoose");
|
5
|
+
const messageSchema = new mongoose_1.Schema({
|
6
|
+
message: { type: String },
|
7
|
+
keys: { type: [String] },
|
8
|
+
}, {
|
9
|
+
timestamps: false,
|
10
|
+
_id: false
|
11
|
+
});
|
12
|
+
const PromptSchema = new mongoose_1.Schema({
|
13
|
+
system: messageSchema,
|
14
|
+
user: messageSchema,
|
15
|
+
name: { type: String, default: "", required: true },
|
16
|
+
templateTypeId: { type: mongoose_1.Schema.Types.ObjectId, ref: "template-type" },
|
17
|
+
}, {
|
18
|
+
timestamps: true
|
19
|
+
});
|
20
|
+
exports.PromptModel = (0, mongoose_1.model)("prompt", PromptSchema);
|