phrase 4.7.0 → 4.8.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.
@@ -18,6 +18,8 @@ module Phrase
18
18
 
19
19
  attr_accessor :review_completed_at
20
20
 
21
+ attr_accessor :annotations
22
+
21
23
  # Attribute mapping from ruby-style variable name to JSON key.
22
24
  def self.attribute_map
23
25
  {
@@ -28,7 +30,8 @@ module Phrase
28
30
  :'teams' => :'teams',
29
31
  :'completed' => :'completed',
30
32
  :'translation_completed_at' => :'translation_completed_at',
31
- :'review_completed_at' => :'review_completed_at'
33
+ :'review_completed_at' => :'review_completed_at',
34
+ :'annotations' => :'annotations'
32
35
  }
33
36
  end
34
37
 
@@ -42,7 +45,8 @@ module Phrase
42
45
  :'teams' => :'Array<LocaleTeamPreview>',
43
46
  :'completed' => :'Boolean',
44
47
  :'translation_completed_at' => :'DateTime',
45
- :'review_completed_at' => :'DateTime'
48
+ :'review_completed_at' => :'DateTime',
49
+ :'annotations' => :'Array<JobAnnotationShort>'
46
50
  }
47
51
  end
48
52
 
@@ -102,6 +106,12 @@ module Phrase
102
106
  if attributes.key?(:'review_completed_at')
103
107
  self.review_completed_at = attributes[:'review_completed_at']
104
108
  end
109
+
110
+ if attributes.key?(:'annotations')
111
+ if (value = attributes[:'annotations']).is_a?(Array)
112
+ self.annotations = value
113
+ end
114
+ end
105
115
  end
106
116
 
107
117
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -129,7 +139,8 @@ module Phrase
129
139
  teams == o.teams &&
130
140
  completed == o.completed &&
131
141
  translation_completed_at == o.translation_completed_at &&
132
- review_completed_at == o.review_completed_at
142
+ review_completed_at == o.review_completed_at &&
143
+ annotations == o.annotations
133
144
  end
134
145
 
135
146
  # @see the `==` method
@@ -141,7 +152,7 @@ module Phrase
141
152
  # Calculates hash code according to all attributes.
142
153
  # @return [Integer] Hash code
143
154
  def hash
144
- [id, job, locale, users, teams, completed, translation_completed_at, review_completed_at].hash
155
+ [id, job, locale, users, teams, completed, translation_completed_at, review_completed_at, annotations].hash
145
156
  end
146
157
 
147
158
  # Builds the object from hash
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '4.7.0'
2
+ VERSION = '4.8.0'
3
3
  end
data/lib/phrase.rb CHANGED
@@ -65,6 +65,9 @@ require 'phrase/models/invitation_create_parameters'
65
65
  require 'phrase/models/invitation_update_parameters'
66
66
  require 'phrase/models/invitation_update_settings_parameters'
67
67
  require 'phrase/models/job'
68
+ require 'phrase/models/job_annotation'
69
+ require 'phrase/models/job_annotation_short'
70
+ require 'phrase/models/job_annotation_update_parameters'
68
71
  require 'phrase/models/job_comment'
69
72
  require 'phrase/models/job_comment_create_parameters'
70
73
  require 'phrase/models/job_comment_update_parameters'
@@ -239,6 +242,7 @@ require 'phrase/api/glossary_term_translations_api'
239
242
  require 'phrase/api/glossary_terms_api'
240
243
  require 'phrase/api/icu_api'
241
244
  require 'phrase/api/invitations_api'
245
+ require 'phrase/api/job_annotations_api'
242
246
  require 'phrase/api/job_comments_api'
243
247
  require 'phrase/api/job_locales_api'
244
248
  require 'phrase/api/job_template_locales_api'
@@ -0,0 +1,120 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for Phrase::JobAnnotationsApi
5
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
+ # Please update as you see appropriate
7
+ describe 'JobAnnotationsApi' do
8
+ before do
9
+ # run before each test
10
+ @api_instance = Phrase::JobAnnotationsApi.new
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+ describe 'test an instance of JobAnnotationsApi' do
18
+ it 'should create an instance of JobAnnotationsApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::JobAnnotationsApi)
20
+ end
21
+ end
22
+
23
+ # unit tests for job_annotation_delete
24
+ # Delete a job annotation
25
+ # Delete an annotation for a job.
26
+ # @param project_id Project ID
27
+ # @param job_id Job ID
28
+ # @param id Name of the annotation to delete.
29
+ # @param [Hash] opts the optional parameters
30
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
31
+ # @option opts [String] :branch Branch to use
32
+ # @return [nil]
33
+ describe 'job_annotation_delete test' 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
+ # unit tests for job_annotation_update
40
+ # Create/Update a job annotation
41
+ # Create or update an annotation for a job. If the annotation already exists, it will be updated; otherwise, a new annotation will be created.
42
+ # @param project_id Project ID
43
+ # @param job_id Job ID
44
+ # @param id Name of the annotation to set or update.
45
+ # @param job_annotation_update_parameters
46
+ # @param [Hash] opts the optional parameters
47
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
48
+ # @return [JobAnnotation]
49
+ describe 'job_annotation_update test' do
50
+ it 'should work' do
51
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
52
+ end
53
+ end
54
+
55
+ # unit tests for job_annotations_list
56
+ # List job annotations
57
+ # Retrieve a list of annotations for a job.
58
+ # @param project_id Project ID
59
+ # @param job_id Job ID
60
+ # @param [Hash] opts the optional parameters
61
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
62
+ # @option opts [String] :branch Branch to use
63
+ # @return [Array<JobAnnotation>]
64
+ describe 'job_annotations_list test' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ # unit tests for job_locale_annotation_delete
71
+ # Delete a job locale annotation
72
+ # Delete an annotation for a job locale.
73
+ # @param project_id Project ID
74
+ # @param job_id Job ID
75
+ # @param job_locale_id Job Locale ID
76
+ # @param id Name of the annotation to delete.
77
+ # @param [Hash] opts the optional parameters
78
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
79
+ # @option opts [String] :branch Branch to use
80
+ # @return [nil]
81
+ describe 'job_locale_annotation_delete test' do
82
+ it 'should work' do
83
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
+ end
85
+ end
86
+
87
+ # unit tests for job_locale_annotation_update
88
+ # Create/Update a job locale annotation
89
+ # Create or update an annotation for a job locale. If the annotation already exists, it will be updated; otherwise, a new annotation will be created.
90
+ # @param project_id Project ID
91
+ # @param job_id Job ID
92
+ # @param job_locale_id Job Locale ID
93
+ # @param id Name of the annotation to set or update.
94
+ # @param job_annotation_update_parameters
95
+ # @param [Hash] opts the optional parameters
96
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
97
+ # @return [JobAnnotation]
98
+ describe 'job_locale_annotation_update test' do
99
+ it 'should work' do
100
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
101
+ end
102
+ end
103
+
104
+ # unit tests for job_locale_annotations_list
105
+ # List job locale annotations
106
+ # Retrieve a list of annotations for a job locale.
107
+ # @param project_id Project ID
108
+ # @param job_id Job ID
109
+ # @param job_locale_id Job Locale ID
110
+ # @param [Hash] opts the optional parameters
111
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
112
+ # @option opts [String] :branch Branch to use
113
+ # @return [Array<JobAnnotation>]
114
+ describe 'job_locale_annotations_list test' do
115
+ it 'should work' do
116
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
117
+ end
118
+ end
119
+
120
+ end
@@ -93,6 +93,7 @@ describe 'JobLocalesApi' do
93
93
  # @param [Hash] opts the optional parameters
94
94
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
95
95
  # @option opts [String] :branch Branch to use
96
+ # @option opts [Boolean] :include_annotations Include job-locale annotations in the response
96
97
  # @return [JobLocale]
97
98
  describe 'job_locale_show test' do
98
99
  it 'should work' do
@@ -141,6 +142,7 @@ describe 'JobLocalesApi' do
141
142
  # @option opts [Integer] :page Page number
142
143
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
143
144
  # @option opts [String] :branch Branch to use
145
+ # @option opts [Boolean] :include_annotations Include job-locale annotations in the response
144
146
  # @return [Array<JobLocale>]
145
147
  describe 'job_locales_list test' do
146
148
  it 'should work' do
@@ -131,7 +131,8 @@ describe 'JobsApi' do
131
131
  # @param id ID
132
132
  # @param [Hash] opts the optional parameters
133
133
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
134
- # @option opts [String] :branch specify the branch to use
134
+ # @option opts [String] :branch Branch to use
135
+ # @option opts [Boolean] :include_annotations Include job-locale annotations in the response
135
136
  # @return [JobDetails]
136
137
  describe 'job_show test' do
137
138
  it 'should work' do
@@ -0,0 +1,35 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::JobAnnotationShort
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'JobAnnotationShort' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::JobAnnotationShort.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of JobAnnotationShort' do
19
+ it 'should create an instance of JobAnnotationShort' do
20
+ expect(@instance).to be_instance_of(Phrase::JobAnnotationShort)
21
+ end
22
+ end
23
+ describe 'test attribute "name"' 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 "value"' 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,47 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::JobAnnotation
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'JobAnnotation' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::JobAnnotation.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of JobAnnotation' do
19
+ it 'should create an instance of JobAnnotation' do
20
+ expect(@instance).to be_instance_of(Phrase::JobAnnotation)
21
+ end
22
+ end
23
+ describe 'test attribute "name"' 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 "value"' 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 "created_at"' 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
+ describe 'test attribute "updated_at"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -0,0 +1,35 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::JobAnnotationUpdateParameters
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'JobAnnotationUpdateParameters' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::JobAnnotationUpdateParameters.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of JobAnnotationUpdateParameters' do
19
+ it 'should create an instance of JobAnnotationUpdateParameters' do
20
+ expect(@instance).to be_instance_of(Phrase::JobAnnotationUpdateParameters)
21
+ end
22
+ end
23
+ describe 'test attribute "value"' 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
@@ -116,4 +116,10 @@ describe 'JobDetails' do
116
116
  end
117
117
  end
118
118
 
119
+ describe 'test attribute "annotations"' do
120
+ it 'should work' do
121
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
122
+ end
123
+ end
124
+
119
125
  end
@@ -68,4 +68,10 @@ describe 'JobLocale' do
68
68
  end
69
69
  end
70
70
 
71
+ describe 'test attribute "annotations"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
71
77
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phrase
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.0
4
+ version: 4.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phrase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-18 00:00:00.000000000 Z
11
+ date: 2025-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -152,6 +152,10 @@ files:
152
152
  - docs/InvitationUpdateSettingsParameters.md
153
153
  - docs/InvitationsApi.md
154
154
  - docs/Job.md
155
+ - docs/JobAnnotation.md
156
+ - docs/JobAnnotationShort.md
157
+ - docs/JobAnnotationUpdateParameters.md
158
+ - docs/JobAnnotationsApi.md
155
159
  - docs/JobComment.md
156
160
  - docs/JobCommentCreateParameters.md
157
161
  - docs/JobCommentUpdateParameters.md
@@ -363,6 +367,7 @@ files:
363
367
  - lib/phrase/api/glossary_terms_api.rb
364
368
  - lib/phrase/api/icu_api.rb
365
369
  - lib/phrase/api/invitations_api.rb
370
+ - lib/phrase/api/job_annotations_api.rb
366
371
  - lib/phrase/api/job_comments_api.rb
367
372
  - lib/phrase/api/job_locales_api.rb
368
373
  - lib/phrase/api/job_template_locales_api.rb
@@ -460,6 +465,9 @@ files:
460
465
  - lib/phrase/models/invitation_update_parameters.rb
461
466
  - lib/phrase/models/invitation_update_settings_parameters.rb
462
467
  - lib/phrase/models/job.rb
468
+ - lib/phrase/models/job_annotation.rb
469
+ - lib/phrase/models/job_annotation_short.rb
470
+ - lib/phrase/models/job_annotation_update_parameters.rb
463
471
  - lib/phrase/models/job_comment.rb
464
472
  - lib/phrase/models/job_comment_create_parameters.rb
465
473
  - lib/phrase/models/job_comment_update_parameters.rb
@@ -635,6 +643,7 @@ files:
635
643
  - spec/api/glossary_terms_api_spec.rb
636
644
  - spec/api/icu_api_spec.rb
637
645
  - spec/api/invitations_api_spec.rb
646
+ - spec/api/job_annotations_api_spec.rb
638
647
  - spec/api/job_comments_api_spec.rb
639
648
  - spec/api/job_locales_api_spec.rb
640
649
  - spec/api/job_template_locales_api_spec.rb
@@ -730,6 +739,9 @@ files:
730
739
  - spec/models/invitation_spec.rb
731
740
  - spec/models/invitation_update_parameters_spec.rb
732
741
  - spec/models/invitation_update_settings_parameters_spec.rb
742
+ - spec/models/job_annotation_short_spec.rb
743
+ - spec/models/job_annotation_spec.rb
744
+ - spec/models/job_annotation_update_parameters_spec.rb
733
745
  - spec/models/job_comment_create_parameters_spec.rb
734
746
  - spec/models/job_comment_spec.rb
735
747
  - spec/models/job_comment_update_parameters_spec.rb
@@ -947,6 +959,7 @@ test_files:
947
959
  - spec/api/translations_api_spec.rb
948
960
  - spec/api/linked_keys_api_spec.rb
949
961
  - spec/api/screenshots_api_spec.rb
962
+ - spec/api/job_annotations_api_spec.rb
950
963
  - spec/api/teams_api_spec.rb
951
964
  - spec/api/release_triggers_api_spec.rb
952
965
  - spec/api/organization_job_templates_api_spec.rb
@@ -1130,6 +1143,7 @@ test_files:
1130
1143
  - spec/models/translation_unreview_parameters_spec.rb
1131
1144
  - spec/models/teams_spaces_create_parameters_spec.rb
1132
1145
  - spec/models/authorization_spec.rb
1146
+ - spec/models/job_annotation_spec.rb
1133
1147
  - spec/models/job_template_update_parameters_spec.rb
1134
1148
  - spec/models/member_spec.rb
1135
1149
  - spec/models/translation_order_spec.rb
@@ -1159,6 +1173,7 @@ test_files:
1159
1173
  - spec/models/project_short_spec.rb
1160
1174
  - spec/models/release_preview_spec.rb
1161
1175
  - spec/models/blacklisted_key_update_parameters_spec.rb
1176
+ - spec/models/job_annotation_short_spec.rb
1162
1177
  - spec/models/locale_preview1_spec.rb
1163
1178
  - spec/models/key_link_spec.rb
1164
1179
  - spec/models/translation_version_spec.rb
@@ -1166,6 +1181,7 @@ test_files:
1166
1181
  - spec/models/space_spec.rb
1167
1182
  - spec/models/quality_performance_score_list_request_spec.rb
1168
1183
  - spec/models/invitation_create_parameters_spec.rb
1184
+ - spec/models/job_annotation_update_parameters_spec.rb
1169
1185
  - spec/models/job_comment_create_parameters_spec.rb
1170
1186
  - spec/models/tag_with_stats_spec.rb
1171
1187
  - spec/models/organization_job_template_create_parameters_spec.rb