zou 0.20.72__py3-none-any.whl → 0.20.74__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.
@@ -15,27 +15,69 @@ class SearchResource(Resource, ArgsMixin):
15
15
  ---
16
16
  tags:
17
17
  - Search
18
- parameters:
19
- - in: formData
20
- name: query
21
- required: True
22
- type: string
23
- example: test will search for test
24
- - in: formData
25
- name: limit
26
- required: False
27
- type: integer
28
- default: 3
29
- example: 3
30
- - in: formData
31
- name: index_names
32
- required: False
33
- type: list of strings
34
- default: ["assets", "shots", "persons"]
35
- example: ["assets"]
18
+ requestBody:
19
+ required: true
20
+ content:
21
+ application/json:
22
+ schema:
23
+ type: object
24
+ required:
25
+ - query
26
+ properties:
27
+ query:
28
+ type: string
29
+ example: test will search for test
30
+ description: Search query string (minimum 3 characters)
31
+ project_id:
32
+ type: string
33
+ format: uuid
34
+ example: a24a6ea4-ce75-4665-a070-57453082c25
35
+ description: Filter search results by project ID
36
+ limit:
37
+ type: integer
38
+ default: 3
39
+ example: 3
40
+ description: Maximum number of results per index
41
+ offset:
42
+ type: integer
43
+ default: 0
44
+ example: 0
45
+ description: Number of results to skip
46
+ index_names:
47
+ type: array
48
+ items:
49
+ type: string
50
+ enum: ["assets", "shots", "persons"]
51
+ default: ["assets", "shots", "persons"]
52
+ example: ["assets"]
53
+ description: List of index names to search in
36
54
  responses:
37
55
  200:
38
- description: List of entities that contain the query
56
+ description: List of entities that contain the query
57
+ content:
58
+ application/json:
59
+ schema:
60
+ type: object
61
+ properties:
62
+ persons:
63
+ type: array
64
+ items:
65
+ type: object
66
+ description: List of matching persons
67
+ assets:
68
+ type: array
69
+ items:
70
+ type: object
71
+ description: List of matching assets
72
+ shots:
73
+ type: array
74
+ items:
75
+ type: object
76
+ description: List of matching shots
77
+ 400:
78
+ description: Bad request
79
+ 403:
80
+ description: Insufficient permissions
39
81
  """
40
82
  args = self.get_args(
41
83
  [
@@ -209,6 +209,10 @@ class AssetsCsvImportResource(BaseCsvProjectImportResource):
209
209
  else:
210
210
  asset_new_values["data"] = entity.data.copy()
211
211
 
212
+ resolution = row.get("Resolution", None)
213
+ if resolution is not None:
214
+ asset_new_values["data"]["resolution"] = resolution
215
+
212
216
  for name, descriptor in self.descriptor_fields.items():
213
217
  if name in row:
214
218
  if descriptor["data_type"] == "boolean":
@@ -229,6 +229,10 @@ class ShotsCsvImportResource(BaseCsvProjectImportResource):
229
229
  if fps is not None:
230
230
  shot_new_values["data"]["fps"] = fps
231
231
 
232
+ resolution = row.get("Resolution", None)
233
+ if resolution is not None:
234
+ shot_new_values["data"]["resolution"] = resolution
235
+
232
236
  for name, descriptor in self.descriptor_fields.items():
233
237
  if name in row:
234
238
  if descriptor["data_type"] == "boolean":