@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.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +10 -0
- package/dist/index.d.cts +36 -1
- package/dist/index.d.ts +36 -1
- package/dist/index.js +9 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/tracker.ts +38 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mydoormot/app-types@1.7.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2021
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
|
-
[32mESM[39m [1mdist/index.js [22m[32m6.
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
-
[32mCJS[39m [1mdist/index.cjs [22m[
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
11
|
+
[32mESM[39m [1mdist/index.js [22m[32m6.47 KB[39m
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 47ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m8.20 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 47ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 665ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m18.76 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m18.76 KB[39m
|
package/CHANGELOG.md
CHANGED
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
package/src/index.ts
CHANGED
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
|
+
}
|