@mydoormot/app-types 2.0.1 → 2.0.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @mydoormot/app-types@2.0.0 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
2
+ > @mydoormot/app-types@2.0.1 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
3
3
  > tsup src/index.ts --format esm,cjs --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -9,10 +9,10 @@
9
9
  ESM Build start
10
10
  CJS Build start
11
11
  ESM dist/index.js 14.62 KB
12
- ESM ⚡️ Build success in 63ms
12
+ ESM ⚡️ Build success in 57ms
13
13
  CJS dist/index.cjs 17.59 KB
14
- CJS ⚡️ Build success in 64ms
14
+ CJS ⚡️ Build success in 58ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 685ms
17
- DTS dist/index.d.ts 49.44 KB
18
- DTS dist/index.d.cts 49.44 KB
16
+ DTS ⚡️ Build success in 681ms
17
+ DTS dist/index.d.ts 49.48 KB
18
+ DTS dist/index.d.cts 49.48 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 2.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Added payout percentage
8
+
3
9
  ## 2.0.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -719,6 +719,7 @@ type Rider = {
719
719
  rating: number;
720
720
  version: number;
721
721
  hasBeenRated: boolean;
722
+ payoutPercentage?: number | null;
722
723
  state?: string | State;
723
724
  currentErrand?: Errand;
724
725
  lastDeliveredErrand?: Errand;
package/dist/index.d.ts CHANGED
@@ -719,6 +719,7 @@ type Rider = {
719
719
  rating: number;
720
720
  version: number;
721
721
  hasBeenRated: boolean;
722
+ payoutPercentage?: number | null;
722
723
  state?: string | State;
723
724
  currentErrand?: Errand;
724
725
  lastDeliveredErrand?: Errand;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
package/src/rider.ts CHANGED
@@ -6,7 +6,12 @@ import { User } from './user';
6
6
  import type { Vehicle } from './vehicle';
7
7
 
8
8
  // Re-export vehicle types for backwards compatibility
9
- export type { Vehicle, VehicleWithRider, VehicleLog, VehicleLogWithErrands } from './vehicle';
9
+ export type {
10
+ Vehicle,
11
+ VehicleWithRider,
12
+ VehicleLog,
13
+ VehicleLogWithErrands,
14
+ } from './vehicle';
10
15
  export { VehicleType, VehicleLogType } from './vehicle';
11
16
 
12
17
  export type Rider = {
@@ -27,6 +32,7 @@ export type Rider = {
27
32
  rating: number;
28
33
  version: number;
29
34
  hasBeenRated: boolean;
35
+ payoutPercentage?: number | null;
30
36
  // enterprise: string | Enterprise;
31
37
  // isTracking: boolean;
32
38
 
@@ -105,7 +111,6 @@ export interface RiderPerformanceStats {
105
111
  timeSeries?: RiderPerformanceTimeSeries[];
106
112
  }
107
113
 
108
-
109
114
  // Rider Payout Types
110
115
  //
111
116
  // Rider pay is a percentage of the errand fees a rider earned over a pay