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.
Files changed (127) hide show
  1. package/lib/schema/frontdesk/fdsk_leads.js +9 -9
  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
@@ -97,19 +97,19 @@ var fdsk_leads = new mongoose_1.Schema({
97
97
  },
98
98
  fdlds_pin_sypin: {
99
99
  type: mongoose_1.default.Schema.Types.ObjectId,
100
- ref: "core_postal_code"
100
+ ref: "core_pin_code"
101
101
  },
102
102
  fdlds_city_sypin: {
103
- type: mongoose_1.default.Schema.Types.ObjectId,
104
- ref: "core_postal_code"
103
+ type: String,
104
+ minlength: 0,
105
+ maxlength: 50,
106
+ trim: true
105
107
  },
106
108
  fdlds_state_sypin: {
107
- type: mongoose_1.default.Schema.Types.ObjectId,
108
- ref: "core_postal_code"
109
- },
110
- fdlds_country_syctr: {
111
- type: mongoose_1.default.Schema.Types.ObjectId,
112
- ref: "core_system_country"
109
+ type: String,
110
+ minlength: 0,
111
+ maxlength: 50,
112
+ trim: true
113
113
  },
114
114
  fdlds_priority_id_sygms: {
115
115
  type: mongoose_1.default.Schema.Types.ObjectId,
package/package.json CHANGED
@@ -1,35 +1,35 @@
1
- {
2
- "dependencies": {
3
- "cloud-ide-lms-model": "^1.0.304",
4
- "dotenv": "^16.5.0",
5
- "mongoose": "^8.15.0"
6
- },
7
- "devDependencies": {
8
- "@types/node": "^20.17.50",
9
- "typescript": "^5.8.3"
10
- },
11
- "name": "cloud-ide-model-schema",
12
- "version": "1.1.101",
13
- "description": "Pachage for schema management of Cloud IDEsys LMS",
14
- "main": "lib/index.js",
15
- "types": "lib/index.d.ts",
16
- "scripts": {
17
- "test": "echo \"Error: no test specified\" && exit 1",
18
- "build": "tsc",
19
- "prepare": "npm run build"
20
- },
21
- "keywords": [
22
- "CloudIDE",
23
- "LMS",
24
- "Schema"
25
- ],
26
- "repository": {
27
- "type": "git",
28
- "url": "https://gitlab.com/lms-schools/cloud-ide-model-schema.git"
29
- },
30
- "author": "ankush bhure",
31
- "license": "ISC",
32
- "files": [
33
- "lib/**/*"
34
- ]
35
- }
1
+ {
2
+ "dependencies": {
3
+ "cloud-ide-lms-model": "^1.0.304",
4
+ "dotenv": "^16.5.0",
5
+ "mongoose": "^8.15.0"
6
+ },
7
+ "devDependencies": {
8
+ "@types/node": "^20.17.50",
9
+ "typescript": "^5.8.3"
10
+ },
11
+ "name": "cloud-ide-model-schema",
12
+ "version": "1.1.103",
13
+ "description": "Pachage for schema management of Cloud IDEsys LMS",
14
+ "main": "lib/index.js",
15
+ "types": "lib/index.d.ts",
16
+ "scripts": {
17
+ "test": "echo \"Error: no test specified\" && exit 1",
18
+ "build": "tsc",
19
+ "prepare": "npm run build"
20
+ },
21
+ "keywords": [
22
+ "CloudIDE",
23
+ "LMS",
24
+ "Schema"
25
+ ],
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://gitlab.com/lms-schools/cloud-ide-model-schema.git"
29
+ },
30
+ "author": "ankush bhure",
31
+ "license": "ISC",
32
+ "files": [
33
+ "lib/**/*"
34
+ ]
35
+ }
@@ -1,21 +0,0 @@
1
- # Types Directory
2
-
3
- This directory contains TypeScript types and interfaces that are used internally by the Cloud IDE Model Schema package.
4
-
5
- ## Navigation
6
-
7
- - [Back to Compiled Output](../README.md)
8
- - [Back to Main README](../../README.md)
9
-
10
- ## Files
11
-
12
- This directory contains various type definition files (.d.ts) for:
13
- - Common utility types
14
- - Controller response structures
15
- - Configuration interfaces
16
- - Authentication payloads
17
- - User permissions
18
-
19
- ## Usage
20
-
21
- These type definitions help ensure type safety when working with the Cloud IDE LMS system. They are primarily for internal use but can be referenced by consumers of the package for advanced type integration.
@@ -1,22 +0,0 @@
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
- }
@@ -1,50 +0,0 @@
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;
@@ -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,16 +0,0 @@
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
- }
@@ -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 });
package/lib/README.md DELETED
@@ -1,44 +0,0 @@
1
- # Compiled Output
2
-
3
- This directory contains the compiled JavaScript files and TypeScript declaration files (`.d.ts`) generated from the source code in the `/src` directory.
4
-
5
- ## Navigation
6
-
7
- - [Back to Main README](../README.md)
8
- - [Source Documentation](../src/README.md)
9
- - [Common Types Documentation](./common-types/README.md)
10
- - [Model Interfaces Documentation](./model/README.md)
11
-
12
- ## Directory Structure
13
-
14
- ### Schema (`/schema`)
15
-
16
- Contains the compiled Mongoose schema definitions for:
17
- - Authentication (`/schema/auth/`)
18
- - Core system functionality (`/schema/core/`)
19
- - Email services (`/schema/email/`)
20
-
21
- ### Common Types (`/common-types`)
22
-
23
- Contains shared type definitions used throughout the application:
24
- - Controller responses
25
- - Service configurations
26
- - Authentication payloads
27
- - User permissions
28
-
29
- ### Configuration (`/config`)
30
-
31
- Contains compiled database connection and configuration utilities.
32
-
33
- ### Model Interfaces (`/model`)
34
-
35
- Contains types and interfaces for various domain models:
36
- - Authentication models
37
- - Core system models
38
- - Email service models
39
-
40
- ## Usage
41
-
42
- These files are the distributable part of the package that gets published to npm. When you install this package as a dependency, these are the files that are included and used in your project.
43
-
44
- The main entry point is `index.js` which exports all the components for consumption.
@@ -1,27 +0,0 @@
1
- # Common Types
2
-
3
- This directory contains TypeScript interfaces and type definitions that are used throughout the Cloud IDE LMS system.
4
-
5
- ## Navigation
6
-
7
- - [Back to Compiled Output](../README.md)
8
- - [Back to Main README](../../README.md)
9
- - [Model Interfaces Documentation](../model/README.md)
10
-
11
- ## Files
12
-
13
- - `common.d.ts` - General purpose shared types
14
- - `coreControllerResponse.d.ts` - Response types for core controllers
15
- - `designConfigControllerResponse.d.ts` - Response types for design configuration
16
- - `emailServiceConfig.d.ts` - Configuration types for email services
17
- - `entityControllerResponse.d.ts` - Response types for entity controllers
18
- - `forgotPasswordControllerResponse.d.ts` - Response types for forgot password flow
19
- - `jwtPayload.d.ts` - JWT token payload structure
20
- - `loginControllerResponse.d.ts` - Response types for login process
21
- - `menuControllerResponse.d.ts` - Response types for menu controllers
22
- - `resetPasswordControllerResponse.d.ts` - Response types for password reset
23
- - `userPermissions.d.ts` - User permission types and interfaces
24
-
25
- ## Usage
26
-
27
- These types are primarily used internally by the package but can also be imported by consumers of the package for type safety in TypeScript projects.
@@ -1,31 +0,0 @@
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
- }
@@ -1,60 +0,0 @@
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
- };