biz-email-builder-shared 1.6.40 → 1.6.42
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/bookmark.entity.d.ts +12 -3
- package/dist/entity/bookmark.entity.d.ts.map +1 -1
- package/dist/entity/bookmark.entity.js +8 -5
- package/dist/entity/emailConfiguration.entity.d.ts +2 -2
- package/dist/entity/emailConfiguration.entity.d.ts.map +1 -1
- package/dist/entity/emailConfiguration.entity.js +3 -3
- package/dist/entity/index.d.ts +1 -0
- package/dist/entity/index.d.ts.map +1 -1
- package/dist/entity/index.js +1 -0
- package/dist/entity/planHistory.entity.d.ts +0 -1
- package/dist/entity/planHistory.entity.d.ts.map +1 -1
- package/dist/entity/planHistory.entity.js +0 -1
- package/package.json +1 -1
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
import { Document, Types } from "mongoose";
|
|
2
|
-
export interface IBookmarkTemplate {
|
|
2
|
+
export interface IBookmarkTemplate extends Document {
|
|
3
3
|
template: Types.ObjectId;
|
|
4
4
|
addedAt?: Date;
|
|
5
|
+
bookmarkFolderRef: Types.ObjectId;
|
|
6
|
+
user: Types.ObjectId;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
updateAt: Date;
|
|
9
|
+
isDeleted: boolean;
|
|
5
10
|
}
|
|
6
11
|
export interface IBookmarkFolder extends Document {
|
|
7
12
|
name: string;
|
|
8
13
|
user: Types.ObjectId;
|
|
9
|
-
templates: IBookmarkTemplate[];
|
|
10
14
|
createdAt: Date;
|
|
11
15
|
updateAt: Date;
|
|
12
16
|
isDeleted: boolean;
|
|
13
17
|
}
|
|
14
|
-
export declare const
|
|
18
|
+
export declare const BookmarkFolderModel: import("mongoose").Model<IBookmarkFolder, {}, {}, {}, Document<unknown, {}, IBookmarkFolder> & IBookmarkFolder & Required<{
|
|
19
|
+
_id: unknown;
|
|
20
|
+
}> & {
|
|
21
|
+
__v: number;
|
|
22
|
+
}, any>;
|
|
23
|
+
export declare const BookmarkTemplateModel: import("mongoose").Model<IBookmarkTemplate, {}, {}, {}, Document<unknown, {}, IBookmarkTemplate> & IBookmarkTemplate & Required<{
|
|
15
24
|
_id: unknown;
|
|
16
25
|
}> & {
|
|
17
26
|
__v: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookmark.entity.d.ts","sourceRoot":"","sources":["../../src/entity/bookmark.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bookmark.entity.d.ts","sourceRoot":"","sources":["../../src/entity/bookmark.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,QAAQ,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAE1D,MAAM,WAAW,iBAAkB,SAAQ,QAAQ;IACjD,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,iBAAiB,EAAE,KAAK,CAAC,QAAQ,CAAC;IAClC,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,IAAI,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,eAAgB,SAAQ,QAAQ;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,IAAI,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;CACpB;AAiBD,eAAO,MAAM,mBAAmB;;;;OAAkE,CAAC;AACnG,eAAO,MAAM,qBAAqB;;;;OAAwE,CAAC"}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BookmarkTemplateModel = exports.BookmarkFolderModel = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const BookmarkTemplateSchema = new mongoose_1.Schema({
|
|
6
6
|
template: { type: mongoose_1.Schema.Types.ObjectId, ref: 'template', required: true, },
|
|
7
7
|
addedAt: { type: Date, default: Date.now, },
|
|
8
|
-
|
|
8
|
+
bookmarkFolderRef: { type: mongoose_1.Schema.Types.ObjectId, ref: 'bookmark-folder', required: true },
|
|
9
|
+
user: { type: mongoose_1.Schema.Types.ObjectId, required: true },
|
|
10
|
+
isDeleted: { type: Boolean, default: false }
|
|
11
|
+
}, { timestamps: true });
|
|
9
12
|
const BookmarkFolderSchema = new mongoose_1.Schema({
|
|
10
13
|
name: { type: String, required: true, },
|
|
11
|
-
user: { type: mongoose_1.Schema.Types.ObjectId, ref: 'user', required: true
|
|
12
|
-
templates: [BookmarkTemplateSchema],
|
|
14
|
+
user: { type: mongoose_1.Schema.Types.ObjectId, ref: 'user', required: true },
|
|
13
15
|
isDeleted: { type: Boolean, default: false }
|
|
14
16
|
}, { timestamps: true });
|
|
15
|
-
exports.
|
|
17
|
+
exports.BookmarkFolderModel = (0, mongoose_1.model)('bookmark-folder', BookmarkFolderSchema);
|
|
18
|
+
exports.BookmarkTemplateModel = (0, mongoose_1.model)('bookmark-template', BookmarkTemplateSchema);
|
|
@@ -15,6 +15,8 @@ export interface ISMTPConfig {
|
|
|
15
15
|
userName: string;
|
|
16
16
|
password: string;
|
|
17
17
|
encriptionMethod: ENCRYPTION_METHOD;
|
|
18
|
+
fromName: string;
|
|
19
|
+
fromEmail: string;
|
|
18
20
|
}
|
|
19
21
|
export interface IGmailConfig {
|
|
20
22
|
email: string;
|
|
@@ -25,8 +27,6 @@ export interface IEmailConfiguration extends Document {
|
|
|
25
27
|
method: CONFIG_METHOD;
|
|
26
28
|
smtpConfig?: ISMTPConfig;
|
|
27
29
|
gmailConfig?: IGmailConfig;
|
|
28
|
-
fromName: string;
|
|
29
|
-
fromEmail: string;
|
|
30
30
|
isDeleted: boolean;
|
|
31
31
|
updatedBy: Types.ObjectId;
|
|
32
32
|
createdAt: Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emailConfiguration.entity.d.ts","sourceRoot":"","sources":["../../src/entity/emailConfiguration.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,EAAE,MAAM,UAAU,CAAC;AAEhD,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,oBAAY,iBAAiB;IAC3B,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"emailConfiguration.entity.d.ts","sourceRoot":"","sources":["../../src/entity/emailConfiguration.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,EAAE,MAAM,UAAU,CAAC;AAEhD,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,oBAAY,iBAAiB;IAC3B,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,mBAAoB,SAAQ,QAAQ;IACnD,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC1B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB;AAoCD,eAAO,MAAM,uBAAuB;SAAu8F,MAAO,QAAQ;;;OAAx4F,CAAC"}
|
|
@@ -19,7 +19,9 @@ const smtpConfigSchema = new mongoose_1.Schema({
|
|
|
19
19
|
secure: { type: Boolean, required: true },
|
|
20
20
|
userName: { type: String, required: true },
|
|
21
21
|
password: { type: String, required: true },
|
|
22
|
-
encriptionMethod: { type: String, enum: Object.values(ENCRYPTION_METHOD), required: true }
|
|
22
|
+
encriptionMethod: { type: String, enum: Object.values(ENCRYPTION_METHOD), required: true },
|
|
23
|
+
fromName: { type: String, required: true },
|
|
24
|
+
fromEmail: { type: String, required: true },
|
|
23
25
|
}, { _id: false });
|
|
24
26
|
const gmailConfigSchema = new mongoose_1.Schema({
|
|
25
27
|
email: { type: String, required: true },
|
|
@@ -30,8 +32,6 @@ const EmailConfigurationSchema = new mongoose_1.Schema({
|
|
|
30
32
|
method: { type: String, enum: Object.values(CONFIG_METHOD), required: true },
|
|
31
33
|
smtpConfig: { type: smtpConfigSchema, required: false },
|
|
32
34
|
gmailConfig: { type: gmailConfigSchema, required: false },
|
|
33
|
-
fromName: { type: String, required: true },
|
|
34
|
-
fromEmail: { type: String, required: true },
|
|
35
35
|
isDeleted: { type: Boolean, default: false },
|
|
36
36
|
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: "user" },
|
|
37
37
|
}, { timestamps: true });
|
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,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
|
package/dist/entity/index.js
CHANGED
|
@@ -25,3 +25,4 @@ __exportStar(require("./emailConfiguration.entity"), exports);
|
|
|
25
25
|
__exportStar(require("./organisationTeams.entity"), exports);
|
|
26
26
|
__exportStar(require("./organisation.entity"), exports);
|
|
27
27
|
__exportStar(require("./bookmark.entity"), exports);
|
|
28
|
+
__exportStar(require("./user-info.entity"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planHistory.entity.d.ts","sourceRoot":"","sources":["../../src/entity/planHistory.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE1D,MAAM,WAAW,mBAAmB;IAClC,kBAAkB,EAAE,KAAK,CAAC,QAAQ,CAAC;IACnC,aAAa,EA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1C,iBAAiB,EAAE,kBAAkB,CAAC;CACvC;AAED,eAAO,MAAM,wBAAwB;SA8Bk9E,MAAO,QAAQ;;;;SAAf,MAAO,QAAQ;;;EAzBp/E,CAAC;AAEnB,eAAO,MAAM,uBAAuB;SAuBm9E,MAAO,QAAQ;;;;SAAf,MAAO,QAAQ;;;EAjBp/E,CAAC;AAEnB,eAAO,MAAM,iBAAiB;;;;;;;;EAYN,CAAC;AAEzB,eAAO,MAAM,gBAAgB;;;;OAAyD,CAAC"}
|
|
@@ -14,7 +14,6 @@ exports.SubscriptionQuotaSchema = new mongoose_1.Schema({
|
|
|
14
14
|
privateTemplateCount: { type: Number, required: true },
|
|
15
15
|
smtpConfigAllowed: { type: Boolean, default: false },
|
|
16
16
|
canCreateOrganisation: { type: Boolean, default: false },
|
|
17
|
-
userLimit: { type: Number, default: 0, }
|
|
18
17
|
}, { _id: false });
|
|
19
18
|
exports.PlanHistorySchema = new mongoose_1.Schema({
|
|
20
19
|
user: { type: mongoose_1.Schema.Types.ObjectId, ref: "user", required: true },
|