@mydoormot/app-types 1.7.40 → 1.7.41
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 +8 -0
- package/dist/index.d.cts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +7 -0
- package/package.json +1 -1
- package/src/business.ts +23 -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.40 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 @@ CLI tsup v7.3.0
|
|
|
8
8
|
CLI Target: es2021
|
|
9
9
|
ESM Build start
|
|
10
10
|
CJS Build start
|
|
11
|
-
ESM dist/index.js 11.
|
|
12
|
-
ESM ⚡️ Build success in
|
|
13
|
-
CJS dist/index.cjs 13.
|
|
14
|
-
CJS ⚡️ Build success in
|
|
11
|
+
ESM dist/index.js 11.38 KB
|
|
12
|
+
ESM ⚡️ Build success in 69ms
|
|
13
|
+
CJS dist/index.cjs 13.81 KB
|
|
14
|
+
CJS ⚡️ Build success in 69ms
|
|
15
15
|
DTS Build start
|
|
16
|
-
DTS ⚡️ Build success in
|
|
17
|
-
DTS dist/index.d.ts
|
|
18
|
-
DTS dist/index.d.cts
|
|
16
|
+
DTS ⚡️ Build success in 737ms
|
|
17
|
+
DTS dist/index.d.ts 34.57 KB
|
|
18
|
+
DTS dist/index.d.cts 34.57 KB
|
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -23,6 +23,7 @@ __export(src_exports, {
|
|
|
23
23
|
AddressTypes: () => AddressTypes,
|
|
24
24
|
AuthType: () => AuthType,
|
|
25
25
|
BusinessCapability: () => BusinessCapability,
|
|
26
|
+
BusinessCourierLinkStatus: () => BusinessCourierLinkStatus,
|
|
26
27
|
BusinessRole: () => BusinessRole,
|
|
27
28
|
BusinessStatus: () => BusinessStatus,
|
|
28
29
|
DEFAULT_BUSINESS_MODULES: () => DEFAULT_BUSINESS_MODULES,
|
|
@@ -273,6 +274,12 @@ var DEFAULT_BUSINESS_SETTINGS = {
|
|
|
273
274
|
},
|
|
274
275
|
modules: DEFAULT_BUSINESS_MODULES
|
|
275
276
|
};
|
|
277
|
+
var BusinessCourierLinkStatus = /* @__PURE__ */ ((BusinessCourierLinkStatus2) => {
|
|
278
|
+
BusinessCourierLinkStatus2["ACTIVE"] = "active";
|
|
279
|
+
BusinessCourierLinkStatus2["SUSPENDED"] = "suspended";
|
|
280
|
+
BusinessCourierLinkStatus2["REVOKED"] = "revoked";
|
|
281
|
+
return BusinessCourierLinkStatus2;
|
|
282
|
+
})(BusinessCourierLinkStatus || {});
|
|
276
283
|
|
|
277
284
|
// src/tracker.ts
|
|
278
285
|
var TraccarDeviceStatus = /* @__PURE__ */ ((TraccarDeviceStatus2) => {
|
|
@@ -341,6 +348,7 @@ var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
|
|
|
341
348
|
AddressTypes,
|
|
342
349
|
AuthType,
|
|
343
350
|
BusinessCapability,
|
|
351
|
+
BusinessCourierLinkStatus,
|
|
344
352
|
BusinessRole,
|
|
345
353
|
BusinessStatus,
|
|
346
354
|
DEFAULT_BUSINESS_MODULES,
|
package/dist/index.d.cts
CHANGED
|
@@ -308,6 +308,25 @@ interface BusinessMember {
|
|
|
308
308
|
createdAt: string;
|
|
309
309
|
updatedAt: string | NullOrUndefined;
|
|
310
310
|
}
|
|
311
|
+
declare enum BusinessCourierLinkStatus {
|
|
312
|
+
ACTIVE = "active",
|
|
313
|
+
SUSPENDED = "suspended",
|
|
314
|
+
REVOKED = "revoked"
|
|
315
|
+
}
|
|
316
|
+
interface BusinessCourierLink {
|
|
317
|
+
id: string;
|
|
318
|
+
fromBusinessId: string;
|
|
319
|
+
toBusinessId: string;
|
|
320
|
+
status: BusinessCourierLinkStatus | `${BusinessCourierLinkStatus}`;
|
|
321
|
+
createdBy: string | NullOrUndefined;
|
|
322
|
+
revokedAt: string | NullOrUndefined;
|
|
323
|
+
revokedBy: string | NullOrUndefined;
|
|
324
|
+
revokeReason: string | NullOrUndefined;
|
|
325
|
+
createdAt: string;
|
|
326
|
+
updatedAt: string | NullOrUndefined;
|
|
327
|
+
fromBusinessDetails: Business | NullOrUndefined;
|
|
328
|
+
toBusinessDetails: Business | NullOrUndefined;
|
|
329
|
+
}
|
|
311
330
|
|
|
312
331
|
declare enum VehicleType {
|
|
313
332
|
Bike = "bike",
|
|
@@ -1283,4 +1302,4 @@ declare enum LinkDestination {
|
|
|
1283
1302
|
}
|
|
1284
1303
|
type NullOrUndefined = null | undefined;
|
|
1285
1304
|
|
|
1286
|
-
export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessMember, type BusinessModules, type BusinessPg, BusinessRole, type BusinessSettings, BusinessStatus, type BusinessWhatsappConfig, type City, type Collection, type Coupon, type Customer, type CustomerTransactionStats, DEFAULT_BUSINESS_MODULES, DEFAULT_BUSINESS_SETTINGS, 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 OpeningHours, 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, WhatsappButtonType, WhatsappComponentType, WhatsappEvent, WhatsappRecipient, type WhatsappSendLog, type WhatsappTemplate, type WhatsappTemplateButton, type WhatsappTemplateComponent, WhatsappTemplateMetaStatus, WhatsappTemplateParamSource, type WhatsappTemplateSource, errandTimeline };
|
|
1305
|
+
export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessCourierLink, BusinessCourierLinkStatus, type BusinessMember, type BusinessModules, type BusinessPg, BusinessRole, type BusinessSettings, BusinessStatus, type BusinessWhatsappConfig, type City, type Collection, type Coupon, type Customer, type CustomerTransactionStats, DEFAULT_BUSINESS_MODULES, DEFAULT_BUSINESS_SETTINGS, 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 OpeningHours, 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, WhatsappButtonType, WhatsappComponentType, WhatsappEvent, WhatsappRecipient, type WhatsappSendLog, type WhatsappTemplate, type WhatsappTemplateButton, type WhatsappTemplateComponent, WhatsappTemplateMetaStatus, WhatsappTemplateParamSource, type WhatsappTemplateSource, errandTimeline };
|
package/dist/index.d.ts
CHANGED
|
@@ -308,6 +308,25 @@ interface BusinessMember {
|
|
|
308
308
|
createdAt: string;
|
|
309
309
|
updatedAt: string | NullOrUndefined;
|
|
310
310
|
}
|
|
311
|
+
declare enum BusinessCourierLinkStatus {
|
|
312
|
+
ACTIVE = "active",
|
|
313
|
+
SUSPENDED = "suspended",
|
|
314
|
+
REVOKED = "revoked"
|
|
315
|
+
}
|
|
316
|
+
interface BusinessCourierLink {
|
|
317
|
+
id: string;
|
|
318
|
+
fromBusinessId: string;
|
|
319
|
+
toBusinessId: string;
|
|
320
|
+
status: BusinessCourierLinkStatus | `${BusinessCourierLinkStatus}`;
|
|
321
|
+
createdBy: string | NullOrUndefined;
|
|
322
|
+
revokedAt: string | NullOrUndefined;
|
|
323
|
+
revokedBy: string | NullOrUndefined;
|
|
324
|
+
revokeReason: string | NullOrUndefined;
|
|
325
|
+
createdAt: string;
|
|
326
|
+
updatedAt: string | NullOrUndefined;
|
|
327
|
+
fromBusinessDetails: Business | NullOrUndefined;
|
|
328
|
+
toBusinessDetails: Business | NullOrUndefined;
|
|
329
|
+
}
|
|
311
330
|
|
|
312
331
|
declare enum VehicleType {
|
|
313
332
|
Bike = "bike",
|
|
@@ -1283,4 +1302,4 @@ declare enum LinkDestination {
|
|
|
1283
1302
|
}
|
|
1284
1303
|
type NullOrUndefined = null | undefined;
|
|
1285
1304
|
|
|
1286
|
-
export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessMember, type BusinessModules, type BusinessPg, BusinessRole, type BusinessSettings, BusinessStatus, type BusinessWhatsappConfig, type City, type Collection, type Coupon, type Customer, type CustomerTransactionStats, DEFAULT_BUSINESS_MODULES, DEFAULT_BUSINESS_SETTINGS, 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 OpeningHours, 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, WhatsappButtonType, WhatsappComponentType, WhatsappEvent, WhatsappRecipient, type WhatsappSendLog, type WhatsappTemplate, type WhatsappTemplateButton, type WhatsappTemplateComponent, WhatsappTemplateMetaStatus, WhatsappTemplateParamSource, type WhatsappTemplateSource, errandTimeline };
|
|
1305
|
+
export { type AddonGroup, type AddonGroupItem, type AddressDetails, AddressTypes, type AggregatedErrand, AuthType, type Business, BusinessCapability, type BusinessCategory, type BusinessCourierLink, BusinessCourierLinkStatus, type BusinessMember, type BusinessModules, type BusinessPg, BusinessRole, type BusinessSettings, BusinessStatus, type BusinessWhatsappConfig, type City, type Collection, type Coupon, type Customer, type CustomerTransactionStats, DEFAULT_BUSINESS_MODULES, DEFAULT_BUSINESS_SETTINGS, 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 OpeningHours, 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, WhatsappButtonType, WhatsappComponentType, WhatsappEvent, WhatsappRecipient, type WhatsappSendLog, type WhatsappTemplate, type WhatsappTemplateButton, type WhatsappTemplateComponent, WhatsappTemplateMetaStatus, WhatsappTemplateParamSource, type WhatsappTemplateSource, errandTimeline };
|
package/dist/index.js
CHANGED
|
@@ -215,6 +215,12 @@ var DEFAULT_BUSINESS_SETTINGS = {
|
|
|
215
215
|
},
|
|
216
216
|
modules: DEFAULT_BUSINESS_MODULES
|
|
217
217
|
};
|
|
218
|
+
var BusinessCourierLinkStatus = /* @__PURE__ */ ((BusinessCourierLinkStatus2) => {
|
|
219
|
+
BusinessCourierLinkStatus2["ACTIVE"] = "active";
|
|
220
|
+
BusinessCourierLinkStatus2["SUSPENDED"] = "suspended";
|
|
221
|
+
BusinessCourierLinkStatus2["REVOKED"] = "revoked";
|
|
222
|
+
return BusinessCourierLinkStatus2;
|
|
223
|
+
})(BusinessCourierLinkStatus || {});
|
|
218
224
|
|
|
219
225
|
// src/tracker.ts
|
|
220
226
|
var TraccarDeviceStatus = /* @__PURE__ */ ((TraccarDeviceStatus2) => {
|
|
@@ -282,6 +288,7 @@ export {
|
|
|
282
288
|
AddressTypes,
|
|
283
289
|
AuthType,
|
|
284
290
|
BusinessCapability,
|
|
291
|
+
BusinessCourierLinkStatus,
|
|
285
292
|
BusinessRole,
|
|
286
293
|
BusinessStatus,
|
|
287
294
|
DEFAULT_BUSINESS_MODULES,
|
package/package.json
CHANGED
package/src/business.ts
CHANGED
|
@@ -182,3 +182,26 @@ export interface BusinessMember {
|
|
|
182
182
|
createdAt: string;
|
|
183
183
|
updatedAt: string | NullOrUndefined;
|
|
184
184
|
}
|
|
185
|
+
|
|
186
|
+
export enum BusinessCourierLinkStatus {
|
|
187
|
+
ACTIVE = 'active',
|
|
188
|
+
SUSPENDED = 'suspended',
|
|
189
|
+
REVOKED = 'revoked',
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface BusinessCourierLink {
|
|
193
|
+
id: string;
|
|
194
|
+
fromBusinessId: string;
|
|
195
|
+
toBusinessId: string;
|
|
196
|
+
status: BusinessCourierLinkStatus | `${BusinessCourierLinkStatus}`;
|
|
197
|
+
createdBy: string | NullOrUndefined;
|
|
198
|
+
revokedAt: string | NullOrUndefined;
|
|
199
|
+
revokedBy: string | NullOrUndefined;
|
|
200
|
+
revokeReason: string | NullOrUndefined;
|
|
201
|
+
createdAt: string;
|
|
202
|
+
updatedAt: string | NullOrUndefined;
|
|
203
|
+
|
|
204
|
+
// Populated via Mongoose virtuals — present when the API populates them.
|
|
205
|
+
fromBusinessDetails: Business | NullOrUndefined;
|
|
206
|
+
toBusinessDetails: Business | NullOrUndefined;
|
|
207
|
+
}
|