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.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +31 -12
  4. data/docs/BitbucketSyncApi.md +2 -2
  5. data/docs/BranchesApi.md +3 -3
  6. data/docs/GitHubSyncApi.md +2 -2
  7. data/docs/GitLabSyncApi.md +2 -2
  8. data/docs/JobCommentsApi.md +6 -6
  9. data/docs/JobLocale.md +3 -1
  10. data/docs/JobLocaleUpdateParameters.md +5 -1
  11. data/docs/JobLocalesCreateParameters.md +6 -2
  12. data/docs/JobTemplateDetails.md +35 -0
  13. data/docs/JobTemplateDetails1.md +21 -0
  14. data/docs/JobTemplateLocaleUpdateParameters.md +6 -2
  15. data/docs/{JobTemplateLocale.md → JobTemplateLocales.md} +6 -4
  16. data/docs/JobTemplateLocalesApi.md +8 -8
  17. data/docs/JobTemplateLocalesCreateParameters.md +5 -1
  18. data/docs/JobTemplatesApi.md +41 -41
  19. data/docs/KeysSearchParameters.md +1 -1
  20. data/docs/LocaleTeamPreview.md +21 -0
  21. data/docs/{JobTemplateUserPreview.md → LocaleUserPreview.md} +2 -2
  22. data/docs/LocalesApi.md +8 -4
  23. data/docs/NotificationGroupDetail.md +1 -1
  24. data/docs/NotificationGroupsApi.md +4 -4
  25. data/docs/NotificationsApi.md +4 -4
  26. data/docs/OrganizationJobTemplate.md +25 -0
  27. data/docs/OrganizationJobTemplateCreateParameters.md +19 -0
  28. data/docs/OrganizationJobTemplateDetails.md +31 -0
  29. data/docs/OrganizationJobTemplateLocaleUpdateParameters.md +27 -0
  30. data/docs/OrganizationJobTemplateLocalesApi.md +341 -0
  31. data/docs/OrganizationJobTemplateLocalesCreateParameters.md +27 -0
  32. data/docs/OrganizationJobTemplateUpdateParameters.md +19 -0
  33. data/docs/OrganizationJobTemplatesApi.md +331 -0
  34. data/docs/Project.md +2 -0
  35. data/docs/ProjectCreateParameters.md +5 -1
  36. data/docs/ProjectDetails.md +2 -0
  37. data/docs/ProjectUpdateParameters.md +5 -1
  38. data/docs/SearchApi.md +1 -1
  39. data/docs/TranslationsApi.md +23 -19
  40. data/docs/TranslationsExcludeParameters.md +1 -1
  41. data/docs/TranslationsIncludeParameters.md +1 -1
  42. data/docs/TranslationsReviewParameters.md +1 -1
  43. data/docs/TranslationsSearchParameters.md +1 -1
  44. data/docs/TranslationsUnverifyParameters.md +1 -1
  45. data/docs/TranslationsVerifyParameters.md +1 -1
  46. data/docs/UploadsApi.md +3 -3
  47. data/lib/phrase/api/bitbucket_sync_api.rb +4 -4
  48. data/lib/phrase/api/branches_api.rb +6 -6
  49. data/lib/phrase/api/git_hub_sync_api.rb +4 -4
  50. data/lib/phrase/api/git_lab_sync_api.rb +4 -4
  51. data/lib/phrase/api/job_comments_api.rb +9 -9
  52. data/lib/phrase/api/job_template_locales_api.rb +12 -12
  53. data/lib/phrase/api/job_templates_api.rb +72 -72
  54. data/lib/phrase/api/locales_api.rb +10 -4
  55. data/lib/phrase/api/notification_groups_api.rb +6 -6
  56. data/lib/phrase/api/notifications_api.rb +6 -6
  57. data/lib/phrase/api/organization_job_template_locales_api.rb +408 -0
  58. data/lib/phrase/api/organization_job_templates_api.rb +378 -0
  59. data/lib/phrase/api/search_api.rb +2 -2
  60. data/lib/phrase/api/translations_api.rb +20 -14
  61. data/lib/phrase/api/uploads_api.rb +2 -2
  62. data/lib/phrase/models/job_locale.rb +13 -2
  63. data/lib/phrase/models/job_locale_update_parameters.rb +28 -4
  64. data/lib/phrase/models/job_locales_create_parameters.rb +33 -4
  65. data/lib/phrase/models/job_template_details.rb +285 -0
  66. data/lib/phrase/models/job_template_details1.rb +214 -0
  67. data/lib/phrase/models/job_template_locale_update_parameters.rb +28 -9
  68. data/lib/phrase/models/{job_template_locale.rb → job_template_locales.rb} +18 -7
  69. data/lib/phrase/models/job_template_locales_create_parameters.rb +28 -4
  70. data/lib/phrase/models/keys_search_parameters.rb +1 -1
  71. data/lib/phrase/models/locale_team_preview.rb +212 -0
  72. data/lib/phrase/models/{job_template_user_preview.rb → locale_user_preview.rb} +3 -3
  73. data/lib/phrase/models/notification_group_detail.rb +1 -1
  74. data/lib/phrase/models/organization_job_template.rb +230 -0
  75. data/lib/phrase/models/organization_job_template_create_parameters.rb +210 -0
  76. data/lib/phrase/models/organization_job_template_details.rb +267 -0
  77. data/lib/phrase/models/organization_job_template_locale_update_parameters.rb +253 -0
  78. data/lib/phrase/models/organization_job_template_locales_create_parameters.rb +263 -0
  79. data/lib/phrase/models/organization_job_template_update_parameters.rb +210 -0
  80. data/lib/phrase/models/project.rb +10 -1
  81. data/lib/phrase/models/project_create_parameters.rb +22 -2
  82. data/lib/phrase/models/project_details.rb +10 -1
  83. data/lib/phrase/models/project_update_parameters.rb +22 -2
  84. data/lib/phrase/models/translations_exclude_parameters.rb +1 -1
  85. data/lib/phrase/models/translations_include_parameters.rb +1 -1
  86. data/lib/phrase/models/translations_review_parameters.rb +1 -1
  87. data/lib/phrase/models/translations_search_parameters.rb +1 -1
  88. data/lib/phrase/models/translations_unverify_parameters.rb +1 -1
  89. data/lib/phrase/models/translations_verify_parameters.rb +1 -1
  90. data/lib/phrase/version.rb +1 -1
  91. data/lib/phrase.rb +13 -2
  92. data/spec/api/bitbucket_sync_api_spec.rb +2 -2
  93. data/spec/api/branches_api_spec.rb +3 -3
  94. data/spec/api/git_hub_sync_api_spec.rb +2 -2
  95. data/spec/api/git_lab_sync_api_spec.rb +2 -2
  96. data/spec/api/job_comments_api_spec.rb +3 -3
  97. data/spec/api/job_template_locales_api_spec.rb +4 -4
  98. data/spec/api/job_templates_api_spec.rb +17 -17
  99. data/spec/api/locales_api_spec.rb +4 -2
  100. data/spec/api/notification_groups_api_spec.rb +2 -2
  101. data/spec/api/notifications_api_spec.rb +2 -2
  102. data/spec/api/organization_job_template_locales_api_spec.rb +100 -0
  103. data/spec/api/organization_job_templates_api_spec.rb +95 -0
  104. data/spec/api/search_api_spec.rb +1 -1
  105. data/spec/api/translations_api_spec.rb +9 -7
  106. data/spec/api/uploads_api_spec.rb +1 -1
  107. data/spec/models/job_locale_spec.rb +6 -0
  108. data/spec/models/job_locale_update_parameters_spec.rb +12 -0
  109. data/spec/models/job_locales_create_parameters_spec.rb +12 -0
  110. data/spec/models/job_template_details1_spec.rb +41 -0
  111. data/spec/models/job_template_details_spec.rb +83 -0
  112. data/spec/models/job_template_locale_update_parameters_spec.rb +12 -0
  113. data/spec/models/job_template_locales_create_parameters_spec.rb +12 -0
  114. data/spec/models/{job_template_locale_spec.rb → job_template_locales_spec.rb} +12 -6
  115. data/spec/models/locale_team_preview_spec.rb +41 -0
  116. data/spec/models/{job_template_user_preview_spec.rb → locale_user_preview_spec.rb} +6 -6
  117. data/spec/models/organization_job_template_create_parameters_spec.rb +35 -0
  118. data/spec/models/organization_job_template_details_spec.rb +71 -0
  119. data/spec/models/organization_job_template_locale_update_parameters_spec.rb +59 -0
  120. data/spec/models/organization_job_template_locales_create_parameters_spec.rb +59 -0
  121. data/spec/models/organization_job_template_spec.rb +53 -0
  122. data/spec/models/organization_job_template_update_parameters_spec.rb +35 -0
  123. data/spec/models/project_create_parameters_spec.rb +12 -0
  124. data/spec/models/project_details_spec.rb +6 -0
  125. data/spec/models/project_spec.rb +6 -0
  126. data/spec/models/project_update_parameters_spec.rb +12 -0
  127. 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 [Object]
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 [Object]
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<Object>]
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 [Object]
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 [Object]
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 [JobTemplateLocale]
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<Object>]
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 [Object]
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 [Object]
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 &lt;a href&#x3D;\&quot;#overview--conditional-get-requests--http-caching\&quot;&gt;Conditional GET requests / HTTP Caching&lt;/a&gt; (optional)
75
+ # @option opts [String] :if_none_match ETag condition, see &lt;a href&#x3D;\&quot;#overview--conditional-get-requests--http-caching\&quot;&gt;Conditional GET requests / HTTP Caching&lt;/a&gt; (optional)
74
76
  # @option opts [String] :branch specify the branch to use
75
- # @option opts [String] :file_format File format name. See the &lt;a href&#x3D;\&quot;https://support.phrase.com/hc/en-us/articles/5784070560412\&quot;&gt;format guide&lt;/a&gt; for all supported file formats.
77
+ # @option opts [String] :file_format File format name. See the &lt;a href&#x3D;\&quot;https://support.phrase.com/hc/en-us/sections/6111343326364\&quot;&gt;format guide&lt;/a&gt; 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 \&quot;tags\&quot; 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 &lt;a href&#x3D;\&quot;https://support.phrase.com/hc/en-us/articles/5784070560412\&quot;&gt;format guide&lt;/a&gt; for a list of options available for each format. Specify format options like this: &lt;code&gt;...&amp;format_options[foo]&#x3D;bar&lt;/code&gt;
85
+ # @option opts [Object] :format_options Additional formatting and render options. See the &lt;a href&#x3D;\&quot;https://support.phrase.com/hc/en-us/sections/6111343326364\&quot;&gt;format guide&lt;/a&gt; for a list of options available for each format. Specify format options like this: &lt;code&gt;...&amp;format_options[foo]&#x3D;bar&lt;/code&gt;
84
86
  # @option opts [String] :encoding Enforces a specific encoding on the file contents. Valid options are \&quot;UTF-8\&quot;, \&quot;UTF-16\&quot; and \&quot;ISO-8859-1\&quot;.
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 &lt;code&gt;include_unverified_translations&lt;/code&gt;.
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<Object>]
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<Object>]
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<Object>]
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<Object>]
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
@@ -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 &lt;br&gt;&lt;br&gt;&lt;i&gt;Note: Search is limited to 10000 results and may not include recently updated data depending on the project sizes.&lt;/i&gt;
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
- # Revoke exclusion of a translation in export
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).&lt;br&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
174
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; &lt;i&gt;Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).&lt;/i&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
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
- # Set exclude from export flag on translations selected by query
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
- # Remove exlude from import flag from translations selected by query
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 &lt;a href&#x3D;\&quot;#overview--conditional-get-requests--http-caching\&quot;&gt;Conditional GET requests / HTTP Caching&lt;/a&gt; (optional)
217
+ # @option opts [String] :if_none_match ETag condition, see &lt;a href&#x3D;\&quot;#overview--conditional-get-requests--http-caching\&quot;&gt;Conditional GET requests / HTTP Caching&lt;/a&gt; (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).&lt;br&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
223
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; &lt;i&gt;Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).&lt;/i&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
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
- # Mark translations selected by query as unverified
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 selected by query
276
+ # Verify translations by query
275
277
  # Verify translations matching query.
276
278
  # @param project_id Project ID
277
279
  # @param translations_verify_parameters
@@ -49,7 +49,7 @@ describe 'UploadsApi' do
49
49
  end
50
50
 
51
51
  # unit tests for upload_show
52
- # View upload details
52
+ # Get a single upload
53
53
  # View details and summary for a single upload.
54
54
  # @param project_id Project ID
55
55
  # @param id ID
@@ -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