Type Reference
Exported TypeScript types in the noketa package
The package exports the client plus request and response types from the root module.
Exports
import {
Noketa,
type CreateProfileRequest,
type CreateProfileResponse,
type NoketaApiResponse,
type ProfileAttributes,
type SendEmailRequest,
type SendEmailResponse,
} from "noketa";ProfileAttributes
ProfileAttributes supports known optional fields and any additional custom keys:
first_name?: stringlast_name?: stringlocale?: stringgender?: stringage?: numberbirthdate?: Dateexternal_id?: stringlast_event_date?: Dateproperties?: Record<string, unknown>[key: string]: unknown
Shared API Response
Both CreateProfileResponse and SendEmailResponse are currently aliases of NoketaApiResponse:
type NoketaApiResponse = {
message?: string;
[key: string]: unknown;
};