@pksep/zod-shared 0.0.521 → 0.0.523
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/action/enums/enums.d.ts +2 -1
- package/dist/action/enums/enums.js +1 -0
- package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +45 -0
- package/dist/assemble/schemas/assemble-coming.schema.d.ts +35 -0
- package/dist/assemble/schemas/assemble.schema.d.ts +35 -0
- package/dist/assemble-kit/schemas/assemble-kit.schema.d.ts +25 -0
- package/dist/detal/schemas/detal-deficit.schema.d.ts +30 -0
- package/dist/detal/schemas/detal.schema.d.ts +30 -0
- package/dist/document/dto/create-arr-documents.dto.d.ts +3 -0
- package/dist/document/dto/create-arr-documents.dto.js +2 -1
- package/dist/document/schemas/documentsSchema.d.ts +15 -0
- package/dist/document/schemas/documentsSchema.js +5 -0
- package/dist/equipment/schemas/equipment.schema.d.ts +25 -0
- package/dist/material/dto/create-subtype-material.dto.d.ts +3 -3
- package/dist/material/dto/create-subtype-material.dto.js +1 -1
- package/dist/metaloworking/schemas/metaloworking-by-operation.schema.d.ts +1 -1
- package/dist/moving/schemas/moving.schema.d.ts +95 -0
- package/dist/production-tasks/dto/get-production-task-by-user.dto.d.ts +3 -0
- package/dist/production-tasks/dto/get-production-task-by-user.dto.js +1 -0
- package/dist/production-tasks/dto/workload-by-entity.dto.d.ts +3 -0
- package/dist/production-tasks/dto/workload-by-entity.dto.js +3 -1
- package/dist/production-tasks/interfaces/production-tasks.d.ts +11 -4
- package/dist/role/schemas/role.schema.d.ts +70 -0
- package/dist/sclad/dto/set-warehouse-readiness-date.dto.d.ts +3 -3
- package/dist/sclad/dto/set-warehouse-readiness-date.dto.js +1 -1
- package/dist/sclad/index.d.ts +1 -0
- package/dist/sclad/index.js +1 -0
- package/dist/specification/schema/attributes.schema.d.ts +42 -0
- package/dist/stock-order/dto/create-stock-order.dto.d.ts +5 -0
- package/dist/stock-order/dto/update-stock-order.dto.d.ts +3 -3
- package/dist/stock-order/dto/update-stock-order.dto.js +1 -1
- package/dist/stock-order/schemas/stock-order-item.schema.d.ts +3 -0
- package/dist/stock-order/schemas/stock-order-item.schema.js +1 -0
- package/dist/stock-order/type/type.d.ts +3 -0
- package/dist/stock-order/type/type.js +2 -1
- package/dist/thread/dto/add-thread.dto.d.ts +88 -0
- package/dist/thread/dto/add-thread.dto.js +3 -1
- package/dist/thread/schemas/thread.schema.js +3 -0
- package/dist/user/schemas/user.schema.d.ts +50 -0
- package/dist/utils/date.methods.js +1 -1
- package/dist/utils/tables-config/enum.d.ts +1 -0
- package/dist/utils/tables-config/enum.js +2 -0
- package/dist/utils/tables-config/tables-array.js +2 -0
- package/package.json +2 -2
|
@@ -25,9 +25,14 @@ export declare const SpecificationAttributesSchema: z.ZodObject<{
|
|
|
25
25
|
in_kit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
26
26
|
documents: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
27
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
29
|
name: z.ZodString;
|
|
30
|
+
original_name: z.ZodOptional<z.ZodString>;
|
|
29
31
|
path: z.ZodString;
|
|
30
32
|
type: z.ZodOptional<z.ZodString>;
|
|
33
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
36
|
description: z.ZodOptional<z.ZodString>;
|
|
32
37
|
version: z.ZodDefault<z.ZodNumber>;
|
|
33
38
|
ban: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -46,6 +51,11 @@ export declare const SpecificationAttributesSchema: z.ZodObject<{
|
|
|
46
51
|
type?: string | undefined;
|
|
47
52
|
description?: string | undefined;
|
|
48
53
|
id?: number | null | undefined;
|
|
54
|
+
width?: number | null | undefined;
|
|
55
|
+
height?: number | null | undefined;
|
|
56
|
+
external_id?: number | null | undefined;
|
|
57
|
+
original_name?: string | undefined;
|
|
58
|
+
size?: number | null | undefined;
|
|
49
59
|
hash?: string | undefined;
|
|
50
60
|
}, {
|
|
51
61
|
path: string;
|
|
@@ -55,6 +65,11 @@ export declare const SpecificationAttributesSchema: z.ZodObject<{
|
|
|
55
65
|
ban?: boolean | undefined;
|
|
56
66
|
description?: string | undefined;
|
|
57
67
|
id?: number | null | undefined;
|
|
68
|
+
width?: number | null | undefined;
|
|
69
|
+
height?: number | null | undefined;
|
|
70
|
+
external_id?: number | null | undefined;
|
|
71
|
+
original_name?: string | undefined;
|
|
72
|
+
size?: number | null | undefined;
|
|
58
73
|
version?: number | undefined;
|
|
59
74
|
ava?: boolean | undefined;
|
|
60
75
|
sync_s3?: boolean | undefined;
|
|
@@ -862,6 +877,7 @@ export declare const SpecificationAttributesSchema: z.ZodObject<{
|
|
|
862
877
|
type: z.ZodNativeEnum<typeof import("../..").IzdType>;
|
|
863
878
|
ban: z.ZodDefault<z.ZodBoolean>;
|
|
864
879
|
description: z.ZodOptional<z.ZodString>;
|
|
880
|
+
warehouse_readiness_date: z.ZodNullable<z.ZodDate>;
|
|
865
881
|
detal_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
866
882
|
cbed_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
867
883
|
product_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -873,6 +889,7 @@ export declare const SpecificationAttributesSchema: z.ZodObject<{
|
|
|
873
889
|
count_shipments: number;
|
|
874
890
|
count_create: number;
|
|
875
891
|
closing_date: Date | null;
|
|
892
|
+
warehouse_readiness_date: Date | null;
|
|
876
893
|
description?: string | undefined;
|
|
877
894
|
id?: number | null | undefined;
|
|
878
895
|
cbed_id?: number | null | undefined;
|
|
@@ -883,6 +900,7 @@ export declare const SpecificationAttributesSchema: z.ZodObject<{
|
|
|
883
900
|
stock_order_id: number;
|
|
884
901
|
count_shipments: number;
|
|
885
902
|
closing_date: Date | null;
|
|
903
|
+
warehouse_readiness_date: Date | null;
|
|
886
904
|
ban?: boolean | undefined;
|
|
887
905
|
description?: string | undefined;
|
|
888
906
|
id?: number | null | undefined;
|
|
@@ -1066,6 +1084,11 @@ export declare const SpecificationAttributesSchema: z.ZodObject<{
|
|
|
1066
1084
|
type?: string | undefined;
|
|
1067
1085
|
description?: string | undefined;
|
|
1068
1086
|
id?: number | null | undefined;
|
|
1087
|
+
width?: number | null | undefined;
|
|
1088
|
+
height?: number | null | undefined;
|
|
1089
|
+
external_id?: number | null | undefined;
|
|
1090
|
+
original_name?: string | undefined;
|
|
1091
|
+
size?: number | null | undefined;
|
|
1069
1092
|
hash?: string | undefined;
|
|
1070
1093
|
}[] | undefined;
|
|
1071
1094
|
shipments?: {
|
|
@@ -1282,6 +1305,7 @@ export declare const SpecificationAttributesSchema: z.ZodObject<{
|
|
|
1282
1305
|
count_shipments: number;
|
|
1283
1306
|
count_create: number;
|
|
1284
1307
|
closing_date: Date | null;
|
|
1308
|
+
warehouse_readiness_date: Date | null;
|
|
1285
1309
|
description?: string | undefined;
|
|
1286
1310
|
id?: number | null | undefined;
|
|
1287
1311
|
cbed_id?: number | null | undefined;
|
|
@@ -1346,6 +1370,11 @@ export declare const SpecificationAttributesSchema: z.ZodObject<{
|
|
|
1346
1370
|
ban?: boolean | undefined;
|
|
1347
1371
|
description?: string | undefined;
|
|
1348
1372
|
id?: number | null | undefined;
|
|
1373
|
+
width?: number | null | undefined;
|
|
1374
|
+
height?: number | null | undefined;
|
|
1375
|
+
external_id?: number | null | undefined;
|
|
1376
|
+
original_name?: string | undefined;
|
|
1377
|
+
size?: number | null | undefined;
|
|
1349
1378
|
version?: number | undefined;
|
|
1350
1379
|
ava?: boolean | undefined;
|
|
1351
1380
|
sync_s3?: boolean | undefined;
|
|
@@ -1563,6 +1592,7 @@ export declare const SpecificationAttributesSchema: z.ZodObject<{
|
|
|
1563
1592
|
stock_order_id: number;
|
|
1564
1593
|
count_shipments: number;
|
|
1565
1594
|
closing_date: Date | null;
|
|
1595
|
+
warehouse_readiness_date: Date | null;
|
|
1566
1596
|
ban?: boolean | undefined;
|
|
1567
1597
|
description?: string | undefined;
|
|
1568
1598
|
id?: number | null | undefined;
|
|
@@ -2438,6 +2468,11 @@ export declare const SpecificationAttributesSchema: z.ZodObject<{
|
|
|
2438
2468
|
type?: string | undefined;
|
|
2439
2469
|
description?: string | undefined;
|
|
2440
2470
|
id?: number | null | undefined;
|
|
2471
|
+
width?: number | null | undefined;
|
|
2472
|
+
height?: number | null | undefined;
|
|
2473
|
+
external_id?: number | null | undefined;
|
|
2474
|
+
original_name?: string | undefined;
|
|
2475
|
+
size?: number | null | undefined;
|
|
2441
2476
|
hash?: string | undefined;
|
|
2442
2477
|
}[] | undefined;
|
|
2443
2478
|
shipments?: {
|
|
@@ -2654,6 +2689,7 @@ export declare const SpecificationAttributesSchema: z.ZodObject<{
|
|
|
2654
2689
|
count_shipments: number;
|
|
2655
2690
|
count_create: number;
|
|
2656
2691
|
closing_date: Date | null;
|
|
2692
|
+
warehouse_readiness_date: Date | null;
|
|
2657
2693
|
description?: string | undefined;
|
|
2658
2694
|
id?: number | null | undefined;
|
|
2659
2695
|
cbed_id?: number | null | undefined;
|
|
@@ -2867,6 +2903,11 @@ export declare const SpecificationAttributesSchema: z.ZodObject<{
|
|
|
2867
2903
|
ban?: boolean | undefined;
|
|
2868
2904
|
description?: string | undefined;
|
|
2869
2905
|
id?: number | null | undefined;
|
|
2906
|
+
width?: number | null | undefined;
|
|
2907
|
+
height?: number | null | undefined;
|
|
2908
|
+
external_id?: number | null | undefined;
|
|
2909
|
+
original_name?: string | undefined;
|
|
2910
|
+
size?: number | null | undefined;
|
|
2870
2911
|
version?: number | undefined;
|
|
2871
2912
|
ava?: boolean | undefined;
|
|
2872
2913
|
sync_s3?: boolean | undefined;
|
|
@@ -3084,6 +3125,7 @@ export declare const SpecificationAttributesSchema: z.ZodObject<{
|
|
|
3084
3125
|
stock_order_id: number;
|
|
3085
3126
|
count_shipments: number;
|
|
3086
3127
|
closing_date: Date | null;
|
|
3128
|
+
warehouse_readiness_date: Date | null;
|
|
3087
3129
|
ban?: boolean | undefined;
|
|
3088
3130
|
description?: string | undefined;
|
|
3089
3131
|
id?: number | null | undefined;
|
|
@@ -16,12 +16,15 @@ export declare const CreateStockOrderDtoZod: z.ZodObject<{
|
|
|
16
16
|
workersComplect: z.ZodArray<z.ZodObject<{
|
|
17
17
|
my_kolvo: z.ZodNullable<z.ZodNumber>;
|
|
18
18
|
object_id: z.ZodNumber;
|
|
19
|
+
warehouseReadinessDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
20
|
}, "strip", z.ZodTypeAny, {
|
|
20
21
|
my_kolvo: number | null;
|
|
21
22
|
object_id: number;
|
|
23
|
+
warehouseReadinessDate?: string | null | undefined;
|
|
22
24
|
}, {
|
|
23
25
|
my_kolvo: number | null;
|
|
24
26
|
object_id: number;
|
|
27
|
+
warehouseReadinessDate?: string | null | undefined;
|
|
25
28
|
}>, "many">;
|
|
26
29
|
}, "strip", z.ZodTypeAny, {
|
|
27
30
|
workersData: {
|
|
@@ -32,6 +35,7 @@ export declare const CreateStockOrderDtoZod: z.ZodObject<{
|
|
|
32
35
|
workersComplect: {
|
|
33
36
|
my_kolvo: number | null;
|
|
34
37
|
object_id: number;
|
|
38
|
+
warehouseReadinessDate?: string | null | undefined;
|
|
35
39
|
}[];
|
|
36
40
|
}, {
|
|
37
41
|
workersData: {
|
|
@@ -42,6 +46,7 @@ export declare const CreateStockOrderDtoZod: z.ZodObject<{
|
|
|
42
46
|
workersComplect: {
|
|
43
47
|
my_kolvo: number | null;
|
|
44
48
|
object_id: number;
|
|
49
|
+
warehouseReadinessDate?: string | null | undefined;
|
|
45
50
|
}[];
|
|
46
51
|
}>;
|
|
47
52
|
export type CreateStockOrderDtoZodType = z.infer<typeof CreateStockOrderDtoZod>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const UpdateStockOrderDtoZod: z.ZodObject<{
|
|
3
|
-
description: z.ZodString
|
|
3
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4
4
|
}, "strip", z.ZodTypeAny, {
|
|
5
|
-
description
|
|
5
|
+
description?: string | undefined;
|
|
6
6
|
}, {
|
|
7
|
-
description
|
|
7
|
+
description?: string | undefined;
|
|
8
8
|
}>;
|
|
9
9
|
export type UpdateStockOrderDtoZodType = z.infer<typeof UpdateStockOrderDtoZod>;
|
|
@@ -12,6 +12,7 @@ export declare const StockOrderItemSchema: z.ZodObject<{
|
|
|
12
12
|
type: z.ZodNativeEnum<typeof IzdType>;
|
|
13
13
|
ban: z.ZodDefault<z.ZodBoolean>;
|
|
14
14
|
description: z.ZodOptional<z.ZodString>;
|
|
15
|
+
warehouse_readiness_date: z.ZodNullable<z.ZodDate>;
|
|
15
16
|
detal_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
17
|
cbed_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
18
|
product_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -23,6 +24,7 @@ export declare const StockOrderItemSchema: z.ZodObject<{
|
|
|
23
24
|
count_shipments: number;
|
|
24
25
|
count_create: number;
|
|
25
26
|
closing_date: Date | null;
|
|
27
|
+
warehouse_readiness_date: Date | null;
|
|
26
28
|
description?: string | undefined;
|
|
27
29
|
id?: number | null | undefined;
|
|
28
30
|
cbed_id?: number | null | undefined;
|
|
@@ -33,6 +35,7 @@ export declare const StockOrderItemSchema: z.ZodObject<{
|
|
|
33
35
|
stock_order_id: number;
|
|
34
36
|
count_shipments: number;
|
|
35
37
|
closing_date: Date | null;
|
|
38
|
+
warehouse_readiness_date: Date | null;
|
|
36
39
|
ban?: boolean | undefined;
|
|
37
40
|
description?: string | undefined;
|
|
38
41
|
id?: number | null | undefined;
|
|
@@ -11,6 +11,7 @@ exports.StockOrderItemSchema = zod_1.z.object({
|
|
|
11
11
|
type: zod_1.z.nativeEnum(utils_1.IzdType),
|
|
12
12
|
ban: zod_1.z.boolean().default(false),
|
|
13
13
|
description: zod_1.z.string().optional(),
|
|
14
|
+
warehouse_readiness_date: zod_1.z.coerce.date().nullable(),
|
|
14
15
|
detal_id: zod_1.z.number().nullish(),
|
|
15
16
|
cbed_id: zod_1.z.number().nullish(),
|
|
16
17
|
product_id: zod_1.z.number().nullish(),
|
|
@@ -3,12 +3,15 @@ import { IzdType } from '../../utils';
|
|
|
3
3
|
export declare const StockOrderComplectZod: z.ZodObject<{
|
|
4
4
|
my_kolvo: z.ZodNullable<z.ZodNumber>;
|
|
5
5
|
object_id: z.ZodNumber;
|
|
6
|
+
warehouseReadinessDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
7
|
}, "strip", z.ZodTypeAny, {
|
|
7
8
|
my_kolvo: number | null;
|
|
8
9
|
object_id: number;
|
|
10
|
+
warehouseReadinessDate?: string | null | undefined;
|
|
9
11
|
}, {
|
|
10
12
|
my_kolvo: number | null;
|
|
11
13
|
object_id: number;
|
|
14
|
+
warehouseReadinessDate?: string | null | undefined;
|
|
12
15
|
}>;
|
|
13
16
|
export declare const StockOrderDataZod: z.ZodObject<{
|
|
14
17
|
date_order: z.ZodAny;
|
|
@@ -5,7 +5,8 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
6
|
exports.StockOrderComplectZod = zod_1.z.object({
|
|
7
7
|
my_kolvo: zod_1.z.number().nullable(),
|
|
8
|
-
object_id: zod_1.z.number().int().positive()
|
|
8
|
+
object_id: zod_1.z.number().int().positive(),
|
|
9
|
+
warehouseReadinessDate: zod_1.z.string().nullish()
|
|
9
10
|
});
|
|
10
11
|
exports.StockOrderDataZod = zod_1.z.object({
|
|
11
12
|
date_order: zod_1.z.any(),
|
|
@@ -6,16 +6,104 @@ export declare const AddCommentDtoSchema: z.ZodObject<{
|
|
|
6
6
|
entityType: z.ZodNativeEnum<typeof ActionEntityTypes>;
|
|
7
7
|
threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
8
|
answerCommentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
documents: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
original_name: z.ZodOptional<z.ZodString>;
|
|
14
|
+
path: z.ZodString;
|
|
15
|
+
type: z.ZodOptional<z.ZodString>;
|
|
16
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
description: z.ZodOptional<z.ZodString>;
|
|
20
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
21
|
+
ban: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
ava: z.ZodDefault<z.ZodBoolean>;
|
|
23
|
+
sync_s3: z.ZodDefault<z.ZodBoolean>;
|
|
24
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
25
|
+
responsible_user_id: z.ZodNullable<z.ZodNumber>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
path: string;
|
|
28
|
+
ban: boolean;
|
|
29
|
+
name: string;
|
|
30
|
+
version: number;
|
|
31
|
+
ava: boolean;
|
|
32
|
+
sync_s3: boolean;
|
|
33
|
+
responsible_user_id: number | null;
|
|
34
|
+
type?: string | undefined;
|
|
35
|
+
description?: string | undefined;
|
|
36
|
+
id?: number | null | undefined;
|
|
37
|
+
width?: number | null | undefined;
|
|
38
|
+
height?: number | null | undefined;
|
|
39
|
+
external_id?: number | null | undefined;
|
|
40
|
+
original_name?: string | undefined;
|
|
41
|
+
size?: number | null | undefined;
|
|
42
|
+
hash?: string | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
path: string;
|
|
45
|
+
name: string;
|
|
46
|
+
responsible_user_id: number | null;
|
|
47
|
+
type?: string | undefined;
|
|
48
|
+
ban?: boolean | undefined;
|
|
49
|
+
description?: string | undefined;
|
|
50
|
+
id?: number | null | undefined;
|
|
51
|
+
width?: number | null | undefined;
|
|
52
|
+
height?: number | null | undefined;
|
|
53
|
+
external_id?: number | null | undefined;
|
|
54
|
+
original_name?: string | undefined;
|
|
55
|
+
size?: number | null | undefined;
|
|
56
|
+
version?: number | undefined;
|
|
57
|
+
ava?: boolean | undefined;
|
|
58
|
+
sync_s3?: boolean | undefined;
|
|
59
|
+
hash?: string | undefined;
|
|
60
|
+
}>, "many">>>;
|
|
9
61
|
}, "strip", z.ZodTypeAny, {
|
|
10
62
|
entityId: number;
|
|
11
63
|
entityType: ActionEntityTypes;
|
|
12
64
|
content: string;
|
|
65
|
+
documents?: {
|
|
66
|
+
path: string;
|
|
67
|
+
ban: boolean;
|
|
68
|
+
name: string;
|
|
69
|
+
version: number;
|
|
70
|
+
ava: boolean;
|
|
71
|
+
sync_s3: boolean;
|
|
72
|
+
responsible_user_id: number | null;
|
|
73
|
+
type?: string | undefined;
|
|
74
|
+
description?: string | undefined;
|
|
75
|
+
id?: number | null | undefined;
|
|
76
|
+
width?: number | null | undefined;
|
|
77
|
+
height?: number | null | undefined;
|
|
78
|
+
external_id?: number | null | undefined;
|
|
79
|
+
original_name?: string | undefined;
|
|
80
|
+
size?: number | null | undefined;
|
|
81
|
+
hash?: string | undefined;
|
|
82
|
+
}[] | null | undefined;
|
|
13
83
|
threadId?: string | null | undefined;
|
|
14
84
|
answerCommentId?: string | null | undefined;
|
|
15
85
|
}, {
|
|
16
86
|
entityId: number;
|
|
17
87
|
entityType: ActionEntityTypes;
|
|
18
88
|
content: string;
|
|
89
|
+
documents?: {
|
|
90
|
+
path: string;
|
|
91
|
+
name: string;
|
|
92
|
+
responsible_user_id: number | null;
|
|
93
|
+
type?: string | undefined;
|
|
94
|
+
ban?: boolean | undefined;
|
|
95
|
+
description?: string | undefined;
|
|
96
|
+
id?: number | null | undefined;
|
|
97
|
+
width?: number | null | undefined;
|
|
98
|
+
height?: number | null | undefined;
|
|
99
|
+
external_id?: number | null | undefined;
|
|
100
|
+
original_name?: string | undefined;
|
|
101
|
+
size?: number | null | undefined;
|
|
102
|
+
version?: number | undefined;
|
|
103
|
+
ava?: boolean | undefined;
|
|
104
|
+
sync_s3?: boolean | undefined;
|
|
105
|
+
hash?: string | undefined;
|
|
106
|
+
}[] | null | undefined;
|
|
19
107
|
threadId?: string | null | undefined;
|
|
20
108
|
answerCommentId?: string | null | undefined;
|
|
21
109
|
}>;
|
|
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AddCommentDtoSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const action_1 = require("../../action");
|
|
6
|
+
const document_1 = require("../../document");
|
|
6
7
|
exports.AddCommentDtoSchema = zod_1.z.object({
|
|
7
8
|
content: zod_1.z.string(),
|
|
8
9
|
entityId: zod_1.z.number(),
|
|
9
10
|
entityType: zod_1.z.nativeEnum(action_1.ActionEntityTypes),
|
|
10
11
|
threadId: zod_1.z.string().nullish(),
|
|
11
|
-
answerCommentId: zod_1.z.string().nullish()
|
|
12
|
+
answerCommentId: zod_1.z.string().nullish(),
|
|
13
|
+
documents: zod_1.z.array(document_1.DocumentsSchema).nullish()
|
|
12
14
|
});
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CommentSchema = void 0;
|
|
4
|
+
const document_1 = require("../../document");
|
|
4
5
|
const user_1 = require("../../user");
|
|
5
6
|
const thread_entity_schema_1 = require("./thread-entity.schema");
|
|
6
7
|
const zod_1 = require("zod");
|
|
7
8
|
exports.CommentSchema = zod_1.z.lazy(() => thread_entity_schema_1.ThreadEntitySchema.extend({
|
|
8
9
|
content: zod_1.z.string(),
|
|
9
10
|
author_id: zod_1.z.number().int(),
|
|
11
|
+
is_pinned: zod_1.z.boolean().optional(),
|
|
10
12
|
user: user_1.UserSchema.nullable(),
|
|
13
|
+
documents: zod_1.z.array(document_1.DocumentsSchema).nullish(),
|
|
11
14
|
replies: zod_1.z.array(exports.CommentSchema).nullish()
|
|
12
15
|
}));
|
|
@@ -36,9 +36,14 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
36
36
|
role: z.ZodAny;
|
|
37
37
|
documents: z.ZodArray<z.ZodObject<{
|
|
38
38
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
39
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
39
40
|
name: z.ZodString;
|
|
41
|
+
original_name: z.ZodOptional<z.ZodString>;
|
|
40
42
|
path: z.ZodString;
|
|
41
43
|
type: z.ZodOptional<z.ZodString>;
|
|
44
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
45
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
46
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
47
|
description: z.ZodOptional<z.ZodString>;
|
|
43
48
|
version: z.ZodDefault<z.ZodNumber>;
|
|
44
49
|
ban: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -57,6 +62,11 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
57
62
|
type?: string | undefined;
|
|
58
63
|
description?: string | undefined;
|
|
59
64
|
id?: number | null | undefined;
|
|
65
|
+
width?: number | null | undefined;
|
|
66
|
+
height?: number | null | undefined;
|
|
67
|
+
external_id?: number | null | undefined;
|
|
68
|
+
original_name?: string | undefined;
|
|
69
|
+
size?: number | null | undefined;
|
|
60
70
|
hash?: string | undefined;
|
|
61
71
|
}, {
|
|
62
72
|
path: string;
|
|
@@ -66,6 +76,11 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
66
76
|
ban?: boolean | undefined;
|
|
67
77
|
description?: string | undefined;
|
|
68
78
|
id?: number | null | undefined;
|
|
79
|
+
width?: number | null | undefined;
|
|
80
|
+
height?: number | null | undefined;
|
|
81
|
+
external_id?: number | null | undefined;
|
|
82
|
+
original_name?: string | undefined;
|
|
83
|
+
size?: number | null | undefined;
|
|
69
84
|
version?: number | undefined;
|
|
70
85
|
ava?: boolean | undefined;
|
|
71
86
|
sync_s3?: boolean | undefined;
|
|
@@ -446,9 +461,14 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
446
461
|
}>, "many">;
|
|
447
462
|
responsibleForDocuments: z.ZodArray<z.ZodObject<{
|
|
448
463
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
464
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
449
465
|
name: z.ZodString;
|
|
466
|
+
original_name: z.ZodOptional<z.ZodString>;
|
|
450
467
|
path: z.ZodString;
|
|
451
468
|
type: z.ZodOptional<z.ZodString>;
|
|
469
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
470
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
471
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
452
472
|
description: z.ZodOptional<z.ZodString>;
|
|
453
473
|
version: z.ZodDefault<z.ZodNumber>;
|
|
454
474
|
ban: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -467,6 +487,11 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
467
487
|
type?: string | undefined;
|
|
468
488
|
description?: string | undefined;
|
|
469
489
|
id?: number | null | undefined;
|
|
490
|
+
width?: number | null | undefined;
|
|
491
|
+
height?: number | null | undefined;
|
|
492
|
+
external_id?: number | null | undefined;
|
|
493
|
+
original_name?: string | undefined;
|
|
494
|
+
size?: number | null | undefined;
|
|
470
495
|
hash?: string | undefined;
|
|
471
496
|
}, {
|
|
472
497
|
path: string;
|
|
@@ -476,6 +501,11 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
476
501
|
ban?: boolean | undefined;
|
|
477
502
|
description?: string | undefined;
|
|
478
503
|
id?: number | null | undefined;
|
|
504
|
+
width?: number | null | undefined;
|
|
505
|
+
height?: number | null | undefined;
|
|
506
|
+
external_id?: number | null | undefined;
|
|
507
|
+
original_name?: string | undefined;
|
|
508
|
+
size?: number | null | undefined;
|
|
479
509
|
version?: number | undefined;
|
|
480
510
|
ava?: boolean | undefined;
|
|
481
511
|
sync_s3?: boolean | undefined;
|
|
@@ -528,6 +558,11 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
528
558
|
type?: string | undefined;
|
|
529
559
|
description?: string | undefined;
|
|
530
560
|
id?: number | null | undefined;
|
|
561
|
+
width?: number | null | undefined;
|
|
562
|
+
height?: number | null | undefined;
|
|
563
|
+
external_id?: number | null | undefined;
|
|
564
|
+
original_name?: string | undefined;
|
|
565
|
+
size?: number | null | undefined;
|
|
531
566
|
hash?: string | undefined;
|
|
532
567
|
}[];
|
|
533
568
|
login: string | null;
|
|
@@ -688,6 +723,11 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
688
723
|
type?: string | undefined;
|
|
689
724
|
description?: string | undefined;
|
|
690
725
|
id?: number | null | undefined;
|
|
726
|
+
width?: number | null | undefined;
|
|
727
|
+
height?: number | null | undefined;
|
|
728
|
+
external_id?: number | null | undefined;
|
|
729
|
+
original_name?: string | undefined;
|
|
730
|
+
size?: number | null | undefined;
|
|
691
731
|
hash?: string | undefined;
|
|
692
732
|
}[];
|
|
693
733
|
typeOperations: {
|
|
@@ -715,6 +755,11 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
715
755
|
ban?: boolean | undefined;
|
|
716
756
|
description?: string | undefined;
|
|
717
757
|
id?: number | null | undefined;
|
|
758
|
+
width?: number | null | undefined;
|
|
759
|
+
height?: number | null | undefined;
|
|
760
|
+
external_id?: number | null | undefined;
|
|
761
|
+
original_name?: string | undefined;
|
|
762
|
+
size?: number | null | undefined;
|
|
718
763
|
version?: number | undefined;
|
|
719
764
|
ava?: boolean | undefined;
|
|
720
765
|
sync_s3?: boolean | undefined;
|
|
@@ -867,6 +912,11 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
867
912
|
ban?: boolean | undefined;
|
|
868
913
|
description?: string | undefined;
|
|
869
914
|
id?: number | null | undefined;
|
|
915
|
+
width?: number | null | undefined;
|
|
916
|
+
height?: number | null | undefined;
|
|
917
|
+
external_id?: number | null | undefined;
|
|
918
|
+
original_name?: string | undefined;
|
|
919
|
+
size?: number | null | undefined;
|
|
870
920
|
version?: number | undefined;
|
|
871
921
|
ava?: boolean | undefined;
|
|
872
922
|
sync_s3?: boolean | undefined;
|
|
@@ -77,7 +77,7 @@ class DateMethods {
|
|
|
77
77
|
return false;
|
|
78
78
|
}
|
|
79
79
|
if ((_b = config === null || config === void 0 ? void 0 : config.holidays) === null || _b === void 0 ? void 0 : _b.length) {
|
|
80
|
-
const isHoliday = config.holidays.some(
|
|
80
|
+
const isHoliday = config.holidays.some(h => h.month === month && h.day === day);
|
|
81
81
|
if (isHoliday) {
|
|
82
82
|
return false;
|
|
83
83
|
}
|
|
@@ -3,6 +3,7 @@ export declare enum tablesEnumConfig {
|
|
|
3
3
|
image = "image",
|
|
4
4
|
designation = "designation",
|
|
5
5
|
name = "name",
|
|
6
|
+
warehouseReadinessDate = "warehouseReadinessDate",
|
|
6
7
|
description = "description",
|
|
7
8
|
createMarkLabel = "createMarkLabel",
|
|
8
9
|
calculatedCreateTime = "calculatedCreateTime",
|
|
@@ -9,6 +9,8 @@ var tablesEnumConfig;
|
|
|
9
9
|
tablesEnumConfig["designation"] = "designation";
|
|
10
10
|
// наименование
|
|
11
11
|
tablesEnumConfig["name"] = "name";
|
|
12
|
+
// Дата готовности склада
|
|
13
|
+
tablesEnumConfig["warehouseReadinessDate"] = "warehouseReadinessDate";
|
|
12
14
|
// описание
|
|
13
15
|
tablesEnumConfig["description"] = "description";
|
|
14
16
|
// Создать отметку
|
|
@@ -54,6 +54,7 @@ exports.onlineBoardProductionTableConfig = [
|
|
|
54
54
|
enum_1.tablesEnumConfig.dateByUrgency,
|
|
55
55
|
enum_1.tablesEnumConfig.startTime,
|
|
56
56
|
enum_1.tablesEnumConfig.calculatedCreateTime,
|
|
57
|
+
enum_1.tablesEnumConfig.warehouseReadinessDate,
|
|
57
58
|
enum_1.tablesEnumConfig.calculateNeedsTime,
|
|
58
59
|
enum_1.tablesEnumConfig.dateShipment,
|
|
59
60
|
enum_1.tablesEnumConfig.deficitByCurrentProductionTask,
|
|
@@ -70,6 +71,7 @@ exports.onlineBoardProductionTableConfig = [
|
|
|
70
71
|
exports.onlineBoardTableConfig = [
|
|
71
72
|
enum_1.tablesEnumConfig.number,
|
|
72
73
|
enum_1.tablesEnumConfig.image,
|
|
74
|
+
enum_1.tablesEnumConfig.warehouseReadinessDate,
|
|
73
75
|
enum_1.tablesEnumConfig.designation,
|
|
74
76
|
enum_1.tablesEnumConfig.name,
|
|
75
77
|
enum_1.tablesEnumConfig.entityType,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pksep/zod-shared",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.523",
|
|
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",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"lint": "eslint \"**/*.ts\" --fix",
|
|
15
15
|
"prettier": "prettier --write .",
|
|
16
16
|
"prettier:check": "prettier --check ./**/*.ts",
|
|
17
|
-
"prepublishOnly": "
|
|
17
|
+
"prepublishOnly": "bun run update-version && bun run build",
|
|
18
18
|
"update-version": "node bin/update-version.mjs",
|
|
19
19
|
"version": "git add -A src"
|
|
20
20
|
},
|