cloud-ide-lms-model 1.1.2 → 1.1.3
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.
|
@@ -10,6 +10,9 @@ type DashboardCardsErrorLogger = {
|
|
|
10
10
|
type IDashboardCardsGetByIdErrorLogger = {
|
|
11
11
|
[key in keyof MDashboardCardsGetByIdPayload]: string;
|
|
12
12
|
};
|
|
13
|
+
type IDashboardCardsDeleteErrorLogger = {
|
|
14
|
+
[key in keyof MDashboardCardsDeletePayload]: string;
|
|
15
|
+
};
|
|
13
16
|
declare class DashboardCardsSaveUpdatePayload {
|
|
14
17
|
core_dashboard_cards?: CoreDashboardCards;
|
|
15
18
|
constructor(init: DashboardCardsSaveUpdatePayload);
|
|
@@ -25,6 +28,11 @@ declare class MDashboardCardsGetByIdPayload {
|
|
|
25
28
|
constructor(init: MDashboardCardsGetByIdPayload);
|
|
26
29
|
Validate?(): Partial<IDashboardCardsGetByIdErrorLogger>;
|
|
27
30
|
}
|
|
31
|
+
declare class MDashboardCardsDeletePayload {
|
|
32
|
+
cdc_id?: string;
|
|
33
|
+
constructor(init: MDashboardCardsDeletePayload);
|
|
34
|
+
Validate?(): Partial<IDashboardCardsDeleteErrorLogger>;
|
|
35
|
+
}
|
|
28
36
|
interface dashboardCardsControllerResponse extends controllerResponse {
|
|
29
37
|
data?: DashboardCardsListResponse[];
|
|
30
38
|
}
|
|
@@ -48,4 +56,4 @@ interface DashboardCardsListResponse extends Omit<CoreDashboardCards, 'cdc_entit
|
|
|
48
56
|
user_fullname?: string;
|
|
49
57
|
};
|
|
50
58
|
}
|
|
51
|
-
export { IDashboardCardsErrorLogger, DashboardCardsErrorLogger, IDashboardCardsGetByIdErrorLogger, DashboardCardsSaveUpdatePayload, MDashboardCards, MDashboardCardsGetByIdPayload, dashboardCardsControllerResponse, dashboardCardsInsertUpdateControllerResponse, dashboardCardsByIdControllerResponse, DashboardCardsListResponse };
|
|
59
|
+
export { IDashboardCardsErrorLogger, DashboardCardsErrorLogger, IDashboardCardsGetByIdErrorLogger, IDashboardCardsDeleteErrorLogger, DashboardCardsSaveUpdatePayload, MDashboardCards, MDashboardCardsGetByIdPayload, MDashboardCardsDeletePayload, dashboardCardsControllerResponse, dashboardCardsInsertUpdateControllerResponse, dashboardCardsByIdControllerResponse, DashboardCardsListResponse };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MDashboardCardsGetByIdPayload = exports.MDashboardCards = exports.DashboardCardsSaveUpdatePayload = void 0;
|
|
3
|
+
exports.MDashboardCardsDeletePayload = exports.MDashboardCardsGetByIdPayload = exports.MDashboardCards = exports.DashboardCardsSaveUpdatePayload = void 0;
|
|
4
4
|
const common_1 = require("../../common-types/common");
|
|
5
5
|
/* INTERFACE END */
|
|
6
6
|
/* MODEL START */
|
|
@@ -45,3 +45,16 @@ class MDashboardCardsGetByIdPayload {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
exports.MDashboardCardsGetByIdPayload = MDashboardCardsGetByIdPayload;
|
|
48
|
+
class MDashboardCardsDeletePayload {
|
|
49
|
+
constructor(init) {
|
|
50
|
+
Object.assign(this, init);
|
|
51
|
+
}
|
|
52
|
+
Validate() {
|
|
53
|
+
let errorLogger = {};
|
|
54
|
+
if (!this.cdc_id) {
|
|
55
|
+
errorLogger.cdc_id = "Card ID is required!";
|
|
56
|
+
}
|
|
57
|
+
return errorLogger;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.MDashboardCardsDeletePayload = MDashboardCardsDeletePayload;
|