Skip to content

Commit 00140ab

Browse files
authored
feat(API): Add target_locale_ids to jobs create/update (#1106)
1 parent 2bee38a commit 00140ab

4 files changed

Lines changed: 38 additions & 4 deletions

File tree

clients/cli/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn
215215
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
216216
github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc=
217217
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
218-
github.com/phrase/phrase-go/v4 v4.22.0 h1:XQnTnGtNdLWcEVYWHM15PIfHs3VHOw162TSMG77qRQg=
219-
github.com/phrase/phrase-go/v4 v4.22.0/go.mod h1:4XplKvrbHS2LDaXfFp9xrVDtO5xk2WHFm0htutwwd8c=
218+
github.com/phrase/phrase-go/v4 v4.23.0 h1:+cPuwpfLprbhPjLqAd+LbHlzOUIqwH0rzyUop64q1VI=
219+
github.com/phrase/phrase-go/v4 v4.23.0/go.mod h1:4XplKvrbHS2LDaXfFp9xrVDtO5xk2WHFm0htutwwd8c=
220220
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
221221
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
222222
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=

doc/compiled.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10926,8 +10926,18 @@
1092610926
"abcd1234cdef1234abcd1234cdef1234"
1092710927
]
1092810928
},
10929+
"target_locale_ids": {
10930+
"description": "List of target locales for the job. Mutually exclusive with `job_template_id`.",
10931+
"type": "array",
10932+
"items": {
10933+
"type": "string"
10934+
},
10935+
"example": [
10936+
"abcd1234cdef1234abcd1234cdef1234"
10937+
]
10938+
},
1092910939
"job_template_id": {
10930-
"description": "id of a job template you would like to model the created job after. Any manually added parameters will take preference over template attributes.",
10940+
"description": "id of a job template you would like to model the created job after. Any manually added parameters will take preference over template attributes. Mutually exclusive with `target_locale_ids`.",
1093110941
"type": "string",
1093210942
"example": "abcd1234cdef1234abcd1234cdef1234"
1093310943
},
@@ -11199,6 +11209,16 @@
1119911209
"type": "string",
1120011210
"example": "https://example.atlassian.net/browse/FOO"
1120111211
},
11212+
"target_locale_ids": {
11213+
"description": "List of target locales for the job.",
11214+
"type": "array",
11215+
"items": {
11216+
"type": "string"
11217+
},
11218+
"example": [
11219+
"abcd1234cdef1234abcd1234cdef1234"
11220+
]
11221+
},
1120211222
"autotranslate": {
1120311223
"description": "Automatically translate the job using machine translation",
1120411224
"type": "boolean",

paths/jobs/create.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,15 @@ requestBody:
9191
type: string
9292
example:
9393
- abcd1234cdef1234abcd1234cdef1234
94+
target_locale_ids:
95+
description: List of target locales for the job. Mutually exclusive with `job_template_id`.
96+
type: array
97+
items:
98+
type: string
99+
example:
100+
- abcd1234cdef1234abcd1234cdef1234
94101
job_template_id:
95-
description: id of a job template you would like to model the created job after. Any manually added parameters will take preference over template attributes.
102+
description: id of a job template you would like to model the created job after. Any manually added parameters will take preference over template attributes. Mutually exclusive with `target_locale_ids`.
96103
type: string
97104
example: abcd1234cdef1234abcd1234cdef1234
98105
autotranslate:

paths/jobs/update.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ requestBody:
7373
description: URL to a ticket for this job (e.g. Jira, Trello)
7474
type: string
7575
example: https://example.atlassian.net/browse/FOO
76+
target_locale_ids:
77+
description: List of target locales for the job.
78+
type: array
79+
items:
80+
type: string
81+
example:
82+
- abcd1234cdef1234abcd1234cdef1234
7683
autotranslate:
7784
description: Automatically translate the job using machine translation
7885
type: boolean

0 commit comments

Comments
 (0)