smplkit 2.0.9 → 2.0.10

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: 7197e7fb7387753aa3c144355cd6e45ed5e5115c622427627cbd6af366c2198f
4
- data.tar.gz: 263fbb7eff2305226c8c4a7e6f4edeea8d4ff812c5c6fe6a4f12c0e50dae58b1
3
+ metadata.gz: 401feca02e6c8251cc6f4b29c9c282e018f95ebce9fb7279bb9c5ab692566749
4
+ data.tar.gz: fbf60dda5f375e36b3b395310753292a4fd9cdbcdb842858138837af00389a0e
5
5
  SHA512:
6
- metadata.gz: f9217bcf8d6bbec98a99e5ef046800502c7bf10978e198f7ad24d982fbd81bf28dbf6dd47863432cf2f462d8cdda7e48c7e2752d7c68a7ec95ec55b9eed448fa
7
- data.tar.gz: f0e3441e536110e321aac911c5ceeca749104c41522e61ee0f3b09e12c606ea80786a656b785258526677ff37f87d731e36acb4c1f5adef6661d4cd0cfb57bae
6
+ metadata.gz: bac81cd0fbf412dbc0c9eb8caec50c3372578d81750380d86a33adfb5266a02364b332b387e208ba909a0262962d0b78a45952fd8342c3e033311a835f36832b
7
+ data.tar.gz: 71fe3d6cab4ddc813f0bc2cd5c77fa32922c426d50a6921868822087fade11fd2bc7757ae1ba94860d1bf1007267ebbeef38e1940dc6f8324efec390706ec0df
@@ -280,11 +280,12 @@ module SmplkitGeneratedClient::Audit
280
280
  end
281
281
 
282
282
  # List Forwarder Deliveries
283
- # List delivery rows for a forwarder. Default sort is ``-created_at``. Cursor pagination via ``page[after]``. Filter by status (``succeeded`` / ``failed`` / ``filtered_out`` / ``skipped_do_not_forward``) or by a ``created_at`` range using the platform's interval notation (``[2026-01-01T00:00:00Z,*)``). Reads do not require the entitlement — a downgraded account can still inspect historical deliveries from when the forwarder was active.
283
+ # List delivery rows for a forwarder. Default sort is ``-created_at``. Cursor pagination via ``page[after]``. Filter by status (``SUCCEEDED`` / ``FAILED`` / ``FILTERED_OUT`` / ``SKIPPED_DO_NOT_FORWARD``, case-insensitive) or by a ``created_at`` range using the platform's interval notation (``[2026-01-01T00:00:00Z,*)``). Reads do not require the entitlement — a downgraded account can still inspect historical deliveries from when the forwarder was active.
284
284
  # @param forwarder_id [String]
285
285
  # @param [Hash] opts the optional parameters
286
286
  # @option opts [String] :filter_status
287
287
  # @option opts [String] :filter_created_at
288
+ # @option opts [String] :filter_event_id
288
289
  # @option opts [Integer] :page_size
289
290
  # @option opts [String] :page_after
290
291
  # @return [ForwarderDeliveryListResponse]
@@ -294,11 +295,12 @@ module SmplkitGeneratedClient::Audit
294
295
  end
295
296
 
296
297
  # List Forwarder Deliveries
297
- # List delivery rows for a forwarder. Default sort is ``-created_at``. Cursor pagination via ``page[after]``. Filter by status (``succeeded`` / ``failed`` / ``filtered_out`` / ``skipped_do_not_forward``) or by a ``created_at`` range using the platform's interval notation (``[2026-01-01T00:00:00Z,*)``). Reads do not require the entitlement — a downgraded account can still inspect historical deliveries from when the forwarder was active.
298
+ # List delivery rows for a forwarder. Default sort is ``-created_at``. Cursor pagination via ``page[after]``. Filter by status (``SUCCEEDED`` / ``FAILED`` / ``FILTERED_OUT`` / ``SKIPPED_DO_NOT_FORWARD``, case-insensitive) or by a ``created_at`` range using the platform's interval notation (``[2026-01-01T00:00:00Z,*)``). Reads do not require the entitlement — a downgraded account can still inspect historical deliveries from when the forwarder was active.
298
299
  # @param forwarder_id [String]
299
300
  # @param [Hash] opts the optional parameters
300
301
  # @option opts [String] :filter_status
301
302
  # @option opts [String] :filter_created_at
303
+ # @option opts [String] :filter_event_id
302
304
  # @option opts [Integer] :page_size
303
305
  # @option opts [String] :page_after
304
306
  # @return [Array<(ForwarderDeliveryListResponse, Integer, Hash)>] ForwarderDeliveryListResponse data, response status code and response headers
@@ -321,6 +323,7 @@ module SmplkitGeneratedClient::Audit
321
323
  query_params = opts[:query_params] || {}
322
324
  query_params[:'filter[status]'] = opts[:'filter_status'] if !opts[:'filter_status'].nil?
323
325
  query_params[:'filter[created_at]'] = opts[:'filter_created_at'] if !opts[:'filter_created_at'].nil?
326
+ query_params[:'filter[event_id]'] = opts[:'filter_event_id'] if !opts[:'filter_event_id'].nil?
324
327
  query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
325
328
  query_params[:'page[after]'] = opts[:'page_after'] if !opts[:'page_after'].nil?
326
329
 
@@ -211,7 +211,7 @@ module SmplkitGeneratedClient::Audit
211
211
  return false if @event_id.nil?
212
212
  return false if @attempt_number.nil?
213
213
  return false if @status.nil?
214
- status_validator = EnumAttributeValidator.new('String', ["succeeded", "failed", "filtered_out", "skipped_do_not_forward"])
214
+ status_validator = EnumAttributeValidator.new('String', ["SUCCEEDED", "FAILED", "FILTERED_OUT", "SKIPPED_DO_NOT_FORWARD"])
215
215
  return false unless status_validator.valid?(@status)
216
216
  true
217
217
  end
@@ -249,7 +249,7 @@ module SmplkitGeneratedClient::Audit
249
249
  # Custom attribute writer method checking allowed values (enum).
250
250
  # @param [Object] status Object to be assigned
251
251
  def status=(status)
252
- validator = EnumAttributeValidator.new('String', ["succeeded", "failed", "filtered_out", "skipped_do_not_forward"])
252
+ validator = EnumAttributeValidator.new('String', ["SUCCEEDED", "FAILED", "FILTERED_OUT", "SKIPPED_DO_NOT_FORWARD"])
253
253
  unless validator.valid?(status)
254
254
  fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
255
255
  end
@@ -15,13 +15,13 @@ require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::Audit
17
17
  class ForwarderType
18
- HTTP = "http".freeze
19
- DATADOG = "datadog".freeze
20
- SPLUNK_HEC = "splunk_hec".freeze
21
- SUMO_LOGIC = "sumo_logic".freeze
22
- NEW_RELIC = "new_relic".freeze
23
- HONEYCOMB = "honeycomb".freeze
24
- ELASTIC = "elastic".freeze
18
+ HTTP = "HTTP".freeze
19
+ DATADOG = "DATADOG".freeze
20
+ SPLUNK_HEC = "SPLUNK_HEC".freeze
21
+ SUMO_LOGIC = "SUMO_LOGIC".freeze
22
+ NEW_RELIC = "NEW_RELIC".freeze
23
+ HONEYCOMB = "HONEYCOMB".freeze
24
+ ELASTIC = "ELASTIC".freeze
25
25
 
26
26
  def self.all_vars
27
27
  @all_vars ||= [HTTP, DATADOG, SPLUNK_HEC, SUMO_LOGIC, NEW_RELIC, HONEYCOMB, ELASTIC].freeze
@@ -82,11 +82,12 @@ describe 'ForwardersApi' do
82
82
 
83
83
  # unit tests for list_forwarder_deliveries
84
84
  # List Forwarder Deliveries
85
- # List delivery rows for a forwarder. Default sort is &#x60;&#x60;-created_at&#x60;&#x60;. Cursor pagination via &#x60;&#x60;page[after]&#x60;&#x60;. Filter by status (&#x60;&#x60;succeeded&#x60;&#x60; / &#x60;&#x60;failed&#x60;&#x60; / &#x60;&#x60;filtered_out&#x60;&#x60; / &#x60;&#x60;skipped_do_not_forward&#x60;&#x60;) or by a &#x60;&#x60;created_at&#x60;&#x60; range using the platform&#39;s interval notation (&#x60;&#x60;[2026-01-01T00:00:00Z,*)&#x60;&#x60;). Reads do not require the entitlement — a downgraded account can still inspect historical deliveries from when the forwarder was active.
85
+ # List delivery rows for a forwarder. Default sort is &#x60;&#x60;-created_at&#x60;&#x60;. Cursor pagination via &#x60;&#x60;page[after]&#x60;&#x60;. Filter by status (&#x60;&#x60;SUCCEEDED&#x60;&#x60; / &#x60;&#x60;FAILED&#x60;&#x60; / &#x60;&#x60;FILTERED_OUT&#x60;&#x60; / &#x60;&#x60;SKIPPED_DO_NOT_FORWARD&#x60;&#x60;, case-insensitive) or by a &#x60;&#x60;created_at&#x60;&#x60; range using the platform&#39;s interval notation (&#x60;&#x60;[2026-01-01T00:00:00Z,*)&#x60;&#x60;). Reads do not require the entitlement — a downgraded account can still inspect historical deliveries from when the forwarder was active.
86
86
  # @param forwarder_id
87
87
  # @param [Hash] opts the optional parameters
88
88
  # @option opts [String] :filter_status
89
89
  # @option opts [String] :filter_created_at
90
+ # @option opts [String] :filter_event_id
90
91
  # @option opts [Integer] :page_size
91
92
  # @option opts [String] :page_after
92
93
  # @return [ForwarderDeliveryListResponse]
@@ -48,7 +48,7 @@ describe SmplkitGeneratedClient::Audit::ForwarderDelivery do
48
48
  describe 'test attribute "status"' do
49
49
  it 'should work' do
50
50
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["succeeded", "failed", "filtered_out", "skipped_do_not_forward"])
51
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["SUCCEEDED", "FAILED", "FILTERED_OUT", "SKIPPED_DO_NOT_FORWARD"])
52
52
  # validator.allowable_values.each do |value|
53
53
  # expect { instance.status = value }.not_to raise_error
54
54
  # end
@@ -71,7 +71,7 @@ module Smplkit
71
71
  # +#next_cursor+ is the opaque token for the next page (or nil).
72
72
  def list(action: nil, resource_type: nil, resource_id: nil,
73
73
  actor_type: nil, actor_id: nil, occurred_at_range: nil,
74
- page_size: nil, page_after: nil)
74
+ search: nil, page_size: nil, page_after: nil)
75
75
  # Generated client opts use snake_case keys that internally map
76
76
  # to the JSON:API ``filter[*]`` / ``page[*]`` query-string format
77
77
  # (see default_api.rb#list_events_with_http_info). Without the
@@ -84,6 +84,7 @@ module Smplkit
84
84
  opts[:filter_actor_type] = actor_type if actor_type
85
85
  opts[:filter_actor_id] = actor_id if actor_id
86
86
  opts[:filter_occurred_at] = occurred_at_range if occurred_at_range
87
+ opts[:filter_search] = search if search
87
88
  opts[:page_size] = page_size if page_size
88
89
  opts[:page_after] = page_after if page_after
89
90
 
@@ -10,13 +10,13 @@ module Smplkit
10
10
  # {Forwarders#list}. The wrapper validates membership before
11
11
  # round-tripping to the wire.
12
12
  module ForwarderType
13
- HTTP = "http"
14
- DATADOG = "datadog"
15
- SPLUNK_HEC = "splunk_hec"
16
- SUMO_LOGIC = "sumo_logic"
17
- NEW_RELIC = "new_relic"
18
- HONEYCOMB = "honeycomb"
19
- ELASTIC = "elastic"
13
+ HTTP = "HTTP"
14
+ DATADOG = "DATADOG"
15
+ SPLUNK_HEC = "SPLUNK_HEC"
16
+ SUMO_LOGIC = "SUMO_LOGIC"
17
+ NEW_RELIC = "NEW_RELIC"
18
+ HONEYCOMB = "HONEYCOMB"
19
+ ELASTIC = "ELASTIC"
20
20
 
21
21
  # Every supported value, in spec order. Useful for membership
22
22
  # checks, dropdown population, or test parametrization.
@@ -129,10 +129,11 @@ module Smplkit
129
129
  @actions = DeliveryActions.new(api)
130
130
  end
131
131
 
132
- def list(forwarder_id, status: nil, created_at_range: nil, page_size: nil, page_after: nil)
132
+ def list(forwarder_id, status: nil, created_at_range: nil, event_id: nil, page_size: nil, page_after: nil)
133
133
  opts = {}
134
134
  opts[:filter_status] = status if status
135
135
  opts[:filter_created_at] = created_at_range if created_at_range
136
+ opts[:filter_event_id] = event_id if event_id
136
137
  opts[:page_size] = page_size if page_size
137
138
  opts[:page_after] = page_after if page_after
138
139
  resp = @api.list_forwarder_deliveries(forwarder_id, opts)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smplkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.9
4
+ version: 2.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smpl Solutions LLC