@pksep/zod-shared 0.0.528 → 0.0.530

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.
Files changed (141) hide show
  1. package/dist/action/dto/actions-by-param.dto.d.ts +2 -2
  2. package/dist/action/schemas/actions.schema.d.ts +18 -18
  3. package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +90 -81
  4. package/dist/assemble/schemas/assemble-coming.schema.d.ts +75 -68
  5. package/dist/assemble/schemas/assemble.schema.d.ts +69 -62
  6. package/dist/assemble-kit/schemas/assemble-kit.schema.d.ts +13 -13
  7. package/dist/buyer/schemas/buyer.schema.d.ts +1 -1
  8. package/dist/cbed/dto/cbed-pagination.dto.d.ts +1 -1
  9. package/dist/cbed/dto/get-one-cbed-dto.d.ts +2 -2
  10. package/dist/cbed/dto/up-create-cbed.dto.d.ts +6 -6
  11. package/dist/cbed/schemas/cbed-material.schema.d.ts +2 -2
  12. package/dist/cbed/schemas/cbed.schema.d.ts +21 -21
  13. package/dist/company/dto/companies-pagination.dto.d.ts +3 -0
  14. package/dist/company/dto/companies-pagination.dto.js +1 -0
  15. package/dist/company/dto/create-company.dto.d.ts +10 -10
  16. package/dist/company/dto/update-company.dto.d.ts +10 -10
  17. package/dist/company/schemas/companies.schema.d.ts +4 -4
  18. package/dist/contact/dto/create-contact.dto.d.ts +6 -6
  19. package/dist/contact/dto/update-contact.dto.d.ts +6 -6
  20. package/dist/contact/schemas/contact.schema.d.ts +3 -3
  21. package/dist/deliveries/dto/create-deliveries.dto.d.ts +3 -3
  22. package/dist/deliveries/schemas/deliveries-inventary.schema.d.ts +2 -2
  23. package/dist/deliveries/schemas/deliveries.schema.d.ts +4 -4
  24. package/dist/detal/dto/detal-pagination.dto.d.ts +2 -2
  25. package/dist/detal/dto/get-one-detal-dto.d.ts +1 -1
  26. package/dist/detal/dto/update-detal.dto.d.ts +9 -9
  27. package/dist/detal/schemas/detal-deficit.schema.d.ts +203 -203
  28. package/dist/detal/schemas/detal.schema.d.ts +200 -200
  29. package/dist/document/schemas/documentsSchema.d.ts +4 -4
  30. package/dist/equipment/dto/create-equipment.dto.d.ts +1 -1
  31. package/dist/equipment/dto/update-equipment.dto.d.ts +1 -1
  32. package/dist/equipment/schemas/equipment.schema.d.ts +98 -93
  33. package/dist/expenditure/schema/expenditure-consumption.schema.d.ts +2 -2
  34. package/dist/expenditure/schema/expenditure.schema.d.ts +2 -2
  35. package/dist/instrument/dto/create-name-instrument.dto.d.ts +1 -1
  36. package/dist/instrument/dto/update-name-instrument.dto.d.ts +2 -2
  37. package/dist/inventary/dto/create-inventary.dto.d.ts +1 -1
  38. package/dist/marks/dto/change-mark-quantity.dto.d.ts +16 -16
  39. package/dist/marks/dto/create-mark.dto.d.ts +8 -8
  40. package/dist/marks/dto/update-mark.dto.d.ts +2 -2
  41. package/dist/marks/schemas/marks.schema.d.ts +8 -8
  42. package/dist/marks/type/type.d.ts +2 -2
  43. package/dist/material/dto/create-material.dto.d.ts +20 -20
  44. package/dist/material/schemas/material-characteristics.schema.d.ts +6 -6
  45. package/dist/material/schemas/material.schema.d.ts +26 -26
  46. package/dist/metaloworking/schemas/metaloworking-by-operation.schema.d.ts +4 -4
  47. package/dist/metaloworking/schemas/metaloworking-coming.schema.d.ts +2 -2
  48. package/dist/movement-error/schemas/movement-error.schema.d.ts +2 -2
  49. package/dist/moving/schemas/moving.schema.d.ts +463 -456
  50. package/dist/operations/dto/create-type-operation.dto.d.ts +4 -0
  51. package/dist/operations/dto/create-type-operation.dto.js +5 -1
  52. package/dist/operations/dto/update-type-operation.dto.d.ts +4 -0
  53. package/dist/operations/dto/update-type-operation.dto.js +5 -1
  54. package/dist/operations/enums/enums.d.ts +7 -0
  55. package/dist/operations/enums/enums.js +21 -1
  56. package/dist/operations/index.d.ts +2 -0
  57. package/dist/operations/index.js +2 -0
  58. package/dist/operations/interfaces/interface.d.ts +5 -0
  59. package/dist/operations/schemas/operation.schema.d.ts +21 -17
  60. package/dist/operations/schemas/operation.schema.js +4 -0
  61. package/dist/operations/schemas/type-operation.schema.d.ts +4 -0
  62. package/dist/operations/schemas/type-operation.schema.js +2 -0
  63. package/dist/product/dto/up-create-product.dto.d.ts +7 -7
  64. package/dist/product/schemas/product-deficit.schema.d.ts +20 -20
  65. package/dist/product/schemas/product-material.schema.d.ts +2 -2
  66. package/dist/product/schemas/product-specification.schema.d.ts +2 -2
  67. package/dist/product/schemas/product.schema.d.ts +17 -17
  68. package/dist/production-tasks/dto/create-operation-pos.dto.d.ts +2 -2
  69. package/dist/production-tasks/dto/get-production-task-by-equipment.dto.d.ts +4 -0
  70. package/dist/production-tasks/dto/get-production-task-by-equipment.dto.js +3 -1
  71. package/dist/production-tasks/dto/get-production-task-by-user.dto.d.ts +4 -0
  72. package/dist/production-tasks/dto/get-production-task-by-user.dto.js +2 -0
  73. package/dist/production-tasks/dto/workload-by-entity.dto.d.ts +2 -2
  74. package/dist/production-tasks/interfaces/production-tasks.d.ts +2 -0
  75. package/dist/production-tasks/interfaces/workload-by-entity.d.ts +19 -0
  76. package/dist/production-tasks/schemas/operation-positions.schema.d.ts +7 -4
  77. package/dist/production-tasks/schemas/operation-positions.schema.js +1 -0
  78. package/dist/production-tasks/schemas/production-operation-pos.schema.d.ts +4 -4
  79. package/dist/provider/dto/create-provider.dto.d.ts +4 -4
  80. package/dist/provider/schemas/provider.schema.d.ts +1 -1
  81. package/dist/rack/dto/get-all-racks.dto.d.ts +3 -0
  82. package/dist/rack/dto/get-all-racks.dto.js +2 -1
  83. package/dist/role/schemas/role.schema.d.ts +455 -448
  84. package/dist/sclad/schemas/remain.schema.d.ts +2 -2
  85. package/dist/sclad/schemas/remains.schema.d.ts +6 -6
  86. package/dist/shipments/dto/get-attributes.dto.d.ts +2 -2
  87. package/dist/shipments/dto/shipments-list-pagination.dto.d.ts +1 -1
  88. package/dist/shipments/dto/shipments-paginate.dto.d.ts +2 -2
  89. package/dist/shipments/schemas/sh-complit.schema.d.ts +2 -2
  90. package/dist/shipments/schemas/shipments.schema.d.ts +2 -2
  91. package/dist/specification/dto/specification-attributes.dto.d.ts +1 -1
  92. package/dist/specification/schema/attributes.schema.d.ts +472 -472
  93. package/dist/stock-order/schemas/stock-order-item.schema.d.ts +2 -2
  94. package/dist/tech-process/schemas/tech-process.schema.d.ts +31 -26
  95. package/dist/thread/dto/add-thread.dto.d.ts +8 -8
  96. package/dist/user/dto/create-user.dto.d.ts +5 -5
  97. package/dist/user/dto/get-one-user.dto.d.ts +2 -2
  98. package/dist/user/schemas/user.schema.d.ts +267 -262
  99. package/dist/utils/enums.d.ts +2 -1
  100. package/dist/utils/enums.js +2 -1
  101. package/dist/utils/methods.d.ts +13 -0
  102. package/dist/utils/methods.js +106 -26
  103. package/dist/utils/types/types.d.ts +1 -0
  104. package/dist/waybill/dto/create-waybill-product.dto.d.ts +8 -2
  105. package/dist/waybill/dto/create-waybill-product.dto.js +15 -1
  106. package/dist/waybill/dto/create-waybill.dto.d.ts +16 -6
  107. package/dist/waybill/dto/create-waybill.dto.js +1 -1
  108. package/dist/waybill/interface/interface.d.ts +1 -0
  109. package/dist/waybill/schemas/waybill-product.schema.d.ts +8 -8
  110. package/dist/waybill/schemas/waybill.schema.d.ts +2 -2
  111. package/package.json +1 -1
  112. package/dist/issue/dto/up-create-issue.dto.d.ts +0 -49
  113. package/dist/issue/dto/up-create-issue.dto.js +0 -21
  114. package/dist/issue/index.d.ts +0 -5
  115. package/dist/issue/index.js +0 -21
  116. package/dist/issue/interfaces/interface.d.ts +0 -4
  117. package/dist/issue/schemas/issue-user-controller.schema.d.ts +0 -15
  118. package/dist/issue/schemas/issue-user-controller.schema.js +0 -9
  119. package/dist/issue/schemas/issue-user.schema.d.ts +0 -15
  120. package/dist/issue/schemas/issue-user.schema.js +0 -9
  121. package/dist/issue/schemas/issue.schema.d.ts +0 -51
  122. package/dist/issue/schemas/issue.schema.js +0 -21
  123. package/dist/library/dto/create-chapter.dto.d.ts +0 -12
  124. package/dist/library/dto/create-chapter.dto.js +0 -8
  125. package/dist/library/dto/create-link.dto.d.ts +0 -30
  126. package/dist/library/dto/create-link.dto.js +0 -14
  127. package/dist/library/index.d.ts +0 -5
  128. package/dist/library/index.js +0 -21
  129. package/dist/library/interfaces/interface.d.ts +0 -3
  130. package/dist/library/interfaces/interface.js +0 -2
  131. package/dist/library/schemas/links-user.schema.d.ts +0 -15
  132. package/dist/library/schemas/links-user.schema.js +0 -9
  133. package/dist/library/schemas/links.schema.d.ts +0 -30
  134. package/dist/library/schemas/links.schema.js +0 -14
  135. package/dist/production-tasks/dto/update-marks.dto.d.ts +0 -13
  136. package/dist/production-tasks/dto/update-marks.dto.js +0 -8
  137. package/dist/tech-process/schemas/tech-process-with-options.schema.d.ts +0 -306
  138. package/dist/tech-process/schemas/tech-process-with-options.schema.js +0 -8
  139. package/dist/utils/interface/mat.interface.d.ts +0 -10
  140. package/dist/utils/interface/mat.interface.js +0 -2
  141. /package/dist/{issue/interfaces/interface.js → production-tasks/interfaces/workload-by-entity.js} +0 -0
@@ -23,8 +23,8 @@ export declare const RemainSchema: z.ZodObject<{
23
23
  quantity: number;
24
24
  createdAt: string | Date;
25
25
  attetion: boolean;
26
- shipments_kolvo?: number | undefined;
27
26
  min_remaining?: number | undefined;
27
+ shipments_kolvo?: number | undefined;
28
28
  production_ordered?: number | undefined;
29
29
  ava_path?: string | undefined;
30
30
  in_kit?: number | undefined;
@@ -38,8 +38,8 @@ export declare const RemainSchema: z.ZodObject<{
38
38
  quantity: number;
39
39
  createdAt: string | Date;
40
40
  attetion: boolean;
41
- shipments_kolvo?: number | undefined;
42
41
  min_remaining?: number | undefined;
42
+ shipments_kolvo?: number | undefined;
43
43
  production_ordered?: number | undefined;
44
44
  ava_path?: string | undefined;
45
45
  in_kit?: number | undefined;
@@ -88,6 +88,9 @@ declare const RemainsSchema: z.ZodObject<{
88
88
  name: string;
89
89
  designation?: string | undefined;
90
90
  id?: number | null | undefined;
91
+ min_remaining?: number | undefined;
92
+ quantity?: number | undefined;
93
+ shipments_kolvo?: number | undefined;
91
94
  materialList?: {
92
95
  designation?: string | undefined;
93
96
  id?: number | null | undefined;
@@ -95,9 +98,6 @@ declare const RemainsSchema: z.ZodObject<{
95
98
  quantity?: number | undefined;
96
99
  units?: number | undefined;
97
100
  }[] | undefined;
98
- quantity?: number | undefined;
99
- shipments_kolvo?: number | undefined;
100
- min_remaining?: number | undefined;
101
101
  listPokDet?: {
102
102
  designation?: string | undefined;
103
103
  id?: number | null | undefined;
@@ -125,6 +125,9 @@ declare const RemainsSchema: z.ZodObject<{
125
125
  name: string;
126
126
  designation?: string | undefined;
127
127
  id?: number | null | undefined;
128
+ min_remaining?: number | undefined;
129
+ quantity?: number | undefined;
130
+ shipments_kolvo?: number | undefined;
128
131
  materialList?: {
129
132
  designation?: string | undefined;
130
133
  id?: number | null | undefined;
@@ -132,9 +135,6 @@ declare const RemainsSchema: z.ZodObject<{
132
135
  quantity?: number | undefined;
133
136
  units?: number | undefined;
134
137
  }[] | undefined;
135
- quantity?: number | undefined;
136
- shipments_kolvo?: number | undefined;
137
- min_remaining?: number | undefined;
138
138
  listPokDet?: {
139
139
  designation?: string | undefined;
140
140
  id?: number | null | undefined;
@@ -3,10 +3,10 @@ export declare const GetAttributesSchema: z.ZodObject<{
3
3
  shipmentIds: z.ZodArray<z.ZodNumber, "many">;
4
4
  attributes: z.ZodArray<z.ZodString, "many">;
5
5
  }, "strip", z.ZodTypeAny, {
6
- shipmentIds: number[];
7
6
  attributes: string[];
8
- }, {
9
7
  shipmentIds: number[];
8
+ }, {
10
9
  attributes: string[];
10
+ shipmentIds: number[];
11
11
  }>;
12
12
  export type GetAttributesDto = z.infer<typeof GetAttributesSchema>;
@@ -11,8 +11,8 @@ export declare const ShipmentsListPaginationSchema: z.ZodObject<{
11
11
  modelsInclude?: any;
12
12
  }, {
13
13
  page: number;
14
+ attributes?: string[] | undefined;
14
15
  searchString?: string | undefined;
15
16
  modelsInclude?: string | undefined;
16
- attributes?: string[] | undefined;
17
17
  }>;
18
18
  export type ShipmentsListPaginationDto = z.infer<typeof ShipmentsListPaginationSchema>;
@@ -24,8 +24,8 @@ export declare const ShipmentsPaginateSchema: z.ZodObject<{
24
24
  end: string;
25
25
  } | null;
26
26
  offset: number;
27
- parentId?: number | null | undefined;
28
27
  attributes?: string[] | undefined;
28
+ parentId?: number | null | undefined;
29
29
  searchStr?: string | undefined;
30
30
  companyId?: number | null | undefined;
31
31
  }, {
@@ -35,8 +35,8 @@ export declare const ShipmentsPaginateSchema: z.ZodObject<{
35
35
  end: string;
36
36
  } | null;
37
37
  offset: number;
38
- parentId?: number | null | undefined;
39
38
  attributes?: string[] | undefined;
39
+ parentId?: number | null | undefined;
40
40
  searchStr?: string | undefined;
41
41
  companyId?: number | null | undefined;
42
42
  }>;
@@ -40,8 +40,8 @@ export declare const ShComplitSchema: z.ZodObject<{
40
40
  description: string;
41
41
  id: number;
42
42
  number_order: string;
43
- base: string;
44
43
  responsible_user_id: number;
44
+ base: string;
45
45
  date_shipments: string;
46
46
  company_id: number;
47
47
  date_order: string;
@@ -62,8 +62,8 @@ export declare const ShComplitSchema: z.ZodObject<{
62
62
  description: string;
63
63
  id: number;
64
64
  number_order: string;
65
- base: string;
66
65
  responsible_user_id: number;
66
+ base: string;
67
67
  date_shipments: string;
68
68
  company_id: number;
69
69
  date_order: string;
@@ -53,10 +53,10 @@ export declare const ShipmentsSchema: z.ZodObject<{
53
53
  ban?: boolean | undefined;
54
54
  description?: string | null | undefined;
55
55
  contacts?: string | null | undefined;
56
+ attention?: boolean | undefined;
56
57
  inn?: string | null | undefined;
57
58
  cpp?: string | null | undefined;
58
59
  rekvisit?: string | null | undefined;
59
- attention?: boolean | undefined;
60
60
  purchasesId?: number | undefined;
61
61
  }>>;
62
62
  status: z.ZodDefault<z.ZodString>;
@@ -113,10 +113,10 @@ export declare const ShipmentsSchema: z.ZodObject<{
113
113
  ban?: boolean | undefined;
114
114
  description?: string | null | undefined;
115
115
  contacts?: string | null | undefined;
116
+ attention?: boolean | undefined;
116
117
  inn?: string | null | undefined;
117
118
  cpp?: string | null | undefined;
118
119
  rekvisit?: string | null | undefined;
119
- attention?: boolean | undefined;
120
120
  purchasesId?: number | undefined;
121
121
  } | undefined;
122
122
  company_id?: number | undefined;
@@ -5,8 +5,8 @@ export declare const GetAttributesFromIdsSchema: z.ZodObject<{
5
5
  materialIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
6
6
  attributes: z.ZodArray<z.ZodString, "many">;
7
7
  }, "strip", z.ZodTypeAny, {
8
- detalIds: number[];
9
8
  attributes: string[];
9
+ detalIds: number[];
10
10
  cbedIds: number[];
11
11
  materialIds: number[];
12
12
  }, {