You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.6 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/**
* Flock 表单逻辑映射 — 与 form-interactions 一一对应
* 录制参考:.rpa/recordings/flock-manual-20260713-152051.js
*/
import type { FlockQuoteInput } from "@/workers/rpa/flock/types";
export const FLOCK_RECORDING_REF =
".rpa/recordings/flock-manual-20260713-152051.js";
/** 查价页字段(录制顺序) */
export const FLOCK_QUOTE_FORM_FIELDS = [
{ key: "pickupZip", role: "Pickup ZIP Code" },
{ key: "pickupDate", role: "Pickup Date *", via: "calendar" },
{ key: "deliveryZip", role: "Delivery ZIP Code" },
{ key: "palletCount", role: "Number of pallets" },
{ key: "totalWeightLb", role: "Total shipment weight (lbs)" },
{ key: "lengthIn", role: "Length (in)" },
{ key: "widthIn", role: "Width (in)" },
{ key: "heightIn", role: "Height (in)" },
] as const;
export const FLOCK_SUBMIT_TEST_ID =
"anonymous_marketing_lead_quote_request_page__quote_request__submit_button";
/** 注册页Next 后出现时) */
export const FLOCK_REGISTRATION_FIELDS = [
{ key: "firstName", role: "First name" },
{ key: "lastName", role: "Last name" },
{ key: "company", role: "Company name" },
{ key: "phone", role: "Phone number" },
{ key: "email", role: "Work email" },
{ key: "shipmentsPerMonth", role: "Average company-wide dry van", via: "combobox" },
] as const;
export const FLOCK_REGISTRATION_SUBMIT = "Get instant quote";
/** 结果卡 testId录制 */
export const FLOCK_RESULT_TEST_IDS = {
direct: "FlockDirect®-fulfillment-option",
standard: "Standard-fulfillment-option",
} as const;
export function flockInputFromDemo(input: FlockQuoteInput): FlockQuoteInput {
return input;
}