npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@datafire/mercedes_benz_dealer

v3.0.0

Published

DataFire integration for Dealer

Downloads

5

Readme

@datafire/mercedes_benz_dealer

Client library for Dealer

Installation and Usage

npm install --save @datafire/mercedes_benz_dealer
let mercedes_benz_dealer = require('@datafire/mercedes_benz_dealer').create();

.then(data => {
  console.log(data);
});

Description

The Dealer API provides Dealer search functions.

Actions

countriesGET

This request returns the countries supported by the Dealer API

mercedes_benz_dealer.countriesGET({}, context)

Input

  • input object
    • page integer: The index of the page to be returned. If this parameter is omitted, the first page will be returned.
    • pageSize integer: The index of the page to be returned. If this parameter is omitted, the first page will be returned.

Output

dealersGET

This request returns dealers (dealer, garage, retailer, etc.) for given parameters

mercedes_benz_dealer.dealersGET({}, context)

Input

  • input object
    • dealerIds array: Array of dealer ids. The dealer id is dealer’s business key, also known as GS Id. e.g. GS0000857,GS0017621
    • latitude number: The latitude geo coordinate.
    • longitude number: The longitude geo coordinate.
    • radiusValue integer: The radius value of the search area. The center of the search area is defined by geo coordinates. (latitude, longitude properties) If radiusValue and radiusUnit parameters are missing, then the default radius is 10 km.
    • radiusUnit string (values: M, KM, MILE): The radius unit of the search area. The center of the search area is defined by geo coordinates. (latitude, longitude properties) If radiusValue and radiusUnit parameters are missing, then the default radius is 10 km.
    • countryIsoCode string: The country of the dealer address defined as ISO two letter ID (e.g. DE, CH, CN, etc.)
    • city string: The city of the dealer address.
    • name string: A name of the dealer, the name filter will be applied to all Dealer names (e.g. legalName, nameAddition). You can also search for parts of Dealer names, e.g. the search term 'Niederlassung' will also match 'Niederlassung Stuttgart'.
    • brand string (values: MB, SMT): Filter by brand, valid values are:
    • productGroup string (values: PASSENGER-CAR, VAN): Filter by a product group
    • activity string (values: PARTS, SALES, SERVICE, USED-VEHICLES-TRADE): Filter by activity, valid actitvity values are:
    • fields string: Specifies which fields should be included in the result. If this filter is not used, per default all fields are returned. e.g. fields=dealers(dealerId,address(street,city))
    • page integer: The index of the page to be returned. If this parameter is omitted, the first page will be returned.
    • pageSize integer: The index of the page to be returned. If this parameter is omitted, the first page will be returned.

Output

dealerGET

This request returns dealers for given parameters

mercedes_benz_dealer.dealerGET({
  "dealerId": ""
}, context)

Input

  • input object
    • dealerId required string: The dealer id is dealer’s business key, also known as GS Id. e.g. GS0000857
    • fields string: Specifies which fields should be included in the result. If this filter is not used, per default all fields are returned. e.g. fields=dealerId,address(street,city)

Output

Definitions

ActivityOfAFunction

  • ActivityOfAFunction object
    • code required string: The activity of the dealer, valid actitvity values are:
    • name required string: the corresponding activity name

Address

  • Address object
    • addressAddition string: address addition
    • city string: city
    • countryIsoCode string: ISO A2 country code
    • district string: district, area of city
    • street string: street and house number, if applicable
    • zipCode string: postal code

Brand

  • Brand object
    • code required string: brand qualifier
    • name required string: brand name

BrandCode

  • BrandCode object

CommunicationChannels

  • CommunicationChannels object

Country

  • Country object
    • countryId required string: the country id
    • isoCode required string: the country iso code
    • name required string: the country name

Dealer

  • Dealer object: the representation of an dealer

DefaultLinks

  • DefaultLinks object: default links

Function

FunctionOpeningHours

General

  • General object
    • email string: general email address
    • facebook string: general facebook URL
    • fax string: general fax number
    • googlePlus string: general googlePlus account name
    • mobile string: general mobile phone number
    • phone string: general phone number
    • twitter string: general twitter account name
    • website string: general website

GeoCoordinates

  • GeoCoordinates object
    • latitude required number: latitude - in decimal degrees
    • longitude required number: longitude - in decimal degrees

HalifiedCountries

  • HalifiedCountries object: countries and navigation links for additional results.

HalifiedDealers

  • HalifiedDealers object: dealer with navigation links.

Link

  • Link object: the representation of a link
    • href required string: the target of the link

Periods

  • Periods object
    • from required string: from
    • until required string: until

ProductGroupOfAFunction

  • ProductGroupOfAFunction object
    • code required string: The product group code, valid values are:
    • name required string: product group name

RegionRepresentation

  • RegionRepresentation object
    • region string: region
    • subRegion string: subregion

SelfLink

  • SelfLink object: self links

TheDistance

  • TheDistance object
    • unit string (values: M, KM, MILE): unit of length
    • value required number: numeric amount of distance

WeekdayInfo

  • WeekdayInfo object
    • periods array: time periods
    • status string (values: OPEN, CLOSED): status (OPEN or CLOSED)

Weekdays