cloud-ide-lms-model 1.0.0
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/lib/@types/common.d.ts +22 -0
- package/lib/@types/common.js +50 -0
- package/lib/@types/coreControllerResponse.d.ts +43 -0
- package/lib/@types/coreControllerResponse.js +2 -0
- package/lib/@types/designConfigControllerResponse.d.ts +28 -0
- package/lib/@types/designConfigControllerResponse.js +2 -0
- package/lib/@types/emailServiceConfig.d.ts +33 -0
- package/lib/@types/emailServiceConfig.js +2 -0
- package/lib/@types/entityControllerResponse.d.ts +35 -0
- package/lib/@types/entityControllerResponse.js +2 -0
- package/lib/@types/forgotPasswordControllerResponse.d.ts +13 -0
- package/lib/@types/forgotPasswordControllerResponse.js +2 -0
- package/lib/@types/jwtPayload.d.ts +16 -0
- package/lib/@types/jwtPayload.js +2 -0
- package/lib/@types/loginControllerResponse.d.ts +17 -0
- package/lib/@types/loginControllerResponse.js +2 -0
- package/lib/@types/menuControllerResponse.d.ts +13 -0
- package/lib/@types/menuControllerResponse.js +2 -0
- package/lib/@types/resetPasswordControllerResponse.d.ts +15 -0
- package/lib/@types/resetPasswordControllerResponse.js +2 -0
- package/lib/@types/userPermissions.d.ts +7 -0
- package/lib/@types/userPermissions.js +2 -0
- package/lib/common-types/common.d.ts +31 -0
- package/lib/common-types/common.js +60 -0
- package/lib/common-types/coreControllerResponse.d.ts +43 -0
- package/lib/common-types/coreControllerResponse.js +2 -0
- package/lib/common-types/designConfigControllerResponse.d.ts +28 -0
- package/lib/common-types/designConfigControllerResponse.js +2 -0
- package/lib/common-types/emailServiceConfig.d.ts +33 -0
- package/lib/common-types/emailServiceConfig.js +2 -0
- package/lib/common-types/entityControllerResponse.d.ts +35 -0
- package/lib/common-types/entityControllerResponse.js +2 -0
- package/lib/common-types/forgotPasswordControllerResponse.d.ts +13 -0
- package/lib/common-types/forgotPasswordControllerResponse.js +2 -0
- package/lib/common-types/index.d.ts +4 -0
- package/lib/common-types/index.js +20 -0
- package/lib/common-types/jwtPayload.d.ts +9 -0
- package/lib/common-types/jwtPayload.js +2 -0
- package/lib/common-types/loginControllerResponse.d.ts +17 -0
- package/lib/common-types/loginControllerResponse.js +2 -0
- package/lib/common-types/menuControllerResponse.d.ts +13 -0
- package/lib/common-types/menuControllerResponse.js +2 -0
- package/lib/common-types/resetPasswordControllerResponse.d.ts +15 -0
- package/lib/common-types/resetPasswordControllerResponse.js +2 -0
- package/lib/common-types/userPermissions.d.ts +7 -0
- package/lib/common-types/userPermissions.js +2 -0
- package/lib/config/database.d.ts +3 -0
- package/lib/config/database.js +66 -0
- package/lib/config/index.d.ts +2 -0
- package/lib/config/index.js +5 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +20 -0
- package/lib/model/auth/forgot-password.d.ts +28 -0
- package/lib/model/auth/forgot-password.js +62 -0
- package/lib/model/auth/index.d.ts +4 -0
- package/lib/model/auth/index.js +20 -0
- package/lib/model/auth/login.d.ts +44 -0
- package/lib/model/auth/login.js +109 -0
- package/lib/model/auth/register.d.ts +20 -0
- package/lib/model/auth/register.js +33 -0
- package/lib/model/auth/reset-password.d.ts +36 -0
- package/lib/model/auth/reset-password.js +22 -0
- package/lib/model/core/design-config.d.ts +34 -0
- package/lib/model/core/design-config.js +19 -0
- package/lib/model/core/entity.d.ts +47 -0
- package/lib/model/core/entity.js +35 -0
- package/lib/model/core/general-master.d.ts +37 -0
- package/lib/model/core/general-master.js +19 -0
- package/lib/model/core/index.d.ts +6 -0
- package/lib/model/core/index.js +22 -0
- package/lib/model/core/menu.d.ts +28 -0
- package/lib/model/core/menu.js +31 -0
- package/lib/model/core/pin-code.d.ts +21 -0
- package/lib/model/core/pin-code.js +28 -0
- package/lib/model/core/user.d.ts +19 -0
- package/lib/model/core/user.js +19 -0
- package/lib/model/index.d.ts +2 -0
- package/lib/model/index.js +18 -0
- package/lib/schema/auth/auth_logses.d.ts +13 -0
- package/lib/schema/auth/auth_logses.js +2 -0
- package/lib/schema/auth/auth_user_mst.d.ts +30 -0
- package/lib/schema/auth/auth_user_mst.js +2 -0
- package/lib/schema/auth/index.d.ts +3 -0
- package/lib/schema/auth/index.js +19 -0
- package/lib/schema/auth/mpin.d.ts +8 -0
- package/lib/schema/auth/mpin.js +10 -0
- package/lib/schema/core/core_entity_mapping.d.ts +10 -0
- package/lib/schema/core/core_entity_mapping.js +2 -0
- package/lib/schema/core/core_general_master.d.ts +10 -0
- package/lib/schema/core/core_general_master.js +2 -0
- package/lib/schema/core/core_general_master_type.d.ts +8 -0
- package/lib/schema/core/core_general_master_type.js +2 -0
- package/lib/schema/core/core_page_controls.d.ts +18 -0
- package/lib/schema/core/core_page_controls.js +2 -0
- package/lib/schema/core/core_page_grid.d.ts +7 -0
- package/lib/schema/core/core_page_grid.js +2 -0
- package/lib/schema/core/core_page_tab.d.ts +14 -0
- package/lib/schema/core/core_page_tab.js +2 -0
- package/lib/schema/core/core_pin_code.d.ts +15 -0
- package/lib/schema/core/core_pin_code.js +2 -0
- package/lib/schema/core/core_system_config.d.ts +8 -0
- package/lib/schema/core/core_system_config.js +10 -0
- package/lib/schema/core/core_system_entity.d.ts +34 -0
- package/lib/schema/core/core_system_entity.js +2 -0
- package/lib/schema/core/core_system_logs.d.ts +24 -0
- package/lib/schema/core/core_system_logs.js +33 -0
- package/lib/schema/core/core_system_menu.d.ts +13 -0
- package/lib/schema/core/core_system_menu.js +10 -0
- package/lib/schema/core/core_system_pages.d.ts +10 -0
- package/lib/schema/core/core_system_pages.js +10 -0
- package/lib/schema/core/core_system_pages_theme.d.ts +11 -0
- package/lib/schema/core/core_system_pages_theme.js +10 -0
- package/lib/schema/core/index.d.ts +13 -0
- package/lib/schema/core/index.js +29 -0
- package/lib/schema/email/elist.d.ts +36 -0
- package/lib/schema/email/elist.js +42 -0
- package/lib/schema/email/elog.d.ts +41 -0
- package/lib/schema/email/elog.js +58 -0
- package/lib/schema/email/email_list.d.ts +7 -0
- package/lib/schema/email/email_list.js +10 -0
- package/lib/schema/email/email_log.d.ts +12 -0
- package/lib/schema/email/email_log.js +10 -0
- package/lib/schema/email/email_reference.d.ts +8 -0
- package/lib/schema/email/email_reference.js +10 -0
- package/lib/schema/email/email_subscription_vendor.d.ts +14 -0
- package/lib/schema/email/email_subscription_vendor.js +10 -0
- package/lib/schema/email/email_templete.d.ts +7 -0
- package/lib/schema/email/email_templete.js +10 -0
- package/lib/schema/email/email_vendor.d.ts +7 -0
- package/lib/schema/email/email_vendor.js +10 -0
- package/lib/schema/email/eref.d.ts +37 -0
- package/lib/schema/email/eref.js +43 -0
- package/lib/schema/email/esub.d.ts +43 -0
- package/lib/schema/email/esub.js +69 -0
- package/lib/schema/email/etmp.d.ts +36 -0
- package/lib/schema/email/etmp.js +41 -0
- package/lib/schema/email/evdr.d.ts +36 -0
- package/lib/schema/email/evdr.js +41 -0
- package/lib/schema/email/index.d.ts +6 -0
- package/lib/schema/email/index.js +22 -0
- package/lib/schema/index.d.ts +3 -0
- package/lib/schema/index.js +19 -0
- package/lib/utilities/helpers/encryption.helper.d.ts +2 -0
- package/lib/utilities/helpers/encryption.helper.js +14 -0
- package/lib/utilities/helpers/error.helper.d.ts +9 -0
- package/lib/utilities/helpers/error.helper.js +26 -0
- package/lib/utilities/helpers/index.d.ts +5 -0
- package/lib/utilities/helpers/index.js +21 -0
- package/lib/utilities/helpers/response.helper.d.ts +16 -0
- package/lib/utilities/helpers/response.helper.js +9 -0
- package/lib/utilities/helpers/string.helper.d.ts +3 -0
- package/lib/utilities/helpers/string.helper.js +232 -0
- package/lib/utilities/helpers/type.hepler.d.ts +3 -0
- package/lib/utilities/helpers/type.hepler.js +2 -0
- package/lib/utilities/helpers/view.helper.d.ts +2 -0
- package/lib/utilities/helpers/view.helper.js +14 -0
- package/lib/utilities/index.d.ts +1 -0
- package/lib/utilities/index.js +17 -0
- package/package.json +25 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IEntityErrorLogger } from "../model/core/entity";
|
|
2
|
+
export declare class MTableQueries {
|
|
3
|
+
total: number;
|
|
4
|
+
pageIndex: number;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
query: string;
|
|
7
|
+
sort: {
|
|
8
|
+
order: 'asc' | 'desc' | '';
|
|
9
|
+
key: string | number;
|
|
10
|
+
};
|
|
11
|
+
constructor(init: MTableQueries);
|
|
12
|
+
Validate(): Partial<IEntityErrorLogger>;
|
|
13
|
+
}
|
|
14
|
+
export type TableQueries = MTableQueries;
|
|
15
|
+
export interface paginationQueryResponse {
|
|
16
|
+
paginatedResults: any[];
|
|
17
|
+
totalDocument: number;
|
|
18
|
+
}
|
|
19
|
+
export interface CommonSelect {
|
|
20
|
+
label: string;
|
|
21
|
+
value: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MTableQueries = void 0;
|
|
4
|
+
var MTableQueries = /** @class */ (function () {
|
|
5
|
+
function MTableQueries(init) {
|
|
6
|
+
this.total = 1;
|
|
7
|
+
this.pageIndex = 1;
|
|
8
|
+
this.pageSize = 10;
|
|
9
|
+
this.query = "";
|
|
10
|
+
this.sort = {
|
|
11
|
+
order: "",
|
|
12
|
+
key: ""
|
|
13
|
+
};
|
|
14
|
+
Object.assign(this, init);
|
|
15
|
+
}
|
|
16
|
+
MTableQueries.prototype.Validate = function () {
|
|
17
|
+
var _a, _b, _c, _d, _e;
|
|
18
|
+
var errorLogger = {};
|
|
19
|
+
if (this.sort) {
|
|
20
|
+
if (((_a = this.sort) === null || _a === void 0 ? void 0 : _a.order) != 'asc' && ((_b = this.sort) === null || _b === void 0 ? void 0 : _b.order) != 'desc' && ((_c = this.sort) === null || _c === void 0 ? void 0 : _c.order) != '') {
|
|
21
|
+
errorLogger.sort = "Incorect Sort order!";
|
|
22
|
+
}
|
|
23
|
+
if (typeof ((_d = this.sort) === null || _d === void 0 ? void 0 : _d.key) != 'string' && typeof ((_e = this.sort) === null || _e === void 0 ? void 0 : _e.key) != 'number') {
|
|
24
|
+
errorLogger.sort = "Incorect Sort key!";
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
errorLogger.sort = "Sort order and key is required!";
|
|
29
|
+
}
|
|
30
|
+
if (typeof (this.pageIndex) == 'number') {
|
|
31
|
+
if (this.pageIndex < 1) {
|
|
32
|
+
errorLogger.pageIndex = "Incorect Page Index!";
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
errorLogger.pageIndex = "Page index is required";
|
|
37
|
+
}
|
|
38
|
+
if (typeof (this.pageSize) == 'number') {
|
|
39
|
+
if (this.pageSize < 1) {
|
|
40
|
+
errorLogger.pageSize = "Incorect Page Size!";
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
errorLogger.pageSize = "Page Size is required";
|
|
45
|
+
}
|
|
46
|
+
return errorLogger;
|
|
47
|
+
};
|
|
48
|
+
return MTableQueries;
|
|
49
|
+
}());
|
|
50
|
+
exports.MTableQueries = MTableQueries;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ICoreSypin } from "../schema/core";
|
|
2
|
+
import { controllerResponse } from "../utilities/helpers/response.helper";
|
|
3
|
+
import { CommonSelect } from "./common";
|
|
4
|
+
export interface generalMasterSelectControllerResponse extends controllerResponse {
|
|
5
|
+
data?: {
|
|
6
|
+
core_general_master: generalMasterSelectResponseData[];
|
|
7
|
+
core_general_master_type: generalMasterTypeResponseData[];
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface generalMasterSelectResponseData extends generalMasterResponseData {
|
|
11
|
+
title: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}
|
|
14
|
+
export interface generalMasterResponseData {
|
|
15
|
+
_id?: string;
|
|
16
|
+
sygms_code: string;
|
|
17
|
+
sygms_id_sygmt: string;
|
|
18
|
+
sygms_title: string;
|
|
19
|
+
sygms_desc: string;
|
|
20
|
+
sygms_isactive: string;
|
|
21
|
+
sygms_configuration: any;
|
|
22
|
+
}
|
|
23
|
+
export interface generalMasterTypeResponseData {
|
|
24
|
+
_id: string;
|
|
25
|
+
sygmt_code: string;
|
|
26
|
+
sygmt_title: string;
|
|
27
|
+
sygmt_desc: string;
|
|
28
|
+
sygmt_isactive: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface pinCodeSelectControllerResponse extends controllerResponse {
|
|
31
|
+
data?: {
|
|
32
|
+
core_pin_code: pinCodeSelectResponseData[];
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface pinCodeSelectResponseData extends ICoreSypin {
|
|
36
|
+
title: string;
|
|
37
|
+
value: string;
|
|
38
|
+
}
|
|
39
|
+
export interface userSelectControllerResponse extends controllerResponse {
|
|
40
|
+
data?: {
|
|
41
|
+
auth_user_mst: CommonSelect[];
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ICoreSypc, ICoreSypg, ICoreSypgr, ICoreSytm, ITabs } from "../schema/core";
|
|
2
|
+
import { controllerResponse } from "../utilities/helpers/response.helper";
|
|
3
|
+
export interface designConfigControllerResponse extends controllerResponse {
|
|
4
|
+
data?: designConfigResponseData;
|
|
5
|
+
}
|
|
6
|
+
export interface designConfigResponseData {
|
|
7
|
+
page?: Partial<ICoreSypg>;
|
|
8
|
+
theme?: Partial<ICoreSytm>;
|
|
9
|
+
grid?: {
|
|
10
|
+
[key: string]: ICoreSypgr;
|
|
11
|
+
};
|
|
12
|
+
controls?: {
|
|
13
|
+
[key: string]: ICoreSypc;
|
|
14
|
+
};
|
|
15
|
+
tab?: {
|
|
16
|
+
[key: string]: ICoreTabs;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface ICoreTabs {
|
|
20
|
+
_id?: string;
|
|
21
|
+
syptb_title: string;
|
|
22
|
+
syptb_tabs: {
|
|
23
|
+
[key: string]: ITabs;
|
|
24
|
+
};
|
|
25
|
+
syptb_tab_code: string;
|
|
26
|
+
syptb_page_id_sypg: string;
|
|
27
|
+
syptb_isactive?: boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface SendMailInfo {
|
|
2
|
+
reference: string;
|
|
3
|
+
receiver: string;
|
|
4
|
+
data: any;
|
|
5
|
+
}
|
|
6
|
+
export interface EmailServiceConfig {
|
|
7
|
+
service?: string;
|
|
8
|
+
auth: {
|
|
9
|
+
user: string;
|
|
10
|
+
pass: string;
|
|
11
|
+
};
|
|
12
|
+
host: string;
|
|
13
|
+
port: number;
|
|
14
|
+
secure: boolean;
|
|
15
|
+
requireTLS?: boolean;
|
|
16
|
+
debug?: boolean;
|
|
17
|
+
secureConnection?: boolean;
|
|
18
|
+
tls?: {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
};
|
|
21
|
+
connectionTimeout?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface EmailOptions {
|
|
24
|
+
from?: string;
|
|
25
|
+
to?: string;
|
|
26
|
+
subject?: string;
|
|
27
|
+
messageId?: string;
|
|
28
|
+
date?: Date;
|
|
29
|
+
body?: string;
|
|
30
|
+
reference?: any;
|
|
31
|
+
templete?: any;
|
|
32
|
+
custom?: boolean;
|
|
33
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { controllerResponse } from "../utilities/helpers/response.helper";
|
|
2
|
+
export interface entityControllerResponse extends controllerResponse {
|
|
3
|
+
data?: entityResponseData[];
|
|
4
|
+
}
|
|
5
|
+
export interface entityResponseData {
|
|
6
|
+
_id?: string;
|
|
7
|
+
syen_id_syen?: string;
|
|
8
|
+
syen_print_name?: string;
|
|
9
|
+
syen_entity_type_gmst?: string;
|
|
10
|
+
syen_name?: string;
|
|
11
|
+
syen_entity_code?: string;
|
|
12
|
+
syen_corporate_address?: string;
|
|
13
|
+
syen_corporate_pin_sypc?: string;
|
|
14
|
+
syen_corporate_pincode_sypc?: string;
|
|
15
|
+
syen_corporate_contact_person_user?: string;
|
|
16
|
+
syen_corporate_phone?: number;
|
|
17
|
+
syen_corporate_phone_alt?: number;
|
|
18
|
+
syen_corporate_fax?: string;
|
|
19
|
+
syen_corporate_email?: string;
|
|
20
|
+
syen_corporate_email_alt?: string;
|
|
21
|
+
syen_website?: string;
|
|
22
|
+
syen_currency_sycr?: string;
|
|
23
|
+
syen_registered_address?: string;
|
|
24
|
+
syen_registered_pin_sypc?: string;
|
|
25
|
+
syen_registered_pincode_sypc?: string;
|
|
26
|
+
syen_registered_phone?: number;
|
|
27
|
+
syen_registered_email?: string;
|
|
28
|
+
syen_registered_fax?: string;
|
|
29
|
+
syen_registered_contact_person_user?: string;
|
|
30
|
+
syen_udise_no?: string;
|
|
31
|
+
syen_affiliation_no?: string;
|
|
32
|
+
syen_photo_id_fm?: string;
|
|
33
|
+
syen_isactive?: boolean;
|
|
34
|
+
children: entityResponseData[];
|
|
35
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IUser } from "../schema/auth";
|
|
2
|
+
import { controllerResponse } from "../utilities/helpers/response.helper";
|
|
3
|
+
import { SendMailInfo } from "./emailServiceConfig";
|
|
4
|
+
export interface ForgotPasswordControllerResponse extends controllerResponse {
|
|
5
|
+
data?: Partial<ForgotPasswordResponseData>;
|
|
6
|
+
}
|
|
7
|
+
export interface ForgotPasswordResponseData {
|
|
8
|
+
user: Partial<IUser>;
|
|
9
|
+
reset_password_link: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ForgotPasswordSendMailInfo extends SendMailInfo {
|
|
12
|
+
data: Partial<ForgotPasswordResponseData>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ICoreSyen } from "../schema/core";
|
|
2
|
+
export interface jwtPayload {
|
|
3
|
+
sylog_id_user?: string;
|
|
4
|
+
sylog_id_logses?: string;
|
|
5
|
+
user_username?: string;
|
|
6
|
+
sylog_config_data?: resetPasswordSylog;
|
|
7
|
+
core_system_entity?: ICoreSyen;
|
|
8
|
+
}
|
|
9
|
+
export interface resetPasswordJwtPayload {
|
|
10
|
+
user_password?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface resetPasswordSylog {
|
|
13
|
+
reset_password_link?: string;
|
|
14
|
+
reset_password_secret?: string;
|
|
15
|
+
request_timestamp?: Date;
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IUser } from "../schema/auth";
|
|
2
|
+
import { controllerResponse } from "../utilities/helpers/response.helper";
|
|
3
|
+
import { SendMailInfo } from "./emailServiceConfig";
|
|
4
|
+
export interface loginControllerResponse extends controllerResponse {
|
|
5
|
+
data?: Partial<loginResponseData>;
|
|
6
|
+
token?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface reLoginControllerResponse extends controllerResponse {
|
|
9
|
+
data?: Partial<loginResponseData>;
|
|
10
|
+
token?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface loginResponseData {
|
|
13
|
+
user: Partial<IUser>;
|
|
14
|
+
}
|
|
15
|
+
export interface LoginSendMailInfo extends SendMailInfo {
|
|
16
|
+
data: Partial<loginResponseData>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { controllerResponse } from "../utilities/helpers/response.helper";
|
|
2
|
+
export interface menuControllerResponse extends controllerResponse {
|
|
3
|
+
data?: menuResponseData[];
|
|
4
|
+
}
|
|
5
|
+
export interface menuResponseData {
|
|
6
|
+
key: string;
|
|
7
|
+
path: string;
|
|
8
|
+
isExternalLink?: boolean;
|
|
9
|
+
title: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
type: string;
|
|
12
|
+
subMenu: menuResponseData[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IUser } from "../schema/auth";
|
|
2
|
+
import { controllerResponse } from "../utilities/helpers/response.helper";
|
|
3
|
+
import { SendMailInfo } from "./emailServiceConfig";
|
|
4
|
+
export interface ResetPasswordControllerResponse extends controllerResponse {
|
|
5
|
+
data?: Partial<ResetPasswordResponseData>;
|
|
6
|
+
}
|
|
7
|
+
export interface SignOutControllerResponse extends controllerResponse {
|
|
8
|
+
}
|
|
9
|
+
export interface ResetPasswordResponseData {
|
|
10
|
+
user: Partial<IUser>;
|
|
11
|
+
reset_password_link: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ResetPasswordSendMailInfo extends SendMailInfo {
|
|
14
|
+
data: Partial<ResetPasswordResponseData>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IEntityErrorLogger } from "../model/core/entity";
|
|
2
|
+
export interface MRequestMiddelware {
|
|
3
|
+
Validate?: Function;
|
|
4
|
+
}
|
|
5
|
+
export declare class MTableQueries {
|
|
6
|
+
total: number;
|
|
7
|
+
pageIndex: number;
|
|
8
|
+
pageSize: number;
|
|
9
|
+
query: string;
|
|
10
|
+
sort: {
|
|
11
|
+
order: 'asc' | 'desc' | '';
|
|
12
|
+
key: string | number;
|
|
13
|
+
};
|
|
14
|
+
constructor(init: MTableQueries);
|
|
15
|
+
Validate?(): Partial<IEntityErrorLogger>;
|
|
16
|
+
}
|
|
17
|
+
export type TableQueries = MTableQueries;
|
|
18
|
+
export declare const initialTableData: TableQueries;
|
|
19
|
+
export type listView = 'grid' | 'list';
|
|
20
|
+
export type FilterQuery = {
|
|
21
|
+
sort: 'asc' | 'desc' | '';
|
|
22
|
+
search: '';
|
|
23
|
+
};
|
|
24
|
+
export interface paginationQueryResponse {
|
|
25
|
+
paginatedResults: any[];
|
|
26
|
+
totalDocument: number;
|
|
27
|
+
}
|
|
28
|
+
export interface CommonSelect {
|
|
29
|
+
label: string;
|
|
30
|
+
value: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initialTableData = exports.MTableQueries = void 0;
|
|
4
|
+
var MTableQueries = /** @class */ (function () {
|
|
5
|
+
function MTableQueries(init) {
|
|
6
|
+
this.total = 1;
|
|
7
|
+
this.pageIndex = 1;
|
|
8
|
+
this.pageSize = 10;
|
|
9
|
+
this.query = "";
|
|
10
|
+
this.sort = {
|
|
11
|
+
order: "",
|
|
12
|
+
key: ""
|
|
13
|
+
};
|
|
14
|
+
Object.assign(this, init);
|
|
15
|
+
}
|
|
16
|
+
MTableQueries.prototype.Validate = function () {
|
|
17
|
+
var _a, _b, _c, _d, _e;
|
|
18
|
+
var errorLogger = {};
|
|
19
|
+
if (this.sort) {
|
|
20
|
+
if (((_a = this.sort) === null || _a === void 0 ? void 0 : _a.order) != 'asc' && ((_b = this.sort) === null || _b === void 0 ? void 0 : _b.order) != 'desc' && ((_c = this.sort) === null || _c === void 0 ? void 0 : _c.order) != '') {
|
|
21
|
+
errorLogger.sort = "Incorect Sort order!";
|
|
22
|
+
}
|
|
23
|
+
if (typeof ((_d = this.sort) === null || _d === void 0 ? void 0 : _d.key) != 'string' && typeof ((_e = this.sort) === null || _e === void 0 ? void 0 : _e.key) != 'number') {
|
|
24
|
+
errorLogger.sort = "Incorect Sort key!";
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
errorLogger.sort = "Sort order and key is required!";
|
|
29
|
+
}
|
|
30
|
+
if (typeof (this.pageIndex) == 'number') {
|
|
31
|
+
if (this.pageIndex < 1) {
|
|
32
|
+
errorLogger.pageIndex = "Incorect Page Index!";
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
errorLogger.pageIndex = "Page index is required";
|
|
37
|
+
}
|
|
38
|
+
if (typeof (this.pageSize) == 'number') {
|
|
39
|
+
if (this.pageSize < 1) {
|
|
40
|
+
errorLogger.pageSize = "Incorect Page Size!";
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
errorLogger.pageSize = "Page Size is required";
|
|
45
|
+
}
|
|
46
|
+
return errorLogger;
|
|
47
|
+
};
|
|
48
|
+
return MTableQueries;
|
|
49
|
+
}());
|
|
50
|
+
exports.MTableQueries = MTableQueries;
|
|
51
|
+
exports.initialTableData = {
|
|
52
|
+
total: 0,
|
|
53
|
+
pageIndex: 1,
|
|
54
|
+
pageSize: 10,
|
|
55
|
+
query: '',
|
|
56
|
+
sort: {
|
|
57
|
+
order: '',
|
|
58
|
+
key: '',
|
|
59
|
+
},
|
|
60
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ICoreSypin } from "../schema/core";
|
|
2
|
+
import { controllerResponse } from "../utilities/helpers/response.helper";
|
|
3
|
+
import { CommonSelect } from "./common";
|
|
4
|
+
export interface generalMasterSelectControllerResponse extends controllerResponse {
|
|
5
|
+
data?: {
|
|
6
|
+
core_general_master: generalMasterSelectResponseData[];
|
|
7
|
+
core_general_master_type: generalMasterTypeResponseData[];
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface generalMasterSelectResponseData extends generalMasterResponseData {
|
|
11
|
+
title: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}
|
|
14
|
+
export interface generalMasterResponseData {
|
|
15
|
+
_id?: string;
|
|
16
|
+
sygms_code: string;
|
|
17
|
+
sygms_id_sygmt: string;
|
|
18
|
+
sygms_title: string;
|
|
19
|
+
sygms_desc: string;
|
|
20
|
+
sygms_isactive: string;
|
|
21
|
+
sygms_configuration: any;
|
|
22
|
+
}
|
|
23
|
+
export interface generalMasterTypeResponseData {
|
|
24
|
+
_id: string;
|
|
25
|
+
sygmt_code: string;
|
|
26
|
+
sygmt_title: string;
|
|
27
|
+
sygmt_desc: string;
|
|
28
|
+
sygmt_isactive: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface pinCodeSelectControllerResponse extends controllerResponse {
|
|
31
|
+
data?: {
|
|
32
|
+
core_pin_code: pinCodeSelectResponseData[];
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface pinCodeSelectResponseData extends ICoreSypin {
|
|
36
|
+
title: string;
|
|
37
|
+
value: string;
|
|
38
|
+
}
|
|
39
|
+
export interface userSelectControllerResponse extends controllerResponse {
|
|
40
|
+
data?: {
|
|
41
|
+
auth_user_mst: CommonSelect[];
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ICoreSypc, ICoreSypg, ICoreSypgr, ICoreSytm, ITabs } from "../schema/core";
|
|
2
|
+
import { controllerResponse } from "../utilities/helpers/response.helper";
|
|
3
|
+
export interface designConfigControllerResponse extends controllerResponse {
|
|
4
|
+
data?: designConfigResponseData;
|
|
5
|
+
}
|
|
6
|
+
export interface designConfigResponseData {
|
|
7
|
+
page?: Partial<ICoreSypg>;
|
|
8
|
+
theme?: Partial<ICoreSytm>;
|
|
9
|
+
grid?: {
|
|
10
|
+
[key: string]: ICoreSypgr;
|
|
11
|
+
};
|
|
12
|
+
controls?: {
|
|
13
|
+
[key: string]: ICoreSypc;
|
|
14
|
+
};
|
|
15
|
+
tab?: {
|
|
16
|
+
[key: string]: ICoreTabs;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface ICoreTabs {
|
|
20
|
+
_id?: string;
|
|
21
|
+
syptb_title: string;
|
|
22
|
+
syptb_tabs: {
|
|
23
|
+
[key: string]: ITabs;
|
|
24
|
+
};
|
|
25
|
+
syptb_tab_code: string;
|
|
26
|
+
syptb_page_id_sypg: string;
|
|
27
|
+
syptb_isactive?: boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface SendMailInfo {
|
|
2
|
+
reference: string;
|
|
3
|
+
receiver: string;
|
|
4
|
+
data: any;
|
|
5
|
+
}
|
|
6
|
+
export interface EmailServiceConfig {
|
|
7
|
+
service?: string;
|
|
8
|
+
auth: {
|
|
9
|
+
user: string;
|
|
10
|
+
pass: string;
|
|
11
|
+
};
|
|
12
|
+
host: string;
|
|
13
|
+
port: number;
|
|
14
|
+
secure: boolean;
|
|
15
|
+
requireTLS?: boolean;
|
|
16
|
+
debug?: boolean;
|
|
17
|
+
secureConnection?: boolean;
|
|
18
|
+
tls?: {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
};
|
|
21
|
+
connectionTimeout?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface EmailOptions {
|
|
24
|
+
from?: string;
|
|
25
|
+
to?: string;
|
|
26
|
+
subject?: string;
|
|
27
|
+
messageId?: string;
|
|
28
|
+
date?: Date;
|
|
29
|
+
body?: string;
|
|
30
|
+
reference?: any;
|
|
31
|
+
templete?: any;
|
|
32
|
+
custom?: boolean;
|
|
33
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { controllerResponse } from "../utilities/helpers/response.helper";
|
|
2
|
+
export interface entityControllerResponse extends controllerResponse {
|
|
3
|
+
data?: entityResponseData[];
|
|
4
|
+
}
|
|
5
|
+
export interface entityResponseData {
|
|
6
|
+
_id?: string;
|
|
7
|
+
syen_id_syen?: string;
|
|
8
|
+
syen_print_name?: string;
|
|
9
|
+
syen_entity_type_gmst?: string;
|
|
10
|
+
syen_name?: string;
|
|
11
|
+
syen_entity_code?: string;
|
|
12
|
+
syen_corporate_address?: string;
|
|
13
|
+
syen_corporate_pin_sypc?: string;
|
|
14
|
+
syen_corporate_pincode_sypc?: string;
|
|
15
|
+
syen_corporate_contact_person_user?: string;
|
|
16
|
+
syen_corporate_phone?: number;
|
|
17
|
+
syen_corporate_phone_alt?: number;
|
|
18
|
+
syen_corporate_fax?: string;
|
|
19
|
+
syen_corporate_email?: string;
|
|
20
|
+
syen_corporate_email_alt?: string;
|
|
21
|
+
syen_website?: string;
|
|
22
|
+
syen_currency_sycr?: string;
|
|
23
|
+
syen_registered_address?: string;
|
|
24
|
+
syen_registered_pin_sypc?: string;
|
|
25
|
+
syen_registered_pincode_sypc?: string;
|
|
26
|
+
syen_registered_phone?: number;
|
|
27
|
+
syen_registered_email?: string;
|
|
28
|
+
syen_registered_fax?: string;
|
|
29
|
+
syen_registered_contact_person_user?: string;
|
|
30
|
+
syen_udise_no?: string;
|
|
31
|
+
syen_affiliation_no?: string;
|
|
32
|
+
syen_photo_id_fm?: string;
|
|
33
|
+
syen_isactive?: boolean;
|
|
34
|
+
children: entityResponseData[];
|
|
35
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IUser } from "../schema/auth";
|
|
2
|
+
import { controllerResponse } from "../utilities/helpers/response.helper";
|
|
3
|
+
import { SendMailInfo } from "./emailServiceConfig";
|
|
4
|
+
export interface ForgotPasswordControllerResponse extends controllerResponse {
|
|
5
|
+
data?: Partial<ForgotPasswordResponseData>;
|
|
6
|
+
}
|
|
7
|
+
export interface ForgotPasswordResponseData {
|
|
8
|
+
user: Partial<IUser>;
|
|
9
|
+
reset_password_link: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ForgotPasswordSendMailInfo extends SendMailInfo {
|
|
12
|
+
data: Partial<ForgotPasswordResponseData>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./common"), exports);
|
|
18
|
+
__exportStar(require("./emailServiceConfig"), exports);
|
|
19
|
+
__exportStar(require("./jwtPayload"), exports);
|
|
20
|
+
__exportStar(require("./userPermissions"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { resetPasswordSylog } from "../model";
|
|
2
|
+
import { ICoreSyen } from "../schema/core";
|
|
3
|
+
export interface jwtPayload {
|
|
4
|
+
sylog_id_user?: string;
|
|
5
|
+
sylog_id_logses?: string;
|
|
6
|
+
user_username?: string;
|
|
7
|
+
sylog_config_data?: resetPasswordSylog;
|
|
8
|
+
core_system_entity?: ICoreSyen;
|
|
9
|
+
}
|