@mydoormot/app-types 1.5.9 → 1.6.1

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@1.5.8 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
2
+ > @mydoormot/app-types@1.6.0 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 @@
8
8
  CLI Target: es2021
9
9
  ESM Build start
10
10
  CJS Build start
11
- CJS dist/index.cjs 6.93 KB
12
- CJS ⚡️ Build success in 184ms
13
11
  ESM dist/index.js 5.37 KB
14
- ESM ⚡️ Build success in 185ms
12
+ ESM ⚡️ Build success in 88ms
13
+ CJS dist/index.cjs 6.93 KB
14
+ CJS ⚡️ Build success in 87ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 703ms
17
- DTS dist/index.d.ts 14.89 KB
18
- DTS dist/index.d.cts 14.89 KB
16
+ DTS ⚡️ Build success in 611ms
17
+ DTS dist/index.d.ts 15.44 KB
18
+ DTS dist/index.d.cts 15.44 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Moved rider log stat
8
+
9
+ ## 1.6.0
10
+
11
+ ### Minor Changes
12
+
13
+ - Added stats
14
+
3
15
  ## 1.5.9
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -581,6 +581,27 @@ interface TransactionWithCategory extends Transaction {
581
581
  category: TransactionCategory;
582
582
  }
583
583
 
584
+ interface VehicleLogSummary {
585
+ totalErrands: number;
586
+ totalFuelCost: number;
587
+ numberOfRefills: number;
588
+ numberOfVehicles: number;
589
+ riderBreakdown: {
590
+ errandsPercentage: number;
591
+ fuelCostPercentage: number;
592
+ numberOfRefills: number;
593
+ numberOfVehicles: number;
594
+ riderEmail: string;
595
+ riderId: string;
596
+ riderName: string | null;
597
+ riderPhone: string;
598
+ totalErrands: number;
599
+ totalFuelCost: number;
600
+ totalFuelLiters: number;
601
+ _id: string;
602
+ }[];
603
+ }
604
+
584
605
  interface PaginateResult<T> {
585
606
  docs: T[];
586
607
  totalDocs: number;
@@ -603,4 +624,4 @@ declare enum LinkDestination {
603
624
  }
604
625
  type NullOrUndefined = null | undefined;
605
626
 
606
- export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessPg, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandRating, ErrandStatus, type ErrandTimeline, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type Transaction, type TransactionCategory, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, errandTimeline };
627
+ export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessPg, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandRating, ErrandStatus, type ErrandTimeline, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type Transaction, type TransactionCategory, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, errandTimeline };
package/dist/index.d.ts CHANGED
@@ -581,6 +581,27 @@ interface TransactionWithCategory extends Transaction {
581
581
  category: TransactionCategory;
582
582
  }
583
583
 
584
+ interface VehicleLogSummary {
585
+ totalErrands: number;
586
+ totalFuelCost: number;
587
+ numberOfRefills: number;
588
+ numberOfVehicles: number;
589
+ riderBreakdown: {
590
+ errandsPercentage: number;
591
+ fuelCostPercentage: number;
592
+ numberOfRefills: number;
593
+ numberOfVehicles: number;
594
+ riderEmail: string;
595
+ riderId: string;
596
+ riderName: string | null;
597
+ riderPhone: string;
598
+ totalErrands: number;
599
+ totalFuelCost: number;
600
+ totalFuelLiters: number;
601
+ _id: string;
602
+ }[];
603
+ }
604
+
584
605
  interface PaginateResult<T> {
585
606
  docs: T[];
586
607
  totalDocs: number;
@@ -603,4 +624,4 @@ declare enum LinkDestination {
603
624
  }
604
625
  type NullOrUndefined = null | undefined;
605
626
 
606
- export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessPg, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandRating, ErrandStatus, type ErrandTimeline, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type Transaction, type TransactionCategory, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, errandTimeline };
627
+ export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessPg, type City, type Coupon, type Customer, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandRating, ErrandStatus, type ErrandTimeline, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type Transaction, type TransactionCategory, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleLogWithRiderAndErrands, VehicleType, type VehicleWithRider, errandTimeline };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.5.9",
3
+ "version": "1.6.1",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
package/src/index.ts CHANGED
@@ -33,3 +33,4 @@ export * from './coupon';
33
33
  export * from './business';
34
34
  export * from './customer';
35
35
  export * from './transaction';
36
+ export * from './stat';
package/src/stat.ts ADDED
@@ -0,0 +1,20 @@
1
+ export interface VehicleLogSummary {
2
+ totalErrands: number;
3
+ totalFuelCost: number;
4
+ numberOfRefills: number;
5
+ numberOfVehicles: number;
6
+ riderBreakdown: {
7
+ errandsPercentage: number;
8
+ fuelCostPercentage: number;
9
+ numberOfRefills: number;
10
+ numberOfVehicles: number;
11
+ riderEmail: string;
12
+ riderId: string;
13
+ riderName: string | null;
14
+ riderPhone: string;
15
+ totalErrands: number;
16
+ totalFuelCost: number;
17
+ totalFuelLiters: number;
18
+ _id: string;
19
+ }[];
20
+ }