import { XRAY_FIELD_IDS, EXISTING_TICKET } from '../types/types.js'; /** * Get Xray field IDs for a Jira project. * * @param {string} jiraProtocol - The protocol for the Jira host (e.g., 'https'). * @param {string} jiraHost - The hostname of the Jira instance. * @param {string} jiraProject - The Jira project key. * @param {object} requestHeaders - Headers for the HTTP request. * @returns {Promise} An object containing various Xray field IDs. */ export declare const getXrayFieldIds: (jiraProtocol: string, jiraHost: string, jiraProject: string, requestHeaders: object) => Promise; /** * Get existing tickets of a specific issue type within a Jira project. * * @param {string} jiraProtocol - The protocol for the Jira host (e.g., 'https'). * @param {string} jiraHost - The hostname of the Jira instance. * @param {string} jiraProject - The Jira project key. * @param {string} xrayTestIssueType - The issue type to filter by. * @param {string} xrayCucumberTestFieldId - The field ID for Xray Cucumber Test types. * @param {string} xrayCucumberTestStepFieldId - The field ID for Xray Cucumber Test steps. * @param {object} requestHeaders - Headers for the HTTP request. * @returns {Promise} A promise that resolves to an array of existing tickets of the specified issue type. */ export declare const getExistingTickets: (jiraProtocol: string, jiraHost: string, jiraProject: string, xrayTestIssueType: string, xrayCucumberTestFieldId: string, xrayCucumberTestStepFieldId: string, requestHeaders: object) => Promise; /** * Create a new Jira ticket. * * @param {string} jiraProtocol - The protocol for the Jira host (e.g., 'https'). * @param {string} jiraHost - The hostname of the Jira instance. * @param {object} body - The request body containing ticket details. * @param {object} requestHeaders - Headers for the HTTP request. * @returns {Promise} A promise that resolves to a message indicating the creation of the new ticket. */ export declare const createNewTicket: (jiraProtocol: string, jiraHost: string, body: object, requestHeaders: object) => Promise; /** * Update an existing Jira ticket. * * @param {string} jiraProtocol - The protocol for the Jira host (e.g., 'https'). * @param {string} jiraHost - The hostname of the Jira instance. * @param {string} issueId - The ID of the Jira ticket to update. * @param {object} body - The request body containing the updated ticket details. * @param {object} requestHeaders - Headers for the HTTP request. */ export declare const updateExistingTicket: (jiraProtocol: string, jiraHost: string, issueId: string, body: object, requestHeaders: object) => Promise; /** * Get the ID of a Jira ticket's transition by name. * * @param {string} jiraProtocol - The protocol for the Jira host (e.g., 'https'). * @param {string} jiraHost - The hostname of the Jira instance. * @param {string} issueId - The ID of the Jira ticket. * @param {string[]} transitionNames - An array of transition names to search for. * @param {object} requestHeaders - Headers for the HTTP request. * @returns {Promise} A promise that resolves to the ID of the found transition or null if not found. */ export declare const getTransitionId: (jiraProtocol: string, jiraHost: string, issueId: string, transitionNames: string[], requestHeaders: object) => Promise; /** * Update issue transitions for a Jira ticket. * * @param {string} jiraProtocol - The protocol for the Jira host (e.g., 'https'). * @param {string} jiraHost - The hostname of the Jira instance. * @param {string} issueId - The ID of the Jira ticket. * @param {object} body - The request body containing transition details. * @param {object} requestHeaders - Headers for the HTTP request. */ export declare const updateIssueTransitions: (jiraProtocol: string, jiraHost: string, issueId: string, body: object, requestHeaders: object) => Promise; /** * Get the test execution IDs associated with a specific Xray Test Execution. * * @param {string} jiraProtocol - The protocol for the Jira host (e.g., 'https'). * @param {string} jiraHost - The hostname of the Jira instance. * @param {string} xrayTestExecutionId - The ID of the Xray Test Execution. * @param {string} xrayTestExecutionFieldId - The field ID for test execution data. * @param {object} requestHeaders - Headers for the HTTP request. * @returns {Promise} A promise that resolves to the test execution IDs. */ export declare const getTestExecutionIds: (jiraProtocol: string, jiraHost: string, xrayTestExecutionId: string, xrayTestExecutionFieldId: string, requestHeaders: object) => Promise; /** * Update the execution result of a specific Xray Test Execution. * * @param {string} jiraProtocol - The protocol for the Jira host (e.g., 'https'). * @param {string} jiraHost - The hostname of the Jira instance. * @param {string} xrayTestExecutionId - The ID of the Xray Test Execution. * @param {string} xrayTestStatus - The new status for the test execution. * @param {object} requestHeaders - Headers for the HTTP request. */ export declare const updateExecutionResult: (jiraProtocol: string, jiraHost: string, xrayTestExecutionId: string, xrayTestStatus: string, requestHeaders: object) => Promise; //# sourceMappingURL=jira.helper.d.ts.map