phrase 4.16.1 → 4.18.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 (63) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +148 -123
  3. data/README.md +8 -3
  4. data/docs/JobCreateParameters.md +3 -1
  5. data/docs/JobTemplateCreateParameters.md +3 -1
  6. data/docs/JobTemplateUpdateParameters.md +3 -1
  7. data/docs/JobUpdateParameters.md +3 -1
  8. data/docs/KeyCreateParameters.md +1 -1
  9. data/docs/KeyUpdateParameters.md +1 -1
  10. data/docs/LocaleDownloadCreateParameters.md +2 -2
  11. data/docs/LocalePreview1.md +1 -3
  12. data/docs/OrganizationJobTemplateCreateParameters.md +3 -1
  13. data/docs/OrganizationJobTemplateUpdateParameters.md +3 -1
  14. data/docs/ProjectCreateParameters.md +6 -2
  15. data/docs/ProjectDetails.md +7 -1
  16. data/docs/ProjectUpdateParameters.md +6 -2
  17. data/docs/RepoSyncExportParameters.md +19 -0
  18. data/docs/RepoSyncImportParameters.md +19 -0
  19. data/docs/RepoSyncsApi.md +8 -4
  20. data/docs/ScreenshotUpdateParameters.md +1 -1
  21. data/docs/UploadBatch.md +29 -0
  22. data/docs/UploadBatchesApi.md +72 -0
  23. data/docs/UploadBatchesCreateParameters.md +21 -0
  24. data/docs/VersionsHistoryApi.md +5 -3
  25. data/lib/phrase/api/repo_syncs_api.rb +10 -2
  26. data/lib/phrase/api/upload_batches_api.rb +84 -0
  27. data/lib/phrase/api/versions_history_api.rb +6 -3
  28. data/lib/phrase/configuration.rb +5 -1
  29. data/lib/phrase/models/job_create_parameters.rb +14 -4
  30. data/lib/phrase/models/job_template_create_parameters.rb +14 -4
  31. data/lib/phrase/models/job_template_update_parameters.rb +14 -4
  32. data/lib/phrase/models/job_update_parameters.rb +14 -4
  33. data/lib/phrase/models/locale_download_create_parameters.rb +1 -1
  34. data/lib/phrase/models/locale_preview1.rb +4 -13
  35. data/lib/phrase/models/organization_job_template_create_parameters.rb +14 -4
  36. data/lib/phrase/models/organization_job_template_update_parameters.rb +14 -4
  37. data/lib/phrase/models/project_create_parameters.rb +26 -4
  38. data/lib/phrase/models/project_details.rb +33 -4
  39. data/lib/phrase/models/project_update_parameters.rb +26 -4
  40. data/lib/phrase/models/repo_sync_export_parameters.rb +207 -0
  41. data/lib/phrase/models/repo_sync_import_parameters.rb +207 -0
  42. data/lib/phrase/models/upload_batch.rb +288 -0
  43. data/lib/phrase/models/upload_batches_create_parameters.rb +224 -0
  44. data/lib/phrase/version.rb +1 -1
  45. data/lib/phrase.rb +5 -0
  46. data/spec/api/repo_syncs_api_spec.rb +2 -0
  47. data/spec/api/upload_batches_api_spec.rb +37 -0
  48. data/spec/api/versions_history_api_spec.rb +2 -1
  49. data/spec/models/job_create_parameters_spec.rb +6 -0
  50. data/spec/models/job_template_create_parameters_spec.rb +6 -0
  51. data/spec/models/job_template_update_parameters_spec.rb +6 -0
  52. data/spec/models/job_update_parameters_spec.rb +6 -0
  53. data/spec/models/locale_preview1_spec.rb +0 -6
  54. data/spec/models/organization_job_template_create_parameters_spec.rb +6 -0
  55. data/spec/models/organization_job_template_update_parameters_spec.rb +6 -0
  56. data/spec/models/project_create_parameters_spec.rb +12 -0
  57. data/spec/models/project_details_spec.rb +18 -0
  58. data/spec/models/project_update_parameters_spec.rb +12 -0
  59. data/spec/models/repo_sync_export_parameters_spec.rb +35 -0
  60. data/spec/models/repo_sync_import_parameters_spec.rb +35 -0
  61. data/spec/models/upload_batch_spec.rb +69 -0
  62. data/spec/models/upload_batches_create_parameters_spec.rb +41 -0
  63. metadata +258 -238
@@ -158,4 +158,16 @@ describe 'ProjectCreateParameters' do
158
158
  end
159
159
  end
160
160
 
161
+ describe 'test attribute "autotranslate_overwrite_unverified_translations"' do
162
+ it 'should work' do
163
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
164
+ end
165
+ end
166
+
167
+ describe 'test attribute "placeholder_styles"' do
168
+ it 'should work' do
169
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
170
+ end
171
+ end
172
+
161
173
  end
@@ -176,4 +176,22 @@ describe 'ProjectDetails' do
176
176
  end
177
177
  end
178
178
 
179
+ describe 'test attribute "cldr_version"' do
180
+ it 'should work' do
181
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
182
+ end
183
+ end
184
+
185
+ describe 'test attribute "job_locking_enabled"' do
186
+ it 'should work' do
187
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
188
+ end
189
+ end
190
+
191
+ describe 'test attribute "placeholder_styles"' do
192
+ it 'should work' do
193
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
194
+ end
195
+ end
196
+
179
197
  end
@@ -152,6 +152,12 @@ describe 'ProjectUpdateParameters' do
152
152
  end
153
153
  end
154
154
 
155
+ describe 'test attribute "autotranslate_overwrite_unverified_translations"' do
156
+ it 'should work' do
157
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
158
+ end
159
+ end
160
+
155
161
  describe 'test attribute "default_encoding"' do
156
162
  it 'should work' do
157
163
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -162,4 +168,10 @@ describe 'ProjectUpdateParameters' do
162
168
  end
163
169
  end
164
170
 
171
+ describe 'test attribute "placeholder_styles"' do
172
+ it 'should work' do
173
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
174
+ end
175
+ end
176
+
165
177
  end
@@ -0,0 +1,35 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::RepoSyncExportParameters
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'RepoSyncExportParameters' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::RepoSyncExportParameters.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of RepoSyncExportParameters' do
19
+ it 'should create an instance of RepoSyncExportParameters' do
20
+ expect(@instance).to be_instance_of(Phrase::RepoSyncExportParameters)
21
+ end
22
+ end
23
+ describe 'test attribute "pr_branch"' 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 "branch"' 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
+ end
@@ -0,0 +1,35 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::RepoSyncImportParameters
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'RepoSyncImportParameters' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::RepoSyncImportParameters.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of RepoSyncImportParameters' do
19
+ it 'should create an instance of RepoSyncImportParameters' do
20
+ expect(@instance).to be_instance_of(Phrase::RepoSyncImportParameters)
21
+ end
22
+ end
23
+ describe 'test attribute "repository_branch"' 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 "branch"' 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
+ end
@@ -0,0 +1,69 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::UploadBatch
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'UploadBatch' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::UploadBatch.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of UploadBatch' do
19
+ it 'should create an instance of UploadBatch' do
20
+ expect(@instance).to be_instance_of(Phrase::UploadBatch)
21
+ end
22
+ end
23
+ describe 'test attribute "state"' do
24
+ it 'should work' do
25
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["started", "done"])
27
+ # validator.allowable_values.each do |value|
28
+ # expect { @instance.state = value }.not_to raise_error
29
+ # end
30
+ end
31
+ end
32
+
33
+ describe 'test attribute "delete_unmentioned_keys"' do
34
+ it 'should work' do
35
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
36
+ end
37
+ end
38
+
39
+ describe 'test attribute "created_at"' do
40
+ it 'should work' do
41
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
+ end
43
+ end
44
+
45
+ describe 'test attribute "updated_at"' 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
+ describe 'test attribute "project"' do
52
+ it 'should work' do
53
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
+ end
55
+ end
56
+
57
+ describe 'test attribute "user"' do
58
+ it 'should work' do
59
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
60
+ end
61
+ end
62
+
63
+ describe 'test attribute "uploads"' 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
+ end
@@ -0,0 +1,41 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::UploadBatchesCreateParameters
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'UploadBatchesCreateParameters' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::UploadBatchesCreateParameters.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of UploadBatchesCreateParameters' do
19
+ it 'should create an instance of UploadBatchesCreateParameters' do
20
+ expect(@instance).to be_instance_of(Phrase::UploadBatchesCreateParameters)
21
+ end
22
+ end
23
+ describe 'test attribute "branch"' 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 "delete_unmentioned_keys"' 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 "upload_ids"' 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