From 91b379c645d559431998806c207e83214650f5f8 Mon Sep 17 00:00:00 2001 From: Collins Abitekaniza Date: Tue, 1 Feb 2022 00:09:04 +0300 Subject: [PATCH 1/2] add suitecrm contact information --- .../suitecrm_contact_information.json | 177 ++++++++++++++++++ 1 file changed, 177 insertions(+) create mode 100644 examples/record_types/suitecrm_contact_information.json diff --git a/examples/record_types/suitecrm_contact_information.json b/examples/record_types/suitecrm_contact_information.json new file mode 100644 index 0000000..512984a --- /dev/null +++ b/examples/record_types/suitecrm_contact_information.json @@ -0,0 +1,177 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "SuiteCRM Contact Information", + "description": "This is a record type schema intended to store suitecrm contact information.", + "type": "object", + "required": ["first_name", "last_name", "phone_home", "email"], + "properties": { + "description": { + "type": "string", + "description": "Description" + }, + "salutation": { + "type": "string", + "length": 255, + "description": "The person's salutation." + }, + "first_name": { + "type": "string", + "length": 100, + "description": "The person's first name." + }, + "last_name": { + "type": "string", + "length": 100, + "description": "The person's last name." + }, + "title": { + "type": "string", + "length": 100, + "description": "The person's title." + }, + "photo": { + "type": "string", + "length": 255, + "description": "The person's photo url." + }, + "department": { + "type": "string", + "length": 255, + "description": "The person's department." + }, + "do_not_call": { + "type": "integer", + "minimum": 0, + "maximum": 1 + }, + "phone_home": { + "type": "string", + "length": 100, + "description": "The person's home phone number." + }, + "phone_mobile": { + "type": "string", + "length": 100, + "description": "The person's mobile phone number." + }, + "phone_work": { + "type": "string", + "length": 100, + "description": "The person's work phone number." + }, + "phone_fax": { + "type": "string", + "length": 100, + "description": "The person's fax." + }, + "email": { + "type": "string", + "length": 100, + "pattern": "[^@]+@[^@]+\\.[^@]+", + "description": "The person's email address." + }, + "lawful_basis": { + "type": "string", + "length": 100 + }, + "date_reviewed": { + "type": "string" + }, + "lawful_basis_source": { + "type": "string", + "length": 100 + }, + "primary_address_street": { + "type": "string", + "length": 150, + "description": "The person's primary street address." + }, + "primary_address_city": { + "type": "string", + "length": 100, + "description": "The person's city." + }, + "primary_address_state": { + "type": "string", + "length": 100, + "description": "The person's state." + }, + "primary_address_postalcode": { + "type": "string", + "length": 20, + "description": "The person's postal code." + }, + "primary_address_country": { + "type": "string", + "length": 255, + "description": "The person's country." + }, + "alt_address_street": { + "type": "string", + "length": 150, + "description": "Alternative street address" + }, + "alt_address_city": { + "type": "string", + "length": 100, + "description": "Alternative city" + }, + "alt_address_state": { + "type": "string", + "length": 100, + "description": "Alternative state" + }, + "alt_address_postalcode": { + "type": "string", + "length": 20, + "description": "Alternative postal code" + }, + "alt_address_country": { + "type": "string", + "length": 255, + "description": "Alternative country" + }, + "assistant": { + "type": "string", + "length": 75, + "description": "The person's assistant." + }, + "assistant_phone": { + "type": "string", + "length": 75, + "description": "The person's assistant pone number." + }, + "lead_source": { + "type": "string", + "length": 100 + }, + "reports_to_id": { + "type": "string", + "length": 36 + }, + "birthdate": { + "type": "string", + "description": "The person's birthdate." + }, + "campaign_id": { + "type": "string", + "length": 36, + "description": "The person's campaign id." + }, + "joomla_account_id": { + "type": "string", + "length": 255, + "description": "The person's joomla account id." + }, + "portal_account_disabled": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "portal_user_type": { + "type": "string", + "length": 100, + "description": "Portal user type" + } + } +} From 941f221633698c8fa27660b1739bdf3e8d9cf41d Mon Sep 17 00:00:00 2001 From: Danny Tijerina <79431870+privcloud-danny@users.noreply.github.com> Date: Mon, 31 Jan 2022 15:24:43 -0600 Subject: [PATCH 2/2] Update suitecrm_contact_information.json --- .../suitecrm_contact_information.json | 40 ++++++++++++------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/examples/record_types/suitecrm_contact_information.json b/examples/record_types/suitecrm_contact_information.json index 512984a..55ee644 100644 --- a/examples/record_types/suitecrm_contact_information.json +++ b/examples/record_types/suitecrm_contact_information.json @@ -7,12 +7,19 @@ "properties": { "description": { "type": "string", - "description": "Description" + "description": "Description", + "encrypt": false + }, + "deleted": { + "type": "boolean", + "description": "Whether the contact is soft deleted or not", + "encrypt": false }, "salutation": { "type": "string", "length": 255, - "description": "The person's salutation." + "description": "The person's salutation.", + "encrypt": false }, "first_name": { "type": "string", @@ -27,7 +34,8 @@ "title": { "type": "string", "length": 100, - "description": "The person's title." + "description": "The person's title.", + "encrypt": false }, "photo": { "type": "string", @@ -40,9 +48,9 @@ "description": "The person's department." }, "do_not_call": { - "type": "integer", - "minimum": 0, - "maximum": 1 + "type": "boolean", + "description": "Whether the contact is available for contact or not.", + "encrypt": false }, "phone_home": { "type": "string", @@ -66,13 +74,14 @@ }, "email": { "type": "string", - "length": 100, + "length": 255, "pattern": "[^@]+@[^@]+\\.[^@]+", "description": "The person's email address." }, "lawful_basis": { "type": "string", - "length": 100 + "length": 100, + "description": "Lawful basis for collecting the contact's PII" }, "date_reviewed": { "type": "string" @@ -143,7 +152,8 @@ }, "lead_source": { "type": "string", - "length": 100 + "length": 100, + "encrypt": false }, "reports_to_id": { "type": "string", @@ -156,7 +166,8 @@ "campaign_id": { "type": "string", "length": 36, - "description": "The person's campaign id." + "description": "The person's campaign id.", + "encrypt": false }, "joomla_account_id": { "type": "string", @@ -164,14 +175,15 @@ "description": "The person's joomla account id." }, "portal_account_disabled": { - "type": "number", - "minimum": 0, - "maximum": 1 + "type": "boolean", + "description": "Whether the contact's portal account is disabled or not", + "encrypt": false }, "portal_user_type": { "type": "string", "length": 100, - "description": "Portal user type" + "description": "Portal user type", + "encrypt": false } } }