biz-email-builder-shared 1.6.86 → 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.
- package/dist/entity/branding.entity.d.ts +23 -0
- package/dist/entity/branding.entity.d.ts.map +1 -0
- package/dist/entity/branding.entity.js +21 -0
- 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/types/ITemplate.d.ts +6 -0
- package/dist/types/ITemplate.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -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);
|
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;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"}
|
package/dist/entity/index.js
CHANGED
|
@@ -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);
|
|
@@ -10,6 +10,12 @@ interface IProps {
|
|
|
10
10
|
altText: string;
|
|
11
11
|
cellWidths: number[];
|
|
12
12
|
responsive: boolean;
|
|
13
|
+
videoUrl: string;
|
|
14
|
+
youtubeVideoUrl: string;
|
|
15
|
+
thumbnailUrl: string;
|
|
16
|
+
shape: string;
|
|
17
|
+
hideOnDesktop: boolean;
|
|
18
|
+
hideOnMobile: boolean;
|
|
13
19
|
}
|
|
14
20
|
interface IStyle {
|
|
15
21
|
[key: string]: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ITemplate.d.ts","sourceRoot":"","sources":["../../src/types/ITemplate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,UAAU,MAAM;
|
|
1
|
+
{"version":3,"file":"ITemplate.d.ts","sourceRoot":"","sources":["../../src/types/ITemplate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,UAAU,MAAM;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,UAAU,MAAM;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IAC1B,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,EAAC,MAAM,CAAC;IACjB,IAAI,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,EAAE,CAAC;KACtB,CAAC;CACF;AAED,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;IACzB,UAAU,EAAE,UAAU,CAAC;CACvB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "biz-email-builder-shared",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.88",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@sendgrid/client": "^8.1.5",
|
|
16
|
-
"email-builder-utils": "^1.1.
|
|
16
|
+
"email-builder-utils": "^1.1.31",
|
|
17
17
|
"express": "^4.18.2",
|
|
18
18
|
"joi": "^17.11.0",
|
|
19
19
|
"jsonwebtoken": "^9.0.2",
|