mrvn-cli 0.5.16 → 0.5.18

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.
package/dist/index.d.ts CHANGED
@@ -16,18 +16,39 @@ interface MarvinUserConfig {
16
16
  interface GitConfig {
17
17
  remote?: string;
18
18
  }
19
- interface ConditionalJiraStatusEntry {
20
- default: string[];
21
- inSprint?: string[];
19
+ /**
20
+ * Conditional status mapping: Jira status → Marvin status with sprint context.
21
+ * Used when a Jira status should map differently based on sprint membership.
22
+ */
23
+ interface ConditionalJiraStatusMapping {
24
+ default: string;
25
+ inSprint?: string;
22
26
  }
23
- interface JiraStatusMap {
24
- [marvinStatus: string]: string[] | ConditionalJiraStatusEntry;
27
+ /**
28
+ * Flat Jira→Marvin status map (spec format).
29
+ * Keys are Jira status names, values are Marvin status strings or conditional objects.
30
+ *
31
+ * Example:
32
+ * "In Progress": in-progress
33
+ * "To Do":
34
+ * default: backlog
35
+ * inSprint: ready
36
+ */
37
+ interface FlatJiraStatusMap {
38
+ [jiraStatus: string]: string | ConditionalJiraStatusMapping;
39
+ }
40
+ /**
41
+ * Legacy Marvin→Jira[] status map (nested format).
42
+ * Keys are Marvin status names, values are arrays of Jira status names.
43
+ */
44
+ interface LegacyJiraStatusMap {
45
+ [marvinStatus: string]: string[];
25
46
  }
26
47
  interface JiraProjectConfig {
27
48
  projectKey?: string;
28
- statusMap?: {
29
- action?: JiraStatusMap;
30
- task?: JiraStatusMap;
49
+ statusMap?: FlatJiraStatusMap | {
50
+ action?: LegacyJiraStatusMap;
51
+ task?: LegacyJiraStatusMap;
31
52
  };
32
53
  }
33
54
  interface MarvinProjectConfig {