infrastructure capa

infrastructure-adapters-yelp

Yelp Fusion API adapter — business search + review fetch, emitting domain_reviews::Review directly

Yelp Fusion API adapter — business search + review fetch, emitting domain_reviews::Review directly

Tierinfrastructure
Roleunclassified (baselined)
Pathcrates/infrastructure/adapters-yelp
Edition2021
Targetsinfrastructure_adapters_yelp
Public items0 across 0 modules
Tests24

What it is for

Yelp Fusion API client adapter.

A pure API-client adapter over Yelp Fusion's business-search and review endpoints (https://api.yelp.com/v3), plus a foundation_source_ingest:: SourceIngest implementor that emits real domain_reviews::Review values.

Lifted from plumber/src/collectors/yelp.rs's YelpCollector (Gate 4.5 provenance, see CHANGELOG.md) — fetch glue only. Per this harvest's Gate 0.5 dedup finding, plumber's own models/review.rs::Review type is a full duplicate of domain-reviews's schema (ReviewSource::Yelp, source_id/source_url dedup) and does not survive; neither does the source's business_to_competitor mapping (models::Competitor, its own app-specific persistence shape) or the generic-website review-extraction module. See ingest's module doc for the full SourceIngest determination and the ingest::YelpIngest Review-construction rationale.

# Example

# async fn example() -> Result<(), infrastructure_adapters_yelp::YelpError> {
let client = infrastructure_adapters_yelp::YelpClient::from_api_key("YOUR_API_KEY")?;
let businesses = client.search_businesses("Austin, TX", "bakeries").await?;
for business in &businesses {
let reviews = client.get_reviews(&business.id).await?;
println!("{}: {} reviews", business.name, reviews.len());
}
# Ok(())
# }

Capabilities

No public items.

How to use it

From this crate's own rustdoc:

# async fn example() -> Result<(), infrastructure_adapters_yelp::YelpError> {
let client = infrastructure_adapters_yelp::YelpClient::from_api_key("YOUR_API_KEY")?;
let businesses = client.search_businesses("Austin, TX", "bakeries").await?;
for business in &businesses {
    let reviews = client.get_reviews(&business.id).await?;
    println!("{}: {} reviews", business.name, reviews.len());
}
# Ok(())
# }

Module structure

No public modules: the crate root is its whole surface.

Public surface

No public items.

Re-exports. Exported here, defined elsewhere.

ExportDefined in
YelpClientclient::YelpClient
YelpConfigauth::YelpConfig
YelpErrorerror::YelpError
{YelpApiError,YelpApiErrorEnvelope,YelpBusiness,YelpCategory,YelpCoordinates,YelpLocation,YelpReview,YelpReviewsResponse,YelpSearchResponse,YelpUser,}types::{YelpApiError,YelpApiErrorEnvelope,YelpBusiness,YelpCategory,YelpCoordinates,YelpLocation,YelpReview,YelpReviewsResponse,YelpSearchResponse,YelpUser,}
{YelpIngest,YelpIngestConfig}ingest::{YelpIngest,YelpIngestConfig}

Boundary

Reaches into domain, foundation.

Shares tier infrastructure with 82 other crates: infrastructure-acquire, infrastructure-adapters-google-calendar, infrastructure-adapters-google-gmail, infrastructure-adapters-google-places, infrastructure-adapters-google-trends, infrastructure-adapters-shodan, infrastructure-agent, infrastructure-ai, … (82 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)infrastructure
Architectural role (taxonomy)unclassified (baselined)
Locationcrates/infrastructure/adapters-yelp
Vocabulary in force (lexicon)current

Tier flow. Which tiers this crate's own edges cross.

flowchart LR
  n_infrastructure["infrastructure"] --> n_domain["domain"]
  n_infrastructure["infrastructure"] --> n_foundation["foundation"]

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`domain-reviews`domainnoalways
`foundation-source-ingest`foundationnoalways
`infrastructure-fetcher`infrastructureyesalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
async-trait^0.1noalways
chrono^0.4serdenoalways
reqwest^0.12jsonnoalways
rust_decimal^1serdenoalways
serde^1derivenoalways
serde_json^1noalways
thiserror^2noalways
tokio^1sync, timenoalways
tracing^0.1noalways
uuid^1v4, v7, serde, jsnoalways

Development, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
tokio^1macros, rt-multi-thread, timenoalways
wiremock^0.6noalways

Build. None.

Depended on by. Nothing in this workspace.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  SELF["infrastructure-adapters-yelp"]
  SELF -->|runtime| n_domain_reviews["domain-reviews"]
  SELF -->|runtime| n_foundation_source_ingest["foundation-source-ingest"]
  SELF -->|runtime| n_infrastructure_fetcher["infrastructure-fetcher"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

FeatureEnablesOn by default
defaultsecure-egressyes
secure-egressdep:infrastructure-fetcheryes
flowchart LR
  n_default["default"] --> n_secure_egress["secure-egress"]
  n_secure_egress["secure-egress"] --> n_dep_infrastructure_fetcher["dep:infrastructure-fetcher"]

Targets

KindNameSource
libinfrastructure_adapters_yelp`src/lib.rs`

Error model

No public error type was detected: no public item declares a type named *Error, and no public signature returns one.

Operational characteristics

PropertyEvidence
async public surfacenone detected
async runtimeyes
database accessnone detected
network I/Oyes
unsafe codenone detected
environment variablesnone detected

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.

No workspace crate depends on this one.

Verification

KindCount
Unit tests24
Integration tests0
Examples0
Doctests1

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc00
Public modules with a //! block00

Metrics

MetricValue
Rust source files6
Source lines1040
Code lines729
Public API items0
Public modules0
Tests24
Examples0
Cargo features2
Direct runtime dependencies13
Workspace reverse dependencies0
pie showData
    title Rust source composition
    "Code" : 729
    "Blank or comment" : 311

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

Todas las infrastructure · Manual