corequery 0.2.0 → 0.4.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corequery",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "server/dist",
@@ -5,6 +5,7 @@ import type { LandingPageConfig } from "./landing-page-config.js";
5
5
  import type { LineConfig } from "./line-config.js";
6
6
  import type { LinesPageConfig } from "./lines-page-config.js";
7
7
  import type { StopConfig } from "./stop-config.js";
8
+ import type { TagsConfig } from "./tags-config.js";
8
9
  import type { Terminology } from "./terminology.js";
9
10
  export type CorequeryConfig = {
10
11
  readonly port: number;
@@ -16,4 +17,5 @@ export type CorequeryConfig = {
16
17
  readonly footer: FooterConfig;
17
18
  readonly aboutPage: AboutPageConfig;
18
19
  readonly linesPage: LinesPageConfig;
20
+ readonly tags: TagsConfig;
19
21
  };
@@ -2,7 +2,7 @@ export type LineConfig = {
2
2
  readonly id: number;
3
3
  readonly name: string;
4
4
  readonly code: string | null;
5
- readonly tags: string[];
5
+ readonly tags: number[];
6
6
  readonly urlPath: string;
7
7
  readonly routes: readonly RouteConfig[];
8
8
  readonly diagram: LineDiagramConfig;
@@ -10,7 +10,7 @@ export type LineConfig = {
10
10
  export type RouteConfig = {
11
11
  readonly id: number;
12
12
  readonly name: string;
13
- readonly tags: string[];
13
+ readonly tags: number[];
14
14
  readonly stops: readonly {
15
15
  readonly stopId: number;
16
16
  readonly type: "regular" | "hidden-unless-stopped-at";
@@ -1,7 +1,7 @@
1
1
  export type StopConfig = {
2
2
  readonly id: number;
3
3
  readonly name: string;
4
- readonly tags: string[];
4
+ readonly tags: number[];
5
5
  readonly urlPath: string;
6
6
  readonly location: {
7
7
  readonly latitude: number;
@@ -0,0 +1,6 @@
1
+ export type TagsConfig = {
2
+ readonly stopTagSuccession: TagSuccession;
3
+ readonly lineTagSuccession: TagSuccession;
4
+ readonly routeTagSuccession: TagSuccession;
5
+ };
6
+ export type TagSuccession = Readonly<Record<number, readonly number[]>>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tags-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tags-config.js","sourceRoot":"","sources":["../../../config/tags-config.ts"],"names":[],"mappings":""}