diff --git a/CHANGELOG b/CHANGELOG index ee53f7be3..5e307047b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,17 @@ +Release 101 (2019-02-26) +------------------------ +Add com.snowplowanalytics.snowplow/atomic/jsonschema/1-0-0 (#778) +Add com.marketo/event/jsonschema/2-0-0 (#889) +Add com.hubspot/company_change/jsonschema/1-0-0 (#891) +Add com.hubspot/company_creation/jsonschema/1-0-0 (#892) +Add com.hubspot/company_deletion/jsonschema/1-0-0 (#893) +Add com.hubspot/contact_change/jsonschema/1-0-0 (#894) +Add com.hubspot/contact_creation/jsonschema/1-0-0 (#895) +Add com.hubspot/contact_deletion/jsonschema/1-0-0 (#896) +Add com.hubspot/deal_change/jsonschema/1-0-0 (#897) +Add com.hubspot/deal_creation/jsonschema/1-0-0 (#898) +Add com.hubspot/deal_deletion/jsonschema/1-0-0 (#899) + Release 100 (2019-01-12) ------------------------ Add com.snowplowanalytics.snowplow/recoveries/jsonschema/1-0-0 (#879) diff --git a/README.md b/README.md index d997ae643..a40c88697 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ limitations under the License. [travis]: https://travis-ci.org/snowplow/iglu-central [travis-image]: https://travis-ci.org/snowplow/iglu-central.png?branch=master -[release-image]: http://img.shields.io/badge/release-100-orange.svg?style=flat +[release-image]: http://img.shields.io/badge/release-101-orange.svg?style=flat [releases]: https://github.com/snowplow/iglu-central/releases [license-image]: http://img.shields.io/badge/license-Apache--2-blue.svg?style=flat diff --git a/jsonpaths/com.hubspot/company_change_1.json b/jsonpaths/com.hubspot/company_change_1.json new file mode 100644 index 000000000..1fc18a6e7 --- /dev/null +++ b/jsonpaths/com.hubspot/company_change_1.json @@ -0,0 +1,23 @@ +{ + "jsonpaths": [ + "$.schema.vendor", + "$.schema.name", + "$.schema.format", + "$.schema.version", + "$.hierarchy.rootId", + "$.hierarchy.rootTstamp", + "$.hierarchy.refRoot", + "$.hierarchy.refTree", + "$.hierarchy.refParent", + "$.data.appId", + "$.data.attemptNumber", + "$.data.changeSource", + "$.data.eventId", + "$.data.objectId", + "$.data.occurredAt", + "$.data.portalId", + "$.data.propertyName", + "$.data.propertyValue", + "$.data.subscriptionId" + ] +} diff --git a/jsonpaths/com.hubspot/company_creation_1.json b/jsonpaths/com.hubspot/company_creation_1.json new file mode 100644 index 000000000..f748c37a9 --- /dev/null +++ b/jsonpaths/com.hubspot/company_creation_1.json @@ -0,0 +1,22 @@ +{ + "jsonpaths": [ + "$.schema.vendor", + "$.schema.name", + "$.schema.format", + "$.schema.version", + "$.hierarchy.rootId", + "$.hierarchy.rootTstamp", + "$.hierarchy.refRoot", + "$.hierarchy.refTree", + "$.hierarchy.refParent", + "$.data.appId", + "$.data.attemptNumber", + "$.data.changeFlag", + "$.data.changeSource", + "$.data.eventId", + "$.data.objectId", + "$.data.occurredAt", + "$.data.portalId", + "$.data.subscriptionId" + ] +} diff --git a/jsonpaths/com.hubspot/company_deletion_1.json b/jsonpaths/com.hubspot/company_deletion_1.json new file mode 100644 index 000000000..f748c37a9 --- /dev/null +++ b/jsonpaths/com.hubspot/company_deletion_1.json @@ -0,0 +1,22 @@ +{ + "jsonpaths": [ + "$.schema.vendor", + "$.schema.name", + "$.schema.format", + "$.schema.version", + "$.hierarchy.rootId", + "$.hierarchy.rootTstamp", + "$.hierarchy.refRoot", + "$.hierarchy.refTree", + "$.hierarchy.refParent", + "$.data.appId", + "$.data.attemptNumber", + "$.data.changeFlag", + "$.data.changeSource", + "$.data.eventId", + "$.data.objectId", + "$.data.occurredAt", + "$.data.portalId", + "$.data.subscriptionId" + ] +} diff --git a/jsonpaths/com.hubspot/contact_change_1.json b/jsonpaths/com.hubspot/contact_change_1.json new file mode 100644 index 000000000..1fc18a6e7 --- /dev/null +++ b/jsonpaths/com.hubspot/contact_change_1.json @@ -0,0 +1,23 @@ +{ + "jsonpaths": [ + "$.schema.vendor", + "$.schema.name", + "$.schema.format", + "$.schema.version", + "$.hierarchy.rootId", + "$.hierarchy.rootTstamp", + "$.hierarchy.refRoot", + "$.hierarchy.refTree", + "$.hierarchy.refParent", + "$.data.appId", + "$.data.attemptNumber", + "$.data.changeSource", + "$.data.eventId", + "$.data.objectId", + "$.data.occurredAt", + "$.data.portalId", + "$.data.propertyName", + "$.data.propertyValue", + "$.data.subscriptionId" + ] +} diff --git a/jsonpaths/com.hubspot/contact_creation_1.json b/jsonpaths/com.hubspot/contact_creation_1.json new file mode 100644 index 000000000..f748c37a9 --- /dev/null +++ b/jsonpaths/com.hubspot/contact_creation_1.json @@ -0,0 +1,22 @@ +{ + "jsonpaths": [ + "$.schema.vendor", + "$.schema.name", + "$.schema.format", + "$.schema.version", + "$.hierarchy.rootId", + "$.hierarchy.rootTstamp", + "$.hierarchy.refRoot", + "$.hierarchy.refTree", + "$.hierarchy.refParent", + "$.data.appId", + "$.data.attemptNumber", + "$.data.changeFlag", + "$.data.changeSource", + "$.data.eventId", + "$.data.objectId", + "$.data.occurredAt", + "$.data.portalId", + "$.data.subscriptionId" + ] +} diff --git a/jsonpaths/com.hubspot/contact_deletion_1.json b/jsonpaths/com.hubspot/contact_deletion_1.json new file mode 100644 index 000000000..f748c37a9 --- /dev/null +++ b/jsonpaths/com.hubspot/contact_deletion_1.json @@ -0,0 +1,22 @@ +{ + "jsonpaths": [ + "$.schema.vendor", + "$.schema.name", + "$.schema.format", + "$.schema.version", + "$.hierarchy.rootId", + "$.hierarchy.rootTstamp", + "$.hierarchy.refRoot", + "$.hierarchy.refTree", + "$.hierarchy.refParent", + "$.data.appId", + "$.data.attemptNumber", + "$.data.changeFlag", + "$.data.changeSource", + "$.data.eventId", + "$.data.objectId", + "$.data.occurredAt", + "$.data.portalId", + "$.data.subscriptionId" + ] +} diff --git a/jsonpaths/com.hubspot/deal_change_1.json b/jsonpaths/com.hubspot/deal_change_1.json new file mode 100644 index 000000000..1fc18a6e7 --- /dev/null +++ b/jsonpaths/com.hubspot/deal_change_1.json @@ -0,0 +1,23 @@ +{ + "jsonpaths": [ + "$.schema.vendor", + "$.schema.name", + "$.schema.format", + "$.schema.version", + "$.hierarchy.rootId", + "$.hierarchy.rootTstamp", + "$.hierarchy.refRoot", + "$.hierarchy.refTree", + "$.hierarchy.refParent", + "$.data.appId", + "$.data.attemptNumber", + "$.data.changeSource", + "$.data.eventId", + "$.data.objectId", + "$.data.occurredAt", + "$.data.portalId", + "$.data.propertyName", + "$.data.propertyValue", + "$.data.subscriptionId" + ] +} diff --git a/jsonpaths/com.hubspot/deal_creation_1.json b/jsonpaths/com.hubspot/deal_creation_1.json new file mode 100644 index 000000000..f748c37a9 --- /dev/null +++ b/jsonpaths/com.hubspot/deal_creation_1.json @@ -0,0 +1,22 @@ +{ + "jsonpaths": [ + "$.schema.vendor", + "$.schema.name", + "$.schema.format", + "$.schema.version", + "$.hierarchy.rootId", + "$.hierarchy.rootTstamp", + "$.hierarchy.refRoot", + "$.hierarchy.refTree", + "$.hierarchy.refParent", + "$.data.appId", + "$.data.attemptNumber", + "$.data.changeFlag", + "$.data.changeSource", + "$.data.eventId", + "$.data.objectId", + "$.data.occurredAt", + "$.data.portalId", + "$.data.subscriptionId" + ] +} diff --git a/jsonpaths/com.hubspot/deal_deletion_1.json b/jsonpaths/com.hubspot/deal_deletion_1.json new file mode 100644 index 000000000..f748c37a9 --- /dev/null +++ b/jsonpaths/com.hubspot/deal_deletion_1.json @@ -0,0 +1,22 @@ +{ + "jsonpaths": [ + "$.schema.vendor", + "$.schema.name", + "$.schema.format", + "$.schema.version", + "$.hierarchy.rootId", + "$.hierarchy.rootTstamp", + "$.hierarchy.refRoot", + "$.hierarchy.refTree", + "$.hierarchy.refParent", + "$.data.appId", + "$.data.attemptNumber", + "$.data.changeFlag", + "$.data.changeSource", + "$.data.eventId", + "$.data.objectId", + "$.data.occurredAt", + "$.data.portalId", + "$.data.subscriptionId" + ] +} diff --git a/jsonpaths/com.marketo/event_2.json b/jsonpaths/com.marketo/event_2.json new file mode 100644 index 000000000..233b8c299 --- /dev/null +++ b/jsonpaths/com.marketo/event_2.json @@ -0,0 +1,149 @@ +{ + "jsonpaths": [ + "$.schema.vendor", + "$.schema.name", + "$.schema.format", + "$.schema.version", + "$.hierarchy.rootId", + "$.hierarchy.rootTstamp", + "$.hierarchy.refRoot", + "$.hierarchy.refTree", + "$.hierarchy.refParent", + "$.data.name", + "$.data.campaign.description", + "$.data.campaign.id", + "$.data.campaign.name", + "$.data.company.account_owner_email_address", + "$.data.company.account_owner_first_name", + "$.data.company.account_owner_last_name", + "$.data.company.annual_revenue", + "$.data.company.billing_address", + "$.data.company.billing_city", + "$.data.company.billing_country", + "$.data.company.billing_postal_code", + "$.data.company.billing_state", + "$.data.company.industry", + "$.data.company.main_phone", + "$.data.company.name", + "$.data.company.notes", + "$.data.company.num_employees", + "$.data.company.parent_company_name", + "$.data.company.sic_code", + "$.data.company.site", + "$.data.company.website", + "$.data.datetime", + "$.data.description", + "$.data.forward_to_friend_link", + "$.data.lead.acquisition_date", + "$.data.lead.acquisition_program", + "$.data.lead.acquisition_program_name", + "$.data.lead.address", + "$.data.lead.anonymous_ip", + "$.data.lead.black_listed", + "$.data.lead.city", + "$.data.lead.country", + "$.data.lead.created_at", + "$.data.lead.date_of_birth", + "$.data.lead.department", + "$.data.lead.do_not_call", + "$.data.lead.do_not_call_reason", + "$.data.lead.email_address", + "$.data.lead.email_invalid", + "$.data.lead.email_invalid_cause", + "$.data.lead.email_suspended", + "$.data.lead.email_suspended_at", + "$.data.lead.email_suspended_cause", + "$.data.lead.facebook_display_name", + "$.data.lead.facebook_id", + "$.data.lead.facebook_photo_url", + "$.data.lead.facebook_profile_url", + "$.data.lead.facebook_reach", + "$.data.lead.facebook_referred_enrollments", + "$.data.lead.facebook_referred_visits", + "$.data.lead.fax_number", + "$.data.lead.first_name", + "$.data.lead.full_name", + "$.data.lead.gender", + "$.data.lead.inferred_city", + "$.data.lead.inferred_company", + "$.data.lead.inferred_country", + "$.data.lead.inferred_metropolitan_area", + "$.data.lead.inferred_phone_area_code", + "$.data.lead.inferred_postal_code", + "$.data.lead.inferred_state_region", + "$.data.lead.is_customer", + "$.data.lead.is_partner", + "$.data.lead.job_title", + "$.data.lead.last_interesting_moment_date", + "$.data.lead.last_interesting_moment_description", + "$.data.lead.last_interesting_moment_source", + "$.data.lead.last_interesting_moment_type", + "$.data.lead.last_name", + "$.data.lead.last_referred_enrollment", + "$.data.lead.last_referred_visit", + "$.data.lead.lead_marketing_suspended", + "$.data.lead.lead_owner_email_address", + "$.data.lead.lead_owner_first_name", + "$.data.lead.lead_owner_job_title", + "$.data.lead.lead_owner_last_name", + "$.data.lead.lead_owner_phone_number", + "$.data.lead.lead_rating", + "$.data.lead.lead_score", + "$.data.lead.lead_source", + "$.data.lead.lead_status", + "$.data.lead.linkedin_display_name", + "$.data.lead.linkedin_id", + "$.data.lead.linkedin_photo_url", + "$.data.lead.linkedin_profile_url", + "$.data.lead.linkedin_reach", + "$.data.lead.linkedin_referred_enrollments", + "$.data.lead.linkedin_referred_visits", + "$.data.lead.middle_name", + "$.data.lead.mobile_phone_number", + "$.data.lead.number_of_optys", + "$.data.lead.original_referrer", + "$.data.lead.original_search_engine", + "$.data.lead.original_search_phrase", + "$.data.lead.original_source_info", + "$.data.lead.original_source_type", + "$.data.lead.person_notes", + "$.data.lead.person_timezone", + "$.data.lead.phone_number", + "$.data.lead.postal_code", + "$.data.lead.priority", + "$.data.lead.registration_source_info", + "$.data.lead.registration_source_type", + "$.data.lead.relative_score", + "$.data.lead.relative_urgency", + "$.data.lead.role", + "$.data.lead.salutation", + "$.data.lead.state", + "$.data.lead.syndication_id", + "$.data.lead.total_opty_amount", + "$.data.lead.total_opty_expected_revenue", + "$.data.lead.total_referred_enrollments", + "$.data.lead.total_referred_visits", + "$.data.lead.twitter_display_name", + "$.data.lead.twitter_id", + "$.data.lead.twitter_photo_url", + "$.data.lead.twitter_profile_url", + "$.data.lead.twitter_reach", + "$.data.lead.twitter_referred_enrollments", + "$.data.lead.twitter_referred_visits", + "$.data.lead.unsubscribed", + "$.data.lead.unsubscribed_reason", + "$.data.lead.updated_at", + "$.data.lead.urgency", + "$.data.munchkinId", + "$.data.program.description", + "$.data.program.id", + "$.data.program.name", + "$.data.social.email", + "$.data.social.promo_code", + "$.data.social.share_url", + "$.data.sp_send_alert_info", + "$.data.step", + "$.data.unsubscribe_link", + "$.data.view_as_webpage_link" + ] +} diff --git a/schemas/com.hubspot/company_change/jsonschema/1-0-0 b/schemas/com.hubspot/company_change/jsonschema/1-0-0 new file mode 100644 index 000000000..a6fc5911f --- /dev/null +++ b/schemas/com.hubspot/company_change/jsonschema/1-0-0 @@ -0,0 +1,70 @@ +{ + "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", + "description": "Webhook event for changeing one of a company's property value.", + "self": { + "vendor": "com.hubspot", + "name": "company_change", + "format": "jsonschema", + "version": "1-0-0" + }, + "type": "object", + "properties": { + "objectId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of the object that was created/changed/deleted. For contacts this is the vid; for companies, the companyId; and for deals the dealId." + }, + "changeSource": { + "type": "string", + "maxLength": 128, + "description": "The source of this change. Can be any of the change sources that you find on contact property histories." + }, + "eventId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The unique ID of the event that triggered this notification." + }, + "subscriptionId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of the subscription that caused us to send you a notification of this event." + }, + "portalId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The customer's portalId that this event came from." + }, + "appId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of your application. (In case you have multiple applications pointing to the same webhook URL.)" + }, + "occurredAt": { + "type": "string", + "format": "date-time", + "description": "When this event occurred." + }, + "attemptNumber": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Which attempt this is to notify your service of this event (starting at 0). If your service times-out or throws an error as described in 'Retries' below, we will attempt to send the notification to your service again." + }, + "propertyName": { + "type": "string", + "maxLength": 255, + "description": "This is the name of the property that was changed." + }, + "propertyValue": { + "type": "string", + "maxLength": 255, + "description": "This is the new value that was set for this property that triggered this notification." + } + }, + "additionalProperties": false +} diff --git a/schemas/com.hubspot/company_creation/jsonschema/1-0-0 b/schemas/com.hubspot/company_creation/jsonschema/1-0-0 new file mode 100644 index 000000000..b54837a95 --- /dev/null +++ b/schemas/com.hubspot/company_creation/jsonschema/1-0-0 @@ -0,0 +1,64 @@ +{ + "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", + "description": "Webhook event for creating a new company.", + "self": { + "vendor": "com.hubspot", + "name": "company_creation", + "format": "jsonschema", + "version": "1-0-0" + }, + "type": "object", + "properties": { + "objectId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of the object that was created/changed/deleted. For contacts this is the vid; for companies, the companyId; and for deals the dealId." + }, + "changeSource": { + "type": "string", + "maxLength": 128, + "description": "The source of this change. Can be any of the change sources that you find on contact property histories." + }, + "eventId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The unique ID of the event that triggered this notification." + }, + "subscriptionId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of the subscription that caused us to send you a notification of this event." + }, + "portalId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The customer's portalId that this event came from." + }, + "appId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of your application. (In case you have multiple applications pointing to the same webhook URL.)" + }, + "occurredAt": { + "type": "string", + "format": "date-time", + "description": "When this event occurred." + }, + "attemptNumber": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Which attempt this is to notify your service of this event (starting at 0). If your service times-out or throws an error as described in 'Retries' below, we will attempt to send the notification to your service again." + }, + "changeFlag": { + "type": "string", + "maxLength": 128 + } + }, + "additionalProperties": false +} diff --git a/schemas/com.hubspot/company_deletion/jsonschema/1-0-0 b/schemas/com.hubspot/company_deletion/jsonschema/1-0-0 new file mode 100644 index 000000000..ea6dd20ff --- /dev/null +++ b/schemas/com.hubspot/company_deletion/jsonschema/1-0-0 @@ -0,0 +1,64 @@ +{ + "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", + "description": "Webhook event for deleting a company.", + "self": { + "vendor": "com.hubspot", + "name": "company_deletion", + "format": "jsonschema", + "version": "1-0-0" + }, + "type": "object", + "properties": { + "objectId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of the object that was created/changed/deleted. For contacts this is the vid; for companies, the companyId; and for deals the dealId." + }, + "changeSource": { + "type": "string", + "maxLength": 128, + "description": "The source of this change. Can be any of the change sources that you find on contact property histories." + }, + "eventId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The unique ID of the event that triggered this notification." + }, + "subscriptionId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of the subscription that caused us to send you a notification of this event." + }, + "portalId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The customer's portalId that this event came from." + }, + "appId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of your application. (In case you have multiple applications pointing to the same webhook URL.)" + }, + "occurredAt": { + "type": "string", + "format": "date-time", + "description": "When this event occurred." + }, + "attemptNumber": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Which attempt this is to notify your service of this event (starting at 0). If your service times-out or throws an error as described in 'Retries' below, we will attempt to send the notification to your service again." + }, + "changeFlag": { + "type": "string", + "maxLength": 128 + } + }, + "additionalProperties": false +} diff --git a/schemas/com.hubspot/contact_change/jsonschema/1-0-0 b/schemas/com.hubspot/contact_change/jsonschema/1-0-0 new file mode 100644 index 000000000..df99483f3 --- /dev/null +++ b/schemas/com.hubspot/contact_change/jsonschema/1-0-0 @@ -0,0 +1,70 @@ +{ + "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", + "description": "Webhook event for changeing one of a contact's property value.", + "self": { + "vendor": "com.hubspot", + "name": "contact_change", + "format": "jsonschema", + "version": "1-0-0" + }, + "type": "object", + "properties": { + "objectId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of the object that was created/changed/deleted. For contacts this is the vid; for companies, the companyId; and for deals the dealId." + }, + "changeSource": { + "type": "string", + "maxLength": 128, + "description": "The source of this change. Can be any of the change sources that you find on contact property histories." + }, + "eventId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The unique ID of the event that triggered this notification." + }, + "subscriptionId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of the subscription that caused us to send you a notification of this event." + }, + "portalId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The customer's portalId that this event came from." + }, + "appId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of your application. (In case you have multiple applications pointing to the same webhook URL.)" + }, + "occurredAt": { + "type": "string", + "format": "date-time", + "description": "When this event occurred." + }, + "attemptNumber": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Which attempt this is to notify your service of this event (starting at 0). If your service times-out or throws an error as described in 'Retries' below, we will attempt to send the notification to your service again." + }, + "propertyName": { + "type": "string", + "maxLength": 255, + "description": "This is the name of the property that was changed." + }, + "propertyValue": { + "type": "string", + "maxLength": 255, + "description": "This is the new value that was set for this property that triggered this notification." + } + }, + "additionalProperties": false +} diff --git a/schemas/com.hubspot/contact_creation/jsonschema/1-0-0 b/schemas/com.hubspot/contact_creation/jsonschema/1-0-0 new file mode 100644 index 000000000..3e08a02b8 --- /dev/null +++ b/schemas/com.hubspot/contact_creation/jsonschema/1-0-0 @@ -0,0 +1,64 @@ +{ + "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", + "description": "Webhook event for creating a new contact.", + "self": { + "vendor": "com.hubspot", + "name": "contact_creation", + "format": "jsonschema", + "version": "1-0-0" + }, + "type": "object", + "properties": { + "objectId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of the object that was created/changed/deleted. For contacts this is the vid; for companies, the companyId; and for deals the dealId." + }, + "changeSource": { + "type": "string", + "maxLength": 128, + "description": "The source of this change. Can be any of the change sources that you find on contact property histories." + }, + "eventId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The unique ID of the event that triggered this notification." + }, + "subscriptionId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of the subscription that caused us to send you a notification of this event." + }, + "portalId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The customer's portalId that this event came from." + }, + "appId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of your application. (In case you have multiple applications pointing to the same webhook URL.)" + }, + "occurredAt": { + "type": "string", + "format": "date-time", + "description": "When this event occurred." + }, + "attemptNumber": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Which attempt this is to notify your service of this event (starting at 0). If your service times-out or throws an error as described in 'Retries' below, we will attempt to send the notification to your service again." + }, + "changeFlag": { + "type": "string", + "maxLength": 128 + } + }, + "additionalProperties": false +} diff --git a/schemas/com.hubspot/contact_deletion/jsonschema/1-0-0 b/schemas/com.hubspot/contact_deletion/jsonschema/1-0-0 new file mode 100644 index 000000000..d10d6a16b --- /dev/null +++ b/schemas/com.hubspot/contact_deletion/jsonschema/1-0-0 @@ -0,0 +1,64 @@ +{ + "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", + "description": "Webhook event for deleting a contact.", + "self": { + "vendor": "com.hubspot", + "name": "contact_deletion", + "format": "jsonschema", + "version": "1-0-0" + }, + "type": "object", + "properties": { + "objectId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of the object that was created/changed/deleted. For contacts this is the vid; for companies, the companyId; and for deals the dealId." + }, + "changeSource": { + "type": "string", + "maxLength": 128, + "description": "The source of this change. Can be any of the change sources that you find on contact property histories." + }, + "eventId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The unique ID of the event that triggered this notification." + }, + "subscriptionId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of the subscription that caused us to send you a notification of this event." + }, + "portalId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The customer's portalId that this event came from." + }, + "appId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of your application. (In case you have multiple applications pointing to the same webhook URL.)" + }, + "occurredAt": { + "type": "string", + "format": "date-time", + "description": "When this event occurred." + }, + "attemptNumber": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Which attempt this is to notify your service of this event (starting at 0). If your service times-out or throws an error as described in 'Retries' below, we will attempt to send the notification to your service again." + }, + "changeFlag": { + "type": "string", + "maxLength": 128 + } + }, + "additionalProperties": false +} diff --git a/schemas/com.hubspot/deal_change/jsonschema/1-0-0 b/schemas/com.hubspot/deal_change/jsonschema/1-0-0 new file mode 100644 index 000000000..cf19e129c --- /dev/null +++ b/schemas/com.hubspot/deal_change/jsonschema/1-0-0 @@ -0,0 +1,70 @@ +{ + "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", + "description": "Webhook event for changeing one of a deal's property value.", + "self": { + "vendor": "com.hubspot", + "name": "deal_change", + "format": "jsonschema", + "version": "1-0-0" + }, + "type": "object", + "properties": { + "objectId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of the object that was created/changed/deleted. For contacts this is the vid; for companies, the companyId; and for deals the dealId." + }, + "changeSource": { + "type": "string", + "maxLength": 128, + "description": "The source of this change. Can be any of the change sources that you find on contact property histories." + }, + "eventId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The unique ID of the event that triggered this notification." + }, + "subscriptionId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of the subscription that caused us to send you a notification of this event." + }, + "portalId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The customer's portalId that this event came from." + }, + "appId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of your application. (In case you have multiple applications pointing to the same webhook URL.)" + }, + "occurredAt": { + "type": "string", + "format": "date-time", + "description": "When this event occurred." + }, + "attemptNumber": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Which attempt this is to notify your service of this event (starting at 0). If your service times-out or throws an error as described in 'Retries' below, we will attempt to send the notification to your service again." + }, + "propertyName": { + "type": "string", + "maxLength": 255, + "description": "This is the name of the property that was changed." + }, + "propertyValue": { + "type": "string", + "maxLength": 255, + "description": "This is the new value that was set for this property that triggered this notification." + } + }, + "additionalProperties": false +} diff --git a/schemas/com.hubspot/deal_creation/jsonschema/1-0-0 b/schemas/com.hubspot/deal_creation/jsonschema/1-0-0 new file mode 100644 index 000000000..accffefb2 --- /dev/null +++ b/schemas/com.hubspot/deal_creation/jsonschema/1-0-0 @@ -0,0 +1,64 @@ +{ + "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", + "description": "Webhook event for creating a new deal.", + "self": { + "vendor": "com.hubspot", + "name": "deal_creation", + "format": "jsonschema", + "version": "1-0-0" + }, + "type": "object", + "properties": { + "objectId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of the object that was created/changed/deleted. For contacts this is the vid; for companies, the companyId; and for deals the dealId." + }, + "changeSource": { + "type": "string", + "maxLength": 128, + "description": "The source of this change. Can be any of the change sources that you find on contact property histories." + }, + "eventId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The unique ID of the event that triggered this notification." + }, + "subscriptionId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of the subscription that caused us to send you a notification of this event." + }, + "portalId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The customer's portalId that this event came from." + }, + "appId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of your application. (In case you have multiple applications pointing to the same webhook URL.)" + }, + "occurredAt": { + "type": "string", + "format": "date-time", + "description": "When this event occurred." + }, + "attemptNumber": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Which attempt this is to notify your service of this event (starting at 0). If your service times-out or throws an error as described in 'Retries' below, we will attempt to send the notification to your service again." + }, + "changeFlag": { + "type": "string", + "maxLength": 128 + } + }, + "additionalProperties": false +} diff --git a/schemas/com.hubspot/deal_deletion/jsonschema/1-0-0 b/schemas/com.hubspot/deal_deletion/jsonschema/1-0-0 new file mode 100644 index 000000000..6f3f6cd4d --- /dev/null +++ b/schemas/com.hubspot/deal_deletion/jsonschema/1-0-0 @@ -0,0 +1,64 @@ +{ + "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", + "description": "Webhook event for deleting a deal.", + "self": { + "vendor": "com.hubspot", + "name": "deal_deletion", + "format": "jsonschema", + "version": "1-0-0" + }, + "type": "object", + "properties": { + "objectId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of the object that was created/changed/deleted. For contacts this is the vid; for companies, the companyId; and for deals the dealId." + }, + "changeSource": { + "type": "string", + "maxLength": 128, + "description": "The source of this change. Can be any of the change sources that you find on contact property histories." + }, + "eventId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The unique ID of the event that triggered this notification." + }, + "subscriptionId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of the subscription that caused us to send you a notification of this event." + }, + "portalId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The customer's portalId that this event came from." + }, + "appId": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "The ID of your application. (In case you have multiple applications pointing to the same webhook URL.)" + }, + "occurredAt": { + "type": "string", + "format": "date-time", + "description": "When this event occurred." + }, + "attemptNumber": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647, + "description": "Which attempt this is to notify your service of this event (starting at 0). If your service times-out or throws an error as described in 'Retries' below, we will attempt to send the notification to your service again." + }, + "changeFlag": { + "type": "string", + "maxLength": 128 + } + }, + "additionalProperties": false +} diff --git a/schemas/com.marketo/event/jsonschema/2-0-0 b/schemas/com.marketo/event/jsonschema/2-0-0 new file mode 100644 index 000000000..171c94522 --- /dev/null +++ b/schemas/com.marketo/event/jsonschema/2-0-0 @@ -0,0 +1,601 @@ +{ + "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", + "description": "Marketo description", + "self": { + "vendor": "com.marketo", + "name": "event", + "format": "jsonschema", + "version": "2-0-0" + }, + "type": "object", + "properties": { + "name": { + "type": "string", + "maxLength": 128 + }, + "description": { + "type": ["string", "null"], + "maxLength": 255 + }, + "step": { + "type": ["integer", "null"], + "minimum": 0, + "maximum": 32767 + }, + "campaign": { + "type": ["object", "null"], + "properties": { + "id": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "name": { + "type": "string", + "maxLength": 255 + }, + "description": { + "type": ["string", "null"], + "maxLength": 255 + } + }, + "required": ["id", "name"] + }, + "company": { + "type": ["object", "null"], + "properties": { + "account_owner_email_address": { + "type": "string", + "format": "email" + }, + "account_owner_first_name": { + "type": "string", + "maxLength": 255 + }, + "account_owner_last_name": { + "type": "string", + "maxLength": 255 + }, + "annual_revenue": { + "type": "number", + "minimum": 0, + "maximum": 2147483647 + }, + "billing_address": { + "type": "string", + "maxLength": 255 + }, + "billing_city": { + "type": "string", + "maxLength": 255 + }, + "billing_country": { + "type": "string", + "maxLength": 255 + }, + "billing_postal_code": { + "type": "string", + "maxLength": 255 + }, + "billing_state": { + "type": "string", + "maxLength": 255 + }, + "name": { + "type": "string", + "maxLength": 255 + }, + "notes": { + "type": "string", + "maxLength": 255 + }, + "industry": { + "type": "string", + "maxLength": 255 + }, + "main_phone": { + "type": "string", + "maxLength": 255 + }, + "num_employees": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "parent_company_name": { + "type": "string", + "maxLength": 255 + }, + "sic_code": { + "type": "string", + "maxLength": 40 + }, + "site": { + "type": "string", + "maxLength": 255 + }, + "website": { + "type": "string", + "maxLength": 255 + } + } + }, + "lead": { + "type": ["object", "null"], + "properties": { + "acquisition_date": { + "type": "string", + "format": "date-time" + }, + "acquisition_program_name": { + "type": "string", + "maxLength": 255 + }, + "acquisition_program": { + "type": "string", + "maxLength": 255 + }, + "address": { + "type": "string", + "maxLength": 255 + }, + "anonymous_ip": { + "type": "string", + "maxLength": 45 + }, + "black_listed": { + "type": "boolean" + }, + "city": { + "type": "string", + "maxLength": 255 + }, + "country": { + "type": "string", + "maxLength": 255 + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "date_of_birth": { + "type": "string", + "format": "date" + }, + "department": { + "type": "string", + "maxLength": 255 + }, + "do_not_call_reason": { + "type": "string", + "maxLength": 512 + }, + "do_not_call": { + "type": "boolean" + }, + "email_address": { + "type": "string", + "format": "email" + }, + "email_invalid_cause": { + "type": "string", + "maxLength": 255 + }, + "email_invalid": { + "type": "boolean" + }, + "email_suspended_at": { + "type": "string", + "format": "date-time" + }, + "email_suspended_cause": { + "type": "string", + "maxLength": 2000 + }, + "email_suspended": { + "type": "boolean" + }, + "fax_number": { + "type": "string", + "maxLength": 255 + }, + "first_name": { + "type": "string", + "maxLength": 255 + }, + "full_name": { + "type": "string", + "maxLength": 255 + }, + "inferred_city": { + "type": "string", + "maxLength": 255 + }, + "inferred_company": { + "type": "string", + "maxLength": 255 + }, + "inferred_country": { + "type": "string", + "maxLength": 255 + }, + "inferred_metropolitan_area": { + "type": "string", + "maxLength": 255 + }, + "inferred_phone_area_code": { + "type": "string", + "maxLength": 255 + }, + "inferred_postal_code": { + "type": "string", + "maxLength": 255 + }, + "inferred_state_region": { + "type": "string", + "maxLength": 255 + }, + "is_customer": { + "type": "boolean" + }, + "is_partner": { + "type": "boolean" + }, + "job_title": { + "type": "string", + "maxLength": 255 + }, + "last_interesting_moment_date": { + "type": "string", + "format": "date-time" + }, + "last_interesting_moment_description": { + "type": "string", + "maxLength": 255 + }, + "last_interesting_moment_source": { + "type": "string", + "maxLength": 255 + }, + "last_interesting_moment_type": { + "type": "string", + "maxLength": 255 + }, + "last_name": { + "type": "string", + "maxLength": 255 + }, + "lead_owner_email_address": { + "type": "string", + "format": "email" + }, + "lead_owner_first_name": { + "type": "string", + "maxLength": 255 + }, + "lead_owner_job_title": { + "type": "string", + "maxLength": 255 + }, + "lead_owner_last_name": { + "type": "string", + "maxLength": 255 + }, + "lead_owner_phone_number": { + "type": "string", + "maxLength": 255 + }, + "lead_rating": { + "type": "string", + "maxLength": 255 + }, + "lead_score": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "lead_source": { + "type": "string", + "maxLength": 255 + }, + "lead_status": { + "type": "string", + "maxLength": 255 + }, + "lead_marketing_suspended": { + "type": "boolean" + }, + "facebook_display_name": { + "type": "string", + "maxLength": 255 + }, + "facebook_id": { + "type": "string", + "maxLength": 512 + }, + "facebook_photo_url": { + "type": "string", + "maxLength": 255 + }, + "facebook_profile_url": { + "type": "string", + "maxLength": 255 + }, + "facebook_reach": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "facebook_referred_enrollments": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "facebook_referred_visits": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "gender": { + "type": "string", + "maxLength": 6 + }, + "last_referred_enrollment": { + "type": "string", + "format": "date-time" + }, + "last_referred_visit": { + "type": "string", + "format": "date-time" + }, + "linkedin_display_name": { + "type": "string", + "maxLength": 255 + }, + "linkedin_id": { + "type": "string", + "maxLength": 512 + }, + "linkedin_photo_url": { + "type": "string", + "maxLength": 512 + }, + "linkedin_profile_url": { + "type": "string", + "maxLength": 512 + }, + "linkedin_reach": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "linkedin_referred_enrollments": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "linkedin_referred_visits": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "syndication_id": { + "type": "string", + "maxLength": 512 + }, + "total_referred_enrollments": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "total_referred_visits": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "twitter_display_name": { + "type": "string", + "maxLength": 255 + }, + "twitter_id": { + "type": "string", + "maxLength": 512 + }, + "twitter_photo_url": { + "type": "string", + "maxLength": 512 + }, + "twitter_profile_url": { + "type": "string", + "maxLength": 512 + }, + "twitter_reach": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "twitter_referred_enrollments": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "twitter_referred_visits": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "middle_name": { + "type": "string", + "maxLength": 255 + }, + "mobile_phone_number": { + "type": "string", + "maxLength": 255 + }, + "number_of_optys": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "original_referrer": { + "type": "string", + "maxLength": 255 + }, + "original_search_engine": { + "type": "string", + "maxLength": 255 + }, + "original_search_phrase": { + "type": "string", + "maxLength": 255 + }, + "original_source_info": { + "type": "string", + "maxLength": 255 + }, + "original_source_type": { + "type": "string", + "maxLength": 255 + }, + "person_notes": { + "type": "string", + "maxLength": 512 + }, + "person_timezone": { + "type": "string", + "maxLength": 255 + }, + "phone_number": { + "type": "string", + "maxLength": 255 + }, + "postal_code": { + "type": "string", + "maxLength": 255 + }, + "priority": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "registration_source_info": { + "type": "string", + "maxLength": 2000 + }, + "registration_source_type": { + "type": "string", + "maxLength": 255 + }, + "relative_score": { + "type": "integer", + "minimum": 0, + "maximum": 5 + }, + "relative_urgency": { + "type": "integer", + "minimum": 0, + "maximum": 5 + }, + "role": { + "type": "string", + "maxLength": 50 + }, + "salutation": { + "type": "string", + "maxLength": 255 + }, + "state": { + "type": "string", + "maxLength": 255 + }, + "total_opty_amount": { + "type": "number", + "minimum": 0, + "maximum": 2147483647 + }, + "total_opty_expected_revenue": { + "type": "number", + "minimum": 0, + "maximum": 2147483647 + }, + "unsubscribed_reason": { + "type": "string", + "maxLength": 512 + }, + "unsubscribed": { + "type": "boolean" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "urgency": { + "type": "integer", + "minimum": 0, + "maximum": 32767 + } + } + }, + "program": { + "type": ["object", "null"], + "properties": { + "id": { + "type": "integer", + "minimum": 0, + "maximum": 2147483647 + }, + "name": { + "type": "string", + "maxLength": 255 + }, + "description": { + "type": "string", + "maxLength": 2000 + } + } + }, + "social": { + "type": ["object", "null"], + "properties": { + "promo_code": { + "type": "string", + "maxLength": 255 + }, + "share_url": { + "type": "string", + "maxLength": 2000 + }, + "email": { + "type": "string", + "format": "email" + } + } + }, + "datetime": { + "type": ["string", "null"], + "format": "date-time" + }, + "forward_to_friend_link": { + "type": ["string", "null"], + "maxLength": 255 + }, + "munchkinId": { + "type": ["string", "null"], + "maxLength": 255 + }, + "unsubscribe_link": { + "type": ["string", "null"], + "maxLength": 2000 + }, + "view_as_webpage_link": { + "type": ["string", "null"], + "maxLength": 2000 + }, + "sp_send_alert_info": { + "type": ["string", "null"], + "maxLength": 2000 + } + }, + "additionalProperties": true, + "required": ["name"] +} diff --git a/schemas/com.snowplowanalytics.snowplow/atomic/jsonschema/1-0-0 b/schemas/com.snowplowanalytics.snowplow/atomic/jsonschema/1-0-0 new file mode 100644 index 000000000..d3fd74013 --- /dev/null +++ b/schemas/com.snowplowanalytics.snowplow/atomic/jsonschema/1-0-0 @@ -0,0 +1,489 @@ +{ + "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", + "description": "Schema for an atomic canonical Snowplow event", + "self": { + "vendor": "com.snowplowanalytics.snowplow", + "name": "atomic", + "format": "jsonschema", + "version": "1-0-0" + }, + "type": "object", + "properties": { + "app_id": { + "type": ["string", "null"], + "maxLength": 255 + }, + "platform": { + "type": ["string", "null"], + "maxLength": 255 + }, + "etl_tstamp": { + "type": ["string", "null"], + "format": "date-time" + }, + "collector_tstamp": { + "type": "string", + "format": "date-time" + }, + "dvce_created_tstamp": { + "type": ["string", "null"], + "format": "date-time" + }, + "event": { + "type": ["string", "null"], + "maxLength": 128 + }, + "event_id": { + "type": "string", + "maxLength": 36 + }, + "txn_id": { + "type": ["integer", "null"] + }, + "name_tracker": { + "type": ["string", "null"], + "maxLength": 128 + }, + "v_tracker": { + "type": ["string", "null"], + "maxLength": 100 + }, + "v_collector": { + "type": "string", + "maxLength": 100 + }, + "v_etl": { + "type": "string", + "maxLength": 100 + }, + "user_id": { + "type": ["string", "null"], + "maxLength": 255 + }, + "user_ipaddress": { + "type": ["string", "null"], + "maxLength": 128 + }, + "user_fingerprint": { + "type": ["string", "null"], + "maxLength": 128 + }, + "domain_userid": { + "type": ["string", "null"], + "maxLength": 128 + }, + "domain_sessionidx": { + "type": ["integer", "null"] + }, + "network_userid": { + "type": ["string", "null"], + "maxLength": 128 + }, + "geo_country": { + "type": ["string", "null"], + "maxLength": 2 + }, + "geo_region": { + "type": ["string", "null"], + "maxLength": 3 + }, + "geo_city": { + "type": ["string", "null"], + "maxLength": 75 + }, + "geo_zipcode": { + "type": ["string", "null"], + "maxLength": 15 + }, + "geo_latitude": { + "type": ["number", "null"] + }, + "geo_longitude": { + "type": ["number", "null"] + }, + "geo_region_name": { + "type": ["string", "null"], + "maxLength": 100 + }, + "ip_isp": { + "type": ["string", "null"], + "maxLength": 100 + }, + "ip_organization": { + "type": ["string", "null"], + "maxLength": 128 + }, + "ip_domain": { + "type": ["string", "null"], + "maxLength": 128 + }, + "ip_netspeed": { + "type": ["string", "null"], + "maxLength": 100 + }, + "page_url": { + "type": ["string", "null"], + "maxLength": 4096 + }, + "page_title": { + "type": ["string", "null"], + "maxLength": 2000 + }, + "page_referrer": { + "type": ["string", "null"], + "maxLength": 4096 + }, + "page_urlscheme": { + "type": ["string", "null"], + "maxLength": 16 + }, + "page_urlhost": { + "type": ["string", "null"], + "maxLength": 255 + }, + "page_urlport": { + "type": ["integer", "null"] + }, + "page_urlpath": { + "type": ["string", "null"], + "maxLength": 3000 + }, + "page_urlquery": { + "type": ["string", "null"], + "maxLength": 6000 + }, + "page_urlfragment": { + "type": ["string", "null"], + "maxLength": 3000 + }, + "refr_urlscheme": { + "type": ["string", "null"], + "maxLength": 16 + }, + "refr_urlhost": { + "type": ["string", "null"], + "maxLength": 255 + }, + "refr_urlport": { + "type": ["integer", "null"] + }, + "refr_urlpath": { + "type": ["string", "null"], + "maxLength": 6000 + }, + "refr_urlquery": { + "type": ["string", "null"], + "maxLength": 6000 + }, + "refr_urlfragment": { + "type": ["string", "null"], + "maxLength": 3000 + }, + "refr_medium": { + "type": ["string", "null"], + "maxLength": 25 + }, + "refr_source": { + "type": ["string", "null"], + "maxLength": 50 + }, + "refr_term": { + "type": ["string", "null"], + "maxLength": 255 + }, + "mkt_medium": { + "type": ["string", "null"], + "maxLength": 255 + }, + "mkt_source": { + "type": ["string", "null"], + "maxLength": 255 + }, + "mkt_term": { + "type": ["string", "null"], + "maxLength": 255 + }, + "mkt_content": { + "type": ["string", "null"], + "maxLength": 500 + }, + "mkt_campaign": { + "type": ["string", "null"], + "maxLength": 255 + }, + "se_category": { + "type": ["string", "null"], + "maxLength": 1000 + }, + "se_action": { + "type": ["string", "null"], + "maxLength": 1000 + }, + "se_label": { + "type": ["string", "null"], + "maxLength": 1000 + }, + "se_property": { + "type": ["string", "null"], + "maxLength": 1000 + }, + "se_value": { + "type": ["number", "null"] + }, + "tr_orderid": { + "type": ["string", "null"], + "maxLength": 255 + }, + "tr_affiliation": { + "type": ["string", "null"], + "maxLength": 255 + }, + "tr_total": { + "type": ["number", "null"] + }, + "tr_tax": { + "type": ["number", "null"] + }, + "tr_shipping": { + "type": ["number", "null"] + }, + "tr_city": { + "type": ["string", "null"], + "maxLength": 255 + }, + "tr_state": { + "type": ["string", "null"], + "maxLength": 255 + }, + "tr_country": { + "type": ["string", "null"], + "maxLength": 255 + }, + "ti_orderid": { + "type": ["string", "null"], + "maxLength": 255 + }, + "ti_sku": { + "type": ["string", "null"], + "maxLength": 255 + }, + "ti_name": { + "type": ["string", "null"], + "maxLength": 255 + }, + "ti_category": { + "type": ["string", "null"], + "maxLength": 255 + }, + "ti_price": { + "type": ["number", "null"] + }, + "ti_quantity": { + "type": ["integer", "null"] + }, + "pp_xoffset_min": { + "type": ["integer", "null"] + }, + "pp_xoffset_max": { + "type": ["integer", "null"] + }, + "pp_yoffset_min": { + "type": ["integer", "null"] + }, + "pp_yoffset_max": { + "type": ["integer", "null"] + }, + "useragent": { + "type": ["string", "null"], + "maxLength": 1000 + }, + "br_name": { + "type": ["string", "null"], + "maxLength": 50 + }, + "br_family": { + "type": ["string", "null"], + "maxLength": 50 + }, + "br_version": { + "type": ["string", "null"], + "maxLength": 50 + }, + "br_type": { + "type": ["string", "null"], + "maxLength": 50 + }, + "br_renderengine": { + "type": ["string", "null"], + "maxLength": 50 + }, + "br_lang": { + "type": ["string", "null"], + "maxLength": 255 + }, + "br_features_pdf": { + "type": ["boolean", "null"] + }, + "br_features_flash": { + "type": ["boolean", "null"] + }, + "br_features_java": { + "type": ["boolean", "null"] + }, + "br_features_director": { + "type": ["boolean", "null"] + }, + "br_features_quicktime": { + "type": ["boolean", "null"] + }, + "br_features_realplayer": { + "type": ["boolean", "null"] + }, + "br_features_windowsmedia": { + "type": ["boolean", "null"] + }, + "br_features_gears": { + "type": ["boolean", "null"] + }, + "br_features_silverlight": { + "type": ["boolean", "null"] + }, + "br_cookies": { + "type": ["boolean", "null"] + }, + "br_colordepth": { + "type": ["string", "null"], + "maxLength": 12 + }, + "br_viewwidth": { + "type": ["integer", "null"] + }, + "br_viewheight": { + "type": ["integer", "null"] + }, + "os_name": { + "type": ["string", "null"], + "maxLength": 50 + }, + "os_family": { + "type": ["string", "null"], + "maxLength": 50 + }, + "os_manufacturer": { + "type": ["string", "null"], + "maxLength": 50 + }, + "os_timezone": { + "type": ["string", "null"], + "maxLength": 255 + }, + "dvce_type": { + "type": ["string", "null"], + "maxLength": 50 + }, + "dvce_ismobile": { + "type": ["boolean", "null"] + }, + "dvce_screenwidth": { + "type": ["integer", "null"] + }, + "dvce_screenheight": { + "type": ["integer", "null"] + }, + "doc_charset": { + "type": ["string", "null"], + "maxLength": 128 + }, + "doc_width": { + "type": ["integer", "null"] + }, + "doc_height": { + "type": ["integer", "null"] + }, + "tr_currency": { + "type": ["string", "null"], + "maxLength": 3 + }, + "tr_total_base": { + "type": ["number", "null"] + }, + "tr_tax_base": { + "type": ["number", "null"] + }, + "tr_shipping_base": { + "type": ["number", "null"] + }, + "ti_currency": { + "type": ["string", "null"], + "maxLength": 3 + }, + "ti_price_base": { + "type": ["number", "null"] + }, + "base_currency": { + "type": ["string", "null"], + "maxLength": 3 + }, + "geo_timezone": { + "type": ["string", "null"], + "maxLength": 64 + }, + "mkt_clickid": { + "type": ["string", "null"], + "maxLength": 128 + }, + "mkt_network": { + "type": ["string", "null"], + "maxLength": 64 + }, + "etl_tags": { + "type": ["string", "null"], + "maxLength": 500 + }, + "dvce_sent_tstamp": { + "type": ["string", "null"], + "format": "date-time" + }, + "refr_domain_userid": { + "type": ["string", "null"], + "maxLength": 128 + }, + "refr_dvce_tstamp": { + "type": ["string", "null"], + "format": "date-time" + }, + "domain_sessionid": { + "type": ["string", "null"], + "maxLength": 128 + }, + "derived_tstamp": { + "type": ["string", "null"], + "format": "date-time" + }, + "event_vendor": { + "type": ["string", "null"], + "maxLength": 1000 + }, + "event_name": { + "type": ["string", "null"], + "maxLength": 1000 + }, + "event_format": { + "type": ["string", "null"], + "maxLength": 128 + }, + "event_version": { + "type": ["string", "null"], + "maxLength": 128 + }, + "event_fingerprint": { + "type": ["string", "null"], + "maxLength": 128 + }, + "true_tstamp": { + "type": ["string", "null"], + "format": "date-time" + } + }, + "additionalProperties": false +} diff --git a/sql/com.hubspot/company_change_1.sql b/sql/com.hubspot/company_change_1.sql new file mode 100644 index 000000000..8d9a4ec0d --- /dev/null +++ b/sql/com.hubspot/company_change_1.sql @@ -0,0 +1,33 @@ +-- AUTO-GENERATED BY igluctl DO NOT EDIT +-- Generator: igluctl 0.4.1 +-- Generated: 2018-10-11 00:45 UTC + +CREATE SCHEMA IF NOT EXISTS atomic; + +CREATE TABLE IF NOT EXISTS atomic.com_hubspot_company_change_1 ( + "schema_vendor" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_name" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_format" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_version" VARCHAR(128) ENCODE ZSTD NOT NULL, + "root_id" CHAR(36) ENCODE RAW NOT NULL, + "root_tstamp" TIMESTAMP ENCODE ZSTD NOT NULL, + "ref_root" VARCHAR(255) ENCODE ZSTD NOT NULL, + "ref_tree" VARCHAR(1500) ENCODE ZSTD NOT NULL, + "ref_parent" VARCHAR(255) ENCODE ZSTD NOT NULL, + "app_id" INT ENCODE ZSTD, + "attempt_number" INT ENCODE ZSTD, + "change_source" VARCHAR(128) ENCODE ZSTD, + "event_id" INT ENCODE ZSTD, + "object_id" INT ENCODE ZSTD, + "occurred_at" TIMESTAMP ENCODE ZSTD, + "portal_id" INT ENCODE ZSTD, + "property_name" VARCHAR(255) ENCODE ZSTD, + "property_value" VARCHAR(255) ENCODE ZSTD, + "subscription_id" INT ENCODE ZSTD, + FOREIGN KEY (root_id) REFERENCES atomic.events(event_id) +) +DISTSTYLE KEY +DISTKEY (root_id) +SORTKEY (root_tstamp); + +COMMENT ON TABLE atomic.com_hubspot_company_change_1 IS 'iglu:com.hubspot/company_change/jsonschema/1-0-0'; diff --git a/sql/com.hubspot/company_creation_1.sql b/sql/com.hubspot/company_creation_1.sql new file mode 100644 index 000000000..91e6c3947 --- /dev/null +++ b/sql/com.hubspot/company_creation_1.sql @@ -0,0 +1,32 @@ +-- AUTO-GENERATED BY igluctl DO NOT EDIT +-- Generator: igluctl 0.4.1 +-- Generated: 2018-10-11 00:45 UTC + +CREATE SCHEMA IF NOT EXISTS atomic; + +CREATE TABLE IF NOT EXISTS atomic.com_hubspot_company_creation_1 ( + "schema_vendor" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_name" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_format" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_version" VARCHAR(128) ENCODE ZSTD NOT NULL, + "root_id" CHAR(36) ENCODE RAW NOT NULL, + "root_tstamp" TIMESTAMP ENCODE ZSTD NOT NULL, + "ref_root" VARCHAR(255) ENCODE ZSTD NOT NULL, + "ref_tree" VARCHAR(1500) ENCODE ZSTD NOT NULL, + "ref_parent" VARCHAR(255) ENCODE ZSTD NOT NULL, + "app_id" INT ENCODE ZSTD, + "attempt_number" INT ENCODE ZSTD, + "change_flag" VARCHAR(128) ENCODE ZSTD, + "change_source" VARCHAR(128) ENCODE ZSTD, + "event_id" INT ENCODE ZSTD, + "object_id" INT ENCODE ZSTD, + "occurred_at" TIMESTAMP ENCODE ZSTD, + "portal_id" INT ENCODE ZSTD, + "subscription_id" INT ENCODE ZSTD, + FOREIGN KEY (root_id) REFERENCES atomic.events(event_id) +) +DISTSTYLE KEY +DISTKEY (root_id) +SORTKEY (root_tstamp); + +COMMENT ON TABLE atomic.com_hubspot_company_creation_1 IS 'iglu:com.hubspot/company_creation/jsonschema/1-0-0'; diff --git a/sql/com.hubspot/company_deletion_1.sql b/sql/com.hubspot/company_deletion_1.sql new file mode 100644 index 000000000..f87b06299 --- /dev/null +++ b/sql/com.hubspot/company_deletion_1.sql @@ -0,0 +1,32 @@ +-- AUTO-GENERATED BY igluctl DO NOT EDIT +-- Generator: igluctl 0.4.1 +-- Generated: 2018-10-11 00:45 UTC + +CREATE SCHEMA IF NOT EXISTS atomic; + +CREATE TABLE IF NOT EXISTS atomic.com_hubspot_company_deletion_1 ( + "schema_vendor" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_name" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_format" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_version" VARCHAR(128) ENCODE ZSTD NOT NULL, + "root_id" CHAR(36) ENCODE RAW NOT NULL, + "root_tstamp" TIMESTAMP ENCODE ZSTD NOT NULL, + "ref_root" VARCHAR(255) ENCODE ZSTD NOT NULL, + "ref_tree" VARCHAR(1500) ENCODE ZSTD NOT NULL, + "ref_parent" VARCHAR(255) ENCODE ZSTD NOT NULL, + "app_id" INT ENCODE ZSTD, + "attempt_number" INT ENCODE ZSTD, + "change_flag" VARCHAR(128) ENCODE ZSTD, + "change_source" VARCHAR(128) ENCODE ZSTD, + "event_id" INT ENCODE ZSTD, + "object_id" INT ENCODE ZSTD, + "occurred_at" TIMESTAMP ENCODE ZSTD, + "portal_id" INT ENCODE ZSTD, + "subscription_id" INT ENCODE ZSTD, + FOREIGN KEY (root_id) REFERENCES atomic.events(event_id) +) +DISTSTYLE KEY +DISTKEY (root_id) +SORTKEY (root_tstamp); + +COMMENT ON TABLE atomic.com_hubspot_company_deletion_1 IS 'iglu:com.hubspot/company_deletion/jsonschema/1-0-0'; diff --git a/sql/com.hubspot/contact_change_1.sql b/sql/com.hubspot/contact_change_1.sql new file mode 100644 index 000000000..64124aab9 --- /dev/null +++ b/sql/com.hubspot/contact_change_1.sql @@ -0,0 +1,33 @@ +-- AUTO-GENERATED BY igluctl DO NOT EDIT +-- Generator: igluctl 0.4.1 +-- Generated: 2018-10-11 00:45 UTC + +CREATE SCHEMA IF NOT EXISTS atomic; + +CREATE TABLE IF NOT EXISTS atomic.com_hubspot_contact_change_1 ( + "schema_vendor" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_name" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_format" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_version" VARCHAR(128) ENCODE ZSTD NOT NULL, + "root_id" CHAR(36) ENCODE RAW NOT NULL, + "root_tstamp" TIMESTAMP ENCODE ZSTD NOT NULL, + "ref_root" VARCHAR(255) ENCODE ZSTD NOT NULL, + "ref_tree" VARCHAR(1500) ENCODE ZSTD NOT NULL, + "ref_parent" VARCHAR(255) ENCODE ZSTD NOT NULL, + "app_id" INT ENCODE ZSTD, + "attempt_number" INT ENCODE ZSTD, + "change_source" VARCHAR(128) ENCODE ZSTD, + "event_id" INT ENCODE ZSTD, + "object_id" INT ENCODE ZSTD, + "occurred_at" TIMESTAMP ENCODE ZSTD, + "portal_id" INT ENCODE ZSTD, + "property_name" VARCHAR(255) ENCODE ZSTD, + "property_value" VARCHAR(255) ENCODE ZSTD, + "subscription_id" INT ENCODE ZSTD, + FOREIGN KEY (root_id) REFERENCES atomic.events(event_id) +) +DISTSTYLE KEY +DISTKEY (root_id) +SORTKEY (root_tstamp); + +COMMENT ON TABLE atomic.com_hubspot_contact_change_1 IS 'iglu:com.hubspot/contact_change/jsonschema/1-0-0'; diff --git a/sql/com.hubspot/contact_creation_1.sql b/sql/com.hubspot/contact_creation_1.sql new file mode 100644 index 000000000..9913081a1 --- /dev/null +++ b/sql/com.hubspot/contact_creation_1.sql @@ -0,0 +1,32 @@ +-- AUTO-GENERATED BY igluctl DO NOT EDIT +-- Generator: igluctl 0.4.1 +-- Generated: 2018-10-11 00:45 UTC + +CREATE SCHEMA IF NOT EXISTS atomic; + +CREATE TABLE IF NOT EXISTS atomic.com_hubspot_contact_creation_1 ( + "schema_vendor" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_name" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_format" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_version" VARCHAR(128) ENCODE ZSTD NOT NULL, + "root_id" CHAR(36) ENCODE RAW NOT NULL, + "root_tstamp" TIMESTAMP ENCODE ZSTD NOT NULL, + "ref_root" VARCHAR(255) ENCODE ZSTD NOT NULL, + "ref_tree" VARCHAR(1500) ENCODE ZSTD NOT NULL, + "ref_parent" VARCHAR(255) ENCODE ZSTD NOT NULL, + "app_id" INT ENCODE ZSTD, + "attempt_number" INT ENCODE ZSTD, + "change_flag" VARCHAR(128) ENCODE ZSTD, + "change_source" VARCHAR(128) ENCODE ZSTD, + "event_id" INT ENCODE ZSTD, + "object_id" INT ENCODE ZSTD, + "occurred_at" TIMESTAMP ENCODE ZSTD, + "portal_id" INT ENCODE ZSTD, + "subscription_id" INT ENCODE ZSTD, + FOREIGN KEY (root_id) REFERENCES atomic.events(event_id) +) +DISTSTYLE KEY +DISTKEY (root_id) +SORTKEY (root_tstamp); + +COMMENT ON TABLE atomic.com_hubspot_contact_creation_1 IS 'iglu:com.hubspot/contact_creation/jsonschema/1-0-0'; diff --git a/sql/com.hubspot/contact_deletion_1.sql b/sql/com.hubspot/contact_deletion_1.sql new file mode 100644 index 000000000..ae5abc0dd --- /dev/null +++ b/sql/com.hubspot/contact_deletion_1.sql @@ -0,0 +1,32 @@ +-- AUTO-GENERATED BY igluctl DO NOT EDIT +-- Generator: igluctl 0.4.1 +-- Generated: 2018-10-11 00:45 UTC + +CREATE SCHEMA IF NOT EXISTS atomic; + +CREATE TABLE IF NOT EXISTS atomic.com_hubspot_contact_deletion_1 ( + "schema_vendor" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_name" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_format" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_version" VARCHAR(128) ENCODE ZSTD NOT NULL, + "root_id" CHAR(36) ENCODE RAW NOT NULL, + "root_tstamp" TIMESTAMP ENCODE ZSTD NOT NULL, + "ref_root" VARCHAR(255) ENCODE ZSTD NOT NULL, + "ref_tree" VARCHAR(1500) ENCODE ZSTD NOT NULL, + "ref_parent" VARCHAR(255) ENCODE ZSTD NOT NULL, + "app_id" INT ENCODE ZSTD, + "attempt_number" INT ENCODE ZSTD, + "change_flag" VARCHAR(128) ENCODE ZSTD, + "change_source" VARCHAR(128) ENCODE ZSTD, + "event_id" INT ENCODE ZSTD, + "object_id" INT ENCODE ZSTD, + "occurred_at" TIMESTAMP ENCODE ZSTD, + "portal_id" INT ENCODE ZSTD, + "subscription_id" INT ENCODE ZSTD, + FOREIGN KEY (root_id) REFERENCES atomic.events(event_id) +) +DISTSTYLE KEY +DISTKEY (root_id) +SORTKEY (root_tstamp); + +COMMENT ON TABLE atomic.com_hubspot_contact_deletion_1 IS 'iglu:com.hubspot/contact_deletion/jsonschema/1-0-0'; diff --git a/sql/com.hubspot/deal_change_1.sql b/sql/com.hubspot/deal_change_1.sql new file mode 100644 index 000000000..a7db4dd62 --- /dev/null +++ b/sql/com.hubspot/deal_change_1.sql @@ -0,0 +1,33 @@ +-- AUTO-GENERATED BY igluctl DO NOT EDIT +-- Generator: igluctl 0.4.1 +-- Generated: 2018-10-11 00:45 UTC + +CREATE SCHEMA IF NOT EXISTS atomic; + +CREATE TABLE IF NOT EXISTS atomic.com_hubspot_deal_change_1 ( + "schema_vendor" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_name" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_format" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_version" VARCHAR(128) ENCODE ZSTD NOT NULL, + "root_id" CHAR(36) ENCODE RAW NOT NULL, + "root_tstamp" TIMESTAMP ENCODE ZSTD NOT NULL, + "ref_root" VARCHAR(255) ENCODE ZSTD NOT NULL, + "ref_tree" VARCHAR(1500) ENCODE ZSTD NOT NULL, + "ref_parent" VARCHAR(255) ENCODE ZSTD NOT NULL, + "app_id" INT ENCODE ZSTD, + "attempt_number" INT ENCODE ZSTD, + "change_source" VARCHAR(128) ENCODE ZSTD, + "event_id" INT ENCODE ZSTD, + "object_id" INT ENCODE ZSTD, + "occurred_at" TIMESTAMP ENCODE ZSTD, + "portal_id" INT ENCODE ZSTD, + "property_name" VARCHAR(255) ENCODE ZSTD, + "property_value" VARCHAR(255) ENCODE ZSTD, + "subscription_id" INT ENCODE ZSTD, + FOREIGN KEY (root_id) REFERENCES atomic.events(event_id) +) +DISTSTYLE KEY +DISTKEY (root_id) +SORTKEY (root_tstamp); + +COMMENT ON TABLE atomic.com_hubspot_deal_change_1 IS 'iglu:com.hubspot/deal_change/jsonschema/1-0-0'; diff --git a/sql/com.hubspot/deal_creation_1.sql b/sql/com.hubspot/deal_creation_1.sql new file mode 100644 index 000000000..d0545011a --- /dev/null +++ b/sql/com.hubspot/deal_creation_1.sql @@ -0,0 +1,32 @@ +-- AUTO-GENERATED BY igluctl DO NOT EDIT +-- Generator: igluctl 0.4.1 +-- Generated: 2018-10-11 00:45 UTC + +CREATE SCHEMA IF NOT EXISTS atomic; + +CREATE TABLE IF NOT EXISTS atomic.com_hubspot_deal_creation_1 ( + "schema_vendor" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_name" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_format" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_version" VARCHAR(128) ENCODE ZSTD NOT NULL, + "root_id" CHAR(36) ENCODE RAW NOT NULL, + "root_tstamp" TIMESTAMP ENCODE ZSTD NOT NULL, + "ref_root" VARCHAR(255) ENCODE ZSTD NOT NULL, + "ref_tree" VARCHAR(1500) ENCODE ZSTD NOT NULL, + "ref_parent" VARCHAR(255) ENCODE ZSTD NOT NULL, + "app_id" INT ENCODE ZSTD, + "attempt_number" INT ENCODE ZSTD, + "change_flag" VARCHAR(128) ENCODE ZSTD, + "change_source" VARCHAR(128) ENCODE ZSTD, + "event_id" INT ENCODE ZSTD, + "object_id" INT ENCODE ZSTD, + "occurred_at" TIMESTAMP ENCODE ZSTD, + "portal_id" INT ENCODE ZSTD, + "subscription_id" INT ENCODE ZSTD, + FOREIGN KEY (root_id) REFERENCES atomic.events(event_id) +) +DISTSTYLE KEY +DISTKEY (root_id) +SORTKEY (root_tstamp); + +COMMENT ON TABLE atomic.com_hubspot_deal_creation_1 IS 'iglu:com.hubspot/deal_creation/jsonschema/1-0-0'; diff --git a/sql/com.hubspot/deal_deletion_1.sql b/sql/com.hubspot/deal_deletion_1.sql new file mode 100644 index 000000000..174a51998 --- /dev/null +++ b/sql/com.hubspot/deal_deletion_1.sql @@ -0,0 +1,32 @@ +-- AUTO-GENERATED BY igluctl DO NOT EDIT +-- Generator: igluctl 0.4.1 +-- Generated: 2018-10-11 00:45 UTC + +CREATE SCHEMA IF NOT EXISTS atomic; + +CREATE TABLE IF NOT EXISTS atomic.com_hubspot_deal_deletion_1 ( + "schema_vendor" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_name" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_format" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_version" VARCHAR(128) ENCODE ZSTD NOT NULL, + "root_id" CHAR(36) ENCODE RAW NOT NULL, + "root_tstamp" TIMESTAMP ENCODE ZSTD NOT NULL, + "ref_root" VARCHAR(255) ENCODE ZSTD NOT NULL, + "ref_tree" VARCHAR(1500) ENCODE ZSTD NOT NULL, + "ref_parent" VARCHAR(255) ENCODE ZSTD NOT NULL, + "app_id" INT ENCODE ZSTD, + "attempt_number" INT ENCODE ZSTD, + "change_flag" VARCHAR(128) ENCODE ZSTD, + "change_source" VARCHAR(128) ENCODE ZSTD, + "event_id" INT ENCODE ZSTD, + "object_id" INT ENCODE ZSTD, + "occurred_at" TIMESTAMP ENCODE ZSTD, + "portal_id" INT ENCODE ZSTD, + "subscription_id" INT ENCODE ZSTD, + FOREIGN KEY (root_id) REFERENCES atomic.events(event_id) +) +DISTSTYLE KEY +DISTKEY (root_id) +SORTKEY (root_tstamp); + +COMMENT ON TABLE atomic.com_hubspot_deal_deletion_1 IS 'iglu:com.hubspot/deal_deletion/jsonschema/1-0-0'; diff --git a/sql/com.marketo/event_2.sql b/sql/com.marketo/event_2.sql new file mode 100644 index 000000000..78c2c1e80 --- /dev/null +++ b/sql/com.marketo/event_2.sql @@ -0,0 +1,159 @@ +-- AUTO-GENERATED BY igluctl DO NOT EDIT +-- Generator: igluctl 0.4.1 +-- Generated: 2018-09-27 05:42 UTC + +CREATE SCHEMA IF NOT EXISTS atomic; + +CREATE TABLE IF NOT EXISTS atomic.com_marketo_event_2 ( + "schema_vendor" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_name" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_format" VARCHAR(128) ENCODE ZSTD NOT NULL, + "schema_version" VARCHAR(128) ENCODE ZSTD NOT NULL, + "root_id" CHAR(36) ENCODE RAW NOT NULL, + "root_tstamp" TIMESTAMP ENCODE ZSTD NOT NULL, + "ref_root" VARCHAR(255) ENCODE ZSTD NOT NULL, + "ref_tree" VARCHAR(1500) ENCODE ZSTD NOT NULL, + "ref_parent" VARCHAR(255) ENCODE ZSTD NOT NULL, + "name" VARCHAR(128) ENCODE ZSTD NOT NULL, + "campaign.description" VARCHAR(255) ENCODE ZSTD, + "campaign.id" INT ENCODE ZSTD, + "campaign.name" VARCHAR(255) ENCODE ZSTD, + "company.account_owner_email_address" VARCHAR(255) ENCODE ZSTD, + "company.account_owner_first_name" VARCHAR(255) ENCODE ZSTD, + "company.account_owner_last_name" VARCHAR(255) ENCODE ZSTD, + "company.annual_revenue" DOUBLE PRECISION ENCODE RAW, + "company.billing_address" VARCHAR(255) ENCODE ZSTD, + "company.billing_city" VARCHAR(255) ENCODE ZSTD, + "company.billing_country" VARCHAR(255) ENCODE ZSTD, + "company.billing_postal_code" VARCHAR(255) ENCODE ZSTD, + "company.billing_state" VARCHAR(255) ENCODE ZSTD, + "company.industry" VARCHAR(255) ENCODE ZSTD, + "company.main_phone" VARCHAR(255) ENCODE ZSTD, + "company.name" VARCHAR(255) ENCODE ZSTD, + "company.notes" VARCHAR(255) ENCODE ZSTD, + "company.num_employees" INT ENCODE ZSTD, + "company.parent_company_name" VARCHAR(255) ENCODE ZSTD, + "company.sic_code" VARCHAR(40) ENCODE ZSTD, + "company.site" VARCHAR(255) ENCODE ZSTD, + "company.website" VARCHAR(255) ENCODE ZSTD, + "datetime" TIMESTAMP ENCODE ZSTD, + "description" VARCHAR(255) ENCODE ZSTD, + "forward_to_friend_link" VARCHAR(255) ENCODE ZSTD, + "lead.acquisition_date" TIMESTAMP ENCODE ZSTD, + "lead.acquisition_program" VARCHAR(255) ENCODE ZSTD, + "lead.acquisition_program_name" VARCHAR(255) ENCODE ZSTD, + "lead.address" VARCHAR(255) ENCODE ZSTD, + "lead.anonymous_ip" VARCHAR(45) ENCODE ZSTD, + "lead.black_listed" BOOLEAN ENCODE RUNLENGTH, + "lead.city" VARCHAR(255) ENCODE ZSTD, + "lead.country" VARCHAR(255) ENCODE ZSTD, + "lead.created_at" TIMESTAMP ENCODE ZSTD, + "lead.date_of_birth" DATE ENCODE ZSTD, + "lead.department" VARCHAR(255) ENCODE ZSTD, + "lead.do_not_call" BOOLEAN ENCODE RUNLENGTH, + "lead.do_not_call_reason" VARCHAR(512) ENCODE ZSTD, + "lead.email_address" VARCHAR(255) ENCODE ZSTD, + "lead.email_invalid" BOOLEAN ENCODE RUNLENGTH, + "lead.email_invalid_cause" VARCHAR(255) ENCODE ZSTD, + "lead.email_suspended" BOOLEAN ENCODE RUNLENGTH, + "lead.email_suspended_at" TIMESTAMP ENCODE ZSTD, + "lead.email_suspended_cause" VARCHAR(2000) ENCODE ZSTD, + "lead.facebook_display_name" VARCHAR(255) ENCODE ZSTD, + "lead.facebook_id" VARCHAR(512) ENCODE ZSTD, + "lead.facebook_photo_url" VARCHAR(255) ENCODE ZSTD, + "lead.facebook_profile_url" VARCHAR(255) ENCODE ZSTD, + "lead.facebook_reach" INT ENCODE ZSTD, + "lead.facebook_referred_enrollments" INT ENCODE ZSTD, + "lead.facebook_referred_visits" INT ENCODE ZSTD, + "lead.fax_number" VARCHAR(255) ENCODE ZSTD, + "lead.first_name" VARCHAR(255) ENCODE ZSTD, + "lead.full_name" VARCHAR(255) ENCODE ZSTD, + "lead.gender" VARCHAR(6) ENCODE ZSTD, + "lead.inferred_city" VARCHAR(255) ENCODE ZSTD, + "lead.inferred_company" VARCHAR(255) ENCODE ZSTD, + "lead.inferred_country" VARCHAR(255) ENCODE ZSTD, + "lead.inferred_metropolitan_area" VARCHAR(255) ENCODE ZSTD, + "lead.inferred_phone_area_code" VARCHAR(255) ENCODE ZSTD, + "lead.inferred_postal_code" VARCHAR(255) ENCODE ZSTD, + "lead.inferred_state_region" VARCHAR(255) ENCODE ZSTD, + "lead.is_customer" BOOLEAN ENCODE RUNLENGTH, + "lead.is_partner" BOOLEAN ENCODE RUNLENGTH, + "lead.job_title" VARCHAR(255) ENCODE ZSTD, + "lead.last_interesting_moment_date" TIMESTAMP ENCODE ZSTD, + "lead.last_interesting_moment_description" VARCHAR(255) ENCODE ZSTD, + "lead.last_interesting_moment_source" VARCHAR(255) ENCODE ZSTD, + "lead.last_interesting_moment_type" VARCHAR(255) ENCODE ZSTD, + "lead.last_name" VARCHAR(255) ENCODE ZSTD, + "lead.last_referred_enrollment" TIMESTAMP ENCODE ZSTD, + "lead.last_referred_visit" TIMESTAMP ENCODE ZSTD, + "lead.lead_marketing_suspended" BOOLEAN ENCODE RUNLENGTH, + "lead.lead_owner_email_address" VARCHAR(255) ENCODE ZSTD, + "lead.lead_owner_first_name" VARCHAR(255) ENCODE ZSTD, + "lead.lead_owner_job_title" VARCHAR(255) ENCODE ZSTD, + "lead.lead_owner_last_name" VARCHAR(255) ENCODE ZSTD, + "lead.lead_owner_phone_number" VARCHAR(255) ENCODE ZSTD, + "lead.lead_rating" VARCHAR(255) ENCODE ZSTD, + "lead.lead_score" INT ENCODE ZSTD, + "lead.lead_source" VARCHAR(255) ENCODE ZSTD, + "lead.lead_status" VARCHAR(255) ENCODE ZSTD, + "lead.linkedin_display_name" VARCHAR(255) ENCODE ZSTD, + "lead.linkedin_id" VARCHAR(512) ENCODE ZSTD, + "lead.linkedin_photo_url" VARCHAR(512) ENCODE ZSTD, + "lead.linkedin_profile_url" VARCHAR(512) ENCODE ZSTD, + "lead.linkedin_reach" INT ENCODE ZSTD, + "lead.linkedin_referred_enrollments" INT ENCODE ZSTD, + "lead.linkedin_referred_visits" INT ENCODE ZSTD, + "lead.middle_name" VARCHAR(255) ENCODE ZSTD, + "lead.mobile_phone_number" VARCHAR(255) ENCODE ZSTD, + "lead.number_of_optys" INT ENCODE ZSTD, + "lead.original_referrer" VARCHAR(255) ENCODE ZSTD, + "lead.original_search_engine" VARCHAR(255) ENCODE ZSTD, + "lead.original_search_phrase" VARCHAR(255) ENCODE ZSTD, + "lead.original_source_info" VARCHAR(255) ENCODE ZSTD, + "lead.original_source_type" VARCHAR(255) ENCODE ZSTD, + "lead.person_notes" VARCHAR(512) ENCODE ZSTD, + "lead.person_timezone" VARCHAR(255) ENCODE ZSTD, + "lead.phone_number" VARCHAR(255) ENCODE ZSTD, + "lead.postal_code" VARCHAR(255) ENCODE ZSTD, + "lead.priority" INT ENCODE ZSTD, + "lead.registration_source_info" VARCHAR(2000) ENCODE ZSTD, + "lead.registration_source_type" VARCHAR(255) ENCODE ZSTD, + "lead.relative_score" SMALLINT ENCODE ZSTD, + "lead.relative_urgency" SMALLINT ENCODE ZSTD, + "lead.role" VARCHAR(50) ENCODE ZSTD, + "lead.salutation" VARCHAR(255) ENCODE ZSTD, + "lead.state" VARCHAR(255) ENCODE ZSTD, + "lead.syndication_id" VARCHAR(512) ENCODE ZSTD, + "lead.total_opty_amount" DOUBLE PRECISION ENCODE RAW, + "lead.total_opty_expected_revenue" DOUBLE PRECISION ENCODE RAW, + "lead.total_referred_enrollments" INT ENCODE ZSTD, + "lead.total_referred_visits" INT ENCODE ZSTD, + "lead.twitter_display_name" VARCHAR(255) ENCODE ZSTD, + "lead.twitter_id" VARCHAR(512) ENCODE ZSTD, + "lead.twitter_photo_url" VARCHAR(512) ENCODE ZSTD, + "lead.twitter_profile_url" VARCHAR(512) ENCODE ZSTD, + "lead.twitter_reach" INT ENCODE ZSTD, + "lead.twitter_referred_enrollments" INT ENCODE ZSTD, + "lead.twitter_referred_visits" INT ENCODE ZSTD, + "lead.unsubscribed" BOOLEAN ENCODE RUNLENGTH, + "lead.unsubscribed_reason" VARCHAR(512) ENCODE ZSTD, + "lead.updated_at" TIMESTAMP ENCODE ZSTD, + "lead.urgency" SMALLINT ENCODE ZSTD, + "munchkin_id" VARCHAR(255) ENCODE ZSTD, + "program.description" VARCHAR(2000) ENCODE ZSTD, + "program.id" INT ENCODE ZSTD, + "program.name" VARCHAR(255) ENCODE ZSTD, + "social.email" VARCHAR(255) ENCODE ZSTD, + "social.promo_code" VARCHAR(255) ENCODE ZSTD, + "social.share_url" VARCHAR(2000) ENCODE ZSTD, + "sp_send_alert_info" VARCHAR(2000) ENCODE ZSTD, + "step" SMALLINT ENCODE ZSTD, + "unsubscribe_link" VARCHAR(2000) ENCODE ZSTD, + "view_as_webpage_link" VARCHAR(2000) ENCODE ZSTD, + FOREIGN KEY (root_id) REFERENCES atomic.events(event_id) +) +DISTSTYLE KEY +DISTKEY (root_id) +SORTKEY (root_tstamp); + +COMMENT ON TABLE atomic.com_marketo_event_2 IS 'iglu:com.marketo/event/jsonschema/2-0-0';