-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #234 from HubSpot/feature/update_discoveries
Update discoveries
- Loading branch information
Showing
25 changed files
with
233 additions
and
27 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
lib/hubspot/discovery/crm/associations/schema/api/types_api.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require_relative '../../../../base_api_client' | ||
|
||
module Hubspot | ||
module Discovery | ||
module Crm | ||
module Associations | ||
module Schema | ||
class TypesApi | ||
include Hubspot::Discovery::BaseApiClient | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
require_relative '../../../base_module_client' | ||
|
||
module Hubspot | ||
module Discovery | ||
module Crm | ||
module Associations | ||
module Schema | ||
class Client | ||
include Hubspot::Discovery::BaseModuleClient | ||
def api_classes | ||
%i[ | ||
types | ||
].freeze | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
lib/hubspot/discovery/crm/associations/v4/schema/api/definitions_api.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
require_relative '../../../../../base_api_client' | ||
|
||
module Hubspot | ||
module Discovery | ||
module Crm | ||
module Associations | ||
module V4 | ||
module Schema | ||
class DefinitionsApi | ||
include Hubspot::Discovery::BaseApiClient | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
22 changes: 22 additions & 0 deletions
22
lib/hubspot/discovery/crm/associations/v4/schema/client.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
require_relative '../../../../base_api_client' | ||
|
||
module Hubspot | ||
module Discovery | ||
module Crm | ||
module Associations | ||
module V4 | ||
module Schema | ||
class Client | ||
include Hubspot::Discovery::BaseModuleClient | ||
def api_classes | ||
%i[ | ||
definitions | ||
].freeze | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ class Client | |
def api_modules | ||
%i[ | ||
calls | ||
communications | ||
emails | ||
feedback_submissions | ||
meetings | ||
|
15 changes: 15 additions & 0 deletions
15
lib/hubspot/discovery/crm/objects/communications/api/basic_api.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require_relative '../../../../base_api_client' | ||
|
||
module Hubspot | ||
module Discovery | ||
module Crm | ||
module Objects | ||
module Communications | ||
class BasicApi | ||
include Hubspot::Discovery::BaseApiClient | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
15 changes: 15 additions & 0 deletions
15
lib/hubspot/discovery/crm/objects/communications/api/batch_api.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require_relative '../../../../base_api_client' | ||
|
||
module Hubspot | ||
module Discovery | ||
module Crm | ||
module Objects | ||
module Communications | ||
class BatchApi | ||
include Hubspot::Discovery::BaseApiClient | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
15 changes: 15 additions & 0 deletions
15
lib/hubspot/discovery/crm/objects/communications/api/public_object_api.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require_relative '../../../../base_api_client' | ||
|
||
module Hubspot | ||
module Discovery | ||
module Crm | ||
module Objects | ||
module Communications | ||
class PublicObjectApi | ||
include Hubspot::Discovery::BaseApiClient | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
15 changes: 15 additions & 0 deletions
15
lib/hubspot/discovery/crm/objects/communications/api/search_api.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require_relative '../../../../base_api_client' | ||
|
||
module Hubspot | ||
module Discovery | ||
module Crm | ||
module Objects | ||
module Communications | ||
class SearchApi | ||
include Hubspot::Discovery::BaseApiClient | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
24 changes: 24 additions & 0 deletions
24
lib/hubspot/discovery/crm/objects/communications/client.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
require_relative '../../../base_module_client' | ||
|
||
module Hubspot | ||
module Discovery | ||
module Crm | ||
module Objects | ||
module Communications | ||
class Client | ||
include Hubspot::Discovery::BaseModuleClient | ||
|
||
def api_classes | ||
%i[ | ||
basic | ||
batch | ||
public_object | ||
search | ||
].freeze | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require 'spec_helper' | ||
|
||
describe 'Hubspot::Discovery::Crm::Associations::Schema::TypesApi' do | ||
subject(:types_api) { Hubspot::Client.new(access_token: 'test').crm.associations.schema.types_api } | ||
|
||
it { is_expected.to respond_to(:get_all) } | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require 'spec_helper' | ||
|
||
describe 'Hubspot::Discovery::Crm::Associations::V4::BasicApi' do | ||
subject(:basic_api) { Hubspot::Client.new(access_token: 'test').crm.associations.v4.basic_api } | ||
|
||
it { is_expected.to respond_to(:archive) } | ||
it { is_expected.to respond_to(:create_default) } | ||
it { is_expected.to respond_to(:create) } | ||
it { is_expected.to respond_to(:get_page) } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require 'spec_helper' | ||
|
||
describe 'Hubspot::Client' do | ||
subject(:client) { Hubspot::Client.new(access_token: 'test').crm.associations.v4 } | ||
|
||
it { is_expected.to respond_to(:schema) } | ||
end |
6 changes: 3 additions & 3 deletions
6
...m/associations/v4/definitions_api_spec.rb → ...iations/v4/schema/definitions_api_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
require 'spec_helper' | ||
|
||
describe 'Hubspot::Discovery::Crm::Associations::V4::DefinitionsApi' do | ||
subject(:definitions_api) { Hubspot::Client.new(access_token: 'test').crm.associations.v4.definitions_api } | ||
describe 'Hubspot::Discovery::Crm::Associations::V4::Schema::DefinitionsApi' do | ||
subject(:definitions_api) { Hubspot::Client.new(access_token: 'test').crm.associations.v4.schema.definitions_api } | ||
|
||
it { is_expected.to respond_to(:get_all) } | ||
it { is_expected.to respond_to(:archive) } | ||
it { is_expected.to respond_to(:delete) } | ||
it { is_expected.to respond_to(:create) } | ||
it { is_expected.to respond_to(:update) } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
spec/discovery/crm/objects/communications/basic_api_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require 'spec_helper' | ||
|
||
describe 'Hubspot::Discovery::Crm::Objects::Communications::BasicApi' do | ||
subject(:api) { Hubspot::Client.new(access_token: 'test').crm.objects.communications.basic_api } | ||
|
||
it { is_expected.to respond_to(:archive) } | ||
it { is_expected.to respond_to(:create) } | ||
it { is_expected.to respond_to(:get_by_id) } | ||
it { is_expected.to respond_to(:get_page) } | ||
end |
10 changes: 10 additions & 0 deletions
10
spec/discovery/crm/objects/communications/batch_api_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require 'spec_helper' | ||
|
||
describe 'Hubspot::Discovery::Crm::Objects::Communications::BatchApi' do | ||
subject(:api) { Hubspot::Client.new(access_token: 'test').crm.objects.communications.batch_api } | ||
|
||
it { is_expected.to respond_to(:archive) } | ||
it { is_expected.to respond_to(:create) } | ||
it { is_expected.to respond_to(:read) } | ||
it { is_expected.to respond_to(:update) } | ||
end |
7 changes: 7 additions & 0 deletions
7
spec/discovery/crm/objects/communications/public_object_api_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require 'spec_helper' | ||
|
||
describe 'Hubspot::Discovery::Crm::Objects::Communications::PublicObjectApi' do | ||
subject(:api) { Hubspot::Client.new(access_token: 'test').crm.objects.communications.public_object_api } | ||
|
||
it { is_expected.to respond_to(:merge) } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require 'spec_helper' | ||
|
||
describe 'Hubspot::Discovery::Crm::Objects::Communications::SearchApi' do | ||
subject(:api) { Hubspot::Client.new(access_token: 'test').crm.objects.communications.search_api } | ||
|
||
it { is_expected.to respond_to(:do_search) } | ||
end |