From d6453a8ed0eeee1dcabc7e9500727ddea7680640 Mon Sep 17 00:00:00 2001 From: Faruk AYDIN Date: Wed, 13 Sep 2023 13:45:37 +0200 Subject: [PATCH] chore: Use camelCase convention for hubspot actions --- .../hubspot/actions/create-contact/index.ts | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/backend/src/apps/hubspot/actions/create-contact/index.ts b/packages/backend/src/apps/hubspot/actions/create-contact/index.ts index 4ca0ef67..b814224d 100644 --- a/packages/backend/src/apps/hubspot/actions/create-contact/index.ts +++ b/packages/backend/src/apps/hubspot/actions/create-contact/index.ts @@ -14,7 +14,7 @@ export default defineAction({ variables: true, }, { - label: 'E-mail', + label: 'Email', key: 'email', type: 'string' as const, required: false, @@ -23,7 +23,7 @@ export default defineAction({ }, { label: 'First name', - key: 'firstname', + key: 'firstName', type: 'string' as const, required: false, description: 'Contact First name', @@ -31,7 +31,7 @@ export default defineAction({ }, { label: 'Last name', - key: 'lastname', + key: 'lastName', type: 'string' as const, required: false, description: 'Contact Last name', @@ -55,7 +55,7 @@ export default defineAction({ }, { label: 'Owner ID', - key: 'hubspot_owner_id', + key: 'hubspotOwnerId', type: 'string' as const, required: false, description: 'Contact Owner ID', @@ -66,21 +66,21 @@ export default defineAction({ async run($) { const company = $.step.parameters.company as string; const email = $.step.parameters.email as string; - const firstname = $.step.parameters.firstname as string; - const lastname = $.step.parameters.lastname as string; + const firstName = $.step.parameters.firstName as string; + const lastName = $.step.parameters.lastName as string; const phone = $.step.parameters.phone as string; const website = $.step.parameters.website as string; - const hubspot_owner_id = $.step.parameters.hubspot_owner_id as string; + const hubspotOwnerId = $.step.parameters.hubspotOwnerId as string; const response = await $.http.post(`crm/v3/objects/contacts`, { properties: { company, email, - firstname, - lastname, + firstname: firstName, + lastname: lastName, phone, website, - hubspot_owner_id, + hubspot_owner_id: hubspotOwnerId, }, });