|  | 
| 1 | 1 | import axios, { AxiosInstance } from "axios"; | 
| 2 |  | -import { CryptlexWebApiClientOptions } from "./client-options"; | 
| 3 |  | -import { ApiResponse } from "./services/api.types"; | 
| 4 |  | -import { LicenseService } from "./services/license.service"; | 
|  | 2 | +import CryptlexWebApiClientOptions from "./client-options.js"; | 
|  | 3 | + | 
|  | 4 | +import { ApiResponse } from "./services/api.types.js"; | 
|  | 5 | +import { LicenseService } from "./services/license.service.js"; | 
| 5 | 6 | import { | 
| 6 | 7 |   LicenseCreateRequest, | 
| 7 | 8 |   LicenseListQueryParameters, | 
| 8 | 9 |   LicenseResponse, | 
| 9 | 10 |   LicenseUpdateRequest, | 
| 10 |  | -} from "./services/license.types"; | 
| 11 |  | -import { UserService } from "./services/user.service"; | 
|  | 11 | +} from "./services/license.types.js"; | 
|  | 12 | +import { UserService } from "./services/user.service.js"; | 
| 12 | 13 | import { | 
| 13 | 14 |   UserCreateRequest, | 
| 14 | 15 |   UserListQueryParameters, | 
| 15 |  | -  UserPasswordUpdateRequest, | 
| 16 | 16 |   UserResponse, | 
| 17 | 17 |   UserUpdateRequest, | 
| 18 |  | -} from "./services/user.types"; | 
|  | 18 | +} from "./services/user.types.js"; | 
| 19 | 19 | 
 | 
| 20 | 20 | /** | 
| 21 | 21 |  * The CryptlexWebApiClient class contains the functions to communicate with the Cryptlex Web API. | 
| 22 | 22 |  * Creating instances of this class require passing a CryptlexWebApiClientOptions instance. | 
| 23 | 23 |  * | 
| 24 | 24 |  */ | 
| 25 |  | -export class CryptlexWebApiClient { | 
|  | 25 | +export default class CryptlexWebApiClient { | 
| 26 | 26 |   /** | 
| 27 | 27 |    * HttpClient to communicate with the Cryptlex Web API | 
| 28 | 28 |    */ | 
| @@ -174,7 +174,7 @@ export class CryptlexWebApiClient { | 
| 174 | 174 |    * Generates the reset password token (url encoded) for users with 'user' role. | 
| 175 | 175 |    * It should only be used for custom portals to implement password reset. | 
| 176 | 176 |    * | 
| 177 |  | -   * @param id Unique identifier for the user | 
|  | 177 | +   * @param {string} id Unique identifier for the user | 
| 178 | 178 |    * @returns {Promise<ApiResponse<any>>} Promise that resolves to the Web API response | 
| 179 | 179 |    */ | 
| 180 | 180 |   generateResetPasswordToken(id: string) { | 
|  | 
0 commit comments