terse-types 0.0.30 → 0.0.32

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.
@@ -14,44 +14,12 @@ export declare enum LinearStateName {
14
14
  Done = "Done",
15
15
  Canceled = "Canceled"
16
16
  }
17
- export interface Ticket {
18
- id: string;
19
- identifier: string;
20
- title: string;
21
- description?: string;
22
- state: {
23
- id: string;
24
- name: string;
25
- };
26
- assignee?: {
27
- id: string;
28
- name: string;
29
- } | null;
30
- priority?: number;
31
- labels?: Array<{
32
- id: string;
33
- name: string;
34
- color: string;
35
- }>;
36
- estimate?: number;
37
- dueDate?: string;
38
- project?: {
39
- id: string;
40
- name: string;
41
- } | null;
42
- team?: {
43
- id: string;
44
- name: string;
45
- key: string;
46
- };
47
- createdAt: string;
48
- updatedAt: string;
49
- }
50
- export interface User {
17
+ interface User {
51
18
  id: string;
52
19
  name: string;
53
20
  email: string;
54
21
  }
22
+ export { User as TicketSystemUser };
55
23
  export interface UserContext {
56
24
  userInfo: User;
57
25
  teams: Team[];
@@ -59,11 +27,11 @@ export interface UserContext {
59
27
  ticketStates: TicketState[];
60
28
  milestones: Milestone[];
61
29
  }
62
- export interface TicketState {
30
+ interface TicketState {
63
31
  id: string;
64
32
  name: string;
65
33
  }
66
- export interface Milestone {
34
+ interface Milestone {
67
35
  id: string;
68
36
  name: string;
69
37
  }
@@ -75,78 +43,19 @@ export interface Organization {
75
43
  userCount: number;
76
44
  projects: Project[];
77
45
  }
78
- export type Project = {
46
+ type Project = {
79
47
  id: string;
80
48
  name: string;
81
49
  description?: string;
82
50
  updates: Update[];
83
51
  };
84
- export type Update = {
52
+ type Update = {
85
53
  id: string;
86
54
  title: string;
87
55
  description?: string;
88
56
  };
89
- export interface Comment {
90
- id: string;
91
- authorId: string;
92
- body: string;
93
- createdAt: string;
94
- updatedAt?: string;
95
- [key: string]: any;
96
- }
97
57
  export interface Team {
98
58
  id: string;
99
59
  name: string;
100
60
  key: string;
101
61
  }
102
- export interface CommitAssociation {
103
- sha: string;
104
- message: string;
105
- url: string;
106
- repository: string;
107
- branch?: string;
108
- }
109
- export interface CreateTicketInput {
110
- title: string;
111
- teamId: string;
112
- description?: string;
113
- state?: {
114
- id: string;
115
- name: string;
116
- };
117
- assignee?: string;
118
- priority?: number;
119
- project?: {
120
- id: string;
121
- name: string;
122
- };
123
- milestone?: {
124
- id: string;
125
- name: string;
126
- };
127
- associatedCommits?: CommitAssociation[];
128
- issueType?: string;
129
- }
130
- export interface UpdateTicketInput {
131
- title: string;
132
- teamId: string;
133
- description?: string;
134
- state?: {
135
- id: string;
136
- name: string;
137
- };
138
- assignee?: string;
139
- priority?: number;
140
- project?: {
141
- id: string;
142
- name: string;
143
- };
144
- milestone?: {
145
- id: string;
146
- name: string;
147
- };
148
- associatedCommits?: CommitAssociation[];
149
- }
150
- export interface TicketWebhookHandler {
151
- (ticket: Ticket): void | Promise<void>;
152
- }