ultracart_api 4.1.177 → 4.1.179

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.
@@ -2930,6 +2930,225 @@ module UltracartClient
2930
2930
  return data, status_code, headers
2931
2931
  end
2932
2932
 
2933
+ # Get a screen recording
2934
+ # One recorded visitor session and its page views, with each page view's named events such as rage clicks, script errors and checkout errors, but without the replay data. Fetch a page view's replay events separately. Find recordings to look at from the heatmaps or the analytics warehouse. The visitor's email, IP address and visitor id are not returned, nor what they typed into form fields. Reading a recording does not mark it watched.
2935
+ # @param storefront_oid [Integer]
2936
+ # @param screen_recording_uuid [String]
2937
+ # @param [Hash] opts the optional parameters
2938
+ # @return [SfvbRecordingResponse]
2939
+ def get_sfvb_recording(storefront_oid, screen_recording_uuid, opts = {})
2940
+ data, _status_code, _headers = get_sfvb_recording_with_http_info(storefront_oid, screen_recording_uuid, opts)
2941
+ data
2942
+ end
2943
+
2944
+ # Get a screen recording
2945
+ # One recorded visitor session and its page views, with each page view's named events such as rage clicks, script errors and checkout errors, but without the replay data. Fetch a page view's replay events separately. Find recordings to look at from the heatmaps or the analytics warehouse. The visitor's email, IP address and visitor id are not returned, nor what they typed into form fields. Reading a recording does not mark it watched.
2946
+ # @param storefront_oid [Integer]
2947
+ # @param screen_recording_uuid [String]
2948
+ # @param [Hash] opts the optional parameters
2949
+ # @return [Array<(SfvbRecordingResponse, Integer, Hash)>] SfvbRecordingResponse data, response status code and response headers
2950
+ def get_sfvb_recording_with_http_info(storefront_oid, screen_recording_uuid, opts = {})
2951
+ if @api_client.config.debugging
2952
+ @api_client.config.logger.debug 'Calling API: SfvbApi.get_sfvb_recording ...'
2953
+ end
2954
+ # verify the required parameter 'storefront_oid' is set
2955
+ if @api_client.config.client_side_validation && storefront_oid.nil?
2956
+ fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling SfvbApi.get_sfvb_recording"
2957
+ end
2958
+ # verify the required parameter 'screen_recording_uuid' is set
2959
+ if @api_client.config.client_side_validation && screen_recording_uuid.nil?
2960
+ fail ArgumentError, "Missing the required parameter 'screen_recording_uuid' when calling SfvbApi.get_sfvb_recording"
2961
+ end
2962
+ # resource path
2963
+ local_var_path = '/sfvb/storefronts/{storefront_oid}/recordings/{screen_recording_uuid}'.sub('{' + 'storefront_oid' + '}', CGI.escape(storefront_oid.to_s)).sub('{' + 'screen_recording_uuid' + '}', CGI.escape(screen_recording_uuid.to_s))
2964
+
2965
+ # query parameters
2966
+ query_params = opts[:query_params] || {}
2967
+
2968
+ # header parameters
2969
+ header_params = opts[:header_params] || {}
2970
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
2971
+ # HTTP header 'Accept' (if needed)
2972
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2973
+
2974
+ # form parameters
2975
+ form_params = opts[:form_params] || {}
2976
+
2977
+ # http body (model)
2978
+ post_body = opts[:debug_body]
2979
+
2980
+ # return_type
2981
+ return_type = opts[:debug_return_type] || 'SfvbRecordingResponse'
2982
+
2983
+ # auth_names
2984
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
2985
+
2986
+ new_options = opts.merge(
2987
+ :operation => :"SfvbApi.get_sfvb_recording",
2988
+ :header_params => header_params,
2989
+ :query_params => query_params,
2990
+ :form_params => form_params,
2991
+ :body => post_body,
2992
+ :auth_names => auth_names,
2993
+ :return_type => return_type
2994
+ )
2995
+
2996
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2997
+ if @api_client.config.debugging
2998
+ @api_client.config.logger.debug "API called: SfvbApi#get_sfvb_recording\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2999
+ end
3000
+ return data, status_code, headers
3001
+ end
3002
+
3003
+ # Get one recorded page view's replay events
3004
+ # The rrweb events for one page view, as a JSON array in a string, for replaying on the caller's own machine. Card fields are masked by the recorder, but other text the visitor typed can appear. Limited per account to 30 page views a minute, 300 an hour and 1000 a day. Reading the events does not mark the recording watched.
3005
+ # @param storefront_oid [Integer]
3006
+ # @param screen_recording_uuid [String]
3007
+ # @param screen_recording_page_view_uuid [String]
3008
+ # @param [Hash] opts the optional parameters
3009
+ # @return [SfvbRecordingEventsResponse]
3010
+ def get_sfvb_recording_page_view_events(storefront_oid, screen_recording_uuid, screen_recording_page_view_uuid, opts = {})
3011
+ data, _status_code, _headers = get_sfvb_recording_page_view_events_with_http_info(storefront_oid, screen_recording_uuid, screen_recording_page_view_uuid, opts)
3012
+ data
3013
+ end
3014
+
3015
+ # Get one recorded page view&#39;s replay events
3016
+ # The rrweb events for one page view, as a JSON array in a string, for replaying on the caller&#39;s own machine. Card fields are masked by the recorder, but other text the visitor typed can appear. Limited per account to 30 page views a minute, 300 an hour and 1000 a day. Reading the events does not mark the recording watched.
3017
+ # @param storefront_oid [Integer]
3018
+ # @param screen_recording_uuid [String]
3019
+ # @param screen_recording_page_view_uuid [String]
3020
+ # @param [Hash] opts the optional parameters
3021
+ # @return [Array<(SfvbRecordingEventsResponse, Integer, Hash)>] SfvbRecordingEventsResponse data, response status code and response headers
3022
+ def get_sfvb_recording_page_view_events_with_http_info(storefront_oid, screen_recording_uuid, screen_recording_page_view_uuid, opts = {})
3023
+ if @api_client.config.debugging
3024
+ @api_client.config.logger.debug 'Calling API: SfvbApi.get_sfvb_recording_page_view_events ...'
3025
+ end
3026
+ # verify the required parameter 'storefront_oid' is set
3027
+ if @api_client.config.client_side_validation && storefront_oid.nil?
3028
+ fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling SfvbApi.get_sfvb_recording_page_view_events"
3029
+ end
3030
+ # verify the required parameter 'screen_recording_uuid' is set
3031
+ if @api_client.config.client_side_validation && screen_recording_uuid.nil?
3032
+ fail ArgumentError, "Missing the required parameter 'screen_recording_uuid' when calling SfvbApi.get_sfvb_recording_page_view_events"
3033
+ end
3034
+ # verify the required parameter 'screen_recording_page_view_uuid' is set
3035
+ if @api_client.config.client_side_validation && screen_recording_page_view_uuid.nil?
3036
+ fail ArgumentError, "Missing the required parameter 'screen_recording_page_view_uuid' when calling SfvbApi.get_sfvb_recording_page_view_events"
3037
+ end
3038
+ # resource path
3039
+ local_var_path = '/sfvb/storefronts/{storefront_oid}/recordings/{screen_recording_uuid}/page_views/{screen_recording_page_view_uuid}/events'.sub('{' + 'storefront_oid' + '}', CGI.escape(storefront_oid.to_s)).sub('{' + 'screen_recording_uuid' + '}', CGI.escape(screen_recording_uuid.to_s)).sub('{' + 'screen_recording_page_view_uuid' + '}', CGI.escape(screen_recording_page_view_uuid.to_s))
3040
+
3041
+ # query parameters
3042
+ query_params = opts[:query_params] || {}
3043
+
3044
+ # header parameters
3045
+ header_params = opts[:header_params] || {}
3046
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
3047
+ # HTTP header 'Accept' (if needed)
3048
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3049
+
3050
+ # form parameters
3051
+ form_params = opts[:form_params] || {}
3052
+
3053
+ # http body (model)
3054
+ post_body = opts[:debug_body]
3055
+
3056
+ # return_type
3057
+ return_type = opts[:debug_return_type] || 'SfvbRecordingEventsResponse'
3058
+
3059
+ # auth_names
3060
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
3061
+
3062
+ new_options = opts.merge(
3063
+ :operation => :"SfvbApi.get_sfvb_recording_page_view_events",
3064
+ :header_params => header_params,
3065
+ :query_params => query_params,
3066
+ :form_params => form_params,
3067
+ :body => post_body,
3068
+ :auth_names => auth_names,
3069
+ :return_type => return_type
3070
+ )
3071
+
3072
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3073
+ if @api_client.config.debugging
3074
+ @api_client.config.logger.debug "API called: SfvbApi#get_sfvb_recording_page_view_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3075
+ end
3076
+ return data, status_code, headers
3077
+ end
3078
+
3079
+ # Get one storefront render log
3080
+ # One render's server log with its lines, each with a level, a category such as VELOCITY or FLOW, and the message. log_id comes from the list, or from the X-UltraCart-Storefront-Log-Id header a page sends inside an SFVB preview session. min_level is debug, info, warn or error, default debug.
3081
+ # @param storefront_oid [Integer]
3082
+ # @param log_id [String]
3083
+ # @param [Hash] opts the optional parameters
3084
+ # @option opts [String] :min_level
3085
+ # @return [SfvbServerLogDetail]
3086
+ def get_sfvb_server_log(storefront_oid, log_id, opts = {})
3087
+ data, _status_code, _headers = get_sfvb_server_log_with_http_info(storefront_oid, log_id, opts)
3088
+ data
3089
+ end
3090
+
3091
+ # Get one storefront render log
3092
+ # One render&#39;s server log with its lines, each with a level, a category such as VELOCITY or FLOW, and the message. log_id comes from the list, or from the X-UltraCart-Storefront-Log-Id header a page sends inside an SFVB preview session. min_level is debug, info, warn or error, default debug.
3093
+ # @param storefront_oid [Integer]
3094
+ # @param log_id [String]
3095
+ # @param [Hash] opts the optional parameters
3096
+ # @option opts [String] :min_level
3097
+ # @return [Array<(SfvbServerLogDetail, Integer, Hash)>] SfvbServerLogDetail data, response status code and response headers
3098
+ def get_sfvb_server_log_with_http_info(storefront_oid, log_id, opts = {})
3099
+ if @api_client.config.debugging
3100
+ @api_client.config.logger.debug 'Calling API: SfvbApi.get_sfvb_server_log ...'
3101
+ end
3102
+ # verify the required parameter 'storefront_oid' is set
3103
+ if @api_client.config.client_side_validation && storefront_oid.nil?
3104
+ fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling SfvbApi.get_sfvb_server_log"
3105
+ end
3106
+ # verify the required parameter 'log_id' is set
3107
+ if @api_client.config.client_side_validation && log_id.nil?
3108
+ fail ArgumentError, "Missing the required parameter 'log_id' when calling SfvbApi.get_sfvb_server_log"
3109
+ end
3110
+ # resource path
3111
+ local_var_path = '/sfvb/storefronts/{storefront_oid}/logs/{log_id}'.sub('{' + 'storefront_oid' + '}', CGI.escape(storefront_oid.to_s)).sub('{' + 'log_id' + '}', CGI.escape(log_id.to_s))
3112
+
3113
+ # query parameters
3114
+ query_params = opts[:query_params] || {}
3115
+ query_params[:'min_level'] = opts[:'min_level'] if !opts[:'min_level'].nil?
3116
+
3117
+ # header parameters
3118
+ header_params = opts[:header_params] || {}
3119
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
3120
+ # HTTP header 'Accept' (if needed)
3121
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3122
+
3123
+ # form parameters
3124
+ form_params = opts[:form_params] || {}
3125
+
3126
+ # http body (model)
3127
+ post_body = opts[:debug_body]
3128
+
3129
+ # return_type
3130
+ return_type = opts[:debug_return_type] || 'SfvbServerLogDetail'
3131
+
3132
+ # auth_names
3133
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
3134
+
3135
+ new_options = opts.merge(
3136
+ :operation => :"SfvbApi.get_sfvb_server_log",
3137
+ :header_params => header_params,
3138
+ :query_params => query_params,
3139
+ :form_params => form_params,
3140
+ :body => post_body,
3141
+ :auth_names => auth_names,
3142
+ :return_type => return_type
3143
+ )
3144
+
3145
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3146
+ if @api_client.config.debugging
3147
+ @api_client.config.logger.debug "API called: SfvbApi#get_sfvb_server_log\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3148
+ end
3149
+ return data, status_code, headers
3150
+ end
3151
+
2933
3152
  # Read a storefront's site attributes
2934
3153
  # The values the siteattribute element and $site.attr render. These are not in any file or theme. Attributes a template declares but nothing has set are included with the template's default, so the response describes what the templates can render rather than only what has been saved. Credentials stored as site attributes are never included.
2935
3154
  # @param storefront_oid [Integer]
@@ -4418,6 +4637,82 @@ module UltracartClient
4418
4637
  return data, status_code, headers
4419
4638
  end
4420
4639
 
4640
+ # List recent storefront render logs
4641
+ # The server log the storefront Developer Tools panel shows, one per page render, newest first and without the log text. Each carries counts of error and warning lines, including Velocity problems such as a null #set, so a failing render stands out without reading every log. Filter by uri (a case insensitive contains match on the rendered address) and errors_only. since is 15m, 2h or 1d, or an ISO-8601 time, default 1h; logs are kept for seven days and only the newest 1000. With a filter the newest 200 logs in the window are searched, and more_available says whether older ones were left unread.
4642
+ # @param storefront_oid [Integer]
4643
+ # @param [Hash] opts the optional parameters
4644
+ # @option opts [String] :uri
4645
+ # @option opts [String] :since
4646
+ # @option opts [Boolean] :errors_only
4647
+ # @option opts [Integer] :limit
4648
+ # @return [SfvbServerLogsResponse]
4649
+ def list_sfvb_server_logs(storefront_oid, opts = {})
4650
+ data, _status_code, _headers = list_sfvb_server_logs_with_http_info(storefront_oid, opts)
4651
+ data
4652
+ end
4653
+
4654
+ # List recent storefront render logs
4655
+ # The server log the storefront Developer Tools panel shows, one per page render, newest first and without the log text. Each carries counts of error and warning lines, including Velocity problems such as a null #set, so a failing render stands out without reading every log. Filter by uri (a case insensitive contains match on the rendered address) and errors_only. since is 15m, 2h or 1d, or an ISO-8601 time, default 1h; logs are kept for seven days and only the newest 1000. With a filter the newest 200 logs in the window are searched, and more_available says whether older ones were left unread.
4656
+ # @param storefront_oid [Integer]
4657
+ # @param [Hash] opts the optional parameters
4658
+ # @option opts [String] :uri
4659
+ # @option opts [String] :since
4660
+ # @option opts [Boolean] :errors_only
4661
+ # @option opts [Integer] :limit
4662
+ # @return [Array<(SfvbServerLogsResponse, Integer, Hash)>] SfvbServerLogsResponse data, response status code and response headers
4663
+ def list_sfvb_server_logs_with_http_info(storefront_oid, opts = {})
4664
+ if @api_client.config.debugging
4665
+ @api_client.config.logger.debug 'Calling API: SfvbApi.list_sfvb_server_logs ...'
4666
+ end
4667
+ # verify the required parameter 'storefront_oid' is set
4668
+ if @api_client.config.client_side_validation && storefront_oid.nil?
4669
+ fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling SfvbApi.list_sfvb_server_logs"
4670
+ end
4671
+ # resource path
4672
+ local_var_path = '/sfvb/storefronts/{storefront_oid}/logs'.sub('{' + 'storefront_oid' + '}', CGI.escape(storefront_oid.to_s))
4673
+
4674
+ # query parameters
4675
+ query_params = opts[:query_params] || {}
4676
+ query_params[:'uri'] = opts[:'uri'] if !opts[:'uri'].nil?
4677
+ query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
4678
+ query_params[:'errors_only'] = opts[:'errors_only'] if !opts[:'errors_only'].nil?
4679
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
4680
+
4681
+ # header parameters
4682
+ header_params = opts[:header_params] || {}
4683
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
4684
+ # HTTP header 'Accept' (if needed)
4685
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4686
+
4687
+ # form parameters
4688
+ form_params = opts[:form_params] || {}
4689
+
4690
+ # http body (model)
4691
+ post_body = opts[:debug_body]
4692
+
4693
+ # return_type
4694
+ return_type = opts[:debug_return_type] || 'SfvbServerLogsResponse'
4695
+
4696
+ # auth_names
4697
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
4698
+
4699
+ new_options = opts.merge(
4700
+ :operation => :"SfvbApi.list_sfvb_server_logs",
4701
+ :header_params => header_params,
4702
+ :query_params => query_params,
4703
+ :form_params => form_params,
4704
+ :body => post_body,
4705
+ :auth_names => auth_names,
4706
+ :return_type => return_type
4707
+ )
4708
+
4709
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
4710
+ if @api_client.config.debugging
4711
+ @api_client.config.logger.debug "API called: SfvbApi#list_sfvb_server_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4712
+ end
4713
+ return data, status_code, headers
4714
+ end
4715
+
4421
4716
  # List storefronts
4422
4717
  # @param [Hash] opts the optional parameters
4423
4718
  # @return [SfvbStorefrontsResponse]