@mydoormot/app-types 2.0.4 → 2.0.5

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.3 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
2
+ > @mydoormot/app-types@2.0.4 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 @@ CLI Target: es2021
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 71ms
13
13
  CJS dist/index.cjs 17.59 KB
14
- CJS ⚡️ Build success in 63ms
14
+ CJS ⚡️ Build success in 71ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 868ms
17
- DTS dist/index.d.ts 49.96 KB
18
- DTS dist/index.d.cts 49.96 KB
16
+ DTS ⚡️ Build success in 905ms
17
+ DTS dist/index.d.ts 50.53 KB
18
+ DTS dist/index.d.cts 50.53 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 2.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Added undelivered amount and count
8
+
3
9
  ## 2.0.4
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -857,6 +857,15 @@ interface RiderPayoutPreviewItem {
857
857
  /** Set when a payout for this rider and the same period already exists. */
858
858
  existingPayoutId?: string;
859
859
  existingPayoutStatus?: RiderPayoutStatus | `${RiderPayoutStatus}`;
860
+ /**
861
+ * Errands in the period this rider has not marked delivered (and that are not
862
+ * cancelled). NOT included in `grossEarnings` or `payoutAmount` — riders are
863
+ * paid for delivered work only. Surfaced so the gap can be chased before
864
+ * payroll is committed, since an unmarked errand otherwise misses every
865
+ * payout silently.
866
+ */
867
+ undeliveredCount: number;
868
+ undeliveredAmount: number;
860
869
  }
861
870
  interface RiderPayoutPreview {
862
871
  periodStart: Date;
@@ -869,6 +878,9 @@ interface RiderPayoutPreview {
869
878
  totalPayoutAmount: number;
870
879
  /** Riders skipped because no percentage is configured for them. */
871
880
  unratedRiderCount: number;
881
+ /** Totals of the non-paying undelivered figure. See the item type. */
882
+ totalUndeliveredErrands: number;
883
+ totalUndeliveredAmount: number;
872
884
  };
873
885
  riders: RiderPayoutPreviewItem[];
874
886
  }
package/dist/index.d.ts CHANGED
@@ -857,6 +857,15 @@ interface RiderPayoutPreviewItem {
857
857
  /** Set when a payout for this rider and the same period already exists. */
858
858
  existingPayoutId?: string;
859
859
  existingPayoutStatus?: RiderPayoutStatus | `${RiderPayoutStatus}`;
860
+ /**
861
+ * Errands in the period this rider has not marked delivered (and that are not
862
+ * cancelled). NOT included in `grossEarnings` or `payoutAmount` — riders are
863
+ * paid for delivered work only. Surfaced so the gap can be chased before
864
+ * payroll is committed, since an unmarked errand otherwise misses every
865
+ * payout silently.
866
+ */
867
+ undeliveredCount: number;
868
+ undeliveredAmount: number;
860
869
  }
861
870
  interface RiderPayoutPreview {
862
871
  periodStart: Date;
@@ -869,6 +878,9 @@ interface RiderPayoutPreview {
869
878
  totalPayoutAmount: number;
870
879
  /** Riders skipped because no percentage is configured for them. */
871
880
  unratedRiderCount: number;
881
+ /** Totals of the non-paying undelivered figure. See the item type. */
882
+ totalUndeliveredErrands: number;
883
+ totalUndeliveredAmount: number;
872
884
  };
873
885
  riders: RiderPayoutPreviewItem[];
874
886
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
package/src/rider.ts CHANGED
@@ -216,6 +216,15 @@ export interface RiderPayoutPreviewItem {
216
216
  /** Set when a payout for this rider and the same period already exists. */
217
217
  existingPayoutId?: string;
218
218
  existingPayoutStatus?: RiderPayoutStatus | `${RiderPayoutStatus}`;
219
+ /**
220
+ * Errands in the period this rider has not marked delivered (and that are not
221
+ * cancelled). NOT included in `grossEarnings` or `payoutAmount` — riders are
222
+ * paid for delivered work only. Surfaced so the gap can be chased before
223
+ * payroll is committed, since an unmarked errand otherwise misses every
224
+ * payout silently.
225
+ */
226
+ undeliveredCount: number;
227
+ undeliveredAmount: number;
219
228
  }
220
229
 
221
230
  export interface RiderPayoutPreview {
@@ -229,6 +238,9 @@ export interface RiderPayoutPreview {
229
238
  totalPayoutAmount: number;
230
239
  /** Riders skipped because no percentage is configured for them. */
231
240
  unratedRiderCount: number;
241
+ /** Totals of the non-paying undelivered figure. See the item type. */
242
+ totalUndeliveredErrands: number;
243
+ totalUndeliveredAmount: number;
232
244
  };
233
245
  riders: RiderPayoutPreviewItem[];
234
246
  }