@mydoormot/app-types 2.0.3 → 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.
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +12 -0
- package/dist/index.d.cts +17 -2
- package/dist/index.d.ts +17 -2
- package/package.json +1 -1
- package/src/rider.ts +17 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mydoormot/app-types@2.0.
|
|
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
|
|
@@ -8,11 +8,11 @@ CLI tsup v7.3.0
|
|
|
8
8
|
CLI Target: es2021
|
|
9
9
|
ESM Build start
|
|
10
10
|
CJS Build start
|
|
11
|
-
CJS dist/index.cjs 17.59 KB
|
|
12
|
-
CJS ⚡️ Build success in 50ms
|
|
13
11
|
ESM dist/index.js 14.62 KB
|
|
14
|
-
ESM ⚡️ Build success in
|
|
12
|
+
ESM ⚡️ Build success in 71ms
|
|
13
|
+
CJS dist/index.cjs 17.59 KB
|
|
14
|
+
CJS ⚡️ Build success in 71ms
|
|
15
15
|
DTS Build start
|
|
16
|
-
DTS ⚡️ Build success in
|
|
17
|
-
DTS dist/index.d.ts
|
|
18
|
-
DTS dist/index.d.cts
|
|
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
package/dist/index.d.cts
CHANGED
|
@@ -812,7 +812,11 @@ interface RiderPayout {
|
|
|
812
812
|
id: string;
|
|
813
813
|
riderId: string;
|
|
814
814
|
businessId: string;
|
|
815
|
-
|
|
815
|
+
/**
|
|
816
|
+
* The range the operator picked. No cadence accompanies it: payroll is run
|
|
817
|
+
* from a date-range picker, so every period is an arbitrary range and a
|
|
818
|
+
* cadence field could only restate the dates or contradict them.
|
|
819
|
+
*/
|
|
816
820
|
periodStart: Date;
|
|
817
821
|
periodEnd: Date;
|
|
818
822
|
/** Errands counted toward `grossEarnings`. */
|
|
@@ -853,9 +857,17 @@ interface RiderPayoutPreviewItem {
|
|
|
853
857
|
/** Set when a payout for this rider and the same period already exists. */
|
|
854
858
|
existingPayoutId?: string;
|
|
855
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;
|
|
856
869
|
}
|
|
857
870
|
interface RiderPayoutPreview {
|
|
858
|
-
periodType: PayoutPeriodType | `${PayoutPeriodType}`;
|
|
859
871
|
periodStart: Date;
|
|
860
872
|
periodEnd: Date;
|
|
861
873
|
periodLabel: string;
|
|
@@ -866,6 +878,9 @@ interface RiderPayoutPreview {
|
|
|
866
878
|
totalPayoutAmount: number;
|
|
867
879
|
/** Riders skipped because no percentage is configured for them. */
|
|
868
880
|
unratedRiderCount: number;
|
|
881
|
+
/** Totals of the non-paying undelivered figure. See the item type. */
|
|
882
|
+
totalUndeliveredErrands: number;
|
|
883
|
+
totalUndeliveredAmount: number;
|
|
869
884
|
};
|
|
870
885
|
riders: RiderPayoutPreviewItem[];
|
|
871
886
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -812,7 +812,11 @@ interface RiderPayout {
|
|
|
812
812
|
id: string;
|
|
813
813
|
riderId: string;
|
|
814
814
|
businessId: string;
|
|
815
|
-
|
|
815
|
+
/**
|
|
816
|
+
* The range the operator picked. No cadence accompanies it: payroll is run
|
|
817
|
+
* from a date-range picker, so every period is an arbitrary range and a
|
|
818
|
+
* cadence field could only restate the dates or contradict them.
|
|
819
|
+
*/
|
|
816
820
|
periodStart: Date;
|
|
817
821
|
periodEnd: Date;
|
|
818
822
|
/** Errands counted toward `grossEarnings`. */
|
|
@@ -853,9 +857,17 @@ interface RiderPayoutPreviewItem {
|
|
|
853
857
|
/** Set when a payout for this rider and the same period already exists. */
|
|
854
858
|
existingPayoutId?: string;
|
|
855
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;
|
|
856
869
|
}
|
|
857
870
|
interface RiderPayoutPreview {
|
|
858
|
-
periodType: PayoutPeriodType | `${PayoutPeriodType}`;
|
|
859
871
|
periodStart: Date;
|
|
860
872
|
periodEnd: Date;
|
|
861
873
|
periodLabel: string;
|
|
@@ -866,6 +878,9 @@ interface RiderPayoutPreview {
|
|
|
866
878
|
totalPayoutAmount: number;
|
|
867
879
|
/** Riders skipped because no percentage is configured for them. */
|
|
868
880
|
unratedRiderCount: number;
|
|
881
|
+
/** Totals of the non-paying undelivered figure. See the item type. */
|
|
882
|
+
totalUndeliveredErrands: number;
|
|
883
|
+
totalUndeliveredAmount: number;
|
|
869
884
|
};
|
|
870
885
|
riders: RiderPayoutPreviewItem[];
|
|
871
886
|
}
|
package/package.json
CHANGED
package/src/rider.ts
CHANGED
|
@@ -164,7 +164,11 @@ export interface RiderPayout {
|
|
|
164
164
|
riderId: string;
|
|
165
165
|
businessId: string;
|
|
166
166
|
|
|
167
|
-
|
|
167
|
+
/**
|
|
168
|
+
* The range the operator picked. No cadence accompanies it: payroll is run
|
|
169
|
+
* from a date-range picker, so every period is an arbitrary range and a
|
|
170
|
+
* cadence field could only restate the dates or contradict them.
|
|
171
|
+
*/
|
|
168
172
|
periodStart: Date;
|
|
169
173
|
periodEnd: Date;
|
|
170
174
|
|
|
@@ -212,10 +216,18 @@ export interface RiderPayoutPreviewItem {
|
|
|
212
216
|
/** Set when a payout for this rider and the same period already exists. */
|
|
213
217
|
existingPayoutId?: string;
|
|
214
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;
|
|
215
228
|
}
|
|
216
229
|
|
|
217
230
|
export interface RiderPayoutPreview {
|
|
218
|
-
periodType: PayoutPeriodType | `${PayoutPeriodType}`;
|
|
219
231
|
periodStart: Date;
|
|
220
232
|
periodEnd: Date;
|
|
221
233
|
periodLabel: string;
|
|
@@ -226,6 +238,9 @@ export interface RiderPayoutPreview {
|
|
|
226
238
|
totalPayoutAmount: number;
|
|
227
239
|
/** Riders skipped because no percentage is configured for them. */
|
|
228
240
|
unratedRiderCount: number;
|
|
241
|
+
/** Totals of the non-paying undelivered figure. See the item type. */
|
|
242
|
+
totalUndeliveredErrands: number;
|
|
243
|
+
totalUndeliveredAmount: number;
|
|
229
244
|
};
|
|
230
245
|
riders: RiderPayoutPreviewItem[];
|
|
231
246
|
}
|