biz-email-builder-shared 1.6.87 → 1.6.88

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,23 @@
1
+ import { Document, Types } from "mongoose";
2
+ export interface IBrand extends Document {
3
+ name: string;
4
+ colorPalette: {
5
+ colorName: string;
6
+ hex: string;
7
+ }[];
8
+ typography: {
9
+ text: string;
10
+ fontSize: number;
11
+ hex: string;
12
+ }[];
13
+ createdAt: Date;
14
+ updatedAt: Date;
15
+ isDeleted?: boolean;
16
+ createdBy?: Types.ObjectId;
17
+ }
18
+ export declare const BrandModel: import("mongoose").Model<IBrand, {}, {}, {}, Document<unknown, {}, IBrand> & IBrand & Required<{
19
+ _id: unknown;
20
+ }> & {
21
+ __v: number;
22
+ }, any>;
23
+ //# sourceMappingURL=branding.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"branding.entity.d.ts","sourceRoot":"","sources":["../../src/entity/branding.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,QAAQ,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAE1D,MAAM,WAAW,MAAO,SAAQ,QAAQ;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACnD,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC9D,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;CAC5B;AA8BD,eAAO,MAAM,UAAU;;;;OAAsC,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BrandModel = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const ColorSchema = new mongoose_1.Schema({
6
+ colorName: { type: String, required: true },
7
+ hex: { type: String, required: true },
8
+ }, { _id: false });
9
+ const TypographySchema = new mongoose_1.Schema({
10
+ text: { type: String, required: true },
11
+ fontSize: { type: Number, required: true },
12
+ hex: { type: String, required: true },
13
+ }, { _id: false });
14
+ const BrandSchema = new mongoose_1.Schema({
15
+ name: { type: String, required: true, trim: true },
16
+ colorPalette: { type: [ColorSchema], required: true },
17
+ typography: { type: [TypographySchema], required: true },
18
+ isDeleted: { type: Boolean, default: false },
19
+ createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: "user", required: true },
20
+ }, { timestamps: true });
21
+ exports.BrandModel = (0, mongoose_1.model)("brand", BrandSchema);
@@ -15,4 +15,5 @@ export * from "./prompt.entity";
15
15
  export * from "./socket.entity";
16
16
  export * from "./campaign.entity";
17
17
  export * from "./campaignUsers.entity";
18
+ export * from "./branding.entity";
18
19
  //# 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;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,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;AACvC,cAAc,mBAAmB,CAAC"}
@@ -31,3 +31,4 @@ __exportStar(require("./prompt.entity"), exports);
31
31
  __exportStar(require("./socket.entity"), exports);
32
32
  __exportStar(require("./campaign.entity"), exports);
33
33
  __exportStar(require("./campaignUsers.entity"), exports);
34
+ __exportStar(require("./branding.entity"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz-email-builder-shared",
3
- "version": "1.6.87",
3
+ "version": "1.6.88",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [