@pksep/zod-shared 0.0.535 → 0.0.536

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.
@@ -8,7 +8,21 @@ export declare const GetMetaloworkingByOperationPaginationDtoZod: z.ZodObject<{
8
8
  status: z.ZodNativeEnum<typeof MetalloworkingStatus>;
9
9
  byParents: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByParents, z.ZodTypeDef, IFiltersByParents>>>;
10
10
  byOrder: z.ZodOptional<z.ZodNullable<z.ZodType<IFiltersByByOrder, z.ZodTypeDef, IFiltersByByOrder>>>;
11
+ sort: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
12
+ sortField: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../utils").ProductionPlanSortField>>>;
13
+ sortDesc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ sortDesc: boolean;
16
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
17
+ }, {
18
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
19
+ sortDesc?: boolean | undefined;
20
+ }>, "many">>>;
11
21
  }, "strip", z.ZodTypeAny, {
22
+ sort: {
23
+ sortDesc: boolean;
24
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
25
+ }[];
12
26
  status: MetalloworkingStatus;
13
27
  page: number;
14
28
  operationId: number | null;
@@ -19,6 +33,10 @@ export declare const GetMetaloworkingByOperationPaginationDtoZod: z.ZodObject<{
19
33
  status: MetalloworkingStatus;
20
34
  page: number;
21
35
  searchString: string;
36
+ sort?: {
37
+ sortField?: import("../../utils").ProductionPlanSortField | null | undefined;
38
+ sortDesc?: boolean | undefined;
39
+ }[] | undefined;
22
40
  operationId?: number | null | undefined;
23
41
  byParents?: IFiltersByParents | null | undefined;
24
42
  byOrder?: IFiltersByByOrder | null | undefined;
@@ -9,5 +9,6 @@ exports.GetMetaloworkingByOperationPaginationDtoZod = zod_1.z.object({
9
9
  searchString: zod_1.z.string(),
10
10
  status: zod_1.z.nativeEnum(utils_1.MetalloworkingStatus),
11
11
  byParents: zod_1.z.custom().nullable().optional(),
12
- byOrder: zod_1.z.custom().nullable().optional()
12
+ byOrder: zod_1.z.custom().nullable().optional(),
13
+ sort: zod_1.z.array(utils_1.ProductionPlanSortRuleSchema).optional().default([])
13
14
  });
@@ -5,7 +5,8 @@ export declare enum ProductionPlanSortField {
5
5
  calculateNeedsTime = "calculateNeedsTime",
6
6
  calculatedCreateTime = "calculatedCreateTime",
7
7
  warehouseReadinessDate = "warehouseReadinessDate",
8
- orderedByProduction = "orderedByProduction"
8
+ orderedByProduction = "orderedByProduction",
9
+ productionDelay = "productionDelay"
9
10
  }
10
11
  export type ProductionPlanSortRule = {
11
12
  sortField?: ProductionPlanSortField | null;
@@ -9,6 +9,7 @@ var ProductionPlanSortField;
9
9
  ProductionPlanSortField["calculatedCreateTime"] = "calculatedCreateTime";
10
10
  ProductionPlanSortField["warehouseReadinessDate"] = "warehouseReadinessDate";
11
11
  ProductionPlanSortField["orderedByProduction"] = "orderedByProduction";
12
+ ProductionPlanSortField["productionDelay"] = "productionDelay";
12
13
  })(ProductionPlanSortField || (exports.ProductionPlanSortField = ProductionPlanSortField = {}));
13
14
  exports.ProductionPlanSortRuleSchema = zod_1.z.object({
14
15
  sortField: zod_1.z.nativeEnum(ProductionPlanSortField).nullable().optional(),
@@ -10,6 +10,7 @@ export declare enum tablesEnumConfig {
10
10
  calculateNeedsTime = "calculateNeedsTime",
11
11
  calculateAssembleTime = "calculateAssembleTime",
12
12
  orderedByProduction = "orderedByProduction",
13
+ productionDelay = "productionDelay",
13
14
  ordered = "ordered",
14
15
  deficitChildCreateTime = "deficitChildCreateTime",
15
16
  remainingByProductionTask = "remainingByProductionTask",
@@ -23,6 +23,7 @@ var tablesEnumConfig;
23
23
  tablesEnumConfig["calculateAssembleTime"] = "calculateAssembleTime";
24
24
  // заказано по ПЗ
25
25
  tablesEnumConfig["orderedByProduction"] = "orderedByProduction";
26
+ tablesEnumConfig["productionDelay"] = "productionDelay";
26
27
  // заказано
27
28
  tablesEnumConfig["ordered"] = "ordered";
28
29
  // Время изг. дефицитных Д/СБ
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pksep/zod-shared",
3
- "version": "0.0.535",
3
+ "version": "0.0.536",
4
4
  "description": "Zod package for erp project. Contains dto, interfaces, schems, types, enum",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",