cloud-ide-lms-model 1.0.193 → 1.0.195
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_general_master.d.ts +53 -0
- package/lib/model/core/core_general_master.js +71 -0
- package/lib/model/core/core_general_master_type.d.ts +52 -0
- package/lib/model/core/core_general_master_type.js +67 -0
- package/lib/model/core/general-master.d.ts +15 -0
- package/lib/model/core/general-master.js +43 -1
- package/lib/model/core/index.d.ts +2 -1
- package/lib/model/core/index.js +2 -1
- package/lib/schema/core/core_general_master.d.ts +10 -8
- package/lib/schema/core/core_general_master.js +5 -0
- package/lib/schema/core/core_general_master_type.d.ts +8 -8
- package/lib/schema/core/core_general_master_type.js +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ICoreSygms } from "../../schema";
|
|
2
|
+
import { controllerResponse } from "../../utilities";
|
|
3
|
+
export declare class MGeneralMasterDeletePayload {
|
|
4
|
+
sygms_id: string;
|
|
5
|
+
constructor(init: MGeneralMasterDeletePayload);
|
|
6
|
+
Validate?(): Partial<Record<keyof MGeneralMasterDeletePayload, string>>;
|
|
7
|
+
}
|
|
8
|
+
export declare class MGeneralMasterGetByIdPayload {
|
|
9
|
+
sygms_id: string;
|
|
10
|
+
constructor(init: MGeneralMasterGetByIdPayload);
|
|
11
|
+
Validate?(): Partial<Record<keyof MGeneralMasterGetByIdPayload, string>>;
|
|
12
|
+
}
|
|
13
|
+
export declare class MGeneralMasterToggleStatusPayload {
|
|
14
|
+
sygms_id: string;
|
|
15
|
+
constructor(init: MGeneralMasterToggleStatusPayload);
|
|
16
|
+
Validate?(): Partial<Record<keyof MGeneralMasterToggleStatusPayload, string>>;
|
|
17
|
+
}
|
|
18
|
+
export interface IGeneralMasterListRequest {
|
|
19
|
+
type_id?: string;
|
|
20
|
+
entity_id?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IGeneralMasterListResponse {
|
|
23
|
+
success: boolean;
|
|
24
|
+
message: string;
|
|
25
|
+
data: ICoreSygms[];
|
|
26
|
+
total: number;
|
|
27
|
+
pageIndex: number;
|
|
28
|
+
pageSize: number;
|
|
29
|
+
}
|
|
30
|
+
export declare class MGeneralMaster extends ICoreSygms {
|
|
31
|
+
constructor(init: Partial<MGeneralMaster>);
|
|
32
|
+
Validate?(): Partial<Record<keyof MGeneralMaster, string>>;
|
|
33
|
+
}
|
|
34
|
+
export interface generalMasterByIdControllerResponse extends controllerResponse {
|
|
35
|
+
data?: ICoreSygms;
|
|
36
|
+
}
|
|
37
|
+
export interface generalMasterInsertUpdateControllerResponse extends controllerResponse {
|
|
38
|
+
data?: ICoreSygms;
|
|
39
|
+
}
|
|
40
|
+
export interface generalMasterDeleteControllerResponse extends controllerResponse {
|
|
41
|
+
data?: {
|
|
42
|
+
deleted: boolean;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export interface generalMasterToggleStatusControllerResponse extends controllerResponse {
|
|
46
|
+
data?: ICoreSygms;
|
|
47
|
+
}
|
|
48
|
+
export interface generalMasterListControllerResponse extends controllerResponse {
|
|
49
|
+
data?: ICoreSygms[];
|
|
50
|
+
total?: number;
|
|
51
|
+
pageIndex?: number;
|
|
52
|
+
pageSize?: number;
|
|
53
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MGeneralMaster = exports.MGeneralMasterToggleStatusPayload = exports.MGeneralMasterGetByIdPayload = exports.MGeneralMasterDeletePayload = void 0;
|
|
4
|
+
const schema_1 = require("../../schema");
|
|
5
|
+
/* ===== GENERAL MASTER INTERFACES ===== */
|
|
6
|
+
class MGeneralMasterDeletePayload {
|
|
7
|
+
constructor(init) {
|
|
8
|
+
this.sygms_id = "";
|
|
9
|
+
Object.assign(this, init);
|
|
10
|
+
}
|
|
11
|
+
Validate() {
|
|
12
|
+
let errorLogger = {};
|
|
13
|
+
if (!this.sygms_id) {
|
|
14
|
+
errorLogger.sygms_id = "General master id is required";
|
|
15
|
+
}
|
|
16
|
+
return errorLogger;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.MGeneralMasterDeletePayload = MGeneralMasterDeletePayload;
|
|
20
|
+
class MGeneralMasterGetByIdPayload {
|
|
21
|
+
constructor(init) {
|
|
22
|
+
this.sygms_id = "";
|
|
23
|
+
Object.assign(this, init);
|
|
24
|
+
}
|
|
25
|
+
Validate() {
|
|
26
|
+
let errorLogger = {};
|
|
27
|
+
if (!this.sygms_id) {
|
|
28
|
+
errorLogger.sygms_id = "General master id is required";
|
|
29
|
+
}
|
|
30
|
+
return errorLogger;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.MGeneralMasterGetByIdPayload = MGeneralMasterGetByIdPayload;
|
|
34
|
+
class MGeneralMasterToggleStatusPayload {
|
|
35
|
+
constructor(init) {
|
|
36
|
+
this.sygms_id = "";
|
|
37
|
+
Object.assign(this, init);
|
|
38
|
+
}
|
|
39
|
+
Validate() {
|
|
40
|
+
let errorLogger = {};
|
|
41
|
+
if (!this.sygms_id) {
|
|
42
|
+
errorLogger.sygms_id = "General master id is required";
|
|
43
|
+
}
|
|
44
|
+
return errorLogger;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.MGeneralMasterToggleStatusPayload = MGeneralMasterToggleStatusPayload;
|
|
48
|
+
// Model class for General Master operations
|
|
49
|
+
class MGeneralMaster extends schema_1.ICoreSygms {
|
|
50
|
+
constructor(init) {
|
|
51
|
+
super();
|
|
52
|
+
Object.assign(this, init);
|
|
53
|
+
}
|
|
54
|
+
Validate() {
|
|
55
|
+
let errorLogger = {};
|
|
56
|
+
if (!this.sygms_code) {
|
|
57
|
+
errorLogger.sygms_code = "Master code is required";
|
|
58
|
+
}
|
|
59
|
+
if (!this.sygms_id_sygmt) {
|
|
60
|
+
errorLogger.sygms_id_sygmt = "Master type is required";
|
|
61
|
+
}
|
|
62
|
+
if (!this.sygms_title) {
|
|
63
|
+
errorLogger.sygms_title = "Master title is required";
|
|
64
|
+
}
|
|
65
|
+
if (!this.sygms_desc) {
|
|
66
|
+
errorLogger.sygms_desc = "Master description is required";
|
|
67
|
+
}
|
|
68
|
+
return errorLogger;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.MGeneralMaster = MGeneralMaster;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { MTableQueries } from "../../common-types";
|
|
2
|
+
import { ICoreSygmt } from "../../schema";
|
|
3
|
+
import { controllerResponse } from "../../utilities";
|
|
4
|
+
export interface IGeneralMasterTypeListRequest extends MTableQueries {
|
|
5
|
+
}
|
|
6
|
+
export interface IGeneralMasterTypeListResponse {
|
|
7
|
+
success: boolean;
|
|
8
|
+
message: string;
|
|
9
|
+
data: ICoreSygmt[];
|
|
10
|
+
total: number;
|
|
11
|
+
pageIndex: number;
|
|
12
|
+
pageSize: number;
|
|
13
|
+
}
|
|
14
|
+
export declare class MGeneralMasterType extends ICoreSygmt {
|
|
15
|
+
constructor(init: Partial<MGeneralMasterType>);
|
|
16
|
+
Validate?(): Partial<Record<keyof MGeneralMasterType, string>>;
|
|
17
|
+
}
|
|
18
|
+
export declare class MGeneralMasterTypeDeletePayload {
|
|
19
|
+
sygmt_id: string;
|
|
20
|
+
constructor(init: MGeneralMasterTypeDeletePayload);
|
|
21
|
+
Validate?(): Partial<Record<keyof MGeneralMasterTypeDeletePayload, string>>;
|
|
22
|
+
}
|
|
23
|
+
export declare class MGeneralMasterTypeGetByIdPayload {
|
|
24
|
+
sygmt_id: string;
|
|
25
|
+
constructor(init: MGeneralMasterTypeGetByIdPayload);
|
|
26
|
+
Validate?(): Partial<Record<keyof MGeneralMasterTypeGetByIdPayload, string>>;
|
|
27
|
+
}
|
|
28
|
+
export interface generalMasterTypeByIdControllerResponse extends controllerResponse {
|
|
29
|
+
data?: ICoreSygmt;
|
|
30
|
+
}
|
|
31
|
+
export interface generalMasterTypeInsertUpdateControllerResponse extends controllerResponse {
|
|
32
|
+
data?: ICoreSygmt;
|
|
33
|
+
}
|
|
34
|
+
export interface generalMasterTypeDeleteControllerResponse extends controllerResponse {
|
|
35
|
+
data?: {
|
|
36
|
+
deleted: boolean;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export interface generalMasterTypeToggleStatusControllerResponse extends controllerResponse {
|
|
40
|
+
data?: ICoreSygmt;
|
|
41
|
+
}
|
|
42
|
+
export interface generalMasterTypeListControllerResponse extends controllerResponse {
|
|
43
|
+
data?: ICoreSygmt[];
|
|
44
|
+
total?: number;
|
|
45
|
+
pageIndex?: number;
|
|
46
|
+
pageSize?: number;
|
|
47
|
+
}
|
|
48
|
+
export declare class MGeneralMasterTypeToggleStatusPayload {
|
|
49
|
+
sygmt_id: string;
|
|
50
|
+
constructor(init: MGeneralMasterTypeToggleStatusPayload);
|
|
51
|
+
Validate?(): Partial<Record<keyof MGeneralMasterTypeToggleStatusPayload, string>>;
|
|
52
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MGeneralMasterTypeToggleStatusPayload = exports.MGeneralMasterTypeGetByIdPayload = exports.MGeneralMasterTypeDeletePayload = exports.MGeneralMasterType = void 0;
|
|
4
|
+
const schema_1 = require("../../schema");
|
|
5
|
+
// Model class for General Master Type operations
|
|
6
|
+
class MGeneralMasterType extends schema_1.ICoreSygmt {
|
|
7
|
+
constructor(init) {
|
|
8
|
+
super();
|
|
9
|
+
Object.assign(this, init);
|
|
10
|
+
}
|
|
11
|
+
Validate() {
|
|
12
|
+
let errorLogger = {};
|
|
13
|
+
if (!this.sygmt_code) {
|
|
14
|
+
errorLogger.sygmt_code = "Type code is required";
|
|
15
|
+
}
|
|
16
|
+
if (!this.sygmt_title) {
|
|
17
|
+
errorLogger.sygmt_title = "Type title is required";
|
|
18
|
+
}
|
|
19
|
+
if (!this.sygmt_desc) {
|
|
20
|
+
errorLogger.sygmt_desc = "Type description is required";
|
|
21
|
+
}
|
|
22
|
+
return errorLogger;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.MGeneralMasterType = MGeneralMasterType;
|
|
26
|
+
class MGeneralMasterTypeDeletePayload {
|
|
27
|
+
constructor(init) {
|
|
28
|
+
this.sygmt_id = "";
|
|
29
|
+
Object.assign(this, init);
|
|
30
|
+
}
|
|
31
|
+
Validate() {
|
|
32
|
+
let errorLogger = {};
|
|
33
|
+
if (!this.sygmt_id) {
|
|
34
|
+
errorLogger.sygmt_id = "General master type id is required";
|
|
35
|
+
}
|
|
36
|
+
return errorLogger;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.MGeneralMasterTypeDeletePayload = MGeneralMasterTypeDeletePayload;
|
|
40
|
+
class MGeneralMasterTypeGetByIdPayload {
|
|
41
|
+
constructor(init) {
|
|
42
|
+
this.sygmt_id = "";
|
|
43
|
+
Object.assign(this, init);
|
|
44
|
+
}
|
|
45
|
+
Validate() {
|
|
46
|
+
let errorLogger = {};
|
|
47
|
+
if (!this.sygmt_id) {
|
|
48
|
+
errorLogger.sygmt_id = "General master type id is required";
|
|
49
|
+
}
|
|
50
|
+
return errorLogger;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.MGeneralMasterTypeGetByIdPayload = MGeneralMasterTypeGetByIdPayload;
|
|
54
|
+
class MGeneralMasterTypeToggleStatusPayload {
|
|
55
|
+
constructor(init) {
|
|
56
|
+
this.sygmt_id = "";
|
|
57
|
+
Object.assign(this, init);
|
|
58
|
+
}
|
|
59
|
+
Validate() {
|
|
60
|
+
let errorLogger = {};
|
|
61
|
+
if (!this.sygmt_id) {
|
|
62
|
+
errorLogger.sygmt_id = "General master type id is required";
|
|
63
|
+
}
|
|
64
|
+
return errorLogger;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.MGeneralMasterTypeToggleStatusPayload = MGeneralMasterTypeToggleStatusPayload;
|
|
@@ -68,6 +68,21 @@ export interface IGeneralMasterCreateUpdatePayload {
|
|
|
68
68
|
sygms_configuration: Record<string, any>;
|
|
69
69
|
sygms_entity_id_syen?: string;
|
|
70
70
|
}
|
|
71
|
+
export declare class MGeneralMasterDeletePayload {
|
|
72
|
+
sygms_id: string;
|
|
73
|
+
constructor(init: MGeneralMasterDeletePayload);
|
|
74
|
+
Validate?(): Partial<Record<keyof MGeneralMasterDeletePayload, string>>;
|
|
75
|
+
}
|
|
76
|
+
export declare class MGeneralMasterGetByIdPayload {
|
|
77
|
+
sygms_id: string;
|
|
78
|
+
constructor(init: MGeneralMasterGetByIdPayload);
|
|
79
|
+
Validate?(): Partial<Record<keyof MGeneralMasterGetByIdPayload, string>>;
|
|
80
|
+
}
|
|
81
|
+
export declare class MGeneralMasterToggleStatusPayload {
|
|
82
|
+
sygms_id: string;
|
|
83
|
+
constructor(init: MGeneralMasterToggleStatusPayload);
|
|
84
|
+
Validate?(): Partial<Record<keyof MGeneralMasterToggleStatusPayload, string>>;
|
|
85
|
+
}
|
|
71
86
|
export interface IGeneralMasterListRequest {
|
|
72
87
|
pageIndex: number;
|
|
73
88
|
pageSize: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MGeneralMasterSelect = exports.MGeneralMasterTypeToggleStatusPayload = exports.MGeneralMasterTypeGetByIdPayload = exports.MGeneralMaster = exports.MGeneralMasterTypeDeletePayload = exports.MGeneralMasterType = void 0;
|
|
3
|
+
exports.MGeneralMasterSelect = exports.MGeneralMasterTypeToggleStatusPayload = exports.MGeneralMasterTypeGetByIdPayload = exports.MGeneralMaster = exports.MGeneralMasterToggleStatusPayload = exports.MGeneralMasterGetByIdPayload = exports.MGeneralMasterDeletePayload = exports.MGeneralMasterTypeDeletePayload = exports.MGeneralMasterType = void 0;
|
|
4
4
|
// Model class for General Master Type operations
|
|
5
5
|
class MGeneralMasterType {
|
|
6
6
|
constructor(init) {
|
|
@@ -35,6 +35,48 @@ class MGeneralMasterTypeDeletePayload {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
exports.MGeneralMasterTypeDeletePayload = MGeneralMasterTypeDeletePayload;
|
|
38
|
+
class MGeneralMasterDeletePayload {
|
|
39
|
+
constructor(init) {
|
|
40
|
+
this.sygms_id = "";
|
|
41
|
+
Object.assign(this, init);
|
|
42
|
+
}
|
|
43
|
+
Validate() {
|
|
44
|
+
let errorLogger = {};
|
|
45
|
+
if (!this.sygms_id) {
|
|
46
|
+
errorLogger.sygms_id = "General master id is required";
|
|
47
|
+
}
|
|
48
|
+
return errorLogger;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.MGeneralMasterDeletePayload = MGeneralMasterDeletePayload;
|
|
52
|
+
class MGeneralMasterGetByIdPayload {
|
|
53
|
+
constructor(init) {
|
|
54
|
+
this.sygms_id = "";
|
|
55
|
+
Object.assign(this, init);
|
|
56
|
+
}
|
|
57
|
+
Validate() {
|
|
58
|
+
let errorLogger = {};
|
|
59
|
+
if (!this.sygms_id) {
|
|
60
|
+
errorLogger.sygms_id = "General master id is required";
|
|
61
|
+
}
|
|
62
|
+
return errorLogger;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.MGeneralMasterGetByIdPayload = MGeneralMasterGetByIdPayload;
|
|
66
|
+
class MGeneralMasterToggleStatusPayload {
|
|
67
|
+
constructor(init) {
|
|
68
|
+
this.sygms_id = "";
|
|
69
|
+
Object.assign(this, init);
|
|
70
|
+
}
|
|
71
|
+
Validate() {
|
|
72
|
+
let errorLogger = {};
|
|
73
|
+
if (!this.sygms_id) {
|
|
74
|
+
errorLogger.sygms_id = "General master id is required";
|
|
75
|
+
}
|
|
76
|
+
return errorLogger;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.MGeneralMasterToggleStatusPayload = MGeneralMasterToggleStatusPayload;
|
|
38
80
|
// Model class for General Master operations
|
|
39
81
|
class MGeneralMaster {
|
|
40
82
|
constructor(init) {
|
|
@@ -4,7 +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 "./
|
|
7
|
+
export * from "./core_general_master";
|
|
8
8
|
export * from "./core_system_menu";
|
|
9
9
|
export * from "./core_pin_code";
|
|
10
10
|
export * from "./user";
|
|
@@ -16,3 +16,4 @@ export * from "./core_department";
|
|
|
16
16
|
export * from "./core_designation";
|
|
17
17
|
export * from "./core_designation_grade_level";
|
|
18
18
|
export * from "./core_system_pages";
|
|
19
|
+
export * from "./core_general_master_type";
|
package/lib/model/core/index.js
CHANGED
|
@@ -20,7 +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("./
|
|
23
|
+
__exportStar(require("./core_general_master"), exports);
|
|
24
24
|
__exportStar(require("./core_system_menu"), exports);
|
|
25
25
|
__exportStar(require("./core_pin_code"), exports);
|
|
26
26
|
__exportStar(require("./user"), exports);
|
|
@@ -32,3 +32,4 @@ __exportStar(require("./core_department"), exports);
|
|
|
32
32
|
__exportStar(require("./core_designation"), exports);
|
|
33
33
|
__exportStar(require("./core_designation_grade_level"), exports);
|
|
34
34
|
__exportStar(require("./core_system_pages"), exports);
|
|
35
|
+
__exportStar(require("./core_general_master_type"), exports);
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
_id
|
|
3
|
-
sygms_id_sygmt
|
|
4
|
-
sygms_code
|
|
5
|
-
sygms_title
|
|
6
|
-
sygms_desc
|
|
7
|
-
sygms_isactive
|
|
8
|
-
sygms_configuration
|
|
1
|
+
declare class ICoreSygms {
|
|
2
|
+
_id?: string;
|
|
3
|
+
sygms_id_sygmt?: string;
|
|
4
|
+
sygms_code?: string;
|
|
5
|
+
sygms_title?: string;
|
|
6
|
+
sygms_desc?: string;
|
|
7
|
+
sygms_isactive?: boolean;
|
|
8
|
+
sygms_configuration?: object;
|
|
9
|
+
sygms_id_sygms?: string;
|
|
10
|
+
sygms_entity_id_syen?: string;
|
|
9
11
|
}
|
|
10
12
|
export { ICoreSygms };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
_id
|
|
3
|
-
sygmt_code
|
|
4
|
-
sygmt_title
|
|
5
|
-
sygmt_desc
|
|
6
|
-
sygmt_isactive
|
|
7
|
-
sygmt_configuration
|
|
8
|
-
sygmt_id_sygmt
|
|
1
|
+
declare class ICoreSygmt {
|
|
2
|
+
_id?: string;
|
|
3
|
+
sygmt_code?: string;
|
|
4
|
+
sygmt_title?: string;
|
|
5
|
+
sygmt_desc?: string;
|
|
6
|
+
sygmt_isactive?: boolean;
|
|
7
|
+
sygmt_configuration?: object;
|
|
8
|
+
sygmt_id_sygmt?: string;
|
|
9
9
|
}
|
|
10
10
|
export { ICoreSygmt };
|