@mydoormot/app-types 2.0.2 → 2.0.4
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 +18 -18
- package/CHANGELOG.md +12 -0
- package/dist/index.d.cts +15 -2
- package/dist/index.d.ts +15 -2
- package/package.json +1 -1
- package/src/rider.ts +16 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
> @mydoormot/app-types@2.0.
|
|
3
|
-
> tsup src/index.ts --format esm,cjs --dts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
|
|
2
|
+
> @mydoormot/app-types@2.0.3 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
|
|
3
|
+
> tsup src/index.ts --format esm,cjs --dts
|
|
4
|
+
|
|
5
|
+
CLI Building entry: src/index.ts
|
|
6
|
+
CLI Using tsconfig: tsconfig.json
|
|
7
|
+
CLI tsup v7.3.0
|
|
8
|
+
CLI Target: es2021
|
|
9
|
+
ESM Build start
|
|
10
|
+
CJS Build start
|
|
11
|
+
ESM dist/index.js 14.62 KB
|
|
12
|
+
ESM ⚡️ Build success in 63ms
|
|
13
|
+
CJS dist/index.cjs 17.59 KB
|
|
14
|
+
CJS ⚡️ Build success in 63ms
|
|
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
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -708,6 +708,16 @@ type Rider = {
|
|
|
708
708
|
id: string;
|
|
709
709
|
userId: string;
|
|
710
710
|
vehicleId?: string;
|
|
711
|
+
/**
|
|
712
|
+
* Denormalized from the User behind `userId`, so a rider can be displayed
|
|
713
|
+
* without a second fetch. Kept in sync server-side on every user update.
|
|
714
|
+
* Stored lowercase, as `User` names are — capitalize at render.
|
|
715
|
+
*/
|
|
716
|
+
firstName?: string;
|
|
717
|
+
lastName?: string;
|
|
718
|
+
fullName?: string;
|
|
719
|
+
mobileNumber?: string;
|
|
720
|
+
avatarUrl?: string;
|
|
711
721
|
currLocation: {
|
|
712
722
|
coordinates: number[];
|
|
713
723
|
};
|
|
@@ -802,7 +812,11 @@ interface RiderPayout {
|
|
|
802
812
|
id: string;
|
|
803
813
|
riderId: string;
|
|
804
814
|
businessId: string;
|
|
805
|
-
|
|
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
|
+
*/
|
|
806
820
|
periodStart: Date;
|
|
807
821
|
periodEnd: Date;
|
|
808
822
|
/** Errands counted toward `grossEarnings`. */
|
|
@@ -845,7 +859,6 @@ interface RiderPayoutPreviewItem {
|
|
|
845
859
|
existingPayoutStatus?: RiderPayoutStatus | `${RiderPayoutStatus}`;
|
|
846
860
|
}
|
|
847
861
|
interface RiderPayoutPreview {
|
|
848
|
-
periodType: PayoutPeriodType | `${PayoutPeriodType}`;
|
|
849
862
|
periodStart: Date;
|
|
850
863
|
periodEnd: Date;
|
|
851
864
|
periodLabel: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -708,6 +708,16 @@ type Rider = {
|
|
|
708
708
|
id: string;
|
|
709
709
|
userId: string;
|
|
710
710
|
vehicleId?: string;
|
|
711
|
+
/**
|
|
712
|
+
* Denormalized from the User behind `userId`, so a rider can be displayed
|
|
713
|
+
* without a second fetch. Kept in sync server-side on every user update.
|
|
714
|
+
* Stored lowercase, as `User` names are — capitalize at render.
|
|
715
|
+
*/
|
|
716
|
+
firstName?: string;
|
|
717
|
+
lastName?: string;
|
|
718
|
+
fullName?: string;
|
|
719
|
+
mobileNumber?: string;
|
|
720
|
+
avatarUrl?: string;
|
|
711
721
|
currLocation: {
|
|
712
722
|
coordinates: number[];
|
|
713
723
|
};
|
|
@@ -802,7 +812,11 @@ interface RiderPayout {
|
|
|
802
812
|
id: string;
|
|
803
813
|
riderId: string;
|
|
804
814
|
businessId: string;
|
|
805
|
-
|
|
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
|
+
*/
|
|
806
820
|
periodStart: Date;
|
|
807
821
|
periodEnd: Date;
|
|
808
822
|
/** Errands counted toward `grossEarnings`. */
|
|
@@ -845,7 +859,6 @@ interface RiderPayoutPreviewItem {
|
|
|
845
859
|
existingPayoutStatus?: RiderPayoutStatus | `${RiderPayoutStatus}`;
|
|
846
860
|
}
|
|
847
861
|
interface RiderPayoutPreview {
|
|
848
|
-
periodType: PayoutPeriodType | `${PayoutPeriodType}`;
|
|
849
862
|
periodStart: Date;
|
|
850
863
|
periodEnd: Date;
|
|
851
864
|
periodLabel: string;
|
package/package.json
CHANGED
package/src/rider.ts
CHANGED
|
@@ -19,6 +19,17 @@ export type Rider = {
|
|
|
19
19
|
userId: string;
|
|
20
20
|
vehicleId?: string;
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Denormalized from the User behind `userId`, so a rider can be displayed
|
|
24
|
+
* without a second fetch. Kept in sync server-side on every user update.
|
|
25
|
+
* Stored lowercase, as `User` names are — capitalize at render.
|
|
26
|
+
*/
|
|
27
|
+
firstName?: string;
|
|
28
|
+
lastName?: string;
|
|
29
|
+
fullName?: string;
|
|
30
|
+
mobileNumber?: string;
|
|
31
|
+
avatarUrl?: string;
|
|
32
|
+
|
|
22
33
|
// city: string | City;
|
|
23
34
|
currLocation: {
|
|
24
35
|
coordinates: number[];
|
|
@@ -153,7 +164,11 @@ export interface RiderPayout {
|
|
|
153
164
|
riderId: string;
|
|
154
165
|
businessId: string;
|
|
155
166
|
|
|
156
|
-
|
|
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
|
+
*/
|
|
157
172
|
periodStart: Date;
|
|
158
173
|
periodEnd: Date;
|
|
159
174
|
|
|
@@ -204,7 +219,6 @@ export interface RiderPayoutPreviewItem {
|
|
|
204
219
|
}
|
|
205
220
|
|
|
206
221
|
export interface RiderPayoutPreview {
|
|
207
|
-
periodType: PayoutPeriodType | `${PayoutPeriodType}`;
|
|
208
222
|
periodStart: Date;
|
|
209
223
|
periodEnd: Date;
|
|
210
224
|
periodLabel: string;
|