@26lights/orcha 0.9.1 → 0.9.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,7 +1,7 @@
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';
1
+ import { type ActivityFeed, type Milestone, type UpdateSubtaskFieldPayload, type AddSubtaskPayload, type User, type AddFilesPayload, type RemoveFilePayload, type UpdateActivityPayload, type Activity, type Subtask, type ActivityStatus } from '../types/index';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
3
  activity: {
4
- type: import("vue").PropType<ActivityBase>;
4
+ type: import("vue").PropType<Activity>;
5
5
  required: true;
6
6
  };
7
7
  activityTypes: {
@@ -30,6 +30,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
30
30
  isTaskCheckable: {
31
31
  type: import("vue").PropType<(task: Subtask) => boolean>;
32
32
  };
33
+ statuses: {
34
+ type: import("vue").PropType<ActivityStatus[]>;
35
+ };
33
36
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
37
  'update:activity': (payload: UpdateActivityPayload) => void;
35
38
  close: (args_0: void) => void;
@@ -42,7 +45,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
42
45
  removeFile: (payload: RemoveFilePayload) => void;
43
46
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
44
47
  activity: {
45
- type: import("vue").PropType<ActivityBase>;
48
+ type: import("vue").PropType<Activity>;
46
49
  required: true;
47
50
  };
48
51
  activityTypes: {
@@ -71,6 +74,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
71
74
  isTaskCheckable: {
72
75
  type: import("vue").PropType<(task: Subtask) => boolean>;
73
76
  };
77
+ statuses: {
78
+ type: import("vue").PropType<ActivityStatus[]>;
79
+ };
74
80
  }>> & {
75
81
  onClose?: ((args_0?: void | undefined) => any) | undefined;
76
82
  onDeleteSubtask?: ((payload: {
@@ -0,0 +1,6 @@
1
+ export default function AoMultiselect(props: any, { slots, attrs }: {
2
+ slots: any;
3
+ attrs: any;
4
+ }): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
5
+ [key: string]: any;
6
+ }>;
@@ -4,9 +4,6 @@ declare const _default: import("vue").DefineComponent<{
4
4
  type: import("vue").PropType<Phase>;
5
5
  required: true;
6
6
  };
7
- projectName: {
8
- type: import("vue").PropType<string>;
9
- };
10
7
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
8
  addMilestone: (payload: AddMilestonePayload) => void;
12
9
  updateMilestone: (payload: UpdateMilestonePayload) => void;
@@ -22,9 +19,6 @@ declare const _default: import("vue").DefineComponent<{
22
19
  type: import("vue").PropType<Phase>;
23
20
  required: true;
24
21
  };
25
- projectName: {
26
- type: import("vue").PropType<string>;
27
- };
28
22
  }>> & {
29
23
  onUpdateMilestone?: ((payload: UpdateMilestonePayload) => any) | undefined;
30
24
  onArchiveMilestone?: ((payload: {
@@ -1,18 +1,16 @@
1
- import { AddMilestonePayload, Phase, UpdateMilestonePayload, UpdatePhasePayload } from '../types';
1
+ import { AddMilestonePayload, AddPhasePayload, Phase, UpdateMilestonePayload, UpdatePhasePayload } from '../types';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  phases: {
4
4
  type: import("vue").PropType<Phase[]>;
5
5
  required: true;
6
6
  };
7
- projectName: {
8
- type: import("vue").PropType<string>;
9
- };
10
7
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
8
  addMilestone: (payload: AddMilestonePayload) => void;
12
9
  updateMilestone: (payload: UpdateMilestonePayload) => void;
13
10
  archiveMilestone: (payload: {
14
11
  id: string;
15
12
  }) => void;
13
+ addPhase: (payload: AddPhasePayload) => void;
16
14
  updatePhase: (payload: UpdatePhasePayload) => void;
17
15
  archivePhase: (payload: {
18
16
  id: string;
@@ -22,9 +20,6 @@ declare const _default: import("vue").DefineComponent<{
22
20
  type: import("vue").PropType<Phase[]>;
23
21
  required: true;
24
22
  };
25
- projectName: {
26
- type: import("vue").PropType<string>;
27
- };
28
23
  }>> & {
29
24
  onUpdateMilestone?: ((payload: UpdateMilestonePayload) => any) | undefined;
30
25
  onArchiveMilestone?: ((payload: {
@@ -35,5 +30,6 @@ declare const _default: import("vue").DefineComponent<{
35
30
  }) => any) | undefined;
36
31
  onAddMilestone?: ((payload: AddMilestonePayload) => any) | undefined;
37
32
  onUpdatePhase?: ((payload: UpdatePhasePayload) => any) | undefined;
33
+ onAddPhase?: ((payload: AddPhasePayload) => any) | undefined;
38
34
  }, {}, {}>;
39
35
  export default _default;
@@ -27,11 +27,11 @@ export default function useProjectOverviewStore(): {
27
27
  lastName?: string | undefined;
28
28
  picture?: string | undefined;
29
29
  } | undefined;
30
- status: {
30
+ status?: {
31
31
  name: string;
32
32
  __typename: string;
33
33
  id: string;
34
- };
34
+ } | undefined;
35
35
  deadline?: string | undefined;
36
36
  project?: {
37
37
  id: string;
@@ -68,12 +68,12 @@ export default function useProjectOverviewStore(): {
68
68
  blocking?: string[] | undefined;
69
69
  attachments?: {
70
70
  createdAt: string;
71
+ id: string;
71
72
  name: string;
72
73
  size: number;
73
- lastModified: number;
74
- type: string;
74
+ encoding: string;
75
+ mimeType: string;
75
76
  url: string;
76
- id: string;
77
77
  __typename: string;
78
78
  }[] | undefined;
79
79
  tasks?: {
@@ -55,7 +55,7 @@ export type DurationTypesKeys = keyof typeof durationTypes;
55
55
  export type DurationTypes = (typeof durationTypes)[DurationTypesKeys];
56
56
  export interface Activity extends ActivityBase {
57
57
  assignee?: User;
58
- status: ActivityStatus;
58
+ status?: ActivityStatus;
59
59
  deadline?: string;
60
60
  project?: Project;
61
61
  comments?: Comment[];
@@ -67,6 +67,8 @@ export interface AddActivityFeedPayload {
67
67
  name: string;
68
68
  rank: string;
69
69
  statusId: string;
70
+ assigneeId?: Id;
71
+ projectId?: Id;
70
72
  }
71
73
  export interface ActivityFeed<K extends ActivityFeedStatus = ActivityFeedStatus> extends ActivityBase {
72
74
  projectId: Id;
@@ -93,12 +95,12 @@ export interface Comment extends Entity {
93
95
  updatedAt?: string;
94
96
  }
95
97
  export interface FileLike extends Entity {
98
+ id: Id;
96
99
  name: string;
97
100
  size: number;
98
- lastModified: number;
99
- type: string;
101
+ encoding: string;
102
+ mimeType: string;
100
103
  url: string;
101
- id: Id;
102
104
  }
103
105
  export interface Attachment extends FileLike {
104
106
  createdAt: string;
@@ -263,6 +265,8 @@ export interface UpdateActivityPayload {
263
265
  rank?: string;
264
266
  statusId?: string;
265
267
  deadline?: string;
268
+ typeId?: Id;
269
+ assigneeId?: Id;
266
270
  }
267
271
  export interface AddRulePayload {
268
272
  templateId: Id;
@@ -24,14 +24,14 @@ declare const _default: import("vue").DefineComponent<{
24
24
  isTaskCheckable: {
25
25
  type: import("vue").PropType<(task: Subtask) => boolean>;
26
26
  };
27
- userId: {
28
- type: import("vue").PropType<string>;
29
- required: true;
30
- };
31
27
  statuses: {
32
28
  type: import("vue").PropType<ActivityStatus[]>;
33
29
  required: true;
34
30
  };
31
+ userId: {
32
+ type: import("vue").PropType<string>;
33
+ required: true;
34
+ };
35
35
  projects: {
36
36
  type: import("vue").PropType<Project[]>;
37
37
  required: true;
@@ -86,14 +86,14 @@ declare const _default: import("vue").DefineComponent<{
86
86
  isTaskCheckable: {
87
87
  type: import("vue").PropType<(task: Subtask) => boolean>;
88
88
  };
89
- userId: {
90
- type: import("vue").PropType<string>;
91
- required: true;
92
- };
93
89
  statuses: {
94
90
  type: import("vue").PropType<ActivityStatus[]>;
95
91
  required: true;
96
92
  };
93
+ userId: {
94
+ type: import("vue").PropType<string>;
95
+ required: true;
96
+ };
97
97
  projects: {
98
98
  type: import("vue").PropType<Project[]>;
99
99
  required: true;
@@ -1,4 +1,4 @@
1
- import { type Activity, type UpdateActivityPayload, type AddSubtaskPayload, type AddCommentPayload, type UpdateCommentPayload, type RemoveCommentPayload } from '../types';
1
+ import { type Activity, type UpdateActivityPayload, type AddSubtaskPayload, type AddCommentPayload, type UpdateCommentPayload, type RemoveCommentPayload, type Subtask, type ActivityStatus } from '../types';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  phaseId: {
4
4
  type: import("vue").PropType<string>;
@@ -22,6 +22,13 @@ declare const _default: import("vue").DefineComponent<{
22
22
  assigneesOptions: {
23
23
  type: import("vue").PropType<Record<string, string>>;
24
24
  };
25
+ isTaskCheckable: {
26
+ type: import("vue").PropType<(task: Subtask) => boolean>;
27
+ };
28
+ statuses: {
29
+ type: import("vue").PropType<ActivityStatus[]>;
30
+ required: true;
31
+ };
25
32
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
33
  'update:activity': (payload: UpdateActivityPayload) => void;
27
34
  addSubtask: (payload: AddSubtaskPayload) => void;
@@ -51,6 +58,13 @@ declare const _default: import("vue").DefineComponent<{
51
58
  assigneesOptions: {
52
59
  type: import("vue").PropType<Record<string, string>>;
53
60
  };
61
+ isTaskCheckable: {
62
+ type: import("vue").PropType<(task: Subtask) => boolean>;
63
+ };
64
+ statuses: {
65
+ type: import("vue").PropType<ActivityStatus[]>;
66
+ required: true;
67
+ };
54
68
  }>> & {
55
69
  "onUpdate:activity"?: ((payload: UpdateActivityPayload) => any) | undefined;
56
70
  onAddSubtask?: ((payload: AddSubtaskPayload) => any) | undefined;
@@ -8,9 +8,6 @@ declare const _default: import("vue").DefineComponent<{
8
8
  type: import("vue").PropType<User[]>;
9
9
  required: true;
10
10
  };
11
- projectName: {
12
- type: import("vue").PropType<string>;
13
- };
14
11
  projectId: {
15
12
  type: import("vue").PropType<string>;
16
13
  required: true;
@@ -38,9 +35,6 @@ declare const _default: import("vue").DefineComponent<{
38
35
  type: import("vue").PropType<User[]>;
39
36
  required: true;
40
37
  };
41
- projectName: {
42
- type: import("vue").PropType<string>;
43
- };
44
38
  projectId: {
45
39
  type: import("vue").PropType<string>;
46
40
  required: true;
@@ -1,4 +1,4 @@
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';
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, type Subtask, type ActivityStatus } from '../types';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  project: {
4
4
  type: import("vue").PropType<Project>;
@@ -20,6 +20,13 @@ declare const _default: import("vue").DefineComponent<{
20
20
  type: import("vue").PropType<TemplateDetails[]>;
21
21
  required: true;
22
22
  };
23
+ isTaskCheckable: {
24
+ type: import("vue").PropType<(task: Subtask) => boolean>;
25
+ };
26
+ statuses: {
27
+ type: import("vue").PropType<ActivityStatus[]>;
28
+ required: true;
29
+ };
23
30
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
31
  addPhase: (payload: AddPhasePayload) => void;
25
32
  updatePhase: (payload: UpdatePhasePayload) => void;
@@ -64,6 +71,13 @@ declare const _default: import("vue").DefineComponent<{
64
71
  type: import("vue").PropType<TemplateDetails[]>;
65
72
  required: true;
66
73
  };
74
+ isTaskCheckable: {
75
+ type: import("vue").PropType<(task: Subtask) => boolean>;
76
+ };
77
+ statuses: {
78
+ type: import("vue").PropType<ActivityStatus[]>;
79
+ required: true;
80
+ };
67
81
  }>> & {
68
82
  onArchiveActivity?: ((payload: {
69
83
  id: string;
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.9.1",
7
+ "version": "0.9.2",
8
8
  "workspaces": [
9
9
  "packages/*"
10
10
  ],
@@ -36,24 +36,24 @@
36
36
  "lexorank": "^1.0.5"
37
37
  },
38
38
  "devDependencies": {
39
- "@histoire/plugin-vue": "^0.16.1",
40
- "@rushstack/eslint-patch": "^1.2.0",
39
+ "@histoire/plugin-vue": "^0.17.1",
40
+ "@rushstack/eslint-patch": "^1.3.3",
41
41
  "@tsconfig/node18": "^2.0.1",
42
- "@types/eslint": "^8",
42
+ "@types/eslint": "^8.44.2",
43
43
  "@types/jsdom": "^21.1.1",
44
44
  "@types/node": "^18.16.17",
45
- "@types/prettier": "^2",
45
+ "@types/prettier": "^3.0.0",
46
46
  "@vitejs/plugin-vue": "^4.2.3",
47
- "@vue/eslint-config-prettier": "^7.1.0",
47
+ "@vue/eslint-config-prettier": "^8.0.0",
48
48
  "@vue/eslint-config-typescript": "^11.0.3",
49
49
  "@vue/test-utils": "^2.3.2",
50
50
  "@vue/tsconfig": "^0.4.0",
51
- "eslint": "^8.43.0",
52
- "eslint-plugin-vue": "^9.15.0",
53
- "histoire": "^0.16.2",
51
+ "eslint": "^8.49.0",
52
+ "eslint-plugin-vue": "^9.17.0",
53
+ "histoire": "^0.17.0",
54
54
  "jsdom": "^22.1.0",
55
55
  "npm-run-all": "^4.1.5",
56
- "prettier": "^2.8.8",
56
+ "prettier": "^3.0.3",
57
57
  "serve": "^14.2.0",
58
58
  "typescript": "^5.1.3",
59
59
  "vite": "^4.3.9",