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 +4 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/register_request.rb +3 -3
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_list_meta.rb +2 -2
- data/lib/smplkit/_generated/app/spec/models/register_request_spec.rb +1 -1
- data/lib/smplkit/_generated/app/spec/models/subscription_list_meta_spec.rb +1 -1
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/api/events_api.rb +5 -2
- data/lib/smplkit/_generated/audit/spec/api/events_api_spec.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7197e7fb7387753aa3c144355cd6e45ed5e5115c622427627cbd6af366c2198f
|
|
4
|
+
data.tar.gz: 263fbb7eff2305226c8c4a7e6f4edeea8d4ff812c5c6fe6a4f12c0e50dae58b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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:
|
|
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', ["
|
|
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', ["
|
|
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', ["
|
|
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', ["
|
|
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', ["
|
|
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', ["
|
|
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 ``resource_id`` only — see ADR-014 for the platform-wide ``filter[search]`` convention. Use ``filter[resource_id]`` 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 ``-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,*)``).
|
|
104
|
+
# 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).
|
|
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 ``resource_id`` only — see ADR-014 for the platform-wide ``filter[search]`` convention. Use ``filter[resource_id]`` 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 ``-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,*)``).
|
|
49
|
+
# 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).
|
|
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 ``resource_id`` only — see ADR-014 for the platform-wide ``filter[search]`` convention. Use ``filter[resource_id]`` for an exact match.
|
|
57
58
|
# @option opts [Integer] :page_size
|
|
58
59
|
# @option opts [String] :page_after
|
|
59
60
|
# @return [EventListResponse]
|