const analyticsConfig = {
  entities: [
    {
      entityId: "customers:entities",
      requiredFeatures: ["customers.view"],
      entityConfig: {
        tableName: "customer_entities",
        dateField: "created_at",
        defaultScopeFields: ["tenant_id", "organization_id"]
      },
      fieldMappings: {
        id: { dbColumn: "id", type: "uuid" },
        kind: { dbColumn: "kind", type: "text" },
        status: { dbColumn: "status", type: "text" },
        lifecycleStage: { dbColumn: "lifecycle_stage", type: "text" },
        createdAt: { dbColumn: "created_at", type: "timestamp" },
        displayName: { dbColumn: "display_name", type: "text" }
      }
    },
    {
      entityId: "customers:deals",
      requiredFeatures: ["customers.deals.view"],
      entityConfig: {
        tableName: "customer_deals",
        dateField: "created_at",
        defaultScopeFields: ["tenant_id", "organization_id"]
      },
      fieldMappings: {
        id: { dbColumn: "id", type: "uuid" },
        valueAmount: { dbColumn: "value_amount", type: "numeric" },
        status: { dbColumn: "status", type: "text" },
        pipelineStage: { dbColumn: "pipeline_stage", type: "text" },
        probability: { dbColumn: "probability", type: "numeric" },
        createdAt: { dbColumn: "created_at", type: "timestamp" },
        expectedCloseAt: { dbColumn: "expected_close_at", type: "timestamp" }
      },
      labelResolvers: {
        customerEntityId: { table: "customer_entities", idColumn: "id", labelColumn: "display_name" }
      }
    }
  ]
};
var analytics_default = analyticsConfig;
const config = analyticsConfig;
export {
  analyticsConfig,
  config,
  analytics_default as default
};
//# sourceMappingURL=analytics.js.map
