Skip to content

Commit 1b387e3

Browse files
fix: response type definitions for APIs
- WorkItemTypes Response - GetProjectMembers Response - IssueSearch Response - State Response (without slug) make appInstallationId optional in getAppInstallations endpoint bump version to 0.1.4
1 parent 6f04ccd commit 1b387e3

20 files changed

+171
-65
lines changed

.openapi-generator/FILES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ docs/IssuePropertyValueAPI.md
3737
docs/IssuePropertyValueAPIRequest.md
3838
docs/IssueRequest.md
3939
docs/IssueSearch.md
40+
docs/IssueSearchItem.md
4041
docs/IssueTypeAPI.md
4142
docs/IssueTypeAPIRequest.md
4243
docs/IssueWorkLogAPI.md
@@ -169,6 +170,7 @@ plane/models/issue_property_value_api.py
169170
plane/models/issue_property_value_api_request.py
170171
plane/models/issue_request.py
171172
plane/models/issue_search.py
173+
plane/models/issue_search_item.py
172174
plane/models/issue_type_api.py
173175
plane/models/issue_type_api_request.py
174176
plane/models/issue_work_log_api.py
@@ -231,6 +233,9 @@ plane/models/transfer_cycle_work_items400_response.py
231233
plane/models/type_enum.py
232234
plane/models/user_asset_upload_request.py
233235
plane/models/user_lite.py
236+
plane/oauth/__init__.py
237+
plane/oauth/api.py
238+
plane/oauth/models.py
234239
plane/py.typed
235240
plane/rest.py
236241
pyproject.toml

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The Plane REST API
44
Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
55

66
- API version: 0.0.1
7-
- Package version: 0.1.3
7+
- Package version: 0.1.4
88
- Generator version: 7.13.0
99
- Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen
1010
For more information, please visit [https://plane.so](https://plane.so)
@@ -227,6 +227,7 @@ Class | Method | HTTP request | Description
227227
- [IssuePropertyValueAPIRequest](https://github.com/makeplane/plane-python-sdk/blob/main/docs/IssuePropertyValueAPIRequest.md)
228228
- [IssueRequest](https://github.com/makeplane/plane-python-sdk/blob/main/docs/IssueRequest.md)
229229
- [IssueSearch](https://github.com/makeplane/plane-python-sdk/blob/main/docs/IssueSearch.md)
230+
- [IssueSearchItem](https://github.com/makeplane/plane-python-sdk/blob/main/docs/IssueSearchItem.md)
230231
- [IssueTypeAPI](https://github.com/makeplane/plane-python-sdk/blob/main/docs/IssueTypeAPI.md)
231232
- [IssueTypeAPIRequest](https://github.com/makeplane/plane-python-sdk/blob/main/docs/IssueTypeAPIRequest.md)
232233
- [IssueWorkLogAPI](https://github.com/makeplane/plane-python-sdk/blob/main/docs/IssueWorkLogAPI.md)

docs/IssueSearch.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ Serializer for work item search result data formatting. Provides standardized s
55
## Properties
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**id** | **str** | Issue ID |
9-
**name** | **str** | Issue name |
10-
**sequence_id** | **str** | Issue sequence ID |
11-
**project__identifier** | **str** | Project identifier |
12-
**project_id** | **str** | Project ID |
13-
**workspace__slug** | **str** | Workspace slug |
8+
**issues** | [**List[IssueSearchItem]**](IssueSearchItem.md) | Array of search result issues |
149

1510
## Example
1611

docs/IssueSearchItem.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# IssueSearchItem
2+
3+
Individual issue component for search results. Provides standardized search result structure including work item identifiers, project context, and workspace information for search API responses.
4+
5+
## Properties
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**id** | **str** | Issue ID |
9+
**name** | **str** | Issue name |
10+
**sequence_id** | **str** | Issue sequence ID |
11+
**project__identifier** | **str** | Project identifier |
12+
**project_id** | **str** | Project ID |
13+
**workspace__slug** | **str** | Workspace slug |
14+
15+
## Example
16+
17+
```python
18+
from plane.models.issue_search_item import IssueSearchItem
19+
20+
# TODO update the JSON string below
21+
json = "{}"
22+
# create an instance of IssueSearchItem from a JSON string
23+
issue_search_item_instance = IssueSearchItem.from_json(json)
24+
# print the JSON string representation of the object
25+
print IssueSearchItem.to_json()
26+
27+
# convert the object into a dict
28+
issue_search_item_dict = issue_search_item_instance.to_dict()
29+
# create an instance of IssueSearchItem from a dict
30+
issue_search_item_from_dict = IssueSearchItem.from_dict(issue_search_item_dict)
31+
```
32+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
33+
34+

docs/MembersApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Method | HTTP request | Description
99

1010

1111
# **get_project_members**
12-
> UserLite get_project_members(project_id, slug)
12+
> List[UserLite] get_project_members(project_id, slug)
1313
1414
List project members
1515

@@ -76,7 +76,7 @@ Name | Type | Description | Notes
7676

7777
### Return type
7878

79-
[**UserLite**](UserLite.md)
79+
[**List[UserLite]**](UserLite.md)
8080

8181
### Authorization
8282

docs/State.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Name | Type | Description | Notes
1212
**name** | **str** | |
1313
**description** | **str** | | [optional]
1414
**color** | **str** | |
15-
**slug** | **str** | | [optional] [readonly]
1615
**sequence** | **float** | | [optional]
1716
**group** | [**GroupEnum**](GroupEnum.md) | | [optional]
1817
**is_triage** | **bool** | | [optional]

docs/WorkItemTypesApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ void (empty response body)
194194
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
195195

196196
# **list_issue_types**
197-
> IssueTypeAPI list_issue_types(project_id, slug)
197+
> List[IssueTypeAPI] list_issue_types(project_id, slug)
198198
199199
List issue types
200200

@@ -261,7 +261,7 @@ Name | Type | Description | Notes
261261

262262
### Return type
263263

264-
[**IssueTypeAPI**](IssueTypeAPI.md)
264+
[**List[IssueTypeAPI]**](IssueTypeAPI.md)
265265

266266
### Authorization
267267

plane/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
""" # noqa: E501
1616

1717

18-
__version__ = "0.1.3"
18+
__version__ = "0.1.4"
1919

2020
# import apis into sdk package
2121
from plane.api.assets_api import AssetsApi
@@ -79,6 +79,7 @@
7979
from plane.models.issue_property_value_api_request import IssuePropertyValueAPIRequest
8080
from plane.models.issue_request import IssueRequest
8181
from plane.models.issue_search import IssueSearch
82+
from plane.models.issue_search_item import IssueSearchItem
8283
from plane.models.issue_type_api import IssueTypeAPI
8384
from plane.models.issue_type_api_request import IssueTypeAPIRequest
8485
from plane.models.issue_work_log_api import IssueWorkLogAPI

plane/api/members_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __init__(self, api_client=None) -> None:
4646
self.api_client = api_client
4747

4848
@validate_arguments
49-
def get_project_members(self, project_id : Annotated[StrictStr, Field(..., description="Project ID")], slug : Annotated[StrictStr, Field(..., description="Workspace slug")], **kwargs) -> UserLite: # noqa: E501
49+
def get_project_members(self, project_id : Annotated[StrictStr, Field(..., description="Project ID")], slug : Annotated[StrictStr, Field(..., description="Workspace slug")], **kwargs) -> List[UserLite]: # noqa: E501
5050
"""List project members # noqa: E501
5151
5252
Retrieve all users who are members of the specified project. # noqa: E501
@@ -69,7 +69,7 @@ def get_project_members(self, project_id : Annotated[StrictStr, Field(..., descr
6969
:return: Returns the result object.
7070
If the method is called asynchronously,
7171
returns the request thread.
72-
:rtype: UserLite
72+
:rtype: List[UserLite]
7373
"""
7474
kwargs['_return_http_data_only'] = True
7575
if '_preload_content' in kwargs:
@@ -114,7 +114,7 @@ def get_project_members_with_http_info(self, project_id : Annotated[StrictStr, F
114114
:return: Returns the result object.
115115
If the method is called asynchronously,
116116
returns the request thread.
117-
:rtype: tuple(UserLite, status_code(int), headers(HTTPHeaderDict))
117+
:rtype: tuple(List[UserLite], status_code(int), headers(HTTPHeaderDict))
118118
"""
119119

120120
_params = locals()
@@ -173,7 +173,7 @@ def get_project_members_with_http_info(self, project_id : Annotated[StrictStr, F
173173
_auth_settings = ['ApiKeyAuthentication', 'OAuth2Authentication', 'OAuth2Authentication'] # noqa: E501
174174

175175
_response_types_map = {
176-
'200': "UserLite",
176+
'200': "List[UserLite]",
177177
'401': None,
178178
'403': None,
179179
'404': None,

plane/api/work_item_types_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from typing_extensions import Annotated
2121
from pydantic import Field, StrictStr
2222

23-
from typing import Optional
23+
from typing import List, Optional
2424

2525
from plane.models.issue_type_api import IssueTypeAPI
2626
from plane.models.issue_type_api_request import IssueTypeAPIRequest
@@ -364,7 +364,7 @@ def delete_issue_type_with_http_info(self, project_id : Annotated[StrictStr, Fie
364364
_request_auth=_params.get('_request_auth'))
365365

366366
@validate_arguments
367-
def list_issue_types(self, project_id : Annotated[StrictStr, Field(..., description="Project ID")], slug : Annotated[StrictStr, Field(..., description="Workspace slug")], **kwargs) -> IssueTypeAPI: # noqa: E501
367+
def list_issue_types(self, project_id : Annotated[StrictStr, Field(..., description="Project ID")], slug : Annotated[StrictStr, Field(..., description="Workspace slug")], **kwargs) -> List[IssueTypeAPI]: # noqa: E501
368368
"""List issue types # noqa: E501
369369
370370
List all issue types for a project # noqa: E501
@@ -387,7 +387,7 @@ def list_issue_types(self, project_id : Annotated[StrictStr, Field(..., descript
387387
:return: Returns the result object.
388388
If the method is called asynchronously,
389389
returns the request thread.
390-
:rtype: IssueTypeAPI
390+
:rtype: List[IssueTypeAPI]
391391
"""
392392
kwargs['_return_http_data_only'] = True
393393
if '_preload_content' in kwargs:
@@ -432,7 +432,7 @@ def list_issue_types_with_http_info(self, project_id : Annotated[StrictStr, Fiel
432432
:return: Returns the result object.
433433
If the method is called asynchronously,
434434
returns the request thread.
435-
:rtype: tuple(IssueTypeAPI, status_code(int), headers(HTTPHeaderDict))
435+
:rtype: tuple(List[IssueTypeAPI], status_code(int), headers(HTTPHeaderDict))
436436
"""
437437

438438
_params = locals()
@@ -494,7 +494,7 @@ def list_issue_types_with_http_info(self, project_id : Annotated[StrictStr, Fiel
494494
'401': None,
495495
'403': None,
496496
'404': None,
497-
'200': "IssueTypeAPI",
497+
'200': "List[IssueTypeAPI]",
498498
}
499499

500500
return self.api_client.call_api(

0 commit comments

Comments
 (0)