mailslurp_client 11.1.0 → 11.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4cffc3d4ad26c6083619d2b55319d076433419ba6ab9191aafc722c667845b3
4
- data.tar.gz: 262f90db6488aea3d4d8447da81bac53f44236dbc427728218ee5c91bfcb1120
3
+ metadata.gz: f4ab99cf6e32e9b983aba0a4af539dc48d6ec35dfed539ef5c4c32c859bc8d09
4
+ data.tar.gz: 22c979df15e3c0c7fae1ec784b872104d8f72cc7e83094640ecd49adcf5c03ba
5
5
  SHA512:
6
- metadata.gz: 625752091e51d5c99781c83b72949a817282e9a5d8f0d7445221fa4427ccf50567bfc7de87928af346623d6096d577a9104ab1c0e81ad112d64047e1ba599160
7
- data.tar.gz: 821885d3019eaa556822ded8ecb2f5d9365e360d22a4da426961dc68d4b5572be3786a676045d37dae447a7420724f1cdfa7bd893b179e0fe711d7ecaa3a5700
6
+ metadata.gz: 512ea12d39289c7404a0ef94b0a34d81969c05efd2c7a1c986be0c1aeb86960dffe6f7d3edaf6db6c796fb36bd12dd70900df1b78307b77d099a58b702b8f95d
7
+ data.tar.gz: 8103ac2eaae0f5281d7f625578676ce8505c3c392266ba6ca6dcb19375c4cba192200a1a0489e91fa703c65bb81c430dbecc51d373c7cc407993da75dcaf5980
@@ -673,21 +673,21 @@ module MailSlurpClient
673
673
  # Parse and return text from an email, stripping HTML and decoding encoded characters
674
674
  # Parse an email body and return the content as an array of text. HTML parsing uses JSoup which supports JQuery/CSS style selectors
675
675
  # @param email_id [String] ID of email to perform HTML query on
676
- # @param html_selector [String] HTML selector to search for. Uses JQuery/JSoup/CSS style selector like '.my-div' to match content. See https://jsoup.org/apidocs/org/jsoup/select/Selector.html for more information.
677
676
  # @param [Hash] opts the optional parameters
677
+ # @option opts [String] :html_selector HTML selector to search for. Uses JQuery/JSoup/CSS style selector like '.my-div' to match content. See https://jsoup.org/apidocs/org/jsoup/select/Selector.html for more information.
678
678
  # @return [EmailTextLinesResult]
679
- def get_email_html_query(email_id, html_selector, opts = {})
680
- data, _status_code, _headers = get_email_html_query_with_http_info(email_id, html_selector, opts)
679
+ def get_email_html_query(email_id, opts = {})
680
+ data, _status_code, _headers = get_email_html_query_with_http_info(email_id, opts)
681
681
  data
682
682
  end
683
683
 
684
684
  # Parse and return text from an email, stripping HTML and decoding encoded characters
685
685
  # Parse an email body and return the content as an array of text. HTML parsing uses JSoup which supports JQuery/CSS style selectors
686
686
  # @param email_id [String] ID of email to perform HTML query on
687
- # @param html_selector [String] HTML selector to search for. Uses JQuery/JSoup/CSS style selector like '.my-div' to match content. See https://jsoup.org/apidocs/org/jsoup/select/Selector.html for more information.
688
687
  # @param [Hash] opts the optional parameters
688
+ # @option opts [String] :html_selector HTML selector to search for. Uses JQuery/JSoup/CSS style selector like '.my-div' to match content. See https://jsoup.org/apidocs/org/jsoup/select/Selector.html for more information.
689
689
  # @return [Array<(EmailTextLinesResult, Integer, Hash)>] EmailTextLinesResult data, response status code and response headers
690
- def get_email_html_query_with_http_info(email_id, html_selector, opts = {})
690
+ def get_email_html_query_with_http_info(email_id, opts = {})
691
691
  if @api_client.config.debugging
692
692
  @api_client.config.logger.debug 'Calling API: EmailControllerApi.get_email_html_query ...'
693
693
  end
@@ -695,15 +695,12 @@ module MailSlurpClient
695
695
  if @api_client.config.client_side_validation && email_id.nil?
696
696
  fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.get_email_html_query"
697
697
  end
698
- # verify the required parameter 'html_selector' is set
699
- if @api_client.config.client_side_validation && html_selector.nil?
700
- fail ArgumentError, "Missing the required parameter 'html_selector' when calling EmailControllerApi.get_email_html_query"
701
- end
702
698
  # resource path
703
- local_var_path = '/emails/{emailId}/html-query'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s)).sub('{' + 'htmlSelector' + '}', CGI.escape(html_selector.to_s))
699
+ local_var_path = '/emails/{emailId}/html-query'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
704
700
 
705
701
  # query parameters
706
702
  query_params = opts[:query_params] || {}
703
+ query_params[:'htmlSelector'] = opts[:'html_selector'] if !opts[:'html_selector'].nil?
707
704
 
708
705
  # header parameters
709
706
  header_params = opts[:header_params] || {}
@@ -740,38 +737,35 @@ module MailSlurpClient
740
737
 
741
738
  # Parse and return text from an email, stripping HTML and decoding encoded characters
742
739
  # Parse an email body and return the content as an array of strings. HTML parsing uses JSoup and UNIX line separators.
743
- # @param decode_html_entities [Boolean] Decode HTML entities
744
740
  # @param email_id [String] ID of email to fetch text for
745
741
  # @param [Hash] opts the optional parameters
742
+ # @option opts [Boolean] :decode_html_entities Decode HTML entities
746
743
  # @return [EmailTextLinesResult]
747
- def get_email_text_lines(decode_html_entities, email_id, opts = {})
748
- data, _status_code, _headers = get_email_text_lines_with_http_info(decode_html_entities, email_id, opts)
744
+ def get_email_text_lines(email_id, opts = {})
745
+ data, _status_code, _headers = get_email_text_lines_with_http_info(email_id, opts)
749
746
  data
750
747
  end
751
748
 
752
749
  # Parse and return text from an email, stripping HTML and decoding encoded characters
753
750
  # Parse an email body and return the content as an array of strings. HTML parsing uses JSoup and UNIX line separators.
754
- # @param decode_html_entities [Boolean] Decode HTML entities
755
751
  # @param email_id [String] ID of email to fetch text for
756
752
  # @param [Hash] opts the optional parameters
753
+ # @option opts [Boolean] :decode_html_entities Decode HTML entities
757
754
  # @return [Array<(EmailTextLinesResult, Integer, Hash)>] EmailTextLinesResult data, response status code and response headers
758
- def get_email_text_lines_with_http_info(decode_html_entities, email_id, opts = {})
755
+ def get_email_text_lines_with_http_info(email_id, opts = {})
759
756
  if @api_client.config.debugging
760
757
  @api_client.config.logger.debug 'Calling API: EmailControllerApi.get_email_text_lines ...'
761
758
  end
762
- # verify the required parameter 'decode_html_entities' is set
763
- if @api_client.config.client_side_validation && decode_html_entities.nil?
764
- fail ArgumentError, "Missing the required parameter 'decode_html_entities' when calling EmailControllerApi.get_email_text_lines"
765
- end
766
759
  # verify the required parameter 'email_id' is set
767
760
  if @api_client.config.client_side_validation && email_id.nil?
768
761
  fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.get_email_text_lines"
769
762
  end
770
763
  # resource path
771
- local_var_path = '/emails/{emailId}/text'.sub('{' + 'decodeHtmlEntities' + '}', CGI.escape(decode_html_entities.to_s)).sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
764
+ local_var_path = '/emails/{emailId}/text'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
772
765
 
773
766
  # query parameters
774
767
  query_params = opts[:query_params] || {}
768
+ query_params[:'decodeHtmlEntities'] = opts[:'decode_html_entities'] if !opts[:'decode_html_entities'].nil?
775
769
 
776
770
  # header parameters
777
771
  header_params = opts[:header_params] || {}
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '11.1.0'
14
+ VERSION = '11.1.1'
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailslurp_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.1.0
4
+ version: 11.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp