jiradc-cli 0.0.1

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 (157) hide show
  1. package/dist/commands/board/index.d.ts +3 -0
  2. package/dist/commands/board/index.d.ts.map +1 -0
  3. package/dist/commands/board/index.js +8 -0
  4. package/dist/commands/board/index.js.map +1 -0
  5. package/dist/commands/board/issues.d.ts +3 -0
  6. package/dist/commands/board/issues.d.ts.map +1 -0
  7. package/dist/commands/board/issues.js +23 -0
  8. package/dist/commands/board/issues.js.map +1 -0
  9. package/dist/commands/board/list.d.ts +3 -0
  10. package/dist/commands/board/list.d.ts.map +1 -0
  11. package/dist/commands/board/list.js +20 -0
  12. package/dist/commands/board/list.js.map +1 -0
  13. package/dist/commands/field/index.d.ts +3 -0
  14. package/dist/commands/field/index.d.ts.map +1 -0
  15. package/dist/commands/field/index.js +8 -0
  16. package/dist/commands/field/index.js.map +1 -0
  17. package/dist/commands/field/options.d.ts +3 -0
  18. package/dist/commands/field/options.d.ts.map +1 -0
  19. package/dist/commands/field/options.js +19 -0
  20. package/dist/commands/field/options.js.map +1 -0
  21. package/dist/commands/field/search.d.ts +3 -0
  22. package/dist/commands/field/search.d.ts.map +1 -0
  23. package/dist/commands/field/search.js +19 -0
  24. package/dist/commands/field/search.js.map +1 -0
  25. package/dist/commands/issue/attachments.d.ts +3 -0
  26. package/dist/commands/issue/attachments.d.ts.map +1 -0
  27. package/dist/commands/issue/attachments.js +53 -0
  28. package/dist/commands/issue/attachments.js.map +1 -0
  29. package/dist/commands/issue/batch-create.d.ts +3 -0
  30. package/dist/commands/issue/batch-create.d.ts.map +1 -0
  31. package/dist/commands/issue/batch-create.js +30 -0
  32. package/dist/commands/issue/batch-create.js.map +1 -0
  33. package/dist/commands/issue/changelog.d.ts +3 -0
  34. package/dist/commands/issue/changelog.d.ts.map +1 -0
  35. package/dist/commands/issue/changelog.js +20 -0
  36. package/dist/commands/issue/changelog.js.map +1 -0
  37. package/dist/commands/issue/comment-edit.d.ts +3 -0
  38. package/dist/commands/issue/comment-edit.d.ts.map +1 -0
  39. package/dist/commands/issue/comment-edit.js +21 -0
  40. package/dist/commands/issue/comment-edit.js.map +1 -0
  41. package/dist/commands/issue/comment.d.ts +3 -0
  42. package/dist/commands/issue/comment.d.ts.map +1 -0
  43. package/dist/commands/issue/comment.js +20 -0
  44. package/dist/commands/issue/comment.js.map +1 -0
  45. package/dist/commands/issue/create.d.ts +3 -0
  46. package/dist/commands/issue/create.d.ts.map +1 -0
  47. package/dist/commands/issue/create.js +30 -0
  48. package/dist/commands/issue/create.js.map +1 -0
  49. package/dist/commands/issue/delete.d.ts +3 -0
  50. package/dist/commands/issue/delete.d.ts.map +1 -0
  51. package/dist/commands/issue/delete.js +19 -0
  52. package/dist/commands/issue/delete.js.map +1 -0
  53. package/dist/commands/issue/get.d.ts +3 -0
  54. package/dist/commands/issue/get.d.ts.map +1 -0
  55. package/dist/commands/issue/get.js +23 -0
  56. package/dist/commands/issue/get.js.map +1 -0
  57. package/dist/commands/issue/index.d.ts +3 -0
  58. package/dist/commands/issue/index.d.ts.map +1 -0
  59. package/dist/commands/issue/index.js +32 -0
  60. package/dist/commands/issue/index.js.map +1 -0
  61. package/dist/commands/issue/link-epic.d.ts +3 -0
  62. package/dist/commands/issue/link-epic.d.ts.map +1 -0
  63. package/dist/commands/issue/link-epic.js +23 -0
  64. package/dist/commands/issue/link-epic.js.map +1 -0
  65. package/dist/commands/issue/search.d.ts +3 -0
  66. package/dist/commands/issue/search.d.ts.map +1 -0
  67. package/dist/commands/issue/search.js +25 -0
  68. package/dist/commands/issue/search.js.map +1 -0
  69. package/dist/commands/issue/transition.d.ts +3 -0
  70. package/dist/commands/issue/transition.d.ts.map +1 -0
  71. package/dist/commands/issue/transition.js +21 -0
  72. package/dist/commands/issue/transition.js.map +1 -0
  73. package/dist/commands/issue/transitions.d.ts +3 -0
  74. package/dist/commands/issue/transitions.d.ts.map +1 -0
  75. package/dist/commands/issue/transitions.js +19 -0
  76. package/dist/commands/issue/transitions.js.map +1 -0
  77. package/dist/commands/issue/update.d.ts +3 -0
  78. package/dist/commands/issue/update.d.ts.map +1 -0
  79. package/dist/commands/issue/update.js +21 -0
  80. package/dist/commands/issue/update.js.map +1 -0
  81. package/dist/commands/issue/worklog.d.ts +3 -0
  82. package/dist/commands/issue/worklog.d.ts.map +1 -0
  83. package/dist/commands/issue/worklog.js +25 -0
  84. package/dist/commands/issue/worklog.js.map +1 -0
  85. package/dist/commands/link/create.d.ts +3 -0
  86. package/dist/commands/link/create.d.ts.map +1 -0
  87. package/dist/commands/link/create.js +26 -0
  88. package/dist/commands/link/create.js.map +1 -0
  89. package/dist/commands/link/index.d.ts +3 -0
  90. package/dist/commands/link/index.d.ts.map +1 -0
  91. package/dist/commands/link/index.js +10 -0
  92. package/dist/commands/link/index.js.map +1 -0
  93. package/dist/commands/link/remove.d.ts +3 -0
  94. package/dist/commands/link/remove.d.ts.map +1 -0
  95. package/dist/commands/link/remove.js +19 -0
  96. package/dist/commands/link/remove.js.map +1 -0
  97. package/dist/commands/link/types.d.ts +3 -0
  98. package/dist/commands/link/types.d.ts.map +1 -0
  99. package/dist/commands/link/types.js +19 -0
  100. package/dist/commands/link/types.js.map +1 -0
  101. package/dist/commands/project/index.d.ts +3 -0
  102. package/dist/commands/project/index.d.ts.map +1 -0
  103. package/dist/commands/project/index.js +8 -0
  104. package/dist/commands/project/index.js.map +1 -0
  105. package/dist/commands/project/list.d.ts +3 -0
  106. package/dist/commands/project/list.d.ts.map +1 -0
  107. package/dist/commands/project/list.js +19 -0
  108. package/dist/commands/project/list.js.map +1 -0
  109. package/dist/commands/project/versions.d.ts +3 -0
  110. package/dist/commands/project/versions.d.ts.map +1 -0
  111. package/dist/commands/project/versions.js +19 -0
  112. package/dist/commands/project/versions.js.map +1 -0
  113. package/dist/commands/sprint/create.d.ts +3 -0
  114. package/dist/commands/sprint/create.d.ts.map +1 -0
  115. package/dist/commands/sprint/create.js +24 -0
  116. package/dist/commands/sprint/create.js.map +1 -0
  117. package/dist/commands/sprint/index.d.ts +3 -0
  118. package/dist/commands/sprint/index.d.ts.map +1 -0
  119. package/dist/commands/sprint/index.js +12 -0
  120. package/dist/commands/sprint/index.js.map +1 -0
  121. package/dist/commands/sprint/issues.d.ts +3 -0
  122. package/dist/commands/sprint/issues.d.ts.map +1 -0
  123. package/dist/commands/sprint/issues.js +23 -0
  124. package/dist/commands/sprint/issues.js.map +1 -0
  125. package/dist/commands/sprint/list.d.ts +3 -0
  126. package/dist/commands/sprint/list.d.ts.map +1 -0
  127. package/dist/commands/sprint/list.js +20 -0
  128. package/dist/commands/sprint/list.js.map +1 -0
  129. package/dist/commands/sprint/update.d.ts +3 -0
  130. package/dist/commands/sprint/update.d.ts.map +1 -0
  131. package/dist/commands/sprint/update.js +23 -0
  132. package/dist/commands/sprint/update.js.map +1 -0
  133. package/dist/commands/user/index.d.ts +3 -0
  134. package/dist/commands/user/index.d.ts.map +1 -0
  135. package/dist/commands/user/index.js +6 -0
  136. package/dist/commands/user/index.js.map +1 -0
  137. package/dist/commands/user/me.d.ts +3 -0
  138. package/dist/commands/user/me.d.ts.map +1 -0
  139. package/dist/commands/user/me.js +19 -0
  140. package/dist/commands/user/me.js.map +1 -0
  141. package/dist/index.d.ts +3 -0
  142. package/dist/index.d.ts.map +1 -0
  143. package/dist/index.js +21 -0
  144. package/dist/index.js.map +1 -0
  145. package/dist/utils/client.d.ts +3 -0
  146. package/dist/utils/client.d.ts.map +1 -0
  147. package/dist/utils/client.js +11 -0
  148. package/dist/utils/client.js.map +1 -0
  149. package/dist/utils/output.d.ts +3 -0
  150. package/dist/utils/output.d.ts.map +1 -0
  151. package/dist/utils/output.js +10 -0
  152. package/dist/utils/output.js.map +1 -0
  153. package/dist/utils/strip-response.d.ts +6 -0
  154. package/dist/utils/strip-response.d.ts.map +1 -0
  155. package/dist/utils/strip-response.js +29 -0
  156. package/dist/utils/strip-response.js.map +1 -0
  157. package/package.json +38 -0
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function search(parent: Command): void;
3
+ //# sourceMappingURL=search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,QAuBrC"}
@@ -0,0 +1,25 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output, handleError } from '../../utils/output.js';
3
+ export function search(parent) {
4
+ parent
5
+ .command('search <jql>')
6
+ .description('Search issues using JQL')
7
+ .option('--max <number>', 'Max results (default: 50)', parseInt)
8
+ .option('--fields <fields>', 'Comma-separated fields to return')
9
+ .addHelpText('after', '\nExamples:\n jiradc issue search "project = AI AND status = Open"\n jiradc issue search "assignee = currentUser()" --max 10 --fields summary,status')
10
+ .action(async (jql, opts) => {
11
+ try {
12
+ const client = getClient();
13
+ const result = await client.issues.search({
14
+ jql,
15
+ maxResults: opts.max,
16
+ fields: opts.fields?.split(',').map((f) => f.trim()),
17
+ });
18
+ output(result);
19
+ }
20
+ catch (err) {
21
+ handleError(err);
22
+ }
23
+ });
24
+ }
25
+ //# sourceMappingURL=search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/commands/issue/search.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,cAAc,CAAC;SACvB,WAAW,CAAC,yBAAyB,CAAC;SACtC,MAAM,CAAC,gBAAgB,EAAE,2BAA2B,EAAE,QAAQ,CAAC;SAC/D,MAAM,CAAC,mBAAmB,EAAE,kCAAkC,CAAC;SAC/D,WAAW,CACV,OAAO,EACP,wJAAwJ,CACzJ;SACA,MAAM,CAAC,KAAK,EAAE,GAAW,EAAE,IAAuC,EAAE,EAAE;QACrE,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;gBACxC,GAAG;gBACH,UAAU,EAAE,IAAI,CAAC,GAAG;gBACpB,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;aACrD,CAAC,CAAC;YACH,MAAM,CAAC,MAAM,CAAC,CAAC;QACjB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function transition(parent: Command): void;
3
+ //# sourceMappingURL=transition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/transition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,QAmBzC"}
@@ -0,0 +1,21 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output, handleError } from '../../utils/output.js';
3
+ export function transition(parent) {
4
+ parent
5
+ .command('transition <key>')
6
+ .description('Transition issue to a new status')
7
+ .requiredOption('--to <id>', 'Transition ID (get from "jiradc issue transitions")')
8
+ .option('--comment <text>', 'Comment to add during transition')
9
+ .addHelpText('after', '\nExamples:\n jiradc issue transition AI-73 --to 31\n jiradc issue transition AI-73 --to 31 --comment "Moving to review"')
10
+ .action(async (key, opts) => {
11
+ try {
12
+ const client = getClient();
13
+ await client.issues.transition({ issueKeyOrId: key, transitionId: opts.to, comment: opts.comment });
14
+ output({ transitioned: true, issueKey: key });
15
+ }
16
+ catch (err) {
17
+ handleError(err);
18
+ }
19
+ });
20
+ }
21
+ //# sourceMappingURL=transition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transition.js","sourceRoot":"","sources":["../../../src/commands/issue/transition.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,UAAU,CAAC,MAAe;IACxC,MAAM;SACH,OAAO,CAAC,kBAAkB,CAAC;SAC3B,WAAW,CAAC,kCAAkC,CAAC;SAC/C,cAAc,CAAC,WAAW,EAAE,qDAAqD,CAAC;SAClF,MAAM,CAAC,kBAAkB,EAAE,kCAAkC,CAAC;SAC9D,WAAW,CACV,OAAO,EACP,4HAA4H,CAC7H;SACA,MAAM,CAAC,KAAK,EAAE,GAAW,EAAE,IAAsC,EAAE,EAAE;QACpE,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;YACpG,MAAM,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;QAChD,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function transitions(parent: Command): void;
3
+ //# sourceMappingURL=transitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transitions.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/transitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,QAc1C"}
@@ -0,0 +1,19 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output, handleError } from '../../utils/output.js';
3
+ export function transitions(parent) {
4
+ parent
5
+ .command('transitions <key>')
6
+ .description('Get available transitions for an issue')
7
+ .addHelpText('after', '\nExamples:\n jiradc issue transitions AI-73')
8
+ .action(async (key) => {
9
+ try {
10
+ const client = getClient();
11
+ const result = await client.issues.getTransitions({ issueKeyOrId: key });
12
+ output(result);
13
+ }
14
+ catch (err) {
15
+ handleError(err);
16
+ }
17
+ });
18
+ }
19
+ //# sourceMappingURL=transitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transitions.js","sourceRoot":"","sources":["../../../src/commands/issue/transitions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,WAAW,CAAC,MAAe;IACzC,MAAM;SACH,OAAO,CAAC,mBAAmB,CAAC;SAC5B,WAAW,CAAC,wCAAwC,CAAC;SACrD,WAAW,CAAC,OAAO,EAAE,+CAA+C,CAAC;SACrE,MAAM,CAAC,KAAK,EAAE,GAAW,EAAE,EAAE;QAC5B,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC;YACzE,MAAM,CAAC,MAAM,CAAC,CAAC;QACjB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function update(parent: Command): void;
3
+ //# sourceMappingURL=update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,QAmBrC"}
@@ -0,0 +1,21 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output, handleError } from '../../utils/output.js';
3
+ export function update(parent) {
4
+ parent
5
+ .command('update <key>')
6
+ .description('Update issue fields')
7
+ .requiredOption('--fields <json>', 'JSON string of fields to update')
8
+ .addHelpText('after', `\nExamples:\n jiradc issue update AI-73 --fields '{"summary": "New title"}'\n jiradc issue update AI-73 --fields '{"assignee": {"name": "jsmith"}, "priority": {"name": "High"}}'`)
9
+ .action(async (key, opts) => {
10
+ try {
11
+ const client = getClient();
12
+ const parsed = JSON.parse(opts.fields);
13
+ await client.issues.update({ issueKeyOrId: key, fields: parsed });
14
+ output({ updated: true, issueKey: key });
15
+ }
16
+ catch (err) {
17
+ handleError(err);
18
+ }
19
+ });
20
+ }
21
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/commands/issue/update.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,cAAc,CAAC;SACvB,WAAW,CAAC,qBAAqB,CAAC;SAClC,cAAc,CAAC,iBAAiB,EAAE,iCAAiC,CAAC;SACpE,WAAW,CACV,OAAO,EACP,qLAAqL,CACtL;SACA,MAAM,CAAC,KAAK,EAAE,GAAW,EAAE,IAAwB,EAAE,EAAE;QACtD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAA4B,CAAC;YAClE,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;YAClE,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;QAC3C,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function worklog(parent: Command): void;
3
+ //# sourceMappingURL=worklog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worklog.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/worklog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,OAAO,CAAC,MAAM,EAAE,OAAO,QAuBtC"}
@@ -0,0 +1,25 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output, handleError } from '../../utils/output.js';
3
+ export function worklog(parent) {
4
+ parent
5
+ .command('worklog <key>')
6
+ .description('Log time spent on an issue')
7
+ .requiredOption('--time <timeSpent>', "Time spent (e.g., '2h', '30m', '1d 4h')")
8
+ .option('--comment <text>', 'Worklog comment')
9
+ .addHelpText('after', '\nExamples:\n jiradc issue worklog AI-73 --time 2h\n jiradc issue worklog AI-73 --time "1d 4h" --comment "Backend implementation"')
10
+ .action(async (key, opts) => {
11
+ try {
12
+ const client = getClient();
13
+ const result = await client.issues.addWorklog({
14
+ issueKeyOrId: key,
15
+ timeSpent: opts.time,
16
+ comment: opts.comment,
17
+ });
18
+ output(result);
19
+ }
20
+ catch (err) {
21
+ handleError(err);
22
+ }
23
+ });
24
+ }
25
+ //# sourceMappingURL=worklog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worklog.js","sourceRoot":"","sources":["../../../src/commands/issue/worklog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,OAAO,CAAC,MAAe;IACrC,MAAM;SACH,OAAO,CAAC,eAAe,CAAC;SACxB,WAAW,CAAC,4BAA4B,CAAC;SACzC,cAAc,CAAC,oBAAoB,EAAE,yCAAyC,CAAC;SAC/E,MAAM,CAAC,kBAAkB,EAAE,iBAAiB,CAAC;SAC7C,WAAW,CACV,OAAO,EACP,qIAAqI,CACtI;SACA,MAAM,CAAC,KAAK,EAAE,GAAW,EAAE,IAAwC,EAAE,EAAE;QACtE,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;gBAC5C,YAAY,EAAE,GAAG;gBACjB,SAAS,EAAE,IAAI,CAAC,IAAI;gBACpB,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC,CAAC;YACH,MAAM,CAAC,MAAM,CAAC,CAAC;QACjB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function create(parent: Command): void;
3
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/commands/link/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,QAqBrC"}
@@ -0,0 +1,26 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output, handleError } from '../../utils/output.js';
3
+ export function create(parent) {
4
+ parent
5
+ .command('create')
6
+ .description('Create a link between two issues')
7
+ .requiredOption('--type <name>', "Link type name (e.g., 'Blocks', 'Duplicate', 'Relates')")
8
+ .requiredOption('--from <key>', 'Inward issue key (the "is blocked by" side)')
9
+ .requiredOption('--to <key>', 'Outward issue key (the "blocks" side)')
10
+ .addHelpText('after', '\nExamples:\n jiradc link create --type Blocks --from AI-100 --to AI-73')
11
+ .action(async (opts) => {
12
+ try {
13
+ const client = getClient();
14
+ await client.links.create({
15
+ typeName: opts.type,
16
+ inwardIssueKey: opts.from,
17
+ outwardIssueKey: opts.to,
18
+ });
19
+ output({ created: true, type: opts.type, inward: opts.from, outward: opts.to });
20
+ }
21
+ catch (err) {
22
+ handleError(err);
23
+ }
24
+ });
25
+ }
26
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/link/create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,kCAAkC,CAAC;SAC/C,cAAc,CAAC,eAAe,EAAE,yDAAyD,CAAC;SAC1F,cAAc,CAAC,cAAc,EAAE,6CAA6C,CAAC;SAC7E,cAAc,CAAC,YAAY,EAAE,uCAAuC,CAAC;SACrE,WAAW,CAAC,OAAO,EAAE,0EAA0E,CAAC;SAChG,MAAM,CAAC,KAAK,EAAE,IAAgD,EAAE,EAAE;QACjE,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;gBACxB,QAAQ,EAAE,IAAI,CAAC,IAAI;gBACnB,cAAc,EAAE,IAAI,CAAC,IAAI;gBACzB,eAAe,EAAE,IAAI,CAAC,EAAE;aACzB,CAAC,CAAC;YACH,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QAClF,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function registerLinkCommands(program: Command): void;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/link/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,QAKpD"}
@@ -0,0 +1,10 @@
1
+ import { types } from './types.js';
2
+ import { create } from './create.js';
3
+ import { remove } from './remove.js';
4
+ export function registerLinkCommands(program) {
5
+ const link = program.command('link').description('Issue link operations');
6
+ types(link);
7
+ create(link);
8
+ remove(link);
9
+ }
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/link/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,UAAU,oBAAoB,CAAC,OAAgB;IACnD,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC;IAC1E,KAAK,CAAC,IAAI,CAAC,CAAC;IACZ,MAAM,CAAC,IAAI,CAAC,CAAC;IACb,MAAM,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function remove(parent: Command): void;
3
+ //# sourceMappingURL=remove.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../../../src/commands/link/remove.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,QAcrC"}
@@ -0,0 +1,19 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output, handleError } from '../../utils/output.js';
3
+ export function remove(parent) {
4
+ parent
5
+ .command('remove <id>')
6
+ .description('Remove a link between two issues')
7
+ .addHelpText('after', '\nExamples:\n jiradc link remove 12345')
8
+ .action(async (id) => {
9
+ try {
10
+ const client = getClient();
11
+ await client.links.remove({ linkId: id });
12
+ output({ removed: true, linkId: id });
13
+ }
14
+ catch (err) {
15
+ handleError(err);
16
+ }
17
+ });
18
+ }
19
+ //# sourceMappingURL=remove.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove.js","sourceRoot":"","sources":["../../../src/commands/link/remove.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,aAAa,CAAC;SACtB,WAAW,CAAC,kCAAkC,CAAC;SAC/C,WAAW,CAAC,OAAO,EAAE,yCAAyC,CAAC;SAC/D,MAAM,CAAC,KAAK,EAAE,EAAU,EAAE,EAAE;QAC3B,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;YAC1C,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;QACxC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function types(parent: Command): void;
3
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/commands/link/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,KAAK,CAAC,MAAM,EAAE,OAAO,QAcpC"}
@@ -0,0 +1,19 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output, handleError } from '../../utils/output.js';
3
+ export function types(parent) {
4
+ parent
5
+ .command('types')
6
+ .description('List all issue link types')
7
+ .addHelpText('after', '\nExamples:\n jiradc link types')
8
+ .action(async () => {
9
+ try {
10
+ const client = getClient();
11
+ const result = await client.links.getTypes();
12
+ output(result);
13
+ }
14
+ catch (err) {
15
+ handleError(err);
16
+ }
17
+ });
18
+ }
19
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/commands/link/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,KAAK,CAAC,MAAe;IACnC,MAAM;SACH,OAAO,CAAC,OAAO,CAAC;SAChB,WAAW,CAAC,2BAA2B,CAAC;SACxC,WAAW,CAAC,OAAO,EAAE,kCAAkC,CAAC;SACxD,MAAM,CAAC,KAAK,IAAI,EAAE;QACjB,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;YAC7C,MAAM,CAAC,MAAM,CAAC,CAAC;QACjB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function registerProjectCommands(program: Command): void;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/project/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,QAIvD"}
@@ -0,0 +1,8 @@
1
+ import { list } from './list.js';
2
+ import { versions } from './versions.js';
3
+ export function registerProjectCommands(program) {
4
+ const project = program.command('project').description('Project operations');
5
+ list(project);
6
+ versions(project);
7
+ }
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/project/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,UAAU,uBAAuB,CAAC,OAAgB;IACtD,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAC7E,IAAI,CAAC,OAAO,CAAC,CAAC;IACd,QAAQ,CAAC,OAAO,CAAC,CAAC;AACpB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function list(parent: Command): void;
3
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/project/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,IAAI,CAAC,MAAM,EAAE,OAAO,QAcnC"}
@@ -0,0 +1,19 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output, handleError } from '../../utils/output.js';
3
+ export function list(parent) {
4
+ parent
5
+ .command('list')
6
+ .description('List all projects')
7
+ .addHelpText('after', '\nExamples:\n jiradc project list')
8
+ .action(async () => {
9
+ try {
10
+ const client = getClient();
11
+ const result = await client.projects.getAll({});
12
+ output(result);
13
+ }
14
+ catch (err) {
15
+ handleError(err);
16
+ }
17
+ });
18
+ }
19
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/project/list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,IAAI,CAAC,MAAe;IAClC,MAAM;SACH,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,mBAAmB,CAAC;SAChC,WAAW,CAAC,OAAO,EAAE,oCAAoC,CAAC;SAC1D,MAAM,CAAC,KAAK,IAAI,EAAE;QACjB,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YAChD,MAAM,CAAC,MAAM,CAAC,CAAC;QACjB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function versions(parent: Command): void;
3
+ //# sourceMappingURL=versions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/commands/project/versions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,QAcvC"}
@@ -0,0 +1,19 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output, handleError } from '../../utils/output.js';
3
+ export function versions(parent) {
4
+ parent
5
+ .command('versions <key>')
6
+ .description('Get all versions for a project')
7
+ .addHelpText('after', '\nExamples:\n jiradc project versions AI')
8
+ .action(async (key) => {
9
+ try {
10
+ const client = getClient();
11
+ const result = await client.projects.getVersions({ projectKeyOrId: key });
12
+ output(result);
13
+ }
14
+ catch (err) {
15
+ handleError(err);
16
+ }
17
+ });
18
+ }
19
+ //# sourceMappingURL=versions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../src/commands/project/versions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,QAAQ,CAAC,MAAe;IACtC,MAAM;SACH,OAAO,CAAC,gBAAgB,CAAC;SACzB,WAAW,CAAC,gCAAgC,CAAC;SAC7C,WAAW,CAAC,OAAO,EAAE,2CAA2C,CAAC;SACjE,MAAM,CAAC,KAAK,EAAE,GAAW,EAAE,EAAE;QAC5B,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;YAC1E,MAAM,CAAC,MAAM,CAAC,CAAC;QACjB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function create(parent: Command): void;
3
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/commands/sprint/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,QAmBrC"}
@@ -0,0 +1,24 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output, handleError } from '../../utils/output.js';
3
+ export function create(parent) {
4
+ parent
5
+ .command('create')
6
+ .description('Create a new sprint')
7
+ .requiredOption('--board <id>', 'Board ID to create sprint in')
8
+ .requiredOption('--name <name>', 'Sprint name')
9
+ .addHelpText('after', '\nExamples:\n jiradc sprint create --board 42 --name "Sprint 10"')
10
+ .action(async (opts) => {
11
+ try {
12
+ const client = getClient();
13
+ const result = await client.agile.createSprint({
14
+ name: opts.name,
15
+ originBoardId: parseInt(opts.board, 10),
16
+ });
17
+ output(result);
18
+ }
19
+ catch (err) {
20
+ handleError(err);
21
+ }
22
+ });
23
+ }
24
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/sprint/create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,qBAAqB,CAAC;SAClC,cAAc,CAAC,cAAc,EAAE,8BAA8B,CAAC;SAC9D,cAAc,CAAC,eAAe,EAAE,aAAa,CAAC;SAC9C,WAAW,CAAC,OAAO,EAAE,mEAAmE,CAAC;SACzF,MAAM,CAAC,KAAK,EAAE,IAAqC,EAAE,EAAE;QACtD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC;gBAC7C,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,aAAa,EAAE,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC;aACxC,CAAC,CAAC;YACH,MAAM,CAAC,MAAM,CAAC,CAAC;QACjB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function registerSprintCommands(program: Command): void;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/sprint/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,QAMtD"}
@@ -0,0 +1,12 @@
1
+ import { list } from './list.js';
2
+ import { issues } from './issues.js';
3
+ import { create } from './create.js';
4
+ import { update } from './update.js';
5
+ export function registerSprintCommands(program) {
6
+ const sprint = program.command('sprint').description('Sprint operations');
7
+ list(sprint);
8
+ issues(sprint);
9
+ create(sprint);
10
+ update(sprint);
11
+ }
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/sprint/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,UAAU,sBAAsB,CAAC,OAAgB;IACrD,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;IAC1E,IAAI,CAAC,MAAM,CAAC,CAAC;IACb,MAAM,CAAC,MAAM,CAAC,CAAC;IACf,MAAM,CAAC,MAAM,CAAC,CAAC;IACf,MAAM,CAAC,MAAM,CAAC,CAAC;AACjB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function issues(parent: Command): void;
3
+ //# sourceMappingURL=issues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issues.d.ts","sourceRoot":"","sources":["../../../src/commands/sprint/issues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,QAkBrC"}
@@ -0,0 +1,23 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output, handleError } from '../../utils/output.js';
3
+ export function issues(parent) {
4
+ parent
5
+ .command('issues <id>')
6
+ .description('Get issues in a sprint')
7
+ .option('--max <number>', 'Max results', parseInt)
8
+ .addHelpText('after', '\nExamples:\n jiradc sprint issues 100\n jiradc sprint issues 100 --max 20')
9
+ .action(async (id, opts) => {
10
+ try {
11
+ const client = getClient();
12
+ const result = await client.agile.getSprintIssues({
13
+ sprintId: parseInt(id, 10),
14
+ maxResults: opts.max,
15
+ });
16
+ output(result);
17
+ }
18
+ catch (err) {
19
+ handleError(err);
20
+ }
21
+ });
22
+ }
23
+ //# sourceMappingURL=issues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issues.js","sourceRoot":"","sources":["../../../src/commands/sprint/issues.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,aAAa,CAAC;SACtB,WAAW,CAAC,wBAAwB,CAAC;SACrC,MAAM,CAAC,gBAAgB,EAAE,aAAa,EAAE,QAAQ,CAAC;SACjD,WAAW,CAAC,OAAO,EAAE,8EAA8E,CAAC;SACpG,MAAM,CAAC,KAAK,EAAE,EAAU,EAAE,IAAsB,EAAE,EAAE;QACnD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC;gBAChD,QAAQ,EAAE,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC;gBAC1B,UAAU,EAAE,IAAI,CAAC,GAAG;aACrB,CAAC,CAAC;YACH,MAAM,CAAC,MAAM,CAAC,CAAC;QACjB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function list(parent: Command): void;
3
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/sprint/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,IAAI,CAAC,MAAM,EAAE,OAAO,QAenC"}
@@ -0,0 +1,20 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output, handleError } from '../../utils/output.js';
3
+ export function list(parent) {
4
+ parent
5
+ .command('list')
6
+ .description('List sprints for a board')
7
+ .requiredOption('--board <id>', 'Board ID')
8
+ .addHelpText('after', '\nExamples:\n jiradc sprint list --board 42')
9
+ .action(async (opts) => {
10
+ try {
11
+ const client = getClient();
12
+ const result = await client.agile.getSprints({ boardId: parseInt(opts.board, 10) });
13
+ output(result);
14
+ }
15
+ catch (err) {
16
+ handleError(err);
17
+ }
18
+ });
19
+ }
20
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/sprint/list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,IAAI,CAAC,MAAe;IAClC,MAAM;SACH,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,0BAA0B,CAAC;SACvC,cAAc,CAAC,cAAc,EAAE,UAAU,CAAC;SAC1C,WAAW,CAAC,OAAO,EAAE,8CAA8C,CAAC;SACpE,MAAM,CAAC,KAAK,EAAE,IAAuB,EAAE,EAAE;QACxC,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;YACpF,MAAM,CAAC,MAAM,CAAC,CAAC;QACjB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function update(parent: Command): void;
3
+ //# sourceMappingURL=update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/commands/sprint/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,QAkBrC"}
@@ -0,0 +1,23 @@
1
+ import { getClient } from '../../utils/client.js';
2
+ import { output, handleError } from '../../utils/output.js';
3
+ export function update(parent) {
4
+ parent
5
+ .command('update <id>')
6
+ .description('Update an existing sprint')
7
+ .requiredOption('--name <name>', 'New sprint name')
8
+ .addHelpText('after', '\nExamples:\n jiradc sprint update 100 --name "Sprint 10 - Extended"')
9
+ .action(async (id, opts) => {
10
+ try {
11
+ const client = getClient();
12
+ const result = await client.agile.updateSprint({
13
+ sprintId: parseInt(id, 10),
14
+ name: opts.name,
15
+ });
16
+ output(result);
17
+ }
18
+ catch (err) {
19
+ handleError(err);
20
+ }
21
+ });
22
+ }
23
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/commands/sprint/update.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,aAAa,CAAC;SACtB,WAAW,CAAC,2BAA2B,CAAC;SACxC,cAAc,CAAC,eAAe,EAAE,iBAAiB,CAAC;SAClD,WAAW,CAAC,OAAO,EAAE,uEAAuE,CAAC;SAC7F,MAAM,CAAC,KAAK,EAAE,EAAU,EAAE,IAAsB,EAAE,EAAE;QACnD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC;gBAC7C,QAAQ,EAAE,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC;gBAC1B,IAAI,EAAE,IAAI,CAAC,IAAI;aAChB,CAAC,CAAC;YACH,MAAM,CAAC,MAAM,CAAC,CAAC;QACjB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function registerUserCommands(program: Command): void;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/user/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,QAGpD"}
@@ -0,0 +1,6 @@
1
+ import { me } from './me.js';
2
+ export function registerUserCommands(program) {
3
+ const user = program.command('user').description('User operations');
4
+ me(user);
5
+ }
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/user/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAE7B,MAAM,UAAU,oBAAoB,CAAC,OAAgB;IACnD,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IACpE,EAAE,CAAC,IAAI,CAAC,CAAC;AACX,CAAC"}