chore: linting

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-07-13 16:30:37 -07:00
parent 1131da5ed7
commit e8b3692b54
20 changed files with 74 additions and 82 deletions

View file

@ -1,15 +1,15 @@
import {
type ListScraperRunsParams,
type ScraperRunEvent,
type StartAsyncRunResponse,
listCapabilitiesResponse,
listRunsResponse,
type ScraperRunEvent,
type StartAsyncRunResponse,
scraperRunDetail,
startAsyncRunResponse,
} from "@/contracts/types/scraper.types";
import { authenticatedFetch } from "@/lib/auth-fetch";
import { readSSEStream } from "@/lib/chat/streaming-state";
import { buildBackendUrl } from "@/lib/env-config";
import { authenticatedFetch } from "@/lib/auth-fetch";
import { baseApiService } from "./base-api.service";
const base = (workspaceId: number | string) => `/api/v1/workspaces/${workspaceId}/scrapers`;

View file

@ -62,7 +62,8 @@ export const tiktok: ConnectorPageContent = {
extractFields: [
{
label: "Videos",
description: "Caption text, canonical web URL, duration, and cover image for each TikTok video.",
description:
"Caption text, canonical web URL, duration, and cover image for each TikTok video.",
},
{
label: "Engagement",

View file

@ -23,7 +23,11 @@ assert.deepEqual(payload, {
query: "<query>",
});
const snippets = buildSnippets("https://api.example.com", "/api/v1/workspaces/1/scrapers/x/y", payload);
const snippets = buildSnippets(
"https://api.example.com",
"/api/v1/workspaces/1/scrapers/x/y",
payload
);
// Every popular language is present.
assert.deepEqual(

View file

@ -11,9 +11,7 @@ export function formatCost(costMicros: number | null | undefined): string {
/** One meter as a per-1k rate, e.g. 3500 micros/place -> "$3.50 / 1k places". */
export function formatRate(meter: ScraperPricingMeter): string {
const perThousand = (meter.micros_per_unit * 1000) / 1_000_000;
const dollars = Number.isInteger(perThousand)
? perThousand.toString()
: perThousand.toFixed(2);
const dollars = Number.isInteger(perThousand) ? perThousand.toString() : perThousand.toFixed(2);
return `$${dollars} / 1k ${meter.unit}s`;
}

View file

@ -8,13 +8,7 @@
type JsonObject = Record<string, unknown>;
export type FieldKind =
| "string"
| "string_array"
| "integer"
| "number"
| "boolean"
| "enum";
export type FieldKind = "string" | "string_array" | "integer" | "number" | "boolean" | "enum";
export interface FormField {
name: string;