Skip to content

Commit

Permalink
Annofab v0.137.0 対応 (#421)
Browse files Browse the repository at this point in the history
* version up

* version up
  • Loading branch information
yuji38kwmt committed Mar 3, 2022
1 parent 32d6c7c commit f1e9c66
Show file tree
Hide file tree
Showing 5 changed files with 473 additions and 4 deletions.
2 changes: 1 addition & 1 deletion annofabapi/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.54.0"
__version__ = "0.54.1"
187 changes: 187 additions & 0 deletions annofabapi/generated_api2.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,68 @@ def get_project_cache_v2(self, project_id: str, **kwargs) -> Tuple[Any, requests
# NOTE: This method is auto generated by OpenAPI Generator
#########################################

def get_account_daily_statistics_v2(
self, project_id: str, query_params: Optional[Dict[str, Any]] = None, **kwargs
) -> Tuple[Any, requests.Response]:
"""ユーザー別タスク集計取得
https://annofab.com/docs/api/#operation/getAccountDailyStatisticsV2
authorizations: SignedCookieKeyPairId, SignedCookiePolicy, SignedCookieSignature
指定した期間の [ユーザー別タスク集計データ](/docs/api/#section/ArrayOfProjectAccountStatistics) を取得できるAPI。取得期間は最大3か月です。
Args:
project_id (str): プロジェクトID (required)
query_params (Dict[str, Any]): Query Parameters
_from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
to (str): 取得する統計の区間の終了日 - `YYYY-MM-DD` 。この日は含まれます。 (required)
Returns:
Tuple[List[ProjectAccountStatistics], requests.Response]
"""
url_path = f"/projects/{project_id}/statistics/accounts/daily"
http_method = "GET"
keyword_params: Dict[str, Any] = {
"query_params": query_params,
}
keyword_params.update(**kwargs)
return self._request_wrapper(http_method, url_path, **keyword_params)

def get_inspection_daily_statistics_v2(
self, project_id: str, query_params: Optional[Dict[str, Any]] = None, **kwargs
) -> Tuple[Any, requests.Response]:
"""検査コメント集計取得
https://annofab.com/docs/api/#operation/getInspectionDailyStatisticsV2
authorizations: SignedCookieKeyPairId, SignedCookiePolicy, SignedCookieSignature
指定した期間の [検査コメント集計データ](/docs/api/#section/ArrayOfInspectionStatistics) を取得できるAPI。取得期間は最大3か月です。
Args:
project_id (str): プロジェクトID (required)
query_params (Dict[str, Any]): Query Parameters
_from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
to (str): 取得する統計の区間の終了日 - `YYYY-MM-DD` 。この日は含まれます。 (required)
Returns:
Tuple[List[InspectionStatistics], requests.Response]
"""
url_path = f"/projects/{project_id}/statistics/inspections/daily"
http_method = "GET"
keyword_params: Dict[str, Any] = {
"query_params": query_params,
}
keyword_params.update(**kwargs)
return self._request_wrapper(http_method, url_path, **keyword_params)

def get_label_statistics_v2(
self, project_id: str, query_params: Optional[Dict[str, Any]] = None, **kwargs
) -> Tuple[Any, requests.Response]:
Expand Down Expand Up @@ -407,6 +469,131 @@ def get_label_statistics_v2(
keyword_params.update(**kwargs)
return self._request_wrapper(http_method, url_path, **keyword_params)

def get_phase_daily_statistics_v2(
self, project_id: str, query_params: Optional[Dict[str, Any]] = None, **kwargs
) -> Tuple[Any, requests.Response]:
"""フェーズ別タスク集計取得
https://annofab.com/docs/api/#operation/getPhaseDailyStatisticsV2
authorizations: SignedCookieKeyPairId, SignedCookiePolicy, SignedCookieSignature
指定した期間の [フェーズ別タスク集計データ](/docs/api/#section/ArrayOfTaskPhaseStatistics) を取得できるAPI。取得期間は最大3か月です。
Args:
project_id (str): プロジェクトID (required)
query_params (Dict[str, Any]): Query Parameters
_from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
to (str): 取得する統計の区間の終了日 - `YYYY-MM-DD` 。この日は含まれます。 (required)
Returns:
Tuple[List[TaskPhaseStatistics], requests.Response]
"""
url_path = f"/projects/{project_id}/statistics/task-phases/daily"
http_method = "GET"
keyword_params: Dict[str, Any] = {
"query_params": query_params,
}
keyword_params.update(**kwargs)
return self._request_wrapper(http_method, url_path, **keyword_params)

def get_task_daily_statistics_v2(
self, project_id: str, query_params: Optional[Dict[str, Any]] = None, **kwargs
) -> Tuple[Any, requests.Response]:
"""タスク集計取得
https://annofab.com/docs/api/#operation/getTaskDailyStatisticsV2
authorizations: SignedCookieKeyPairId, SignedCookiePolicy, SignedCookieSignature
指定した期間の [タスク集計データ](/docs/api/#section/ArrayOfProjectTaskStatisticsHistory) を取得できるAPI。取得期間は最大3か月です。
Args:
project_id (str): プロジェクトID (required)
query_params (Dict[str, Any]): Query Parameters
_from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
to (str): 取得する統計の区間の終了日 - `YYYY-MM-DD` 。この日は含まれます。 (required)
Returns:
Tuple[List[ProjectTaskStatisticsHistory], requests.Response]
"""
url_path = f"/projects/{project_id}/statistics/tasks/daily"
http_method = "GET"
keyword_params: Dict[str, Any] = {
"query_params": query_params,
}
keyword_params.update(**kwargs)
return self._request_wrapper(http_method, url_path, **keyword_params)

def get_worktime_daily_statistics_by_account_v2(
self, project_id: str, account_id: str, query_params: Optional[Dict[str, Any]] = None, **kwargs
) -> Tuple[Any, requests.Response]:
"""プロジェクトメンバー単位のフェーズ別タスク集計取得
https://annofab.com/docs/api/#operation/getWorktimeDailyStatisticsByAccountV2
authorizations: SignedCookieKeyPairId, SignedCookiePolicy, SignedCookieSignature
指定したプロジェクトメンバーのタスク作業時間集計データを指定した期間分取得できるAPI。取得期間は最大3か月です。
Args:
project_id (str): プロジェクトID (required)
account_id (str): アカウントID (required)
query_params (Dict[str, Any]): Query Parameters
_from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
to (str): 取得する統計の区間の終了日 - `YYYY-MM-DD` 。この日は含まれます。 (required)
Returns:
Tuple[WorktimeStatisticsByAccount, requests.Response]
"""
url_path = f"/projects/{project_id}/statistics/worktimes-by-account/{account_id}/daily"
http_method = "GET"
keyword_params: Dict[str, Any] = {
"query_params": query_params,
}
keyword_params.update(**kwargs)
return self._request_wrapper(http_method, url_path, **keyword_params)

def get_worktime_daily_statistics_v2(
self, project_id: str, query_params: Optional[Dict[str, Any]] = None, **kwargs
) -> Tuple[Any, requests.Response]:
"""プロジェクト単位のフェーズ別タスク集計取得
https://annofab.com/docs/api/#operation/getWorktimeDailyStatisticsV2
authorizations: SignedCookieKeyPairId, SignedCookiePolicy, SignedCookieSignature
指定したプロジェクトのタスク作業時間集計データを指定した期間分取得できるAPI。取得期間は最大3か月です。
Args:
project_id (str): プロジェクトID (required)
query_params (Dict[str, Any]): Query Parameters
_from (str): 取得する統計の区間の開始日 - `YYYY-MM-DD` (required)
to (str): 取得する統計の区間の終了日 - `YYYY-MM-DD` 。この日は含まれます。 (required)
Returns:
Tuple[WorktimeStatisticsByProject, requests.Response]
"""
url_path = f"/projects/{project_id}/statistics/worktimes/daily"
http_method = "GET"
keyword_params: Dict[str, Any] = {
"query_params": query_params,
}
keyword_params.update(**kwargs)
return self._request_wrapper(http_method, url_path, **keyword_params)

#########################################
# Public Method : AfUsersV2Api
# NOTE: This method is auto generated by OpenAPI Generator
Expand Down

0 comments on commit f1e9c66

Please sign in to comment.