cloud-ide-model-schema 1.1.101 → 1.1.102

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.
Files changed (127) hide show
  1. package/lib/schema/frontdesk/fdsk_leads.js +8 -8
  2. package/package.json +35 -35
  3. package/lib/@types/README.md +0 -21
  4. package/lib/@types/common.d.ts +0 -22
  5. package/lib/@types/common.js +0 -50
  6. package/lib/@types/coreControllerResponse.d.ts +0 -43
  7. package/lib/@types/coreControllerResponse.js +0 -2
  8. package/lib/@types/designConfigControllerResponse.d.ts +0 -28
  9. package/lib/@types/designConfigControllerResponse.js +0 -2
  10. package/lib/@types/emailServiceConfig.d.ts +0 -33
  11. package/lib/@types/emailServiceConfig.js +0 -2
  12. package/lib/@types/entityControllerResponse.d.ts +0 -35
  13. package/lib/@types/entityControllerResponse.js +0 -2
  14. package/lib/@types/forgotPasswordControllerResponse.d.ts +0 -13
  15. package/lib/@types/forgotPasswordControllerResponse.js +0 -2
  16. package/lib/@types/jwtPayload.d.ts +0 -16
  17. package/lib/@types/jwtPayload.js +0 -2
  18. package/lib/@types/loginControllerResponse.d.ts +0 -17
  19. package/lib/@types/loginControllerResponse.js +0 -2
  20. package/lib/@types/menuControllerResponse.d.ts +0 -13
  21. package/lib/@types/menuControllerResponse.js +0 -2
  22. package/lib/@types/resetPasswordControllerResponse.d.ts +0 -15
  23. package/lib/@types/resetPasswordControllerResponse.js +0 -2
  24. package/lib/@types/userPermissions.d.ts +0 -7
  25. package/lib/@types/userPermissions.js +0 -2
  26. package/lib/README.md +0 -44
  27. package/lib/common-types/README.md +0 -27
  28. package/lib/common-types/common.d.ts +0 -31
  29. package/lib/common-types/common.js +0 -60
  30. package/lib/common-types/coreControllerResponse.d.ts +0 -43
  31. package/lib/common-types/coreControllerResponse.js +0 -2
  32. package/lib/common-types/designConfigControllerResponse.d.ts +0 -28
  33. package/lib/common-types/designConfigControllerResponse.js +0 -2
  34. package/lib/common-types/emailServiceConfig.d.ts +0 -33
  35. package/lib/common-types/emailServiceConfig.js +0 -2
  36. package/lib/common-types/entityControllerResponse.d.ts +0 -35
  37. package/lib/common-types/entityControllerResponse.js +0 -2
  38. package/lib/common-types/forgotPasswordControllerResponse.d.ts +0 -13
  39. package/lib/common-types/forgotPasswordControllerResponse.js +0 -2
  40. package/lib/common-types/index.d.ts +0 -4
  41. package/lib/common-types/index.js +0 -20
  42. package/lib/common-types/jwtPayload.d.ts +0 -9
  43. package/lib/common-types/jwtPayload.js +0 -2
  44. package/lib/common-types/loginControllerResponse.d.ts +0 -17
  45. package/lib/common-types/loginControllerResponse.js +0 -2
  46. package/lib/common-types/menuControllerResponse.d.ts +0 -13
  47. package/lib/common-types/menuControllerResponse.js +0 -2
  48. package/lib/common-types/resetPasswordControllerResponse.d.ts +0 -15
  49. package/lib/common-types/resetPasswordControllerResponse.js +0 -2
  50. package/lib/common-types/userPermissions.d.ts +0 -7
  51. package/lib/common-types/userPermissions.js +0 -2
  52. package/lib/config/README.md +0 -28
  53. package/lib/model/README.md +0 -30
  54. package/lib/model/auth/forgot-password.d.ts +0 -28
  55. package/lib/model/auth/forgot-password.js +0 -62
  56. package/lib/model/auth/index.d.ts +0 -4
  57. package/lib/model/auth/index.js +0 -20
  58. package/lib/model/auth/login.d.ts +0 -44
  59. package/lib/model/auth/login.js +0 -109
  60. package/lib/model/auth/register.d.ts +0 -20
  61. package/lib/model/auth/register.js +0 -33
  62. package/lib/model/auth/reset-password.d.ts +0 -36
  63. package/lib/model/auth/reset-password.js +0 -22
  64. package/lib/model/core/design-config.d.ts +0 -34
  65. package/lib/model/core/design-config.js +0 -19
  66. package/lib/model/core/entity.d.ts +0 -47
  67. package/lib/model/core/entity.js +0 -35
  68. package/lib/model/core/general-master.d.ts +0 -37
  69. package/lib/model/core/general-master.js +0 -19
  70. package/lib/model/core/index.d.ts +0 -6
  71. package/lib/model/core/index.js +0 -22
  72. package/lib/model/core/menu.d.ts +0 -28
  73. package/lib/model/core/menu.js +0 -31
  74. package/lib/model/core/pin-code.d.ts +0 -21
  75. package/lib/model/core/pin-code.js +0 -28
  76. package/lib/model/core/user.d.ts +0 -19
  77. package/lib/model/core/user.js +0 -19
  78. package/lib/model/index.d.ts +0 -2
  79. package/lib/model/index.js +0 -18
  80. package/lib/schema/README.md +0 -51
  81. package/lib/schema/auth/mpin.d.ts +0 -37
  82. package/lib/schema/auth/mpin.js +0 -54
  83. package/lib/schema/core/aca_class_program_master.d.ts +0 -8
  84. package/lib/schema/core/aca_class_program_master.js +0 -32
  85. package/lib/schema/core/aca_class_program_term.d.ts +0 -8
  86. package/lib/schema/core/aca_class_program_term.js +0 -52
  87. package/lib/schema/core/aca_prg_trm_section.d.ts +0 -8
  88. package/lib/schema/core/aca_prg_trm_section.js +0 -45
  89. package/lib/schema/core/core_academic_year.d.ts +0 -8
  90. package/lib/schema/core/core_academic_year.js +0 -47
  91. package/lib/schema/core/core_academic_year_mapping.d.ts +0 -8
  92. package/lib/schema/core/core_academic_year_mapping.js +0 -25
  93. package/lib/schema/core/core_financial_year.d.ts +0 -8
  94. package/lib/schema/core/core_financial_year.js +0 -47
  95. package/lib/schema/core/core_financial_year_mapping.d.ts +0 -8
  96. package/lib/schema/core/core_financial_year_mapping.js +0 -25
  97. package/lib/schema/core/core_page_controls.d.ts +0 -30
  98. package/lib/schema/core/core_page_controls.js +0 -75
  99. package/lib/schema/email/elist.d.ts +0 -36
  100. package/lib/schema/email/elist.js +0 -42
  101. package/lib/schema/email/elog.d.ts +0 -41
  102. package/lib/schema/email/elog.js +0 -58
  103. package/lib/schema/email/eref.d.ts +0 -37
  104. package/lib/schema/email/eref.js +0 -43
  105. package/lib/schema/email/esub.d.ts +0 -43
  106. package/lib/schema/email/esub.js +0 -69
  107. package/lib/schema/email/etmp.d.ts +0 -36
  108. package/lib/schema/email/etmp.js +0 -41
  109. package/lib/schema/email/evdr.d.ts +0 -36
  110. package/lib/schema/email/evdr.js +0 -41
  111. package/lib/utilities/README.md +0 -22
  112. package/lib/utilities/helpers/encryption.helper.d.ts +0 -2
  113. package/lib/utilities/helpers/encryption.helper.js +0 -14
  114. package/lib/utilities/helpers/error.helper.d.ts +0 -9
  115. package/lib/utilities/helpers/error.helper.js +0 -26
  116. package/lib/utilities/helpers/index.d.ts +0 -5
  117. package/lib/utilities/helpers/index.js +0 -21
  118. package/lib/utilities/helpers/response.helper.d.ts +0 -16
  119. package/lib/utilities/helpers/response.helper.js +0 -9
  120. package/lib/utilities/helpers/string.helper.d.ts +0 -3
  121. package/lib/utilities/helpers/string.helper.js +0 -232
  122. package/lib/utilities/helpers/type.hepler.d.ts +0 -3
  123. package/lib/utilities/helpers/type.hepler.js +0 -2
  124. package/lib/utilities/helpers/view.helper.d.ts +0 -2
  125. package/lib/utilities/helpers/view.helper.js +0 -14
  126. package/lib/utilities/index.d.ts +0 -1
  127. package/lib/utilities/index.js +0 -17
@@ -1,43 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,28 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,33 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,35 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export * from "./common";
2
- export * from "./emailServiceConfig";
3
- export * from "./jwtPayload";
4
- export * from "./userPermissions";
@@ -1,20 +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("./common"), exports);
18
- __exportStar(require("./emailServiceConfig"), exports);
19
- __exportStar(require("./jwtPayload"), exports);
20
- __exportStar(require("./userPermissions"), exports);
@@ -1,9 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- export interface UserPermissions {
2
- _id: string;
3
- create?: boolean;
4
- read?: boolean;
5
- update?: boolean;
6
- delete?: boolean;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,28 +0,0 @@
1
- # Configuration Components
2
-
3
- This directory contains the compiled JavaScript files and TypeScript declaration files for configuration utilities 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
-
10
- ## Files
11
-
12
- ### database.js / database.d.ts
13
-
14
- Provides MongoDB database connection functionality and utility functions:
15
- - `connectDB()`: Asynchronous function to establish a connection to MongoDB
16
- - `customUUID()`: Function that generates custom UUID strings for document IDs
17
- - Uses environment variable `UUID_PREFIX` combined with MongoDB ObjectId
18
- - Used by schemas like core_system_logs to create custom document IDs
19
- - Uses environment variables for connection parameters
20
- - Implements connection timeout and error handling
21
-
22
- ### index.js / index.d.ts
23
-
24
- Aggregates and exports all configuration utilities.
25
-
26
- ## Usage
27
-
28
- These compiled configuration files provide the functionality to connect to MongoDB and manage environment-specific settings in the deployed application.
@@ -1,30 +0,0 @@
1
- # Model Interfaces
2
-
3
- This directory contains TypeScript interfaces and type definitions for the domain models 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
-
11
- ## Directory Structure
12
-
13
- ### Authentication Models (`/auth`)
14
-
15
- Contains interfaces related to authentication processes:
16
- - `forgot-password.d.ts` - Types for password recovery
17
- - `login.d.ts` - Login request and response types
18
- - `register.d.ts` - User registration types
19
- - `reset-password.d.ts` - Password reset types
20
-
21
- ### Core System Models (`/core`)
22
-
23
- Contains interfaces for core system functionality:
24
- - `design-config.d.ts` - UI/UX design configuration types
25
- - `entity.d.ts` - Entity management types
26
- - `general-master.d.ts` - General master data types
27
-
28
- ## Usage
29
-
30
- These type definitions provide the structure for data objects that flow through the system and are stored in MongoDB. They ensure type safety when working with data in TypeScript projects.
@@ -1,28 +0,0 @@
1
- import { SendMailInfo } from "../../common-types";
2
- import { IUser } from "../../schema";
3
- import { controllerResponse } from "../../utilities";
4
- import { forgotPasswordMethod } from "../../utilities/helpers/type.hepler";
5
- type IForgotPasswordErrorLogger = {
6
- [key in keyof MForgotPassword]: string;
7
- };
8
- declare class MForgotPassword {
9
- custom_forgot_password_method: forgotPasswordMethod;
10
- user_username: string;
11
- user_emailid: string;
12
- user_mobileno: number;
13
- constructor(init: MForgotPassword);
14
- Validate?(): Partial<IForgotPasswordErrorLogger>;
15
- }
16
- interface ForgotPasswordControllerResponse extends controllerResponse {
17
- data?: Partial<ForgotPasswordResponseData>;
18
- }
19
- interface ForgotPasswordResponseData {
20
- user: Partial<IUser>;
21
- reset_password_link: string;
22
- }
23
- interface ForgotPasswordSendMailInfo extends SendMailInfo {
24
- data: Partial<ForgotPasswordResponseData>;
25
- }
26
- export { IForgotPasswordErrorLogger, //interface
27
- MForgotPassword, // model
28
- ForgotPasswordControllerResponse, ForgotPasswordResponseData, ForgotPasswordSendMailInfo };
@@ -1,62 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MForgotPassword = void 0;
4
- /* INTERFACE END */
5
- /* MODEL START */
6
- var MForgotPassword = /** @class */ (function () {
7
- function MForgotPassword(init) {
8
- Object.assign(this, init);
9
- }
10
- MForgotPassword.prototype.Validate = function () {
11
- var _a, _b, _c;
12
- var errorLogger = {};
13
- /* Check method set or not */
14
- if (!this.custom_forgot_password_method) {
15
- errorLogger.custom_forgot_password_method = "Forgot Password Method is Required!";
16
- }
17
- else {
18
- if (this.custom_forgot_password_method == "username") {
19
- /* if username is selected by user */
20
- if (this.user_username) {
21
- /* Check wether length is in between 8 to 20 or not */
22
- if (((_a = this.user_username) === null || _a === void 0 ? void 0 : _a.length) < 8 || ((_b = this.user_username) === null || _b === void 0 ? void 0 : _b.length) > 20) {
23
- errorLogger.user_username = "Username is Invalid!";
24
- }
25
- }
26
- else {
27
- errorLogger.user_username = "Username is Required!";
28
- }
29
- }
30
- else if (this.custom_forgot_password_method == "email") {
31
- /* if email is selected by user */
32
- if (this.user_emailid) {
33
- /* Check wether length is 8 to 50 or not */
34
- if (((_c = this.user_emailid) === null || _c === void 0 ? void 0 : _c.length) < 8 || this.user_emailid.length > 50) {
35
- errorLogger.user_emailid = "Email Id is Invalid!";
36
- }
37
- }
38
- else {
39
- errorLogger.user_emailid = "Email Id is Required!";
40
- }
41
- }
42
- else if (this.custom_forgot_password_method == "mobile") {
43
- /* if mobile is selected by user */
44
- if (this.user_mobileno) {
45
- /* Check wether length is 10 to 15 digits or not */
46
- if (this.user_mobileno < 1000000000 || this.user_mobileno > 999999999999999) {
47
- errorLogger.user_mobileno = "Mobile Number is Invalid!";
48
- }
49
- }
50
- else {
51
- errorLogger.user_mobileno = "Mobile Number is Required!";
52
- }
53
- }
54
- else {
55
- errorLogger.custom_forgot_password_method = "Forgot Password Method is Invalid, please use 'username' or 'email' or 'mobile'";
56
- }
57
- }
58
- return errorLogger;
59
- };
60
- return MForgotPassword;
61
- }());
62
- exports.MForgotPassword = MForgotPassword;
@@ -1,4 +0,0 @@
1
- export * from "./forgot-password";
2
- export * from "./login";
3
- export * from "./register";
4
- export * from "./reset-password";
@@ -1,20 +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("./forgot-password"), exports);
18
- __exportStar(require("./login"), exports);
19
- __exportStar(require("./register"), exports);
20
- __exportStar(require("./reset-password"), exports);
@@ -1,44 +0,0 @@
1
- import { SendMailInfo } from "../../common-types";
2
- import { IUser } from "../../schema";
3
- import { controllerResponse } from "../../utilities";
4
- import { loginMethod } from "../../utilities/helpers/type.hepler";
5
- type ILoginErrorLogger = {
6
- [key in keyof MLogin]: string;
7
- };
8
- declare class MLogin {
9
- custom_login_method?: loginMethod;
10
- user_username?: string;
11
- user_password?: string;
12
- mpin_pin?: string;
13
- constructor(init: MLogin);
14
- Validate(): Partial<ILoginErrorLogger>;
15
- }
16
- interface loginControllerResponse extends controllerResponse {
17
- data?: Partial<loginResponseData>;
18
- token?: string;
19
- }
20
- interface loginResponseData {
21
- user: Partial<IUser>;
22
- }
23
- interface LoginSendMailInfo extends SendMailInfo {
24
- data: Partial<loginResponseData>;
25
- }
26
- type IReLoginErrorLogger = {
27
- [key in keyof MReLogin]: string;
28
- };
29
- declare class MReLogin {
30
- custom_login_method?: loginMethod;
31
- user_password?: string;
32
- mpin_pin?: string;
33
- token?: string;
34
- constructor(init: MReLogin);
35
- Validate?(): Partial<IReLoginErrorLogger>;
36
- }
37
- interface reLoginControllerResponse extends controllerResponse {
38
- data?: Partial<loginResponseData>;
39
- token?: string;
40
- }
41
- export { ILoginErrorLogger, //interface,
42
- IReLoginErrorLogger, MLogin, // model
43
- MReLogin, // model
44
- loginControllerResponse, reLoginControllerResponse, loginResponseData, LoginSendMailInfo };
@@ -1,109 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MReLogin = exports.MLogin = void 0;
4
- /* INTERFACE END */
5
- /* MODEL START */
6
- var MLogin = /** @class */ (function () {
7
- function MLogin(init) {
8
- Object.assign(this, init);
9
- }
10
- MLogin.prototype.Validate = function () {
11
- var _a, _b;
12
- var errorLogger = {};
13
- if (!this.user_username) {
14
- errorLogger.user_username = "Username is Required";
15
- }
16
- /* Check mpin or password selected or not, any one from both */
17
- if (!this.custom_login_method) {
18
- errorLogger.custom_login_method = "Login Method is Required, Mpin or Password!";
19
- }
20
- else {
21
- if (this.custom_login_method == "pass") {
22
- /* if password is selected by user */
23
- if (this.user_password) {
24
- /* Check wether length is in between 8 to 50 or not */
25
- if (((_a = this.user_password) === null || _a === void 0 ? void 0 : _a.length) < 7 || ((_b = this.user_password) === null || _b === void 0 ? void 0 : _b.length) > 50) {
26
- errorLogger.user_password = "Password is Invalid!";
27
- }
28
- }
29
- else {
30
- errorLogger.user_password = "Password is Invalid!";
31
- }
32
- }
33
- else if (this.custom_login_method == "mpin") {
34
- /* if mpin is selected by user */
35
- if (this.mpin_pin) {
36
- /* Check wether length is 6 or not */
37
- if (parseInt(this.mpin_pin) < 100000 || parseInt(this.mpin_pin) > 999999) {
38
- errorLogger.mpin_pin = "MPIN is Invalid!";
39
- }
40
- if (!(/^[0-9]+$/).test(this.mpin_pin)) {
41
- errorLogger.mpin_pin = "MPIN is Invalid!";
42
- }
43
- }
44
- else {
45
- errorLogger.mpin_pin = "MPIN is Invalid!";
46
- }
47
- }
48
- else {
49
- errorLogger.custom_login_method = "Login Method is Invalid, please use 'mpin' or 'pass'";
50
- }
51
- }
52
- return errorLogger;
53
- };
54
- return MLogin;
55
- }());
56
- exports.MLogin = MLogin;
57
- /* INTERFACE END */
58
- /* MODEL START */
59
- var MReLogin = /** @class */ (function () {
60
- function MReLogin(init) {
61
- Object.assign(this, init);
62
- }
63
- MReLogin.prototype.Validate = function () {
64
- var _a, _b;
65
- var errorLogger = {};
66
- if (!this.token) {
67
- errorLogger.token = "Token is Required";
68
- }
69
- /* Check mpin or password selected or not, any one from both */
70
- if (!this.custom_login_method) {
71
- errorLogger.custom_login_method = "Login Method is Required, Mpin or Password!";
72
- }
73
- else {
74
- if (this.custom_login_method == "pass") {
75
- /* if password is selected by user */
76
- if (this.user_password) {
77
- /* Check wether length is in between 8 to 50 or not */
78
- if (((_a = this.user_password) === null || _a === void 0 ? void 0 : _a.length) < 7 || ((_b = this.user_password) === null || _b === void 0 ? void 0 : _b.length) > 50) {
79
- errorLogger.user_password = "Password is Invalid!";
80
- }
81
- }
82
- else {
83
- errorLogger.user_password = "Password is Invalid!";
84
- }
85
- }
86
- else if (this.custom_login_method == "mpin") {
87
- /* if mpin is selected by user */
88
- if (this.mpin_pin) {
89
- /* Check wether length is 6 or not */
90
- if (parseInt(this.mpin_pin) < 100000 || parseInt(this.mpin_pin) > 999999) {
91
- errorLogger.mpin_pin = "MPIN is Invalid!";
92
- }
93
- if (!(/^[0-9]+$/).test(this.mpin_pin)) {
94
- errorLogger.mpin_pin = "MPIN is Invalid!";
95
- }
96
- }
97
- else {
98
- errorLogger.mpin_pin = "MPIN is Invalid!";
99
- }
100
- }
101
- else {
102
- errorLogger.custom_login_method = "Login Method is Invalid, please use 'mpin' or 'pass'";
103
- }
104
- }
105
- return errorLogger;
106
- };
107
- return MReLogin;
108
- }());
109
- exports.MReLogin = MReLogin;
@@ -1,20 +0,0 @@
1
- import { MErrorLoggerHelper } from "../../utilities/helpers/error.helper";
2
- interface IRegisterErrorLogger extends MErrorLoggerHelper {
3
- control: keyof MRegister;
4
- }
5
- declare class MRegister {
6
- user_id_ent: string;
7
- user_username: string;
8
- user_firstname: string;
9
- user_middlename: string;
10
- user_lastname: string;
11
- user_fullname: string;
12
- user_emailid: string;
13
- user_mobileno: number;
14
- user_password: string;
15
- user_photo_id_fm: string;
16
- constructor(init: MRegister);
17
- Validate?(): IRegisterErrorLogger[];
18
- }
19
- export { IRegisterErrorLogger, //interface
20
- MRegister };