/* eslint-disable */ /* This is a auto generated file for building the project */ import type { PageMeta } from "@webstudio-is/sdk"; import type { System, ResourceRequest } from "@webstudio-is/sdk"; export const getResources = (_props: { system: System }) => { let nocodbUrl = "https://db.jamericanbar.com" let nocodbPeopleTableId = "mn7h3guzxy96uar" const system = _props.system let itemsPerPage = 1000 let orderBy = "Full Name" let nocodbAttorneyViewId = "vwffbhuhrx45fjmd" let nocodbToken = "w12xFAvVnpckAU0KTJWaGV3oN1KS96tINZlzI26I" let nocodbPracticeTableId = "mguumu4w1pvajkj" let nocodbPracticeViewId = "vwpa6c74wqj2n97h" const nocodbAttorneyData_1: ResourceRequest = { name: "nocodbAttorneyData", url: `${nocodbUrl}/api/v2/tables/${nocodbPeopleTableId}/records?offset=${((+system?.search?.page || 1) - 1) * itemsPerPage}&limit=${itemsPerPage}&sort=${orderBy}${system?.search?.platform ? `&where=(Platform,anyof,${system?.search?.platform})` : ''}`, searchParams: [ { name: "offset", value: "0" }, { name: "viewId", value: nocodbAttorneyViewId }, ], method: "get", headers: [ { name: "Cache-Control", value: "max-age=3600" }, { name: "xc-token", value: nocodbToken }, ], } const nocodbPracticeData: ResourceRequest = { name: "nocodbPracticeData", url: `https://nocodb.jaba.sheckeem.com/api/v2/tables/${nocodbPracticeTableId}/records`, searchParams: [ { name: "limit", value: "1000" }, { name: "viewId", value: nocodbPracticeViewId }, { name: "sort", value: "Practice" }, ], method: "get", headers: [ { name: "Cache-Control", value: "max-age=3600" }, { name: "xc-token", value: nocodbToken }, ], } const _data = new Map([ ["nocodbAttorneyData_1", nocodbAttorneyData_1], ["nocodbPracticeData", nocodbPracticeData], ]) const _action = new Map([ ]) return { data: _data, action: _action } } export const getPageMeta = ({ system, resources, }: { system: System; resources: Record; }): PageMeta => { return { title: "Attorney Directory | Jamaican-American Bar Association", description: "Find an attorney for your case, amongst our members. Our members are primarily based in the South Florida areas, serving the Miami-Dade, Broward and Palm Beach counties.", excludePageFromSearch: true, language: "", socialImageAssetName: undefined, socialImageUrl: "", status: 200, redirect: "", custom: [ ], }; }; type Params = Record; export const getRemixParams = ({ ...params }: Params): Params => { return params } export const contactEmail = "jabaflorida@gmail.com";