cloud-ide-lms-model 1.0.350 → 1.0.352
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/core/financial_config.d.ts +39 -0
- package/lib/model/core/financial_config.js +49 -0
- package/lib/model/core/index.d.ts +1 -0
- package/lib/model/core/index.js +1 -0
- package/lib/model/fees/fee_structure.d.ts +12 -0
- package/lib/model/fees/fee_structure.js +4 -0
- package/lib/routes/coreRoutes.d.ts +4 -0
- package/lib/routes/coreRoutes.js +4 -0
- package/lib/schema/admission/admission_application_main.d.ts +4 -0
- package/lib/schema/admission/admission_contact_addresses.d.ts +1 -1
- package/lib/schema/collection_names.d.ts +1 -0
- package/lib/schema/collection_names.js +1 -0
- package/lib/schema/core/core_financial_config.d.ts +56 -0
- package/lib/schema/core/core_financial_config.js +7 -0
- package/lib/schema/core/index.d.ts +1 -0
- package/lib/schema/core/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { MTableQueries } from "../../common-types/common";
|
|
2
|
+
import { CoreFinancialConfig } from "../../schema/core/core_financial_config";
|
|
3
|
+
import { controllerResponse } from "../../utilities";
|
|
4
|
+
type IFinancialConfigErrorLogger = {
|
|
5
|
+
[key in keyof MFinancialConfigInsertUpdatePayload]: string;
|
|
6
|
+
};
|
|
7
|
+
type IFinancialConfigGetByIdErrorLogger = {
|
|
8
|
+
[key in keyof MFinancialConfigGetByIdPayload]: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Financial Configuration Query Model
|
|
12
|
+
* Extends MTableQueries for pagination/querying
|
|
13
|
+
*/
|
|
14
|
+
declare class MFinancialConfig extends MTableQueries {
|
|
15
|
+
fincfg_entity_id_syen?: string;
|
|
16
|
+
fincfg_isactive?: boolean;
|
|
17
|
+
constructor(init: MFinancialConfig);
|
|
18
|
+
Validate?(): Partial<IFinancialConfigErrorLogger>;
|
|
19
|
+
}
|
|
20
|
+
declare class MFinancialConfigGetByIdPayload {
|
|
21
|
+
fincfg_id?: string;
|
|
22
|
+
fincfg_entity_id_syen?: string;
|
|
23
|
+
constructor(init: MFinancialConfigGetByIdPayload);
|
|
24
|
+
Validate?(): Partial<IFinancialConfigGetByIdErrorLogger>;
|
|
25
|
+
}
|
|
26
|
+
declare class MFinancialConfigInsertUpdatePayload extends CoreFinancialConfig {
|
|
27
|
+
constructor(init: CoreFinancialConfig);
|
|
28
|
+
Validate?(): Partial<IFinancialConfigErrorLogger>;
|
|
29
|
+
}
|
|
30
|
+
interface financialConfigControllerResponse extends controllerResponse {
|
|
31
|
+
data?: CoreFinancialConfig[];
|
|
32
|
+
}
|
|
33
|
+
interface financialConfigByIdControllerResponse extends controllerResponse {
|
|
34
|
+
data?: CoreFinancialConfig;
|
|
35
|
+
}
|
|
36
|
+
interface financialConfigInsertUpdateControllerResponse extends controllerResponse {
|
|
37
|
+
data?: CoreFinancialConfig;
|
|
38
|
+
}
|
|
39
|
+
export { MFinancialConfig, MFinancialConfigGetByIdPayload, MFinancialConfigInsertUpdatePayload, financialConfigControllerResponse, financialConfigByIdControllerResponse, financialConfigInsertUpdateControllerResponse };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MFinancialConfigInsertUpdatePayload = exports.MFinancialConfigGetByIdPayload = exports.MFinancialConfig = void 0;
|
|
4
|
+
const common_1 = require("../../common-types/common");
|
|
5
|
+
const core_financial_config_1 = require("../../schema/core/core_financial_config");
|
|
6
|
+
/* INTERFACE END */
|
|
7
|
+
/* MODEL START */
|
|
8
|
+
/**
|
|
9
|
+
* Financial Configuration Query Model
|
|
10
|
+
* Extends MTableQueries for pagination/querying
|
|
11
|
+
*/
|
|
12
|
+
class MFinancialConfig extends common_1.MTableQueries {
|
|
13
|
+
constructor(init) {
|
|
14
|
+
super(init);
|
|
15
|
+
Object.assign(this, init);
|
|
16
|
+
}
|
|
17
|
+
Validate() {
|
|
18
|
+
let errorLogger = {};
|
|
19
|
+
return errorLogger;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.MFinancialConfig = MFinancialConfig;
|
|
23
|
+
class MFinancialConfigGetByIdPayload {
|
|
24
|
+
constructor(init) {
|
|
25
|
+
Object.assign(this, init);
|
|
26
|
+
}
|
|
27
|
+
Validate() {
|
|
28
|
+
let errorLogger = {};
|
|
29
|
+
if (!this.fincfg_id && !this.fincfg_entity_id_syen) {
|
|
30
|
+
errorLogger.fincfg_id = "Financial Config ID or Entity ID is required!";
|
|
31
|
+
}
|
|
32
|
+
return errorLogger;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.MFinancialConfigGetByIdPayload = MFinancialConfigGetByIdPayload;
|
|
36
|
+
class MFinancialConfigInsertUpdatePayload extends core_financial_config_1.CoreFinancialConfig {
|
|
37
|
+
constructor(init) {
|
|
38
|
+
super();
|
|
39
|
+
Object.assign(this, init);
|
|
40
|
+
}
|
|
41
|
+
Validate() {
|
|
42
|
+
let errorLogger = {};
|
|
43
|
+
if (!this.fincfg_entity_id_syen) {
|
|
44
|
+
errorLogger.fincfg_entity_id_syen = "Entity ID is required!";
|
|
45
|
+
}
|
|
46
|
+
return errorLogger;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.MFinancialConfigInsertUpdatePayload = MFinancialConfigInsertUpdatePayload;
|
|
@@ -4,6 +4,7 @@ export * from "./core_system_pages_theme";
|
|
|
4
4
|
export * from "./design-config";
|
|
5
5
|
export * from "./core_file_manager";
|
|
6
6
|
export * from "./core_system_entity";
|
|
7
|
+
export * from "./financial_config";
|
|
7
8
|
export * from "./core_general_master";
|
|
8
9
|
export * from "./core_system_menu";
|
|
9
10
|
export * from "./core_pin_code";
|
package/lib/model/core/index.js
CHANGED
|
@@ -20,6 +20,7 @@ __exportStar(require("./core_system_pages_theme"), exports);
|
|
|
20
20
|
__exportStar(require("./design-config"), exports);
|
|
21
21
|
__exportStar(require("./core_file_manager"), exports);
|
|
22
22
|
__exportStar(require("./core_system_entity"), exports);
|
|
23
|
+
__exportStar(require("./financial_config"), exports);
|
|
23
24
|
__exportStar(require("./core_general_master"), exports);
|
|
24
25
|
__exportStar(require("./core_system_menu"), exports);
|
|
25
26
|
__exportStar(require("./core_pin_code"), exports);
|
|
@@ -27,7 +27,19 @@ type IFeeStructureSaveUpdateErrorLogger = {
|
|
|
27
27
|
type IFeeStructureToggleStatusErrorLogger = {
|
|
28
28
|
[key in keyof MFeeStructureToggleStatusPayload]: string;
|
|
29
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* Fee Structure Query Model
|
|
32
|
+
* Extends MTableQueries for pagination/querying and includes FeeStructure properties for filtering
|
|
33
|
+
*/
|
|
30
34
|
declare class MFeeStructure extends MTableQueries {
|
|
35
|
+
fees_academic_year_id_acayr?: string;
|
|
36
|
+
fees_entity_id_syen?: string;
|
|
37
|
+
fees_class_program_id_acacpm?: string;
|
|
38
|
+
fees_class_program_branch_id_acabrn?: string;
|
|
39
|
+
fees_class_program_term_id_acapt?: string;
|
|
40
|
+
fees_program_term_section_id_acapts?: string;
|
|
41
|
+
fees_student_category_id_sygms?: string;
|
|
42
|
+
fees_is_active?: boolean;
|
|
31
43
|
constructor(init: MFeeStructure);
|
|
32
44
|
Validate?(): Partial<IFeeStructureErrorLogger>;
|
|
33
45
|
}
|
|
@@ -5,6 +5,10 @@ const common_1 = require("../../common-types/common");
|
|
|
5
5
|
const schema_1 = require("../../schema");
|
|
6
6
|
/* INTERFACE END */
|
|
7
7
|
/* MODEL START */
|
|
8
|
+
/**
|
|
9
|
+
* Fee Structure Query Model
|
|
10
|
+
* Extends MTableQueries for pagination/querying and includes FeeStructure properties for filtering
|
|
11
|
+
*/
|
|
8
12
|
class MFeeStructure extends common_1.MTableQueries {
|
|
9
13
|
constructor(init) {
|
|
10
14
|
super(init);
|
|
@@ -41,6 +41,10 @@ declare const coreRoutesUrl: {
|
|
|
41
41
|
* @description Endpoint to get the currency (currency)
|
|
42
42
|
*/
|
|
43
43
|
currency: string;
|
|
44
|
+
/**
|
|
45
|
+
* @description Endpoint to manage financial configuration (financial-config)
|
|
46
|
+
*/
|
|
47
|
+
financialConfig: string;
|
|
44
48
|
/**
|
|
45
49
|
* @description Endpoint to get the country (country)
|
|
46
50
|
*/
|
package/lib/routes/coreRoutes.js
CHANGED
|
@@ -44,6 +44,10 @@ const coreRoutesUrl = {
|
|
|
44
44
|
* @description Endpoint to get the currency (currency)
|
|
45
45
|
*/
|
|
46
46
|
currency: "currency",
|
|
47
|
+
/**
|
|
48
|
+
* @description Endpoint to manage financial configuration (financial-config)
|
|
49
|
+
*/
|
|
50
|
+
financialConfig: "financial-config",
|
|
47
51
|
/**
|
|
48
52
|
* @description Endpoint to get the country (country)
|
|
49
53
|
*/
|
|
@@ -187,11 +187,15 @@ declare class AdmissionApplicationMain {
|
|
|
187
187
|
admap_enrollment_deadline?: Date;
|
|
188
188
|
admap_enrollment_completed?: boolean;
|
|
189
189
|
admap_enrollment_date?: Date;
|
|
190
|
+
admap_confirmed_at?: Date;
|
|
191
|
+
admap_confirmed_by_user?: string;
|
|
192
|
+
admap_confirmation_remarks?: string;
|
|
190
193
|
admap_entity_id_syen?: string;
|
|
191
194
|
admap_program_id_sygms?: string;
|
|
192
195
|
admap_created_by_user?: string;
|
|
193
196
|
admap_reviewed_by_user?: string;
|
|
194
197
|
admap_assigned_counselor_user?: string;
|
|
198
|
+
admap_user_id_auth?: string;
|
|
195
199
|
admap_created_date?: Date;
|
|
196
200
|
admap_modified_date?: Date;
|
|
197
201
|
admap_modified_by_user?: string;
|
|
@@ -10,7 +10,7 @@ declare class AdmissionContactAddressesBase {
|
|
|
10
10
|
admca_admission_id_admap?: string;
|
|
11
11
|
admca_address_type_id_sygms?: string;
|
|
12
12
|
admca_contact_person_name?: string;
|
|
13
|
-
|
|
13
|
+
admca_contact_person_relation_id_sygms?: string;
|
|
14
14
|
admca_contact_address?: string;
|
|
15
15
|
admca_contact_pin_sypin?: string;
|
|
16
16
|
admca_contact_city_sypin?: string;
|
|
@@ -36,6 +36,7 @@ const COLLECTIONS = {
|
|
|
36
36
|
core_page_tab: "core_page_tab",
|
|
37
37
|
core_pin_code: "core_pin_code",
|
|
38
38
|
core_system_config: "core_system_config",
|
|
39
|
+
core_financial_config: "core_financial_config",
|
|
39
40
|
core_system_country: "core_system_country",
|
|
40
41
|
core_system_nationality: "core_system_nationality",
|
|
41
42
|
core_system_entity: "core_system_entity",
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
declare class CoreFinancialConfig {
|
|
2
|
+
_id?: string;
|
|
3
|
+
fincfg_entity_id_syen?: string;
|
|
4
|
+
fincfg_default_currency_id_sycr?: string;
|
|
5
|
+
fincfg_currency_display_format?: "symbol_before" | "symbol_after" | "code_before" | "code_after";
|
|
6
|
+
fincfg_currency_decimal_places?: number;
|
|
7
|
+
fincfg_currency_thousand_separator?: string;
|
|
8
|
+
fincfg_currency_decimal_separator?: string;
|
|
9
|
+
fincfg_show_currency_symbol?: boolean;
|
|
10
|
+
fincfg_show_currency_code?: boolean;
|
|
11
|
+
fincfg_financial_year_start_month?: number;
|
|
12
|
+
fincfg_financial_year_start_day?: number;
|
|
13
|
+
fincfg_financial_year_naming?: "calendar_year" | "fiscal_year" | "academic_year";
|
|
14
|
+
fincfg_default_tax_percentage?: number;
|
|
15
|
+
fincfg_tax_inclusive_pricing?: boolean;
|
|
16
|
+
fincfg_show_tax_breakdown?: boolean;
|
|
17
|
+
fincfg_tax_calculation_method?: "percentage" | "fixed_amount" | "tiered";
|
|
18
|
+
fincfg_allowed_payment_methods?: string[];
|
|
19
|
+
fincfg_default_payment_method?: string;
|
|
20
|
+
fincfg_require_payment_reference?: boolean;
|
|
21
|
+
fincfg_auto_generate_receipt?: boolean;
|
|
22
|
+
fincfg_invoice_prefix?: string;
|
|
23
|
+
fincfg_receipt_prefix?: string;
|
|
24
|
+
fincfg_invoice_number_format?: "sequential" | "year_sequential" | "date_sequential";
|
|
25
|
+
fincfg_receipt_number_format?: "sequential" | "year_sequential" | "date_sequential";
|
|
26
|
+
fincfg_invoice_footer_text?: string;
|
|
27
|
+
fincfg_receipt_footer_text?: string;
|
|
28
|
+
fincfg_show_terms_conditions?: boolean;
|
|
29
|
+
fincfg_terms_conditions_text?: string;
|
|
30
|
+
fincfg_rounding_method?: "round" | "floor" | "ceiling" | "none";
|
|
31
|
+
fincfg_rounding_precision?: number;
|
|
32
|
+
fincfg_allow_discounts?: boolean;
|
|
33
|
+
fincfg_max_discount_percentage?: number;
|
|
34
|
+
fincfg_require_discount_approval?: boolean;
|
|
35
|
+
fincfg_discount_approval_threshold?: number;
|
|
36
|
+
fincfg_late_fee_enabled?: boolean;
|
|
37
|
+
fincfg_late_fee_calculation_method?: "fixed_amount" | "percentage" | "daily_rate";
|
|
38
|
+
fincfg_late_fee_percentage?: number;
|
|
39
|
+
fincfg_late_fee_fixed_amount?: number;
|
|
40
|
+
fincfg_late_fee_grace_period_days?: number;
|
|
41
|
+
fincfg_allow_refunds?: boolean;
|
|
42
|
+
fincfg_refund_approval_required?: boolean;
|
|
43
|
+
fincfg_max_refund_percentage?: number;
|
|
44
|
+
fincfg_bank_account_number?: string;
|
|
45
|
+
fincfg_bank_name?: string;
|
|
46
|
+
fincfg_bank_ifsc_code?: string;
|
|
47
|
+
fincfg_bank_branch?: string;
|
|
48
|
+
fincfg_additional_config?: Record<string, any>;
|
|
49
|
+
fincfg_created_by_user?: string;
|
|
50
|
+
fincfg_updated_by_user?: string;
|
|
51
|
+
fincfg_isactive?: boolean;
|
|
52
|
+
fincfg_notes?: string;
|
|
53
|
+
createdAt?: Date;
|
|
54
|
+
updatedAt?: Date;
|
|
55
|
+
}
|
|
56
|
+
export { CoreFinancialConfig };
|
|
@@ -4,6 +4,7 @@ export * from './core_system_menu';
|
|
|
4
4
|
export * from './core_system_logs';
|
|
5
5
|
export * from './core_system_entity';
|
|
6
6
|
export * from './core_system_config';
|
|
7
|
+
export * from './core_financial_config';
|
|
7
8
|
export * from './core_pin_code';
|
|
8
9
|
export * from './core_page_tab';
|
|
9
10
|
export * from './core_page_grid';
|
package/lib/schema/core/index.js
CHANGED
|
@@ -20,6 +20,7 @@ __exportStar(require("./core_system_menu"), exports);
|
|
|
20
20
|
__exportStar(require("./core_system_logs"), exports);
|
|
21
21
|
__exportStar(require("./core_system_entity"), exports);
|
|
22
22
|
__exportStar(require("./core_system_config"), exports);
|
|
23
|
+
__exportStar(require("./core_financial_config"), exports);
|
|
23
24
|
__exportStar(require("./core_pin_code"), exports);
|
|
24
25
|
__exportStar(require("./core_page_tab"), exports);
|
|
25
26
|
__exportStar(require("./core_page_grid"), exports);
|