@26lights/orcha 0.41.122 → 0.41.124

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,473 +0,0 @@
1
- export type Id = string;
2
- export interface Entity {
3
- __typename: string;
4
- id: Id;
5
- }
6
- export interface Ordered {
7
- id: string;
8
- rank: string;
9
- }
10
- export interface ActivityType extends Entity {
11
- name: string;
12
- }
13
- export interface TemplateDetails extends Entity, Ordered {
14
- name?: string;
15
- phases: Phase[];
16
- rules?: Rule[];
17
- order: number;
18
- updatedAt?: string;
19
- updatedBy?: string;
20
- }
21
- export interface Phase extends Entity, Ordered {
22
- name?: string;
23
- milestones: Milestone[];
24
- deadline?: string;
25
- active: boolean;
26
- color?: string;
27
- }
28
- export declare const milestoneStatus: {
29
- readonly todo: "todo";
30
- readonly done: "done";
31
- readonly archived: "archived";
32
- };
33
- export type MilestoneStatusKeys = keyof typeof milestoneStatus;
34
- export type MilestoneStatus = (typeof milestoneStatus)[MilestoneStatusKeys];
35
- export interface Milestone extends Entity, Ordered {
36
- name?: string;
37
- activities: Activity[];
38
- status?: MilestoneStatus;
39
- phase?: Phase;
40
- deadline?: string;
41
- important?: boolean;
42
- assignee?: User;
43
- color?: string;
44
- active: boolean;
45
- }
46
- export interface ActivityBase extends Entity, Ordered {
47
- name: string;
48
- description?: string;
49
- estimation?: number;
50
- important?: boolean;
51
- type?: ActivityType;
52
- milestone?: Milestone;
53
- dependingOn?: ActivityBase[];
54
- blocking?: ActivityBase[];
55
- attachments?: Attachment[];
56
- tasks?: Subtask[];
57
- slug?: string;
58
- }
59
- export declare const durationTypes: {
60
- readonly months: "months";
61
- readonly weeks: "weeks";
62
- readonly days: "days";
63
- };
64
- export type DurationTypesKeys = keyof typeof durationTypes;
65
- export type DurationTypes = (typeof durationTypes)[DurationTypesKeys];
66
- export interface Activity extends ActivityBase {
67
- assignee?: User;
68
- status?: ActivityStatus;
69
- deadline?: string;
70
- project?: Project;
71
- comments?: Comment[];
72
- duration?: number;
73
- durationType?: DurationTypes;
74
- private: boolean;
75
- createdBy: User;
76
- }
77
- export interface AddActivityFeedPayload {
78
- name: string;
79
- rank: string;
80
- statusId: string;
81
- assigneeId?: Id;
82
- projectId?: Id;
83
- typeId?: Id;
84
- }
85
- export interface ActivityFeed<K extends ActivityFeedStatus = ActivityFeedStatus> extends ActivityBase {
86
- project: {
87
- projectId: Id;
88
- name?: string;
89
- };
90
- active: boolean;
91
- milestoneId?: Id;
92
- phaseId?: Id;
93
- deadline?: string;
94
- assignee?: Id;
95
- comments?: Comment[];
96
- attachments?: Attachment[];
97
- feedStatus: (typeof activityFeedStatus)[K];
98
- }
99
- export interface Subtask extends Entity {
100
- name: string;
101
- assignee?: {
102
- id: Id;
103
- };
104
- isDone?: boolean;
105
- }
106
- export interface Comment extends Entity {
107
- author: User;
108
- message: string;
109
- createdAt: string;
110
- updatedAt?: string;
111
- }
112
- export interface FileLike extends Entity {
113
- id: Id;
114
- name: string;
115
- size: number;
116
- encoding: string;
117
- mimeType: string;
118
- url: string;
119
- }
120
- export interface Attachment extends FileLike {
121
- createdAt: string;
122
- }
123
- export interface ActivityStatus extends Entity {
124
- name: string;
125
- }
126
- export declare const activityFeedStatus: {
127
- readonly future: "future";
128
- readonly this_month: "this_month";
129
- readonly this_week: "this_week";
130
- readonly today: "today";
131
- readonly done: "done";
132
- };
133
- export type ActivityFeedStatusKeys = keyof typeof activityFeedStatus;
134
- export type ActivityFeedStatus = (typeof activityFeedStatus)[ActivityFeedStatusKeys];
135
- export declare const ruleComparators: {
136
- readonly BEFORE: "before";
137
- readonly AFTER: "after";
138
- };
139
- export type RuleComparatorKeys = keyof typeof ruleComparators;
140
- export type RuleComparator = (typeof ruleComparators)[RuleComparatorKeys];
141
- export declare const ruleTriggerTypes: {
142
- readonly START: "start";
143
- readonly end: "end";
144
- };
145
- export type RuleTriggerTypeKeys = keyof typeof ruleTriggerTypes;
146
- export type RuleTriggerTypes = (typeof ruleTriggerTypes)[RuleTriggerTypeKeys];
147
- export declare const ruleDurationUnits: {
148
- readonly DAYS: "days";
149
- readonly WEEKS: "weeks";
150
- readonly MONTHS: "months";
151
- };
152
- export type RuleDurationUnitKeys = keyof typeof ruleDurationUnits;
153
- export type RuleDurationUnits = (typeof ruleDurationUnits)[RuleDurationUnitKeys];
154
- export interface Rule {
155
- id: Id;
156
- itemType?: TemplateItemType;
157
- subItemId?: Id;
158
- comparator?: RuleComparator;
159
- trigger?: RuleTriggerTypes;
160
- deadline?: string;
161
- startDate?: string;
162
- duration?: number;
163
- durationUnit?: RuleDurationUnits;
164
- }
165
- export interface User {
166
- id: Id;
167
- firstName?: string;
168
- lastName?: string;
169
- avatarUrl?: string;
170
- }
171
- export declare const templateItemType: {
172
- readonly TEMPLATES: "templates";
173
- readonly PHASES: "phases";
174
- readonly MILESTONES: "milestones";
175
- readonly ACTIVITIES: "activities";
176
- readonly TASKS: "tasks";
177
- };
178
- export declare enum TemplateItemTypeEnum {
179
- PHASES = "phases",
180
- MILESTONES = "milestones",
181
- ACTIVITIES = "activities"
182
- }
183
- export type TemplateItemTypeKeys = keyof typeof templateItemType;
184
- export type TemplateItemType = (typeof templateItemType)[TemplateItemTypeKeys];
185
- export interface UpdateTemplateDetailsPayload {
186
- id: Id;
187
- name?: string;
188
- phases?: Phase[];
189
- rules?: Rule[];
190
- order?: number;
191
- }
192
- export interface AddItemPayload {
193
- type: TemplateItemType;
194
- templateId: Id;
195
- phaseId?: Id;
196
- milestoneId?: Id;
197
- activityId?: Id;
198
- item: AddPhasePayload | AddMilestonePayload | AddActivityPayload | AddSubtaskPayload;
199
- }
200
- export interface AddPhasePayload {
201
- name: string;
202
- rank: string;
203
- projectId?: string;
204
- deadline?: string;
205
- }
206
- export interface AddMilestonePayload {
207
- name: string;
208
- rank: string;
209
- phaseId: string;
210
- deadline?: string;
211
- }
212
- export interface AddActivityPayload {
213
- milestoneId: Id;
214
- name: string;
215
- rank: Id;
216
- projectId?: Id;
217
- }
218
- export interface UpdateMilestonePayload {
219
- id: Id;
220
- phaseId?: Id;
221
- rank?: string;
222
- name?: string;
223
- activities?: Activity[];
224
- rules?: Rule[];
225
- deadline?: string | null;
226
- assigneeId?: Id;
227
- important?: Boolean;
228
- color?: string;
229
- }
230
- export interface UpdateItemPayload<T extends TemplateItemType> {
231
- itemType: T;
232
- id: Id;
233
- templateId: Id;
234
- data: UpdateItemPayloadDataTypes[T];
235
- }
236
- export interface UpdatePhasePayload {
237
- id: Id;
238
- name?: string;
239
- milestones?: Milestone[];
240
- rules?: Rule[];
241
- rank?: string;
242
- deadline?: string;
243
- }
244
- export type UpdateItemPayloadDataTypes = {
245
- [TemplateItemTypeEnum.ACTIVITIES]: UpdateActivityPayload;
246
- [TemplateItemTypeEnum.MILESTONES]: UpdateMilestonePayload;
247
- [TemplateItemTypeEnum.PHASES]: UpdatePhasePayload;
248
- };
249
- export type UpdateItemPayloadData<T extends TemplateItemTypeEnum> = UpdateItemPayloadDataTypes[T];
250
- export interface MoveItemPayload {
251
- id: Id;
252
- rank: string;
253
- }
254
- export interface RemoveItemPayload<T extends TemplateItemType> {
255
- itemType: T;
256
- templateId: Id;
257
- phaseId?: Id;
258
- milestoneId?: Id;
259
- activityId?: Id;
260
- data: {
261
- id: Id;
262
- name?: string;
263
- };
264
- }
265
- export interface RemoveMilestonePayload {
266
- id: Id;
267
- phaseId: Id;
268
- }
269
- export interface RemoveActivityPayload {
270
- id: Id;
271
- }
272
- export interface AddSubtaskPayload {
273
- activityId: Id;
274
- name: string;
275
- }
276
- export interface StartTimerPayload {
277
- activityId: Id;
278
- activityName: string;
279
- project?: string;
280
- projectId?: string;
281
- activitySlug?: string;
282
- }
283
- export interface UpdateActivityPayload {
284
- id: Id;
285
- name?: string;
286
- rules?: Rule[];
287
- tasks?: Subtask[];
288
- description?: string;
289
- estimation?: number;
290
- important?: boolean;
291
- dependingOn?: Id[];
292
- blocking?: Id[];
293
- dependingMilestones?: Id[];
294
- type?: string;
295
- rank?: string;
296
- statusId?: string;
297
- deadline?: string | null;
298
- typeId?: Id;
299
- assigneeId?: Id | null;
300
- projectId?: Id;
301
- milestoneId?: Id;
302
- private?: boolean;
303
- }
304
- export interface AddRulePayload {
305
- templateId: Id;
306
- }
307
- export interface UpdateRulePayload extends Rule {
308
- }
309
- export interface updateTemplateRulePayload {
310
- templateId: Id;
311
- payload: UpdateRulePayload;
312
- }
313
- export interface RemoveRulePayload {
314
- templateId: Id;
315
- id: Id;
316
- }
317
- export declare const listUpdateTypes: {
318
- readonly add: "add";
319
- readonly remove: "remove";
320
- readonly moved: "moved";
321
- };
322
- export type ListUpdateTypesKeys = keyof typeof listUpdateTypes;
323
- export type ListUpdateTypes = (typeof listUpdateTypes)[ListUpdateTypesKeys];
324
- export type FeedListUpdateType = {
325
- element: Activity;
326
- };
327
- export type FeedListUpdateAdded = {
328
- added: {
329
- element: Activity;
330
- newIndex: number;
331
- };
332
- };
333
- export type FeedListUpdateRemoved = {
334
- removed: {
335
- element: Activity;
336
- oldIndex: number;
337
- };
338
- };
339
- export type FeedListUpdateMoved = {
340
- moved: {
341
- element: Activity;
342
- newIndex: number;
343
- oldIndex: number;
344
- };
345
- };
346
- export type FeedListUpdateUnion = FeedListUpdateAdded | FeedListUpdateRemoved | FeedListUpdateMoved;
347
- export type FeedListUpdates = {
348
- [listUpdateTypes.add]: FeedListUpdateAdded;
349
- [listUpdateTypes.remove]: FeedListUpdateRemoved;
350
- [listUpdateTypes.moved]: FeedListUpdateMoved;
351
- };
352
- export type FeedListUpdate<K extends ListUpdateTypesKeys> = FeedListUpdates[K];
353
- export interface UpdateFeedActivitiesPayload<T extends ActivityFeedStatus> {
354
- payload: {
355
- status: T;
356
- activities: ActivityFeed<T>[];
357
- };
358
- }
359
- export interface ChangeFeedActivitiesChange {
360
- change: FeedListUpdateUnion;
361
- }
362
- export type ChangeFeedActivitiesPayload = ChangeFeedActivitiesChange & {
363
- status: ActivityStatus;
364
- };
365
- export type AddFeedActivityPayload = {
366
- status: ActivityStatus;
367
- };
368
- export type Project = {
369
- id: string;
370
- name?: string;
371
- phases?: Phase[];
372
- architectureImage?: Image;
373
- };
374
- export type Image = {
375
- url: string;
376
- name: string;
377
- };
378
- export declare const feedFilterTypes: {
379
- readonly project: "projectId";
380
- readonly type: "typeId";
381
- readonly assignee: "assigneeId";
382
- };
383
- export type FeedFilterTypeKeys = keyof typeof feedFilterTypes;
384
- export type FeedFilterType = (typeof feedFilterTypes)[FeedFilterTypeKeys];
385
- export type UpdateFeedFilterPayload = {
386
- type: FeedFilterType;
387
- values: Array<Id | string>;
388
- };
389
- export type FeedFilters = Record<FeedFilterType, Id[]>;
390
- export type UdpateFeedActivityData = {
391
- id: Id;
392
- phaseId?: Id;
393
- milestoneId?: Id;
394
- rank: number;
395
- name?: string;
396
- rules?: Rule[];
397
- tasks?: Subtask[];
398
- description?: string;
399
- estimation?: number;
400
- important?: boolean;
401
- dependingOn?: Id[];
402
- blocking?: Id[];
403
- dependingMilestones?: Id[];
404
- type?: string;
405
- feedStatus: ActivityFeedStatus;
406
- };
407
- export type UpdateFeedActivityPayload = {
408
- itemType: typeof templateItemType.ACTIVITIES;
409
- id: Id;
410
- projectId?: Id;
411
- data: UdpateFeedActivityData;
412
- };
413
- export type UdpateProjectActivityData = {
414
- id: Id;
415
- phaseId: Id;
416
- milestoneId: Id;
417
- rank: string;
418
- name?: string;
419
- rules?: Rule[];
420
- tasks?: Subtask[];
421
- description?: string;
422
- estimation?: number;
423
- important?: boolean;
424
- dependingOn?: Id[];
425
- blocking?: Id[];
426
- dependingMilestones?: Id[];
427
- type?: string;
428
- };
429
- export type UpdateSubtaskFieldPayload = {
430
- id: Id;
431
- name?: string;
432
- assigneeId?: Id;
433
- isDone?: boolean;
434
- };
435
- export type MultiselectOption = {
436
- label: string;
437
- value: Id;
438
- };
439
- export type MultiselectOptionTagProps<T extends MultiselectOption = MultiselectOption> = {
440
- option: T;
441
- handleTagRemove: (option: T, e: Event) => void;
442
- };
443
- export type AddFilesPayload = {
444
- activityId: Id;
445
- files: File[];
446
- };
447
- export type RemoveFilePayload = {
448
- activityId: Id;
449
- file: Attachment;
450
- };
451
- export type AddCommentPayload = {
452
- activityId: Id;
453
- authorId: Id;
454
- message: string;
455
- mentionedUserIds: Id[];
456
- };
457
- export type UpdateCommentPayload = {
458
- id: Id;
459
- message: string;
460
- mentionedUserIds: Id[];
461
- };
462
- export type RemoveCommentPayload = {
463
- id: Id;
464
- };
465
- export type ApplyTemplatePayload = {
466
- templateId: Id;
467
- projectId: Id;
468
- };
469
- export type SaveTemplatePayload = {
470
- templateName: string;
471
- rank: Id;
472
- phaseIds: Id[];
473
- };