@pksep/zod-shared 0.0.546 → 0.0.547
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/shipments-list-pagination.dto.d.ts +3 -0
- package/dist/shipments/dto/shipments-list-pagination.dto.js +2 -1
- package/dist/specification/type/type.d.ts +5 -0
- package/dist/stock-order/dto/all-stock-orders-pagination.dto.d.ts +3 -0
- package/dist/stock-order/dto/all-stock-orders-pagination.dto.js +2 -1
- package/dist/stock-order/schemas/stock-order.schema.d.ts +3 -0
- package/dist/stock-order/schemas/stock-order.schema.js +1 -0
- package/package.json +1 -1
|
@@ -4,15 +4,18 @@ export declare const ShipmentsListPaginationSchema: z.ZodObject<{
|
|
|
4
4
|
searchString: z.ZodOptional<z.ZodString>;
|
|
5
5
|
modelsInclude: z.ZodEffects<z.ZodDefault<z.ZodString>, any, string | undefined>;
|
|
6
6
|
attributes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
7
|
+
shipmentIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
7
8
|
}, "strip", z.ZodTypeAny, {
|
|
8
9
|
page: number;
|
|
9
10
|
attributes: string[];
|
|
10
11
|
searchString?: string | undefined;
|
|
11
12
|
modelsInclude?: any;
|
|
13
|
+
shipmentIds?: number[] | undefined;
|
|
12
14
|
}, {
|
|
13
15
|
page: number;
|
|
14
16
|
attributes?: string[] | undefined;
|
|
15
17
|
searchString?: string | undefined;
|
|
16
18
|
modelsInclude?: string | undefined;
|
|
19
|
+
shipmentIds?: number[] | undefined;
|
|
17
20
|
}>;
|
|
18
21
|
export type ShipmentsListPaginationDto = z.infer<typeof ShipmentsListPaginationSchema>;
|
|
@@ -12,5 +12,6 @@ exports.ShipmentsListPaginationSchema = zod_1.z.object({
|
|
|
12
12
|
typeof val;
|
|
13
13
|
return JSON.parse(val);
|
|
14
14
|
}),
|
|
15
|
-
attributes: zod_1.z.array(zod_1.z.string()).default([])
|
|
15
|
+
attributes: zod_1.z.array(zod_1.z.string()).default([]),
|
|
16
|
+
shipmentIds: zod_1.z.array(zod_1.z.number().int()).optional()
|
|
16
17
|
});
|
|
@@ -7,5 +7,10 @@ export type CalculateProductionTimeType = {
|
|
|
7
7
|
export interface Neo4jRelativesStairs {
|
|
8
8
|
itemId: number;
|
|
9
9
|
itemType: Neo4jEntityTypes;
|
|
10
|
+
isRelative: boolean;
|
|
10
11
|
childrens: Neo4jRelativesStairs[];
|
|
11
12
|
}
|
|
13
|
+
export interface Neo4jRelativesStairsResponse {
|
|
14
|
+
shipments: Neo4jRelativesStairs[];
|
|
15
|
+
stockOrders: Neo4jRelativesStairs[];
|
|
16
|
+
}
|
|
@@ -8,6 +8,7 @@ export declare const AllStockOrderPaginationDtoZod: z.ZodObject<{
|
|
|
8
8
|
modelsInclude: z.ZodDefault<z.ZodString>;
|
|
9
9
|
dateRange: z.ZodOptional<z.ZodNullable<z.ZodType<DateRangeType, z.ZodTypeDef, DateRangeType>>>;
|
|
10
10
|
status: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNativeEnum<typeof EnumStatusOrder>, "many">>>;
|
|
11
|
+
stockOrderIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
11
12
|
}, "strip", z.ZodTypeAny, {
|
|
12
13
|
page: number;
|
|
13
14
|
isArchive: boolean;
|
|
@@ -16,6 +17,7 @@ export declare const AllStockOrderPaginationDtoZod: z.ZodObject<{
|
|
|
16
17
|
searchString?: string | undefined;
|
|
17
18
|
dateRange?: DateRangeType | null | undefined;
|
|
18
19
|
typeFilter?: number | null | undefined;
|
|
20
|
+
stockOrderIds?: number[] | undefined;
|
|
19
21
|
}, {
|
|
20
22
|
page: number;
|
|
21
23
|
status?: EnumStatusOrder[] | null | undefined;
|
|
@@ -24,5 +26,6 @@ export declare const AllStockOrderPaginationDtoZod: z.ZodObject<{
|
|
|
24
26
|
typeFilter?: number | null | undefined;
|
|
25
27
|
isArchive?: boolean | undefined;
|
|
26
28
|
modelsInclude?: string | undefined;
|
|
29
|
+
stockOrderIds?: number[] | undefined;
|
|
27
30
|
}>;
|
|
28
31
|
export type AllStockOrderPaginationDtoZodType = z.infer<typeof AllStockOrderPaginationDtoZod>;
|
|
@@ -10,5 +10,6 @@ exports.AllStockOrderPaginationDtoZod = zod_1.z.object({
|
|
|
10
10
|
searchString: zod_1.z.string().optional(),
|
|
11
11
|
modelsInclude: zod_1.z.string().default('[]'),
|
|
12
12
|
dateRange: zod_1.z.custom().nullish(),
|
|
13
|
-
status: zod_1.z.array(zod_1.z.nativeEnum(utils_1.EnumStatusOrder)).nullish()
|
|
13
|
+
status: zod_1.z.array(zod_1.z.nativeEnum(utils_1.EnumStatusOrder)).nullish(),
|
|
14
|
+
stockOrderIds: zod_1.z.array(zod_1.z.number().int()).optional()
|
|
14
15
|
});
|
|
@@ -8,6 +8,7 @@ declare const StockOrderSchema: z.ZodObject<{
|
|
|
8
8
|
type: z.ZodNativeEnum<typeof StockOrderType>;
|
|
9
9
|
ban: z.ZodDefault<z.ZodBoolean>;
|
|
10
10
|
status: z.ZodOptional<z.ZodNativeEnum<typeof EnumStatusOrder>>;
|
|
11
|
+
minWarehouseReadinessDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
11
12
|
description: z.ZodOptional<z.ZodString>;
|
|
12
13
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
13
14
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -19,6 +20,7 @@ declare const StockOrderSchema: z.ZodObject<{
|
|
|
19
20
|
description?: string | undefined;
|
|
20
21
|
id?: number | null | undefined;
|
|
21
22
|
createdAt?: string | undefined;
|
|
23
|
+
minWarehouseReadinessDate?: Date | null | undefined;
|
|
22
24
|
}, {
|
|
23
25
|
type: StockOrderType;
|
|
24
26
|
number_order: string;
|
|
@@ -28,6 +30,7 @@ declare const StockOrderSchema: z.ZodObject<{
|
|
|
28
30
|
description?: string | undefined;
|
|
29
31
|
id?: number | null | undefined;
|
|
30
32
|
createdAt?: string | undefined;
|
|
33
|
+
minWarehouseReadinessDate?: Date | null | undefined;
|
|
31
34
|
}>;
|
|
32
35
|
export type ModelStockOrder = z.infer<typeof StockOrderSchema> & {
|
|
33
36
|
items?: ModelStockOrderItem[];
|
|
@@ -9,6 +9,7 @@ const StockOrderSchema = zod_1.z.object({
|
|
|
9
9
|
type: zod_1.z.nativeEnum(utils_1.StockOrderType),
|
|
10
10
|
ban: zod_1.z.boolean().default(false),
|
|
11
11
|
status: zod_1.z.nativeEnum(utils_1.EnumStatusOrder).optional(),
|
|
12
|
+
minWarehouseReadinessDate: zod_1.z.coerce.date().nullable().optional(),
|
|
12
13
|
description: zod_1.z.string().optional(),
|
|
13
14
|
createdAt: zod_1.z.string().optional()
|
|
14
15
|
});
|