reacon-sdk 1.0.0.beta.1 → 2.0.0.beta.1
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/README.md +5 -4
- data/lib/reacon-sdk/models/api_validation_issue.rb +157 -0
- data/lib/reacon-sdk/models/error_response.rb +1 -1
- data/lib/reacon-sdk/version.rb +1 -1
- data/lib/reacon-sdk.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a9934b5b35390d54f847e6fe9db23e6b5c167c82c1ee754123ac5cbf54dbaa7
|
|
4
|
+
data.tar.gz: 88952c7c7d563e36a61f8819af8d8480bd243cc48a25d8d6deb7396de5fc7203
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a45a3102f2c6fb4a0502cb95fb2d8d1ab4b2284792af531c6ec6a93227a6a1696af3f24eccc8f72fd42383ce59def4f7b90d87e84047753a292283da51526b3
|
|
7
|
+
data.tar.gz: 8707d87f162b5cd05e7114ca1c9ee970febb4b03142b366e55d552bfef60de13b70d7fe2a542ca6916110fe278e1aa2296cf4946a143f17ec70f00095219e84d
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: 0.1.0
|
|
10
|
-
- Package version:
|
|
10
|
+
- Package version: 2.0.0.beta.1
|
|
11
11
|
- Generator version: 7.25.0
|
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
13
13
|
|
|
@@ -24,16 +24,16 @@ gem build reacon-sdk.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./reacon-sdk-
|
|
27
|
+
gem install ./reacon-sdk-2.0.0.beta.1.gem
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
(for development, run `gem install --dev ./reacon-sdk-
|
|
30
|
+
(for development, run `gem install --dev ./reacon-sdk-2.0.0.beta.1.gem` to install the development dependencies)
|
|
31
31
|
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
33
33
|
|
|
34
34
|
Finally add this to the Gemfile:
|
|
35
35
|
|
|
36
|
-
gem 'reacon-sdk', '~>
|
|
36
|
+
gem 'reacon-sdk', '~> 2.0.0.beta.1'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
|
@@ -281,6 +281,7 @@ Class | Method | HTTP request | Description
|
|
|
281
281
|
- [Reacon::AirtableMappingOptionsResponseOptionsTablesInner](docs/AirtableMappingOptionsResponseOptionsTablesInner.md)
|
|
282
282
|
- [Reacon::AirtableMappingOptionsResponseOptionsTablesInnerFieldsInner](docs/AirtableMappingOptionsResponseOptionsTablesInnerFieldsInner.md)
|
|
283
283
|
- [Reacon::ApiKeyIdentity](docs/ApiKeyIdentity.md)
|
|
284
|
+
- [Reacon::ApiValidationIssue](docs/ApiValidationIssue.md)
|
|
284
285
|
- [Reacon::AutomationHookCreated](docs/AutomationHookCreated.md)
|
|
285
286
|
- [Reacon::BatchVerificationError](docs/BatchVerificationError.md)
|
|
286
287
|
- [Reacon::BatchVerificationItem](docs/BatchVerificationItem.md)
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Reacon API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Reacon
|
|
17
|
+
# Validation issue details. code identifies the validation rule and message explains the failure. Additional rule-specific properties, including the field path, are preserved.
|
|
18
|
+
class ApiValidationIssue < ApiModelBase
|
|
19
|
+
attr_accessor :code
|
|
20
|
+
|
|
21
|
+
attr_accessor :message
|
|
22
|
+
|
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
24
|
+
def self.attribute_map
|
|
25
|
+
{
|
|
26
|
+
:'code' => :'code',
|
|
27
|
+
:'message' => :'message'
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Returns attribute mapping this model knows about
|
|
32
|
+
def self.acceptable_attribute_map
|
|
33
|
+
attribute_map
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Returns all the JSON keys this model knows about
|
|
37
|
+
def self.acceptable_attributes
|
|
38
|
+
acceptable_attribute_map.values
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
def self.openapi_types
|
|
43
|
+
{
|
|
44
|
+
:'code' => :'String',
|
|
45
|
+
:'message' => :'String'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# List of attributes with nullable: true
|
|
50
|
+
def self.openapi_nullable
|
|
51
|
+
Set.new([
|
|
52
|
+
])
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
57
|
+
def initialize(attributes = {})
|
|
58
|
+
if (!attributes.is_a?(Hash))
|
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Reacon::ApiValidationIssue` initialize method"
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
63
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
64
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
65
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Reacon::ApiValidationIssue`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
67
|
+
end
|
|
68
|
+
h[k.to_sym] = v
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if attributes.key?(:'code')
|
|
72
|
+
self.code = attributes[:'code']
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
if attributes.key?(:'message')
|
|
76
|
+
self.message = attributes[:'message']
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
81
|
+
# @return Array for valid properties with the reasons
|
|
82
|
+
def list_invalid_properties
|
|
83
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
84
|
+
invalid_properties = Array.new
|
|
85
|
+
invalid_properties
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Check to see if the all the properties in the model are valid
|
|
89
|
+
# @return true if the model is valid
|
|
90
|
+
def valid?
|
|
91
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
92
|
+
true
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Checks equality by comparing each attribute.
|
|
96
|
+
# @param [Object] Object to be compared
|
|
97
|
+
def ==(o)
|
|
98
|
+
return true if self.equal?(o)
|
|
99
|
+
self.class == o.class &&
|
|
100
|
+
code == o.code &&
|
|
101
|
+
message == o.message
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# @see the `==` method
|
|
105
|
+
# @param [Object] Object to be compared
|
|
106
|
+
def eql?(o)
|
|
107
|
+
self == o
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Calculates hash code according to all attributes.
|
|
111
|
+
# @return [Integer] Hash code
|
|
112
|
+
def hash
|
|
113
|
+
[code, message].hash
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Builds the object from hash
|
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
118
|
+
# @return [Object] Returns the model itself
|
|
119
|
+
def self.build_from_hash(attributes)
|
|
120
|
+
return nil unless attributes.is_a?(Hash)
|
|
121
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
122
|
+
transformed_hash = {}
|
|
123
|
+
openapi_types.each_pair do |key, type|
|
|
124
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
125
|
+
transformed_hash["#{key}"] = nil
|
|
126
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
127
|
+
# check to ensure the input is an array given that the attribute
|
|
128
|
+
# is documented as an array but the input is not
|
|
129
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
130
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
131
|
+
end
|
|
132
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
133
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
new(transformed_hash)
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Returns the object in the form of hash
|
|
140
|
+
# @return [Hash] Returns the object in the form of hash
|
|
141
|
+
def to_hash
|
|
142
|
+
hash = {}
|
|
143
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
144
|
+
value = self.send(attr)
|
|
145
|
+
if value.nil?
|
|
146
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
147
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
hash[param] = _to_hash(value)
|
|
151
|
+
end
|
|
152
|
+
hash
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
end
|
|
@@ -64,7 +64,7 @@ module Reacon
|
|
|
64
64
|
:'code' => :'String',
|
|
65
65
|
:'details' => :'String',
|
|
66
66
|
:'error' => :'String',
|
|
67
|
-
:'issues' => :'Array<
|
|
67
|
+
:'issues' => :'Array<ApiValidationIssue>',
|
|
68
68
|
:'message' => :'String',
|
|
69
69
|
:'remaining_credits' => :'Float',
|
|
70
70
|
:'request_id' => :'String',
|
data/lib/reacon-sdk/version.rb
CHANGED
data/lib/reacon-sdk.rb
CHANGED
|
@@ -24,6 +24,7 @@ require 'reacon-sdk/models/airtable_mapping_options_response_options_bases_inner
|
|
|
24
24
|
require 'reacon-sdk/models/airtable_mapping_options_response_options_tables_inner'
|
|
25
25
|
require 'reacon-sdk/models/airtable_mapping_options_response_options_tables_inner_fields_inner'
|
|
26
26
|
require 'reacon-sdk/models/api_key_identity'
|
|
27
|
+
require 'reacon-sdk/models/api_validation_issue'
|
|
27
28
|
require 'reacon-sdk/models/automation_hook_created'
|
|
28
29
|
require 'reacon-sdk/models/batch_verification_error'
|
|
29
30
|
require 'reacon-sdk/models/batch_verification_item'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: reacon-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0.beta.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Reacon
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: event_stream_parser
|
|
@@ -168,6 +168,7 @@ files:
|
|
|
168
168
|
- lib/reacon-sdk/models/airtable_mapping_options_response_options_tables_inner.rb
|
|
169
169
|
- lib/reacon-sdk/models/airtable_mapping_options_response_options_tables_inner_fields_inner.rb
|
|
170
170
|
- lib/reacon-sdk/models/api_key_identity.rb
|
|
171
|
+
- lib/reacon-sdk/models/api_validation_issue.rb
|
|
171
172
|
- lib/reacon-sdk/models/automation_hook_created.rb
|
|
172
173
|
- lib/reacon-sdk/models/batch_verification_error.rb
|
|
173
174
|
- lib/reacon-sdk/models/batch_verification_item.rb
|