@mydoormot/app-types 1.7.16 → 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.15 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
- CJS dist/index.cjs 7.84 KB
12
- CJS ⚡️ Build success in 61ms
13
- ESM dist/index.js 6.17 KB
14
- ESM ⚡️ Build success in 61ms
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 686ms
17
- DTS dist/index.d.ts 17.71 KB
18
- DTS dist/index.d.cts 17.71 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,17 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.7.18
4
+
5
+ ### Patch Changes
6
+
7
+ - Added trcker types
8
+
9
+ ## 1.7.17
10
+
11
+ ### Patch Changes
12
+
13
+ - Modified types
14
+
3
15
  ## 1.7.16
4
16
 
5
17
  ### 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
@@ -164,18 +164,20 @@ interface Invoice {
164
164
  createdAt: string;
165
165
  updatedAt: string;
166
166
  customerDetails?: Customer;
167
+ paidErrandsCount?: number;
168
+ unpaidErrandsCount?: number;
167
169
  }
168
170
  interface InvoiceItem {
169
171
  id: string;
170
172
  invoiceId: string;
171
173
  itemType: InvoiceItemType | `${InvoiceItemType}`;
172
174
  itemId: string;
173
- item: Errand;
174
175
  amount: number;
175
176
  description: string;
176
177
  date: string;
177
178
  createdAt: string;
178
179
  updatedAt: string;
180
+ itemDetails?: Errand;
179
181
  }
180
182
 
181
183
  type Rider = {
@@ -686,6 +688,41 @@ interface VehicleLogStatsSummary {
686
688
  }[];
687
689
  }
688
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
+
689
726
  interface PaginateResult<T> {
690
727
  docs: T[];
691
728
  totalDocs: number;
@@ -708,4 +745,4 @@ declare enum LinkDestination {
708
745
  }
709
746
  type NullOrUndefined = null | undefined;
710
747
 
711
- 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
@@ -164,18 +164,20 @@ interface Invoice {
164
164
  createdAt: string;
165
165
  updatedAt: string;
166
166
  customerDetails?: Customer;
167
+ paidErrandsCount?: number;
168
+ unpaidErrandsCount?: number;
167
169
  }
168
170
  interface InvoiceItem {
169
171
  id: string;
170
172
  invoiceId: string;
171
173
  itemType: InvoiceItemType | `${InvoiceItemType}`;
172
174
  itemId: string;
173
- item: Errand;
174
175
  amount: number;
175
176
  description: string;
176
177
  date: string;
177
178
  createdAt: string;
178
179
  updatedAt: string;
180
+ itemDetails?: Errand;
179
181
  }
180
182
 
181
183
  type Rider = {
@@ -686,6 +688,41 @@ interface VehicleLogStatsSummary {
686
688
  }[];
687
689
  }
688
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
+
689
726
  interface PaginateResult<T> {
690
727
  docs: T[];
691
728
  totalDocs: number;
@@ -708,4 +745,4 @@ declare enum LinkDestination {
708
745
  }
709
746
  type NullOrUndefined = null | undefined;
710
747
 
711
- 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.16",
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/invoice.ts CHANGED
@@ -42,6 +42,8 @@ export interface Invoice {
42
42
  updatedAt: string;
43
43
 
44
44
  customerDetails?: Customer;
45
+ paidErrandsCount?: number;
46
+ unpaidErrandsCount?: number;
45
47
  }
46
48
 
47
49
  export interface InvoiceItem {
@@ -49,10 +51,12 @@ export interface InvoiceItem {
49
51
  invoiceId: string;
50
52
  itemType: InvoiceItemType | `${InvoiceItemType}`;
51
53
  itemId: string;
52
- item: Errand;
54
+ // item: Errand;
53
55
  amount: number;
54
56
  description: string;
55
57
  date: string;
56
58
  createdAt: string;
57
59
  updatedAt: string;
60
+
61
+ itemDetails?: Errand;
58
62
  }
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
+ }