cloud-ide-lms-model 1.0.11 → 1.0.13

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.
@@ -2,6 +2,11 @@ declare const controllerRoutes: {
2
2
  /** Endpoint to core module
3
3
  * for more details refer https://docs.google.com/document/d/1CwB4evLsQuatG4jI0U1faRtmqtNmIfZOE4fDWiz9-sQ/edit#bookmark=id.r7i5y3qldjhw
4
4
  */
5
- coreRoutes: string;
5
+ coreRoutes: {
6
+ url: string;
7
+ children: {
8
+ getFileDetails: string;
9
+ };
10
+ };
6
11
  };
7
12
  export { controllerRoutes };
@@ -1,11 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.controllerRoutes = void 0;
4
+ const coreRoutes_1 = require("./coreRoutes");
4
5
  const controllerRoutes = {
5
6
  /** Endpoint to core module
6
7
  * for more details refer https://docs.google.com/document/d/1CwB4evLsQuatG4jI0U1faRtmqtNmIfZOE4fDWiz9-sQ/edit#bookmark=id.r7i5y3qldjhw
7
8
  */
8
- coreRoutes: "core"
9
+ coreRoutes: {
10
+ url: "core",
11
+ children: coreRoutes_1.coreRoutes
12
+ }
9
13
  };
10
14
  exports.controllerRoutes = controllerRoutes;
11
15
  Object.freeze(controllerRoutes);
@@ -0,0 +1,15 @@
1
+ export interface CloudIdeRoute {
2
+ [key: string]: {
3
+ url: string;
4
+ children: {
5
+ [key: string]: {
6
+ url: string;
7
+ children: {
8
+ [key: string]: string;
9
+ };
10
+ };
11
+ };
12
+ };
13
+ }
14
+ declare const hostManagerRoutes: CloudIdeRoute;
15
+ export { hostManagerRoutes };
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.hostManagerRoutes = void 0;
4
+ const controllerRoutes_1 = require("./controllerRoutes");
5
+ const hostManagerRoutes = {
6
+ /** Base path for host name to interceptor and replace with actual URL
7
+ * for more details refer
8
+ */
9
+ cloudIdeSuteLayoutHost: {
10
+ url: "https://__cloud_ide_suite_layout__/__version__",
11
+ children: controllerRoutes_1.controllerRoutes
12
+ },
13
+ cloudIdeSuteAdminHost: {
14
+ url: "https://__cloud_ide_suite_admin__/__version__",
15
+ children: controllerRoutes_1.controllerRoutes
16
+ },
17
+ cloudIdeSuteInventoryHost: {
18
+ url: "https://__cloud_ide_suite_inventory__/__version__",
19
+ children: controllerRoutes_1.controllerRoutes
20
+ }
21
+ };
22
+ exports.hostManagerRoutes = hostManagerRoutes;
23
+ Object.freeze(hostManagerRoutes);
@@ -1,2 +1 @@
1
- export * from "./controllerRoutes";
2
- export * from './coreRoutes';
1
+ export * from './hostManagerRoutes';
@@ -14,5 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./controllerRoutes"), exports);
18
- __exportStar(require("./coreRoutes"), exports);
17
+ __exportStar(require("./hostManagerRoutes"), exports);
@@ -1,4 +1,6 @@
1
1
  export declare function stringInterpolation(variables: {
2
2
  [key: string]: string;
3
3
  }, body: string, data: any): Promise<string>;
4
- export declare const cidePath: () => void;
4
+ export declare const cidePath: {
5
+ join: (path: string[]) => string;
6
+ };
@@ -178,9 +178,8 @@ function stringInterpolation(variables, body, data) {
178
178
  });
179
179
  }
180
180
  exports.stringInterpolation = stringInterpolation;
181
- const cidePath = () => {
182
- const join = (path) => {
181
+ exports.cidePath = {
182
+ join: (path) => {
183
183
  return path.join("/");
184
- };
184
+ }
185
185
  };
186
- exports.cidePath = cidePath;
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.0.11",
8
+ "version": "1.0.13",
9
9
  "description": "Package for Model management of Cloud IDEsys LMS",
10
10
  "main": "lib/index.js",
11
11
  "types": "lib/index.d.ts",