smplkit 2.0.7 → 2.0.9

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: 66338107727fee0497df67e431293bb53baa012406628418beaed8d5c5259b0c
4
- data.tar.gz: 4f0bce38478dbd008262b8e246aaaaef9ba49d902e274c0ac77ca4ba9d4ea5a1
3
+ metadata.gz: 7197e7fb7387753aa3c144355cd6e45ed5e5115c622427627cbd6af366c2198f
4
+ data.tar.gz: 263fbb7eff2305226c8c4a7e6f4edeea8d4ff812c5c6fe6a4f12c0e50dae58b1
5
5
  SHA512:
6
- metadata.gz: 48f6367192217db87109c0a463b876f6bf1b1b505f7d6040df03c59cf86f4b5d06c2aa8154fc31c32e14aa9f1c70b67edb530575649eab2d2c3e7b6f16d74f6d
7
- data.tar.gz: 5a78484ff0e1ab4505e64bc4909006de56cd5ee2b362a3918450e5a352efd684a09faed7fa23bf2735eabcbdca1e9dfffc89319c9f3319863d26ccbffc5c1eff
6
+ metadata.gz: f9217bcf8d6bbec98a99e5ef046800502c7bf10978e198f7ad24d982fbd81bf28dbf6dd47863432cf2f462d8cdda7e48c7e2752d7c68a7ec95ec55b9eed448fa
7
+ data.tar.gz: f0e3441e536110e321aac911c5ceeca749104c41522e61ee0f3b09e12c606ea80786a656b785258526677ff37f87d731e36acb4c1f5adef6661d4cd0cfb57bae
@@ -19,7 +19,7 @@ module SmplkitGeneratedClient::App
19
19
 
20
20
  attr_accessor :password
21
21
 
22
- # Registration entry point. Allowed: login, get_started, live_demo, unknown. Defaults to unknown when omitted.
22
+ # Registration entry point. Allowed: LOGIN, GET_STARTED, LIVE_DEMO, UNKNOWN. Defaults to UNKNOWN when omitted. Case-insensitive.
23
23
  attr_accessor :entry_point
24
24
 
25
25
  class EnumAttributeValidator
@@ -144,7 +144,7 @@ module SmplkitGeneratedClient::App
144
144
  return false if @password.nil?
145
145
  return false if @password.to_s.length > 128
146
146
  return false if @password.to_s.length < 8
147
- entry_point_validator = EnumAttributeValidator.new('String', ["login", "get_started", "live_demo", "unknown"])
147
+ entry_point_validator = EnumAttributeValidator.new('String', ["LOGIN", "GET_STARTED", "LIVE_DEMO", "UNKNOWN"])
148
148
  return false unless entry_point_validator.valid?(@entry_point)
149
149
  true
150
150
  end
@@ -180,7 +180,7 @@ module SmplkitGeneratedClient::App
180
180
  # Custom attribute writer method checking allowed values (enum).
181
181
  # @param [Object] entry_point Object to be assigned
182
182
  def entry_point=(entry_point)
183
- validator = EnumAttributeValidator.new('String', ["login", "get_started", "live_demo", "unknown"])
183
+ validator = EnumAttributeValidator.new('String', ["LOGIN", "GET_STARTED", "LIVE_DEMO", "UNKNOWN"])
184
184
  unless validator.valid?(entry_point)
185
185
  fail ArgumentError, "invalid value for \"entry_point\", must be one of #{validator.allowable_values}."
186
186
  end
@@ -177,7 +177,7 @@ module SmplkitGeneratedClient::App
177
177
  return false if @discount_pct.nil?
178
178
  return false if @discount_amount_cents.nil?
179
179
  return false if @discount_source.nil?
180
- discount_source_validator = EnumAttributeValidator.new('String', ["volume", "override"])
180
+ discount_source_validator = EnumAttributeValidator.new('String', ["VOLUME", "OVERRIDE"])
181
181
  return false unless discount_source_validator.valid?(@discount_source)
182
182
  return false if @total_cents.nil?
183
183
  true
@@ -216,7 +216,7 @@ module SmplkitGeneratedClient::App
216
216
  # Custom attribute writer method checking allowed values (enum).
217
217
  # @param [Object] discount_source Object to be assigned
218
218
  def discount_source=(discount_source)
219
- validator = EnumAttributeValidator.new('String', ["volume", "override"])
219
+ validator = EnumAttributeValidator.new('String', ["VOLUME", "OVERRIDE"])
220
220
  unless validator.valid?(discount_source)
221
221
  fail ArgumentError, "invalid value for \"discount_source\", must be one of #{validator.allowable_values}."
222
222
  end
@@ -42,7 +42,7 @@ describe SmplkitGeneratedClient::App::RegisterRequest do
42
42
  describe 'test attribute "entry_point"' do
43
43
  it 'should work' do
44
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["login", "get_started", "live_demo", "unknown"])
45
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["LOGIN", "GET_STARTED", "LIVE_DEMO", "UNKNOWN"])
46
46
  # validator.allowable_values.each do |value|
47
47
  # expect { instance.entry_point = value }.not_to raise_error
48
48
  # end
@@ -48,7 +48,7 @@ describe SmplkitGeneratedClient::App::SubscriptionListMeta do
48
48
  describe 'test attribute "discount_source"' 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', ["volume", "override"])
51
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["VOLUME", "OVERRIDE"])
52
52
  # validator.allowable_values.each do |value|
53
53
  # expect { instance.discount_source = value }.not_to raise_error
54
54
  # end
@@ -83,7 +83,7 @@ module SmplkitGeneratedClient::Audit
83
83
  end
84
84
 
85
85
  # List Events
86
- # List audit events for the authenticated account. Default sort is ``-created_at``; cursor pagination via ``page[after]`` (the opaque cursor returned in ``links.next``). Filters are exact-match except ``filter[occurred_at]`` which uses the platform's range notation (``[2026-01-01T00:00:00Z,*)``).
86
+ # List audit events for the authenticated account. Default sort is ``-created_at``; cursor pagination via ``page[after]`` (the opaque cursor returned in ``links.next``). Filters are exact-match except ``filter[occurred_at]`` which uses the platform's range notation (``[2026-01-01T00:00:00Z,*)``) and ``filter[search]`` which is a case-insensitive substring match (per ADR-014; targets ``resource_id`` only at this revision).
87
87
  # @param [Hash] opts the optional parameters
88
88
  # @option opts [String] :filter_occurred_at
89
89
  # @option opts [String] :filter_actor_type
@@ -91,6 +91,7 @@ module SmplkitGeneratedClient::Audit
91
91
  # @option opts [String] :filter_action
92
92
  # @option opts [String] :filter_resource_type
93
93
  # @option opts [String] :filter_resource_id
94
+ # @option opts [String] :filter_search Case-insensitive substring match. Searches against &#x60;&#x60;resource_id&#x60;&#x60; only — see ADR-014 for the platform-wide &#x60;&#x60;filter[search]&#x60;&#x60; convention. Use &#x60;&#x60;filter[resource_id]&#x60;&#x60; for an exact match.
94
95
  # @option opts [Integer] :page_size
95
96
  # @option opts [String] :page_after
96
97
  # @return [EventListResponse]
@@ -100,7 +101,7 @@ module SmplkitGeneratedClient::Audit
100
101
  end
101
102
 
102
103
  # List Events
103
- # List audit events for the authenticated account. Default sort is &#x60;&#x60;-created_at&#x60;&#x60;; cursor pagination via &#x60;&#x60;page[after]&#x60;&#x60; (the opaque cursor returned in &#x60;&#x60;links.next&#x60;&#x60;). Filters are exact-match except &#x60;&#x60;filter[occurred_at]&#x60;&#x60; which uses the platform&#39;s range notation (&#x60;&#x60;[2026-01-01T00:00:00Z,*)&#x60;&#x60;).
104
+ # List audit events for the authenticated account. Default sort is &#x60;&#x60;-created_at&#x60;&#x60;; cursor pagination via &#x60;&#x60;page[after]&#x60;&#x60; (the opaque cursor returned in &#x60;&#x60;links.next&#x60;&#x60;). Filters are exact-match except &#x60;&#x60;filter[occurred_at]&#x60;&#x60; which uses the platform&#39;s range notation (&#x60;&#x60;[2026-01-01T00:00:00Z,*)&#x60;&#x60;) and &#x60;&#x60;filter[search]&#x60;&#x60; which is a case-insensitive substring match (per ADR-014; targets &#x60;&#x60;resource_id&#x60;&#x60; only at this revision).
104
105
  # @param [Hash] opts the optional parameters
105
106
  # @option opts [String] :filter_occurred_at
106
107
  # @option opts [String] :filter_actor_type
@@ -108,6 +109,7 @@ module SmplkitGeneratedClient::Audit
108
109
  # @option opts [String] :filter_action
109
110
  # @option opts [String] :filter_resource_type
110
111
  # @option opts [String] :filter_resource_id
112
+ # @option opts [String] :filter_search Case-insensitive substring match. Searches against &#x60;&#x60;resource_id&#x60;&#x60; only — see ADR-014 for the platform-wide &#x60;&#x60;filter[search]&#x60;&#x60; convention. Use &#x60;&#x60;filter[resource_id]&#x60;&#x60; for an exact match.
111
113
  # @option opts [Integer] :page_size
112
114
  # @option opts [String] :page_after
113
115
  # @return [Array<(EventListResponse, Integer, Hash)>] EventListResponse data, response status code and response headers
@@ -130,6 +132,7 @@ module SmplkitGeneratedClient::Audit
130
132
  query_params[:'filter[action]'] = opts[:'filter_action'] if !opts[:'filter_action'].nil?
131
133
  query_params[:'filter[resource_type]'] = opts[:'filter_resource_type'] if !opts[:'filter_resource_type'].nil?
132
134
  query_params[:'filter[resource_id]'] = opts[:'filter_resource_id'] if !opts[:'filter_resource_id'].nil?
135
+ query_params[:'filter[search]'] = opts[:'filter_search'] if !opts[:'filter_search'].nil?
133
136
  query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
134
137
  query_params[:'page[after]'] = opts[:'page_after'] if !opts[:'page_after'].nil?
135
138
 
@@ -46,7 +46,7 @@ describe 'EventsApi' do
46
46
 
47
47
  # unit tests for list_events
48
48
  # List Events
49
- # List audit events for the authenticated account. Default sort is &#x60;&#x60;-created_at&#x60;&#x60;; cursor pagination via &#x60;&#x60;page[after]&#x60;&#x60; (the opaque cursor returned in &#x60;&#x60;links.next&#x60;&#x60;). Filters are exact-match except &#x60;&#x60;filter[occurred_at]&#x60;&#x60; which uses the platform&#39;s range notation (&#x60;&#x60;[2026-01-01T00:00:00Z,*)&#x60;&#x60;).
49
+ # List audit events for the authenticated account. Default sort is &#x60;&#x60;-created_at&#x60;&#x60;; cursor pagination via &#x60;&#x60;page[after]&#x60;&#x60; (the opaque cursor returned in &#x60;&#x60;links.next&#x60;&#x60;). Filters are exact-match except &#x60;&#x60;filter[occurred_at]&#x60;&#x60; which uses the platform&#39;s range notation (&#x60;&#x60;[2026-01-01T00:00:00Z,*)&#x60;&#x60;) and &#x60;&#x60;filter[search]&#x60;&#x60; which is a case-insensitive substring match (per ADR-014; targets &#x60;&#x60;resource_id&#x60;&#x60; only at this revision).
50
50
  # @param [Hash] opts the optional parameters
51
51
  # @option opts [String] :filter_occurred_at
52
52
  # @option opts [String] :filter_actor_type
@@ -54,6 +54,7 @@ describe 'EventsApi' do
54
54
  # @option opts [String] :filter_action
55
55
  # @option opts [String] :filter_resource_type
56
56
  # @option opts [String] :filter_resource_id
57
+ # @option opts [String] :filter_search Case-insensitive substring match. Searches against &#x60;&#x60;resource_id&#x60;&#x60; only — see ADR-014 for the platform-wide &#x60;&#x60;filter[search]&#x60;&#x60; convention. Use &#x60;&#x60;filter[resource_id]&#x60;&#x60; for an exact match.
57
58
  # @option opts [Integer] :page_size
58
59
  # @option opts [String] :page_after
59
60
  # @return [EventListResponse]
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.7
4
+ version: 2.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smpl Solutions LLC