From 8bb6c114b664c54a48aa9c3facee315db13e3481 Mon Sep 17 00:00:00 2001 From: Sergio Freire Date: Fri, 1 Sep 2023 15:22:04 +0100 Subject: [PATCH] types updated --- types/index.d.ts | 19 +++++++++++- types/xray-cloud-client.d.ts | 29 +++++++++++------- types/xray-cloud-graphql-error-response.d.ts | 6 ++-- types/xray-cloud-graphql-response-v2.d.ts | 10 +++---- types/xray-cloud-response-v2.d.ts | 10 +++---- types/xray-datacenter-client.d.ts | 31 +++++++++++++------- types/xray-datacenter-response-v1.d.ts | 10 +++---- types/xray-datacenter-response-v2.d.ts | 10 +++---- types/xray-error-response.d.ts | 10 +++---- 9 files changed, 85 insertions(+), 50 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 6176c3b..4e05d0f 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -16,5 +16,22 @@ declare const NUNIT_FORMAT = "nunit"; declare const XUNIT_FORMAT = "xunit"; declare const CUCUMBER_FORMAT = "cucumber"; declare const BEHAVE_FORMAT = "behave"; -export { XRAY_FORMAT, JUNIT_FORMAT, TESTNG_FORMAT, ROBOT_FORMAT, NUNIT_FORMAT, XUNIT_FORMAT, CUCUMBER_FORMAT, BEHAVE_FORMAT, XrayDatacenterClient, XrayErrorResponse, XrayDatacenterResponseV1, XrayDatacenterResponseV2, XrayCloudClient, XrayCloudGraphQLResponseV2, XrayCloudGraphQLErrorResponse, XrayCloudResponseV2, }; +export { + XRAY_FORMAT, + JUNIT_FORMAT, + TESTNG_FORMAT, + ROBOT_FORMAT, + NUNIT_FORMAT, + XUNIT_FORMAT, + CUCUMBER_FORMAT, + BEHAVE_FORMAT, + XrayDatacenterClient, + XrayErrorResponse, + XrayDatacenterResponseV1, + XrayDatacenterResponseV2, + XrayCloudClient, + XrayCloudGraphQLResponseV2, + XrayCloudGraphQLErrorResponse, + XrayCloudResponseV2, +}; export type { XraySettings, ReportConfig }; diff --git a/types/xray-cloud-client.d.ts b/types/xray-cloud-client.d.ts index 3f41263..ca814d9 100644 --- a/types/xray-cloud-client.d.ts +++ b/types/xray-cloud-client.d.ts @@ -1,15 +1,24 @@ import XrayCloudResponseV2 from "./xray-cloud-response-v2"; import { ReportConfig, XraySettings } from "./index"; export declare class XrayCloudClient { - clientId?: string; - clientSecret?: string; - timeout?: number; - supportedFormats: string[]; - constructor(xraySettings: XraySettings); - submitResults(reportPath: string, config: ReportConfig): Promise; - submitResultsMultipart(reportPath: string, config: ReportConfig): Promise; - authenticate(): Promise; - associateTestExecutionToTestPlanByIds(testExecIssueId: string, testPlanIssueId: string): Promise; - getTestPlanId(testPlanIssueKey: string): Promise; + clientId?: string; + clientSecret?: string; + timeout?: number; + supportedFormats: string[]; + constructor(xraySettings: XraySettings); + submitResults( + reportPath: string, + config: ReportConfig + ): Promise; + submitResultsMultipart( + reportPath: string, + config: ReportConfig + ): Promise; + authenticate(): Promise; + associateTestExecutionToTestPlanByIds( + testExecIssueId: string, + testPlanIssueId: string + ): Promise; + getTestPlanId(testPlanIssueKey: string): Promise; } export default XrayCloudClient; diff --git a/types/xray-cloud-graphql-error-response.d.ts b/types/xray-cloud-graphql-error-response.d.ts index 5402718..7bd652f 100644 --- a/types/xray-cloud-graphql-error-response.d.ts +++ b/types/xray-cloud-graphql-error-response.d.ts @@ -1,6 +1,6 @@ export declare class XrayCloudGraphQLErrorResponse { - error: string; - errorMessages: string[]; - constructor(error: string, errorMessages: string[]); + error: string; + errorMessages: string[]; + constructor(error: string, errorMessages: string[]); } export default XrayCloudGraphQLErrorResponse; diff --git a/types/xray-cloud-graphql-response-v2.d.ts b/types/xray-cloud-graphql-response-v2.d.ts index 6f60198..8adcbeb 100644 --- a/types/xray-cloud-graphql-response-v2.d.ts +++ b/types/xray-cloud-graphql-response-v2.d.ts @@ -1,8 +1,8 @@ export declare class XrayCloudGraphQLResponseV2 { - id?: string; - key?: string; - _response: string; - selfUrl?: string; - constructor(response: any); + id?: string; + key?: string; + _response: string; + selfUrl?: string; + constructor(response: any); } export default XrayCloudGraphQLResponseV2; diff --git a/types/xray-cloud-response-v2.d.ts b/types/xray-cloud-response-v2.d.ts index ef562a7..028af71 100644 --- a/types/xray-cloud-response-v2.d.ts +++ b/types/xray-cloud-response-v2.d.ts @@ -1,8 +1,8 @@ export declare class XrayCloudResponseV2 { - id?: string; - key?: string; - _response: string; - selfUrl?: string; - constructor(response: any); + id?: string; + key?: string; + _response: string; + selfUrl?: string; + constructor(response: any); } export default XrayCloudResponseV2; diff --git a/types/xray-datacenter-client.d.ts b/types/xray-datacenter-client.d.ts index d1616e9..8cb76e4 100644 --- a/types/xray-datacenter-client.d.ts +++ b/types/xray-datacenter-client.d.ts @@ -2,15 +2,24 @@ import type { XraySettings } from "../types/xray-settings"; import type { ReportConfig } from "../types/report-config"; import XrayDatacenterResponseV2 from "./xray-datacenter-response-v2"; export declare class XrayDatacenterClient { - xraySettings: XraySettings; - jiraBaseUrl?: string; - jiraUsername?: string; - jiraPassword?: string; - jiraToken?: string; - timeout?: number; - supportedFormats: string[]; - constructor(xraySettings: XraySettings); - submitResults(reportPath: string, config: ReportConfig): Promise; - submitResultsMultipart(reportPath: string, config: ReportConfig): Promise; - associateTestExecutionToTestPlan(testExecKey: string, testPlanKey: string): Promise; + xraySettings: XraySettings; + jiraBaseUrl?: string; + jiraUsername?: string; + jiraPassword?: string; + jiraToken?: string; + timeout?: number; + supportedFormats: string[]; + constructor(xraySettings: XraySettings); + submitResults( + reportPath: string, + config: ReportConfig + ): Promise; + submitResultsMultipart( + reportPath: string, + config: ReportConfig + ): Promise; + associateTestExecutionToTestPlan( + testExecKey: string, + testPlanKey: string + ): Promise; } diff --git a/types/xray-datacenter-response-v1.d.ts b/types/xray-datacenter-response-v1.d.ts index 1623414..9ca70d1 100644 --- a/types/xray-datacenter-response-v1.d.ts +++ b/types/xray-datacenter-response-v1.d.ts @@ -1,8 +1,8 @@ export declare class XrayDatacenterResponseV1 { - id?: string; - key?: string; - _response: string; - selfUrl?: string; - constructor(response: any); + id?: string; + key?: string; + _response: string; + selfUrl?: string; + constructor(response: any); } export default XrayDatacenterResponseV1; diff --git a/types/xray-datacenter-response-v2.d.ts b/types/xray-datacenter-response-v2.d.ts index 949a776..f45d3e8 100644 --- a/types/xray-datacenter-response-v2.d.ts +++ b/types/xray-datacenter-response-v2.d.ts @@ -1,8 +1,8 @@ export declare class XrayDatacenterResponseV2 { - id?: string; - key?: string; - _response: string; - selfUrl?: string; - constructor(response: any); + id?: string; + key?: string; + _response: string; + selfUrl?: string; + constructor(response: any); } export default XrayDatacenterResponseV2; diff --git a/types/xray-error-response.d.ts b/types/xray-error-response.d.ts index ab1e3eb..5694821 100644 --- a/types/xray-error-response.d.ts +++ b/types/xray-error-response.d.ts @@ -1,8 +1,8 @@ export declare class XrayErrorResponse { - _response: string; - statusCode?: string; - body?: string; - constructor(response: any); - toString(): string; + _response: string; + statusCode?: string; + body?: string; + constructor(response: any); + toString(): string; } export default XrayErrorResponse;