@pksep/zod-shared 0.0.554 → 0.0.555
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/material/utils/workpiece-mass.js +13 -6
- package/dist/material/workpiece-mass.d.ts +45 -0
- package/dist/material/workpiece-mass.js +400 -0
- package/dist/production-tasks/index.d.ts +1 -0
- package/dist/production-tasks/index.js +1 -0
- package/dist/production-tasks/interfaces/production-tasks.d.ts +0 -3
- package/dist/production-tasks/schemas/orders-summary-by-entity.schema.d.ts +307 -0
- package/dist/production-tasks/schemas/orders-summary-by-entity.schema.js +74 -0
- package/dist/utils/interface/status-flags.interface.d.ts +4 -0
- package/dist/utils/tables-config/enum.d.ts +1 -2
- package/dist/utils/tables-config/enum.js +0 -2
- package/dist/utils/tables-config/tables-array.js +0 -3
- package/package.json +1 -1
- package/dist/issue/dto/up-create-issue.dto.d.ts +0 -49
- package/dist/issue/dto/up-create-issue.dto.js +0 -21
- package/dist/issue/index.d.ts +0 -5
- package/dist/issue/index.js +0 -21
- package/dist/issue/interfaces/interface.d.ts +0 -4
- package/dist/issue/schemas/issue-user-controller.schema.d.ts +0 -15
- package/dist/issue/schemas/issue-user-controller.schema.js +0 -9
- package/dist/issue/schemas/issue-user.schema.d.ts +0 -15
- package/dist/issue/schemas/issue-user.schema.js +0 -9
- package/dist/issue/schemas/issue.schema.d.ts +0 -51
- package/dist/issue/schemas/issue.schema.js +0 -21
- package/dist/library/dto/create-chapter.dto.d.ts +0 -12
- package/dist/library/dto/create-chapter.dto.js +0 -8
- package/dist/library/dto/create-link.dto.d.ts +0 -30
- package/dist/library/dto/create-link.dto.js +0 -14
- package/dist/library/index.d.ts +0 -5
- package/dist/library/index.js +0 -21
- package/dist/library/interfaces/interface.d.ts +0 -3
- package/dist/library/interfaces/interface.js +0 -2
- package/dist/library/schemas/links-user.schema.d.ts +0 -15
- package/dist/library/schemas/links-user.schema.js +0 -9
- package/dist/library/schemas/links.schema.d.ts +0 -30
- package/dist/library/schemas/links.schema.js +0 -14
- package/dist/planning/index.d.ts +0 -1
- package/dist/planning/index.js +0 -17
- package/dist/planning/types/planning.d.ts +0 -187
- package/dist/planning/types/planning.js +0 -25
- package/dist/production-tasks/dto/update-marks.dto.d.ts +0 -13
- package/dist/production-tasks/dto/update-marks.dto.js +0 -8
- package/dist/production-tasks/dto/update-responsible.dto.d.ts +0 -12
- package/dist/production-tasks/dto/update-responsible.dto.js +0 -8
- package/dist/production-tasks/dto/update-status.dto.d.ts +0 -13
- package/dist/production-tasks/dto/update-status.dto.js +0 -9
- package/dist/tech-process/schemas/tech-process-with-options.schema.d.ts +0 -306
- package/dist/tech-process/schemas/tech-process-with-options.schema.js +0 -8
- package/dist/utils/interface/mat.interface.d.ts +0 -10
- package/dist/utils/interface/mat.interface.js +0 -2
- /package/dist/{issue/interfaces/interface.js → utils/interface/status-flags.interface.js} +0 -0
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const CreateChapterDtoZod: z.ZodObject<{
|
|
3
|
-
name: z.ZodString;
|
|
4
|
-
id: z.ZodNumber;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
id: number;
|
|
7
|
-
name: string;
|
|
8
|
-
}, {
|
|
9
|
-
id: number;
|
|
10
|
-
name: string;
|
|
11
|
-
}>;
|
|
12
|
-
export type CreateChapterDtoType = z.infer<typeof CreateChapterDtoZod>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const CreateLinkDtoZod: z.ZodObject<{
|
|
3
|
-
name: z.ZodString;
|
|
4
|
-
is_link: z.ZodString;
|
|
5
|
-
link: z.ZodString;
|
|
6
|
-
description: z.ZodString;
|
|
7
|
-
docs: z.ZodAny;
|
|
8
|
-
user_id: z.ZodNumber;
|
|
9
|
-
chapter_id: z.ZodNumber;
|
|
10
|
-
id: z.ZodNumber;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
id: number;
|
|
13
|
-
name: string;
|
|
14
|
-
description: string;
|
|
15
|
-
user_id: number;
|
|
16
|
-
link: string;
|
|
17
|
-
is_link: string;
|
|
18
|
-
chapter_id: number;
|
|
19
|
-
docs?: any;
|
|
20
|
-
}, {
|
|
21
|
-
id: number;
|
|
22
|
-
name: string;
|
|
23
|
-
description: string;
|
|
24
|
-
user_id: number;
|
|
25
|
-
link: string;
|
|
26
|
-
is_link: string;
|
|
27
|
-
chapter_id: number;
|
|
28
|
-
docs?: any;
|
|
29
|
-
}>;
|
|
30
|
-
export type CreateLinkDtoType = z.infer<typeof CreateLinkDtoZod>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateLinkDtoZod = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.CreateLinkDtoZod = zod_1.z.object({
|
|
6
|
-
name: zod_1.z.string(),
|
|
7
|
-
is_link: zod_1.z.string(),
|
|
8
|
-
link: zod_1.z.string(),
|
|
9
|
-
description: zod_1.z.string(),
|
|
10
|
-
docs: zod_1.z.any(),
|
|
11
|
-
user_id: zod_1.z.number(),
|
|
12
|
-
chapter_id: zod_1.z.number(),
|
|
13
|
-
id: zod_1.z.number()
|
|
14
|
-
});
|
package/dist/library/index.d.ts
DELETED
package/dist/library/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./schemas/links.schema"), exports);
|
|
18
|
-
__exportStar(require("./schemas/links-user.schema"), exports);
|
|
19
|
-
__exportStar(require("./interfaces/interface"), exports);
|
|
20
|
-
__exportStar(require("./dto/create-chapter.dto"), exports);
|
|
21
|
-
__exportStar(require("./dto/create-link.dto"), exports);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const LinksUserSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
|
-
links_id: z.ZodNumber;
|
|
5
|
-
user_id: z.ZodNumber;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
user_id: number;
|
|
8
|
-
links_id: number;
|
|
9
|
-
id?: number | null | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
user_id: number;
|
|
12
|
-
links_id: number;
|
|
13
|
-
id?: number | null | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
export type ModelLinksUser = z.infer<typeof LinksUserSchema>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LinksUserSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.LinksUserSchema = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.number().nullish(),
|
|
7
|
-
links_id: zod_1.z.number().int().positive(),
|
|
8
|
-
user_id: zod_1.z.number().int().positive()
|
|
9
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const LinksSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
link: z.ZodOptional<z.ZodString>;
|
|
6
|
-
is_link: z.ZodBoolean;
|
|
7
|
-
ban: z.ZodDefault<z.ZodBoolean>;
|
|
8
|
-
description: z.ZodOptional<z.ZodString>;
|
|
9
|
-
responsible_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
-
chapter_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
ban: boolean;
|
|
13
|
-
name: string;
|
|
14
|
-
is_link: boolean;
|
|
15
|
-
id?: number | null | undefined;
|
|
16
|
-
description?: string | undefined;
|
|
17
|
-
responsible_id?: number | null | undefined;
|
|
18
|
-
link?: string | undefined;
|
|
19
|
-
chapter_id?: number | null | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
name: string;
|
|
22
|
-
is_link: boolean;
|
|
23
|
-
ban?: boolean | undefined;
|
|
24
|
-
id?: number | null | undefined;
|
|
25
|
-
description?: string | undefined;
|
|
26
|
-
responsible_id?: number | null | undefined;
|
|
27
|
-
link?: string | undefined;
|
|
28
|
-
chapter_id?: number | null | undefined;
|
|
29
|
-
}>;
|
|
30
|
-
export type ModelLinks = z.infer<typeof LinksSchema>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LinksSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.LinksSchema = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.number().nullish(),
|
|
7
|
-
name: zod_1.z.string(),
|
|
8
|
-
link: zod_1.z.string().optional(),
|
|
9
|
-
is_link: zod_1.z.boolean(),
|
|
10
|
-
ban: zod_1.z.boolean().default(false),
|
|
11
|
-
description: zod_1.z.string().optional(),
|
|
12
|
-
responsible_id: zod_1.z.number().nullish(),
|
|
13
|
-
chapter_id: zod_1.z.number().nullish()
|
|
14
|
-
});
|
package/dist/planning/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './types/planning';
|
package/dist/planning/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types/planning"), exports);
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { IShipmentCalculateObjecyt } from '../../shipments';
|
|
3
|
-
import { IzdType, Neo4jEntityTypes, RecursiveGraphParentType, RecursiveGraphType } from '../../utils';
|
|
4
|
-
export declare const CalculatePlanningSchema: z.ZodObject<{
|
|
5
|
-
itemId: z.ZodNumber;
|
|
6
|
-
itemType: z.ZodNativeEnum<typeof IzdType>;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
itemId: number;
|
|
9
|
-
itemType: IzdType;
|
|
10
|
-
}, {
|
|
11
|
-
itemId: number;
|
|
12
|
-
itemType: IzdType;
|
|
13
|
-
}>;
|
|
14
|
-
export type CalculatePlanningData = z.infer<typeof CalculatePlanningSchema>;
|
|
15
|
-
export type PlanningGraphNode = {
|
|
16
|
-
itemId: number;
|
|
17
|
-
itemType: Neo4jEntityTypes;
|
|
18
|
-
isRelative: boolean;
|
|
19
|
-
hasPlanningOrder?: boolean;
|
|
20
|
-
childrens: PlanningGraphNode[];
|
|
21
|
-
};
|
|
22
|
-
export type PlanningGraphRelative = {
|
|
23
|
-
id: number;
|
|
24
|
-
type: Neo4jEntityTypes;
|
|
25
|
-
};
|
|
26
|
-
export declare const PlanningGraphNodeSchema: z.ZodType<PlanningGraphNode>;
|
|
27
|
-
export declare const PlanningGraphRelativeSchema: z.ZodObject<{
|
|
28
|
-
id: z.ZodNumber;
|
|
29
|
-
type: z.ZodNativeEnum<typeof Neo4jEntityTypes>;
|
|
30
|
-
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
type: Neo4jEntityTypes;
|
|
32
|
-
id: number;
|
|
33
|
-
}, {
|
|
34
|
-
type: Neo4jEntityTypes;
|
|
35
|
-
id: number;
|
|
36
|
-
}>;
|
|
37
|
-
export declare const PlanningGraphResponseSchema: z.ZodObject<{
|
|
38
|
-
itemId: z.ZodNumber;
|
|
39
|
-
itemType: z.ZodNativeEnum<typeof Neo4jEntityTypes>;
|
|
40
|
-
graph: z.ZodArray<z.ZodType<PlanningGraphNode, z.ZodTypeDef, PlanningGraphNode>, "many">;
|
|
41
|
-
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
graph: PlanningGraphNode[];
|
|
43
|
-
itemId: number;
|
|
44
|
-
itemType: Neo4jEntityTypes;
|
|
45
|
-
}, {
|
|
46
|
-
graph: PlanningGraphNode[];
|
|
47
|
-
itemId: number;
|
|
48
|
-
itemType: Neo4jEntityTypes;
|
|
49
|
-
}>;
|
|
50
|
-
export interface PlanningRecursiveCountPerShipment {
|
|
51
|
-
quantityArr: Map<string, IShipmentCalculateObjecyt>;
|
|
52
|
-
relativeProduct: any;
|
|
53
|
-
entityToFindId: number;
|
|
54
|
-
shipmentKol: number;
|
|
55
|
-
entityType: IzdType.detal | IzdType.cbed | IzdType.material;
|
|
56
|
-
}
|
|
57
|
-
export type PlanningRecursiveGraphEntityType = IzdType.product | IzdType.cbed | IzdType.detal | IzdType.material;
|
|
58
|
-
export type PlanningRecursiveGraphNode = RecursiveGraphType & {
|
|
59
|
-
id: number;
|
|
60
|
-
entity_type: PlanningRecursiveGraphEntityType;
|
|
61
|
-
quantity: number;
|
|
62
|
-
parent_id?: number;
|
|
63
|
-
parent_type?: PlanningRecursiveGraphEntityType;
|
|
64
|
-
count_to_obj?: number;
|
|
65
|
-
count_to_needs?: number;
|
|
66
|
-
needs?: number;
|
|
67
|
-
cbeds: PlanningRecursiveGraphNode[];
|
|
68
|
-
detals: PlanningRecursiveGraphNode[];
|
|
69
|
-
materials: PlanningRecursiveGraphNode[];
|
|
70
|
-
cbedGraph: PlanningRecursiveGraphNode[];
|
|
71
|
-
detalsGraph: PlanningRecursiveGraphNode[];
|
|
72
|
-
materialGraph: PlanningRecursiveGraphNode[];
|
|
73
|
-
};
|
|
74
|
-
export type PlanningRecursiveGraphTree = RecursiveGraphParentType & {
|
|
75
|
-
id: number;
|
|
76
|
-
entity_type: PlanningRecursiveGraphEntityType;
|
|
77
|
-
quantity: number;
|
|
78
|
-
cbeds: PlanningRecursiveGraphNode[];
|
|
79
|
-
detals: PlanningRecursiveGraphNode[];
|
|
80
|
-
materials: PlanningRecursiveGraphNode[];
|
|
81
|
-
cbedGraph: PlanningRecursiveGraphNode[];
|
|
82
|
-
detalsGraph: PlanningRecursiveGraphNode[];
|
|
83
|
-
materialGraph: PlanningRecursiveGraphNode[];
|
|
84
|
-
};
|
|
85
|
-
export type PlanningRecursiveCountByEntityShipment = Omit<PlanningRecursiveCountPerShipment, 'relativeProduct'> & {
|
|
86
|
-
relativeProduct: PlanningRecursiveGraphTree;
|
|
87
|
-
relativeProductType?: PlanningRecursiveGraphEntityType;
|
|
88
|
-
};
|
|
89
|
-
export type PlanningOrderDocumentType = 'shipment' | 'stock-order' | 'production-task';
|
|
90
|
-
export type PlanningOrderDocument = {
|
|
91
|
-
documentType: PlanningOrderDocumentType;
|
|
92
|
-
documentId: number;
|
|
93
|
-
entityId: number;
|
|
94
|
-
entityType: PlanningRecursiveGraphEntityType;
|
|
95
|
-
entityName: string | null;
|
|
96
|
-
entityDesignation: string | null;
|
|
97
|
-
entityAvatar: string | null;
|
|
98
|
-
entityAttention: boolean;
|
|
99
|
-
entityDiscontinued: boolean;
|
|
100
|
-
entityDescription: string;
|
|
101
|
-
numberOrder: string | null;
|
|
102
|
-
orderDate: Date | string | null;
|
|
103
|
-
plannedShipmentDate: Date | string | null;
|
|
104
|
-
warehouseReadinessDate: Date | string | null;
|
|
105
|
-
quantity: number;
|
|
106
|
-
completedQuantity: number;
|
|
107
|
-
remainingQuantity: number;
|
|
108
|
-
status?: string | null;
|
|
109
|
-
stockOrderItemId?: number;
|
|
110
|
-
productionOperationPosId?: number;
|
|
111
|
-
productionTaskDocuments?: PlanningOrderDocument[];
|
|
112
|
-
};
|
|
113
|
-
export type PlanningOrderAccordionDocument = PlanningOrderDocument & {
|
|
114
|
-
coveredQuantity: number;
|
|
115
|
-
};
|
|
116
|
-
export type PlanningOrderAccordionNode = {
|
|
117
|
-
entityId: number;
|
|
118
|
-
entityType: PlanningRecursiveGraphEntityType;
|
|
119
|
-
entityName: string | null;
|
|
120
|
-
entityDesignation: string | null;
|
|
121
|
-
entityAvatar: string | null;
|
|
122
|
-
entityAttention: boolean;
|
|
123
|
-
entityDiscontinued: boolean;
|
|
124
|
-
entityDescription: string;
|
|
125
|
-
isRelative: boolean;
|
|
126
|
-
parentId: number | null;
|
|
127
|
-
parentType: PlanningRecursiveGraphEntityType | null;
|
|
128
|
-
countToNeeds: number | null;
|
|
129
|
-
needDate: Date | string | null;
|
|
130
|
-
sourceDocument: PlanningOrderDocument | null;
|
|
131
|
-
quantity: number;
|
|
132
|
-
stockQuantity: number;
|
|
133
|
-
stockCoveredQuantity: number;
|
|
134
|
-
afterStockQuantity: number;
|
|
135
|
-
stockOrderCoveredQuantity: number;
|
|
136
|
-
deficitQuantity: number;
|
|
137
|
-
isSurplus: boolean;
|
|
138
|
-
isCovered: boolean;
|
|
139
|
-
coverDocuments: PlanningOrderAccordionDocument[];
|
|
140
|
-
children: PlanningOrderAccordionNode[];
|
|
141
|
-
};
|
|
142
|
-
export type PlanningPeggingEntityKey = string;
|
|
143
|
-
export type PlanningPeggingItem = {
|
|
144
|
-
key: PlanningPeggingEntityKey;
|
|
145
|
-
id: number;
|
|
146
|
-
type: PlanningRecursiveGraphEntityType;
|
|
147
|
-
name: string | null;
|
|
148
|
-
designation: string | null;
|
|
149
|
-
avatar: string | null;
|
|
150
|
-
attention: boolean;
|
|
151
|
-
discontinued: boolean;
|
|
152
|
-
description: string;
|
|
153
|
-
stock: number;
|
|
154
|
-
};
|
|
155
|
-
export type PlanningPeggingSpec = {
|
|
156
|
-
parent: PlanningPeggingEntityKey;
|
|
157
|
-
child: PlanningPeggingEntityKey;
|
|
158
|
-
qty: number;
|
|
159
|
-
};
|
|
160
|
-
export type PlanningPeggingPathNode = {
|
|
161
|
-
item: PlanningPeggingEntityKey;
|
|
162
|
-
qty: number;
|
|
163
|
-
stockCov?: number;
|
|
164
|
-
afterStock?: number;
|
|
165
|
-
zsCov?: number;
|
|
166
|
-
deficit?: number;
|
|
167
|
-
isCovered?: boolean;
|
|
168
|
-
cover?: PlanningOrderAccordionDocument[];
|
|
169
|
-
};
|
|
170
|
-
export type PlanningPeggingBranch = {
|
|
171
|
-
branchKey: string;
|
|
172
|
-
qty: number;
|
|
173
|
-
needDate: Date | string | null;
|
|
174
|
-
origin: PlanningOrderDocument;
|
|
175
|
-
path: PlanningPeggingPathNode[];
|
|
176
|
-
surplus?: boolean;
|
|
177
|
-
_self?: boolean;
|
|
178
|
-
stockCov?: number;
|
|
179
|
-
afterStock?: number;
|
|
180
|
-
zsCov?: number;
|
|
181
|
-
deficit?: number;
|
|
182
|
-
cover?: PlanningOrderAccordionDocument[];
|
|
183
|
-
};
|
|
184
|
-
export type PlanningPeggingStockOrder = PlanningOrderDocument & {
|
|
185
|
-
left: number;
|
|
186
|
-
productionTaskDocuments: PlanningOrderDocument[];
|
|
187
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlanningGraphResponseSchema = exports.PlanningGraphRelativeSchema = exports.PlanningGraphNodeSchema = exports.CalculatePlanningSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const utils_1 = require("../../utils");
|
|
6
|
-
exports.CalculatePlanningSchema = zod_1.z.object({
|
|
7
|
-
itemId: zod_1.z.number().int().positive(),
|
|
8
|
-
itemType: zod_1.z.nativeEnum(utils_1.IzdType)
|
|
9
|
-
});
|
|
10
|
-
exports.PlanningGraphNodeSchema = zod_1.z.lazy(() => zod_1.z.object({
|
|
11
|
-
itemId: zod_1.z.number().int(),
|
|
12
|
-
itemType: zod_1.z.nativeEnum(utils_1.Neo4jEntityTypes),
|
|
13
|
-
isRelative: zod_1.z.boolean(),
|
|
14
|
-
hasPlanningOrder: zod_1.z.boolean().optional(),
|
|
15
|
-
childrens: zod_1.z.array(exports.PlanningGraphNodeSchema)
|
|
16
|
-
}));
|
|
17
|
-
exports.PlanningGraphRelativeSchema = zod_1.z.object({
|
|
18
|
-
id: zod_1.z.number().int(),
|
|
19
|
-
type: zod_1.z.nativeEnum(utils_1.Neo4jEntityTypes)
|
|
20
|
-
});
|
|
21
|
-
exports.PlanningGraphResponseSchema = zod_1.z.object({
|
|
22
|
-
itemId: zod_1.z.number().int(),
|
|
23
|
-
itemType: zod_1.z.nativeEnum(utils_1.Neo4jEntityTypes),
|
|
24
|
-
graph: zod_1.z.array(exports.PlanningGraphNodeSchema)
|
|
25
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { IOperationPosition } from '../interfaces/production-tasks';
|
|
3
|
-
export declare const UpdateProductionTaskMarksDtoZod: z.ZodObject<{
|
|
4
|
-
operationPosition: z.ZodOptional<z.ZodNullable<z.ZodType<IOperationPosition, z.ZodTypeDef, IOperationPosition>>>;
|
|
5
|
-
productionTaskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
operationPosition?: IOperationPosition | null | undefined;
|
|
8
|
-
productionTaskId?: number | null | undefined;
|
|
9
|
-
}, {
|
|
10
|
-
operationPosition?: IOperationPosition | null | undefined;
|
|
11
|
-
productionTaskId?: number | null | undefined;
|
|
12
|
-
}>;
|
|
13
|
-
export type UpdateProductionTaskMarksDtoZodType = z.infer<typeof UpdateProductionTaskMarksDtoZod>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateProductionTaskMarksDtoZod = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.UpdateProductionTaskMarksDtoZod = zod_1.z.object({
|
|
6
|
-
operationPosition: zod_1.z.custom().nullable().optional(),
|
|
7
|
-
productionTaskId: zod_1.z.number().int().nullable().optional()
|
|
8
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const UpdateProductionTaskREsponsibleDtoZod: z.ZodObject<{
|
|
3
|
-
userId: z.ZodNumber;
|
|
4
|
-
productionPosId: z.ZodNumber;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
userId: number;
|
|
7
|
-
productionPosId: number;
|
|
8
|
-
}, {
|
|
9
|
-
userId: number;
|
|
10
|
-
productionPosId: number;
|
|
11
|
-
}>;
|
|
12
|
-
export type UpdateProductionTaskREsponsibleDtoZodType = z.infer<typeof UpdateProductionTaskREsponsibleDtoZod>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateProductionTaskREsponsibleDtoZod = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.UpdateProductionTaskREsponsibleDtoZod = zod_1.z.object({
|
|
6
|
-
userId: zod_1.z.number(),
|
|
7
|
-
productionPosId: zod_1.z.number()
|
|
8
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { StatusProductionTaskEnum } from '../enums/production-tasks';
|
|
3
|
-
export declare const UpdateStatusProductionTaskEnumDtoZod: z.ZodObject<{
|
|
4
|
-
productionTaskId: z.ZodNumber;
|
|
5
|
-
status: z.ZodNativeEnum<typeof StatusProductionTaskEnum>;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
status: StatusProductionTaskEnum;
|
|
8
|
-
productionTaskId: number;
|
|
9
|
-
}, {
|
|
10
|
-
status: StatusProductionTaskEnum;
|
|
11
|
-
productionTaskId: number;
|
|
12
|
-
}>;
|
|
13
|
-
export type UpdateStatusProductionTaskEnumDtoZodType = z.infer<typeof UpdateStatusProductionTaskEnumDtoZod>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateStatusProductionTaskEnumDtoZod = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const production_tasks_1 = require("../enums/production-tasks");
|
|
6
|
-
exports.UpdateStatusProductionTaskEnumDtoZod = zod_1.z.object({
|
|
7
|
-
productionTaskId: zod_1.z.number().int(),
|
|
8
|
-
status: zod_1.z.nativeEnum(production_tasks_1.StatusProductionTaskEnum)
|
|
9
|
-
});
|