@pksep/zod-shared 0.0.510 → 0.0.512

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.
@@ -12,17 +12,26 @@ export declare const WorkloadByEntityDtoZod: z.ZodObject<{
12
12
  start: string;
13
13
  end: string;
14
14
  }>;
15
+ userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ equipmentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
+ typeOperationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
18
  }, "strip", z.ZodTypeAny, {
16
19
  range: {
17
20
  start: string;
18
21
  end: string;
19
22
  };
20
23
  entityType: StockOrderType;
24
+ userId?: number | null | undefined;
25
+ equipmentId?: number | null | undefined;
26
+ typeOperationId?: number | null | undefined;
21
27
  }, {
22
28
  range: {
23
29
  start: string;
24
30
  end: string;
25
31
  };
26
32
  entityType: StockOrderType;
33
+ userId?: number | null | undefined;
34
+ equipmentId?: number | null | undefined;
35
+ typeOperationId?: number | null | undefined;
27
36
  }>;
28
37
  export type WorkloadByEntityDtoZodType = z.infer<typeof WorkloadByEntityDtoZod>;
@@ -8,5 +8,8 @@ exports.WorkloadByEntityDtoZod = zod_1.z.object({
8
8
  range: zod_1.z.object({
9
9
  start: zod_1.z.string(),
10
10
  end: zod_1.z.string()
11
- })
11
+ }),
12
+ userId: zod_1.z.number().nullish(),
13
+ equipmentId: zod_1.z.number().nullish(),
14
+ typeOperationId: zod_1.z.number().nullish()
12
15
  });
@@ -333,12 +333,12 @@ export interface IUnicalUsers extends IUnicalEntity {
333
333
  tabel?: string;
334
334
  }
335
335
  export interface IWorkloadByEntityResponse {
336
+ responsibleInfo: any;
337
+ operationWorkload: IWorkloadByOperationData[];
338
+ }
339
+ export interface IWorkloadByOperationData {
336
340
  operationName: string;
337
341
  typeOperationId: number | string;
338
- workloadData: IWorkloadData[];
339
- }
340
- export interface IWorkloadData {
341
- responsibleInfo: any;
342
342
  positionsByDate: IWorkloadPositionByDate[];
343
343
  }
344
344
  export interface IWorkloadPositionSchema {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pksep/zod-shared",
3
- "version": "0.0.510",
3
+ "version": "0.0.512",
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",