phrase 1.0.12 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +56 -9
  3. data/docs/Account.md +3 -1
  4. data/docs/AccountDetails.md +5 -1
  5. data/docs/AccountDetails1.md +3 -1
  6. data/docs/AccountSearchResult.md +29 -0
  7. data/docs/Branch.md +5 -1
  8. data/docs/Comment.md +3 -1
  9. data/docs/CurrentUser.md +31 -0
  10. data/docs/JobLocale.md +5 -1
  11. data/docs/JobTemplate.md +29 -0
  12. data/docs/JobTemplateCreateParameters.md +21 -0
  13. data/docs/JobTemplateLocale.md +23 -0
  14. data/docs/JobTemplateLocaleUpdateParameters.md +23 -0
  15. data/docs/JobTemplateLocalesApi.md +347 -0
  16. data/docs/JobTemplateLocalesCreateParameters.md +23 -0
  17. data/docs/JobTemplatePreview.md +19 -0
  18. data/docs/JobTemplateUpdateParameters.md +21 -0
  19. data/docs/JobTemplateUserPreview.md +23 -0
  20. data/docs/JobTemplatesApi.md +337 -0
  21. data/docs/KeysApi.md +137 -9
  22. data/docs/KeysExcludeParameters.md +23 -0
  23. data/docs/KeysIncludeParameters.md +23 -0
  24. data/docs/KeysSearchParameters.md +1 -1
  25. data/docs/KeysTagParameters.md +1 -1
  26. data/docs/KeysUntagParameters.md +1 -1
  27. data/docs/LocalePreview1.md +23 -0
  28. data/docs/LocalesApi.md +73 -6
  29. data/docs/MemberSpaces.md +2 -2
  30. data/docs/MemberUpdateParameters.md +4 -2
  31. data/docs/Notification.md +41 -0
  32. data/docs/NotificationGroup.md +23 -0
  33. data/docs/NotificationGroupDetail.md +27 -0
  34. data/docs/NotificationGroupsApi.md +194 -0
  35. data/docs/NotificationsApi.md +194 -0
  36. data/docs/OrderCreateParameters.md +2 -0
  37. data/docs/Project.md +2 -0
  38. data/docs/ProjectCreateParameters.md +35 -1
  39. data/docs/ProjectDetails.md +2 -0
  40. data/docs/ProjectUpdateParameters.md +43 -9
  41. data/docs/ProjectsApi.md +7 -1
  42. data/docs/ScreenshotCreateParameters.md +3 -1
  43. data/docs/ScreenshotMarkerCreateParameters.md +3 -1
  44. data/docs/ScreenshotMarkerUpdateParameters.md +3 -1
  45. data/docs/ScreenshotMarkersApi.md +9 -3
  46. data/docs/ScreenshotUpdateParameters.md +3 -1
  47. data/docs/ScreenshotsApi.md +8 -2
  48. data/docs/SearchApi.md +72 -0
  49. data/docs/SearchInAccountParameters.md +23 -0
  50. data/docs/Space1.md +25 -0
  51. data/docs/Subscription.md +19 -0
  52. data/docs/TranslationOrder.md +2 -0
  53. data/docs/TranslationsApi.md +25 -25
  54. data/docs/User.md +0 -2
  55. data/docs/UsersApi.md +2 -2
  56. data/docs/Variable.md +23 -0
  57. data/docs/VariableCreateParameters.md +19 -0
  58. data/docs/VariableUpdateParameters.md +19 -0
  59. data/docs/VariablesApi.md +331 -0
  60. data/lib/phrase.rb +28 -0
  61. data/lib/phrase/api/job_template_locales_api.rb +417 -0
  62. data/lib/phrase/api/job_templates_api.rb +387 -0
  63. data/lib/phrase/api/keys_api.rb +158 -10
  64. data/lib/phrase/api/locales_api.rb +76 -5
  65. data/lib/phrase/api/notification_groups_api.rb +202 -0
  66. data/lib/phrase/api/notifications_api.rb +202 -0
  67. data/lib/phrase/api/projects_api.rb +9 -0
  68. data/lib/phrase/api/screenshot_markers_api.rb +9 -0
  69. data/lib/phrase/api/screenshots_api.rb +9 -0
  70. data/lib/phrase/api/search_api.rb +84 -0
  71. data/lib/phrase/api/translations_api.rb +35 -35
  72. data/lib/phrase/api/users_api.rb +3 -3
  73. data/lib/phrase/api/variables_api.rb +378 -0
  74. data/lib/phrase/models/account.rb +13 -4
  75. data/lib/phrase/models/account_details.rb +22 -4
  76. data/lib/phrase/models/account_details1.rb +10 -1
  77. data/lib/phrase/models/account_search_result.rb +250 -0
  78. data/lib/phrase/models/branch.rb +19 -1
  79. data/lib/phrase/models/comment.rb +15 -4
  80. data/lib/phrase/models/current_user.rb +257 -0
  81. data/lib/phrase/models/job_locale.rb +22 -4
  82. data/lib/phrase/models/job_template.rb +248 -0
  83. data/lib/phrase/models/job_template_create_parameters.rb +220 -0
  84. data/lib/phrase/models/job_template_locale.rb +223 -0
  85. data/lib/phrase/models/job_template_locale_update_parameters.rb +234 -0
  86. data/lib/phrase/models/job_template_locales_create_parameters.rb +234 -0
  87. data/lib/phrase/models/job_template_preview.rb +203 -0
  88. data/lib/phrase/models/job_template_update_parameters.rb +220 -0
  89. data/lib/phrase/models/job_template_user_preview.rb +221 -0
  90. data/lib/phrase/models/keys_exclude_parameters.rb +225 -0
  91. data/lib/phrase/models/keys_include_parameters.rb +225 -0
  92. data/lib/phrase/models/keys_search_parameters.rb +1 -1
  93. data/lib/phrase/models/keys_tag_parameters.rb +1 -1
  94. data/lib/phrase/models/keys_untag_parameters.rb +1 -1
  95. data/lib/phrase/models/locale_preview1.rb +221 -0
  96. data/lib/phrase/models/member_spaces.rb +2 -2
  97. data/lib/phrase/models/member_update_parameters.rb +12 -2
  98. data/lib/phrase/models/notification.rb +302 -0
  99. data/lib/phrase/models/notification_group.rb +221 -0
  100. data/lib/phrase/models/notification_group_detail.rb +239 -0
  101. data/lib/phrase/models/order_create_parameters.rb +11 -1
  102. data/lib/phrase/models/project.rb +10 -1
  103. data/lib/phrase/models/project_create_parameters.rb +174 -4
  104. data/lib/phrase/models/project_details.rb +10 -1
  105. data/lib/phrase/models/project_update_parameters.rb +183 -13
  106. data/lib/phrase/models/screenshot_create_parameters.rb +11 -1
  107. data/lib/phrase/models/screenshot_marker_create_parameters.rb +11 -1
  108. data/lib/phrase/models/screenshot_marker_update_parameters.rb +11 -1
  109. data/lib/phrase/models/screenshot_update_parameters.rb +11 -1
  110. data/lib/phrase/models/search_in_account_parameters.rb +225 -0
  111. data/lib/phrase/models/space1.rb +230 -0
  112. data/lib/phrase/models/subscription.rb +203 -0
  113. data/lib/phrase/models/translation_order.rb +10 -1
  114. data/lib/phrase/models/user.rb +1 -10
  115. data/lib/phrase/models/variable.rb +221 -0
  116. data/lib/phrase/models/variable_create_parameters.rb +205 -0
  117. data/lib/phrase/models/variable_update_parameters.rb +205 -0
  118. data/lib/phrase/version.rb +1 -1
  119. data/spec/api/job_template_locales_api_spec.rb +103 -0
  120. data/spec/api/job_templates_api_spec.rb +98 -0
  121. data/spec/api/keys_api_spec.rb +32 -4
  122. data/spec/api/locales_api_spec.rb +17 -2
  123. data/spec/api/notification_groups_api_spec.rb +62 -0
  124. data/spec/api/notifications_api_spec.rb +62 -0
  125. data/spec/api/projects_api_spec.rb +3 -0
  126. data/spec/api/screenshot_markers_api_spec.rb +3 -0
  127. data/spec/api/screenshots_api_spec.rb +3 -0
  128. data/spec/api/search_api_spec.rb +37 -0
  129. data/spec/api/translations_api_spec.rb +10 -10
  130. data/spec/api/users_api_spec.rb +1 -1
  131. data/spec/api/variables_api_spec.rb +95 -0
  132. data/spec/models/account_details1_spec.rb +6 -0
  133. data/spec/models/account_details_spec.rb +12 -0
  134. data/spec/models/account_search_result_spec.rb +65 -0
  135. data/spec/models/account_spec.rb +6 -0
  136. data/spec/models/branch_spec.rb +12 -0
  137. data/spec/models/comment_spec.rb +6 -0
  138. data/spec/models/current_user_spec.rb +71 -0
  139. data/spec/models/job_locale_spec.rb +12 -0
  140. data/spec/models/job_template_create_parameters_spec.rb +41 -0
  141. data/spec/models/job_template_locale_spec.rb +47 -0
  142. data/spec/models/job_template_locale_update_parameters_spec.rb +47 -0
  143. data/spec/models/job_template_locales_create_parameters_spec.rb +47 -0
  144. data/spec/models/job_template_preview_spec.rb +35 -0
  145. data/spec/models/job_template_spec.rb +65 -0
  146. data/spec/models/job_template_update_parameters_spec.rb +41 -0
  147. data/spec/models/job_template_user_preview_spec.rb +47 -0
  148. data/spec/models/keys_exclude_parameters_spec.rb +47 -0
  149. data/spec/models/keys_include_parameters_spec.rb +47 -0
  150. data/spec/models/locale_preview1_spec.rb +47 -0
  151. data/spec/models/member_update_parameters_spec.rb +6 -0
  152. data/spec/models/notification_group_detail_spec.rb +59 -0
  153. data/spec/models/notification_group_spec.rb +47 -0
  154. data/spec/models/notification_spec.rb +101 -0
  155. data/spec/models/order_create_parameters_spec.rb +6 -0
  156. data/spec/models/project_create_parameters_spec.rb +102 -0
  157. data/spec/models/project_details_spec.rb +6 -0
  158. data/spec/models/project_spec.rb +6 -0
  159. data/spec/models/project_update_parameters_spec.rb +103 -1
  160. data/spec/models/screenshot_create_parameters_spec.rb +6 -0
  161. data/spec/models/screenshot_marker_create_parameters_spec.rb +6 -0
  162. data/spec/models/screenshot_marker_update_parameters_spec.rb +6 -0
  163. data/spec/models/screenshot_update_parameters_spec.rb +6 -0
  164. data/spec/models/search_in_account_parameters_spec.rb +47 -0
  165. data/spec/models/space1_spec.rb +53 -0
  166. data/spec/models/subscription_spec.rb +35 -0
  167. data/spec/models/translation_order_spec.rb +6 -0
  168. data/spec/models/user_spec.rb +0 -6
  169. data/spec/models/variable_create_parameters_spec.rb +35 -0
  170. data/spec/models/variable_spec.rb +47 -0
  171. data/spec/models/variable_update_parameters_spec.rb +35 -0
  172. metadata +281 -169
@@ -0,0 +1,98 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for Phrase::JobTemplatesApi
5
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
+ # Please update as you see appropriate
7
+ describe 'JobTemplatesApi' do
8
+ before do
9
+ # run before each test
10
+ @api_instance = Phrase::JobTemplatesApi.new
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+ describe 'test an instance of JobTemplatesApi' do
18
+ it 'should create an instance of JobTemplatesApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::JobTemplatesApi)
20
+ end
21
+ end
22
+
23
+ # unit tests for job_template_create
24
+ # Create a job template
25
+ # Create a new job template.
26
+ # @param project_id Project ID
27
+ # @param 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 [Object]
31
+ describe '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 job_template_delete
38
+ # Delete a job template
39
+ # Delete an existing job template.
40
+ # @param project_id Project 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
+ # @option opts [String] :branch specify the branch to use
45
+ # @return [nil]
46
+ describe 'job_template_delete test' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
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
+ # unit tests for job_template_update
68
+ # Update a job template
69
+ # Update an existing job template.
70
+ # @param project_id Project ID
71
+ # @param id ID
72
+ # @param job_template_update_parameters
73
+ # @param [Hash] opts the optional parameters
74
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
75
+ # @return [Object]
76
+ describe 'job_template_update test' do
77
+ it 'should work' do
78
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
+ end
80
+ end
81
+
82
+ # unit tests for job_templates_list
83
+ # List job templates
84
+ # List all job templates for the given project.
85
+ # @param project_id Project ID
86
+ # @param [Hash] opts the optional parameters
87
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
88
+ # @option opts [Integer] :page Page number
89
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
90
+ # @option opts [String] :branch specify the branch to use
91
+ # @return [Array<JobTemplate>]
92
+ describe 'job_templates_list 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
+ end
@@ -79,17 +79,45 @@ describe 'KeysApi' do
79
79
  end
80
80
  end
81
81
 
82
- # unit tests for keys_delete
82
+ # unit tests for keys_delete_collection
83
83
  # Delete collection of keys
84
84
  # Delete all keys matching query. Same constraints as list. Please limit the number of affected keys to about 1,000 as you might experience timeouts otherwise.
85
85
  # @param project_id Project ID
86
86
  # @param [Hash] opts the optional parameters
87
87
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
88
88
  # @option opts [String] :branch specify the branch to use
89
- # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are also supported in the search term:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;ids:key_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;name:key_name&lt;/code&gt; for text queries on exact key names - whitespaces need to be prefixed with a backspace (\\\&quot;\\\\\\\&quot;)&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:tag_name&lt;/code&gt; to filter for keys with certain tags&lt;/li&gt; &lt;li&gt;&lt;code&gt;translated:{true|false}&lt;/code&gt; for translation status (also requires &lt;code&gt;locale_id&lt;/code&gt; to be specified)&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;li&gt;&lt;code&gt;unmentioned_in_upload:upload_id&lt;/code&gt; to filter keys unmentioned within upload&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
89
+ # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are also supported in the search term:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;ids:key_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;name:key_name&lt;/code&gt; for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:tag_name&lt;/code&gt; to filter for keys with certain tags&lt;/li&gt; &lt;li&gt;&lt;code&gt;translated:{true|false}&lt;/code&gt; for translation status (also requires &lt;code&gt;locale_id&lt;/code&gt; to be specified)&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;li&gt;&lt;code&gt;unmentioned_in_upload:upload_id&lt;/code&gt; to filter keys unmentioned within upload&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
90
90
  # @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
91
91
  # @return [AffectedResources]
92
- describe 'keys_delete test' do
92
+ describe 'keys_delete_collection 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
+ # unit tests for keys_exclude
99
+ # Exclude a locale on a collection of keys
100
+ # Exclude a locale on keys matching query. Same constraints as list.
101
+ # @param project_id Project ID
102
+ # @param keys_exclude_parameters
103
+ # @param [Hash] opts the optional parameters
104
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
105
+ # @return [AffectedResources]
106
+ describe 'keys_exclude test' do
107
+ it 'should work' do
108
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
109
+ end
110
+ end
111
+
112
+ # unit tests for keys_include
113
+ # Include a locale on a collection of keys
114
+ # Include a locale on keys matching query. Same constraints as list.
115
+ # @param project_id Project ID
116
+ # @param keys_include_parameters
117
+ # @param [Hash] opts the optional parameters
118
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
119
+ # @return [AffectedResources]
120
+ describe 'keys_include test' do
93
121
  it 'should work' do
94
122
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
95
123
  end
@@ -106,7 +134,7 @@ describe 'KeysApi' do
106
134
  # @option opts [String] :branch specify the branch to use
107
135
  # @option opts [String] :sort Sort by field. Can be one of: name, created_at, updated_at.
108
136
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
109
- # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are also supported in the search term:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;ids:key_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;name:key_name&lt;/code&gt; for text queries on exact key names - whitespaces need to be prefixed with a backspace (\\\&quot;\\\\\\\&quot;)&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:tag_name&lt;/code&gt; to filter for keys with certain tags&lt;/li&gt; &lt;li&gt;&lt;code&gt;translated:{true|false}&lt;/code&gt; for translation status (also requires &lt;code&gt;locale_id&lt;/code&gt; to be specified)&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;li&gt;&lt;code&gt;unmentioned_in_upload:upload_id&lt;/code&gt; to filter keys unmentioned within upload&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
137
+ # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are also supported in the search term:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;ids:key_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;name:key_name&lt;/code&gt; for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:tag_name&lt;/code&gt; to filter for keys with certain tags&lt;/li&gt; &lt;li&gt;&lt;code&gt;translated:{true|false}&lt;/code&gt; for translation status (also requires &lt;code&gt;locale_id&lt;/code&gt; to be specified)&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;li&gt;&lt;code&gt;unmentioned_in_upload:upload_id&lt;/code&gt; to filter keys unmentioned within upload&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
110
138
  # @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
111
139
  # @return [Array<TranslationKey>]
112
140
  describe 'keys_list test' do
@@ -20,6 +20,20 @@ describe 'LocalesApi' do
20
20
  end
21
21
  end
22
22
 
23
+ # unit tests for account_locales
24
+ # List locales used in account
25
+ # List all locales unique by locale code used across all projects within an account.
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
28
+ # @option opts [Integer] :page Page number
29
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
30
+ # @return [Array<LocalePreview1>]
31
+ describe 'account_locales 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
+
23
37
  # unit tests for locale_create
24
38
  # Create a locale
25
39
  # Create a new locale.
@@ -57,7 +71,7 @@ describe 'LocalesApi' do
57
71
  # @param [Hash] opts the optional parameters
58
72
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
59
73
  # @option opts [String] :branch specify the branch to use
60
- # @option opts [String] :file_format File format name. See the format guide for all supported file formats.
74
+ # @option opts [String] :file_format File format name. See the &lt;a href&#x3D;\&quot;https://help.phrase.com/help/supported-platforms-and-formats\&quot;&gt;format guide&lt;/a&gt; for all supported file formats.
61
75
  # @option opts [String] :tags Limit results to keys tagged with a list of comma separated tag names.
62
76
  # @option opts [String] :tag Limit download to tagged keys. This parameter is deprecated. Please use the \&quot;tags\&quot; parameter instead
63
77
  # @option opts [Boolean] :include_empty_translations Indicates whether keys without translations should be included in the output as well.
@@ -71,7 +85,7 @@ describe 'LocalesApi' do
71
85
  # @option opts [Boolean] :include_unverified_translations if set to false unverified translations are excluded
72
86
  # @option opts [Boolean] :use_last_reviewed_version If set to true the last reviewed version of a translation is used. This is only available if the review workflow (currently in beta) is enabled for the project.
73
87
  # @option opts [String] :fallback_locale_id If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the public ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to &lt;code&gt;true&lt;/code&gt;.
74
- # @return [nil]
88
+ # @return [File]
75
89
  describe 'locale_download test' do
76
90
  it 'should work' do
77
91
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -116,6 +130,7 @@ describe 'LocalesApi' do
116
130
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
117
131
  # @option opts [Integer] :page Page number
118
132
  # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
133
+ # @option opts [String] :sort_by Sort locales. Valid options are \&quot;name_asc\&quot;, \&quot;name_desc\&quot;, \&quot;default_asc\&quot;, \&quot;default_desc\&quot;.
119
134
  # @option opts [String] :branch specify the branch to use
120
135
  # @return [Array<Locale>]
121
136
  describe 'locales_list test' do
@@ -0,0 +1,62 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for Phrase::NotificationGroupsApi
5
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
+ # Please update as you see appropriate
7
+ describe 'NotificationGroupsApi' do
8
+ before do
9
+ # run before each test
10
+ @api_instance = Phrase::NotificationGroupsApi.new
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+ describe 'test an instance of NotificationGroupsApi' do
18
+ it 'should create an instance of NotificationGroupsApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::NotificationGroupsApi)
20
+ end
21
+ end
22
+
23
+ # unit tests for notification_groups_list
24
+ # List notification groups
25
+ # List all notification groups from the current user
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
28
+ # @option opts [Integer] :page Page number
29
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
30
+ # @return [Array<Object>]
31
+ describe 'notification_groups_list 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 notification_groups_mark_all_as_read
38
+ # Mark all notification groups as read
39
+ # Mark all notification groups of the current user as read
40
+ # @param [Hash] opts the optional parameters
41
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
42
+ # @return [Array<Object>]
43
+ describe 'notification_groups_mark_all_as_read test' do
44
+ it 'should work' do
45
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
46
+ end
47
+ end
48
+
49
+ # unit tests for notification_groups_mark_as_read
50
+ # Mark a notification group as read
51
+ # Mark a notifications group of the current user as read
52
+ # @param id ID
53
+ # @param [Hash] opts the optional parameters
54
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
55
+ # @return [NotificationGroupDetail]
56
+ describe 'notification_groups_mark_as_read test' do
57
+ it 'should work' do
58
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
+ end
60
+ end
61
+
62
+ end
@@ -0,0 +1,62 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for Phrase::NotificationsApi
5
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
+ # Please update as you see appropriate
7
+ describe 'NotificationsApi' do
8
+ before do
9
+ # run before each test
10
+ @api_instance = Phrase::NotificationsApi.new
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+ describe 'test an instance of NotificationsApi' do
18
+ it 'should create an instance of NotificationsApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::NotificationsApi)
20
+ end
21
+ end
22
+
23
+ # unit tests for notifications_list
24
+ # List notifications
25
+ # List all notifications from the current user
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
28
+ # @option opts [Integer] :page Page number
29
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
30
+ # @return [Array<Object>]
31
+ describe 'notifications_list 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 notifications_mark_all_as_read
38
+ # Mark all notifications as read
39
+ # Mark all notifications of the current user as read
40
+ # @param [Hash] opts the optional parameters
41
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
42
+ # @return [Array<Object>]
43
+ describe 'notifications_mark_all_as_read test' do
44
+ it 'should work' do
45
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
46
+ end
47
+ end
48
+
49
+ # unit tests for notifications_show
50
+ # Get a single notification
51
+ # Get details on a single notification.
52
+ # @param id ID
53
+ # @param [Hash] opts the optional parameters
54
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
55
+ # @return [Notification]
56
+ describe 'notifications_show test' do
57
+ it 'should work' do
58
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
+ end
60
+ end
61
+
62
+ end
@@ -80,6 +80,9 @@ describe 'ProjectsApi' do
80
80
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
81
81
  # @option opts [Integer] :page Page number
82
82
  # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
83
+ # @option opts [String] :account_id Filter by Account ID
84
+ # @option opts [String] :sort_by Sort projects. Valid options are \&quot;name_asc\&quot;, \&quot;name_desc\&quot;, \&quot;updated_at_asc\&quot;, \&quot;updated_at_desc\&quot;, \&quot;space_asc\&quot; and \&quot;space_desc\&quot;.
85
+ # @option opts [Array<String>] :filters Filter projects. Valid options are [\&quot;favorites\&quot;].
83
86
  # @return [Array<Project>]
84
87
  describe 'projects_list test' do
85
88
  it 'should work' do
@@ -42,6 +42,7 @@ describe 'ScreenshotMarkersApi' do
42
42
  # @param screenshot_id Screenshot ID
43
43
  # @param [Hash] opts the optional parameters
44
44
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
45
+ # @option opts [String] :branch specify the branch to use
45
46
  # @return [nil]
46
47
  describe 'screenshot_marker_delete test' do
47
48
  it 'should work' do
@@ -57,6 +58,7 @@ describe 'ScreenshotMarkersApi' do
57
58
  # @param id ID
58
59
  # @param [Hash] opts the optional parameters
59
60
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
61
+ # @option opts [String] :branch specify the branch to use
60
62
  # @return [ScreenshotMarker]
61
63
  describe 'screenshot_marker_show test' do
62
64
  it 'should work' do
@@ -88,6 +90,7 @@ describe 'ScreenshotMarkersApi' do
88
90
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
89
91
  # @option opts [Integer] :page Page number
90
92
  # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
93
+ # @option opts [String] :branch specify the branch to use
91
94
  # @return [Array<ScreenshotMarker>]
92
95
  describe 'screenshot_markers_list test' do
93
96
  it 'should work' do
@@ -41,6 +41,7 @@ describe 'ScreenshotsApi' do
41
41
  # @param id ID
42
42
  # @param [Hash] opts the optional parameters
43
43
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
44
+ # @option opts [String] :branch specify the branch to use
44
45
  # @return [nil]
45
46
  describe 'screenshot_delete test' do
46
47
  it 'should work' do
@@ -55,6 +56,7 @@ describe 'ScreenshotsApi' do
55
56
  # @param id ID
56
57
  # @param [Hash] opts the optional parameters
57
58
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
59
+ # @option opts [String] :branch specify the branch to use
58
60
  # @return [Screenshot]
59
61
  describe 'screenshot_show test' do
60
62
  it 'should work' do
@@ -85,6 +87,7 @@ describe 'ScreenshotsApi' do
85
87
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
86
88
  # @option opts [Integer] :page Page number
87
89
  # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
90
+ # @option opts [String] :branch specify the branch to use
88
91
  # @option opts [String] :key_id filter by key
89
92
  # @return [Array<Screenshot>]
90
93
  describe 'screenshots_list test' do
@@ -0,0 +1,37 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for Phrase::SearchApi
5
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
+ # Please update as you see appropriate
7
+ describe 'SearchApi' do
8
+ before do
9
+ # run before each test
10
+ @api_instance = Phrase::SearchApi.new
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+ describe 'test an instance of SearchApi' do
18
+ it 'should create an instance of SearchApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::SearchApi)
20
+ end
21
+ end
22
+
23
+ # unit tests for search_in_account
24
+ # Search across projects
25
+ # Search for keys and translations in all account projects
26
+ # @param account_id Account ID
27
+ # @param search_in_account_parameters
28
+ # @param [Hash] opts the optional parameters
29
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
+ # @return [AccountSearchResult]
31
+ describe 'search_in_account 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
+ end
@@ -179,7 +179,7 @@ describe 'TranslationsApi' do
179
179
  end
180
180
  end
181
181
 
182
- # unit tests for translations_exclude
182
+ # unit tests for translations_exclude_collection
183
183
  # Set exclude from export flag on translations selected by query
184
184
  # Exclude translations matching query from locale export.
185
185
  # @param project_id Project ID
@@ -187,13 +187,13 @@ describe 'TranslationsApi' do
187
187
  # @param [Hash] opts the optional parameters
188
188
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
189
189
  # @return [AffectedCount]
190
- describe 'translations_exclude test' do
190
+ describe 'translations_exclude_collection test' do
191
191
  it 'should work' do
192
192
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
193
193
  end
194
194
  end
195
195
 
196
- # unit tests for translations_include
196
+ # unit tests for translations_include_collection
197
197
  # Remove exlude from import flag from translations selected by query
198
198
  # Include translations matching query in locale export.
199
199
  # @param project_id Project ID
@@ -201,7 +201,7 @@ describe 'TranslationsApi' do
201
201
  # @param [Hash] opts the optional parameters
202
202
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
203
203
  # @return [AffectedCount]
204
- describe 'translations_include test' do
204
+ describe 'translations_include_collection test' do
205
205
  it 'should work' do
206
206
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
207
207
  end
@@ -226,7 +226,7 @@ describe 'TranslationsApi' do
226
226
  end
227
227
  end
228
228
 
229
- # unit tests for translations_review
229
+ # unit tests for translations_review_collection
230
230
  # Review translations selected by query
231
231
  # Review translations matching query.
232
232
  # @param project_id Project ID
@@ -234,7 +234,7 @@ describe 'TranslationsApi' do
234
234
  # @param [Hash] opts the optional parameters
235
235
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
236
236
  # @return [AffectedCount]
237
- describe 'translations_review test' do
237
+ describe 'translations_review_collection test' do
238
238
  it 'should work' do
239
239
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
240
240
  end
@@ -256,7 +256,7 @@ describe 'TranslationsApi' do
256
256
  end
257
257
  end
258
258
 
259
- # unit tests for translations_unverify
259
+ # unit tests for translations_unverify_collection
260
260
  # Mark translations selected by query as unverified
261
261
  # Mark translations matching query as unverified.
262
262
  # @param project_id Project ID
@@ -264,13 +264,13 @@ describe 'TranslationsApi' do
264
264
  # @param [Hash] opts the optional parameters
265
265
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
266
266
  # @return [AffectedCount]
267
- describe 'translations_unverify test' do
267
+ describe 'translations_unverify_collection test' do
268
268
  it 'should work' do
269
269
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
270
270
  end
271
271
  end
272
272
 
273
- # unit tests for translations_verify
273
+ # unit tests for translations_verify_collection
274
274
  # Verify translations selected by query
275
275
  # Verify translations matching query.
276
276
  # @param project_id Project ID
@@ -278,7 +278,7 @@ describe 'TranslationsApi' do
278
278
  # @param [Hash] opts the optional parameters
279
279
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
280
280
  # @return [AffectedCount]
281
- describe 'translations_verify test' do
281
+ describe 'translations_verify_collection test' do
282
282
  it 'should work' do
283
283
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
284
284
  end