@mydoormot/app-types 1.8.1 → 1.8.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@1.8.0 build /Users/chuksben/Desktop/projects/microservices/mydoormot/packages/app-types
2
+ > @mydoormot/app-types@1.8.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 @@ CLI tsup v7.3.0
8
8
  CLI Target: es2021
9
9
  ESM Build start
10
10
  CJS Build start
11
- DTS Build start
12
11
  ESM dist/index.js 11.40 KB
13
- ESM ⚡️ Build success in 313ms
12
+ ESM ⚡️ Build success in 87ms
14
13
  CJS dist/index.cjs 13.82 KB
15
- CJS ⚡️ Build success in 313ms
16
- DTS ⚡️ Build success in 791ms
17
- DTS dist/index.d.ts 35.07 KB
18
- DTS dist/index.d.cts 35.07 KB
14
+ CJS ⚡️ Build success in 88ms
15
+ DTS Build start
16
+ DTS ⚡️ Build success in 904ms
17
+ DTS dist/index.d.ts 35.34 KB
18
+ DTS dist/index.d.cts 35.34 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @mydoormot/app-types
2
2
 
3
+ ## 1.8.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Added can delete on vehicle logs
8
+
3
9
  ## 1.8.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -404,6 +404,12 @@ type VehicleLog = {
404
404
  type VehicleLogWithErrands = VehicleLog & {
405
405
  errandsCount?: number;
406
406
  totalErrandsRevenue?: number;
407
+ /**
408
+ * Only the most recent fuel log for a vehicle is deletable — false when a
409
+ * newer log exists. Use it to enable/disable the delete affordance, but still
410
+ * handle a 400 from the delete endpoint: a newer log may land in between.
411
+ */
412
+ canDelete?: boolean;
407
413
  };
408
414
  interface VehicleErrandStats {
409
415
  count: number;
package/dist/index.d.ts CHANGED
@@ -404,6 +404,12 @@ type VehicleLog = {
404
404
  type VehicleLogWithErrands = VehicleLog & {
405
405
  errandsCount?: number;
406
406
  totalErrandsRevenue?: number;
407
+ /**
408
+ * Only the most recent fuel log for a vehicle is deletable — false when a
409
+ * newer log exists. Use it to enable/disable the delete affordance, but still
410
+ * handle a 400 from the delete endpoint: a newer log may land in between.
411
+ */
412
+ canDelete?: boolean;
407
413
  };
408
414
  interface VehicleErrandStats {
409
415
  count: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mydoormot/app-types",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
package/src/vehicle.ts CHANGED
@@ -81,6 +81,12 @@ export type VehicleLog = {
81
81
  export type VehicleLogWithErrands = VehicleLog & {
82
82
  errandsCount?: number;
83
83
  totalErrandsRevenue?: number;
84
+ /**
85
+ * Only the most recent fuel log for a vehicle is deletable — false when a
86
+ * newer log exists. Use it to enable/disable the delete affordance, but still
87
+ * handle a 400 from the delete endpoint: a newer log may land in between.
88
+ */
89
+ canDelete?: boolean;
84
90
  };
85
91
 
86
92
  // Vehicle Performance Types