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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vulog/aima-config

v1.2.48

Published

Fleet configuration — cities, services, labels, and payment parameters.

Readme

@vulog/aima-config

Fleet configuration — cities, services, labels, and payment parameters.

Installation

npm install @vulog/aima-config @vulog/aima-client @vulog/aima-core

Usage

import { getClient } from '@vulog/aima-client';
import { getCities, getServices, getFleetConf } from '@vulog/aima-config';

const client = getClient({ /* client options */ });

const cities = await getCities(client);
const services = await getServices(client);
const conf = await getFleetConf(client);

API Reference

getCities

getCities(client: Client): Promise<City[]>

Returns cities matching the client's fleetId.

Params: client — Authenticated AIMA client
Returns: Promise<City[]>


getCitiesAllFranchises

getCitiesAllFranchises(client: Client): Promise<(City & { fleetId: string })[]>

Returns all cities across all franchises, each annotated with its fleetId.

Params: client — Authenticated AIMA client
Returns: Promise<(City & { fleetId: string })[]>


getServices

getServices(client: Client): Promise<Service[]>

Returns services matching the client's fleetId.

Params: client — Authenticated AIMA client
Returns: Promise<Service[]>


getServicesAllFranchises

getServicesAllFranchises(client: Client): Promise<(Service & { fleetId: string })[]>

Returns all services across all franchises, each annotated with its fleetId.

Params: client — Authenticated AIMA client
Returns: Promise<(Service & { fleetId: string })[]>


getFleetConf

getFleetConf(client: Client): Promise<FleetConf>

Returns fleet-level configuration.

Params: client — Authenticated AIMA client
Returns: Promise<FleetConf>


getLabels

getLabels(client: Client): Promise<Label[]>

Returns all labels for the fleet.

Params: client — Authenticated AIMA client
Returns: Promise<Label[]>


addLabel

addLabel(client: Client, name: string): Promise<void>

Creates a new label. name must be non-empty.

Params: client — Authenticated AIMA client; name — label name (non-empty)
Returns: Promise<void>


removeLabel

removeLabel(client: Client, labelId: number, cascade?: boolean): Promise<void>

Deletes a label by ID. labelId must be a positive integer. cascade defaults to false; when true, also removes the label from all associated resources.

Params: client — Authenticated AIMA client; labelId — positive integer; cascade — optional, default false
Returns: Promise<void>


getPaymentParameters

getPaymentParameters(
    client: Client,
    serviceId?: string,
    modelId?: string,
    strict?: string
): Promise<PaymentParameters[] | null>

Returns payment parameters, optionally filtered by service and model.

Params: client — Authenticated AIMA client; serviceId — optional; modelId — optional; strict — optional
Returns: Promise<PaymentParameters[] | null>

Types

City

interface City {
    id: string;
    name: string;
    locale: string;
    imagesUrl: string;
    tokenIconsUrl?: string;
    lat: number;
    lon: number;
    zoomLevel: number;
    radius: number;
    termsOfUseUrl: string;
    termsOfUseUpdateDatetime: string;
    faqUrl: string;
    contactPhoneNumber: string;
    agreementsDate: string;
    timeZone: string;
    distanceUnit: string;
    contactUrl: string;
    services: string[];
    zoneId: string;
}

Service

interface Service {
    id: string;
    name: string;
    status: 'ACTIVE' | 'DISABLED';
    type:
        | 'FREE_FLOATING'
        | 'FREE_FLOATING_STRICT'
        | 'SERVICE_TRIP'
        | 'BOOKING'
        | 'ROUND_TRIP_BOOKING'
        | 'BY_PASS_FREE_FLOATING'
        | 'BY_PASS_ROUND_TRIP_BOOKING'
        | 'SUBSCRIPTION'
        | 'SCHEDULED_BOOKING_STATION';
    cityId: string;
    zones: string[];
    vehicles: string[];
    stations: string[];
    pois: string[];
}

FleetConf

interface FleetConf {
    triggerSubscriptionPaymentInHours: number;
    timeZone: string;
}

Label

interface Label {
    id: number;
    name: string;
    createDate: string;
}

PaymentParameters

interface PaymentParameters {
    id: string;
    referenceId: string;
    scope: 'RENTAL';
    flow: 'MANDATORY';
    amountType: 'FIXED' | 'PERCENTAGE';
    amountValue: null | number;
    fleetId: string;
    providePreferredPaymentMethodPspReferences: boolean;
    serviceId?: string;
    modelIds?: string[];
}