cloud-ide-model-schema 1.1.20 → 1.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -89,20 +89,38 @@ The project is organized into the following main directories:
89
89
  5. Test your changes
90
90
  6. Submit a pull request
91
91
 
92
- ## Documentation
92
+ ## Documentation Structure
93
93
 
94
- Detailed documentation is available within the codebase:
94
+ This project uses README.md files throughout the codebase to provide comprehensive documentation. Each directory has its own README that explains its purpose and contents.
95
95
 
96
- - [Main README](./README.md): Overview of the entire package
97
- - [Source Code Documentation](./src/README.md): Documentation for source code structure
98
- - [Configuration Utilities](./src/config/README.md): Configuration utilities
99
- - [Schema Structure Overview](./src/schema/README.md): Schema structure overview
100
- - [Authentication Schemas](./src/schema/auth/README.md): Authentication schemas
101
- - [Core System Schemas](./src/schema/core/README.md): Core system schemas
102
- - [Email Service Schemas](./src/schema/email/README.md): Email service schemas
103
- - [Compiled Output Documentation](./lib/README.md): Documentation for compiled output
104
- - [Common Type Definitions](./lib/common-types/README.md): Common type definitions
105
- - [Model Interface Definitions](./lib/model/README.md): Model interface definitions
96
+ ### Navigation Guide
97
+
98
+ #### Source Code Documentation
99
+
100
+ - [Source Directory](./src/README.md): Overview of the TypeScript source code
101
+ - [Configuration](./src/config/README.md): Database connection and configuration utilities
102
+ - [Schema](./src/schema/README.md): Schema structure overview
103
+ - [Authentication Schemas](./src/schema/auth/README.md): User management schemas
104
+ - [Core System Schemas](./src/schema/core/README.md): Core functionality schemas
105
+ - [Email Service Schemas](./src/schema/email/README.md): Email management schemas
106
+
107
+ #### Compiled Output Documentation
108
+
109
+ - [Compiled Output Directory](./lib/README.md): Overview of the compiled JavaScript files
110
+ - [Common Types](./lib/common-types/README.md): Shared type definitions
111
+ - [Model Interfaces](./lib/model/README.md): Domain model interfaces
112
+ - [Schema](./lib/schema/README.md): Compiled schema models
113
+ - [Configuration](./lib/config/README.md): Compiled configuration utilities
114
+ - [Utilities](./lib/utilities/README.md): Helper functions and utilities
115
+ - [Types](./lib/@types/README.md): Internal type definitions
116
+
117
+ ### README Structure
118
+
119
+ Each README file contains:
120
+ 1. An overview of the directory or component
121
+ 2. Navigation links to related documents
122
+ 3. Details about files or subdirectories
123
+ 4. Usage information where appropriate
106
124
 
107
125
  ## Table of Contents
108
126
 
@@ -112,7 +130,9 @@ Detailed documentation is available within the codebase:
112
130
  - [Project Structure](#project-structure)
113
131
  - [Dependencies](#dependencies)
114
132
  - [Development](#development)
115
- - [Documentation](#documentation)
133
+ - [Documentation Structure](#documentation-structure)
134
+ - [Navigation Guide](#navigation-guide)
135
+ - [README Structure](#readme-structure)
116
136
  - [License](#license)
117
137
  - [Author](#author)
118
138
 
@@ -0,0 +1,21 @@
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.
@@ -0,0 +1,25 @@
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:
15
+ - `connectDB()`: Asynchronous function to establish a connection to MongoDB
16
+ - Uses environment variables for connection parameters
17
+ - Implements connection timeout and error handling
18
+
19
+ ### index.js / index.d.ts
20
+
21
+ Aggregates and exports all configuration utilities.
22
+
23
+ ## Usage
24
+
25
+ These compiled configuration files provide the functionality to connect to MongoDB and manage environment-specific settings in the deployed application.
@@ -0,0 +1,40 @@
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 pages and themes
25
+ - Menu management
26
+ - Entity management
27
+ - General master data
28
+ - File management
29
+
30
+ ### Email Service Schemas (`/email`)
31
+
32
+ Contains compiled schemas for email management:
33
+ - Email lists
34
+ - Templates
35
+ - Logging
36
+ - Vendor management
37
+
38
+ ## Usage
39
+
40
+ These compiled schema files are the actual Mongoose models used in MongoDB operations. They implement the interfaces defined in the model directory.
@@ -47,6 +47,8 @@ var CCoreSytmLayout = /** @class */ (function (_super) {
47
47
  };
48
48
  return CCoreSytmLayout;
49
49
  }(mongoose_1.default.SchemaType));
50
+ // @ts-ignore: We need to ignore this because TypeScript doesn't know about custom types beforehand.
51
+ mongoose_1.default.Schema.Types.CCoreSytmLayout = CCoreSytmLayout;
50
52
  /* SCHEMA START */
51
53
  var core_system_pages_theme = new mongoose_1.Schema({
52
54
  sytm_preview_id_fm: {
@@ -0,0 +1,22 @@
1
+ # Utilities
2
+
3
+ This directory contains compiled utility functions and helper methods 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
+
10
+ ## Directory Structure
11
+
12
+ ### Helpers (`/helpers`)
13
+
14
+ Contains compiled utility functions for common tasks:
15
+ - Data formatting
16
+ - Validation helpers
17
+ - Date manipulation
18
+ - String operations
19
+
20
+ ## Usage
21
+
22
+ These compiled utility functions provide reusable operations that support the core functionality of the application. They can be imported directly from the package.
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript": "^5.8.3"
10
10
  },
11
11
  "name": "cloud-ide-model-schema",
12
- "version": "1.1.20",
12
+ "version": "1.1.21",
13
13
  "description": "Pachage for schema management of Cloud IDEsys LMS",
14
14
  "main": "lib/index.js",
15
15
  "types": "lib/index.d.ts",