corequery 0.31.0 → 0.31.1
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 +2 -2
- package/server/dist/server/api/create-api-router.js +2 -2
- package/server/dist/server/api/create-api-router.js.map +1 -1
- package/server/dist/server/api/handlers/about-page/v1/index.d.ts +4 -4
- package/server/dist/server/api/handlers/about-page/v1/index.js.map +1 -1
- package/server/dist/server/api/handlers/departures/v0/index.d.ts +4 -4
- package/server/dist/server/api/handlers/departures/v0/index.js +1 -1
- package/server/dist/server/api/handlers/departures/v0/index.js.map +1 -1
- package/server/dist/server/api/handlers/foda-synced-handler.d.ts +2 -2
- package/server/dist/server/api/handlers/foda-synced-handler.js.map +1 -1
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-foda.d.ts +3 -3
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-foda.js +2 -2
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-foda.js.map +1 -1
- 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 +4 -4
- package/server/dist/server/api/handlers/foundational-data/v1/index.js.map +1 -1
- package/server/dist/server/api/handlers/service/v0/index.d.ts +4 -4
- package/server/dist/server/api/handlers/service/v0/index.js +1 -1
- package/server/dist/server/api/handlers/service/v0/index.js.map +1 -1
- package/server/dist/server/api/handlers/version-check/v1/index.d.ts +4 -4
- package/server/dist/server/api/handlers/version-check/v1/index.js.map +1 -1
- package/server/dist/server/api/handlers/versions/v1/index.d.ts +4 -4
- package/server/dist/server/api/handlers/versions/v1/index.js.map +1 -1
- package/server/dist/server/api/types.d.ts +5 -5
- 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/corequery.js.map +1 -1
- 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 +4 -4
- package/server/dist/server/web-server/web-server.js +2 -2
- package/server/dist/server/web-server/web-server.js.map +1 -1
- 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,6 +1,6 @@
|
|
|
1
|
-
import {} from "
|
|
1
|
+
import {} from "@/server/data/color.js";
|
|
2
2
|
import { unique } from "@dan-schel/js-utils";
|
|
3
|
-
import { extractStopsFromLineDiagramShape } from "
|
|
3
|
+
import { extractStopsFromLineDiagramShape } from "@/server/config/helpers/extract-stops-from-line-diagram-shape.js";
|
|
4
4
|
const includedInStopListMapping = {
|
|
5
5
|
"regular": true,
|
|
6
6
|
"always-express": false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LineDiagramEntry } from "
|
|
2
|
-
import type { LineDiagramConfig } from "
|
|
1
|
+
import { LineDiagramEntry } from "@/server/data/line-diagram-entry.js";
|
|
2
|
+
import type { LineDiagramConfig } from "@/server/config/index.js";
|
|
3
3
|
type LineDiagramFields = {
|
|
4
4
|
readonly entries: LineDiagramEntry[];
|
|
5
5
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { LineConfig, TagSuccessionConfig } from "
|
|
2
|
-
import { Tags } from "
|
|
3
|
-
import { type Color } from "
|
|
4
|
-
import { LineDiagram } from "
|
|
1
|
+
import type { LineConfig, TagSuccessionConfig } from "@/server/config/index.js";
|
|
2
|
+
import { Tags } from "@/server/data/tags.js";
|
|
3
|
+
import { type Color } from "@/server/data/color.js";
|
|
4
|
+
import { LineDiagram } from "@/server/data/line-diagram.js";
|
|
5
5
|
type LineFields = {
|
|
6
6
|
readonly id: number;
|
|
7
7
|
readonly name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Tags } from "
|
|
2
|
-
import {} from "
|
|
3
|
-
import { LineDiagram } from "
|
|
1
|
+
import { Tags } from "@/server/data/tags.js";
|
|
2
|
+
import {} from "@/server/data/color.js";
|
|
3
|
+
import { LineDiagram } from "@/server/data/line-diagram.js";
|
|
4
4
|
export class Line {
|
|
5
5
|
id;
|
|
6
6
|
name;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { EntireVehicleFormsServiceConnection } from "
|
|
2
|
-
import type { GenericConnection } from "
|
|
1
|
+
import type { EntireVehicleFormsServiceConnection } from "@/server/data/service/connection/entire-vehicle-forms-service-connection.js";
|
|
2
|
+
import type { GenericConnection } from "@/server/data/service/connection/generic-connection.js";
|
|
3
3
|
export type ServiceConnection = EntireVehicleFormsServiceConnection | GenericConnection;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Service } from "
|
|
2
|
-
import type { ServiceServicingMovement } from "
|
|
1
|
+
import type { Service } from "@/server/data/service/service.js";
|
|
2
|
+
import type { ServiceServicingMovement } from "@/server/data/service/service-movement.js";
|
|
3
3
|
type DepartureFields = {
|
|
4
4
|
readonly service: Service;
|
|
5
5
|
readonly movementIndex: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ServiceOriginatingMovement } from "
|
|
2
|
-
import type { ServicePassingMovement } from "
|
|
3
|
-
import type { ServiceRegularMovement } from "
|
|
4
|
-
import type { ServiceTerminatingMovement } from "
|
|
1
|
+
import type { ServiceOriginatingMovement } from "@/server/data/service/service-originating-movement.js";
|
|
2
|
+
import type { ServicePassingMovement } from "@/server/data/service/service-passing-movement.js";
|
|
3
|
+
import type { ServiceRegularMovement } from "@/server/data/service/service-regular-movement.js";
|
|
4
|
+
import type { ServiceTerminatingMovement } from "@/server/data/service/service-terminating-movement.js";
|
|
5
5
|
export type ServiceMovement = ServiceOriginatingMovement | ServiceRegularMovement | ServiceTerminatingMovement | ServicePassingMovement;
|
|
6
6
|
export type ServiceServicingMovement = ServiceOriginatingMovement | ServiceRegularMovement | ServiceTerminatingMovement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ServiceSourcesConfig } from "
|
|
2
|
-
import type { DeparturesIterationDirection, ServiceSource } from "
|
|
3
|
-
import { ZipperDeparturesIterator } from "
|
|
1
|
+
import type { ServiceSourcesConfig } from "@/server/config/index.js";
|
|
2
|
+
import type { DeparturesIterationDirection, ServiceSource } from "@/server/data/service/service-source.js";
|
|
3
|
+
import { ZipperDeparturesIterator } from "@/server/data/service/zipper-departures-iterator.js";
|
|
4
4
|
export declare class ServiceRepository {
|
|
5
5
|
private readonly _sources;
|
|
6
6
|
constructor(_sources: readonly ServiceSource[]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Service } from "
|
|
2
|
-
import type { Departure } from "
|
|
1
|
+
import type { Service } from "@/server/data/service/service.js";
|
|
2
|
+
import type { Departure } from "@/server/data/service/departure.js";
|
|
3
3
|
export type DeparturesIterationDirection = "forwards" | "backwards";
|
|
4
4
|
export type DeparturesIterator = {
|
|
5
5
|
peek: () => Promise<Departure | null>;
|
|
@@ -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 "@/server/data/tags.js";
|
|
2
|
+
import type { ServiceMovement } from "@/server/data/service/service-movement.js";
|
|
3
|
+
import type { ServiceConnection } from "@/server/data/service/connection/service-connection.js";
|
|
4
|
+
import type { EntireVehicleFormsServiceConnection } from "@/server/data/service/connection/entire-vehicle-forms-service-connection.js";
|
|
5
|
+
import type { ServiceOriginatingMovement } from "@/server/data/service/service-originating-movement.js";
|
|
6
|
+
import type { ServiceTerminatingMovement } from "@/server/data/service/service-terminating-movement.js";
|
|
7
|
+
import { type Color } from "@/server/data/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 "@/server/data/service/service-source.js";
|
|
2
|
+
import type { Departure } from "@/server/data/service/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 "@/server/data/stop.js";
|
|
3
|
+
import type { GetCanonicalLinesServingStopConfig, StopConfig, TagSuccessionConfig } from "@/server/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 "@/server/data/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 "@/server/config/index.js";
|
|
2
|
+
import { Tags } from "@/server/data/tags.js";
|
|
3
|
+
import { Location } from "@/server/data/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 "@/server/logger/general-log-category.js";
|
|
2
|
+
import { WebServerLogCategory } from "@/server/logger/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 "@/server/logger/general-log-category.js";
|
|
2
|
+
import { WebServerLogCategory } from "@/server/logger/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 "@/server/web-server/index-html-preparer.js";
|
|
2
|
+
import { ManifestPreparer } from "@/server/web-server/manifest-preparer.js";
|
|
3
|
+
import { IconsPreparer } from "@/server/web-server/icons-preparer.js";
|
|
4
|
+
import { ServiceWorkerPreparer } from "@/server/web-server/service-worker-preparer.js";
|
|
5
5
|
export class AssetPreparer {
|
|
6
6
|
_distFolderPath;
|
|
7
7
|
_config;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { Corequery } from "
|
|
2
|
-
import type { AssetConfig } from "
|
|
1
|
+
import type { Corequery } from "@/server/corequery.js";
|
|
2
|
+
import type { AssetConfig } from "@/server/config/types/asset-config.js";
|
|
3
3
|
type ClientMode = "dist-folder" | "vite-middleware";
|
|
4
|
-
export declare class WebServer {
|
|
4
|
+
export declare class WebServer<CustomContextType> {
|
|
5
5
|
private readonly _app;
|
|
6
6
|
private readonly _port;
|
|
7
7
|
private readonly _assetConfig;
|
|
8
8
|
private readonly _clientMode;
|
|
9
9
|
private readonly _serverFolderPath;
|
|
10
10
|
private _frontendVersion;
|
|
11
|
-
constructor(_app: Corequery
|
|
11
|
+
constructor(_app: Corequery<CustomContextType>, _port: number, _assetConfig: AssetConfig, _clientMode: ClientMode, _serverFolderPath: string);
|
|
12
12
|
prepareAssets(): Promise<void>;
|
|
13
13
|
start(): Promise<void>;
|
|
14
14
|
getFrontendVersion(): string;
|
|
@@ -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 "@/server/web-server/asset-preparer.js";
|
|
5
|
+
import { createApiRouter } from "@/server/api/create-api-router.js";
|
|
6
6
|
export class WebServer {
|
|
7
7
|
_app;
|
|
8
8
|
_port;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-server.js","sourceRoot":"","sources":["../../../web-server/web-server.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,GAAG,MAAM,aAAa,CAAC;AAC9B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAIpE,MAAM,OAAO,SAAS;IAID;IACA;IACA;IACA;IACA;IAPX,gBAAgB,CAAgB;IAExC,YACmB,
|
|
1
|
+
{"version":3,"file":"web-server.js","sourceRoot":"","sources":["../../../web-server/web-server.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,GAAG,MAAM,aAAa,CAAC;AAC9B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,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Aa,GAAG,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;QAChE,MAAM,SAAS,GAAG,MAAM,GAAG,CAAC,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QAC7D,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;YAC/B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACtE,CAAC,CAAC,CAAC;IACL,CAAC;IAEO,KAAK,CAAC,iCAAiC,CAAC,MAAuB;QACrE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,mBAAmB,EAAE,CAAC;QAE9C,uEAAuE;QACvE,2EAA2E;QAC3E,sBAAsB;QACtB,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC;QAE9C,MAAM,IAAI,GAAG,MAAM,YAAY,CAAC;YAC9B,MAAM,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE;YAChC,IAAI,EAAE,IAAI,CAAC,iBAAiB,EAAE;SAC/B,CAAC,CAAC;QACH,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC/B,CAAC;IAEO,iBAAiB,CAAC,YAAoB,EAAE;QAC9C,OAAO,IAAI,CAAC,OAAO,CACjB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,cAAc,CAAC,EACpD,SAAS,CACV,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
|
-
import { createFodaSyncedResultSchema } from "
|
|
2
|
+
import { createFodaSyncedResultSchema } from "@/shared/apis/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 "@/shared/apis/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.
|