cloud-ide-lms-model 1.1.87 → 1.1.88
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/core_doc_series.d.ts +99 -0
- package/lib/model/core/core_doc_series.js +94 -0
- package/lib/model/core/core_doc_series_assignment.d.ts +96 -0
- package/lib/model/core/core_doc_series_assignment.js +81 -0
- package/lib/model/core/core_doc_type.d.ts +72 -0
- package/lib/model/core/core_doc_type.js +75 -0
- package/lib/model/core/core_system_config.d.ts +32 -0
- package/lib/model/core/core_system_config.js +43 -0
- package/lib/model/core/index.d.ts +4 -0
- package/lib/model/core/index.js +4 -0
- package/lib/routes/coreRoutes.d.ts +24 -0
- package/lib/routes/coreRoutes.js +24 -0
- package/lib/schema/academics/aca_academic_year.d.ts +10 -0
- package/lib/schema/academics/aca_academic_year_mapping.d.ts +5 -0
- package/lib/schema/academics/aca_class_prg_branch.d.ts +8 -0
- package/lib/schema/academics/aca_class_program_master.d.ts +8 -0
- package/lib/schema/academics/aca_class_program_term.d.ts +11 -0
- package/lib/schema/academics/aca_prg_trm_section.d.ts +11 -0
- package/lib/schema/academics/aca_student_enrollment.d.ts +22 -0
- package/lib/schema/academics/academics_bonafide_request.d.ts +23 -0
- package/lib/schema/academics/academics_education_board.d.ts +23 -0
- package/lib/schema/collection_names.d.ts +4 -0
- package/lib/schema/collection_names.js +4 -0
- package/lib/schema/core/core_doc_series.d.ts +26 -0
- package/lib/schema/core/core_doc_series.js +7 -0
- package/lib/schema/core/core_doc_series_assignment.d.ts +29 -0
- package/lib/schema/core/core_doc_series_assignment.js +7 -0
- package/lib/schema/core/core_doc_series_counter.d.ts +11 -0
- package/lib/schema/core/core_doc_series_counter.js +7 -0
- package/lib/schema/core/core_doc_type.d.ts +18 -0
- package/lib/schema/core/core_doc_type.js +7 -0
- package/lib/schema/core/core_general_master.d.ts +1 -0
- package/lib/schema/core/core_general_master_type.d.ts +1 -0
- package/lib/schema/core/core_iso_currency.d.ts +1 -0
- package/lib/schema/core/core_language.d.ts +1 -0
- package/lib/schema/core/core_pin_code.d.ts +1 -0
- package/lib/schema/core/core_system_config.d.ts +3 -0
- package/lib/schema/core/core_system_country.d.ts +1 -0
- package/lib/schema/core/core_system_entity.d.ts +1 -0
- package/lib/schema/core/core_system_menu.d.ts +1 -0
- package/lib/schema/core/core_system_nationality.d.ts +1 -0
- package/lib/schema/core/index.d.ts +4 -0
- package/lib/schema/core/index.js +4 -0
- package/lib/schema/fees/fee_assignment.d.ts +38 -0
- package/lib/schema/fees/fee_collection_config.d.ts +19 -0
- package/lib/schema/fees/fee_discount.d.ts +16 -0
- package/lib/schema/fees/fee_discount_rule.d.ts +23 -0
- package/lib/schema/fees/fee_installment_config.d.ts +28 -0
- package/lib/schema/fees/fee_installment_item.d.ts +12 -0
- package/lib/schema/fees/fee_late_fee.d.ts +15 -0
- package/lib/schema/fees/fee_late_fee_rule.d.ts +21 -0
- package/lib/schema/fees/fee_payment.d.ts +33 -0
- package/lib/schema/fees/fee_payment_item.d.ts +9 -0
- package/lib/schema/fees/fee_receipt_template.d.ts +12 -0
- package/lib/schema/fees/fee_refund.d.ts +17 -0
- package/lib/schema/fees/fee_scholarship.d.ts +17 -0
- package/lib/schema/fees/fee_structure.d.ts +13 -0
- package/lib/schema/fees/fee_structure_item.d.ts +26 -0
- package/lib/schema/fees/fee_transaction.d.ts +13 -0
- package/package.json +1 -1
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { MTableQueries } from "../../common-types/common";
|
|
2
|
+
import { ICoreDocSeries } from "../../schema";
|
|
3
|
+
import { controllerResponse } from "../../utilities";
|
|
4
|
+
type IDocSeriesErrorLogger = {
|
|
5
|
+
[key in keyof MDocSeries]: string;
|
|
6
|
+
};
|
|
7
|
+
type IDocSeriesInsertUpdateErrorLogger = {
|
|
8
|
+
[key in keyof MDocSeriesInsertUpdatePayload]: string;
|
|
9
|
+
};
|
|
10
|
+
type IDocSeriesGetByIdErrorLogger = {
|
|
11
|
+
[key in keyof MDocSeriesGetByIdPayload]: string;
|
|
12
|
+
};
|
|
13
|
+
type IDocSeriesDeleteErrorLogger = {
|
|
14
|
+
[key in keyof MDocSeriesDeletePayload]: string;
|
|
15
|
+
};
|
|
16
|
+
type IDocSeriesToggleStatusErrorLogger = {
|
|
17
|
+
[key in keyof MDocSeriesToggleStatusPayload]: string;
|
|
18
|
+
};
|
|
19
|
+
type IDocSeriesPreviewErrorLogger = {
|
|
20
|
+
[key in keyof MDocSeriesPreviewPayload]: string;
|
|
21
|
+
};
|
|
22
|
+
declare class MDocSeries extends MTableQueries {
|
|
23
|
+
cdse_code?: string;
|
|
24
|
+
cdse_name?: string;
|
|
25
|
+
cdse_doc_type_id?: string;
|
|
26
|
+
cdse_doc_type_code?: string;
|
|
27
|
+
cdse_entity_id?: string;
|
|
28
|
+
cdse_reset_period?: string;
|
|
29
|
+
cdse_is_active?: boolean;
|
|
30
|
+
constructor(init: MDocSeries);
|
|
31
|
+
Validate?(): Partial<IDocSeriesErrorLogger>;
|
|
32
|
+
}
|
|
33
|
+
declare class MDocSeriesGetByIdPayload {
|
|
34
|
+
cdse_id?: string;
|
|
35
|
+
constructor(init: MDocSeriesGetByIdPayload);
|
|
36
|
+
Validate?(): Partial<IDocSeriesGetByIdErrorLogger>;
|
|
37
|
+
}
|
|
38
|
+
declare class MDocSeriesDeletePayload {
|
|
39
|
+
cdse_id?: string;
|
|
40
|
+
constructor(init: MDocSeriesDeletePayload);
|
|
41
|
+
Validate?(): Partial<IDocSeriesDeleteErrorLogger>;
|
|
42
|
+
}
|
|
43
|
+
declare class MDocSeriesToggleStatusPayload {
|
|
44
|
+
cdse_id?: string;
|
|
45
|
+
constructor(init: MDocSeriesToggleStatusPayload);
|
|
46
|
+
Validate?(): Partial<IDocSeriesToggleStatusErrorLogger>;
|
|
47
|
+
}
|
|
48
|
+
declare class MDocSeriesPreviewPayload {
|
|
49
|
+
cdse_id?: string;
|
|
50
|
+
academic_year_code?: string;
|
|
51
|
+
financial_year_code?: string;
|
|
52
|
+
accounting_year_code?: string;
|
|
53
|
+
entity_code?: string;
|
|
54
|
+
constructor(init: MDocSeriesPreviewPayload);
|
|
55
|
+
Validate?(): Partial<IDocSeriesPreviewErrorLogger>;
|
|
56
|
+
}
|
|
57
|
+
declare class MDocSeriesInsertUpdatePayload implements ICoreDocSeries {
|
|
58
|
+
_id?: string;
|
|
59
|
+
cdse_name?: string;
|
|
60
|
+
cdse_code?: string;
|
|
61
|
+
cdse_doc_type_id?: string;
|
|
62
|
+
cdse_doc_type_code?: string;
|
|
63
|
+
cdse_entity_id?: string | null;
|
|
64
|
+
cdse_format_template?: string;
|
|
65
|
+
cdse_prefix?: string;
|
|
66
|
+
cdse_suffix?: string;
|
|
67
|
+
cdse_seq_padding?: number;
|
|
68
|
+
cdse_start_number?: number;
|
|
69
|
+
cdse_max_number?: number;
|
|
70
|
+
cdse_reset_period?: string;
|
|
71
|
+
cdse_default_config?: Record<string, any>;
|
|
72
|
+
cdse_is_active?: boolean;
|
|
73
|
+
cdse_is_locked?: boolean;
|
|
74
|
+
constructor(init: ICoreDocSeries);
|
|
75
|
+
Validate?(): Partial<IDocSeriesInsertUpdateErrorLogger>;
|
|
76
|
+
}
|
|
77
|
+
interface docSeriesControllerResponse extends controllerResponse {
|
|
78
|
+
data?: ICoreDocSeries[];
|
|
79
|
+
}
|
|
80
|
+
interface docSeriesByIdControllerResponse extends controllerResponse {
|
|
81
|
+
data?: ICoreDocSeries;
|
|
82
|
+
}
|
|
83
|
+
interface docSeriesInsertUpdateControllerResponse extends controllerResponse {
|
|
84
|
+
data?: ICoreDocSeries;
|
|
85
|
+
}
|
|
86
|
+
interface docSeriesDeleteControllerResponse extends controllerResponse {
|
|
87
|
+
data?: boolean;
|
|
88
|
+
}
|
|
89
|
+
interface docSeriesToggleStatusControllerResponse extends controllerResponse {
|
|
90
|
+
data?: boolean;
|
|
91
|
+
}
|
|
92
|
+
interface docSeriesPreviewControllerResponse extends controllerResponse {
|
|
93
|
+
data?: {
|
|
94
|
+
preview_number: string;
|
|
95
|
+
next_counter: number;
|
|
96
|
+
period_key: string;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
export { IDocSeriesErrorLogger, IDocSeriesInsertUpdateErrorLogger, IDocSeriesGetByIdErrorLogger, IDocSeriesDeleteErrorLogger, IDocSeriesToggleStatusErrorLogger, IDocSeriesPreviewErrorLogger, MDocSeries, MDocSeriesGetByIdPayload, MDocSeriesDeletePayload, MDocSeriesToggleStatusPayload, MDocSeriesPreviewPayload, MDocSeriesInsertUpdatePayload, docSeriesControllerResponse, docSeriesByIdControllerResponse, docSeriesInsertUpdateControllerResponse, docSeriesDeleteControllerResponse, docSeriesToggleStatusControllerResponse, docSeriesPreviewControllerResponse, };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MDocSeriesInsertUpdatePayload = exports.MDocSeriesPreviewPayload = exports.MDocSeriesToggleStatusPayload = exports.MDocSeriesDeletePayload = exports.MDocSeriesGetByIdPayload = exports.MDocSeries = void 0;
|
|
4
|
+
const common_1 = require("../../common-types/common");
|
|
5
|
+
/* INTERFACE END */
|
|
6
|
+
/* MODEL START */
|
|
7
|
+
class MDocSeries extends common_1.MTableQueries {
|
|
8
|
+
constructor(init) {
|
|
9
|
+
super(init);
|
|
10
|
+
Object.assign(this, init);
|
|
11
|
+
}
|
|
12
|
+
Validate() {
|
|
13
|
+
let errorLogger = {};
|
|
14
|
+
return errorLogger;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.MDocSeries = MDocSeries;
|
|
18
|
+
class MDocSeriesGetByIdPayload {
|
|
19
|
+
constructor(init) {
|
|
20
|
+
Object.assign(this, init);
|
|
21
|
+
}
|
|
22
|
+
Validate() {
|
|
23
|
+
let errorLogger = {};
|
|
24
|
+
if (!this.cdse_id) {
|
|
25
|
+
errorLogger.cdse_id = "Document Series ID is Required!";
|
|
26
|
+
}
|
|
27
|
+
return errorLogger;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.MDocSeriesGetByIdPayload = MDocSeriesGetByIdPayload;
|
|
31
|
+
class MDocSeriesDeletePayload {
|
|
32
|
+
constructor(init) {
|
|
33
|
+
Object.assign(this, init);
|
|
34
|
+
}
|
|
35
|
+
Validate() {
|
|
36
|
+
let errorLogger = {};
|
|
37
|
+
if (!this.cdse_id) {
|
|
38
|
+
errorLogger.cdse_id = "Document Series ID is Required!";
|
|
39
|
+
}
|
|
40
|
+
return errorLogger;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.MDocSeriesDeletePayload = MDocSeriesDeletePayload;
|
|
44
|
+
class MDocSeriesToggleStatusPayload {
|
|
45
|
+
constructor(init) {
|
|
46
|
+
Object.assign(this, init);
|
|
47
|
+
}
|
|
48
|
+
Validate() {
|
|
49
|
+
let errorLogger = {};
|
|
50
|
+
if (!this.cdse_id) {
|
|
51
|
+
errorLogger.cdse_id = "Document Series ID is Required!";
|
|
52
|
+
}
|
|
53
|
+
return errorLogger;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.MDocSeriesToggleStatusPayload = MDocSeriesToggleStatusPayload;
|
|
57
|
+
class MDocSeriesPreviewPayload {
|
|
58
|
+
constructor(init) {
|
|
59
|
+
Object.assign(this, init);
|
|
60
|
+
}
|
|
61
|
+
Validate() {
|
|
62
|
+
let errorLogger = {};
|
|
63
|
+
if (!this.cdse_id) {
|
|
64
|
+
errorLogger.cdse_id = "Document Series ID is Required!";
|
|
65
|
+
}
|
|
66
|
+
return errorLogger;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.MDocSeriesPreviewPayload = MDocSeriesPreviewPayload;
|
|
70
|
+
class MDocSeriesInsertUpdatePayload {
|
|
71
|
+
constructor(init) {
|
|
72
|
+
Object.assign(this, init);
|
|
73
|
+
}
|
|
74
|
+
Validate() {
|
|
75
|
+
let errorLogger = {};
|
|
76
|
+
if (!this.cdse_name) {
|
|
77
|
+
errorLogger.cdse_name = "Series name is required!";
|
|
78
|
+
}
|
|
79
|
+
if (!this.cdse_code) {
|
|
80
|
+
errorLogger.cdse_code = "Series code is required!";
|
|
81
|
+
}
|
|
82
|
+
if (!this.cdse_doc_type_id) {
|
|
83
|
+
errorLogger.cdse_doc_type_id = "Document Type is required!";
|
|
84
|
+
}
|
|
85
|
+
if (!this.cdse_format_template) {
|
|
86
|
+
errorLogger.cdse_format_template = "Format template is required!";
|
|
87
|
+
}
|
|
88
|
+
if (!this.cdse_reset_period) {
|
|
89
|
+
errorLogger.cdse_reset_period = "Reset period is required!";
|
|
90
|
+
}
|
|
91
|
+
return errorLogger;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.MDocSeriesInsertUpdatePayload = MDocSeriesInsertUpdatePayload;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { MTableQueries } from "../../common-types/common";
|
|
2
|
+
import { ICoreDocSeriesAssignment } from "../../schema";
|
|
3
|
+
import { controllerResponse } from "../../utilities";
|
|
4
|
+
type IDocSeriesAssignmentErrorLogger = {
|
|
5
|
+
[key in keyof MDocSeriesAssignment]: string;
|
|
6
|
+
};
|
|
7
|
+
type IDocSeriesAssignmentInsertUpdateErrorLogger = {
|
|
8
|
+
[key in keyof MDocSeriesAssignmentInsertUpdatePayload]: string;
|
|
9
|
+
};
|
|
10
|
+
type IDocSeriesAssignmentGetByIdErrorLogger = {
|
|
11
|
+
[key in keyof MDocSeriesAssignmentGetByIdPayload]: string;
|
|
12
|
+
};
|
|
13
|
+
type IDocSeriesAssignmentDeleteErrorLogger = {
|
|
14
|
+
[key in keyof MDocSeriesAssignmentDeletePayload]: string;
|
|
15
|
+
};
|
|
16
|
+
type IDocSeriesSelectableErrorLogger = {
|
|
17
|
+
[key in keyof MDocSeriesSelectablePayload]: string;
|
|
18
|
+
};
|
|
19
|
+
declare class MDocSeriesAssignment extends MTableQueries {
|
|
20
|
+
cdsa_doc_type_code?: string;
|
|
21
|
+
cdsa_entity_id?: string;
|
|
22
|
+
cdsa_academic_year_id?: string;
|
|
23
|
+
cdsa_financial_year_id?: string;
|
|
24
|
+
cdsa_series_id?: string;
|
|
25
|
+
cdsa_is_primary?: boolean;
|
|
26
|
+
cdsa_is_selectable?: boolean;
|
|
27
|
+
cdsa_is_active?: boolean;
|
|
28
|
+
constructor(init: MDocSeriesAssignment);
|
|
29
|
+
Validate?(): Partial<IDocSeriesAssignmentErrorLogger>;
|
|
30
|
+
}
|
|
31
|
+
declare class MDocSeriesAssignmentGetByIdPayload {
|
|
32
|
+
cdsa_id?: string;
|
|
33
|
+
constructor(init: MDocSeriesAssignmentGetByIdPayload);
|
|
34
|
+
Validate?(): Partial<IDocSeriesAssignmentGetByIdErrorLogger>;
|
|
35
|
+
}
|
|
36
|
+
declare class MDocSeriesAssignmentDeletePayload {
|
|
37
|
+
cdsa_id?: string;
|
|
38
|
+
constructor(init: MDocSeriesAssignmentDeletePayload);
|
|
39
|
+
Validate?(): Partial<IDocSeriesAssignmentDeleteErrorLogger>;
|
|
40
|
+
}
|
|
41
|
+
declare class MDocSeriesSelectablePayload {
|
|
42
|
+
doc_type_code?: string;
|
|
43
|
+
entity_id?: string;
|
|
44
|
+
academic_year_id?: string;
|
|
45
|
+
financial_year_id?: string;
|
|
46
|
+
constructor(init: MDocSeriesSelectablePayload);
|
|
47
|
+
Validate?(): Partial<IDocSeriesSelectableErrorLogger>;
|
|
48
|
+
}
|
|
49
|
+
declare class MDocSeriesAssignmentInsertUpdatePayload implements ICoreDocSeriesAssignment {
|
|
50
|
+
_id?: string;
|
|
51
|
+
cdsa_doc_type_id?: string;
|
|
52
|
+
cdsa_doc_type_code?: string;
|
|
53
|
+
cdsa_entity_id?: string;
|
|
54
|
+
cdsa_academic_year_id?: string | null;
|
|
55
|
+
cdsa_academic_year_code?: string | null;
|
|
56
|
+
cdsa_financial_year_id?: string | null;
|
|
57
|
+
cdsa_financial_year_code?: string | null;
|
|
58
|
+
cdsa_series_id?: string;
|
|
59
|
+
cdsa_series_code?: string;
|
|
60
|
+
cdsa_is_primary?: boolean;
|
|
61
|
+
cdsa_is_selectable?: boolean;
|
|
62
|
+
cdsa_is_default?: boolean;
|
|
63
|
+
cdsa_display_label?: string;
|
|
64
|
+
cdsa_sort_order?: number;
|
|
65
|
+
cdsa_is_active?: boolean;
|
|
66
|
+
cdsa_allowed_role_ids?: string[];
|
|
67
|
+
cdsa_branch_id?: string | null;
|
|
68
|
+
cdsa_effective_from?: Date;
|
|
69
|
+
cdsa_effective_to?: Date | null;
|
|
70
|
+
constructor(init: ICoreDocSeriesAssignment);
|
|
71
|
+
Validate?(): Partial<IDocSeriesAssignmentInsertUpdateErrorLogger>;
|
|
72
|
+
}
|
|
73
|
+
interface docSeriesAssignmentControllerResponse extends controllerResponse {
|
|
74
|
+
data?: ICoreDocSeriesAssignment[];
|
|
75
|
+
}
|
|
76
|
+
interface docSeriesAssignmentByIdControllerResponse extends controllerResponse {
|
|
77
|
+
data?: ICoreDocSeriesAssignment;
|
|
78
|
+
}
|
|
79
|
+
interface docSeriesAssignmentInsertUpdateControllerResponse extends controllerResponse {
|
|
80
|
+
data?: ICoreDocSeriesAssignment;
|
|
81
|
+
}
|
|
82
|
+
interface docSeriesAssignmentDeleteControllerResponse extends controllerResponse {
|
|
83
|
+
data?: boolean;
|
|
84
|
+
}
|
|
85
|
+
interface docSeriesSelectableControllerResponse extends controllerResponse {
|
|
86
|
+
data?: {
|
|
87
|
+
series_id: string;
|
|
88
|
+
series_code: string;
|
|
89
|
+
label: string;
|
|
90
|
+
is_default: boolean;
|
|
91
|
+
sort_order: number;
|
|
92
|
+
preview_number?: string;
|
|
93
|
+
default_config?: Record<string, any>;
|
|
94
|
+
}[];
|
|
95
|
+
}
|
|
96
|
+
export { IDocSeriesAssignmentErrorLogger, IDocSeriesAssignmentInsertUpdateErrorLogger, IDocSeriesAssignmentGetByIdErrorLogger, IDocSeriesAssignmentDeleteErrorLogger, IDocSeriesSelectableErrorLogger, MDocSeriesAssignment, MDocSeriesAssignmentGetByIdPayload, MDocSeriesAssignmentDeletePayload, MDocSeriesSelectablePayload, MDocSeriesAssignmentInsertUpdatePayload, docSeriesAssignmentControllerResponse, docSeriesAssignmentByIdControllerResponse, docSeriesAssignmentInsertUpdateControllerResponse, docSeriesAssignmentDeleteControllerResponse, docSeriesSelectableControllerResponse, };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MDocSeriesAssignmentInsertUpdatePayload = exports.MDocSeriesSelectablePayload = exports.MDocSeriesAssignmentDeletePayload = exports.MDocSeriesAssignmentGetByIdPayload = exports.MDocSeriesAssignment = void 0;
|
|
4
|
+
const common_1 = require("../../common-types/common");
|
|
5
|
+
/* INTERFACE END */
|
|
6
|
+
/* MODEL START */
|
|
7
|
+
class MDocSeriesAssignment extends common_1.MTableQueries {
|
|
8
|
+
constructor(init) {
|
|
9
|
+
super(init);
|
|
10
|
+
Object.assign(this, init);
|
|
11
|
+
}
|
|
12
|
+
Validate() {
|
|
13
|
+
let errorLogger = {};
|
|
14
|
+
return errorLogger;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.MDocSeriesAssignment = MDocSeriesAssignment;
|
|
18
|
+
class MDocSeriesAssignmentGetByIdPayload {
|
|
19
|
+
constructor(init) {
|
|
20
|
+
Object.assign(this, init);
|
|
21
|
+
}
|
|
22
|
+
Validate() {
|
|
23
|
+
let errorLogger = {};
|
|
24
|
+
if (!this.cdsa_id) {
|
|
25
|
+
errorLogger.cdsa_id = "Assignment ID is Required!";
|
|
26
|
+
}
|
|
27
|
+
return errorLogger;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.MDocSeriesAssignmentGetByIdPayload = MDocSeriesAssignmentGetByIdPayload;
|
|
31
|
+
class MDocSeriesAssignmentDeletePayload {
|
|
32
|
+
constructor(init) {
|
|
33
|
+
Object.assign(this, init);
|
|
34
|
+
}
|
|
35
|
+
Validate() {
|
|
36
|
+
let errorLogger = {};
|
|
37
|
+
if (!this.cdsa_id) {
|
|
38
|
+
errorLogger.cdsa_id = "Assignment ID is Required!";
|
|
39
|
+
}
|
|
40
|
+
return errorLogger;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.MDocSeriesAssignmentDeletePayload = MDocSeriesAssignmentDeletePayload;
|
|
44
|
+
class MDocSeriesSelectablePayload {
|
|
45
|
+
constructor(init) {
|
|
46
|
+
Object.assign(this, init);
|
|
47
|
+
}
|
|
48
|
+
Validate() {
|
|
49
|
+
let errorLogger = {};
|
|
50
|
+
if (!this.doc_type_code) {
|
|
51
|
+
errorLogger.doc_type_code = "Document Type Code is Required!";
|
|
52
|
+
}
|
|
53
|
+
if (!this.entity_id) {
|
|
54
|
+
errorLogger.entity_id = "Entity ID is Required!";
|
|
55
|
+
}
|
|
56
|
+
return errorLogger;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.MDocSeriesSelectablePayload = MDocSeriesSelectablePayload;
|
|
60
|
+
class MDocSeriesAssignmentInsertUpdatePayload {
|
|
61
|
+
constructor(init) {
|
|
62
|
+
Object.assign(this, init);
|
|
63
|
+
}
|
|
64
|
+
Validate() {
|
|
65
|
+
let errorLogger = {};
|
|
66
|
+
if (!this.cdsa_doc_type_id) {
|
|
67
|
+
errorLogger.cdsa_doc_type_id = "Document Type is required!";
|
|
68
|
+
}
|
|
69
|
+
if (!this.cdsa_entity_id) {
|
|
70
|
+
errorLogger.cdsa_entity_id = "Entity is required!";
|
|
71
|
+
}
|
|
72
|
+
if (!this.cdsa_series_id) {
|
|
73
|
+
errorLogger.cdsa_series_id = "Series is required!";
|
|
74
|
+
}
|
|
75
|
+
if (!this.cdsa_effective_from) {
|
|
76
|
+
errorLogger.cdsa_effective_from = "Effective From date is required!";
|
|
77
|
+
}
|
|
78
|
+
return errorLogger;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.MDocSeriesAssignmentInsertUpdatePayload = MDocSeriesAssignmentInsertUpdatePayload;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { MTableQueries } from "../../common-types/common";
|
|
2
|
+
import { ICoreDocType } from "../../schema";
|
|
3
|
+
import { controllerResponse } from "../../utilities";
|
|
4
|
+
type IDocTypeErrorLogger = {
|
|
5
|
+
[key in keyof MDocType]: string;
|
|
6
|
+
};
|
|
7
|
+
type IDocTypeInsertUpdateErrorLogger = {
|
|
8
|
+
[key in keyof MDocTypeInsertUpdatePayload]: string;
|
|
9
|
+
};
|
|
10
|
+
type IDocTypeGetByIdErrorLogger = {
|
|
11
|
+
[key in keyof MDocTypeGetByIdPayload]: string;
|
|
12
|
+
};
|
|
13
|
+
type IDocTypeDeleteErrorLogger = {
|
|
14
|
+
[key in keyof MDocTypeDeletePayload]: string;
|
|
15
|
+
};
|
|
16
|
+
type IDocTypeToggleStatusErrorLogger = {
|
|
17
|
+
[key in keyof MDocTypeToggleStatusPayload]: string;
|
|
18
|
+
};
|
|
19
|
+
declare class MDocType extends MTableQueries {
|
|
20
|
+
cdty_code?: string;
|
|
21
|
+
cdty_name?: string;
|
|
22
|
+
cdty_module?: string;
|
|
23
|
+
cdty_is_active?: boolean;
|
|
24
|
+
cdty_entity_id?: string;
|
|
25
|
+
constructor(init: MDocType);
|
|
26
|
+
Validate?(): Partial<IDocTypeErrorLogger>;
|
|
27
|
+
}
|
|
28
|
+
declare class MDocTypeGetByIdPayload {
|
|
29
|
+
cdty_id?: string;
|
|
30
|
+
constructor(init: MDocTypeGetByIdPayload);
|
|
31
|
+
Validate?(): Partial<IDocTypeGetByIdErrorLogger>;
|
|
32
|
+
}
|
|
33
|
+
declare class MDocTypeDeletePayload {
|
|
34
|
+
cdty_id?: string;
|
|
35
|
+
constructor(init: MDocTypeDeletePayload);
|
|
36
|
+
Validate?(): Partial<IDocTypeDeleteErrorLogger>;
|
|
37
|
+
}
|
|
38
|
+
declare class MDocTypeToggleStatusPayload {
|
|
39
|
+
cdty_id?: string;
|
|
40
|
+
constructor(init: MDocTypeToggleStatusPayload);
|
|
41
|
+
Validate?(): Partial<IDocTypeToggleStatusErrorLogger>;
|
|
42
|
+
}
|
|
43
|
+
declare class MDocTypeInsertUpdatePayload implements ICoreDocType {
|
|
44
|
+
_id?: string;
|
|
45
|
+
cdty_code?: string;
|
|
46
|
+
cdty_name?: string;
|
|
47
|
+
cdty_module?: string;
|
|
48
|
+
cdty_description?: string;
|
|
49
|
+
cdty_default_format_template?: string;
|
|
50
|
+
cdty_is_mandatory?: boolean;
|
|
51
|
+
cdty_default_series_id?: string | null;
|
|
52
|
+
cdty_is_active?: boolean;
|
|
53
|
+
cdty_entity_id?: string | null;
|
|
54
|
+
constructor(init: ICoreDocType);
|
|
55
|
+
Validate?(): Partial<IDocTypeInsertUpdateErrorLogger>;
|
|
56
|
+
}
|
|
57
|
+
interface docTypeControllerResponse extends controllerResponse {
|
|
58
|
+
data?: ICoreDocType[];
|
|
59
|
+
}
|
|
60
|
+
interface docTypeByIdControllerResponse extends controllerResponse {
|
|
61
|
+
data?: ICoreDocType;
|
|
62
|
+
}
|
|
63
|
+
interface docTypeInsertUpdateControllerResponse extends controllerResponse {
|
|
64
|
+
data?: ICoreDocType;
|
|
65
|
+
}
|
|
66
|
+
interface docTypeDeleteControllerResponse extends controllerResponse {
|
|
67
|
+
data?: boolean;
|
|
68
|
+
}
|
|
69
|
+
interface docTypeToggleStatusControllerResponse extends controllerResponse {
|
|
70
|
+
data?: boolean;
|
|
71
|
+
}
|
|
72
|
+
export { IDocTypeErrorLogger, IDocTypeInsertUpdateErrorLogger, IDocTypeGetByIdErrorLogger, IDocTypeDeleteErrorLogger, IDocTypeToggleStatusErrorLogger, MDocType, MDocTypeGetByIdPayload, MDocTypeDeletePayload, MDocTypeToggleStatusPayload, MDocTypeInsertUpdatePayload, docTypeControllerResponse, docTypeByIdControllerResponse, docTypeInsertUpdateControllerResponse, docTypeDeleteControllerResponse, docTypeToggleStatusControllerResponse, };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MDocTypeInsertUpdatePayload = exports.MDocTypeToggleStatusPayload = exports.MDocTypeDeletePayload = exports.MDocTypeGetByIdPayload = exports.MDocType = void 0;
|
|
4
|
+
const common_1 = require("../../common-types/common");
|
|
5
|
+
/* INTERFACE END */
|
|
6
|
+
/* MODEL START */
|
|
7
|
+
class MDocType extends common_1.MTableQueries {
|
|
8
|
+
constructor(init) {
|
|
9
|
+
super(init);
|
|
10
|
+
Object.assign(this, init);
|
|
11
|
+
}
|
|
12
|
+
Validate() {
|
|
13
|
+
let errorLogger = {};
|
|
14
|
+
return errorLogger;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.MDocType = MDocType;
|
|
18
|
+
class MDocTypeGetByIdPayload {
|
|
19
|
+
constructor(init) {
|
|
20
|
+
Object.assign(this, init);
|
|
21
|
+
}
|
|
22
|
+
Validate() {
|
|
23
|
+
let errorLogger = {};
|
|
24
|
+
if (!this.cdty_id) {
|
|
25
|
+
errorLogger.cdty_id = "Document Type ID is Required!";
|
|
26
|
+
}
|
|
27
|
+
return errorLogger;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.MDocTypeGetByIdPayload = MDocTypeGetByIdPayload;
|
|
31
|
+
class MDocTypeDeletePayload {
|
|
32
|
+
constructor(init) {
|
|
33
|
+
Object.assign(this, init);
|
|
34
|
+
}
|
|
35
|
+
Validate() {
|
|
36
|
+
let errorLogger = {};
|
|
37
|
+
if (!this.cdty_id) {
|
|
38
|
+
errorLogger.cdty_id = "Document Type ID is Required!";
|
|
39
|
+
}
|
|
40
|
+
return errorLogger;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.MDocTypeDeletePayload = MDocTypeDeletePayload;
|
|
44
|
+
class MDocTypeToggleStatusPayload {
|
|
45
|
+
constructor(init) {
|
|
46
|
+
Object.assign(this, init);
|
|
47
|
+
}
|
|
48
|
+
Validate() {
|
|
49
|
+
let errorLogger = {};
|
|
50
|
+
if (!this.cdty_id) {
|
|
51
|
+
errorLogger.cdty_id = "Document Type ID is Required!";
|
|
52
|
+
}
|
|
53
|
+
return errorLogger;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.MDocTypeToggleStatusPayload = MDocTypeToggleStatusPayload;
|
|
57
|
+
class MDocTypeInsertUpdatePayload {
|
|
58
|
+
constructor(init) {
|
|
59
|
+
Object.assign(this, init);
|
|
60
|
+
}
|
|
61
|
+
Validate() {
|
|
62
|
+
let errorLogger = {};
|
|
63
|
+
if (!this.cdty_code) {
|
|
64
|
+
errorLogger.cdty_code = "Document Type code is required!";
|
|
65
|
+
}
|
|
66
|
+
if (!this.cdty_name) {
|
|
67
|
+
errorLogger.cdty_name = "Document Type name is required!";
|
|
68
|
+
}
|
|
69
|
+
if (!this.cdty_module) {
|
|
70
|
+
errorLogger.cdty_module = "Module is required!";
|
|
71
|
+
}
|
|
72
|
+
return errorLogger;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.MDocTypeInsertUpdatePayload = MDocTypeInsertUpdatePayload;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { MTableQueries } from "../../common-types/common";
|
|
2
|
+
import { ICoreSyco } from "../../schema";
|
|
3
|
+
import { controllerResponse } from "../../utilities";
|
|
4
|
+
type ISystemConfigErrorLogger = {
|
|
5
|
+
[key in keyof MSystemConfig]: string;
|
|
6
|
+
};
|
|
7
|
+
declare class MSystemConfig extends MTableQueries {
|
|
8
|
+
syco_for?: string;
|
|
9
|
+
constructor(init: MSystemConfig);
|
|
10
|
+
Validate?(): Partial<ISystemConfigErrorLogger>;
|
|
11
|
+
}
|
|
12
|
+
declare class MSystemConfigGetByIdPayload {
|
|
13
|
+
syco_id?: string;
|
|
14
|
+
constructor(init: MSystemConfigGetByIdPayload);
|
|
15
|
+
Validate?(): Partial<Record<keyof MSystemConfigGetByIdPayload, string>>;
|
|
16
|
+
}
|
|
17
|
+
declare class MSystemConfigUpdateEntityTypesPayload {
|
|
18
|
+
syco_id?: string;
|
|
19
|
+
syco_entity_type_applicable_sygms?: string[];
|
|
20
|
+
constructor(init: MSystemConfigUpdateEntityTypesPayload);
|
|
21
|
+
Validate?(): Partial<Record<keyof MSystemConfigUpdateEntityTypesPayload, string>>;
|
|
22
|
+
}
|
|
23
|
+
interface systemConfigListControllerResponse extends controllerResponse {
|
|
24
|
+
data?: ICoreSyco[];
|
|
25
|
+
}
|
|
26
|
+
interface systemConfigByIdControllerResponse extends controllerResponse {
|
|
27
|
+
data?: ICoreSyco;
|
|
28
|
+
}
|
|
29
|
+
interface systemConfigUpdateEntityTypesControllerResponse extends controllerResponse {
|
|
30
|
+
data?: ICoreSyco;
|
|
31
|
+
}
|
|
32
|
+
export { ISystemConfigErrorLogger, MSystemConfig, MSystemConfigGetByIdPayload, MSystemConfigUpdateEntityTypesPayload, systemConfigListControllerResponse, systemConfigByIdControllerResponse, systemConfigUpdateEntityTypesControllerResponse };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MSystemConfigUpdateEntityTypesPayload = exports.MSystemConfigGetByIdPayload = exports.MSystemConfig = void 0;
|
|
4
|
+
const common_1 = require("../../common-types/common");
|
|
5
|
+
/* INTERFACE END */
|
|
6
|
+
/* MODEL START */
|
|
7
|
+
class MSystemConfig extends common_1.MTableQueries {
|
|
8
|
+
constructor(init) {
|
|
9
|
+
super(init);
|
|
10
|
+
Object.assign(this, init);
|
|
11
|
+
}
|
|
12
|
+
Validate() {
|
|
13
|
+
let errorLogger = {};
|
|
14
|
+
return errorLogger;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.MSystemConfig = MSystemConfig;
|
|
18
|
+
class MSystemConfigGetByIdPayload {
|
|
19
|
+
constructor(init) {
|
|
20
|
+
Object.assign(this, init);
|
|
21
|
+
}
|
|
22
|
+
Validate() {
|
|
23
|
+
let errorLogger = {};
|
|
24
|
+
if (!this.syco_id) {
|
|
25
|
+
errorLogger.syco_id = "System config ID is Required!";
|
|
26
|
+
}
|
|
27
|
+
return errorLogger;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.MSystemConfigGetByIdPayload = MSystemConfigGetByIdPayload;
|
|
31
|
+
class MSystemConfigUpdateEntityTypesPayload {
|
|
32
|
+
constructor(init) {
|
|
33
|
+
Object.assign(this, init);
|
|
34
|
+
}
|
|
35
|
+
Validate() {
|
|
36
|
+
let errorLogger = {};
|
|
37
|
+
if (!this.syco_id) {
|
|
38
|
+
errorLogger.syco_id = "System config ID is Required!";
|
|
39
|
+
}
|
|
40
|
+
return errorLogger;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.MSystemConfigUpdateEntityTypesPayload = MSystemConfigUpdateEntityTypesPayload;
|
|
@@ -8,6 +8,7 @@ export * from "./financial_config";
|
|
|
8
8
|
export * from "./core_api_endpoint_master";
|
|
9
9
|
export * from "./core_general_master";
|
|
10
10
|
export * from "./core_system_menu";
|
|
11
|
+
export * from "./core_system_config";
|
|
11
12
|
export * from "./core_pin_code";
|
|
12
13
|
export * from "./core_entity_access_pass_management";
|
|
13
14
|
export * from "./core_system_themes";
|
|
@@ -28,3 +29,6 @@ export * from './core_workflow_config';
|
|
|
28
29
|
export * from './core_workflow_engine';
|
|
29
30
|
export * from './core_workflow_transaction_history';
|
|
30
31
|
export * from './core_ai';
|
|
32
|
+
export * from './core_doc_type';
|
|
33
|
+
export * from './core_doc_series';
|
|
34
|
+
export * from './core_doc_series_assignment';
|
package/lib/model/core/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __exportStar(require("./financial_config"), exports);
|
|
|
24
24
|
__exportStar(require("./core_api_endpoint_master"), exports);
|
|
25
25
|
__exportStar(require("./core_general_master"), exports);
|
|
26
26
|
__exportStar(require("./core_system_menu"), exports);
|
|
27
|
+
__exportStar(require("./core_system_config"), exports);
|
|
27
28
|
__exportStar(require("./core_pin_code"), exports);
|
|
28
29
|
__exportStar(require("./core_entity_access_pass_management"), exports);
|
|
29
30
|
__exportStar(require("./core_system_themes"), exports);
|
|
@@ -44,3 +45,6 @@ __exportStar(require("./core_workflow_config"), exports);
|
|
|
44
45
|
__exportStar(require("./core_workflow_engine"), exports);
|
|
45
46
|
__exportStar(require("./core_workflow_transaction_history"), exports);
|
|
46
47
|
__exportStar(require("./core_ai"), exports);
|
|
48
|
+
__exportStar(require("./core_doc_type"), exports);
|
|
49
|
+
__exportStar(require("./core_doc_series"), exports);
|
|
50
|
+
__exportStar(require("./core_doc_series_assignment"), exports);
|
|
@@ -49,6 +49,10 @@ declare const coreRoutesUrl: {
|
|
|
49
49
|
* @description Endpoint to manage financial configuration (financial-config)
|
|
50
50
|
*/
|
|
51
51
|
financialConfig: string;
|
|
52
|
+
/**
|
|
53
|
+
* @description Endpoint to manage system configuration (system-config)
|
|
54
|
+
*/
|
|
55
|
+
systemConfig: string;
|
|
52
56
|
/**
|
|
53
57
|
* @description Endpoint to get the country (country)
|
|
54
58
|
*/
|
|
@@ -145,5 +149,25 @@ declare const coreRoutesUrl: {
|
|
|
145
149
|
* @description Endpoint to manage API endpoint master (api-endpoint-master)
|
|
146
150
|
*/
|
|
147
151
|
apiEndpointMaster: string;
|
|
152
|
+
/**
|
|
153
|
+
* @description Endpoint to manage document type registry (doc-type)
|
|
154
|
+
*/
|
|
155
|
+
docType: string;
|
|
156
|
+
/**
|
|
157
|
+
* @description Endpoint to manage document series master (doc-series)
|
|
158
|
+
*/
|
|
159
|
+
docSeries: string;
|
|
160
|
+
/**
|
|
161
|
+
* @description Endpoint to manage document series assignments (doc-series-assignment)
|
|
162
|
+
*/
|
|
163
|
+
docSeriesAssignment: string;
|
|
164
|
+
/**
|
|
165
|
+
* @description Endpoint to get selectable series for a doc type (doc-series-assignment/selectable)
|
|
166
|
+
*/
|
|
167
|
+
docSeriesSelectable: string;
|
|
168
|
+
/**
|
|
169
|
+
* @description Endpoint to preview next document number (doc-series/preview)
|
|
170
|
+
*/
|
|
171
|
+
docSeriesPreview: string;
|
|
148
172
|
};
|
|
149
173
|
export { coreRoutesUrl };
|