identity-admin 1.25.8 → 1.25.9

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,2 @@
1
+ import { Schema, SchemaOptions } from "mongoose";
2
+ export declare function getCustomPageSchema(schemaOptions: SchemaOptions): Schema;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCustomPageSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ function getCustomPageSchema(schemaOptions) {
6
+ return new mongoose_1.Schema({
7
+ key: {
8
+ type: String,
9
+ required: true,
10
+ index: true,
11
+ unique: true
12
+ },
13
+ title: {
14
+ type: String,
15
+ required: true,
16
+ },
17
+ content: {
18
+ type: String,
19
+ required: true,
20
+ },
21
+ disableMainLayoutHeader: {
22
+ type: Boolean,
23
+ required: false,
24
+ default: false
25
+ },
26
+ disableMainLayoutFooter: {
27
+ type: Boolean,
28
+ required: false,
29
+ default: false
30
+ },
31
+ }, schemaOptions);
32
+ }
33
+ exports.getCustomPageSchema = getCustomPageSchema;
@@ -0,0 +1,16 @@
1
+ import { Document, Model, Types } from "mongoose";
2
+ export interface ICustomPageProps {
3
+ _id?: Types.ObjectId;
4
+ key: string;
5
+ title: string;
6
+ content: string;
7
+ disableMainLayoutHeader?: boolean;
8
+ disableMainLayoutFooter?: boolean;
9
+ }
10
+ export interface ICustomPageDocument extends ICustomPageProps, Document {
11
+ _id: Types.ObjectId;
12
+ createdAt: Date;
13
+ updatedAt: Date;
14
+ }
15
+ export default interface ICustomPageModel extends Model<ICustomPageDocument> {
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "identity-admin",
3
- "version": "1.25.8",
3
+ "version": "1.25.9",
4
4
  "description": "",
5
5
  "main": "lib/Dashboard.js",
6
6
  "types": "lib/Dashbord.d.ts",