Application Load

IProfileNotificationSettingsResponse

The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.

IProfileNotificationSettingsResponse

Current email notification settings after loading or saving.

src/lib/interfaces/orionplace/accounts/IEmailVerification.ts
TypeScript
export interface IProfileNotificationSettingsResponse {
  // Field or general errors; null on success.
  form_errors: Record<string, ApiFormError[]> | null;
  // Success message, or null.
  success_message: string | null;
  // Current notification settings, or `null` when the request fails.
  page_data: {
    // Available optional notification types after loading or saving `settings`.
    // Omitted when saving only `enabled`.
    settings?: IProfileNotificationSetting[];
    // `true` when all available optional notification types are enabled.
    // `false` when at least one is disabled or no optional types are available.
    notifications_enabled?: boolean;
  } | null;
}