Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/convoy_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@
require 'convoy_api/models/datastore_verifier_type'
require 'convoy_api/models/get_delivery_attempt200_response'
require 'convoy_api/models/get_delivery_attempts200_response'
require 'convoy_api/models/get_delivery_attempts200_response_all_of_data'
require 'convoy_api/models/get_delivery_attempts200_response_all_of_data_one_of'
require 'convoy_api/models/get_endpoint_event200_response'
require 'convoy_api/models/get_endpoint_period_failure_rates200_response'
require 'convoy_api/models/get_endpoints200_response'
Expand Down
10 changes: 8 additions & 2 deletions lib/convoy_api/api/delivery_attempts_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,25 @@ def get_delivery_attempt_with_http_info(project_id, event_delivery_id, delivery_
end

# List delivery attempts
# This endpoint fetches an app message's delivery attempts
# This endpoint fetches an app message's delivery attempts Default: latest ten attempts as an array. With paginated=true: content and next_cursor. Pass next_cursor as before for older history; empty means last page. Pages are oldest first.
# @param project_id [String] Project ID
# @param event_delivery_id [String] event delivery id
# @param [Hash] opts the optional parameters
# @option opts [Boolean] :paginated Return a page of ten attempts and next_cursor
# @option opts [String] :before Exclusive attempt cursor from next_cursor; requires paginated=true
# @return [GetDeliveryAttempts200Response]
def get_delivery_attempts(project_id, event_delivery_id, opts = {})
data, _status_code, _headers = get_delivery_attempts_with_http_info(project_id, event_delivery_id, opts)
data
end

# List delivery attempts
# This endpoint fetches an app message's delivery attempts
# This endpoint fetches an app message's delivery attempts Default: latest ten attempts as an array. With paginated=true: content and next_cursor. Pass next_cursor as before for older history; empty means last page. Pages are oldest first.
# @param project_id [String] Project ID
# @param event_delivery_id [String] event delivery id
# @param [Hash] opts the optional parameters
# @option opts [Boolean] :paginated Return a page of ten attempts and next_cursor
# @option opts [String] :before Exclusive attempt cursor from next_cursor; requires paginated=true
# @return [Array<(GetDeliveryAttempts200Response, Integer, Hash)>] GetDeliveryAttempts200Response data, response status code and response headers
def get_delivery_attempts_with_http_info(project_id, event_delivery_id, opts = {})
if @api_client.config.debugging
Expand All @@ -128,6 +132,8 @@ def get_delivery_attempts_with_http_info(project_id, event_delivery_id, opts = {

# query parameters
query_params = opts[:query_params] || {}
query_params[:'paginated'] = opts[:'paginated'] if !opts[:'paginated'].nil?
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?

# header parameters
header_params = opts[:header_params] || {}
Expand Down
22 changes: 20 additions & 2 deletions lib/convoy_api/api/event_deliveries_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@ def initialize(api_client = ApiClient.default)
# @option opts [String] :event_id Event ID to filter by
# @option opts [String] :event_type EventType to filter by
# @option opts [String] :idempotency_key IdempotencyKey to filter by
# @option opts [String] :idempotency_value Raw value of a source&#39;s single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey.
# @option opts [Integer] :min_trials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId.
# @option opts [String] :next_page_cursor A pagination cursor to fetch the next page of a list
# @option opts [Integer] :per_page The number of items to return per page
# @option opts [String] :prev_page_cursor A pagination cursor to fetch the previous page of a list
# @option opts [String] :query Matches delivery id, event id, event type prefix, and endpoint name.
# @option opts [String] :sort Sort order, values are &#x60;ASC&#x60; or &#x60;DESC&#x60;, defaults to &#x60;DESC&#x60;
# @option opts [Array<String>] :source_id Limits idempotencyValue matching to these source IDs.
# @option opts [String] :start_date The start date
# @option opts [Array<String>] :status A list of event delivery statuses to filter by
# @option opts [String] :subscription_id SubscriptionID to filter by
Expand All @@ -53,11 +56,14 @@ def batch_retry_event_delivery(project_id, opts = {})
# @option opts [String] :event_id Event ID to filter by
# @option opts [String] :event_type EventType to filter by
# @option opts [String] :idempotency_key IdempotencyKey to filter by
# @option opts [String] :idempotency_value Raw value of a source&#39;s single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey.
# @option opts [Integer] :min_trials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId.
# @option opts [String] :next_page_cursor A pagination cursor to fetch the next page of a list
# @option opts [Integer] :per_page The number of items to return per page
# @option opts [String] :prev_page_cursor A pagination cursor to fetch the previous page of a list
# @option opts [String] :query Matches delivery id, event id, event type prefix, and endpoint name.
# @option opts [String] :sort Sort order, values are &#x60;ASC&#x60; or &#x60;DESC&#x60;, defaults to &#x60;DESC&#x60;
# @option opts [Array<String>] :source_id Limits idempotencyValue matching to these source IDs.
# @option opts [String] :start_date The start date
# @option opts [Array<String>] :status A list of event delivery statuses to filter by
# @option opts [String] :subscription_id SubscriptionID to filter by
Expand All @@ -83,13 +89,16 @@ def batch_retry_event_delivery_with_http_info(project_id, opts = {})
query_params[:'endDate'] = opts[:'end_date'] if !opts[:'end_date'].nil?
query_params[:'endpointId'] = @api_client.build_collection_param(opts[:'endpoint_id'], :multi) if !opts[:'endpoint_id'].nil?
query_params[:'eventId'] = opts[:'event_id'] if !opts[:'event_id'].nil?
query_params[:'event_type'] = opts[:'event_type'] if !opts[:'event_type'].nil?
query_params[:'eventType'] = opts[:'event_type'] if !opts[:'event_type'].nil?
query_params[:'idempotencyKey'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
query_params[:'idempotencyValue'] = opts[:'idempotency_value'] if !opts[:'idempotency_value'].nil?
query_params[:'minTrials'] = opts[:'min_trials'] if !opts[:'min_trials'].nil?
query_params[:'next_page_cursor'] = opts[:'next_page_cursor'] if !opts[:'next_page_cursor'].nil?
query_params[:'perPage'] = opts[:'per_page'] if !opts[:'per_page'].nil?
query_params[:'prev_page_cursor'] = opts[:'prev_page_cursor'] if !opts[:'prev_page_cursor'].nil?
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
query_params[:'sourceId'] = @api_client.build_collection_param(opts[:'source_id'], :multi) if !opts[:'source_id'].nil?
query_params[:'startDate'] = opts[:'start_date'] if !opts[:'start_date'].nil?
query_params[:'status'] = @api_client.build_collection_param(opts[:'status'], :multi) if !opts[:'status'].nil?
query_params[:'subscriptionId'] = opts[:'subscription_id'] if !opts[:'subscription_id'].nil?
Expand Down Expand Up @@ -212,11 +221,14 @@ def force_resend_event_deliveries_with_http_info(project_id, models_ids, opts =
# @option opts [String] :event_id Event ID to filter by
# @option opts [String] :event_type EventType to filter by
# @option opts [String] :idempotency_key IdempotencyKey to filter by
# @option opts [String] :idempotency_value Raw value of a source&#39;s single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey.
# @option opts [Integer] :min_trials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId.
# @option opts [String] :next_page_cursor A pagination cursor to fetch the next page of a list
# @option opts [Integer] :per_page The number of items to return per page
# @option opts [String] :prev_page_cursor A pagination cursor to fetch the previous page of a list
# @option opts [String] :query Matches delivery id, event id, event type prefix, and endpoint name.
# @option opts [String] :sort Sort order, values are &#x60;ASC&#x60; or &#x60;DESC&#x60;, defaults to &#x60;DESC&#x60;
# @option opts [Array<String>] :source_id Limits idempotencyValue matching to these source IDs.
# @option opts [String] :start_date The start date
# @option opts [Array<String>] :status A list of event delivery statuses to filter by
# @option opts [String] :subscription_id SubscriptionID to filter by
Expand All @@ -236,11 +248,14 @@ def get_event_deliveries_paged(project_id, opts = {})
# @option opts [String] :event_id Event ID to filter by
# @option opts [String] :event_type EventType to filter by
# @option opts [String] :idempotency_key IdempotencyKey to filter by
# @option opts [String] :idempotency_value Raw value of a source&#39;s single idempotency key location, e.g. a provider delivery ID. Matches deliveries of events ingested with it. Not combinable with idempotencyKey.
# @option opts [Integer] :min_trials Only return deliveries with at least this many attempts; 2 or more means retried. Requires idempotencyValue, eventId, or endpointId.
# @option opts [String] :next_page_cursor A pagination cursor to fetch the next page of a list
# @option opts [Integer] :per_page The number of items to return per page
# @option opts [String] :prev_page_cursor A pagination cursor to fetch the previous page of a list
# @option opts [String] :query Matches delivery id, event id, event type prefix, and endpoint name.
# @option opts [String] :sort Sort order, values are &#x60;ASC&#x60; or &#x60;DESC&#x60;, defaults to &#x60;DESC&#x60;
# @option opts [Array<String>] :source_id Limits idempotencyValue matching to these source IDs.
# @option opts [String] :start_date The start date
# @option opts [Array<String>] :status A list of event delivery statuses to filter by
# @option opts [String] :subscription_id SubscriptionID to filter by
Expand All @@ -266,13 +281,16 @@ def get_event_deliveries_paged_with_http_info(project_id, opts = {})
query_params[:'endDate'] = opts[:'end_date'] if !opts[:'end_date'].nil?
query_params[:'endpointId'] = @api_client.build_collection_param(opts[:'endpoint_id'], :multi) if !opts[:'endpoint_id'].nil?
query_params[:'eventId'] = opts[:'event_id'] if !opts[:'event_id'].nil?
query_params[:'event_type'] = opts[:'event_type'] if !opts[:'event_type'].nil?
query_params[:'eventType'] = opts[:'event_type'] if !opts[:'event_type'].nil?
query_params[:'idempotencyKey'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
query_params[:'idempotencyValue'] = opts[:'idempotency_value'] if !opts[:'idempotency_value'].nil?
query_params[:'minTrials'] = opts[:'min_trials'] if !opts[:'min_trials'].nil?
query_params[:'next_page_cursor'] = opts[:'next_page_cursor'] if !opts[:'next_page_cursor'].nil?
query_params[:'perPage'] = opts[:'per_page'] if !opts[:'per_page'].nil?
query_params[:'prev_page_cursor'] = opts[:'prev_page_cursor'] if !opts[:'prev_page_cursor'].nil?
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
query_params[:'sourceId'] = @api_client.build_collection_param(opts[:'source_id'], :multi) if !opts[:'source_id'].nil?
query_params[:'startDate'] = opts[:'start_date'] if !opts[:'start_date'].nil?
query_params[:'status'] = @api_client.build_collection_param(opts[:'status'], :multi) if !opts[:'status'].nil?
query_params[:'subscriptionId'] = opts[:'subscription_id'] if !opts[:'subscription_id'].nil?
Expand Down
Loading