phrase 2.8.3 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +31 -12
- data/docs/BitbucketSyncApi.md +2 -2
- data/docs/BranchesApi.md +3 -3
- data/docs/GitHubSyncApi.md +2 -2
- data/docs/GitLabSyncApi.md +2 -2
- data/docs/JobCommentsApi.md +6 -6
- data/docs/JobLocale.md +3 -1
- data/docs/JobLocaleUpdateParameters.md +5 -1
- data/docs/JobLocalesCreateParameters.md +6 -2
- data/docs/JobTemplateDetails.md +35 -0
- data/docs/JobTemplateDetails1.md +21 -0
- data/docs/JobTemplateLocaleUpdateParameters.md +6 -2
- data/docs/{JobTemplateLocale.md → JobTemplateLocales.md} +6 -4
- data/docs/JobTemplateLocalesApi.md +8 -8
- data/docs/JobTemplateLocalesCreateParameters.md +5 -1
- data/docs/JobTemplatesApi.md +41 -41
- data/docs/KeysSearchParameters.md +1 -1
- data/docs/LocaleTeamPreview.md +21 -0
- data/docs/{JobTemplateUserPreview.md → LocaleUserPreview.md} +2 -2
- data/docs/LocalesApi.md +8 -4
- data/docs/NotificationGroupDetail.md +1 -1
- data/docs/NotificationGroupsApi.md +4 -4
- data/docs/NotificationsApi.md +4 -4
- data/docs/OrganizationJobTemplate.md +25 -0
- data/docs/OrganizationJobTemplateCreateParameters.md +19 -0
- data/docs/OrganizationJobTemplateDetails.md +31 -0
- data/docs/OrganizationJobTemplateLocaleUpdateParameters.md +27 -0
- data/docs/OrganizationJobTemplateLocalesApi.md +341 -0
- data/docs/OrganizationJobTemplateLocalesCreateParameters.md +27 -0
- data/docs/OrganizationJobTemplateUpdateParameters.md +19 -0
- data/docs/OrganizationJobTemplatesApi.md +331 -0
- data/docs/Project.md +2 -0
- data/docs/ProjectCreateParameters.md +5 -1
- data/docs/ProjectDetails.md +2 -0
- data/docs/ProjectUpdateParameters.md +5 -1
- data/docs/SearchApi.md +1 -1
- data/docs/TranslationsApi.md +23 -19
- data/docs/TranslationsExcludeParameters.md +1 -1
- data/docs/TranslationsIncludeParameters.md +1 -1
- data/docs/TranslationsReviewParameters.md +1 -1
- data/docs/TranslationsSearchParameters.md +1 -1
- data/docs/TranslationsUnverifyParameters.md +1 -1
- data/docs/TranslationsVerifyParameters.md +1 -1
- data/docs/UploadsApi.md +3 -3
- data/lib/phrase/api/bitbucket_sync_api.rb +4 -4
- data/lib/phrase/api/branches_api.rb +6 -6
- data/lib/phrase/api/git_hub_sync_api.rb +4 -4
- data/lib/phrase/api/git_lab_sync_api.rb +4 -4
- data/lib/phrase/api/job_comments_api.rb +9 -9
- data/lib/phrase/api/job_template_locales_api.rb +12 -12
- data/lib/phrase/api/job_templates_api.rb +72 -72
- data/lib/phrase/api/locales_api.rb +10 -4
- data/lib/phrase/api/notification_groups_api.rb +6 -6
- data/lib/phrase/api/notifications_api.rb +6 -6
- data/lib/phrase/api/organization_job_template_locales_api.rb +408 -0
- data/lib/phrase/api/organization_job_templates_api.rb +378 -0
- data/lib/phrase/api/search_api.rb +2 -2
- data/lib/phrase/api/translations_api.rb +20 -14
- data/lib/phrase/api/uploads_api.rb +2 -2
- data/lib/phrase/models/job_locale.rb +13 -2
- data/lib/phrase/models/job_locale_update_parameters.rb +28 -4
- data/lib/phrase/models/job_locales_create_parameters.rb +33 -4
- data/lib/phrase/models/job_template_details.rb +285 -0
- data/lib/phrase/models/job_template_details1.rb +214 -0
- data/lib/phrase/models/job_template_locale_update_parameters.rb +28 -9
- data/lib/phrase/models/{job_template_locale.rb → job_template_locales.rb} +18 -7
- data/lib/phrase/models/job_template_locales_create_parameters.rb +28 -4
- data/lib/phrase/models/keys_search_parameters.rb +1 -1
- data/lib/phrase/models/locale_team_preview.rb +212 -0
- data/lib/phrase/models/{job_template_user_preview.rb → locale_user_preview.rb} +3 -3
- data/lib/phrase/models/notification_group_detail.rb +1 -1
- data/lib/phrase/models/organization_job_template.rb +230 -0
- data/lib/phrase/models/organization_job_template_create_parameters.rb +210 -0
- data/lib/phrase/models/organization_job_template_details.rb +267 -0
- data/lib/phrase/models/organization_job_template_locale_update_parameters.rb +253 -0
- data/lib/phrase/models/organization_job_template_locales_create_parameters.rb +263 -0
- data/lib/phrase/models/organization_job_template_update_parameters.rb +210 -0
- data/lib/phrase/models/project.rb +10 -1
- data/lib/phrase/models/project_create_parameters.rb +22 -2
- data/lib/phrase/models/project_details.rb +10 -1
- data/lib/phrase/models/project_update_parameters.rb +22 -2
- data/lib/phrase/models/translations_exclude_parameters.rb +1 -1
- data/lib/phrase/models/translations_include_parameters.rb +1 -1
- data/lib/phrase/models/translations_review_parameters.rb +1 -1
- data/lib/phrase/models/translations_search_parameters.rb +1 -1
- data/lib/phrase/models/translations_unverify_parameters.rb +1 -1
- data/lib/phrase/models/translations_verify_parameters.rb +1 -1
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +13 -2
- data/spec/api/bitbucket_sync_api_spec.rb +2 -2
- data/spec/api/branches_api_spec.rb +3 -3
- data/spec/api/git_hub_sync_api_spec.rb +2 -2
- data/spec/api/git_lab_sync_api_spec.rb +2 -2
- data/spec/api/job_comments_api_spec.rb +3 -3
- data/spec/api/job_template_locales_api_spec.rb +4 -4
- data/spec/api/job_templates_api_spec.rb +17 -17
- data/spec/api/locales_api_spec.rb +4 -2
- data/spec/api/notification_groups_api_spec.rb +2 -2
- data/spec/api/notifications_api_spec.rb +2 -2
- data/spec/api/organization_job_template_locales_api_spec.rb +100 -0
- data/spec/api/organization_job_templates_api_spec.rb +95 -0
- data/spec/api/search_api_spec.rb +1 -1
- data/spec/api/translations_api_spec.rb +9 -7
- data/spec/api/uploads_api_spec.rb +1 -1
- data/spec/models/job_locale_spec.rb +6 -0
- data/spec/models/job_locale_update_parameters_spec.rb +12 -0
- data/spec/models/job_locales_create_parameters_spec.rb +12 -0
- data/spec/models/job_template_details1_spec.rb +41 -0
- data/spec/models/job_template_details_spec.rb +83 -0
- data/spec/models/job_template_locale_update_parameters_spec.rb +12 -0
- data/spec/models/job_template_locales_create_parameters_spec.rb +12 -0
- data/spec/models/{job_template_locale_spec.rb → job_template_locales_spec.rb} +12 -6
- data/spec/models/locale_team_preview_spec.rb +41 -0
- data/spec/models/{job_template_user_preview_spec.rb → locale_user_preview_spec.rb} +6 -6
- data/spec/models/organization_job_template_create_parameters_spec.rb +35 -0
- data/spec/models/organization_job_template_details_spec.rb +71 -0
- data/spec/models/organization_job_template_locale_update_parameters_spec.rb +59 -0
- data/spec/models/organization_job_template_locales_create_parameters_spec.rb +59 -0
- data/spec/models/organization_job_template_spec.rb +53 -0
- data/spec/models/organization_job_template_update_parameters_spec.rb +35 -0
- data/spec/models/project_create_parameters_spec.rb +12 -0
- data/spec/models/project_details_spec.rb +6 -0
- data/spec/models/project_spec.rb +6 -0
- data/spec/models/project_update_parameters_spec.rb +12 -0
- metadata +269 -225
|
@@ -22,7 +22,7 @@ describe 'GitHubSyncApi' do
|
|
|
22
22
|
|
|
23
23
|
# unit tests for github_sync_export
|
|
24
24
|
# Export from Phrase Strings to GitHub
|
|
25
|
-
# Export translations from Phrase Strings to GitHub according to the .phraseapp.yml file within the GitHub repository.
|
|
25
|
+
# Export translations from Phrase Strings to GitHub according to the .phraseapp.yml file within the GitHub repository. <br><br><i>Note: Export is done asynchronously and may take several seconds depending on the project size.</i>
|
|
26
26
|
# @param github_sync_export_parameters
|
|
27
27
|
# @param [Hash] opts the optional parameters
|
|
28
28
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
@@ -35,7 +35,7 @@ describe 'GitHubSyncApi' do
|
|
|
35
35
|
|
|
36
36
|
# unit tests for github_sync_import
|
|
37
37
|
# Import to Phrase Strings from GitHub
|
|
38
|
-
# Import files to Phrase Strings from your connected GitHub repository.
|
|
38
|
+
# Import files to Phrase Strings from your connected GitHub repository. <br><br><i>Note: Import is done asynchronously and may take several seconds depending on the project size.</i>
|
|
39
39
|
# @param github_sync_import_parameters
|
|
40
40
|
# @param [Hash] opts the optional parameters
|
|
41
41
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
@@ -36,7 +36,7 @@ describe 'GitLabSyncApi' do
|
|
|
36
36
|
|
|
37
37
|
# unit tests for gitlab_sync_export
|
|
38
38
|
# Export from Phrase Strings to GitLab
|
|
39
|
-
# Export translations from Phrase Strings to GitLab according to the .phraseapp.yml file within the GitLab repository.
|
|
39
|
+
# Export translations from Phrase Strings to GitLab according to the .phraseapp.yml file within the GitLab repository. <br><br><i>Note: Export is done asynchronously and may take several seconds depending on the project size.</i>
|
|
40
40
|
# @param gitlab_sync_id Gitlab Sync ID
|
|
41
41
|
# @param gitlab_sync_export_parameters
|
|
42
42
|
# @param [Hash] opts the optional parameters
|
|
@@ -66,7 +66,7 @@ describe 'GitLabSyncApi' do
|
|
|
66
66
|
|
|
67
67
|
# unit tests for gitlab_sync_import
|
|
68
68
|
# Import from GitLab to Phrase
|
|
69
|
-
# Import translations from GitLab to Phrase Strings according to the .phraseapp.yml file within the GitLab repository.
|
|
69
|
+
# Import translations from GitLab to Phrase Strings according to the .phraseapp.yml file within the GitLab repository. <br><br><i>Note: Import is done asynchronously and may take several seconds depending on the project size.</i>
|
|
70
70
|
# @param gitlab_sync_id Gitlab Sync ID
|
|
71
71
|
# @param gitlab_sync_import_parameters
|
|
72
72
|
# @param [Hash] opts the optional parameters
|
|
@@ -60,7 +60,7 @@ describe 'JobCommentsApi' do
|
|
|
60
60
|
# @param [Hash] opts the optional parameters
|
|
61
61
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
62
62
|
# @option opts [String] :branch specify the branch to use
|
|
63
|
-
# @return [
|
|
63
|
+
# @return [JobComment]
|
|
64
64
|
describe 'job_comment_show test' do
|
|
65
65
|
it 'should work' do
|
|
66
66
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -76,7 +76,7 @@ describe 'JobCommentsApi' do
|
|
|
76
76
|
# @param job_comment_update_parameters
|
|
77
77
|
# @param [Hash] opts the optional parameters
|
|
78
78
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
79
|
-
# @return [
|
|
79
|
+
# @return [JobComment]
|
|
80
80
|
describe 'job_comment_update test' do
|
|
81
81
|
it 'should work' do
|
|
82
82
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -91,7 +91,7 @@ describe 'JobCommentsApi' do
|
|
|
91
91
|
# @param [Hash] opts the optional parameters
|
|
92
92
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
93
93
|
# @option opts [String] :branch specify the branch to use
|
|
94
|
-
# @return [Array<
|
|
94
|
+
# @return [Array<JobComment>]
|
|
95
95
|
describe 'job_comments_list test' do
|
|
96
96
|
it 'should work' do
|
|
97
97
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -45,7 +45,7 @@ describe 'JobTemplateLocalesApi' do
|
|
|
45
45
|
# @param [Hash] opts the optional parameters
|
|
46
46
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
47
47
|
# @option opts [String] :branch specify the branch to use
|
|
48
|
-
# @return [
|
|
48
|
+
# @return [JobTemplateLocales]
|
|
49
49
|
describe 'job_template_locale_show test' do
|
|
50
50
|
it 'should work' do
|
|
51
51
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -61,7 +61,7 @@ describe 'JobTemplateLocalesApi' do
|
|
|
61
61
|
# @param job_template_locale_update_parameters
|
|
62
62
|
# @param [Hash] opts the optional parameters
|
|
63
63
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
64
|
-
# @return [
|
|
64
|
+
# @return [JobTemplateLocales]
|
|
65
65
|
describe 'job_template_locale_update test' do
|
|
66
66
|
it 'should work' do
|
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -76,7 +76,7 @@ describe 'JobTemplateLocalesApi' do
|
|
|
76
76
|
# @param job_template_locales_create_parameters
|
|
77
77
|
# @param [Hash] opts the optional parameters
|
|
78
78
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
79
|
-
# @return [
|
|
79
|
+
# @return [JobTemplateLocales]
|
|
80
80
|
describe 'job_template_locales_create test' do
|
|
81
81
|
it 'should work' do
|
|
82
82
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -93,7 +93,7 @@ describe 'JobTemplateLocalesApi' do
|
|
|
93
93
|
# @option opts [Integer] :page Page number
|
|
94
94
|
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
95
95
|
# @option opts [String] :branch specify the branch to use
|
|
96
|
-
# @return [Array<
|
|
96
|
+
# @return [Array<JobTemplateLocales>]
|
|
97
97
|
describe 'job_template_locales_list test' do
|
|
98
98
|
it 'should work' do
|
|
99
99
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -27,7 +27,7 @@ describe 'JobTemplatesApi' do
|
|
|
27
27
|
# @param job_template_create_parameters
|
|
28
28
|
# @param [Hash] opts the optional parameters
|
|
29
29
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
30
|
-
# @return [
|
|
30
|
+
# @return [JobTemplateDetails]
|
|
31
31
|
describe 'job_template_create test' do
|
|
32
32
|
it 'should work' do
|
|
33
33
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -49,21 +49,6 @@ describe 'JobTemplatesApi' do
|
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
-
# unit tests for job_template_show
|
|
53
|
-
# Get a single job template
|
|
54
|
-
# Get details on a single job template for a given project.
|
|
55
|
-
# @param project_id Project ID
|
|
56
|
-
# @param id ID
|
|
57
|
-
# @param [Hash] opts the optional parameters
|
|
58
|
-
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
59
|
-
# @option opts [String] :branch specify the branch to use
|
|
60
|
-
# @return [Object]
|
|
61
|
-
describe 'job_template_show test' do
|
|
62
|
-
it 'should work' do
|
|
63
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
|
|
67
52
|
# unit tests for job_template_update
|
|
68
53
|
# Update a job template
|
|
69
54
|
# Update an existing job template.
|
|
@@ -72,7 +57,7 @@ describe 'JobTemplatesApi' do
|
|
|
72
57
|
# @param job_template_update_parameters
|
|
73
58
|
# @param [Hash] opts the optional parameters
|
|
74
59
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
75
|
-
# @return [
|
|
60
|
+
# @return [JobTemplateDetails]
|
|
76
61
|
describe 'job_template_update test' do
|
|
77
62
|
it 'should work' do
|
|
78
63
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -95,4 +80,19 @@ describe 'JobTemplatesApi' do
|
|
|
95
80
|
end
|
|
96
81
|
end
|
|
97
82
|
|
|
83
|
+
# unit tests for job_templates_show
|
|
84
|
+
# Get a single job template
|
|
85
|
+
# Get details on a single job template for a given project.
|
|
86
|
+
# @param project_id Project ID
|
|
87
|
+
# @param id ID
|
|
88
|
+
# @param [Hash] opts the optional parameters
|
|
89
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
90
|
+
# @option opts [String] :branch specify the branch to use
|
|
91
|
+
# @return [JobTemplateDetails]
|
|
92
|
+
describe 'job_templates_show test' do
|
|
93
|
+
it 'should work' do
|
|
94
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
98
|
end
|
|
@@ -71,8 +71,10 @@ describe 'LocalesApi' do
|
|
|
71
71
|
# @param id ID
|
|
72
72
|
# @param [Hash] opts the optional parameters
|
|
73
73
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
74
|
+
# @option opts [String] :if_modified_since Last modified condition, see <a href=\"#overview--conditional-get-requests--http-caching\">Conditional GET requests / HTTP Caching</a> (optional)
|
|
75
|
+
# @option opts [String] :if_none_match ETag condition, see <a href=\"#overview--conditional-get-requests--http-caching\">Conditional GET requests / HTTP Caching</a> (optional)
|
|
74
76
|
# @option opts [String] :branch specify the branch to use
|
|
75
|
-
# @option opts [String] :file_format File format name. See the <a href=\"https://support.phrase.com/hc/en-us/
|
|
77
|
+
# @option opts [String] :file_format File format name. See the <a href=\"https://support.phrase.com/hc/en-us/sections/6111343326364\">format guide</a> for all supported file formats.
|
|
76
78
|
# @option opts [String] :tags Limit results to keys tagged with a list of comma separated tag names.
|
|
77
79
|
# @option opts [String] :tag Limit download to tagged keys. This parameter is deprecated. Please use the \"tags\" parameter instead
|
|
78
80
|
# @option opts [Boolean] :include_empty_translations Indicates whether keys without translations should be included in the output as well.
|
|
@@ -80,7 +82,7 @@ describe 'LocalesApi' do
|
|
|
80
82
|
# @option opts [Boolean] :include_translated_keys Include translated keys in the locale file. Use in combination with include_empty_translations to obtain only untranslated keys.
|
|
81
83
|
# @option opts [Boolean] :keep_notranslate_tags Indicates whether [NOTRANSLATE] tags should be kept.
|
|
82
84
|
# @option opts [Boolean] :convert_emoji This option is obsolete. Projects that were created on or after Nov 29th 2019 or that did not contain emoji by then will not require this flag any longer since emoji are now supported natively.
|
|
83
|
-
# @option opts [Object] :format_options Additional formatting and render options. See the <a href=\"https://support.phrase.com/hc/en-us/
|
|
85
|
+
# @option opts [Object] :format_options Additional formatting and render options. See the <a href=\"https://support.phrase.com/hc/en-us/sections/6111343326364\">format guide</a> for a list of options available for each format. Specify format options like this: <code>...&format_options[foo]=bar</code>
|
|
84
86
|
# @option opts [String] :encoding Enforces a specific encoding on the file contents. Valid options are \"UTF-8\", \"UTF-16\" and \"ISO-8859-1\".
|
|
85
87
|
# @option opts [Boolean] :skip_unverified_translations Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with <code>include_unverified_translations</code>.
|
|
86
88
|
# @option opts [Boolean] :include_unverified_translations if set to false unverified translations are excluded
|
|
@@ -27,7 +27,7 @@ describe 'NotificationGroupsApi' do
|
|
|
27
27
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
28
28
|
# @option opts [Integer] :page Page number
|
|
29
29
|
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
30
|
-
# @return [Array<
|
|
30
|
+
# @return [Array<NotificationGroupDetail>]
|
|
31
31
|
describe 'notification_groups_list test' do
|
|
32
32
|
it 'should work' do
|
|
33
33
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -39,7 +39,7 @@ describe 'NotificationGroupsApi' do
|
|
|
39
39
|
# Mark all notification groups of the current user as read
|
|
40
40
|
# @param [Hash] opts the optional parameters
|
|
41
41
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
42
|
-
# @return [Array<
|
|
42
|
+
# @return [Array<NotificationGroupDetail>]
|
|
43
43
|
describe 'notification_groups_mark_all_as_read test' do
|
|
44
44
|
it 'should work' do
|
|
45
45
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -28,7 +28,7 @@ describe 'NotificationsApi' do
|
|
|
28
28
|
# @option opts [Integer] :page Page number
|
|
29
29
|
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
30
30
|
# @option opts [Boolean] :unseen Include only unseen notifications
|
|
31
|
-
# @return [Array<
|
|
31
|
+
# @return [Array<Notification>]
|
|
32
32
|
describe 'notifications_list test' do
|
|
33
33
|
it 'should work' do
|
|
34
34
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -40,7 +40,7 @@ describe 'NotificationsApi' do
|
|
|
40
40
|
# Mark all notifications of the current user as read
|
|
41
41
|
# @param [Hash] opts the optional parameters
|
|
42
42
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
43
|
-
# @return [Array<
|
|
43
|
+
# @return [Array<Notification>]
|
|
44
44
|
describe 'notifications_mark_all_as_read test' do
|
|
45
45
|
it 'should work' do
|
|
46
46
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'json'
|
|
3
|
+
|
|
4
|
+
# Unit tests for Phrase::OrganizationJobTemplateLocalesApi
|
|
5
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
6
|
+
# Please update as you see appropriate
|
|
7
|
+
describe 'OrganizationJobTemplateLocalesApi' do
|
|
8
|
+
before do
|
|
9
|
+
# run before each test
|
|
10
|
+
@api_instance = Phrase::OrganizationJobTemplateLocalesApi.new
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
after do
|
|
14
|
+
# run after each test
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
describe 'test an instance of OrganizationJobTemplateLocalesApi' do
|
|
18
|
+
it 'should create an instance of OrganizationJobTemplateLocalesApi' do
|
|
19
|
+
expect(@api_instance).to be_instance_of(Phrase::OrganizationJobTemplateLocalesApi)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# unit tests for organization_job_template_locale_delete
|
|
24
|
+
# Delete an organization job template locale
|
|
25
|
+
# Delete an existing organization job template locale.
|
|
26
|
+
# @param account_id Account ID
|
|
27
|
+
# @param job_template_id Job Template ID
|
|
28
|
+
# @param job_template_locale_id Job Template Locale ID
|
|
29
|
+
# @param [Hash] opts the optional parameters
|
|
30
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
31
|
+
# @return [nil]
|
|
32
|
+
describe 'organization_job_template_locale_delete test' do
|
|
33
|
+
it 'should work' do
|
|
34
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# unit tests for organization_job_template_locale_show
|
|
39
|
+
# Get a single organization job template locale
|
|
40
|
+
# Get a single job template locale for a given organization job template.
|
|
41
|
+
# @param account_id Account ID
|
|
42
|
+
# @param job_template_id Job Template ID
|
|
43
|
+
# @param job_template_locale_id Job Template Locale ID
|
|
44
|
+
# @param [Hash] opts the optional parameters
|
|
45
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
46
|
+
# @return [JobTemplateLocales]
|
|
47
|
+
describe 'organization_job_template_locale_show test' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# unit tests for organization_job_template_locale_update
|
|
54
|
+
# Update an organization job template locale
|
|
55
|
+
# Update an existing organization job template locale.
|
|
56
|
+
# @param account_id Account ID
|
|
57
|
+
# @param job_template_id Job Template ID
|
|
58
|
+
# @param job_template_locale_id Job Template Locale ID
|
|
59
|
+
# @param organization_job_template_locale_update_parameters
|
|
60
|
+
# @param [Hash] opts the optional parameters
|
|
61
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
62
|
+
# @return [JobTemplateLocales]
|
|
63
|
+
describe 'organization_job_template_locale_update test' do
|
|
64
|
+
it 'should work' do
|
|
65
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# unit tests for organization_job_template_locales_create
|
|
70
|
+
# Create an organization job template locale
|
|
71
|
+
# Create a new organization job template locale.
|
|
72
|
+
# @param account_id Account ID
|
|
73
|
+
# @param job_template_id Job Template ID
|
|
74
|
+
# @param organization_job_template_locales_create_parameters
|
|
75
|
+
# @param [Hash] opts the optional parameters
|
|
76
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
77
|
+
# @return [JobTemplateLocales]
|
|
78
|
+
describe 'organization_job_template_locales_create test' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# unit tests for organization_job_template_locales_list
|
|
85
|
+
# List organization job template locales
|
|
86
|
+
# List all job template locales for a given organization job template.
|
|
87
|
+
# @param account_id Account ID
|
|
88
|
+
# @param job_template_id Job Template ID
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
91
|
+
# @option opts [Integer] :page Page number
|
|
92
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
93
|
+
# @return [Array<JobTemplateLocales>]
|
|
94
|
+
describe 'organization_job_template_locales_list test' do
|
|
95
|
+
it 'should work' do
|
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
end
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'json'
|
|
3
|
+
|
|
4
|
+
# Unit tests for Phrase::OrganizationJobTemplatesApi
|
|
5
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
6
|
+
# Please update as you see appropriate
|
|
7
|
+
describe 'OrganizationJobTemplatesApi' do
|
|
8
|
+
before do
|
|
9
|
+
# run before each test
|
|
10
|
+
@api_instance = Phrase::OrganizationJobTemplatesApi.new
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
after do
|
|
14
|
+
# run after each test
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
describe 'test an instance of OrganizationJobTemplatesApi' do
|
|
18
|
+
it 'should create an instance of OrganizationJobTemplatesApi' do
|
|
19
|
+
expect(@api_instance).to be_instance_of(Phrase::OrganizationJobTemplatesApi)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# unit tests for organization_job_template_create
|
|
24
|
+
# Create an organization job template
|
|
25
|
+
# Create a new organization job template.
|
|
26
|
+
# @param account_id Account ID
|
|
27
|
+
# @param organization_job_template_create_parameters
|
|
28
|
+
# @param [Hash] opts the optional parameters
|
|
29
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
30
|
+
# @return [OrganizationJobTemplateDetails]
|
|
31
|
+
describe 'organization_job_template_create test' do
|
|
32
|
+
it 'should work' do
|
|
33
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# unit tests for organization_job_template_delete
|
|
38
|
+
# Delete an organization job template
|
|
39
|
+
# Delete an existing organization job template.
|
|
40
|
+
# @param account_id Account ID
|
|
41
|
+
# @param id ID
|
|
42
|
+
# @param [Hash] opts the optional parameters
|
|
43
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
44
|
+
# @return [nil]
|
|
45
|
+
describe 'organization_job_template_delete test' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# unit tests for organization_job_template_update
|
|
52
|
+
# Update an organization job template
|
|
53
|
+
# Update an existing organization job template.
|
|
54
|
+
# @param account_id Account ID
|
|
55
|
+
# @param id ID
|
|
56
|
+
# @param organization_job_template_update_parameters
|
|
57
|
+
# @param [Hash] opts the optional parameters
|
|
58
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
59
|
+
# @return [OrganizationJobTemplateDetails]
|
|
60
|
+
describe 'organization_job_template_update test' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# unit tests for organization_job_templates_list
|
|
67
|
+
# List organization job templates
|
|
68
|
+
# List all job templates for the given account.
|
|
69
|
+
# @param account_id Account ID
|
|
70
|
+
# @param [Hash] opts the optional parameters
|
|
71
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
72
|
+
# @option opts [Integer] :page Page number
|
|
73
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
74
|
+
# @return [Array<OrganizationJobTemplate>]
|
|
75
|
+
describe 'organization_job_templates_list test' do
|
|
76
|
+
it 'should work' do
|
|
77
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# unit tests for organization_job_templates_show
|
|
82
|
+
# Get a single organization job template
|
|
83
|
+
# Get details on a single organization job template for a given account.
|
|
84
|
+
# @param account_id Account ID
|
|
85
|
+
# @param id ID
|
|
86
|
+
# @param [Hash] opts the optional parameters
|
|
87
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
88
|
+
# @return [OrganizationJobTemplateDetails]
|
|
89
|
+
describe 'organization_job_templates_show test' do
|
|
90
|
+
it 'should work' do
|
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
end
|
data/spec/api/search_api_spec.rb
CHANGED
|
@@ -22,7 +22,7 @@ describe 'SearchApi' do
|
|
|
22
22
|
|
|
23
23
|
# unit tests for search_in_account
|
|
24
24
|
# Search across projects
|
|
25
|
-
# Search for keys and translations in all account projects
|
|
25
|
+
# Search for keys and translations in all account projects <br><br><i>Note: Search is limited to 10000 results and may not include recently updated data depending on the project sizes.</i>
|
|
26
26
|
# @param account_id Account ID
|
|
27
27
|
# @param search_in_account_parameters
|
|
28
28
|
# @param [Hash] opts the optional parameters
|
|
@@ -50,7 +50,7 @@ describe 'TranslationsApi' do
|
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
# unit tests for translation_include
|
|
53
|
-
#
|
|
53
|
+
# Include a translation
|
|
54
54
|
# Remove exclude from export flag from an existing translation.
|
|
55
55
|
# @param project_id Project ID
|
|
56
56
|
# @param id ID
|
|
@@ -171,7 +171,7 @@ describe 'TranslationsApi' do
|
|
|
171
171
|
# @option opts [String] :branch specify the branch to use
|
|
172
172
|
# @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
173
173
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
|
174
|
-
# @option opts [String] :q Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
|
174
|
+
# @option opts [String] :q Specify a query to find translations by content (including wildcards).<br><br> <i>Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).</i><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
|
175
175
|
# @return [Array<Translation>]
|
|
176
176
|
describe 'translations_by_locale test' do
|
|
177
177
|
it 'should work' do
|
|
@@ -180,7 +180,7 @@ describe 'TranslationsApi' do
|
|
|
180
180
|
end
|
|
181
181
|
|
|
182
182
|
# unit tests for translations_exclude_collection
|
|
183
|
-
#
|
|
183
|
+
# Exclude translations by query
|
|
184
184
|
# Exclude translations matching query from locale export.
|
|
185
185
|
# @param project_id Project ID
|
|
186
186
|
# @param translations_exclude_parameters
|
|
@@ -194,7 +194,7 @@ describe 'TranslationsApi' do
|
|
|
194
194
|
end
|
|
195
195
|
|
|
196
196
|
# unit tests for translations_include_collection
|
|
197
|
-
#
|
|
197
|
+
# Include translations by query
|
|
198
198
|
# Include translations matching query in locale export.
|
|
199
199
|
# @param project_id Project ID
|
|
200
200
|
# @param translations_include_parameters
|
|
@@ -213,12 +213,14 @@ describe 'TranslationsApi' do
|
|
|
213
213
|
# @param project_id Project ID
|
|
214
214
|
# @param [Hash] opts the optional parameters
|
|
215
215
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
216
|
+
# @option opts [String] :if_modified_since Last modified condition, see <a href=\"#overview--conditional-get-requests--http-caching\">Conditional GET requests / HTTP Caching</a> (optional)
|
|
217
|
+
# @option opts [String] :if_none_match ETag condition, see <a href=\"#overview--conditional-get-requests--http-caching\">Conditional GET requests / HTTP Caching</a> (optional)
|
|
216
218
|
# @option opts [Integer] :page Page number
|
|
217
219
|
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
218
220
|
# @option opts [String] :branch specify the branch to use
|
|
219
221
|
# @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
220
222
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
|
221
|
-
# @option opts [String] :q Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
|
223
|
+
# @option opts [String] :q Specify a query to find translations by content (including wildcards).<br><br> <i>Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).</i><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
|
222
224
|
# @return [Array<Translation>]
|
|
223
225
|
describe 'translations_list test' do
|
|
224
226
|
it 'should work' do
|
|
@@ -257,7 +259,7 @@ describe 'TranslationsApi' do
|
|
|
257
259
|
end
|
|
258
260
|
|
|
259
261
|
# unit tests for translations_unverify_collection
|
|
260
|
-
#
|
|
262
|
+
# Unverify translations by query
|
|
261
263
|
# Mark translations matching query as unverified.
|
|
262
264
|
# @param project_id Project ID
|
|
263
265
|
# @param translations_unverify_parameters
|
|
@@ -271,7 +273,7 @@ describe 'TranslationsApi' do
|
|
|
271
273
|
end
|
|
272
274
|
|
|
273
275
|
# unit tests for translations_verify_collection
|
|
274
|
-
# Verify translations
|
|
276
|
+
# Verify translations by query
|
|
275
277
|
# Verify translations matching query.
|
|
276
278
|
# @param project_id Project ID
|
|
277
279
|
# @param translations_verify_parameters
|
|
@@ -44,6 +44,12 @@ describe 'JobLocale' do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
describe 'test attribute "teams"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
47
53
|
describe 'test attribute "completed"' do
|
|
48
54
|
it 'should work' do
|
|
49
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -44,4 +44,16 @@ describe 'JobLocaleUpdateParameters' do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
describe 'test attribute "translator_team_ids"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
describe 'test attribute "reviewer_team_ids"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
47
59
|
end
|
|
@@ -44,4 +44,16 @@ describe 'JobLocalesCreateParameters' do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
describe 'test attribute "translator_team_ids"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
describe 'test attribute "reviewer_team_ids"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
47
59
|
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'json'
|
|
3
|
+
require 'date'
|
|
4
|
+
|
|
5
|
+
# Unit tests for Phrase::JobTemplateDetails1
|
|
6
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
7
|
+
# Please update as you see appropriate
|
|
8
|
+
describe 'JobTemplateDetails1' do
|
|
9
|
+
before do
|
|
10
|
+
# run before each test
|
|
11
|
+
@instance = Phrase::JobTemplateDetails1.new
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
after do
|
|
15
|
+
# run after each test
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
describe 'test an instance of JobTemplateDetails1' do
|
|
19
|
+
it 'should create an instance of JobTemplateDetails1' do
|
|
20
|
+
expect(@instance).to be_instance_of(Phrase::JobTemplateDetails1)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
describe 'test attribute "owner"' do
|
|
24
|
+
it 'should work' do
|
|
25
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test attribute "creator"' do
|
|
30
|
+
it 'should work' do
|
|
31
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
describe 'test attribute "locales"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
end
|