cloud-ide-model-schema 1.1.101 → 1.1.103
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/schema/frontdesk/fdsk_leads.js +9 -9
- package/package.json +35 -35
- package/lib/@types/README.md +0 -21
- package/lib/@types/common.d.ts +0 -22
- package/lib/@types/common.js +0 -50
- package/lib/@types/coreControllerResponse.d.ts +0 -43
- package/lib/@types/coreControllerResponse.js +0 -2
- package/lib/@types/designConfigControllerResponse.d.ts +0 -28
- package/lib/@types/designConfigControllerResponse.js +0 -2
- package/lib/@types/emailServiceConfig.d.ts +0 -33
- package/lib/@types/emailServiceConfig.js +0 -2
- package/lib/@types/entityControllerResponse.d.ts +0 -35
- package/lib/@types/entityControllerResponse.js +0 -2
- package/lib/@types/forgotPasswordControllerResponse.d.ts +0 -13
- package/lib/@types/forgotPasswordControllerResponse.js +0 -2
- package/lib/@types/jwtPayload.d.ts +0 -16
- package/lib/@types/jwtPayload.js +0 -2
- package/lib/@types/loginControllerResponse.d.ts +0 -17
- package/lib/@types/loginControllerResponse.js +0 -2
- package/lib/@types/menuControllerResponse.d.ts +0 -13
- package/lib/@types/menuControllerResponse.js +0 -2
- package/lib/@types/resetPasswordControllerResponse.d.ts +0 -15
- package/lib/@types/resetPasswordControllerResponse.js +0 -2
- package/lib/@types/userPermissions.d.ts +0 -7
- package/lib/@types/userPermissions.js +0 -2
- package/lib/README.md +0 -44
- package/lib/common-types/README.md +0 -27
- package/lib/common-types/common.d.ts +0 -31
- package/lib/common-types/common.js +0 -60
- package/lib/common-types/coreControllerResponse.d.ts +0 -43
- package/lib/common-types/coreControllerResponse.js +0 -2
- package/lib/common-types/designConfigControllerResponse.d.ts +0 -28
- package/lib/common-types/designConfigControllerResponse.js +0 -2
- package/lib/common-types/emailServiceConfig.d.ts +0 -33
- package/lib/common-types/emailServiceConfig.js +0 -2
- package/lib/common-types/entityControllerResponse.d.ts +0 -35
- package/lib/common-types/entityControllerResponse.js +0 -2
- package/lib/common-types/forgotPasswordControllerResponse.d.ts +0 -13
- package/lib/common-types/forgotPasswordControllerResponse.js +0 -2
- package/lib/common-types/index.d.ts +0 -4
- package/lib/common-types/index.js +0 -20
- package/lib/common-types/jwtPayload.d.ts +0 -9
- package/lib/common-types/jwtPayload.js +0 -2
- package/lib/common-types/loginControllerResponse.d.ts +0 -17
- package/lib/common-types/loginControllerResponse.js +0 -2
- package/lib/common-types/menuControllerResponse.d.ts +0 -13
- package/lib/common-types/menuControllerResponse.js +0 -2
- package/lib/common-types/resetPasswordControllerResponse.d.ts +0 -15
- package/lib/common-types/resetPasswordControllerResponse.js +0 -2
- package/lib/common-types/userPermissions.d.ts +0 -7
- package/lib/common-types/userPermissions.js +0 -2
- package/lib/config/README.md +0 -28
- package/lib/model/README.md +0 -30
- package/lib/model/auth/forgot-password.d.ts +0 -28
- package/lib/model/auth/forgot-password.js +0 -62
- package/lib/model/auth/index.d.ts +0 -4
- package/lib/model/auth/index.js +0 -20
- package/lib/model/auth/login.d.ts +0 -44
- package/lib/model/auth/login.js +0 -109
- package/lib/model/auth/register.d.ts +0 -20
- package/lib/model/auth/register.js +0 -33
- package/lib/model/auth/reset-password.d.ts +0 -36
- package/lib/model/auth/reset-password.js +0 -22
- package/lib/model/core/design-config.d.ts +0 -34
- package/lib/model/core/design-config.js +0 -19
- package/lib/model/core/entity.d.ts +0 -47
- package/lib/model/core/entity.js +0 -35
- package/lib/model/core/general-master.d.ts +0 -37
- package/lib/model/core/general-master.js +0 -19
- package/lib/model/core/index.d.ts +0 -6
- package/lib/model/core/index.js +0 -22
- package/lib/model/core/menu.d.ts +0 -28
- package/lib/model/core/menu.js +0 -31
- package/lib/model/core/pin-code.d.ts +0 -21
- package/lib/model/core/pin-code.js +0 -28
- package/lib/model/core/user.d.ts +0 -19
- package/lib/model/core/user.js +0 -19
- package/lib/model/index.d.ts +0 -2
- package/lib/model/index.js +0 -18
- package/lib/schema/README.md +0 -51
- package/lib/schema/auth/mpin.d.ts +0 -37
- package/lib/schema/auth/mpin.js +0 -54
- package/lib/schema/core/aca_class_program_master.d.ts +0 -8
- package/lib/schema/core/aca_class_program_master.js +0 -32
- package/lib/schema/core/aca_class_program_term.d.ts +0 -8
- package/lib/schema/core/aca_class_program_term.js +0 -52
- package/lib/schema/core/aca_prg_trm_section.d.ts +0 -8
- package/lib/schema/core/aca_prg_trm_section.js +0 -45
- package/lib/schema/core/core_academic_year.d.ts +0 -8
- package/lib/schema/core/core_academic_year.js +0 -47
- package/lib/schema/core/core_academic_year_mapping.d.ts +0 -8
- package/lib/schema/core/core_academic_year_mapping.js +0 -25
- package/lib/schema/core/core_financial_year.d.ts +0 -8
- package/lib/schema/core/core_financial_year.js +0 -47
- package/lib/schema/core/core_financial_year_mapping.d.ts +0 -8
- package/lib/schema/core/core_financial_year_mapping.js +0 -25
- package/lib/schema/core/core_page_controls.d.ts +0 -30
- package/lib/schema/core/core_page_controls.js +0 -75
- package/lib/schema/email/elist.d.ts +0 -36
- package/lib/schema/email/elist.js +0 -42
- package/lib/schema/email/elog.d.ts +0 -41
- package/lib/schema/email/elog.js +0 -58
- package/lib/schema/email/eref.d.ts +0 -37
- package/lib/schema/email/eref.js +0 -43
- package/lib/schema/email/esub.d.ts +0 -43
- package/lib/schema/email/esub.js +0 -69
- package/lib/schema/email/etmp.d.ts +0 -36
- package/lib/schema/email/etmp.js +0 -41
- package/lib/schema/email/evdr.d.ts +0 -36
- package/lib/schema/email/evdr.js +0 -41
- package/lib/utilities/README.md +0 -22
- package/lib/utilities/helpers/encryption.helper.d.ts +0 -2
- package/lib/utilities/helpers/encryption.helper.js +0 -14
- package/lib/utilities/helpers/error.helper.d.ts +0 -9
- package/lib/utilities/helpers/error.helper.js +0 -26
- package/lib/utilities/helpers/index.d.ts +0 -5
- package/lib/utilities/helpers/index.js +0 -21
- package/lib/utilities/helpers/response.helper.d.ts +0 -16
- package/lib/utilities/helpers/response.helper.js +0 -9
- package/lib/utilities/helpers/string.helper.d.ts +0 -3
- package/lib/utilities/helpers/string.helper.js +0 -232
- package/lib/utilities/helpers/type.hepler.d.ts +0 -3
- package/lib/utilities/helpers/type.hepler.js +0 -2
- package/lib/utilities/helpers/view.helper.d.ts +0 -2
- package/lib/utilities/helpers/view.helper.js +0 -14
- package/lib/utilities/index.d.ts +0 -1
- package/lib/utilities/index.js +0 -17
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MRegister = void 0;
|
|
4
|
-
/* INTERFACE END */
|
|
5
|
-
/* MODEL START */
|
|
6
|
-
var MRegister = /** @class */ (function () {
|
|
7
|
-
function MRegister(init) {
|
|
8
|
-
Object.assign(this, init);
|
|
9
|
-
}
|
|
10
|
-
MRegister.prototype.Validate = function () {
|
|
11
|
-
var _a, _b;
|
|
12
|
-
var errorLogger = [];
|
|
13
|
-
if (!this.user_username) {
|
|
14
|
-
errorLogger.push({
|
|
15
|
-
control: "user_username",
|
|
16
|
-
message: "Username is Required"
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
/* if password is selected by user */
|
|
20
|
-
if (this.user_password) {
|
|
21
|
-
/* Check wether length is in between 8 to 50 or not */
|
|
22
|
-
if (((_a = this.user_password) === null || _a === void 0 ? void 0 : _a.length) < 8 || ((_b = this.user_password) === null || _b === void 0 ? void 0 : _b.length) > 50) {
|
|
23
|
-
errorLogger.push({
|
|
24
|
-
control: "user_password",
|
|
25
|
-
message: "Password is Invalid!"
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return errorLogger;
|
|
30
|
-
};
|
|
31
|
-
return MRegister;
|
|
32
|
-
}());
|
|
33
|
-
exports.MRegister = MRegister;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { SendMailInfo } from "../../common-types";
|
|
2
|
-
import { IUser } from "../../schema";
|
|
3
|
-
import { controllerResponse } from "../../utilities";
|
|
4
|
-
type IResetPasswordErrorLogger = {
|
|
5
|
-
[key in keyof MResetPassword]: string;
|
|
6
|
-
};
|
|
7
|
-
declare class MResetPassword {
|
|
8
|
-
user_password: string;
|
|
9
|
-
user_username: string;
|
|
10
|
-
sylog_config_data: resetPasswordSylog;
|
|
11
|
-
constructor(init: MResetPassword);
|
|
12
|
-
Validate?(): Partial<IResetPasswordErrorLogger>;
|
|
13
|
-
}
|
|
14
|
-
interface resetPasswordJwtPayload {
|
|
15
|
-
user_password?: string;
|
|
16
|
-
}
|
|
17
|
-
interface resetPasswordSylog {
|
|
18
|
-
reset_password_link?: string;
|
|
19
|
-
reset_password_secret?: string;
|
|
20
|
-
request_timestamp?: Date;
|
|
21
|
-
}
|
|
22
|
-
interface ResetPasswordControllerResponse extends controllerResponse {
|
|
23
|
-
data?: Partial<ResetPasswordResponseData>;
|
|
24
|
-
}
|
|
25
|
-
interface SignOutControllerResponse extends controllerResponse {
|
|
26
|
-
}
|
|
27
|
-
interface ResetPasswordResponseData {
|
|
28
|
-
user: Partial<IUser>;
|
|
29
|
-
reset_password_link: string;
|
|
30
|
-
}
|
|
31
|
-
interface ResetPasswordSendMailInfo extends SendMailInfo {
|
|
32
|
-
data: Partial<ResetPasswordResponseData>;
|
|
33
|
-
}
|
|
34
|
-
export { IResetPasswordErrorLogger, //interface
|
|
35
|
-
MResetPassword, // model
|
|
36
|
-
resetPasswordJwtPayload, resetPasswordSylog, ResetPasswordControllerResponse, ResetPasswordResponseData, ResetPasswordSendMailInfo, SignOutControllerResponse };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MResetPassword = void 0;
|
|
4
|
-
/* INTERFACE END */
|
|
5
|
-
/* MODEL START */
|
|
6
|
-
var MResetPassword = /** @class */ (function () {
|
|
7
|
-
function MResetPassword(init) {
|
|
8
|
-
Object.assign(this, init);
|
|
9
|
-
}
|
|
10
|
-
MResetPassword.prototype.Validate = function () {
|
|
11
|
-
var errorLogger = {};
|
|
12
|
-
if (!this.sylog_config_data) {
|
|
13
|
-
errorLogger.sylog_config_data = "Configuration Data is Required!";
|
|
14
|
-
}
|
|
15
|
-
if (!this.user_password) {
|
|
16
|
-
errorLogger.user_password = "Password is Required!";
|
|
17
|
-
}
|
|
18
|
-
return errorLogger;
|
|
19
|
-
};
|
|
20
|
-
return MResetPassword;
|
|
21
|
-
}());
|
|
22
|
-
exports.MResetPassword = MResetPassword;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ICoreSypc, ICoreSypg, ICoreSypgr, ICoreSyptb, ICoreSytm, ITabs } from "../../schema";
|
|
2
|
-
import { controllerResponse } from "../../utilities";
|
|
3
|
-
type IDesignConfigErrorLogger = {
|
|
4
|
-
[key in keyof MDesignConfig]: string;
|
|
5
|
-
};
|
|
6
|
-
declare class MDesignConfig {
|
|
7
|
-
sypg_page_code?: string;
|
|
8
|
-
constructor(init: MDesignConfig);
|
|
9
|
-
Validate?(): Partial<IDesignConfigErrorLogger>;
|
|
10
|
-
}
|
|
11
|
-
interface designConfigControllerResponse extends controllerResponse {
|
|
12
|
-
data?: designConfigResponseData;
|
|
13
|
-
}
|
|
14
|
-
interface designConfigResponseData {
|
|
15
|
-
page?: Partial<ICoreSypg>;
|
|
16
|
-
theme?: Partial<ICoreSytm>;
|
|
17
|
-
grid?: {
|
|
18
|
-
[key: string]: ICoreSypgr;
|
|
19
|
-
};
|
|
20
|
-
controls?: {
|
|
21
|
-
[key: string]: ICoreSypc;
|
|
22
|
-
};
|
|
23
|
-
tab?: {
|
|
24
|
-
[key: string]: ICoreTabs;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
interface ICoreTabs extends ICoreSyptb {
|
|
28
|
-
syptb_tabs_select: {
|
|
29
|
-
[key: string]: ITabs;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export { IDesignConfigErrorLogger, //interface
|
|
33
|
-
MDesignConfig, // model
|
|
34
|
-
designConfigControllerResponse, designConfigResponseData, ICoreTabs };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MDesignConfig = void 0;
|
|
4
|
-
/* INTERFACE END */
|
|
5
|
-
/* MODEL START */
|
|
6
|
-
var MDesignConfig = /** @class */ (function () {
|
|
7
|
-
function MDesignConfig(init) {
|
|
8
|
-
Object.assign(this, init);
|
|
9
|
-
}
|
|
10
|
-
MDesignConfig.prototype.Validate = function () {
|
|
11
|
-
var errorLogger = {};
|
|
12
|
-
if (!this.sypg_page_code) {
|
|
13
|
-
errorLogger.sypg_page_code = "Page Code is Required!";
|
|
14
|
-
}
|
|
15
|
-
return errorLogger;
|
|
16
|
-
};
|
|
17
|
-
return MDesignConfig;
|
|
18
|
-
}());
|
|
19
|
-
exports.MDesignConfig = MDesignConfig;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { MTableQueries } from "../../common-types/common";
|
|
2
|
-
import { controllerResponse } from "../../utilities";
|
|
3
|
-
type IEntityErrorLogger = {
|
|
4
|
-
[key in keyof MEntity]: string;
|
|
5
|
-
};
|
|
6
|
-
declare class MEntity extends MTableQueries {
|
|
7
|
-
syen_id?: string;
|
|
8
|
-
constructor(init: MEntity);
|
|
9
|
-
Validate?(): Partial<IEntityErrorLogger>;
|
|
10
|
-
}
|
|
11
|
-
interface entityControllerResponse extends controllerResponse {
|
|
12
|
-
data?: entityResponseData[];
|
|
13
|
-
}
|
|
14
|
-
interface entityResponseData {
|
|
15
|
-
_id?: string;
|
|
16
|
-
syen_id_syen?: string;
|
|
17
|
-
syen_print_name?: string;
|
|
18
|
-
syen_entity_type_gmst?: string;
|
|
19
|
-
syen_name?: string;
|
|
20
|
-
syen_entity_code?: string;
|
|
21
|
-
syen_corporate_address?: string;
|
|
22
|
-
syen_corporate_pin_sypc?: string;
|
|
23
|
-
syen_corporate_pincode_sypc?: string;
|
|
24
|
-
syen_corporate_contact_person_user?: string;
|
|
25
|
-
syen_corporate_phone?: number;
|
|
26
|
-
syen_corporate_phone_alt?: number;
|
|
27
|
-
syen_corporate_fax?: string;
|
|
28
|
-
syen_corporate_email?: string;
|
|
29
|
-
syen_corporate_email_alt?: string;
|
|
30
|
-
syen_website?: string;
|
|
31
|
-
syen_currency_sycr?: string;
|
|
32
|
-
syen_registered_address?: string;
|
|
33
|
-
syen_registered_pin_sypc?: string;
|
|
34
|
-
syen_registered_pincode_sypc?: string;
|
|
35
|
-
syen_registered_phone?: number;
|
|
36
|
-
syen_registered_email?: string;
|
|
37
|
-
syen_registered_fax?: string;
|
|
38
|
-
syen_registered_contact_person_user?: string;
|
|
39
|
-
syen_udise_no?: string;
|
|
40
|
-
syen_affiliation_no?: string;
|
|
41
|
-
syen_photo_id_fm?: string;
|
|
42
|
-
syen_isactive?: boolean;
|
|
43
|
-
children: entityResponseData[];
|
|
44
|
-
}
|
|
45
|
-
export { IEntityErrorLogger, //interface
|
|
46
|
-
MEntity, // model
|
|
47
|
-
entityControllerResponse, entityResponseData };
|
package/lib/model/core/entity.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.MEntity = void 0;
|
|
19
|
-
var common_1 = require("../../common-types/common");
|
|
20
|
-
/* INTERFACE END */
|
|
21
|
-
/* MODEL START */
|
|
22
|
-
var MEntity = /** @class */ (function (_super) {
|
|
23
|
-
__extends(MEntity, _super);
|
|
24
|
-
function MEntity(init) {
|
|
25
|
-
var _this = _super.call(this, init) || this;
|
|
26
|
-
Object.assign(_this, init);
|
|
27
|
-
return _this;
|
|
28
|
-
}
|
|
29
|
-
MEntity.prototype.Validate = function () {
|
|
30
|
-
var errorLogger = {};
|
|
31
|
-
return errorLogger;
|
|
32
|
-
};
|
|
33
|
-
return MEntity;
|
|
34
|
-
}(common_1.MTableQueries));
|
|
35
|
-
exports.MEntity = MEntity;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { CommonSelect } from "../../common-types";
|
|
2
|
-
import { controllerResponse } from "../../utilities";
|
|
3
|
-
type IGeneralMasterSelectErrorLogger = {
|
|
4
|
-
[key in keyof MGeneralMasterSelect]: string;
|
|
5
|
-
};
|
|
6
|
-
declare class MGeneralMasterSelect {
|
|
7
|
-
sygmt_code?: string;
|
|
8
|
-
constructor(init: MGeneralMasterSelect);
|
|
9
|
-
Validate?(): Partial<IGeneralMasterSelectErrorLogger>;
|
|
10
|
-
}
|
|
11
|
-
interface generalMasterSelectControllerResponse extends controllerResponse {
|
|
12
|
-
data?: {
|
|
13
|
-
core_general_master: generalMasterResponseData[];
|
|
14
|
-
core_general_master_type: generalMasterTypeResponseData[];
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
interface generalMasterResponseData extends CommonSelect {
|
|
18
|
-
_id?: string;
|
|
19
|
-
sygms_code: string;
|
|
20
|
-
sygms_id_sygmt: string;
|
|
21
|
-
sygms_title: string;
|
|
22
|
-
sygms_desc: string;
|
|
23
|
-
sygms_isactive: string;
|
|
24
|
-
sygms_configuration: any;
|
|
25
|
-
}
|
|
26
|
-
interface generalMasterTypeResponseData {
|
|
27
|
-
_id: string;
|
|
28
|
-
sygmt_code: string;
|
|
29
|
-
sygmt_title: string;
|
|
30
|
-
sygmt_desc: string;
|
|
31
|
-
sygmt_isactive: boolean;
|
|
32
|
-
}
|
|
33
|
-
export { IGeneralMasterSelectErrorLogger, //interface
|
|
34
|
-
MGeneralMasterSelect, // model
|
|
35
|
-
generalMasterSelectControllerResponse, // Select
|
|
36
|
-
generalMasterResponseData, // simple response
|
|
37
|
-
generalMasterTypeResponseData };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MGeneralMasterSelect = void 0;
|
|
4
|
-
/* INTERFACE END */
|
|
5
|
-
/* MODEL START */
|
|
6
|
-
var MGeneralMasterSelect = /** @class */ (function () {
|
|
7
|
-
function MGeneralMasterSelect(init) {
|
|
8
|
-
Object.assign(this, init);
|
|
9
|
-
}
|
|
10
|
-
MGeneralMasterSelect.prototype.Validate = function () {
|
|
11
|
-
var errorLogger = {};
|
|
12
|
-
if (!this.sygmt_code) {
|
|
13
|
-
errorLogger.sygmt_code = "Master Type is required";
|
|
14
|
-
}
|
|
15
|
-
return errorLogger;
|
|
16
|
-
};
|
|
17
|
-
return MGeneralMasterSelect;
|
|
18
|
-
}());
|
|
19
|
-
exports.MGeneralMasterSelect = MGeneralMasterSelect;
|
package/lib/model/core/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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("./design-config"), exports);
|
|
18
|
-
__exportStar(require("./entity"), exports);
|
|
19
|
-
__exportStar(require("./general-master"), exports);
|
|
20
|
-
__exportStar(require("./menu"), exports);
|
|
21
|
-
__exportStar(require("./pin-code"), exports);
|
|
22
|
-
__exportStar(require("./user"), exports);
|
package/lib/model/core/menu.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { controllerResponse } from "../../utilities";
|
|
2
|
-
type IMenuErrorLogger = {
|
|
3
|
-
[key in keyof MMenu]: string;
|
|
4
|
-
};
|
|
5
|
-
declare class MMenu {
|
|
6
|
-
syme_id?: string;
|
|
7
|
-
syme_title?: string;
|
|
8
|
-
sort?: 'asc' | 'desc';
|
|
9
|
-
constructor(init: MMenu);
|
|
10
|
-
Validate?(): Partial<IMenuErrorLogger>;
|
|
11
|
-
}
|
|
12
|
-
interface menuControllerResponse extends controllerResponse {
|
|
13
|
-
data?: menuResponseData[];
|
|
14
|
-
}
|
|
15
|
-
interface menuResponseData {
|
|
16
|
-
_id: string;
|
|
17
|
-
syme_title: string;
|
|
18
|
-
syme_desc: string;
|
|
19
|
-
syme_path: string;
|
|
20
|
-
syme_icon: string;
|
|
21
|
-
syme_type: string;
|
|
22
|
-
syme_link: boolean;
|
|
23
|
-
children: menuResponseData[];
|
|
24
|
-
}
|
|
25
|
-
export { IMenuErrorLogger, //interface
|
|
26
|
-
MMenu, // model
|
|
27
|
-
menuControllerResponse, // above coresponding to payload abd this corespons to rresponse
|
|
28
|
-
menuResponseData };
|
package/lib/model/core/menu.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MMenu = void 0;
|
|
4
|
-
/* INTERFACE END */
|
|
5
|
-
/* MODEL START */
|
|
6
|
-
var MMenu = /** @class */ (function () {
|
|
7
|
-
function MMenu(init) {
|
|
8
|
-
Object.assign(this, init);
|
|
9
|
-
}
|
|
10
|
-
MMenu.prototype.Validate = function () {
|
|
11
|
-
var errorLogger = {};
|
|
12
|
-
if (!this.syme_id) {
|
|
13
|
-
errorLogger.syme_id = "System menu ID is Required!";
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
if (this.syme_id == 'module') {
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
if (!this.sort) {
|
|
20
|
-
errorLogger.sort = "sort order is Required!";
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
if (this.sort != 'asc' && this.sort != 'desc') {
|
|
24
|
-
errorLogger.sort = "sort order is Required!";
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return errorLogger;
|
|
28
|
-
};
|
|
29
|
-
return MMenu;
|
|
30
|
-
}());
|
|
31
|
-
exports.MMenu = MMenu;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ICoreSypin } from "../../schema";
|
|
2
|
-
import { controllerResponse } from "../../utilities";
|
|
3
|
-
type IPinCodeSelectErrorLogger = {
|
|
4
|
-
[key in keyof MPinCodeSelect]: string;
|
|
5
|
-
};
|
|
6
|
-
declare class MPinCodeSelect {
|
|
7
|
-
sypin_pincode?: string;
|
|
8
|
-
sypin_id?: string;
|
|
9
|
-
constructor(init: MPinCodeSelect);
|
|
10
|
-
Validate?(): Partial<IPinCodeSelectErrorLogger>;
|
|
11
|
-
}
|
|
12
|
-
interface pinCodeSelectControllerResponse extends controllerResponse {
|
|
13
|
-
data?: {
|
|
14
|
-
core_pin_code: pinCodeSelectResponseData[];
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
type pinCodeSelectResponseData = ICoreSypin & controllerResponse;
|
|
18
|
-
export { IPinCodeSelectErrorLogger, //interface
|
|
19
|
-
MPinCodeSelect, // model
|
|
20
|
-
pinCodeSelectControllerResponse, // service response
|
|
21
|
-
pinCodeSelectResponseData };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MPinCodeSelect = void 0;
|
|
4
|
-
/* INTERFACE END */
|
|
5
|
-
/* MODEL START */
|
|
6
|
-
var MPinCodeSelect = /** @class */ (function () {
|
|
7
|
-
function MPinCodeSelect(init) {
|
|
8
|
-
Object.assign(this, init);
|
|
9
|
-
}
|
|
10
|
-
MPinCodeSelect.prototype.Validate = function () {
|
|
11
|
-
var _a;
|
|
12
|
-
var errorLogger = {};
|
|
13
|
-
if (!this.sypin_pincode) {
|
|
14
|
-
errorLogger.sypin_pincode = "Pin Code is Required!";
|
|
15
|
-
}
|
|
16
|
-
else if (!this.sypin_id && !this.sypin_pincode) {
|
|
17
|
-
errorLogger.sypin_id = "Pin Code ID is Required!";
|
|
18
|
-
}
|
|
19
|
-
else if (this.sypin_pincode) {
|
|
20
|
-
if (((_a = this.sypin_pincode) === null || _a === void 0 ? void 0 : _a.length) < 5) {
|
|
21
|
-
errorLogger.sypin_pincode = "Pin Code must be 5 characters";
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return errorLogger;
|
|
25
|
-
};
|
|
26
|
-
return MPinCodeSelect;
|
|
27
|
-
}());
|
|
28
|
-
exports.MPinCodeSelect = MPinCodeSelect;
|
package/lib/model/core/user.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CommonSelect } from "../../common-types";
|
|
2
|
-
import { controllerResponse } from "../../utilities";
|
|
3
|
-
type IUserSelectErrorLogger = {
|
|
4
|
-
[key in keyof MUserSelect]: string;
|
|
5
|
-
};
|
|
6
|
-
declare class MUserSelect {
|
|
7
|
-
user_fullname?: string;
|
|
8
|
-
user_id?: string;
|
|
9
|
-
constructor(init: MUserSelect);
|
|
10
|
-
Validate?(): Partial<IUserSelectErrorLogger>;
|
|
11
|
-
}
|
|
12
|
-
interface userSelectControllerResponse extends controllerResponse {
|
|
13
|
-
data?: {
|
|
14
|
-
auth_user_mst: CommonSelect[];
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export { IUserSelectErrorLogger, //interface
|
|
18
|
-
MUserSelect, // model
|
|
19
|
-
userSelectControllerResponse };
|
package/lib/model/core/user.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MUserSelect = void 0;
|
|
4
|
-
/* INTERFACE END */
|
|
5
|
-
/* MODEL START */
|
|
6
|
-
var MUserSelect = /** @class */ (function () {
|
|
7
|
-
function MUserSelect(init) {
|
|
8
|
-
Object.assign(this, init);
|
|
9
|
-
}
|
|
10
|
-
MUserSelect.prototype.Validate = function () {
|
|
11
|
-
var errorLogger = {};
|
|
12
|
-
if (!this.user_fullname) {
|
|
13
|
-
errorLogger.user_fullname = "Name of user is Required!";
|
|
14
|
-
}
|
|
15
|
-
return errorLogger;
|
|
16
|
-
};
|
|
17
|
-
return MUserSelect;
|
|
18
|
-
}());
|
|
19
|
-
exports.MUserSelect = MUserSelect;
|
package/lib/model/index.d.ts
DELETED
package/lib/model/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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("./auth"), exports);
|
|
18
|
-
__exportStar(require("./core"), exports);
|
package/lib/schema/README.md
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# Schema Directory
|
|
2
|
-
|
|
3
|
-
This directory contains the compiled JavaScript files and TypeScript declaration files for all MongoDB schema definitions used in the Cloud IDE LMS system.
|
|
4
|
-
|
|
5
|
-
## Navigation
|
|
6
|
-
|
|
7
|
-
- [Back to Compiled Output](../README.md)
|
|
8
|
-
- [Back to Main README](../../README.md)
|
|
9
|
-
- [Common Types Documentation](../common-types/README.md)
|
|
10
|
-
- [Model Interfaces Documentation](../model/README.md)
|
|
11
|
-
|
|
12
|
-
## Directory Structure
|
|
13
|
-
|
|
14
|
-
### Authentication Schemas (`/auth`)
|
|
15
|
-
|
|
16
|
-
Contains compiled schemas for user authentication, profiles, and sessions:
|
|
17
|
-
- User management
|
|
18
|
-
- Login sessions
|
|
19
|
-
- Mobile PIN authentication
|
|
20
|
-
|
|
21
|
-
### Core System Schemas (`/core`)
|
|
22
|
-
|
|
23
|
-
Contains compiled schemas for core system functionality:
|
|
24
|
-
- System logging with custom ID generation
|
|
25
|
-
- System pages and themes
|
|
26
|
-
- Menu management
|
|
27
|
-
- Entity management
|
|
28
|
-
- General master data
|
|
29
|
-
- File management
|
|
30
|
-
|
|
31
|
-
### Email Service Schemas (`/email`)
|
|
32
|
-
|
|
33
|
-
Contains compiled schemas for email management:
|
|
34
|
-
- Email lists
|
|
35
|
-
- Templates
|
|
36
|
-
- Logging
|
|
37
|
-
- Vendor management
|
|
38
|
-
|
|
39
|
-
## Usage
|
|
40
|
-
|
|
41
|
-
These compiled schema files are the actual Mongoose models used in MongoDB operations. They implement the interfaces defined in the model directory.
|
|
42
|
-
|
|
43
|
-
## Advanced Features
|
|
44
|
-
|
|
45
|
-
### Custom ID Generation
|
|
46
|
-
|
|
47
|
-
Some schemas like `core_system_logs` implement custom ID generation using the `customUUID()` utility from the configuration module. This provides:
|
|
48
|
-
|
|
49
|
-
- Application-specific ID prefixes via the `UUID_PREFIX` environment variable
|
|
50
|
-
- Combination with MongoDB ObjectId for uniqueness
|
|
51
|
-
- Consistent ID format across the application
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import mongoose from "mongoose";
|
|
26
|
-
declare class IMpin {
|
|
27
|
-
mpin_pin: number;
|
|
28
|
-
mpin_id_user: string;
|
|
29
|
-
mpin_expiry_dtm: Date;
|
|
30
|
-
mpin_used: boolean;
|
|
31
|
-
mpin_isactive: boolean;
|
|
32
|
-
}
|
|
33
|
-
declare const CMpin: mongoose.Model<IMpin, {}, {}, {}, mongoose.Document<unknown, {}, IMpin> & IMpin & {
|
|
34
|
-
_id: mongoose.Types.ObjectId;
|
|
35
|
-
}, any>;
|
|
36
|
-
export { IMpin, // interface
|
|
37
|
-
CMpin };
|
package/lib/schema/auth/mpin.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CMpin = exports.IMpin = void 0;
|
|
4
|
-
var mongoose_1 = require("mongoose");
|
|
5
|
-
/* INTERFASE START */
|
|
6
|
-
var IMpin = /** @class */ (function () {
|
|
7
|
-
function IMpin() {
|
|
8
|
-
}
|
|
9
|
-
return IMpin;
|
|
10
|
-
}());
|
|
11
|
-
exports.IMpin = IMpin;
|
|
12
|
-
/* INTERFACE END */
|
|
13
|
-
/* SCHEMA START */
|
|
14
|
-
var auth_mpin = new mongoose_1.Schema({
|
|
15
|
-
mpin_id_user: {
|
|
16
|
-
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
17
|
-
ref: 'auth_user_mst',
|
|
18
|
-
required: true,
|
|
19
|
-
comment: "User unique primery key, reference user"
|
|
20
|
-
},
|
|
21
|
-
mpin_pin: {
|
|
22
|
-
type: Number,
|
|
23
|
-
require: true,
|
|
24
|
-
unique: true,
|
|
25
|
-
minlength: 6,
|
|
26
|
-
minlenght: 6
|
|
27
|
-
},
|
|
28
|
-
mpin_generation_dtm: {
|
|
29
|
-
type: Date,
|
|
30
|
-
required: true,
|
|
31
|
-
default: new Date()
|
|
32
|
-
},
|
|
33
|
-
mpin_expiry_dtm: {
|
|
34
|
-
type: Date,
|
|
35
|
-
required: true,
|
|
36
|
-
default: new Date()
|
|
37
|
-
},
|
|
38
|
-
mpin_used: {
|
|
39
|
-
type: Boolean,
|
|
40
|
-
default: false
|
|
41
|
-
},
|
|
42
|
-
mpin_id_logses: {
|
|
43
|
-
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
44
|
-
comment: "logses session table, whre loggin id is stored which used the mpin",
|
|
45
|
-
trim: true
|
|
46
|
-
},
|
|
47
|
-
mpin_isactive: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: true,
|
|
50
|
-
comment: "automaticaly expire when expiry time completes, when authenticator is refreshed new key generates and this will set to false"
|
|
51
|
-
}
|
|
52
|
-
}, { collection: 'auth_mpin' });
|
|
53
|
-
var CMpin = mongoose_1.default.model("auth_mpin", auth_mpin);
|
|
54
|
-
exports.CMpin = CMpin;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AcaClassProgramMaster } from "cloud-ide-lms-model";
|
|
2
|
-
import mongoose from "mongoose";
|
|
3
|
-
declare const CAcaClassProgramMaster: mongoose.Model<AcaClassProgramMaster, {}, {}, {}, mongoose.Document<unknown, {}, AcaClassProgramMaster, {}> & AcaClassProgramMaster & Required<{
|
|
4
|
-
_id: string;
|
|
5
|
-
}> & {
|
|
6
|
-
__v: number;
|
|
7
|
-
}, any>;
|
|
8
|
-
export { CAcaClassProgramMaster };
|