Skip to content

Commit a0a9c4c

Browse files
robot-ci-heartexfern-api[bot]jombooth
authored
fix: BROS-342: Add fern extension for task assignments (#532)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Jo Booth <[email protected]>
1 parent 4439ad8 commit a0a9c4c

29 files changed

+2487
-278
lines changed

.mock/definition/__package__.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6966,23 +6966,6 @@ types:
69666966
* `RE` - Review
69676967
source:
69686968
openapi: openapi/openapi.yaml
6969-
TaskAssignmentRequest:
6970-
properties:
6971-
assignee:
6972-
type: integer
6973-
docs: Assigned user
6974-
task:
6975-
type: integer
6976-
docs: Assigned task
6977-
type:
6978-
type: optional<TypeEnum>
6979-
docs: |-
6980-
Type of assignment: Annotate|Review
6981-
6982-
* `AN` - Annotate
6983-
* `RE` - Review
6984-
source:
6985-
openapi: openapi/openapi.yaml
69866969
TaskSimple:
69876970
properties:
69886971
annotations: list<Annotation>

.mock/definition/projects/assignments.yml

Lines changed: 541 additions & 0 deletions
Large diffs are not rendered by default.

.mock/definition/tasks.yml

Lines changed: 0 additions & 178 deletions
Original file line numberDiff line numberDiff line change
@@ -72,178 +72,6 @@ service:
7272
id: 1
7373
audiences:
7474
- public
75-
api_projects_tasks_assignees_create:
76-
path: /api/projects/{id}/tasks/assignees
77-
method: POST
78-
auth: true
79-
docs: Assign multiple tasks to a specific user for a specific project.
80-
source:
81-
openapi: openapi/openapi.yaml
82-
path-parameters:
83-
id: integer
84-
display-name: Bulk assign tasks
85-
request:
86-
body: root.TaskAssignmentRequest
87-
query-parameters:
88-
selected_items:
89-
type: optional<boolean>
90-
docs: Selected items
91-
type:
92-
type: optional<string>
93-
docs: Assignment type
94-
users:
95-
type: optional<string>
96-
docs: Assignees
97-
name: ApiProjectsTasksAssigneesCreateRequest
98-
content-type: application/json
99-
response:
100-
docs: Success
101-
type: ApiProjectsTasksAssigneesCreateResponse
102-
errors:
103-
- root.BadRequestError
104-
examples:
105-
- path-parameters:
106-
id: 1
107-
request:
108-
assignee: 1
109-
task: 1
110-
response:
111-
body:
112-
assignments: 1
113-
async: true
114-
api_projects_tasks_assignees_retrieve:
115-
path: /api/projects/{id}/tasks/{task_pk}/assignees
116-
method: GET
117-
auth: true
118-
docs: >-
119-
Retrieve a list of tasks and assignees for those tasks for a specific
120-
project.
121-
source:
122-
openapi: openapi/openapi.yaml
123-
path-parameters:
124-
id:
125-
type: integer
126-
docs: A unique integer value identifying this project.
127-
task_pk:
128-
type: integer
129-
docs: A unique integer value identifying this task.
130-
display-name: Get assigned tasks and assignees
131-
response:
132-
docs: ''
133-
type: root.TaskAssignment
134-
examples:
135-
- path-parameters:
136-
id: 1
137-
task_pk: 1
138-
response:
139-
body:
140-
assignee: 1
141-
created_at: '2024-01-15T09:30:00Z'
142-
id: 1
143-
task: 1
144-
type: AN
145-
api_projects_tasks_assignees_create_2:
146-
path: /api/projects/{id}/tasks/{task_pk}/assignees
147-
method: POST
148-
auth: true
149-
docs: Assign a user to a task in a specific project.
150-
source:
151-
openapi: openapi/openapi.yaml
152-
path-parameters:
153-
id:
154-
type: integer
155-
docs: A unique integer value identifying this project.
156-
task_pk:
157-
type: integer
158-
docs: A unique integer value identifying this task.
159-
display-name: Create task assignee
160-
request:
161-
body: root.TaskAssignmentRequest
162-
content-type: application/json
163-
response:
164-
docs: ''
165-
type: root.TaskAssignment
166-
examples:
167-
- path-parameters:
168-
id: 1
169-
task_pk: 1
170-
request:
171-
assignee: 1
172-
task: 1
173-
response:
174-
body:
175-
assignee: 1
176-
created_at: '2024-01-15T09:30:00Z'
177-
id: 1
178-
task: 1
179-
type: AN
180-
api_projects_tasks_assignees_destroy:
181-
path: /api/projects/{id}/tasks/{task_pk}/assignees
182-
method: DELETE
183-
auth: true
184-
docs: Remove the assignee for a task for a specific project.
185-
source:
186-
openapi: openapi/openapi.yaml
187-
path-parameters:
188-
id:
189-
type: integer
190-
docs: A unique integer value identifying this project.
191-
task_pk:
192-
type: integer
193-
docs: A unique integer value identifying this task.
194-
display-name: Delete task assignee
195-
examples:
196-
- path-parameters:
197-
id: 1
198-
task_pk: 1
199-
api_projects_tasks_assignees_partial_update:
200-
path: /api/projects/{id}/tasks/{task_pk}/assignees
201-
method: PATCH
202-
auth: true
203-
docs: Update the assignee for a task in a specific project.
204-
source:
205-
openapi: openapi/openapi.yaml
206-
path-parameters:
207-
id:
208-
type: integer
209-
docs: A unique integer value identifying this project.
210-
task_pk:
211-
type: integer
212-
docs: A unique integer value identifying this task.
213-
display-name: Update task assignee
214-
request:
215-
name: PatchedTaskAssignmentRequest
216-
body:
217-
properties:
218-
assignee:
219-
type: optional<integer>
220-
docs: Assigned user
221-
task:
222-
type: optional<integer>
223-
docs: Assigned task
224-
type:
225-
type: optional<root.TypeEnum>
226-
docs: |-
227-
Type of assignment: Annotate|Review
228-
229-
* `AN` - Annotate
230-
* `RE` - Review
231-
content-type: application/json
232-
response:
233-
docs: ''
234-
type: root.TaskAssignment
235-
examples:
236-
- path-parameters:
237-
id: 1
238-
task_pk: 1
239-
request: {}
240-
response:
241-
body:
242-
assignee: 1
243-
created_at: '2024-01-15T09:30:00Z'
244-
id: 1
245-
task: 1
246-
type: AN
24775
list:
24876
path: /api/tasks/
24977
method: GET
@@ -721,12 +549,6 @@ service:
721549
source:
722550
openapi: openapi/openapi.yaml
723551
types:
724-
ApiProjectsTasksAssigneesCreateResponse:
725-
properties:
726-
assignments: optional<integer>
727-
async: optional<boolean>
728-
source:
729-
openapi: openapi/openapi.yaml
730552
TasksListRequestFields:
731553
enum:
732554
- all

0 commit comments

Comments
 (0)