biz-email-builder-shared 1.6.39 → 1.6.41
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 +11 -3
- package/dist/entity/bookmark.entity.d.ts.map +1 -1
- package/dist/entity/bookmark.entity.js +7 -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/organisationTeams.entity.d.ts +7 -0
- package/dist/entity/organisationTeams.entity.d.ts.map +1 -1
- package/dist/entity/organisationTeams.entity.js +2 -1
- 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,25 @@
|
|
|
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
|
+
createdAt: Date;
|
|
7
|
+
updateAt: Date;
|
|
8
|
+
isDeleted: boolean;
|
|
5
9
|
}
|
|
6
10
|
export interface IBookmarkFolder extends Document {
|
|
7
11
|
name: string;
|
|
8
12
|
user: Types.ObjectId;
|
|
9
|
-
templates: IBookmarkTemplate[];
|
|
10
13
|
createdAt: Date;
|
|
11
14
|
updateAt: Date;
|
|
12
15
|
isDeleted: boolean;
|
|
13
16
|
}
|
|
14
|
-
export declare const
|
|
17
|
+
export declare const BookmarkFolderModel: import("mongoose").Model<IBookmarkFolder, {}, {}, {}, Document<unknown, {}, IBookmarkFolder> & IBookmarkFolder & Required<{
|
|
18
|
+
_id: unknown;
|
|
19
|
+
}> & {
|
|
20
|
+
__v: number;
|
|
21
|
+
}, any>;
|
|
22
|
+
export declare const BookmarkTemplateModel: import("mongoose").Model<IBookmarkTemplate, {}, {}, {}, Document<unknown, {}, IBookmarkTemplate> & IBookmarkTemplate & Required<{
|
|
15
23
|
_id: unknown;
|
|
16
24
|
}> & {
|
|
17
25
|
__v: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookmark.entity.d.ts","sourceRoot":"","sources":["../../src/entity/bookmark.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,QAAQ,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAE1D,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"bookmark.entity.d.ts","sourceRoot":"","sources":["../../src/entity/bookmark.entity.ts"],"names":[],"mappings":"AAAA,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,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;AAgBD,eAAO,MAAM,mBAAmB;;;;OAAkE,CAAC;AACnG,eAAO,MAAM,qBAAqB;;;;OAAwE,CAAC"}
|
|
@@ -1,15 +1,17 @@
|
|
|
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
|
+
isDeleted: { type: Boolean, default: false }
|
|
10
|
+
}, { timestamps: true });
|
|
9
11
|
const BookmarkFolderSchema = new mongoose_1.Schema({
|
|
10
12
|
name: { type: String, required: true, },
|
|
11
|
-
user: { type: mongoose_1.Schema.Types.ObjectId, ref: 'user', required: true
|
|
12
|
-
templates: [BookmarkTemplateSchema],
|
|
13
|
+
user: { type: mongoose_1.Schema.Types.ObjectId, ref: 'user', required: true },
|
|
13
14
|
isDeleted: { type: Boolean, default: false }
|
|
14
15
|
}, { timestamps: true });
|
|
15
|
-
exports.
|
|
16
|
+
exports.BookmarkFolderModel = (0, mongoose_1.model)('bookmark-folder', BookmarkFolderSchema);
|
|
17
|
+
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 });
|
|
@@ -3,6 +3,7 @@ import { INVITE_STATUS } from "../utilities";
|
|
|
3
3
|
export interface IOrganisationTeamSchema extends Document {
|
|
4
4
|
organisationId: Types.ObjectId;
|
|
5
5
|
user: Types.ObjectId;
|
|
6
|
+
email: string;
|
|
6
7
|
features: Types.ObjectId[];
|
|
7
8
|
inviteStatus: INVITE_STATUS;
|
|
8
9
|
isDeleted: boolean;
|
|
@@ -15,6 +16,7 @@ export declare const OrganisationTeamModel: import("mongoose").Model<{
|
|
|
15
16
|
createdAt: NativeDate;
|
|
16
17
|
updatedAt: NativeDate;
|
|
17
18
|
} & {
|
|
19
|
+
email: string;
|
|
18
20
|
user: {
|
|
19
21
|
prototype?: Types.ObjectId | null | undefined;
|
|
20
22
|
cacheHexString?: unknown;
|
|
@@ -42,6 +44,7 @@ export declare const OrganisationTeamModel: import("mongoose").Model<{
|
|
|
42
44
|
createdAt: NativeDate;
|
|
43
45
|
updatedAt: NativeDate;
|
|
44
46
|
} & {
|
|
47
|
+
email: string;
|
|
45
48
|
user: {
|
|
46
49
|
prototype?: Types.ObjectId | null | undefined;
|
|
47
50
|
cacheHexString?: unknown;
|
|
@@ -69,6 +72,7 @@ export declare const OrganisationTeamModel: import("mongoose").Model<{
|
|
|
69
72
|
createdAt: NativeDate;
|
|
70
73
|
updatedAt: NativeDate;
|
|
71
74
|
} & {
|
|
75
|
+
email: string;
|
|
72
76
|
user: {
|
|
73
77
|
prototype?: Types.ObjectId | null | undefined;
|
|
74
78
|
cacheHexString?: unknown;
|
|
@@ -102,6 +106,7 @@ export declare const OrganisationTeamModel: import("mongoose").Model<{
|
|
|
102
106
|
createdAt: NativeDate;
|
|
103
107
|
updatedAt: NativeDate;
|
|
104
108
|
} & {
|
|
109
|
+
email: string;
|
|
105
110
|
user: {
|
|
106
111
|
prototype?: Types.ObjectId | null | undefined;
|
|
107
112
|
cacheHexString?: unknown;
|
|
@@ -129,6 +134,7 @@ export declare const OrganisationTeamModel: import("mongoose").Model<{
|
|
|
129
134
|
createdAt: NativeDate;
|
|
130
135
|
updatedAt: NativeDate;
|
|
131
136
|
} & {
|
|
137
|
+
email: string;
|
|
132
138
|
user: {
|
|
133
139
|
prototype?: Types.ObjectId | null | undefined;
|
|
134
140
|
cacheHexString?: unknown;
|
|
@@ -156,6 +162,7 @@ export declare const OrganisationTeamModel: import("mongoose").Model<{
|
|
|
156
162
|
createdAt: NativeDate;
|
|
157
163
|
updatedAt: NativeDate;
|
|
158
164
|
} & {
|
|
165
|
+
email: string;
|
|
159
166
|
user: {
|
|
160
167
|
prototype?: Types.ObjectId | null | undefined;
|
|
161
168
|
cacheHexString?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organisationTeams.entity.d.ts","sourceRoot":"","sources":["../../src/entity/organisationTeams.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"organisationTeams.entity.d.ts","sourceRoot":"","sources":["../../src/entity/organisationTeams.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG7C,MAAM,WAAW,uBAAwB,SAAQ,QAAQ;IACvD,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC/B,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC3B,YAAY,EAAE,aAAa,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC;CAC3B;AAaD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SACgvH,MAAO,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAf,MAAO,QAAQ;;;GAD1sH,CAAC"}
|
|
@@ -5,7 +5,8 @@ const mongoose_1 = require("mongoose");
|
|
|
5
5
|
const utilities_1 = require("../utilities");
|
|
6
6
|
const OrganisationTeamSchema = new mongoose_1.Schema({
|
|
7
7
|
organisationId: { type: mongoose_1.Types.ObjectId, ref: "organisation", required: true },
|
|
8
|
-
user: { type: mongoose_1.Types.ObjectId, ref: "user",
|
|
8
|
+
user: { type: mongoose_1.Types.ObjectId, ref: "user", default: null },
|
|
9
|
+
email: { type: String, required: true },
|
|
9
10
|
features: { type: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'feature' }], default: [], _id: false },
|
|
10
11
|
inviteStatus: { type: String, enum: Object.values(utilities_1.INVITE_STATUS), default: utilities_1.INVITE_STATUS.PENDING },
|
|
11
12
|
isDeleted: { type: Boolean, default: false },
|
|
@@ -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,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,OAAO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AAC;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 },
|