@corsair-dev/jira 0.1.0

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 (39) hide show
  1. package/LICENSE +191 -0
  2. package/dist/client.d.ts +41 -0
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/endpoints/comments.d.ts +7 -0
  5. package/dist/endpoints/comments.d.ts.map +1 -0
  6. package/dist/endpoints/index.d.ts +582 -0
  7. package/dist/endpoints/index.d.ts.map +1 -0
  8. package/dist/endpoints/issues.d.ts +16 -0
  9. package/dist/endpoints/issues.d.ts.map +1 -0
  10. package/dist/endpoints/projects.d.ts +6 -0
  11. package/dist/endpoints/projects.d.ts.map +1 -0
  12. package/dist/endpoints/sprints.d.ts +6 -0
  13. package/dist/endpoints/sprints.d.ts.map +1 -0
  14. package/dist/endpoints/types.d.ts +5540 -0
  15. package/dist/endpoints/types.d.ts.map +1 -0
  16. package/dist/endpoints/users.d.ts +7 -0
  17. package/dist/endpoints/users.d.ts.map +1 -0
  18. package/dist/error-handlers.d.ts +28 -0
  19. package/dist/error-handlers.d.ts.map +1 -0
  20. package/dist/index.d.ts +3028 -0
  21. package/dist/index.d.ts.map +1 -0
  22. package/dist/index.js +1 -0
  23. package/dist/schema/database.d.ts +197 -0
  24. package/dist/schema/database.d.ts.map +1 -0
  25. package/dist/schema/index.d.ts +196 -0
  26. package/dist/schema/index.d.ts.map +1 -0
  27. package/dist/tsup.config.d.ts +3 -0
  28. package/dist/tsup.config.d.ts.map +1 -0
  29. package/dist/webhooks/index.d.ts +274 -0
  30. package/dist/webhooks/index.d.ts.map +1 -0
  31. package/dist/webhooks/newIssue.d.ts +3 -0
  32. package/dist/webhooks/newIssue.d.ts.map +1 -0
  33. package/dist/webhooks/newProject.d.ts +3 -0
  34. package/dist/webhooks/newProject.d.ts.map +1 -0
  35. package/dist/webhooks/types.d.ts +1818 -0
  36. package/dist/webhooks/types.d.ts.map +1 -0
  37. package/dist/webhooks/updatedIssue.d.ts +3 -0
  38. package/dist/webhooks/updatedIssue.d.ts.map +1 -0
  39. package/package.json +40 -0
@@ -0,0 +1,274 @@
1
+ export declare const IssueWebhooks: {
2
+ newIssue: {
3
+ match: import("corsair/core").CorsairWebhookMatcher;
4
+ handler: import("corsair/core").CorsairWebhookHandler<import("..").JiraContext, {
5
+ webhookEvent: "jira:issue_created";
6
+ timestamp?: number | undefined;
7
+ issue?: {
8
+ key?: string | undefined;
9
+ id?: string | undefined;
10
+ self?: string | undefined;
11
+ fields?: {
12
+ priority?: {
13
+ id?: string | undefined;
14
+ name?: string | undefined;
15
+ } | null | undefined;
16
+ status?: {
17
+ id?: string | undefined;
18
+ name?: string | undefined;
19
+ statusCategory?: {
20
+ key?: string | undefined;
21
+ name?: string | undefined;
22
+ } | undefined;
23
+ } | undefined;
24
+ summary?: string | undefined;
25
+ assignee?: {
26
+ accountId?: string | undefined;
27
+ displayName?: string | undefined;
28
+ emailAddress?: string | undefined;
29
+ } | null | undefined;
30
+ reporter?: {
31
+ accountId?: string | undefined;
32
+ displayName?: string | undefined;
33
+ emailAddress?: string | undefined;
34
+ } | undefined;
35
+ issuetype?: {
36
+ id?: string | undefined;
37
+ name?: string | undefined;
38
+ subtask?: boolean | undefined;
39
+ } | undefined;
40
+ project?: {
41
+ key?: string | undefined;
42
+ id?: string | undefined;
43
+ name?: string | undefined;
44
+ } | undefined;
45
+ labels?: string[] | undefined;
46
+ created?: string | undefined;
47
+ updated?: string | undefined;
48
+ } | undefined;
49
+ } | undefined;
50
+ user?: {
51
+ accountId?: string | undefined;
52
+ displayName?: string | undefined;
53
+ emailAddress?: string | undefined;
54
+ } | undefined;
55
+ }, {
56
+ webhookEvent: "jira:issue_created";
57
+ timestamp?: number | undefined;
58
+ issue?: {
59
+ key?: string | undefined;
60
+ id?: string | undefined;
61
+ self?: string | undefined;
62
+ fields?: {
63
+ priority?: {
64
+ id?: string | undefined;
65
+ name?: string | undefined;
66
+ } | null | undefined;
67
+ status?: {
68
+ id?: string | undefined;
69
+ name?: string | undefined;
70
+ statusCategory?: {
71
+ key?: string | undefined;
72
+ name?: string | undefined;
73
+ } | undefined;
74
+ } | undefined;
75
+ summary?: string | undefined;
76
+ assignee?: {
77
+ accountId?: string | undefined;
78
+ displayName?: string | undefined;
79
+ emailAddress?: string | undefined;
80
+ } | null | undefined;
81
+ reporter?: {
82
+ accountId?: string | undefined;
83
+ displayName?: string | undefined;
84
+ emailAddress?: string | undefined;
85
+ } | undefined;
86
+ issuetype?: {
87
+ id?: string | undefined;
88
+ name?: string | undefined;
89
+ subtask?: boolean | undefined;
90
+ } | undefined;
91
+ project?: {
92
+ key?: string | undefined;
93
+ id?: string | undefined;
94
+ name?: string | undefined;
95
+ } | undefined;
96
+ labels?: string[] | undefined;
97
+ created?: string | undefined;
98
+ updated?: string | undefined;
99
+ } | undefined;
100
+ } | undefined;
101
+ user?: {
102
+ accountId?: string | undefined;
103
+ displayName?: string | undefined;
104
+ emailAddress?: string | undefined;
105
+ } | undefined;
106
+ }>;
107
+ };
108
+ updatedIssue: {
109
+ match: import("corsair/core").CorsairWebhookMatcher;
110
+ handler: import("corsair/core").CorsairWebhookHandler<import("..").JiraContext, {
111
+ webhookEvent: "jira:issue_updated";
112
+ timestamp?: number | undefined;
113
+ issue?: {
114
+ key?: string | undefined;
115
+ id?: string | undefined;
116
+ self?: string | undefined;
117
+ fields?: {
118
+ priority?: {
119
+ id?: string | undefined;
120
+ name?: string | undefined;
121
+ } | null | undefined;
122
+ status?: {
123
+ id?: string | undefined;
124
+ name?: string | undefined;
125
+ statusCategory?: {
126
+ key?: string | undefined;
127
+ name?: string | undefined;
128
+ } | undefined;
129
+ } | undefined;
130
+ summary?: string | undefined;
131
+ assignee?: {
132
+ accountId?: string | undefined;
133
+ displayName?: string | undefined;
134
+ emailAddress?: string | undefined;
135
+ } | null | undefined;
136
+ reporter?: {
137
+ accountId?: string | undefined;
138
+ displayName?: string | undefined;
139
+ emailAddress?: string | undefined;
140
+ } | undefined;
141
+ issuetype?: {
142
+ id?: string | undefined;
143
+ name?: string | undefined;
144
+ subtask?: boolean | undefined;
145
+ } | undefined;
146
+ project?: {
147
+ key?: string | undefined;
148
+ id?: string | undefined;
149
+ name?: string | undefined;
150
+ } | undefined;
151
+ labels?: string[] | undefined;
152
+ updated?: string | undefined;
153
+ } | undefined;
154
+ } | undefined;
155
+ user?: {
156
+ accountId?: string | undefined;
157
+ displayName?: string | undefined;
158
+ emailAddress?: string | undefined;
159
+ } | undefined;
160
+ changelog?: {
161
+ id?: string | undefined;
162
+ items?: {
163
+ from?: string | null | undefined;
164
+ toString?: string | null | undefined;
165
+ to?: string | null | undefined;
166
+ field?: string | undefined;
167
+ fieldtype?: string | undefined;
168
+ fromString?: string | null | undefined;
169
+ }[] | undefined;
170
+ } | undefined;
171
+ }, {
172
+ webhookEvent: "jira:issue_updated";
173
+ timestamp?: number | undefined;
174
+ issue?: {
175
+ key?: string | undefined;
176
+ id?: string | undefined;
177
+ self?: string | undefined;
178
+ fields?: {
179
+ priority?: {
180
+ id?: string | undefined;
181
+ name?: string | undefined;
182
+ } | null | undefined;
183
+ status?: {
184
+ id?: string | undefined;
185
+ name?: string | undefined;
186
+ statusCategory?: {
187
+ key?: string | undefined;
188
+ name?: string | undefined;
189
+ } | undefined;
190
+ } | undefined;
191
+ summary?: string | undefined;
192
+ assignee?: {
193
+ accountId?: string | undefined;
194
+ displayName?: string | undefined;
195
+ emailAddress?: string | undefined;
196
+ } | null | undefined;
197
+ reporter?: {
198
+ accountId?: string | undefined;
199
+ displayName?: string | undefined;
200
+ emailAddress?: string | undefined;
201
+ } | undefined;
202
+ issuetype?: {
203
+ id?: string | undefined;
204
+ name?: string | undefined;
205
+ subtask?: boolean | undefined;
206
+ } | undefined;
207
+ project?: {
208
+ key?: string | undefined;
209
+ id?: string | undefined;
210
+ name?: string | undefined;
211
+ } | undefined;
212
+ labels?: string[] | undefined;
213
+ updated?: string | undefined;
214
+ } | undefined;
215
+ } | undefined;
216
+ user?: {
217
+ accountId?: string | undefined;
218
+ displayName?: string | undefined;
219
+ emailAddress?: string | undefined;
220
+ } | undefined;
221
+ changelog?: {
222
+ id?: string | undefined;
223
+ items?: {
224
+ from?: string | null | undefined;
225
+ toString?: string | null | undefined;
226
+ to?: string | null | undefined;
227
+ field?: string | undefined;
228
+ fieldtype?: string | undefined;
229
+ fromString?: string | null | undefined;
230
+ }[] | undefined;
231
+ } | undefined;
232
+ }>;
233
+ };
234
+ };
235
+ export declare const ProjectWebhooks: {
236
+ newProject: {
237
+ match: import("corsair/core").CorsairWebhookMatcher;
238
+ handler: import("corsair/core").CorsairWebhookHandler<import("..").JiraContext, {
239
+ webhookEvent: "project_created";
240
+ project?: {
241
+ key?: string | undefined;
242
+ id?: string | undefined;
243
+ name?: string | undefined;
244
+ description?: string | undefined;
245
+ self?: string | undefined;
246
+ projectTypeKey?: string | undefined;
247
+ lead?: {
248
+ accountId?: string | undefined;
249
+ displayName?: string | undefined;
250
+ emailAddress?: string | undefined;
251
+ } | undefined;
252
+ } | undefined;
253
+ timestamp?: number | undefined;
254
+ }, {
255
+ webhookEvent: "project_created";
256
+ project?: {
257
+ key?: string | undefined;
258
+ id?: string | undefined;
259
+ name?: string | undefined;
260
+ description?: string | undefined;
261
+ self?: string | undefined;
262
+ projectTypeKey?: string | undefined;
263
+ lead?: {
264
+ accountId?: string | undefined;
265
+ displayName?: string | undefined;
266
+ emailAddress?: string | undefined;
267
+ } | undefined;
268
+ } | undefined;
269
+ timestamp?: number | undefined;
270
+ }>;
271
+ };
272
+ };
273
+ export * from './types';
274
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../webhooks/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGzB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAE3B,CAAC;AAEF,cAAc,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { JiraWebhooks } from '..';
2
+ export declare const newIssue: JiraWebhooks['newIssue'];
3
+ //# sourceMappingURL=newIssue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"newIssue.d.ts","sourceRoot":"","sources":["../../webhooks/newIssue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAIvC,eAAO,MAAM,QAAQ,EAAE,YAAY,CAAC,UAAU,CA8D7C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { JiraWebhooks } from '..';
2
+ export declare const newProject: JiraWebhooks['newProject'];
3
+ //# sourceMappingURL=newProject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"newProject.d.ts","sourceRoot":"","sources":["../../webhooks/newProject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAIvC,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,YAAY,CAqDjD,CAAC"}