@mydoormot/app-types 1.7.35 → 1.7.36
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 +18 -18
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +9 -0
- package/dist/index.d.cts +34 -1
- package/dist/index.d.ts +34 -1
- package/dist/index.js +8 -0
- package/package.json +1 -1
- package/src/errand.ts +43 -0
- package/src/rider.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
> @mydoormot/app-types@1.7.35 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
|
|
3
|
-
> tsup src/index.ts --format esm,cjs --dts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
|
|
2
|
+
> @mydoormot/app-types@1.7.35 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
|
|
3
|
+
> tsup src/index.ts --format esm,cjs --dts
|
|
4
|
+
|
|
5
|
+
CLI Building entry: src/index.ts
|
|
6
|
+
CLI Using tsconfig: tsconfig.json
|
|
7
|
+
CLI tsup v7.3.0
|
|
8
|
+
CLI Target: es2021
|
|
9
|
+
ESM Build start
|
|
10
|
+
CJS Build start
|
|
11
|
+
DTS Build start
|
|
12
|
+
ESM dist/index.js 7.69 KB
|
|
13
|
+
ESM ⚡️ Build success in 439ms
|
|
14
|
+
CJS dist/index.cjs 9.63 KB
|
|
15
|
+
CJS ⚡️ Build success in 440ms
|
|
16
|
+
DTS ⚡️ Build success in 850ms
|
|
17
|
+
DTS dist/index.d.ts 29.24 KB
|
|
18
|
+
DTS dist/index.d.cts 29.24 KB
|
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -26,6 +26,7 @@ __export(src_exports, {
|
|
|
26
26
|
BusinessRole: () => BusinessRole,
|
|
27
27
|
BusinessStatus: () => BusinessStatus,
|
|
28
28
|
DeliveryStatus: () => DeliveryStatus,
|
|
29
|
+
DraftErrandStatus: () => DraftErrandStatus,
|
|
29
30
|
EnterpriseType: () => EnterpriseType,
|
|
30
31
|
ErrandStatus: () => ErrandStatus,
|
|
31
32
|
GlobalRoles: () => GlobalRoles,
|
|
@@ -133,6 +134,13 @@ var ParcelSize = /* @__PURE__ */ ((ParcelSize2) => {
|
|
|
133
134
|
ParcelSize2["Small"] = "small";
|
|
134
135
|
return ParcelSize2;
|
|
135
136
|
})(ParcelSize || {});
|
|
137
|
+
var DraftErrandStatus = /* @__PURE__ */ ((DraftErrandStatus2) => {
|
|
138
|
+
DraftErrandStatus2["Draft"] = "draft";
|
|
139
|
+
DraftErrandStatus2["RiderCompleted"] = "rider_completed";
|
|
140
|
+
DraftErrandStatus2["Approved"] = "approved";
|
|
141
|
+
DraftErrandStatus2["Rejected"] = "rejected";
|
|
142
|
+
return DraftErrandStatus2;
|
|
143
|
+
})(DraftErrandStatus || {});
|
|
136
144
|
|
|
137
145
|
// src/invoice.ts
|
|
138
146
|
var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
|
|
@@ -248,6 +256,7 @@ var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
|
|
|
248
256
|
BusinessRole,
|
|
249
257
|
BusinessStatus,
|
|
250
258
|
DeliveryStatus,
|
|
259
|
+
DraftErrandStatus,
|
|
251
260
|
EnterpriseType,
|
|
252
261
|
ErrandStatus,
|
|
253
262
|
GlobalRoles,
|
package/dist/index.d.cts
CHANGED
|
@@ -379,6 +379,7 @@ declare enum RemittanceStatus {
|
|
|
379
379
|
interface RiderSettlement {
|
|
380
380
|
id: string;
|
|
381
381
|
errandId: string;
|
|
382
|
+
draftErrandId?: string;
|
|
382
383
|
riderId: string;
|
|
383
384
|
businessId: string;
|
|
384
385
|
deliveryFee: number;
|
|
@@ -633,6 +634,38 @@ interface ErrandReviewLink {
|
|
|
633
634
|
createdBy: string;
|
|
634
635
|
createdAt: string;
|
|
635
636
|
}
|
|
637
|
+
declare enum DraftErrandStatus {
|
|
638
|
+
Draft = "draft",
|
|
639
|
+
RiderCompleted = "rider_completed",
|
|
640
|
+
Approved = "approved",
|
|
641
|
+
Rejected = "rejected"
|
|
642
|
+
}
|
|
643
|
+
interface DraftErrand {
|
|
644
|
+
id: string;
|
|
645
|
+
businessId: string;
|
|
646
|
+
riderId: string;
|
|
647
|
+
cityId?: string;
|
|
648
|
+
price: number;
|
|
649
|
+
customerName?: string;
|
|
650
|
+
customerPhone?: string;
|
|
651
|
+
nameOfItem?: string;
|
|
652
|
+
pickupDetails?: AddressDetails;
|
|
653
|
+
deliveryDetails?: AddressDetails;
|
|
654
|
+
additionalData?: string;
|
|
655
|
+
parcelSize?: `${ParcelSize}`;
|
|
656
|
+
payOnDeliveryAmount?: number;
|
|
657
|
+
status: DraftErrandStatus;
|
|
658
|
+
convertedErrandId?: string;
|
|
659
|
+
settlementId?: string;
|
|
660
|
+
createdBy: string;
|
|
661
|
+
riderCompletedAt?: Date;
|
|
662
|
+
approvedAt?: Date;
|
|
663
|
+
rejectedAt?: Date;
|
|
664
|
+
rejectionReason?: string;
|
|
665
|
+
createdAt: Date;
|
|
666
|
+
updatedAt: Date;
|
|
667
|
+
riderDetails?: Rider;
|
|
668
|
+
}
|
|
636
669
|
type ErrandDeliveryTiming = 'early' | 'on_time' | 'late';
|
|
637
670
|
type ErrandPackagingQuality = 'excellent' | 'average' | 'poor';
|
|
638
671
|
type ErrandRiderBehavior = 'outstanding' | 'acceptable' | 'unsatisfactory';
|
|
@@ -1102,4 +1135,4 @@ declare enum LinkDestination {
|
|
|
1102
1135
|
}
|
|
1103
1136
|
type NullOrUndefined = null | undefined;
|
|
1104
1137
|
|
|
1105
|
-
export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, BusinessStatus, type City, type Collection, 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, type MaintenanceItem, type MaintenancePartUsage, type MaintenanceRecord, type MaintenanceStats, type MaintenanceStatsSummary, type MaintenanceTopItem, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Product, type ProductCategory, type ProductImage, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductTag, type ProductVariant, type ProductVariantPrice, RemittanceStatus, type Rider, type RiderPerformanceItem, type RiderPerformanceStats, type RiderPerformanceSummary, type RiderPerformanceTimeSeries, type RiderSettlement, type RiderWithUserDetails, RoleType, SettlementType, 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 VehicleErrandStats, type VehicleFuelStats, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleMaintenanceStats, type VehiclePerformanceData, type VehiclePerformanceFilters, type VehiclePerformanceItem, type VehiclePerformanceTotals, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
|
|
1138
|
+
export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, BusinessStatus, type City, type Collection, type Coupon, type Customer, type CustomerTransactionStats, DeliveryStatus, type DraftErrand, DraftErrandStatus, 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, type MaintenanceItem, type MaintenancePartUsage, type MaintenanceRecord, type MaintenanceStats, type MaintenanceStatsSummary, type MaintenanceTopItem, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Product, type ProductCategory, type ProductImage, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductTag, type ProductVariant, type ProductVariantPrice, RemittanceStatus, type Rider, type RiderPerformanceItem, type RiderPerformanceStats, type RiderPerformanceSummary, type RiderPerformanceTimeSeries, type RiderSettlement, type RiderWithUserDetails, RoleType, SettlementType, 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 VehicleErrandStats, type VehicleFuelStats, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleMaintenanceStats, type VehiclePerformanceData, type VehiclePerformanceFilters, type VehiclePerformanceItem, type VehiclePerformanceTotals, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
|
package/dist/index.d.ts
CHANGED
|
@@ -379,6 +379,7 @@ declare enum RemittanceStatus {
|
|
|
379
379
|
interface RiderSettlement {
|
|
380
380
|
id: string;
|
|
381
381
|
errandId: string;
|
|
382
|
+
draftErrandId?: string;
|
|
382
383
|
riderId: string;
|
|
383
384
|
businessId: string;
|
|
384
385
|
deliveryFee: number;
|
|
@@ -633,6 +634,38 @@ interface ErrandReviewLink {
|
|
|
633
634
|
createdBy: string;
|
|
634
635
|
createdAt: string;
|
|
635
636
|
}
|
|
637
|
+
declare enum DraftErrandStatus {
|
|
638
|
+
Draft = "draft",
|
|
639
|
+
RiderCompleted = "rider_completed",
|
|
640
|
+
Approved = "approved",
|
|
641
|
+
Rejected = "rejected"
|
|
642
|
+
}
|
|
643
|
+
interface DraftErrand {
|
|
644
|
+
id: string;
|
|
645
|
+
businessId: string;
|
|
646
|
+
riderId: string;
|
|
647
|
+
cityId?: string;
|
|
648
|
+
price: number;
|
|
649
|
+
customerName?: string;
|
|
650
|
+
customerPhone?: string;
|
|
651
|
+
nameOfItem?: string;
|
|
652
|
+
pickupDetails?: AddressDetails;
|
|
653
|
+
deliveryDetails?: AddressDetails;
|
|
654
|
+
additionalData?: string;
|
|
655
|
+
parcelSize?: `${ParcelSize}`;
|
|
656
|
+
payOnDeliveryAmount?: number;
|
|
657
|
+
status: DraftErrandStatus;
|
|
658
|
+
convertedErrandId?: string;
|
|
659
|
+
settlementId?: string;
|
|
660
|
+
createdBy: string;
|
|
661
|
+
riderCompletedAt?: Date;
|
|
662
|
+
approvedAt?: Date;
|
|
663
|
+
rejectedAt?: Date;
|
|
664
|
+
rejectionReason?: string;
|
|
665
|
+
createdAt: Date;
|
|
666
|
+
updatedAt: Date;
|
|
667
|
+
riderDetails?: Rider;
|
|
668
|
+
}
|
|
636
669
|
type ErrandDeliveryTiming = 'early' | 'on_time' | 'late';
|
|
637
670
|
type ErrandPackagingQuality = 'excellent' | 'average' | 'poor';
|
|
638
671
|
type ErrandRiderBehavior = 'outstanding' | 'acceptable' | 'unsatisfactory';
|
|
@@ -1102,4 +1135,4 @@ declare enum LinkDestination {
|
|
|
1102
1135
|
}
|
|
1103
1136
|
type NullOrUndefined = null | undefined;
|
|
1104
1137
|
|
|
1105
|
-
export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, BusinessStatus, type City, type Collection, 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, type MaintenanceItem, type MaintenancePartUsage, type MaintenanceRecord, type MaintenanceStats, type MaintenanceStatsSummary, type MaintenanceTopItem, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Product, type ProductCategory, type ProductImage, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductTag, type ProductVariant, type ProductVariantPrice, RemittanceStatus, type Rider, type RiderPerformanceItem, type RiderPerformanceStats, type RiderPerformanceSummary, type RiderPerformanceTimeSeries, type RiderSettlement, type RiderWithUserDetails, RoleType, SettlementType, 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 VehicleErrandStats, type VehicleFuelStats, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleMaintenanceStats, type VehiclePerformanceData, type VehiclePerformanceFilters, type VehiclePerformanceItem, type VehiclePerformanceTotals, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
|
|
1138
|
+
export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, BusinessStatus, type City, type Collection, type Coupon, type Customer, type CustomerTransactionStats, DeliveryStatus, type DraftErrand, DraftErrandStatus, 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, type MaintenanceItem, type MaintenancePartUsage, type MaintenanceRecord, type MaintenanceStats, type MaintenanceStatsSummary, type MaintenanceTopItem, MembershipStatus, type Notification, type NotificationData, NotificationType, type NullOrUndefined, type PaginateResult, ParcelSize, PaymentOptions, type PendingErrand, type Product, type ProductCategory, type ProductImage, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductTag, type ProductVariant, type ProductVariantPrice, RemittanceStatus, type Rider, type RiderPerformanceItem, type RiderPerformanceStats, type RiderPerformanceSummary, type RiderPerformanceTimeSeries, type RiderSettlement, type RiderWithUserDetails, RoleType, SettlementType, 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 VehicleErrandStats, type VehicleFuelStats, type VehicleLog, type VehicleLogStatsSummary, VehicleLogType, type VehicleLogWithErrands, type VehicleMaintenanceStats, type VehiclePerformanceData, type VehiclePerformanceFilters, type VehiclePerformanceItem, type VehiclePerformanceTotals, VehicleType, type VehicleWithRider, type Vendor, errandTimeline };
|
package/dist/index.js
CHANGED
|
@@ -84,6 +84,13 @@ var ParcelSize = /* @__PURE__ */ ((ParcelSize2) => {
|
|
|
84
84
|
ParcelSize2["Small"] = "small";
|
|
85
85
|
return ParcelSize2;
|
|
86
86
|
})(ParcelSize || {});
|
|
87
|
+
var DraftErrandStatus = /* @__PURE__ */ ((DraftErrandStatus2) => {
|
|
88
|
+
DraftErrandStatus2["Draft"] = "draft";
|
|
89
|
+
DraftErrandStatus2["RiderCompleted"] = "rider_completed";
|
|
90
|
+
DraftErrandStatus2["Approved"] = "approved";
|
|
91
|
+
DraftErrandStatus2["Rejected"] = "rejected";
|
|
92
|
+
return DraftErrandStatus2;
|
|
93
|
+
})(DraftErrandStatus || {});
|
|
87
94
|
|
|
88
95
|
// src/invoice.ts
|
|
89
96
|
var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
|
|
@@ -198,6 +205,7 @@ export {
|
|
|
198
205
|
BusinessRole,
|
|
199
206
|
BusinessStatus,
|
|
200
207
|
DeliveryStatus,
|
|
208
|
+
DraftErrandStatus,
|
|
201
209
|
EnterpriseType,
|
|
202
210
|
ErrandStatus,
|
|
203
211
|
GlobalRoles,
|
package/package.json
CHANGED
package/src/errand.ts
CHANGED
|
@@ -275,6 +275,49 @@ export interface ErrandReviewLink {
|
|
|
275
275
|
createdAt: string;
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
+
export enum DraftErrandStatus {
|
|
279
|
+
Draft = 'draft',
|
|
280
|
+
RiderCompleted = 'rider_completed',
|
|
281
|
+
Approved = 'approved',
|
|
282
|
+
Rejected = 'rejected',
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export interface DraftErrand {
|
|
286
|
+
id: string;
|
|
287
|
+
businessId: string;
|
|
288
|
+
riderId: string;
|
|
289
|
+
cityId?: string;
|
|
290
|
+
price: number;
|
|
291
|
+
|
|
292
|
+
// Optional at creation — may not be known yet
|
|
293
|
+
customerName?: string;
|
|
294
|
+
customerPhone?: string;
|
|
295
|
+
|
|
296
|
+
// Full details filled by rider after delivery
|
|
297
|
+
nameOfItem?: string;
|
|
298
|
+
pickupDetails?: AddressDetails;
|
|
299
|
+
deliveryDetails?: AddressDetails;
|
|
300
|
+
additionalData?: string;
|
|
301
|
+
parcelSize?: `${ParcelSize}`;
|
|
302
|
+
payOnDeliveryAmount?: number;
|
|
303
|
+
|
|
304
|
+
// Lifecycle
|
|
305
|
+
status: DraftErrandStatus;
|
|
306
|
+
convertedErrandId?: string;
|
|
307
|
+
settlementId?: string;
|
|
308
|
+
createdBy: string;
|
|
309
|
+
riderCompletedAt?: Date;
|
|
310
|
+
approvedAt?: Date;
|
|
311
|
+
rejectedAt?: Date;
|
|
312
|
+
rejectionReason?: string;
|
|
313
|
+
|
|
314
|
+
createdAt: Date;
|
|
315
|
+
updatedAt: Date;
|
|
316
|
+
|
|
317
|
+
// Populated
|
|
318
|
+
riderDetails?: Rider;
|
|
319
|
+
}
|
|
320
|
+
|
|
278
321
|
export type ErrandDeliveryTiming = 'early' | 'on_time' | 'late';
|
|
279
322
|
export type ErrandPackagingQuality = 'excellent' | 'average' | 'poor';
|
|
280
323
|
export type ErrandRiderBehavior =
|