@mydoormot/app-types 1.1.5 → 1.1.6
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 +5 -5
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +7 -19
- package/dist/index.js +11 -1
- package/package.json +1 -1
- package/src/errand.ts +2 -3
- package/src/index.ts +1 -0
- package/src/user.ts +4 -16
package/.turbo/turbo-build.log
CHANGED
|
@@ -5,9 +5,9 @@ CLI Using tsconfig: tsconfig.json
|
|
|
5
5
|
CLI tsup v7.2.0
|
|
6
6
|
CLI Target: node16
|
|
7
7
|
CJS Build start
|
|
8
|
-
CJS dist/index.js 5.
|
|
9
|
-
CJS ⚡️ Build success in
|
|
8
|
+
CJS dist/index.js 5.41 KB
|
|
9
|
+
CJS ⚡️ Build success in 63ms
|
|
10
10
|
DTS Build start
|
|
11
|
-
DTS ⚡️ Build success in
|
|
12
|
-
DTS dist/index.d.ts
|
|
13
|
-
Done in
|
|
11
|
+
DTS ⚡️ Build success in 1161ms
|
|
12
|
+
DTS dist/index.d.ts 8.85 KB
|
|
13
|
+
Done in 3.13s.
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -22,26 +22,14 @@ type User = {
|
|
|
22
22
|
updatedAt: string;
|
|
23
23
|
createdAt: string;
|
|
24
24
|
enterprise: string[];
|
|
25
|
+
authType: AuthType | `${AuthType}`;
|
|
26
|
+
version: number;
|
|
25
27
|
pushTokens?: string[];
|
|
26
28
|
avatarUrl?: string;
|
|
27
29
|
state?: string;
|
|
28
30
|
city?: string;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
address?: string;
|
|
32
|
-
placeId?: string;
|
|
33
|
-
};
|
|
34
|
-
workAddress?: {
|
|
35
|
-
coordinates?: number[];
|
|
36
|
-
address?: string;
|
|
37
|
-
placeId?: string;
|
|
38
|
-
};
|
|
39
|
-
googleToken?: string;
|
|
40
|
-
appleToken?: string;
|
|
41
|
-
authType?: AuthType | `${AuthType}`;
|
|
42
|
-
passwordChangedAt?: string;
|
|
43
|
-
passwordResetToken?: string;
|
|
44
|
-
passwordResetExpires?: string;
|
|
31
|
+
googleUserId?: string;
|
|
32
|
+
appleUserId?: string;
|
|
45
33
|
};
|
|
46
34
|
type UserAddress = {
|
|
47
35
|
user: string;
|
|
@@ -260,11 +248,12 @@ interface Errand {
|
|
|
260
248
|
errandTimeline: string | ErrandTimeline;
|
|
261
249
|
updatedAt: Date;
|
|
262
250
|
createdAt: Date;
|
|
263
|
-
errandRating?: string;
|
|
251
|
+
errandRating?: string | ErrandRating;
|
|
264
252
|
payOnDeliveryAmount?: string;
|
|
265
253
|
additionalData?: string;
|
|
266
254
|
deliveryDate?: Date;
|
|
267
255
|
city?: City;
|
|
256
|
+
price?: number;
|
|
268
257
|
}
|
|
269
258
|
interface AggragatedErrand extends Errand {
|
|
270
259
|
parcelSize: `${ParcelSize}`;
|
|
@@ -286,7 +275,6 @@ interface AggragatedErrand extends Errand {
|
|
|
286
275
|
stateCoords: number[];
|
|
287
276
|
};
|
|
288
277
|
riderUserDetails: User;
|
|
289
|
-
errandRatingDetails?: ErrandRating;
|
|
290
278
|
}
|
|
291
279
|
interface ErrandRating {
|
|
292
280
|
createdAt: string;
|
|
@@ -398,4 +386,4 @@ declare enum LinkDestination {
|
|
|
398
386
|
RiderApp = "mydoormot:rider"
|
|
399
387
|
}
|
|
400
388
|
|
|
401
|
-
export { AddressDetails, AddressTypes, AggragatedErrand, AuthType, City, DeliveryStatus, Errand, ErrandRating, ErrandStatus, ErrandTimeline, Invoice, InvoiceStatus, LatLng, LinkDestination, Notification, NotificationData, NotificationType, PaginateResult, ParcelSize, PaymentOptions, PendingErrand, Rider, RoleType, State, User, UserAddress, Vehicle, errandTimeline };
|
|
389
|
+
export { AddressDetails, AddressTypes, AggragatedErrand, AuthType, City, DeliveryStatus, Enterprise, EnterpriseType, Errand, ErrandRating, ErrandStatus, ErrandTimeline, Invoice, InvoiceStatus, LatLng, LinkDestination, Notification, NotificationData, NotificationType, PaginateResult, ParcelSize, PaymentOptions, PendingErrand, Rider, RoleType, State, User, UserAddress, Vehicle, errandTimeline };
|
package/dist/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __export(src_exports, {
|
|
|
23
23
|
AddressTypes: () => AddressTypes,
|
|
24
24
|
AuthType: () => AuthType,
|
|
25
25
|
DeliveryStatus: () => DeliveryStatus,
|
|
26
|
+
EnterpriseType: () => EnterpriseType,
|
|
26
27
|
ErrandStatus: () => ErrandStatus,
|
|
27
28
|
InvoiceStatus: () => InvoiceStatus,
|
|
28
29
|
LinkDestination: () => LinkDestination,
|
|
@@ -61,7 +62,6 @@ var ErrandStatus = /* @__PURE__ */ ((ErrandStatus2) => {
|
|
|
61
62
|
ErrandStatus2["Cancelled"] = "cancelled";
|
|
62
63
|
return ErrandStatus2;
|
|
63
64
|
})(ErrandStatus || {});
|
|
64
|
-
console.log("hello");
|
|
65
65
|
var errandTimeline = [
|
|
66
66
|
{
|
|
67
67
|
status: "pending" /* Pending */,
|
|
@@ -130,6 +130,15 @@ var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
|
|
|
130
130
|
return NotificationType2;
|
|
131
131
|
})(NotificationType || {});
|
|
132
132
|
|
|
133
|
+
// src/enterprise.ts
|
|
134
|
+
var EnterpriseType = /* @__PURE__ */ ((EnterpriseType2) => {
|
|
135
|
+
EnterpriseType2["Restaurant"] = "restaurant";
|
|
136
|
+
EnterpriseType2["Dispatch"] = "dispatch";
|
|
137
|
+
EnterpriseType2["Property"] = "property";
|
|
138
|
+
EnterpriseType2["Store"] = "store";
|
|
139
|
+
return EnterpriseType2;
|
|
140
|
+
})(EnterpriseType || {});
|
|
141
|
+
|
|
133
142
|
// src/index.ts
|
|
134
143
|
var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
|
|
135
144
|
LinkDestination2["Website"] = "web";
|
|
@@ -142,6 +151,7 @@ var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
|
|
|
142
151
|
AddressTypes,
|
|
143
152
|
AuthType,
|
|
144
153
|
DeliveryStatus,
|
|
154
|
+
EnterpriseType,
|
|
145
155
|
ErrandStatus,
|
|
146
156
|
InvoiceStatus,
|
|
147
157
|
LinkDestination,
|
package/package.json
CHANGED
package/src/errand.ts
CHANGED
|
@@ -14,7 +14,6 @@ export enum ErrandStatus {
|
|
|
14
14
|
Cancelled = 'cancelled',
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
console.log('hello');
|
|
18
17
|
export const errandTimeline = [
|
|
19
18
|
{
|
|
20
19
|
status: ErrandStatus.Pending,
|
|
@@ -122,11 +121,12 @@ export interface Errand {
|
|
|
122
121
|
errandTimeline: string | ErrandTimeline;
|
|
123
122
|
updatedAt: Date;
|
|
124
123
|
createdAt: Date;
|
|
125
|
-
errandRating?: string;
|
|
124
|
+
errandRating?: string | ErrandRating;
|
|
126
125
|
payOnDeliveryAmount?: string;
|
|
127
126
|
additionalData?: string;
|
|
128
127
|
deliveryDate?: Date;
|
|
129
128
|
city?: City;
|
|
129
|
+
price?: number;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
export interface AggragatedErrand extends Errand {
|
|
@@ -149,7 +149,6 @@ export interface AggragatedErrand extends Errand {
|
|
|
149
149
|
stateCoords: number[];
|
|
150
150
|
};
|
|
151
151
|
riderUserDetails: User;
|
|
152
|
-
errandRatingDetails?: ErrandRating;
|
|
153
152
|
}
|
|
154
153
|
|
|
155
154
|
export interface ErrandTimeline {
|
package/src/index.ts
CHANGED
package/src/user.ts
CHANGED
|
@@ -24,26 +24,14 @@ export type User = {
|
|
|
24
24
|
updatedAt: string;
|
|
25
25
|
createdAt: string;
|
|
26
26
|
enterprise: string[];
|
|
27
|
+
authType: AuthType | `${AuthType}`;
|
|
28
|
+
version: number;
|
|
27
29
|
pushTokens?: string[];
|
|
28
30
|
avatarUrl?: string;
|
|
29
31
|
state?: string;
|
|
30
32
|
city?: string;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
address?: string;
|
|
34
|
-
placeId?: string;
|
|
35
|
-
};
|
|
36
|
-
workAddress?: {
|
|
37
|
-
coordinates?: number[];
|
|
38
|
-
address?: string;
|
|
39
|
-
placeId?: string;
|
|
40
|
-
};
|
|
41
|
-
googleToken?: string;
|
|
42
|
-
appleToken?: string;
|
|
43
|
-
authType?: AuthType | `${AuthType}`;
|
|
44
|
-
passwordChangedAt?: string;
|
|
45
|
-
passwordResetToken?: string;
|
|
46
|
-
passwordResetExpires?: string;
|
|
33
|
+
googleUserId?: string;
|
|
34
|
+
appleUserId?: string;
|
|
47
35
|
};
|
|
48
36
|
|
|
49
37
|
export type UserAddress = {
|