@pksep/zod-shared 0.0.549 → 0.0.550
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/assemble/dto/get-assemble-operation-count.dto.d.ts +14 -0
- package/dist/assemble/interfaces/interfaces.d.ts +1 -0
- package/dist/assemble/schemas/assemble-coming.schema.d.ts +10 -0
- package/dist/assemble/schemas/assemble.schema.d.ts +10 -0
- package/dist/detal/default-values/default-values.d.ts +4 -0
- package/dist/detal/default-values/default-values.js +4 -0
- package/dist/detal/schemas/detal-deficit.schema.d.ts +170 -0
- package/dist/detal/schemas/detal.schema.d.ts +170 -0
- package/dist/material/dto/create-material.dto.d.ts +136 -0
- package/dist/material/dto/create-material.dto.js +16 -0
- package/dist/material/dto/up-create-type-material.dto.d.ts +4 -0
- package/dist/material/dto/up-create-type-material.dto.js +6 -1
- package/dist/material/enum/enum.d.ts +10 -0
- package/dist/material/enum/enum.js +12 -1
- package/dist/material/index.d.ts +1 -0
- package/dist/material/index.js +1 -0
- package/dist/material/interfaces/interface.d.ts +2 -0
- package/dist/material/schemas/material-characteristics.schema.d.ts +56 -0
- package/dist/material/schemas/material-characteristics.schema.js +3 -1
- package/dist/material/schemas/material-shipments-response.schema.d.ts +124 -0
- package/dist/material/schemas/material.schema.d.ts +124 -0
- package/dist/material/schemas/type-material.schema.d.ts +116 -0
- package/dist/material/schemas/type-material.schema.js +9 -2
- package/dist/material/utils/workpiece-mass.d.ts +56 -0
- package/dist/material/utils/workpiece-mass.js +538 -0
- package/dist/material/workpiece-mass.d.ts +45 -0
- package/dist/material/workpiece-mass.js +400 -0
- package/dist/metaloworking/dto/get-metallworking-pagination.dto.d.ts +3 -0
- package/dist/metaloworking/dto/get-metallworking-pagination.dto.js +1 -0
- package/dist/movement-object/schemas/get-one-object-history.schema.d.ts +40 -6
- package/dist/movement-object/schemas/get-one-object-history.schema.js +7 -1
- package/dist/production-tasks/interfaces/online-board.d.ts +1 -0
- package/dist/shipments/dto/format-list-shipment.dto.d.ts +3 -0
- package/dist/shipments/dto/format-list-shipment.dto.js +1 -0
- package/dist/shipments/dto/get-shipment-items-by-entity.dto.d.ts +22 -0
- package/dist/shipments/dto/get-shipment-items-by-entity.dto.js +12 -0
- package/dist/shipments/dto/up-create-shipments.dto.d.ts +342 -4
- package/dist/shipments/dto/up-create-shipments.dto.js +97 -3
- package/dist/shipments/dto/update-ready-to-ship-status.dto.d.ts +9 -0
- package/dist/shipments/dto/update-ready-to-ship-status.dto.js +7 -0
- package/dist/shipments/index.d.ts +2 -0
- package/dist/shipments/index.js +2 -0
- package/dist/shipments/types/types.d.ts +1 -0
- package/dist/specification/schema/attributes.schema.d.ts +386 -0
- package/dist/specification/type/type.d.ts +47 -1
- package/dist/utils/default-value/default-value.js +2 -1
- package/dist/utils/enums.d.ts +4 -2
- package/dist/utils/enums.js +2 -0
- package/dist/utils/types.d.ts +6 -0
- package/dist/waybill/dto/create-waybill-product.dto.d.ts +3 -3
- package/dist/waybill/dto/create-waybill-product.dto.js +1 -1
- package/dist/waybill/dto/create-waybill.dto.d.ts +5 -5
- package/dist/waybill/schemas/waybill.schema.d.ts +6 -0
- package/dist/waybill/schemas/waybill.schema.js +3 -1
- package/package.json +1 -1
package/dist/utils/enums.js
CHANGED
|
@@ -160,6 +160,7 @@ var WorkingItemType;
|
|
|
160
160
|
WorkingItemType["detal"] = "detal";
|
|
161
161
|
WorkingItemType["cbed"] = "cbed";
|
|
162
162
|
WorkingItemType["product"] = "product";
|
|
163
|
+
WorkingItemType["material"] = "material";
|
|
163
164
|
})(WorkingItemType || (exports.WorkingItemType = WorkingItemType = {}));
|
|
164
165
|
var WaybilTypeComingEnums;
|
|
165
166
|
(function (WaybilTypeComingEnums) {
|
|
@@ -172,6 +173,7 @@ var MovementObjectType;
|
|
|
172
173
|
MovementObjectType["detal"] = "detal";
|
|
173
174
|
MovementObjectType["cbed"] = "cbed";
|
|
174
175
|
MovementObjectType["product"] = "product";
|
|
176
|
+
MovementObjectType["material"] = "material";
|
|
175
177
|
})(MovementObjectType || (exports.MovementObjectType = MovementObjectType = {}));
|
|
176
178
|
var ModuleInclude;
|
|
177
179
|
(function (ModuleInclude) {
|
package/dist/utils/types.d.ts
CHANGED
|
@@ -57,6 +57,8 @@ export type DetalWorkpieceCharacteristics = {
|
|
|
57
57
|
outsideDiameter: number;
|
|
58
58
|
thickness: number;
|
|
59
59
|
areaCrossSectional: number;
|
|
60
|
+
acrossFlats: number;
|
|
61
|
+
massPerMeter: number;
|
|
60
62
|
mass: number;
|
|
61
63
|
trash: number;
|
|
62
64
|
density: number;
|
|
@@ -76,6 +78,8 @@ export type MaterialCharacteristics = {
|
|
|
76
78
|
outsideDiameter: MaterialCharacteristicsItem;
|
|
77
79
|
thickness: MaterialCharacteristicsItem;
|
|
78
80
|
areaCrossSectional: MaterialCharacteristicsItem;
|
|
81
|
+
acrossFlats: MaterialCharacteristicsItem;
|
|
82
|
+
massPerMeter: MaterialCharacteristicsItem;
|
|
79
83
|
};
|
|
80
84
|
export declare enum TypeMaterialCharZnachEnum {
|
|
81
85
|
variable = "variable",
|
|
@@ -94,6 +98,8 @@ export type TypeMaterialCharacteristics = {
|
|
|
94
98
|
outsideDiameter: TypeMaterialCharacteristicsItem;
|
|
95
99
|
thickness: TypeMaterialCharacteristicsItem;
|
|
96
100
|
areaCrossSectional: TypeMaterialCharacteristicsItem;
|
|
101
|
+
acrossFlats: TypeMaterialCharacteristicsItem;
|
|
102
|
+
massPerMeter: TypeMaterialCharacteristicsItem;
|
|
97
103
|
};
|
|
98
104
|
export interface IgetFirstUnits {
|
|
99
105
|
units_measurement: any[];
|
|
@@ -8,7 +8,7 @@ export declare const CreateWaybillProductSchema: z.ZodObject<{
|
|
|
8
8
|
workerType: z.ZodNativeEnum<typeof WaybilTypeComingEnums>;
|
|
9
9
|
sum: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
10
10
|
deliveryId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
11
|
-
|
|
11
|
+
deliveryPositionId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
12
12
|
productId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
13
13
|
toolsId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
14
14
|
cbedId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
@@ -39,7 +39,7 @@ export declare const CreateWaybillProductSchema: z.ZodObject<{
|
|
|
39
39
|
productId?: number | null | undefined;
|
|
40
40
|
assembleId?: number | null | undefined;
|
|
41
41
|
deliveryId?: number | null | undefined;
|
|
42
|
-
|
|
42
|
+
deliveryPositionId?: number | null | undefined;
|
|
43
43
|
toolsId?: number | null | undefined;
|
|
44
44
|
inventaryId?: number | null | undefined;
|
|
45
45
|
metalloworkingId?: number | null | undefined;
|
|
@@ -61,7 +61,7 @@ export declare const CreateWaybillProductSchema: z.ZodObject<{
|
|
|
61
61
|
productId?: number | null | undefined;
|
|
62
62
|
assembleId?: number | null | undefined;
|
|
63
63
|
deliveryId?: number | null | undefined;
|
|
64
|
-
|
|
64
|
+
deliveryPositionId?: number | null | undefined;
|
|
65
65
|
toolsId?: number | null | undefined;
|
|
66
66
|
inventaryId?: number | null | undefined;
|
|
67
67
|
metalloworkingId?: number | null | undefined;
|
|
@@ -22,7 +22,7 @@ exports.CreateWaybillProductSchema = zod_1.z.object({
|
|
|
22
22
|
return val;
|
|
23
23
|
}, zod_1.z.number().optional()),
|
|
24
24
|
deliveryId: zod_1.z.number().optional().nullish(),
|
|
25
|
-
|
|
25
|
+
deliveryPositionId: zod_1.z.number().int().positive().optional().nullish(),
|
|
26
26
|
productId: zod_1.z.number().optional().nullish(),
|
|
27
27
|
toolsId: zod_1.z.number().optional().nullish(),
|
|
28
28
|
cbedId: zod_1.z.number().optional().nullish(),
|
|
@@ -9,7 +9,7 @@ export declare const CreateWaybillDtoZod: z.ZodObject<{
|
|
|
9
9
|
workerType: z.ZodNativeEnum<typeof WaybilTypeComingEnums>;
|
|
10
10
|
sum: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
11
11
|
deliveryId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
12
|
-
|
|
12
|
+
deliveryPositionId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
13
13
|
productId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
14
14
|
toolsId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
15
15
|
cbedId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
@@ -40,7 +40,7 @@ export declare const CreateWaybillDtoZod: z.ZodObject<{
|
|
|
40
40
|
productId?: number | null | undefined;
|
|
41
41
|
assembleId?: number | null | undefined;
|
|
42
42
|
deliveryId?: number | null | undefined;
|
|
43
|
-
|
|
43
|
+
deliveryPositionId?: number | null | undefined;
|
|
44
44
|
toolsId?: number | null | undefined;
|
|
45
45
|
inventaryId?: number | null | undefined;
|
|
46
46
|
metalloworkingId?: number | null | undefined;
|
|
@@ -62,7 +62,7 @@ export declare const CreateWaybillDtoZod: z.ZodObject<{
|
|
|
62
62
|
productId?: number | null | undefined;
|
|
63
63
|
assembleId?: number | null | undefined;
|
|
64
64
|
deliveryId?: number | null | undefined;
|
|
65
|
-
|
|
65
|
+
deliveryPositionId?: number | null | undefined;
|
|
66
66
|
toolsId?: number | null | undefined;
|
|
67
67
|
inventaryId?: number | null | undefined;
|
|
68
68
|
metalloworkingId?: number | null | undefined;
|
|
@@ -96,7 +96,7 @@ export declare const CreateWaybillDtoZod: z.ZodObject<{
|
|
|
96
96
|
productId?: number | null | undefined;
|
|
97
97
|
assembleId?: number | null | undefined;
|
|
98
98
|
deliveryId?: number | null | undefined;
|
|
99
|
-
|
|
99
|
+
deliveryPositionId?: number | null | undefined;
|
|
100
100
|
toolsId?: number | null | undefined;
|
|
101
101
|
inventaryId?: number | null | undefined;
|
|
102
102
|
metalloworkingId?: number | null | undefined;
|
|
@@ -126,7 +126,7 @@ export declare const CreateWaybillDtoZod: z.ZodObject<{
|
|
|
126
126
|
productId?: number | null | undefined;
|
|
127
127
|
assembleId?: number | null | undefined;
|
|
128
128
|
deliveryId?: number | null | undefined;
|
|
129
|
-
|
|
129
|
+
deliveryPositionId?: number | null | undefined;
|
|
130
130
|
toolsId?: number | null | undefined;
|
|
131
131
|
inventaryId?: number | null | undefined;
|
|
132
132
|
metalloworkingId?: number | null | undefined;
|
|
@@ -13,6 +13,8 @@ export declare const WaybillSchema: z.ZodObject<{
|
|
|
13
13
|
type_сoming: z.ZodNativeEnum<typeof WaybilTypeComingEnums>;
|
|
14
14
|
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
15
15
|
company_id: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
order_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
order_date: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
|
|
16
18
|
}, "strip", z.ZodTypeAny, {
|
|
17
19
|
ban: boolean;
|
|
18
20
|
description: string;
|
|
@@ -21,6 +23,8 @@ export declare const WaybillSchema: z.ZodObject<{
|
|
|
21
23
|
id?: number | null | undefined;
|
|
22
24
|
createdAt?: string | Date | undefined;
|
|
23
25
|
company_id?: number | undefined;
|
|
26
|
+
order_number?: string | null | undefined;
|
|
27
|
+
order_date?: string | Date | null | undefined;
|
|
24
28
|
}, {
|
|
25
29
|
name: string;
|
|
26
30
|
type_сoming: WaybilTypeComingEnums;
|
|
@@ -29,6 +33,8 @@ export declare const WaybillSchema: z.ZodObject<{
|
|
|
29
33
|
id?: number | null | undefined;
|
|
30
34
|
createdAt?: string | Date | undefined;
|
|
31
35
|
company_id?: number | undefined;
|
|
36
|
+
order_number?: string | null | undefined;
|
|
37
|
+
order_date?: string | Date | null | undefined;
|
|
32
38
|
}>;
|
|
33
39
|
export type ModelWaybill = z.infer<typeof WaybillSchema> & {
|
|
34
40
|
documents?: ModelDocuments[];
|
|
@@ -10,5 +10,7 @@ exports.WaybillSchema = zod_1.z.object({
|
|
|
10
10
|
ban: zod_1.z.boolean().default(false),
|
|
11
11
|
type_сoming: zod_1.z.nativeEnum(utils_1.WaybilTypeComingEnums),
|
|
12
12
|
createdAt: zod_1.z.union([zod_1.z.date(), zod_1.z.string()]).optional(),
|
|
13
|
-
company_id: zod_1.z.number().int().optional()
|
|
13
|
+
company_id: zod_1.z.number().int().optional(),
|
|
14
|
+
order_number: zod_1.z.string().nullish(),
|
|
15
|
+
order_date: zod_1.z.union([zod_1.z.date(), zod_1.z.string()]).nullish()
|
|
14
16
|
});
|