@generacy-ai/generacy-plugin-jira 0.0.0-preview-20260304013206

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.
Files changed (102) hide show
  1. package/LICENSE +191 -0
  2. package/dist/client.d.ts +81 -0
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/client.js +163 -0
  5. package/dist/client.js.map +1 -0
  6. package/dist/index.d.ts +19 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +26 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/operations/comments.d.ts +35 -0
  11. package/dist/operations/comments.d.ts.map +1 -0
  12. package/dist/operations/comments.js +128 -0
  13. package/dist/operations/comments.js.map +1 -0
  14. package/dist/operations/custom-fields.d.ts +48 -0
  15. package/dist/operations/custom-fields.d.ts.map +1 -0
  16. package/dist/operations/custom-fields.js +184 -0
  17. package/dist/operations/custom-fields.js.map +1 -0
  18. package/dist/operations/issues.d.ts +34 -0
  19. package/dist/operations/issues.d.ts.map +1 -0
  20. package/dist/operations/issues.js +215 -0
  21. package/dist/operations/issues.js.map +1 -0
  22. package/dist/operations/search.d.ts +47 -0
  23. package/dist/operations/search.d.ts.map +1 -0
  24. package/dist/operations/search.js +174 -0
  25. package/dist/operations/search.js.map +1 -0
  26. package/dist/operations/sprints.d.ts +54 -0
  27. package/dist/operations/sprints.d.ts.map +1 -0
  28. package/dist/operations/sprints.js +196 -0
  29. package/dist/operations/sprints.js.map +1 -0
  30. package/dist/operations/transitions.d.ts +41 -0
  31. package/dist/operations/transitions.d.ts.map +1 -0
  32. package/dist/operations/transitions.js +135 -0
  33. package/dist/operations/transitions.js.map +1 -0
  34. package/dist/plugin.d.ts +221 -0
  35. package/dist/plugin.d.ts.map +1 -0
  36. package/dist/plugin.js +403 -0
  37. package/dist/plugin.js.map +1 -0
  38. package/dist/types/config.d.ts +149 -0
  39. package/dist/types/config.d.ts.map +1 -0
  40. package/dist/types/config.js +33 -0
  41. package/dist/types/config.js.map +1 -0
  42. package/dist/types/custom-fields.d.ts +48 -0
  43. package/dist/types/custom-fields.d.ts.map +1 -0
  44. package/dist/types/custom-fields.js +2 -0
  45. package/dist/types/custom-fields.js.map +1 -0
  46. package/dist/types/events.d.ts +250 -0
  47. package/dist/types/events.d.ts.map +1 -0
  48. package/dist/types/events.js +2 -0
  49. package/dist/types/events.js.map +1 -0
  50. package/dist/types/index.d.ts +9 -0
  51. package/dist/types/index.d.ts.map +1 -0
  52. package/dist/types/index.js +2 -0
  53. package/dist/types/index.js.map +1 -0
  54. package/dist/types/issues.d.ts +139 -0
  55. package/dist/types/issues.d.ts.map +1 -0
  56. package/dist/types/issues.js +2 -0
  57. package/dist/types/issues.js.map +1 -0
  58. package/dist/types/projects.d.ts +48 -0
  59. package/dist/types/projects.d.ts.map +1 -0
  60. package/dist/types/projects.js +2 -0
  61. package/dist/types/projects.js.map +1 -0
  62. package/dist/types/sprints.d.ts +26 -0
  63. package/dist/types/sprints.d.ts.map +1 -0
  64. package/dist/types/sprints.js +2 -0
  65. package/dist/types/sprints.js.map +1 -0
  66. package/dist/types/workflows.d.ts +60 -0
  67. package/dist/types/workflows.d.ts.map +1 -0
  68. package/dist/types/workflows.js +2 -0
  69. package/dist/types/workflows.js.map +1 -0
  70. package/dist/utils/adf.d.ts +26 -0
  71. package/dist/utils/adf.d.ts.map +1 -0
  72. package/dist/utils/adf.js +104 -0
  73. package/dist/utils/adf.js.map +1 -0
  74. package/dist/utils/errors.d.ts +60 -0
  75. package/dist/utils/errors.d.ts.map +1 -0
  76. package/dist/utils/errors.js +117 -0
  77. package/dist/utils/errors.js.map +1 -0
  78. package/dist/utils/jql-builder.d.ts +148 -0
  79. package/dist/utils/jql-builder.d.ts.map +1 -0
  80. package/dist/utils/jql-builder.js +264 -0
  81. package/dist/utils/jql-builder.js.map +1 -0
  82. package/dist/utils/validation.d.ts +31 -0
  83. package/dist/utils/validation.d.ts.map +1 -0
  84. package/dist/utils/validation.js +75 -0
  85. package/dist/utils/validation.js.map +1 -0
  86. package/dist/webhooks/handler.d.ts +80 -0
  87. package/dist/webhooks/handler.d.ts.map +1 -0
  88. package/dist/webhooks/handler.js +130 -0
  89. package/dist/webhooks/handler.js.map +1 -0
  90. package/dist/webhooks/parser.d.ts +34 -0
  91. package/dist/webhooks/parser.d.ts.map +1 -0
  92. package/dist/webhooks/parser.js +155 -0
  93. package/dist/webhooks/parser.js.map +1 -0
  94. package/dist/webhooks/types.d.ts +94 -0
  95. package/dist/webhooks/types.d.ts.map +1 -0
  96. package/dist/webhooks/types.js +2 -0
  97. package/dist/webhooks/types.js.map +1 -0
  98. package/dist/webhooks/verify.d.ts +53 -0
  99. package/dist/webhooks/verify.d.ts.map +1 -0
  100. package/dist/webhooks/verify.js +140 -0
  101. package/dist/webhooks/verify.js.map +1 -0
  102. package/package.json +58 -0
@@ -0,0 +1,250 @@
1
+ /**
2
+ * ADF (Atlassian Document Format) text node mark types
3
+ */
4
+ export type AdfMark = {
5
+ type: 'strong';
6
+ } | {
7
+ type: 'em';
8
+ } | {
9
+ type: 'code';
10
+ } | {
11
+ type: 'strike';
12
+ } | {
13
+ type: 'underline';
14
+ } | {
15
+ type: 'link';
16
+ attrs: {
17
+ href: string;
18
+ title?: string;
19
+ };
20
+ } | {
21
+ type: 'textColor';
22
+ attrs: {
23
+ color: string;
24
+ };
25
+ } | {
26
+ type: 'subsup';
27
+ attrs: {
28
+ type: 'sub' | 'sup';
29
+ };
30
+ };
31
+ /**
32
+ * ADF text node
33
+ */
34
+ export interface AdfTextNode {
35
+ type: 'text';
36
+ text: string;
37
+ marks?: AdfMark[];
38
+ }
39
+ /**
40
+ * ADF hard break node
41
+ */
42
+ export interface AdfHardBreak {
43
+ type: 'hardBreak';
44
+ }
45
+ /**
46
+ * ADF mention node
47
+ */
48
+ export interface AdfMention {
49
+ type: 'mention';
50
+ attrs: {
51
+ id: string;
52
+ text: string;
53
+ accessLevel?: string;
54
+ };
55
+ }
56
+ /**
57
+ * ADF emoji node
58
+ */
59
+ export interface AdfEmoji {
60
+ type: 'emoji';
61
+ attrs: {
62
+ shortName: string;
63
+ id?: string;
64
+ text?: string;
65
+ };
66
+ }
67
+ /**
68
+ * ADF inline card node
69
+ */
70
+ export interface AdfInlineCard {
71
+ type: 'inlineCard';
72
+ attrs: {
73
+ url: string;
74
+ };
75
+ }
76
+ /**
77
+ * ADF inline node types
78
+ */
79
+ export type AdfInlineNode = AdfTextNode | AdfHardBreak | AdfMention | AdfEmoji | AdfInlineCard;
80
+ /**
81
+ * ADF paragraph node
82
+ */
83
+ export interface AdfParagraph {
84
+ type: 'paragraph';
85
+ content?: AdfInlineNode[];
86
+ }
87
+ /**
88
+ * ADF heading node
89
+ */
90
+ export interface AdfHeading {
91
+ type: 'heading';
92
+ attrs: {
93
+ level: 1 | 2 | 3 | 4 | 5 | 6;
94
+ };
95
+ content?: AdfInlineNode[];
96
+ }
97
+ /**
98
+ * ADF code block node
99
+ */
100
+ export interface AdfCodeBlock {
101
+ type: 'codeBlock';
102
+ attrs?: {
103
+ language?: string;
104
+ };
105
+ content?: AdfTextNode[];
106
+ }
107
+ /**
108
+ * ADF list item node
109
+ */
110
+ export interface AdfListItem {
111
+ type: 'listItem';
112
+ content: AdfNode[];
113
+ }
114
+ /**
115
+ * ADF bullet list node
116
+ */
117
+ export interface AdfBulletList {
118
+ type: 'bulletList';
119
+ content: AdfListItem[];
120
+ }
121
+ /**
122
+ * ADF ordered list node
123
+ */
124
+ export interface AdfOrderedList {
125
+ type: 'orderedList';
126
+ attrs?: {
127
+ order?: number;
128
+ };
129
+ content: AdfListItem[];
130
+ }
131
+ /**
132
+ * ADF table cell node
133
+ */
134
+ export interface AdfTableCell {
135
+ type: 'tableCell' | 'tableHeader';
136
+ attrs?: {
137
+ colspan?: number;
138
+ rowspan?: number;
139
+ colwidth?: number[];
140
+ background?: string;
141
+ };
142
+ content: AdfNode[];
143
+ }
144
+ /**
145
+ * ADF table row node
146
+ */
147
+ export interface AdfTableRow {
148
+ type: 'tableRow';
149
+ content: AdfTableCell[];
150
+ }
151
+ /**
152
+ * ADF table node
153
+ */
154
+ export interface AdfTable {
155
+ type: 'table';
156
+ attrs?: {
157
+ isNumberColumnEnabled?: boolean;
158
+ layout?: 'default' | 'wide' | 'full-width';
159
+ };
160
+ content: AdfTableRow[];
161
+ }
162
+ /**
163
+ * ADF panel node
164
+ */
165
+ export interface AdfPanel {
166
+ type: 'panel';
167
+ attrs: {
168
+ panelType: 'info' | 'note' | 'warning' | 'success' | 'error';
169
+ };
170
+ content: AdfNode[];
171
+ }
172
+ /**
173
+ * ADF blockquote node
174
+ */
175
+ export interface AdfBlockquote {
176
+ type: 'blockquote';
177
+ content: AdfNode[];
178
+ }
179
+ /**
180
+ * ADF rule (horizontal line) node
181
+ */
182
+ export interface AdfRule {
183
+ type: 'rule';
184
+ }
185
+ /**
186
+ * ADF media single node
187
+ */
188
+ export interface AdfMediaSingle {
189
+ type: 'mediaSingle';
190
+ attrs?: {
191
+ layout?: 'center' | 'wrap-left' | 'wrap-right' | 'wide' | 'full-width';
192
+ };
193
+ content: AdfMedia[];
194
+ }
195
+ /**
196
+ * ADF media node
197
+ */
198
+ export interface AdfMedia {
199
+ type: 'media';
200
+ attrs: {
201
+ id: string;
202
+ type: 'file' | 'link' | 'external';
203
+ collection: string;
204
+ width?: number;
205
+ height?: number;
206
+ };
207
+ }
208
+ /**
209
+ * All ADF block node types
210
+ */
211
+ export type AdfNode = AdfParagraph | AdfHeading | AdfCodeBlock | AdfBulletList | AdfOrderedList | AdfTable | AdfPanel | AdfBlockquote | AdfRule | AdfMediaSingle;
212
+ /**
213
+ * ADF document structure
214
+ */
215
+ export interface AdfDocument {
216
+ version: 1;
217
+ type: 'doc';
218
+ content: AdfNode[];
219
+ }
220
+ /**
221
+ * Jira comment with visibility options
222
+ */
223
+ export interface JiraComment {
224
+ id: string;
225
+ self: string;
226
+ author: {
227
+ accountId: string;
228
+ displayName: string;
229
+ avatarUrls: Record<string, string>;
230
+ };
231
+ body: AdfDocument;
232
+ created: string;
233
+ updated: string;
234
+ visibility: CommentVisibility | null;
235
+ }
236
+ /**
237
+ * Comment visibility restriction
238
+ */
239
+ export interface CommentVisibility {
240
+ type: 'group' | 'role';
241
+ value: string;
242
+ }
243
+ /**
244
+ * Parameters for adding a comment
245
+ */
246
+ export interface AddCommentParams {
247
+ body: string | AdfDocument;
248
+ visibility?: CommentVisibility;
249
+ }
250
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,OAAO,GACf;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClB;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,GACd;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClB;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GACrB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GACzD;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GAC/C;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE;QAAE,IAAI,EAAE,KAAK,GAAG,KAAK,CAAA;KAAE,CAAA;CAAE,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,WAAW,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAA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OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAChC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ export type { JiraConfig, ValidatedJiraConfig, } from './config.js';
2
+ export { JiraConfigSchema, IssueTypeMappingSchema, WorkflowMappingSchema, } from './config.js';
3
+ export type { JiraUser, IssueType, Priority, IssueRef, Component, IssueLink, JiraIssue, CreateJiraIssueParams, UpdateJiraIssueParams, SearchOptions, } from './issues.js';
4
+ export type { ProjectRef, Project, Board, } from './projects.js';
5
+ export type { SprintState, Sprint, AddToSprintParams, } from './sprints.js';
6
+ export type { StatusCategory, JiraStatus, FieldSchema, TransitionField, Transition, TransitionParams, } from './workflows.js';
7
+ export type { CustomFieldType, CustomField, CustomFieldOption, CustomFieldContext, SetCustomFieldParams, } from './custom-fields.js';
8
+ export type { AdfMark, AdfTextNode, AdfHardBreak, AdfMention, AdfEmoji, AdfInlineCard, AdfInlineNode, AdfParagraph, AdfHeading, AdfCodeBlock, AdfListItem, AdfBulletList, AdfOrderedList, AdfTableCell, AdfTableRow, AdfTable, AdfPanel, AdfBlockquote, AdfRule, AdfMediaSingle, AdfMedia, AdfNode, AdfDocument, JiraComment, CommentVisibility, AddCommentParams, } from './events.js';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,UAAU,EACV,mBAAmB,GACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAGrB,YAAY,EACV,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAS,EACT,SAAS,EACT,qBAAqB,EACrB,qBAAqB,EACrB,aAAa,GACd,MAAM,aAAa,CAAC;AAGrB,YAAY,EACV,UAAU,EACV,OAAO,EACP,KAAK,GACN,MAAM,eAAe,CAAC;AAGvB,YAAY,EACV,WAAW,EACX,MAAM,EACN,iBAAiB,GAClB,MAAM,cAAc,CAAC;AAGtB,YAAY,EACV,cAAc,EACd,UAAU,EACV,WAAW,EACX,eAAe,EACf,UAAU,EACV,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EACV,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAG5B,YAAY,EACV,OAAO,EACP,WAAW,EACX,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,aAAa,EACb,aAAa,EACb,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,aAAa,EACb,cAAc,EACd,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,OAAO,EACP,cAAc,EACd,QAAQ,EACR,OAAO,EACP,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { JiraConfigSchema, IssueTypeMappingSchema, WorkflowMappingSchema, } from './config.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,aAAa,CAAC"}
@@ -0,0 +1,139 @@
1
+ import type { AdfDocument } from './events.js';
2
+ import type { JiraStatus } from './workflows.js';
3
+ import type { Sprint } from './sprints.js';
4
+ import type { ProjectRef } from './projects.js';
5
+ /**
6
+ * Jira user representation
7
+ */
8
+ export interface JiraUser {
9
+ accountId: string;
10
+ displayName: string;
11
+ emailAddress: string | null;
12
+ avatarUrls: {
13
+ '16x16': string;
14
+ '24x24': string;
15
+ '32x32': string;
16
+ '48x48': string;
17
+ };
18
+ active: boolean;
19
+ }
20
+ /**
21
+ * Issue type definition
22
+ */
23
+ export interface IssueType {
24
+ id: string;
25
+ name: string;
26
+ description: string;
27
+ iconUrl: string;
28
+ subtask: boolean;
29
+ hierarchyLevel: number;
30
+ }
31
+ /**
32
+ * Issue priority
33
+ */
34
+ export interface Priority {
35
+ id: string;
36
+ name: string;
37
+ iconUrl: string;
38
+ }
39
+ /**
40
+ * Reference to another issue (lightweight)
41
+ */
42
+ export interface IssueRef {
43
+ id: string;
44
+ key: string;
45
+ self: string;
46
+ }
47
+ /**
48
+ * Component reference
49
+ */
50
+ export interface Component {
51
+ id: string;
52
+ name: string;
53
+ description?: string;
54
+ }
55
+ /**
56
+ * Issue link relationship
57
+ */
58
+ export interface IssueLink {
59
+ id: string;
60
+ type: {
61
+ id: string;
62
+ name: string;
63
+ inward: string;
64
+ outward: string;
65
+ };
66
+ inwardIssue?: IssueRef;
67
+ outwardIssue?: IssueRef;
68
+ }
69
+ /**
70
+ * Full Jira issue representation
71
+ */
72
+ export interface JiraIssue {
73
+ id: string;
74
+ key: string;
75
+ self: string;
76
+ summary: string;
77
+ description: AdfDocument | null;
78
+ status: JiraStatus;
79
+ issueType: IssueType;
80
+ priority: Priority;
81
+ reporter: JiraUser;
82
+ assignee: JiraUser | null;
83
+ project: ProjectRef;
84
+ parent: IssueRef | null;
85
+ subtasks: IssueRef[];
86
+ linkedIssues: IssueLink[];
87
+ created: string;
88
+ updated: string;
89
+ dueDate: string | null;
90
+ sprint: Sprint | null;
91
+ labels: string[];
92
+ components: Component[];
93
+ customFields: Record<string, unknown>;
94
+ }
95
+ /**
96
+ * Parameters for creating a new issue
97
+ */
98
+ export interface CreateJiraIssueParams {
99
+ projectKey: string;
100
+ summary: string;
101
+ description?: string | AdfDocument;
102
+ issueType: string;
103
+ priority?: string;
104
+ assignee?: string;
105
+ labels?: string[];
106
+ components?: string[];
107
+ dueDate?: string;
108
+ parentKey?: string;
109
+ customFields?: Record<string, unknown>;
110
+ }
111
+ /**
112
+ * Parameters for updating an issue
113
+ */
114
+ export interface UpdateJiraIssueParams {
115
+ summary?: string;
116
+ description?: string | AdfDocument;
117
+ priority?: string;
118
+ assignee?: string | null;
119
+ labels?: string[];
120
+ components?: string[];
121
+ dueDate?: string | null;
122
+ customFields?: Record<string, unknown>;
123
+ }
124
+ /**
125
+ * JQL search options
126
+ */
127
+ export interface SearchOptions {
128
+ /** Fields to include in response */
129
+ fields?: string[];
130
+ /** Expand additional data (changelog, names, etc.) */
131
+ expand?: string[];
132
+ /** Page size (default: 50, max: 100) */
133
+ pageSize?: number;
134
+ /** Starting index (for manual pagination) */
135
+ startAt?: number;
136
+ /** Validate JQL syntax before searching */
137
+ validateQuery?: boolean;
138
+ }
139
+ //# sourceMappingURL=issues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issues.d.ts","sourceRoot":"","sources":["../../src/types/issues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM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OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=issues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issues.js","sourceRoot":"","sources":["../../src/types/issues.ts"],"names":[],"mappings":""}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Project reference (lightweight)
3
+ */
4
+ export interface ProjectRef {
5
+ id: string;
6
+ key: string;
7
+ name: string;
8
+ self: string;
9
+ }
10
+ /**
11
+ * Full project representation
12
+ */
13
+ export interface Project {
14
+ id: string;
15
+ key: string;
16
+ name: string;
17
+ self: string;
18
+ description?: string;
19
+ lead?: {
20
+ accountId: string;
21
+ displayName: string;
22
+ };
23
+ projectTypeKey: string;
24
+ simplified: boolean;
25
+ style: 'classic' | 'next-gen';
26
+ isPrivate: boolean;
27
+ avatarUrls: {
28
+ '16x16': string;
29
+ '24x24': string;
30
+ '32x32': string;
31
+ '48x48': string;
32
+ };
33
+ }
34
+ /**
35
+ * Agile board representation
36
+ */
37
+ export interface Board {
38
+ id: number;
39
+ self: string;
40
+ name: string;
41
+ type: 'scrum' | 'kanban' | 'simple';
42
+ location?: {
43
+ projectId: number;
44
+ projectKey: string;
45
+ projectName: string;
46
+ };
47
+ }
48
+ //# sourceMappingURL=projects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/types/projects.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE;QACL,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,SAAS,GAAG,UAAU,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE;QACV,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACpC,QAAQ,CAAC,EAAE;QACT,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=projects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projects.js","sourceRoot":"","sources":["../../src/types/projects.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Sprint state
3
+ */
4
+ export type SprintState = 'active' | 'closed' | 'future';
5
+ /**
6
+ * Sprint representation
7
+ */
8
+ export interface Sprint {
9
+ id: number;
10
+ self: string;
11
+ state: SprintState;
12
+ name: string;
13
+ startDate: string | null;
14
+ endDate: string | null;
15
+ completeDate: string | null;
16
+ originBoardId: number;
17
+ goal: string | null;
18
+ }
19
+ /**
20
+ * Parameters for adding an issue to a sprint
21
+ */
22
+ export interface AddToSprintParams {
23
+ issueKey: string;
24
+ sprintId: number;
25
+ }
26
+ //# sourceMappingURL=sprints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sprints.d.ts","sourceRoot":"","sources":["../../src/types/sprints.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,WAAW,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sprints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sprints.js","sourceRoot":"","sources":["../../src/types/sprints.ts"],"names":[],"mappings":""}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Status category (groups statuses into logical categories)
3
+ */
4
+ export interface StatusCategory {
5
+ id: number;
6
+ key: 'new' | 'indeterminate' | 'done';
7
+ name: string;
8
+ colorName: string;
9
+ }
10
+ /**
11
+ * Jira status representation
12
+ */
13
+ export interface JiraStatus {
14
+ id: string;
15
+ name: string;
16
+ description: string | null;
17
+ statusCategory: StatusCategory;
18
+ }
19
+ /**
20
+ * Field schema for transition fields
21
+ */
22
+ export interface FieldSchema {
23
+ type: string;
24
+ items?: string;
25
+ custom?: string;
26
+ customId?: number;
27
+ system?: string;
28
+ }
29
+ /**
30
+ * Field definition for transition screens
31
+ */
32
+ export interface TransitionField {
33
+ required: boolean;
34
+ schema: FieldSchema;
35
+ name: string;
36
+ operations: string[];
37
+ allowedValues?: unknown[];
38
+ }
39
+ /**
40
+ * Workflow transition representation
41
+ */
42
+ export interface Transition {
43
+ id: string;
44
+ name: string;
45
+ to: JiraStatus;
46
+ hasScreen: boolean;
47
+ isGlobal: boolean;
48
+ isInitial: boolean;
49
+ isConditional: boolean;
50
+ fields?: Record<string, TransitionField>;
51
+ }
52
+ /**
53
+ * Parameters for executing a transition
54
+ */
55
+ export interface TransitionParams {
56
+ transitionId: string;
57
+ fields?: Record<string, unknown>;
58
+ comment?: string;
59
+ }
60
+ //# sourceMappingURL=workflows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/types/workflows.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,KAAK,G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URL=workflows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflows.js","sourceRoot":"","sources":["../../src/types/workflows.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ import type { AdfDocument, AdfParagraph } from '../types/events.js';
2
+ /**
3
+ * Check if a value is an ADF document
4
+ */
5
+ export declare function isAdfDocument(value: unknown): value is AdfDocument;
6
+ /**
7
+ * Convert plain text to ADF document
8
+ */
9
+ export declare function textToAdf(text: string): AdfDocument;
10
+ /**
11
+ * Convert ADF document to plain text
12
+ */
13
+ export declare function adfToText(doc: AdfDocument): string;
14
+ /**
15
+ * Ensure a value is an ADF document, converting from string if necessary
16
+ */
17
+ export declare function ensureAdf(value: string | AdfDocument): AdfDocument;
18
+ /**
19
+ * Create a simple ADF paragraph with text
20
+ */
21
+ export declare function createAdfParagraph(text: string): AdfParagraph;
22
+ /**
23
+ * Create an ADF document with a single paragraph
24
+ */
25
+ export declare function createSimpleAdf(text: string): AdfDocument;
26
+ //# sourceMappingURL=adf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adf.d.ts","sourceRoot":"","sources":["../../src/utils/adf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAwB,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAE1F;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,WAAW,CAWlE;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAkCnD;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,WAAW,GAAG,MAAM,CA+BlD;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,GAAG,WAAW,CAKlE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAK7D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAMzD"}