@mydoormot/app-types 1.7.32 → 1.7.34
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 +12 -0
- package/dist/index.cjs +7 -0
- package/dist/index.d.cts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +6 -0
- package/package.json +1 -1
- package/src/business.ts +10 -0
- package/src/rider.ts +2 -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.33 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
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
11
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m9.25 KB[39m
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 301ms
|
|
13
|
+
[32mESM[39m [1mdist/index.js [22m[32m7.36 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 302ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m28.
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[32m28.
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 884ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m28.32 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m28.32 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -24,6 +24,7 @@ __export(src_exports, {
|
|
|
24
24
|
AuthType: () => AuthType,
|
|
25
25
|
BusinessCapability: () => BusinessCapability,
|
|
26
26
|
BusinessRole: () => BusinessRole,
|
|
27
|
+
BusinessStatus: () => BusinessStatus,
|
|
27
28
|
DeliveryStatus: () => DeliveryStatus,
|
|
28
29
|
EnterpriseType: () => EnterpriseType,
|
|
29
30
|
ErrandStatus: () => ErrandStatus,
|
|
@@ -205,6 +206,11 @@ var BusinessCapability = /* @__PURE__ */ ((BusinessCapability2) => {
|
|
|
205
206
|
BusinessCapability2["SELF_FULFILLMENT"] = "self_fulfillment";
|
|
206
207
|
return BusinessCapability2;
|
|
207
208
|
})(BusinessCapability || {});
|
|
209
|
+
var BusinessStatus = /* @__PURE__ */ ((BusinessStatus2) => {
|
|
210
|
+
BusinessStatus2["ACTIVE"] = "active";
|
|
211
|
+
BusinessStatus2["DISABLED"] = "disabled";
|
|
212
|
+
return BusinessStatus2;
|
|
213
|
+
})(BusinessStatus || {});
|
|
208
214
|
var BusinessRole = /* @__PURE__ */ ((BusinessRole2) => {
|
|
209
215
|
BusinessRole2["OWNER"] = "OWNER";
|
|
210
216
|
BusinessRole2["MANAGER"] = "MANAGER";
|
|
@@ -240,6 +246,7 @@ var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
|
|
|
240
246
|
AuthType,
|
|
241
247
|
BusinessCapability,
|
|
242
248
|
BusinessRole,
|
|
249
|
+
BusinessStatus,
|
|
243
250
|
DeliveryStatus,
|
|
244
251
|
EnterpriseType,
|
|
245
252
|
ErrandStatus,
|
package/dist/index.d.cts
CHANGED
|
@@ -182,6 +182,10 @@ interface InvoiceItem {
|
|
|
182
182
|
declare enum BusinessCapability {
|
|
183
183
|
SELF_FULFILLMENT = "self_fulfillment"
|
|
184
184
|
}
|
|
185
|
+
declare enum BusinessStatus {
|
|
186
|
+
ACTIVE = "active",
|
|
187
|
+
DISABLED = "disabled"
|
|
188
|
+
}
|
|
185
189
|
interface Business {
|
|
186
190
|
id: string;
|
|
187
191
|
userId: string;
|
|
@@ -213,6 +217,10 @@ interface Business {
|
|
|
213
217
|
registrationCompletedAt: string | NullOrUndefined | Date;
|
|
214
218
|
businessCategoryDetails: BusinessCategory | NullOrUndefined;
|
|
215
219
|
capabilities: BusinessCapability[] | NullOrUndefined;
|
|
220
|
+
status: BusinessStatus | `${BusinessStatus}`;
|
|
221
|
+
disabledAt: string | NullOrUndefined | Date;
|
|
222
|
+
disabledBy: string | NullOrUndefined;
|
|
223
|
+
disabledReason: string | NullOrUndefined;
|
|
216
224
|
}
|
|
217
225
|
interface BusinessPg extends Business {
|
|
218
226
|
pgId: any;
|
|
@@ -358,6 +366,7 @@ type Rider = {
|
|
|
358
366
|
};
|
|
359
367
|
type RiderWithUserDetails = Rider & {
|
|
360
368
|
userDetails?: User;
|
|
369
|
+
vehicleDetails?: Vehicle | null;
|
|
361
370
|
businessMemberDetails?: BusinessMember;
|
|
362
371
|
};
|
|
363
372
|
declare enum RemittanceStatus {
|
|
@@ -1091,4 +1100,4 @@ declare enum LinkDestination {
|
|
|
1091
1100
|
}
|
|
1092
1101
|
type NullOrUndefined = null | undefined;
|
|
1093
1102
|
|
|
1094
|
-
export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, 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 };
|
|
1103
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -182,6 +182,10 @@ interface InvoiceItem {
|
|
|
182
182
|
declare enum BusinessCapability {
|
|
183
183
|
SELF_FULFILLMENT = "self_fulfillment"
|
|
184
184
|
}
|
|
185
|
+
declare enum BusinessStatus {
|
|
186
|
+
ACTIVE = "active",
|
|
187
|
+
DISABLED = "disabled"
|
|
188
|
+
}
|
|
185
189
|
interface Business {
|
|
186
190
|
id: string;
|
|
187
191
|
userId: string;
|
|
@@ -213,6 +217,10 @@ interface Business {
|
|
|
213
217
|
registrationCompletedAt: string | NullOrUndefined | Date;
|
|
214
218
|
businessCategoryDetails: BusinessCategory | NullOrUndefined;
|
|
215
219
|
capabilities: BusinessCapability[] | NullOrUndefined;
|
|
220
|
+
status: BusinessStatus | `${BusinessStatus}`;
|
|
221
|
+
disabledAt: string | NullOrUndefined | Date;
|
|
222
|
+
disabledBy: string | NullOrUndefined;
|
|
223
|
+
disabledReason: string | NullOrUndefined;
|
|
216
224
|
}
|
|
217
225
|
interface BusinessPg extends Business {
|
|
218
226
|
pgId: any;
|
|
@@ -358,6 +366,7 @@ type Rider = {
|
|
|
358
366
|
};
|
|
359
367
|
type RiderWithUserDetails = Rider & {
|
|
360
368
|
userDetails?: User;
|
|
369
|
+
vehicleDetails?: Vehicle | null;
|
|
361
370
|
businessMemberDetails?: BusinessMember;
|
|
362
371
|
};
|
|
363
372
|
declare enum RemittanceStatus {
|
|
@@ -1091,4 +1100,4 @@ declare enum LinkDestination {
|
|
|
1091
1100
|
}
|
|
1092
1101
|
type NullOrUndefined = null | undefined;
|
|
1093
1102
|
|
|
1094
|
-
export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessMember, type BusinessPg, BusinessRole, 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 };
|
|
1103
|
+
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 };
|
package/dist/index.js
CHANGED
|
@@ -157,6 +157,11 @@ var BusinessCapability = /* @__PURE__ */ ((BusinessCapability2) => {
|
|
|
157
157
|
BusinessCapability2["SELF_FULFILLMENT"] = "self_fulfillment";
|
|
158
158
|
return BusinessCapability2;
|
|
159
159
|
})(BusinessCapability || {});
|
|
160
|
+
var BusinessStatus = /* @__PURE__ */ ((BusinessStatus2) => {
|
|
161
|
+
BusinessStatus2["ACTIVE"] = "active";
|
|
162
|
+
BusinessStatus2["DISABLED"] = "disabled";
|
|
163
|
+
return BusinessStatus2;
|
|
164
|
+
})(BusinessStatus || {});
|
|
160
165
|
var BusinessRole = /* @__PURE__ */ ((BusinessRole2) => {
|
|
161
166
|
BusinessRole2["OWNER"] = "OWNER";
|
|
162
167
|
BusinessRole2["MANAGER"] = "MANAGER";
|
|
@@ -191,6 +196,7 @@ export {
|
|
|
191
196
|
AuthType,
|
|
192
197
|
BusinessCapability,
|
|
193
198
|
BusinessRole,
|
|
199
|
+
BusinessStatus,
|
|
194
200
|
DeliveryStatus,
|
|
195
201
|
EnterpriseType,
|
|
196
202
|
ErrandStatus,
|
package/package.json
CHANGED
package/src/business.ts
CHANGED
|
@@ -4,6 +4,11 @@ export enum BusinessCapability {
|
|
|
4
4
|
SELF_FULFILLMENT = 'self_fulfillment',
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
+
export enum BusinessStatus {
|
|
8
|
+
ACTIVE = 'active',
|
|
9
|
+
DISABLED = 'disabled',
|
|
10
|
+
}
|
|
11
|
+
|
|
7
12
|
export interface Business {
|
|
8
13
|
id: string;
|
|
9
14
|
userId: string;
|
|
@@ -42,6 +47,11 @@ export interface Business {
|
|
|
42
47
|
registrationCompletedAt: string | NullOrUndefined | Date;
|
|
43
48
|
businessCategoryDetails: BusinessCategory | NullOrUndefined;
|
|
44
49
|
capabilities: BusinessCapability[] | NullOrUndefined;
|
|
50
|
+
|
|
51
|
+
status: BusinessStatus | `${BusinessStatus}`;
|
|
52
|
+
disabledAt: string | NullOrUndefined | Date;
|
|
53
|
+
disabledBy: string | NullOrUndefined;
|
|
54
|
+
disabledReason: string | NullOrUndefined;
|
|
45
55
|
}
|
|
46
56
|
|
|
47
57
|
export interface BusinessPg extends Business {
|
package/src/rider.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { BusinessMember } from './business';
|
|
|
3
3
|
import { Errand } from './errand';
|
|
4
4
|
import { State } from './location';
|
|
5
5
|
import { User } from './user';
|
|
6
|
+
import type { Vehicle } from './vehicle';
|
|
6
7
|
|
|
7
8
|
// Re-export vehicle types for backwards compatibility
|
|
8
9
|
export type { Vehicle, VehicleWithRider, VehicleLog, VehicleLogWithErrands } from './vehicle';
|
|
@@ -36,6 +37,7 @@ export type Rider = {
|
|
|
36
37
|
|
|
37
38
|
export type RiderWithUserDetails = Rider & {
|
|
38
39
|
userDetails?: User;
|
|
40
|
+
vehicleDetails?: Vehicle | null;
|
|
39
41
|
businessMemberDetails?: BusinessMember;
|
|
40
42
|
};
|
|
41
43
|
|