Skip to content

Commit 5088fa2

Browse files
chore(developer): update API docs (#578)
1 parent 780b8a7 commit 5088fa2

File tree

4 files changed

+58
-66
lines changed

4 files changed

+58
-66
lines changed

src/assets/api/crowdin/file-based.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41146,13 +41146,13 @@ components:
4114641146
type: integer
4114741147
example: 1
4114841148
usernames:
41149-
description: 'User Names. Get via [List Users](#operation/api.projects.members.getMany)'
41149+
description: "User Names. Get via [List Users](#operation/api.projects.members.getMany)\n\n__Note:__ One of fields `userIds`, `usernames` or `emails` is required"
4115041150
type: array
4115141151
items:
4115241152
type: string
4115341153
example: john_smith
4115441154
emails:
41155-
description: 'User Emails.'
41155+
description: "User Emails.\n\n__Note:__ One of fields `userIds`, `usernames` or `emails` is required"
4115641156
type: array
4115741157
items:
4115841158
type: string
@@ -44080,14 +44080,14 @@ components:
4408044080
schema:
4408144081
type: string
4408244082
SystemStringsExporterSettingsId:
44083-
name: SystemStringsExporterSettingsId
44083+
name: systemStringsExporterSettingsId
4408444084
in: path
4408544085
description: 'System strings exporter Settings Identifier. Get via [List Project Strings Exporter Settings](#operation/api.projects.strings-exporter-settings.getMany)'
4408644086
required: true
4408744087
schema:
4408844088
type: integer
4408944089
FieldId:
44090-
name: FieldId
44090+
name: fieldId
4409144091
in: path
4409244092
description: 'Field Identifier. Get via [List Fields](#operation/api.fields.getMany)'
4409344093
required: true

src/assets/api/crowdin/string-based.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39396,13 +39396,13 @@ components:
3939639396
type: integer
3939739397
example: 1
3939839398
usernames:
39399-
description: 'User Names. Get via [List Users](#operation/api.projects.members.getMany)'
39399+
description: "User Names. Get via [List Users](#operation/api.projects.members.getMany)\n\n__Note:__ One of fields `userIds`, `usernames` or `emails` is required"
3940039400
type: array
3940139401
items:
3940239402
type: string
3940339403
example: john_smith
3940439404
emails:
39405-
description: 'User Emails.'
39405+
description: "User Emails.\n\n__Note:__ One of fields `userIds`, `usernames` or `emails` is required"
3940639406
type: array
3940739407
items:
3940839408
type: string
@@ -42315,14 +42315,14 @@ components:
4231542315
schema:
4231642316
type: string
4231742317
SystemStringsExporterSettingsId:
42318-
name: SystemStringsExporterSettingsId
42318+
name: systemStringsExporterSettingsId
4231942319
in: path
4232042320
description: 'System strings exporter Settings Identifier. Get via [List Project Strings Exporter Settings](#operation/api.projects.strings-exporter-settings.getMany)'
4232142321
required: true
4232242322
schema:
4232342323
type: integer
4232442324
FieldId:
42325-
name: FieldId
42325+
name: fieldId
4232642326
in: path
4232742327
description: 'Field Identifier. Get via [List Fields](#operation/api.fields.getMany)'
4232842328
required: true

src/assets/api/enterprise/file-based.yml

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7786,7 +7786,7 @@ paths:
77867786
content:
77877787
application/json:
77887788
schema:
7789-
$ref: '#/components/schemas/EnterpriseOrganizationWebhookResource'
7789+
$ref: '#/components/schemas/EnterpriseOrganizationWebhookCreateForm'
77907790
responses:
77917791
'201':
77927792
description: 'Webhook was successfully added'
@@ -32555,6 +32555,7 @@ components:
3255532555
saveMetaInfoInSource:
3255632556
description: 'Context and max.length added in Crowdin will be visible in the downloaded files'
3255732557
type: boolean
32558+
default: true
3255832559
example: true
3255932560
type:
3256032561
description: 'Defines the project type. To create a file-based project, `type` should be set to 0.'
@@ -32567,6 +32568,7 @@ components:
3256732568
skipUntranslatedFiles:
3256832569
description: 'Defines whether to export only translated file'
3256932570
type: boolean
32571+
default: false
3257032572
example: false
3257132573
tmContextType:
3257232574
description: "TM perfect match searching mode. Available values:\n * segmentContext - searching by context\n * auto - context search for key-value formats and segment search for others\n * prevAndNextSegment - search by previous and next segment"
@@ -32794,7 +32796,7 @@ components:
3279432796
- 3
3279532797
- 4
3279632798
- 5
32797-
example: 1
32799+
example: 0
3279832800
tagsDetection:
3279932801
description: "Values available:\n * 0 - Auto\n * 1 - Count tags\n * 2 - Skip tags"
3280032802
type: integer
@@ -32857,34 +32859,38 @@ components:
3285732859
delayedWorkflowStart:
3285832860
description: 'Delay workflow start after project creation'
3285932861
type: boolean
32860-
default: 'false'
32861-
example: 'false'
32862+
default: false
32863+
example: false
3286232864
skipUntranslatedStrings:
3286332865
description: 'Defines whether to skip untranslated strings'
3286432866
type: boolean
32867+
default: false
3286532868
example: false
3286632869
exportWithMinApprovalsCount:
3286732870
description: "Defines whether to export only approved strings\n\n__Note:__ value greater than `0` can't be used with `exportStringsThatPassedWorkflow=true` in same request"
3286832871
type: integer
32872+
default: 0
3286932873
example: 0
3287032874
exportStringsThatPassedWorkflow:
3287132875
description: "Defines whether to export only strings that passed workflow\n\n__Note:__ `true` value can't be used with `exportWithMinApprovalsCount>0` in same request or in projects without an assigned workflow"
3287232876
type: boolean
32873-
example: true
32877+
default: false
32878+
example: false
3287432879
normalizePlaceholder:
3287532880
description: 'Enable the transformation of the placeholders to the unified format to improve the work with TM suggestions'
3287632881
type: boolean
32877-
example: true
32882+
default: false
32883+
example: false
3287832884
qaCheckIsActive:
3287932885
description: 'If `true` - QA checks are active'
3288032886
type: boolean
32881-
default: 'true'
32887+
default: true
3288232888
example: true
3288332889
qaApprovalsCount:
3288432890
description: 'Clear QA checks for translations with specific number of approvals'
3288532891
type: number
32886-
default: '1'
32887-
example: '1'
32892+
default: 1
32893+
example: 1
3288832894
qaCheckCategories:
3288932895
$ref: '#/components/schemas/qaCheckCategories'
3289032896
qaChecksIgnorableCategories:
@@ -44189,22 +44195,20 @@ components:
4418944195
EnterpriseTaskBySourceIdsForm:
4419044196
title: CreateBySourcesForm
4419144197
required:
44192-
- workflowStepId
4419344198
- title
4419444199
- languageId
4419544200
- fileIds
4419644201
- branchIds
4419744202
- stringIds
44198-
- type
4419944203
properties:
4420044204
type:
44201-
description: "Task type:\n * 0 - translate\n * 1 - proofread\n\n__Note:__ Can't be used with `workflowStepId` in same request"
44205+
description: "Task type:\n * 0 - translate\n * 1 - proofread\n\n__Note:__ One of fields `type` or `workflowStepId` is required. Both cannot be provided simultaneously"
4420244206
type: integer
4420344207
enum:
4420444208
- 0
4420544209
- 1
4420644210
workflowStepId:
44207-
description: "Task workflow step id\n\n__Note:__ Can't be used with `type` in same request"
44211+
description: "Task workflow step id\n\n__Note:__ One of fields `type` or `workflowStepId` is required. Both cannot be provided simultaneously"
4420844212
type: integer
4420944213
title:
4421044214
description: 'Task title'
@@ -44341,22 +44345,20 @@ components:
4434144345
EnterpriseTaskByStringIds:
4434244346
title: CreateByStringIdsForm
4434344347
required:
44344-
- workflowStepId
4434544348
- title
4434644349
- languageId
4434744350
- fileIds
4434844351
- branchIds
4434944352
- stringIds
44350-
- type
4435144353
properties:
4435244354
type:
44353-
description: "Task type:\n * 0 - translate\n * 1 - proofread\n\n__Note:__ Can't be used with `workflowStepId` in same request"
44355+
description: "Task type:\n * 0 - translate\n * 1 - proofread\n\n__Note:__ One of fields `type` or `workflowStepId` is required. Both cannot be provided simultaneously"
4435444356
type: integer
4435544357
enum:
4435644358
- 0
4435744359
- 1
4435844360
workflowStepId:
44359-
description: "Task workflow step id\n\n__Note:__ Can't be used with `type` in same request"
44361+
description: "Task workflow step id\n\n__Note:__ One of fields `type` or `workflowStepId` is required. Both cannot be provided simultaneously"
4436044362
type: integer
4436144363
title:
4436244364
description: 'Task title'
@@ -44686,21 +44688,19 @@ components:
4468644688
EnterprisePendingTaskCreateForm:
4468744689
required:
4468844690
- precedingTaskId
44689-
- type
44690-
- workflowStepId
4469144691
- title
4469244692
properties:
4469344693
precedingTaskId:
4469444694
description: 'Translate Task Identifier. Get via [List Tasks](#operation/api.projects.tasks.getMany)'
4469544695
type: integer
4469644696
example: '1'
4469744697
type:
44698-
description: "Task type:\n * 1 - proofread\n\n__Note:__ Can't be used with `workflowStepId` in same request"
44698+
description: "Task type:\n * 1 - proofread\n\n__Note:__ One of fields `type` or `workflowStepId` is required. Both cannot be provided simultaneously"
4469944699
type: integer
4470044700
enum:
4470144701
- 1
4470244702
workflowStepId:
44703-
description: "Task workflow step id\n\n__Note:__ Can't be used with `type` in same request"
44703+
description: "Task workflow step id\n\n__Note:__ One of fields `type` or `workflowStepId` is required. Both cannot be provided simultaneously"
4470444704
type: integer
4470544705
title:
4470644706
description: 'Task title'
@@ -45648,6 +45648,7 @@ components:
4564845648
properties:
4564945649
teamId:
4565045650
description: 'Team Identifier. Get via [List Teams](#operation/api.teams.getMany)'
45651+
type: integer
4565145652
example: 1
4565245653
accessToAllWorkflowSteps:
4565345654
description: "Grant access to all project languages, translation, and proofreading workflow steps (current and future)\n\n__Note:__ This property is deprecated. Use `roles` instead"
@@ -47782,10 +47783,6 @@ components:
4778247783
value:
4778347784
type: object
4778447785
EnterpriseAddProjectMemberForm:
47785-
required:
47786-
- userIds
47787-
- usernames
47788-
- emails
4778947786
properties:
4779047787
userIds:
4779147788
description: "User Identifier. Get via [List Users](#operation/api.users.getMany)\n\n__Note:__ One of fields `userIds`, `usernames` or `emails` is required"
@@ -47794,13 +47791,13 @@ components:
4779447791
type: integer
4779547792
example: 1
4779647793
usernames:
47797-
description: 'User Names. Get via [List Users](#operation/api.users.getMany)'
47794+
description: "User Names. Get via [List Users](#operation/api.users.getMany)\n\n__Note:__ One of fields `userIds`, `usernames` or `emails` is required"
4779847795
type: array
4779947796
items:
4780047797
type: string
4780147798
example: john_smith
4780247799
emails:
47803-
description: 'User Emails.'
47800+
description: "User Emails.\n\n__Note:__ One of fields `userIds`, `usernames` or `emails` is required"
4780447801
type: array
4780547802
items:
4780647803
type: string
@@ -50879,14 +50876,14 @@ components:
5087950876
schema:
5088050877
type: string
5088150878
SystemStringsExporterSettingsId:
50882-
name: SystemStringsExporterSettingsId
50879+
name: systemStringsExporterSettingsId
5088350880
in: path
5088450881
description: 'System strings exporter Settings Identifier. Get via [List Project Strings Exporter Settings](#operation/api.projects.strings-exporter-settings.getMany)'
5088550882
required: true
5088650883
schema:
5088750884
type: integer
5088850885
FieldId:
50889-
name: FieldId
50886+
name: fieldId
5089050887
in: path
5089150888
description: 'Field Identifier. Get via [List Fields](#operation/api.fields.getMany)'
5089250889
required: true

0 commit comments

Comments
 (0)