identity-admin 1.28.10 → 1.28.11
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/README.md +294 -294
- package/lib/Dashboard.d.ts +14 -14
- package/lib/Dashboard.js +95 -95
- package/lib/container/helpers/HelperInversify.d.ts +6 -6
- package/lib/container/helpers/HelperInversify.js +10 -10
- package/lib/container/helpers/HelperTypes.d.ts +5 -5
- package/lib/container/helpers/HelperTypes.js +7 -7
- package/lib/container/index.d.ts +1 -1
- package/lib/container/index.js +14 -14
- package/lib/container/repositories/RepositoryInversify.d.ts +4 -4
- package/lib/container/repositories/RepositoryInversify.js +13 -13
- package/lib/container/repositories/RepositoryTypes.d.ts +4 -4
- package/lib/container/repositories/RepositoryTypes.js +6 -6
- package/lib/container/types.d.ts +8 -8
- package/lib/container/types.js +9 -9
- package/lib/controllers/ActionController.d.ts +9 -9
- package/lib/controllers/ActionController.js +141 -141
- package/lib/controllers/AdminNotificationController.d.ts +8 -8
- package/lib/controllers/AdminNotificationController.js +69 -69
- package/lib/controllers/DashboardController.d.ts +44 -44
- package/lib/controllers/DashboardController.js +787 -787
- package/lib/controllers/ResourceController.d.ts +15 -15
- package/lib/controllers/ResourceController.js +135 -135
- package/lib/helpers/ActionsGenerator.d.ts +11 -11
- package/lib/helpers/ActionsGenerator.js +179 -179
- package/lib/helpers/AdminNotifications/AdminNotificationCreation.d.ts +54 -53
- package/lib/helpers/AdminNotifications/AdminNotificationCreation.js +66 -66
- package/lib/helpers/AdminNotifications/AdminNotificationFetcher.d.ts +63 -61
- package/lib/helpers/AdminNotifications/AdminNotificationFetcher.js +45 -44
- package/lib/helpers/FilterQueryHelper.d.ts +9 -9
- package/lib/helpers/FilterQueryHelper.js +83 -83
- package/lib/helpers/FiltersHelper.d.ts +9 -9
- package/lib/helpers/FiltersHelper.js +126 -126
- package/lib/helpers/LocalesHelper.d.ts +4 -4
- package/lib/helpers/LocalesHelper.js +73 -73
- package/lib/helpers/LocalizedStringHelper.d.ts +11 -11
- package/lib/helpers/LocalizedStringHelper.js +74 -74
- package/lib/helpers/Permissions/PermissionFetcher.d.ts +8 -8
- package/lib/helpers/Permissions/PermissionFetcher.js +95 -95
- package/lib/helpers/Permissions/PermissionLabel.d.ts +2 -2
- package/lib/helpers/Permissions/PermissionLabel.js +42 -42
- package/lib/helpers/Permissions/PermissionMapper.d.ts +13 -13
- package/lib/helpers/Permissions/PermissionMapper.js +35 -35
- package/lib/helpers/Permissions/PermissionResource.d.ts +6 -6
- package/lib/helpers/Permissions/PermissionResource.js +62 -62
- package/lib/helpers/Permissions/PermissionSavingService.d.ts +13 -13
- package/lib/helpers/Permissions/PermissionSavingService.js +32 -32
- package/lib/helpers/Permissions/SavePermissionGroup.d.ts +6 -6
- package/lib/helpers/Permissions/SavePermissionGroup.js +32 -32
- package/lib/helpers/Permissions/UpdatePermissionGroup.d.ts +6 -6
- package/lib/helpers/Permissions/UpdatePermissionGroup.js +50 -50
- package/lib/helpers/Permissions/types.d.ts +17 -17
- package/lib/helpers/Permissions/types.js +2 -2
- package/lib/helpers/PopulationHelper.d.ts +12 -12
- package/lib/helpers/PopulationHelper.js +50 -50
- package/lib/helpers/RecordsCounter.d.ts +10 -10
- package/lib/helpers/RecordsCounter.js +33 -33
- package/lib/helpers/ReportsGenerator.d.ts +26 -26
- package/lib/helpers/ReportsGenerator.js +162 -162
- package/lib/helpers/ResourceGenerator.d.ts +9 -9
- package/lib/helpers/ResourceGenerator.js +172 -172
- package/lib/helpers/ResourceHelper.d.ts +28 -28
- package/lib/helpers/ResourceHelper.js +395 -395
- package/lib/helpers/RportsGenerator.d.ts +10 -10
- package/lib/helpers/RportsGenerator.js +21 -21
- package/lib/helpers/SchemaGenerator.d.ts +7 -7
- package/lib/helpers/SchemaGenerator.js +132 -132
- package/lib/helpers/SchemaHelper.d.ts +5 -5
- package/lib/helpers/SchemaHelper.js +21 -21
- package/lib/helpers/UserActionsLog/UserActionsLogHelper.d.ts +2 -2
- package/lib/helpers/UserActionsLog/UserActionsLogHelper.js +49 -49
- package/lib/locales/en.json +53 -53
- package/lib/middlewares/cache/decorator.d.ts +3 -3
- package/lib/middlewares/cache/decorator.js +60 -60
- package/lib/middlewares/cache/deletionMethods.d.ts +3 -3
- package/lib/middlewares/cache/deletionMethods.js +23 -23
- package/lib/middlewares/isAuth.d.ts +13 -13
- package/lib/middlewares/isAuth.js +43 -43
- package/lib/models/ModelNames.d.ts +10 -10
- package/lib/models/ModelNames.js +13 -13
- package/lib/models/adminNotification/AdminNotification.d.ts +5 -5
- package/lib/models/adminNotification/AdminNotification.js +70 -65
- package/lib/models/adminNotification/IAdminNotification.d.ts +35 -34
- package/lib/models/adminNotification/IAdminNotification.js +15 -15
- package/lib/models/adminpermission/AdminPermission.d.ts +11 -11
- package/lib/models/adminpermission/AdminPermission.js +23 -23
- package/lib/models/adminpermission/IAdminPermission.d.ts +13 -13
- package/lib/models/adminpermission/IAdminPermission.js +2 -2
- package/lib/models/customPage/CustomPage.d.ts +2 -2
- package/lib/models/customPage/CustomPage.js +38 -38
- package/lib/models/customPage/ICustomPage.d.ts +17 -17
- package/lib/models/customPage/ICustomPage.js +2 -2
- package/lib/models/file/File.d.ts +2 -2
- package/lib/models/file/File.js +23 -23
- package/lib/models/file/IFile.d.ts +15 -15
- package/lib/models/file/IFile.js +2 -2
- package/lib/models/location/ILocation.d.ts +14 -14
- package/lib/models/location/ILocation.js +2 -2
- package/lib/models/location/Location.d.ts +2 -2
- package/lib/models/location/Location.js +21 -21
- package/lib/models/mailLog/IMailLog.d.ts +14 -14
- package/lib/models/mailLog/IMailLog.js +2 -2
- package/lib/models/mailLog/MailLog.d.ts +3 -3
- package/lib/models/mailLog/MailLog.js +23 -23
- package/lib/models/modelConfiguration/IModelConfigurations.d.ts +29 -29
- package/lib/models/modelConfiguration/IModelConfigurations.js +2 -2
- package/lib/models/modelConfiguration/ModelConfiguration.d.ts +13 -13
- package/lib/models/modelConfiguration/ModelConfiguration.js +95 -95
- package/lib/models/permission/IPermission.d.ts +14 -14
- package/lib/models/permission/IPermission.js +2 -2
- package/lib/models/permission/Permission.d.ts +2 -2
- package/lib/models/permission/Permission.js +21 -21
- package/lib/models/request-log/IRequestLog.d.ts +22 -22
- package/lib/models/request-log/IRequestLog.js +2 -2
- package/lib/models/request-log/RequestLog.d.ts +3 -3
- package/lib/models/request-log/RequestLog.js +51 -51
- package/lib/models/userActionsLog/IUserActionsLog.d.ts +26 -26
- package/lib/models/userActionsLog/IUserActionsLog.js +11 -11
- package/lib/models/userActionsLog/UserActionsLog.d.ts +3 -3
- package/lib/models/userActionsLog/UserActionsLog.js +41 -41
- package/lib/pdf/ReportTemplate.d.ts +71 -71
- package/lib/pdf/ReportTemplate.js +94 -94
- package/lib/repositories/AdminNotificationRepository.d.ts +7 -7
- package/lib/repositories/AdminNotificationRepository.js +23 -23
- package/lib/repositories/DashboardRepository.d.ts +5 -5
- package/lib/repositories/DashboardRepository.js +12 -12
- package/lib/repositories/Repository.d.ts +68 -68
- package/lib/repositories/Repository.js +215 -215
- package/lib/repositories/RequestLogRepository.d.ts +10 -10
- package/lib/repositories/RequestLogRepository.js +54 -54
- package/lib/repositories/SaveResult.d.ts +14 -14
- package/lib/repositories/SaveResult.js +18 -18
- package/lib/resources/AdminNotificationsResource.d.ts +3 -3
- package/lib/resources/AdminNotificationsResource.js +23 -23
- package/lib/resources/parents.d.ts +4 -4
- package/lib/resources/parents.js +7 -7
- package/lib/router/index.d.ts +8 -8
- package/lib/router/index.js +104 -104
- package/lib/types/DashbordConfig.d.ts +21 -21
- package/lib/types/DashbordConfig.js +2 -2
- package/lib/types/IConfigurationFile.d.ts +11 -11
- package/lib/types/IConfigurationFile.js +2 -2
- package/lib/types/IResourceFile.d.ts +719 -719
- package/lib/types/IResourceFile.js +2 -2
- package/lib/types/IResourceResponse.d.ts +95 -95
- package/lib/types/IResourceResponse.js +2 -2
- package/lib/types/helpers.d.ts +67 -67
- package/lib/types/helpers.js +82 -82
- package/lib/utils/DateUtils.d.ts +7 -7
- package/lib/utils/DateUtils.js +45 -45
- package/lib/utils/ResourceUtils.d.ts +2 -2
- package/lib/utils/ResourceUtils.js +7 -7
- package/lib/utils/ResponseUtils.d.ts +11 -11
- package/lib/utils/ResponseUtils.js +41 -41
- package/lib/utils/StringUtils.d.ts +9 -9
- package/lib/utils/StringUtils.js +46 -46
- package/lib/view/asset-manifest.json +18 -18
- package/lib/view/assets/icons/delete_icon.svg +3 -3
- package/lib/view/assets/icons/flags/ic_flag_cn.svg +9 -9
- package/lib/view/assets/icons/flags/ic_flag_sa.svg +9 -9
- package/lib/view/assets/icons/flags/ic_flag_vn.svg +9 -9
- package/lib/view/assets/icons/info_icon.svg +3 -3
- package/lib/view/assets/icons/navbar/ic_banking.svg +5 -5
- package/lib/view/assets/icons/navbar/ic_invoice.svg +4 -4
- package/lib/view/assets/icons/navbar/ic_kanban.svg +7 -7
- package/lib/view/assets/icons/navbar/ic_menu_item.svg +8 -8
- package/lib/view/assets/icons/small_info_icon.svg +3 -3
- package/lib/view/assets/illustrations/Group 16.svg +4 -4
- package/lib/view/assets/illustrations/logo.svg +5 -5
- package/lib/view/favicon/browserconfig.xml +9 -9
- package/lib/view/favicon/safari-pinned-tab.svg +182 -182
- package/lib/view/favicon/site.webmanifest +19 -19
- package/lib/view/fonts/index.css +18 -18
- package/lib/view/index.html +52 -52
- package/lib/view/manifest.json +20 -20
- package/lib/view/robots.txt +3 -3
- package/lib/view/static/css/main.54de06ef.css +1 -1
- package/lib/view/static/js/574.778b5963.chunk.js +1 -1
- package/lib/view/static/js/678.521704a3.chunk.js +1 -1
- package/lib/view/static/js/798.54856416.chunk.js +1 -1
- package/lib/view/static/js/main.4687f255.js +2 -2
- package/lib/view/static/js/main.4687f255.js.LICENSE.txt +214 -214
- package/package.json +63 -63
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getAdminPermissionSchema = void 0;
|
|
7
|
-
const mongoose_1 = require("mongoose");
|
|
8
|
-
const ModelNames_1 = __importDefault(require("../ModelNames"));
|
|
9
|
-
function getAdminPermissionSchema() {
|
|
10
|
-
return new mongoose_1.Schema({
|
|
11
|
-
permissionGroupId: {
|
|
12
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
13
|
-
ref: ModelNames_1.default.PermissionGroup,
|
|
14
|
-
required: true,
|
|
15
|
-
},
|
|
16
|
-
permissionId: {
|
|
17
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
18
|
-
ref: ModelNames_1.default.Permission,
|
|
19
|
-
required: true,
|
|
20
|
-
},
|
|
21
|
-
}, { timestamps: true });
|
|
22
|
-
}
|
|
23
|
-
exports.getAdminPermissionSchema = getAdminPermissionSchema;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getAdminPermissionSchema = void 0;
|
|
7
|
+
const mongoose_1 = require("mongoose");
|
|
8
|
+
const ModelNames_1 = __importDefault(require("../ModelNames"));
|
|
9
|
+
function getAdminPermissionSchema() {
|
|
10
|
+
return new mongoose_1.Schema({
|
|
11
|
+
permissionGroupId: {
|
|
12
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
13
|
+
ref: ModelNames_1.default.PermissionGroup,
|
|
14
|
+
required: true,
|
|
15
|
+
},
|
|
16
|
+
permissionId: {
|
|
17
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
18
|
+
ref: ModelNames_1.default.Permission,
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
}, { timestamps: true });
|
|
22
|
+
}
|
|
23
|
+
exports.getAdminPermissionSchema = getAdminPermissionSchema;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Document, Model, Types } from 'mongoose';
|
|
2
|
-
export interface IAdminPermissionProps {
|
|
3
|
-
_id?: Types.ObjectId;
|
|
4
|
-
permissionGroupId: string;
|
|
5
|
-
permissionId: string;
|
|
6
|
-
}
|
|
7
|
-
export interface IAdminPermissionDocument extends IAdminPermissionProps, Document {
|
|
8
|
-
_id: Types.ObjectId;
|
|
9
|
-
createdAt: Date;
|
|
10
|
-
updatedAt: Date;
|
|
11
|
-
}
|
|
12
|
-
export default interface IAdminPermissionModel extends Model<IAdminPermissionDocument> {
|
|
13
|
-
}
|
|
1
|
+
import { Document, Model, Types } from 'mongoose';
|
|
2
|
+
export interface IAdminPermissionProps {
|
|
3
|
+
_id?: Types.ObjectId;
|
|
4
|
+
permissionGroupId: string;
|
|
5
|
+
permissionId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IAdminPermissionDocument extends IAdminPermissionProps, Document {
|
|
8
|
+
_id: Types.ObjectId;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
}
|
|
12
|
+
export default interface IAdminPermissionModel extends Model<IAdminPermissionDocument> {
|
|
13
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Schema, SchemaOptions } from "mongoose";
|
|
2
|
-
export declare function getCustomPageSchema(schemaOptions: SchemaOptions): Schema;
|
|
1
|
+
import { Schema, SchemaOptions } from "mongoose";
|
|
2
|
+
export declare function getCustomPageSchema(schemaOptions: SchemaOptions): Schema;
|
|
@@ -1,38 +1,38 @@
|
|
|
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
|
-
visible: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
required: false,
|
|
24
|
-
default: true,
|
|
25
|
-
},
|
|
26
|
-
disableMainLayoutHeader: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
required: false,
|
|
29
|
-
default: false,
|
|
30
|
-
},
|
|
31
|
-
disableMainLayoutFooter: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
required: false,
|
|
34
|
-
default: false,
|
|
35
|
-
},
|
|
36
|
-
}, schemaOptions);
|
|
37
|
-
}
|
|
38
|
-
exports.getCustomPageSchema = getCustomPageSchema;
|
|
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
|
+
visible: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
required: false,
|
|
24
|
+
default: true,
|
|
25
|
+
},
|
|
26
|
+
disableMainLayoutHeader: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
required: false,
|
|
29
|
+
default: false,
|
|
30
|
+
},
|
|
31
|
+
disableMainLayoutFooter: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
required: false,
|
|
34
|
+
default: false,
|
|
35
|
+
},
|
|
36
|
+
}, schemaOptions);
|
|
37
|
+
}
|
|
38
|
+
exports.getCustomPageSchema = getCustomPageSchema;
|
|
@@ -1,17 +1,17 @@
|
|
|
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
|
-
visible?: boolean;
|
|
8
|
-
disableMainLayoutHeader?: boolean;
|
|
9
|
-
disableMainLayoutFooter?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface ICustomPageDocument extends ICustomPageProps, Document {
|
|
12
|
-
_id: Types.ObjectId;
|
|
13
|
-
createdAt: Date;
|
|
14
|
-
updatedAt: Date;
|
|
15
|
-
}
|
|
16
|
-
export default interface ICustomPageModel extends Model<ICustomPageDocument> {
|
|
17
|
-
}
|
|
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
|
+
visible?: boolean;
|
|
8
|
+
disableMainLayoutHeader?: boolean;
|
|
9
|
+
disableMainLayoutFooter?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface ICustomPageDocument extends ICustomPageProps, Document {
|
|
12
|
+
_id: Types.ObjectId;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
}
|
|
16
|
+
export default interface ICustomPageModel extends Model<ICustomPageDocument> {
|
|
17
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Schema, SchemaOptions } from "mongoose";
|
|
2
|
-
export declare function getFileSchema(schemaOptions: SchemaOptions): Schema;
|
|
1
|
+
import { Schema, SchemaOptions } from "mongoose";
|
|
2
|
+
export declare function getFileSchema(schemaOptions: SchemaOptions): Schema;
|
package/lib/models/file/File.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getFileSchema = void 0;
|
|
4
|
-
const mongoose_1 = require("mongoose");
|
|
5
|
-
const helpers_1 = require("../../types/helpers");
|
|
6
|
-
function getFileSchema(schemaOptions) {
|
|
7
|
-
return new mongoose_1.Schema({
|
|
8
|
-
title: {
|
|
9
|
-
type: String,
|
|
10
|
-
required: true,
|
|
11
|
-
},
|
|
12
|
-
url: {
|
|
13
|
-
type: String,
|
|
14
|
-
required: true,
|
|
15
|
-
},
|
|
16
|
-
type: {
|
|
17
|
-
type: String,
|
|
18
|
-
required: true,
|
|
19
|
-
enum: Object.values(helpers_1.FileTypes),
|
|
20
|
-
},
|
|
21
|
-
}, schemaOptions);
|
|
22
|
-
}
|
|
23
|
-
exports.getFileSchema = getFileSchema;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getFileSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const helpers_1 = require("../../types/helpers");
|
|
6
|
+
function getFileSchema(schemaOptions) {
|
|
7
|
+
return new mongoose_1.Schema({
|
|
8
|
+
title: {
|
|
9
|
+
type: String,
|
|
10
|
+
required: true,
|
|
11
|
+
},
|
|
12
|
+
url: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: true,
|
|
15
|
+
},
|
|
16
|
+
type: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: true,
|
|
19
|
+
enum: Object.values(helpers_1.FileTypes),
|
|
20
|
+
},
|
|
21
|
+
}, schemaOptions);
|
|
22
|
+
}
|
|
23
|
+
exports.getFileSchema = getFileSchema;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Document, Model, Types } from 'mongoose';
|
|
2
|
-
import { FileTypes } from '../../types/helpers';
|
|
3
|
-
export interface IFileProps {
|
|
4
|
-
_id?: Types.ObjectId;
|
|
5
|
-
title: string;
|
|
6
|
-
url: string;
|
|
7
|
-
type: FileTypes;
|
|
8
|
-
}
|
|
9
|
-
export interface IFileDocument extends IFileProps, Document {
|
|
10
|
-
_id: Types.ObjectId;
|
|
11
|
-
createdAt: Date;
|
|
12
|
-
updatedAt: Date;
|
|
13
|
-
}
|
|
14
|
-
export default interface IFileModel extends Model<IFileDocument> {
|
|
15
|
-
}
|
|
1
|
+
import { Document, Model, Types } from 'mongoose';
|
|
2
|
+
import { FileTypes } from '../../types/helpers';
|
|
3
|
+
export interface IFileProps {
|
|
4
|
+
_id?: Types.ObjectId;
|
|
5
|
+
title: string;
|
|
6
|
+
url: string;
|
|
7
|
+
type: FileTypes;
|
|
8
|
+
}
|
|
9
|
+
export interface IFileDocument extends IFileProps, Document {
|
|
10
|
+
_id: Types.ObjectId;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
}
|
|
14
|
+
export default interface IFileModel extends Model<IFileDocument> {
|
|
15
|
+
}
|
package/lib/models/file/IFile.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Document, Model, Types } from "mongoose";
|
|
2
|
-
export interface ILocationProps {
|
|
3
|
-
_id?: Types.ObjectId;
|
|
4
|
-
address?: string;
|
|
5
|
-
latitude?: number;
|
|
6
|
-
longitude?: number;
|
|
7
|
-
}
|
|
8
|
-
export interface ILocationDocument extends ILocationProps, Document {
|
|
9
|
-
_id: Types.ObjectId;
|
|
10
|
-
createdAt: Date;
|
|
11
|
-
updatedAt: Date;
|
|
12
|
-
}
|
|
13
|
-
export default interface ILocationModel extends Model<ILocationDocument> {
|
|
14
|
-
}
|
|
1
|
+
import { Document, Model, Types } from "mongoose";
|
|
2
|
+
export interface ILocationProps {
|
|
3
|
+
_id?: Types.ObjectId;
|
|
4
|
+
address?: string;
|
|
5
|
+
latitude?: number;
|
|
6
|
+
longitude?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface ILocationDocument extends ILocationProps, Document {
|
|
9
|
+
_id: Types.ObjectId;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
}
|
|
13
|
+
export default interface ILocationModel extends Model<ILocationDocument> {
|
|
14
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Schema, SchemaOptions } from "mongoose";
|
|
2
|
-
export declare function getLocationSchema(schemaOptions: SchemaOptions): Schema;
|
|
1
|
+
import { Schema, SchemaOptions } from "mongoose";
|
|
2
|
+
export declare function getLocationSchema(schemaOptions: SchemaOptions): Schema;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getLocationSchema = void 0;
|
|
4
|
-
const mongoose_1 = require("mongoose");
|
|
5
|
-
function getLocationSchema(schemaOptions) {
|
|
6
|
-
return new mongoose_1.Schema({
|
|
7
|
-
address: {
|
|
8
|
-
type: String,
|
|
9
|
-
required: false,
|
|
10
|
-
},
|
|
11
|
-
latitude: {
|
|
12
|
-
type: Number,
|
|
13
|
-
required: false,
|
|
14
|
-
},
|
|
15
|
-
longitude: {
|
|
16
|
-
type: Number,
|
|
17
|
-
required: false,
|
|
18
|
-
},
|
|
19
|
-
}, schemaOptions);
|
|
20
|
-
}
|
|
21
|
-
exports.getLocationSchema = getLocationSchema;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLocationSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
function getLocationSchema(schemaOptions) {
|
|
6
|
+
return new mongoose_1.Schema({
|
|
7
|
+
address: {
|
|
8
|
+
type: String,
|
|
9
|
+
required: false,
|
|
10
|
+
},
|
|
11
|
+
latitude: {
|
|
12
|
+
type: Number,
|
|
13
|
+
required: false,
|
|
14
|
+
},
|
|
15
|
+
longitude: {
|
|
16
|
+
type: Number,
|
|
17
|
+
required: false,
|
|
18
|
+
},
|
|
19
|
+
}, schemaOptions);
|
|
20
|
+
}
|
|
21
|
+
exports.getLocationSchema = getLocationSchema;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Document, Model, Types } from 'mongoose';
|
|
2
|
-
export interface IMailLogProps {
|
|
3
|
-
_id?: Types.ObjectId;
|
|
4
|
-
to: string;
|
|
5
|
-
subject: string;
|
|
6
|
-
html: string;
|
|
7
|
-
}
|
|
8
|
-
export interface IMailLogDocument extends IMailLogProps, Document {
|
|
9
|
-
_id: Types.ObjectId;
|
|
10
|
-
createdAt: Date;
|
|
11
|
-
updatedAt: Date;
|
|
12
|
-
}
|
|
13
|
-
export default interface IMailLogModel extends Model<IMailLogDocument> {
|
|
14
|
-
}
|
|
1
|
+
import { Document, Model, Types } from 'mongoose';
|
|
2
|
+
export interface IMailLogProps {
|
|
3
|
+
_id?: Types.ObjectId;
|
|
4
|
+
to: string;
|
|
5
|
+
subject: string;
|
|
6
|
+
html: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IMailLogDocument extends IMailLogProps, Document {
|
|
9
|
+
_id: Types.ObjectId;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
}
|
|
13
|
+
export default interface IMailLogModel extends Model<IMailLogDocument> {
|
|
14
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import IMailLogModel from './IMailLog';
|
|
2
|
-
declare const MailLog: IMailLogModel;
|
|
3
|
-
export default MailLog;
|
|
1
|
+
import IMailLogModel from './IMailLog';
|
|
2
|
+
declare const MailLog: IMailLogModel;
|
|
3
|
+
export default MailLog;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const mongoose_1 = require("mongoose");
|
|
7
|
-
const ModelNames_1 = __importDefault(require("../ModelNames"));
|
|
8
|
-
const MailLogSchema = new mongoose_1.Schema({
|
|
9
|
-
to: {
|
|
10
|
-
type: String,
|
|
11
|
-
required: true,
|
|
12
|
-
},
|
|
13
|
-
subject: {
|
|
14
|
-
type: String,
|
|
15
|
-
required: true,
|
|
16
|
-
},
|
|
17
|
-
html: {
|
|
18
|
-
type: String,
|
|
19
|
-
required: true,
|
|
20
|
-
},
|
|
21
|
-
}, { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } });
|
|
22
|
-
const MailLog = (0, mongoose_1.model)(ModelNames_1.default.MailLog, MailLogSchema);
|
|
23
|
-
exports.default = MailLog;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const mongoose_1 = require("mongoose");
|
|
7
|
+
const ModelNames_1 = __importDefault(require("../ModelNames"));
|
|
8
|
+
const MailLogSchema = new mongoose_1.Schema({
|
|
9
|
+
to: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: true,
|
|
12
|
+
},
|
|
13
|
+
subject: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: true,
|
|
16
|
+
},
|
|
17
|
+
html: {
|
|
18
|
+
type: String,
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
}, { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } });
|
|
22
|
+
const MailLog = (0, mongoose_1.model)(ModelNames_1.default.MailLog, MailLogSchema);
|
|
23
|
+
exports.default = MailLog;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { Document, Model, Types } from 'mongoose';
|
|
2
|
-
import { RowArrangeType, RowsPerPageOptions } from './ModelConfiguration';
|
|
3
|
-
export interface IModelConfigurationActions {
|
|
4
|
-
new?: boolean;
|
|
5
|
-
edit?: boolean;
|
|
6
|
-
show?: boolean;
|
|
7
|
-
delete?: boolean;
|
|
8
|
-
bulkDelete?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface IModelConfigurationProps {
|
|
11
|
-
_id?: Types.ObjectId;
|
|
12
|
-
modelName: string;
|
|
13
|
-
title?: string;
|
|
14
|
-
defaultOrderBy?: string;
|
|
15
|
-
defaultOrder?: RowArrangeType;
|
|
16
|
-
defaultrowsPerPage?: RowsPerPageOptions;
|
|
17
|
-
actions?: IModelConfigurationActions;
|
|
18
|
-
listProperties?: string[];
|
|
19
|
-
showProperties?: string[];
|
|
20
|
-
filterProperties?: string[];
|
|
21
|
-
quickFilterProperties?: string[];
|
|
22
|
-
}
|
|
23
|
-
export interface IModelConfigurationDocument extends IModelConfigurationProps, Document {
|
|
24
|
-
_id: Types.ObjectId;
|
|
25
|
-
createdAt: Date;
|
|
26
|
-
updatedAt: Date;
|
|
27
|
-
}
|
|
28
|
-
export default interface IModelConfigurationModel extends Model<IModelConfigurationDocument> {
|
|
29
|
-
}
|
|
1
|
+
import { Document, Model, Types } from 'mongoose';
|
|
2
|
+
import { RowArrangeType, RowsPerPageOptions } from './ModelConfiguration';
|
|
3
|
+
export interface IModelConfigurationActions {
|
|
4
|
+
new?: boolean;
|
|
5
|
+
edit?: boolean;
|
|
6
|
+
show?: boolean;
|
|
7
|
+
delete?: boolean;
|
|
8
|
+
bulkDelete?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface IModelConfigurationProps {
|
|
11
|
+
_id?: Types.ObjectId;
|
|
12
|
+
modelName: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
defaultOrderBy?: string;
|
|
15
|
+
defaultOrder?: RowArrangeType;
|
|
16
|
+
defaultrowsPerPage?: RowsPerPageOptions;
|
|
17
|
+
actions?: IModelConfigurationActions;
|
|
18
|
+
listProperties?: string[];
|
|
19
|
+
showProperties?: string[];
|
|
20
|
+
filterProperties?: string[];
|
|
21
|
+
quickFilterProperties?: string[];
|
|
22
|
+
}
|
|
23
|
+
export interface IModelConfigurationDocument extends IModelConfigurationProps, Document {
|
|
24
|
+
_id: Types.ObjectId;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
updatedAt: Date;
|
|
27
|
+
}
|
|
28
|
+
export default interface IModelConfigurationModel extends Model<IModelConfigurationDocument> {
|
|
29
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Schema, SchemaOptions } from "mongoose";
|
|
2
|
-
export declare enum RowArrangeType {
|
|
3
|
-
ASCENDING = "asc",
|
|
4
|
-
DESCENDING = "desc"
|
|
5
|
-
}
|
|
6
|
-
export declare enum RowsPerPageOptions {
|
|
7
|
-
FIVE = "5",
|
|
8
|
-
TEN = "10",
|
|
9
|
-
TWENTY_FIVE = "25",
|
|
10
|
-
FIFTY = "50",
|
|
11
|
-
ONE_HUNDRED = "100"
|
|
12
|
-
}
|
|
13
|
-
export declare function getModelConfiguartionSchema(schemaOptions: SchemaOptions): Schema;
|
|
1
|
+
import { Schema, SchemaOptions } from "mongoose";
|
|
2
|
+
export declare enum RowArrangeType {
|
|
3
|
+
ASCENDING = "asc",
|
|
4
|
+
DESCENDING = "desc"
|
|
5
|
+
}
|
|
6
|
+
export declare enum RowsPerPageOptions {
|
|
7
|
+
FIVE = "5",
|
|
8
|
+
TEN = "10",
|
|
9
|
+
TWENTY_FIVE = "25",
|
|
10
|
+
FIFTY = "50",
|
|
11
|
+
ONE_HUNDRED = "100"
|
|
12
|
+
}
|
|
13
|
+
export declare function getModelConfiguartionSchema(schemaOptions: SchemaOptions): Schema;
|