@mydoormot/app-types 1.7.18 → 1.7.20

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.7.18 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
2
+ > @mydoormot/app-types@1.7.19 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
- ESM dist/index.js 6.47 KB
12
- ESM ⚡️ Build success in 47ms
13
11
  CJS dist/index.cjs 8.20 KB
14
- CJS ⚡️ Build success in 47ms
12
+ CJS ⚡️ Build success in 134ms
13
+ ESM dist/index.js 6.47 KB
14
+ ESM ⚡️ Build success in 135ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 665ms
17
- DTS dist/index.d.ts 18.76 KB
18
- DTS dist/index.d.cts 18.76 KB
16
+ DTS ⚡️ Build success in 1184ms
17
+ DTS dist/index.d.ts 19.33 KB
18
+ DTS dist/index.d.cts 19.33 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.7.20
4
+
5
+ ### Patch Changes
6
+
7
+ - Added last position
8
+
9
+ ## 1.7.19
10
+
11
+ ### Patch Changes
12
+
13
+ - Added in trakcar TraccarPosition
14
+
3
15
  ## 1.7.18
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -710,6 +710,25 @@ interface TraccarDevice {
710
710
  disabled: boolean;
711
711
  expirationTime: string | Date | NullOrUndefined;
712
712
  }
713
+ interface TraccarPosition {
714
+ id: number;
715
+ attributes: Record<string, any>;
716
+ deviceId: number;
717
+ protocol: string;
718
+ serverTime: string | Date;
719
+ deviceTime: string | Date;
720
+ fixTime: string | Date;
721
+ valid: boolean;
722
+ latitude: number;
723
+ longitude: number;
724
+ altitude: number;
725
+ speed: number;
726
+ course: number;
727
+ address: string | NullOrUndefined;
728
+ accuracy: number;
729
+ network: Record<string, any> | NullOrUndefined;
730
+ geofenceIds: number[] | NullOrUndefined;
731
+ }
713
732
  interface TrackerDevice {
714
733
  id: string;
715
734
  name: string;
@@ -721,6 +740,7 @@ interface TrackerDevice {
721
740
  createdAt: string | Date;
722
741
  updatedAt: string | Date;
723
742
  traccarDetails?: TraccarDevice | NullOrUndefined;
743
+ lastPosition?: TraccarPosition | NullOrUndefined;
724
744
  }
725
745
 
726
746
  interface PaginateResult<T> {
@@ -745,4 +765,4 @@ declare enum LinkDestination {
745
765
  }
746
766
  type NullOrUndefined = null | undefined;
747
767
 
748
- export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Coupon, type Customer, type CustomerTransactionStats, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, GlobalRoles, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type TraccarDevice, TraccarDeviceStatus, type TrackerDevice, type Transaction, type TransactionCategory, type TransactionItem, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
768
+ export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Coupon, type Customer, type CustomerTransactionStats, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, GlobalRoles, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type TraccarDevice, TraccarDeviceStatus, type TraccarPosition, type TrackerDevice, type Transaction, type TransactionCategory, type TransactionItem, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
package/dist/index.d.ts CHANGED
@@ -710,6 +710,25 @@ interface TraccarDevice {
710
710
  disabled: boolean;
711
711
  expirationTime: string | Date | NullOrUndefined;
712
712
  }
713
+ interface TraccarPosition {
714
+ id: number;
715
+ attributes: Record<string, any>;
716
+ deviceId: number;
717
+ protocol: string;
718
+ serverTime: string | Date;
719
+ deviceTime: string | Date;
720
+ fixTime: string | Date;
721
+ valid: boolean;
722
+ latitude: number;
723
+ longitude: number;
724
+ altitude: number;
725
+ speed: number;
726
+ course: number;
727
+ address: string | NullOrUndefined;
728
+ accuracy: number;
729
+ network: Record<string, any> | NullOrUndefined;
730
+ geofenceIds: number[] | NullOrUndefined;
731
+ }
713
732
  interface TrackerDevice {
714
733
  id: string;
715
734
  name: string;
@@ -721,6 +740,7 @@ interface TrackerDevice {
721
740
  createdAt: string | Date;
722
741
  updatedAt: string | Date;
723
742
  traccarDetails?: TraccarDevice | NullOrUndefined;
743
+ lastPosition?: TraccarPosition | NullOrUndefined;
724
744
  }
725
745
 
726
746
  interface PaginateResult<T> {
@@ -745,4 +765,4 @@ declare enum LinkDestination {
745
765
  }
746
766
  type NullOrUndefined = null | undefined;
747
767
 
748
- export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Coupon, type Customer, type CustomerTransactionStats, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, GlobalRoles, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type TraccarDevice, TraccarDeviceStatus, type TrackerDevice, type Transaction, type TransactionCategory, type TransactionItem, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
768
+ export { type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, type City, type Coupon, type Customer, type CustomerTransactionStats, DeliveryStatus, type Enterprise, type EnterpriseCategoryDoc, type EnterpriseSubCategoryDoc, EnterpriseType, type Errand, type ErrandDeliveryTiming, type ErrandPackagingQuality, type ErrandRating, type ErrandReview, type ErrandReviewLink, type ErrandRiderBehavior, ErrandStatus, type ErrandTimeline, GlobalRoles, type Invoice, InvoiceGenerationType, type InvoiceItem, InvoiceItemType, InvoiceStatus, type LatLng, LinkDestination, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Rider, RoleType, type State, type TraccarDevice, TraccarDeviceStatus, type TraccarPosition, type TrackerDevice, type Transaction, type TransactionCategory, type TransactionItem, type TransactionType, type TransactionWithCategory, type TransactionWithJoin, type User, type UserAddress, type Vehicle, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.7.18",
3
+ "version": "1.7.20",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
package/src/tracker.ts CHANGED
@@ -24,6 +24,26 @@ export interface TraccarDevice {
24
24
  expirationTime: string | Date | NullOrUndefined;
25
25
  }
26
26
 
27
+ export interface TraccarPosition {
28
+ id: number;
29
+ attributes: Record<string, any>;
30
+ deviceId: number;
31
+ protocol: string;
32
+ serverTime: string | Date;
33
+ deviceTime: string | Date;
34
+ fixTime: string | Date;
35
+ valid: boolean;
36
+ latitude: number;
37
+ longitude: number;
38
+ altitude: number;
39
+ speed: number;
40
+ course: number;
41
+ address: string | NullOrUndefined;
42
+ accuracy: number;
43
+ network: Record<string, any> | NullOrUndefined;
44
+ geofenceIds: number[] | NullOrUndefined;
45
+ }
46
+
27
47
  export interface TrackerDevice {
28
48
  id: string;
29
49
  name: string;
@@ -35,4 +55,5 @@ export interface TrackerDevice {
35
55
  createdAt: string | Date;
36
56
  updatedAt: string | Date;
37
57
  traccarDetails?: TraccarDevice | NullOrUndefined;
38
- }
58
+ lastPosition?: TraccarPosition | NullOrUndefined;
59
+ }