biz-email-builder-shared 1.6.61 → 1.6.63

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,19 @@
1
+ import { Types, Document } from "mongoose";
2
+ export interface ICampaign extends Document {
3
+ name: string;
4
+ description?: string;
5
+ createdBy?: Types.ObjectId;
6
+ templateId: Types.ObjectId;
7
+ templateVersion: number;
8
+ organisationId: Types.ObjectId;
9
+ isDeleted?: boolean;
10
+ updateBy?: Types.ObjectId;
11
+ createdAt: Date;
12
+ updatedAt: Date;
13
+ }
14
+ export declare const CampaignModel: import("mongoose").Model<ICampaign, {}, {}, {}, Document<unknown, {}, ICampaign> & ICampaign & Required<{
15
+ _id: unknown;
16
+ }> & {
17
+ __v: number;
18
+ }, any>;
19
+ //# sourceMappingURL=campaign.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"campaign.entity.d.ts","sourceRoot":"","sources":["../../src/entity/campaign.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE1D,MAAM,WAAW,SAAU,SAAQ,QAAQ;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC3B,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC1B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB;AAgBD,eAAO,MAAM,aAAa;;;;OAA+C,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CampaignModel = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const CampaignSchema = new mongoose_1.Schema({
6
+ name: { type: String, required: true },
7
+ description: { type: String, default: null },
8
+ createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: "user", required: true },
9
+ templateId: { type: mongoose_1.Schema.Types.ObjectId, ref: "template", required: true },
10
+ templateVersion: { type: Number, required: true, default: 0 },
11
+ organisationId: { type: mongoose_1.Schema.Types.ObjectId, ref: "organisation", required: false, default: null },
12
+ isDeleted: { type: Boolean, default: false },
13
+ updateBy: { type: mongoose_1.Schema.Types.ObjectId, ref: "user", default: null },
14
+ }, { timestamps: true });
15
+ exports.CampaignModel = (0, mongoose_1.model)("campaign", CampaignSchema);
@@ -0,0 +1,15 @@
1
+ import { Types } from "mongoose";
2
+ export interface ICampaignUsers extends Document {
3
+ campaignId: Types.ObjectId;
4
+ email: string;
5
+ sentAt?: Date;
6
+ createdAt: Date;
7
+ updatedAt: Date;
8
+ isDelivered?: boolean;
9
+ }
10
+ export declare const CampaignUsersModel: import("mongoose").Model<ICampaignUsers, {}, {}, {}, import("mongoose").Document<unknown, {}, ICampaignUsers> & ICampaignUsers & {
11
+ _id: Types.ObjectId;
12
+ } & {
13
+ __v: number;
14
+ }, any>;
15
+ //# sourceMappingURL=campaignUsers.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"campaignUsers.entity.d.ts","sourceRoot":"","sources":["../../src/entity/campaignUsers.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC9C,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAYD,eAAO,MAAM,kBAAkB;SACouI,MAAO,QAAQ;;;OADprI,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CampaignUsersModel = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const CampaignUsersSchema = new mongoose_1.Schema({
6
+ campaignId: { type: mongoose_1.Schema.Types.ObjectId, ref: "campaign", required: true },
7
+ email: { type: String, required: true },
8
+ sentAt: { type: Date, default: Date.now },
9
+ isDelivered: { type: Boolean, default: false },
10
+ }, { timestamps: true });
11
+ exports.CampaignUsersModel = (0, mongoose_1.model)("campaign-users", CampaignUsersSchema);
@@ -0,0 +1,32 @@
1
+ import { Types, Document } from "mongoose";
2
+ export interface ICampaign extends Document {
3
+ name: string;
4
+ description?: string;
5
+ createdBy?: Types.ObjectId;
6
+ templateId: Types.ObjectId;
7
+ templateVersion: number;
8
+ organisationId: Types.ObjectId;
9
+ isDeleted?: boolean;
10
+ updateBy?: Types.ObjectId;
11
+ createdAt: Date;
12
+ updatedAt: Date;
13
+ }
14
+ export interface ICampaignUsers extends Document {
15
+ campaignId: Types.ObjectId;
16
+ email: string;
17
+ sentAt?: Date;
18
+ createdAt: Date;
19
+ updatedAt: Date;
20
+ isDelivered?: boolean;
21
+ }
22
+ export declare const CampaignUsersModel: import("mongoose").Model<ICampaignUsers, {}, {}, {}, Document<unknown, {}, ICampaignUsers> & ICampaignUsers & Required<{
23
+ _id: unknown;
24
+ }> & {
25
+ __v: number;
26
+ }, any>;
27
+ export declare const CampaignModel: import("mongoose").Model<ICampaign, {}, {}, {}, Document<unknown, {}, ICampaign> & ICampaign & Required<{
28
+ _id: unknown;
29
+ }> & {
30
+ __v: number;
31
+ }, any>;
32
+ //# sourceMappingURL=compaign.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compaign.d.ts","sourceRoot":"","sources":["../../src/entity/compaign.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE1D,MAAM,WAAW,SAAU,SAAQ,QAAQ;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC3B,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC1B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB;AAgBD,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC9C,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAYD,eAAO,MAAM,kBAAkB;;;;OAA+D,CAAC;AAC/F,eAAO,MAAM,aAAa;;;;OAA+C,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CampaignModel = exports.CampaignUsersModel = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const CampaignSchema = new mongoose_1.Schema({
6
+ name: { type: String, required: true },
7
+ description: { type: String, default: null },
8
+ createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: "user", required: true },
9
+ templateId: { type: mongoose_1.Schema.Types.ObjectId, ref: "template", required: true },
10
+ templateVersion: { type: Number, required: true, default: 0 },
11
+ organisationId: { type: mongoose_1.Schema.Types.ObjectId, ref: "organisation", required: false, default: null },
12
+ isDeleted: { type: Boolean, default: false },
13
+ updateBy: { type: mongoose_1.Schema.Types.ObjectId, ref: "user", default: null },
14
+ }, { timestamps: true });
15
+ const CampaignUsersSchema = new mongoose_1.Schema({
16
+ campaignId: { type: mongoose_1.Schema.Types.ObjectId, ref: "campaign", required: true },
17
+ email: { type: String, required: true },
18
+ sentAt: { type: Date, default: Date.now },
19
+ isDelivered: { type: Boolean, default: false },
20
+ }, { timestamps: true });
21
+ exports.CampaignUsersModel = (0, mongoose_1.model)("campaign-users", CampaignUsersSchema);
22
+ exports.CampaignModel = (0, mongoose_1.model)("campaign", CampaignSchema);
@@ -13,4 +13,6 @@ export * from "./user-info.entity";
13
13
  export * from "./license.entity";
14
14
  export * from "./prompt.entity";
15
15
  export * from "./socket.entity";
16
+ export * from "./campaign.entity";
17
+ export * from "./campaignUsers.entity";
16
18
  //# sourceMappingURL=index.d.ts.map
@@ -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;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,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;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC"}
@@ -29,3 +29,5 @@ __exportStar(require("./user-info.entity"), exports);
29
29
  __exportStar(require("./license.entity"), exports);
30
30
  __exportStar(require("./prompt.entity"), exports);
31
31
  __exportStar(require("./socket.entity"), exports);
32
+ __exportStar(require("./campaign.entity"), exports);
33
+ __exportStar(require("./campaignUsers.entity"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz-email-builder-shared",
3
- "version": "1.6.61",
3
+ "version": "1.6.63",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [