biz-email-builder-shared 1.0.12 → 1.0.13

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,12 @@
1
+ interface IFeature {
2
+ name: string;
3
+ isDeleted: boolean;
4
+ createdAt: Date;
5
+ updatedAt: Date;
6
+ deletedAt: Date;
7
+ }
8
+ export declare const FeatureModel: import("mongoose").Model<IFeature, {}, {}, {}, import("mongoose").Document<unknown, {}, IFeature> & Omit<IFeature & {
9
+ _id: import("mongoose").Types.ObjectId;
10
+ }, never>, any>;
11
+ export {};
12
+ //# sourceMappingURL=feature.entitiy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.entitiy.d.ts","sourceRoot":"","sources":["../../src/entity/feature.entitiy.ts"],"names":[],"mappings":"AAEA,UAAU,QAAQ;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB;AAaD,eAAO,MAAM,YAAY;;eAA4C,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FeatureModel = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const FeatureSchema = new mongoose_1.Schema({
6
+ name: { type: String, unique: true, sparse: true },
7
+ isDeleted: { type: Boolean, default: false },
8
+ deletedAt: { type: Date, default: null },
9
+ }, {
10
+ timestamps: true,
11
+ });
12
+ exports.FeatureModel = (0, mongoose_1.model)("feature", FeatureSchema);
@@ -1,3 +1,5 @@
1
1
  export * from "./user.entity";
2
2
  export * from "./emailTemplate.entity";
3
+ export * from "./role.entitty";
4
+ export * from "./feature.entitiy";
3
5
  //# 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,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC"}
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./user.entity"), exports);
18
18
  __exportStar(require("./emailTemplate.entity"), exports);
19
+ __exportStar(require("./role.entitty"), exports);
20
+ __exportStar(require("./feature.entitiy"), exports);
@@ -0,0 +1,14 @@
1
+ import { Types } from "mongoose";
2
+ interface IRole {
3
+ name: string;
4
+ isDeleted: boolean;
5
+ createdAt: Date;
6
+ updatedAt: Date;
7
+ deletedAt: Date;
8
+ features: Types.ObjectId[];
9
+ }
10
+ export declare const RoleModel: import("mongoose").Model<IRole, {}, {}, {}, import("mongoose").Document<unknown, {}, IRole> & Omit<IRole & {
11
+ _id: Types.ObjectId;
12
+ }, never>, any>;
13
+ export {};
14
+ //# sourceMappingURL=role.entitty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role.entitty.d.ts","sourceRoot":"","sources":["../../src/entity/role.entitty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,EAAE,MAAM,UAAU,CAAC;AAEhD,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,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,EAAE,CAAC;CAC5B;AAcD,eAAO,MAAM,SAAS;SAC4mI,MAAO,QAAQ;eADxlI,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RoleModel = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const RoleSchema = new mongoose_1.Schema({
6
+ name: { type: String, unique: true, sparse: true },
7
+ isDeleted: { type: Boolean, default: false },
8
+ deletedAt: { type: Date, default: null },
9
+ features: { type: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'feature' }], default: [], _id: false },
10
+ }, {
11
+ timestamps: true,
12
+ });
13
+ exports.RoleModel = (0, mongoose_1.model)("role", RoleSchema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz-email-builder-shared",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [