biz-email-builder-shared 1.6.43 → 1.6.44
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 +1 -0
- package/dist/entity/index.d.ts.map +1 -1
- package/dist/entity/index.js +1 -0
- package/dist/entity/license.entity.d.ts +17 -0
- package/dist/entity/license.entity.d.ts.map +1 -0
- package/dist/entity/license.entity.js +14 -0
- package/dist/entity/subscriptionPlan.entity.d.ts +0 -1
- package/dist/entity/subscriptionPlan.entity.d.ts.map +1 -1
- package/dist/entity/subscriptionPlan.entity.js +0 -1
- package/dist/entity/user-info.entity.d.ts +2 -1
- package/dist/entity/user-info.entity.d.ts.map +1 -1
- package/dist/entity/user-info.entity.js +2 -1
- package/package.json +1 -1
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;AAClC,cAAc,oBAAoB,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;AACnC,cAAc,kBAAkB,CAAC"}
|
package/dist/entity/index.js
CHANGED
|
@@ -26,3 +26,4 @@ __exportStar(require("./organisationTeams.entity"), exports);
|
|
|
26
26
|
__exportStar(require("./organisation.entity"), exports);
|
|
27
27
|
__exportStar(require("./bookmark.entity"), exports);
|
|
28
28
|
__exportStar(require("./user-info.entity"), exports);
|
|
29
|
+
__exportStar(require("./license.entity"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Types } from "mongoose";
|
|
2
|
+
export interface ILicense extends Document {
|
|
3
|
+
user: Types.ObjectId;
|
|
4
|
+
startDate: Date;
|
|
5
|
+
endDate: Date;
|
|
6
|
+
pricePerMonth: number;
|
|
7
|
+
usedBy: Types.ObjectId;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
updatedAt: Date;
|
|
10
|
+
isDeleted: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const LicenseModel: import("mongoose").Model<ILicense, {}, {}, {}, import("mongoose").Document<unknown, {}, ILicense> & ILicense & {
|
|
13
|
+
_id: Types.ObjectId;
|
|
14
|
+
} & {
|
|
15
|
+
__v: number;
|
|
16
|
+
}, any>;
|
|
17
|
+
//# sourceMappingURL=license.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"license.entity.d.ts","sourceRoot":"","sources":["../../src/entity/license.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,WAAW,QAAS,SAAQ,QAAQ;IACxC,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC;IACvB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;CACpB;AAWD,eAAO,MAAM,YAAY;SAA8tI,MAAO,QAAQ;;;OAAjsI,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LicenseModel = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
;
|
|
6
|
+
const licenseSchema = new mongoose_1.Schema({
|
|
7
|
+
user: { type: mongoose_1.Schema.Types.ObjectId, ref: "user", required: true },
|
|
8
|
+
startDate: { type: Date, required: true, default: Date.now() },
|
|
9
|
+
endDate: { type: Date, default: null },
|
|
10
|
+
pricePerMonth: { type: Number, required: true },
|
|
11
|
+
usedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: "user", required: true },
|
|
12
|
+
isDeleted: { type: Boolean, default: false }
|
|
13
|
+
});
|
|
14
|
+
exports.LicenseModel = (0, mongoose_1.model)("license", licenseSchema);
|
|
@@ -10,7 +10,6 @@ export interface ISubscriptionPlan extends Document {
|
|
|
10
10
|
updatedBy: mongoose.Types.ObjectId;
|
|
11
11
|
deletedAt: Date;
|
|
12
12
|
isDefault: boolean;
|
|
13
|
-
userLimit: number;
|
|
14
13
|
}
|
|
15
14
|
export declare const SubscriptionPlanModel: mongoose.Model<ISubscriptionPlan, {}, {}, {}, mongoose.Document<unknown, {}, ISubscriptionPlan> & ISubscriptionPlan & {
|
|
16
15
|
_id: mongoose.Types.ObjectId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionPlan.entity.d.ts","sourceRoot":"","sources":["../../src/entity/subscriptionPlan.entity.ts"],"names":[],"mappings":"AAAA,OAAO,QAA2B,MAAM,UAAU,CAAC;AAEnD,MAAM,WAAW,iBAAkB,SAAQ,QAAQ;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;IACnC,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"subscriptionPlan.entity.d.ts","sourceRoot":"","sources":["../../src/entity/subscriptionPlan.entity.ts"],"names":[],"mappings":"AAAA,OAAO,QAA2B,MAAM,UAAU,CAAC;AAEnD,MAAM,WAAW,iBAAkB,SAAQ,QAAQ;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;IACnC,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;CACpB;AAiBD,eAAO,MAAM,qBAAqB;;;;OAAwE,CAAC"}
|
|
@@ -42,7 +42,6 @@ const SubscriptionPlanSchema = new mongoose_1.Schema({
|
|
|
42
42
|
publicTemplateLimit: { type: Number, required: true },
|
|
43
43
|
smtpConfigAllowed: { type: Boolean, required: true },
|
|
44
44
|
canCreateOrganisation: { type: Boolean, default: false },
|
|
45
|
-
userLimit: { type: Number, default: 0 },
|
|
46
45
|
isDeleted: { type: Boolean, default: false },
|
|
47
46
|
updatedBy: { type: mongoose_1.default.Schema.Types.ObjectId, ref: "user", required: true },
|
|
48
47
|
deletedAt: { type: Date, default: null },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Document } from 'mongoose';
|
|
1
|
+
import { Document, Types } from 'mongoose';
|
|
2
2
|
export interface IGeneralDetails {
|
|
3
3
|
companyName: string;
|
|
4
4
|
industry: string;
|
|
@@ -14,6 +14,7 @@ export interface UserInfo extends Document {
|
|
|
14
14
|
billingDetails: IBillingDetails;
|
|
15
15
|
createdAt: Date;
|
|
16
16
|
updateAt: Date;
|
|
17
|
+
user: Types.ObjectId;
|
|
17
18
|
isDeleted: boolean;
|
|
18
19
|
}
|
|
19
20
|
export declare const UserInfoModel: import("mongoose").Model<UserInfo, {}, {}, {}, Document<unknown, {}, UserInfo> & UserInfo & Required<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-info.entity.d.ts","sourceRoot":"","sources":["../../src/entity/user-info.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,QAAQ,EAAS,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"user-info.entity.d.ts","sourceRoot":"","sources":["../../src/entity/user-info.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,QAAQ,EAAS,KAAK,EAAE,MAAM,UAAU,CAAC;AAE1D,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,QAAS,SAAQ,QAAQ;IACxC,cAAc,EAAE,eAAe,CAAC;IAChC,cAAc,EAAE,eAAe,CAAC;IAChC,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,IAAI,CAAC;IACf,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;CACpB;AAwBD,eAAO,MAAM,aAAa;;;;OAA+C,CAAC"}
|
|
@@ -15,6 +15,7 @@ const BillingDetailsSchema = new mongoose_1.Schema({
|
|
|
15
15
|
const UserInfoSchema = new mongoose_1.Schema({
|
|
16
16
|
generalDetails: { type: GeneralDetailsSchema, required: true },
|
|
17
17
|
billingDetails: { type: BillingDetailsSchema, required: true },
|
|
18
|
-
isDeleted: { type: Boolean, default: false }
|
|
18
|
+
isDeleted: { type: Boolean, default: false },
|
|
19
|
+
user: { type: mongoose_1.Schema.Types.ObjectId, ref: "user", required: true }
|
|
19
20
|
}, { timestamps: true });
|
|
20
21
|
exports.UserInfoModel = (0, mongoose_1.model)('user-info', UserInfoSchema);
|