@pksep/zod-shared 0.0.547 → 0.0.548
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/shipments/dto/get-shipment-items-by-entity.dto.d.ts +22 -0
- package/dist/shipments/dto/get-shipment-items-by-entity.dto.js +12 -0
- package/dist/shipments/dto/update-ready-to-ship-status.dto.d.ts +9 -0
- package/dist/shipments/dto/update-ready-to-ship-status.dto.js +7 -0
- package/dist/shipments/index.d.ts +1 -0
- package/dist/shipments/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { IzdType } from '../../utils';
|
|
3
|
+
export declare const getShipmentItemsByEntitySchema: z.ZodObject<{
|
|
4
|
+
entityId: z.ZodNumber;
|
|
5
|
+
entityType: z.ZodNativeEnum<typeof IzdType>;
|
|
6
|
+
shipmentId: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
childId: z.ZodNumber;
|
|
8
|
+
childType: z.ZodNativeEnum<typeof IzdType>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
entityId: number;
|
|
11
|
+
entityType: IzdType;
|
|
12
|
+
childId: number;
|
|
13
|
+
childType: IzdType;
|
|
14
|
+
shipmentId?: number | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
entityId: number;
|
|
17
|
+
entityType: IzdType;
|
|
18
|
+
childId: number;
|
|
19
|
+
childType: IzdType;
|
|
20
|
+
shipmentId?: number | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
export type GetShipmentItemsByEntityDto = z.infer<typeof getShipmentItemsByEntitySchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getShipmentItemsByEntitySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const utils_1 = require("../../utils");
|
|
6
|
+
exports.getShipmentItemsByEntitySchema = zod_1.z.object({
|
|
7
|
+
entityId: zod_1.z.number().int().positive(),
|
|
8
|
+
entityType: zod_1.z.nativeEnum(utils_1.IzdType),
|
|
9
|
+
shipmentId: zod_1.z.number().int().positive().optional(),
|
|
10
|
+
childId: zod_1.z.number().int().positive(),
|
|
11
|
+
childType: zod_1.z.nativeEnum(utils_1.IzdType)
|
|
12
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const UpdateReadyToShipStatusDtoSchema: z.ZodObject<{
|
|
3
|
+
readyToShip: z.ZodBoolean;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
readyToShip: boolean;
|
|
6
|
+
}, {
|
|
7
|
+
readyToShip: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
export type UpdateReadyToShipStatusDto = z.infer<typeof UpdateReadyToShipStatusDtoSchema>;
|
|
@@ -21,3 +21,4 @@ export * from './dto/entity-filtering-by-shipment.dto';
|
|
|
21
21
|
export * from './schemas/shipments-sh-complit.schema';
|
|
22
22
|
export * from './dto/sh-complit-update.dto';
|
|
23
23
|
export * from './dto/set-warehouse-readiness-date.dto';
|
|
24
|
+
export * from './dto/get-shipment-items-by-entity.dto';
|
package/dist/shipments/index.js
CHANGED
|
@@ -37,3 +37,4 @@ __exportStar(require("./dto/entity-filtering-by-shipment.dto"), exports);
|
|
|
37
37
|
__exportStar(require("./schemas/shipments-sh-complit.schema"), exports);
|
|
38
38
|
__exportStar(require("./dto/sh-complit-update.dto"), exports);
|
|
39
39
|
__exportStar(require("./dto/set-warehouse-readiness-date.dto"), exports);
|
|
40
|
+
__exportStar(require("./dto/get-shipment-items-by-entity.dto"), exports);
|