cloud-ide-lms-model 1.1.78 → 1.1.80

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 (49) hide show
  1. package/lib/model/academics/aca_student_enrollment.d.ts +98 -0
  2. package/lib/model/academics/aca_student_enrollment.js +73 -0
  3. package/lib/model/academics/index.d.ts +1 -0
  4. package/lib/model/academics/index.js +1 -0
  5. package/lib/model/attendance/attendance.d.ts +144 -0
  6. package/lib/model/attendance/attendance.js +148 -0
  7. package/lib/model/attendance/index.d.ts +1 -0
  8. package/lib/model/attendance/index.js +17 -0
  9. package/lib/model/core/core_ai.d.ts +64 -0
  10. package/lib/model/core/core_ai.js +55 -0
  11. package/lib/model/core/index.d.ts +1 -0
  12. package/lib/model/core/index.js +1 -0
  13. package/lib/model/fleet/fleet_trip_log.js +0 -3
  14. package/lib/model/index.d.ts +1 -0
  15. package/lib/model/index.js +1 -0
  16. package/lib/routes/academicsRoutes.d.ts +4 -0
  17. package/lib/routes/academicsRoutes.js +4 -0
  18. package/lib/routes/aiRoutes.d.ts +14 -0
  19. package/lib/routes/aiRoutes.js +18 -0
  20. package/lib/routes/attendanceRoutes.d.ts +11 -0
  21. package/lib/routes/attendanceRoutes.js +15 -0
  22. package/lib/routes/index.d.ts +2 -0
  23. package/lib/routes/index.js +2 -0
  24. package/lib/schema/academics/aca_student_enrollment.d.ts +27 -0
  25. package/lib/schema/academics/aca_student_enrollment.js +9 -0
  26. package/lib/schema/academics/index.d.ts +1 -0
  27. package/lib/schema/academics/index.js +1 -0
  28. package/lib/schema/attendance/attendance_exception.d.ts +17 -0
  29. package/lib/schema/attendance/attendance_exception.js +9 -0
  30. package/lib/schema/attendance/attendance_integration_audit.d.ts +17 -0
  31. package/lib/schema/attendance/attendance_integration_audit.js +9 -0
  32. package/lib/schema/attendance/attendance_provider_master.d.ts +15 -0
  33. package/lib/schema/attendance/attendance_provider_master.js +9 -0
  34. package/lib/schema/attendance/attendance_record.d.ts +25 -0
  35. package/lib/schema/attendance/attendance_record.js +9 -0
  36. package/lib/schema/attendance/attendance_school_integration.d.ts +23 -0
  37. package/lib/schema/attendance/attendance_school_integration.js +9 -0
  38. package/lib/schema/attendance/index.d.ts +5 -0
  39. package/lib/schema/attendance/index.js +21 -0
  40. package/lib/schema/collection_names.d.ts +13 -0
  41. package/lib/schema/collection_names.js +13 -0
  42. package/lib/schema/core/core_ai.d.ts +74 -0
  43. package/lib/schema/core/core_ai.js +24 -0
  44. package/lib/schema/core/index.d.ts +1 -0
  45. package/lib/schema/core/index.js +1 -0
  46. package/lib/schema/index.d.ts +1 -0
  47. package/lib/schema/index.js +1 -0
  48. package/package.json +1 -1
  49. package/README.md +0 -154
package/README.md DELETED
@@ -1,154 +0,0 @@
1
- # Cloud IDE LMS Model
2
-
3
- [![Version](https://img.shields.io/badge/version-1.0.67-blue.svg)](https://gitlab.com/lms-schools/cloud-ide-lms-model)
4
- [![License](https://img.shields.io/badge/license-ISC-green.svg)](https://gitlab.com/lms-schools/cloud-ide-lms-model)
5
-
6
- ## Description
7
- This package contains the data models, schemas, and utilities for the Cloud IDE Learning Management System (LMS). It provides a consistent interface for database operations, API routes, and type definitions used throughout the Cloud IDE LMS ecosystem.
8
-
9
- ## Installation
10
-
11
- ```bash
12
- npm install cloud-ide-lms-model
13
- ```
14
-
15
- ## Project Structure
16
-
17
- The project is organized into several main directories:
18
-
19
- ### Schema (`/src/schema`)
20
-
21
- Contains database schema definitions for the application.
22
-
23
- - `collection_names.ts`: Defines the collection names used in the database
24
- - `auth/`: Contains authentication-related schemas
25
- - `core/`: Contains core system schemas
26
- - `email/`: Contains email service related schemas
27
-
28
- [More details about Schema](./src/schema/README.md)
29
-
30
- ### Common Types (`/src/common-types`)
31
-
32
- Contains TypeScript type definitions used throughout the application.
33
-
34
- - `common.ts`: Basic common types used throughout the system
35
- - `coreControllerResponse.ts`: Response types for core controllers
36
- - `jwtPayload.ts`: Type definition for JWT authentication payload
37
- - `loginControllerResponse.ts`: Response types for login operations
38
- - `userPermissions.ts`: Types related to user permissions and authorization
39
-
40
- [More details about Common Types](./src/common-types/README.md)
41
-
42
- ### Models (`/src/model`)
43
-
44
- Contains the data models that implement business logic.
45
-
46
- - `auth/`: Authentication-related models
47
- - `core/`: Core system models
48
-
49
- [More details about Models](./src/model/README.md)
50
-
51
- ### Routes (`/src/routes`)
52
-
53
- Contains API route definitions.
54
-
55
- - `authRoutes.ts`: Authentication-related routes
56
- - `controllerRoutes.ts`: General controller route utilities
57
- - `coreRoutes.ts`: Core application routes
58
- - `designConfigRoutes.ts`: Routes for design configuration
59
- - `hostManagerRoutes.ts`: Host management routes
60
- - `userRoutes.ts`: User management routes
61
-
62
- [More details about Routes](./src/routes/README.md)
63
-
64
- ### Utilities (`/src/utilities`)
65
-
66
- Contains utility functions and helper methods.
67
-
68
- - `helpers/`: Helper functions grouped by functionality
69
-
70
- [More details about Utilities](./src/utilities/README.md)
71
-
72
- ## Usage Examples
73
-
74
- ### Importing Types
75
-
76
- ```typescript
77
- import {
78
- CoreControllerResponse,
79
- JwtPayload
80
- } from 'cloud-ide-lms-model';
81
-
82
- // Use types in your code
83
- function processResponse(response: CoreControllerResponse) {
84
- // Implementation
85
- }
86
- ```
87
-
88
- ### Using Schemas
89
-
90
- ```typescript
91
- import { SomeSchema } from 'cloud-ide-lms-model';
92
-
93
- // Use schema for validation or type checking
94
- ```
95
-
96
- ### Using Models
97
-
98
- ```typescript
99
- import { SomeModel } from 'cloud-ide-lms-model';
100
-
101
- // Example usage
102
- async function useModel() {
103
- const result = await SomeModel.findById(id);
104
- // Process result
105
- }
106
- ```
107
-
108
- ### Using Routes
109
-
110
- ```typescript
111
- import { authRoutes, coreRoutes } from 'cloud-ide-lms-model';
112
- import express from 'express';
113
-
114
- const app = express();
115
-
116
- // Register routes
117
- app.use('/auth', authRoutes);
118
- app.use('/core', coreRoutes);
119
- ```
120
-
121
- ## Development
122
-
123
- ### Building the Project
124
-
125
- ```bash
126
- npm run build
127
- ```
128
-
129
- ### Testing
130
-
131
- ```bash
132
- npm test
133
- ```
134
-
135
- ## Contributing
136
-
137
- 1. Fork the repository
138
- 2. Create a feature branch: `git checkout -b feature/my-new-feature`
139
- 3. Commit your changes: `git commit -am 'Add some feature'`
140
- 4. Push to the branch: `git push origin feature/my-new-feature`
141
- 5. Submit a pull request
142
-
143
- ## License
144
-
145
- This project is licensed under the ISC License - see the LICENSE file for details.
146
-
147
- ## Authors
148
-
149
- - Ankush Bhure - Initial work and maintenance
150
-
151
- ## Repository
152
-
153
- The project is hosted on GitLab:
154
- https://gitlab.com/lms-schools/cloud-ide-lms-model.git