From 875f48e52701e88a88a220f4ffb77444af6e01e8 Mon Sep 17 00:00:00 2001 From: "reportportal.io" Date: Thu, 5 Feb 2026 15:53:39 +0000 Subject: [PATCH 1/3] 5.5.9 -> 5.5.10-SNAPSHOT --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 6e03a7e..da10296 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -5.5.9 +5.5.10-SNAPSHOT From 9a2c8a5dea41897dc26feefff0ab223979ee70a1 Mon Sep 17 00:00:00 2001 From: Ilya_Hancharyk Date: Thu, 5 Feb 2026 17:50:17 +0100 Subject: [PATCH 2/3] Fix type definitions --- index.d.ts | 72 ++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 45 insertions(+), 27 deletions(-) diff --git a/index.d.ts b/index.d.ts index 8c7e993..a361569 100644 --- a/index.d.ts +++ b/index.d.ts @@ -52,6 +52,10 @@ declare module '@reportportal/client-javascript' { username: string; password: string; }; + /** + * Optional debug logs for the proxy. + */ + debug?: boolean; } /** @@ -78,16 +82,11 @@ declare module '@reportportal/client-javascript' { /** * Custom HTTP agent options. */ - agent?: Record; + agent?: any; /** * Retry configuration. */ - retry?: number | { - retries?: number; - retryDelay?: (retryCount: number) => number; - retryCondition?: (error: any) => boolean; - shouldResetTimeout?: boolean; - }; + retry?: number | any; /** * Enable debug logging. */ @@ -95,7 +94,7 @@ declare module '@reportportal/client-javascript' { /** * Any other axios configuration options. */ - [key: string]: unknown; + [key: string]: any; } /** @@ -175,9 +174,9 @@ declare module '@reportportal/client-javascript' { */ export interface LaunchOptions { name?: string; - startTime?: string; + startTime?: string | number; description?: string; - attributes?: Array<{ key: string; value?: string } | string>; + attributes?: Array<{ key?: string; value?: string } | string>; mode?: string; id?: string; } @@ -198,8 +197,8 @@ declare module '@reportportal/client-javascript' { name: string; type: string; description?: string; - startTime?: string; - attributes?: Array<{ key: string; value?: string } | string>; + startTime?: string | number; + attributes?: Array<{ key?: string; value?: string } | string>; hasStats?: boolean; } @@ -218,7 +217,7 @@ declare module '@reportportal/client-javascript' { export interface LogOptions { level?: string; message?: string; - time?: string; + time?: string | number; file?: { name: string; content: string; @@ -239,11 +238,11 @@ declare module '@reportportal/client-javascript' { */ export interface FinishTestItemOptions { status?: string; - endTime?: string; + endTime?: string | number; issue?: { issueType: string; comment?: string; - externalSystemIssues?: Array + externalSystemIssues?: Array; }; } @@ -258,7 +257,7 @@ declare module '@reportportal/client-javascript' { * ``` */ export interface FinishLaunchOptions { - endTime?: string; + endTime?: string | number; status?: string; } @@ -269,7 +268,7 @@ declare module '@reportportal/client-javascript' { /** * Initializes a new Report Portal client. */ - constructor(config: ReportPortalConfig); + constructor(config: ReportPortalConfig, agentInfo?: { name?: string; version?: string }); /** * Starts a new launch. @@ -306,7 +305,10 @@ declare module '@reportportal/client-javascript' { * await launchFinishObj.promise; * ``` */ - finishLaunch(launchId: string, options?: FinishLaunchOptions): Promise; + finishLaunch( + launchId: string, + options?: FinishLaunchOptions, + ): { tempId: string; promise: Promise }; /** * Update the launch data @@ -331,7 +333,10 @@ declare module '@reportportal/client-javascript' { * await updateLaunch.promise; * ``` */ - updateLaunch(options: LaunchOptions): { tempId: string; promise: Promise }; + updateLaunch( + launchId: string, + options: LaunchOptions, + ): { tempId: string; promise: Promise }; /** * Starts a new test item under a launch or parent item. @@ -360,34 +365,47 @@ declare module '@reportportal/client-javascript' { * }, launchObj.tempId, suiteObj.tempId); * ``` */ - startTestItem(options: StartTestItemOptions, launchId: string, parentId?: string): { + startTestItem( + options: StartTestItemOptions, + launchId: string, + parentId?: string, + ): { tempId: string; - promise: Promise + promise: Promise; }; /** * Finishes a test item. * @example * ```typescript - * rpClient.finishTestItem(itemObj.tempId, { + * const finishObj = rpClient.finishTestItem(itemObj.tempId, { * status: 'failed' * }); + * await finishObj.promise; * ``` */ - finishTestItem(itemId: string, options: FinishTestItemOptions): Promise; + finishTestItem( + itemId: string, + options: FinishTestItemOptions, + ): { tempId: string; promise: Promise }; /** * Sends a log entry to a test item. * @example * ```typescript - * await rpClient.sendLog(stepObj.tempId, { + * const logObj = rpClient.sendLog(stepObj.tempId, { * level: 'INFO', * message: 'User clicks login button', * time: rpClient.helpers.now() * }); + * await logObj.promise; * ``` */ - sendLog(itemId: string, options: LogOptions): Promise; + sendLog( + itemId: string, + options: LogOptions, + file?: { name: string; content: string | Buffer; type: string }, + ): { tempId: string; promise: Promise }; /** * Waits for all test items to be finished. @@ -419,7 +437,7 @@ declare module '@reportportal/client-javascript' { * }); * ``` */ - now(): string - } + now(): string; + }; } } From d098343666bc4d450806e6125a247bb5cc7fc581 Mon Sep 17 00:00:00 2001 From: Ilya_Hancharyk Date: Thu, 5 Feb 2026 17:50:56 +0100 Subject: [PATCH 3/3] Update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6a4d32..7f4240c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +### Fixed +- TS definitions actualized with recent changes in client. ## [5.5.9] - 2026-02-05 ### Fixed