phrase 2.20.0 → 2.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +16 -5
- data/docs/CustomMetadataApi.md +353 -0
- data/docs/CustomMetadataDataType.md +16 -0
- data/docs/CustomMetadataProperty.md +33 -0
- data/docs/CustomMetadataPropertyCreate422Response.md +19 -0
- data/docs/{InvitationCreate422ResponseErrorsInner.md → CustomMetadataPropertyCreate422ResponseErrorsInner.md} +2 -2
- data/docs/KeyCreateParameters.md +4 -2
- data/docs/KeyUpdateParameters.md +4 -2
- data/docs/KeysApi.md +2 -2
- data/docs/KeysSearchParameters.md +1 -1
- data/docs/LocaleReport.md +43 -0
- data/docs/LocalesApi.md +3 -1
- data/docs/ProjectCreateParameters.md +1 -1
- data/docs/ProjectReport.md +31 -0
- data/docs/ProjectUpdateParameters.md +1 -1
- data/docs/ReportsApi.md +144 -0
- data/docs/ScreenshotUpdateParameters.md +1 -1
- data/docs/TranslationKeyDetails.md +3 -1
- data/docs/Upload.md +2 -0
- data/lib/phrase/api/custom_metadata_api.rb +409 -0
- data/lib/phrase/api/keys_api.rb +2 -2
- data/lib/phrase/api/locales_api.rb +3 -0
- data/lib/phrase/api/reports_api.rb +160 -0
- data/lib/phrase/models/custom_metadata_data_type.rb +30 -0
- data/lib/phrase/models/custom_metadata_property.rb +294 -0
- data/lib/phrase/models/{invitation_create422_response.rb → custom_metadata_property_create422_response.rb} +4 -4
- data/lib/phrase/models/{invitation_create422_response_errors_inner.rb → custom_metadata_property_create422_response_errors_inner.rb} +3 -3
- data/lib/phrase/models/key_create_parameters.rb +14 -4
- data/lib/phrase/models/key_update_parameters.rb +14 -4
- data/lib/phrase/models/keys_search_parameters.rb +1 -1
- data/lib/phrase/models/locale_report.rb +313 -0
- data/lib/phrase/models/project_report.rb +259 -0
- data/lib/phrase/models/translation_key_details.rb +15 -4
- data/lib/phrase/models/upload.rb +11 -1
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +8 -2
- data/spec/api/custom_metadata_api_spec.rb +106 -0
- data/spec/api/keys_api_spec.rb +1 -1
- data/spec/api/reports_api_spec.rb +55 -0
- data/spec/models/custom_metadata_data_type_spec.rb +23 -0
- data/spec/models/{invitation_create422_response_errors_inner_spec.rb → custom_metadata_property_create422_response_errors_inner_spec.rb} +6 -6
- data/spec/models/{invitation_create422_response_spec.rb → custom_metadata_property_create422_response_spec.rb} +6 -6
- data/spec/models/custom_metadata_property_spec.rb +77 -0
- data/spec/models/key_create_parameters_spec.rb +6 -0
- data/spec/models/key_update_parameters_spec.rb +6 -0
- data/spec/models/locale_report_spec.rb +107 -0
- data/spec/models/project_report_spec.rb +71 -0
- data/spec/models/translation_key_details_spec.rb +6 -0
- data/spec/models/upload_spec.rb +6 -0
- metadata +236 -212
- data/docs/InvitationCreate422Response.md +0 -19
data/lib/phrase.rb
CHANGED
@@ -36,6 +36,10 @@ require 'phrase/models/comment_reaction'
|
|
36
36
|
require 'phrase/models/comment_update_parameters'
|
37
37
|
require 'phrase/models/comments_list_parameters'
|
38
38
|
require 'phrase/models/current_user'
|
39
|
+
require 'phrase/models/custom_metadata_data_type'
|
40
|
+
require 'phrase/models/custom_metadata_property'
|
41
|
+
require 'phrase/models/custom_metadata_property_create422_response'
|
42
|
+
require 'phrase/models/custom_metadata_property_create422_response_errors_inner'
|
39
43
|
require 'phrase/models/distribution'
|
40
44
|
require 'phrase/models/distribution_create_parameters'
|
41
45
|
require 'phrase/models/distribution_preview'
|
@@ -65,8 +69,6 @@ require 'phrase/models/glossary_update_parameters'
|
|
65
69
|
require 'phrase/models/icu'
|
66
70
|
require 'phrase/models/icu_skeleton_parameters'
|
67
71
|
require 'phrase/models/invitation'
|
68
|
-
require 'phrase/models/invitation_create422_response'
|
69
|
-
require 'phrase/models/invitation_create422_response_errors_inner'
|
70
72
|
require 'phrase/models/invitation_create_parameters'
|
71
73
|
require 'phrase/models/invitation_update_parameters'
|
72
74
|
require 'phrase/models/invitation_update_settings_parameters'
|
@@ -109,6 +111,7 @@ require 'phrase/models/locale_create_parameters'
|
|
109
111
|
require 'phrase/models/locale_details'
|
110
112
|
require 'phrase/models/locale_preview'
|
111
113
|
require 'phrase/models/locale_preview1'
|
114
|
+
require 'phrase/models/locale_report'
|
112
115
|
require 'phrase/models/locale_statistics'
|
113
116
|
require 'phrase/models/locale_team_preview'
|
114
117
|
require 'phrase/models/locale_update_parameters'
|
@@ -134,6 +137,7 @@ require 'phrase/models/project'
|
|
134
137
|
require 'phrase/models/project_create_parameters'
|
135
138
|
require 'phrase/models/project_details'
|
136
139
|
require 'phrase/models/project_locales'
|
140
|
+
require 'phrase/models/project_report'
|
137
141
|
require 'phrase/models/project_short'
|
138
142
|
require 'phrase/models/project_update_parameters'
|
139
143
|
require 'phrase/models/release'
|
@@ -212,6 +216,7 @@ require 'phrase/api/branches_api'
|
|
212
216
|
require 'phrase/api/comment_reactions_api'
|
213
217
|
require 'phrase/api/comment_replies_api'
|
214
218
|
require 'phrase/api/comments_api'
|
219
|
+
require 'phrase/api/custom_metadata_api'
|
215
220
|
require 'phrase/api/distributions_api'
|
216
221
|
require 'phrase/api/documents_api'
|
217
222
|
require 'phrase/api/figma_attachments_api'
|
@@ -239,6 +244,7 @@ require 'phrase/api/organization_job_template_locales_api'
|
|
239
244
|
require 'phrase/api/organization_job_templates_api'
|
240
245
|
require 'phrase/api/projects_api'
|
241
246
|
require 'phrase/api/releases_api'
|
247
|
+
require 'phrase/api/reports_api'
|
242
248
|
require 'phrase/api/screenshot_markers_api'
|
243
249
|
require 'phrase/api/screenshots_api'
|
244
250
|
require 'phrase/api/search_api'
|
@@ -0,0 +1,106 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
# Unit tests for Phrase::CustomMetadataApi
|
5
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
6
|
+
# Please update as you see appropriate
|
7
|
+
describe 'CustomMetadataApi' do
|
8
|
+
before do
|
9
|
+
# run before each test
|
10
|
+
@api_instance = Phrase::CustomMetadataApi.new
|
11
|
+
end
|
12
|
+
|
13
|
+
after do
|
14
|
+
# run after each test
|
15
|
+
end
|
16
|
+
|
17
|
+
describe 'test an instance of CustomMetadataApi' do
|
18
|
+
it 'should create an instance of CustomMetadataApi' do
|
19
|
+
expect(@api_instance).to be_instance_of(Phrase::CustomMetadataApi)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
# unit tests for custom_metadata_properties_delete
|
24
|
+
# Destroy property
|
25
|
+
# Destroy a custom metadata property of an account. This endpoint is only available to accounts with advanced plans or above.
|
26
|
+
# @param account_id Account ID
|
27
|
+
# @param id ID
|
28
|
+
# @param [Hash] opts the optional parameters
|
29
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
30
|
+
# @return [nil]
|
31
|
+
describe 'custom_metadata_properties_delete 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 custom_metadata_properties_list
|
38
|
+
# List properties
|
39
|
+
# List all custom metadata properties for an account. This endpoint is only available to accounts with advanced plans or above.
|
40
|
+
# @param account_id Account ID
|
41
|
+
# @param [Hash] opts the optional parameters
|
42
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
43
|
+
# @option opts [CustomMetadataDataType] :data_type Data Type of Custom Metadata Property
|
44
|
+
# @option opts [String] :project_id id of project that the properties belong to
|
45
|
+
# @option opts [Integer] :page Page number
|
46
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
47
|
+
# @option opts [String] :sort Sort criteria. Can be one of: name, data_type, created_at.
|
48
|
+
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
49
|
+
# @return [Array<CustomMetadataProperty>]
|
50
|
+
describe 'custom_metadata_properties_list test' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# unit tests for custom_metadata_property_create
|
57
|
+
# Create a property
|
58
|
+
# Create a new custom metadata property.
|
59
|
+
# @param account_id Account ID
|
60
|
+
# @param name name of the property
|
61
|
+
# @param data_type Data Type of Custom Metadata Property
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
64
|
+
# @option opts [String] :description description of property
|
65
|
+
# @option opts [Array<String>] :project_ids ids of projects that the property belongs to
|
66
|
+
# @option opts [Array<String>] :value_options value options of property (only applies to single or multi select properties)
|
67
|
+
# @return [CustomMetadataProperty]
|
68
|
+
describe 'custom_metadata_property_create test' do
|
69
|
+
it 'should work' do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
# unit tests for custom_metadata_property_show
|
75
|
+
# Get a single property
|
76
|
+
# Get details of a single custom property.
|
77
|
+
# @param account_id Account ID
|
78
|
+
# @param id ID
|
79
|
+
# @param [Hash] opts the optional parameters
|
80
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
81
|
+
# @return [CustomMetadataProperty]
|
82
|
+
describe 'custom_metadata_property_show test' do
|
83
|
+
it 'should work' do
|
84
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
# unit tests for custom_metadata_property_update
|
89
|
+
# Update a property
|
90
|
+
# Update an existing custom metadata property.
|
91
|
+
# @param account_id Account ID
|
92
|
+
# @param id ID
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
95
|
+
# @option opts [String] :name name of the property
|
96
|
+
# @option opts [String] :description description of property
|
97
|
+
# @option opts [Array<String>] :project_ids ids of projects that the property belongs to
|
98
|
+
# @option opts [Array<String>] :value_options value options of property (only applies to single or multi select properties)
|
99
|
+
# @return [CustomMetadataProperty]
|
100
|
+
describe 'custom_metadata_property_update test' do
|
101
|
+
it 'should work' do
|
102
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
end
|
data/spec/api/keys_api_spec.rb
CHANGED
@@ -134,7 +134,7 @@ describe 'KeysApi' do
|
|
134
134
|
# @option opts [String] :branch specify the branch to use
|
135
135
|
# @option opts [String] :sort Sort by field. Can be one of: name, created_at, updated_at.
|
136
136
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
137
|
-
# @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).<br><br> The following qualifiers are also supported in the search term:<br> <ul> <li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li> <li><code>name:key_name
|
137
|
+
# @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).<br><br> The following qualifiers are also supported in the search term:<br> <ul> <li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li> <li><code>name:key_name,...</code> for text queries on a comma-seperated list of exact key names - spaces, commas, and colons need to be escaped with double backslashes</li> <li><code>tags:tag_name,...</code> to filter for keys with certain comma-seperated list of tags</li> <li><code>uploads:upload_id,...</code> to filter for keys with certain comma-seperated list of uploads</li> <li><code>job:{true|false}</code> to filter for keys mentioned in an active job</li> <li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li> <li><code>updated_at:{&gt;=|&lt;=}2013-02-21T00:00:00Z</code> for date range queries</li> <li><code>unmentioned_in_upload:upload_id</code> to filter keys unmentioned within upload</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
138
138
|
# @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
|
139
139
|
# @return [Array<TranslationKey>]
|
140
140
|
describe 'keys_list test' do
|
@@ -0,0 +1,55 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
# Unit tests for Phrase::ReportsApi
|
5
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
6
|
+
# Please update as you see appropriate
|
7
|
+
describe 'ReportsApi' do
|
8
|
+
before do
|
9
|
+
# run before each test
|
10
|
+
@api_instance = Phrase::ReportsApi.new
|
11
|
+
end
|
12
|
+
|
13
|
+
after do
|
14
|
+
# run after each test
|
15
|
+
end
|
16
|
+
|
17
|
+
describe 'test an instance of ReportsApi' do
|
18
|
+
it 'should create an instance of ReportsApi' do
|
19
|
+
expect(@api_instance).to be_instance_of(Phrase::ReportsApi)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
# unit tests for report_locales_list
|
24
|
+
# List Locale Reports
|
25
|
+
# List all locale reports for the given project
|
26
|
+
# @param project_id Project ID
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
29
|
+
# @option opts [Integer] :page Page number
|
30
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
31
|
+
# @option opts [String] :locale_codes Locale Code
|
32
|
+
# @option opts [String] :tag tag
|
33
|
+
# @option opts [String] :branch specify the branch to use
|
34
|
+
# @return [Array<LocaleReport>]
|
35
|
+
describe 'report_locales_list test' 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
|
+
# unit tests for report_show
|
42
|
+
# Get Project Report
|
43
|
+
# Get report of a single project.
|
44
|
+
# @param project_id Project ID
|
45
|
+
# @param [Hash] opts the optional parameters
|
46
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
47
|
+
# @option opts [String] :branch specify the branch to use
|
48
|
+
# @return [ProjectReport]
|
49
|
+
describe 'report_show 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
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# Unit tests for Phrase::CustomMetadataDataType
|
6
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
+
# Please update as you see appropriate
|
8
|
+
describe 'CustomMetadataDataType' do
|
9
|
+
before do
|
10
|
+
# run before each test
|
11
|
+
@instance = Phrase::CustomMetadataDataType.new
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
# run after each test
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'test an instance of CustomMetadataDataType' do
|
19
|
+
it 'should create an instance of CustomMetadataDataType' do
|
20
|
+
expect(@instance).to be_instance_of(Phrase::CustomMetadataDataType)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -2,22 +2,22 @@ require 'spec_helper'
|
|
2
2
|
require 'json'
|
3
3
|
require 'date'
|
4
4
|
|
5
|
-
# Unit tests for Phrase::
|
5
|
+
# Unit tests for Phrase::CustomMetadataPropertyCreate422ResponseErrorsInner
|
6
6
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
7
|
# Please update as you see appropriate
|
8
|
-
describe '
|
8
|
+
describe 'CustomMetadataPropertyCreate422ResponseErrorsInner' do
|
9
9
|
before do
|
10
10
|
# run before each test
|
11
|
-
@instance = Phrase::
|
11
|
+
@instance = Phrase::CustomMetadataPropertyCreate422ResponseErrorsInner.new
|
12
12
|
end
|
13
13
|
|
14
14
|
after do
|
15
15
|
# run after each test
|
16
16
|
end
|
17
17
|
|
18
|
-
describe 'test an instance of
|
19
|
-
it 'should create an instance of
|
20
|
-
expect(@instance).to be_instance_of(Phrase::
|
18
|
+
describe 'test an instance of CustomMetadataPropertyCreate422ResponseErrorsInner' do
|
19
|
+
it 'should create an instance of CustomMetadataPropertyCreate422ResponseErrorsInner' do
|
20
|
+
expect(@instance).to be_instance_of(Phrase::CustomMetadataPropertyCreate422ResponseErrorsInner)
|
21
21
|
end
|
22
22
|
end
|
23
23
|
describe 'test attribute "resource"' do
|
@@ -2,22 +2,22 @@ require 'spec_helper'
|
|
2
2
|
require 'json'
|
3
3
|
require 'date'
|
4
4
|
|
5
|
-
# Unit tests for Phrase::
|
5
|
+
# Unit tests for Phrase::CustomMetadataPropertyCreate422Response
|
6
6
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
7
|
# Please update as you see appropriate
|
8
|
-
describe '
|
8
|
+
describe 'CustomMetadataPropertyCreate422Response' do
|
9
9
|
before do
|
10
10
|
# run before each test
|
11
|
-
@instance = Phrase::
|
11
|
+
@instance = Phrase::CustomMetadataPropertyCreate422Response.new
|
12
12
|
end
|
13
13
|
|
14
14
|
after do
|
15
15
|
# run after each test
|
16
16
|
end
|
17
17
|
|
18
|
-
describe 'test an instance of
|
19
|
-
it 'should create an instance of
|
20
|
-
expect(@instance).to be_instance_of(Phrase::
|
18
|
+
describe 'test an instance of CustomMetadataPropertyCreate422Response' do
|
19
|
+
it 'should create an instance of CustomMetadataPropertyCreate422Response' do
|
20
|
+
expect(@instance).to be_instance_of(Phrase::CustomMetadataPropertyCreate422Response)
|
21
21
|
end
|
22
22
|
end
|
23
23
|
describe 'test attribute "message"' do
|
@@ -0,0 +1,77 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# Unit tests for Phrase::CustomMetadataProperty
|
6
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
+
# Please update as you see appropriate
|
8
|
+
describe 'CustomMetadataProperty' do
|
9
|
+
before do
|
10
|
+
# run before each test
|
11
|
+
@instance = Phrase::CustomMetadataProperty.new
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
# run after each test
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'test an instance of CustomMetadataProperty' do
|
19
|
+
it 'should create an instance of CustomMetadataProperty' do
|
20
|
+
expect(@instance).to be_instance_of(Phrase::CustomMetadataProperty)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe 'test attribute "id"' 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 "name"' 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 "description"' 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 "data_type"' 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
|
+
describe 'test attribute "user"' 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 "projects"' 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
|
+
|
59
|
+
describe 'test attribute "value_options"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "created_at"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
describe 'test attribute "updated_at"' 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
|
+
|
77
|
+
end
|
@@ -116,4 +116,10 @@ describe 'KeyCreateParameters' do
|
|
116
116
|
end
|
117
117
|
end
|
118
118
|
|
119
|
+
describe 'test attribute "custom_metadata"' 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
|
@@ -110,4 +110,10 @@ describe 'KeyUpdateParameters' do
|
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
+
describe 'test attribute "custom_metadata"' do
|
114
|
+
it 'should work' do
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
113
119
|
end
|
@@ -0,0 +1,107 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# Unit tests for Phrase::LocaleReport
|
6
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
+
# Please update as you see appropriate
|
8
|
+
describe 'LocaleReport' do
|
9
|
+
before do
|
10
|
+
# run before each test
|
11
|
+
@instance = Phrase::LocaleReport.new
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
# run after each test
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'test an instance of LocaleReport' do
|
19
|
+
it 'should create an instance of LocaleReport' do
|
20
|
+
expect(@instance).to be_instance_of(Phrase::LocaleReport)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe 'test attribute "keys_count"' 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 "translated_translations_percentage"' 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 "unverified_translations_percentage"' 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 "reviewed_translations_percentage"' 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
|
+
describe 'test attribute "untranslated_keys_percentage"' 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 "completed_translations_count"' 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
|
+
|
59
|
+
describe 'test attribute "untranslated_keys_count"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "unverified_translations_count"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
describe 'test attribute "reviewed_translations_count"' 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
|
+
|
77
|
+
describe 'test attribute "source_word_count"' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
describe 'test attribute "word_count"' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
describe 'test attribute "word_count_unverified"' 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
|
+
describe 'test attribute "word_count_missing"' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
describe 'test attribute "locale"' do
|
102
|
+
it 'should work' do
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
# Unit tests for Phrase::ProjectReport
|
6
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
7
|
+
# Please update as you see appropriate
|
8
|
+
describe 'ProjectReport' do
|
9
|
+
before do
|
10
|
+
# run before each test
|
11
|
+
@instance = Phrase::ProjectReport.new
|
12
|
+
end
|
13
|
+
|
14
|
+
after do
|
15
|
+
# run after each test
|
16
|
+
end
|
17
|
+
|
18
|
+
describe 'test an instance of ProjectReport' do
|
19
|
+
it 'should create an instance of ProjectReport' do
|
20
|
+
expect(@instance).to be_instance_of(Phrase::ProjectReport)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
describe 'test attribute "locales_count"' 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 "keys_count"' 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 "translations_count"' 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 "untranslated_keys_count"' 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
|
+
describe 'test attribute "unverified_translations_count"' 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 "reviewed_translations_count"' 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
|
+
|
59
|
+
describe 'test attribute "managed_words_count"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "project"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
@@ -128,4 +128,10 @@ describe 'TranslationKeyDetails' do
|
|
128
128
|
end
|
129
129
|
end
|
130
130
|
|
131
|
+
describe 'test attribute "custom_metadata"' do
|
132
|
+
it 'should work' do
|
133
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
131
137
|
end
|
data/spec/models/upload_spec.rb
CHANGED
@@ -50,6 +50,12 @@ describe 'Upload' do
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
+
describe 'test attribute "url"' 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
|
+
|
53
59
|
describe 'test attribute "summary"' do
|
54
60
|
it 'should work' do
|
55
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|