-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tdl 24434 custom object support (#242)
* initial commit to add support for custom objects * modify the endpoint for custom records * functionality for the discover mode of custom streams * add custom_objects schema * add sync functionality for custom_object records * create shared folder for the re-use of schema * Log a warning for custom object scopes, handling exceptions. * add doc string to definitions * remove custom_object schema stream, as it just the schema of custom objects with solid analytical info. * modifying naming conventions * include shared folder in the package data * include shared json file names * modified package data in setup.py * update manifest file with the shared folder * correct the misspelled * make pylint happy * add unit test for the custom object functionality * handle the chains of .get() calls * before sync get the streams from the catalog instead of the api endpoint * make pylint happy * remove `custom_` prefix from the table name * make pylint happy * Add doc string * disable pylint issue - inconsistent-return-statements * fix unit test case * update the discover mode for custom streams * remove trailing space * modify function name * update STATE assignment post custom object sync * move try catch block to the `gen_request_custom_objects` function * correct variable name * include custom objects stream for testing all the scenarios (#243) * initial commit to add support for custom objects * modify the endpoint for custom records * functionality for the discover mode of custom streams * add custom_objects schema * add sync functionality for custom_object records * create shared folder for the re-use of schema * Log a warning for custom object scopes, handling exceptions. * add doc string to definitions * remove custom_object schema stream, as it just the schema of custom objects with solid analytical info. * modifying naming conventions * include shared folder in the package data * include shared json file names * modified package data in setup.py * update manifest file with the shared folder * include custom objects stream for testing all the scenarios * correct the misspelled * make pylint happy * fix the errors * take the recent startdate, as the custom objects are created 2 days before. * remove `custom_` prefix from the name of custom object stream * remove unused code * Update start dates due to the absence of custom object creation in between. * update test client with pagination logic * fix all fields test for deals stream * update STATE assignment post custom object sync * correct variable name * setup and changelog update
- Loading branch information
1 parent
60b00d6
commit 88b0b8e
Showing
10 changed files
with
544 additions
and
20 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
include LICENSE | ||
include tap_hubspot/schemas/*.json | ||
include tap_hubspot/schemas/shared/*.json |
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
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,34 @@ | ||
{ | ||
"type": [ | ||
"null", | ||
"object" | ||
], | ||
"properties": { | ||
"results": { | ||
"type": [ | ||
"null", | ||
"array" | ||
], | ||
"items": { | ||
"type": [ | ||
"null", | ||
"object" | ||
], | ||
"properties": { | ||
"id": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
}, | ||
"type": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,44 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
}, | ||
"createdAt": { | ||
"type": ["null", "string"], | ||
"format": "date-time" | ||
}, | ||
"updatedAt": { | ||
"type": ["null", "string"], | ||
"format": "date-time" | ||
}, | ||
"archived": { | ||
"type": [ | ||
"null", | ||
"boolean" | ||
] | ||
}, | ||
"associations": { | ||
"type": [ | ||
"null", | ||
"object" | ||
], | ||
"properties": { | ||
"emails": {"$ref": "associations_schema.json"}, | ||
"meetings": {"$ref": "associations_schema.json"}, | ||
"notes": {"$ref": "associations_schema.json"}, | ||
"tasks": {"$ref": "associations_schema.json"}, | ||
"calls": {"$ref": "associations_schema.json"}, | ||
"conversation_session": {"$ref": "associations_schema.json"}, | ||
"companies": {"$ref": "associations_schema.json"}, | ||
"contacts": {"$ref": "associations_schema.json"}, | ||
"deals": {"$ref": "associations_schema.json"}, | ||
"products": {"$ref": "associations_schema.json"}, | ||
"tickets": {"$ref": "associations_schema.json"} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.