@mydoormot/app-types 1.7.39 → 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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @mydoormot/app-types@1.7.38 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
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
- CJS dist/index.cjs 13.20 KB
12
- CJS ⚡️ Build success in 66ms
13
- ESM dist/index.js 10.83 KB
14
- ESM ⚡️ Build success in 67ms
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 694ms
17
- DTS dist/index.d.ts 33.77 KB
18
- DTS dist/index.d.cts 33.77 KB
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
@@ -1,5 +1,17 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.7.41
4
+
5
+ ### Patch Changes
6
+
7
+ - Added in business couirer links
8
+
9
+ ## 1.7.40
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated whatsapp
14
+
3
15
  ## 1.7.39
4
16
 
5
17
  ### Patch Changes
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) => {
@@ -323,6 +330,9 @@ var WhatsappTemplateParamSource = /* @__PURE__ */ ((WhatsappTemplateParamSource2
323
330
  WhatsappTemplateParamSource2["ERRAND_DELIVERY_NAME"] = "errand.deliveryDetails.fullName";
324
331
  WhatsappTemplateParamSource2["BUSINESS_NAME"] = "business.name";
325
332
  WhatsappTemplateParamSource2["COURIER_BUSINESS_NAME"] = "courierBusiness.name";
333
+ WhatsappTemplateParamSource2["RIDER_NAME"] = "rider.name";
334
+ WhatsappTemplateParamSource2["RIDER_MOBILE_NUMBER"] = "rider.mobileNumber";
335
+ WhatsappTemplateParamSource2["VEHICLE_PLATE_NUMBER"] = "vehicle.plateNumber";
326
336
  return WhatsappTemplateParamSource2;
327
337
  })(WhatsappTemplateParamSource || {});
328
338
 
@@ -338,6 +348,7 @@ var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
338
348
  AddressTypes,
339
349
  AuthType,
340
350
  BusinessCapability,
351
+ BusinessCourierLinkStatus,
341
352
  BusinessRole,
342
353
  BusinessStatus,
343
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",
@@ -1205,7 +1224,10 @@ declare enum WhatsappTemplateParamSource {
1205
1224
  ERRAND_PICKUP_NAME = "errand.pickupDetails.fullName",
1206
1225
  ERRAND_DELIVERY_NAME = "errand.deliveryDetails.fullName",
1207
1226
  BUSINESS_NAME = "business.name",
1208
- COURIER_BUSINESS_NAME = "courierBusiness.name"
1227
+ COURIER_BUSINESS_NAME = "courierBusiness.name",
1228
+ RIDER_NAME = "rider.name",
1229
+ RIDER_MOBILE_NUMBER = "rider.mobileNumber",
1230
+ VEHICLE_PLATE_NUMBER = "vehicle.plateNumber"
1209
1231
  }
1210
1232
  interface WhatsappTemplateSource {
1211
1233
  position: number;
@@ -1280,4 +1302,4 @@ declare enum LinkDestination {
1280
1302
  }
1281
1303
  type NullOrUndefined = null | undefined;
1282
1304
 
1283
- 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",
@@ -1205,7 +1224,10 @@ declare enum WhatsappTemplateParamSource {
1205
1224
  ERRAND_PICKUP_NAME = "errand.pickupDetails.fullName",
1206
1225
  ERRAND_DELIVERY_NAME = "errand.deliveryDetails.fullName",
1207
1226
  BUSINESS_NAME = "business.name",
1208
- COURIER_BUSINESS_NAME = "courierBusiness.name"
1227
+ COURIER_BUSINESS_NAME = "courierBusiness.name",
1228
+ RIDER_NAME = "rider.name",
1229
+ RIDER_MOBILE_NUMBER = "rider.mobileNumber",
1230
+ VEHICLE_PLATE_NUMBER = "vehicle.plateNumber"
1209
1231
  }
1210
1232
  interface WhatsappTemplateSource {
1211
1233
  position: number;
@@ -1280,4 +1302,4 @@ declare enum LinkDestination {
1280
1302
  }
1281
1303
  type NullOrUndefined = null | undefined;
1282
1304
 
1283
- 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) => {
@@ -265,6 +271,9 @@ var WhatsappTemplateParamSource = /* @__PURE__ */ ((WhatsappTemplateParamSource2
265
271
  WhatsappTemplateParamSource2["ERRAND_DELIVERY_NAME"] = "errand.deliveryDetails.fullName";
266
272
  WhatsappTemplateParamSource2["BUSINESS_NAME"] = "business.name";
267
273
  WhatsappTemplateParamSource2["COURIER_BUSINESS_NAME"] = "courierBusiness.name";
274
+ WhatsappTemplateParamSource2["RIDER_NAME"] = "rider.name";
275
+ WhatsappTemplateParamSource2["RIDER_MOBILE_NUMBER"] = "rider.mobileNumber";
276
+ WhatsappTemplateParamSource2["VEHICLE_PLATE_NUMBER"] = "vehicle.plateNumber";
268
277
  return WhatsappTemplateParamSource2;
269
278
  })(WhatsappTemplateParamSource || {});
270
279
 
@@ -279,6 +288,7 @@ export {
279
288
  AddressTypes,
280
289
  AuthType,
281
290
  BusinessCapability,
291
+ BusinessCourierLinkStatus,
282
292
  BusinessRole,
283
293
  BusinessStatus,
284
294
  DEFAULT_BUSINESS_MODULES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.7.39",
3
+ "version": "1.7.41",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
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
+ }
package/src/whatsapp.ts CHANGED
@@ -40,6 +40,9 @@ export enum WhatsappTemplateParamSource {
40
40
  ERRAND_DELIVERY_NAME = 'errand.deliveryDetails.fullName',
41
41
  BUSINESS_NAME = 'business.name',
42
42
  COURIER_BUSINESS_NAME = 'courierBusiness.name',
43
+ RIDER_NAME = 'rider.name',
44
+ RIDER_MOBILE_NUMBER = 'rider.mobileNumber',
45
+ VEHICLE_PLATE_NUMBER = 'vehicle.plateNumber',
43
46
  }
44
47
 
45
48
  export interface WhatsappTemplateSource {