reacon-sdk 0.1.0.beta.4 → 0.2.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 +6 -5
- data/lib/reacon-sdk/api/domains_api.rb +2 -2
- data/lib/reacon-sdk/models/mail_get_portfolio_response200_portfolio.rb +103 -0
- data/lib/reacon-sdk/models/mail_post_campaigns_by_campaign_id_launch_response200_any_of.rb +1 -1
- data/lib/reacon-sdk/models/mail_post_campaigns_by_campaign_id_launch_response200_any_of1.rb +1 -1
- data/lib/reacon-sdk/models/{mail_post_campaigns_by_campaign_id_launch_response200_any_of_campaign.rb → mail_post_campaigns_by_campaign_id_launch_response200_campaign.rb} +1 -1
- data/lib/reacon-sdk/version.rb +1 -1
- data/lib/reacon-sdk.rb +2 -1
- 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: 39ae79e4ecfce5a741d80459094c38d5b661da882f1d37c7a1992a0043be8948
|
|
4
|
+
data.tar.gz: ba0e2ece6303277cb70f27e5c5daa46dfe3547eb11b828214e8a1750df445520
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1807c9ddbca2ddc07b35bf3c7b15ce71811874225dbf337f8c5c78617a1064388336b3fb93931ad89c00cc6ee909e6d3a4365cec7d9a0b9df3c039681520ad4b
|
|
7
|
+
data.tar.gz: bb705f7c263e2bfefb6bd76429896393fd5fb00b8bfd086e8ec7622de50f9f2b8ffafe578652902bae6d2b8b83275de4212a68c74a1e0d3372f7946f282e7e8f
|
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: 0.
|
|
10
|
+
- Package version: 0.2.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-0.
|
|
27
|
+
gem install ./reacon-sdk-0.2.0.beta.1.gem
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
(for development, run `gem install --dev ./reacon-sdk-0.
|
|
30
|
+
(for development, run `gem install --dev ./reacon-sdk-0.2.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', '~> 0.
|
|
36
|
+
gem 'reacon-sdk', '~> 0.2.0.beta.1'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
|
@@ -513,6 +513,7 @@ Class | Method | HTTP request | Description
|
|
|
513
513
|
- [Reacon::MailGetPortfolioResponse200](docs/MailGetPortfolioResponse200.md)
|
|
514
514
|
- [Reacon::MailGetPortfolioResponse200AnyOf](docs/MailGetPortfolioResponse200AnyOf.md)
|
|
515
515
|
- [Reacon::MailGetPortfolioResponse200AnyOf1](docs/MailGetPortfolioResponse200AnyOf1.md)
|
|
516
|
+
- [Reacon::MailGetPortfolioResponse200Portfolio](docs/MailGetPortfolioResponse200Portfolio.md)
|
|
516
517
|
- [Reacon::MailGetQueueResponse200](docs/MailGetQueueResponse200.md)
|
|
517
518
|
- [Reacon::MailGetReplyAutomationsResponse200](docs/MailGetReplyAutomationsResponse200.md)
|
|
518
519
|
- [Reacon::MailGetSignaturesResponse200](docs/MailGetSignaturesResponse200.md)
|
|
@@ -595,7 +596,7 @@ Class | Method | HTTP request | Description
|
|
|
595
596
|
- [Reacon::MailPostCampaignsByCampaignIdLaunchResponse200](docs/MailPostCampaignsByCampaignIdLaunchResponse200.md)
|
|
596
597
|
- [Reacon::MailPostCampaignsByCampaignIdLaunchResponse200AnyOf](docs/MailPostCampaignsByCampaignIdLaunchResponse200AnyOf.md)
|
|
597
598
|
- [Reacon::MailPostCampaignsByCampaignIdLaunchResponse200AnyOf1](docs/MailPostCampaignsByCampaignIdLaunchResponse200AnyOf1.md)
|
|
598
|
-
- [Reacon::
|
|
599
|
+
- [Reacon::MailPostCampaignsByCampaignIdLaunchResponse200Campaign](docs/MailPostCampaignsByCampaignIdLaunchResponse200Campaign.md)
|
|
599
600
|
- [Reacon::MailPostCampaignsByCampaignIdStateRequest](docs/MailPostCampaignsByCampaignIdStateRequest.md)
|
|
600
601
|
- [Reacon::MailPostCampaignsByCampaignIdStateResponse200](docs/MailPostCampaignsByCampaignIdStateResponse200.md)
|
|
601
602
|
- [Reacon::MailPostCampaignsRequest](docs/MailPostCampaignsRequest.md)
|
|
@@ -146,7 +146,7 @@ module Reacon
|
|
|
146
146
|
end
|
|
147
147
|
|
|
148
148
|
# Count known emails for a domain
|
|
149
|
-
# Returns personal, generic and total email counts for the domain. Authenticate with X-API-Key.
|
|
149
|
+
# Returns personal, generic and total known email counts for the domain. Authenticate with X-API-Key. This endpoint reports counts only; it does not reveal email addresses. The recorded example uses a reserved example.invalid domain with zero known emails.
|
|
150
150
|
# @param domain [String]
|
|
151
151
|
# @param [Hash] opts the optional parameters
|
|
152
152
|
# @return [DomainCounts]
|
|
@@ -156,7 +156,7 @@ module Reacon
|
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
# Count known emails for a domain
|
|
159
|
-
# Returns personal, generic and total email counts for the domain. Authenticate with X-API-Key.
|
|
159
|
+
# Returns personal, generic and total known email counts for the domain. Authenticate with X-API-Key. This endpoint reports counts only; it does not reveal email addresses. The recorded example uses a reserved example.invalid domain with zero known emails.
|
|
160
160
|
# @param domain [String]
|
|
161
161
|
# @param [Hash] opts the optional parameters
|
|
162
162
|
# @return [Array<(DomainCounts, Integer, Hash)>] DomainCounts data, response status code and response headers
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
module MailGetPortfolioResponse200Portfolio
|
|
18
|
+
class << self
|
|
19
|
+
# List of class defined in anyOf (OpenAPI v3)
|
|
20
|
+
def openapi_any_of
|
|
21
|
+
[
|
|
22
|
+
:'MailMailPortfolio',
|
|
23
|
+
:'Object'
|
|
24
|
+
]
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Builds the object
|
|
28
|
+
# @param [Mixed] Data to be matched against the list of anyOf items
|
|
29
|
+
# @return [Object] Returns the model or the data itself
|
|
30
|
+
def build(data)
|
|
31
|
+
# Go through the list of anyOf items and attempt to identify the appropriate one.
|
|
32
|
+
# Note:
|
|
33
|
+
# - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
|
|
34
|
+
# due to the way the deserialization is made in the base_object template (it just casts without verifying).
|
|
35
|
+
# - TODO: scalar values are de facto behaving as if they were nullable.
|
|
36
|
+
# - TODO: logging when debugging is set.
|
|
37
|
+
openapi_any_of.each do |klass|
|
|
38
|
+
begin
|
|
39
|
+
next if klass == :AnyType # "nullable: true"
|
|
40
|
+
return find_and_cast_into_type(klass, data)
|
|
41
|
+
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
openapi_any_of.include?(:AnyType) ? data : nil
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
private
|
|
49
|
+
|
|
50
|
+
SchemaMismatchError = Class.new(StandardError)
|
|
51
|
+
|
|
52
|
+
# Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
|
|
53
|
+
def find_and_cast_into_type(klass, data)
|
|
54
|
+
return if data.nil?
|
|
55
|
+
|
|
56
|
+
case klass.to_s
|
|
57
|
+
when 'Boolean'
|
|
58
|
+
return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
|
|
59
|
+
when 'Float'
|
|
60
|
+
return data if data.instance_of?(Float)
|
|
61
|
+
when 'Integer'
|
|
62
|
+
return data if data.instance_of?(Integer)
|
|
63
|
+
when 'Time'
|
|
64
|
+
return Time.parse(data)
|
|
65
|
+
when 'Date'
|
|
66
|
+
return Date.iso8601(data)
|
|
67
|
+
when 'String'
|
|
68
|
+
return data if data.instance_of?(String)
|
|
69
|
+
when 'Object' # "type: object"
|
|
70
|
+
return data if data.instance_of?(Hash)
|
|
71
|
+
when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
|
|
72
|
+
if data.instance_of?(Array)
|
|
73
|
+
sub_type = Regexp.last_match[:sub_type]
|
|
74
|
+
return data.map { |item| find_and_cast_into_type(sub_type, item) }
|
|
75
|
+
end
|
|
76
|
+
when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
|
|
77
|
+
if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
|
|
78
|
+
sub_type = Regexp.last_match[:sub_type]
|
|
79
|
+
return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
|
|
80
|
+
end
|
|
81
|
+
else # model
|
|
82
|
+
const = Reacon.const_get(klass)
|
|
83
|
+
if const
|
|
84
|
+
if const.respond_to?(:openapi_any_of) # nested anyOf model
|
|
85
|
+
model = const.build(data)
|
|
86
|
+
return model if model
|
|
87
|
+
else
|
|
88
|
+
# raise if data contains keys that are not known to the model
|
|
89
|
+
raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
|
|
90
|
+
model = const.build_from_hash(data)
|
|
91
|
+
return model if model
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
raise # if no match by now, raise
|
|
97
|
+
rescue
|
|
98
|
+
raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
end
|
|
@@ -43,7 +43,7 @@ module Reacon
|
|
|
43
43
|
# Attribute type mapping.
|
|
44
44
|
def self.openapi_types
|
|
45
45
|
{
|
|
46
|
-
:'campaign' => :'
|
|
46
|
+
:'campaign' => :'MailPostCampaignsByCampaignIdLaunchResponse200Campaign',
|
|
47
47
|
:'draft' => :'MailCampaignDraftRecord',
|
|
48
48
|
:'sequences' => :'Array<Object>'
|
|
49
49
|
}
|
|
@@ -43,7 +43,7 @@ module Reacon
|
|
|
43
43
|
# Attribute type mapping.
|
|
44
44
|
def self.openapi_types
|
|
45
45
|
{
|
|
46
|
-
:'campaign' => :'
|
|
46
|
+
:'campaign' => :'MailPostCampaignsByCampaignIdLaunchResponse200Campaign',
|
|
47
47
|
:'draft' => :'MailCampaignDraftRecord',
|
|
48
48
|
:'sequences' => :'Array<MailSequenceRunRecord>'
|
|
49
49
|
}
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Reacon
|
|
17
|
-
module
|
|
17
|
+
module MailPostCampaignsByCampaignIdLaunchResponse200Campaign
|
|
18
18
|
class << self
|
|
19
19
|
# List of class defined in anyOf (OpenAPI v3)
|
|
20
20
|
def openapi_any_of
|
data/lib/reacon-sdk/version.rb
CHANGED
data/lib/reacon-sdk.rb
CHANGED
|
@@ -256,6 +256,7 @@ require 'reacon-sdk/models/mail_get_portfolio_overview_response200'
|
|
|
256
256
|
require 'reacon-sdk/models/mail_get_portfolio_response200'
|
|
257
257
|
require 'reacon-sdk/models/mail_get_portfolio_response200_any_of'
|
|
258
258
|
require 'reacon-sdk/models/mail_get_portfolio_response200_any_of1'
|
|
259
|
+
require 'reacon-sdk/models/mail_get_portfolio_response200_portfolio'
|
|
259
260
|
require 'reacon-sdk/models/mail_get_queue_response200'
|
|
260
261
|
require 'reacon-sdk/models/mail_get_reply_automations_response200'
|
|
261
262
|
require 'reacon-sdk/models/mail_get_signatures_response200'
|
|
@@ -338,7 +339,7 @@ require 'reacon-sdk/models/mail_post_campaigns_by_campaign_id_launch_request'
|
|
|
338
339
|
require 'reacon-sdk/models/mail_post_campaigns_by_campaign_id_launch_response200'
|
|
339
340
|
require 'reacon-sdk/models/mail_post_campaigns_by_campaign_id_launch_response200_any_of'
|
|
340
341
|
require 'reacon-sdk/models/mail_post_campaigns_by_campaign_id_launch_response200_any_of1'
|
|
341
|
-
require 'reacon-sdk/models/
|
|
342
|
+
require 'reacon-sdk/models/mail_post_campaigns_by_campaign_id_launch_response200_campaign'
|
|
342
343
|
require 'reacon-sdk/models/mail_post_campaigns_by_campaign_id_state_request'
|
|
343
344
|
require 'reacon-sdk/models/mail_post_campaigns_by_campaign_id_state_response200'
|
|
344
345
|
require 'reacon-sdk/models/mail_post_campaigns_request'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: reacon-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0.beta.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Reacon
|
|
@@ -400,6 +400,7 @@ files:
|
|
|
400
400
|
- lib/reacon-sdk/models/mail_get_portfolio_response200.rb
|
|
401
401
|
- lib/reacon-sdk/models/mail_get_portfolio_response200_any_of.rb
|
|
402
402
|
- lib/reacon-sdk/models/mail_get_portfolio_response200_any_of1.rb
|
|
403
|
+
- lib/reacon-sdk/models/mail_get_portfolio_response200_portfolio.rb
|
|
403
404
|
- lib/reacon-sdk/models/mail_get_queue_response200.rb
|
|
404
405
|
- lib/reacon-sdk/models/mail_get_reply_automations_response200.rb
|
|
405
406
|
- lib/reacon-sdk/models/mail_get_signatures_response200.rb
|
|
@@ -482,7 +483,7 @@ files:
|
|
|
482
483
|
- lib/reacon-sdk/models/mail_post_campaigns_by_campaign_id_launch_response200.rb
|
|
483
484
|
- lib/reacon-sdk/models/mail_post_campaigns_by_campaign_id_launch_response200_any_of.rb
|
|
484
485
|
- lib/reacon-sdk/models/mail_post_campaigns_by_campaign_id_launch_response200_any_of1.rb
|
|
485
|
-
- lib/reacon-sdk/models/
|
|
486
|
+
- lib/reacon-sdk/models/mail_post_campaigns_by_campaign_id_launch_response200_campaign.rb
|
|
486
487
|
- lib/reacon-sdk/models/mail_post_campaigns_by_campaign_id_state_request.rb
|
|
487
488
|
- lib/reacon-sdk/models/mail_post_campaigns_by_campaign_id_state_response200.rb
|
|
488
489
|
- lib/reacon-sdk/models/mail_post_campaigns_request.rb
|