@mydoormot/app-types 1.7.17 → 1.7.18

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.16 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
2
+ > @mydoormot/app-types@1.7.18 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.17 KB
12
- ESM ⚡️ Build success in 61ms
13
- CJS dist/index.cjs 7.84 KB
14
- CJS ⚡️ Build success in 62ms
11
+ ESM dist/index.js 6.47 KB
12
+ ESM ⚡️ Build success in 47ms
13
+ CJS dist/index.cjs 8.20 KB
14
+ CJS ⚡️ Build success in 47ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 1296ms
17
- DTS dist/index.d.ts 17.78 KB
18
- DTS dist/index.d.cts 17.78 KB
16
+ DTS ⚡️ Build success in 665ms
17
+ DTS dist/index.d.ts 18.76 KB
18
+ DTS dist/index.d.cts 18.76 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.7.18
4
+
5
+ ### Patch Changes
6
+
7
+ - Added trcker types
8
+
3
9
  ## 1.7.17
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -36,6 +36,7 @@ __export(src_exports, {
36
36
  ParcelSize: () => ParcelSize,
37
37
  PaymentOptions: () => PaymentOptions,
38
38
  RoleType: () => RoleType,
39
+ TraccarDeviceStatus: () => TraccarDeviceStatus,
39
40
  VehicleLogType: () => VehicleLogType,
40
41
  VehicleType: () => VehicleType,
41
42
  errandTimeline: () => errandTimeline
@@ -199,6 +200,14 @@ var MembershipStatus = /* @__PURE__ */ ((MembershipStatus2) => {
199
200
  return MembershipStatus2;
200
201
  })(MembershipStatus || {});
201
202
 
203
+ // src/tracker.ts
204
+ var TraccarDeviceStatus = /* @__PURE__ */ ((TraccarDeviceStatus2) => {
205
+ TraccarDeviceStatus2["ONLINE"] = "online";
206
+ TraccarDeviceStatus2["OFFLINE"] = "offline";
207
+ TraccarDeviceStatus2["UNKNOWN"] = "unknown";
208
+ return TraccarDeviceStatus2;
209
+ })(TraccarDeviceStatus || {});
210
+
202
211
  // src/index.ts
203
212
  var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
204
213
  LinkDestination2["Website"] = "web";
@@ -224,6 +233,7 @@ var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
224
233
  ParcelSize,
225
234
  PaymentOptions,
226
235
  RoleType,
236
+ TraccarDeviceStatus,
227
237
  VehicleLogType,
228
238
  VehicleType,
229
239
  errandTimeline
package/dist/index.d.cts CHANGED
@@ -688,6 +688,41 @@ interface VehicleLogStatsSummary {
688
688
  }[];
689
689
  }
690
690
 
691
+ declare enum TraccarDeviceStatus {
692
+ ONLINE = "online",
693
+ OFFLINE = "offline",
694
+ UNKNOWN = "unknown"
695
+ }
696
+ interface TraccarDevice {
697
+ id: number;
698
+ attributes: Record<string, any>;
699
+ groupId: number;
700
+ calendarId: number;
701
+ name: string;
702
+ uniqueId: string;
703
+ status: TraccarDeviceStatus | `${TraccarDeviceStatus}`;
704
+ lastUpdate: string | Date;
705
+ positionId: number;
706
+ phone: string | NullOrUndefined;
707
+ model: string | NullOrUndefined;
708
+ contact: string | NullOrUndefined;
709
+ category: string | NullOrUndefined;
710
+ disabled: boolean;
711
+ expirationTime: string | Date | NullOrUndefined;
712
+ }
713
+ interface TrackerDevice {
714
+ id: string;
715
+ name: string;
716
+ traccarDeviceId: number;
717
+ uniqueId: string;
718
+ slug: string;
719
+ businessId?: string | NullOrUndefined;
720
+ vehicleId?: string | NullOrUndefined;
721
+ createdAt: string | Date;
722
+ updatedAt: string | Date;
723
+ traccarDetails?: TraccarDevice | NullOrUndefined;
724
+ }
725
+
691
726
  interface PaginateResult<T> {
692
727
  docs: T[];
693
728
  totalDocs: number;
@@ -710,4 +745,4 @@ declare enum LinkDestination {
710
745
  }
711
746
  type NullOrUndefined = null | undefined;
712
747
 
713
- 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 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 };
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 };
package/dist/index.d.ts CHANGED
@@ -688,6 +688,41 @@ interface VehicleLogStatsSummary {
688
688
  }[];
689
689
  }
690
690
 
691
+ declare enum TraccarDeviceStatus {
692
+ ONLINE = "online",
693
+ OFFLINE = "offline",
694
+ UNKNOWN = "unknown"
695
+ }
696
+ interface TraccarDevice {
697
+ id: number;
698
+ attributes: Record<string, any>;
699
+ groupId: number;
700
+ calendarId: number;
701
+ name: string;
702
+ uniqueId: string;
703
+ status: TraccarDeviceStatus | `${TraccarDeviceStatus}`;
704
+ lastUpdate: string | Date;
705
+ positionId: number;
706
+ phone: string | NullOrUndefined;
707
+ model: string | NullOrUndefined;
708
+ contact: string | NullOrUndefined;
709
+ category: string | NullOrUndefined;
710
+ disabled: boolean;
711
+ expirationTime: string | Date | NullOrUndefined;
712
+ }
713
+ interface TrackerDevice {
714
+ id: string;
715
+ name: string;
716
+ traccarDeviceId: number;
717
+ uniqueId: string;
718
+ slug: string;
719
+ businessId?: string | NullOrUndefined;
720
+ vehicleId?: string | NullOrUndefined;
721
+ createdAt: string | Date;
722
+ updatedAt: string | Date;
723
+ traccarDetails?: TraccarDevice | NullOrUndefined;
724
+ }
725
+
691
726
  interface PaginateResult<T> {
692
727
  docs: T[];
693
728
  totalDocs: number;
@@ -710,4 +745,4 @@ declare enum LinkDestination {
710
745
  }
711
746
  type NullOrUndefined = null | undefined;
712
747
 
713
- 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 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 };
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 };
package/dist/index.js CHANGED
@@ -155,6 +155,14 @@ var MembershipStatus = /* @__PURE__ */ ((MembershipStatus2) => {
155
155
  return MembershipStatus2;
156
156
  })(MembershipStatus || {});
157
157
 
158
+ // src/tracker.ts
159
+ var TraccarDeviceStatus = /* @__PURE__ */ ((TraccarDeviceStatus2) => {
160
+ TraccarDeviceStatus2["ONLINE"] = "online";
161
+ TraccarDeviceStatus2["OFFLINE"] = "offline";
162
+ TraccarDeviceStatus2["UNKNOWN"] = "unknown";
163
+ return TraccarDeviceStatus2;
164
+ })(TraccarDeviceStatus || {});
165
+
158
166
  // src/index.ts
159
167
  var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
160
168
  LinkDestination2["Website"] = "web";
@@ -179,6 +187,7 @@ export {
179
187
  ParcelSize,
180
188
  PaymentOptions,
181
189
  RoleType,
190
+ TraccarDeviceStatus,
182
191
  VehicleLogType,
183
192
  VehicleType,
184
193
  errandTimeline
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.7.17",
3
+ "version": "1.7.18",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
package/src/index.ts CHANGED
@@ -34,3 +34,4 @@ export * from './business';
34
34
  export * from './customer';
35
35
  export * from './transaction';
36
36
  export * from './stat';
37
+ export * from './tracker';
package/src/tracker.ts ADDED
@@ -0,0 +1,38 @@
1
+ import { NullOrUndefined } from '.';
2
+
3
+ export enum TraccarDeviceStatus {
4
+ ONLINE = 'online',
5
+ OFFLINE = 'offline',
6
+ UNKNOWN = 'unknown',
7
+ }
8
+
9
+ export interface TraccarDevice {
10
+ id: number;
11
+ attributes: Record<string, any>;
12
+ groupId: number;
13
+ calendarId: number;
14
+ name: string;
15
+ uniqueId: string;
16
+ status: TraccarDeviceStatus | `${TraccarDeviceStatus}`;
17
+ lastUpdate: string | Date;
18
+ positionId: number;
19
+ phone: string | NullOrUndefined;
20
+ model: string | NullOrUndefined;
21
+ contact: string | NullOrUndefined;
22
+ category: string | NullOrUndefined;
23
+ disabled: boolean;
24
+ expirationTime: string | Date | NullOrUndefined;
25
+ }
26
+
27
+ export interface TrackerDevice {
28
+ id: string;
29
+ name: string;
30
+ traccarDeviceId: number;
31
+ uniqueId: string;
32
+ slug: string;
33
+ businessId?: string | NullOrUndefined;
34
+ vehicleId?: string | NullOrUndefined;
35
+ createdAt: string | Date;
36
+ updatedAt: string | Date;
37
+ traccarDetails?: TraccarDevice | NullOrUndefined;
38
+ }