cloud-ide-lms-model 1.0.338 → 1.0.340

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.
@@ -7,6 +7,7 @@
7
7
  */
8
8
  import { AdmissionFamilyMembersBase } from "../../schema/admission/admission_family_members";
9
9
  import { AdmissionEntityAccessPassManagementBase } from "../../schema/admission/admission_contact_addresses";
10
+ import { controllerResponse } from "../../utilities";
10
11
  /**
11
12
  * Response type with populated references
12
13
  * Using Omit to avoid type conflicts when overriding properties
@@ -83,14 +84,9 @@ type AdmissionAdmissionFamilyMembers = Omit<AdmissionFamilyMembersBase, 'admfm_a
83
84
  /**
84
85
  * Controller response type for list operations
85
86
  */
86
- interface admissionFamilyMembersControllerResponse {
87
- success: boolean;
88
- message: string;
89
- data: AdmissionAdmissionFamilyMembers[] | AdmissionAdmissionFamilyMembers | null;
90
- total?: number;
91
- page?: number;
92
- pageSize?: number;
93
- error?: any;
87
+ interface admissionFamilyMembersControllerResponse extends controllerResponse {
88
+ data?: AdmissionAdmissionFamilyMembers[] | AdmissionAdmissionFamilyMembers | null;
89
+ totalDocument?: number;
94
90
  }
95
91
  /**
96
92
  * Controller response for single operations
@@ -0,0 +1,68 @@
1
+ import { MTableQueries } from "../../common-types/common";
2
+ import { FeeAssignment, FeeAssignmentBase } from "../../schema/fees/fee_assignment";
3
+ import { controllerResponse } from "../../utilities";
4
+ type IFeeAssignmentErrorLogger = {
5
+ [key in keyof MFeeAssignment]: string;
6
+ };
7
+ type IFeeAssignmentGetByIdErrorLogger = {
8
+ [key in keyof MFeeAssignmentGetByIdPayload]: string;
9
+ };
10
+ type IFeeAssignmentDeleteErrorLogger = {
11
+ [key in keyof MFeeAssignmentDeletePayload]: string;
12
+ };
13
+ type IFeeAssignmentInsertUpdateErrorLogger = {
14
+ [key in keyof MFeeAssignmentInsertUpdatePayload]: string;
15
+ };
16
+ declare class MFeeAssignment extends MTableQueries {
17
+ constructor(init: MFeeAssignment);
18
+ Validate?(): Partial<IFeeAssignmentErrorLogger>;
19
+ }
20
+ declare class MFeeAssignmentGetByIdPayload {
21
+ feeas_id?: string;
22
+ constructor(init: MFeeAssignmentGetByIdPayload);
23
+ Validate?(): Partial<IFeeAssignmentGetByIdErrorLogger>;
24
+ }
25
+ declare class MFeeAssignmentDeletePayload {
26
+ feeas_id?: string;
27
+ constructor(init: MFeeAssignmentDeletePayload);
28
+ Validate?(): Partial<IFeeAssignmentDeleteErrorLogger>;
29
+ }
30
+ declare class MFeeAssignmentInsertUpdatePayload extends FeeAssignment {
31
+ constructor(init: FeeAssignment);
32
+ Validate?(): Partial<IFeeAssignmentInsertUpdateErrorLogger>;
33
+ }
34
+ interface FeeAssignmentResponse extends FeeAssignmentBase {
35
+ feeas_fee_category_sygms?: {
36
+ _id: string;
37
+ sygms_title: string;
38
+ sygms_code: string;
39
+ };
40
+ feeas_fee_structure_id_feest?: {
41
+ _id: string;
42
+ feest_name?: string;
43
+ };
44
+ feeas_academic_year_id_acayr?: {
45
+ _id: string;
46
+ acayr_name?: string;
47
+ };
48
+ feeas_entity_id_syen?: {
49
+ _id: string;
50
+ syen_name?: string;
51
+ };
52
+ }
53
+ interface feeAssignmentControllerResponse extends controllerResponse {
54
+ data?: FeeAssignmentResponse[] | FeeAssignmentResponse | null;
55
+ totalDocument?: number;
56
+ }
57
+ interface feeAssignmentByIdControllerResponse extends controllerResponse {
58
+ data?: FeeAssignmentResponse;
59
+ }
60
+ interface feeAssignmentInsertUpdateControllerResponse extends controllerResponse {
61
+ data?: FeeAssignmentResponse;
62
+ }
63
+ interface feeAssignmentDeleteControllerResponse extends controllerResponse {
64
+ data?: {
65
+ deleted: boolean;
66
+ };
67
+ }
68
+ export { IFeeAssignmentErrorLogger, IFeeAssignmentGetByIdErrorLogger, IFeeAssignmentDeleteErrorLogger, IFeeAssignmentInsertUpdateErrorLogger, MFeeAssignment, MFeeAssignmentGetByIdPayload, MFeeAssignmentDeletePayload, MFeeAssignmentInsertUpdatePayload, FeeAssignmentResponse, feeAssignmentControllerResponse, feeAssignmentByIdControllerResponse, feeAssignmentInsertUpdateControllerResponse, feeAssignmentDeleteControllerResponse };
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MFeeAssignmentInsertUpdatePayload = exports.MFeeAssignmentDeletePayload = exports.MFeeAssignmentGetByIdPayload = exports.MFeeAssignment = void 0;
4
+ const common_1 = require("../../common-types/common");
5
+ const fee_assignment_1 = require("../../schema/fees/fee_assignment");
6
+ /* INTERFACE END */
7
+ /* MODEL START */
8
+ class MFeeAssignment extends common_1.MTableQueries {
9
+ constructor(init) {
10
+ super(init);
11
+ Object.assign(this, init);
12
+ }
13
+ Validate() {
14
+ let errorLogger = {};
15
+ return errorLogger;
16
+ }
17
+ }
18
+ exports.MFeeAssignment = MFeeAssignment;
19
+ class MFeeAssignmentGetByIdPayload {
20
+ constructor(init) {
21
+ Object.assign(this, init);
22
+ }
23
+ Validate() {
24
+ let errorLogger = {};
25
+ if (!this.feeas_id) {
26
+ errorLogger.feeas_id = "Fee Assignment ID is Required!";
27
+ }
28
+ return errorLogger;
29
+ }
30
+ }
31
+ exports.MFeeAssignmentGetByIdPayload = MFeeAssignmentGetByIdPayload;
32
+ class MFeeAssignmentDeletePayload {
33
+ constructor(init) {
34
+ Object.assign(this, init);
35
+ }
36
+ Validate() {
37
+ let errorLogger = {};
38
+ if (!this.feeas_id) {
39
+ errorLogger.feeas_id = "Fee Assignment ID is Required!";
40
+ }
41
+ return errorLogger;
42
+ }
43
+ }
44
+ exports.MFeeAssignmentDeletePayload = MFeeAssignmentDeletePayload;
45
+ class MFeeAssignmentInsertUpdatePayload extends fee_assignment_1.FeeAssignment {
46
+ constructor(init) {
47
+ super();
48
+ Object.assign(this, init);
49
+ }
50
+ Validate() {
51
+ let errorLogger = {};
52
+ if (!this.feeas_student_id) {
53
+ errorLogger.feeas_student_id = "Student ID is Required!";
54
+ }
55
+ if (!this.feeas_fee_category_sygms) {
56
+ errorLogger.feeas_fee_category_sygms = "Fee Category is Required!";
57
+ }
58
+ if (!this.feeas_fee_name) {
59
+ errorLogger.feeas_fee_name = "Fee Name is Required!";
60
+ }
61
+ if (this.feeas_original_amount === undefined || this.feeas_original_amount < 0) {
62
+ errorLogger.feeas_original_amount = "Original Amount is Required and must be >= 0!";
63
+ }
64
+ if (!this.feeas_due_date) {
65
+ errorLogger.feeas_due_date = "Due Date is Required!";
66
+ }
67
+ if (!this.feeas_academic_year_id_acayr) {
68
+ errorLogger.feeas_academic_year_id_acayr = "Academic Year is Required!";
69
+ }
70
+ if (!this.feeas_entity_id_syen) {
71
+ errorLogger.feeas_entity_id_syen = "Entity is Required!";
72
+ }
73
+ return errorLogger;
74
+ }
75
+ }
76
+ exports.MFeeAssignmentInsertUpdatePayload = MFeeAssignmentInsertUpdatePayload;
@@ -2,3 +2,4 @@ export * from './fee_structure';
2
2
  export * from './fee_payment';
3
3
  export * from './fee_discount_rule';
4
4
  export * from './fee_receipt_template';
5
+ export * from './fee_assignment';
@@ -18,3 +18,4 @@ __exportStar(require("./fee_structure"), exports);
18
18
  __exportStar(require("./fee_payment"), exports);
19
19
  __exportStar(require("./fee_discount_rule"), exports);
20
20
  __exportStar(require("./fee_receipt_template"), exports);
21
+ __exportStar(require("./fee_assignment"), exports);
@@ -191,6 +191,7 @@ declare class AdmissionApplicationMain {
191
191
  admap_ip_address?: string;
192
192
  admap_browser_information?: string;
193
193
  admap_application_status_id_sygms?: string;
194
+ admap_status_id_sygms?: string;
194
195
  admap_application_submission_date?: Date;
195
196
  admap_interview_scheduled_date?: Date;
196
197
  admap_interview_status?: string;
@@ -2,28 +2,44 @@
2
2
  * Fee Assignment Schema
3
3
  * Assigns fees to individual students
4
4
  */
5
- declare class FeeAssignment {
5
+ declare class FeeAssignmentBase {
6
6
  _id?: string;
7
+ feeas_assignment_number?: string;
7
8
  feeas_student_id?: string;
8
- feeas_structure_id_fees?: string;
9
- feeas_structure_item_id_feesi?: string;
10
- feeas_academic_year_id_acayr?: string;
11
- feeas_entity_id_syen?: string;
12
- feeas_amount_original?: number;
13
- feeas_amount_after_discount?: number;
9
+ feeas_fee_structure_item_id_feesi?: string;
10
+ feeas_fee_name?: string;
11
+ feeas_fee_description?: string;
12
+ feeas_fee_type?: 'ONE_TIME' | 'RECURRING';
13
+ feeas_payment_frequency?: 'MONTHLY' | 'QUARTERLY' | 'SEMESTER' | 'ANNUAL' | 'ONE_TIME';
14
+ feeas_original_amount?: number;
14
15
  feeas_discount_amount?: number;
16
+ feeas_scholarship_amount?: number;
17
+ feeas_waiver_amount?: number;
15
18
  feeas_tax_amount?: number;
16
- feeas_final_amount?: number;
19
+ feeas_total_amount?: number;
20
+ feeas_assigned_amount?: number;
21
+ feeas_paid_amount?: number;
22
+ feeas_outstanding_amount?: number;
23
+ feeas_assignment_date?: Date;
17
24
  feeas_due_date?: Date;
18
25
  feeas_collection_start_date?: Date;
19
26
  feeas_collection_end_date?: Date;
20
- feeas_status?: 'PENDING' | 'PARTIALLY_PAID' | 'PAID' | 'WAIVED' | 'CANCELLED';
21
- feeas_amount_paid?: number;
22
- feeas_amount_remaining?: number;
23
- feeas_late_fee_applied?: number;
24
- feeas_is_active?: boolean;
25
- feeas_assigned_by_user?: string;
26
- feeas_assigned_at?: Date;
27
- feeas_updated_at?: Date;
27
+ feeas_installment_count?: number;
28
+ feeas_installment_amount?: number;
29
+ feeas_paid_installments?: number;
30
+ feeas_payment_status?: 'PENDING' | 'PARTIALLY_PAID' | 'PAID' | 'OVERDUE' | 'WAIVED' | 'CANCELLED';
31
+ feeas_late_fee_applied?: boolean;
32
+ feeas_late_fee_amount?: number;
33
+ feeas_class_program_id_acacpm?: string;
34
+ feeas_admission_id_admap?: string;
35
+ feeas_notes?: string;
36
+ feeas_created_by_user?: string;
37
+ feeas_isactive?: boolean;
38
+ }
39
+ declare class FeeAssignment extends FeeAssignmentBase {
40
+ feeas_fee_category_sygms?: string;
41
+ feeas_fee_structure_id_feest?: string;
42
+ feeas_academic_year_id_acayr?: string;
43
+ feeas_entity_id_syen?: string;
28
44
  }
29
- export { FeeAssignment };
45
+ export { FeeAssignmentBase, FeeAssignment };
@@ -1,10 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FeeAssignment = void 0;
3
+ exports.FeeAssignment = exports.FeeAssignmentBase = void 0;
4
4
  /**
5
5
  * Fee Assignment Schema
6
6
  * Assigns fees to individual students
7
7
  */
8
- class FeeAssignment {
8
+ class FeeAssignmentBase {
9
+ }
10
+ exports.FeeAssignmentBase = FeeAssignmentBase;
11
+ class FeeAssignment extends FeeAssignmentBase {
9
12
  }
10
13
  exports.FeeAssignment = FeeAssignment;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "typescript": "^5.4.2"
6
6
  },
7
7
  "name": "cloud-ide-lms-model",
8
- "version": "1.0.338",
8
+ "version": "1.0.340",
9
9
  "description": "Package for Model management of Cloud IDEsys LMS",
10
10
  "main": "lib/index.js",
11
11
  "types": "lib/index.d.ts",