Skip to content

Commit

Permalink
Merged branch feature/notes-for-big-plans into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
horia141 committed Mar 10, 2024
1 parent 1386d80 commit bcd34ff
Show file tree
Hide file tree
Showing 87 changed files with 964 additions and 107 deletions.
2 changes: 2 additions & 0 deletions gen/gen/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ export type { ProjectCreateArgs } from './models/ProjectCreateArgs';
export type { ProjectCreateResult } from './models/ProjectCreateResult';
export type { ProjectFindArgs } from './models/ProjectFindArgs';
export type { ProjectFindResult } from './models/ProjectFindResult';
export type { ProjectFindResultEntry } from './models/ProjectFindResultEntry';
export type { ProjectLoadArgs } from './models/ProjectLoadArgs';
export type { ProjectLoadResult } from './models/ProjectLoadResult';
export type { ProjectName } from './models/ProjectName';
Expand Down Expand Up @@ -355,6 +356,7 @@ export type { VacationCreateArgs } from './models/VacationCreateArgs';
export type { VacationCreateResult } from './models/VacationCreateResult';
export type { VacationFindArgs } from './models/VacationFindArgs';
export type { VacationFindResult } from './models/VacationFindResult';
export type { VacationFindResultEntry } from './models/VacationFindResultEntry';
export type { VacationLoadArgs } from './models/VacationLoadArgs';
export type { VacationLoadResult } from './models/VacationLoadResult';
export type { VacationName } from './models/VacationName';
Expand Down
1 change: 1 addition & 0 deletions gen/gen/models/BigPlanFindArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export type BigPlanFindArgs = {
allow_archived: boolean;
include_project: boolean;
include_inbox_tasks: boolean;
include_notes: boolean;
filter_ref_ids?: Array<EntityId>;
filter_project_ref_ids?: Array<EntityId>;
};
Expand Down
2 changes: 2 additions & 0 deletions gen/gen/models/BigPlanFindResultEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@

import type { BigPlan } from './BigPlan';
import type { InboxTask } from './InboxTask';
import type { Note } from './Note';
import type { Project } from './Project';

/**
* A single big plan result.
*/
export type BigPlanFindResultEntry = {
big_plan: BigPlan;
note?: Note;
project?: Project;
inbox_tasks?: Array<InboxTask>;
};
Expand Down
2 changes: 2 additions & 0 deletions gen/gen/models/BigPlanLoadResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import type { BigPlan } from './BigPlan';
import type { InboxTask } from './InboxTask';
import type { Note } from './Note';
import type { Project } from './Project';

/**
Expand All @@ -13,5 +14,6 @@ export type BigPlanLoadResult = {
big_plan: BigPlan;
project: Project;
inbox_tasks: Array<InboxTask>;
note?: Note;
};

1 change: 1 addition & 0 deletions gen/gen/models/ChoreFindArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export type ChoreFindArgs = {
allow_archived: boolean;
include_project: boolean;
include_inbox_tasks: boolean;
include_notes: boolean;
filter_ref_ids?: Array<EntityId>;
filter_project_ref_ids?: Array<EntityId>;
};
Expand Down
2 changes: 2 additions & 0 deletions gen/gen/models/ChoreFindResultEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@

import type { Chore } from './Chore';
import type { InboxTask } from './InboxTask';
import type { Note } from './Note';
import type { Project } from './Project';

/**
* A single entry in the load all chores response.
*/
export type ChoreFindResultEntry = {
chore: Chore;
note?: Note;
project?: Project;
inbox_tasks?: Array<InboxTask>;
};
Expand Down
2 changes: 2 additions & 0 deletions gen/gen/models/ChoreLoadResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import type { Chore } from './Chore';
import type { InboxTask } from './InboxTask';
import type { Note } from './Note';
import type { Project } from './Project';

/**
Expand All @@ -13,5 +14,6 @@ export type ChoreLoadResult = {
chore: Chore;
project: Project;
inbox_tasks: Array<InboxTask>;
note?: Note;
};

1 change: 1 addition & 0 deletions gen/gen/models/HabitFindArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type { EntityId } from './EntityId';
*/
export type HabitFindArgs = {
allow_archived: boolean;
include_notes: boolean;
include_project: boolean;
include_inbox_tasks: boolean;
filter_ref_ids?: Array<EntityId>;
Expand Down
2 changes: 2 additions & 0 deletions gen/gen/models/HabitFindResultEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import type { Habit } from './Habit';
import type { InboxTask } from './InboxTask';
import type { Note } from './Note';
import type { Project } from './Project';

/**
Expand All @@ -13,5 +14,6 @@ export type HabitFindResultEntry = {
habit: Habit;
project?: Project;
inbox_tasks?: Array<InboxTask>;
note?: Note;
};

2 changes: 2 additions & 0 deletions gen/gen/models/HabitLoadResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import type { Habit } from './Habit';
import type { InboxTask } from './InboxTask';
import type { Note } from './Note';
import type { Project } from './Project';

/**
Expand All @@ -13,5 +14,6 @@ export type HabitLoadResult = {
habit: Habit;
project: Project;
inbox_tasks: Array<InboxTask>;
note?: Note;
};

2 changes: 1 addition & 1 deletion gen/gen/models/InboxTaskFindResultEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import type { SlackTask } from './SlackTask';
*/
export type InboxTaskFindResultEntry = {
inbox_task: InboxTask;
note?: Note;
project: Project;
habit?: Habit;
chore?: Chore;
Expand All @@ -26,6 +27,5 @@ export type InboxTaskFindResultEntry = {
person?: Person;
slack_task?: SlackTask;
email_task?: EmailTask;
note?: Note;
};

1 change: 1 addition & 0 deletions gen/gen/models/MetricFindArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type { EntityId } from './EntityId';
*/
export type MetricFindArgs = {
allow_archived: boolean;
include_notes: boolean;
include_entries: boolean;
include_collection_inbox_tasks: boolean;
include_metric_entry_notes: boolean;
Expand Down
1 change: 1 addition & 0 deletions gen/gen/models/MetricFindResponseEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import type { Note } from './Note';
*/
export type MetricFindResponseEntry = {
metric: Metric;
note?: Note;
metric_entries?: Array<MetricEntry>;
metric_collection_inbox_tasks?: Array<InboxTask>;
metric_entry_notes?: Array<Note>;
Expand Down
2 changes: 2 additions & 0 deletions gen/gen/models/MetricLoadResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
import type { InboxTask } from './InboxTask';
import type { Metric } from './Metric';
import type { MetricEntry } from './MetricEntry';
import type { Note } from './Note';

/**
* MetricLoadResult.
*/
export type MetricLoadResult = {
metric: Metric;
note?: Note;
metric_entries: Array<MetricEntry>;
metric_collection_inbox_tasks: Array<InboxTask>;
};
Expand Down
11 changes: 9 additions & 2 deletions gen/gen/models/NoteDomain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@
* The source of a note.
*/
export enum NoteDomain {
DOC = 'doc',
INBOX_TASK = 'inbox-task',
HABIT = 'habit',
CHORE = 'chore',
BIG_PLAN = 'big-plan',
DOC = 'doc',
JOURNAL = 'journal',
VACATION = 'vacation',
PROJECT = 'project',
SMART_LIST = 'smart-list',
SMART_LIST_ITEM = 'smart-list-item',
METRIC = 'metric',
METRIC_ENTRY = 'metric-entry',
PERSON = 'person',
LOG = 'log',
}
2 changes: 1 addition & 1 deletion gen/gen/models/PersonFindResultEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import type { Person } from './Person';
*/
export type PersonFindResultEntry = {
person: Person;
note?: Note;
catch_up_inbox_tasks?: Array<InboxTask>;
birthday_inbox_tasks?: Array<InboxTask>;
note?: Note;
};

1 change: 1 addition & 0 deletions gen/gen/models/ProjectFindArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type { EntityId } from './EntityId';
*/
export type ProjectFindArgs = {
allow_archived: boolean;
include_notes: boolean;
filter_ref_ids?: Array<EntityId>;
};

4 changes: 2 additions & 2 deletions gen/gen/models/ProjectFindResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
/* tslint:disable */
/* eslint-disable */

import type { Project } from './Project';
import type { ProjectFindResultEntry } from './ProjectFindResultEntry';

/**
* PersonFindResult object.
*/
export type ProjectFindResult = {
projects: Array<Project>;
entries: Array<ProjectFindResultEntry>;
};

15 changes: 15 additions & 0 deletions gen/gen/models/ProjectFindResultEntry.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { Note } from './Note';
import type { Project } from './Project';

/**
* A single project result.
*/
export type ProjectFindResultEntry = {
project: Project;
note?: Note;
};

2 changes: 2 additions & 0 deletions gen/gen/models/ProjectLoadResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
/* tslint:disable */
/* eslint-disable */

import type { Note } from './Note';
import type { Project } from './Project';

/**
* ProjectLoadResult.
*/
export type ProjectLoadResult = {
project: Project;
note?: Note;
};

2 changes: 2 additions & 0 deletions gen/gen/models/SmartListFindArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ import type { TagName } from './TagName';
*/
export type SmartListFindArgs = {
allow_archived: boolean;
include_notes: boolean;
include_tags: boolean;
include_items: boolean;
include_item_notes: boolean;
filter_ref_ids?: Array<EntityId>;
filter_is_done?: boolean;
filter_tag_names?: Array<TagName>;
Expand Down
3 changes: 3 additions & 0 deletions gen/gen/models/SmartListFindResponseEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */

import type { Note } from './Note';
import type { SmartList } from './SmartList';
import type { SmartListItem } from './SmartListItem';
import type { SmartListTag } from './SmartListTag';
Expand All @@ -11,7 +12,9 @@ import type { SmartListTag } from './SmartListTag';
*/
export type SmartListFindResponseEntry = {
smart_list: SmartList;
note?: Note;
smart_list_tags?: Array<SmartListTag>;
smart_list_items?: Array<SmartListItem>;
smart_list_item_notes?: Array<Note>;
};

6 changes: 4 additions & 2 deletions gen/gen/models/SmartListItemLoadResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
/* tslint:disable */
/* eslint-disable */

import type { Note } from './Note';
import type { SmartListItem } from './SmartListItem';
import type { SmartListTag } from './SmartListTag';

/**
* SmartListItemLoadResult.
*/
export type SmartListItemLoadResult = {
smart_list_item: SmartListItem;
smart_list_tags: Array<SmartListTag>;
item: SmartListItem;
tags: Array<SmartListTag>;
note?: Note;
};

3 changes: 3 additions & 0 deletions gen/gen/models/SmartListLoadResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* tslint:disable */
/* eslint-disable */

import type { Note } from './Note';
import type { SmartList } from './SmartList';
import type { SmartListItem } from './SmartListItem';
import type { SmartListTag } from './SmartListTag';
Expand All @@ -11,7 +12,9 @@ import type { SmartListTag } from './SmartListTag';
*/
export type SmartListLoadResult = {
smart_list: SmartList;
note?: Note;
smart_list_tags: Array<SmartListTag>;
smart_list_items: Array<SmartListItem>;
smart_list_item_notes: Array<Note>;
};

1 change: 1 addition & 0 deletions gen/gen/models/VacationFindArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type { EntityId } from './EntityId';
*/
export type VacationFindArgs = {
allow_archived: boolean;
include_notes: boolean;
filter_ref_ids?: Array<EntityId>;
};

4 changes: 2 additions & 2 deletions gen/gen/models/VacationFindResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
/* tslint:disable */
/* eslint-disable */

import type { Vacation } from './Vacation';
import type { VacationFindResultEntry } from './VacationFindResultEntry';

/**
* PersonFindResult object.
*/
export type VacationFindResult = {
vacations: Array<Vacation>;
entries: Array<VacationFindResultEntry>;
};

15 changes: 15 additions & 0 deletions gen/gen/models/VacationFindResultEntry.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { Note } from './Note';
import type { Vacation } from './Vacation';

/**
* PersonFindResult object.
*/
export type VacationFindResultEntry = {
vacation: Vacation;
note?: Note;
};

2 changes: 2 additions & 0 deletions gen/gen/models/VacationLoadResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
/* tslint:disable */
/* eslint-disable */

import type { Note } from './Note';
import type { Vacation } from './Vacation';

/**
* VacationLoadResult.
*/
export type VacationLoadResult = {
vacation: Vacation;
note?: Note;
};

Loading

0 comments on commit bcd34ff

Please sign in to comment.