@dpscan/contracts 0.4.4 → 0.4.6
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 +2 -2
- package/dist/http/carrier/carrier.dto.js +1 -1
- package/dist/http/carrier/index.d.ts +1 -1
- package/dist/http/carrier/index.d.ts.map +1 -1
- package/dist/http/carrier/index.js +1 -1
- package/dist/http/common/index.d.ts +1 -1
- package/dist/http/common/index.d.ts.map +1 -1
- package/dist/http/common/index.js +1 -1
- package/dist/http/common/pagination.dto.d.ts +2 -2
- package/dist/http/common/pagination.dto.d.ts.map +1 -1
- package/dist/http/common/pagination.dto.js +1 -1
- package/dist/http/index.d.ts +4 -4
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +4 -4
- package/dist/http/route/index.d.ts +2 -2
- package/dist/http/route/index.d.ts.map +1 -1
- package/dist/http/route/index.js +2 -2
- package/dist/http/route/route.dto.d.ts +2 -2
- package/dist/http/route/route.dto.js +2 -2
- package/dist/http/vehicle/index.d.ts +3 -3
- package/dist/http/vehicle/index.d.ts.map +1 -1
- package/dist/http/vehicle/index.js +3 -3
- package/dist/http/vehicle/vehicle.dto.d.ts +2 -2
- package/dist/http/vehicle/vehicle.dto.js +5 -5
- package/dist/http/vehicle-snapshots/index.d.ts +1 -1
- package/dist/http/vehicle-snapshots/index.d.ts.map +1 -1
- package/dist/http/vehicle-snapshots/index.js +1 -1
- package/dist/http/vehicle-snapshots/vehicle-snapshots.dto.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -9,10 +9,10 @@ export declare const CarrierParamsContract: z.ZodObject<{
|
|
|
9
9
|
id: z.ZodCoercedBigInt<unknown>;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
export declare const CarrierQueryContract: z.ZodObject<{
|
|
12
|
-
pageInfo: z.ZodObject<{
|
|
12
|
+
pageInfo: z.ZodDefault<z.ZodObject<{
|
|
13
13
|
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
14
14
|
size: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
15
|
-
}, z.core.$strip
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
16
|
search: z.ZodOptional<z.ZodString>;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
export declare const CarrierListContract: z.ZodObject<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { PageInfoContract, PageResultContract } from '../common';
|
|
2
|
+
import { PageInfoContract, PageResultContract } from '../common/index.js';
|
|
3
3
|
export const CarrierIdContract = z.coerce.bigint();
|
|
4
4
|
export const CarrierContract = z.object({
|
|
5
5
|
id: z.string(),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './carrier.dto';
|
|
1
|
+
export * from './carrier.dto.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/carrier/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/carrier/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './carrier.dto';
|
|
1
|
+
export * from './carrier.dto.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './pagination.dto';
|
|
1
|
+
export * from './pagination.dto.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './pagination.dto';
|
|
1
|
+
export * from './pagination.dto.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z, type ZodType } from 'zod';
|
|
2
2
|
export declare const PageContract: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
3
3
|
export declare const PageSizeContract: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
4
|
-
export declare const PageInfoContract: z.ZodObject<{
|
|
4
|
+
export declare const PageInfoContract: z.ZodDefault<z.ZodObject<{
|
|
5
5
|
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
6
6
|
size: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
7
|
-
}, z.core.$strip
|
|
7
|
+
}, z.core.$strip>>;
|
|
8
8
|
export declare const PageResultContract: <Type extends ZodType>(dataContract: Type) => z.ZodObject<{
|
|
9
9
|
meta: z.ZodObject<{
|
|
10
10
|
total: z.ZodInt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.dto.d.ts","sourceRoot":"","sources":["../../../src/http/common/pagination.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,KAAK,OAAO,EAAE,MAAM,KAAK,CAAC;AAEtC,eAAO,MAAM,YAAY,2CAA4C,CAAC;AAEtE,eAAO,MAAM,gBAAgB,2CAA6C,CAAC;AAE3E,eAAO,MAAM,gBAAgB;;;
|
|
1
|
+
{"version":3,"file":"pagination.dto.d.ts","sourceRoot":"","sources":["../../../src/http/common/pagination.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,KAAK,OAAO,EAAE,MAAM,KAAK,CAAC;AAEtC,eAAO,MAAM,YAAY,2CAA4C,CAAC;AAEtE,eAAO,MAAM,gBAAgB,2CAA6C,CAAC;AAE3E,eAAO,MAAM,gBAAgB;;;kBAGI,CAAC;AAElC,eAAO,MAAM,kBAAkB,GAAI,IAAI,SAAS,OAAO,EAAE,cAAc,IAAI;;;;;iBAO1E,CAAC"}
|
|
@@ -4,7 +4,7 @@ export const PageSizeContract = z.coerce.number().int().min(1).default(10);
|
|
|
4
4
|
export const PageInfoContract = z.object({
|
|
5
5
|
page: PageContract,
|
|
6
6
|
size: PageSizeContract,
|
|
7
|
-
});
|
|
7
|
+
}).default({ page: 1, size: 10 });
|
|
8
8
|
export const PageResultContract = (dataContract) => {
|
|
9
9
|
return z.object({
|
|
10
10
|
meta: z.object({
|
package/dist/http/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './route';
|
|
2
|
-
export * from './carrier';
|
|
3
|
-
export * from './vehicle';
|
|
4
|
-
export * from './vehicle-snapshots';
|
|
1
|
+
export * from './route/index.js';
|
|
2
|
+
export * from './carrier/index.js';
|
|
3
|
+
export * from './vehicle/index.js';
|
|
4
|
+
export * from './vehicle-snapshots/index.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/http/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC"}
|
package/dist/http/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './route';
|
|
2
|
-
export * from './carrier';
|
|
3
|
-
export * from './vehicle';
|
|
4
|
-
export * from './vehicle-snapshots';
|
|
1
|
+
export * from './route/index.js';
|
|
2
|
+
export * from './carrier/index.js';
|
|
3
|
+
export * from './vehicle/index.js';
|
|
4
|
+
export * from './vehicle-snapshots/index.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './route.dto';
|
|
2
|
-
export * from './station.dto';
|
|
1
|
+
export * from './route.dto.js';
|
|
2
|
+
export * from './station.dto.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/route/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/route/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
|
package/dist/http/route/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './route.dto';
|
|
2
|
-
export * from './station.dto';
|
|
1
|
+
export * from './route.dto.js';
|
|
2
|
+
export * from './station.dto.js';
|
|
@@ -10,10 +10,10 @@ export declare const RouteParamsContract: z.ZodObject<{
|
|
|
10
10
|
routeId: z.ZodCoercedNumber<unknown>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
export declare const RouteQueryContract: z.ZodObject<{
|
|
13
|
-
pageInfo: z.ZodObject<{
|
|
13
|
+
pageInfo: z.ZodDefault<z.ZodObject<{
|
|
14
14
|
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
15
15
|
size: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
16
|
-
}, z.core.$strip
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
17
|
search: z.ZodOptional<z.ZodString>;
|
|
18
18
|
vehicle: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
19
19
|
}, z.core.$strip>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { PageInfoContract, PageResultContract } from '../common';
|
|
3
|
-
import { VehicleIdContract } from '../vehicle';
|
|
2
|
+
import { PageInfoContract, PageResultContract } from '../common/index.js';
|
|
3
|
+
import { VehicleIdContract } from '../vehicle/index.js';
|
|
4
4
|
export const RouteIdContract = z.coerce.number().int();
|
|
5
5
|
export const RouteContract = z.object({
|
|
6
6
|
id: z.int(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './vehicle.dto';
|
|
2
|
-
export * from './vehicle-type.dto';
|
|
3
|
-
export * from './vehicle-model.dto';
|
|
1
|
+
export * from './vehicle.dto.js';
|
|
2
|
+
export * from './vehicle-type.dto.js';
|
|
3
|
+
export * from './vehicle-model.dto.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/vehicle/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/vehicle/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './vehicle.dto';
|
|
2
|
-
export * from './vehicle-type.dto';
|
|
3
|
-
export * from './vehicle-model.dto';
|
|
1
|
+
export * from './vehicle.dto.js';
|
|
2
|
+
export * from './vehicle-type.dto.js';
|
|
3
|
+
export * from './vehicle-model.dto.js';
|
|
@@ -22,10 +22,10 @@ export declare const VehicleParamsContract: z.ZodObject<{
|
|
|
22
22
|
id: z.ZodCoercedBigInt<unknown>;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
export declare const VehicleListQueryContract: z.ZodObject<{
|
|
25
|
-
pageInfo: z.ZodObject<{
|
|
25
|
+
pageInfo: z.ZodDefault<z.ZodObject<{
|
|
26
26
|
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
27
27
|
size: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
28
|
-
}, z.core.$strip
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
29
|
search: z.ZodOptional<z.ZodString>;
|
|
30
30
|
carrier: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
31
31
|
route: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { PageInfoContract, PageResultContract } from '../common';
|
|
3
|
-
import { CarrierIdContract } from '../carrier';
|
|
4
|
-
import { RouteIdContract } from '../route';
|
|
5
|
-
import { VehicleModelIdContract } from './vehicle-model.dto';
|
|
6
|
-
import { VehicleTypeIdContract } from './vehicle-type.dto';
|
|
2
|
+
import { PageInfoContract, PageResultContract } from '../common/index.js';
|
|
3
|
+
import { CarrierIdContract } from '../carrier/index.js';
|
|
4
|
+
import { RouteIdContract } from '../route/index.js';
|
|
5
|
+
import { VehicleModelIdContract } from './vehicle-model.dto.js';
|
|
6
|
+
import { VehicleTypeIdContract } from './vehicle-type.dto.js';
|
|
7
7
|
export const VehicleIdContract = z.coerce.bigint();
|
|
8
8
|
export const VehicleDetailsContract = z.object({
|
|
9
9
|
id: z.string(),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './vehicle-snapshots.dto';
|
|
1
|
+
export * from './vehicle-snapshots.dto.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/vehicle-snapshots/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/vehicle-snapshots/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './vehicle-snapshots.dto';
|
|
1
|
+
export * from './vehicle-snapshots.dto.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { RouteIdContract } from '../route';
|
|
3
|
-
import { VehicleIdContract } from '../vehicle';
|
|
2
|
+
import { RouteIdContract } from '../route/index.js';
|
|
3
|
+
import { VehicleIdContract } from '../vehicle/index.js';
|
|
4
4
|
export const VehicleSnapshotsParamsContract = z.object({
|
|
5
5
|
get routeId() {
|
|
6
6
|
return RouteIdContract;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as http from './http';
|
|
1
|
+
export * as http from './http/index.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as http from './http';
|
|
1
|
+
export * as http from './http/index.js';
|