phrase 4.4.0 → 4.7.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 (133) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/README.md +7 -5
  4. data/docs/BranchesApi.md +3 -3
  5. data/docs/CommentRepliesApi.md +3 -5
  6. data/docs/CommentsApi.md +3 -5
  7. data/docs/DistributionCreateParameters.md +1 -1
  8. data/docs/DistributionUpdateParameters.md +1 -1
  9. data/docs/InvitationCreateParameters.md +2 -2
  10. data/docs/InvitationsApi.md +7 -7
  11. data/docs/JobsApi.md +4 -4
  12. data/docs/KeyCreateParameters.md +3 -1
  13. data/docs/KeyPreview.md +3 -1
  14. data/docs/KeyUpdateParameters.md +3 -1
  15. data/docs/KeysApi.md +4 -4
  16. data/docs/KeysExcludeParameters.md +1 -1
  17. data/docs/KeysIncludeParameters.md +1 -1
  18. data/docs/KeysSearchParameters.md +1 -1
  19. data/docs/KeysTagParameters.md +1 -1
  20. data/docs/KeysUntagParameters.md +1 -1
  21. data/docs/Locale.md +2 -0
  22. data/docs/LocaleCreateParameters.md +3 -3
  23. data/docs/LocaleDetails.md +2 -0
  24. data/docs/LocaleDownloadCreateParameters.md +7 -5
  25. data/docs/LocaleDownloadsApi.md +8 -8
  26. data/docs/LocaleUpdateParameters.md +3 -3
  27. data/docs/LocalesApi.md +17 -15
  28. data/docs/MemberUpdateParameters.md +1 -1
  29. data/docs/MembersApi.md +5 -5
  30. data/docs/OrdersApi.md +1 -1
  31. data/docs/ProjectCreateParameters.md +5 -5
  32. data/docs/ProjectUpdateParameters.md +6 -6
  33. data/docs/ReleaseTriggersApi.md +1 -1
  34. data/docs/ScreenshotMarkerCreateParameters.md +1 -1
  35. data/docs/ScreenshotMarkerUpdateParameters.md +1 -1
  36. data/docs/ScreenshotUpdateParameters.md +1 -1
  37. data/docs/SearchApi.md +1 -1
  38. data/docs/TagsApi.md +2 -0
  39. data/docs/TranslationCreateParameters.md +1 -1
  40. data/docs/TranslationKey.md +2 -0
  41. data/docs/TranslationKeyDetails.md +2 -0
  42. data/docs/TranslationUnreviewParameters.md +17 -0
  43. data/docs/TranslationUpdateParameters.md +1 -1
  44. data/docs/TranslationsApi.md +143 -13
  45. data/docs/TranslationsExcludeParameters.md +1 -1
  46. data/docs/TranslationsIncludeParameters.md +1 -1
  47. data/docs/TranslationsReviewParameters.md +1 -1
  48. data/docs/TranslationsSearchParameters.md +1 -1
  49. data/docs/TranslationsUnreviewParameters.md +19 -0
  50. data/docs/TranslationsUnverifyParameters.md +1 -1
  51. data/docs/TranslationsVerifyParameters.md +1 -1
  52. data/docs/UploadSummary.md +5 -1
  53. data/docs/UploadsApi.md +2 -0
  54. data/lib/phrase/api/branches_api.rb +6 -6
  55. data/lib/phrase/api/comment_replies_api.rb +4 -12
  56. data/lib/phrase/api/comments_api.rb +4 -12
  57. data/lib/phrase/api/invitations_api.rb +14 -14
  58. data/lib/phrase/api/jobs_api.rb +4 -4
  59. data/lib/phrase/api/keys_api.rb +4 -4
  60. data/lib/phrase/api/locale_downloads_api.rb +8 -8
  61. data/lib/phrase/api/locales_api.rb +17 -14
  62. data/lib/phrase/api/members_api.rb +10 -10
  63. data/lib/phrase/api/orders_api.rb +2 -2
  64. data/lib/phrase/api/release_triggers_api.rb +2 -2
  65. data/lib/phrase/api/search_api.rb +2 -2
  66. data/lib/phrase/api/tags_api.rb +3 -0
  67. data/lib/phrase/api/translations_api.rb +170 -16
  68. data/lib/phrase/api/uploads_api.rb +3 -0
  69. data/lib/phrase/models/distribution_create_parameters.rb +1 -1
  70. data/lib/phrase/models/distribution_update_parameters.rb +1 -1
  71. data/lib/phrase/models/invitation_create_parameters.rb +2 -2
  72. data/lib/phrase/models/key_create_parameters.rb +11 -1
  73. data/lib/phrase/models/key_preview.rb +13 -4
  74. data/lib/phrase/models/key_update_parameters.rb +11 -1
  75. data/lib/phrase/models/keys_exclude_parameters.rb +1 -1
  76. data/lib/phrase/models/keys_include_parameters.rb +1 -1
  77. data/lib/phrase/models/keys_search_parameters.rb +1 -1
  78. data/lib/phrase/models/keys_tag_parameters.rb +1 -1
  79. data/lib/phrase/models/keys_untag_parameters.rb +1 -1
  80. data/lib/phrase/models/locale.rb +12 -1
  81. data/lib/phrase/models/locale_create_parameters.rb +3 -3
  82. data/lib/phrase/models/locale_details.rb +12 -1
  83. data/lib/phrase/models/locale_download_create_parameters.rb +18 -8
  84. data/lib/phrase/models/locale_update_parameters.rb +3 -3
  85. data/lib/phrase/models/member_update_parameters.rb +1 -1
  86. data/lib/phrase/models/project_create_parameters.rb +4 -4
  87. data/lib/phrase/models/project_update_parameters.rb +5 -5
  88. data/lib/phrase/models/screenshot_marker_create_parameters.rb +1 -1
  89. data/lib/phrase/models/screenshot_marker_update_parameters.rb +1 -1
  90. data/lib/phrase/models/translation_create_parameters.rb +1 -1
  91. data/lib/phrase/models/translation_key.rb +10 -1
  92. data/lib/phrase/models/translation_key_details.rb +10 -1
  93. data/lib/phrase/models/{comments_list_parameters.rb → translation_unreview_parameters.rb} +8 -52
  94. data/lib/phrase/models/translation_update_parameters.rb +1 -1
  95. data/lib/phrase/models/translations_exclude_parameters.rb +1 -1
  96. data/lib/phrase/models/translations_include_parameters.rb +1 -1
  97. data/lib/phrase/models/translations_review_parameters.rb +1 -1
  98. data/lib/phrase/models/translations_search_parameters.rb +1 -1
  99. data/lib/phrase/models/{replies_list_parameters.rb → translations_unreview_parameters.rb} +12 -34
  100. data/lib/phrase/models/translations_unverify_parameters.rb +1 -1
  101. data/lib/phrase/models/translations_verify_parameters.rb +1 -1
  102. data/lib/phrase/models/upload_summary.rb +22 -4
  103. data/lib/phrase/version.rb +1 -1
  104. data/lib/phrase.rb +2 -2
  105. data/spec/api/branches_api_spec.rb +3 -3
  106. data/spec/api/comment_replies_api_spec.rb +0 -1
  107. data/spec/api/comments_api_spec.rb +0 -1
  108. data/spec/api/invitations_api_spec.rb +7 -7
  109. data/spec/api/jobs_api_spec.rb +2 -2
  110. data/spec/api/keys_api_spec.rb +2 -2
  111. data/spec/api/locale_downloads_api_spec.rb +4 -4
  112. data/spec/api/members_api_spec.rb +5 -5
  113. data/spec/api/orders_api_spec.rb +1 -1
  114. data/spec/api/release_triggers_api_spec.rb +1 -1
  115. data/spec/api/search_api_spec.rb +1 -1
  116. data/spec/api/tags_api_spec.rb +1 -0
  117. data/spec/api/translations_api_spec.rb +37 -8
  118. data/spec/models/key_create_parameters_spec.rb +6 -0
  119. data/spec/models/key_preview_spec.rb +6 -0
  120. data/spec/models/key_update_parameters_spec.rb +6 -0
  121. data/spec/models/locale_details_spec.rb +6 -0
  122. data/spec/models/locale_download_create_parameters_spec.rb +6 -0
  123. data/spec/models/locale_spec.rb +6 -0
  124. data/spec/models/translation_key_details_spec.rb +6 -0
  125. data/spec/models/translation_key_spec.rb +6 -0
  126. data/spec/models/translation_unreview_parameters_spec.rb +29 -0
  127. data/spec/models/translations_unreview_parameters_spec.rb +35 -0
  128. data/spec/models/upload_summary_spec.rb +12 -0
  129. metadata +236 -236
  130. data/docs/CommentsListParameters.md +0 -25
  131. data/docs/RepliesListParameters.md +0 -23
  132. data/spec/models/comments_list_parameters_spec.rb +0 -53
  133. data/spec/models/replies_list_parameters_spec.rb +0 -47
@@ -396,6 +396,86 @@ module Phrase
396
396
  return response, status_code, headers
397
397
  end
398
398
 
399
+ # Unreview a translation
400
+ # Mark a reviewed translation as translated.
401
+ # @param project_id [String] Project ID
402
+ # @param id [String] ID
403
+ # @param translation_unreview_parameters [TranslationUnreviewParameters]
404
+ # @param [Hash] opts the optional parameters
405
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
406
+ # @return [TranslationDetails]
407
+ def translation_unreview(project_id, id, translation_unreview_parameters, opts = {})
408
+ data, _status_code, _headers = translation_unreview_with_http_info(project_id, id, translation_unreview_parameters, opts)
409
+ data
410
+ end
411
+
412
+ # Unreview a translation
413
+ # Mark a reviewed translation as translated.
414
+ # @param project_id [String] Project ID
415
+ # @param id [String] ID
416
+ # @param translation_unreview_parameters [TranslationUnreviewParameters]
417
+ # @param [Hash] opts the optional parameters
418
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
419
+ # @return [Array<(Response<(TranslationDetails)>, Integer, Hash)>] Response<(TranslationDetails)> data, response status code and response headers
420
+ def translation_unreview_with_http_info(project_id, id, translation_unreview_parameters, opts = {})
421
+ if @api_client.config.debugging
422
+ @api_client.config.logger.debug 'Calling API: TranslationsApi.translation_unreview ...'
423
+ end
424
+ # verify the required parameter 'project_id' is set
425
+ if @api_client.config.client_side_validation && project_id.nil?
426
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling TranslationsApi.translation_unreview"
427
+ end
428
+ # verify the required parameter 'id' is set
429
+ if @api_client.config.client_side_validation && id.nil?
430
+ fail ArgumentError, "Missing the required parameter 'id' when calling TranslationsApi.translation_unreview"
431
+ end
432
+ # verify the required parameter 'translation_unreview_parameters' is set
433
+ if @api_client.config.client_side_validation && translation_unreview_parameters.nil?
434
+ fail ArgumentError, "Missing the required parameter 'translation_unreview_parameters' when calling TranslationsApi.translation_unreview"
435
+ end
436
+ # resource path
437
+ local_var_path = '/projects/{project_id}/translations/{id}/unreview'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
438
+
439
+ # query parameters
440
+ query_params = opts[:query_params] || {}
441
+
442
+ # header parameters
443
+ header_params = opts[:header_params] || {}
444
+ # HTTP header 'Accept' (if needed)
445
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
446
+ # HTTP header 'Content-Type'
447
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
448
+ header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
449
+
450
+ # form parameters
451
+ form_params = opts[:form_params] || {}
452
+
453
+ # http body (model)
454
+ post_body = opts[:body] || @api_client.object_to_http_body(translation_unreview_parameters)
455
+
456
+ # return_type
457
+ return_type = opts[:return_type] || 'TranslationDetails'
458
+
459
+ # auth_names
460
+ auth_names = opts[:auth_names] || ['Basic', 'Token']
461
+
462
+ new_options = opts.merge(
463
+ :header_params => header_params,
464
+ :query_params => query_params,
465
+ :form_params => form_params,
466
+ :body => post_body,
467
+ :auth_names => auth_names,
468
+ :return_type => return_type
469
+ )
470
+
471
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
472
+ if @api_client.config.debugging
473
+ @api_client.config.logger.debug "API called: TranslationsApi#translation_unreview\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
474
+ end
475
+ response = ::Phrase::Response.new(data, headers)
476
+ return response, status_code, headers
477
+ end
478
+
399
479
  # Mark a translation as unverified
400
480
  # Mark an existing translation as unverified.
401
481
  # @param project_id [String] Project ID
@@ -647,7 +727,7 @@ module Phrase
647
727
  # @option opts [String] :branch specify the branch to use
648
728
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
649
729
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
650
- # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&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;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
730
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries Find more examples [here](/en/api/strings/usage-examples).
651
731
  # @return [Array<Translation>]
652
732
  def translations_by_key(project_id, key_id, opts = {})
653
733
  data, _status_code, _headers = translations_by_key_with_http_info(project_id, key_id, opts)
@@ -665,7 +745,7 @@ module Phrase
665
745
  # @option opts [String] :branch specify the branch to use
666
746
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
667
747
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
668
- # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&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;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
748
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries Find more examples [here](/en/api/strings/usage-examples).
669
749
  # @return [Array<(Response<(Array<Translation>)>, Integer, Hash)>] Response<(Array<Translation>)> data, response status code and response headers
670
750
  def translations_by_key_with_http_info(project_id, key_id, opts = {})
671
751
  if @api_client.config.debugging
@@ -727,7 +807,7 @@ module Phrase
727
807
  end
728
808
 
729
809
  # List translations by locale
730
- # List translations for a specific locale. If you want to download all translations for one locale we recommend to use the <code>locales#download</code> endpoint.
810
+ # List translations for a specific locale. If you want to download all translations for one locale we recommend to use the `locales#download` endpoint.
731
811
  # @param project_id [String] Project ID
732
812
  # @param locale_id [String] Locale ID
733
813
  # @param [Hash] opts the optional parameters
@@ -737,7 +817,7 @@ module Phrase
737
817
  # @option opts [String] :branch specify the branch to use
738
818
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
739
819
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
740
- # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; &lt;i&gt;Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).&lt;/i&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&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;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
820
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: - &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids - &#x60;unverified:{true|false}&#x60; for verification status - &#x60;tags:XYZ&#x60; for tags on the translation - &#x60;excluded:{true|false}&#x60; for exclusion status - &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries Find more examples [here](/en/api/strings/usage-examples).
741
821
  # @return [Array<Translation>]
742
822
  def translations_by_locale(project_id, locale_id, opts = {})
743
823
  data, _status_code, _headers = translations_by_locale_with_http_info(project_id, locale_id, opts)
@@ -745,7 +825,7 @@ module Phrase
745
825
  end
746
826
 
747
827
  # List translations by locale
748
- # List translations for a specific locale. If you want to download all translations for one locale we recommend to use the &lt;code&gt;locales#download&lt;/code&gt; endpoint.
828
+ # List translations for a specific locale. If you want to download all translations for one locale we recommend to use the &#x60;locales#download&#x60; endpoint.
749
829
  # @param project_id [String] Project ID
750
830
  # @param locale_id [String] Locale ID
751
831
  # @param [Hash] opts the optional parameters
@@ -755,7 +835,7 @@ module Phrase
755
835
  # @option opts [String] :branch specify the branch to use
756
836
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
757
837
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
758
- # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; &lt;i&gt;Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).&lt;/i&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&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;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
838
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: - &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids - &#x60;unverified:{true|false}&#x60; for verification status - &#x60;tags:XYZ&#x60; for tags on the translation - &#x60;excluded:{true|false}&#x60; for exclusion status - &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries Find more examples [here](/en/api/strings/usage-examples).
759
839
  # @return [Array<(Response<(Array<Translation>)>, Integer, Hash)>] Response<(Array<Translation>)> data, response status code and response headers
760
840
  def translations_by_locale_with_http_info(project_id, locale_id, opts = {})
761
841
  if @api_client.config.debugging
@@ -965,18 +1045,18 @@ module Phrase
965
1045
  end
966
1046
 
967
1047
  # List all translations
968
- # List translations for the given project. If you want to download all translations for one locale we recommend to use the <code>locales#download</code> endpoint.
1048
+ # List translations for the given project. If you want to download all translations for one locale we recommend to use the `locales#download` endpoint.
969
1049
  # @param project_id [String] Project ID
970
1050
  # @param [Hash] opts the optional parameters
971
1051
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
972
- # @option opts [String] :if_modified_since Last modified condition, see &lt;a href&#x3D;\&quot;#overview--conditional-get-requests--http-caching\&quot;&gt;Conditional GET requests / HTTP Caching&lt;/a&gt; (optional)
973
- # @option opts [String] :if_none_match ETag condition, see &lt;a href&#x3D;\&quot;#overview--conditional-get-requests--http-caching\&quot;&gt;Conditional GET requests / HTTP Caching&lt;/a&gt; (optional)
1052
+ # @option opts [String] :if_modified_since Last modified condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
1053
+ # @option opts [String] :if_none_match ETag condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
974
1054
  # @option opts [Integer] :page Page number
975
1055
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
976
1056
  # @option opts [String] :branch specify the branch to use
977
1057
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
978
1058
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
979
- # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; &lt;i&gt;Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).&lt;/i&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&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;reviewed_after:2013-02-21T00:00:00Z&lt;/code&gt; for fetching translations that were reviewed after the given timestamp&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
1059
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries * &#x60;reviewed_after:2013-02-21T00:00:00Z&#x60; for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
980
1060
  # @return [Array<Translation>]
981
1061
  def translations_list(project_id, opts = {})
982
1062
  data, _status_code, _headers = translations_list_with_http_info(project_id, opts)
@@ -984,18 +1064,18 @@ module Phrase
984
1064
  end
985
1065
 
986
1066
  # List all translations
987
- # List translations for the given project. If you want to download all translations for one locale we recommend to use the &lt;code&gt;locales#download&lt;/code&gt; endpoint.
1067
+ # List translations for the given project. If you want to download all translations for one locale we recommend to use the &#x60;locales#download&#x60; endpoint.
988
1068
  # @param project_id [String] Project ID
989
1069
  # @param [Hash] opts the optional parameters
990
1070
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
991
- # @option opts [String] :if_modified_since Last modified condition, see &lt;a href&#x3D;\&quot;#overview--conditional-get-requests--http-caching\&quot;&gt;Conditional GET requests / HTTP Caching&lt;/a&gt; (optional)
992
- # @option opts [String] :if_none_match ETag condition, see &lt;a href&#x3D;\&quot;#overview--conditional-get-requests--http-caching\&quot;&gt;Conditional GET requests / HTTP Caching&lt;/a&gt; (optional)
1071
+ # @option opts [String] :if_modified_since Last modified condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
1072
+ # @option opts [String] :if_none_match ETag condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
993
1073
  # @option opts [Integer] :page Page number
994
1074
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
995
1075
  # @option opts [String] :branch specify the branch to use
996
1076
  # @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
997
1077
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
998
- # @option opts [String] :q Specify a query to find translations by content (including wildcards).&lt;br&gt;&lt;br&gt; &lt;i&gt;Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).&lt;/i&gt;&lt;br&gt; The following qualifiers are supported in the query:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;id:translation_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:XYZ&lt;/code&gt; for tags on the translation&lt;/li&gt; &lt;li&gt;&lt;code&gt;unverified:{true|false}&lt;/code&gt; for verification status&lt;/li&gt; &lt;li&gt;&lt;code&gt;excluded:{true|false}&lt;/code&gt; for exclusion status&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;reviewed_after:2013-02-21T00:00:00Z&lt;/code&gt; for fetching translations that were reviewed after the given timestamp&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
1078
+ # @option opts [String] :q Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * &#x60;id:translation_id,...&#x60; for queries on a comma-separated list of ids * &#x60;tags:XYZ&#x60; for tags on the translation * &#x60;unverified:{true|false}&#x60; for verification status * &#x60;excluded:{true|false}&#x60; for exclusion status * &#x60;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&#x60; for date range queries * &#x60;reviewed_after:2013-02-21T00:00:00Z&#x60; for fetching translations that were reviewed after the given timestamp Find more examples [here](/en/api/strings/usage-examples).
999
1079
  # @return [Array<(Response<(Array<Translation>)>, Integer, Hash)>] Response<(Array<Translation>)> data, response status code and response headers
1000
1080
  def translations_list_with_http_info(project_id, opts = {})
1001
1081
  if @api_client.config.debugging
@@ -1129,7 +1209,7 @@ module Phrase
1129
1209
  end
1130
1210
 
1131
1211
  # Search translations
1132
- # Search translations for the given project. Provides the same search interface as <code>translations#index</code> but allows POST requests to avoid limitations imposed by GET requests. If you want to download all translations for one locale we recommend to use the <code>locales#download</code> endpoint.
1212
+ # Search translations for the given project. Provides the same search interface as `translations#index` but allows POST requests to avoid limitations imposed by GET requests. If you want to download all translations for one locale we recommend to use the `locales#download` endpoint.
1133
1213
  # @param project_id [String] Project ID
1134
1214
  # @param translations_search_parameters [TranslationsSearchParameters]
1135
1215
  # @param [Hash] opts the optional parameters
@@ -1143,7 +1223,7 @@ module Phrase
1143
1223
  end
1144
1224
 
1145
1225
  # Search translations
1146
- # Search translations for the given project. Provides the same search interface as &lt;code&gt;translations#index&lt;/code&gt; but allows POST requests to avoid limitations imposed by GET requests. If you want to download all translations for one locale we recommend to use the &lt;code&gt;locales#download&lt;/code&gt; endpoint.
1226
+ # Search translations for the given project. Provides the same search interface as &#x60;translations#index&#x60; but allows POST requests to avoid limitations imposed by GET requests. If you want to download all translations for one locale we recommend to use the &#x60;locales#download&#x60; endpoint.
1147
1227
  # @param project_id [String] Project ID
1148
1228
  # @param translations_search_parameters [TranslationsSearchParameters]
1149
1229
  # @param [Hash] opts the optional parameters
@@ -1208,6 +1288,80 @@ module Phrase
1208
1288
  return response, status_code, headers
1209
1289
  end
1210
1290
 
1291
+ # Unreview translations selected by query
1292
+ # Unreview translations matching query.
1293
+ # @param project_id [String] Project ID
1294
+ # @param translations_unreview_parameters [TranslationsUnreviewParameters]
1295
+ # @param [Hash] opts the optional parameters
1296
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
1297
+ # @return [AffectedCount]
1298
+ def translations_unreview_collection(project_id, translations_unreview_parameters, opts = {})
1299
+ data, _status_code, _headers = translations_unreview_collection_with_http_info(project_id, translations_unreview_parameters, opts)
1300
+ data
1301
+ end
1302
+
1303
+ # Unreview translations selected by query
1304
+ # Unreview translations matching query.
1305
+ # @param project_id [String] Project ID
1306
+ # @param translations_unreview_parameters [TranslationsUnreviewParameters]
1307
+ # @param [Hash] opts the optional parameters
1308
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
1309
+ # @return [Array<(Response<(AffectedCount)>, Integer, Hash)>] Response<(AffectedCount)> data, response status code and response headers
1310
+ def translations_unreview_collection_with_http_info(project_id, translations_unreview_parameters, opts = {})
1311
+ if @api_client.config.debugging
1312
+ @api_client.config.logger.debug 'Calling API: TranslationsApi.translations_unreview_collection ...'
1313
+ end
1314
+ # verify the required parameter 'project_id' is set
1315
+ if @api_client.config.client_side_validation && project_id.nil?
1316
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling TranslationsApi.translations_unreview_collection"
1317
+ end
1318
+ # verify the required parameter 'translations_unreview_parameters' is set
1319
+ if @api_client.config.client_side_validation && translations_unreview_parameters.nil?
1320
+ fail ArgumentError, "Missing the required parameter 'translations_unreview_parameters' when calling TranslationsApi.translations_unreview_collection"
1321
+ end
1322
+ # resource path
1323
+ local_var_path = '/projects/{project_id}/translations/unreview'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
1324
+
1325
+ # query parameters
1326
+ query_params = opts[:query_params] || {}
1327
+
1328
+ # header parameters
1329
+ header_params = opts[:header_params] || {}
1330
+ # HTTP header 'Accept' (if needed)
1331
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1332
+ # HTTP header 'Content-Type'
1333
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1334
+ header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
1335
+
1336
+ # form parameters
1337
+ form_params = opts[:form_params] || {}
1338
+
1339
+ # http body (model)
1340
+ post_body = opts[:body] || @api_client.object_to_http_body(translations_unreview_parameters)
1341
+
1342
+ # return_type
1343
+ return_type = opts[:return_type] || 'AffectedCount'
1344
+
1345
+ # auth_names
1346
+ auth_names = opts[:auth_names] || ['Basic', 'Token']
1347
+
1348
+ new_options = opts.merge(
1349
+ :header_params => header_params,
1350
+ :query_params => query_params,
1351
+ :form_params => form_params,
1352
+ :body => post_body,
1353
+ :auth_names => auth_names,
1354
+ :return_type => return_type
1355
+ )
1356
+
1357
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1358
+ if @api_client.config.debugging
1359
+ @api_client.config.logger.debug "API called: TranslationsApi#translations_unreview_collection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1360
+ end
1361
+ response = ::Phrase::Response.new(data, headers)
1362
+ return response, status_code, headers
1363
+ end
1364
+
1211
1365
  # Unverify translations by query
1212
1366
  # Mark translations matching query as unverified.
1213
1367
  # @param project_id [String] Project ID
@@ -28,6 +28,7 @@ module Phrase
28
28
  # @option opts [Object] :locale_mapping Mapping between locale names and translation columns. Required in some formats like CSV or XLSX.
29
29
  # @option opts [Object] :format_options Additional options available for specific formats. See our format guide for the [complete list](https://support.phrase.com/hc/en-us/articles/9652464547740-List-of-Supported-File-Types-Strings).
30
30
  # @option opts [Boolean] :autotranslate If set, translations for the uploaded language will be fetched automatically.
31
+ # @option opts [Boolean] :verify_mentioned_translations Indicates whether all translations mentioned in the upload should be verified. (default to false)
31
32
  # @option opts [Boolean] :mark_reviewed Indicated whether the imported translations should be marked as reviewed. This setting is available if the review workflow is enabled for the project.
32
33
  # @option opts [Boolean] :tag_only_affected_keys Indicates whether only keys affected (created or updated) by the upload should be tagged. The default is &#x60;false&#x60; (default to false)
33
34
  # @option opts [String] :translation_key_prefix This prefix will be added to all uploaded translation key names to prevent collisions. Use a meaningful prefix related to your project or file to keep key names organized.
@@ -58,6 +59,7 @@ module Phrase
58
59
  # @option opts [Object] :locale_mapping Mapping between locale names and translation columns. Required in some formats like CSV or XLSX.
59
60
  # @option opts [Object] :format_options Additional options available for specific formats. See our format guide for the [complete list](https://support.phrase.com/hc/en-us/articles/9652464547740-List-of-Supported-File-Types-Strings).
60
61
  # @option opts [Boolean] :autotranslate If set, translations for the uploaded language will be fetched automatically.
62
+ # @option opts [Boolean] :verify_mentioned_translations Indicates whether all translations mentioned in the upload should be verified.
61
63
  # @option opts [Boolean] :mark_reviewed Indicated whether the imported translations should be marked as reviewed. This setting is available if the review workflow is enabled for the project.
62
64
  # @option opts [Boolean] :tag_only_affected_keys Indicates whether only keys affected (created or updated) by the upload should be tagged. The default is &#x60;false&#x60;
63
65
  # @option opts [String] :translation_key_prefix This prefix will be added to all uploaded translation key names to prevent collisions. Use a meaningful prefix related to your project or file to keep key names organized.
@@ -114,6 +116,7 @@ module Phrase
114
116
  form_params['locale_mapping'] = opts[:'locale_mapping'] if !opts[:'locale_mapping'].nil?
115
117
  form_params['format_options'] = opts[:'format_options'] if !opts[:'format_options'].nil?
116
118
  form_params['autotranslate'] = opts[:'autotranslate'] if !opts[:'autotranslate'].nil?
119
+ form_params['verify_mentioned_translations'] = opts[:'verify_mentioned_translations'] if !opts[:'verify_mentioned_translations'].nil?
117
120
  form_params['mark_reviewed'] = opts[:'mark_reviewed'] if !opts[:'mark_reviewed'].nil?
118
121
  form_params['tag_only_affected_keys'] = opts[:'tag_only_affected_keys'] if !opts[:'tag_only_affected_keys'].nil?
119
122
  form_params['translation_key_prefix'] = opts[:'translation_key_prefix'] if !opts[:'translation_key_prefix'].nil?
@@ -14,7 +14,7 @@ module Phrase
14
14
  # List of locale ids that will be part of distribution releases
15
15
  attr_accessor :locale_ids
16
16
 
17
- # Additional formatting and render options. Only <code>enclose_in_cdata</code> is available for platform <code>android</code>.
17
+ # Additional formatting and render options. Only `enclose_in_cdata` is available for platform `android`.
18
18
  attr_accessor :format_options
19
19
 
20
20
  # Use fallback locale if there is no translation in the current locale.
@@ -14,7 +14,7 @@ module Phrase
14
14
  # List of locale ids that will be part of distribution releases
15
15
  attr_accessor :locale_ids
16
16
 
17
- # Additional formatting and render options. Only <code>enclose_in_cdata</code> is available for platform <code>android</code>.
17
+ # Additional formatting and render options. Only `enclose_in_cdata` is available for platform `android`.
18
18
  attr_accessor :format_options
19
19
 
20
20
  # Use fallback locale if there is no translation in the current locale.
@@ -2,7 +2,7 @@ require 'date'
2
2
 
3
3
  module Phrase
4
4
  class InvitationCreateParameters
5
- # The email of the invited user. The <code>email</code> can not be updated once created. Create a new invitation for each unique email.
5
+ # The email of the invited user. The `email` can not be updated once created. Create a new invitation for each unique email.
6
6
  attr_accessor :email
7
7
 
8
8
  # Invitiation role, can be any of Manager, Developer, Translator.
@@ -23,7 +23,7 @@ module Phrase
23
23
  # List of default locales for the user.
24
24
  attr_accessor :default_locale_codes
25
25
 
26
- # Additional permissions depending on invitation role. Available permissions are <code>create_upload</code> and <code>review_translations</code>
26
+ # Additional permissions depending on invitation role. Available permissions are `create_upload` and `review_translations`
27
27
  attr_accessor :permissions
28
28
 
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,6 +14,9 @@ module Phrase
14
14
  # Indicates whether key supports pluralization
15
15
  attr_accessor :plural
16
16
 
17
+ # Indicates whether key uses ordinal rules for pluralization
18
+ attr_accessor :use_ordinal_rules
19
+
17
20
  # Plural name for the key (used in some file formats, e.g. Gettext)
18
21
  attr_accessor :name_plural
19
22
 
@@ -63,6 +66,7 @@ module Phrase
63
66
  :'name' => :'name',
64
67
  :'description' => :'description',
65
68
  :'plural' => :'plural',
69
+ :'use_ordinal_rules' => :'use_ordinal_rules',
66
70
  :'name_plural' => :'name_plural',
67
71
  :'data_type' => :'data_type',
68
72
  :'tags' => :'tags',
@@ -87,6 +91,7 @@ module Phrase
87
91
  :'name' => :'String',
88
92
  :'description' => :'String',
89
93
  :'plural' => :'Boolean',
94
+ :'use_ordinal_rules' => :'Boolean',
90
95
  :'name_plural' => :'String',
91
96
  :'data_type' => :'String',
92
97
  :'tags' => :'String',
@@ -141,6 +146,10 @@ module Phrase
141
146
  self.plural = attributes[:'plural']
142
147
  end
143
148
 
149
+ if attributes.key?(:'use_ordinal_rules')
150
+ self.use_ordinal_rules = attributes[:'use_ordinal_rules']
151
+ end
152
+
144
153
  if attributes.key?(:'name_plural')
145
154
  self.name_plural = attributes[:'name_plural']
146
155
  end
@@ -225,6 +234,7 @@ module Phrase
225
234
  name == o.name &&
226
235
  description == o.description &&
227
236
  plural == o.plural &&
237
+ use_ordinal_rules == o.use_ordinal_rules &&
228
238
  name_plural == o.name_plural &&
229
239
  data_type == o.data_type &&
230
240
  tags == o.tags &&
@@ -250,7 +260,7 @@ module Phrase
250
260
  # Calculates hash code according to all attributes.
251
261
  # @return [Integer] Hash code
252
262
  def hash
253
- [branch, name, description, plural, name_plural, data_type, tags, max_characters_allowed, screenshot, remove_screenshot, unformatted, default_translation_content, autotranslate, xml_space_preserve, original_file, localized_format_string, localized_format_key, custom_metadata].hash
263
+ [branch, name, description, plural, use_ordinal_rules, name_plural, data_type, tags, max_characters_allowed, screenshot, remove_screenshot, unformatted, default_translation_content, autotranslate, xml_space_preserve, original_file, localized_format_string, localized_format_key, custom_metadata].hash
254
264
  end
255
265
 
256
266
  # Builds the object from hash
@@ -8,12 +8,15 @@ module Phrase
8
8
 
9
9
  attr_accessor :plural
10
10
 
11
+ attr_accessor :use_ordinal_rules
12
+
11
13
  # Attribute mapping from ruby-style variable name to JSON key.
12
14
  def self.attribute_map
13
15
  {
14
16
  :'id' => :'id',
15
17
  :'name' => :'name',
16
- :'plural' => :'plural'
18
+ :'plural' => :'plural',
19
+ :'use_ordinal_rules' => :'use_ordinal_rules'
17
20
  }
18
21
  end
19
22
 
@@ -22,7 +25,8 @@ module Phrase
22
25
  {
23
26
  :'id' => :'String',
24
27
  :'name' => :'String',
25
- :'plural' => :'Boolean'
28
+ :'plural' => :'Boolean',
29
+ :'use_ordinal_rules' => :'Boolean'
26
30
  }
27
31
  end
28
32
 
@@ -58,6 +62,10 @@ module Phrase
58
62
  if attributes.key?(:'plural')
59
63
  self.plural = attributes[:'plural']
60
64
  end
65
+
66
+ if attributes.key?(:'use_ordinal_rules')
67
+ self.use_ordinal_rules = attributes[:'use_ordinal_rules']
68
+ end
61
69
  end
62
70
 
63
71
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -80,7 +88,8 @@ module Phrase
80
88
  self.class == o.class &&
81
89
  id == o.id &&
82
90
  name == o.name &&
83
- plural == o.plural
91
+ plural == o.plural &&
92
+ use_ordinal_rules == o.use_ordinal_rules
84
93
  end
85
94
 
86
95
  # @see the `==` method
@@ -92,7 +101,7 @@ module Phrase
92
101
  # Calculates hash code according to all attributes.
93
102
  # @return [Integer] Hash code
94
103
  def hash
95
- [id, name, plural].hash
104
+ [id, name, plural, use_ordinal_rules].hash
96
105
  end
97
106
 
98
107
  # Builds the object from hash
@@ -14,6 +14,9 @@ module Phrase
14
14
  # Indicates whether key supports pluralization
15
15
  attr_accessor :plural
16
16
 
17
+ # Indicates whether key uses ordinal rules for pluralization
18
+ attr_accessor :use_ordinal_rules
19
+
17
20
  # Plural name for the key (used in some file formats, e.g. Gettext)
18
21
  attr_accessor :name_plural
19
22
 
@@ -57,6 +60,7 @@ module Phrase
57
60
  :'name' => :'name',
58
61
  :'description' => :'description',
59
62
  :'plural' => :'plural',
63
+ :'use_ordinal_rules' => :'use_ordinal_rules',
60
64
  :'name_plural' => :'name_plural',
61
65
  :'data_type' => :'data_type',
62
66
  :'tags' => :'tags',
@@ -79,6 +83,7 @@ module Phrase
79
83
  :'name' => :'String',
80
84
  :'description' => :'String',
81
85
  :'plural' => :'Boolean',
86
+ :'use_ordinal_rules' => :'Boolean',
82
87
  :'name_plural' => :'String',
83
88
  :'data_type' => :'String',
84
89
  :'tags' => :'String',
@@ -131,6 +136,10 @@ module Phrase
131
136
  self.plural = attributes[:'plural']
132
137
  end
133
138
 
139
+ if attributes.key?(:'use_ordinal_rules')
140
+ self.use_ordinal_rules = attributes[:'use_ordinal_rules']
141
+ end
142
+
134
143
  if attributes.key?(:'name_plural')
135
144
  self.name_plural = attributes[:'name_plural']
136
145
  end
@@ -202,6 +211,7 @@ module Phrase
202
211
  name == o.name &&
203
212
  description == o.description &&
204
213
  plural == o.plural &&
214
+ use_ordinal_rules == o.use_ordinal_rules &&
205
215
  name_plural == o.name_plural &&
206
216
  data_type == o.data_type &&
207
217
  tags == o.tags &&
@@ -225,7 +235,7 @@ module Phrase
225
235
  # Calculates hash code according to all attributes.
226
236
  # @return [Integer] Hash code
227
237
  def hash
228
- [branch, name, description, plural, name_plural, data_type, tags, max_characters_allowed, screenshot, remove_screenshot, unformatted, xml_space_preserve, original_file, localized_format_string, localized_format_key, custom_metadata].hash
238
+ [branch, name, description, plural, use_ordinal_rules, name_plural, data_type, tags, max_characters_allowed, screenshot, remove_screenshot, unformatted, xml_space_preserve, original_file, localized_format_string, localized_format_key, custom_metadata].hash
229
239
  end
230
240
 
231
241
  # Builds the object from hash
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # 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 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 tags</li> <li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li> <li><code>updated_at:{>=|<=}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. When multiple upload IDs provided, matches only keys not mentioned in <strong>all</strong> uploads</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
8
+ # Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: - `ids:key_id,...` for queries on a comma-separated list of ids - `name:key_name` for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes - `tags:tag_name` to filter for keys with certain tags - `translated:{true|false}` for translation status (also requires `locale_id` to be specified) - `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries - `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads Find more examples [here](/en/api/strings/usage-examples).
9
9
  attr_accessor :q
10
10
 
11
11
  # Locale used to exlcude or include keys.
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # 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 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 tags</li> <li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li> <li><code>updated_at:{>=|<=}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. When multiple upload IDs provided, matches only keys not mentioned in <strong>all</strong> uploads</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
8
+ # Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: * `ids:key_id,...` for queries on a comma-separated list of ids * `name:key_name` for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes * `tags:tag_name` to filter for keys with certain tags * `translated:{true|false}` for translation status (also requires `locale_id` to be specified) * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries * `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads Find more examples [here](/en/api/strings/usage-examples).
9
9
  attr_accessor :q
10
10
 
11
11
  # Locale used to exlcude or include keys.
@@ -11,7 +11,7 @@ module Phrase
11
11
  # Order direction. Can be one of: asc, desc.
12
12
  attr_accessor :order
13
13
 
14
- # 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. When multiple upload IDs provided, matches only keys not mentioned in <strong>all</strong> uploads</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>. Please note: If <code>tags</code> are added to filter the search, the search will be limited to a maximum of 65,536 tagged keys.
14
+ # Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: * `ids:key_id,...` for queries on a comma-separated list of ids * `name:key_name,...` for text queries on a comma-seperated list of exact key names - spaces, commas, and colons need to be escaped with double backslashes * `tags:tag_name,...` to filter for keys with certain comma-seperated list of tags * `uploads:upload_id,...` to filter for keys with certain comma-seperated list of uploads * `job:{true|false}` to filter for keys mentioned in an active job * `translated:{true|false}` for translation status (also requires `locale_id` to be specified) * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries * `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads Find more examples [here](/en/api/strings/usage-examples). Please note: If `tags` are added to filter the search, the search will be limited to a maximum of 65,536 tagged keys.
15
15
  attr_accessor :q
16
16
 
17
17
  # Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # 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 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 tags</li> <li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li> <li><code>updated_at:{>=|<=}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. When multiple upload IDs provided, matches only keys not mentioned in <strong>all</strong> uploads</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
8
+ # Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: * `ids:key_id,...` for queries on a comma-separated list of ids * `name:key_name` for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes * `tags:tag_name` to filter for keys with certain tags * `translated:{true|false}` for translation status (also requires `locale_id` to be specified) * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries * `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads Find more examples [here](/en/api/strings/usage-examples).
9
9
  attr_accessor :q
10
10
 
11
11
  # Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # 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 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 tags</li> <li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li> <li><code>updated_at:{>=|<=}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. When multiple upload IDs provided, matches only keys not mentioned in <strong>all</strong> uploads</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
8
+ # Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: * `ids:key_id,...` for queries on a comma-separated list of ids * `name:key_name` for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes * `tags:tag_name` to filter for keys with certain tags * `translated:{true|false}` for translation status (also requires `locale_id` to be specified) * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries * `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads Find more examples [here](/en/api/strings/usage-examples).
9
9
  attr_accessor :q
10
10
 
11
11
  # Locale used to determine the translation state of a key when filtering for untranslated or translated keys.