crewtimer-common 1.0.15 → 1.0.17

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/README.md CHANGED
@@ -1,31 +1,12 @@
1
1
  # CrewTimer Types and Utilities
2
2
 
3
- This repository includes types and utilities that are shared among various CrewTimer subsystems. CrewTimer grew slowly over time with nearly all the code currently written in Typescript. As a result there are inconsistencies and overlap between types that may not be good design choices but reflect current implementations.
3
+ This repository includes types and utilities that are shared among various CrewTimer subsystems. CrewTimer grew slowly over time with nearly all the code currently written in Typescript. As a result there are inconsistencies and overlap between types that may not be good design choices but reflect current implementations.
4
4
 
5
5
  As time allows, this codebase will be cleaned and documented but these initial versions are put out there as-is to facilite migration of addtional CrewTimer modules to open source.
6
6
 
7
- ## CrewTimer Repositories
8
-
9
- ### Currently Open Source
10
-
11
- * [crewtimer-common](https://github.com/crewtimer/crewtimer-common) - Common types and utilities for CrewTimer.
12
- * [crewtimer-points](https://github.com/crewtimer/crewtimer-points) - A points engine for CrewTimer results.
13
-
14
- ### Coming Soon
15
-
16
- * crewtimer-handicaps - A handicap engine for CrewTimer handicap calculations
17
- * crewtimer-connect - Support for FinishLynx integration with CrewTimer and video review of placements.
18
-
19
- ### Future Open Source
20
-
21
- * crewtimer-mobile - Mobile Apps for Andriod and iOS
22
- * crewtimer-results - CrewTimer results website [https://crewtimer.com](https://crewtimer.com)
23
- * crewtimer-admin - CrewTimer Admin interface [https://admin.crewtimer.com](https://admin.crewtimer.com)
24
- * crewtimer-wisblock - Hardware devices such as the BLE Clicker and Mobile Horn (C++)
25
-
26
7
  ## Publishing a new npm version (maintainers only)
27
8
 
28
9
  1. Update the version in package.json
29
- 2. First check for any errors by running ```yarn prepublishOnly```
30
- 3. ```npm login``` as crewtimer
31
- 4. If no errors: ```npm publish```
10
+ 2. First check for any errors by running `yarn prepublishOnly`
11
+ 3. `npm login` as crewtimer
12
+ 4. If no errors: `npm publish`
@@ -12,7 +12,6 @@ export interface Event {
12
12
  Finished: boolean;
13
13
  Official: boolean;
14
14
  RaceType: 'Sprint' | 'Head' | 'Info' | 'SprintStaggered';
15
- Distribution: 'time' | 'roundrobin' | 'random' | 'reversing';
16
15
  Progression: string;
17
16
  Multiplier: string;
18
17
  Start: string;
@@ -72,6 +72,7 @@ export interface RegattaInfo {
72
72
  InfoText?: string;
73
73
  LiveConfig?: KeyMap;
74
74
  LogoURL?: string;
75
+ Name: string;
75
76
  NtpServers?: string[];
76
77
  NumDays: string;
77
78
  PenaltyLocations?: string;
@@ -89,6 +90,7 @@ export interface RegattaInfo {
89
90
  Titles?: KeyMap<string>;
90
91
  TrackingStations?: TrackingStation[];
91
92
  Waypoints: string;
93
+ FeeType?: string;
92
94
  }
93
95
  /** Private regatta settings
94
96
  * Stored as /regatta/<regatta>/settings/config
@@ -100,6 +102,8 @@ export interface RegattaConfig extends RegattaInfo {
100
102
  pin: string;
101
103
  stationType: string;
102
104
  }];
105
+ CloudKey: string;
106
+ Owner: string;
103
107
  }
104
108
  export interface QRCodeInfo {
105
109
  mobilePin: string;
@@ -121,16 +125,18 @@ export interface ReloadResult {
121
125
  }
122
126
  export interface ResultSummary {
123
127
  Date: string;
128
+ FeeType: string;
124
129
  InfoText: string;
125
130
  Name: string;
126
131
  NumDays: string;
127
- Public: string;
132
+ NumEntries: number;
133
+ Public: boolean;
128
134
  Title: string;
129
135
  }
130
136
  export interface AdminSummary extends ResultSummary {
131
- NumEntries: number;
132
137
  Owner: string;
133
138
  RaceType: string;
139
+ Admins: string;
134
140
  }
135
141
  export interface DBSettings {
136
142
  config: RegattaConfig;
@@ -143,6 +149,10 @@ export interface DBRegatta {
143
149
  lapdata: Lap[];
144
150
  lapdataTS?: number;
145
151
  settings: DBSettings;
152
+ Payment?: {
153
+ invoiceId: string;
154
+ updateTime: string;
155
+ };
146
156
  }
147
157
  /** Base regatta data plus some cooked fields used when calculating results */
148
158
  export interface RegattaData extends DBRegatta {
@@ -12,7 +12,6 @@ export interface Event {
12
12
  Finished: boolean;
13
13
  Official: boolean;
14
14
  RaceType: 'Sprint' | 'Head' | 'Info' | 'SprintStaggered';
15
- Distribution: 'time' | 'roundrobin' | 'random' | 'reversing';
16
15
  Progression: string;
17
16
  Multiplier: string;
18
17
  Start: string;
@@ -72,6 +72,7 @@ export interface RegattaInfo {
72
72
  InfoText?: string;
73
73
  LiveConfig?: KeyMap;
74
74
  LogoURL?: string;
75
+ Name: string;
75
76
  NtpServers?: string[];
76
77
  NumDays: string;
77
78
  PenaltyLocations?: string;
@@ -89,6 +90,7 @@ export interface RegattaInfo {
89
90
  Titles?: KeyMap<string>;
90
91
  TrackingStations?: TrackingStation[];
91
92
  Waypoints: string;
93
+ FeeType?: string;
92
94
  }
93
95
  /** Private regatta settings
94
96
  * Stored as /regatta/<regatta>/settings/config
@@ -100,6 +102,8 @@ export interface RegattaConfig extends RegattaInfo {
100
102
  pin: string;
101
103
  stationType: string;
102
104
  }];
105
+ CloudKey: string;
106
+ Owner: string;
103
107
  }
104
108
  export interface QRCodeInfo {
105
109
  mobilePin: string;
@@ -121,16 +125,18 @@ export interface ReloadResult {
121
125
  }
122
126
  export interface ResultSummary {
123
127
  Date: string;
128
+ FeeType: string;
124
129
  InfoText: string;
125
130
  Name: string;
126
131
  NumDays: string;
127
- Public: string;
132
+ NumEntries: number;
133
+ Public: boolean;
128
134
  Title: string;
129
135
  }
130
136
  export interface AdminSummary extends ResultSummary {
131
- NumEntries: number;
132
137
  Owner: string;
133
138
  RaceType: string;
139
+ Admins: string;
134
140
  }
135
141
  export interface DBSettings {
136
142
  config: RegattaConfig;
@@ -143,6 +149,10 @@ export interface DBRegatta {
143
149
  lapdata: Lap[];
144
150
  lapdataTS?: number;
145
151
  settings: DBSettings;
152
+ Payment?: {
153
+ invoiceId: string;
154
+ updateTime: string;
155
+ };
146
156
  }
147
157
  /** Base regatta data plus some cooked fields used when calculating results */
148
158
  export interface RegattaData extends DBRegatta {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crewtimer-common",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
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",