From b2470de38d1727c95e58c1a17120b6a355cf5505 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Fri, 22 Nov 2024 14:46:22 +0900 Subject: [PATCH 1/2] Update Tech Partner API to new one --- .../integrations/technology-partner/+page.svelte | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/routes/integrations/technology-partner/+page.svelte b/src/routes/integrations/technology-partner/+page.svelte index b445b3009e..8323949901 100644 --- a/src/routes/integrations/technology-partner/+page.svelte +++ b/src/routes/integrations/technology-partner/+page.svelte @@ -9,6 +9,7 @@ //import BlobPink from "$routes/startups/(assets)/blob-pink.svg"; // import BlobPinkMobile from "$routes/startups/(assets)/blob-pink-mobile.svg"; import Pink from './bg.png'; + import { PUBLIC_GROWTH_ENDPOINT } from '$env/static/public'; let email = ''; let name = ''; @@ -27,19 +28,22 @@ async function handleSubmit() { error = undefined; - message = `Name of representative: ${name}\n\nWork Email: ${email}\n\nCompany Name: ${companyName}\n\nCompany Size: ${companySize}\n\nCompany Website: ${companyWebsite}\n\nIntegration status: ${integrationStatus}\n\nLink to Documentation: ${linkToDocumentation}\n\nLink to product/company assets: ${productUrl}\n\nDetails: ${extraDetails}`; - subject = `Technology Partner Application: ${companyName}`; - const response = await fetch('https://growth.appwrite.io/v1/feedback', { + const response = await fetch(`${PUBLIC_GROWTH_ENDPOINT}/conversations/technology-partner`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ + name: name, email, - firstName: name, - subject, - message + companyName, + companySize, + companyWebsite, + integrationStatus, + integrationDocs: linkToDocumentation, + brandAssets: productUrl, + extraDetails }) }); if (response.status >= 400) { From a376fbe5d769c980b20ce2b5a454f731750f9ec3 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Fri, 24 Jan 2025 13:14:22 +0900 Subject: [PATCH 2/2] Update src/routes/integrations/technology-partner/+page.svelte Co-authored-by: Darshan --- src/routes/integrations/technology-partner/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/integrations/technology-partner/+page.svelte b/src/routes/integrations/technology-partner/+page.svelte index 71c50f7ffc..d648980176 100644 --- a/src/routes/integrations/technology-partner/+page.svelte +++ b/src/routes/integrations/technology-partner/+page.svelte @@ -36,7 +36,7 @@ 'Content-Type': 'application/json' }, body: JSON.stringify({ - name: name, + name, email, companyName, companySize,