cloud-ide-lms-model 1.1.2 → 1.1.4

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;
@@ -5,6 +5,11 @@ declare const designConfigRoutesUrl: {
5
5
  * for more details refer {@link https://docs.google.com/document/d/1CwB4evLsQuatG4jI0U1faRtmqtNmIfZOE4fDWiz9-sQ/edit?pli=1&tab=t.0#bookmark=id.qbwilgqdw9a2}
6
6
  */
7
7
  getPageData: string;
8
+ /**
9
+ * @description Endpoint to get page rights only (without full page config)
10
+ * GET /design-config/page-rights/:pageCode
11
+ */
12
+ getPageRights: string;
8
13
  /**
9
14
  * this will return the user specific design, else org
10
15
  */
@@ -8,6 +8,11 @@ const designConfigRoutesUrl = {
8
8
  * for more details refer {@link https://docs.google.com/document/d/1CwB4evLsQuatG4jI0U1faRtmqtNmIfZOE4fDWiz9-sQ/edit?pli=1&tab=t.0#bookmark=id.qbwilgqdw9a2}
9
9
  */
10
10
  getPageData: "page",
11
+ /**
12
+ * @description Endpoint to get page rights only (without full page config)
13
+ * GET /design-config/page-rights/:pageCode
14
+ */
15
+ getPageRights: "page-rights",
11
16
  /**
12
17
  * this will return the user specific design, else org
13
18
  */
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "typescript": "^5.4.2"
6
6
  },
7
7
  "name": "cloud-ide-lms-model",
8
- "version": "1.1.2",
8
+ "version": "1.1.4",
9
9
  "description": "Package for Model management of Cloud IDEsys LMS",
10
10
  "main": "lib/index.js",
11
11
  "types": "lib/index.d.ts",