@26lights/orcha 0.8.0 → 0.8.2

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.
@@ -1,4 +1,4 @@
1
- import { type ActivityBase, type ActivityFeed, type Milestone, type UpdateSubtaskFieldPayload, type AddSubtaskPayload, type User, type AddFilesPayload, type RemoveFilePayload, type UpdateActivityFeedPayload, Activity, Subtask } from '../types/index';
1
+ import { type ActivityBase, type ActivityFeed, type Milestone, type UpdateSubtaskFieldPayload, type AddSubtaskPayload, type User, type AddFilesPayload, type RemoveFilePayload, type UpdateActivityPayload, type Activity, type Subtask } from '../types/index';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
3
  activity: {
4
4
  type: import("vue").PropType<ActivityBase>;
@@ -31,7 +31,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
31
31
  type: import("vue").PropType<(task: Subtask) => boolean>;
32
32
  };
33
33
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
- 'update:activity': (payload: UpdateActivityFeedPayload) => void;
34
+ 'update:activity': (payload: UpdateActivityPayload) => void;
35
35
  close: (args_0: void) => void;
36
36
  addSubtask: (payload: AddSubtaskPayload) => void;
37
37
  updateSubtask: (payload: UpdateSubtaskFieldPayload) => void;
@@ -77,7 +77,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
77
77
  id: string;
78
78
  }) => any) | undefined;
79
79
  onRemoveFile?: ((payload: RemoveFilePayload) => any) | undefined;
80
- "onUpdate:activity"?: ((payload: UpdateActivityFeedPayload) => any) | undefined;
80
+ "onUpdate:activity"?: ((payload: UpdateActivityPayload) => any) | undefined;
81
81
  onAddSubtask?: ((payload: AddSubtaskPayload) => any) | undefined;
82
82
  onUpdateSubtask?: ((payload: UpdateSubtaskFieldPayload) => any) | undefined;
83
83
  onAddFiles?: ((payload: AddFilesPayload) => any) | undefined;
@@ -10,6 +10,7 @@ declare const _default: import("vue").DefineComponent<{
10
10
  };
11
11
  newComment: {
12
12
  type: import("vue").PropType<string>;
13
+ default: string;
13
14
  };
14
15
  userId: {
15
16
  type: import("vue").PropType<string>;
@@ -38,6 +39,7 @@ declare const _default: import("vue").DefineComponent<{
38
39
  };
39
40
  newComment: {
40
41
  type: import("vue").PropType<string>;
42
+ default: string;
41
43
  };
42
44
  userId: {
43
45
  type: import("vue").PropType<string>;
@@ -57,5 +59,6 @@ declare const _default: import("vue").DefineComponent<{
57
59
  }) => any) | undefined;
58
60
  }, {
59
61
  comments: Comment[];
62
+ newComment: string;
60
63
  }, {}>;
61
64
  export default _default;
@@ -0,0 +1,16 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ projectId: {
3
+ type: import("vue").PropType<string>;
4
+ required: true;
5
+ };
6
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ apply: (templateId: string, projectId: string) => void;
8
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
+ projectId: {
10
+ type: import("vue").PropType<string>;
11
+ required: true;
12
+ };
13
+ }>> & {
14
+ onApply?: ((templateId: string, projectId: string) => any) | undefined;
15
+ }, {}, {}>;
16
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { type UpdateActivityFeedPayload, type Subtask, type User } from '../types';
1
+ import { type UpdateActivityPayload, type Subtask, type User } from '../types';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
3
  id: {
4
4
  type: import("vue").PropType<string>;
@@ -37,7 +37,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
37
37
  };
38
38
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
39
  removeAssignee: (assigneeId: string) => void;
40
- updateActivity: (payload: UpdateActivityFeedPayload) => void;
40
+ updateActivity: (payload: UpdateActivityPayload) => void;
41
41
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
42
42
  id: {
43
43
  type: import("vue").PropType<string>;
@@ -76,7 +76,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
76
76
  };
77
77
  }>> & {
78
78
  onRemoveAssignee?: ((assigneeId: string) => any) | undefined;
79
- onUpdateActivity?: ((payload: UpdateActivityFeedPayload) => any) | undefined;
79
+ onUpdateActivity?: ((payload: UpdateActivityPayload) => any) | undefined;
80
80
  }, {}, {}>, {
81
81
  secondary?(_: {}): any;
82
82
  }>;
@@ -1,4 +1,4 @@
1
- import { ActivityStatus, type ActivityProject } from '../types';
1
+ import { ActivityStatus, type Activity, UpdateMilestonePayload } from '../types';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
3
  id: {
4
4
  type: import("vue").PropType<string>;
@@ -8,12 +8,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
8
8
  type: import("vue").PropType<string>;
9
9
  };
10
10
  activities: {
11
- type: import("vue").PropType<ActivityProject[]>;
11
+ type: import("vue").PropType<Activity[]>;
12
12
  };
13
13
  doneStatus: {
14
14
  type: import("vue").PropType<ActivityStatus>;
15
15
  };
16
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ updateMilestone: (payload: UpdateMilestonePayload) => void;
18
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
19
  id: {
18
20
  type: import("vue").PropType<string>;
19
21
  required: true;
@@ -22,12 +24,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
22
24
  type: import("vue").PropType<string>;
23
25
  };
24
26
  activities: {
25
- type: import("vue").PropType<ActivityProject[]>;
27
+ type: import("vue").PropType<Activity[]>;
26
28
  };
27
29
  doneStatus: {
28
30
  type: import("vue").PropType<ActivityStatus>;
29
31
  };
30
- }>>, {}, {}>, {
32
+ }>> & {
33
+ onUpdateMilestone?: ((payload: UpdateMilestonePayload) => any) | undefined;
34
+ }, {}, {}>, {
31
35
  secondary?(_: {}): any;
32
36
  }>;
33
37
  export default _default;
@@ -13,7 +13,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
13
13
  milestones: {
14
14
  type: import("vue").PropType<Milestone[]>;
15
15
  };
16
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ 'update:title': (v: string) => void;
18
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
19
  id: {
18
20
  type: import("vue").PropType<string>;
19
21
  required: true;
@@ -27,7 +29,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
27
29
  milestones: {
28
30
  type: import("vue").PropType<Milestone[]>;
29
31
  };
30
- }>>, {}, {}>, {
32
+ }>> & {
33
+ "onUpdate:title"?: ((v: string) => any) | undefined;
34
+ }, {}, {}>, {
31
35
  secondary?(_: {}): any;
32
36
  }>;
33
37
  export default _default;
@@ -1,4 +1,4 @@
1
- import { type UpdateActivityFeedPayload, type ChangeFeedActivitiesPayload, type Id, type ActivityStatus, type Activity, type ActivityFeedStatus, User } from '../types';
1
+ import { type UpdateActivityPayload, type ChangeFeedActivitiesPayload, type Id, type ActivityStatus, type Activity, type ActivityFeedStatus, User } from '../types';
2
2
  declare const _default: <T extends ActivityFeedStatus>(__VLS_props: {
3
3
  list: Activity[];
4
4
  status: ActivityStatus;
@@ -34,7 +34,7 @@ declare const _default: <T extends ActivityFeedStatus>(__VLS_props: {
34
34
  archiveActivity: [payload: {
35
35
  id: Id;
36
36
  }];
37
- updateActivity: [input: UpdateActivityFeedPayload];
37
+ updateActivity: [input: UpdateActivityPayload];
38
38
  };
39
39
  }, "slots" | "attrs" | "emit"> | undefined, __VLS_setup?: {
40
40
  props: {
@@ -62,7 +62,7 @@ declare const _default: <T extends ActivityFeedStatus>(__VLS_props: {
62
62
  archiveActivity: [payload: {
63
63
  id: Id;
64
64
  }];
65
- updateActivity: [input: UpdateActivityFeedPayload];
65
+ updateActivity: [input: UpdateActivityPayload];
66
66
  };
67
67
  }) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
68
68
  [key: string]: any;
@@ -93,7 +93,7 @@ declare const _default: <T extends ActivityFeedStatus>(__VLS_props: {
93
93
  archiveActivity: [payload: {
94
94
  id: Id;
95
95
  }];
96
- updateActivity: [input: UpdateActivityFeedPayload];
96
+ updateActivity: [input: UpdateActivityPayload];
97
97
  };
98
98
  } | undefined;
99
99
  };
@@ -1,10 +1,25 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ size: {
3
+ type: import("vue").PropType<"sm" | "md">;
4
+ required: true;
5
+ default: string;
6
+ };
7
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
8
  close: (args_0: void) => void;
3
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
9
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
+ size: {
11
+ type: import("vue").PropType<"sm" | "md">;
12
+ required: true;
13
+ default: string;
14
+ };
15
+ }>> & {
4
16
  onClose?: ((args_0?: void | undefined) => any) | undefined;
5
- }, {}, {}>, {
17
+ }, {
18
+ size: "sm" | "md";
19
+ }, {}>, {
6
20
  header?(_: {}): any;
7
21
  default?(_: {}): any;
22
+ footer?(_: {}): any;
8
23
  }>;
9
24
  export default _default;
10
25
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,4 +1,4 @@
1
- import { type Phase, AddMilestonePayload } from '../types';
1
+ import { type Phase, type AddMilestonePayload, type UpdatePhasePayload, type UpdateMilestonePayload } from '../types';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  phase: {
4
4
  type: import("vue").PropType<Phase>;
@@ -9,6 +9,8 @@ declare const _default: import("vue").DefineComponent<{
9
9
  };
10
10
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
11
  addMilestone: (payload: AddMilestonePayload) => void;
12
+ updateMilestone: (payload: UpdateMilestonePayload) => void;
13
+ updatePhase: (payload: UpdatePhasePayload) => void;
12
14
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
15
  phase: {
14
16
  type: import("vue").PropType<Phase>;
@@ -18,6 +20,8 @@ declare const _default: import("vue").DefineComponent<{
18
20
  type: import("vue").PropType<string>;
19
21
  };
20
22
  }>> & {
23
+ onUpdateMilestone?: ((payload: UpdateMilestonePayload) => any) | undefined;
21
24
  onAddMilestone?: ((payload: AddMilestonePayload) => any) | undefined;
25
+ onUpdatePhase?: ((payload: UpdatePhasePayload) => any) | undefined;
22
26
  }, {}, {}>;
23
27
  export default _default;
@@ -0,0 +1,27 @@
1
+ import { AddMilestonePayload, Phase, UpdateMilestonePayload, UpdatePhasePayload } from '../types';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ phases: {
4
+ type: import("vue").PropType<Phase[]>;
5
+ required: true;
6
+ };
7
+ projectName: {
8
+ type: import("vue").PropType<string>;
9
+ };
10
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ addMilestone: (payload: AddMilestonePayload) => void;
12
+ updateMilestone: (payload: UpdateMilestonePayload) => void;
13
+ updatePhase: (payload: UpdatePhasePayload) => void;
14
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
+ phases: {
16
+ type: import("vue").PropType<Phase[]>;
17
+ required: true;
18
+ };
19
+ projectName: {
20
+ type: import("vue").PropType<string>;
21
+ };
22
+ }>> & {
23
+ onUpdateMilestone?: ((payload: UpdateMilestonePayload) => any) | undefined;
24
+ onAddMilestone?: ((payload: AddMilestonePayload) => any) | undefined;
25
+ onUpdatePhase?: ((payload: UpdatePhasePayload) => any) | undefined;
26
+ }, {}, {}>;
27
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { type Phase, type UpdateMilestonePayload, type UpdateItemPhasePayload, type RemoveMilestonePayload } from '../types';
1
+ import { type Phase, type UpdateMilestonePayload, type RemoveMilestonePayload } from '../types';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  templateId: {
4
4
  type: import("vue").PropType<string>;
@@ -31,10 +31,10 @@ declare const _default: import("vue").DefineComponent<{
31
31
  required: true;
32
32
  };
33
33
  }>> & {
34
+ onUpdateMilestone?: ((payload: UpdateMilestonePayload) => any) | undefined;
34
35
  onAddMilestone?: ((payload: {
35
36
  phaseId: string;
36
37
  }) => any) | undefined;
37
- onUpdateMilestone?: ((payload: UpdateMilestonePayload) => any) | undefined;
38
38
  onUpdatePhase?: ((payload: UpdateItemPhasePayload) => any) | undefined;
39
39
  onRemoveMilestone?: ((payload: RemoveMilestonePayload) => any) | undefined;
40
40
  }, {}, {}>;
@@ -1,8 +1,9 @@
1
1
  import { type MaybeRef } from 'vue';
2
- import { type User, type Id } from '../types';
2
+ import { type User, type Id, type TemplateDetails } from '../types';
3
3
  type InitUseProjectOverviewStorePayload = {
4
4
  users: MaybeRef<User[]>;
5
5
  userId: MaybeRef<Id>;
6
+ templates: MaybeRef<TemplateDetails[]>;
6
7
  };
7
8
  export default function useProjectOverviewStore(): {
8
9
  init: (initPayload: InitUseProjectOverviewStorePayload) => void;
@@ -13,5 +14,107 @@ export default function useProjectOverviewStore(): {
13
14
  picture?: string | undefined;
14
15
  }[]>;
15
16
  userId: import("vue").Ref<string>;
17
+ templates: import("vue").Ref<{
18
+ name?: string | undefined;
19
+ phases: {
20
+ name?: string | undefined;
21
+ milestones: {
22
+ name?: string | undefined;
23
+ activities: {
24
+ assignee?: {
25
+ id: string;
26
+ firstName?: string | undefined;
27
+ lastName?: string | undefined;
28
+ picture?: string | undefined;
29
+ } | undefined;
30
+ status: {
31
+ name: string;
32
+ __typename: string;
33
+ id: string;
34
+ };
35
+ deadline?: string | undefined;
36
+ project?: {
37
+ id: string;
38
+ name?: string | undefined;
39
+ phases?: any[] | undefined;
40
+ } | undefined;
41
+ comments?: {
42
+ author: {
43
+ id: string;
44
+ firstName?: string | undefined;
45
+ lastName?: string | undefined;
46
+ picture?: string | undefined;
47
+ };
48
+ message: string;
49
+ createdAt: string;
50
+ updatedAt?: string | undefined;
51
+ __typename: string;
52
+ id: string;
53
+ }[] | undefined;
54
+ duration?: number | undefined;
55
+ durationType?: import('../types').DurationTypes | undefined;
56
+ name: string;
57
+ description?: string | undefined;
58
+ estimation?: number | undefined;
59
+ important?: boolean | undefined;
60
+ type?: {
61
+ name: string;
62
+ __typename: string;
63
+ id: string;
64
+ } | undefined;
65
+ milestone?: any | undefined;
66
+ dependingOn?: string[] | undefined;
67
+ blocking?: string[] | undefined;
68
+ attachments?: {
69
+ createdAt: string;
70
+ name: string;
71
+ size: number;
72
+ lastModified: number;
73
+ type: string;
74
+ url: string;
75
+ id: string;
76
+ __typename: string;
77
+ }[] | undefined;
78
+ tasks?: {
79
+ name: string;
80
+ assignee?: {
81
+ id: string;
82
+ } | undefined;
83
+ isDone?: boolean | undefined;
84
+ __typename: string;
85
+ id: string;
86
+ rank: string;
87
+ }[] | undefined;
88
+ __typename: string;
89
+ id: string;
90
+ rank: string;
91
+ }[];
92
+ status?: import('../types').MilestoneStatus | undefined;
93
+ __typename: string;
94
+ id: string;
95
+ rank: string;
96
+ }[];
97
+ __typename: string;
98
+ id: string;
99
+ rank: string;
100
+ }[];
101
+ rules?: {
102
+ id: string;
103
+ itemType?: import('../types').TemplateItemType | undefined;
104
+ subItemId?: string | undefined;
105
+ comparator?: import('../types').RuleComparator | undefined;
106
+ trigger?: import('../types').RuleTriggerTypes | undefined;
107
+ deadline?: string | undefined;
108
+ startDate?: string | undefined;
109
+ duration?: number | undefined;
110
+ durationUnit?: import('../types').RuleDurationUnits | undefined;
111
+ }[] | undefined;
112
+ order: number;
113
+ updatedAt?: string | undefined;
114
+ updatedBy?: string | undefined;
115
+ __typename: string;
116
+ id: string;
117
+ rank: string;
118
+ }[]>;
16
119
  };
17
120
  export {};
@@ -4,6 +4,7 @@ export interface Entity {
4
4
  id: Id;
5
5
  }
6
6
  export interface Ordered {
7
+ id: string;
7
8
  rank: string;
8
9
  }
9
10
  export interface ActivityType extends Entity {
@@ -66,29 +67,6 @@ export interface AddActivityFeedPayload {
66
67
  rank: string;
67
68
  statusId: string;
68
69
  }
69
- export interface UpdateActivityFeedPayload {
70
- id: Id;
71
- name?: string;
72
- rank?: Id;
73
- description?: string;
74
- estimation?: number;
75
- important?: boolean;
76
- typeId?: Id;
77
- assigneeId?: Id | null;
78
- statusId?: Id;
79
- deadline?: string;
80
- active?: boolean;
81
- }
82
- export interface ActivityProject extends ActivityBase {
83
- projectId: Id;
84
- projectName?: string;
85
- milestoneId: Id;
86
- phaseId: Id;
87
- deadline?: string;
88
- comments?: Comment[];
89
- attachments?: Attachment[];
90
- status?: ActivityStatus;
91
- }
92
70
  export interface ActivityFeed<K extends ActivityFeedStatus = ActivityFeedStatus> extends ActivityBase {
93
71
  projectId: Id;
94
72
  milestoneId?: Id;
@@ -231,14 +209,12 @@ export interface UpdateItemPayload<T extends TemplateItemType> {
231
209
  templateId: Id;
232
210
  data: UpdateItemPayloadDataTypes[T];
233
211
  }
234
- export type UpdateItemTemplatePayload = UpdateItemPayload<typeof templateItemType.TEMPLATES>;
235
- export type UpdateItemActivityPayload = UpdateItemPayload<typeof templateItemType.ACTIVITIES>;
236
- export type UpdateItemMilestonePayload = UpdateItemPayload<typeof templateItemType.MILESTONES>;
237
- export type UpdateItemPhasePayload = UpdateItemPayload<typeof templateItemType.PHASES>;
238
212
  export interface UpdatePhasePayload {
213
+ id: Id;
239
214
  name?: string;
240
215
  milestones?: Milestone[];
241
216
  rules?: Rule[];
217
+ rank?: string;
242
218
  }
243
219
  export type UpdateItemPayloadDataTypes = {
244
220
  [TemplateItemTypeEnum.ACTIVITIES]: UpdateActivityPayload;
@@ -246,6 +222,10 @@ export type UpdateItemPayloadDataTypes = {
246
222
  [TemplateItemTypeEnum.PHASES]: UpdatePhasePayload;
247
223
  };
248
224
  export type UpdateItemPayloadData<T extends TemplateItemTypeEnum> = UpdateItemPayloadDataTypes[T];
225
+ export interface MoveItemPayload {
226
+ id: Id;
227
+ rank: string;
228
+ }
249
229
  export interface RemoveItemPayload {
250
230
  type: TemplateItemType;
251
231
  templateId: Id;
@@ -281,23 +261,6 @@ export interface UpdateActivityPayload {
281
261
  type?: string;
282
262
  rank?: string;
283
263
  }
284
- export interface UpdateActivityFieldPayload {
285
- id: Id;
286
- name?: string;
287
- rules?: Rule[];
288
- tasks?: Subtask[];
289
- description?: string;
290
- estimation?: number;
291
- important?: boolean;
292
- dependingOn?: Id[];
293
- blocking?: Id[];
294
- dependingMilestones?: Id[];
295
- type?: string;
296
- status?: ActivityStatus;
297
- deadline?: string;
298
- assignee?: Id;
299
- attachments?: Attachment[];
300
- }
301
264
  export interface AddRulePayload {
302
265
  templateId: Id;
303
266
  }
@@ -418,12 +381,6 @@ export type UdpateProjectActivityData = {
418
381
  dependingMilestones?: Id[];
419
382
  type?: string;
420
383
  };
421
- export type UpdateProjectActivityPayload = {
422
- itemType: typeof templateItemType.ACTIVITIES;
423
- id: Id;
424
- projectId: Id;
425
- data: UdpateProjectActivityData;
426
- };
427
384
  export type UpdateSubtaskFieldPayload = {
428
385
  id: Id;
429
386
  name?: string;
@@ -458,3 +415,7 @@ export type UpdateCommentPayload = {
458
415
  export type RemoveCommentPayload = {
459
416
  id: Id;
460
417
  };
418
+ export type ApplyTemplatePayload = {
419
+ templateId: Id;
420
+ projectId: Id;
421
+ };
@@ -1,4 +1,4 @@
1
- import { type ChangeFeedActivitiesPayload, type Project, type FeedFilters, type User, type AddSubtaskPayload, type UpdateSubtaskFieldPayload, type AddFilesPayload, type RemoveFilePayload, type AddCommentPayload, type UpdateCommentPayload, type RemoveCommentPayload, type Activity, type AddActivityFeedPayload, type UpdateActivityFeedPayload, ActivityType, Subtask } from '../types';
1
+ import { type ChangeFeedActivitiesPayload, type Project, type FeedFilters, type User, type AddSubtaskPayload, type UpdateSubtaskFieldPayload, type AddFilesPayload, type RemoveFilePayload, type AddCommentPayload, type UpdateCommentPayload, type RemoveCommentPayload, type Activity, type AddActivityFeedPayload, type UpdateActivityPayload, ActivityType, Subtask } from '../types';
2
2
  import { ActivityStatus } from '../types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  filters: {
@@ -45,7 +45,7 @@ declare const _default: import("vue").DefineComponent<{
45
45
  addActivity: (payload: AddActivityFeedPayload) => void;
46
46
  'update:filters': (value: FeedFilters) => void;
47
47
  selectActivity: (activityId: string | null) => void;
48
- 'update:activity': (payload: UpdateActivityFeedPayload) => void;
48
+ 'update:activity': (payload: UpdateActivityPayload) => void;
49
49
  archiveActivity: (payload: {
50
50
  id: string;
51
51
  }) => void;
@@ -111,7 +111,7 @@ declare const _default: import("vue").DefineComponent<{
111
111
  id: string;
112
112
  }) => any) | undefined;
113
113
  onRemoveFile?: ((payload: RemoveFilePayload) => any) | undefined;
114
- "onUpdate:activity"?: ((payload: UpdateActivityFeedPayload) => any) | undefined;
114
+ "onUpdate:activity"?: ((payload: UpdateActivityPayload) => any) | undefined;
115
115
  onAddSubtask?: ((payload: AddSubtaskPayload) => any) | undefined;
116
116
  onUpdateSubtask?: ((payload: UpdateSubtaskFieldPayload) => any) | undefined;
117
117
  onAddFiles?: ((payload: AddFilesPayload) => any) | undefined;
@@ -1,4 +1,4 @@
1
- import { type ActivityProject, type UpdateProjectActivityPayload, type AddSubtaskPayload, type AddCommentPayload, type UpdateCommentPayload, type RemoveCommentPayload } from '../types';
1
+ import { type Activity, type UpdateActivityPayload, type AddSubtaskPayload, type AddCommentPayload, type UpdateCommentPayload, type RemoveCommentPayload } from '../types';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  phaseId: {
4
4
  type: import("vue").PropType<string>;
@@ -16,14 +16,14 @@ declare const _default: import("vue").DefineComponent<{
16
16
  type: import("vue").PropType<string[]>;
17
17
  };
18
18
  activities: {
19
- type: import("vue").PropType<ActivityProject[]>;
19
+ type: import("vue").PropType<Activity[]>;
20
20
  required: true;
21
21
  };
22
22
  assigneesOptions: {
23
23
  type: import("vue").PropType<Record<string, string>>;
24
24
  };
25
25
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
- 'update:activity': (payload: UpdateProjectActivityPayload) => void;
26
+ 'update:activity': (payload: UpdateActivityPayload) => void;
27
27
  addSubtask: (payload: AddSubtaskPayload) => void;
28
28
  addComment: (payload: AddCommentPayload) => void;
29
29
  updateComment: (payload: UpdateCommentPayload) => void;
@@ -45,14 +45,14 @@ declare const _default: import("vue").DefineComponent<{
45
45
  type: import("vue").PropType<string[]>;
46
46
  };
47
47
  activities: {
48
- type: import("vue").PropType<ActivityProject[]>;
48
+ type: import("vue").PropType<Activity[]>;
49
49
  required: true;
50
50
  };
51
51
  assigneesOptions: {
52
52
  type: import("vue").PropType<Record<string, string>>;
53
53
  };
54
54
  }>> & {
55
- "onUpdate:activity"?: ((payload: UpdateProjectActivityPayload) => any) | undefined;
55
+ "onUpdate:activity"?: ((payload: UpdateActivityPayload) => any) | undefined;
56
56
  onAddSubtask?: ((payload: AddSubtaskPayload) => any) | undefined;
57
57
  onUpdateComment?: ((payload: UpdateCommentPayload) => any) | undefined;
58
58
  onRemoveComment?: ((payload: RemoveCommentPayload) => any) | undefined;
@@ -1,4 +1,4 @@
1
- import { type User, type AddActivityPayload, type Phase } from '../types';
1
+ import { type User, type AddActivityPayload, type Phase, UpdateActivityPayload } from '../types';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  milestoneId: {
4
4
  type: import("vue").PropType<string>;
@@ -25,6 +25,7 @@ declare const _default: import("vue").DefineComponent<{
25
25
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
26
  close: (e: Event) => void;
27
27
  addActivity: (args_0: AddActivityPayload) => void;
28
+ updateActivity: (args_0: UpdateActivityPayload) => void;
28
29
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
29
30
  milestoneId: {
30
31
  type: import("vue").PropType<string>;
@@ -50,6 +51,7 @@ declare const _default: import("vue").DefineComponent<{
50
51
  };
51
52
  }>> & {
52
53
  onClose?: ((e: Event) => any) | undefined;
54
+ onUpdateActivity?: ((args_0: UpdateActivityPayload) => any) | undefined;
53
55
  onAddActivity?: ((args_0: AddActivityPayload) => any) | undefined;
54
56
  }, {}, {}>;
55
57
  export default _default;
@@ -1,4 +1,4 @@
1
- import { type Project, type User, type AddActivityPayload, type UpdateProjectActivityPayload, type AddSubtaskPayload, type AddFilesPayload, type RemoveFilePayload, type AddCommentPayload, type UpdateCommentPayload, type RemoveCommentPayload, type AddPhasePayload, type AddMilestonePayload, type Phase } from '../types';
1
+ import { type Project, type User, type AddActivityPayload, type UpdateActivityPayload, type AddSubtaskPayload, type AddFilesPayload, type RemoveFilePayload, type AddCommentPayload, type UpdateCommentPayload, type RemoveCommentPayload, type AddPhasePayload, type AddMilestonePayload, type Phase, type ApplyTemplatePayload, type TemplateDetails, type UpdatePhasePayload, type UpdateMilestonePayload } from '../types';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  project: {
4
4
  type: import("vue").PropType<Project>;
@@ -16,17 +16,24 @@ declare const _default: import("vue").DefineComponent<{
16
16
  type: import("vue").PropType<string>;
17
17
  required: true;
18
18
  };
19
+ templates: {
20
+ type: import("vue").PropType<TemplateDetails[]>;
21
+ required: true;
22
+ };
19
23
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
24
  addPhase: (payload: AddPhasePayload) => void;
25
+ updatePhase: (payload: UpdatePhasePayload) => void;
21
26
  addMilestone: (payload: AddMilestonePayload) => void;
27
+ updateMilestone: (payload: UpdateMilestonePayload) => void;
22
28
  addActivity: (payload: AddActivityPayload) => void;
23
- 'update:activity': (payload: UpdateProjectActivityPayload) => void;
29
+ 'update:activity': (payload: UpdateActivityPayload) => void;
24
30
  addSubtask: (payload: AddSubtaskPayload) => void;
25
31
  addFiles: (payload: AddFilesPayload) => void;
26
32
  removeFile: (payload: RemoveFilePayload) => void;
27
33
  addComment: (payload: AddCommentPayload) => void;
28
34
  updateComment: (payload: UpdateCommentPayload) => void;
29
35
  removeComment: (payload: RemoveCommentPayload) => void;
36
+ applyTemplate: (payload: ApplyTemplatePayload) => void;
30
37
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
31
38
  project: {
32
39
  type: import("vue").PropType<Project>;
@@ -44,16 +51,23 @@ declare const _default: import("vue").DefineComponent<{
44
51
  type: import("vue").PropType<string>;
45
52
  required: true;
46
53
  };
54
+ templates: {
55
+ type: import("vue").PropType<TemplateDetails[]>;
56
+ required: true;
57
+ };
47
58
  }>> & {
48
59
  onRemoveFile?: ((payload: RemoveFilePayload) => any) | undefined;
49
- "onUpdate:activity"?: ((payload: UpdateProjectActivityPayload) => any) | undefined;
60
+ "onUpdate:activity"?: ((payload: UpdateActivityPayload) => any) | undefined;
50
61
  onAddSubtask?: ((payload: AddSubtaskPayload) => any) | undefined;
51
62
  onAddFiles?: ((payload: AddFilesPayload) => any) | undefined;
52
63
  onUpdateComment?: ((payload: UpdateCommentPayload) => any) | undefined;
53
64
  onRemoveComment?: ((payload: RemoveCommentPayload) => any) | undefined;
54
65
  onAddActivity?: ((payload: AddActivityPayload) => any) | undefined;
55
66
  onAddComment?: ((payload: AddCommentPayload) => any) | undefined;
67
+ onUpdateMilestone?: ((payload: UpdateMilestonePayload) => any) | undefined;
56
68
  onAddMilestone?: ((payload: AddMilestonePayload) => any) | undefined;
69
+ onUpdatePhase?: ((payload: UpdatePhasePayload) => any) | undefined;
57
70
  onAddPhase?: ((payload: AddPhasePayload) => any) | undefined;
71
+ onApplyTemplate?: ((payload: ApplyTemplatePayload) => any) | undefined;
58
72
  }, {}, {}>;
59
73
  export default _default;