Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

178 KB
Raw Blame
import { OutputSchema } from '@activepieces/pieces-framework';

const tasksFields: OutputSchema['fields'] = [
	{ key: 'task_id', label: 'Task ID' },
	{ key: 'task_name', label: 'Task Name' },
	{ key: 'description', label: 'Description' },
	{ key: 'rate', label: 'Rate', format: 'currency' },
	{ key: 'budget_hours', label: 'Budget Hours', format: 'number' },
	{ key: 'budget_hours_in_time', label: 'Budget Hours In Time' },
	{ key: 'total_hours', label: 'Total Hours' },
	{ key: 'billed_hours', label: 'Billed Hours' },
	{ key: 'un_billed_hours', label: 'Unbilled Hours' },
	{ key: 'billable_hours', label: 'Billable Hours' },
	{ key: 'non_billable_hours', label: 'Non Billable Hours' },
	{ key: 'status', label: 'Status' },
	{ key: 'is_billable', label: 'Is Billable', format: 'boolean' },
	{ key: 'task_custom_fields', label: 'Task Custom Fields' },
];

const billingAddressFields: OutputSchema['fields'] = [
	{ key: 'attention', label: 'Attention' },
	{ key: 'address', label: 'Address' },
	{ key: 'street2', label: 'Street2' },
	{ key: 'city', label: 'City' },
	{ key: 'state', label: 'State' },
	{ key: 'country', label: 'Country' },
	{ key: 'phone', label: 'Phone' },
	{ key: 'fax', label: 'Fax' },
];

const shippingAddressFields: OutputSchema['fields'] = [
	{ key: 'attention', label: 'Attention' },
	{ key: 'address', label: 'Address' },
	{ key: 'street2', label: 'Street2' },
	{ key: 'city', label: 'City' },
	{ key: 'state', label: 'State' },
	{ key: 'country', label: 'Country' },
	{ key: 'phone', label: 'Phone' },
	{ key: 'fax', label: 'Fax' },
];

const pageContextFields: OutputSchema['fields'] = [
	{ key: 'page', label: 'Page', format: 'number' },
	{ key: 'per_page', label: 'Per Page', format: 'number' },
	{ key: 'has_more_page', label: 'Has More Page', format: 'boolean' },
];

const customFieldsFields: OutputSchema['fields'] = [
	{ key: 'index', label: 'Index', format: 'number' },
	{ key: 'label', label: 'Label' },
	{ key: 'value', label: 'Value' },
];

const taxInformationFields: OutputSchema['fields'] = [
	{ key: 'tax_specification', label: 'Tax Specification' },
	{ key: 'tax_specific_type', label: 'Tax Specific Type' },
	{ key: 'end_date', label: 'End Date', format: 'date' },
	{ key: 'is_non_advol_tax', label: 'Is Non Advol Tax', format: 'boolean' },
	{ key: 'tax_groups_details', label: 'Tax Groups Details' },
	{ key: 'type', label: 'Type' },
	{ key: 'country_code', label: 'Country Code' },
	{ key: 'percentage', label: 'Percentage', format: 'number' },
	{ key: 'id', label: 'ID' },
	{ key: 'text', label: 'Text' },
	{ key: 'status', label: 'Status' },
	{ key: 'start_date', label: 'Start Date', format: 'date' },
];

const defaultPriceBracketsFields: OutputSchema['fields'] = [
	{ key: 'start_quantity', label: 'Start Quantity', format: 'number' },
	{ key: 'end_quantity', label: 'End Quantity', format: 'number' },
	{ key: 'pricebook_rate', label: 'Price List Rate', format: 'currency' },
];

const taxesFields: OutputSchema['fields'] = [
	{ key: 'tax_id', label: 'Tax ID' },
	{ key: 'tax_display_name', label: 'Tax Display Name' },
	{ key: 'tax_name', label: 'Tax Name' },
	{ key: 'tax_percentage', label: 'Tax Percentage', format: 'number' },
	{ key: 'tax_type', label: 'Tax Type' },
	{ key: 'tax_specific_type', label: 'Tax Specific Type' },
	{ key: 'start_date', label: 'Start Date', format: 'date' },
	{ key: 'end_date', label: 'End Date', format: 'date' },
	{ key: 'status', label: 'Status' },
];

const rolesFields: OutputSchema['fields'] = [
	{ key: 'role_name', label: 'Role Name' },
	{ key: 'app_source', label: 'App Source', format: 'number' },
	{ key: 'access_type', label: 'Access Type' },
	{ key: 'role_type', label: 'Role Type' },
	{ key: 'role_id', label: 'Role ID' },
	{ key: 'description', label: 'Description' },
	{ key: 'is_current_role', label: 'Is Current Role', format: 'boolean' },
];

const checkDetailsFields: OutputSchema['fields'] = [
	{ key: 'check_id', label: 'Check ID' },
	{ key: 'check_number', label: 'Check Number' },
	{ key: 'memo', label: 'Memo' },
	{ key: 'check_status', label: 'Check Status' },
	{ key: 'expiry_date', label: 'Expiry Date', format: 'date' },
];

const paymentRefundsFields: OutputSchema['fields'] = [
	{ key: 'payment_refund_id', label: 'Payment Refund ID' },
	{ key: 'date', label: 'Date', format: 'date' },
	{ key: 'refund_mode', label: 'Refund Mode' },
	{ key: 'reference_number', label: 'Reference Number' },
	{ key: 'description', label: 'Description' },
	{ key: 'amount_bcy', label: 'Amount (Base Currency)', format: 'currency' },
	{ key: 'amount_fcy', label: 'Amount (Foreign Currency)', format: 'currency' },
];

const fromEmailsFields: OutputSchema['fields'] = [
	{ key: 'is_org_email_id', label: 'Is Org Email ID', format: 'boolean' },
	{ key: 'user_name', label: 'User Name' },
	{ key: 'organization_contact_id', label: 'Organization Contact ID' },
	{ key: 'email', label: 'Email', format: 'email' },
	{ key: 'selected', label: 'Selected', format: 'boolean' },
];

const toContactsFields: OutputSchema['fields'] = [
	{ key: 'phone', label: 'Phone' },
	{ key: 'mobile', label: 'Mobile' },
	{ key: 'last_name', label: 'Last Name' },
	{ key: 'contact_person_id', label: 'Contact Person ID' },
	{ key: 'salutation', label: 'Salutation' },
	{ key: 'first_name', label: 'First Name' },
	{ key: 'email', label: 'Email', format: 'email' },
	{ key: 'selected', label: 'Selected', format: 'boolean' },
];

const emailTemplatesFields: OutputSchema['fields'] = [
	{ key: 'email_template_id', label: 'Email Template ID' },
	{ key: 'name', label: 'Name' },
	{ key: 'selected', label: 'Selected', format: 'boolean' },
];

const commentFields: OutputSchema['fields'] = [
	{ key: 'comment_id', label: 'Comment ID' },
	{ key: 'description', label: 'Description' },
	{ key: 'commented_by_id', label: 'Commented By ID' },
	{ key: 'commented_by', label: 'Commented By' },
	{ key: 'date', label: 'Date', format: 'date' },
	{ key: 'comment_type', label: 'Comment Type' },
];

const commentsFields: OutputSchema['fields'] = [
	{ key: 'comment_id', label: 'Comment ID' },
	{ key: 'description', label: 'Description' },
	{ key: 'commented_by_id', label: 'Commented By ID' },
	{ key: 'commented_by', label: 'Commented By' },
	{ key: 'date', label: 'Date', format: 'date' },
	{ key: 'date_description', label: 'Date Description' },
	{ key: 'time', label: 'Time' },
];

const lateFeeFields: OutputSchema['fields'] = [
	{ key: 'name', label: 'Name' },
	{ key: 'type', label: 'Type' },
	{ key: 'rate', label: 'Rate', format: 'currency' },
	{ key: 'frequency_type', label: 'Frequency Type' },
];

const customerDefaultBillingAddressFields: OutputSchema['fields'] = [
	{ key: 'zip', label: 'Zip' },
	{ key: 'country', label: 'Country' },
	{ key: 'address', label: 'Address' },
	{ key: 'city', label: 'City' },
	{ key: 'phone', label: 'Phone' },
	{ key: 'city_code', label: 'City Code' },
	{ key: 'street2', label: 'Street2' },
	{ key: 'state', label: 'State' },
	{ key: 'fax', label: 'Fax' },
	{ key: 'state_code', label: 'State Code' },
];

const invoicesCreditedFields: OutputSchema['fields'] = [
	{ key: 'invoice_id', label: 'Invoice ID' },
	{ key: 'creditnote_invoice_id', label: 'Credit Note Invoice ID' },
	{ key: 'date', label: 'Date', format: 'date' },
	{ key: 'invoice_number', label: 'Invoice Number' },
	{ key: 'credited_amount', label: 'Credited Amount', format: 'currency' },
];

const usersFields: OutputSchema['fields'] = [
	{ key: 'user_id', label: 'User ID' },
	{ key: 'is_current_user', label: 'Is Current User', format: 'boolean' },
	{ key: 'email', label: 'Email', format: 'email' },
	{ key: 'user_role', label: 'User Role' },
	{ key: 'role_id', label: 'Role ID' },
	{ key: 'status', label: 'Status' },
];

const projectFields: OutputSchema['fields'] = [
	{ key: 'project_id', label: 'Project ID' },
	{ key: 'project_name', label: 'Project Name' },
	{ key: 'project_code', label: 'Project Code' },
	{ key: 'customer_id', label: 'Customer ID' },
	{ key: 'currency_id', label: 'Currency ID' },
	{ key: 'customer_name', label: 'Customer Name' },
	{ key: 'customer_first_name', label: 'Customer First Name' },
	{ key: 'customer_email', label: 'Customer Email', format: 'email' },
	{ key: 'currency_code', label: 'Currency Code' },
	{ key: 'description', label: 'Description' },
	{ key: 'status', label: 'Status' },
	{ key: 'billing_rate_frequency', label: 'Billing Rate Frequency' },
	{ key: 'billing_type', label: 'Billing Type' },
	{ key: 'budget_type', label: 'Budget Type' },
	{ key: 'budget_amount', label: 'Budget Amount', format: 'currency' },
	{ key: 'cost_budget_amount', label: 'Cost Budget Amount', format: 'currency' },
	{
		key: 'is_budget_threshold_notification_enabled',
		label: 'Is Budget Threshold Notification Enabled',
		format: 'boolean',
	},
	{ key: 'is_client_approval_needed', label: 'Is Client Approval Needed', format: 'boolean' },
	{ key: 'is_user_approval_needed', label: 'Is User Approval Needed', format: 'boolean' },
	{ key: 'hours_per_day', label: 'Hours Per Day' },
	{ key: 'project_head_id', label: 'Project Head ID' },
	{ key: 'project_head_name', label: 'Project Head Name' },
	{ key: 'is_valid_project_head', label: 'Is Valid Project Head', format: 'boolean' },
	{ key: 'budget_threshold', label: 'Budget Threshold', format: 'number' },
	{ key: 'is_expense_inclusive', label: 'Is Expense Inclusive', format: 'boolean' },
	{ key: 'total_hours', label: 'Total Hours' },
	{ key: 'total_amount_expense_inclusive', label: 'Total Amount Expense Inclusive' },
	{ key: 'billed_hours', label: 'Billed Hours' },
	{ key: 'un_billed_hours', label: 'Unbilled Hours' },
	{ key: 'billable_hours', label: 'Billable Hours' },
	{ key: 'non_billable_hours', label: 'Non Billable Hours' },
	{ key: 'unused_retainer_payments', label: 'Unused Retainer Payments', format: 'currency' },
	{
		key: 'has_active_recurring_profiles',
		label: 'Has Active Recurring Profiles',
		format: 'boolean',
	},
	{ key: 'created_by_id', label: 'Created By ID' },
	{ key: 'last_modified_by_id', label: 'Last Modified By ID' },
	{ key: 'created_time', label: 'Created Time', format: 'datetime' },
	{ key: 'accounts_budgets', label: 'Accounts Budgets' },
	{ key: 'tasks', label: 'Tasks', listItems: tasksFields },
	{
		key: 'users',
		label: 'Users',
		labelKey: 'email',
		listItems: [
			...usersFields,
			{ key: 'user_name', label: 'User Name' },
			{ key: 'rate', label: 'Rate', format: 'currency' },
			{ key: 'budget_hours', label: 'Budget Hours', format: 'number' },
			{ key: 'budget_hours_in_time', label: 'Budget Hours In Time' },
			{ key: 'total_hours', label: 'Total Hours' },
			{ key: 'billed_hours', label: 'Billed Hours' },
			{ key: 'un_billed_hours', label: 'Unbilled Hours' },
			{ key: 'billable_hours', label: 'Billable Hours' },
			{ key: 'non_billable_hours', label: 'Non Billable Hours' },
			{ key: 'staff_role', label: 'Staff Role' },
			{ key: 'staff_status', label: 'Staff Status' },
		],
	},
	{ key: 'custom_fields', label: 'Custom Fields' },
	{ key: 'documents', label: 'Documents' },
];

const contactPersonsFields: OutputSchema['fields'] = [
	{ key: 'contact_person_id', label: 'Contact Person ID' },
	{ key: 'salutation', label: 'Salutation' },
	{ key: 'first_name', label: 'First Name' },
	{ key: 'last_name', label: 'Last Name' },
	{ key: 'email', label: 'Email', format: 'email' },
	{ key: 'phone', label: 'Phone' },
	{ key: 'mobile', label: 'Mobile' },
	{ key: 'department', label: 'Department' },
	{ key: 'designation', label: 'Designation' },
	{ key: 'skype', label: 'Skype' },
	{ key: 'fax', label: 'Fax' },
	{ key: 'is_added_in_portal', label: 'Is Added In Portal', format: 'boolean' },
	{ key: 'is_primary_contact', label: 'Is Primary Contact', format: 'boolean' },
	{
		key: 'is_portal_invitation_accepted',
		label: 'Is Portal Invitation Accepted',
		format: 'boolean',
	},
	{ key: 'contactperson_custom_fields', label: 'Contact Person Custom Fields' },
];

const itemFields: OutputSchema['fields'] = [
	{ key: 'group_id', label: 'Group ID' },
	{ key: 'item_id', label: 'Item ID' },
	{ key: 'name', label: 'Name' },
	{ key: 'sku', label: 'SKU' },
	{ key: 'brand', label: 'Brand' },
	{ key: 'manufacturer', label: 'Manufacturer' },
	{ key: 'purpose_of_use', label: 'Purpose Of Use' },
	{ key: 'item_code', label: 'Item Code' },
	{ key: 'status', label: 'Status' },
	{ key: 'source', label: 'Source' },
	{ key: 'is_linked_with_zohocrm', label: 'Is Linked With Zohocrm', format: 'boolean' },
	{ key: 'is_deleted_in_crm', label: 'Is Deleted In CRM', format: 'boolean' },
	{ key: 'zcrm_product_id', label: 'Zoho CRM Product ID' },
	{ key: 'crm_owner_id', label: 'CRM Owner ID' },
	{ key: 'unit', label: 'Unit' },
	{ key: 'is_receivable', label: 'Is Receivable', format: 'boolean' },
	{ key: 'unit_id', label: 'Unit ID' },
	{ key: 'description', label: 'Description' },
	{ key: 'rate', label: 'Rate', format: 'currency' },
	{ key: 'tax_id', label: 'Tax ID' },
	{ key: 'tax_name', label: 'Tax Name' },
	{ key: 'tax_percentage', label: 'Tax Percentage', format: 'number' },
	{ key: 'tax_type', label: 'Tax Type' },
	{ key: 'tax_status', label: 'Tax Status' },
	{ key: 'tax_start_date', label: 'Tax Start Date', format: 'date' },
	{ key: 'tax_end_date', label: 'Tax End Date', format: 'date' },
	{ key: 'tax_groups_details', label: 'Tax Groups Details' },
	{ key: 'tax_country_code', label: 'Tax Country Code' },
	{ key: 'tax_information', label: 'Tax Information', children: taxInformationFields },
	{ key: 'is_tax_expired', label: 'Is Tax Expired', format: 'boolean' },
	{ key: 'purchase_tax_information', label: 'Purchase Tax Information' },
	{ key: 'is_default_tax_applied', label: 'Is Default Tax Applied', format: 'boolean' },
	{ key: 'associated_template_id', label: 'Associated Template ID' },
	{ key: 'documents', label: 'Documents' },
	{ key: 'purchase_description', label: 'Purchase Description' },
	{ key: 'pricebook_rate', label: 'Price List Rate', format: 'currency' },
	{ key: 'pricing_scheme', label: 'Pricing Scheme' },
	{ key: 'price_brackets', label: 'Price Brackets' },
	{
		key: 'default_price_brackets',
		label: 'Default Price Brackets',
		listItems: defaultPriceBracketsFields,
	},
	{ key: 'sales_rate', label: 'Sales Rate', format: 'currency' },
	{ key: 'purchase_rate', label: 'Purchase Rate', format: 'currency' },
	{ key: 'sales_margin', label: 'Sales Margin' },
	{ key: 'created_at', label: 'Created At', format: 'date' },
	{ key: 'created_time', label: 'Created Time', format: 'datetime' },
	{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
	{ key: 'track_inventory', label: 'Track Inventory', format: 'boolean' },
	{ key: 'item_type', label: 'Item Type' },
	{ key: 'product_type', label: 'Product Type' },
	{ key: 'minimum_order_quantity', label: 'Minimum Order Quantity' },
	{ key: 'maximum_order_quantity', label: 'Maximum Order Quantity' },
	{ key: 'custom_fields', label: 'Custom Fields' },
	{ key: 'is_fulfillable', label: 'Is Fulfillable', format: 'boolean' },
	{ key: 'attribute_name1', label: 'Attribute Name1' },
	{ key: 'attribute_name2', label: 'Attribute Name2' },
	{ key: 'attribute_name3', label: 'Attribute Name3' },
	{ key: 'attribute_option_name1', label: 'Attribute Option Name1' },
	{ key: 'attribute_option_name2', label: 'Attribute Option Name2' },
	{ key: 'attribute_option_name3', label: 'Attribute Option Name3' },
	{ key: 'sales_channels', label: 'Sales Channels' },
	{ key: 'is_modifier_item', label: 'Is Modifier Item', format: 'boolean' },
	{ key: 'integration_references', label: 'Integration References' },
	{ key: 'has_variant', label: 'Has Variant', format: 'boolean' },
	{ key: 'default_hosted_page_url', label: 'Default Hosted Page URL', format: 'url' },
];

const paymentFields: OutputSchema['fields'] = [
	{ key: 'payment_id', label: 'Payment ID' },
	{ key: 'payment_number', label: 'Payment Number' },
	{ key: 'sales_channel', label: 'Sales Channel' },
	{ key: 'account_identifier', label: 'Account Identifier' },
	{ key: 'payment_link_id', label: 'Payment Link ID' },
	{ key: 'created_by', label: 'Created By' },
	{ key: 'created_time', label: 'Created Time', format: 'datetime' },
	{ key: 'updated_time', label: 'Updated Time', format: 'datetime' },
	{ key: 'payment_number_prefix', label: 'Payment Number Prefix' },
	{ key: 'payment_number_suffix', label: 'Payment Number Suffix' },
	{ key: 'documents', label: 'Documents' },
	{ key: 'beat_id', label: 'Beat ID' },
	{ key: 'beat_number', label: 'Beat Number' },
	{ key: 'journey_plan_id', label: 'Journey Plan ID' },
	{ key: 'sales_person_id', label: 'Sales Person ID' },
	{ key: 'sales_person_name', label: 'Sales Person Name' },
	{ key: 'customer_id', label: 'Customer ID' },
	{ key: 'customer_name', label: 'Customer Name' },
	{ key: 'payment_mode', label: 'Payment Mode' },
	{ key: 'card_type', label: 'Card Type' },
	{ key: 'date', label: 'Date', format: 'date' },
	{ key: 'currency_id', label: 'Currency ID' },
	{ key: 'currency_symbol', label: 'Currency Symbol' },
	{ key: 'currency_code', label: 'Currency Code' },
	{ key: 'exchange_rate', label: 'Exchange Rate', format: 'number' },
	{ key: 'amount', label: 'Amount', format: 'currency' },
	{ key: 'bcy_amount', label: 'Amount (Base Currency)', format: 'currency' },
	{ key: 'unused_amount', label: 'Unused Amount', format: 'currency' },
	{ key: 'bank_charges', label: 'Bank Charges', format: 'currency' },
	{
		key: 'is_client_review_settings_enabled',
		label: 'Is Client Review Settings Enabled',
		format: 'boolean',
	},
	{ key: 'tax_amount_withheld', label: 'Tax Amount Withheld', format: 'currency' },
	{ key: 'description', label: 'Description' },
	{ key: 'product_description', label: 'Product Description' },
	{ key: 'reference_number', label: 'Reference Number' },
	{ key: 'online_transaction_id', label: 'Online Transaction ID' },
	{ key: 'payment_gateway', label: 'Payment Gateway' },
	{ key: 'settlement_status', label: 'Settlement Status' },
	{ key: 'tds_type', label: 'TDS Type' },
	{ key: 'tds_tax_id', label: 'TDS Tax ID' },
	{ key: 'is_ondc_channel', label: 'Is ONDC Channel', format: 'boolean' },
	{ key: 'is_paid_via_check', label: 'Is Paid Via Check', format: 'boolean' },
	{
		key: 'invoices',
		label: 'Invoices',
		listItems: [
			{ key: 'invoice_number', label: 'Invoice Number' },
			{ key: 'invoice_payment_id', label: 'Invoice Payment ID' },
			{ key: 'invoice_id', label: 'Invoice ID' },
			{ key: 'invoice_customer_id', label: 'Invoice Customer ID' },
			{ key: 'invoice_customer_name', label: 'Invoice Customer Name' },
			{ key: 'amount_applied', label: 'Amount Applied', format: 'currency' },
			{ key: 'tax_amount_withheld', label: 'Tax Amount Withheld', format: 'currency' },
			{ key: 'total', label: 'Total', format: 'currency' },
			{ key: 'balance', label: 'Balance', format: 'currency' },
			{ key: 'date', label: 'Date', format: 'date' },
			{ key: 'due_date', label: 'Due Date', format: 'date' },
			{
				key: 'unprocessed_payment_amount',
				label: 'Unprocessed Payment Amount',
				format: 'currency',
			},
			{ key: 'price_precision', label: 'Price Precision', format: 'number' },
			{ key: 'apply_date', label: 'Apply Date', format: 'date' },
			{ key: 'allow_partial_payments', label: 'Allow Partial Payments' },
			{ key: 'invoice_installments', label: 'Invoice Installments' },
			{ key: 'installments', label: 'Installments' },
		],
	},
	{ key: 'check_details', label: 'Check Details', children: checkDetailsFields },
	{ key: 'registration_details', label: 'Registration Details' },
	{ key: 'payment_status', label: 'Payment Status' },
	{ key: 'tender_id', label: 'Tender ID' },
	{ key: 'deposit_details', label: 'Deposit Details' },
	{ key: 'last_four_digits', label: 'Last Four Digits' },
	{ key: 'template_id', label: 'Template ID' },
	{ key: 'template_name', label: 'Template Name' },
	{ key: 'template_type', label: 'Template Type' },
	{ key: 'attachment_name', label: 'Attachment Name' },
	{ key: 'can_send_in_mail', label: 'Can Send In Mail', format: 'boolean' },
	{ key: 'is_payment_details_required', label: 'Is Payment Details Required', format: 'boolean' },
	{ key: 'price_precision', label: 'Price Precision', format: 'number' },
	{ key: 'rounding_mode', label: 'Rounding Mode' },
];

const lineItemsFields: OutputSchema['fields'] = [
	{ key: 'line_item_id', label: 'Line Item ID' },
	{ key: 'item_order', label: 'Item Order', format: 'number' },
	{ key: 'description', label: 'Description' },
	{ key: 'tax_id', label: 'Tax ID' },
	{ key: 'tax_name', label: 'Tax Name' },
	{ key: 'tax_type', label: 'Tax Type' },
	{ key: 'tax_percentage', label: 'Tax Percentage', format: 'number' },
	{ key: 'item_total', label: 'Item Total', format: 'currency' },
	{ key: 'line_item_taxes', label: 'Line Item Taxes' },
];

const contactPersonsDetailsFields: OutputSchema['fields'] = [
	{ key: 'contact_person_id', label: 'Contact Person ID' },
	{ key: 'first_name', label: 'First Name' },
	{ key: 'last_name', label: 'Last Name' },
	{ key: 'email', label: 'Email', format: 'email' },
	{ key: 'phone', label: 'Phone' },
	{ key: 'mobile', label: 'Mobile' },
	{ key: 'is_primary_contact', label: 'Is Primary Contact', format: 'boolean' },
];

const creditNoteFields: OutputSchema['fields'] = [
	{ key: 'creditnote_id', label: 'Credit Note ID' },
	{ key: 'creditnote_number', label: 'Credit Note Number' },
	{ key: 'date', label: 'Date', format: 'date' },
];

const userFields: OutputSchema['fields'] = [
	{ key: 'user_id', label: 'User ID' },
	{ key: 'email', label: 'Email', format: 'email' },
	{ key: 'user_role', label: 'User Role' },
	{ key: 'role_id', label: 'Role ID' },
];

export const zohoInvoiceMessageWithDataOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{ key: 'data', label: 'Data' },
	],
};

export const zohoInvoiceListProjectUsersOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'users',
			label: 'Users',
			labelKey: 'email',
			listItems: [
				...usersFields,
				{ key: 'user_name', label: 'User Name' },
				{ key: 'rate', label: 'Rate', format: 'currency' },
				{ key: 'is_timer_running', label: 'Is Timer Running', format: 'boolean' },
				{ key: 'timer_started_date', label: 'Timer Started Date' },
				{ key: 'timer_running_task', label: 'Timer Running Task' },
				{ key: 'budget_hours', label: 'Budget Hours', format: 'number' },
				{ key: 'budget_hours_in_time', label: 'Budget Hours In Time' },
				{ key: 'un_billed_hours', label: 'Unbilled Hours' },
				{ key: 'billed_hours', label: 'Billed Hours' },
				{ key: 'total_hours', label: 'Total Hours' },
			],
		},
	],
};

export const zohoInvoiceProjectOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'project',
			label: 'Project',
			children: [
				...projectFields,
				{ key: 'total_amount', label: 'Total Amount', format: 'currency' },
				{ key: 'billed_amount', label: 'Billed Amount', format: 'currency' },
				{ key: 'un_billed_amount', label: 'Unbilled Amount', format: 'currency' },
				{ key: 'billable_amount', label: 'Billable Amount', format: 'currency' },
				{ key: 'non_billable_amount', label: 'Non Billable Amount', format: 'currency' },
				{ key: 'rate', label: 'Rate', format: 'currency' },
				{ key: 'budget_hours', label: 'Budget Hours', format: 'number' },
				{ key: 'budget_hours_in_time', label: 'Budget Hours In Time' },
			],
		},
	],
};

export const zohoInvoiceContactOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'contact',
			label: 'Contact',
			children: [
				{ key: 'contact_id', label: 'Contact ID' },
				{ key: 'contact_name', label: 'Contact Name' },
				{ key: 'company_name', label: 'Company Name' },
				{ key: 'contact_tax_information', label: 'Contact Tax Information' },
				{ key: 'contact_blocks', label: 'Contact Blocks' },
				{ key: 'first_name', label: 'First Name' },
				{ key: 'last_name', label: 'Last Name' },
				{ key: 'designation', label: 'Designation' },
				{ key: 'department', label: 'Department' },
				{ key: 'website', label: 'Website', format: 'url' },
				{ key: 'is_bcy_only_contact', label: 'Is Base Currency Only Contact', format: 'boolean' },
				{
					key: 'is_credit_limit_migration_completed',
					label: 'Is Credit Limit Migration Completed',
					format: 'boolean',
				},
				{ key: 'language_code', label: 'Language Code' },
				{ key: 'contact_salutation', label: 'Contact Salutation' },
				{ key: 'email', label: 'Email', format: 'email' },
				{ key: 'phone', label: 'Phone' },
				{ key: 'mobile', label: 'Mobile' },
				{ key: 'invited_by', label: 'Invited By' },
				{ key: 'portal_status', label: 'Portal Status' },
				{ key: 'is_client_review_asked', label: 'Is Client Review Asked', format: 'boolean' },
				{ key: 'has_transaction', label: 'Has Transaction', format: 'boolean' },
				{ key: 'contact_type', label: 'Contact Type' },
				{ key: 'customer_sub_type', label: 'Customer Sub Type' },
				{ key: 'contact_relation_type', label: 'Contact Relation Type' },
				{ key: 'owner_id', label: 'Owner ID' },
				{ key: 'owner_name', label: 'Owner Name' },
				{ key: 'source', label: 'Source' },
				{ key: 'documents', label: 'Documents' },
				{ key: 'twitter', label: 'Twitter' },
				{ key: 'facebook', label: 'Facebook' },
				{ key: 'is_crm_customer', label: 'Is CRM Customer', format: 'boolean' },
				{ key: 'is_linked_with_zohocrm', label: 'Is Linked With Zohocrm', format: 'boolean' },
				{ key: 'is_deleted_in_crm', label: 'Is Deleted In CRM', format: 'boolean' },
				{ key: 'primary_contact_id', label: 'Primary Contact ID' },
				{ key: 'zcrm_account_id', label: 'Zoho CRM Account ID' },
				{ key: 'zcrm_contact_id', label: 'Zoho CRM Contact ID' },
				{ key: 'crm_owner_id', label: 'CRM Owner ID' },
				{ key: 'payment_terms', label: 'Payment Terms', format: 'number' },
				{ key: 'payment_terms_label', label: 'Payment Terms Label' },
				{ key: 'payment_terms_id', label: 'Payment Terms ID' },
				{
					key: 'credit_limit_exceeded_amount',
					label: 'Credit Limit Exceeded Amount',
					format: 'currency',
				},
				{ key: 'currency_id', label: 'Currency ID' },
				{ key: 'currency_code', label: 'Currency Code' },
				{ key: 'currency_symbol', label: 'Currency Symbol' },
				{ key: 'price_precision', label: 'Price Precision', format: 'number' },
				{ key: 'opening_balance_amount', label: 'Opening Balance Amount', format: 'currency' },
				{
					key: 'outstanding_receivable_amount',
					label: 'Outstanding Receivable Amount',
					format: 'currency',
				},
				{
					key: 'outstanding_receivable_amount_bcy',
					label: 'Outstanding Receivable Amount (Base Currency)',
					format: 'currency',
				},
				{
					key: 'unused_credits_receivable_amount',
					label: 'Unused Credits Receivable Amount',
					format: 'currency',
				},
				{
					key: 'unused_credits_receivable_amount_bcy',
					label: 'Unused Credits Receivable Amount (Base Currency)',
					format: 'currency',
				},
				{ key: 'unused_retainer_payments', label: 'Unused Retainer Payments', format: 'currency' },
				{ key: 'status', label: 'Status' },
				{ key: 'payment_reminder_enabled', label: 'Payment Reminder Enabled', format: 'boolean' },
				{ key: 'is_sms_enabled', label: 'Is SMS Enabled', format: 'boolean' },
				{ key: 'is_consent_agreed', label: 'Is Consent Agreed', format: 'boolean' },
				{ key: 'consent_date', label: 'Consent Date', format: 'date' },
				{
					key: 'is_client_review_settings_enabled',
					label: 'Is Client Review Settings Enabled',
					format: 'boolean',
				},
				{ key: 'custom_fields', label: 'Custom Fields' },
				{ key: 'tds_tax_id', label: 'TDS Tax ID' },
				{ key: 'pan_no', label: 'PAN No' },
				{ key: 'trader_name', label: 'Trader Name' },
				{ key: 'legal_name', label: 'Legal Name' },
				{ key: 'tax_reg_label', label: 'Tax Reg Label' },
				{ key: 'udyam_reg_no', label: 'Udyam Reg No' },
				{ key: 'msme_type', label: 'MSME Type' },
				{ key: 'is_valid_udyam_no', label: 'Is Valid Udyam No' },
				{ key: 'udyam_validated_time', label: 'Udyam Validated Time', format: 'datetime' },
				{ key: 'contact_category', label: 'Contact Category' },
				{ key: 'sales_channel', label: 'Sales Channel' },
				{ key: 'ach_supported', label: 'ACH Supported', format: 'boolean' },
				{ key: 'portal_receipt_count', label: 'Portal Receipt Count', format: 'number' },
				{ key: 'entity_address_id', label: 'Entity Address ID' },
				{
					key: 'billing_address',
					label: 'Billing Address',
					children: [
						...billingAddressFields,
						{ key: 'address_id', label: 'Address ID' },
						{ key: 'state_code', label: 'State Code' },
						{ key: 'zip', label: 'Zip' },
						{ key: 'county', label: 'County' },
						{ key: 'latitude', label: 'Latitude' },
						{ key: 'longitude', label: 'Longitude' },
						{ key: 'country_code', label: 'Country Code' },
					],
				},
				{
					key: 'shipping_address',
					label: 'Shipping Address',
					children: [
						...shippingAddressFields,
						{ key: 'address_id', label: 'Address ID' },
						{ key: 'state_code', label: 'State Code' },
						{ key: 'zip', label: 'Zip' },
						{ key: 'county', label: 'County' },
						{ key: 'country_code', label: 'Country Code' },
						{ key: 'latitude', label: 'Latitude' },
						{ key: 'longitude', label: 'Longitude' },
					],
				},
				{
					key: 'contact_persons',
					label: 'Contact Persons',
					labelKey: 'email',
					listItems: [
						...contactPersonsFields,
						{ key: 'mobile_country_code', label: 'Mobile Country Code' },
						{ key: 'date_of_birth', label: 'Date Of Birth', format: 'date' },
						{ key: 'gender', label: 'Gender' },
						{ key: 'zcrm_contact_id', label: 'Zoho CRM Contact ID' },
						{ key: 'is_portal_mfa_enabled', label: 'Is Portal MFA Enabled', format: 'boolean' },
						{ key: 'is_sms_enabled_for_cp', label: 'Is SMS Enabled For Cp', format: 'boolean' },
						{ key: 'portal_enabled_via', label: 'Portal Enabled Via' },
						{
							key: 'communication_preference',
							label: 'Communication Preference',
							children: [{ key: 'is_email_enabled', label: 'Is Email Enabled', format: 'boolean' }],
						},
					],
				},
				{ key: 'addresses', label: 'Addresses' },
				{ key: 'pricebook_id', label: 'Price List ID' },
				{ key: 'pricebook_name', label: 'Price List Name' },
				{
					key: 'default_templates',
					label: 'Default Templates',
					children: [
						{ key: 'statement_template_id', label: 'Statement Template ID' },
						{ key: 'statement_template_name', label: 'Statement Template Name' },
						{ key: 'invoice_template_id', label: 'Invoice Template ID' },
						{ key: 'invoice_template_name', label: 'Invoice Template Name' },
						{ key: 'bill_template_id', label: 'Bill Template ID' },
						{ key: 'bill_template_name', label: 'Bill Template Name' },
						{ key: 'estimate_template_id', label: 'Estimate Template ID' },
						{ key: 'estimate_template_name', label: 'Estimate Template Name' },
						{ key: 'creditnote_template_id', label: 'Credit Note Template ID' },
						{ key: 'creditnote_template_name', label: 'Credit Note Template Name' },
						{ key: 'paymentthankyou_template_id', label: 'Payment Thank-You Template ID' },
						{ key: 'paymentthankyou_template_name', label: 'Payment Thank-You Template Name' },
						{ key: 'invoice_email_template_id', label: 'Invoice Email Template ID' },
						{ key: 'invoice_email_template_name', label: 'Invoice Email Template Name' },
						{ key: 'estimate_email_template_id', label: 'Estimate Email Template ID' },
						{ key: 'estimate_email_template_name', label: 'Estimate Email Template Name' },
						{ key: 'creditnote_email_template_id', label: 'Credit Note Email Template ID' },
						{ key: 'creditnote_email_template_name', label: 'Credit Note Email Template Name' },
						{
							key: 'paymentthankyou_email_template_id',
							label: 'Payment Thank-You Email Template ID',
						},
						{
							key: 'paymentthankyou_email_template_name',
							label: 'Payment Thank-You Email Template Name',
						},
						{
							key: 'payment_remittance_email_template_id',
							label: 'Payment Remittance Email Template ID',
						},
						{
							key: 'payment_remittance_email_template_name',
							label: 'Payment Remittance Email Template Name',
						},
					],
				},
				{ key: 'associated_with_square', label: 'Associated With Square', format: 'boolean' },
				{ key: 'cards', label: 'Cards' },
				{ key: 'checks', label: 'Checks' },
				{ key: 'upi_mandates', label: 'UPI Mandates' },
				{ key: 'bank_accounts', label: 'Bank Accounts' },
				{ key: 'vpa_list', label: 'VPA List' },
				{ key: 'notes', label: 'Notes' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'created_date', label: 'Created Date', format: 'date' },
				{ key: 'created_by_name', label: 'Created By Name' },
				{ key: 'created_by_id', label: 'Created By ID' },
				{ key: 'last_modified_by_id', label: 'Last Modified By ID' },
				{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
				{
					key: 'customer_currency_summaries',
					label: 'Customer Currency Summaries',
					listItems: [
						{ key: 'currency_id', label: 'Currency ID' },
						{ key: 'currency_code', label: 'Currency Code' },
						{ key: 'currency_symbol', label: 'Currency Symbol' },
						{ key: 'price_precision', label: 'Price Precision', format: 'number' },
						{ key: 'is_base_currency', label: 'Is Base Currency', format: 'boolean' },
						{
							key: 'outstanding_receivable_amount',
							label: 'Outstanding Receivable Amount',
							format: 'currency',
						},
						{
							key: 'unused_credits_receivable_amount',
							label: 'Unused Credits Receivable Amount',
							format: 'currency',
						},
					],
				},
				{ key: 'approvers_list', label: 'Approvers List' },
				{ key: 'submitted_date', label: 'Submitted Date', format: 'date' },
				{ key: 'submitted_by', label: 'Submitted By' },
				{ key: 'submitted_by_name', label: 'Submitted By Name' },
				{ key: 'submitted_by_email', label: 'Submitted By Email' },
				{ key: 'submitter_id', label: 'Submitter ID' },
				{ key: 'approver_id', label: 'Approver ID' },
				{ key: 'is_multi_match_approval', label: 'Is Multi Match Approval', format: 'boolean' },
				{ key: 'approval_name', label: 'Approval Name' },
				{ key: 'approval_path', label: 'Approval Path' },
				{ key: 'approvers', label: 'Approvers' },
				{ key: 'note_to_approver', label: 'Note To Approver' },
				{ key: 'integration_references', label: 'Integration References' },
				{ key: 'additional_information', label: 'Additional Information' },
				{ key: 'registration_details', label: 'Registration Details' },
			],
		},
	],
};

export const zohoInvoiceMessageOutputSchema: OutputSchema = {
	fields: [{ key: 'message', label: 'Message' }],
};

export const zohoInvoiceCurrencyOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'currency',
			label: 'Currency',
			children: [
				{ key: 'currency_id', label: 'Currency ID' },
				{ key: 'currency_code', label: 'Currency Code' },
				{ key: 'currency_name', label: 'Currency Name' },
				{ key: 'currency_symbol', label: 'Currency Symbol' },
				{ key: 'price_precision', label: 'Price Precision', format: 'number' },
				{ key: 'currency_format', label: 'Currency Format' },
				{ key: 'is_base_currency', label: 'Is Base Currency', format: 'boolean' },
				{
					key: 'auto_exchange_rate_enabled',
					label: 'Auto Exchange Rate Enabled',
					format: 'boolean',
				},
			],
		},
	],
};

export const zohoInvoiceListCurrenciesOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'currencies',
			label: 'Currencies',
			listItems: [
				{ key: 'currency_id', label: 'Currency ID' },
				{ key: 'currency_code', label: 'Currency Code' },
				{ key: 'currency_name', label: 'Currency Name' },
				{ key: 'currency_symbol', label: 'Currency Symbol' },
				{ key: 'price_precision', label: 'Price Precision', format: 'number' },
				{ key: 'currency_format', label: 'Currency Format' },
				{ key: 'is_base_currency', label: 'Is Base Currency', format: 'boolean' },
				{ key: 'exchange_rate', label: 'Exchange Rate', format: 'number' },
				{ key: 'effective_date', label: 'Effective Date', format: 'date' },
				{
					key: 'auto_exchange_rate_enabled',
					label: 'Auto Exchange Rate Enabled',
					format: 'boolean',
				},
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'applied_filter', label: 'Applied Filter' },
				{ key: 'as_of_date', label: 'As Of Date', format: 'date' },
				{ key: 'to_date', label: 'To Date', format: 'date' },
			],
		},
	],
};

export const zohoInvoiceGetOrganizationOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'organization',
			label: 'Organization',
			children: [
				{ key: 'organization_id', label: 'Organization ID' },
				{ key: 'name', label: 'Name' },
				{ key: 'first_name', label: 'First Name' },
				{ key: 'last_name', label: 'Last Name' },
				{ key: 'is_default_org', label: 'Is Default Org', format: 'boolean' },
				{ key: 'user_role', label: 'User Role' },
				{ key: 'role_id', label: 'Role ID' },
				{ key: 'account_created_date', label: 'Account Created Date', format: 'date' },
				{ key: 'time_zone', label: 'Time Zone' },
				{ key: 'language_code', label: 'Language Code' },
				{ key: 'customer_languages', label: 'Customer Languages' },
				{ key: 'date_format', label: 'Date Format' },
				{ key: 'field_separator', label: 'Field Separator' },
				{ key: 'fiscal_year_start_month', label: 'Fiscal Year Start Month' },
				{ key: 'primary_domain_name', label: 'Primary Domain Name' },
				{ key: 'is_public_domain', label: 'Is Public Domain', format: 'boolean' },
				{ key: 'fiscal_year_start_date', label: 'Fiscal Year Start Date', format: 'number' },
				{ key: 'contact_name', label: 'Contact Name' },
				{ key: 'industry_type', label: 'Industry Type' },
				{ key: 'industry_size', label: 'Industry Size' },
				{ key: 'previous_invoicing_option', label: 'Previous Invoicing Option' },
				{ key: 'previous_product_option', label: 'Previous Product Option' },
				{ key: 'business_management_type', label: 'Business Management Type' },
				{ key: 'company_id_label', label: 'Company ID Label' },
				{ key: 'custom_field_type', label: 'Custom Field Type', format: 'number' },
				{ key: 'is_trial_period_extended', label: 'Is Trial Period Extended', format: 'boolean' },
				{ key: 'is_sez', label: 'Is SEZ', format: 'boolean' },
				{ key: 'is_designated_zone', label: 'Is Designated Zone', format: 'boolean' },
				{ key: 'is_free_zone', label: 'Is Free Zone', format: 'boolean' },
				{ key: 'store_url', label: 'Store URL', format: 'url' },
				{ key: 'company_id_value', label: 'Company ID Value' },
				{ key: 'label_for_company_id', label: 'Label For Company ID' },
				{ key: 'tax_id_label', label: 'Tax ID Label' },
				{ key: 'tax_id_value', label: 'Tax ID Value' },
				{ key: 'currency_id', label: 'Currency ID' },
				{ key: 'currency_code', label: 'Currency Code' },
				{ key: 'currency_symbol', label: 'Currency Symbol' },
				{ key: 'currency_format', label: 'Currency Format' },
				{ key: 'price_precision', label: 'Price Precision', format: 'number' },
				{ key: 'status', label: 'Status' },
				{
					key: 'address',
					label: 'Address',
					children: [
						{ key: 'street_address1', label: 'Street Address1' },
						{ key: 'street_address2', label: 'Street Address2' },
						{ key: 'city', label: 'City' },
						{ key: 'state', label: 'State' },
						{ key: 'state_code', label: 'State Code' },
						{ key: 'country', label: 'Country' },
						{ key: 'zip', label: 'Zip' },
						{ key: 'latitude', label: 'Latitude' },
						{ key: 'longitude', label: 'Longitude' },
						{ key: 'attention', label: 'Attention' },
					],
				},
				{
					key: 'tax_settings',
					label: 'Tax Settings',
					children: [
						{ key: 'is_tax_registered', label: 'Is Tax Registered', format: 'boolean' },
						{ key: 'tax_reg_no', label: 'Tax Reg No' },
					],
				},
				{ key: 'is_registered_for_gst', label: 'Is Registered For GST', format: 'boolean' },
				{
					key: 'is_composition_scheme_enabled',
					label: 'Is Composition Scheme Enabled',
					format: 'boolean',
				},
				{ key: 'org_address', label: 'Org Address' },
				{ key: 'remit_to_address', label: 'Remit To Address' },
				{ key: 'phone', label: 'Phone' },
				{ key: 'fax', label: 'Fax' },
				{ key: 'website', label: 'Website', format: 'url' },
				{ key: 'version', label: 'Version' },
				{ key: 'weight_unit', label: 'Weight Unit' },
				{ key: 'dimension_unit', label: 'Dimension Unit' },
				{ key: 'business_type', label: 'Business Type' },
				{ key: 'email', label: 'Email', format: 'email' },
				{ key: 'unverified_emails_count', label: 'Unverified Emails Count', format: 'number' },
				{
					key: 'custom_fields',
					label: 'Custom Fields',
					labelKey: 'label',
					listItems: customFieldsFields,
				},
				{ key: 'is_org_active', label: 'Is Org Active', format: 'boolean' },
				{
					key: 'is_new_customer_custom_fields',
					label: 'Is New Customer Custom Fields',
					format: 'boolean',
				},
				{ key: 'is_late_fee_disabled', label: 'Is Late Fee Disabled', format: 'boolean' },
				{ key: 'is_portal_enabled', label: 'Is Portal Enabled', format: 'boolean' },
				{ key: 'org_joined_app_list', label: 'Org Joined App List' },
				{ key: 'company_identification_labels_list', label: 'Company Identification Labels List' },
				{ key: 'portal_name', label: 'Portal Name' },
				{ key: 'is_estimate_enabled', label: 'Is Estimate Enabled', format: 'boolean' },
				{ key: 'is_project_enabled', label: 'Is Project Enabled', format: 'boolean' },
				{
					key: 'is_retainerinvoice_enabled',
					label: 'Is Retainer Invoice Enabled',
					format: 'boolean',
				},
				{ key: 'mode', label: 'Mode' },
				{ key: 'payments_url', label: 'Payments URL', format: 'url' },
			],
		},
	],
};

export const zohoInvoiceCreateItemOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{ key: 'item', label: 'Item', children: itemFields },
	],
};

export const zohoInvoiceItemOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{ key: 'item', label: 'Item', children: itemFields },
	],
};

export const zohoInvoiceListItemsOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'items',
			label: 'Items',
			labelKey: 'name',
			listItems: [
				{ key: 'item_id', label: 'Item ID' },
				{ key: 'name', label: 'Name' },
				{ key: 'item_name', label: 'Item Name' },
				{ key: 'unit', label: 'Unit' },
				{ key: 'status', label: 'Status' },
				{ key: 'source', label: 'Source' },
				{ key: 'is_linked_with_zohocrm', label: 'Is Linked With Zohocrm', format: 'boolean' },
				{ key: 'zcrm_product_id', label: 'Zoho CRM Product ID' },
				{ key: 'description', label: 'Description' },
				{ key: 'rate', label: 'Rate', format: 'currency' },
				{ key: 'tax_id', label: 'Tax ID' },
				{ key: 'tax_name', label: 'Tax Name' },
				{ key: 'tax_percentage', label: 'Tax Percentage', format: 'number' },
				{ key: 'track_inventory', label: 'Track Inventory', format: 'boolean' },
				{ key: 'product_type', label: 'Product Type' },
				{ key: 'has_attachment', label: 'Has Attachment', format: 'boolean' },
				{ key: 'sku', label: 'SKU' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
				{ key: 'purpose_of_use', label: 'Purpose Of Use' },
				{ key: 'vendor_name', label: 'Vendor Name' },
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'applied_filter', label: 'Applied Filter' },
				{ key: 'custom_fields', label: 'Custom Fields' },
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoiceTaxOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'tax',
			label: 'Tax',
			children: [
				{ key: 'tax_id', label: 'Tax ID' },
				{ key: 'tax_display_name', label: 'Tax Display Name' },
				{ key: 'tax_name', label: 'Tax Name' },
				{ key: 'tax_percentage', label: 'Tax Percentage', format: 'number' },
				{ key: 'tax_type', label: 'Tax Type' },
				{ key: 'tax_specific_type', label: 'Tax Specific Type' },
				{ key: 'tax_specification', label: 'Tax Specification' },
				{ key: 'diff_rate_reason', label: 'Diff Rate Reason' },
				{ key: 'start_date', label: 'Start Date', format: 'date' },
				{ key: 'end_date', label: 'End Date', format: 'date' },
				{ key: 'status', label: 'Status' },
				{ key: 'description', label: 'Description' },
				{ key: 'reference_id', label: 'Reference ID' },
			],
		},
	],
};

export const zohoInvoiceListTaxesOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'taxes',
			label: 'Taxes',
			listItems: [
				...taxesFields,
				{ key: 'is_inactive', label: 'Is Inactive', format: 'boolean' },
				{ key: 'is_default_tax', label: 'Is Default Tax', format: 'boolean' },
				{ key: 'is_editable', label: 'Is Editable', format: 'boolean' },
				{ key: 'tax_specification', label: 'Tax Specification' },
				{ key: 'diff_rate_reason', label: 'Diff Rate Reason' },
				{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
				{ key: 'description', label: 'Description' },
				{ key: 'reference_id', label: 'Reference ID' },
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'applied_filter', label: 'Applied Filter' },
				{ key: 'as_of_date', label: 'As Of Date', format: 'date' },
				{ key: 'to_date', label: 'To Date', format: 'date' },
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoiceTaxGroupOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'tax_group',
			label: 'Tax Group',
			children: [
				{ key: 'tax_group_id', label: 'Tax Group ID' },
				{ key: 'tax_type', label: 'Tax Type' },
				{ key: 'tax_group_name', label: 'Tax Group Name' },
				{ key: 'tax_group_percentage', label: 'Tax Group Percentage', format: 'number' },
				{ key: 'taxes', label: 'Taxes', listItems: taxesFields },
				{ key: 'status', label: 'Status' },
				{ key: 'start_date', label: 'Start Date', format: 'date' },
				{ key: 'end_date', label: 'End Date', format: 'date' },
			],
		},
	],
};

export const zohoInvoiceUserOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'user',
			label: 'User',
			children: [
				...userFields,
				{ key: 'name', label: 'Name' },
				{ key: 'is_super_admin', label: 'Is Super Admin', format: 'boolean' },
				{ key: 'source', label: 'Source' },
				{
					key: 'email_ids',
					label: 'Email IDs',
					labelKey: 'email',
					listItems: [
						{ key: 'is_selected', label: 'Is Selected', format: 'boolean' },
						{ key: 'email', label: 'Email', format: 'email' },
					],
				},
				{ key: 'status', label: 'Status' },
				{ key: 'iam_contact_email', label: 'Iam Contact Email', format: 'email' },
				{ key: 'mobile', label: 'Mobile' },
				{ key: 'iam_contact_mobile', label: 'Iam Contact Mobile' },
				{ key: 'invitation_status', label: 'Invitation Status' },
				{ key: 'invitation_type', label: 'Invitation Type' },
				{ key: 'user_type', label: 'User Type' },
				{ key: 'custom_fields', label: 'Custom Fields' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{
					key: 'role',
					label: 'Role',
					children: [
						{
							key: 'role',
							label: 'Role',
							children: [
								{ key: 'role_name', label: 'Role Name' },
								{
									key: 'permissions',
									label: 'Permissions',
									listItems: [
										{ key: 'full_access', label: 'Full Access', format: 'boolean' },
										{ key: 'entity', label: 'Entity' },
									],
								},
								{ key: 'description', label: 'Description' },
								{ key: 'display_name', label: 'Display Name' },
							],
						},
						{ key: 'role_id', label: 'Role ID' },
						{ key: 'name', label: 'Name' },
						{ key: 'email', label: 'Email', format: 'email' },
						{ key: 'zuid', label: 'ZUID' },
					],
				},
				{ key: 'is_claimant', label: 'Is Claimant', format: 'boolean' },
				{ key: 'is_employee', label: 'Is Employee', format: 'boolean' },
				{ key: 'billing_rate', label: 'Billing Rate', format: 'currency' },
				{ key: 'is_customer_segmented', label: 'Is Customer Segmented', format: 'boolean' },
				{ key: 'is_vendor_segmented', label: 'Is Vendor Segmented', format: 'boolean' },
				{ key: 'is_accountant', label: 'Is Accountant', format: 'boolean' },
				{ key: 'roles', label: 'Roles', listItems: rolesFields },
				{
					key: 'is_associated_for_approval',
					label: 'Is Associated For Approval',
					format: 'boolean',
				},
				{
					key: 'is_associated_with_org_email',
					label: 'Is Associated With Org Email',
					format: 'boolean',
				},
				{ key: 'associated_clients', label: 'Associated Clients' },
			],
		},
	],
};

export const zohoInvoiceListUsersOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'users',
			label: 'Users',
			labelKey: 'name',
			listItems: [
				...usersFields,
				{ key: 'name', label: 'Name' },
				{ key: 'mobile', label: 'Mobile' },
				{ key: 'invitation_type', label: 'Invitation Type' },
				{ key: 'is_super_admin', label: 'Is Super Admin', format: 'boolean' },
				{ key: 'user_type', label: 'User Type' },
				{ key: 'is_customer_segmented', label: 'Is Customer Segmented', format: 'boolean' },
				{ key: 'is_vendor_segmented', label: 'Is Vendor Segmented', format: 'boolean' },
				{ key: 'roles', label: 'Roles', listItems: rolesFields },
				{ key: 'is_employee', label: 'Is Employee', format: 'boolean' },
				{ key: 'source', label: 'Source' },
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'applied_filter', label: 'Applied Filter' },
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoiceExchangeRateOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'exchange_rate',
			label: 'Exchange Rate',
			children: [
				{ key: 'exchange_rate_id', label: 'Exchange Rate ID' },
				{ key: 'currency_id', label: 'Currency ID' },
				{ key: 'currency_code', label: 'Currency Code' },
				{ key: 'effective_date', label: 'Effective Date', format: 'date' },
				{ key: 'rate', label: 'Rate', format: 'number' },
			],
		},
	],
};

export const zohoInvoiceListExchangeRatesOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'exchange_rates',
			label: 'Exchange Rates',
			listItems: [
				{ key: 'exchange_rate_id', label: 'Exchange Rate ID' },
				{ key: 'currency_id', label: 'Currency ID' },
				{ key: 'currency_code', label: 'Currency Code' },
				{ key: 'effective_date', label: 'Effective Date', format: 'date' },
				{ key: 'rate', label: 'Rate', format: 'number' },
			],
		},
	],
};

export const zohoInvoiceAddressInfoOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'address_info',
			label: 'Address Info',
			children: [
				{ key: 'address_id', label: 'Address ID' },
				{ key: 'address_type', label: 'Address Type' },
				{ key: 'attention', label: 'Attention' },
				{ key: 'address', label: 'Address' },
				{ key: 'street2', label: 'Street2' },
				{ key: 'city', label: 'City' },
				{ key: 'state_code', label: 'State Code' },
				{ key: 'city_code', label: 'City Code' },
				{ key: 'state', label: 'State' },
				{ key: 'zip', label: 'Zip' },
				{ key: 'country', label: 'Country' },
				{ key: 'county', label: 'County' },
				{ key: 'country_code', label: 'Country Code' },
				{ key: 'phone', label: 'Phone' },
				{ key: 'fax', label: 'Fax' },
				{ key: 'latitude', label: 'Latitude' },
				{ key: 'longitude', label: 'Longitude' },
				{
					key: 'update_existing_transactions_address',
					label: 'Update Existing Transactions Address',
				},
			],
		},
	],
};

export const zohoInvoiceListContactAddressesOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'addresses',
			label: 'Addresses',
			listItems: [
				{ key: 'address_id', label: 'Address ID' },
				{ key: 'attention', label: 'Attention' },
				{ key: 'address', label: 'Address' },
				{ key: 'street2', label: 'Street2' },
				{ key: 'city', label: 'City' },
				{ key: 'state', label: 'State' },
				{ key: 'state_code', label: 'State Code' },
				{ key: 'city_code', label: 'City Code' },
				{ key: 'zip', label: 'Zip' },
				{ key: 'country', label: 'Country' },
				{ key: 'county', label: 'County' },
				{ key: 'country_code', label: 'Country Code' },
				{ key: 'phone', label: 'Phone' },
				{ key: 'fax', label: 'Fax' },
			],
		},
	],
};

export const zohoInvoiceListContactCommentsOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'contact_comments',
			label: 'Contact Comments',
			listItems: [
				{ key: 'comment_id', label: 'Comment ID' },
				{ key: 'contact_id', label: 'Contact ID' },
				{ key: 'contact_name', label: 'Contact Name' },
				{ key: 'description', label: 'Description' },
				{ key: 'commented_by_id', label: 'Commented By ID' },
				{ key: 'commented_by', label: 'Commented By' },
				{ key: 'date', label: 'Date', format: 'date' },
				{ key: 'date_description', label: 'Date Description' },
				{ key: 'time', label: 'Time' },
				{ key: 'transaction_id', label: 'Transaction ID' },
				{ key: 'transaction_type', label: 'Transaction Type' },
				{ key: 'is_entity_deleted', label: 'Is Entity Deleted', format: 'boolean' },
				{ key: 'operation_type', label: 'Operation Type' },
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'applied_filter', label: 'Applied Filter' },
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoiceListContactsOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'contacts',
			label: 'Contacts',
			labelKey: 'email',
			listItems: [
				{ key: 'contact_id', label: 'Contact ID' },
				{ key: 'contact_name', label: 'Contact Name' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'vendor_name', label: 'Vendor Name' },
				{ key: 'company_name', label: 'Company Name' },
				{ key: 'website', label: 'Website', format: 'url' },
				{ key: 'language_code', label: 'Language Code' },
				{ key: 'contact_type', label: 'Contact Type' },
				{ key: 'status', label: 'Status' },
				{ key: 'customer_sub_type', label: 'Customer Sub Type' },
				{ key: 'source', label: 'Source' },
				{ key: 'is_linked_with_zohocrm', label: 'Is Linked With Zohocrm', format: 'boolean' },
				{ key: 'payment_terms', label: 'Payment Terms', format: 'number' },
				{ key: 'payment_terms_id', label: 'Payment Terms ID' },
				{ key: 'payment_terms_label', label: 'Payment Terms Label' },
				{ key: 'currency_id', label: 'Currency ID' },
				{ key: 'twitter', label: 'Twitter' },
				{ key: 'facebook', label: 'Facebook' },
				{ key: 'currency_code', label: 'Currency Code' },
				{
					key: 'outstanding_receivable_amount',
					label: 'Outstanding Receivable Amount',
					format: 'currency',
				},
				{
					key: 'outstanding_receivable_amount_bcy',
					label: 'Outstanding Receivable Amount (Base Currency)',
					format: 'currency',
				},
				{
					key: 'unused_credits_receivable_amount',
					label: 'Unused Credits Receivable Amount',
					format: 'currency',
				},
				{
					key: 'unused_credits_receivable_amount_bcy',
					label: 'Unused Credits Receivable Amount (Base Currency)',
					format: 'currency',
				},
				{ key: 'first_name', label: 'First Name' },
				{ key: 'last_name', label: 'Last Name' },
				{ key: 'email', label: 'Email', format: 'email' },
				{ key: 'phone', label: 'Phone' },
				{ key: 'mobile', label: 'Mobile' },
				{ key: 'portal_status', label: 'Portal Status' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
				{ key: 'custom_fields', label: 'Custom Fields' },
				{ key: 'contactperson_custom_fields', label: 'Contact Person Custom Fields' },
				{ key: 'ach_supported', label: 'ACH Supported', format: 'boolean' },
				{ key: 'has_attachment', label: 'Has Attachment', format: 'boolean' },
				{ key: 'pan_no', label: 'PAN No' },
				{ key: 'registration_details', label: 'Registration Details' },
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'applied_filter', label: 'Applied Filter' },
				{ key: 'custom_fields', label: 'Custom Fields' },
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoiceListContactRefundsOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{ key: 'creditnote_refunds', label: 'Credit Note Refunds' },
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoiceContactPersonOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'contact_person',
			label: 'Contact Person',
			children: [
				{ key: 'contact_id', label: 'Contact ID' },
				{ key: 'contact_person_id', label: 'Contact Person ID' },
				{ key: 'zcrm_contact_id', label: 'Zoho CRM Contact ID' },
				{ key: 'salutation', label: 'Salutation' },
				{ key: 'first_name', label: 'First Name' },
				{ key: 'last_name', label: 'Last Name' },
				{ key: 'email', label: 'Email', format: 'email' },
				{ key: 'phone', label: 'Phone' },
				{ key: 'mobile', label: 'Mobile' },
				{ key: 'mobile_country_code', label: 'Mobile Country Code' },
				{ key: 'department', label: 'Department' },
				{ key: 'designation', label: 'Designation' },
				{ key: 'skype', label: 'Skype' },
				{ key: 'fax', label: 'Fax' },
				{ key: 'is_primary_contact', label: 'Is Primary Contact', format: 'boolean' },
				{ key: 'is_added_in_portal', label: 'Is Added In Portal', format: 'boolean' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'updated_time', label: 'Updated Time', format: 'datetime' },
				{ key: 'contactperson_custom_fields', label: 'Contact Person Custom Fields' },
				{
					key: 'communication_preference',
					label: 'Communication Preference',
					children: [{ key: 'is_email_enabled', label: 'Is Email Enabled', format: 'boolean' }],
				},
			],
		},
	],
};

export const zohoInvoiceListContactPersonsOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'contact_persons',
			label: 'Contact Persons',
			labelKey: 'email',
			listItems: contactPersonsFields,
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoiceGetCustomerPaymentOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'payment',
			label: 'Payment',
			children: [
				...paymentFields,
				{ key: 'payment_refunds', label: 'Payment Refunds', listItems: paymentRefundsFields },
				{
					key: 'custom_fields',
					label: 'Custom Fields',
					labelKey: 'label',
					listItems: [
						...customFieldsFields,
						{ key: 'field_id', label: 'Field ID' },
						{ key: 'customfield_id', label: 'Customfield ID' },
						{ key: 'is_active', label: 'Is Active', format: 'boolean' },
						{ key: 'is_custom_field', label: 'Is Custom Field', format: 'boolean' },
						{ key: 'edit_on_portal', label: 'Edit On Portal', format: 'boolean' },
						{ key: 'edit_on_store', label: 'Edit On Store', format: 'boolean' },
						{ key: 'api_name', label: 'API Name' },
						{ key: 'search_entity', label: 'Search Entity' },
						{ key: 'data_type', label: 'Data Type' },
						{ key: 'placeholder', label: 'Placeholder' },
						{ key: 'is_dependent_field', label: 'Is Dependent Field', format: 'boolean' },
					],
				},
			],
		},
	],
};

export const zohoInvoicePaymentOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'payment',
			label: 'Payment',
			children: [
				...paymentFields,
				{ key: 'payment_refunds', label: 'Payment Refunds' },
				{ key: 'custom_fields', label: 'Custom Fields' },
			],
		},
	],
};

export const zohoInvoiceListCustomerPaymentsOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'customerpayments',
			label: 'Customer Payments',
			listItems: [
				{ key: 'payment_id', label: 'Payment ID' },
				{ key: 'payment_number', label: 'Payment Number' },
				{ key: 'invoice_numbers', label: 'Invoice Numbers' },
				{ key: 'date', label: 'Date', format: 'date' },
				{ key: 'payment_mode', label: 'Payment Mode' },
				{ key: 'amount', label: 'Amount', format: 'currency' },
				{ key: 'bcy_amount', label: 'Amount (Base Currency)', format: 'currency' },
				{ key: 'unused_amount', label: 'Unused Amount', format: 'currency' },
				{ key: 'bcy_unused_amount', label: 'Unused Amount (Base Currency)', format: 'currency' },
				{ key: 'description', label: 'Description' },
				{ key: 'product_description', label: 'Product Description' },
				{ key: 'reference_number', label: 'Reference Number' },
				{ key: 'is_paid_via_check', label: 'Is Paid Via Check', format: 'boolean' },
				{ key: 'check_details', label: 'Check Details', children: checkDetailsFields },
				{ key: 'customer_id', label: 'Customer ID' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
				{ key: 'last_four_digits', label: 'Last Four Digits' },
				{ key: 'gateway_transaction_id', label: 'Gateway Transaction ID' },
				{ key: 'payment_gateway', label: 'Payment Gateway' },
				{
					key: 'bcy_refunded_amount',
					label: 'Refunded Amount (Base Currency)',
					format: 'currency',
				},
				{ key: 'applied_invoices', label: 'Applied Invoices' },
				{ key: 'has_attachment', label: 'Has Attachment', format: 'boolean' },
				{ key: 'documents', label: 'Documents' },
				{ key: 'custom_fields_list', label: 'Custom Fields List' },
				{ key: 'tax_amount_withheld', label: 'Tax Amount Withheld', format: 'currency' },
				{ key: 'payment_type', label: 'Payment Type' },
				{ key: 'payment_status', label: 'Payment Status' },
				{ key: 'settlement_status', label: 'Settlement Status' },
				{ key: 'registration_details', label: 'Registration Details' },
				{ key: 'sales_channel', label: 'Sales Channel' },
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'applied_filter', label: 'Applied Filter' },
				{ key: 'custom_fields', label: 'Custom Fields' },
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoicePaymentRefundOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'payment_refund',
			label: 'Payment Refund',
			children: [
				{ key: 'payment_refund_id', label: 'Payment Refund ID' },
				{ key: 'payment_id', label: 'Payment ID' },
				{ key: 'date', label: 'Date', format: 'date' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'refund_mode', label: 'Refund Mode' },
				{ key: 'reference_number', label: 'Reference Number' },
				{ key: 'amount', label: 'Amount', format: 'currency' },
				{ key: 'exchange_rate', label: 'Exchange Rate', format: 'number' },
				{ key: 'description', label: 'Description' },
				{ key: 'product_description', label: 'Product Description' },
				{ key: 'custom_fields', label: 'Custom Fields' },
				{ key: 'rounding_mode', label: 'Rounding Mode' },
				{ key: 'price_precision', label: 'Price Precision', format: 'number' },
			],
		},
	],
};

export const zohoInvoiceListCustomerPaymentRefundsOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'payment_refunds',
			label: 'Payment Refunds',
			listItems: [
				...paymentRefundsFields,
				{ key: 'payment_id', label: 'Payment ID' },
				{ key: 'payment_number', label: 'Payment Number' },
				{ key: 'customer_name', label: 'Customer Name' },
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoiceGetContactStatementEmailContentOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'data',
			label: 'Data',
			children: [
				{ key: 'to_followers', label: 'To Followers' },
				{ key: 'contact_name', label: 'Contact Name' },
				{ key: 'file_name_without_extension', label: 'File Name Without Extension' },
				{ key: 'from_email', label: 'From Email', format: 'email' },
				{ key: 'bcc_mails', label: 'BCC Mails' },
				{ key: 'subject', label: 'Subject' },
				{ key: 'file_name', label: 'File Name' },
				{ key: 'filter_by', label: 'Filter By' },
				{ key: 'contact_id', label: 'Contact ID' },
				{ key: 'bcc_mails_str', label: 'BCC Mails (Text)' },
				{ key: 'body', label: 'Body' },
				{ key: 'entity_id', label: 'Entity ID' },
				{ key: 'emailtemplate_documents', label: 'Email Template Documents' },
				{ key: 'to_mails_str', label: 'To Mails (Text)', format: 'email' },
				{ key: 'cc_mails_list', label: 'CC Mails List' },
				{ key: 'error_list', label: 'Error List' },
				{
					key: 'translated_languages',
					label: 'Translated Languages',
					listItems: [
						{ key: 'language_code', label: 'Language Code' },
						{ key: 'is_selected', label: 'Is Selected', format: 'boolean' },
					],
				},
				{ key: 'cc_mails_str', label: 'CC Mails (Text)' },
				{
					key: 'from_emails',
					label: 'From Emails',
					labelKey: 'email',
					listItems: fromEmailsFields,
				},
				{
					key: 'to_contacts',
					label: 'To Contacts',
					labelKey: 'email',
					listItems: toContactsFields,
				},
				{
					key: 'emailtemplates',
					label: 'Email Templates',
					labelKey: 'name',
					listItems: emailTemplatesFields,
				},
				{ key: 'from_address', label: 'From Address' },
			],
		},
	],
};

export const zohoInvoiceApplyCreditsToInvoiceOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'use_credits',
			label: 'Use Credits',
			children: [
				{
					key: 'invoice_payments',
					label: 'Invoice Payments',
					listItems: [
						{ key: 'invoice_payment_id', label: 'Invoice Payment ID' },
						{ key: 'payment_id', label: 'Payment ID' },
						{ key: 'invoice_id', label: 'Invoice ID' },
						{ key: 'amount_used', label: 'Amount Used', format: 'currency' },
					],
				},
				{
					key: 'apply_creditnotes',
					label: 'Apply Credit Notes',
					listItems: [
						{ key: 'creditnotes_invoice_id', label: 'Credit Notes Invoice ID' },
						{ key: 'creditnote_id', label: 'Credit Note ID' },
						{ key: 'invoice_id', label: 'Invoice ID' },
						{ key: 'amount_applied', label: 'Amount Applied', format: 'currency' },
						{ key: 'date', label: 'Date', format: 'date' },
					],
				},
				{ key: 'apply_journals', label: 'Apply Journals' },
			],
		},
	],
};

export const zohoInvoiceAddInvoiceAttachmentOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'documents',
			label: 'Documents',
			listItems: [
				{ key: 'document_id', label: 'Document ID' },
				{ key: 'file_name', label: 'File Name' },
				{ key: 'file_type', label: 'File Type' },
				{ key: 'file_size', label: 'File Size', format: 'number' },
			],
		},
	],
};

export const zohoInvoiceGetInvoiceAttachmentOutputSchema: OutputSchema = {
	fields: [
		{ key: 'file', label: 'File', format: 'url' },
		{ key: 'fileName', label: 'File Name' },
	],
};

export const zohoInvoiceBillingAddressOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'billing_address',
			label: 'Billing Address',
			children: [
				...billingAddressFields,
				{ key: 'zip', label: 'Zip' },
				{ key: 'is_one_off_address', label: 'Is One Off Address', format: 'boolean' },
				{ key: 'is_update_customer', label: 'Is Update Customer' },
			],
		},
	],
};

export const zohoInvoiceCommentOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'comment',
			label: 'Comment',
			children: [
				...commentFields,
				{ key: 'invoice_id', label: 'Invoice ID' },
				{ key: 'date_description', label: 'Date Description' },
				{ key: 'time', label: 'Time' },
			],
		},
	],
};

export const zohoInvoiceListInvoiceCommentsOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'comments',
			label: 'Comments',
			listItems: [
				...commentsFields,
				{ key: 'invoice_id', label: 'Invoice ID' },
				{ key: 'comment_type', label: 'Comment Type' },
				{ key: 'operation_type', label: 'Operation Type' },
				{ key: 'transaction_id', label: 'Transaction ID' },
				{ key: 'transaction_type', label: 'Transaction Type' },
			],
		},
	],
};

export const zohoInvoiceListInvoiceCreditsAppliedOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'credits',
			label: 'Credits',
			listItems: [
				{ key: 'creditnote_id', label: 'Credit Note ID' },
				{ key: 'creditnotes_invoice_id', label: 'Credit Notes Invoice ID' },
				{ key: 'creditnotes_number', label: 'Credit Notes Number' },
				{ key: 'credited_date', label: 'Credited Date', format: 'date' },
				{ key: 'amount_applied', label: 'Amount Applied', format: 'currency' },
			],
		},
	],
};

export const zohoInvoiceGetInvoiceEmailContentOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'data',
			label: 'Data',
			children: [
				{ key: 'to_followers', label: 'To Followers' },
				{ key: 'file_name_without_extension', label: 'File Name Without Extension' },
				{ key: 'from_email', label: 'From Email', format: 'email' },
				{ key: 'documents', label: 'Documents' },
				{ key: 'bcc_mails', label: 'BCC Mails' },
				{ key: 'subject', label: 'Subject' },
				{ key: 'attachment_name', label: 'Attachment Name' },
				{ key: 'attach_pdf', label: 'Attach PDF', format: 'boolean' },
				{ key: 'to_salesperson', label: 'To Salesperson' },
				{ key: 'body', label: 'Body' },
				{ key: 'to_mails_str', label: 'To Mails (Text)' },
				{
					key: 'translated_languages',
					label: 'Translated Languages',
					listItems: [
						{ key: 'language_code', label: 'Language Code' },
						{ key: 'is_selected', label: 'Is Selected', format: 'boolean' },
					],
				},
				{ key: 'gateways_configured', label: 'Gateways Configured', format: 'boolean' },
				{
					key: 'from_emails',
					label: 'From Emails',
					labelKey: 'email',
					listItems: fromEmailsFields,
				},
				{
					key: 'to_contacts',
					label: 'To Contacts',
					labelKey: 'email',
					listItems: toContactsFields,
				},
				{
					key: 'emailtemplates',
					label: 'Email Templates',
					labelKey: 'name',
					listItems: emailTemplatesFields,
				},
				{ key: 'from_address', label: 'From Address' },
				{ key: 'customer_sub_type', label: 'Customer Sub Type' },
				{ key: 'file_name', label: 'File Name' },
				{ key: 'bcc_mails_str', label: 'BCC Mails (Text)' },
				{ key: 'entity_id', label: 'Entity ID' },
				{ key: 'emailtemplate_documents', label: 'Email Template Documents' },
				{ key: 'entity_type', label: 'Entity Type' },
				{
					key: 'cc_mails_list',
					label: 'CC Mails List',
					labelKey: 'email',
					listItems: [
						{ key: 'user_name', label: 'User Name' },
						{ key: 'email', label: 'Email', format: 'email' },
					],
				},
				{ key: 'error_list', label: 'Error List' },
				{ key: 'cc_mails_str', label: 'CC Mails (Text)', format: 'email' },
				{ key: 'gateways_associated', label: 'Gateways Associated', format: 'boolean' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'customer_id', label: 'Customer ID' },
				{ key: 'status', label: 'Status' },
			],
		},
	],
};

export const zohoInvoiceEmailInvoiceOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{ key: 'is_first_email', label: 'Is First Email', format: 'boolean' },
	],
};

export const zohoInvoiceInvoiceOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'invoice',
			label: 'Invoice',
			children: [
				{ key: 'invoice_id', label: 'Invoice ID' },
				{ key: 'channel_invoice_id', label: 'Channel Invoice ID' },
				{ key: 'account_identifier', label: 'Account Identifier' },
				{ key: 'invoice_number', label: 'Invoice Number' },
				{ key: 'date', label: 'Date', format: 'date' },
				{ key: 'due_date', label: 'Due Date', format: 'date' },
				{ key: 'issued_date', label: 'Issued Date', format: 'date' },
				{ key: 'customer_id', label: 'Customer ID' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'customer_custom_fields', label: 'Customer Custom Fields' },
				{ key: 'email', label: 'Email', format: 'email' },
				{ key: 'currency_id', label: 'Currency ID' },
				{
					key: 'currency_formatter',
					label: 'Currency Formatter',
					children: [
						{ key: 'decimal_separator', label: 'Decimal Separator' },
						{ key: 'number_separator', label: 'Number Separator' },
						{ key: 'secondary_grouping_size', label: 'Secondary Grouping Size', format: 'number' },
					],
				},
				{ key: 'invoice_source', label: 'Invoice Source' },
				{ key: 'currency_code', label: 'Currency Code' },
				{ key: 'currency_symbol', label: 'Currency Symbol' },
				{ key: 'status', label: 'Status' },
				{
					key: 'unprocessed_payment_amount',
					label: 'Unprocessed Payment Amount',
					format: 'currency',
				},
				{ key: 'custom_fields', label: 'Custom Fields' },
				{ key: 'recurring_invoice_id', label: 'Recurring Invoice ID' },
				{ key: 'is_last_child_invoice', label: 'Is Last Child Invoice', format: 'boolean' },
				{ key: 'payment_terms', label: 'Payment Terms', format: 'number' },
				{ key: 'payment_terms_label', label: 'Payment Terms Label' },
				{ key: 'payment_terms_id', label: 'Payment Terms ID' },
				{ key: 'invoice_installments', label: 'Invoice Installments' },
				{ key: 'payment_reminder_enabled', label: 'Payment Reminder Enabled', format: 'boolean' },
				{ key: 'payment_made', label: 'Payment Made', format: 'currency' },
				{ key: 'zcrm_potential_id', label: 'Zoho CRM Potential ID' },
				{ key: 'zcrm_potential_name', label: 'Zoho CRM Potential Name' },
				{ key: 'reference_number', label: 'Reference Number' },
				{ key: 'discount_code', label: 'Discount Code' },
				{ key: 'is_kit_partial_return', label: 'Is Kit Partial Return', format: 'boolean' },
				{
					key: 'line_items',
					label: 'Line Items',
					labelKey: 'name',
					listItems: [
						...lineItemsFields,
						{ key: 'item_id', label: 'Item ID' },
						{ key: 'name', label: 'Name' },
						{ key: 'internal_name', label: 'Internal Name' },
						{ key: 'discount_account_id', label: 'Discount Account ID' },
						{ key: 'discount_account_name', label: 'Discount Account Name' },
						{ key: 'unit', label: 'Unit' },
						{ key: 'quantity', label: 'Quantity', format: 'number' },
						{ key: 'discount_amount', label: 'Discount Amount', format: 'number' },
						{ key: 'discount', label: 'Discount', format: 'number' },
						{ key: 'discounts', label: 'Discounts' },
						{ key: 'bcy_rate', label: 'Rate (Base Currency)', format: 'currency' },
						{ key: 'rate', label: 'Rate', format: 'currency' },
						{ key: 'header_id', label: 'Header ID' },
						{ key: 'header_name', label: 'Header Name' },
						{ key: 'pricebook_id', label: 'Price List ID' },
						{ key: 'item_custom_fields', label: 'Item Custom Fields' },
						{ key: 'pricing_scheme', label: 'Pricing Scheme' },
						{ key: 'documents', label: 'Documents' },
						{ key: 'tds_tax_id', label: 'TDS Tax ID' },
						{ key: 'tds_tax_name', label: 'TDS Tax Name' },
						{ key: 'tds_tax_percentage', label: 'TDS Tax Percentage' },
						{ key: 'tds_tax_amount', label: 'TDS Tax Amount', format: 'currency' },
						{ key: 'line_item_tds', label: 'Line Item TDS' },
						{ key: 'stock_on_hand', label: 'Stock On Hand' },
						{ key: 'available_stock', label: 'Available Stock' },
						{ key: 'committed_stock', label: 'Committed Stock' },
						{ key: 'available_for_sale_stock', label: 'Available For Sale Stock' },
						{ key: 'project_id', label: 'Project ID' },
						{ key: 'time_entry_ids', label: 'Time Entry IDs' },
						{ key: 'expense_id', label: 'Expense ID' },
						{ key: 'item_type', label: 'Item Type' },
						{ key: 'expense_receipt_name', label: 'Expense Receipt Name' },
						{ key: 'sales_rate', label: 'Sales Rate', format: 'currency' },
						{ key: 'purchase_rate', label: 'Purchase Rate' },
						{ key: 'salesorder_item_id', label: 'Sales Order Item ID' },
						{ key: 'cost_amount', label: 'Cost Amount', format: 'currency' },
						{ key: 'markup_percent', label: 'Markup Percent', format: 'number' },
						{ key: 'item_code', label: 'Item Code' },
						{ key: 'mapped_items', label: 'Mapped Items' },
						{ key: 'is_modifier_item', label: 'Is Modifier Item', format: 'boolean' },
						{ key: 'line_item_category', label: 'Line Item Category' },
					],
				},
				{ key: 'total_retention_amount', label: 'Total Retention Amount', format: 'currency' },
				{ key: 'retention_items', label: 'Retention Items' },
				{ key: 'retention_override_preference', label: 'Retention Override Preference' },
				{ key: 'credits_associated', label: 'Credits Associated' },
				{ key: 'exchange_rate', label: 'Exchange Rate', format: 'number' },
				{ key: 'is_autobill_enabled', label: 'Is Autobill Enabled', format: 'boolean' },
				{
					key: 'inprocess_transaction_present',
					label: 'Inprocess Transaction Present',
					format: 'boolean',
				},
				{ key: 'allow_partial_payments', label: 'Allow Partial Payments', format: 'boolean' },
				{ key: 'price_precision', label: 'Price Precision', format: 'number' },
				{ key: 'sub_total', label: 'Sub Total', format: 'currency' },
				{ key: 'tax_total', label: 'Tax Total', format: 'currency' },
				{ key: 'total_taxable_amount', label: 'Total Taxable Amount', format: 'currency' },
				{ key: 'discount_total', label: 'Discount Total', format: 'number' },
				{ key: 'discount_percent', label: 'Discount Percent', format: 'number' },
				{ key: 'discount', label: 'Discount', format: 'number' },
				{
					key: 'discount_applied_on_amount',
					label: 'Discount Applied On Amount',
					format: 'number',
				},
				{ key: 'discount_type', label: 'Discount Type' },
				{ key: 'tds_override_preference', label: 'TDS Override Preference' },
				{ key: 'is_discount_before_tax', label: 'Is Discount Before Tax', format: 'boolean' },
				{ key: 'adjustment', label: 'Adjustment', format: 'currency' },
				{ key: 'adjustment_description', label: 'Adjustment Description' },
				{ key: 'shipping_charge_tax_id', label: 'Shipping Charge Tax ID' },
				{ key: 'shipping_charge_tax_name', label: 'Shipping Charge Tax Name' },
				{ key: 'shipping_charge_tax_type', label: 'Shipping Charge Tax Type' },
				{ key: 'shipping_charge_tax_percentage', label: 'Shipping Charge Tax Percentage' },
				{ key: 'shipping_charge_tax_exemption_id', label: 'Shipping Charge Tax Exemption ID' },
				{ key: 'shipping_charge_tax_exemption_code', label: 'Shipping Charge Tax Exemption Code' },
				{ key: 'shipping_charge_tax', label: 'Shipping Charge Tax' },
				{ key: 'bcy_shipping_charge_tax', label: 'Shipping Charge Tax (Base Currency)' },
				{
					key: 'shipping_charge_exclusive_of_tax',
					label: 'Shipping Charge Exclusive Of Tax',
					format: 'currency',
				},
				{
					key: 'shipping_charge_inclusive_of_tax',
					label: 'Shipping Charge Inclusive Of Tax',
					format: 'currency',
				},
				{ key: 'shipping_charge_account_id', label: 'Shipping Charge Account ID' },
				{ key: 'shipping_charge_account_name', label: 'Shipping Charge Account Name' },
				{ key: 'shipping_charge', label: 'Shipping Charge', format: 'currency' },
				{
					key: 'bcy_shipping_charge',
					label: 'Shipping Charge (Base Currency)',
					format: 'currency',
				},
				{ key: 'bcy_adjustment', label: 'Adjustment (Base Currency)', format: 'currency' },
				{ key: 'bcy_sub_total', label: 'Sub Total (Base Currency)', format: 'currency' },
				{ key: 'bcy_discount_total', label: 'Discount Total (Base Currency)', format: 'number' },
				{ key: 'bcy_tax_total', label: 'Tax Total (Base Currency)', format: 'currency' },
				{ key: 'bcy_total', label: 'Total (Base Currency)', format: 'currency' },
				{ key: 'total', label: 'Total', format: 'currency' },
				{ key: 'balance', label: 'Balance', format: 'currency' },
				{ key: 'write_off_amount', label: 'Write Off Amount', format: 'currency' },
				{ key: 'roundoff_value', label: 'Roundoff Value', format: 'number' },
				{ key: 'transaction_rounding_type', label: 'Transaction Rounding Type' },
				{ key: 'rounding_mode', label: 'Rounding Mode' },
				{ key: 'bcy_rounding_mode', label: 'Rounding Mode (Base Currency)' },
				{ key: 'is_inclusive_tax', label: 'Is Inclusive Tax', format: 'boolean' },
				{
					key: 'sub_total_inclusive_of_tax',
					label: 'Sub Total Inclusive Of Tax',
					format: 'currency',
				},
				{ key: 'contact_category', label: 'Contact Category' },
				{ key: 'tax_rounding', label: 'Tax Rounding' },
				{ key: 'taxes', label: 'Taxes' },
				{ key: 'shipping_charge_taxes', label: 'Shipping Charge Taxes' },
				{ key: 'exceptions', label: 'Exceptions' },
				{ key: 'tds_calculation_type', label: 'TDS Calculation Type' },
				{ key: 'payment_expected_date', label: 'Payment Expected Date', format: 'date' },
				{ key: 'payment_discount', label: 'Payment Discount', format: 'number' },
				{
					key: 'stop_reminder_until_payment_expected_date',
					label: 'Stop Reminder Until Payment Expected Date',
					format: 'boolean',
				},
				{ key: 'last_payment_date', label: 'Last Payment Date', format: 'date' },
				{ key: 'ach_supported', label: 'ACH Supported', format: 'boolean' },
				{ key: 'ach_payment_initiated', label: 'ACH Payment Initiated', format: 'boolean' },
				{
					key: 'payment_options',
					label: 'Payment Options',
					children: [{ key: 'payment_gateways', label: 'Payment Gateways' }],
				},
				{
					key: 'reader_offline_payment_initiated',
					label: 'Reader Offline Payment Initiated',
					format: 'boolean',
				},
				{ key: 'contact_persons', label: 'Contact Persons' },
				{ key: 'contact_persons_associated', label: 'Contact Persons Associated' },
				{ key: 'attachment_name', label: 'Attachment Name' },
				{ key: 'documents', label: 'Documents' },
				{ key: 'computation_type', label: 'Computation Type' },
				{ key: 'tds_summary', label: 'TDS Summary' },
				{
					key: 'late_fee',
					label: 'Late Fee',
					children: [...lateFeeFields, { key: 'amount', label: 'Amount', format: 'currency' }],
				},
				{ key: 'debit_notes', label: 'Debit Notes' },
				{ key: 'in_process_payments', label: 'In Process Payments' },
				{ key: 'deliverychallans', label: 'Delivery Challans' },
				{ key: 'ewaybills', label: 'E-Way Bills' },
				{ key: 'dispatch_from_address', label: 'Dispatch From Address' },
				{ key: 'is_eway_bill_required', label: 'Is Eway Bill Required', format: 'boolean' },
				{ key: 'merchant_id', label: 'Merchant ID' },
				{ key: 'merchant_name', label: 'Merchant Name' },
				{ key: 'ecomm_operator_id', label: 'Ecomm Operator ID' },
				{ key: 'ecomm_operator_name', label: 'Ecomm Operator Name' },
				{ key: 'salesorder_id', label: 'Sales Order ID' },
				{ key: 'salesorder_number', label: 'Sales Order Number' },
				{ key: 'salesorders', label: 'Sales Orders' },
				{ key: 'packages', label: 'Packages' },
				{ key: 'shipping_bills', label: 'Shipping Bills' },
				{
					key: 'contact_persons_details',
					label: 'Contact Persons Details',
					labelKey: 'email',
					listItems: [
						...contactPersonsDetailsFields,
						{
							key: 'communication_preference',
							label: 'Communication Preference',
							children: [{ key: 'is_email_enabled', label: 'Is Email Enabled', format: 'boolean' }],
						},
					],
				},
				{
					key: 'contact',
					label: 'Contact',
					children: [
						{ key: 'customer_balance', label: 'Customer Balance', format: 'currency' },
						{ key: 'credit_limit', label: 'Credit Limit', format: 'currency' },
						{
							key: 'unused_customer_credits',
							label: 'Unused Customer Credits',
							format: 'currency',
						},
						{
							key: 'is_credit_limit_migration_completed',
							label: 'Is Credit Limit Migration Completed',
							format: 'boolean',
						},
					],
				},
				{ key: 'salesperson_id', label: 'Salesperson ID' },
				{ key: 'salesperson_name', label: 'Salesperson Name' },
				{ key: 'is_emailed', label: 'Is Emailed', format: 'boolean' },
				{ key: 'reminders_sent', label: 'Reminders Sent', format: 'number' },
				{ key: 'last_reminder_sent_date', label: 'Last Reminder Sent Date', format: 'date' },
				{ key: 'is_viewed_by_client', label: 'Is Viewed By Client', format: 'boolean' },
				{ key: 'client_viewed_time', label: 'Client Viewed Time', format: 'datetime' },
				{ key: 'submitter_id', label: 'Submitter ID' },
				{ key: 'approver_id', label: 'Approver ID' },
				{ key: 'submitted_date', label: 'Submitted Date', format: 'date' },
				{ key: 'submitted_by', label: 'Submitted By' },
				{ key: 'submitted_by_name', label: 'Submitted By Name' },
				{ key: 'submitted_by_email', label: 'Submitted By Email' },
				{ key: 'template_id', label: 'Template ID' },
				{ key: 'template_name', label: 'Template Name' },
				{ key: 'template_type', label: 'Template Type' },
				{ key: 'notes', label: 'Notes' },
				{ key: 'terms', label: 'Terms' },
				{
					key: 'billing_address',
					label: 'Billing Address',
					children: [
						...billingAddressFields,
						{ key: 'street', label: 'Street' },
						{ key: 'zip', label: 'Zip' },
						{ key: 'country_code', label: 'Country Code' },
					],
				},
				{
					key: 'shipping_address',
					label: 'Shipping Address',
					children: [
						...shippingAddressFields,
						{ key: 'street', label: 'Street' },
						{ key: 'zip', label: 'Zip' },
						{ key: 'country_code', label: 'Country Code' },
					],
				},
				{ key: 'invoice_url', label: 'Invoice URL', format: 'url' },
				{ key: 'subject_content', label: 'Subject Content' },
				{ key: 'can_send_in_mail', label: 'Can Send In Mail', format: 'boolean' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
				{ key: 'created_date', label: 'Created Date', format: 'date' },
				{ key: 'created_by_id', label: 'Created By ID' },
				{ key: 'created_by_name', label: 'Created By Name' },
				{ key: 'last_modified_by_id', label: 'Last Modified By ID' },
				{ key: 'is_backorder', label: 'Is Backorder' },
				{ key: 'sales_channel', label: 'Sales Channel' },
				{ key: 'type', label: 'Type' },
				{ key: 'current_sub_status_id', label: 'Current Sub Status ID' },
				{ key: 'current_sub_status', label: 'Current Sub Status' },
				{ key: 'sub_statuses', label: 'Sub Statuses' },
				{ key: 'reason_for_debit_note', label: 'Reason For Debit Note' },
				{ key: 'estimate_id', label: 'Estimate ID' },
				{
					key: 'is_client_review_settings_enabled',
					label: 'Is Client Review Settings Enabled',
					format: 'boolean',
				},
				{ key: 'unused_retainer_payments', label: 'Unused Retainer Payments', format: 'currency' },
				{ key: 'credits_applied', label: 'Credits Applied', format: 'currency' },
				{ key: 'tax_amount_withheld', label: 'Tax Amount Withheld', format: 'currency' },
				{ key: 'schedule_time', label: 'Schedule Time' },
				{ key: 'no_of_copies', label: 'No Of Copies', format: 'number' },
				{
					key: 'customer_default_billing_address',
					label: 'Customer Default Billing Address',
					children: customerDefaultBillingAddressFields,
				},
				{
					key: 'reference_invoice',
					label: 'Reference Invoice',
					children: [{ key: 'reference_invoice_id', label: 'Reference Invoice ID' }],
				},
				{
					key: 'includes_package_tracking_info',
					label: 'Includes Package Tracking Info',
					format: 'boolean',
				},
				{ key: 'approvers_list', label: 'Approvers List' },
				{
					key: 'qr_code',
					label: 'QR Code',
					children: [
						{ key: 'qr_source', label: 'QR Source' },
						{ key: 'is_qr_enabled', label: 'Is QR Enabled', format: 'boolean' },
						{ key: 'qr_value', label: 'QR Value' },
						{ key: 'qr_description', label: 'QR Description' },
					],
				},
				{ key: 'exchange_invoices', label: 'Exchange Invoices' },
				{ key: 'registration_details', label: 'Registration Details' },
			],
		},
	],
};

export const zohoInvoiceListInvoicesOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'invoices',
			label: 'Invoices',
			labelKey: 'email',
			listItems: [
				{ key: 'ach_payment_initiated', label: 'ACH Payment Initiated', format: 'boolean' },
				{ key: 'invoice_id', label: 'Invoice ID' },
				{ key: 'zcrm_potential_id', label: 'Zoho CRM Potential ID' },
				{ key: 'customer_id', label: 'Customer ID' },
				{ key: 'zcrm_potential_name', label: 'Zoho CRM Potential Name' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'company_name', label: 'Company Name' },
				{ key: 'registration_details', label: 'Registration Details' },
				{ key: 'status', label: 'Status' },
				{ key: 'invoice_number', label: 'Invoice Number' },
				{ key: 'reference_number', label: 'Reference Number' },
				{ key: 'date', label: 'Date', format: 'date' },
				{ key: 'due_date', label: 'Due Date', format: 'date' },
				{ key: 'issued_date', label: 'Issued Date', format: 'date' },
				{ key: 'due_days', label: 'Due Days' },
				{ key: 'email', label: 'Email', format: 'email' },
				{ key: 'type', label: 'Type' },
				{ key: 'project_name', label: 'Project Name' },
				{
					key: 'billing_address',
					label: 'Billing Address',
					children: [...billingAddressFields, { key: 'zipcode', label: 'Zipcode' }],
				},
				{
					key: 'shipping_address',
					label: 'Shipping Address',
					children: [...shippingAddressFields, { key: 'zipcode', label: 'Zipcode' }],
				},
				{ key: 'country', label: 'Country' },
				{ key: 'phone', label: 'Phone' },
				{ key: 'created_by', label: 'Created By' },
				{ key: 'total', label: 'Total', format: 'currency' },
				{ key: 'balance', label: 'Balance', format: 'currency' },
				{ key: 'payment_expected_date', label: 'Payment Expected Date', format: 'date' },
				{ key: 'custom_fields', label: 'Custom Fields' },
				{ key: 'salesperson_name', label: 'Salesperson Name' },
				{ key: 'shipping_charge', label: 'Shipping Charge', format: 'currency' },
				{ key: 'adjustment', label: 'Adjustment', format: 'currency' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
				{ key: 'updated_time', label: 'Updated Time', format: 'datetime' },
				{ key: 'is_viewed_by_client', label: 'Is Viewed By Client', format: 'boolean' },
				{ key: 'has_attachment', label: 'Has Attachment', format: 'boolean' },
				{ key: 'client_viewed_time', label: 'Client Viewed Time', format: 'datetime' },
				{ key: 'is_emailed', label: 'Is Emailed', format: 'boolean' },
				{ key: 'current_sub_status_id', label: 'Current Sub Status ID' },
				{ key: 'current_sub_status', label: 'Current Sub Status' },
				{ key: 'currency_id', label: 'Currency ID' },
				{ key: 'schedule_time', label: 'Schedule Time' },
				{ key: 'currency_code', label: 'Currency Code' },
				{ key: 'currency_symbol', label: 'Currency Symbol' },
				{ key: 'template_type', label: 'Template Type' },
				{ key: 'no_of_copies', label: 'No Of Copies', format: 'number' },
				{ key: 'invoice_source', label: 'Invoice Source' },
				{ key: 'sales_channel', label: 'Sales Channel' },
				{ key: 'transaction_type', label: 'Transaction Type' },
				{ key: 'reminders_sent', label: 'Reminders Sent', format: 'number' },
				{ key: 'last_reminder_sent_date', label: 'Last Reminder Sent Date', format: 'date' },
				{ key: 'last_payment_date', label: 'Last Payment Date', format: 'date' },
				{ key: 'template_id', label: 'Template ID' },
				{ key: 'documents', label: 'Documents' },
				{ key: 'salesperson_id', label: 'Salesperson ID' },
				{ key: 'write_off_amount', label: 'Write Off Amount', format: 'currency' },
				{ key: 'exchange_rate', label: 'Exchange Rate', format: 'number' },
				{
					key: 'unprocessed_payment_amount',
					label: 'Unprocessed Payment Amount',
					format: 'currency',
				},
				{ key: 'invoice_url', label: 'Invoice URL', format: 'url' },
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'applied_filter', label: 'Applied Filter' },
				{ key: 'custom_fields', label: 'Custom Fields' },
				{ key: 'seller_app_sales_channels', label: 'Seller App Sales Channels' },
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoiceListInvoicePaymentsOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'payments',
			label: 'Payments',
			listItems: [
				{ key: 'payment_id', label: 'Payment ID' },
				{ key: 'payment_number', label: 'Payment Number' },
				{ key: 'invoice_id', label: 'Invoice ID' },
				{ key: 'invoice_payment_id', label: 'Invoice Payment ID' },
				{ key: 'payment_mode', label: 'Payment Mode' },
				{ key: 'description', label: 'Description' },
				{ key: 'date', label: 'Date', format: 'date' },
				{ key: 'reference_number', label: 'Reference Number' },
				{ key: 'exchange_rate', label: 'Exchange Rate', format: 'number' },
				{ key: 'amount', label: 'Amount', format: 'currency' },
				{ key: 'tax_amount_withheld', label: 'Tax Amount Withheld', format: 'currency' },
				{ key: 'online_transaction_id', label: 'Online Transaction ID' },
				{ key: 'is_single_invoice_payment', label: 'Is Single Invoice Payment', format: 'boolean' },
			],
		},
	],
};

export const zohoInvoiceSendBulkInvoiceReminderOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'info',
			label: 'Info',
			children: [
				{
					key: 'email_errors_info',
					label: 'Email Errors Info',
					listItems: [
						{ key: 'code', label: 'Code', format: 'number' },
						{ key: 'ids', label: 'IDs' },
						{ key: 'message', label: 'Message' },
					],
				},
				{
					key: 'email_success_info',
					label: 'Email Success Info',
					children: [
						{ key: 'message', label: 'Message' },
						{ key: 'sent_count', label: 'Sent Count', format: 'number' },
					],
				},
			],
		},
	],
};

export const zohoInvoiceGetInvoicePaymentReminderContentOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'data',
			label: 'Data',
			children: [
				{ key: 'to_followers', label: 'To Followers' },
				{ key: 'file_name_without_extension', label: 'File Name Without Extension' },
				{ key: 'from_email', label: 'From Email', format: 'email' },
				{ key: 'documents', label: 'Documents' },
				{ key: 'bcc_mails', label: 'BCC Mails' },
				{ key: 'subject', label: 'Subject' },
				{ key: 'attachment_name', label: 'Attachment Name' },
				{ key: 'attach_pdf', label: 'Attach PDF', format: 'boolean' },
				{ key: 'is_reminder_enabled', label: 'Is Reminder Enabled', format: 'boolean' },
				{ key: 'body', label: 'Body' },
				{ key: 'to_mails_str', label: 'To Mails (Text)' },
				{ key: 'translated_languages', label: 'Translated Languages' },
				{ key: 'gateways_configured', label: 'Gateways Configured', format: 'boolean' },
				{
					key: 'from_emails',
					label: 'From Emails',
					labelKey: 'email',
					listItems: fromEmailsFields,
				},
				{
					key: 'to_contacts',
					label: 'To Contacts',
					labelKey: 'email',
					listItems: toContactsFields,
				},
				{ key: 'from_address', label: 'From Address' },
				{ key: 'customer_sub_type', label: 'Customer Sub Type' },
				{ key: 'file_name', label: 'File Name' },
				{ key: 'bcc_mails_str', label: 'BCC Mails (Text)' },
				{ key: 'entity_id', label: 'Entity ID' },
				{ key: 'next_reminder_date', label: 'Next Reminder Date', format: 'date' },
				{ key: 'emailtemplate_documents', label: 'Email Template Documents' },
				{ key: 'cc_mails_list', label: 'CC Mails List' },
				{ key: 'error_list', label: 'Error List' },
				{ key: 'cc_mails_str', label: 'CC Mails (Text)' },
				{ key: 'gateways_associated', label: 'Gateways Associated', format: 'boolean' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'customer_id', label: 'Customer ID' },
			],
		},
	],
};

export const zohoInvoiceSendInvoicePaymentReminderOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'data',
			label: 'Data',
			children: [{ key: 'is_first_email', label: 'Is First Email', format: 'boolean' }],
		},
	],
};

export const zohoInvoiceShippingAddressOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'shipping_address',
			label: 'Shipping Address',
			children: [
				...shippingAddressFields,
				{ key: 'company_name', label: 'Company Name' },
				{ key: 'zip', label: 'Zip' },
				{ key: 'is_one_off_address', label: 'Is One Off Address', format: 'boolean' },
				{ key: 'is_update_customer', label: 'Is Update Customer' },
			],
		},
	],
};

export const newInvoiceOutputSchema: OutputSchema = {
	fields: [
		{ key: 'ach_payment_initiated', label: 'ACH Payment Initiated', format: 'boolean' },
		{ key: 'invoice_id', label: 'Invoice ID' },
		{ key: 'zcrm_potential_id', label: 'Zoho CRM Potential ID' },
		{ key: 'customer_id', label: 'Customer ID' },
		{ key: 'zcrm_potential_name', label: 'Zoho CRM Potential Name' },
		{ key: 'customer_name', label: 'Customer Name' },
		{ key: 'company_name', label: 'Company Name' },
		{ key: 'registration_details', label: 'Registration Details' },
		{ key: 'status', label: 'Status' },
		{ key: 'invoice_number', label: 'Invoice Number' },
		{ key: 'reference_number', label: 'Reference Number' },
		{ key: 'date', label: 'Date', format: 'date' },
		{ key: 'due_date', label: 'Due Date', format: 'date' },
		{ key: 'issued_date', label: 'Issued Date', format: 'date' },
		{ key: 'due_days', label: 'Due Days' },
		{ key: 'email', label: 'Email', format: 'email' },
		{ key: 'type', label: 'Type' },
		{ key: 'project_name', label: 'Project Name' },
		{
			key: 'billing_address',
			label: 'Billing Address',
			children: [...billingAddressFields, { key: 'zipcode', label: 'Zipcode' }],
		},
		{
			key: 'shipping_address',
			label: 'Shipping Address',
			children: [...shippingAddressFields, { key: 'zipcode', label: 'Zipcode' }],
		},
		{ key: 'country', label: 'Country' },
		{ key: 'phone', label: 'Phone' },
		{ key: 'created_by', label: 'Created By' },
		{ key: 'total', label: 'Total', format: 'currency' },
		{ key: 'balance', label: 'Balance', format: 'currency' },
		{ key: 'payment_expected_date', label: 'Payment Expected Date', format: 'date' },
		{ key: 'custom_fields', label: 'Custom Fields' },
		{ key: 'custom_field_hash', label: 'Custom Field Hash' },
		{ key: 'salesperson_name', label: 'Salesperson Name' },
		{ key: 'shipping_charge', label: 'Shipping Charge', format: 'currency' },
		{ key: 'adjustment', label: 'Adjustment', format: 'currency' },
		{ key: 'created_time', label: 'Created Time', format: 'datetime' },
		{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
		{ key: 'updated_time', label: 'Updated Time', format: 'datetime' },
		{ key: 'is_viewed_by_client', label: 'Is Viewed By Client', format: 'boolean' },
		{ key: 'has_attachment', label: 'Has Attachment', format: 'boolean' },
		{ key: 'client_viewed_time', label: 'Client Viewed Time', format: 'datetime' },
		{ key: 'is_emailed', label: 'Is Emailed', format: 'boolean' },
		{ key: 'color_code', label: 'Color Code' },
		{ key: 'current_sub_status_id', label: 'Current Sub Status ID' },
		{ key: 'current_sub_status', label: 'Current Sub Status' },
		{ key: 'currency_id', label: 'Currency ID' },
		{ key: 'schedule_time', label: 'Schedule Time' },
		{ key: 'currency_code', label: 'Currency Code' },
		{ key: 'currency_symbol', label: 'Currency Symbol' },
		{ key: 'is_pre_gst', label: 'Is Pre GST', format: 'boolean' },
		{ key: 'template_type', label: 'Template Type' },
		{ key: 'no_of_copies', label: 'No Of Copies', format: 'number' },
		{ key: 'show_no_of_copies', label: 'Show No Of Copies', format: 'boolean' },
		{ key: 'invoice_source', label: 'Invoice Source' },
		{ key: 'sales_channel', label: 'Sales Channel' },
		{ key: 'transaction_type', label: 'Transaction Type' },
		{ key: 'reminders_sent', label: 'Reminders Sent', format: 'number' },
		{ key: 'last_reminder_sent_date', label: 'Last Reminder Sent Date', format: 'date' },
		{ key: 'last_payment_date', label: 'Last Payment Date', format: 'date' },
		{ key: 'template_id', label: 'Template ID' },
		{ key: 'documents', label: 'Documents' },
		{ key: 'salesperson_id', label: 'Salesperson ID' },
		{ key: 'write_off_amount', label: 'Write Off Amount', format: 'currency' },
		{ key: 'exchange_rate', label: 'Exchange Rate', format: 'number' },
		{ key: 'unprocessed_payment_amount', label: 'Unprocessed Payment Amount', format: 'currency' },
	],
};

export const zohoInvoiceTemplatesOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'templates',
			label: 'Templates',
			listItems: [
				{ key: 'template_name', label: 'Template Name' },
				{ key: 'template_id', label: 'Template ID' },
				{ key: 'template_type', label: 'Template Type' },
			],
		},
	],
};

export const zohoInvoiceCreditNoteOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'creditnote',
			label: 'Credit Note',
			children: [
				...creditNoteFields,
				{ key: 'module_id', label: 'Module ID' },
				{ key: 'sub_module_details', label: 'Sub Module Details' },
				{ key: 'status', label: 'Status' },
				{ key: 'issued_date', label: 'Issued Date', format: 'date' },
				{ key: 'reference_number', label: 'Reference Number' },
				{ key: 'is_emailed', label: 'Is Emailed', format: 'boolean' },
				{ key: 'notes', label: 'Notes' },
				{ key: 'terms', label: 'Terms' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'created_by_id', label: 'Created By ID' },
				{ key: 'last_modified_by_id', label: 'Last Modified By ID' },
				{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
				{ key: 'subject_content', label: 'Subject Content' },
				{ key: 'created_by_name', label: 'Created By Name' },
				{ key: 'invoice_id', label: 'Invoice ID' },
				{ key: 'sales_channel', label: 'Sales Channel' },
				{
					key: 'invoices_credited',
					label: 'Invoices Credited',
					listItems: [
						...invoicesCreditedFields,
						{ key: 'invoice_customer_id', label: 'Invoice Customer ID' },
						{ key: 'invoice_customer_name', label: 'Invoice Customer Name' },
					],
				},
				{ key: 'customer_id', label: 'Customer ID' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'is_viewed_by_client', label: 'Is Viewed By Client', format: 'boolean' },
				{ key: 'client_viewed_time', label: 'Client Viewed Time', format: 'datetime' },
				{ key: 'contact_persons', label: 'Contact Persons' },
				{ key: 'contact_persons_associated', label: 'Contact Persons Associated' },
				{ key: 'salesperson_id', label: 'Salesperson ID' },
				{ key: 'salesperson_name', label: 'Salesperson Name' },
				{ key: 'tds_calculation_type', label: 'TDS Calculation Type' },
				{ key: 'contact_category', label: 'Contact Category' },
				{ key: 'tax_rounding', label: 'Tax Rounding' },
				{ key: 'tds_override_preference', label: 'TDS Override Preference' },
				{ key: 'exceptions', label: 'Exceptions' },
				{ key: 'current_sub_status_id', label: 'Current Sub Status ID' },
				{ key: 'current_sub_status', label: 'Current Sub Status' },
				{ key: 'sub_statuses', label: 'Sub Statuses' },
				{ key: 'template_id', label: 'Template ID' },
				{ key: 'template_type', label: 'Template Type' },
				{ key: 'template_name', label: 'Template Name' },
				{ key: 'currency_id', label: 'Currency ID' },
				{ key: 'currency_code', label: 'Currency Code' },
				{ key: 'currency_symbol', label: 'Currency Symbol' },
				{ key: 'exchange_rate', label: 'Exchange Rate', format: 'number' },
				{ key: 'price_precision', label: 'Price Precision', format: 'number' },
				{ key: 'is_inclusive_tax', label: 'Is Inclusive Tax', format: 'boolean' },
				{ key: 'discount', label: 'Discount', format: 'number' },
				{
					key: 'discount_applied_on_amount',
					label: 'Discount Applied On Amount',
					format: 'number',
				},
				{ key: 'is_discount_before_tax', label: 'Is Discount Before Tax', format: 'boolean' },
				{ key: 'discount_type', label: 'Discount Type' },
				{ key: 'is_eway_bill_required', label: 'Is Eway Bill Required', format: 'boolean' },
				{ key: 'ewaybills', label: 'E-Way Bills' },
				{ key: 'dispatch_from_address', label: 'Dispatch From Address' },
				{
					key: 'line_items',
					label: 'Line Items',
					labelKey: 'name',
					listItems: [
						...lineItemsFields,
						{ key: 'item_id', label: 'Item ID' },
						{ key: 'name', label: 'Name' },
						{ key: 'internal_name', label: 'Internal Name' },
						{ key: 'invoice_id', label: 'Invoice ID' },
						{ key: 'invoice_item_id', label: 'Invoice Item ID' },
						{ key: 'quantity', label: 'Quantity', format: 'number' },
						{ key: 'pricing_scheme', label: 'Pricing Scheme' },
						{ key: 'unit', label: 'Unit' },
						{ key: 'item_custom_fields', label: 'Item Custom Fields' },
						{ key: 'line_item_category', label: 'Line Item Category' },
						{ key: 'project_id', label: 'Project ID' },
						{ key: 'pricebook_id', label: 'Price List ID' },
						{ key: 'discount_amount', label: 'Discount Amount', format: 'number' },
						{ key: 'discount', label: 'Discount', format: 'number' },
						{ key: 'discounts', label: 'Discounts' },
						{ key: 'discount_account_id', label: 'Discount Account ID' },
						{ key: 'discount_account_name', label: 'Discount Account Name' },
						{ key: 'bcy_rate', label: 'Rate (Base Currency)', format: 'currency' },
						{ key: 'rate', label: 'Rate', format: 'currency' },
						{ key: 'sales_margin', label: 'Sales Margin' },
						{ key: 'tds_tax_id', label: 'TDS Tax ID' },
						{ key: 'tds_tax_name', label: 'TDS Tax Name' },
						{ key: 'tds_tax_percentage', label: 'TDS Tax Percentage' },
						{ key: 'tds_tax_amount', label: 'TDS Tax Amount', format: 'currency' },
						{ key: 'line_item_tds', label: 'Line Item TDS' },
						{ key: 'item_type', label: 'Item Type' },
						{ key: 'item_code', label: 'Item Code' },
						{ key: 'is_credit_only_item', label: 'Is Credit Only Item', format: 'boolean' },
						{ key: 'mapped_items', label: 'Mapped Items' },
						{ key: 'is_modifier_item', label: 'Is Modifier Item', format: 'boolean' },
					],
				},
				{ key: 'submitter_id', label: 'Submitter ID' },
				{ key: 'approver_id', label: 'Approver ID' },
				{ key: 'submitted_date', label: 'Submitted Date', format: 'date' },
				{ key: 'submitted_by', label: 'Submitted By' },
				{ key: 'submitted_by_name', label: 'Submitted By Name' },
				{ key: 'submitted_by_email', label: 'Submitted By Email' },
				{ key: 'documents', label: 'Documents' },
				{ key: 'custom_fields', label: 'Custom Fields' },
				{ key: 'shipping_charge_tax_id', label: 'Shipping Charge Tax ID' },
				{ key: 'shipping_charge_tax_name', label: 'Shipping Charge Tax Name' },
				{ key: 'shipping_charge_tax_type', label: 'Shipping Charge Tax Type' },
				{ key: 'shipping_charge_tax_percentage', label: 'Shipping Charge Tax Percentage' },
				{ key: 'shipping_charge_tax_exemption_id', label: 'Shipping Charge Tax Exemption ID' },
				{ key: 'shipping_charge_tax_exemption_code', label: 'Shipping Charge Tax Exemption Code' },
				{ key: 'shipping_charge_tax', label: 'Shipping Charge Tax' },
				{ key: 'bcy_shipping_charge_tax', label: 'Shipping Charge Tax (Base Currency)' },
				{
					key: 'shipping_charge_exclusive_of_tax',
					label: 'Shipping Charge Exclusive Of Tax',
					format: 'currency',
				},
				{
					key: 'shipping_charge_inclusive_of_tax',
					label: 'Shipping Charge Inclusive Of Tax',
					format: 'currency',
				},
				{ key: 'shipping_charge_account_id', label: 'Shipping Charge Account ID' },
				{ key: 'shipping_charge_account_name', label: 'Shipping Charge Account Name' },
				{ key: 'shipping_charge', label: 'Shipping Charge', format: 'currency' },
				{ key: 'shipping_charge_taxes', label: 'Shipping Charge Taxes' },
				{ key: 'adjustment', label: 'Adjustment', format: 'currency' },
				{ key: 'adjustment_description', label: 'Adjustment Description' },
				{ key: 'roundoff_value', label: 'Roundoff Value', format: 'number' },
				{ key: 'transaction_rounding_type', label: 'Transaction Rounding Type' },
				{ key: 'rounding_mode', label: 'Rounding Mode' },
				{ key: 'bcy_rounding_mode', label: 'Rounding Mode (Base Currency)' },
				{ key: 'sub_total', label: 'Sub Total', format: 'currency' },
				{
					key: 'sub_total_inclusive_of_tax',
					label: 'Sub Total Inclusive Of Tax',
					format: 'currency',
				},
				{ key: 'tax_total', label: 'Tax Total', format: 'currency' },
				{ key: 'total', label: 'Total', format: 'currency' },
				{ key: 'total_credits_used', label: 'Total Credits Used', format: 'currency' },
				{ key: 'total_refunded_amount', label: 'Total Refunded Amount', format: 'currency' },
				{ key: 'balance', label: 'Balance', format: 'currency' },
				{ key: 'taxes', label: 'Taxes' },
				{ key: 'computation_type', label: 'Computation Type' },
				{ key: 'tds_summary', label: 'TDS Summary' },
				{ key: 'creditnote_refunds', label: 'Credit Note Refunds' },
				{
					key: 'billing_address',
					label: 'Billing Address',
					children: [...billingAddressFields, { key: 'zip', label: 'Zip' }],
				},
				{
					key: 'shipping_address',
					label: 'Shipping Address',
					children: [...shippingAddressFields, { key: 'zip', label: 'Zip' }],
				},
				{ key: 'approvers_list', label: 'Approvers List' },
				{ key: 'registration_details', label: 'Registration Details' },
			],
		},
	],
};

export const zohoInvoiceCreditNoteRefundsOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'creditnote_refunds',
			label: 'Credit Note Refunds',
			listItems: [
				{ key: 'creditnote_refund_id', label: 'Credit Note Refund ID' },
				{ key: 'creditnote_id', label: 'Credit Note ID' },
				{ key: 'date', label: 'Date', format: 'date' },
				{ key: 'refund_mode', label: 'Refund Mode', format: 'number' },
				{ key: 'reference_number', label: 'Reference Number' },
				{ key: 'creditnote_number', label: 'Credit Note Number' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'description', label: 'Description' },
				{ key: 'amount_bcy', label: 'Amount (Base Currency)', format: 'currency' },
				{ key: 'amount_fcy', label: 'Amount (Foreign Currency)', format: 'currency' },
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoiceApplyCreditNoteToInvoicesOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'apply_to_invoices',
			label: 'Apply To Invoices',
			children: [
				{
					key: 'invoices',
					label: 'Invoices',
					listItems: [
						{ key: 'invoice_id', label: 'Invoice ID' },
						{ key: 'amount_applied', label: 'Amount Applied', format: 'currency' },
						{ key: 'apply_date', label: 'Apply Date', format: 'date' },
					],
				},
			],
		},
	],
};

export const zohoInvoiceAddCreditNoteCommentOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'comment',
			label: 'Comment',
			children: [...commentFields, { key: 'creditnote_id', label: 'Credit Note ID' }],
		},
	],
};

export const zohoInvoiceListCreditNoteCommentsOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'comments',
			label: 'Comments',
			listItems: [
				...commentsFields,
				{ key: 'creditnote_id', label: 'Credit Note ID' },
				{ key: 'comment_type', label: 'Comment Type' },
				{ key: 'operation_type', label: 'Operation Type' },
				{ key: 'transaction_id', label: 'Transaction ID' },
				{ key: 'transaction_type', label: 'Transaction Type' },
			],
		},
	],
};

export const zohoInvoiceGetCreditNoteOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'creditnote',
			label: 'Credit Note',
			children: [
				...creditNoteFields,
				{ key: 'module_id', label: 'Module ID' },
				{ key: 'sub_module_details', label: 'Sub Module Details' },
				{ key: 'status', label: 'Status' },
				{ key: 'issued_date', label: 'Issued Date', format: 'date' },
				{ key: 'reference_number', label: 'Reference Number' },
				{ key: 'is_emailed', label: 'Is Emailed', format: 'boolean' },
				{ key: 'notes', label: 'Notes' },
				{ key: 'terms', label: 'Terms' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'created_by_id', label: 'Created By ID' },
				{ key: 'last_modified_by_id', label: 'Last Modified By ID' },
				{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
				{ key: 'subject_content', label: 'Subject Content' },
				{ key: 'created_by_name', label: 'Created By Name' },
				{ key: 'invoice_id', label: 'Invoice ID' },
				{ key: 'sales_channel', label: 'Sales Channel' },
				{ key: 'invoices_credited', label: 'Invoices Credited' },
				{ key: 'customer_id', label: 'Customer ID' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'is_viewed_by_client', label: 'Is Viewed By Client', format: 'boolean' },
				{ key: 'client_viewed_time', label: 'Client Viewed Time', format: 'datetime' },
				{ key: 'contact_persons', label: 'Contact Persons' },
				{ key: 'contact_persons_associated', label: 'Contact Persons Associated' },
				{ key: 'salesperson_id', label: 'Salesperson ID' },
				{ key: 'salesperson_name', label: 'Salesperson Name' },
				{ key: 'tds_calculation_type', label: 'TDS Calculation Type' },
				{ key: 'contact_category', label: 'Contact Category' },
				{ key: 'tax_rounding', label: 'Tax Rounding' },
				{ key: 'tds_override_preference', label: 'TDS Override Preference' },
				{ key: 'exceptions', label: 'Exceptions' },
				{ key: 'current_sub_status_id', label: 'Current Sub Status ID' },
				{ key: 'current_sub_status', label: 'Current Sub Status' },
				{ key: 'sub_statuses', label: 'Sub Statuses' },
				{ key: 'template_id', label: 'Template ID' },
				{ key: 'template_type', label: 'Template Type' },
				{ key: 'template_name', label: 'Template Name' },
				{ key: 'currency_id', label: 'Currency ID' },
				{ key: 'currency_code', label: 'Currency Code' },
				{ key: 'currency_symbol', label: 'Currency Symbol' },
				{ key: 'exchange_rate', label: 'Exchange Rate', format: 'number' },
				{ key: 'price_precision', label: 'Price Precision', format: 'number' },
				{ key: 'is_inclusive_tax', label: 'Is Inclusive Tax', format: 'boolean' },
				{ key: 'discount', label: 'Discount', format: 'number' },
				{
					key: 'discount_applied_on_amount',
					label: 'Discount Applied On Amount',
					format: 'number',
				},
				{ key: 'is_discount_before_tax', label: 'Is Discount Before Tax', format: 'boolean' },
				{ key: 'discount_type', label: 'Discount Type' },
				{ key: 'is_eway_bill_required', label: 'Is Eway Bill Required', format: 'boolean' },
				{ key: 'ewaybills', label: 'E-Way Bills' },
				{ key: 'dispatch_from_address', label: 'Dispatch From Address' },
				{
					key: 'line_items',
					label: 'Line Items',
					labelKey: 'name',
					listItems: [
						...lineItemsFields,
						{ key: 'item_id', label: 'Item ID' },
						{ key: 'name', label: 'Name' },
						{ key: 'internal_name', label: 'Internal Name' },
						{ key: 'invoice_id', label: 'Invoice ID' },
						{ key: 'invoice_item_id', label: 'Invoice Item ID' },
						{ key: 'quantity', label: 'Quantity', format: 'number' },
						{ key: 'pricing_scheme', label: 'Pricing Scheme' },
						{ key: 'unit', label: 'Unit' },
						{ key: 'item_custom_fields', label: 'Item Custom Fields' },
						{ key: 'line_item_category', label: 'Line Item Category' },
						{ key: 'project_id', label: 'Project ID' },
						{ key: 'pricebook_id', label: 'Price List ID' },
						{ key: 'discount_amount', label: 'Discount Amount', format: 'number' },
						{ key: 'discount', label: 'Discount', format: 'number' },
						{ key: 'discounts', label: 'Discounts' },
						{ key: 'discount_account_id', label: 'Discount Account ID' },
						{ key: 'discount_account_name', label: 'Discount Account Name' },
						{ key: 'bcy_rate', label: 'Rate (Base Currency)', format: 'currency' },
						{ key: 'rate', label: 'Rate', format: 'currency' },
						{ key: 'sales_margin', label: 'Sales Margin' },
						{ key: 'tds_tax_id', label: 'TDS Tax ID' },
						{ key: 'tds_tax_name', label: 'TDS Tax Name' },
						{ key: 'tds_tax_percentage', label: 'TDS Tax Percentage' },
						{ key: 'tds_tax_amount', label: 'TDS Tax Amount', format: 'currency' },
						{ key: 'line_item_tds', label: 'Line Item TDS' },
						{ key: 'item_type', label: 'Item Type' },
						{ key: 'item_code', label: 'Item Code' },
						{ key: 'is_credit_only_item', label: 'Is Credit Only Item', format: 'boolean' },
						{ key: 'mapped_items', label: 'Mapped Items' },
						{ key: 'is_modifier_item', label: 'Is Modifier Item', format: 'boolean' },
					],
				},
				{ key: 'submitter_id', label: 'Submitter ID' },
				{ key: 'approver_id', label: 'Approver ID' },
				{ key: 'submitted_date', label: 'Submitted Date', format: 'date' },
				{ key: 'submitted_by', label: 'Submitted By' },
				{ key: 'submitted_by_name', label: 'Submitted By Name' },
				{ key: 'submitted_by_email', label: 'Submitted By Email' },
				{ key: 'documents', label: 'Documents' },
				{ key: 'custom_fields', label: 'Custom Fields' },
				{ key: 'shipping_charge_tax_id', label: 'Shipping Charge Tax ID' },
				{ key: 'shipping_charge_tax_name', label: 'Shipping Charge Tax Name' },
				{ key: 'shipping_charge_tax_type', label: 'Shipping Charge Tax Type' },
				{ key: 'shipping_charge_tax_percentage', label: 'Shipping Charge Tax Percentage' },
				{ key: 'shipping_charge_tax_exemption_id', label: 'Shipping Charge Tax Exemption ID' },
				{ key: 'shipping_charge_tax_exemption_code', label: 'Shipping Charge Tax Exemption Code' },
				{ key: 'shipping_charge_tax', label: 'Shipping Charge Tax' },
				{ key: 'bcy_shipping_charge_tax', label: 'Shipping Charge Tax (Base Currency)' },
				{
					key: 'shipping_charge_exclusive_of_tax',
					label: 'Shipping Charge Exclusive Of Tax',
					format: 'currency',
				},
				{
					key: 'shipping_charge_inclusive_of_tax',
					label: 'Shipping Charge Inclusive Of Tax',
					format: 'currency',
				},
				{ key: 'shipping_charge_account_id', label: 'Shipping Charge Account ID' },
				{ key: 'shipping_charge_account_name', label: 'Shipping Charge Account Name' },
				{ key: 'shipping_charge', label: 'Shipping Charge', format: 'currency' },
				{ key: 'shipping_charge_taxes', label: 'Shipping Charge Taxes' },
				{ key: 'adjustment', label: 'Adjustment', format: 'currency' },
				{ key: 'adjustment_description', label: 'Adjustment Description' },
				{ key: 'roundoff_value', label: 'Roundoff Value', format: 'number' },
				{ key: 'transaction_rounding_type', label: 'Transaction Rounding Type' },
				{ key: 'rounding_mode', label: 'Rounding Mode' },
				{ key: 'bcy_rounding_mode', label: 'Rounding Mode (Base Currency)' },
				{ key: 'sub_total', label: 'Sub Total', format: 'currency' },
				{
					key: 'sub_total_inclusive_of_tax',
					label: 'Sub Total Inclusive Of Tax',
					format: 'currency',
				},
				{ key: 'tax_total', label: 'Tax Total', format: 'currency' },
				{ key: 'total', label: 'Total', format: 'currency' },
				{ key: 'total_credits_used', label: 'Total Credits Used', format: 'currency' },
				{ key: 'total_refunded_amount', label: 'Total Refunded Amount', format: 'currency' },
				{ key: 'balance', label: 'Balance', format: 'currency' },
				{ key: 'taxes', label: 'Taxes' },
				{ key: 'computation_type', label: 'Computation Type' },
				{ key: 'tds_summary', label: 'TDS Summary' },
				{ key: 'creditnote_refunds', label: 'Credit Note Refunds' },
				{
					key: 'billing_address',
					label: 'Billing Address',
					children: [...billingAddressFields, { key: 'zip', label: 'Zip' }],
				},
				{
					key: 'shipping_address',
					label: 'Shipping Address',
					children: [...shippingAddressFields, { key: 'zip', label: 'Zip' }],
				},
				{ key: 'approvers_list', label: 'Approvers List' },
				{ key: 'registration_details', label: 'Registration Details' },
			],
		},
	],
};

export const zohoInvoiceListCreditNoteInvoicesOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'invoices_credited',
			label: 'Invoices Credited',
			listItems: [
				...invoicesCreditedFields,
				{ key: 'creditnote_id', label: 'Credit Note ID' },
				{ key: 'creditnote_number', label: 'Credit Note Number' },
			],
		},
	],
};

export const zohoInvoiceListCreditNotesOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'creditnotes',
			label: 'Credit Notes',
			listItems: [
				{ key: 'creditnote_id', label: 'Credit Note ID' },
				{ key: 'creditnote_number', label: 'Credit Note Number' },
				{ key: 'status', label: 'Status' },
				{ key: 'reference_number', label: 'Reference Number' },
				{ key: 'date', label: 'Date', format: 'date' },
				{ key: 'issued_date', label: 'Issued Date', format: 'date' },
				{ key: 'total', label: 'Total', format: 'currency' },
				{ key: 'balance', label: 'Balance', format: 'currency' },
				{ key: 'customer_id', label: 'Customer ID' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'applied_invoices', label: 'Applied Invoices' },
				{ key: 'is_emailed', label: 'Is Emailed', format: 'boolean' },
				{ key: 'has_attachment', label: 'Has Attachment', format: 'boolean' },
				{ key: 'salesperson_name', label: 'Salesperson Name' },
				{ key: 'salesperson_id', label: 'Salesperson ID' },
				{ key: 'sales_channel', label: 'Sales Channel' },
				{ key: 'is_viewed_by_client', label: 'Is Viewed By Client', format: 'boolean' },
				{ key: 'client_viewed_time', label: 'Client Viewed Time', format: 'datetime' },
				{ key: 'current_sub_status_id', label: 'Current Sub Status ID' },
				{ key: 'current_sub_status', label: 'Current Sub Status' },
				{ key: 'currency_id', label: 'Currency ID' },
				{ key: 'currency_code', label: 'Currency Code' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
				{ key: 'exchange_rate', label: 'Exchange Rate', format: 'number' },
				{ key: 'template_id', label: 'Template ID' },
				{ key: 'template_type', label: 'Template Type' },
				{ key: 'rounding_mode', label: 'Rounding Mode' },
				{ key: 'price_precision', label: 'Price Precision', format: 'number' },
				{ key: 'registration_details', label: 'Registration Details' },
				{ key: 'item_quantity', label: 'Item Quantity', format: 'number' },
				{ key: 'item_price', label: 'Item Price', format: 'currency' },
				{ key: 'item_total_price', label: 'Item Total Price', format: 'currency' },
				{ key: 'item_total', label: 'Item Total', format: 'currency' },
				{ key: 'item_total_without_tax', label: 'Item Total Without Tax', format: 'currency' },
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'applied_filter', label: 'Applied Filter' },
				{ key: 'custom_fields', label: 'Custom Fields' },
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoiceGetCreditNoteEmailHistoryOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'email_history',
			label: 'Email History',
			labelKey: 'subject',
			listItems: [
				{ key: 'mailhistory_id', label: 'Mail History ID' },
				{ key: 'from', label: 'From', format: 'email' },
				{ key: 'to_mail_ids', label: 'To Mail IDs', format: 'email' },
				{ key: 'subject', label: 'Subject' },
				{ key: 'date', label: 'Date', format: 'date' },
				{ key: 'type', label: 'Type', format: 'number' },
			],
		},
	],
};

export const zohoInvoiceCreditNoteRefundOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'creditnote_refund',
			label: 'Credit Note Refund',
			children: [
				{ key: 'creditnote_refund_id', label: 'Credit Note Refund ID' },
				{ key: 'creditnote_id', label: 'Credit Note ID' },
				{ key: 'date', label: 'Date', format: 'date' },
				{ key: 'refund_mode', label: 'Refund Mode' },
				{ key: 'reference_number', label: 'Reference Number' },
				{ key: 'amount', label: 'Amount', format: 'currency' },
				{ key: 'exchange_rate', label: 'Exchange Rate', format: 'number' },
				{ key: 'description', label: 'Description' },
				{ key: 'status', label: 'Status' },
				{ key: 'customer_id', label: 'Customer ID' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'email', label: 'Email' },
				{ key: 'price_precision', label: 'Price Precision', format: 'number' },
				{ key: 'currency_code', label: 'Currency Code' },
				{ key: 'currency_symbol', label: 'Currency Symbol' },
				{ key: 'created_by_id', label: 'Created By ID' },
				{ key: 'last_modified_by_id', label: 'Last Modified By ID' },
				{ key: 'created_date', label: 'Created Date', format: 'number' },
				{
					key: 'creditnote',
					label: 'Credit Note',
					children: [
						...creditNoteFields,
						{ key: 'amount', label: 'Amount', format: 'currency' },
						{ key: 'refund_amount', label: 'Refund Amount', format: 'currency' },
						{ key: 'balance_amount', label: 'Balance Amount', format: 'currency' },
					],
				},
				{ key: 'rounding_mode', label: 'Rounding Mode' },
			],
		},
	],
};

export const zohoInvoiceEstimateOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'estimate',
			label: 'Estimate',
			children: [
				{ key: 'estimate_id', label: 'Estimate ID' },
				{ key: 'estimate_number', label: 'Estimate Number' },
				{ key: 'zcrm_potential_id', label: 'Zoho CRM Potential ID' },
				{ key: 'zcrm_potential_name', label: 'Zoho CRM Potential Name' },
				{ key: 'date', label: 'Date', format: 'date' },
				{ key: 'created_date', label: 'Created Date', format: 'date' },
				{ key: 'invoice_conversion_type', label: 'Invoice Conversion Type' },
				{ key: 'reference_number', label: 'Reference Number' },
				{ key: 'status', label: 'Status' },
				{ key: 'current_sub_status_id', label: 'Current Sub Status ID' },
				{ key: 'current_sub_status', label: 'Current Sub Status' },
				{ key: 'sub_statuses', label: 'Sub Statuses' },
				{ key: 'customer_id', label: 'Customer ID' },
				{ key: 'documents', label: 'Documents' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'is_transaction_created', label: 'Is Transaction Created', format: 'boolean' },
				{ key: 'is_converted_to_open', label: 'Is Converted To Open', format: 'boolean' },
				{ key: 'contact_category', label: 'Contact Category' },
				{ key: 'exceptions', label: 'Exceptions' },
				{ key: 'contact_persons', label: 'Contact Persons' },
				{ key: 'currency_id', label: 'Currency ID' },
				{ key: 'currency_code', label: 'Currency Code' },
				{ key: 'currency_symbol', label: 'Currency Symbol' },
				{ key: 'exchange_rate', label: 'Exchange Rate', format: 'number' },
				{ key: 'expiry_date', label: 'Expiry Date', format: 'date' },
				{ key: 'discount', label: 'Discount', format: 'number' },
				{
					key: 'discount_applied_on_amount',
					label: 'Discount Applied On Amount',
					format: 'number',
				},
				{ key: 'is_discount_before_tax', label: 'Is Discount Before Tax', format: 'boolean' },
				{ key: 'discount_type', label: 'Discount Type' },
				{ key: 'is_viewed_by_client', label: 'Is Viewed By Client', format: 'boolean' },
				{ key: 'client_viewed_time', label: 'Client Viewed Time', format: 'datetime' },
				{ key: 'is_inclusive_tax', label: 'Is Inclusive Tax', format: 'boolean' },
				{ key: 'tax_rounding', label: 'Tax Rounding' },
				{ key: 'tds_calculation_type', label: 'TDS Calculation Type' },
				{ key: 'estimate_url', label: 'Estimate URL', format: 'url' },
				{ key: 'cart_id', label: 'Cart ID' },
				{ key: 'journey_plan_id', label: 'Journey Plan ID' },
				{
					key: 'line_items',
					label: 'Line Items',
					labelKey: 'name',
					listItems: [
						...lineItemsFields,
						{ key: 'item_id', label: 'Item ID' },
						{ key: 'documents', label: 'Documents' },
						{ key: 'name', label: 'Name' },
						{ key: 'internal_name', label: 'Internal Name' },
						{ key: 'header_id', label: 'Header ID' },
						{ key: 'header_name', label: 'Header Name' },
						{ key: 'bcy_rate', label: 'Rate (Base Currency)', format: 'currency' },
						{ key: 'rate', label: 'Rate', format: 'currency' },
						{ key: 'quantity', label: 'Quantity', format: 'number' },
						{ key: 'unit', label: 'Unit' },
						{ key: 'pricing_scheme', label: 'Pricing Scheme' },
						{ key: 'pricebook_id', label: 'Price List ID' },
						{ key: 'line_item_category', label: 'Line Item Category' },
						{ key: 'discount_amount', label: 'Discount Amount', format: 'number' },
						{ key: 'discount', label: 'Discount', format: 'number' },
						{ key: 'discounts', label: 'Discounts' },
						{ key: 'line_item_tds', label: 'Line Item TDS' },
						{ key: 'combo_type', label: 'Combo Type' },
						{ key: 'item_code', label: 'Item Code' },
						{ key: 'is_modifier_item', label: 'Is Modifier Item', format: 'boolean' },
						{ key: 'tds_tax_id', label: 'TDS Tax ID' },
						{ key: 'tds_tax_name', label: 'TDS Tax Name' },
						{ key: 'tds_tax_percentage', label: 'TDS Tax Percentage' },
						{ key: 'tds_tax_amount', label: 'TDS Tax Amount', format: 'currency' },
						{ key: 'item_custom_fields', label: 'Item Custom Fields' },
						{ key: 'mapped_items', label: 'Mapped Items' },
					],
				},
				{ key: 'submitter_id', label: 'Submitter ID' },
				{ key: 'submitted_date', label: 'Submitted Date', format: 'date' },
				{ key: 'submitted_by', label: 'Submitted By' },
				{ key: 'submitted_by_name', label: 'Submitted By Name' },
				{ key: 'submitted_by_email', label: 'Submitted By Email' },
				{ key: 'approver_id', label: 'Approver ID' },
				{ key: 'shipping_charge_tax_id', label: 'Shipping Charge Tax ID' },
				{ key: 'shipping_charge_tax_name', label: 'Shipping Charge Tax Name' },
				{ key: 'shipping_charge_tax_type', label: 'Shipping Charge Tax Type' },
				{ key: 'shipping_charge_tax_percentage', label: 'Shipping Charge Tax Percentage' },
				{ key: 'shipping_charge_tax_exemption_id', label: 'Shipping Charge Tax Exemption ID' },
				{ key: 'shipping_charge_tax_exemption_code', label: 'Shipping Charge Tax Exemption Code' },
				{ key: 'shipping_charge_tax', label: 'Shipping Charge Tax' },
				{ key: 'bcy_shipping_charge_tax', label: 'Shipping Charge Tax (Base Currency)' },
				{
					key: 'shipping_charge_exclusive_of_tax',
					label: 'Shipping Charge Exclusive Of Tax',
					format: 'currency',
				},
				{
					key: 'shipping_charge_inclusive_of_tax',
					label: 'Shipping Charge Inclusive Of Tax',
					format: 'currency',
				},
				{ key: 'shipping_charge_account_id', label: 'Shipping Charge Account ID' },
				{ key: 'shipping_charge_account_name', label: 'Shipping Charge Account Name' },
				{ key: 'shipping_charge', label: 'Shipping Charge', format: 'currency' },
				{
					key: 'bcy_shipping_charge',
					label: 'Shipping Charge (Base Currency)',
					format: 'currency',
				},
				{ key: 'shipping_charge_taxes', label: 'Shipping Charge Taxes' },
				{ key: 'adjustment', label: 'Adjustment', format: 'currency' },
				{ key: 'bcy_adjustment', label: 'Adjustment (Base Currency)', format: 'currency' },
				{ key: 'adjustment_description', label: 'Adjustment Description' },
				{ key: 'roundoff_value', label: 'Roundoff Value', format: 'number' },
				{ key: 'transaction_rounding_type', label: 'Transaction Rounding Type' },
				{ key: 'rounding_mode', label: 'Rounding Mode' },
				{ key: 'bcy_rounding_mode', label: 'Rounding Mode (Base Currency)' },
				{ key: 'sub_total', label: 'Sub Total', format: 'currency' },
				{ key: 'bcy_sub_total', label: 'Sub Total (Base Currency)', format: 'currency' },
				{
					key: 'sub_total_inclusive_of_tax',
					label: 'Sub Total Inclusive Of Tax',
					format: 'currency',
				},
				{
					key: 'sub_total_exclusive_of_discount',
					label: 'Sub Total Exclusive Of Discount',
					format: 'number',
				},
				{ key: 'discount_total', label: 'Discount Total', format: 'number' },
				{ key: 'bcy_discount_total', label: 'Discount Total (Base Currency)', format: 'number' },
				{ key: 'discount_percent', label: 'Discount Percent', format: 'number' },
				{ key: 'total', label: 'Total', format: 'currency' },
				{ key: 'bcy_total', label: 'Total (Base Currency)', format: 'currency' },
				{ key: 'tax_total', label: 'Tax Total', format: 'currency' },
				{ key: 'bcy_tax_total', label: 'Tax Total (Base Currency)', format: 'currency' },
				{ key: 'price_precision', label: 'Price Precision', format: 'number' },
				{ key: 'taxes', label: 'Taxes' },
				{ key: 'tds_override_preference', label: 'TDS Override Preference' },
				{ key: 'tds_summary', label: 'TDS Summary' },
				{ key: 'invoice_ids', label: 'Invoice IDs' },
				{ key: 'subscription_ids', label: 'Subscription IDs' },
				{
					key: 'billing_address',
					label: 'Billing Address',
					children: [...billingAddressFields, { key: 'zip', label: 'Zip' }],
				},
				{
					key: 'shipping_address',
					label: 'Shipping Address',
					children: [...shippingAddressFields, { key: 'zip', label: 'Zip' }],
				},
				{ key: 'dispatch_from_address', label: 'Dispatch From Address' },
				{
					key: 'customer_default_billing_address',
					label: 'Customer Default Billing Address',
					children: customerDefaultBillingAddressFields,
				},
				{ key: 'notes', label: 'Notes' },
				{ key: 'terms', label: 'Terms' },
				{ key: 'custom_fields', label: 'Custom Fields' },
				{ key: 'template_id', label: 'Template ID' },
				{ key: 'template_name', label: 'Template Name' },
				{ key: 'template_type', label: 'Template Type' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
				{ key: 'created_by_id', label: 'Created By ID' },
				{ key: 'last_modified_by_id', label: 'Last Modified By ID' },
				{ key: 'contact_persons_associated', label: 'Contact Persons Associated' },
				{
					key: 'contact_persons_details',
					label: 'Contact Persons Details',
					labelKey: 'email',
					listItems: contactPersonsDetailsFields,
				},
				{ key: 'salesperson_id', label: 'Salesperson ID' },
				{ key: 'salesperson_name', label: 'Salesperson Name' },
				{ key: 'attachment_name', label: 'Attachment Name' },
				{ key: 'can_send_in_mail', label: 'Can Send In Mail', format: 'boolean' },
				{ key: 'allow_partial_payments', label: 'Allow Partial Payments', format: 'boolean' },
				{
					key: 'payment_options',
					label: 'Payment Options',
					children: [{ key: 'payment_gateways', label: 'Payment Gateways' }],
				},
				{ key: 'retainerinvoices', label: 'Retainer Invoices' },
				{ key: 'estimate_type', label: 'Estimate Type' },
				{ key: 'salesorders', label: 'Sales Orders' },
				{ key: 'subject_content', label: 'Subject Content' },
				{ key: 'approvers_list', label: 'Approvers List' },
				{ key: 'registration_details', label: 'Registration Details' },
			],
		},
	],
};

export const zohoInvoiceAddEstimateCommentOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'comment',
			label: 'Comment',
			children: [
				...commentFields,
				{ key: 'estimate_id', label: 'Estimate ID' },
				{ key: 'date_description', label: 'Date Description' },
				{ key: 'time', label: 'Time' },
			],
		},
	],
};

export const zohoInvoiceListEstimateCommentsOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'comments',
			label: 'Comments',
			listItems: [
				...commentsFields,
				{ key: 'estimate_id', label: 'Estimate ID' },
				{ key: 'comment_type', label: 'Comment Type' },
				{ key: 'operation_type', label: 'Operation Type' },
				{ key: 'transaction_id', label: 'Transaction ID' },
				{ key: 'transaction_type', label: 'Transaction Type' },
			],
		},
	],
};

export const zohoInvoiceListEstimatesOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'estimates',
			label: 'Estimates',
			listItems: [
				{ key: 'estimate_id', label: 'Estimate ID' },
				{ key: 'zcrm_potential_id', label: 'Zoho CRM Potential ID' },
				{ key: 'zcrm_potential_name', label: 'Zoho CRM Potential Name' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'customer_id', label: 'Customer ID' },
				{ key: 'company_name', label: 'Company Name' },
				{ key: 'status', label: 'Status' },
				{ key: 'current_sub_status_id', label: 'Current Sub Status ID' },
				{ key: 'current_sub_status', label: 'Current Sub Status' },
				{ key: 'estimate_number', label: 'Estimate Number' },
				{ key: 'reference_number', label: 'Reference Number' },
				{ key: 'date', label: 'Date', format: 'date' },
				{ key: 'currency_id', label: 'Currency ID' },
				{ key: 'currency_code', label: 'Currency Code' },
				{ key: 'total', label: 'Total', format: 'currency' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
				{ key: 'accepted_date', label: 'Accepted Date', format: 'date' },
				{ key: 'declined_date', label: 'Declined Date', format: 'date' },
				{ key: 'expiry_date', label: 'Expiry Date', format: 'date' },
				{ key: 'has_attachment', label: 'Has Attachment', format: 'boolean' },
				{ key: 'is_viewed_by_client', label: 'Is Viewed By Client', format: 'boolean' },
				{ key: 'client_viewed_time', label: 'Client Viewed Time', format: 'datetime' },
				{ key: 'is_emailed', label: 'Is Emailed', format: 'boolean' },
				{ key: 'template_type', label: 'Template Type' },
				{ key: 'template_id', label: 'Template ID' },
				{ key: 'salesperson_id', label: 'Salesperson ID' },
				{ key: 'salesperson_name', label: 'Salesperson Name' },
				{ key: 'registration_details', label: 'Registration Details' },
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'applied_filter', label: 'Applied Filter' },
				{ key: 'custom_fields', label: 'Custom Fields' },
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoiceGetEstimateEmailContentOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'data',
			label: 'Data',
			children: [
				{
					key: 'to_followers',
					label: 'To Followers',
					labelKey: 'name',
					listItems: [
						{ key: 'user_id', label: 'User ID' },
						{ key: 'name', label: 'Name' },
						{ key: 'mobile', label: 'Mobile' },
						{ key: 'email', label: 'Email', format: 'email' },
					],
				},
				{ key: 'file_name_without_extension', label: 'File Name Without Extension' },
				{ key: 'from_email', label: 'From Email', format: 'email' },
				{ key: 'documents', label: 'Documents' },
				{ key: 'bcc_mails', label: 'BCC Mails' },
				{ key: 'subject', label: 'Subject' },
				{ key: 'attachment_name', label: 'Attachment Name' },
				{ key: 'attach_pdf', label: 'Attach PDF', format: 'boolean' },
				{ key: 'to_salesperson', label: 'To Salesperson' },
				{ key: 'body', label: 'Body' },
				{ key: 'to_mails_str', label: 'To Mails (Text)' },
				{
					key: 'translated_languages',
					label: 'Translated Languages',
					listItems: [
						{ key: 'language_code', label: 'Language Code' },
						{ key: 'is_selected', label: 'Is Selected', format: 'boolean' },
					],
				},
				{
					key: 'from_emails',
					label: 'From Emails',
					labelKey: 'email',
					listItems: fromEmailsFields,
				},
				{
					key: 'to_contacts',
					label: 'To Contacts',
					labelKey: 'email',
					listItems: toContactsFields,
				},
				{
					key: 'emailtemplates',
					label: 'Email Templates',
					labelKey: 'name',
					listItems: emailTemplatesFields,
				},
				{ key: 'from_address', label: 'From Address' },
				{ key: 'customer_sub_type', label: 'Customer Sub Type' },
				{ key: 'file_name', label: 'File Name' },
				{ key: 'bcc_mails_str', label: 'BCC Mails (Text)' },
				{ key: 'entity_id', label: 'Entity ID' },
				{ key: 'emailtemplate_documents', label: 'Email Template Documents' },
				{ key: 'entity_type', label: 'Entity Type' },
				{
					key: 'cc_mails_list',
					label: 'CC Mails List',
					labelKey: 'email',
					listItems: [
						{ key: 'user_name', label: 'User Name' },
						{ key: 'email', label: 'Email', format: 'email' },
					],
				},
				{ key: 'error_list', label: 'Error List' },
				{ key: 'cc_mails_str', label: 'CC Mails (Text)', format: 'email' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'customer_id', label: 'Customer ID' },
				{ key: 'status', label: 'Status' },
			],
		},
	],
};

export const zohoInvoiceExpenseCategoryOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'expense_category',
			label: 'Expense Category',
			children: [
				{ key: 'account_id', label: 'Account ID' },
				{ key: 'account_name', label: 'Account Name' },
				{ key: 'description', label: 'Description' },
				{ key: 'status', label: 'Status' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
			],
		},
	],
};

export const zohoInvoiceListExpenseCategoriesOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'expense_accounts',
			label: 'Expense Accounts',
			listItems: [
				{ key: 'account_id', label: 'Account ID' },
				{ key: 'account_name', label: 'Account Name' },
				{ key: 'description', label: 'Description' },
				{ key: 'status', label: 'Status' },
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'applied_filter', label: 'Applied Filter' },
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoiceExpenseOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'expense',
			label: 'Expense',
			children: [
				{ key: 'expense_id', label: 'Expense ID' },
				{ key: 'is_expense_claim', label: 'Is Expense Claim', format: 'boolean' },
				{ key: 'transaction_type', label: 'Transaction Type' },
				{ key: 'expense_item_id', label: 'Expense Item ID' },
				{ key: 'account_id', label: 'Account ID' },
				{ key: 'account_name', label: 'Account Name' },
				{ key: 'invoice_conversion_type', label: 'Invoice Conversion Type' },
				{ key: 'documents', label: 'Documents' },
				{ key: 'date', label: 'Date', format: 'date' },
				{ key: 'markup_percent', label: 'Markup Percent', format: 'number' },
				{ key: 'tax_id', label: 'Tax ID' },
				{ key: 'tax_name', label: 'Tax Name' },
				{ key: 'tax_percentage', label: 'Tax Percentage', format: 'number' },
				{ key: 'taxes', label: 'Taxes' },
				{ key: 'tax_override_preference', label: 'Tax Override Preference' },
				{ key: 'currency_id', label: 'Currency ID' },
				{ key: 'currency_code', label: 'Currency Code' },
				{ key: 'exchange_rate', label: 'Exchange Rate', format: 'number' },
				{ key: 'tax_amount', label: 'Tax Amount', format: 'currency' },
				{ key: 'sub_total', label: 'Sub Total', format: 'currency' },
				{ key: 'total', label: 'Total', format: 'currency' },
				{ key: 'bcy_total', label: 'Total (Base Currency)', format: 'currency' },
				{ key: 'amount', label: 'Amount', format: 'currency' },
				{ key: 'is_inclusive_tax', label: 'Is Inclusive Tax', format: 'boolean' },
				{ key: 'reference_number', label: 'Reference Number' },
				{ key: 'description', label: 'Description' },
				{ key: 'is_billable', label: 'Is Billable', format: 'boolean' },
				{ key: 'is_personal', label: 'Is Personal', format: 'boolean' },
				{ key: 'customer_id', label: 'Customer ID' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'expense_receipt_name', label: 'Expense Receipt Name' },
				{ key: 'expense_receipt_type', label: 'Expense Receipt Type' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'created_by_id', label: 'Created By ID' },
				{ key: 'last_modified_by_id', label: 'Last Modified By ID' },
				{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
				{ key: 'employee_id', label: 'Employee ID' },
				{ key: 'employee_name', label: 'Employee Name' },
				{ key: 'employee_email', label: 'Employee Email' },
				{ key: 'vehicle_id', label: 'Vehicle ID' },
				{ key: 'vehicle_name', label: 'Vehicle Name' },
				{ key: 'mileage_rate', label: 'Mileage Rate', format: 'currency' },
				{ key: 'mileage_unit', label: 'Mileage Unit' },
				{ key: 'mileage_type', label: 'Mileage Type' },
				{ key: 'expense_type', label: 'Expense Type' },
				{ key: 'start_reading', label: 'Start Reading' },
				{ key: 'end_reading', label: 'End Reading' },
				{ key: 'status', label: 'Status' },
				{ key: 'invoice_id', label: 'Invoice ID' },
				{ key: 'invoice_number', label: 'Invoice Number' },
				{ key: 'report_id', label: 'Report ID' },
				{ key: 'report_number', label: 'Report Number' },
				{ key: 'user_id', label: 'User ID' },
				{ key: 'user_name', label: 'User Name' },
				{ key: 'user_email', label: 'User Email' },
				{ key: 'approver_id', label: 'Approver ID' },
				{ key: 'approver_name', label: 'Approver Name' },
				{ key: 'approver_email', label: 'Approver Email' },
				{ key: 'report_status', label: 'Report Status' },
				{ key: 'is_reimbursable', label: 'Is Reimbursable', format: 'boolean' },
				{ key: 'trip_id', label: 'Trip ID' },
				{ key: 'trip_number', label: 'Trip Number' },
				{ key: 'location', label: 'Location' },
				{ key: 'merchant_id', label: 'Merchant ID' },
				{ key: 'merchant_name', label: 'Merchant Name' },
				{ key: 'payment_mode', label: 'Payment Mode' },
				{ key: 'project_id', label: 'Project ID' },
				{ key: 'template_id', label: 'Template ID' },
				{ key: 'template_name', label: 'Template Name' },
				{ key: 'template_type', label: 'Template Type' },
				{ key: 'project_name', label: 'Project Name' },
				{ key: 'custom_fields', label: 'Custom Fields' },
				{ key: 'is_recurring_applicable', label: 'Is Recurring Applicable', format: 'boolean' },
				{
					key: 'line_items',
					label: 'Line Items',
					listItems: [
						...lineItemsFields,
						{ key: 'account_id', label: 'Account ID' },
						{ key: 'account_name', label: 'Account Name' },
						{ key: 'tax_amount', label: 'Tax Amount', format: 'currency' },
						{ key: 'amount', label: 'Amount', format: 'currency' },
					],
				},
				{ key: 'is_surcharge_applicable', label: 'Is Surcharge Applicable', format: 'boolean' },
				{ key: 'fcy_surcharge_amount', label: 'Surcharge Amount', format: 'currency' },
				{
					key: 'bcy_surcharge_amount',
					label: 'Surcharge Amount (Base Currency)',
					format: 'currency',
				},
				{ key: 'zcrm_potential_id', label: 'Zoho CRM Potential ID' },
				{ key: 'zcrm_potential_name', label: 'Zoho CRM Potential Name' },
				{ key: 'registration_details', label: 'Registration Details' },
			],
		},
	],
};

export const zohoInvoiceListExpenseHistoryOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'comments',
			label: 'Comments',
			listItems: [
				...commentsFields,
				{ key: 'expense_id', label: 'Expense ID' },
				{ key: 'operation_type', label: 'Operation Type' },
				{ key: 'transaction_id', label: 'Transaction ID' },
				{ key: 'transaction_type', label: 'Transaction Type' },
			],
		},
	],
};

export const zohoInvoiceListExpensesOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'expenses',
			label: 'Expenses',
			listItems: [
				{ key: 'expense_id', label: 'Expense ID' },
				{ key: 'date', label: 'Date', format: 'date' },
				{ key: 'user_name', label: 'User Name' },
				{ key: 'account_name', label: 'Account Name' },
				{ key: 'description', label: 'Description' },
				{ key: 'currency_id', label: 'Currency ID' },
				{ key: 'currency_code', label: 'Currency Code' },
				{ key: 'bcy_total', label: 'Total (Base Currency)', format: 'currency' },
				{
					key: 'bcy_total_without_tax',
					label: 'Total Without Tax (Base Currency)',
					format: 'currency',
				},
				{ key: 'total', label: 'Total', format: 'currency' },
				{ key: 'total_without_tax', label: 'Total Without Tax', format: 'currency' },
				{ key: 'is_billable', label: 'Is Billable', format: 'boolean' },
				{ key: 'reference_number', label: 'Reference Number' },
				{ key: 'customer_id', label: 'Customer ID' },
				{ key: 'is_personal', label: 'Is Personal', format: 'boolean' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'status', label: 'Status' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
				{ key: 'expense_receipt_name', label: 'Expense Receipt Name' },
				{ key: 'exchange_rate', label: 'Exchange Rate', format: 'number' },
				{ key: 'distance', label: 'Distance', format: 'number' },
				{ key: 'mileage_rate', label: 'Mileage Rate', format: 'currency' },
				{ key: 'mileage_unit', label: 'Mileage Unit' },
				{ key: 'mileage_type', label: 'Mileage Type' },
				{ key: 'expense_type', label: 'Expense Type' },
				{ key: 'report_id', label: 'Report ID' },
				{ key: 'start_reading', label: 'Start Reading' },
				{ key: 'end_reading', label: 'End Reading' },
				{ key: 'report_number', label: 'Report Number' },
				{ key: 'has_attachment', label: 'Has Attachment', format: 'boolean' },
				{ key: 'custom_fields_list', label: 'Custom Fields List' },
				{ key: 'registration_details', label: 'Registration Details' },
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'applied_filter', label: 'Applied Filter' },
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
				{ key: 'custom_fields', label: 'Custom Fields' },
			],
		},
	],
};

export const zohoInvoiceRecurringInvoiceOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'recurring_invoice',
			label: 'Recurring Invoice',
			children: [
				{ key: 'recurring_invoice_id', label: 'Recurring Invoice ID' },
				{ key: 'recurrence_name', label: 'Recurrence Name' },
				{ key: 'reference_number', label: 'Reference Number' },
				{ key: 'status', label: 'Status' },
				{ key: 'recurrence_frequency', label: 'Recurrence Frequency' },
				{ key: 'repeat_every', label: 'Repeat Every', format: 'number' },
				{ key: 'child_entity_type', label: 'Child Entity Type' },
				{ key: 'start_date', label: 'Start Date', format: 'date' },
				{ key: 'end_date', label: 'End Date', format: 'date' },
				{ key: 'last_sent_date', label: 'Last Sent Date', format: 'date' },
				{ key: 'next_invoice_date', label: 'Next Invoice Date', format: 'date' },
				{ key: 'subject_content', label: 'Subject Content' },
				{ key: 'payment_terms', label: 'Payment Terms', format: 'number' },
				{ key: 'payment_terms_label', label: 'Payment Terms Label' },
				{ key: 'payment_terms_id', label: 'Payment Terms ID' },
				{ key: 'contact_category', label: 'Contact Category' },
				{ key: 'exceptions', label: 'Exceptions' },
				{ key: 'customer_id', label: 'Customer ID' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'customer_email', label: 'Customer Email', format: 'email' },
				{ key: 'customer_phone', label: 'Customer Phone' },
				{ key: 'customer_mobile_phone', label: 'Customer Mobile Phone' },
				{ key: 'company_name', label: 'Company Name' },
				{ key: 'contact_persons', label: 'Contact Persons' },
				{ key: 'contact_persons_associated', label: 'Contact Persons Associated' },
				{ key: 'currency_id', label: 'Currency ID' },
				{ key: 'price_precision', label: 'Price Precision', format: 'number' },
				{ key: 'currency_code', label: 'Currency Code' },
				{ key: 'currency_symbol', label: 'Currency Symbol' },
				{ key: 'exchange_rate', label: 'Exchange Rate', format: 'number' },
				{ key: 'discount', label: 'Discount', format: 'number' },
				{
					key: 'discount_applied_on_amount',
					label: 'Discount Applied On Amount',
					format: 'number',
				},
				{ key: 'is_discount_before_tax', label: 'Is Discount Before Tax', format: 'boolean' },
				{ key: 'discount_type', label: 'Discount Type' },
				{ key: 'tax_rounding', label: 'Tax Rounding' },
				{ key: 'is_inclusive_tax', label: 'Is Inclusive Tax', format: 'boolean' },
				{ key: 'paid_invoices_total', label: 'Paid Invoices Total', format: 'currency' },
				{ key: 'unpaid_invoices_balance', label: 'Unpaid Invoices Balance', format: 'currency' },
				{
					key: 'line_items',
					label: 'Line Items',
					labelKey: 'name',
					listItems: [
						...lineItemsFields,
						{ key: 'item_id', label: 'Item ID' },
						{ key: 'name', label: 'Name' },
						{ key: 'header_id', label: 'Header ID' },
						{ key: 'header_name', label: 'Header Name' },
						{ key: 'project_id', label: 'Project ID' },
						{ key: 'rate', label: 'Rate', format: 'currency' },
						{ key: 'quantity', label: 'Quantity', format: 'number' },
						{ key: 'unit', label: 'Unit' },
						{ key: 'pricebook_id', label: 'Price List ID' },
						{ key: 'discount_amount', label: 'Discount Amount', format: 'number' },
						{ key: 'discount', label: 'Discount', format: 'number' },
						{
							key: 'discounts',
							label: 'Discounts',
							listItems: [
								{ key: 'discount_order', label: 'Discount Order', format: 'number' },
								{ key: 'discount_amount', label: 'Discount Amount' },
								{ key: 'discount_percent', label: 'Discount Percent' },
							],
						},
						{ key: 'discount_account_id', label: 'Discount Account ID' },
						{ key: 'discount_account_name', label: 'Discount Account Name' },
						{ key: 'tds_tax_id', label: 'TDS Tax ID' },
						{ key: 'tds_tax_name', label: 'TDS Tax Name' },
						{ key: 'tds_tax_percentage', label: 'TDS Tax Percentage' },
						{ key: 'tds_tax_amount', label: 'TDS Tax Amount', format: 'currency' },
						{ key: 'line_item_tds', label: 'Line Item TDS' },
						{ key: 'line_item_category', label: 'Line Item Category' },
						{ key: 'item_code', label: 'Item Code' },
						{ key: 'item_custom_fields', label: 'Item Custom Fields' },
						{ key: 'mapped_items', label: 'Mapped Items' },
					],
				},
				{
					key: 'bcy_shipping_charge',
					label: 'Shipping Charge (Base Currency)',
					format: 'currency',
				},
				{ key: 'bcy_adjustment', label: 'Adjustment (Base Currency)', format: 'currency' },
				{ key: 'bcy_sub_total', label: 'Sub Total (Base Currency)', format: 'currency' },
				{ key: 'bcy_discount_total', label: 'Discount Total (Base Currency)', format: 'number' },
				{ key: 'bcy_tax_total', label: 'Tax Total (Base Currency)', format: 'currency' },
				{ key: 'bcy_total', label: 'Total (Base Currency)', format: 'currency' },
				{ key: 'discount_percent', label: 'Discount Percent', format: 'number' },
				{ key: 'discount_total', label: 'Discount Total', format: 'number' },
				{ key: 'adjustment', label: 'Adjustment', format: 'currency' },
				{ key: 'adjustment_description', label: 'Adjustment Description' },
				{ key: 'recurrence_preferences', label: 'Recurrence Preferences' },
				{ key: 'is_general_preference', label: 'Is General Preference', format: 'boolean' },
				{ key: 'shipping_charge_tax_id', label: 'Shipping Charge Tax ID' },
				{ key: 'shipping_charge_tax_name', label: 'Shipping Charge Tax Name' },
				{ key: 'shipping_charge_tax_type', label: 'Shipping Charge Tax Type' },
				{ key: 'shipping_charge_tax_percentage', label: 'Shipping Charge Tax Percentage' },
				{ key: 'shipping_charge_tax_exemption_id', label: 'Shipping Charge Tax Exemption ID' },
				{ key: 'shipping_charge_tax_exemption_code', label: 'Shipping Charge Tax Exemption Code' },
				{ key: 'shipping_charge_tax', label: 'Shipping Charge Tax' },
				{ key: 'bcy_shipping_charge_tax', label: 'Shipping Charge Tax (Base Currency)' },
				{
					key: 'shipping_charge_exclusive_of_tax',
					label: 'Shipping Charge Exclusive Of Tax',
					format: 'currency',
				},
				{
					key: 'shipping_charge_inclusive_of_tax',
					label: 'Shipping Charge Inclusive Of Tax',
					format: 'currency',
				},
				{ key: 'shipping_charge_account_id', label: 'Shipping Charge Account ID' },
				{ key: 'shipping_charge_account_name', label: 'Shipping Charge Account Name' },
				{ key: 'shipping_charge', label: 'Shipping Charge', format: 'currency' },
				{ key: 'shipping_charge_taxes', label: 'Shipping Charge Taxes' },
				{ key: 'roundoff_value', label: 'Roundoff Value', format: 'number' },
				{ key: 'transaction_rounding_type', label: 'Transaction Rounding Type' },
				{ key: 'rounding_mode', label: 'Rounding Mode' },
				{ key: 'bcy_rounding_mode', label: 'Rounding Mode (Base Currency)' },
				{ key: 'late_fee', label: 'Late Fee', children: lateFeeFields },
				{ key: 'sub_total', label: 'Sub Total', format: 'currency' },
				{
					key: 'sub_total_inclusive_of_tax',
					label: 'Sub Total Inclusive Of Tax',
					format: 'currency',
				},
				{ key: 'total', label: 'Total', format: 'currency' },
				{ key: 'tds_override_preference', label: 'TDS Override Preference' },
				{ key: 'tax_total', label: 'Tax Total', format: 'currency' },
				{ key: 'allow_partial_payments', label: 'Allow Partial Payments', format: 'boolean' },
				{ key: 'taxes', label: 'Taxes' },
				{ key: 'tds_summary', label: 'TDS Summary' },
				{ key: 'tds_calculation_type', label: 'TDS Calculation Type' },
				{ key: 'custom_fields', label: 'Custom Fields' },
				{
					key: 'comments',
					label: 'Comments',
					listItems: [
						...commentsFields,
						{ key: 'recurring_invoice_id', label: 'Recurring Invoice ID' },
						{ key: 'comment_type', label: 'Comment Type' },
						{ key: 'operation_type', label: 'Operation Type' },
						{ key: 'transaction_id', label: 'Transaction ID' },
						{ key: 'transaction_type', label: 'Transaction Type' },
					],
				},
				{
					key: 'payment_options',
					label: 'Payment Options',
					children: [{ key: 'payment_gateways', label: 'Payment Gateways' }],
				},
				{
					key: 'billing_address',
					label: 'Billing Address',
					children: [...billingAddressFields, { key: 'zip', label: 'Zip' }],
				},
				{
					key: 'shipping_address',
					label: 'Shipping Address',
					children: [...shippingAddressFields, { key: 'zip', label: 'Zip' }],
				},
				{ key: 'dispatch_from_address', label: 'Dispatch From Address' },
				{ key: 'template_id', label: 'Template ID' },
				{ key: 'template_name', label: 'Template Name' },
				{ key: 'notes', label: 'Notes' },
				{ key: 'terms', label: 'Terms' },
				{
					key: 'actual_child_invoices_count',
					label: 'Actual Child Invoices Count',
					format: 'number',
				},
				{
					key: 'manual_child_invoices_count',
					label: 'Manual Child Invoices Count',
					format: 'number',
				},
				{ key: 'unpaid_child_invoices_count', label: 'Unpaid Child Invoices Count' },
				{ key: 'is_autobill_enabled', label: 'Is Autobill Enabled', format: 'boolean' },
				{ key: 'salesperson_id', label: 'Salesperson ID' },
				{ key: 'salesperson_name', label: 'Salesperson Name' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
				{ key: 'created_by_id', label: 'Created By ID' },
				{ key: 'last_modified_by_id', label: 'Last Modified By ID' },
				{ key: 'project_details', label: 'Project Details' },
				{ key: 'registration_details', label: 'Registration Details' },
			],
		},
	],
};

export const zohoInvoiceListRecurringInvoiceHistoryOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'comments',
			label: 'Comments',
			listItems: [
				...commentsFields,
				{ key: 'recurring_invoice_id', label: 'Recurring Invoice ID' },
				{ key: 'comment_type', label: 'Comment Type' },
				{ key: 'operation_type', label: 'Operation Type' },
				{ key: 'transaction_id', label: 'Transaction ID' },
				{ key: 'transaction_type', label: 'Transaction Type' },
			],
		},
	],
};

export const zohoInvoiceListRecurringInvoicesOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'recurring_invoices',
			label: 'Recurring Invoices',
			listItems: [
				{ key: 'recurring_invoice_id', label: 'Recurring Invoice ID' },
				{ key: 'recurrence_name', label: 'Recurrence Name' },
				{ key: 'reference_number', label: 'Reference Number' },
				{ key: 'status', label: 'Status' },
				{ key: 'total', label: 'Total', format: 'currency' },
				{ key: 'customer_id', label: 'Customer ID' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'child_entity_type', label: 'Child Entity Type' },
				{ key: 'start_date', label: 'Start Date', format: 'date' },
				{ key: 'end_date', label: 'End Date', format: 'date' },
				{ key: 'last_sent_date', label: 'Last Sent Date', format: 'date' },
				{ key: 'next_invoice_date', label: 'Next Invoice Date', format: 'date' },
				{ key: 'recurrence_frequency', label: 'Recurrence Frequency' },
				{ key: 'repeat_every', label: 'Repeat Every', format: 'number' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
				{ key: 'salesperson_id', label: 'Salesperson ID' },
				{ key: 'salesperson_name', label: 'Salesperson Name' },
				{ key: 'last_four_digits', label: 'Last Four Digits' },
				{ key: 'registration_details', label: 'Registration Details' },
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'applied_filter', label: 'Applied Filter' },
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
				{ key: 'custom_fields', label: 'Custom Fields' },
			],
		},
	],
};

export const zohoInvoiceCloneProjectOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'project',
			label: 'Project',
			children: [
				...projectFields,
				{ key: 'total_amount', label: 'Total Amount' },
				{ key: 'billed_amount', label: 'Billed Amount' },
				{ key: 'un_billed_amount', label: 'Unbilled Amount' },
				{ key: 'billable_amount', label: 'Billable Amount' },
				{ key: 'non_billable_amount', label: 'Non Billable Amount' },
			],
		},
	],
};

export const zohoInvoiceGetProjectOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'project',
			label: 'Project',
			children: [
				...projectFields,
				{ key: 'total_amount', label: 'Total Amount', format: 'currency' },
				{ key: 'billed_amount', label: 'Billed Amount', format: 'currency' },
				{ key: 'un_billed_amount', label: 'Unbilled Amount', format: 'currency' },
				{ key: 'billable_amount', label: 'Billable Amount', format: 'currency' },
				{ key: 'non_billable_amount', label: 'Non Billable Amount', format: 'currency' },
				{ key: 'task_custom_fields', label: 'Task Custom Fields' },
				{ key: 'rate', label: 'Rate', format: 'currency' },
				{ key: 'budget_hours', label: 'Budget Hours', format: 'number' },
				{ key: 'budget_hours_in_time', label: 'Budget Hours In Time' },
			],
		},
	],
};

export const zohoInvoiceAddProjectCommentOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'comment',
			label: 'Comment',
			children: [
				...commentFields,
				{ key: 'project_id', label: 'Project ID' },
				{ key: 'date_description', label: 'Date Description' },
				{ key: 'time', label: 'Time' },
			],
		},
	],
};

export const zohoInvoiceListProjectCommentsOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'comments',
			label: 'Comments',
			listItems: [
				...commentsFields,
				{ key: 'project_id', label: 'Project ID' },
				{ key: 'is_current_user', label: 'Is Current User', format: 'boolean' },
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'project_name', label: 'Project Name' },
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoiceCreateEmployeeOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'employee',
			label: 'Employee',
			children: [
				{ key: 'employee_id', label: 'Employee ID' },
				{ key: 'name', label: 'Name' },
				{ key: 'email', label: 'Email', format: 'email' },
			],
		},
	],
};

export const zohoInvoiceListEmployeesOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'employees',
			label: 'Employees',
			labelKey: 'name',
			listItems: [
				{ key: 'employee_id', label: 'Employee ID' },
				{ key: 'name', label: 'Name' },
				{ key: 'email', label: 'Email', format: 'email' },
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'applied_filter', label: 'Applied Filter' },
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoiceListProjectInvoicesOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{ key: 'invoices', label: 'Invoices' },
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'project_name', label: 'Project Name' },
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoiceListProjectsOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'projects',
			label: 'Projects',
			listItems: [
				{ key: 'project_id', label: 'Project ID' },
				{ key: 'project_name', label: 'Project Name' },
				{ key: 'project_code', label: 'Project Code' },
				{ key: 'customer_id', label: 'Customer ID' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'description', label: 'Description' },
				{ key: 'status', label: 'Status' },
				{ key: 'billing_type', label: 'Billing Type' },
				{ key: 'rate', label: 'Rate', format: 'currency' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'last_modified_time', label: 'Last Modified Time', format: 'datetime' },
				{ key: 'has_attachment', label: 'Has Attachment', format: 'boolean' },
				{ key: 'total_hours', label: 'Total Hours' },
				{ key: 'billable_hours', label: 'Billable Hours' },
				{ key: 'other_service_app_source', label: 'Other Service App Source' },
				{ key: 'users_working', label: 'Users Working', format: 'number' },
				{ key: 'custom_fields', label: 'Custom Fields' },
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'applied_filter', label: 'Applied Filter' },
				{ key: 'custom_fields', label: 'Custom Fields' },
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoiceGetProjectUserOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'user',
			label: 'User',
			children: [
				...userFields,
				{ key: 'project_id', label: 'Project ID' },
				{ key: 'is_current_user', label: 'Is Current User', format: 'boolean' },
				{ key: 'user_name', label: 'User Name' },
			],
		},
	],
};

export const zohoInvoiceTimeEntryOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'time_entry',
			label: 'Time Entry',
			children: [
				{ key: 'time_entry_id', label: 'Time Entry ID' },
				{ key: 'project_id', label: 'Project ID' },
				{ key: 'project_name', label: 'Project Name' },
				{ key: 'customer_id', label: 'Customer ID' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'task_id', label: 'Task ID' },
				{ key: 'task_name', label: 'Task Name' },
				{ key: 'user_id', label: 'User ID' },
				{ key: 'user_name', label: 'User Name' },
				{ key: 'is_current_user', label: 'Is Current User', format: 'boolean' },
				{ key: 'log_date', label: 'Log Date', format: 'date' },
				{ key: 'begin_time', label: 'Begin Time' },
				{ key: 'end_time', label: 'End Time' },
				{ key: 'log_time', label: 'Log Time', format: 'duration' },
				{ key: 'logged_day', label: 'Logged Day', format: 'number' },
				{ key: 'is_billable', label: 'Is Billable', format: 'boolean' },
				{ key: 'billed_status', label: 'Billed Status' },
				{ key: 'invoice_id', label: 'Invoice ID' },
				{ key: 'notes', label: 'Notes' },
				{ key: 'is_paused', label: 'Is Paused', format: 'boolean' },
				{ key: 'timer_started_at', label: 'Timer Started At', format: 'datetime' },
				{
					key: 'timer_started_at_utc_time',
					label: 'Timer Started At UTC Time',
					format: 'datetime',
				},
				{ key: 'timer_duration_in_minutes', label: 'Timer Duration In Minutes', format: 'number' },
				{ key: 'timer_duration_in_seconds', label: 'Timer Duration In Seconds', format: 'number' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
				{ key: 'timesheet_custom_fields', label: 'Timesheet Custom Fields' },
			],
		},
	],
};

export const zohoInvoiceTaskOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'task',
			label: 'Task',
			children: [
				{ key: 'project_id', label: 'Project ID' },
				{ key: 'project_name', label: 'Project Name' },
				{ key: 'task_id', label: 'Task ID' },
				{ key: 'task_name', label: 'Task Name' },
				{ key: 'description', label: 'Description' },
				{ key: 'rate', label: 'Rate', format: 'currency' },
				{ key: 'status', label: 'Status' },
				{ key: 'is_billable', label: 'Is Billable', format: 'boolean' },
				{ key: 'task_custom_fields', label: 'Task Custom Fields' },
			],
		},
	],
};

export const zohoInvoiceListTasksOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'task',
			label: 'Task',
			listItems: [
				{ key: 'project_id', label: 'Project ID' },
				{ key: 'task_id', label: 'Task ID' },
				{ key: 'currency_id', label: 'Currency ID' },
				{ key: 'customer_id', label: 'Customer ID' },
				{ key: 'task_name', label: 'Task Name' },
				{ key: 'description', label: 'Description' },
				{ key: 'project_name', label: 'Project Name' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'billed_hours', label: 'Billed Hours' },
				{ key: 'log_time', label: 'Log Time', format: 'duration' },
				{ key: 'un_billed_hours', label: 'Unbilled Hours' },
				{ key: 'rate', label: 'Rate', format: 'currency' },
				{ key: 'status', label: 'Status' },
				{ key: 'is_billable', label: 'Is Billable', format: 'boolean' },
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'project_name', label: 'Project Name' },
				{ key: 'custom_fields', label: 'Custom Fields' },
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoiceListTimeEntriesOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'time_entries',
			label: 'Time Entries',
			listItems: [
				{ key: 'time_entry_id', label: 'Time Entry ID' },
				{ key: 'project_id', label: 'Project ID' },
				{ key: 'project_name', label: 'Project Name' },
				{ key: 'customer_id', label: 'Customer ID' },
				{ key: 'customer_first_name', label: 'Customer First Name' },
				{ key: 'customer_name', label: 'Customer Name' },
				{ key: 'task_id', label: 'Task ID' },
				{ key: 'task_name', label: 'Task Name' },
				{ key: 'user_id', label: 'User ID' },
				{ key: 'is_current_user', label: 'Is Current User', format: 'boolean' },
				{ key: 'user_name', label: 'User Name' },
				{ key: 'log_date', label: 'Log Date', format: 'date' },
				{ key: 'begin_time', label: 'Begin Time' },
				{ key: 'end_time', label: 'End Time' },
				{ key: 'log_time', label: 'Log Time', format: 'duration' },
				{ key: 'billing_rate_frequency', label: 'Billing Rate Frequency' },
				{ key: 'logged_day', label: 'Logged Day', format: 'number' },
				{ key: 'is_billable', label: 'Is Billable', format: 'boolean' },
				{ key: 'billed_status', label: 'Billed Status' },
				{ key: 'is_client_approval_needed', label: 'Is Client Approval Needed', format: 'boolean' },
				{ key: 'invoice_id', label: 'Invoice ID' },
				{ key: 'invoice_number', label: 'Invoice Number' },
				{ key: 'notes', label: 'Notes' },
				{ key: 'timer_started_at', label: 'Timer Started At', format: 'datetime' },
				{ key: 'is_paused', label: 'Is Paused', format: 'boolean' },
				{ key: 'timer_duration_in_minutes', label: 'Timer Duration In Minutes', format: 'number' },
				{ key: 'created_time', label: 'Created Time', format: 'datetime' },
			],
		},
		{
			key: 'page_context',
			label: 'Page Context',
			children: [
				...pageContextFields,
				{ key: 'applied_filter', label: 'Applied Filter' },
				{ key: 'from_date', label: 'From Date', format: 'date' },
				{ key: 'to_date', label: 'To Date', format: 'date' },
				{ key: 'custom_fields', label: 'Custom Fields' },
				{ key: 'sort_column', label: 'Sort Column' },
				{ key: 'sort_order', label: 'Sort Order' },
			],
		},
	],
};

export const zohoInvoiceListOrganizationsOutputSchema: OutputSchema = {
	fields: [
		{ key: 'message', label: 'Message' },
		{
			key: 'organizations',
			label: 'Organizations',
			labelKey: 'name',
			listItems: [
				{ key: 'isOrgNotSupported', label: 'Is Org Not Supported', format: 'boolean' },
				{ key: 'organization_id', label: 'Organization ID' },
				{ key: 'name', label: 'Name' },
				{ key: 'org_alias_name', label: 'Org Alias Name' },
				{ key: 'contact_name', label: 'Contact Name' },
				{ key: 'email', label: 'Email', format: 'email' },
				{ key: 'source', label: 'Source', format: 'number' },
				{ key: 'country', label: 'Country' },
				{ key: 'country_code', label: 'Country Code' },
				{ key: 'org_settings', label: 'Org Settings', format: 'boolean' },
				{ key: 'custom_field_type', label: 'Custom Field Type', format: 'number' },
				{
					key: 'custom_fields',
					label: 'Custom Fields',
					labelKey: 'label',
					listItems: customFieldsFields,
				},
				{ key: 'is_sku_enabled', label: 'Is SKU Enabled', format: 'boolean' },
				{ key: 'phone', label: 'Phone' },
				{ key: 'org_type', label: 'Org Type' },
				{ key: 'state_code', label: 'State Code' },
				{ key: 'state', label: 'State' },
				{ key: 'zoho_one_org', label: 'Zoho One Org' },
				{ key: 'org_created_app_source', label: 'Org Created App Source', format: 'number' },
				{ key: 'is_solo_org', label: 'Is Solo Org', format: 'boolean' },
				{ key: 'partners_domain', label: 'Partners Domain' },
				{ key: 'version', label: 'Version' },
				{ key: 'is_search360_enabled', label: 'Is Search360 Enabled' },
				{
					key: 'is_sales_inclusive_tax_enabled',
					label: 'Is Sales Inclusive Tax Enabled',
					format: 'boolean',
				},
				{ key: 'sales_tax_type', label: 'Sales Tax Type' },
				{ key: 'tax_group_enabled', label: 'Tax Group Enabled', format: 'boolean' },
				{ key: 'language_code', label: 'Language Code' },
				{ key: 'fiscal_year_start_month', label: 'Fiscal Year Start Month', format: 'number' },
				{ key: 'time_zone', label: 'Time Zone' },
				{ key: 'field_separator', label: 'Field Separator' },
				{ key: 'digital_signature_mode', label: 'Digital Signature Mode' },
				{ key: 'is_dsign_required', label: 'Is Dsign Required', format: 'boolean' },
				{ key: 'is_user_dsign_mandatory', label: 'Is User Dsign Mandatory', format: 'boolean' },
				{ key: 'currency_id', label: 'Currency ID' },
				{ key: 'currency_code', label: 'Currency Code' },
				{ key: 'currency_symbol', label: 'Currency Symbol' },
				{ key: 'currency_format', label: 'Currency Format' },
				{ key: 'price_precision', label: 'Price Precision', format: 'number' },
				{ key: 'org_joined_app_list', label: 'Org Joined App List' },
				{ key: 'is_designated_zone', label: 'Is Designated Zone', format: 'boolean' },
				{ key: 'is_free_zone', label: 'Is Free Zone', format: 'boolean' },
				{
					key: 'is_registered_for_composite_scheme',
					label: 'Is Registered For Composite Scheme',
					format: 'boolean',
				},
				{
					key: 'is_sales_reverse_charge_enabled',
					label: 'Is Sales Reverse Charge Enabled',
					format: 'boolean',
				},
				{
					key: 'is_export_with_payment_enabled',
					label: 'Is Export With Payment Enabled',
					format: 'boolean',
				},
				{ key: 'is_registered_for_tax', label: 'Is Registered For Tax', format: 'boolean' },
				{ key: 'is_tax_registered', label: 'Is Tax Registered', format: 'boolean' },
				{
					key: 'is_international_trade_enabled',
					label: 'Is International Trade Enabled',
					format: 'boolean',
				},
				{ key: 'is_gst_india_version', label: 'Is GST India Version', format: 'boolean' },
				{ key: 'is_registered_for_gst', label: 'Is Registered For GST', format: 'boolean' },
				{ key: 'is_multientity_org', label: 'Is Multientity Org', format: 'boolean' },
				{ key: 'is_multientity_enabled', label: 'Is Multientity Enabled', format: 'boolean' },
				{ key: 'isOrgActive', label: 'Is Org Active', format: 'boolean' },
				{ key: 'plan_type', label: 'Plan Type', format: 'number' },
				{ key: 'plan_name', label: 'Plan Name' },
				{ key: 'plan_period', label: 'Plan Period' },
				{ key: 'account_created_date', label: 'Account Created Date', format: 'date' },
				{ key: 'is_org_active', label: 'Is Org Active', format: 'boolean' },
				{ key: 'is_quick_setup_completed', label: 'Is Quick Setup Completed', format: 'boolean' },
				{ key: 'is_trial_period_extended', label: 'Is Trial Period Extended', format: 'boolean' },
				{
					key: 'is_invoice_pmt_tds_allowed',
					label: 'Is Invoice Pmt TDS Allowed',
					format: 'boolean',
				},
				{ key: 'is_hsn_or_sac_enabled', label: 'Is HSN Or Sac Enabled', format: 'boolean' },
				{ key: 'is_location_enabled', label: 'Is Location Enabled', format: 'boolean' },
				{ key: 'mode', label: 'Mode' },
				{ key: 'other_active_services', label: 'Other Active Services' },
				{ key: 'is_last_active_service', label: 'Is Last Active Service', format: 'boolean' },
				{ key: 'support_email', label: 'Support Email', format: 'email' },
				{ key: 'is_user_last_admin', label: 'Is User Last Admin', format: 'boolean' },
				{ key: 'is_user_super_admin', label: 'Is User Super Admin', format: 'boolean' },
				{ key: 'user_status', label: 'User Status', format: 'number' },
				{ key: 'org_action', label: 'Org Action' },
				{ key: 'is_default_org', label: 'Is Default Org', format: 'boolean' },
				{ key: 'is_subscription_paused', label: 'Is Subscription Paused', format: 'boolean' },
			],
		},
	],
};