@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.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +48 -23
- package/dist/index.d.cts +399 -534
- package/dist/index.d.ts +399 -534
- package/dist/index.js +42 -19
- package/package.json +1 -1
- package/src/business.ts +0 -16
- package/src/customer.ts +2 -0
- package/src/errand.ts +12 -51
- package/src/index.ts +1 -2
- package/src/invoice.ts +5 -0
- package/src/rating.ts +73 -0
- package/src/vehicle.ts +0 -100
- package/src/whatsapp.ts +1 -0
- package/src/platform.ts +0 -17
- package/src/portal.ts +0 -46
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mydoormot/app-types@2.
|
|
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
|
[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
|
-
[32mESM[39m [1mdist/index.js [22m[
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
-
[32mCJS[39m [1mdist/index.cjs [22m[
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
11
|
+
[32mESM[39m [1mdist/index.js [22m[32m16.02 KB[39m
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 79ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m19.16 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 79ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 675ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m55.69 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m55.69 KB[39m
|
package/CHANGELOG.md
CHANGED
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
|
-
|
|
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/
|
|
424
|
-
var
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
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
|
-
|
|
508
|
+
badRatingTags,
|
|
509
|
+
errandTimeline,
|
|
510
|
+
goodRatingTags,
|
|
511
|
+
minRatingsForAverage
|
|
487
512
|
});
|