|
|
/**
|
|
|
* 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;
|
|
|
}
|