UNPKG

s2-tools

Version:

A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.

207 lines 6.83 kB
/** * # GBFS System Pricing Plans Schema V1.1 OR GBFS System Pricing Plans Schema V1.0 * Describes the pricing schemes of the system. * * ## Links * - [GBFS Specification V1.1](https://github.com/MobilityData/gbfs/blob/v1.1/gbfs.md#system_pricing_plansjson) * - [GBFS Specification V1.0](https://github.com/MobilityData/gbfs/blob/v1.0/gbfs.md#system_pricing_plansjson) */ export type GBFSSystemPricingPlansV1 = GBFSSystemPricingPlansV11 | GBFSSystemPricingPlansV10; /** * # GBFS System Pricing Plans Schema V1.1 * Describes the pricing schemes of the system. * * ## Links * - [GBFS Specification V1.1](https://github.com/MobilityData/gbfs/blob/v1.1/gbfs.md#system_pricing_plansjson) */ export declare const gbfsSystemPricingPlansSchemaV11: { $schema: string; $id: string; description: string; type: string; properties: { last_updated: { description: string; type: string; minimum: number; }; ttl: { description: string; type: string; minimum: number; }; version: { description: string; type: string; const: string; }; data: { description: string; type: string; properties: { plans: { type: string; items: { type: string; properties: { plan_id: { description: string; type: string; }; url: { description: string; type: string; format: string; }; name: { description: string; type: string; }; currency: { description: string; type: string; pattern: string; }; price: { description: string; type: string; minimum: number; }; is_taxable: { description: string; type: string; minimum: number; maximum: number; }; description: { description: string; type: string; }; }; required: string[]; }; }; }; required: string[]; }; }; required: string[]; }; /** * GBFS System Pricing Plans Schema V1.1 Interface */ export interface GBFSSystemPricingPlansV11 { /** Last time the data in the feed was updated in POSIX time. */ last_updated: number; /** Number of seconds before the data in the feed will be updated again. */ ttl: number; /** GBFS version number (1.1). */ version: '1.1'; /** Data containing pricing plans of the system. */ data: { plans: Array<{ plan_id: string; url?: string; name: string; currency: string; price: number; is_taxable: number; description: string; }>; }; } /** * # GBFS System Pricing Plans Schema V1.0 * Describes the pricing schemes of the system. * * ## Links * - [GBFS Specification V1.0](https://github.com/MobilityData/gbfs/blob/v1.0/gbfs.md#system_pricing_plansjson) */ export declare const gbfsSystemPricingPlansSchemaV10: { $schema: string; $id: string; description: string; type: string; properties: { last_updated: { description: string; type: string; minimum: number; maximum: number; }; ttl: { description: string; type: string; minimum: number; }; data: { description: string; type: string; properties: { plans: { type: string; items: { type: string; properties: { plan_id: { description: string; type: string; }; url: { description: string; type: string; }; name: { description: string; type: string; }; currency: { description: string; type: string; minLength: number; maxLength: number; }; price: { description: string; type: string; }; is_taxable: { description: string; type: string; }; description: { description: string; type: string; }; }; required: string[]; }; }; }; required: string[]; }; }; required: string[]; }; /** * GBFS System Pricing Plans Schema V1.0 Interface */ export interface GBFSSystemPricingPlansV10 { /** Last time the data in the feed was updated in POSIX time. */ last_updated: number; /** Number of seconds before the data in the feed will be updated again. */ ttl: number; /** Data containing pricing plans of the system. */ data: { plans: Array<{ plan_id: string; url?: string; name: string; currency: string; price: number; is_taxable: number; description: string; }>; }; } //# sourceMappingURL=systemPricingPlans.d.ts.map