zou 0.20.81__py3-none-any.whl → 0.20.83__py3-none-any.whl
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.
- zou/__init__.py +1 -1
- zou/app/blueprints/assets/resources.py +1060 -153
- zou/app/blueprints/auth/resources.py +374 -240
- zou/app/blueprints/breakdown/resources.py +584 -94
- zou/app/blueprints/chats/resources.py +176 -37
- zou/app/blueprints/comments/resources.py +387 -125
- zou/app/blueprints/concepts/resources.py +428 -63
- zou/app/blueprints/departments/resources.py +302 -68
- zou/app/blueprints/edits/resources.py +651 -81
- zou/app/blueprints/entities/resources.py +104 -39
- zou/app/blueprints/events/resources.py +96 -8
- zou/app/blueprints/index/resources.py +49 -42
- zou/app/blueprints/news/resources.py +45 -27
- zou/app/blueprints/user/resources.py +1808 -215
- zou/app/services/emails_service.py +2 -0
- zou/app/swagger.py +100 -27
- {zou-0.20.81.dist-info → zou-0.20.83.dist-info}/METADATA +1 -1
- {zou-0.20.81.dist-info → zou-0.20.83.dist-info}/RECORD +22 -22
- {zou-0.20.81.dist-info → zou-0.20.83.dist-info}/WHEEL +0 -0
- {zou-0.20.81.dist-info → zou-0.20.83.dist-info}/entry_points.txt +0 -0
- {zou-0.20.81.dist-info → zou-0.20.83.dist-info}/licenses/LICENSE +0 -0
- {zou-0.20.81.dist-info → zou-0.20.83.dist-info}/top_level.txt +0 -0
|
@@ -96,8 +96,9 @@ class ProjectNewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
96
96
|
@jwt_required()
|
|
97
97
|
def get(self, project_id):
|
|
98
98
|
"""
|
|
99
|
-
|
|
99
|
+
Get latest news for a project
|
|
100
100
|
---
|
|
101
|
+
description: Get the 50 latest news object (activity feed) for a project
|
|
101
102
|
tags:
|
|
102
103
|
- News
|
|
103
104
|
parameters:
|
|
@@ -108,6 +109,7 @@ class ProjectNewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
108
109
|
type: string
|
|
109
110
|
format: uuid
|
|
110
111
|
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
112
|
+
description: Unique identifier of the project
|
|
111
113
|
- in: query
|
|
112
114
|
name: before
|
|
113
115
|
required: false
|
|
@@ -115,6 +117,7 @@ class ProjectNewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
115
117
|
type: string
|
|
116
118
|
format: date
|
|
117
119
|
example: "2022-07-12"
|
|
120
|
+
description: Filter news before this date
|
|
118
121
|
- in: query
|
|
119
122
|
name: after
|
|
120
123
|
required: false
|
|
@@ -122,6 +125,7 @@ class ProjectNewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
122
125
|
type: string
|
|
123
126
|
format: date
|
|
124
127
|
example: "2022-07-12"
|
|
128
|
+
description: Filter news after this date
|
|
125
129
|
- in: query
|
|
126
130
|
name: page
|
|
127
131
|
required: false
|
|
@@ -129,6 +133,7 @@ class ProjectNewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
129
133
|
type: integer
|
|
130
134
|
default: 1
|
|
131
135
|
example: 1
|
|
136
|
+
description: Page number for pagination
|
|
132
137
|
- in: query
|
|
133
138
|
name: limit
|
|
134
139
|
required: false
|
|
@@ -136,6 +141,7 @@ class ProjectNewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
136
141
|
type: integer
|
|
137
142
|
default: 50
|
|
138
143
|
example: 50
|
|
144
|
+
description: Number of news items per page
|
|
139
145
|
- in: query
|
|
140
146
|
name: person_id
|
|
141
147
|
required: false
|
|
@@ -143,6 +149,7 @@ class ProjectNewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
143
149
|
type: string
|
|
144
150
|
format: uuid
|
|
145
151
|
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
152
|
+
description: Filter news by specific team member
|
|
146
153
|
- in: query
|
|
147
154
|
name: task_type_id
|
|
148
155
|
required: false
|
|
@@ -150,6 +157,7 @@ class ProjectNewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
150
157
|
type: string
|
|
151
158
|
format: uuid
|
|
152
159
|
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
160
|
+
description: Filter news by task type
|
|
153
161
|
- in: query
|
|
154
162
|
name: task_status_id
|
|
155
163
|
required: false
|
|
@@ -157,6 +165,7 @@ class ProjectNewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
157
165
|
type: string
|
|
158
166
|
format: uuid
|
|
159
167
|
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
168
|
+
description: Filter news by task status
|
|
160
169
|
- in: query
|
|
161
170
|
name: episode_id
|
|
162
171
|
required: false
|
|
@@ -164,6 +173,7 @@ class ProjectNewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
164
173
|
type: string
|
|
165
174
|
format: uuid
|
|
166
175
|
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
176
|
+
description: Filter news by specific episode
|
|
167
177
|
- in: query
|
|
168
178
|
name: only_preview
|
|
169
179
|
required: false
|
|
@@ -171,6 +181,7 @@ class ProjectNewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
171
181
|
type: boolean
|
|
172
182
|
default: false
|
|
173
183
|
example: false
|
|
184
|
+
description: Show only news related to preview uploads
|
|
174
185
|
responses:
|
|
175
186
|
'200':
|
|
176
187
|
description: All news related to given project
|
|
@@ -187,8 +198,10 @@ class ProjectNewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
187
198
|
id:
|
|
188
199
|
type: string
|
|
189
200
|
format: uuid
|
|
201
|
+
description: Unique news item identifier
|
|
190
202
|
title:
|
|
191
203
|
type: string
|
|
204
|
+
description: News item title
|
|
192
205
|
content:
|
|
193
206
|
type: string
|
|
194
207
|
created_at:
|
|
@@ -213,8 +226,9 @@ class NewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
213
226
|
@jwt_required()
|
|
214
227
|
def get(self):
|
|
215
228
|
"""
|
|
216
|
-
|
|
229
|
+
Get news from open projects
|
|
217
230
|
---
|
|
231
|
+
description: Returns the latest news and activity feed from all projects the user has access to.
|
|
218
232
|
tags:
|
|
219
233
|
- News
|
|
220
234
|
parameters:
|
|
@@ -225,6 +239,7 @@ class NewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
225
239
|
type: string
|
|
226
240
|
format: uuid
|
|
227
241
|
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
242
|
+
description: Filter news by specific project
|
|
228
243
|
- in: query
|
|
229
244
|
name: before
|
|
230
245
|
required: false
|
|
@@ -232,6 +247,7 @@ class NewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
232
247
|
type: string
|
|
233
248
|
format: date
|
|
234
249
|
example: "2022-07-12"
|
|
250
|
+
description: Filter news before this date
|
|
235
251
|
- in: query
|
|
236
252
|
name: after
|
|
237
253
|
required: false
|
|
@@ -239,6 +255,7 @@ class NewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
239
255
|
type: string
|
|
240
256
|
format: date
|
|
241
257
|
example: "2022-07-12"
|
|
258
|
+
description: Filter news after this date
|
|
242
259
|
- in: query
|
|
243
260
|
name: page
|
|
244
261
|
required: false
|
|
@@ -246,6 +263,7 @@ class NewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
246
263
|
type: integer
|
|
247
264
|
default: 1
|
|
248
265
|
example: 1
|
|
266
|
+
description: Page number for pagination
|
|
249
267
|
- in: query
|
|
250
268
|
name: limit
|
|
251
269
|
required: false
|
|
@@ -253,6 +271,7 @@ class NewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
253
271
|
type: integer
|
|
254
272
|
default: 50
|
|
255
273
|
example: 50
|
|
274
|
+
description: Number of news items per page
|
|
256
275
|
- in: query
|
|
257
276
|
name: person_id
|
|
258
277
|
required: false
|
|
@@ -260,6 +279,7 @@ class NewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
260
279
|
type: string
|
|
261
280
|
format: uuid
|
|
262
281
|
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
282
|
+
description: Filter news by specific team member
|
|
263
283
|
- in: query
|
|
264
284
|
name: task_type_id
|
|
265
285
|
required: false
|
|
@@ -267,6 +287,7 @@ class NewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
267
287
|
type: string
|
|
268
288
|
format: uuid
|
|
269
289
|
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
290
|
+
description: Filter news by task type
|
|
270
291
|
- in: query
|
|
271
292
|
name: task_status_id
|
|
272
293
|
required: false
|
|
@@ -274,6 +295,7 @@ class NewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
274
295
|
type: string
|
|
275
296
|
format: uuid
|
|
276
297
|
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
298
|
+
description: Filter news by task status
|
|
277
299
|
- in: query
|
|
278
300
|
name: episode_id
|
|
279
301
|
required: false
|
|
@@ -281,6 +303,7 @@ class NewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
281
303
|
type: string
|
|
282
304
|
format: uuid
|
|
283
305
|
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
306
|
+
description: Filter news by specific episode
|
|
284
307
|
- in: query
|
|
285
308
|
name: only_preview
|
|
286
309
|
required: false
|
|
@@ -288,9 +311,10 @@ class NewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
288
311
|
type: boolean
|
|
289
312
|
default: false
|
|
290
313
|
example: false
|
|
314
|
+
description: Show only news related to preview uploads
|
|
291
315
|
responses:
|
|
292
316
|
'200':
|
|
293
|
-
description:
|
|
317
|
+
description: News feed successfully retrieved
|
|
294
318
|
content:
|
|
295
319
|
application/json:
|
|
296
320
|
schema:
|
|
@@ -300,28 +324,13 @@ class NewsResource(Resource, NewsMixin, ArgsMixin):
|
|
|
300
324
|
type: array
|
|
301
325
|
items:
|
|
302
326
|
type: object
|
|
303
|
-
|
|
304
|
-
id:
|
|
305
|
-
type: string
|
|
306
|
-
format: uuid
|
|
307
|
-
title:
|
|
308
|
-
type: string
|
|
309
|
-
content:
|
|
310
|
-
type: string
|
|
311
|
-
created_at:
|
|
312
|
-
type: string
|
|
313
|
-
format: date-time
|
|
314
|
-
author_id:
|
|
315
|
-
type: string
|
|
316
|
-
format: uuid
|
|
317
|
-
project_id:
|
|
318
|
-
type: string
|
|
319
|
-
format: uuid
|
|
327
|
+
description: Array of news items
|
|
320
328
|
stats:
|
|
321
329
|
type: object
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
330
|
+
description: News statistics
|
|
331
|
+
total:
|
|
332
|
+
type: integer
|
|
333
|
+
description: Total number of news items
|
|
325
334
|
"""
|
|
326
335
|
open_project_ids = []
|
|
327
336
|
if permissions.has_admin_permissions():
|
|
@@ -336,8 +345,9 @@ class ProjectSingleNewsResource(Resource):
|
|
|
336
345
|
@jwt_required()
|
|
337
346
|
def get(self, project_id, news_id):
|
|
338
347
|
"""
|
|
339
|
-
|
|
348
|
+
Get single news item
|
|
340
349
|
---
|
|
350
|
+
description: Retrieves detailed information about a specific news item from a givenproject.
|
|
341
351
|
tags:
|
|
342
352
|
- News
|
|
343
353
|
parameters:
|
|
@@ -348,6 +358,7 @@ class ProjectSingleNewsResource(Resource):
|
|
|
348
358
|
type: string
|
|
349
359
|
format: uuid
|
|
350
360
|
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
361
|
+
description: Unique identifier of the project
|
|
351
362
|
- in: path
|
|
352
363
|
name: news_id
|
|
353
364
|
required: true
|
|
@@ -355,9 +366,10 @@ class ProjectSingleNewsResource(Resource):
|
|
|
355
366
|
type: string
|
|
356
367
|
format: uuid
|
|
357
368
|
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
369
|
+
description: Unique identifier of the news item
|
|
358
370
|
responses:
|
|
359
371
|
'200':
|
|
360
|
-
description:
|
|
372
|
+
description: News item successfully retrieved
|
|
361
373
|
content:
|
|
362
374
|
application/json:
|
|
363
375
|
schema:
|
|
@@ -366,21 +378,27 @@ class ProjectSingleNewsResource(Resource):
|
|
|
366
378
|
id:
|
|
367
379
|
type: string
|
|
368
380
|
format: uuid
|
|
381
|
+
description: Unique news item identifier
|
|
369
382
|
title:
|
|
370
383
|
type: string
|
|
384
|
+
description: News item title
|
|
371
385
|
content:
|
|
372
386
|
type: string
|
|
387
|
+
description: News item content
|
|
373
388
|
created_at:
|
|
374
389
|
type: string
|
|
375
390
|
format: date-time
|
|
391
|
+
description: Creation timestamp
|
|
376
392
|
author_id:
|
|
377
393
|
type: string
|
|
378
394
|
format: uuid
|
|
395
|
+
description: Author's user ID
|
|
379
396
|
project_id:
|
|
380
397
|
type: string
|
|
381
398
|
format: uuid
|
|
382
|
-
|
|
383
|
-
|
|
399
|
+
description: Project identifier
|
|
400
|
+
404:
|
|
401
|
+
description: News item or project not found
|
|
384
402
|
"""
|
|
385
403
|
projects_service.get_project(project_id)
|
|
386
404
|
user_service.check_project_access(project_id)
|