cloud-ide-lms-model 1.0.261 → 1.0.263
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.
|
@@ -13,6 +13,9 @@ type IDesignationDeleteErrorLogger = {
|
|
|
13
13
|
type IDesignationInsertUpdateErrorLogger = {
|
|
14
14
|
[key in keyof MDesignationInsertUpdatePayload]: string;
|
|
15
15
|
};
|
|
16
|
+
type IDesignationToggleStatusErrorLogger = {
|
|
17
|
+
[key in keyof MDesignationToggleStatusPayload]: string;
|
|
18
|
+
};
|
|
16
19
|
declare class MDesignation extends MTableQueries {
|
|
17
20
|
sydsg_name?: string;
|
|
18
21
|
sydsg_code?: string;
|
|
@@ -48,6 +51,11 @@ declare class MDesignationInsertUpdatePayload implements ICoreSydsg {
|
|
|
48
51
|
constructor(init: ICoreSydsg);
|
|
49
52
|
Validate?(): Partial<IDesignationInsertUpdateErrorLogger>;
|
|
50
53
|
}
|
|
54
|
+
declare class MDesignationToggleStatusPayload {
|
|
55
|
+
sydsg_id?: string;
|
|
56
|
+
constructor(init: MDesignationToggleStatusPayload);
|
|
57
|
+
Validate?(): Partial<IDesignationToggleStatusErrorLogger>;
|
|
58
|
+
}
|
|
51
59
|
interface designationControllerResponse extends controllerResponse {
|
|
52
60
|
data?: ICoreSydsg[];
|
|
53
61
|
}
|
|
@@ -60,4 +68,7 @@ interface designationInsertUpdateControllerResponse extends controllerResponse {
|
|
|
60
68
|
interface designationDeleteControllerResponse extends controllerResponse {
|
|
61
69
|
data?: boolean;
|
|
62
70
|
}
|
|
63
|
-
|
|
71
|
+
interface designationToggleStatusControllerResponse extends controllerResponse {
|
|
72
|
+
data?: boolean;
|
|
73
|
+
}
|
|
74
|
+
export { IDesignationErrorLogger, IDesignationGetByIdErrorLogger, IDesignationDeleteErrorLogger, IDesignationInsertUpdateErrorLogger, IDesignationToggleStatusErrorLogger, MDesignation, MDesignationGetByIdPayload, MDesignationDeletePayload, MDesignationInsertUpdatePayload, designationControllerResponse, designationByIdControllerResponse, designationInsertUpdateControllerResponse, designationDeleteControllerResponse, designationToggleStatusControllerResponse, MDesignationToggleStatusPayload };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MDesignationInsertUpdatePayload = exports.MDesignationDeletePayload = exports.MDesignationGetByIdPayload = exports.MDesignation = void 0;
|
|
3
|
+
exports.MDesignationToggleStatusPayload = exports.MDesignationInsertUpdatePayload = exports.MDesignationDeletePayload = exports.MDesignationGetByIdPayload = exports.MDesignation = void 0;
|
|
4
4
|
const common_1 = require("../../common-types/common");
|
|
5
5
|
/* INTERFACE END */
|
|
6
6
|
/* MODEL START */
|
|
@@ -66,3 +66,16 @@ class MDesignationInsertUpdatePayload {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
exports.MDesignationInsertUpdatePayload = MDesignationInsertUpdatePayload;
|
|
69
|
+
class MDesignationToggleStatusPayload {
|
|
70
|
+
constructor(init) {
|
|
71
|
+
Object.assign(this, init);
|
|
72
|
+
}
|
|
73
|
+
Validate() {
|
|
74
|
+
let errorLogger = {};
|
|
75
|
+
if (!this.sydsg_id) {
|
|
76
|
+
errorLogger.sydsg_id = "Designation ID is Required!";
|
|
77
|
+
}
|
|
78
|
+
return errorLogger;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.MDesignationToggleStatusPayload = MDesignationToggleStatusPayload;
|