zou 0.20.67__py3-none-any.whl → 0.20.69__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.
Files changed (49) hide show
  1. zou/__init__.py +1 -1
  2. zou/app/blueprints/assets/resources.py +134 -91
  3. zou/app/blueprints/auth/resources.py +6 -6
  4. zou/app/blueprints/breakdown/resources.py +47 -47
  5. zou/app/blueprints/chats/resources.py +8 -8
  6. zou/app/blueprints/comments/resources.py +62 -49
  7. zou/app/blueprints/concepts/resources.py +23 -23
  8. zou/app/blueprints/crud/base.py +6 -6
  9. zou/app/blueprints/crud/output_file.py +2 -2
  10. zou/app/blueprints/crud/output_type.py +2 -2
  11. zou/app/blueprints/crud/preview_file.py +2 -2
  12. zou/app/blueprints/crud/software.py +2 -2
  13. zou/app/blueprints/crud/working_file.py +2 -2
  14. zou/app/blueprints/departments/resources.py +20 -20
  15. zou/app/blueprints/edits/resources.py +33 -33
  16. zou/app/blueprints/entities/resources.py +8 -8
  17. zou/app/blueprints/events/resources.py +7 -7
  18. zou/app/blueprints/export/csv/assets.py +2 -2
  19. zou/app/blueprints/export/csv/casting.py +2 -2
  20. zou/app/blueprints/export/csv/edits.py +2 -2
  21. zou/app/blueprints/export/csv/playlists.py +2 -2
  22. zou/app/blueprints/export/csv/shots.py +2 -2
  23. zou/app/blueprints/files/resources.py +123 -123
  24. zou/app/blueprints/news/resources.py +28 -28
  25. zou/app/blueprints/persons/resources.py +75 -75
  26. zou/app/blueprints/playlists/resources.py +37 -37
  27. zou/app/blueprints/previews/resources.py +36 -36
  28. zou/app/blueprints/projects/resources.py +159 -159
  29. zou/app/blueprints/search/resources.py +3 -3
  30. zou/app/blueprints/shots/resources.py +250 -198
  31. zou/app/blueprints/source/csv/assets.py +2 -2
  32. zou/app/blueprints/source/csv/casting.py +2 -2
  33. zou/app/blueprints/source/csv/edits.py +2 -2
  34. zou/app/blueprints/source/csv/shots.py +2 -2
  35. zou/app/blueprints/source/csv/task_type_estimations.py +10 -10
  36. zou/app/blueprints/source/otio.py +6 -6
  37. zou/app/blueprints/source/shotgun/import_errors.py +2 -2
  38. zou/app/blueprints/tasks/resources.py +135 -135
  39. zou/app/blueprints/user/resources.py +87 -87
  40. zou/app/models/attachment_file.py +4 -0
  41. zou/app/services/comments_service.py +41 -9
  42. zou/app/services/tasks_service.py +1 -0
  43. zou/migrations/versions/1b0ab951adca_add_reply_id_to_attachments.py +44 -0
  44. {zou-0.20.67.dist-info → zou-0.20.69.dist-info}/METADATA +5 -5
  45. {zou-0.20.67.dist-info → zou-0.20.69.dist-info}/RECORD +49 -48
  46. {zou-0.20.67.dist-info → zou-0.20.69.dist-info}/WHEEL +0 -0
  47. {zou-0.20.67.dist-info → zou-0.20.69.dist-info}/entry_points.txt +0 -0
  48. {zou-0.20.67.dist-info → zou-0.20.69.dist-info}/licenses/LICENSE +0 -0
  49. {zou-0.20.67.dist-info → zou-0.20.69.dist-info}/top_level.txt +0 -0
@@ -103,41 +103,41 @@ class ProjectNewsResource(Resource, NewsMixin, ArgsMixin):
103
103
  name: project_id
104
104
  required: True
105
105
  type: string
106
- format: UUID
107
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
106
+ format: uuid
107
+ example: a24a6ea4-ce75-4665-a070-57453082c25
108
108
  - in: query
109
109
  name: before
110
110
  type: string
111
111
  format: date
112
- x-example: "2022-07-12"
112
+ example: "2022-07-12"
113
113
  - in: query
114
114
  name: after
115
115
  type: string
116
116
  format: date
117
- x-example: "2022-07-12"
117
+ example: "2022-07-12"
118
118
  - in: query
119
119
  name: page
120
120
  type: integer
121
- x-example: 1
121
+ example: 1
122
122
  - in: query
123
123
  name: limit
124
124
  type: integer
125
- x-example: 50
125
+ example: 50
126
126
  - in: query
127
127
  name: person_id
128
128
  type: string
129
- format: UUID
130
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
129
+ format: uuid
130
+ example: a24a6ea4-ce75-4665-a070-57453082c25
131
131
  - in: query
132
132
  name: task_type_id
133
133
  type: string
134
- format: UUID
135
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
134
+ format: uuid
135
+ example: a24a6ea4-ce75-4665-a070-57453082c25
136
136
  - in: query
137
137
  name: task_status_id
138
138
  type: string
139
- format: UUID
140
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
139
+ format: uuid
140
+ example: a24a6ea4-ce75-4665-a070-57453082c25
141
141
  - in: query
142
142
  name: episode_id
143
143
  type: boolean
@@ -166,41 +166,41 @@ class NewsResource(Resource, NewsMixin, ArgsMixin):
166
166
  name: project_id
167
167
  required: True
168
168
  type: string
169
- format: UUID
170
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
169
+ format: uuid
170
+ example: a24a6ea4-ce75-4665-a070-57453082c25
171
171
  - in: query
172
172
  name: before
173
173
  type: string
174
174
  format: date
175
- x-example: "2022-07-12"
175
+ example: "2022-07-12"
176
176
  - in: query
177
177
  name: after
178
178
  type: string
179
179
  format: date
180
- x-example: "2022-07-12"
180
+ example: "2022-07-12"
181
181
  - in: query
182
182
  name: page
183
183
  type: integer
184
- x-example: 1
184
+ example: 1
185
185
  - in: query
186
186
  name: limit
187
187
  type: integer
188
- x-example: 50
188
+ example: 50
189
189
  - in: query
190
190
  name: person_id
191
191
  type: string
192
- format: UUID
193
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
192
+ format: uuid
193
+ example: a24a6ea4-ce75-4665-a070-57453082c25
194
194
  - in: query
195
195
  name: task_type_id
196
196
  type: string
197
- format: UUID
198
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
197
+ format: uuid
198
+ example: a24a6ea4-ce75-4665-a070-57453082c25
199
199
  - in: query
200
200
  name: task_status_id
201
201
  type: string
202
- format: UUID
203
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
202
+ format: uuid
203
+ example: a24a6ea4-ce75-4665-a070-57453082c25
204
204
  - in: query
205
205
  name: episode_id
206
206
  type: boolean
@@ -234,14 +234,14 @@ class ProjectSingleNewsResource(Resource):
234
234
  name: project_id
235
235
  required: True
236
236
  type: string
237
- format: UUID
238
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
237
+ format: uuid
238
+ example: a24a6ea4-ce75-4665-a070-57453082c25
239
239
  - in: path
240
240
  name: news_id
241
241
  required: True
242
242
  type: string
243
- format: UUID
244
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
243
+ format: uuid
244
+ example: a24a6ea4-ce75-4665-a070-57453082c25
245
245
  responses:
246
246
  200:
247
247
  description: Single given news related to given project
@@ -55,8 +55,8 @@ class DesktopLoginsResource(Resource, ArgsMixin):
55
55
  name: person_id
56
56
  required: True
57
57
  type: string
58
- format: UUID
59
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
58
+ format: uuid
59
+ example: a24a6ea4-ce75-4665-a070-57453082c25
60
60
  responses:
61
61
  200:
62
62
  description: Desktop login logs
@@ -84,14 +84,14 @@ class DesktopLoginsResource(Resource, ArgsMixin):
84
84
  name: person_id
85
85
  required: True
86
86
  type: string
87
- format: UUID
88
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
87
+ format: uuid
88
+ example: a24a6ea4-ce75-4665-a070-57453082c25
89
89
  - in: formData
90
90
  name: date
91
91
  required: True
92
92
  type: string
93
93
  format: date
94
- x-example: "2022-07-12"
94
+ example: "2022-07-12"
95
95
  responses:
96
96
  201:
97
97
  description: Desktop login log entry created.
@@ -130,7 +130,7 @@ class PresenceLogsResource(Resource):
130
130
  required: True
131
131
  type: string
132
132
  format: date
133
- x-example: "2022-07"
133
+ example: "2022-07"
134
134
  responses:
135
135
  200:
136
136
  description: CSV file containing the presence logs based on a daily basis
@@ -193,14 +193,14 @@ class DateTimeSpentsResource(Resource):
193
193
  name: person_id
194
194
  required: True
195
195
  type: string
196
- format: UUID
197
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
196
+ format: uuid
197
+ example: a24a6ea4-ce75-4665-a070-57453082c25
198
198
  - in: path
199
199
  name: date
200
200
  required: True
201
201
  type: string
202
202
  format: date
203
- x-example: "2022-07-12"
203
+ example: "2022-07-12"
204
204
  responses:
205
205
  200:
206
206
  description: Time spents for given person and date
@@ -254,14 +254,14 @@ class DayOffResource(Resource):
254
254
  name: person_id
255
255
  required: True
256
256
  type: string
257
- format: UUID
258
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
257
+ format: uuid
258
+ example: a24a6ea4-ce75-4665-a070-57453082c25
259
259
  - in: path
260
260
  name: date
261
261
  required: True
262
262
  type: string
263
263
  format: date
264
- x-example: "2022-07-12"
264
+ example: "2022-07-12"
265
265
  responses:
266
266
  200:
267
267
  description: Day off object for given person and date
@@ -333,13 +333,13 @@ class PersonYearTimeSpentsResource(PersonDurationTimeSpentsResource):
333
333
  name: person_id
334
334
  required: True
335
335
  type: string
336
- format: UUID
337
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
336
+ format: uuid
337
+ example: a24a6ea4-ce75-4665-a070-57453082c25
338
338
  - in: path
339
339
  name: year
340
340
  required: True
341
341
  type: integer
342
- x-example: "2022"
342
+ example: "2022"
343
343
  responses:
344
344
  200:
345
345
  description: Aggregated time spents for given person and year
@@ -374,18 +374,18 @@ class PersonMonthTimeSpentsResource(PersonDurationTimeSpentsResource):
374
374
  name: person_id
375
375
  required: True
376
376
  type: string
377
- format: UUID
378
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
377
+ format: uuid
378
+ example: a24a6ea4-ce75-4665-a070-57453082c25
379
379
  - in: path
380
380
  name: year
381
381
  required: True
382
382
  type: integer
383
- x-example: "2022"
383
+ example: "2022"
384
384
  - in: path
385
385
  name: month
386
386
  required: True
387
387
  type: integer
388
- x-example: 07
388
+ example: 07
389
389
  minimum: 1
390
390
  maximum: 12
391
391
  responses:
@@ -441,18 +441,18 @@ class PersonWeekTimeSpentsResource(PersonDurationTimeSpentsResource):
441
441
  name: person_id
442
442
  required: True
443
443
  type: string
444
- format: UUID
445
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
444
+ format: uuid
445
+ example: a24a6ea4-ce75-4665-a070-57453082c25
446
446
  - in: path
447
447
  name: year
448
448
  required: True
449
449
  type: integer
450
- x-example: "2022"
450
+ example: "2022"
451
451
  - in: path
452
452
  name: week
453
453
  required: True
454
454
  type: integer
455
- x-example: 35
455
+ example: 35
456
456
  minimum: 1
457
457
  maximum: 52
458
458
  responses:
@@ -490,25 +490,25 @@ class PersonDayTimeSpentsResource(PersonDurationTimeSpentsResource):
490
490
  name: person_id
491
491
  required: True
492
492
  type: string
493
- format: UUID
494
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
493
+ format: uuid
494
+ example: a24a6ea4-ce75-4665-a070-57453082c25
495
495
  - in: path
496
496
  name: year
497
497
  required: True
498
498
  type: integer
499
- x-example: "2022"
499
+ example: "2022"
500
500
  - in: path
501
501
  name: month
502
502
  required: True
503
503
  type: integer
504
- x-example: 07
504
+ example: 07
505
505
  minimum: 1
506
506
  maximum: 12
507
507
  - in: path
508
508
  name: day
509
509
  required: True
510
510
  type: integer
511
- x-example: 12
511
+ example: 12
512
512
  minimum: 1
513
513
  maximum: 31
514
514
  responses:
@@ -599,18 +599,18 @@ class PersonMonthQuotaShotsResource(Resource, PersonQuotaMixin):
599
599
  name: person_id
600
600
  required: True
601
601
  type: string
602
- format: UUID
603
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
602
+ format: uuid
603
+ example: a24a6ea4-ce75-4665-a070-57453082c25
604
604
  - in: path
605
605
  name: year
606
606
  required: True
607
607
  type: integer
608
- x-example: "2022"
608
+ example: "2022"
609
609
  - in: path
610
610
  name: month
611
611
  required: True
612
612
  type: integer
613
- x-example: 07
613
+ example: 07
614
614
  minimum: 1
615
615
  maximum: 12
616
616
  - in: query
@@ -618,7 +618,7 @@ class PersonMonthQuotaShotsResource(Resource, PersonQuotaMixin):
618
618
  required: True
619
619
  type: string
620
620
  enum: [weighted, weigtheddone, feedback, done]
621
- x-example: weighted
621
+ example: weighted
622
622
  responses:
623
623
  200:
624
624
  description: Ended shots used for quota calculation of this month
@@ -650,18 +650,18 @@ class PersonWeekQuotaShotsResource(Resource, PersonQuotaMixin):
650
650
  name: person_id
651
651
  required: True
652
652
  type: string
653
- format: UUID
654
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
653
+ format: uuid
654
+ example: a24a6ea4-ce75-4665-a070-57453082c25
655
655
  - in: path
656
656
  name: year
657
657
  required: True
658
658
  type: integer
659
- x-example: "2022"
659
+ example: "2022"
660
660
  - in: path
661
661
  name: week
662
662
  required: True
663
663
  type: integer
664
- x-example: 35
664
+ example: 35
665
665
  minimum: 1
666
666
  maximum: 52
667
667
  - in: query
@@ -669,7 +669,7 @@ class PersonWeekQuotaShotsResource(Resource, PersonQuotaMixin):
669
669
  required: True
670
670
  type: string
671
671
  enum: [weighted, weigtheddone, feedback, done]
672
- x-example: weighted
672
+ example: weighted
673
673
  responses:
674
674
  200:
675
675
  description: Ended shots used for quota calculation of this week
@@ -701,25 +701,25 @@ class PersonDayQuotaShotsResource(Resource, PersonQuotaMixin):
701
701
  name: person_id
702
702
  required: True
703
703
  type: string
704
- format: UUID
705
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
704
+ format: uuid
705
+ example: a24a6ea4-ce75-4665-a070-57453082c25
706
706
  - in: path
707
707
  name: year
708
708
  required: True
709
709
  type: integer
710
- x-example: "2022"
710
+ example: "2022"
711
711
  - in: path
712
712
  name: month
713
713
  required: True
714
714
  type: integer
715
- x-example: 07
715
+ example: 07
716
716
  minimum: 1
717
717
  maximum: 12
718
718
  - in: path
719
719
  name: day
720
720
  required: True
721
721
  type: integer
722
- x-example: 12
722
+ example: 12
723
723
  minimum: 1
724
724
  maximum: 31
725
725
  - in: query
@@ -727,7 +727,7 @@ class PersonDayQuotaShotsResource(Resource, PersonQuotaMixin):
727
727
  required: True
728
728
  type: string
729
729
  enum: [weighted, weigtheddone, feedback, done]
730
- x-example: weighted
730
+ example: weighted
731
731
  responses:
732
732
  200:
733
733
  description: Ended shots used for quota calculation of this day
@@ -803,12 +803,12 @@ class TimeSpentMonthResource(TimeSpentDurationResource):
803
803
  name: year
804
804
  required: True
805
805
  type: integer
806
- x-example: "2022"
806
+ example: "2022"
807
807
  - in: path
808
808
  name: month
809
809
  required: True
810
810
  type: integer
811
- x-example: 07
811
+ example: 07
812
812
  minimum: 1
813
813
  maximum: 12
814
814
  responses:
@@ -859,7 +859,7 @@ class TimeSpentMonthsResource(TimeSpentDurationResource):
859
859
  name: year
860
860
  required: True
861
861
  type: integer
862
- x-example: "2022"
862
+ example: "2022"
863
863
  responses:
864
864
  200:
865
865
  description: Table giving time spent by user and by month for given year
@@ -886,7 +886,7 @@ class TimeSpentWeekResource(TimeSpentDurationResource):
886
886
  name: year
887
887
  required: True
888
888
  type: integer
889
- x-example: "2022"
889
+ example: "2022"
890
890
  responses:
891
891
  200:
892
892
  description: Table giving time spent by user and by week for given year
@@ -913,8 +913,8 @@ class InvitePersonResource(Resource):
913
913
  name: person_id
914
914
  required: True
915
915
  type: string
916
- format: UUID
917
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
916
+ format: uuid
917
+ example: a24a6ea4-ce75-4665-a070-57453082c25
918
918
  responses:
919
919
  200:
920
920
  description: Email sent
@@ -942,12 +942,12 @@ class DayOffForMonthResource(Resource, ArgsMixin):
942
942
  name: year
943
943
  required: True
944
944
  type: integer
945
- x-example: "2022"
945
+ example: "2022"
946
946
  - in: path
947
947
  name: month
948
948
  required: True
949
949
  type: integer
950
- x-example: 07
950
+ example: 07
951
951
  minimum: 1
952
952
  maximum: 12
953
953
  responses:
@@ -980,18 +980,18 @@ class PersonWeekDayOffResource(Resource, ArgsMixin):
980
980
  name: person_id
981
981
  required: True
982
982
  type: string
983
- format: UUID
984
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
983
+ format: uuid
984
+ example: a24a6ea4-ce75-4665-a070-57453082c25
985
985
  - in: path
986
986
  name: year
987
987
  required: True
988
988
  type: integer
989
- x-example: "2022"
989
+ example: "2022"
990
990
  - in: path
991
991
  name: week
992
992
  required: True
993
993
  type: integer
994
- x-example: 35
994
+ example: 35
995
995
  minimum: 1
996
996
  maximum: 52
997
997
  responses:
@@ -1022,18 +1022,18 @@ class PersonMonthDayOffResource(Resource, ArgsMixin):
1022
1022
  name: person_id
1023
1023
  required: True
1024
1024
  type: string
1025
- format: UUID
1026
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
1025
+ format: uuid
1026
+ example: a24a6ea4-ce75-4665-a070-57453082c25
1027
1027
  - in: path
1028
1028
  name: year
1029
1029
  required: True
1030
1030
  type: integer
1031
- x-example: "2022"
1031
+ example: "2022"
1032
1032
  - in: path
1033
1033
  name: month
1034
1034
  required: True
1035
1035
  type: integer
1036
- x-example: 07
1036
+ example: 07
1037
1037
  minimum: 1
1038
1038
  maximum: 12
1039
1039
  responses:
@@ -1064,13 +1064,13 @@ class PersonYearDayOffResource(Resource, ArgsMixin):
1064
1064
  name: person_id
1065
1065
  required: True
1066
1066
  type: string
1067
- format: UUID
1068
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
1067
+ format: uuid
1068
+ example: a24a6ea4-ce75-4665-a070-57453082c25
1069
1069
  - in: path
1070
1070
  name: year
1071
1071
  required: True
1072
1072
  type: integer
1073
- x-example: "2022"
1073
+ example: "2022"
1074
1074
  responses:
1075
1075
  200:
1076
1076
  description: All day off recorded for given year and person
@@ -1099,8 +1099,8 @@ class PersonDayOffResource(Resource, ArgsMixin):
1099
1099
  name: person_id
1100
1100
  required: True
1101
1101
  type: string
1102
- format: UUID
1103
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
1102
+ format: uuid
1103
+ example: a24a6ea4-ce75-4665-a070-57453082c25
1104
1104
  responses:
1105
1105
  200:
1106
1106
  description: All day off recorded for given person.
@@ -1129,8 +1129,8 @@ class AddToDepartmentResource(Resource, ArgsMixin):
1129
1129
  name: person_id
1130
1130
  required: True
1131
1131
  type: string
1132
- format: UUID
1133
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
1132
+ format: uuid
1133
+ example: a24a6ea4-ce75-4665-a070-57453082c25
1134
1134
  responses:
1135
1135
  201:
1136
1136
  description: User added to given department
@@ -1170,14 +1170,14 @@ class RemoveFromDepartmentResource(Resource, ArgsMixin):
1170
1170
  name: person_id
1171
1171
  required: True
1172
1172
  type: string
1173
- format: UUID
1174
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
1173
+ format: uuid
1174
+ example: a24a6ea4-ce75-4665-a070-57453082c25
1175
1175
  - in: path
1176
1176
  name: department_id
1177
1177
  required: True
1178
1178
  type: string
1179
- format: UUID
1180
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
1179
+ format: uuid
1180
+ example: a24a6ea4-ce75-4665-a070-57453082c25
1181
1181
  responses:
1182
1182
  204:
1183
1183
  description: User removed from given department
@@ -1214,8 +1214,8 @@ class ChangePasswordForPersonResource(Resource, ArgsMixin):
1214
1214
  name: person_id
1215
1215
  required: True
1216
1216
  type: string
1217
- format: UUID
1218
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
1217
+ format: uuid
1218
+ example: a24a6ea4-ce75-4665-a070-57453082c25
1219
1219
  - in: formData
1220
1220
  name: password
1221
1221
  required: True
@@ -1334,8 +1334,8 @@ class DisableTwoFactorAuthenticationPersonResource(Resource, ArgsMixin):
1334
1334
  name: person_id
1335
1335
  required: True
1336
1336
  type: string
1337
- format: UUID
1338
- x-example: a24a6ea4-ce75-4665-a070-57453082c25
1337
+ format: uuid
1338
+ example: a24a6ea4-ce75-4665-a070-57453082c25
1339
1339
  responses:
1340
1340
  200:
1341
1341
  description: Two factor authentication disabled