biz-email-builder-shared 1.0.12 → 1.0.14
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/feature.entitiy.d.ts +12 -0
- package/dist/entity/feature.entitiy.d.ts.map +1 -0
- package/dist/entity/feature.entitiy.js +12 -0
- package/dist/entity/index.d.ts +2 -0
- package/dist/entity/index.d.ts.map +1 -1
- package/dist/entity/index.js +2 -0
- package/dist/entity/role.entitty.d.ts +14 -0
- package/dist/entity/role.entitty.d.ts.map +1 -0
- package/dist/entity/role.entitty.js +13 -0
- package/dist/utilities/index.d.ts +4 -1
- package/dist/utilities/index.d.ts.map +1 -1
- package/dist/utilities/index.js +7 -5
- package/package.json +1 -1
|
@@ -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);
|
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,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"}
|
package/dist/entity/index.js
CHANGED
|
@@ -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);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utilities/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AAEnC,oBAAY,KAAK;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,oBAAY,QAAQ;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utilities/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AAEnC,oBAAY,KAAK;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,oBAAY,WAAW;IACrB,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,WAAW,gBAAgB;CAC5B"}
|
package/dist/utilities/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.RECORD_TYPE = exports.ROLES = void 0;
|
|
18
18
|
__exportStar(require("./callWithRetries"), exports);
|
|
19
19
|
__exportStar(require("./createFolder"), exports);
|
|
20
20
|
__exportStar(require("./encryptionUtils"), exports);
|
|
@@ -24,7 +24,9 @@ var ROLES;
|
|
|
24
24
|
ROLES["ADMIN"] = "ADMIN";
|
|
25
25
|
ROLES["USER"] = "USER";
|
|
26
26
|
})(ROLES || (exports.ROLES = ROLES = {}));
|
|
27
|
-
var
|
|
28
|
-
(function (
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
var RECORD_TYPE;
|
|
28
|
+
(function (RECORD_TYPE) {
|
|
29
|
+
RECORD_TYPE["ALL"] = "ALL";
|
|
30
|
+
RECORD_TYPE["ARCHIVE"] = "ARCHIVE";
|
|
31
|
+
RECORD_TYPE["NON_ARCHIVE"] = "NON_ARCHIVE";
|
|
32
|
+
})(RECORD_TYPE || (exports.RECORD_TYPE = RECORD_TYPE = {}));
|