@26lights/orcha 0.42.207 → 0.42.208

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.
@@ -2,7 +2,7 @@ import { type ActivityFeed, type Milestone, type UpdateSubtaskFieldPayload, type
2
2
  import type { HistoryEventTransaction } from '../types';
3
3
  interface CreateSprintPayload {
4
4
  projectId: Id;
5
- name: string;
5
+ label?: string;
6
6
  startDate: string;
7
7
  endDate: string;
8
8
  }
@@ -10,7 +10,7 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
10
10
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
11
  updateSprint: (payload: {
12
12
  id: Id;
13
- name?: string;
13
+ label?: string;
14
14
  startDate?: string;
15
15
  endDate?: string;
16
16
  color?: string;
@@ -22,7 +22,7 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
22
22
  id: Id;
23
23
  }) => void;
24
24
  createSprint: (payload: {
25
- name: string;
25
+ label?: string;
26
26
  startDate: string;
27
27
  endDate: string;
28
28
  color?: string;
@@ -37,14 +37,14 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
37
37
  };
38
38
  }>> & Readonly<{
39
39
  onCreateSprint?: ((payload: {
40
- name: string;
40
+ label?: string;
41
41
  startDate: string;
42
42
  endDate: string;
43
43
  color?: string;
44
44
  }) => any) | undefined;
45
45
  onUpdateSprint?: ((payload: {
46
46
  id: Id;
47
- name?: string;
47
+ label?: string;
48
48
  startDate?: string;
49
49
  endDate?: string;
50
50
  color?: string;
@@ -1,4 +1,4 @@
1
- import { type Activity, type ActivityStatus, type Id, type Milestone, type MilestoneStatus, type Ordered, type Phase, type User } from './types';
1
+ import { type Activity, type ActivityStatus, type Id, type Milestone, type MilestoneStatus, type Ordered, type Phase, type Sprint, type User } from './types';
2
2
  import { type DraggableChangeEvent } from './types/utils';
3
3
  /**
4
4
  * Formats minutes into a human-readable time format
@@ -47,3 +47,9 @@ export declare function getMentionName(user: User): string;
47
47
  * Extract unique mentioned user IDs from a Markdown/plain-text message.
48
48
  */
49
49
  export declare function extractMentionedUserIds(message: string, users: User[]): Id[];
50
+ /**
51
+ * Generate a display name for a sprint.
52
+ * - number=1, label="Maintenance" => "Sprint 1: Maintenance"
53
+ * - number=1, label=null => "Sprint 1"
54
+ */
55
+ export declare function sprintDisplayName(sprint: Sprint): string;
@@ -4,6 +4,7 @@ export { default as AoTemplateDetails } from './views/AoTemplateDetails.vue';
4
4
  export { default as AoFeed } from './views/AoFeed.vue';
5
5
  export * from './router/routes';
6
6
  export * from './types';
7
+ export { sprintDisplayName } from './helpers';
7
8
  export { default as AoField } from './components/AoField.vue';
8
9
  export { default as AoInputField } from './components/AoInputField.vue';
9
10
  export { default as AoCheckboxField } from './components/AoCheckboxField.vue';
@@ -235,7 +235,8 @@ export interface AuditLog {
235
235
  */
236
236
  export type ActivityHistory = AuditLog;
237
237
  export interface Sprint extends Entity {
238
- name: string;
238
+ number: number;
239
+ label?: string;
239
240
  projectId: string;
240
241
  startDate: string;
241
242
  endDate: string;
@@ -149,7 +149,7 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
149
149
  startTimer: (payload: StartTimerPayload) => void;
150
150
  createSprint: (payload: {
151
151
  projectId: Id;
152
- name: string;
152
+ label?: string;
153
153
  startDate: string;
154
154
  endDate: string;
155
155
  }) => void;
@@ -294,7 +294,7 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
294
294
  onToast?: ((message: string, type: "error" | "success") => any) | undefined;
295
295
  onCreateSprint?: ((payload: {
296
296
  projectId: Id;
297
- name: string;
297
+ label?: string;
298
298
  startDate: string;
299
299
  endDate: string;
300
300
  }) => any) | undefined;
@@ -79,7 +79,7 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
79
79
  removeComment: (payload: RemoveCommentPayload) => void;
80
80
  createSprint: (payload: {
81
81
  projectId: Id;
82
- name: string;
82
+ label?: string;
83
83
  startDate: string;
84
84
  endDate: string;
85
85
  }) => void;
@@ -163,7 +163,7 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
163
163
  onAddComment?: ((payload: AddCommentPayload) => any) | undefined;
164
164
  onCreateSprint?: ((payload: {
165
165
  projectId: Id;
166
- name: string;
166
+ label?: string;
167
167
  startDate: string;
168
168
  endDate: string;
169
169
  }) => any) | undefined;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "module",
5
5
  "license": "CC-BY-NC-ND-4.0",
6
6
  "author": "26lights <dev@26lights.com> (https://www.26lights.com)",
7
- "version": "0.42.207",
7
+ "version": "0.42.208",
8
8
  "workspaces": [
9
9
  "packages/*"
10
10
  ],