@dotcms/client 0.0.1-beta.31 → 0.0.1-beta.33

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.
package/next.cjs.js CHANGED
@@ -10,7 +10,7 @@ class NavigationClient {
10
10
  /**
11
11
  * Retrieves information about the dotCMS file and folder tree.
12
12
  * @param {NavigationApiOptions} options - The options for the Navigation API call. Defaults to `{ depth: 0, path: '/', languageId: 1 }`.
13
- * @returns {Promise<unknown>} - A Promise that resolves to the response from the DotCMS API.
13
+ * @returns {Promise<DotCMSNavigationItem[]>} - A Promise that resolves to the response from the DotCMS API.
14
14
  * @throws {Error} - Throws an error if the options are not valid.
15
15
  */
16
16
  async get(path, params) {
package/next.esm.js CHANGED
@@ -8,7 +8,7 @@ class NavigationClient {
8
8
  /**
9
9
  * Retrieves information about the dotCMS file and folder tree.
10
10
  * @param {NavigationApiOptions} options - The options for the Navigation API call. Defaults to `{ depth: 0, path: '/', languageId: 1 }`.
11
- * @returns {Promise<unknown>} - A Promise that resolves to the response from the DotCMS API.
11
+ * @returns {Promise<DotCMSNavigationItem[]>} - A Promise that resolves to the response from the DotCMS API.
12
12
  * @throws {Error} - Throws an error if the options are not valid.
13
13
  */
14
14
  async get(path, params) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcms/client",
3
- "version": "0.0.1-beta.31",
3
+ "version": "0.0.1-beta.33",
4
4
  "description": "Official JavaScript library for interacting with DotCMS REST APIs.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,4 +1,4 @@
1
- import { DotCMSClientConfig, DotCMSNavigationRequestParams, RequestOptions } from '@dotcms/types';
1
+ import { DotCMSClientConfig, DotCMSNavigationRequestParams, RequestOptions, DotCMSNavigationItem } from '@dotcms/types';
2
2
  export declare class NavigationClient {
3
3
  private requestOptions;
4
4
  private BASE_URL;
@@ -6,9 +6,9 @@ export declare class NavigationClient {
6
6
  /**
7
7
  * Retrieves information about the dotCMS file and folder tree.
8
8
  * @param {NavigationApiOptions} options - The options for the Navigation API call. Defaults to `{ depth: 0, path: '/', languageId: 1 }`.
9
- * @returns {Promise<unknown>} - A Promise that resolves to the response from the DotCMS API.
9
+ * @returns {Promise<DotCMSNavigationItem[]>} - A Promise that resolves to the response from the DotCMS API.
10
10
  * @throws {Error} - Throws an error if the options are not valid.
11
11
  */
12
- get(path: string, params?: DotCMSNavigationRequestParams): Promise<unknown>;
12
+ get(path: string, params?: DotCMSNavigationRequestParams): Promise<DotCMSNavigationItem[]>;
13
13
  private mapToBackendParams;
14
14
  }