Skip to content

Commit

Permalink
types updated
Browse files Browse the repository at this point in the history
  • Loading branch information
bitcoder committed Sep 1, 2023
1 parent 37c2240 commit 8bb6c11
Show file tree
Hide file tree
Showing 9 changed files with 85 additions and 50 deletions.
19 changes: 18 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
29 changes: 19 additions & 10 deletions types/xray-cloud-client.d.ts
Original file line number Diff line number Diff line change
@@ -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<XrayCloudResponseV2>;
submitResultsMultipart(reportPath: string, config: ReportConfig): Promise<XrayCloudResponseV2>;
authenticate(): Promise<any>;
associateTestExecutionToTestPlanByIds(testExecIssueId: string, testPlanIssueId: string): Promise<any>;
getTestPlanId(testPlanIssueKey: string): Promise<any>;
clientId?: string;
clientSecret?: string;
timeout?: number;
supportedFormats: string[];
constructor(xraySettings: XraySettings);
submitResults(
reportPath: string,
config: ReportConfig
): Promise<XrayCloudResponseV2>;
submitResultsMultipart(
reportPath: string,
config: ReportConfig
): Promise<XrayCloudResponseV2>;
authenticate(): Promise<any>;
associateTestExecutionToTestPlanByIds(
testExecIssueId: string,
testPlanIssueId: string
): Promise<any>;
getTestPlanId(testPlanIssueKey: string): Promise<any>;
}
export default XrayCloudClient;
6 changes: 3 additions & 3 deletions types/xray-cloud-graphql-error-response.d.ts
Original file line number Diff line number Diff line change
@@ -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;
10 changes: 5 additions & 5 deletions types/xray-cloud-graphql-response-v2.d.ts
Original file line number Diff line number Diff line change
@@ -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;
10 changes: 5 additions & 5 deletions types/xray-cloud-response-v2.d.ts
Original file line number Diff line number Diff line change
@@ -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;
31 changes: 20 additions & 11 deletions types/xray-datacenter-client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<XrayDatacenterResponseV2>;
submitResultsMultipart(reportPath: string, config: ReportConfig): Promise<XrayDatacenterResponseV2>;
associateTestExecutionToTestPlan(testExecKey: string, testPlanKey: string): Promise<string>;
xraySettings: XraySettings;
jiraBaseUrl?: string;
jiraUsername?: string;
jiraPassword?: string;
jiraToken?: string;
timeout?: number;
supportedFormats: string[];
constructor(xraySettings: XraySettings);
submitResults(
reportPath: string,
config: ReportConfig
): Promise<XrayDatacenterResponseV2>;
submitResultsMultipart(
reportPath: string,
config: ReportConfig
): Promise<XrayDatacenterResponseV2>;
associateTestExecutionToTestPlan(
testExecKey: string,
testPlanKey: string
): Promise<string>;
}
10 changes: 5 additions & 5 deletions types/xray-datacenter-response-v1.d.ts
Original file line number Diff line number Diff line change
@@ -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;
10 changes: 5 additions & 5 deletions types/xray-datacenter-response-v2.d.ts
Original file line number Diff line number Diff line change
@@ -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;
10 changes: 5 additions & 5 deletions types/xray-error-response.d.ts
Original file line number Diff line number Diff line change
@@ -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;

3 comments on commit 8bb6c11

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 88.82% 294/331
🟢 Branches 82.24% 88/107
🟡 Functions 66.1% 39/59
🟢 Lines 88.69% 290/327

Test suite run success

160 tests passing in 2 suites.

Report generated by 🧪jest coverage report action from 8bb6c11

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 88.82% 294/331
🟢 Branches 82.24% 88/107
🟡 Functions 66.1% 39/59
🟢 Lines 88.69% 290/327

Test suite run success

160 tests passing in 2 suites.

Report generated by 🧪jest coverage report action from 8bb6c11

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 88.82% 294/331
🟢 Branches 82.24% 88/107
🟡 Functions 66.1% 39/59
🟢 Lines 88.69% 290/327

Test suite run success

160 tests passing in 2 suites.

Report generated by 🧪jest coverage report action from 8bb6c11

Please sign in to comment.