Skip to content

Commit 1fb23bc

Browse files
authored
Merge pull request #96 from kurusugawa-computer/feature/annofab-v0.67.0
Feature/annofab v0.67.0
2 parents 046570c + 28be297 commit 1fb23bc

12 files changed

+127
-24
lines changed

annofabapi/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.21.4'
1+
__version__ = '0.22.0'

annofabapi/dataclass/my.py

+3
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ class MyAccount:
7171
lang: str
7272
""""""
7373

74+
biography: Optional[str]
75+
"""人物紹介、略歴。 この属性は、AnnoFab外の所属先や肩書などを表すために用います。 AnnoFab上の「複数の組織」で活動する場合、本籍を示すのに便利です。 """
76+
7477
keylayout: str
7578
""""""
7679

annofabapi/dataclass/organization_member.py

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ class OrganizationMember:
4141
status: OrganizationMemberStatus
4242
""""""
4343

44+
biography: Optional[str]
45+
"""人物紹介、略歴。 この属性は、AnnoFab外の所属先や肩書などを表すために用います。 AnnoFab上の「複数の組織」で活動する場合、本籍を示すのに便利です。 """
46+
4447
created_datetime: Optional[str]
4548
""""""
4649

annofabapi/dataclass/project_member.py

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ class ProjectMember:
4141
member_role: ProjectMemberRole
4242
""""""
4343

44+
biography: Optional[str]
45+
"""人物紹介、略歴。 この属性は、AnnoFab外の所属先や肩書などを表すために用います。 AnnoFab上の「複数の組織」で活動する場合、本籍を示すのに便利です。 """
46+
4447
updated_datetime: Optional[str]
4548
""""""
4649

annofabapi/generated_api.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ def get_project_job(self, project_id: str, query_params: Optional[Dict[str, Any]
10141014
authorizations: AllProjectMember
10151015
10161016
1017-
バックグラウンドジョブの情報を取得する。 取得されるジョブの情報は作成日付の新しい順にソートされる。
1017+
バックグラウンドジョブの情報を取得する。 取得されるジョブの情報は作成日付の新しい順にソートされる。 バックグラウンドジョブ情報は完了(失敗含む)から14日経過後に削除される。
10181018
10191019
Args:
10201020
project_id (str): プロジェクトID (required)
@@ -2228,14 +2228,14 @@ def get_tasks(self, project_id: str, query_params: Optional[Dict[str, Any]] = No
22282228
limit (int): 1ページあたりの取得するデータ件数
22292229
task_id (str): タスクIDでの部分一致検索で使用。1文字以上あれば使用します。利便性のため、大文字小文字は区別しません
22302230
input_data_ids (str): 指定された入力データIDを使用しているタスクを絞り込みます。カンマ区切りで複数の入力データIDを指定可能です。1文字以上あれば使用します。利便性のため、大文字小文字は区別しません
2231-
phase (str): 絞り込み条件となるフェーズ名。未指定時は全フェーズ
2232-
phase_stage (str): 絞り込み条件となるステージ。未指定時は全ステージ
2233-
status (str): 絞り込み条件となる状態名。未指定時は全ステータス。
2231+
phase (TaskPhase): 絞り込み条件となるフェーズ名。未指定時は全フェーズ
2232+
phase_stage (int): 絞り込み条件となるステージ。未指定時は全ステージ
2233+
status (TaskStatus): 絞り込み条件となる状態名。未指定時は全ステータス。
22342234
account_id (str): 絞り込み条件となる作業中のアカウントID。未指定時は全アカウント
22352235
no_user (str): 未割り当てのタスクを絞り込む時に、キーのみ指定します(値は無視されます)。
22362236
previous_account_id (str): そのタスクをこれまでに担当したことのあるユーザー(現在の担当者含む)のアカウントID。未指定時は全ユーザ
22372237
previous_phase (TaskPhase): そのタスクがこれまでに遷移したことのあるフェーズ名(現在のフェーズ含む)。未指定時は全フェーズ
2238-
previous_phase_stage (str): そのタスクがこれまでに遷移したことのあるステージ(現在のステージ含む)。未指定時は全ステージ
2238+
previous_phase_stage (int): そのタスクがこれまでに遷移したことのあるステージ(現在のステージ含む)。未指定時は全ステージ
22392239
rejected_only (str): 差し戻されたタスクだけを絞り込む時に、キーのみ指定します(値は無視されます)。
22402240
auto_accepted_only (str): 「抜取検査の対象外となり、自動受入されたタスク」だけを絞り込む時に、キーのみ指定します(値は無視されます)。
22412241
sort (str): ソート順の指定。 使用可能キーはtask_id、updated_datetime、number_of_rejections、phase、phase_stage、status、account_idのいずれかです。降順指定時は先頭に-(ハイフン)を付与します。 複数指定時は,(カンマ)区切りで列挙します。複数キーを列挙した場合は、先頭から優先順位を割り振られます。

annofabapi/models.py

+12
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@
187187
188188
* lang: str
189189
190+
* biography: str
191+
人物紹介、略歴。 この属性は、AnnoFab外の所属先や肩書などを表すために用います。 AnnoFab上の「複数の組織」で活動する場合、本籍を示すのに便利です。
190192
* keylayout: str
191193
192194
* authority: AccountAuthority
@@ -562,6 +564,8 @@ class AnnotationDataHoldingType(Enum):
562564
定型指摘
563565
* comment: str
564566
567+
* auto_marking: bool
568+
trueが指定された場合、各統計グラフにマーカーを自動追加します。 マーカーのタイトルには `comment` に指定された文字列が設定されます。 `comment` が指定されていなかった場合は \"アノテーション仕様の変更\" という文字列が設定されます。
565569
566570
"""
567571

@@ -2262,6 +2266,8 @@ class JobType(Enum):
22622266
22632267
* lang: str
22642268
2269+
* biography: str
2270+
人物紹介、略歴。 この属性は、AnnoFab外の所属先や肩書などを表すために用います。 AnnoFab上の「複数の組織」で活動する場合、本籍を示すのに便利です。
22652271
* keylayout: str
22662272
22672273
* authority: AccountAuthority
@@ -2371,6 +2377,8 @@ class JobType(Enum):
23712377
23722378
* status: OrganizationMemberStatus
23732379
2380+
* biography: str
2381+
人物紹介、略歴。 この属性は、AnnoFab外の所属先や肩書などを表すために用います。 AnnoFab上の「複数の組織」で活動する場合、本籍を示すのに便利です。
23742382
* created_datetime: str
23752383
23762384
* updated_datetime: str
@@ -2618,6 +2626,8 @@ class PricePlan(Enum):
26182626
26192627
* member_role: ProjectMemberRole
26202628
2629+
* biography: str
2630+
人物紹介、略歴。 この属性は、AnnoFab外の所属先や肩書などを表すために用います。 AnnoFab上の「複数の組織」で活動する場合、本籍を示すのに便利です。
26212631
* updated_datetime: str
26222632
26232633
* created_datetime: str
@@ -2744,6 +2754,8 @@ class ProjectStatus(Enum):
27442754
27452755
* keylayout: str
27462756
2757+
* biography: str
2758+
人物紹介、略歴。 この属性は、AnnoFab外の所属先や肩書などを表すために用います。 AnnoFab上の「複数の組織」で活動する場合、本籍を示すのに便利です。
27472759
* token: Token
27482760
27492761
* last_updated_datetime: str

generate/swagger/swagger-api-components.yaml

+30-4
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,8 @@
637637
format: email
638638
lang:
639639
type: string
640+
biography:
641+
$ref: "#/components/schemas/UserBiography"
640642
keylayout:
641643
type: string
642644
authority:
@@ -680,6 +682,8 @@
680682
type: string
681683
keylayout:
682684
type: string
685+
biography:
686+
$ref: "#/components/schemas/UserBiography"
683687
token:
684688
$ref: "#/components/schemas/Token"
685689
last_updated_datetime:
@@ -769,6 +773,8 @@
769773
$ref: "#/components/schemas/OrganizationMemberRole"
770774
status:
771775
$ref: "#/components/schemas/OrganizationMemberStatus"
776+
biography:
777+
$ref: "#/components/schemas/UserBiography"
772778
created_datetime:
773779
type: string
774780
format: date-time
@@ -936,6 +942,16 @@
936942
Duration:
937943
type: string
938944
example: "PT34H17M36.789S"
945+
UserBiography:
946+
type: string
947+
description: |
948+
人物紹介、略歴。
949+
950+
この属性は、AnnoFab外の所属先や肩書などを表すために用います。
951+
AnnoFab上の「複数の組織」で活動する場合、本籍を示すのに便利です。
952+
minLength: 0
953+
maxLength: 100
954+
example: "Annotation Manager, ABC Company"
939955
AnnotationFormatVersion:
940956
type: string
941957
example: "1.0.0"
@@ -1289,7 +1305,9 @@
12891305
$ref: "#/components/schemas/ProjectMemberStatus"
12901306
member_role:
12911307
$ref: "#/components/schemas/ProjectMemberRole"
1292-
updated_datetime:
1308+
biography:
1309+
$ref: "#/components/schemas/UserBiography"
1310+
pdated_datetime:
12931311
type: string
12941312
format: date-time
12951313
created_datetime:
@@ -1585,6 +1603,13 @@
15851603
定型指摘
15861604
comment:
15871605
type: string
1606+
autoMarking:
1607+
type: boolean
1608+
default: false
1609+
description: |
1610+
trueが指定された場合、各統計グラフにマーカーを自動追加します。
1611+
マーカーのタイトルには `comment` に指定された文字列が設定されます。
1612+
`comment` が指定されていなかった場合は "アノテーション仕様の変更" という文字列が設定されます。
15881613
AnnotationSpecsHistory:
15891614
type: object
15901615
properties:
@@ -1801,9 +1826,7 @@
18011826
phase:
18021827
$ref: "#/components/schemas/TaskPhase"
18031828
phase_stage:
1804-
type: integer
1805-
default: 1
1806-
minimum: 1
1829+
$ref: "#/components/schemas/TaskPhaseStage"
18071830
status:
18081831
$ref: "#/components/schemas/TaskStatus"
18091832
input_data_id_list:
@@ -1859,6 +1882,9 @@
18591882
* `annotation` - 教師付け。
18601883
* `inspection` - 中間検査。ワークフローが3フェーズのときのみ。
18611884
* `acceptance` - 受入。
1885+
TaskPhaseStage:
1886+
type: integer
1887+
minimum: 1
18621888
TaskStatus:
18631889
type: string
18641890
enum:

generate/swagger/swagger.v2.yaml

+31-5
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ info:
7676
WebhookID | プロジェクト内で一意
7777
入力データセットID | 組織内で一意
7878
79-
version: 0.66.7
79+
version: 0.67.0
8080
title: AnnoFab Web API
8181
x-logo:
8282
url: "https://annofab.com/images/logo_landscape.png"
@@ -1219,6 +1219,8 @@ components:
12191219
format: email
12201220
lang:
12211221
type: string
1222+
biography:
1223+
$ref: "#/components/schemas/UserBiography"
12221224
keylayout:
12231225
type: string
12241226
authority:
@@ -1262,6 +1264,8 @@ components:
12621264
type: string
12631265
keylayout:
12641266
type: string
1267+
biography:
1268+
$ref: "#/components/schemas/UserBiography"
12651269
token:
12661270
$ref: "#/components/schemas/Token"
12671271
last_updated_datetime:
@@ -1351,6 +1355,8 @@ components:
13511355
$ref: "#/components/schemas/OrganizationMemberRole"
13521356
status:
13531357
$ref: "#/components/schemas/OrganizationMemberStatus"
1358+
biography:
1359+
$ref: "#/components/schemas/UserBiography"
13541360
created_datetime:
13551361
type: string
13561362
format: date-time
@@ -1518,6 +1524,16 @@ components:
15181524
Duration:
15191525
type: string
15201526
example: "PT34H17M36.789S"
1527+
UserBiography:
1528+
type: string
1529+
description: |
1530+
人物紹介、略歴。
1531+
1532+
この属性は、AnnoFab外の所属先や肩書などを表すために用います。
1533+
AnnoFab上の「複数の組織」で活動する場合、本籍を示すのに便利です。
1534+
minLength: 0
1535+
maxLength: 100
1536+
example: "Annotation Manager, ABC Company"
15211537
AnnotationFormatVersion:
15221538
type: string
15231539
example: "1.0.0"
@@ -1871,7 +1887,9 @@ components:
18711887
$ref: "#/components/schemas/ProjectMemberStatus"
18721888
member_role:
18731889
$ref: "#/components/schemas/ProjectMemberRole"
1874-
updated_datetime:
1890+
biography:
1891+
$ref: "#/components/schemas/UserBiography"
1892+
pdated_datetime:
18751893
type: string
18761894
format: date-time
18771895
created_datetime:
@@ -2167,6 +2185,13 @@ components:
21672185
定型指摘
21682186
comment:
21692187
type: string
2188+
autoMarking:
2189+
type: boolean
2190+
default: false
2191+
description: |
2192+
trueが指定された場合、各統計グラフにマーカーを自動追加します。
2193+
マーカーのタイトルには `comment` に指定された文字列が設定されます。
2194+
`comment` が指定されていなかった場合は "アノテーション仕様の変更" という文字列が設定されます。
21702195
AnnotationSpecsHistory:
21712196
type: object
21722197
properties:
@@ -2383,9 +2408,7 @@ components:
23832408
phase:
23842409
$ref: "#/components/schemas/TaskPhase"
23852410
phase_stage:
2386-
type: integer
2387-
default: 1
2388-
minimum: 1
2411+
$ref: "#/components/schemas/TaskPhaseStage"
23892412
status:
23902413
$ref: "#/components/schemas/TaskStatus"
23912414
input_data_id_list:
@@ -2441,6 +2464,9 @@ components:
24412464
* `annotation` - 教師付け。
24422465
* `inspection` - 中間検査。ワークフローが3フェーズのときのみ。
24432466
* `acceptance` - 受入。
2467+
TaskPhaseStage:
2468+
type: integer
2469+
minimum: 1
24442470
TaskStatus:
24452471
type: string
24462472
enum:

0 commit comments

Comments
 (0)