cloud-ide-lms-model 1.0.351 → 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.
@@ -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";
@@ -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);
@@ -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
  */
@@ -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,6 +187,9 @@ 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;
@@ -29,6 +29,7 @@ declare const COLLECTIONS: {
29
29
  core_page_tab: string;
30
30
  core_pin_code: string;
31
31
  core_system_config: string;
32
+ core_financial_config: string;
32
33
  core_system_country: string;
33
34
  core_system_nationality: string;
34
35
  core_system_entity: 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 };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CoreFinancialConfig = void 0;
4
+ /* INTERFACE START */
5
+ class CoreFinancialConfig {
6
+ }
7
+ exports.CoreFinancialConfig = 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';
@@ -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);
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.351",
8
+ "version": "1.0.352",
9
9
  "description": "Package for Model management of Cloud IDEsys LMS",
10
10
  "main": "lib/index.js",
11
11
  "types": "lib/index.d.ts",