@dpscan/contracts 0.4.2 → 0.4.3
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/dist/http/carrier/carrier.dto.d.ts.map +1 -1
- package/dist/http/carrier/carrier.dto.js +3 -1
- package/dist/http/route/route.dto.d.ts.map +1 -1
- package/dist/http/route/route.dto.js +6 -2
- package/dist/http/vehicle/vehicle.dto.d.ts.map +1 -1
- package/dist/http/vehicle/vehicle.dto.js +15 -5
- package/dist/http/vehicle-snapshots/vehicle-snapshots.dto.d.ts.map +1 -1
- package/dist/http/vehicle-snapshots/vehicle-snapshots.dto.js +6 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carrier.dto.d.ts","sourceRoot":"","sources":["../../../src/http/carrier/carrier.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,iBAAiB,6BAAoB,CAAC;AAEnD,eAAO,MAAM,eAAe;;;;iBAI1B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;iBAEhC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;
|
|
1
|
+
{"version":3,"file":"carrier.dto.d.ts","sourceRoot":"","sources":["../../../src/http/carrier/carrier.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,iBAAiB,6BAAoB,CAAC;AAEnD,eAAO,MAAM,eAAe;;;;iBAI1B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;iBAEhC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;iBAK/B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;iBAAsC,CAAC"}
|
|
@@ -10,7 +10,9 @@ export const CarrierParamsContract = z.object({
|
|
|
10
10
|
id: CarrierIdContract,
|
|
11
11
|
});
|
|
12
12
|
export const CarrierQueryContract = z.object({
|
|
13
|
-
pageInfo
|
|
13
|
+
get pageInfo() {
|
|
14
|
+
return PageInfoContract;
|
|
15
|
+
},
|
|
14
16
|
search: z.string().min(1).optional(),
|
|
15
17
|
});
|
|
16
18
|
export const CarrierListContract = PageResultContract(CarrierContract);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.dto.d.ts","sourceRoot":"","sources":["../../../src/http/route/route.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,eAAe,6BAA0B,CAAC;AAEvD,eAAO,MAAM,aAAa;;;;;iBAKxB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;iBAE9B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;
|
|
1
|
+
{"version":3,"file":"route.dto.d.ts","sourceRoot":"","sources":["../../../src/http/route/route.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,eAAe,6BAA0B,CAAC;AAEvD,eAAO,MAAM,aAAa;;;;;iBAKxB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;iBAE9B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;iBAQ7B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;iBAAoC,CAAC"}
|
|
@@ -12,8 +12,12 @@ export const RouteParamsContract = z.object({
|
|
|
12
12
|
id: RouteIdContract,
|
|
13
13
|
});
|
|
14
14
|
export const RouteQueryContract = z.object({
|
|
15
|
-
pageInfo
|
|
15
|
+
get pageInfo() {
|
|
16
|
+
return PageInfoContract;
|
|
17
|
+
},
|
|
16
18
|
search: z.string().min(1).optional(),
|
|
17
|
-
vehicle
|
|
19
|
+
get vehicle() {
|
|
20
|
+
return VehicleIdContract.clone().optional();
|
|
21
|
+
},
|
|
18
22
|
});
|
|
19
23
|
export const RouteListContract = PageResultContract(RouteContract);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vehicle.dto.d.ts","sourceRoot":"","sources":["../../../src/http/vehicle/vehicle.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,iBAAiB,6BAAoB,CAAC;AAEnD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;iBAiBjC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;iBAEhC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"vehicle.dto.d.ts","sourceRoot":"","sources":["../../../src/http/vehicle/vehicle.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,iBAAiB,6BAAoB,CAAC;AAEnD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;iBAiBjC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;iBAEhC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;iBAiBnC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;iBAA6C,CAAC"}
|
|
@@ -27,11 +27,21 @@ export const VehicleParamsContract = z.object({
|
|
|
27
27
|
id: VehicleIdContract,
|
|
28
28
|
});
|
|
29
29
|
export const VehicleListQueryContract = z.object({
|
|
30
|
-
pageInfo
|
|
30
|
+
get pageInfo() {
|
|
31
|
+
return PageInfoContract;
|
|
32
|
+
},
|
|
31
33
|
search: z.string().min(1).optional(),
|
|
32
|
-
carrier
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
get carrier() {
|
|
35
|
+
return CarrierIdContract.clone().optional();
|
|
36
|
+
},
|
|
37
|
+
get route() {
|
|
38
|
+
return RouteIdContract.clone().optional();
|
|
39
|
+
},
|
|
40
|
+
get model() {
|
|
41
|
+
return VehicleModelIdContract.clone().optional();
|
|
42
|
+
},
|
|
43
|
+
get vehicleType() {
|
|
44
|
+
return VehicleTypeIdContract.clone().optional();
|
|
45
|
+
},
|
|
36
46
|
});
|
|
37
47
|
export const VehicleListContract = PageResultContract(VehicleDetailsContract);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vehicle-snapshots.dto.d.ts","sourceRoot":"","sources":["../../../src/http/vehicle-snapshots/vehicle-snapshots.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,8BAA8B;;
|
|
1
|
+
{"version":3,"file":"vehicle-snapshots.dto.d.ts","sourceRoot":"","sources":["../../../src/http/vehicle-snapshots/vehicle-snapshots.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,8BAA8B;;iBAIzC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;iBAKxC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;kBAIlC,CAAC"}
|
|
@@ -2,10 +2,14 @@ import { z } from 'zod';
|
|
|
2
2
|
import { RouteIdContract } from '../route';
|
|
3
3
|
import { VehicleIdContract } from '../vehicle';
|
|
4
4
|
export const VehicleSnapshotsParamsContract = z.object({
|
|
5
|
-
routeId
|
|
5
|
+
get routeId() {
|
|
6
|
+
return RouteIdContract;
|
|
7
|
+
},
|
|
6
8
|
});
|
|
7
9
|
export const VehicleSnapshotsQueryContract = z.object({
|
|
8
|
-
vehicle
|
|
10
|
+
get vehicle() {
|
|
11
|
+
return VehicleIdContract;
|
|
12
|
+
},
|
|
9
13
|
day: z.coerce.number().int().min(1).max(7),
|
|
10
14
|
});
|
|
11
15
|
export const VehicleSnapshotsContract = z.array(z.object({
|