The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update types.ts
Kiran K5da414830f34
diff --git a/apps/web/lib/partnerstack/types.ts b/apps/web/lib/partnerstack/types.tsindex aca341366d..039b86cbe6 100644--- a/apps/web/lib/partnerstack/types.ts+++ b/apps/web/lib/partnerstack/types.ts@@ -1,53 +1,31 @@import { z } from "zod";+import {+ partnerStackCommission,+ partnerStackCustomer,+ partnerStackImportPayloadSchema,+ partnerStackLink,+ partnerStackPartner,+} from "./schemas";export interface PartnerStackConfig {- token: string;- userId: string;- partnerstackProgramId?: string;+ publicKey: string;+ secretKey: string;}export interface PartnerStackListResponse<T> {- success: true;- total_count: number;- data: T[];+ data: {+ items: T[];+ };}-// Basic types - these will be expanded as we implement the API-export interface PartnerStackAffiliate {- id: string;- email: string;- first_name: string;- last_name: string;- company_name?: string;- country_code?: string;- profile_type?: string;- created_at: string;-}+export type PartnerStackImportPayload = z.infer<+ typeof partnerStackImportPayloadSchema+>;-export interface PartnerStackLink {- id: string;- tracking_url: string;- token: string;- partner_id: string;- created_at: string;-}+export type PartnerStackPartner = z.infer<typeof partnerStackPartner>;-export interface PartnerStackReferral {- id: string;- email: string;- first_name: string;- last_name: string;- company_name?: string;- partner_id: string;- created_at: string;-}+export type PartnerStackLink = z.infer<typeof partnerStackLink>;-export interface PartnerStackCommission {- id: string;- amount: number;- commission_amount: number;- status: string;- partner_id: string;- customer_id: string;- created_at: string;-}+export type PartnerStackCustomer = z.infer<typeof partnerStackCustomer>;++export type PartnerStackCommission = z.infer<typeof partnerStackCommission>;\ No newline at end of file