@mydoormot/app-types 2.3.0 → 2.3.2

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@2.2.5 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
2
+ > @mydoormot/app-types@2.3.1 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 @@
8
8
  CLI Target: es2021
9
9
  ESM Build start
10
10
  CJS Build start
11
- ESM dist/index.js 15.03 KB
12
- ESM ⚡️ Build success in 64ms
13
- CJS dist/index.cjs 18.10 KB
14
- CJS ⚡️ Build success in 64ms
11
+ ESM dist/index.js 16.02 KB
12
+ ESM ⚡️ Build success in 79ms
13
+ CJS dist/index.cjs 19.16 KB
14
+ CJS ⚡️ Build success in 79ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 674ms
17
- DTS dist/index.d.ts 60.35 KB
18
- DTS dist/index.d.cts 60.35 KB
16
+ DTS ⚡️ Build success in 675ms
17
+ DTS dist/index.d.ts 55.69 KB
18
+ DTS dist/index.d.cts 55.69 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 2.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated errands rating
8
+
9
+ ## 2.3.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated errands types
14
+
3
15
  ## 2.3.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -28,7 +28,6 @@ __export(src_exports, {
28
28
  BusinessRole: () => BusinessRole,
29
29
  BusinessStatus: () => BusinessStatus,
30
30
  BusinessType: () => BusinessType,
31
- DEFAULT_BUSINESS_FUEL_SETTINGS: () => DEFAULT_BUSINESS_FUEL_SETTINGS,
32
31
  DEFAULT_BUSINESS_RIDER_PAY_SETTINGS: () => DEFAULT_BUSINESS_RIDER_PAY_SETTINGS,
33
32
  DEFAULT_BUSINESS_SETTINGS: () => DEFAULT_BUSINESS_SETTINGS,
34
33
  DeliveryStatus: () => DeliveryStatus,
@@ -36,10 +35,11 @@ __export(src_exports, {
36
35
  EnterpriseType: () => EnterpriseType,
37
36
  ErrandFulfilment: () => ErrandFulfilment,
38
37
  ErrandInvoiceState: () => ErrandInvoiceState,
38
+ ErrandRatingStatus: () => ErrandRatingStatus,
39
+ ErrandRatingTag: () => ErrandRatingTag,
39
40
  ErrandStatus: () => ErrandStatus,
40
41
  FeePaymentStatus: () => FeePaymentStatus,
41
42
  FeeSettlement: () => FeeSettlement,
42
- FuelDueStatus: () => FuelDueStatus,
43
43
  GlobalRoles: () => GlobalRoles,
44
44
  InvoiceEventType: () => InvoiceEventType,
45
45
  InvoiceGenerationType: () => InvoiceGenerationType,
@@ -54,7 +54,6 @@ __export(src_exports, {
54
54
  PaymentOptions: () => PaymentOptions,
55
55
  PayoutPeriodType: () => PayoutPeriodType,
56
56
  PayoutRateSource: () => PayoutRateSource,
57
- PortalStatus: () => PortalStatus,
58
57
  RemittanceStatus: () => RemittanceStatus,
59
58
  RiderPayoutStatus: () => RiderPayoutStatus,
60
59
  RoleType: () => RoleType,
@@ -67,7 +66,10 @@ __export(src_exports, {
67
66
  WhatsappRecipient: () => WhatsappRecipient,
68
67
  WhatsappTemplateMetaStatus: () => WhatsappTemplateMetaStatus,
69
68
  WhatsappTemplateParamSource: () => WhatsappTemplateParamSource,
70
- errandTimeline: () => errandTimeline
69
+ badRatingTags: () => badRatingTags,
70
+ errandTimeline: () => errandTimeline,
71
+ goodRatingTags: () => goodRatingTags,
72
+ minRatingsForAverage: () => minRatingsForAverage
71
73
  });
72
74
  module.exports = __toCommonJS(src_exports);
73
75
 
@@ -219,6 +221,7 @@ var InvoiceEventType = /* @__PURE__ */ ((InvoiceEventType2) => {
219
221
  InvoiceEventType2["PaymentReversed"] = "payment_reversed";
220
222
  InvoiceEventType2["PaymentUpdated"] = "payment_updated";
221
223
  InvoiceEventType2["StatusChanged"] = "status_changed";
224
+ InvoiceEventType2["ErrandSettlementChanged"] = "errand_settlement_changed";
222
225
  InvoiceEventType2["Viewed"] = "viewed";
223
226
  return InvoiceEventType2;
224
227
  })(InvoiceEventType || {});
@@ -249,11 +252,6 @@ var VehicleLogType = /* @__PURE__ */ ((VehicleLogType2) => {
249
252
  VehicleLogType2["REFUEL"] = "REFUEL";
250
253
  return VehicleLogType2;
251
254
  })(VehicleLogType || {});
252
- var FuelDueStatus = /* @__PURE__ */ ((FuelDueStatus2) => {
253
- FuelDueStatus2["Due"] = "DUE";
254
- FuelDueStatus2["Ok"] = "OK";
255
- return FuelDueStatus2;
256
- })(FuelDueStatus || {});
257
255
 
258
256
  // src/rider.ts
259
257
  var RemittanceStatus = /* @__PURE__ */ ((RemittanceStatus2) => {
@@ -333,9 +331,6 @@ var MembershipStatus = /* @__PURE__ */ ((MembershipStatus2) => {
333
331
  MembershipStatus2["DISABLED"] = "DISABLED";
334
332
  return MembershipStatus2;
335
333
  })(MembershipStatus || {});
336
- var DEFAULT_BUSINESS_FUEL_SETTINGS = {
337
- revenuePercent: null
338
- };
339
334
  var DEFAULT_BUSINESS_RIDER_PAY_SETTINGS = {
340
335
  defaultPercentage: null,
341
336
  periodType: null
@@ -363,7 +358,6 @@ var DEFAULT_BUSINESS_SETTINGS = {
363
358
  tiktok: null,
364
359
  website: null
365
360
  },
366
- fuel: DEFAULT_BUSINESS_FUEL_SETTINGS,
367
361
  riderPay: DEFAULT_BUSINESS_RIDER_PAY_SETTINGS
368
362
  };
369
363
  var BusinessCourierLinkStatus = /* @__PURE__ */ ((BusinessCourierLinkStatus2) => {
@@ -410,6 +404,7 @@ var WhatsappButtonType = /* @__PURE__ */ ((WhatsappButtonType2) => {
410
404
  })(WhatsappButtonType || {});
411
405
  var WhatsappTemplateParamSource = /* @__PURE__ */ ((WhatsappTemplateParamSource2) => {
412
406
  WhatsappTemplateParamSource2["ERRAND_ALIAS_ID"] = "errand.aliasId";
407
+ WhatsappTemplateParamSource2["ERRAND_TRACKING_CODE"] = "errand.trackingCode";
413
408
  WhatsappTemplateParamSource2["ERRAND_PICKUP_NAME"] = "errand.pickupDetails.fullName";
414
409
  WhatsappTemplateParamSource2["ERRAND_DELIVERY_NAME"] = "errand.deliveryDetails.fullName";
415
410
  WhatsappTemplateParamSource2["BUSINESS_NAME"] = "business.name";
@@ -420,12 +415,40 @@ var WhatsappTemplateParamSource = /* @__PURE__ */ ((WhatsappTemplateParamSource2
420
415
  return WhatsappTemplateParamSource2;
421
416
  })(WhatsappTemplateParamSource || {});
422
417
 
423
- // src/portal.ts
424
- var PortalStatus = /* @__PURE__ */ ((PortalStatus2) => {
425
- PortalStatus2["Draft"] = "draft";
426
- PortalStatus2["Published"] = "published";
427
- return PortalStatus2;
428
- })(PortalStatus || {});
418
+ // src/rating.ts
419
+ var ErrandRatingTag = /* @__PURE__ */ ((ErrandRatingTag2) => {
420
+ ErrandRatingTag2["OnTime"] = "on-time";
421
+ ErrandRatingTag2["CalledBeforeArriving"] = "called-before-arriving";
422
+ ErrandRatingTag2["Polite"] = "polite";
423
+ ErrandRatingTag2["ItemInGoodShape"] = "item-in-good-shape";
424
+ ErrandRatingTag2["FollowedDirections"] = "followed-directions";
425
+ ErrandRatingTag2["Late"] = "late";
426
+ ErrandRatingTag2["DidNotCall"] = "did-not-call";
427
+ ErrandRatingTag2["Rude"] = "rude";
428
+ ErrandRatingTag2["ItemDamaged"] = "item-damaged";
429
+ ErrandRatingTag2["HardToFindMe"] = "hard-to-find-me";
430
+ return ErrandRatingTag2;
431
+ })(ErrandRatingTag || {});
432
+ var goodRatingTags = [
433
+ "on-time" /* OnTime */,
434
+ "called-before-arriving" /* CalledBeforeArriving */,
435
+ "polite" /* Polite */,
436
+ "item-in-good-shape" /* ItemInGoodShape */,
437
+ "followed-directions" /* FollowedDirections */
438
+ ];
439
+ var badRatingTags = [
440
+ "late" /* Late */,
441
+ "did-not-call" /* DidNotCall */,
442
+ "rude" /* Rude */,
443
+ "item-damaged" /* ItemDamaged */,
444
+ "hard-to-find-me" /* HardToFindMe */
445
+ ];
446
+ var ErrandRatingStatus = /* @__PURE__ */ ((ErrandRatingStatus2) => {
447
+ ErrandRatingStatus2["Visible"] = "visible";
448
+ ErrandRatingStatus2["Hidden"] = "hidden";
449
+ return ErrandRatingStatus2;
450
+ })(ErrandRatingStatus || {});
451
+ var minRatingsForAverage = 10;
429
452
 
430
453
  // src/index.ts
431
454
  var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
@@ -444,7 +467,6 @@ var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
444
467
  BusinessRole,
445
468
  BusinessStatus,
446
469
  BusinessType,
447
- DEFAULT_BUSINESS_FUEL_SETTINGS,
448
470
  DEFAULT_BUSINESS_RIDER_PAY_SETTINGS,
449
471
  DEFAULT_BUSINESS_SETTINGS,
450
472
  DeliveryStatus,
@@ -452,10 +474,11 @@ var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
452
474
  EnterpriseType,
453
475
  ErrandFulfilment,
454
476
  ErrandInvoiceState,
477
+ ErrandRatingStatus,
478
+ ErrandRatingTag,
455
479
  ErrandStatus,
456
480
  FeePaymentStatus,
457
481
  FeeSettlement,
458
- FuelDueStatus,
459
482
  GlobalRoles,
460
483
  InvoiceEventType,
461
484
  InvoiceGenerationType,
@@ -470,7 +493,6 @@ var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
470
493
  PaymentOptions,
471
494
  PayoutPeriodType,
472
495
  PayoutRateSource,
473
- PortalStatus,
474
496
  RemittanceStatus,
475
497
  RiderPayoutStatus,
476
498
  RoleType,
@@ -483,5 +505,8 @@ var LinkDestination = /* @__PURE__ */ ((LinkDestination2) => {
483
505
  WhatsappRecipient,
484
506
  WhatsappTemplateMetaStatus,
485
507
  WhatsappTemplateParamSource,
486
- errandTimeline
508
+ badRatingTags,
509
+ errandTimeline,
510
+ goodRatingTags,
511
+ minRatingsForAverage
487
512
  });