cloud-ide-lms-model 1.0.189 → 1.0.191
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.
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import { CommonSelect } from "../../common-types";
|
|
2
|
+
import { ICoreSygmt } from "../../schema";
|
|
2
3
|
import { controllerResponse } from "../../utilities";
|
|
3
|
-
export interface ICoreGeneralMasterType {
|
|
4
|
-
_id: string;
|
|
5
|
-
sygmt_code: string;
|
|
6
|
-
sygmt_title: string;
|
|
7
|
-
sygmt_desc: string;
|
|
8
|
-
sygmt_isactive: boolean;
|
|
9
|
-
sygmt_configuration: Record<string, any>;
|
|
10
|
-
sygmt_id_sygmt?: string;
|
|
11
|
-
created_at?: string;
|
|
12
|
-
updated_at?: string;
|
|
13
|
-
}
|
|
14
4
|
export interface IGeneralMasterTypeCreateUpdatePayload {
|
|
15
5
|
_id?: string;
|
|
16
6
|
sygmt_code: string;
|
|
@@ -29,7 +19,7 @@ export interface IGeneralMasterTypeListRequest {
|
|
|
29
19
|
export interface IGeneralMasterTypeListResponse {
|
|
30
20
|
success: boolean;
|
|
31
21
|
message: string;
|
|
32
|
-
data:
|
|
22
|
+
data: ICoreSygmt[];
|
|
33
23
|
total: number;
|
|
34
24
|
pageIndex: number;
|
|
35
25
|
pageSize: number;
|
|
@@ -44,6 +34,11 @@ export declare class MGeneralMasterType {
|
|
|
44
34
|
constructor(init: Partial<MGeneralMasterType>);
|
|
45
35
|
Validate?(): Partial<Record<keyof MGeneralMasterType, string>>;
|
|
46
36
|
}
|
|
37
|
+
export declare class MGeneralMasterTypeDeletePayload {
|
|
38
|
+
sygmt_id: string;
|
|
39
|
+
constructor(init: MGeneralMasterTypeDeletePayload);
|
|
40
|
+
Validate?(): Partial<Record<keyof MGeneralMasterTypeDeletePayload, string>>;
|
|
41
|
+
}
|
|
47
42
|
export interface ICoreGeneralMaster {
|
|
48
43
|
_id: string;
|
|
49
44
|
sygms_code: string;
|
|
@@ -132,10 +127,10 @@ interface generalMasterTypeResponseData {
|
|
|
132
127
|
sygmt_isactive: boolean;
|
|
133
128
|
}
|
|
134
129
|
export interface generalMasterTypeByIdControllerResponse extends controllerResponse {
|
|
135
|
-
data?:
|
|
130
|
+
data?: ICoreSygmt;
|
|
136
131
|
}
|
|
137
132
|
export interface generalMasterTypeInsertUpdateControllerResponse extends controllerResponse {
|
|
138
|
-
data?:
|
|
133
|
+
data?: ICoreSygmt;
|
|
139
134
|
}
|
|
140
135
|
export interface generalMasterTypeDeleteControllerResponse extends controllerResponse {
|
|
141
136
|
data?: {
|
|
@@ -143,10 +138,10 @@ export interface generalMasterTypeDeleteControllerResponse extends controllerRes
|
|
|
143
138
|
};
|
|
144
139
|
}
|
|
145
140
|
export interface generalMasterTypeToggleStatusControllerResponse extends controllerResponse {
|
|
146
|
-
data?:
|
|
141
|
+
data?: ICoreSygmt;
|
|
147
142
|
}
|
|
148
143
|
export interface generalMasterTypeListControllerResponse extends controllerResponse {
|
|
149
|
-
data?:
|
|
144
|
+
data?: ICoreSygmt[];
|
|
150
145
|
total?: number;
|
|
151
146
|
pageIndex?: number;
|
|
152
147
|
pageSize?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MGeneralMasterSelect = exports.MGeneralMaster = exports.MGeneralMasterType = void 0;
|
|
3
|
+
exports.MGeneralMasterSelect = exports.MGeneralMaster = exports.MGeneralMasterTypeDeletePayload = exports.MGeneralMasterType = void 0;
|
|
4
4
|
// Model class for General Master Type operations
|
|
5
5
|
class MGeneralMasterType {
|
|
6
6
|
constructor(init) {
|
|
@@ -21,6 +21,20 @@ class MGeneralMasterType {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
exports.MGeneralMasterType = MGeneralMasterType;
|
|
24
|
+
class MGeneralMasterTypeDeletePayload {
|
|
25
|
+
constructor(init) {
|
|
26
|
+
this.sygmt_id = "";
|
|
27
|
+
Object.assign(this, init);
|
|
28
|
+
}
|
|
29
|
+
Validate() {
|
|
30
|
+
let errorLogger = {};
|
|
31
|
+
if (!this.sygmt_id) {
|
|
32
|
+
errorLogger.sygmt_id = "General master type id is required";
|
|
33
|
+
}
|
|
34
|
+
return errorLogger;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.MGeneralMasterTypeDeletePayload = MGeneralMasterTypeDeletePayload;
|
|
24
38
|
// Model class for General Master operations
|
|
25
39
|
class MGeneralMaster {
|
|
26
40
|
constructor(init) {
|