@pksep/zod-shared 0.0.512 → 0.0.514

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.
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
3
3
  equipmentId: z.ZodNumber;
4
+ searchString: z.ZodOptional<z.ZodString>;
4
5
  taskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5
6
  range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6
7
  start: z.ZodAny;
@@ -15,6 +16,7 @@ export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
15
16
  onlyTOperation: z.ZodOptional<z.ZodNumber>;
16
17
  }, "strip", z.ZodTypeAny, {
17
18
  equipmentId: number;
19
+ searchString?: string | undefined;
18
20
  range?: {
19
21
  start?: any;
20
22
  end?: any;
@@ -23,6 +25,7 @@ export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
23
25
  onlyTOperation?: number | undefined;
24
26
  }, {
25
27
  equipmentId: number;
28
+ searchString?: string | undefined;
26
29
  range?: {
27
30
  start?: any;
28
31
  end?: any;
@@ -4,6 +4,7 @@ exports.GetProductionTaskByEquipmentDtoZod = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.GetProductionTaskByEquipmentDtoZod = zod_1.z.object({
6
6
  equipmentId: zod_1.z.number().int(),
7
+ searchString: zod_1.z.string().optional(),
7
8
  taskId: zod_1.z.number().int().nullish(),
8
9
  range: zod_1.z
9
10
  .object({
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  import { StockOrderType } from '../../utils';
3
3
  export declare const GetProductionTaskByOperationDtoZod: z.ZodObject<{
4
4
  operationTypeId: z.ZodNumber;
5
+ searchString: z.ZodOptional<z.ZodString>;
5
6
  taskId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
6
7
  onlyTOperation: z.ZodOptional<z.ZodNumber>;
7
8
  range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -19,6 +20,7 @@ export declare const GetProductionTaskByOperationDtoZod: z.ZodObject<{
19
20
  }, "strip", z.ZodTypeAny, {
20
21
  equipmentIds: number[] | null;
21
22
  operationTypeId: number;
23
+ searchString?: string | undefined;
22
24
  range?: {
23
25
  start?: any;
24
26
  end?: any;
@@ -29,6 +31,7 @@ export declare const GetProductionTaskByOperationDtoZod: z.ZodObject<{
29
31
  }, {
30
32
  operationTypeId: number;
31
33
  equipmentIds?: number[] | null | undefined;
34
+ searchString?: string | undefined;
32
35
  range?: {
33
36
  start?: any;
34
37
  end?: any;
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
5
5
  const utils_1 = require("../../utils");
6
6
  exports.GetProductionTaskByOperationDtoZod = zod_1.z.object({
7
7
  operationTypeId: zod_1.z.number().int(),
8
+ searchString: zod_1.z.string().optional(),
8
9
  taskId: zod_1.z.number().int().nullable().default(null).optional(),
9
10
  onlyTOperation: zod_1.z.number().int().optional(),
10
11
  range: zod_1.z
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export declare const GetProductionTaskByUserDtoZod: z.ZodObject<{
3
3
  userId: z.ZodNumber;
4
+ searchString: z.ZodOptional<z.ZodString>;
4
5
  taskId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
5
6
  onlyTOperation: z.ZodOptional<z.ZodNumber>;
6
7
  range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -15,6 +16,7 @@ export declare const GetProductionTaskByUserDtoZod: z.ZodObject<{
15
16
  }>>>;
16
17
  }, "strip", z.ZodTypeAny, {
17
18
  userId: number;
19
+ searchString?: string | undefined;
18
20
  range?: {
19
21
  start?: any;
20
22
  end?: any;
@@ -23,6 +25,7 @@ export declare const GetProductionTaskByUserDtoZod: z.ZodObject<{
23
25
  onlyTOperation?: number | undefined;
24
26
  }, {
25
27
  userId: number;
28
+ searchString?: string | undefined;
26
29
  range?: {
27
30
  start?: any;
28
31
  end?: any;
@@ -4,6 +4,7 @@ exports.GetProductionTaskByUserDtoZod = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.GetProductionTaskByUserDtoZod = zod_1.z.object({
6
6
  userId: zod_1.z.number().int(),
7
+ searchString: zod_1.z.string().optional(),
7
8
  taskId: zod_1.z.number().int().nullable().default(null).optional(),
8
9
  onlyTOperation: zod_1.z.number().int().optional(),
9
10
  range: zod_1.z
@@ -12,26 +12,17 @@ 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>>;
18
15
  }, "strip", z.ZodTypeAny, {
19
16
  range: {
20
17
  start: string;
21
18
  end: string;
22
19
  };
23
20
  entityType: StockOrderType;
24
- userId?: number | null | undefined;
25
- equipmentId?: number | null | undefined;
26
- typeOperationId?: number | null | undefined;
27
21
  }, {
28
22
  range: {
29
23
  start: string;
30
24
  end: string;
31
25
  };
32
26
  entityType: StockOrderType;
33
- userId?: number | null | undefined;
34
- equipmentId?: number | null | undefined;
35
- typeOperationId?: number | null | undefined;
36
27
  }>;
37
28
  export type WorkloadByEntityDtoZodType = z.infer<typeof WorkloadByEntityDtoZod>;
@@ -8,8 +8,5 @@ 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
- }),
12
- userId: zod_1.z.number().nullish(),
13
- equipmentId: zod_1.z.number().nullish(),
14
- typeOperationId: zod_1.z.number().nullish()
11
+ })
15
12
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pksep/zod-shared",
3
- "version": "0.0.512",
3
+ "version": "0.0.514",
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",