@pksep/zod-shared 0.0.555 → 0.0.556
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 +10 -0
- package/dist/action/enums/enums.js +10 -0
- package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +24 -24
- package/dist/assemble/schemas/assemble-coming.schema.d.ts +18 -18
- package/dist/assemble/schemas/assemble.schema.d.ts +18 -18
- package/dist/assemble-kit/schemas/assemble-kit.schema.d.ts +6 -6
- package/dist/buyer/schemas/buyer.schema.d.ts +2 -2
- package/dist/buyer/schemas/purchases.schema.d.ts +2 -2
- package/dist/cbed/schemas/cbed.schema.d.ts +2 -2
- package/dist/company/schemas/companies.schema.d.ts +2 -2
- 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 +198 -28
- package/dist/detal/schemas/detal.schema.d.ts +192 -22
- package/dist/document/dto/update-document.dto.d.ts +2 -2
- package/dist/edizm/schemas/edizm.schema.d.ts +2 -2
- package/dist/edizm/schemas/type-edizm.schema.d.ts +6 -6
- package/dist/equipment/dto/udate-equipment-type.dto.d.ts +2 -2
- package/dist/equipment/dto/update-equipment.dto.d.ts +1 -1
- package/dist/equipment/schemas/equipment-pt.schema.d.ts +2 -2
- package/dist/equipment/schemas/equipment.schema.d.ts +6 -6
- package/dist/expenditure/schema/expenditure-consumption.schema.d.ts +4 -4
- package/dist/expenditure/schema/expenditure-position.schema.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/instrument/dto/update-instrument.dto.d.ts +2 -2
- package/dist/instrument/dto/update-pt.dto.d.ts +2 -2
- package/dist/instrument/schemas/pt-instrument.schema.d.ts +2 -2
- package/dist/inventary/dto/update-inventary.dto.d.ts +2 -2
- 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 +5 -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 +130 -6
- package/dist/material/schemas/material.schema.d.ts +130 -6
- package/dist/material/schemas/subtype-material.schema.d.ts +2 -2
- package/dist/material/schemas/subtype-material.schema.js +1 -1
- package/dist/material/schemas/type-material.schema.d.ts +118 -2
- package/dist/material/schemas/type-material.schema.js +9 -2
- package/dist/metaloworking/schemas/metaloworking-coming.schema.d.ts +2 -2
- package/dist/moving/schemas/moving.schema.d.ts +6 -6
- package/dist/operations/dto/get-type-operation-by-id.dto.d.ts +3 -3
- package/dist/operations/dto/update-type-operation.dto.d.ts +2 -2
- package/dist/planning/index.d.ts +1 -0
- package/dist/planning/index.js +17 -0
- package/dist/planning/types/planning.d.ts +187 -0
- package/dist/planning/types/planning.js +25 -0
- package/dist/product/schemas/product-deficit.schema.d.ts +6 -6
- package/dist/production-tasks/interfaces/production-tasks.d.ts +11 -3
- package/dist/production-tasks/schemas/orders-summary-by-entity.schema.d.ts +42 -0
- package/dist/production-tasks/schemas/orders-summary-by-entity.schema.js +9 -0
- package/dist/role/dto/update-role.dto.d.ts +2 -2
- package/dist/role/schemas/role.schema.d.ts +8 -8
- package/dist/sclad/schemas/remain.schema.d.ts +2 -2
- package/dist/sclad/schemas/remains.schema.d.ts +16 -16
- package/dist/settings/dto/update-edizm.dto.d.ts +2 -2
- package/dist/shipments/dto/shipments-list-pagination-response.dto.d.ts +18 -18
- package/dist/shipments/dto/up-create-shipments.dto.d.ts +4 -4
- package/dist/shipments/schemas/shipment-list-item.schema.d.ts +12 -12
- package/dist/shipments/schemas/shipments.schema.d.ts +4 -4
- package/dist/shipments/types/increment-shipments-kolvo.type.d.ts +12 -12
- package/dist/shipments/types/types.d.ts +1 -0
- package/dist/shipments/types/update-shipments-by-product.type.d.ts +12 -12
- package/dist/specification/schema/attributes.schema.d.ts +432 -46
- package/dist/tech-process/schemas/tech-process.schema.d.ts +2 -2
- package/dist/user/schemas/user.schema.d.ts +4 -4
- package/dist/utils/methods.js +4 -2
- package/dist/utils/schemas/schema.d.ts +2 -2
- package/dist/utils/tables-config/enum.d.ts +2 -1
- package/dist/utils/tables-config/enum.js +2 -0
- package/dist/utils/tables-config/tables-array.js +3 -0
- package/dist/utils/types.d.ts +6 -0
- package/package.json +1 -1
|
@@ -196,8 +196,8 @@ export declare const TechProcessSchema: z.ZodObject<{
|
|
|
196
196
|
}, "strip", z.ZodTypeAny, {
|
|
197
197
|
ban: boolean;
|
|
198
198
|
description: string;
|
|
199
|
-
id?: number | null | undefined;
|
|
200
199
|
name?: number | undefined;
|
|
200
|
+
id?: number | null | undefined;
|
|
201
201
|
detalId?: number | null | undefined;
|
|
202
202
|
cbedId?: number | null | undefined;
|
|
203
203
|
productId?: number | null | undefined;
|
|
@@ -249,8 +249,8 @@ export declare const TechProcessSchema: z.ZodObject<{
|
|
|
249
249
|
}, {
|
|
250
250
|
ban?: boolean | undefined;
|
|
251
251
|
description?: string | undefined;
|
|
252
|
-
id?: number | null | undefined;
|
|
253
252
|
name?: number | undefined;
|
|
253
|
+
id?: number | null | undefined;
|
|
254
254
|
detalId?: number | null | undefined;
|
|
255
255
|
cbedId?: number | null | undefined;
|
|
256
256
|
productId?: number | null | undefined;
|
|
@@ -125,8 +125,8 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
125
125
|
cbed: import("../../cbed").CbedRelativeType[];
|
|
126
126
|
designation: string | null;
|
|
127
127
|
description: string | null;
|
|
128
|
-
id: number;
|
|
129
128
|
name: string;
|
|
129
|
+
id: number;
|
|
130
130
|
calculate_needs_time: Date | null;
|
|
131
131
|
entity_children_need_time: Date | null;
|
|
132
132
|
min_remaining: number;
|
|
@@ -156,8 +156,8 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
156
156
|
}, {
|
|
157
157
|
designation: string | null;
|
|
158
158
|
description: string | null;
|
|
159
|
-
id: number;
|
|
160
159
|
name: string;
|
|
160
|
+
id: number;
|
|
161
161
|
ava_path: string | null;
|
|
162
162
|
parametrs: import("../../cbed").CbedParametrsField | null;
|
|
163
163
|
characteristic: import("../../cbed").CbedCharacteristicField | null;
|
|
@@ -600,8 +600,8 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
600
600
|
cbed: import("../../cbed").CbedRelativeType[];
|
|
601
601
|
designation: string | null;
|
|
602
602
|
description: string | null;
|
|
603
|
-
id: number;
|
|
604
603
|
name: string;
|
|
604
|
+
id: number;
|
|
605
605
|
calculate_needs_time: Date | null;
|
|
606
606
|
entity_children_need_time: Date | null;
|
|
607
607
|
min_remaining: number;
|
|
@@ -794,8 +794,8 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
794
794
|
cbeds: {
|
|
795
795
|
designation: string | null;
|
|
796
796
|
description: string | null;
|
|
797
|
-
id: number;
|
|
798
797
|
name: string;
|
|
798
|
+
id: number;
|
|
799
799
|
ava_path: string | null;
|
|
800
800
|
parametrs: import("../../cbed").CbedParametrsField | null;
|
|
801
801
|
characteristic: import("../../cbed").CbedCharacteristicField | null;
|
package/dist/utils/methods.js
CHANGED
|
@@ -800,7 +800,8 @@ const countChildrensRelative = (data) => {
|
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
802
|
const materialMap = new Map();
|
|
803
|
-
const materialsArray = concatedMaterialLists
|
|
803
|
+
const materialsArray = concatedMaterialLists
|
|
804
|
+
.map((listMaterialItem) => {
|
|
804
805
|
const foundedMaterials = materials.find(material => listMaterialItem.id === material.id);
|
|
805
806
|
// если материал не найден, пропускаем
|
|
806
807
|
if (!foundedMaterials) {
|
|
@@ -819,7 +820,8 @@ const countChildrensRelative = (data) => {
|
|
|
819
820
|
return Object.assign(Object.assign(Object.assign({}, foundedMaterials), (0, sequelize_1.addFieldByCondition)(data.isNeedsTypes, {
|
|
820
821
|
entity_type: enums_1.IzdType.material
|
|
821
822
|
})), { measure_id: listMaterialItem.measureId, count_to_obj_not_converted: listMaterialItem.quantity, count_to_needs_not_converted: relativeNeeds * listMaterialItem.quantity, count_to_obj: specificationConvertedQuantity, count_to_needs: relativeNeeds * specificationConvertedQuantity, needs: relativeNeeds * specificationConvertedQuantity, parent_id: relative.id, parent_type: relativeType, parent_ava: relative === null || relative === void 0 ? void 0 : relative.ava_path, parent_designation: (relative === null || relative === void 0 ? void 0 : relative.designation) || '-', parent_name: (relative === null || relative === void 0 ? void 0 : relative.name) || '-' });
|
|
822
|
-
})
|
|
823
|
+
})
|
|
824
|
+
.filter(Boolean);
|
|
823
825
|
materialsArray.forEach((currentMaterial) => {
|
|
824
826
|
const materialKey = `${currentMaterial.parent_id}_${currentMaterial.parent_type}_${currentMaterial.id}`;
|
|
825
827
|
if (materialMap.has(materialKey)) {
|
|
@@ -8,15 +8,15 @@ export declare const SpecificationForObjectSchema: z.ZodObject<{
|
|
|
8
8
|
measureId: z.ZodNumber;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
designation: string;
|
|
11
|
-
id: number;
|
|
12
11
|
name: string;
|
|
12
|
+
id: number;
|
|
13
13
|
quantity: number;
|
|
14
14
|
discontinued: boolean;
|
|
15
15
|
measureId: number;
|
|
16
16
|
}, {
|
|
17
17
|
designation: string;
|
|
18
|
-
id: number;
|
|
19
18
|
name: string;
|
|
19
|
+
id: number;
|
|
20
20
|
quantity: number;
|
|
21
21
|
measureId: number;
|
|
22
22
|
discontinued?: boolean | undefined;
|
|
@@ -43,5 +43,6 @@ export declare enum tablesEnumConfig {
|
|
|
43
43
|
readyInProcent = "readyInProcent",
|
|
44
44
|
readyToAssembleQuantity = "readyToAssembleQuantity",
|
|
45
45
|
deltaTime = "deltaTime",
|
|
46
|
-
childrenCalculateNeedsTime = "childrenCalculateNeedsTime"
|
|
46
|
+
childrenCalculateNeedsTime = "childrenCalculateNeedsTime",
|
|
47
|
+
entityCalculatedCreateTimeColumn = "entityCalculatedCreateTimeColumn"
|
|
47
48
|
}
|
|
@@ -88,4 +88,6 @@ var tablesEnumConfig;
|
|
|
88
88
|
tablesEnumConfig["deltaTime"] = "deltaTime";
|
|
89
89
|
// Готовность к комплектации
|
|
90
90
|
tablesEnumConfig["childrenCalculateNeedsTime"] = "childrenCalculateNeedsTime";
|
|
91
|
+
// Требуемя дата готовности сущности
|
|
92
|
+
tablesEnumConfig["entityCalculatedCreateTimeColumn"] = "entityCalculatedCreateTimeColumn";
|
|
91
93
|
})(tablesEnumConfig || (exports.tablesEnumConfig = tablesEnumConfig = {}));
|
|
@@ -128,6 +128,7 @@ exports.productionTaskByUserTableConfig = [
|
|
|
128
128
|
enum_1.tablesEnumConfig.designation,
|
|
129
129
|
enum_1.tablesEnumConfig.name,
|
|
130
130
|
enum_1.tablesEnumConfig.deficitChildCreateTime,
|
|
131
|
+
enum_1.tablesEnumConfig.entityCalculatedCreateTimeColumn,
|
|
131
132
|
enum_1.tablesEnumConfig.startTime,
|
|
132
133
|
enum_1.tablesEnumConfig.calculatedCreateTime,
|
|
133
134
|
enum_1.tablesEnumConfig.calculateNeedsTime,
|
|
@@ -157,6 +158,7 @@ exports.productionTaskByOperationTableConfig = [
|
|
|
157
158
|
enum_1.tablesEnumConfig.name,
|
|
158
159
|
enum_1.tablesEnumConfig.workpieceParameters,
|
|
159
160
|
enum_1.tablesEnumConfig.material,
|
|
161
|
+
enum_1.tablesEnumConfig.entityCalculatedCreateTimeColumn,
|
|
160
162
|
enum_1.tablesEnumConfig.startTime,
|
|
161
163
|
enum_1.tablesEnumConfig.calculatedCreateTime,
|
|
162
164
|
enum_1.tablesEnumConfig.calculateNeedsTime,
|
|
@@ -187,6 +189,7 @@ exports.productionTaskByEquipmentTableConfig = [
|
|
|
187
189
|
enum_1.tablesEnumConfig.name,
|
|
188
190
|
enum_1.tablesEnumConfig.workpieceParameters,
|
|
189
191
|
enum_1.tablesEnumConfig.material,
|
|
192
|
+
enum_1.tablesEnumConfig.entityCalculatedCreateTimeColumn,
|
|
190
193
|
enum_1.tablesEnumConfig.startTime,
|
|
191
194
|
enum_1.tablesEnumConfig.calculatedCreateTime,
|
|
192
195
|
enum_1.tablesEnumConfig.calculateNeedsTime,
|
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[];
|