From 4a69e30d09cc9888dfdddf7ed8d3d087f96d0c35 Mon Sep 17 00:00:00 2001 From: Lucie Milan Date: Mon, 4 Dec 2023 11:30:13 +0100 Subject: [PATCH] add new schema --- .../schemas/hubspot/v2/hubspot-v2-tables.yml | 21 +- .../hubspot/v2/json/custom_objects.json | 400 ++++++++++++++++++ 2 files changed, 420 insertions(+), 1 deletion(-) create mode 100644 _data/taps/schemas/hubspot/v2/json/custom_objects.json diff --git a/_data/taps/schemas/hubspot/v2/hubspot-v2-tables.yml b/_data/taps/schemas/hubspot/v2/hubspot-v2-tables.yml index df6afda7c..a306aaba5 100644 --- a/_data/taps/schemas/hubspot/v2/hubspot-v2-tables.yml +++ b/_data/taps/schemas/hubspot/v2/hubspot-v2-tables.yml @@ -1,5 +1,6 @@ tap: hubspot version: '2' +tap-repo-schemas: true tables: - name: campaigns description: 'The `{{ table.name }}` table contains info about the campaigns in @@ -81,6 +82,25 @@ tables: replication-method: Key-based Incremental primary-key: listId replication-key: updatedAt +- name: custom_objects + description: 'Tables for custom CRM objects in your {{ integration.display_name + }} account will have the same name as the object. For example, if you have a custom + object named `cars`, the table will be named `cars`. + + + The fields listed below are standard fields; they are included in every custom + object table. A field will be added for each property you select when configuring + the table. The property names will be prefixed with `property_`. For example, + if you have a property named `model`, it will appear as `property_model`. + + ' + links: + doc-link: https://developers.hubspot.com/docs/api/crm/crm-custom-objects + singer-schema: https://github.com/singer-io/tap-hubspot/tree/master/tap_hubspot/schemas/custom_objects.json + table-details: + replication-method: Key-based Incremental + primary-key: id + replication-key: updatedAt - name: deals description: 'The `{{ table.name }}` table contains info about the deals in a {{ integration.display_name }} portal. @@ -218,4 +238,3 @@ tables: replication-method: Key-based Incremental primary-key: id replication-key: updatedAt -tap-repo-schemas: true diff --git a/_data/taps/schemas/hubspot/v2/json/custom_objects.json b/_data/taps/schemas/hubspot/v2/json/custom_objects.json new file mode 100644 index 000000000..3782a2923 --- /dev/null +++ b/_data/taps/schemas/hubspot/v2/json/custom_objects.json @@ -0,0 +1,400 @@ +{ + "properties": { + "archived": { + "type": [ + "null", + "boolean" + ] + }, + "associations": { + "properties": { + "calls": { + "properties": { + "results": { + "items": { + "properties": { + "id": { + "type": [ + "null", + "string" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + } + }, + "type": [ + "object" + ] + }, + "companies": { + "properties": { + "results": { + "items": { + "properties": { + "id": { + "type": [ + "null", + "string" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + } + }, + "type": [ + "object" + ] + }, + "contacts": { + "properties": { + "results": { + "items": { + "properties": { + "id": { + "type": [ + "null", + "string" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + } + }, + "type": [ + "object" + ] + }, + "conversation_session": { + "properties": { + "results": { + "items": { + "properties": { + "id": { + "type": [ + "null", + "string" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + } + }, + "type": [ + "object" + ] + }, + "deals": { + "properties": { + "results": { + "items": { + "properties": { + "id": { + "type": [ + "null", + "string" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + } + }, + "type": [ + "object" + ] + }, + "emails": { + "properties": { + "results": { + "items": { + "properties": { + "id": { + "type": [ + "null", + "string" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + } + }, + "type": [ + "object" + ] + }, + "meetings": { + "properties": { + "results": { + "items": { + "properties": { + "id": { + "type": [ + "null", + "string" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + } + }, + "type": [ + "object" + ] + }, + "notes": { + "properties": { + "results": { + "items": { + "properties": { + "id": { + "type": [ + "null", + "string" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + } + }, + "type": [ + "object" + ] + }, + "products": { + "properties": { + "results": { + "items": { + "properties": { + "id": { + "type": [ + "null", + "string" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + } + }, + "type": [ + "object" + ] + }, + "tasks": { + "properties": { + "results": { + "items": { + "properties": { + "id": { + "type": [ + "null", + "string" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + } + }, + "type": [ + "object" + ] + }, + "tickets": { + "properties": { + "results": { + "items": { + "properties": { + "id": { + "type": [ + "null", + "string" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + } + }, + "type": [ + "object" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "createdAt": { + "type": [ + "null", + "date-time" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + }, + "updatedAt": { + "type": [ + "null", + "date-time" + ] + } + }, + "type": "object" +} \ No newline at end of file