crewtimer-common 1.0.18 → 1.0.20

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.
@@ -8,6 +8,7 @@ export interface Entry extends KeyMap {
8
8
  EventAbbrev: string;
9
9
  EventNum: string;
10
10
  Gate?: string;
11
+ Handicap?: number;
11
12
  Place: number;
12
13
  State?: string;
13
14
  Stroke: string;
@@ -11,7 +11,7 @@ export interface Event {
11
11
  EventNum: string;
12
12
  Finished: boolean;
13
13
  Official: boolean;
14
- RaceType: 'Sprint' | 'Head' | 'Info' | 'SprintStaggered';
14
+ RaceType: 'Sprint' | 'Head' | 'Info' | 'Pursuit';
15
15
  Progression: string;
16
16
  Multiplier: string;
17
17
  Start: string;
@@ -45,12 +45,29 @@ export interface ResultRegattaInfo {
45
45
  Waypoints: string;
46
46
  json?: string;
47
47
  }
48
+ /**
49
+ * Contents of /results/<regattaId> in database
50
+ */
48
51
  export interface Results {
49
52
  lastUpdatedEvent: string;
50
53
  P: Progress;
51
54
  regattaInfo: ResultRegattaInfo;
52
- ResultOmitCols?: string[];
53
55
  results: Event[];
56
+ lastUpdated?: {
57
+ [waypoint: string]: {
58
+ Bow: string;
59
+ EventNum: string;
60
+ Time: string;
61
+ timestamp: number;
62
+ };
63
+ };
64
+ }
65
+ /**
66
+ * Raw internal calculation results
67
+ */
68
+ export interface ResultsCalc extends Results {
69
+ ResultOmitCols?: string[];
70
+ mobileUpdates?: KeyMap;
54
71
  ResultsPendOfficial?: boolean;
55
72
  }
56
73
  export interface MobileSettings {
@@ -1,7 +1,7 @@
1
1
  import { Entry } from './Entry';
2
2
  import { KeyMap } from './KeyMap';
3
3
  import { RMStation, RMConfigSummary } from './RMTypes';
4
- export type RaceType = 'Sprint' | 'Head' | 'Info' | 'SprintStaggered';
4
+ export type RaceType = 'Sprint' | 'Head' | 'Info' | 'Pursuit';
5
5
  export type ConfigSource = 'Local' | 'CrewTimer.com';
6
6
  export interface PenaltyInfo {
7
7
  PenaltyCode: string;
@@ -55,6 +55,10 @@ export interface StopwatchConfig {
55
55
  }
56
56
  export interface TrackingStation {
57
57
  name: string;
58
+ description?: string;
59
+ trackingCd?: string;
60
+ isNumeric?: boolean;
61
+ defaultQty?: number;
58
62
  }
59
63
  /** Public regatta settings */
60
64
  export interface RegattaInfo {
@@ -8,6 +8,7 @@ export interface Entry extends KeyMap {
8
8
  EventAbbrev: string;
9
9
  EventNum: string;
10
10
  Gate?: string;
11
+ Handicap?: number;
11
12
  Place: number;
12
13
  State?: string;
13
14
  Stroke: string;
@@ -11,7 +11,7 @@ export interface Event {
11
11
  EventNum: string;
12
12
  Finished: boolean;
13
13
  Official: boolean;
14
- RaceType: 'Sprint' | 'Head' | 'Info' | 'SprintStaggered';
14
+ RaceType: 'Sprint' | 'Head' | 'Info' | 'Pursuit';
15
15
  Progression: string;
16
16
  Multiplier: string;
17
17
  Start: string;
@@ -45,12 +45,29 @@ export interface ResultRegattaInfo {
45
45
  Waypoints: string;
46
46
  json?: string;
47
47
  }
48
+ /**
49
+ * Contents of /results/<regattaId> in database
50
+ */
48
51
  export interface Results {
49
52
  lastUpdatedEvent: string;
50
53
  P: Progress;
51
54
  regattaInfo: ResultRegattaInfo;
52
- ResultOmitCols?: string[];
53
55
  results: Event[];
56
+ lastUpdated?: {
57
+ [waypoint: string]: {
58
+ Bow: string;
59
+ EventNum: string;
60
+ Time: string;
61
+ timestamp: number;
62
+ };
63
+ };
64
+ }
65
+ /**
66
+ * Raw internal calculation results
67
+ */
68
+ export interface ResultsCalc extends Results {
69
+ ResultOmitCols?: string[];
70
+ mobileUpdates?: KeyMap;
54
71
  ResultsPendOfficial?: boolean;
55
72
  }
56
73
  export interface MobileSettings {
@@ -1,7 +1,7 @@
1
1
  import { Entry } from './Entry';
2
2
  import { KeyMap } from './KeyMap';
3
3
  import { RMStation, RMConfigSummary } from './RMTypes';
4
- export type RaceType = 'Sprint' | 'Head' | 'Info' | 'SprintStaggered';
4
+ export type RaceType = 'Sprint' | 'Head' | 'Info' | 'Pursuit';
5
5
  export type ConfigSource = 'Local' | 'CrewTimer.com';
6
6
  export interface PenaltyInfo {
7
7
  PenaltyCode: string;
@@ -55,6 +55,10 @@ export interface StopwatchConfig {
55
55
  }
56
56
  export interface TrackingStation {
57
57
  name: string;
58
+ description?: string;
59
+ trackingCd?: string;
60
+ isNumeric?: boolean;
61
+ defaultQty?: number;
58
62
  }
59
63
  /** Public regatta settings */
60
64
  export interface RegattaInfo {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crewtimer-common",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "Common types and utilities for CrewTimer",
5
5
  "main": "./dist/cjs/src/index.js",
6
6
  "module": "./dist/esm/src/index.js",