phrase 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +41 -3
  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/JobTemplate.md +29 -0
  10. data/docs/JobTemplateCreateParameters.md +21 -0
  11. data/docs/JobTemplateLocale.md +23 -0
  12. data/docs/JobTemplateLocaleUpdateParameters.md +23 -0
  13. data/docs/JobTemplateLocalesApi.md +347 -0
  14. data/docs/JobTemplateLocalesCreateParameters.md +23 -0
  15. data/docs/JobTemplatePreview.md +19 -0
  16. data/docs/JobTemplateUpdateParameters.md +21 -0
  17. data/docs/JobTemplateUserPreview.md +23 -0
  18. data/docs/JobTemplatesApi.md +337 -0
  19. data/docs/KeysApi.md +132 -4
  20. data/docs/KeysExcludeParameters.md +23 -0
  21. data/docs/KeysIncludeParameters.md +23 -0
  22. data/docs/KeysSearchParameters.md +1 -1
  23. data/docs/KeysTagParameters.md +1 -1
  24. data/docs/KeysUntagParameters.md +1 -1
  25. data/docs/LocalePreview1.md +23 -0
  26. data/docs/LocalesApi.md +68 -2
  27. data/docs/MemberSpaces.md +2 -2
  28. data/docs/MemberUpdateParameters.md +4 -2
  29. data/docs/Notification.md +41 -0
  30. data/docs/NotificationGroup.md +23 -0
  31. data/docs/NotificationGroupDetail.md +27 -0
  32. data/docs/NotificationGroupsApi.md +194 -0
  33. data/docs/NotificationsApi.md +194 -0
  34. data/docs/OrderCreateParameters.md +2 -0
  35. data/docs/Project.md +2 -0
  36. data/docs/ProjectCreateParameters.md +35 -1
  37. data/docs/ProjectDetails.md +2 -0
  38. data/docs/ProjectsApi.md +7 -1
  39. data/docs/SearchApi.md +72 -0
  40. data/docs/SearchInAccountParameters.md +23 -0
  41. data/docs/Space1.md +25 -0
  42. data/docs/Subscription.md +19 -0
  43. data/docs/TranslationOrder.md +2 -0
  44. data/docs/User.md +0 -2
  45. data/lib/phrase.rb +23 -0
  46. data/lib/phrase/api/job_template_locales_api.rb +417 -0
  47. data/lib/phrase/api/job_templates_api.rb +387 -0
  48. data/lib/phrase/api/keys_api.rb +152 -4
  49. data/lib/phrase/api/locales_api.rb +71 -2
  50. data/lib/phrase/api/notification_groups_api.rb +202 -0
  51. data/lib/phrase/api/notifications_api.rb +202 -0
  52. data/lib/phrase/api/projects_api.rb +9 -0
  53. data/lib/phrase/api/search_api.rb +84 -0
  54. data/lib/phrase/models/account.rb +13 -4
  55. data/lib/phrase/models/account_details.rb +22 -4
  56. data/lib/phrase/models/account_details1.rb +10 -1
  57. data/lib/phrase/models/account_search_result.rb +250 -0
  58. data/lib/phrase/models/branch.rb +19 -1
  59. data/lib/phrase/models/comment.rb +15 -4
  60. data/lib/phrase/models/job_template.rb +248 -0
  61. data/lib/phrase/models/job_template_create_parameters.rb +220 -0
  62. data/lib/phrase/models/job_template_locale.rb +223 -0
  63. data/lib/phrase/models/job_template_locale_update_parameters.rb +234 -0
  64. data/lib/phrase/models/job_template_locales_create_parameters.rb +234 -0
  65. data/lib/phrase/models/job_template_preview.rb +203 -0
  66. data/lib/phrase/models/job_template_update_parameters.rb +220 -0
  67. data/lib/phrase/models/job_template_user_preview.rb +221 -0
  68. data/lib/phrase/models/keys_exclude_parameters.rb +225 -0
  69. data/lib/phrase/models/keys_include_parameters.rb +225 -0
  70. data/lib/phrase/models/keys_search_parameters.rb +1 -1
  71. data/lib/phrase/models/keys_tag_parameters.rb +1 -1
  72. data/lib/phrase/models/keys_untag_parameters.rb +1 -1
  73. data/lib/phrase/models/locale_preview1.rb +221 -0
  74. data/lib/phrase/models/member_spaces.rb +2 -2
  75. data/lib/phrase/models/member_update_parameters.rb +12 -2
  76. data/lib/phrase/models/notification.rb +302 -0
  77. data/lib/phrase/models/notification_group.rb +221 -0
  78. data/lib/phrase/models/notification_group_detail.rb +239 -0
  79. data/lib/phrase/models/order_create_parameters.rb +11 -1
  80. data/lib/phrase/models/project.rb +10 -1
  81. data/lib/phrase/models/project_create_parameters.rb +174 -4
  82. data/lib/phrase/models/project_details.rb +10 -1
  83. data/lib/phrase/models/search_in_account_parameters.rb +225 -0
  84. data/lib/phrase/models/space1.rb +230 -0
  85. data/lib/phrase/models/subscription.rb +203 -0
  86. data/lib/phrase/models/translation_order.rb +10 -1
  87. data/lib/phrase/models/user.rb +1 -10
  88. data/lib/phrase/version.rb +1 -1
  89. data/spec/api/job_template_locales_api_spec.rb +103 -0
  90. data/spec/api/job_templates_api_spec.rb +98 -0
  91. data/spec/api/keys_api_spec.rb +30 -2
  92. data/spec/api/locales_api_spec.rb +16 -1
  93. data/spec/api/notification_groups_api_spec.rb +62 -0
  94. data/spec/api/notifications_api_spec.rb +62 -0
  95. data/spec/api/projects_api_spec.rb +3 -0
  96. data/spec/api/search_api_spec.rb +37 -0
  97. data/spec/models/account_details1_spec.rb +6 -0
  98. data/spec/models/account_details_spec.rb +12 -0
  99. data/spec/models/account_search_result_spec.rb +65 -0
  100. data/spec/models/account_spec.rb +6 -0
  101. data/spec/models/branch_spec.rb +12 -0
  102. data/spec/models/comment_spec.rb +6 -0
  103. data/spec/models/job_template_create_parameters_spec.rb +41 -0
  104. data/spec/models/job_template_locale_spec.rb +47 -0
  105. data/spec/models/job_template_locale_update_parameters_spec.rb +47 -0
  106. data/spec/models/job_template_locales_create_parameters_spec.rb +47 -0
  107. data/spec/models/job_template_preview_spec.rb +35 -0
  108. data/spec/models/job_template_spec.rb +65 -0
  109. data/spec/models/job_template_update_parameters_spec.rb +41 -0
  110. data/spec/models/job_template_user_preview_spec.rb +47 -0
  111. data/spec/models/keys_exclude_parameters_spec.rb +47 -0
  112. data/spec/models/keys_include_parameters_spec.rb +47 -0
  113. data/spec/models/locale_preview1_spec.rb +47 -0
  114. data/spec/models/member_update_parameters_spec.rb +6 -0
  115. data/spec/models/notification_group_detail_spec.rb +59 -0
  116. data/spec/models/notification_group_spec.rb +47 -0
  117. data/spec/models/notification_spec.rb +101 -0
  118. data/spec/models/order_create_parameters_spec.rb +6 -0
  119. data/spec/models/project_create_parameters_spec.rb +102 -0
  120. data/spec/models/project_details_spec.rb +6 -0
  121. data/spec/models/project_spec.rb +6 -0
  122. data/spec/models/search_in_account_parameters_spec.rb +47 -0
  123. data/spec/models/space1_spec.rb +53 -0
  124. data/spec/models/subscription_spec.rb +35 -0
  125. data/spec/models/translation_order_spec.rb +6 -0
  126. data/spec/models/user_spec.rb +0 -6
  127. metadata +268 -176
@@ -8,8 +8,6 @@ module Phrase
8
8
 
9
9
  attr_accessor :name
10
10
 
11
- attr_accessor :email
12
-
13
11
  attr_accessor :position
14
12
 
15
13
  attr_accessor :created_at
@@ -22,7 +20,6 @@ module Phrase
22
20
  :'id' => :'id',
23
21
  :'username' => :'username',
24
22
  :'name' => :'name',
25
- :'email' => :'email',
26
23
  :'position' => :'position',
27
24
  :'created_at' => :'created_at',
28
25
  :'updated_at' => :'updated_at'
@@ -35,7 +32,6 @@ module Phrase
35
32
  :'id' => :'String',
36
33
  :'username' => :'String',
37
34
  :'name' => :'String',
38
- :'email' => :'String',
39
35
  :'position' => :'String',
40
36
  :'created_at' => :'DateTime',
41
37
  :'updated_at' => :'DateTime'
@@ -75,10 +71,6 @@ module Phrase
75
71
  self.name = attributes[:'name']
76
72
  end
77
73
 
78
- if attributes.key?(:'email')
79
- self.email = attributes[:'email']
80
- end
81
-
82
74
  if attributes.key?(:'position')
83
75
  self.position = attributes[:'position']
84
76
  end
@@ -113,7 +105,6 @@ module Phrase
113
105
  id == o.id &&
114
106
  username == o.username &&
115
107
  name == o.name &&
116
- email == o.email &&
117
108
  position == o.position &&
118
109
  created_at == o.created_at &&
119
110
  updated_at == o.updated_at
@@ -128,7 +119,7 @@ module Phrase
128
119
  # Calculates hash code according to all attributes.
129
120
  # @return [Integer] Hash code
130
121
  def hash
131
- [id, username, name, email, position, created_at, updated_at].hash
122
+ [id, username, name, position, created_at, updated_at].hash
132
123
  end
133
124
 
134
125
  # Builds the object from hash
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '2.0.0'
2
+ VERSION = '2.1.0'
3
3
  end
@@ -0,0 +1,103 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for Phrase::JobTemplateLocalesApi
5
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
+ # Please update as you see appropriate
7
+ describe 'JobTemplateLocalesApi' do
8
+ before do
9
+ # run before each test
10
+ @api_instance = Phrase::JobTemplateLocalesApi.new
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+ describe 'test an instance of JobTemplateLocalesApi' do
18
+ it 'should create an instance of JobTemplateLocalesApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::JobTemplateLocalesApi)
20
+ end
21
+ end
22
+
23
+ # unit tests for job_template_locale_delete
24
+ # Delete a job template locale
25
+ # Delete an existing job template locale.
26
+ # @param project_id Project ID
27
+ # @param job_template_id Job Template ID
28
+ # @param job_template_locale_id Job Template Locale ID
29
+ # @param [Hash] opts the optional parameters
30
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
31
+ # @option opts [String] :branch specify the branch to use
32
+ # @return [nil]
33
+ describe 'job_template_locale_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_template_locale_show
40
+ # Get a single job template locale
41
+ # Get a single job template locale for a given job template.
42
+ # @param project_id Project ID
43
+ # @param job_template_id Job Template ID
44
+ # @param job_template_locale_id Job Template Locale 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 [Object]
49
+ describe 'job_template_locale_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
+ # unit tests for job_template_locale_update
56
+ # Update a job template locale
57
+ # Update an existing job template locale.
58
+ # @param project_id Project ID
59
+ # @param job_template_id Job Template ID
60
+ # @param job_template_locale_id Job Template Locale ID
61
+ # @param job_template_locale_update_parameters
62
+ # @param [Hash] opts the optional parameters
63
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
64
+ # @return [Object]
65
+ describe 'job_template_locale_update test' 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
+ # unit tests for job_template_locales_create
72
+ # Create a job template locale
73
+ # Create a new job template locale.
74
+ # @param project_id Project ID
75
+ # @param job_template_id Job Template ID
76
+ # @param job_template_locales_create_parameters
77
+ # @param [Hash] opts the optional parameters
78
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
79
+ # @return [JobTemplateLocale]
80
+ describe 'job_template_locales_create test' do
81
+ it 'should work' do
82
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
83
+ end
84
+ end
85
+
86
+ # unit tests for job_template_locales_list
87
+ # List job template locales
88
+ # List all job template locales for a given job template.
89
+ # @param project_id Project ID
90
+ # @param job_template_id Job Template ID
91
+ # @param [Hash] opts the optional parameters
92
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
93
+ # @option opts [Integer] :page Page number
94
+ # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
95
+ # @option opts [String] :branch specify the branch to use
96
+ # @return [Array<Object>]
97
+ describe 'job_template_locales_list test' do
98
+ it 'should work' do
99
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
100
+ end
101
+ end
102
+
103
+ end
@@ -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
@@ -86,7 +86,7 @@ describe 'KeysApi' do
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
92
  describe 'keys_delete_collection test' do
@@ -95,6 +95,34 @@ describe 'KeysApi' do
95
95
  end
96
96
  end
97
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
121
+ it 'should work' do
122
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
123
+ end
124
+ end
125
+
98
126
  # unit tests for keys_list
99
127
  # List keys
100
128
  # List all keys for the given project. Alternatively you can POST requests to /search.
@@ -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.
@@ -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