cloud-ide-lms-model 1.0.339 → 1.0.341
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/lib/model/fees/fee_assignment.d.ts +78 -0
- package/lib/model/fees/fee_assignment.js +76 -0
- package/lib/model/fees/index.d.ts +1 -0
- package/lib/model/fees/index.js +1 -0
- package/lib/schema/fees/fee_assignment.d.ts +33 -17
- package/lib/schema/fees/fee_assignment.js +5 -2
- package/lib/schema/fees/index.d.ts +1 -1
- package/lib/schema/fees/index.js +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
feeas_student_id?: string;
|
|
18
|
+
feeas_fee_structure_id_feest?: string;
|
|
19
|
+
feeas_fee_structure_item_id_feesi?: string;
|
|
20
|
+
feeas_fee_category_sygms?: string;
|
|
21
|
+
feeas_entity_id_syen?: string;
|
|
22
|
+
feeas_academic_year_id_acayr?: string;
|
|
23
|
+
feeas_class_program_id_acacpm?: string;
|
|
24
|
+
feeas_admission_id_admap?: string;
|
|
25
|
+
feeas_payment_status?: 'PENDING' | 'PARTIALLY_PAID' | 'PAID' | 'OVERDUE' | 'WAIVED' | 'CANCELLED';
|
|
26
|
+
feeas_isactive?: boolean;
|
|
27
|
+
constructor(init: MFeeAssignment);
|
|
28
|
+
Validate?(): Partial<IFeeAssignmentErrorLogger>;
|
|
29
|
+
}
|
|
30
|
+
declare class MFeeAssignmentGetByIdPayload {
|
|
31
|
+
feeas_id?: string;
|
|
32
|
+
constructor(init: MFeeAssignmentGetByIdPayload);
|
|
33
|
+
Validate?(): Partial<IFeeAssignmentGetByIdErrorLogger>;
|
|
34
|
+
}
|
|
35
|
+
declare class MFeeAssignmentDeletePayload {
|
|
36
|
+
feeas_id?: string;
|
|
37
|
+
constructor(init: MFeeAssignmentDeletePayload);
|
|
38
|
+
Validate?(): Partial<IFeeAssignmentDeleteErrorLogger>;
|
|
39
|
+
}
|
|
40
|
+
declare class MFeeAssignmentInsertUpdatePayload extends FeeAssignment {
|
|
41
|
+
constructor(init: FeeAssignment);
|
|
42
|
+
Validate?(): Partial<IFeeAssignmentInsertUpdateErrorLogger>;
|
|
43
|
+
}
|
|
44
|
+
interface FeeAssignmentResponse extends FeeAssignmentBase {
|
|
45
|
+
feeas_fee_category_sygms?: {
|
|
46
|
+
_id: string;
|
|
47
|
+
sygms_title: string;
|
|
48
|
+
sygms_code: string;
|
|
49
|
+
};
|
|
50
|
+
feeas_fee_structure_id_feest?: {
|
|
51
|
+
_id: string;
|
|
52
|
+
feest_name?: string;
|
|
53
|
+
};
|
|
54
|
+
feeas_academic_year_id_acayr?: {
|
|
55
|
+
_id: string;
|
|
56
|
+
acayr_name?: string;
|
|
57
|
+
};
|
|
58
|
+
feeas_entity_id_syen?: {
|
|
59
|
+
_id: string;
|
|
60
|
+
syen_name?: string;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
interface feeAssignmentControllerResponse extends controllerResponse {
|
|
64
|
+
data?: FeeAssignmentResponse[] | FeeAssignmentResponse | null;
|
|
65
|
+
totalDocument?: number;
|
|
66
|
+
}
|
|
67
|
+
interface feeAssignmentByIdControllerResponse extends controllerResponse {
|
|
68
|
+
data?: FeeAssignmentResponse;
|
|
69
|
+
}
|
|
70
|
+
interface feeAssignmentInsertUpdateControllerResponse extends controllerResponse {
|
|
71
|
+
data?: FeeAssignmentResponse;
|
|
72
|
+
}
|
|
73
|
+
interface feeAssignmentDeleteControllerResponse extends controllerResponse {
|
|
74
|
+
data?: {
|
|
75
|
+
deleted: boolean;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
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;
|
package/lib/model/fees/index.js
CHANGED
|
@@ -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);
|
|
@@ -2,28 +2,44 @@
|
|
|
2
2
|
* Fee Assignment Schema
|
|
3
3
|
* Assigns fees to individual students
|
|
4
4
|
*/
|
|
5
|
-
declare class
|
|
5
|
+
declare class FeeAssignmentBase {
|
|
6
6
|
_id?: string;
|
|
7
|
+
feeas_assignment_number?: string;
|
|
7
8
|
feeas_student_id?: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
|
8
|
+
class FeeAssignmentBase {
|
|
9
|
+
}
|
|
10
|
+
exports.FeeAssignmentBase = FeeAssignmentBase;
|
|
11
|
+
class FeeAssignment extends FeeAssignmentBase {
|
|
9
12
|
}
|
|
10
13
|
exports.FeeAssignment = FeeAssignment;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { FeeStructure } from './fee_structure';
|
|
2
2
|
export { FeeStructureItem } from './fee_structure_item';
|
|
3
|
-
export { FeeAssignment } from './fee_assignment';
|
|
3
|
+
export { FeeAssignment, FeeAssignmentBase } from './fee_assignment';
|
|
4
4
|
export { FeePayment } from './fee_payment';
|
|
5
5
|
export { FeePaymentItem } from './fee_payment_item';
|
|
6
6
|
export { FeeDiscount } from './fee_discount';
|
package/lib/schema/fees/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FeeInstallmentItem = exports.FeeInstallmentConfig = exports.FeeCollectionConfig = exports.FeeTransaction = exports.FeeReceiptTemplate = exports.FeeRefund = exports.FeeLateFee = exports.FeeLateFeeRule = exports.FeeScholarship = exports.FeeDiscountRule = exports.FeeDiscount = exports.FeePaymentItem = exports.FeePayment = exports.FeeAssignment = exports.FeeStructureItem = exports.FeeStructure = void 0;
|
|
3
|
+
exports.FeeInstallmentItem = exports.FeeInstallmentConfig = exports.FeeCollectionConfig = exports.FeeTransaction = exports.FeeReceiptTemplate = exports.FeeRefund = exports.FeeLateFee = exports.FeeLateFeeRule = exports.FeeScholarship = exports.FeeDiscountRule = exports.FeeDiscount = exports.FeePaymentItem = exports.FeePayment = exports.FeeAssignmentBase = exports.FeeAssignment = exports.FeeStructureItem = exports.FeeStructure = void 0;
|
|
4
4
|
var fee_structure_1 = require("./fee_structure");
|
|
5
5
|
Object.defineProperty(exports, "FeeStructure", { enumerable: true, get: function () { return fee_structure_1.FeeStructure; } });
|
|
6
6
|
var fee_structure_item_1 = require("./fee_structure_item");
|
|
7
7
|
Object.defineProperty(exports, "FeeStructureItem", { enumerable: true, get: function () { return fee_structure_item_1.FeeStructureItem; } });
|
|
8
8
|
var fee_assignment_1 = require("./fee_assignment");
|
|
9
9
|
Object.defineProperty(exports, "FeeAssignment", { enumerable: true, get: function () { return fee_assignment_1.FeeAssignment; } });
|
|
10
|
+
Object.defineProperty(exports, "FeeAssignmentBase", { enumerable: true, get: function () { return fee_assignment_1.FeeAssignmentBase; } });
|
|
10
11
|
var fee_payment_1 = require("./fee_payment");
|
|
11
12
|
Object.defineProperty(exports, "FeePayment", { enumerable: true, get: function () { return fee_payment_1.FeePayment; } });
|
|
12
13
|
var fee_payment_item_1 = require("./fee_payment_item");
|