@squidcloud/jira-client 1.0.429 → 1.0.431

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -69,6 +69,15 @@ export interface JiraTransition {
69
69
  }
70
70
  export type RelatedIssuesMode = 'RESOLVED' | 'ALL' | 'NONE';
71
71
  export declare const RELATED_ISSUES_MODE_ENUM: Array<string>;
72
+ /** Jira Issue with full details including comments */
73
+ export interface JiraIssueDetails {
74
+ /** The full issue object */
75
+ issue: JiraIssue;
76
+ /** All comments on the issue */
77
+ comments: Array<JiraComment>;
78
+ /** Formatted XML string representation of the issue */
79
+ detailsAsString: string;
80
+ }
72
81
  /** Request to search Jira issues by text */
73
82
  export interface SearchJiraIssuesRequest {
74
83
  /** The ID of the Jira integration */
@@ -1,5 +1,5 @@
1
1
  import { Squid } from '@squidcloud/client';
2
- import { CreateJiraIssueRequest, JiraIssueResponse, JiraProjectResponse, RelatedIssuesMode, SearchJiraIssuesByJqlRequest, SearchJiraIssuesRequest, UpdateJiraIssueRequest } from '../../common/src/jira-types';
2
+ import { CreateJiraIssueRequest, JiraIssueDetails, JiraIssueResponse, JiraProjectResponse, RelatedIssuesMode, SearchJiraIssuesByJqlRequest, SearchJiraIssuesRequest, UpdateJiraIssueRequest } from '../../common/src/jira-types';
3
3
  /**
4
4
  * Client for interacting with the Jira connector.
5
5
  *
@@ -39,9 +39,9 @@ export declare class SquidJiraClient {
39
39
  *
40
40
  * @param issueKey - The Jira issue key (e.g., "PROJ-123").
41
41
  * @param relatedIssuesMode - Whether to include related issues (default: 'RESOLVED').
42
- * @returns Formatted string with issue details including comments.
42
+ * @returns Issue details including issue object, comments, and formatted details string.
43
43
  */
44
- getIssue(issueKey: string, relatedIssuesMode?: RelatedIssuesMode): Promise<string>;
44
+ getIssue(issueKey: string, relatedIssuesMode?: RelatedIssuesMode): Promise<JiraIssueDetails>;
45
45
  /**
46
46
  * Create a new Jira issue.
47
47
  *
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
- {
2
- "name": "@squidcloud/jira-client",
3
- "version": "1.0.429",
4
- "description": "Squid Jira Client - SDK for interacting with the Jira connector",
5
- "main": "dist/index.js",
6
- "types": "dist/jira-client/src/index.d.ts",
7
- "scripts": {
8
- "prebuild": "del-cli dist",
9
- "build": "webpack --mode=production",
10
- "lint": "eslint",
11
- "publish:public": "npm run build && npm publish --access public"
12
- },
13
- "files": [
14
- "dist/**/*"
15
- ],
16
- "keywords": [
17
- "squid",
18
- "jira",
19
- "issue-tracking",
20
- "connector"
21
- ],
22
- "author": "",
23
- "license": "ISC",
24
- "dependencies": {
25
- "assertic": "^1.3.0",
26
- "@squidcloud/client": "^1.0.429"
27
- },
28
- "engines": {
29
- "node": ">=20.0.0"
30
- }
31
- }
1
+ {
2
+ "name": "@squidcloud/jira-client",
3
+ "version": "1.0.431",
4
+ "description": "Squid Jira Client - SDK for interacting with the Jira connector",
5
+ "main": "dist/index.js",
6
+ "types": "dist/jira-client/src/index.d.ts",
7
+ "scripts": {
8
+ "prebuild": "del-cli dist",
9
+ "build": "webpack --mode=production",
10
+ "lint": "eslint",
11
+ "publish:public": "npm run build && npm publish --access public"
12
+ },
13
+ "files": [
14
+ "dist/**/*"
15
+ ],
16
+ "keywords": [
17
+ "squid",
18
+ "jira",
19
+ "issue-tracking",
20
+ "connector"
21
+ ],
22
+ "author": "",
23
+ "license": "ISC",
24
+ "dependencies": {
25
+ "assertic": "^1.3.0",
26
+ "@squidcloud/client": "^1.0.431"
27
+ },
28
+ "engines": {
29
+ "node": ">=20.0.0"
30
+ }
31
+ }