corequery 0.31.1 → 0.31.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/dist/server/api/create-api-router.d.ts +1 -1
- package/server/dist/server/api/create-api-router.js +2 -2
- package/server/dist/server/api/handlers/about-page/v1/index.d.ts +3 -3
- package/server/dist/server/api/handlers/departures/v0/index.d.ts +3 -3
- package/server/dist/server/api/handlers/departures/v0/index.js +1 -1
- package/server/dist/server/api/handlers/foda-synced-handler.d.ts +1 -1
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-foda.d.ts +2 -2
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-foda.js +2 -2
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-line-diagram-entry-foda.d.ts +2 -2
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-line-diagram-entry-foda.js +1 -1
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-line-diagram-foda.d.ts +2 -2
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-line-diagram-foda.js +1 -1
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-line-foda.d.ts +2 -2
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-line-foda.js +2 -2
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-stop-foda.d.ts +2 -2
- package/server/dist/server/api/handlers/foundational-data/v1/index.d.ts +3 -3
- package/server/dist/server/api/handlers/service/v0/index.d.ts +3 -3
- package/server/dist/server/api/handlers/service/v0/index.js +1 -1
- package/server/dist/server/api/handlers/version-check/v1/index.d.ts +3 -3
- package/server/dist/server/api/handlers/versions/v1/index.d.ts +3 -3
- package/server/dist/server/api/types.d.ts +2 -2
- package/server/dist/server/config/config.d.ts +4 -4
- package/server/dist/server/config/helpers/create-canonical-lines-serving-stop-algorithm.d.ts +3 -3
- package/server/dist/server/config/helpers/create-canonical-lines-serving-stop-algorithm.js +2 -2
- package/server/dist/server/config/helpers/extract-stops-from-line-diagram-shape.d.ts +2 -2
- package/server/dist/server/config/linting/line/all-or-none-codes.d.ts +3 -3
- package/server/dist/server/config/linting/line/all-or-none-codes.js +2 -2
- package/server/dist/server/config/linting/line/all-or-none-colors.d.ts +3 -3
- package/server/dist/server/config/linting/line/all-or-none-colors.js +2 -2
- package/server/dist/server/config/linting/line/diagram/entry-minimum-stops.d.ts +2 -2
- package/server/dist/server/config/linting/line/diagram/entry-minimum-stops.js +2 -2
- package/server/dist/server/config/linting/line/diagram/has-entries.d.ts +3 -3
- package/server/dist/server/config/linting/line/diagram/has-entries.js +1 -1
- package/server/dist/server/config/linting/line/diagram/index.d.ts +4 -4
- package/server/dist/server/config/linting/line/diagram/index.js +3 -3
- package/server/dist/server/config/linting/line/diagram/stops-exist.d.ts +3 -3
- package/server/dist/server/config/linting/line/diagram/stops-exist.js +3 -3
- package/server/dist/server/config/linting/line/index.d.ts +4 -4
- package/server/dist/server/config/linting/line/index.js +11 -11
- package/server/dist/server/config/linting/line/no-duplicate-tags.d.ts +2 -2
- package/server/dist/server/config/linting/line/no-duplicate-tags.js +2 -2
- package/server/dist/server/config/linting/line/non-empty-code.d.ts +2 -2
- package/server/dist/server/config/linting/line/non-empty-code.js +1 -1
- package/server/dist/server/config/linting/line/non-empty-name.d.ts +2 -2
- package/server/dist/server/config/linting/line/non-empty-name.js +1 -1
- package/server/dist/server/config/linting/line/non-empty-url-path.d.ts +2 -2
- package/server/dist/server/config/linting/line/non-empty-url-path.js +1 -1
- package/server/dist/server/config/linting/line/unique-codes.d.ts +3 -3
- package/server/dist/server/config/linting/line/unique-codes.js +2 -2
- package/server/dist/server/config/linting/line/unique-ids.d.ts +2 -2
- package/server/dist/server/config/linting/line/unique-ids.js +2 -2
- package/server/dist/server/config/linting/line/unique-names.d.ts +3 -3
- package/server/dist/server/config/linting/line/unique-names.js +2 -2
- package/server/dist/server/config/linting/line/unique-url-paths.d.ts +2 -2
- package/server/dist/server/config/linting/line/unique-url-paths.js +2 -2
- package/server/dist/server/config/linting/lines-page/all-lines-listed.d.ts +5 -5
- package/server/dist/server/config/linting/lines-page/all-lines-listed.js +2 -2
- package/server/dist/server/config/linting/lines-page/index.d.ts +5 -5
- package/server/dist/server/config/linting/lines-page/index.js +2 -2
- package/server/dist/server/config/linting/lines-page/no-duplicate-lines.d.ts +5 -5
- package/server/dist/server/config/linting/lines-page/no-duplicate-lines.js +2 -2
- package/server/dist/server/config/linting/lint.d.ts +1 -1
- package/server/dist/server/config/linting/lint.js +5 -5
- package/server/dist/server/config/linting/stop/all-or-none-locations.d.ts +3 -3
- package/server/dist/server/config/linting/stop/all-or-none-locations.js +2 -2
- package/server/dist/server/config/linting/stop/all-or-none-positions.d.ts +3 -3
- package/server/dist/server/config/linting/stop/all-or-none-positions.js +2 -2
- package/server/dist/server/config/linting/stop/appears-in-diagrams.d.ts +4 -4
- package/server/dist/server/config/linting/stop/appears-in-diagrams.js +2 -2
- package/server/dist/server/config/linting/stop/index.d.ts +4 -4
- package/server/dist/server/config/linting/stop/index.js +10 -10
- package/server/dist/server/config/linting/stop/no-duplicate-tags.d.ts +2 -2
- package/server/dist/server/config/linting/stop/no-duplicate-tags.js +2 -2
- package/server/dist/server/config/linting/stop/non-empty-name.d.ts +2 -2
- package/server/dist/server/config/linting/stop/non-empty-name.js +1 -1
- package/server/dist/server/config/linting/stop/non-empty-url-path.d.ts +2 -2
- package/server/dist/server/config/linting/stop/non-empty-url-path.js +1 -1
- package/server/dist/server/config/linting/stop/position/index.d.ts +3 -3
- package/server/dist/server/config/linting/stop/position/index.js +3 -3
- package/server/dist/server/config/linting/stop/position/non-empty-name.d.ts +2 -2
- package/server/dist/server/config/linting/stop/position/non-empty-name.js +1 -1
- package/server/dist/server/config/linting/stop/position/unique-ids.d.ts +2 -2
- package/server/dist/server/config/linting/stop/position/unique-ids.js +2 -2
- package/server/dist/server/config/linting/stop/position/unique-names.d.ts +3 -3
- package/server/dist/server/config/linting/stop/position/unique-names.js +2 -2
- package/server/dist/server/config/linting/stop/unique-ids.d.ts +2 -2
- package/server/dist/server/config/linting/stop/unique-ids.js +2 -2
- package/server/dist/server/config/linting/stop/unique-names.d.ts +3 -3
- package/server/dist/server/config/linting/stop/unique-names.js +2 -2
- package/server/dist/server/config/linting/stop/unique-url-paths.d.ts +2 -2
- package/server/dist/server/config/linting/stop/unique-url-paths.js +2 -2
- package/server/dist/server/config/linting/tags/index.d.ts +2 -2
- package/server/dist/server/config/linting/tags/index.js +1 -1
- package/server/dist/server/config/linting/tags/no-duplicates-in-succession.d.ts +2 -2
- package/server/dist/server/config/linting/tags/no-duplicates-in-succession.js +2 -2
- package/server/dist/server/config/linting/types.d.ts +1 -1
- package/server/dist/server/config/linting/utils/issue-collector.d.ts +1 -1
- package/server/dist/server/config/types/line-config.d.ts +1 -1
- package/server/dist/server/config/types/service-sources-config.d.ts +1 -1
- package/server/dist/server/corequery.d.ts +7 -7
- package/server/dist/server/corequery.js +8 -8
- package/server/dist/server/data/line-collection.d.ts +3 -3
- package/server/dist/server/data/line-collection.js +2 -2
- package/server/dist/server/data/line-diagram-entry.d.ts +2 -2
- package/server/dist/server/data/line-diagram-entry.js +2 -2
- package/server/dist/server/data/line-diagram.d.ts +2 -2
- package/server/dist/server/data/line-diagram.js +1 -1
- package/server/dist/server/data/line.d.ts +4 -4
- package/server/dist/server/data/line.js +3 -3
- package/server/dist/server/data/service/connection/service-connection.d.ts +2 -2
- package/server/dist/server/data/service/departure.d.ts +2 -2
- package/server/dist/server/data/service/service-movement.d.ts +4 -4
- package/server/dist/server/data/service/service-originating-movement.d.ts +1 -1
- package/server/dist/server/data/service/service-regular-movement.d.ts +1 -1
- package/server/dist/server/data/service/service-repository.d.ts +3 -3
- package/server/dist/server/data/service/service-repository.js +1 -1
- package/server/dist/server/data/service/service-source.d.ts +2 -2
- package/server/dist/server/data/service/service-terminating-movement.d.ts +1 -1
- package/server/dist/server/data/service/service.d.ts +7 -7
- package/server/dist/server/data/service/service.js +1 -1
- package/server/dist/server/data/service/zipper-departures-iterator.d.ts +2 -2
- package/server/dist/server/data/stop-collection.d.ts +3 -3
- package/server/dist/server/data/stop-collection.js +2 -2
- package/server/dist/server/data/stop.d.ts +3 -3
- package/server/dist/server/data/stop.js +2 -2
- package/server/dist/server/data/tags.d.ts +1 -1
- package/server/dist/server/get-corequery-package-version.js +1 -1
- package/server/dist/server/logger/console-logger.d.ts +1 -1
- package/server/dist/server/logger/console-logger.js +1 -1
- package/server/dist/server/logger/logger.d.ts +2 -2
- package/server/dist/server/logger/logger.js +2 -2
- package/server/dist/server/web-server/asset-preparer.d.ts +1 -1
- package/server/dist/server/web-server/asset-preparer.js +4 -4
- package/server/dist/server/web-server/web-server.d.ts +2 -2
- package/server/dist/server/web-server/web-server.js +2 -2
- package/server/dist/shared/apis/about-page/v1/index.d.ts +1 -1
- package/server/dist/shared/apis/departures/v0/index.d.ts +1 -1
- package/server/dist/shared/apis/departures/v0/index.js +1 -1
- package/server/dist/shared/apis/foundational-data/v1/index.d.ts +1 -1
- package/server/dist/shared/apis/foundational-data/v1/index.js +1 -1
- package/server/dist/shared/apis/service/v0/index.d.ts +1 -1
- package/server/dist/shared/apis/service/v0/index.js +1 -1
- package/server/dist/shared/apis/version-check/v1/index.d.ts +1 -1
- package/server/dist/shared/apis/versions/v1/index.d.ts +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Tags } from "
|
|
2
|
-
import type { ServiceMovement } from "
|
|
3
|
-
import type { ServiceConnection } from "
|
|
4
|
-
import type { EntireVehicleFormsServiceConnection } from "
|
|
5
|
-
import type { ServiceOriginatingMovement } from "
|
|
6
|
-
import type { ServiceTerminatingMovement } from "
|
|
7
|
-
import { type Color } from "
|
|
1
|
+
import type { Tags } from "../tags.js";
|
|
2
|
+
import type { ServiceMovement } from "./service-movement.js";
|
|
3
|
+
import type { ServiceConnection } from "./connection/service-connection.js";
|
|
4
|
+
import type { EntireVehicleFormsServiceConnection } from "./connection/entire-vehicle-forms-service-connection.js";
|
|
5
|
+
import type { ServiceOriginatingMovement } from "./service-originating-movement.js";
|
|
6
|
+
import type { ServiceTerminatingMovement } from "./service-terminating-movement.js";
|
|
7
|
+
import { type Color } from "../color.js";
|
|
8
8
|
type ServiceLiveDataType = "scheduled" | "updated" | "added";
|
|
9
9
|
type ServiceFields = {
|
|
10
10
|
readonly sourceId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DeparturesIterationDirection, DeparturesIterator } from "
|
|
2
|
-
import type { Departure } from "
|
|
1
|
+
import type { DeparturesIterationDirection, DeparturesIterator } from "./service-source.js";
|
|
2
|
+
import type { Departure } from "./departure.js";
|
|
3
3
|
export declare class ZipperDeparturesIterator implements DeparturesIterator {
|
|
4
4
|
private readonly _iterators;
|
|
5
5
|
private readonly _direction;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Collection } from "
|
|
2
|
-
import { Stop } from "
|
|
3
|
-
import type { GetCanonicalLinesServingStopConfig, StopConfig, TagSuccessionConfig } from "
|
|
1
|
+
import { Collection } from "../../shared/data/collection.js";
|
|
2
|
+
import { Stop } from "./stop.js";
|
|
3
|
+
import type { GetCanonicalLinesServingStopConfig, StopConfig, TagSuccessionConfig } from "../config/index.js";
|
|
4
4
|
export declare class StopCollection extends Collection<number, Stop> {
|
|
5
5
|
static build(stops: readonly StopConfig[], stopTagSuccession: TagSuccessionConfig, getCanonicalLinesServingStop: GetCanonicalLinesServingStopConfig): StopCollection;
|
|
6
6
|
protected _getID(item: Stop): number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Collection } from "
|
|
2
|
-
import { Stop } from "
|
|
1
|
+
import { Collection } from "../../shared/data/collection.js";
|
|
2
|
+
import { Stop } from "./stop.js";
|
|
3
3
|
export class StopCollection extends Collection {
|
|
4
4
|
static build(stops, stopTagSuccession, getCanonicalLinesServingStop) {
|
|
5
5
|
return new StopCollection(stops.map((s) => Stop.build(s, stopTagSuccession, getCanonicalLinesServingStop(s.id))));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { StopConfig, TagSuccessionConfig } from "
|
|
2
|
-
import { Tags } from "
|
|
3
|
-
import { Location } from "
|
|
1
|
+
import type { StopConfig, TagSuccessionConfig } from "../config/index.js";
|
|
2
|
+
import { Tags } from "./tags.js";
|
|
3
|
+
import { Location } from "./location.js";
|
|
4
4
|
type StopFields = {
|
|
5
5
|
readonly id: number;
|
|
6
6
|
readonly name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GeneralLogCategory } from "
|
|
2
|
-
import { WebServerLogCategory } from "
|
|
1
|
+
import { GeneralLogCategory } from "./general-log-category.js";
|
|
2
|
+
import { WebServerLogCategory } from "./web-server-log-category.js";
|
|
3
3
|
export declare abstract class Logger {
|
|
4
4
|
readonly general: GeneralLogCategory;
|
|
5
5
|
readonly webServer: WebServerLogCategory;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GeneralLogCategory } from "
|
|
2
|
-
import { WebServerLogCategory } from "
|
|
1
|
+
import { GeneralLogCategory } from "./general-log-category.js";
|
|
2
|
+
import { WebServerLogCategory } from "./web-server-log-category.js";
|
|
3
3
|
export class Logger {
|
|
4
4
|
general;
|
|
5
5
|
webServer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IndexHtmlPreparer } from "
|
|
2
|
-
import { ManifestPreparer } from "
|
|
3
|
-
import { IconsPreparer } from "
|
|
4
|
-
import { ServiceWorkerPreparer } from "
|
|
1
|
+
import { IndexHtmlPreparer } from "./index-html-preparer.js";
|
|
2
|
+
import { ManifestPreparer } from "./manifest-preparer.js";
|
|
3
|
+
import { IconsPreparer } from "./icons-preparer.js";
|
|
4
|
+
import { ServiceWorkerPreparer } from "./service-worker-preparer.js";
|
|
5
5
|
export class AssetPreparer {
|
|
6
6
|
_distFolderPath;
|
|
7
7
|
_config;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Corequery } from "
|
|
2
|
-
import type { AssetConfig } from "
|
|
1
|
+
import type { Corequery } from "../corequery.js";
|
|
2
|
+
import type { AssetConfig } from "../config/types/asset-config.js";
|
|
3
3
|
type ClientMode = "dist-folder" | "vite-middleware";
|
|
4
4
|
export declare class WebServer<CustomContextType> {
|
|
5
5
|
private readonly _app;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import express from "express";
|
|
2
2
|
import fsp from "fs/promises";
|
|
3
3
|
import path from "path";
|
|
4
|
-
import { AssetPreparer } from "
|
|
5
|
-
import { createApiRouter } from "
|
|
4
|
+
import { AssetPreparer } from "./asset-preparer.js";
|
|
5
|
+
import { createApiRouter } from "../api/create-api-router.js";
|
|
6
6
|
export class WebServer {
|
|
7
7
|
_app;
|
|
8
8
|
_port;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
|
-
import { createFodaSyncedResultSchema } from "
|
|
2
|
+
import { createFodaSyncedResultSchema } from "../../foda-synced-result.js";
|
|
3
3
|
// NOTE: This is a "v0" API, i.e. its not intended to be used by anyone except
|
|
4
4
|
// me, during the "beta" phase. When we switch to "v1" it'll break compatibility
|
|
5
5
|
// with frontends that only understand the v0 API, and that's A-OK.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
|
-
import { createFodaSyncedResultSchema } from "
|
|
2
|
+
import { createFodaSyncedResultSchema } from "../../foda-synced-result.js";
|
|
3
3
|
// NOTE: This is a "v0" API, i.e. its not intended to be used by anyone except
|
|
4
4
|
// me, during the "beta" phase. When we switch to "v1" it'll break compatibility
|
|
5
5
|
// with frontends that only understand the v0 API, and that's A-OK.
|