From 4652df107aff16e22637719e3d804da55e88201f Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 29 Apr 2024 09:40:33 +0000 Subject: [PATCH] add type --- src/lib/sdk/sources.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lib/sdk/sources.ts b/src/lib/sdk/sources.ts index 45fd74821..bf9f703c7 100644 --- a/src/lib/sdk/sources.ts +++ b/src/lib/sdk/sources.ts @@ -1,5 +1,15 @@ import type { Client } from '@appwrite.io/console'; +type Source = { + $id: string; + fingerprint: string; + referrer: string; + ref: string; + utmSource: string; + utmCampaign: string; + utmMedium: string; +}; + export class Sources { client: Client; @@ -13,7 +23,7 @@ export class Sources { utmSource: string, utmCampaign: string, utmMedium: string - ): Promise { + ): Promise { const path = `/console/sources`; const params = { ref,