@mydoormot/app-types 2.0.2 → 2.0.3

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,18 +1,18 @@
1
-
2
- > @mydoormot/app-types@2.0.1 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 57ms
13
- CJS dist/index.cjs 17.59 KB
14
- CJS ⚡️ Build success in 58ms
15
- DTS Build start
16
- DTS ⚡️ Build success in 681ms
17
- DTS dist/index.d.ts 49.48 KB
18
- DTS dist/index.d.cts 49.48 KB
1
+
2
+ > @mydoormot/app-types@2.0.2 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
+ CJS dist/index.cjs 17.59 KB
12
+ CJS ⚡️ Build success in 50ms
13
+ ESM dist/index.js 14.62 KB
14
+ ESM ⚡️ Build success in 50ms
15
+ DTS Build start
16
+ DTS ⚡️ Build success in 661ms
17
+ DTS dist/index.d.ts 49.84 KB
18
+ DTS dist/index.d.cts 49.84 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 2.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated rider schema
8
+
3
9
  ## 2.0.2
4
10
 
5
11
  ### Patch Changes
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
  };
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
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[];