@deepintel-ltd/buildlink-api-contracts 0.2.23

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 (278) hide show
  1. package/README.md +27 -0
  2. package/contracts/auth.d.ts +3641 -0
  3. package/contracts/auth.d.ts.map +1 -0
  4. package/contracts/auth.js +266 -0
  5. package/contracts/auth.js.map +1 -0
  6. package/contracts/billing.d.ts +2167 -0
  7. package/contracts/billing.d.ts.map +1 -0
  8. package/contracts/billing.js +55 -0
  9. package/contracts/billing.js.map +1 -0
  10. package/contracts/boq.d.ts +1214 -0
  11. package/contracts/boq.d.ts.map +1 -0
  12. package/contracts/boq.js +31 -0
  13. package/contracts/boq.js.map +1 -0
  14. package/contracts/budget.d.ts +10677 -0
  15. package/contracts/budget.d.ts.map +1 -0
  16. package/contracts/budget.js +599 -0
  17. package/contracts/budget.js.map +1 -0
  18. package/contracts/commercial.d.ts +1475 -0
  19. package/contracts/commercial.d.ts.map +1 -0
  20. package/contracts/commercial.js +40 -0
  21. package/contracts/commercial.js.map +1 -0
  22. package/contracts/communication.d.ts +5389 -0
  23. package/contracts/communication.d.ts.map +1 -0
  24. package/contracts/communication.js +255 -0
  25. package/contracts/communication.js.map +1 -0
  26. package/contracts/contractor-ledger.d.ts +1293 -0
  27. package/contracts/contractor-ledger.d.ts.map +1 -0
  28. package/contracts/contractor-ledger.js +41 -0
  29. package/contracts/contractor-ledger.js.map +1 -0
  30. package/contracts/daily-logs.d.ts +9132 -0
  31. package/contracts/daily-logs.d.ts.map +1 -0
  32. package/contracts/daily-logs.js +188 -0
  33. package/contracts/daily-logs.js.map +1 -0
  34. package/contracts/deficiencies.d.ts +11786 -0
  35. package/contracts/deficiencies.d.ts.map +1 -0
  36. package/contracts/deficiencies.js +312 -0
  37. package/contracts/deficiencies.js.map +1 -0
  38. package/contracts/directory.d.ts +3116 -0
  39. package/contracts/directory.d.ts.map +1 -0
  40. package/contracts/directory.js +117 -0
  41. package/contracts/directory.js.map +1 -0
  42. package/contracts/documents.d.ts +4944 -0
  43. package/contracts/documents.d.ts.map +1 -0
  44. package/contracts/documents.js +251 -0
  45. package/contracts/documents.js.map +1 -0
  46. package/contracts/drawings.d.ts +10552 -0
  47. package/contracts/drawings.d.ts.map +1 -0
  48. package/contracts/drawings.js +321 -0
  49. package/contracts/drawings.js.map +1 -0
  50. package/contracts/hub.d.ts +1174 -0
  51. package/contracts/hub.d.ts.map +1 -0
  52. package/contracts/hub.js +42 -0
  53. package/contracts/hub.js.map +1 -0
  54. package/contracts/index.d.ts +128 -0
  55. package/contracts/index.d.ts.map +1 -0
  56. package/contracts/index.js +119 -0
  57. package/contracts/index.js.map +1 -0
  58. package/contracts/integrations.d.ts +4163 -0
  59. package/contracts/integrations.d.ts.map +1 -0
  60. package/contracts/integrations.js +326 -0
  61. package/contracts/integrations.js.map +1 -0
  62. package/contracts/maps.d.ts +4911 -0
  63. package/contracts/maps.d.ts.map +1 -0
  64. package/contracts/maps.js +276 -0
  65. package/contracts/maps.js.map +1 -0
  66. package/contracts/meetings.d.ts +4194 -0
  67. package/contracts/meetings.d.ts.map +1 -0
  68. package/contracts/meetings.js +115 -0
  69. package/contracts/meetings.js.map +1 -0
  70. package/contracts/monitoring.d.ts +2749 -0
  71. package/contracts/monitoring.d.ts.map +1 -0
  72. package/contracts/monitoring.js +289 -0
  73. package/contracts/monitoring.js.map +1 -0
  74. package/contracts/packages.d.ts +1470 -0
  75. package/contracts/packages.d.ts.map +1 -0
  76. package/contracts/packages.js +74 -0
  77. package/contracts/packages.js.map +1 -0
  78. package/contracts/projects.d.ts +6281 -0
  79. package/contracts/projects.d.ts.map +1 -0
  80. package/contracts/projects.js +448 -0
  81. package/contracts/projects.js.map +1 -0
  82. package/contracts/proof.d.ts +962 -0
  83. package/contracts/proof.d.ts.map +1 -0
  84. package/contracts/proof.js +34 -0
  85. package/contracts/proof.js.map +1 -0
  86. package/contracts/qaqc.d.ts +1184 -0
  87. package/contracts/qaqc.d.ts.map +1 -0
  88. package/contracts/qaqc.js +35 -0
  89. package/contracts/qaqc.js.map +1 -0
  90. package/contracts/rbac.d.ts +5227 -0
  91. package/contracts/rbac.d.ts.map +1 -0
  92. package/contracts/rbac.js +357 -0
  93. package/contracts/rbac.js.map +1 -0
  94. package/contracts/reports.d.ts +8468 -0
  95. package/contracts/reports.d.ts.map +1 -0
  96. package/contracts/reports.js +377 -0
  97. package/contracts/reports.js.map +1 -0
  98. package/contracts/resources.d.ts +15870 -0
  99. package/contracts/resources.d.ts.map +1 -0
  100. package/contracts/resources.js +869 -0
  101. package/contracts/resources.js.map +1 -0
  102. package/contracts/rfi-submittal.d.ts +2545 -0
  103. package/contracts/rfi-submittal.d.ts.map +1 -0
  104. package/contracts/rfi-submittal.js +159 -0
  105. package/contracts/rfi-submittal.js.map +1 -0
  106. package/contracts/safety.d.ts +7162 -0
  107. package/contracts/safety.d.ts.map +1 -0
  108. package/contracts/safety.js +519 -0
  109. package/contracts/safety.js.map +1 -0
  110. package/contracts/schedule.d.ts +9456 -0
  111. package/contracts/schedule.d.ts.map +1 -0
  112. package/contracts/schedule.js +460 -0
  113. package/contracts/schedule.js.map +1 -0
  114. package/contracts/spec-equal.d.ts +841 -0
  115. package/contracts/spec-equal.d.ts.map +1 -0
  116. package/contracts/spec-equal.js +28 -0
  117. package/contracts/spec-equal.js.map +1 -0
  118. package/contracts/specifications.d.ts +15478 -0
  119. package/contracts/specifications.d.ts.map +1 -0
  120. package/contracts/specifications.js +521 -0
  121. package/contracts/specifications.js.map +1 -0
  122. package/contracts/tasks.d.ts +11037 -0
  123. package/contracts/tasks.d.ts.map +1 -0
  124. package/contracts/tasks.js +693 -0
  125. package/contracts/tasks.js.map +1 -0
  126. package/contracts/timecards.d.ts +3130 -0
  127. package/contracts/timecards.d.ts.map +1 -0
  128. package/contracts/timecards.js +133 -0
  129. package/contracts/timecards.js.map +1 -0
  130. package/contracts/transmittals.d.ts +3921 -0
  131. package/contracts/transmittals.d.ts.map +1 -0
  132. package/contracts/transmittals.js +156 -0
  133. package/contracts/transmittals.js.map +1 -0
  134. package/contracts/valuations.d.ts +3266 -0
  135. package/contracts/valuations.d.ts.map +1 -0
  136. package/contracts/valuations.js +116 -0
  137. package/contracts/valuations.js.map +1 -0
  138. package/package.json +216 -0
  139. package/schemas/auth.d.ts +449 -0
  140. package/schemas/auth.d.ts.map +1 -0
  141. package/schemas/auth.js +103 -0
  142. package/schemas/auth.js.map +1 -0
  143. package/schemas/billing.d.ts +710 -0
  144. package/schemas/billing.d.ts.map +1 -0
  145. package/schemas/billing.js +82 -0
  146. package/schemas/billing.js.map +1 -0
  147. package/schemas/boq.d.ts +385 -0
  148. package/schemas/boq.d.ts.map +1 -0
  149. package/schemas/boq.js +49 -0
  150. package/schemas/boq.js.map +1 -0
  151. package/schemas/budget.d.ts +737 -0
  152. package/schemas/budget.d.ts.map +1 -0
  153. package/schemas/budget.js +272 -0
  154. package/schemas/budget.js.map +1 -0
  155. package/schemas/commercial.d.ts +358 -0
  156. package/schemas/commercial.d.ts.map +1 -0
  157. package/schemas/commercial.js +36 -0
  158. package/schemas/commercial.js.map +1 -0
  159. package/schemas/common.d.ts +865 -0
  160. package/schemas/common.d.ts.map +1 -0
  161. package/schemas/common.js +193 -0
  162. package/schemas/common.js.map +1 -0
  163. package/schemas/communication.d.ts +884 -0
  164. package/schemas/communication.d.ts.map +1 -0
  165. package/schemas/communication.js +245 -0
  166. package/schemas/communication.js.map +1 -0
  167. package/schemas/contractor-ledger.d.ts +364 -0
  168. package/schemas/contractor-ledger.d.ts.map +1 -0
  169. package/schemas/contractor-ledger.js +36 -0
  170. package/schemas/contractor-ledger.js.map +1 -0
  171. package/schemas/cursor-pagination.d.ts +258 -0
  172. package/schemas/cursor-pagination.d.ts.map +1 -0
  173. package/schemas/cursor-pagination.js +84 -0
  174. package/schemas/cursor-pagination.js.map +1 -0
  175. package/schemas/daily-logs.d.ts +2339 -0
  176. package/schemas/daily-logs.d.ts.map +1 -0
  177. package/schemas/daily-logs.js +235 -0
  178. package/schemas/daily-logs.js.map +1 -0
  179. package/schemas/deficiencies.d.ts +2496 -0
  180. package/schemas/deficiencies.d.ts.map +1 -0
  181. package/schemas/deficiencies.js +338 -0
  182. package/schemas/deficiencies.js.map +1 -0
  183. package/schemas/directory.d.ts +783 -0
  184. package/schemas/directory.d.ts.map +1 -0
  185. package/schemas/directory.js +122 -0
  186. package/schemas/directory.js.map +1 -0
  187. package/schemas/documents.d.ts +202 -0
  188. package/schemas/documents.d.ts.map +1 -0
  189. package/schemas/documents.js +76 -0
  190. package/schemas/documents.js.map +1 -0
  191. package/schemas/drawings.d.ts +2042 -0
  192. package/schemas/drawings.d.ts.map +1 -0
  193. package/schemas/drawings.js +350 -0
  194. package/schemas/drawings.js.map +1 -0
  195. package/schemas/hub.d.ts +288 -0
  196. package/schemas/hub.d.ts.map +1 -0
  197. package/schemas/hub.js +32 -0
  198. package/schemas/hub.js.map +1 -0
  199. package/schemas/integrations.d.ts +508 -0
  200. package/schemas/integrations.d.ts.map +1 -0
  201. package/schemas/integrations.js +119 -0
  202. package/schemas/integrations.js.map +1 -0
  203. package/schemas/maps.d.ts +793 -0
  204. package/schemas/maps.d.ts.map +1 -0
  205. package/schemas/maps.js +118 -0
  206. package/schemas/maps.js.map +1 -0
  207. package/schemas/meetings.d.ts +888 -0
  208. package/schemas/meetings.d.ts.map +1 -0
  209. package/schemas/meetings.js +138 -0
  210. package/schemas/meetings.js.map +1 -0
  211. package/schemas/packages.d.ts +236 -0
  212. package/schemas/packages.d.ts.map +1 -0
  213. package/schemas/packages.js +53 -0
  214. package/schemas/packages.js.map +1 -0
  215. package/schemas/projects.d.ts +306 -0
  216. package/schemas/projects.d.ts.map +1 -0
  217. package/schemas/projects.js +92 -0
  218. package/schemas/projects.js.map +1 -0
  219. package/schemas/proof.d.ts +210 -0
  220. package/schemas/proof.d.ts.map +1 -0
  221. package/schemas/proof.js +26 -0
  222. package/schemas/proof.js.map +1 -0
  223. package/schemas/qaqc.d.ts +235 -0
  224. package/schemas/qaqc.d.ts.map +1 -0
  225. package/schemas/qaqc.js +47 -0
  226. package/schemas/qaqc.js.map +1 -0
  227. package/schemas/rbac.d.ts +730 -0
  228. package/schemas/rbac.d.ts.map +1 -0
  229. package/schemas/rbac.js +230 -0
  230. package/schemas/rbac.js.map +1 -0
  231. package/schemas/reports.d.ts +5729 -0
  232. package/schemas/reports.d.ts.map +1 -0
  233. package/schemas/reports.js +589 -0
  234. package/schemas/reports.js.map +1 -0
  235. package/schemas/resources.d.ts +5190 -0
  236. package/schemas/resources.d.ts.map +1 -0
  237. package/schemas/resources.js +678 -0
  238. package/schemas/resources.js.map +1 -0
  239. package/schemas/rfi.d.ts +877 -0
  240. package/schemas/rfi.d.ts.map +1 -0
  241. package/schemas/rfi.js +84 -0
  242. package/schemas/rfi.js.map +1 -0
  243. package/schemas/safety.d.ts +1080 -0
  244. package/schemas/safety.d.ts.map +1 -0
  245. package/schemas/safety.js +237 -0
  246. package/schemas/safety.js.map +1 -0
  247. package/schemas/schedule.d.ts +4657 -0
  248. package/schemas/schedule.d.ts.map +1 -0
  249. package/schemas/schedule.js +441 -0
  250. package/schemas/schedule.js.map +1 -0
  251. package/schemas/spec-equal.d.ts +162 -0
  252. package/schemas/spec-equal.d.ts.map +1 -0
  253. package/schemas/spec-equal.js +29 -0
  254. package/schemas/spec-equal.js.map +1 -0
  255. package/schemas/specifications.d.ts +5241 -0
  256. package/schemas/specifications.d.ts.map +1 -0
  257. package/schemas/specifications.js +426 -0
  258. package/schemas/specifications.js.map +1 -0
  259. package/schemas/submittal.d.ts +867 -0
  260. package/schemas/submittal.d.ts.map +1 -0
  261. package/schemas/submittal.js +87 -0
  262. package/schemas/submittal.js.map +1 -0
  263. package/schemas/tasks.d.ts +610 -0
  264. package/schemas/tasks.d.ts.map +1 -0
  265. package/schemas/tasks.js +133 -0
  266. package/schemas/tasks.js.map +1 -0
  267. package/schemas/timecards.d.ts +618 -0
  268. package/schemas/timecards.d.ts.map +1 -0
  269. package/schemas/timecards.js +80 -0
  270. package/schemas/timecards.js.map +1 -0
  271. package/schemas/transmittals.d.ts +662 -0
  272. package/schemas/transmittals.d.ts.map +1 -0
  273. package/schemas/transmittals.js +132 -0
  274. package/schemas/transmittals.js.map +1 -0
  275. package/schemas/valuations.d.ts +713 -0
  276. package/schemas/valuations.d.ts.map +1 -0
  277. package/schemas/valuations.js +116 -0
  278. package/schemas/valuations.js.map +1 -0
@@ -0,0 +1,4657 @@
1
+ import { z } from 'zod';
2
+ export declare const ScheduleItemTypeSchema: z.ZodEnum<["TASK", "MILESTONE", "PHASE", "SUMMARY"]>;
3
+ export declare const ScheduleItemStatusSchema: z.ZodEnum<["NOT_STARTED", "IN_PROGRESS", "COMPLETED", "ON_HOLD", "CANCELLED", "DELAYED"]>;
4
+ export declare const SchedulePrioritySchema: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>;
5
+ export declare const DependencyTypeSchema: z.ZodEnum<["FINISH_TO_START", "START_TO_START", "FINISH_TO_FINISH", "START_TO_FINISH"]>;
6
+ export declare const ResourceTypeSchema: z.ZodEnum<["LABOR", "EQUIPMENT", "MATERIAL", "SUBCONTRACTOR"]>;
7
+ export declare const ScheduleDependencySchema: z.ZodObject<{
8
+ id: z.ZodString;
9
+ predecessorId: z.ZodString;
10
+ successorId: z.ZodString;
11
+ type: z.ZodEnum<["FINISH_TO_START", "START_TO_START", "FINISH_TO_FINISH", "START_TO_FINISH"]>;
12
+ lag: z.ZodDefault<z.ZodNumber>;
13
+ description: z.ZodOptional<z.ZodString>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ id: string;
16
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
17
+ predecessorId: string;
18
+ successorId: string;
19
+ lag: number;
20
+ description?: string | undefined;
21
+ }, {
22
+ id: string;
23
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
24
+ predecessorId: string;
25
+ successorId: string;
26
+ description?: string | undefined;
27
+ lag?: number | undefined;
28
+ }>;
29
+ export declare const ScheduleResourceSchema: z.ZodObject<{
30
+ id: z.ZodString;
31
+ name: z.ZodString;
32
+ type: z.ZodEnum<["LABOR", "EQUIPMENT", "MATERIAL", "SUBCONTRACTOR"]>;
33
+ capacity: z.ZodNumber;
34
+ cost: z.ZodOptional<z.ZodNumber>;
35
+ availability: z.ZodDefault<z.ZodArray<z.ZodObject<{
36
+ startDate: z.ZodString;
37
+ endDate: z.ZodString;
38
+ capacity: z.ZodNumber;
39
+ }, "strip", z.ZodTypeAny, {
40
+ startDate: string;
41
+ endDate: string;
42
+ capacity: number;
43
+ }, {
44
+ startDate: string;
45
+ endDate: string;
46
+ capacity: number;
47
+ }>, "many">>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ id: string;
50
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
51
+ name: string;
52
+ availability: {
53
+ startDate: string;
54
+ endDate: string;
55
+ capacity: number;
56
+ }[];
57
+ capacity: number;
58
+ cost?: number | undefined;
59
+ }, {
60
+ id: string;
61
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
62
+ name: string;
63
+ capacity: number;
64
+ cost?: number | undefined;
65
+ availability?: {
66
+ startDate: string;
67
+ endDate: string;
68
+ capacity: number;
69
+ }[] | undefined;
70
+ }>;
71
+ export declare const ScheduleResourceAssignmentSchema: z.ZodObject<{
72
+ resourceId: z.ZodString;
73
+ units: z.ZodNumber;
74
+ startDate: z.ZodOptional<z.ZodString>;
75
+ endDate: z.ZodOptional<z.ZodString>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ resourceId: string;
78
+ units: number;
79
+ startDate?: string | undefined;
80
+ endDate?: string | undefined;
81
+ }, {
82
+ resourceId: string;
83
+ units: number;
84
+ startDate?: string | undefined;
85
+ endDate?: string | undefined;
86
+ }>;
87
+ export declare const ScheduleItemSchema: z.ZodObject<{
88
+ id: z.ZodString;
89
+ projectId: z.ZodString;
90
+ parentId: z.ZodOptional<z.ZodString>;
91
+ name: z.ZodString;
92
+ description: z.ZodOptional<z.ZodString>;
93
+ type: z.ZodEnum<["TASK", "MILESTONE", "PHASE", "SUMMARY"]>;
94
+ status: z.ZodEnum<["NOT_STARTED", "IN_PROGRESS", "COMPLETED", "ON_HOLD", "CANCELLED", "DELAYED"]>;
95
+ priority: z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>>;
96
+ plannedStartDate: z.ZodString;
97
+ plannedEndDate: z.ZodString;
98
+ actualStartDate: z.ZodOptional<z.ZodString>;
99
+ actualEndDate: z.ZodOptional<z.ZodString>;
100
+ duration: z.ZodNumber;
101
+ workDays: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
102
+ percentComplete: z.ZodDefault<z.ZodNumber>;
103
+ baselineStartDate: z.ZodOptional<z.ZodString>;
104
+ baselineEndDate: z.ZodOptional<z.ZodString>;
105
+ baselineDuration: z.ZodOptional<z.ZodNumber>;
106
+ earlyStart: z.ZodOptional<z.ZodString>;
107
+ earlyFinish: z.ZodOptional<z.ZodString>;
108
+ lateStart: z.ZodOptional<z.ZodString>;
109
+ lateFinish: z.ZodOptional<z.ZodString>;
110
+ totalFloat: z.ZodOptional<z.ZodNumber>;
111
+ freeFloat: z.ZodOptional<z.ZodNumber>;
112
+ isCritical: z.ZodDefault<z.ZodBoolean>;
113
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
114
+ id: z.ZodString;
115
+ predecessorId: z.ZodString;
116
+ successorId: z.ZodString;
117
+ type: z.ZodEnum<["FINISH_TO_START", "START_TO_START", "FINISH_TO_FINISH", "START_TO_FINISH"]>;
118
+ lag: z.ZodDefault<z.ZodNumber>;
119
+ description: z.ZodOptional<z.ZodString>;
120
+ }, "strip", z.ZodTypeAny, {
121
+ id: string;
122
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
123
+ predecessorId: string;
124
+ successorId: string;
125
+ lag: number;
126
+ description?: string | undefined;
127
+ }, {
128
+ id: string;
129
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
130
+ predecessorId: string;
131
+ successorId: string;
132
+ description?: string | undefined;
133
+ lag?: number | undefined;
134
+ }>, "many">>;
135
+ resourceAssignments: z.ZodDefault<z.ZodArray<z.ZodObject<{
136
+ resourceId: z.ZodString;
137
+ units: z.ZodNumber;
138
+ startDate: z.ZodOptional<z.ZodString>;
139
+ endDate: z.ZodOptional<z.ZodString>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ resourceId: string;
142
+ units: number;
143
+ startDate?: string | undefined;
144
+ endDate?: string | undefined;
145
+ }, {
146
+ resourceId: string;
147
+ units: number;
148
+ startDate?: string | undefined;
149
+ endDate?: string | undefined;
150
+ }>, "many">>;
151
+ linkedTaskIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
152
+ level: z.ZodDefault<z.ZodNumber>;
153
+ order: z.ZodDefault<z.ZodNumber>;
154
+ hasChildren: z.ZodDefault<z.ZodBoolean>;
155
+ createdById: z.ZodString;
156
+ assignedToId: z.ZodOptional<z.ZodString>;
157
+ notes: z.ZodOptional<z.ZodString>;
158
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
159
+ createdAt: z.ZodString;
160
+ updatedAt: z.ZodString;
161
+ }, "strip", z.ZodTypeAny, {
162
+ id: string;
163
+ createdAt: string;
164
+ updatedAt: string;
165
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
166
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
167
+ projectId: string;
168
+ name: string;
169
+ createdById: string;
170
+ priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
171
+ tags: string[];
172
+ order: number;
173
+ duration: number;
174
+ dependencies: {
175
+ id: string;
176
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
177
+ predecessorId: string;
178
+ successorId: string;
179
+ lag: number;
180
+ description?: string | undefined;
181
+ }[];
182
+ level: number;
183
+ isCritical: boolean;
184
+ plannedStartDate: string;
185
+ plannedEndDate: string;
186
+ workDays: number[];
187
+ percentComplete: number;
188
+ resourceAssignments: {
189
+ resourceId: string;
190
+ units: number;
191
+ startDate?: string | undefined;
192
+ endDate?: string | undefined;
193
+ }[];
194
+ linkedTaskIds: string[];
195
+ hasChildren: boolean;
196
+ description?: string | undefined;
197
+ notes?: string | undefined;
198
+ assignedToId?: string | undefined;
199
+ parentId?: string | undefined;
200
+ actualStartDate?: string | undefined;
201
+ actualEndDate?: string | undefined;
202
+ baselineStartDate?: string | undefined;
203
+ baselineEndDate?: string | undefined;
204
+ baselineDuration?: number | undefined;
205
+ earlyStart?: string | undefined;
206
+ earlyFinish?: string | undefined;
207
+ lateStart?: string | undefined;
208
+ lateFinish?: string | undefined;
209
+ totalFloat?: number | undefined;
210
+ freeFloat?: number | undefined;
211
+ }, {
212
+ id: string;
213
+ createdAt: string;
214
+ updatedAt: string;
215
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
216
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
217
+ projectId: string;
218
+ name: string;
219
+ createdById: string;
220
+ duration: number;
221
+ plannedStartDate: string;
222
+ plannedEndDate: string;
223
+ description?: string | undefined;
224
+ notes?: string | undefined;
225
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
226
+ tags?: string[] | undefined;
227
+ assignedToId?: string | undefined;
228
+ order?: number | undefined;
229
+ dependencies?: {
230
+ id: string;
231
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
232
+ predecessorId: string;
233
+ successorId: string;
234
+ description?: string | undefined;
235
+ lag?: number | undefined;
236
+ }[] | undefined;
237
+ level?: number | undefined;
238
+ isCritical?: boolean | undefined;
239
+ parentId?: string | undefined;
240
+ actualStartDate?: string | undefined;
241
+ actualEndDate?: string | undefined;
242
+ workDays?: number[] | undefined;
243
+ percentComplete?: number | undefined;
244
+ baselineStartDate?: string | undefined;
245
+ baselineEndDate?: string | undefined;
246
+ baselineDuration?: number | undefined;
247
+ earlyStart?: string | undefined;
248
+ earlyFinish?: string | undefined;
249
+ lateStart?: string | undefined;
250
+ lateFinish?: string | undefined;
251
+ totalFloat?: number | undefined;
252
+ freeFloat?: number | undefined;
253
+ resourceAssignments?: {
254
+ resourceId: string;
255
+ units: number;
256
+ startDate?: string | undefined;
257
+ endDate?: string | undefined;
258
+ }[] | undefined;
259
+ linkedTaskIds?: string[] | undefined;
260
+ hasChildren?: boolean | undefined;
261
+ }>;
262
+ export declare const CreateScheduleItemSchema: z.ZodObject<{
263
+ parentId: z.ZodOptional<z.ZodString>;
264
+ name: z.ZodString;
265
+ description: z.ZodOptional<z.ZodString>;
266
+ type: z.ZodEnum<["TASK", "MILESTONE", "PHASE", "SUMMARY"]>;
267
+ priority: z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>>;
268
+ plannedStartDate: z.ZodString;
269
+ plannedEndDate: z.ZodString;
270
+ duration: z.ZodNumber;
271
+ workDays: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
272
+ assignedToId: z.ZodOptional<z.ZodString>;
273
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<Omit<{
274
+ id: z.ZodString;
275
+ predecessorId: z.ZodString;
276
+ successorId: z.ZodString;
277
+ type: z.ZodEnum<["FINISH_TO_START", "START_TO_START", "FINISH_TO_FINISH", "START_TO_FINISH"]>;
278
+ lag: z.ZodDefault<z.ZodNumber>;
279
+ description: z.ZodOptional<z.ZodString>;
280
+ }, "id">, "strip", z.ZodTypeAny, {
281
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
282
+ predecessorId: string;
283
+ successorId: string;
284
+ lag: number;
285
+ description?: string | undefined;
286
+ }, {
287
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
288
+ predecessorId: string;
289
+ successorId: string;
290
+ description?: string | undefined;
291
+ lag?: number | undefined;
292
+ }>, "many">>;
293
+ resourceAssignments: z.ZodDefault<z.ZodArray<z.ZodObject<{
294
+ resourceId: z.ZodString;
295
+ units: z.ZodNumber;
296
+ startDate: z.ZodOptional<z.ZodString>;
297
+ endDate: z.ZodOptional<z.ZodString>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ resourceId: string;
300
+ units: number;
301
+ startDate?: string | undefined;
302
+ endDate?: string | undefined;
303
+ }, {
304
+ resourceId: string;
305
+ units: number;
306
+ startDate?: string | undefined;
307
+ endDate?: string | undefined;
308
+ }>, "many">>;
309
+ linkedTaskIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
310
+ notes: z.ZodOptional<z.ZodString>;
311
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
312
+ }, "strip", z.ZodTypeAny, {
313
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
314
+ name: string;
315
+ priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
316
+ tags: string[];
317
+ duration: number;
318
+ dependencies: {
319
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
320
+ predecessorId: string;
321
+ successorId: string;
322
+ lag: number;
323
+ description?: string | undefined;
324
+ }[];
325
+ plannedStartDate: string;
326
+ plannedEndDate: string;
327
+ workDays: number[];
328
+ resourceAssignments: {
329
+ resourceId: string;
330
+ units: number;
331
+ startDate?: string | undefined;
332
+ endDate?: string | undefined;
333
+ }[];
334
+ linkedTaskIds: string[];
335
+ description?: string | undefined;
336
+ notes?: string | undefined;
337
+ assignedToId?: string | undefined;
338
+ parentId?: string | undefined;
339
+ }, {
340
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
341
+ name: string;
342
+ duration: number;
343
+ plannedStartDate: string;
344
+ plannedEndDate: string;
345
+ description?: string | undefined;
346
+ notes?: string | undefined;
347
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
348
+ tags?: string[] | undefined;
349
+ assignedToId?: string | undefined;
350
+ dependencies?: {
351
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
352
+ predecessorId: string;
353
+ successorId: string;
354
+ description?: string | undefined;
355
+ lag?: number | undefined;
356
+ }[] | undefined;
357
+ parentId?: string | undefined;
358
+ workDays?: number[] | undefined;
359
+ resourceAssignments?: {
360
+ resourceId: string;
361
+ units: number;
362
+ startDate?: string | undefined;
363
+ endDate?: string | undefined;
364
+ }[] | undefined;
365
+ linkedTaskIds?: string[] | undefined;
366
+ }>;
367
+ export declare const UpdateScheduleItemSchema: z.ZodObject<{
368
+ name: z.ZodOptional<z.ZodString>;
369
+ description: z.ZodOptional<z.ZodString>;
370
+ status: z.ZodOptional<z.ZodEnum<["NOT_STARTED", "IN_PROGRESS", "COMPLETED", "ON_HOLD", "CANCELLED", "DELAYED"]>>;
371
+ priority: z.ZodOptional<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>>;
372
+ plannedStartDate: z.ZodOptional<z.ZodString>;
373
+ plannedEndDate: z.ZodOptional<z.ZodString>;
374
+ actualStartDate: z.ZodOptional<z.ZodString>;
375
+ actualEndDate: z.ZodOptional<z.ZodString>;
376
+ duration: z.ZodOptional<z.ZodNumber>;
377
+ percentComplete: z.ZodOptional<z.ZodNumber>;
378
+ assignedToId: z.ZodOptional<z.ZodString>;
379
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
380
+ id: z.ZodString;
381
+ predecessorId: z.ZodString;
382
+ successorId: z.ZodString;
383
+ type: z.ZodEnum<["FINISH_TO_START", "START_TO_START", "FINISH_TO_FINISH", "START_TO_FINISH"]>;
384
+ lag: z.ZodDefault<z.ZodNumber>;
385
+ description: z.ZodOptional<z.ZodString>;
386
+ }, "strip", z.ZodTypeAny, {
387
+ id: string;
388
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
389
+ predecessorId: string;
390
+ successorId: string;
391
+ lag: number;
392
+ description?: string | undefined;
393
+ }, {
394
+ id: string;
395
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
396
+ predecessorId: string;
397
+ successorId: string;
398
+ description?: string | undefined;
399
+ lag?: number | undefined;
400
+ }>, "many">>;
401
+ resourceAssignments: z.ZodOptional<z.ZodArray<z.ZodObject<{
402
+ resourceId: z.ZodString;
403
+ units: z.ZodNumber;
404
+ startDate: z.ZodOptional<z.ZodString>;
405
+ endDate: z.ZodOptional<z.ZodString>;
406
+ }, "strip", z.ZodTypeAny, {
407
+ resourceId: string;
408
+ units: number;
409
+ startDate?: string | undefined;
410
+ endDate?: string | undefined;
411
+ }, {
412
+ resourceId: string;
413
+ units: number;
414
+ startDate?: string | undefined;
415
+ endDate?: string | undefined;
416
+ }>, "many">>;
417
+ linkedTaskIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
418
+ notes: z.ZodOptional<z.ZodString>;
419
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
420
+ }, "strip", z.ZodTypeAny, {
421
+ status?: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED" | undefined;
422
+ name?: string | undefined;
423
+ description?: string | undefined;
424
+ notes?: string | undefined;
425
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
426
+ tags?: string[] | undefined;
427
+ assignedToId?: string | undefined;
428
+ duration?: number | undefined;
429
+ dependencies?: {
430
+ id: string;
431
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
432
+ predecessorId: string;
433
+ successorId: string;
434
+ lag: number;
435
+ description?: string | undefined;
436
+ }[] | undefined;
437
+ plannedStartDate?: string | undefined;
438
+ plannedEndDate?: string | undefined;
439
+ actualStartDate?: string | undefined;
440
+ actualEndDate?: string | undefined;
441
+ percentComplete?: number | undefined;
442
+ resourceAssignments?: {
443
+ resourceId: string;
444
+ units: number;
445
+ startDate?: string | undefined;
446
+ endDate?: string | undefined;
447
+ }[] | undefined;
448
+ linkedTaskIds?: string[] | undefined;
449
+ }, {
450
+ status?: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED" | undefined;
451
+ name?: string | undefined;
452
+ description?: string | undefined;
453
+ notes?: string | undefined;
454
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
455
+ tags?: string[] | undefined;
456
+ assignedToId?: string | undefined;
457
+ duration?: number | undefined;
458
+ dependencies?: {
459
+ id: string;
460
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
461
+ predecessorId: string;
462
+ successorId: string;
463
+ description?: string | undefined;
464
+ lag?: number | undefined;
465
+ }[] | undefined;
466
+ plannedStartDate?: string | undefined;
467
+ plannedEndDate?: string | undefined;
468
+ actualStartDate?: string | undefined;
469
+ actualEndDate?: string | undefined;
470
+ percentComplete?: number | undefined;
471
+ resourceAssignments?: {
472
+ resourceId: string;
473
+ units: number;
474
+ startDate?: string | undefined;
475
+ endDate?: string | undefined;
476
+ }[] | undefined;
477
+ linkedTaskIds?: string[] | undefined;
478
+ }>;
479
+ export declare const ScheduleFiltersSchema: z.ZodObject<{
480
+ page: z.ZodDefault<z.ZodNumber>;
481
+ limit: z.ZodDefault<z.ZodNumber>;
482
+ } & {
483
+ status: z.ZodOptional<z.ZodEnum<["NOT_STARTED", "IN_PROGRESS", "COMPLETED", "ON_HOLD", "CANCELLED", "DELAYED"]>>;
484
+ type: z.ZodOptional<z.ZodEnum<["TASK", "MILESTONE", "PHASE", "SUMMARY"]>>;
485
+ priority: z.ZodOptional<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>>;
486
+ assignedTo: z.ZodOptional<z.ZodString>;
487
+ startDateFrom: z.ZodOptional<z.ZodString>;
488
+ startDateTo: z.ZodOptional<z.ZodString>;
489
+ endDateFrom: z.ZodOptional<z.ZodString>;
490
+ endDateTo: z.ZodOptional<z.ZodString>;
491
+ isCritical: z.ZodOptional<z.ZodBoolean>;
492
+ isOverdue: z.ZodOptional<z.ZodBoolean>;
493
+ hasResources: z.ZodOptional<z.ZodBoolean>;
494
+ parentId: z.ZodOptional<z.ZodString>;
495
+ search: z.ZodOptional<z.ZodString>;
496
+ tags: z.ZodOptional<z.ZodString>;
497
+ }, "strip", z.ZodTypeAny, {
498
+ page: number;
499
+ limit: number;
500
+ type?: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY" | undefined;
501
+ status?: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED" | undefined;
502
+ search?: string | undefined;
503
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
504
+ assignedTo?: string | undefined;
505
+ tags?: string | undefined;
506
+ isOverdue?: boolean | undefined;
507
+ startDateFrom?: string | undefined;
508
+ startDateTo?: string | undefined;
509
+ isCritical?: boolean | undefined;
510
+ parentId?: string | undefined;
511
+ endDateFrom?: string | undefined;
512
+ endDateTo?: string | undefined;
513
+ hasResources?: boolean | undefined;
514
+ }, {
515
+ type?: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY" | undefined;
516
+ status?: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED" | undefined;
517
+ page?: number | undefined;
518
+ limit?: number | undefined;
519
+ search?: string | undefined;
520
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
521
+ assignedTo?: string | undefined;
522
+ tags?: string | undefined;
523
+ isOverdue?: boolean | undefined;
524
+ startDateFrom?: string | undefined;
525
+ startDateTo?: string | undefined;
526
+ isCritical?: boolean | undefined;
527
+ parentId?: string | undefined;
528
+ endDateFrom?: string | undefined;
529
+ endDateTo?: string | undefined;
530
+ hasResources?: boolean | undefined;
531
+ }>;
532
+ export declare const CreateScheduleResourceSchema: z.ZodObject<{
533
+ name: z.ZodString;
534
+ type: z.ZodEnum<["LABOR", "EQUIPMENT", "MATERIAL", "SUBCONTRACTOR"]>;
535
+ capacity: z.ZodNumber;
536
+ cost: z.ZodOptional<z.ZodNumber>;
537
+ }, "strip", z.ZodTypeAny, {
538
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
539
+ name: string;
540
+ capacity: number;
541
+ cost?: number | undefined;
542
+ }, {
543
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
544
+ name: string;
545
+ capacity: number;
546
+ cost?: number | undefined;
547
+ }>;
548
+ export declare const UpdateScheduleResourceSchema: z.ZodObject<{
549
+ name: z.ZodOptional<z.ZodString>;
550
+ capacity: z.ZodOptional<z.ZodNumber>;
551
+ cost: z.ZodOptional<z.ZodNumber>;
552
+ availability: z.ZodOptional<z.ZodArray<z.ZodObject<{
553
+ startDate: z.ZodString;
554
+ endDate: z.ZodString;
555
+ capacity: z.ZodNumber;
556
+ }, "strip", z.ZodTypeAny, {
557
+ startDate: string;
558
+ endDate: string;
559
+ capacity: number;
560
+ }, {
561
+ startDate: string;
562
+ endDate: string;
563
+ capacity: number;
564
+ }>, "many">>;
565
+ }, "strip", z.ZodTypeAny, {
566
+ name?: string | undefined;
567
+ cost?: number | undefined;
568
+ availability?: {
569
+ startDate: string;
570
+ endDate: string;
571
+ capacity: number;
572
+ }[] | undefined;
573
+ capacity?: number | undefined;
574
+ }, {
575
+ name?: string | undefined;
576
+ cost?: number | undefined;
577
+ availability?: {
578
+ startDate: string;
579
+ endDate: string;
580
+ capacity: number;
581
+ }[] | undefined;
582
+ capacity?: number | undefined;
583
+ }>;
584
+ export declare const GanttChartItemSchema: z.ZodObject<{
585
+ id: z.ZodString;
586
+ name: z.ZodString;
587
+ type: z.ZodEnum<["TASK", "MILESTONE", "PHASE", "SUMMARY"]>;
588
+ status: z.ZodEnum<["NOT_STARTED", "IN_PROGRESS", "COMPLETED", "ON_HOLD", "CANCELLED", "DELAYED"]>;
589
+ startDate: z.ZodString;
590
+ endDate: z.ZodString;
591
+ duration: z.ZodNumber;
592
+ percentComplete: z.ZodNumber;
593
+ isCritical: z.ZodBoolean;
594
+ level: z.ZodNumber;
595
+ parentId: z.ZodOptional<z.ZodString>;
596
+ dependencies: z.ZodArray<z.ZodObject<{
597
+ id: z.ZodString;
598
+ type: z.ZodEnum<["FINISH_TO_START", "START_TO_START", "FINISH_TO_FINISH", "START_TO_FINISH"]>;
599
+ predecessorId: z.ZodString;
600
+ lag: z.ZodNumber;
601
+ }, "strip", z.ZodTypeAny, {
602
+ id: string;
603
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
604
+ predecessorId: string;
605
+ lag: number;
606
+ }, {
607
+ id: string;
608
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
609
+ predecessorId: string;
610
+ lag: number;
611
+ }>, "many">;
612
+ resources: z.ZodArray<z.ZodObject<{
613
+ id: z.ZodString;
614
+ name: z.ZodString;
615
+ type: z.ZodEnum<["LABOR", "EQUIPMENT", "MATERIAL", "SUBCONTRACTOR"]>;
616
+ units: z.ZodNumber;
617
+ }, "strip", z.ZodTypeAny, {
618
+ id: string;
619
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
620
+ name: string;
621
+ units: number;
622
+ }, {
623
+ id: string;
624
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
625
+ name: string;
626
+ units: number;
627
+ }>, "many">;
628
+ assignee: z.ZodOptional<z.ZodObject<{
629
+ id: z.ZodString;
630
+ name: z.ZodString;
631
+ email: z.ZodString;
632
+ }, "strip", z.ZodTypeAny, {
633
+ id: string;
634
+ name: string;
635
+ email: string;
636
+ }, {
637
+ id: string;
638
+ name: string;
639
+ email: string;
640
+ }>>;
641
+ }, "strip", z.ZodTypeAny, {
642
+ id: string;
643
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
644
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
645
+ name: string;
646
+ startDate: string;
647
+ endDate: string;
648
+ duration: number;
649
+ dependencies: {
650
+ id: string;
651
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
652
+ predecessorId: string;
653
+ lag: number;
654
+ }[];
655
+ level: number;
656
+ isCritical: boolean;
657
+ resources: {
658
+ id: string;
659
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
660
+ name: string;
661
+ units: number;
662
+ }[];
663
+ percentComplete: number;
664
+ assignee?: {
665
+ id: string;
666
+ name: string;
667
+ email: string;
668
+ } | undefined;
669
+ parentId?: string | undefined;
670
+ }, {
671
+ id: string;
672
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
673
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
674
+ name: string;
675
+ startDate: string;
676
+ endDate: string;
677
+ duration: number;
678
+ dependencies: {
679
+ id: string;
680
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
681
+ predecessorId: string;
682
+ lag: number;
683
+ }[];
684
+ level: number;
685
+ isCritical: boolean;
686
+ resources: {
687
+ id: string;
688
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
689
+ name: string;
690
+ units: number;
691
+ }[];
692
+ percentComplete: number;
693
+ assignee?: {
694
+ id: string;
695
+ name: string;
696
+ email: string;
697
+ } | undefined;
698
+ parentId?: string | undefined;
699
+ }>;
700
+ export declare const GanttChartSchema: z.ZodObject<{
701
+ projectId: z.ZodString;
702
+ items: z.ZodArray<z.ZodObject<{
703
+ id: z.ZodString;
704
+ name: z.ZodString;
705
+ type: z.ZodEnum<["TASK", "MILESTONE", "PHASE", "SUMMARY"]>;
706
+ status: z.ZodEnum<["NOT_STARTED", "IN_PROGRESS", "COMPLETED", "ON_HOLD", "CANCELLED", "DELAYED"]>;
707
+ startDate: z.ZodString;
708
+ endDate: z.ZodString;
709
+ duration: z.ZodNumber;
710
+ percentComplete: z.ZodNumber;
711
+ isCritical: z.ZodBoolean;
712
+ level: z.ZodNumber;
713
+ parentId: z.ZodOptional<z.ZodString>;
714
+ dependencies: z.ZodArray<z.ZodObject<{
715
+ id: z.ZodString;
716
+ type: z.ZodEnum<["FINISH_TO_START", "START_TO_START", "FINISH_TO_FINISH", "START_TO_FINISH"]>;
717
+ predecessorId: z.ZodString;
718
+ lag: z.ZodNumber;
719
+ }, "strip", z.ZodTypeAny, {
720
+ id: string;
721
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
722
+ predecessorId: string;
723
+ lag: number;
724
+ }, {
725
+ id: string;
726
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
727
+ predecessorId: string;
728
+ lag: number;
729
+ }>, "many">;
730
+ resources: z.ZodArray<z.ZodObject<{
731
+ id: z.ZodString;
732
+ name: z.ZodString;
733
+ type: z.ZodEnum<["LABOR", "EQUIPMENT", "MATERIAL", "SUBCONTRACTOR"]>;
734
+ units: z.ZodNumber;
735
+ }, "strip", z.ZodTypeAny, {
736
+ id: string;
737
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
738
+ name: string;
739
+ units: number;
740
+ }, {
741
+ id: string;
742
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
743
+ name: string;
744
+ units: number;
745
+ }>, "many">;
746
+ assignee: z.ZodOptional<z.ZodObject<{
747
+ id: z.ZodString;
748
+ name: z.ZodString;
749
+ email: z.ZodString;
750
+ }, "strip", z.ZodTypeAny, {
751
+ id: string;
752
+ name: string;
753
+ email: string;
754
+ }, {
755
+ id: string;
756
+ name: string;
757
+ email: string;
758
+ }>>;
759
+ }, "strip", z.ZodTypeAny, {
760
+ id: string;
761
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
762
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
763
+ name: string;
764
+ startDate: string;
765
+ endDate: string;
766
+ duration: number;
767
+ dependencies: {
768
+ id: string;
769
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
770
+ predecessorId: string;
771
+ lag: number;
772
+ }[];
773
+ level: number;
774
+ isCritical: boolean;
775
+ resources: {
776
+ id: string;
777
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
778
+ name: string;
779
+ units: number;
780
+ }[];
781
+ percentComplete: number;
782
+ assignee?: {
783
+ id: string;
784
+ name: string;
785
+ email: string;
786
+ } | undefined;
787
+ parentId?: string | undefined;
788
+ }, {
789
+ id: string;
790
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
791
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
792
+ name: string;
793
+ startDate: string;
794
+ endDate: string;
795
+ duration: number;
796
+ dependencies: {
797
+ id: string;
798
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
799
+ predecessorId: string;
800
+ lag: number;
801
+ }[];
802
+ level: number;
803
+ isCritical: boolean;
804
+ resources: {
805
+ id: string;
806
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
807
+ name: string;
808
+ units: number;
809
+ }[];
810
+ percentComplete: number;
811
+ assignee?: {
812
+ id: string;
813
+ name: string;
814
+ email: string;
815
+ } | undefined;
816
+ parentId?: string | undefined;
817
+ }>, "many">;
818
+ timeScale: z.ZodDefault<z.ZodEnum<["DAY", "WEEK", "MONTH"]>>;
819
+ startDate: z.ZodString;
820
+ endDate: z.ZodString;
821
+ criticalPath: z.ZodArray<z.ZodString, "many">;
822
+ milestones: z.ZodArray<z.ZodObject<{
823
+ id: z.ZodString;
824
+ name: z.ZodString;
825
+ date: z.ZodString;
826
+ status: z.ZodEnum<["UPCOMING", "ON_TRACK", "DELAYED", "COMPLETED"]>;
827
+ }, "strip", z.ZodTypeAny, {
828
+ id: string;
829
+ status: "COMPLETED" | "DELAYED" | "UPCOMING" | "ON_TRACK";
830
+ date: string;
831
+ name: string;
832
+ }, {
833
+ id: string;
834
+ status: "COMPLETED" | "DELAYED" | "UPCOMING" | "ON_TRACK";
835
+ date: string;
836
+ name: string;
837
+ }>, "many">;
838
+ generatedAt: z.ZodString;
839
+ }, "strip", z.ZodTypeAny, {
840
+ projectId: string;
841
+ items: {
842
+ id: string;
843
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
844
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
845
+ name: string;
846
+ startDate: string;
847
+ endDate: string;
848
+ duration: number;
849
+ dependencies: {
850
+ id: string;
851
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
852
+ predecessorId: string;
853
+ lag: number;
854
+ }[];
855
+ level: number;
856
+ isCritical: boolean;
857
+ resources: {
858
+ id: string;
859
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
860
+ name: string;
861
+ units: number;
862
+ }[];
863
+ percentComplete: number;
864
+ assignee?: {
865
+ id: string;
866
+ name: string;
867
+ email: string;
868
+ } | undefined;
869
+ parentId?: string | undefined;
870
+ }[];
871
+ startDate: string;
872
+ endDate: string;
873
+ generatedAt: string;
874
+ criticalPath: string[];
875
+ milestones: {
876
+ id: string;
877
+ status: "COMPLETED" | "DELAYED" | "UPCOMING" | "ON_TRACK";
878
+ date: string;
879
+ name: string;
880
+ }[];
881
+ timeScale: "MONTH" | "DAY" | "WEEK";
882
+ }, {
883
+ projectId: string;
884
+ items: {
885
+ id: string;
886
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
887
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
888
+ name: string;
889
+ startDate: string;
890
+ endDate: string;
891
+ duration: number;
892
+ dependencies: {
893
+ id: string;
894
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
895
+ predecessorId: string;
896
+ lag: number;
897
+ }[];
898
+ level: number;
899
+ isCritical: boolean;
900
+ resources: {
901
+ id: string;
902
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
903
+ name: string;
904
+ units: number;
905
+ }[];
906
+ percentComplete: number;
907
+ assignee?: {
908
+ id: string;
909
+ name: string;
910
+ email: string;
911
+ } | undefined;
912
+ parentId?: string | undefined;
913
+ }[];
914
+ startDate: string;
915
+ endDate: string;
916
+ generatedAt: string;
917
+ criticalPath: string[];
918
+ milestones: {
919
+ id: string;
920
+ status: "COMPLETED" | "DELAYED" | "UPCOMING" | "ON_TRACK";
921
+ date: string;
922
+ name: string;
923
+ }[];
924
+ timeScale?: "MONTH" | "DAY" | "WEEK" | undefined;
925
+ }>;
926
+ export declare const GanttChartQuerySchema: z.ZodObject<{
927
+ timeScale: z.ZodDefault<z.ZodEnum<["DAY", "WEEK", "MONTH"]>>;
928
+ startDate: z.ZodOptional<z.ZodString>;
929
+ endDate: z.ZodOptional<z.ZodString>;
930
+ includeCompleted: z.ZodDefault<z.ZodBoolean>;
931
+ maxLevel: z.ZodOptional<z.ZodNumber>;
932
+ }, "strip", z.ZodTypeAny, {
933
+ includeCompleted: boolean;
934
+ timeScale: "MONTH" | "DAY" | "WEEK";
935
+ startDate?: string | undefined;
936
+ endDate?: string | undefined;
937
+ maxLevel?: number | undefined;
938
+ }, {
939
+ startDate?: string | undefined;
940
+ endDate?: string | undefined;
941
+ includeCompleted?: boolean | undefined;
942
+ timeScale?: "MONTH" | "DAY" | "WEEK" | undefined;
943
+ maxLevel?: number | undefined;
944
+ }>;
945
+ export declare const CriticalPathAnalysisSchema: z.ZodObject<{
946
+ projectId: z.ZodString;
947
+ criticalPath: z.ZodArray<z.ZodObject<{
948
+ itemId: z.ZodString;
949
+ name: z.ZodString;
950
+ startDate: z.ZodString;
951
+ endDate: z.ZodString;
952
+ duration: z.ZodNumber;
953
+ totalFloat: z.ZodNumber;
954
+ order: z.ZodNumber;
955
+ }, "strip", z.ZodTypeAny, {
956
+ name: string;
957
+ itemId: string;
958
+ startDate: string;
959
+ endDate: string;
960
+ order: number;
961
+ duration: number;
962
+ totalFloat: number;
963
+ }, {
964
+ name: string;
965
+ itemId: string;
966
+ startDate: string;
967
+ endDate: string;
968
+ order: number;
969
+ duration: number;
970
+ totalFloat: number;
971
+ }>, "many">;
972
+ projectDuration: z.ZodNumber;
973
+ projectStartDate: z.ZodString;
974
+ projectEndDate: z.ZodString;
975
+ nearCriticalItems: z.ZodArray<z.ZodObject<{
976
+ itemId: z.ZodString;
977
+ name: z.ZodString;
978
+ totalFloat: z.ZodNumber;
979
+ riskLevel: z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>;
980
+ }, "strip", z.ZodTypeAny, {
981
+ name: string;
982
+ itemId: string;
983
+ riskLevel: "LOW" | "MEDIUM" | "HIGH";
984
+ totalFloat: number;
985
+ }, {
986
+ name: string;
987
+ itemId: string;
988
+ riskLevel: "LOW" | "MEDIUM" | "HIGH";
989
+ totalFloat: number;
990
+ }>, "many">;
991
+ analysisDate: z.ZodString;
992
+ }, "strip", z.ZodTypeAny, {
993
+ projectId: string;
994
+ criticalPath: {
995
+ name: string;
996
+ itemId: string;
997
+ startDate: string;
998
+ endDate: string;
999
+ order: number;
1000
+ duration: number;
1001
+ totalFloat: number;
1002
+ }[];
1003
+ projectDuration: number;
1004
+ projectStartDate: string;
1005
+ projectEndDate: string;
1006
+ nearCriticalItems: {
1007
+ name: string;
1008
+ itemId: string;
1009
+ riskLevel: "LOW" | "MEDIUM" | "HIGH";
1010
+ totalFloat: number;
1011
+ }[];
1012
+ analysisDate: string;
1013
+ }, {
1014
+ projectId: string;
1015
+ criticalPath: {
1016
+ name: string;
1017
+ itemId: string;
1018
+ startDate: string;
1019
+ endDate: string;
1020
+ order: number;
1021
+ duration: number;
1022
+ totalFloat: number;
1023
+ }[];
1024
+ projectDuration: number;
1025
+ projectStartDate: string;
1026
+ projectEndDate: string;
1027
+ nearCriticalItems: {
1028
+ name: string;
1029
+ itemId: string;
1030
+ riskLevel: "LOW" | "MEDIUM" | "HIGH";
1031
+ totalFloat: number;
1032
+ }[];
1033
+ analysisDate: string;
1034
+ }>;
1035
+ export declare const ResourceUtilizationSchema: z.ZodObject<{
1036
+ resourceId: z.ZodString;
1037
+ resourceName: z.ZodString;
1038
+ resourceType: z.ZodEnum<["LABOR", "EQUIPMENT", "MATERIAL", "SUBCONTRACTOR"]>;
1039
+ totalCapacity: z.ZodNumber;
1040
+ allocatedCapacity: z.ZodNumber;
1041
+ utilizationPercentage: z.ZodNumber;
1042
+ overallocation: z.ZodNumber;
1043
+ assignments: z.ZodArray<z.ZodObject<{
1044
+ itemId: z.ZodString;
1045
+ itemName: z.ZodString;
1046
+ startDate: z.ZodString;
1047
+ endDate: z.ZodString;
1048
+ units: z.ZodNumber;
1049
+ }, "strip", z.ZodTypeAny, {
1050
+ itemId: string;
1051
+ startDate: string;
1052
+ endDate: string;
1053
+ units: number;
1054
+ itemName: string;
1055
+ }, {
1056
+ itemId: string;
1057
+ startDate: string;
1058
+ endDate: string;
1059
+ units: number;
1060
+ itemName: string;
1061
+ }>, "many">;
1062
+ }, "strip", z.ZodTypeAny, {
1063
+ utilizationPercentage: number;
1064
+ resourceType: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
1065
+ resourceId: string;
1066
+ resourceName: string;
1067
+ assignments: {
1068
+ itemId: string;
1069
+ startDate: string;
1070
+ endDate: string;
1071
+ units: number;
1072
+ itemName: string;
1073
+ }[];
1074
+ totalCapacity: number;
1075
+ allocatedCapacity: number;
1076
+ overallocation: number;
1077
+ }, {
1078
+ utilizationPercentage: number;
1079
+ resourceType: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
1080
+ resourceId: string;
1081
+ resourceName: string;
1082
+ assignments: {
1083
+ itemId: string;
1084
+ startDate: string;
1085
+ endDate: string;
1086
+ units: number;
1087
+ itemName: string;
1088
+ }[];
1089
+ totalCapacity: number;
1090
+ allocatedCapacity: number;
1091
+ overallocation: number;
1092
+ }>;
1093
+ export declare const ResourceLevelingSchema: z.ZodObject<{
1094
+ projectId: z.ZodString;
1095
+ conflicts: z.ZodArray<z.ZodObject<{
1096
+ resourceId: z.ZodString;
1097
+ resourceName: z.ZodString;
1098
+ conflictDate: z.ZodString;
1099
+ requiredCapacity: z.ZodNumber;
1100
+ availableCapacity: z.ZodNumber;
1101
+ overallocation: z.ZodNumber;
1102
+ affectedItems: z.ZodArray<z.ZodString, "many">;
1103
+ }, "strip", z.ZodTypeAny, {
1104
+ resourceId: string;
1105
+ resourceName: string;
1106
+ overallocation: number;
1107
+ conflictDate: string;
1108
+ requiredCapacity: number;
1109
+ availableCapacity: number;
1110
+ affectedItems: string[];
1111
+ }, {
1112
+ resourceId: string;
1113
+ resourceName: string;
1114
+ overallocation: number;
1115
+ conflictDate: string;
1116
+ requiredCapacity: number;
1117
+ availableCapacity: number;
1118
+ affectedItems: string[];
1119
+ }>, "many">;
1120
+ suggestions: z.ZodArray<z.ZodObject<{
1121
+ type: z.ZodEnum<["DELAY_TASK", "REDUCE_ALLOCATION", "ADD_RESOURCE", "SPLIT_TASK"]>;
1122
+ itemId: z.ZodString;
1123
+ description: z.ZodString;
1124
+ impact: z.ZodString;
1125
+ }, "strip", z.ZodTypeAny, {
1126
+ type: "DELAY_TASK" | "REDUCE_ALLOCATION" | "ADD_RESOURCE" | "SPLIT_TASK";
1127
+ description: string;
1128
+ itemId: string;
1129
+ impact: string;
1130
+ }, {
1131
+ type: "DELAY_TASK" | "REDUCE_ALLOCATION" | "ADD_RESOURCE" | "SPLIT_TASK";
1132
+ description: string;
1133
+ itemId: string;
1134
+ impact: string;
1135
+ }>, "many">;
1136
+ leveledSchedule: z.ZodOptional<z.ZodArray<z.ZodObject<{
1137
+ id: z.ZodString;
1138
+ name: z.ZodString;
1139
+ type: z.ZodEnum<["TASK", "MILESTONE", "PHASE", "SUMMARY"]>;
1140
+ status: z.ZodEnum<["NOT_STARTED", "IN_PROGRESS", "COMPLETED", "ON_HOLD", "CANCELLED", "DELAYED"]>;
1141
+ startDate: z.ZodString;
1142
+ endDate: z.ZodString;
1143
+ duration: z.ZodNumber;
1144
+ percentComplete: z.ZodNumber;
1145
+ isCritical: z.ZodBoolean;
1146
+ level: z.ZodNumber;
1147
+ parentId: z.ZodOptional<z.ZodString>;
1148
+ dependencies: z.ZodArray<z.ZodObject<{
1149
+ id: z.ZodString;
1150
+ type: z.ZodEnum<["FINISH_TO_START", "START_TO_START", "FINISH_TO_FINISH", "START_TO_FINISH"]>;
1151
+ predecessorId: z.ZodString;
1152
+ lag: z.ZodNumber;
1153
+ }, "strip", z.ZodTypeAny, {
1154
+ id: string;
1155
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
1156
+ predecessorId: string;
1157
+ lag: number;
1158
+ }, {
1159
+ id: string;
1160
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
1161
+ predecessorId: string;
1162
+ lag: number;
1163
+ }>, "many">;
1164
+ resources: z.ZodArray<z.ZodObject<{
1165
+ id: z.ZodString;
1166
+ name: z.ZodString;
1167
+ type: z.ZodEnum<["LABOR", "EQUIPMENT", "MATERIAL", "SUBCONTRACTOR"]>;
1168
+ units: z.ZodNumber;
1169
+ }, "strip", z.ZodTypeAny, {
1170
+ id: string;
1171
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
1172
+ name: string;
1173
+ units: number;
1174
+ }, {
1175
+ id: string;
1176
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
1177
+ name: string;
1178
+ units: number;
1179
+ }>, "many">;
1180
+ assignee: z.ZodOptional<z.ZodObject<{
1181
+ id: z.ZodString;
1182
+ name: z.ZodString;
1183
+ email: z.ZodString;
1184
+ }, "strip", z.ZodTypeAny, {
1185
+ id: string;
1186
+ name: string;
1187
+ email: string;
1188
+ }, {
1189
+ id: string;
1190
+ name: string;
1191
+ email: string;
1192
+ }>>;
1193
+ }, "strip", z.ZodTypeAny, {
1194
+ id: string;
1195
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
1196
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
1197
+ name: string;
1198
+ startDate: string;
1199
+ endDate: string;
1200
+ duration: number;
1201
+ dependencies: {
1202
+ id: string;
1203
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
1204
+ predecessorId: string;
1205
+ lag: number;
1206
+ }[];
1207
+ level: number;
1208
+ isCritical: boolean;
1209
+ resources: {
1210
+ id: string;
1211
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
1212
+ name: string;
1213
+ units: number;
1214
+ }[];
1215
+ percentComplete: number;
1216
+ assignee?: {
1217
+ id: string;
1218
+ name: string;
1219
+ email: string;
1220
+ } | undefined;
1221
+ parentId?: string | undefined;
1222
+ }, {
1223
+ id: string;
1224
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
1225
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
1226
+ name: string;
1227
+ startDate: string;
1228
+ endDate: string;
1229
+ duration: number;
1230
+ dependencies: {
1231
+ id: string;
1232
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
1233
+ predecessorId: string;
1234
+ lag: number;
1235
+ }[];
1236
+ level: number;
1237
+ isCritical: boolean;
1238
+ resources: {
1239
+ id: string;
1240
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
1241
+ name: string;
1242
+ units: number;
1243
+ }[];
1244
+ percentComplete: number;
1245
+ assignee?: {
1246
+ id: string;
1247
+ name: string;
1248
+ email: string;
1249
+ } | undefined;
1250
+ parentId?: string | undefined;
1251
+ }>, "many">>;
1252
+ }, "strip", z.ZodTypeAny, {
1253
+ projectId: string;
1254
+ conflicts: {
1255
+ resourceId: string;
1256
+ resourceName: string;
1257
+ overallocation: number;
1258
+ conflictDate: string;
1259
+ requiredCapacity: number;
1260
+ availableCapacity: number;
1261
+ affectedItems: string[];
1262
+ }[];
1263
+ suggestions: {
1264
+ type: "DELAY_TASK" | "REDUCE_ALLOCATION" | "ADD_RESOURCE" | "SPLIT_TASK";
1265
+ description: string;
1266
+ itemId: string;
1267
+ impact: string;
1268
+ }[];
1269
+ leveledSchedule?: {
1270
+ id: string;
1271
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
1272
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
1273
+ name: string;
1274
+ startDate: string;
1275
+ endDate: string;
1276
+ duration: number;
1277
+ dependencies: {
1278
+ id: string;
1279
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
1280
+ predecessorId: string;
1281
+ lag: number;
1282
+ }[];
1283
+ level: number;
1284
+ isCritical: boolean;
1285
+ resources: {
1286
+ id: string;
1287
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
1288
+ name: string;
1289
+ units: number;
1290
+ }[];
1291
+ percentComplete: number;
1292
+ assignee?: {
1293
+ id: string;
1294
+ name: string;
1295
+ email: string;
1296
+ } | undefined;
1297
+ parentId?: string | undefined;
1298
+ }[] | undefined;
1299
+ }, {
1300
+ projectId: string;
1301
+ conflicts: {
1302
+ resourceId: string;
1303
+ resourceName: string;
1304
+ overallocation: number;
1305
+ conflictDate: string;
1306
+ requiredCapacity: number;
1307
+ availableCapacity: number;
1308
+ affectedItems: string[];
1309
+ }[];
1310
+ suggestions: {
1311
+ type: "DELAY_TASK" | "REDUCE_ALLOCATION" | "ADD_RESOURCE" | "SPLIT_TASK";
1312
+ description: string;
1313
+ itemId: string;
1314
+ impact: string;
1315
+ }[];
1316
+ leveledSchedule?: {
1317
+ id: string;
1318
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
1319
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
1320
+ name: string;
1321
+ startDate: string;
1322
+ endDate: string;
1323
+ duration: number;
1324
+ dependencies: {
1325
+ id: string;
1326
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
1327
+ predecessorId: string;
1328
+ lag: number;
1329
+ }[];
1330
+ level: number;
1331
+ isCritical: boolean;
1332
+ resources: {
1333
+ id: string;
1334
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
1335
+ name: string;
1336
+ units: number;
1337
+ }[];
1338
+ percentComplete: number;
1339
+ assignee?: {
1340
+ id: string;
1341
+ name: string;
1342
+ email: string;
1343
+ } | undefined;
1344
+ parentId?: string | undefined;
1345
+ }[] | undefined;
1346
+ }>;
1347
+ export declare const ResourceAnalyticsSchema: z.ZodObject<{
1348
+ projectId: z.ZodString;
1349
+ totalResources: z.ZodNumber;
1350
+ utilizationSummary: z.ZodObject<{
1351
+ underutilized: z.ZodNumber;
1352
+ optimal: z.ZodNumber;
1353
+ overallocated: z.ZodNumber;
1354
+ }, "strip", z.ZodTypeAny, {
1355
+ underutilized: number;
1356
+ optimal: number;
1357
+ overallocated: number;
1358
+ }, {
1359
+ underutilized: number;
1360
+ optimal: number;
1361
+ overallocated: number;
1362
+ }>;
1363
+ resourceUtilization: z.ZodArray<z.ZodObject<{
1364
+ resourceId: z.ZodString;
1365
+ resourceName: z.ZodString;
1366
+ resourceType: z.ZodEnum<["LABOR", "EQUIPMENT", "MATERIAL", "SUBCONTRACTOR"]>;
1367
+ totalCapacity: z.ZodNumber;
1368
+ allocatedCapacity: z.ZodNumber;
1369
+ utilizationPercentage: z.ZodNumber;
1370
+ overallocation: z.ZodNumber;
1371
+ assignments: z.ZodArray<z.ZodObject<{
1372
+ itemId: z.ZodString;
1373
+ itemName: z.ZodString;
1374
+ startDate: z.ZodString;
1375
+ endDate: z.ZodString;
1376
+ units: z.ZodNumber;
1377
+ }, "strip", z.ZodTypeAny, {
1378
+ itemId: string;
1379
+ startDate: string;
1380
+ endDate: string;
1381
+ units: number;
1382
+ itemName: string;
1383
+ }, {
1384
+ itemId: string;
1385
+ startDate: string;
1386
+ endDate: string;
1387
+ units: number;
1388
+ itemName: string;
1389
+ }>, "many">;
1390
+ }, "strip", z.ZodTypeAny, {
1391
+ utilizationPercentage: number;
1392
+ resourceType: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
1393
+ resourceId: string;
1394
+ resourceName: string;
1395
+ assignments: {
1396
+ itemId: string;
1397
+ startDate: string;
1398
+ endDate: string;
1399
+ units: number;
1400
+ itemName: string;
1401
+ }[];
1402
+ totalCapacity: number;
1403
+ allocatedCapacity: number;
1404
+ overallocation: number;
1405
+ }, {
1406
+ utilizationPercentage: number;
1407
+ resourceType: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
1408
+ resourceId: string;
1409
+ resourceName: string;
1410
+ assignments: {
1411
+ itemId: string;
1412
+ startDate: string;
1413
+ endDate: string;
1414
+ units: number;
1415
+ itemName: string;
1416
+ }[];
1417
+ totalCapacity: number;
1418
+ allocatedCapacity: number;
1419
+ overallocation: number;
1420
+ }>, "many">;
1421
+ peakUtilization: z.ZodObject<{
1422
+ date: z.ZodString;
1423
+ percentage: z.ZodNumber;
1424
+ criticalResources: z.ZodArray<z.ZodString, "many">;
1425
+ }, "strip", z.ZodTypeAny, {
1426
+ date: string;
1427
+ percentage: number;
1428
+ criticalResources: string[];
1429
+ }, {
1430
+ date: string;
1431
+ percentage: number;
1432
+ criticalResources: string[];
1433
+ }>;
1434
+ recommendations: z.ZodArray<z.ZodObject<{
1435
+ type: z.ZodEnum<["ADD_RESOURCE", "REDISTRIBUTE_WORK", "ADJUST_SCHEDULE"]>;
1436
+ description: z.ZodString;
1437
+ priority: z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>;
1438
+ affectedResources: z.ZodArray<z.ZodString, "many">;
1439
+ }, "strip", z.ZodTypeAny, {
1440
+ type: "ADD_RESOURCE" | "REDISTRIBUTE_WORK" | "ADJUST_SCHEDULE";
1441
+ description: string;
1442
+ priority: "LOW" | "MEDIUM" | "HIGH";
1443
+ affectedResources: string[];
1444
+ }, {
1445
+ type: "ADD_RESOURCE" | "REDISTRIBUTE_WORK" | "ADJUST_SCHEDULE";
1446
+ description: string;
1447
+ priority: "LOW" | "MEDIUM" | "HIGH";
1448
+ affectedResources: string[];
1449
+ }>, "many">;
1450
+ }, "strip", z.ZodTypeAny, {
1451
+ projectId: string;
1452
+ recommendations: {
1453
+ type: "ADD_RESOURCE" | "REDISTRIBUTE_WORK" | "ADJUST_SCHEDULE";
1454
+ description: string;
1455
+ priority: "LOW" | "MEDIUM" | "HIGH";
1456
+ affectedResources: string[];
1457
+ }[];
1458
+ totalResources: number;
1459
+ utilizationSummary: {
1460
+ underutilized: number;
1461
+ optimal: number;
1462
+ overallocated: number;
1463
+ };
1464
+ resourceUtilization: {
1465
+ utilizationPercentage: number;
1466
+ resourceType: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
1467
+ resourceId: string;
1468
+ resourceName: string;
1469
+ assignments: {
1470
+ itemId: string;
1471
+ startDate: string;
1472
+ endDate: string;
1473
+ units: number;
1474
+ itemName: string;
1475
+ }[];
1476
+ totalCapacity: number;
1477
+ allocatedCapacity: number;
1478
+ overallocation: number;
1479
+ }[];
1480
+ peakUtilization: {
1481
+ date: string;
1482
+ percentage: number;
1483
+ criticalResources: string[];
1484
+ };
1485
+ }, {
1486
+ projectId: string;
1487
+ recommendations: {
1488
+ type: "ADD_RESOURCE" | "REDISTRIBUTE_WORK" | "ADJUST_SCHEDULE";
1489
+ description: string;
1490
+ priority: "LOW" | "MEDIUM" | "HIGH";
1491
+ affectedResources: string[];
1492
+ }[];
1493
+ totalResources: number;
1494
+ utilizationSummary: {
1495
+ underutilized: number;
1496
+ optimal: number;
1497
+ overallocated: number;
1498
+ };
1499
+ resourceUtilization: {
1500
+ utilizationPercentage: number;
1501
+ resourceType: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
1502
+ resourceId: string;
1503
+ resourceName: string;
1504
+ assignments: {
1505
+ itemId: string;
1506
+ startDate: string;
1507
+ endDate: string;
1508
+ units: number;
1509
+ itemName: string;
1510
+ }[];
1511
+ totalCapacity: number;
1512
+ allocatedCapacity: number;
1513
+ overallocation: number;
1514
+ }[];
1515
+ peakUtilization: {
1516
+ date: string;
1517
+ percentage: number;
1518
+ criticalResources: string[];
1519
+ };
1520
+ }>;
1521
+ export declare const ScheduleBaselineSchema: z.ZodObject<{
1522
+ id: z.ZodString;
1523
+ projectId: z.ZodString;
1524
+ name: z.ZodString;
1525
+ description: z.ZodOptional<z.ZodString>;
1526
+ baselineDate: z.ZodString;
1527
+ isActive: z.ZodDefault<z.ZodBoolean>;
1528
+ items: z.ZodArray<z.ZodObject<{
1529
+ itemId: z.ZodString;
1530
+ startDate: z.ZodString;
1531
+ endDate: z.ZodString;
1532
+ duration: z.ZodNumber;
1533
+ }, "strip", z.ZodTypeAny, {
1534
+ itemId: string;
1535
+ startDate: string;
1536
+ endDate: string;
1537
+ duration: number;
1538
+ }, {
1539
+ itemId: string;
1540
+ startDate: string;
1541
+ endDate: string;
1542
+ duration: number;
1543
+ }>, "many">;
1544
+ createdById: z.ZodString;
1545
+ createdAt: z.ZodString;
1546
+ }, "strip", z.ZodTypeAny, {
1547
+ id: string;
1548
+ createdAt: string;
1549
+ isActive: boolean;
1550
+ projectId: string;
1551
+ name: string;
1552
+ items: {
1553
+ itemId: string;
1554
+ startDate: string;
1555
+ endDate: string;
1556
+ duration: number;
1557
+ }[];
1558
+ createdById: string;
1559
+ baselineDate: string;
1560
+ description?: string | undefined;
1561
+ }, {
1562
+ id: string;
1563
+ createdAt: string;
1564
+ projectId: string;
1565
+ name: string;
1566
+ items: {
1567
+ itemId: string;
1568
+ startDate: string;
1569
+ endDate: string;
1570
+ duration: number;
1571
+ }[];
1572
+ createdById: string;
1573
+ baselineDate: string;
1574
+ isActive?: boolean | undefined;
1575
+ description?: string | undefined;
1576
+ }>;
1577
+ export declare const CreateBaselineSchema: z.ZodObject<{
1578
+ name: z.ZodString;
1579
+ description: z.ZodOptional<z.ZodString>;
1580
+ }, "strip", z.ZodTypeAny, {
1581
+ name: string;
1582
+ description?: string | undefined;
1583
+ }, {
1584
+ name: string;
1585
+ description?: string | undefined;
1586
+ }>;
1587
+ export declare const BaselineComparisonSchema: z.ZodObject<{
1588
+ projectId: z.ZodString;
1589
+ baselineId: z.ZodString;
1590
+ baselineName: z.ZodString;
1591
+ comparison: z.ZodArray<z.ZodObject<{
1592
+ itemId: z.ZodString;
1593
+ itemName: z.ZodString;
1594
+ baseline: z.ZodObject<{
1595
+ startDate: z.ZodString;
1596
+ endDate: z.ZodString;
1597
+ duration: z.ZodNumber;
1598
+ }, "strip", z.ZodTypeAny, {
1599
+ startDate: string;
1600
+ endDate: string;
1601
+ duration: number;
1602
+ }, {
1603
+ startDate: string;
1604
+ endDate: string;
1605
+ duration: number;
1606
+ }>;
1607
+ current: z.ZodObject<{
1608
+ startDate: z.ZodString;
1609
+ endDate: z.ZodString;
1610
+ duration: z.ZodNumber;
1611
+ percentComplete: z.ZodNumber;
1612
+ }, "strip", z.ZodTypeAny, {
1613
+ startDate: string;
1614
+ endDate: string;
1615
+ duration: number;
1616
+ percentComplete: number;
1617
+ }, {
1618
+ startDate: string;
1619
+ endDate: string;
1620
+ duration: number;
1621
+ percentComplete: number;
1622
+ }>;
1623
+ variance: z.ZodObject<{
1624
+ startDateDays: z.ZodNumber;
1625
+ endDateDays: z.ZodNumber;
1626
+ durationDays: z.ZodNumber;
1627
+ }, "strip", z.ZodTypeAny, {
1628
+ startDateDays: number;
1629
+ endDateDays: number;
1630
+ durationDays: number;
1631
+ }, {
1632
+ startDateDays: number;
1633
+ endDateDays: number;
1634
+ durationDays: number;
1635
+ }>;
1636
+ status: z.ZodEnum<["ON_TRACK", "EARLY", "LATE", "CRITICAL"]>;
1637
+ }, "strip", z.ZodTypeAny, {
1638
+ status: "CRITICAL" | "ON_TRACK" | "EARLY" | "LATE";
1639
+ itemId: string;
1640
+ variance: {
1641
+ startDateDays: number;
1642
+ endDateDays: number;
1643
+ durationDays: number;
1644
+ };
1645
+ itemName: string;
1646
+ baseline: {
1647
+ startDate: string;
1648
+ endDate: string;
1649
+ duration: number;
1650
+ };
1651
+ current: {
1652
+ startDate: string;
1653
+ endDate: string;
1654
+ duration: number;
1655
+ percentComplete: number;
1656
+ };
1657
+ }, {
1658
+ status: "CRITICAL" | "ON_TRACK" | "EARLY" | "LATE";
1659
+ itemId: string;
1660
+ variance: {
1661
+ startDateDays: number;
1662
+ endDateDays: number;
1663
+ durationDays: number;
1664
+ };
1665
+ itemName: string;
1666
+ baseline: {
1667
+ startDate: string;
1668
+ endDate: string;
1669
+ duration: number;
1670
+ };
1671
+ current: {
1672
+ startDate: string;
1673
+ endDate: string;
1674
+ duration: number;
1675
+ percentComplete: number;
1676
+ };
1677
+ }>, "many">;
1678
+ summary: z.ZodObject<{
1679
+ totalItems: z.ZodNumber;
1680
+ onTrack: z.ZodNumber;
1681
+ early: z.ZodNumber;
1682
+ late: z.ZodNumber;
1683
+ critical: z.ZodNumber;
1684
+ averageVariance: z.ZodNumber;
1685
+ }, "strip", z.ZodTypeAny, {
1686
+ totalItems: number;
1687
+ critical: number;
1688
+ onTrack: number;
1689
+ early: number;
1690
+ late: number;
1691
+ averageVariance: number;
1692
+ }, {
1693
+ totalItems: number;
1694
+ critical: number;
1695
+ onTrack: number;
1696
+ early: number;
1697
+ late: number;
1698
+ averageVariance: number;
1699
+ }>;
1700
+ }, "strip", z.ZodTypeAny, {
1701
+ projectId: string;
1702
+ summary: {
1703
+ totalItems: number;
1704
+ critical: number;
1705
+ onTrack: number;
1706
+ early: number;
1707
+ late: number;
1708
+ averageVariance: number;
1709
+ };
1710
+ baselineId: string;
1711
+ baselineName: string;
1712
+ comparison: {
1713
+ status: "CRITICAL" | "ON_TRACK" | "EARLY" | "LATE";
1714
+ itemId: string;
1715
+ variance: {
1716
+ startDateDays: number;
1717
+ endDateDays: number;
1718
+ durationDays: number;
1719
+ };
1720
+ itemName: string;
1721
+ baseline: {
1722
+ startDate: string;
1723
+ endDate: string;
1724
+ duration: number;
1725
+ };
1726
+ current: {
1727
+ startDate: string;
1728
+ endDate: string;
1729
+ duration: number;
1730
+ percentComplete: number;
1731
+ };
1732
+ }[];
1733
+ }, {
1734
+ projectId: string;
1735
+ summary: {
1736
+ totalItems: number;
1737
+ critical: number;
1738
+ onTrack: number;
1739
+ early: number;
1740
+ late: number;
1741
+ averageVariance: number;
1742
+ };
1743
+ baselineId: string;
1744
+ baselineName: string;
1745
+ comparison: {
1746
+ status: "CRITICAL" | "ON_TRACK" | "EARLY" | "LATE";
1747
+ itemId: string;
1748
+ variance: {
1749
+ startDateDays: number;
1750
+ endDateDays: number;
1751
+ durationDays: number;
1752
+ };
1753
+ itemName: string;
1754
+ baseline: {
1755
+ startDate: string;
1756
+ endDate: string;
1757
+ duration: number;
1758
+ };
1759
+ current: {
1760
+ startDate: string;
1761
+ endDate: string;
1762
+ duration: number;
1763
+ percentComplete: number;
1764
+ };
1765
+ }[];
1766
+ }>;
1767
+ export declare const BulkScheduleUpdateSchema: z.ZodObject<{
1768
+ itemIds: z.ZodArray<z.ZodString, "many">;
1769
+ updates: z.ZodObject<{
1770
+ status: z.ZodOptional<z.ZodEnum<["NOT_STARTED", "IN_PROGRESS", "COMPLETED", "ON_HOLD", "CANCELLED", "DELAYED"]>>;
1771
+ priority: z.ZodOptional<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>>;
1772
+ assignedToId: z.ZodOptional<z.ZodString>;
1773
+ percentComplete: z.ZodOptional<z.ZodNumber>;
1774
+ notes: z.ZodOptional<z.ZodString>;
1775
+ }, "strip", z.ZodTypeAny, {
1776
+ status?: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED" | undefined;
1777
+ notes?: string | undefined;
1778
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
1779
+ assignedToId?: string | undefined;
1780
+ percentComplete?: number | undefined;
1781
+ }, {
1782
+ status?: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED" | undefined;
1783
+ notes?: string | undefined;
1784
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
1785
+ assignedToId?: string | undefined;
1786
+ percentComplete?: number | undefined;
1787
+ }>;
1788
+ }, "strip", z.ZodTypeAny, {
1789
+ updates: {
1790
+ status?: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED" | undefined;
1791
+ notes?: string | undefined;
1792
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
1793
+ assignedToId?: string | undefined;
1794
+ percentComplete?: number | undefined;
1795
+ };
1796
+ itemIds: string[];
1797
+ }, {
1798
+ updates: {
1799
+ status?: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED" | undefined;
1800
+ notes?: string | undefined;
1801
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
1802
+ assignedToId?: string | undefined;
1803
+ percentComplete?: number | undefined;
1804
+ };
1805
+ itemIds: string[];
1806
+ }>;
1807
+ export declare const BulkOperationResultSchema: z.ZodObject<{
1808
+ successful: z.ZodArray<z.ZodString, "many">;
1809
+ failed: z.ZodArray<z.ZodObject<{
1810
+ id: z.ZodString;
1811
+ error: z.ZodString;
1812
+ }, "strip", z.ZodTypeAny, {
1813
+ id: string;
1814
+ error: string;
1815
+ }, {
1816
+ id: string;
1817
+ error: string;
1818
+ }>, "many">;
1819
+ totalProcessed: z.ZodNumber;
1820
+ successCount: z.ZodNumber;
1821
+ failureCount: z.ZodNumber;
1822
+ }, "strip", z.ZodTypeAny, {
1823
+ failureCount: number;
1824
+ successful: string[];
1825
+ failed: {
1826
+ id: string;
1827
+ error: string;
1828
+ }[];
1829
+ totalProcessed: number;
1830
+ successCount: number;
1831
+ }, {
1832
+ failureCount: number;
1833
+ successful: string[];
1834
+ failed: {
1835
+ id: string;
1836
+ error: string;
1837
+ }[];
1838
+ totalProcessed: number;
1839
+ successCount: number;
1840
+ }>;
1841
+ export declare const ScheduleItemResourceSchema: z.ZodObject<{
1842
+ type: z.ZodLiteral<"schedule-items">;
1843
+ id: z.ZodString;
1844
+ attributes: z.ZodObject<{
1845
+ id: z.ZodString;
1846
+ projectId: z.ZodString;
1847
+ parentId: z.ZodOptional<z.ZodString>;
1848
+ name: z.ZodString;
1849
+ description: z.ZodOptional<z.ZodString>;
1850
+ type: z.ZodEnum<["TASK", "MILESTONE", "PHASE", "SUMMARY"]>;
1851
+ status: z.ZodEnum<["NOT_STARTED", "IN_PROGRESS", "COMPLETED", "ON_HOLD", "CANCELLED", "DELAYED"]>;
1852
+ priority: z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>>;
1853
+ plannedStartDate: z.ZodString;
1854
+ plannedEndDate: z.ZodString;
1855
+ actualStartDate: z.ZodOptional<z.ZodString>;
1856
+ actualEndDate: z.ZodOptional<z.ZodString>;
1857
+ duration: z.ZodNumber;
1858
+ workDays: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
1859
+ percentComplete: z.ZodDefault<z.ZodNumber>;
1860
+ baselineStartDate: z.ZodOptional<z.ZodString>;
1861
+ baselineEndDate: z.ZodOptional<z.ZodString>;
1862
+ baselineDuration: z.ZodOptional<z.ZodNumber>;
1863
+ earlyStart: z.ZodOptional<z.ZodString>;
1864
+ earlyFinish: z.ZodOptional<z.ZodString>;
1865
+ lateStart: z.ZodOptional<z.ZodString>;
1866
+ lateFinish: z.ZodOptional<z.ZodString>;
1867
+ totalFloat: z.ZodOptional<z.ZodNumber>;
1868
+ freeFloat: z.ZodOptional<z.ZodNumber>;
1869
+ isCritical: z.ZodDefault<z.ZodBoolean>;
1870
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
1871
+ id: z.ZodString;
1872
+ predecessorId: z.ZodString;
1873
+ successorId: z.ZodString;
1874
+ type: z.ZodEnum<["FINISH_TO_START", "START_TO_START", "FINISH_TO_FINISH", "START_TO_FINISH"]>;
1875
+ lag: z.ZodDefault<z.ZodNumber>;
1876
+ description: z.ZodOptional<z.ZodString>;
1877
+ }, "strip", z.ZodTypeAny, {
1878
+ id: string;
1879
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
1880
+ predecessorId: string;
1881
+ successorId: string;
1882
+ lag: number;
1883
+ description?: string | undefined;
1884
+ }, {
1885
+ id: string;
1886
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
1887
+ predecessorId: string;
1888
+ successorId: string;
1889
+ description?: string | undefined;
1890
+ lag?: number | undefined;
1891
+ }>, "many">>;
1892
+ resourceAssignments: z.ZodDefault<z.ZodArray<z.ZodObject<{
1893
+ resourceId: z.ZodString;
1894
+ units: z.ZodNumber;
1895
+ startDate: z.ZodOptional<z.ZodString>;
1896
+ endDate: z.ZodOptional<z.ZodString>;
1897
+ }, "strip", z.ZodTypeAny, {
1898
+ resourceId: string;
1899
+ units: number;
1900
+ startDate?: string | undefined;
1901
+ endDate?: string | undefined;
1902
+ }, {
1903
+ resourceId: string;
1904
+ units: number;
1905
+ startDate?: string | undefined;
1906
+ endDate?: string | undefined;
1907
+ }>, "many">>;
1908
+ linkedTaskIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1909
+ level: z.ZodDefault<z.ZodNumber>;
1910
+ order: z.ZodDefault<z.ZodNumber>;
1911
+ hasChildren: z.ZodDefault<z.ZodBoolean>;
1912
+ createdById: z.ZodString;
1913
+ assignedToId: z.ZodOptional<z.ZodString>;
1914
+ notes: z.ZodOptional<z.ZodString>;
1915
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1916
+ createdAt: z.ZodString;
1917
+ updatedAt: z.ZodString;
1918
+ }, "strip", z.ZodTypeAny, {
1919
+ id: string;
1920
+ createdAt: string;
1921
+ updatedAt: string;
1922
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
1923
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
1924
+ projectId: string;
1925
+ name: string;
1926
+ createdById: string;
1927
+ priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
1928
+ tags: string[];
1929
+ order: number;
1930
+ duration: number;
1931
+ dependencies: {
1932
+ id: string;
1933
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
1934
+ predecessorId: string;
1935
+ successorId: string;
1936
+ lag: number;
1937
+ description?: string | undefined;
1938
+ }[];
1939
+ level: number;
1940
+ isCritical: boolean;
1941
+ plannedStartDate: string;
1942
+ plannedEndDate: string;
1943
+ workDays: number[];
1944
+ percentComplete: number;
1945
+ resourceAssignments: {
1946
+ resourceId: string;
1947
+ units: number;
1948
+ startDate?: string | undefined;
1949
+ endDate?: string | undefined;
1950
+ }[];
1951
+ linkedTaskIds: string[];
1952
+ hasChildren: boolean;
1953
+ description?: string | undefined;
1954
+ notes?: string | undefined;
1955
+ assignedToId?: string | undefined;
1956
+ parentId?: string | undefined;
1957
+ actualStartDate?: string | undefined;
1958
+ actualEndDate?: string | undefined;
1959
+ baselineStartDate?: string | undefined;
1960
+ baselineEndDate?: string | undefined;
1961
+ baselineDuration?: number | undefined;
1962
+ earlyStart?: string | undefined;
1963
+ earlyFinish?: string | undefined;
1964
+ lateStart?: string | undefined;
1965
+ lateFinish?: string | undefined;
1966
+ totalFloat?: number | undefined;
1967
+ freeFloat?: number | undefined;
1968
+ }, {
1969
+ id: string;
1970
+ createdAt: string;
1971
+ updatedAt: string;
1972
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
1973
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
1974
+ projectId: string;
1975
+ name: string;
1976
+ createdById: string;
1977
+ duration: number;
1978
+ plannedStartDate: string;
1979
+ plannedEndDate: string;
1980
+ description?: string | undefined;
1981
+ notes?: string | undefined;
1982
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
1983
+ tags?: string[] | undefined;
1984
+ assignedToId?: string | undefined;
1985
+ order?: number | undefined;
1986
+ dependencies?: {
1987
+ id: string;
1988
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
1989
+ predecessorId: string;
1990
+ successorId: string;
1991
+ description?: string | undefined;
1992
+ lag?: number | undefined;
1993
+ }[] | undefined;
1994
+ level?: number | undefined;
1995
+ isCritical?: boolean | undefined;
1996
+ parentId?: string | undefined;
1997
+ actualStartDate?: string | undefined;
1998
+ actualEndDate?: string | undefined;
1999
+ workDays?: number[] | undefined;
2000
+ percentComplete?: number | undefined;
2001
+ baselineStartDate?: string | undefined;
2002
+ baselineEndDate?: string | undefined;
2003
+ baselineDuration?: number | undefined;
2004
+ earlyStart?: string | undefined;
2005
+ earlyFinish?: string | undefined;
2006
+ lateStart?: string | undefined;
2007
+ lateFinish?: string | undefined;
2008
+ totalFloat?: number | undefined;
2009
+ freeFloat?: number | undefined;
2010
+ resourceAssignments?: {
2011
+ resourceId: string;
2012
+ units: number;
2013
+ startDate?: string | undefined;
2014
+ endDate?: string | undefined;
2015
+ }[] | undefined;
2016
+ linkedTaskIds?: string[] | undefined;
2017
+ hasChildren?: boolean | undefined;
2018
+ }>;
2019
+ }, "strip", z.ZodTypeAny, {
2020
+ id: string;
2021
+ type: "schedule-items";
2022
+ attributes: {
2023
+ id: string;
2024
+ createdAt: string;
2025
+ updatedAt: string;
2026
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
2027
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
2028
+ projectId: string;
2029
+ name: string;
2030
+ createdById: string;
2031
+ priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
2032
+ tags: string[];
2033
+ order: number;
2034
+ duration: number;
2035
+ dependencies: {
2036
+ id: string;
2037
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
2038
+ predecessorId: string;
2039
+ successorId: string;
2040
+ lag: number;
2041
+ description?: string | undefined;
2042
+ }[];
2043
+ level: number;
2044
+ isCritical: boolean;
2045
+ plannedStartDate: string;
2046
+ plannedEndDate: string;
2047
+ workDays: number[];
2048
+ percentComplete: number;
2049
+ resourceAssignments: {
2050
+ resourceId: string;
2051
+ units: number;
2052
+ startDate?: string | undefined;
2053
+ endDate?: string | undefined;
2054
+ }[];
2055
+ linkedTaskIds: string[];
2056
+ hasChildren: boolean;
2057
+ description?: string | undefined;
2058
+ notes?: string | undefined;
2059
+ assignedToId?: string | undefined;
2060
+ parentId?: string | undefined;
2061
+ actualStartDate?: string | undefined;
2062
+ actualEndDate?: string | undefined;
2063
+ baselineStartDate?: string | undefined;
2064
+ baselineEndDate?: string | undefined;
2065
+ baselineDuration?: number | undefined;
2066
+ earlyStart?: string | undefined;
2067
+ earlyFinish?: string | undefined;
2068
+ lateStart?: string | undefined;
2069
+ lateFinish?: string | undefined;
2070
+ totalFloat?: number | undefined;
2071
+ freeFloat?: number | undefined;
2072
+ };
2073
+ }, {
2074
+ id: string;
2075
+ type: "schedule-items";
2076
+ attributes: {
2077
+ id: string;
2078
+ createdAt: string;
2079
+ updatedAt: string;
2080
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
2081
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
2082
+ projectId: string;
2083
+ name: string;
2084
+ createdById: string;
2085
+ duration: number;
2086
+ plannedStartDate: string;
2087
+ plannedEndDate: string;
2088
+ description?: string | undefined;
2089
+ notes?: string | undefined;
2090
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
2091
+ tags?: string[] | undefined;
2092
+ assignedToId?: string | undefined;
2093
+ order?: number | undefined;
2094
+ dependencies?: {
2095
+ id: string;
2096
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
2097
+ predecessorId: string;
2098
+ successorId: string;
2099
+ description?: string | undefined;
2100
+ lag?: number | undefined;
2101
+ }[] | undefined;
2102
+ level?: number | undefined;
2103
+ isCritical?: boolean | undefined;
2104
+ parentId?: string | undefined;
2105
+ actualStartDate?: string | undefined;
2106
+ actualEndDate?: string | undefined;
2107
+ workDays?: number[] | undefined;
2108
+ percentComplete?: number | undefined;
2109
+ baselineStartDate?: string | undefined;
2110
+ baselineEndDate?: string | undefined;
2111
+ baselineDuration?: number | undefined;
2112
+ earlyStart?: string | undefined;
2113
+ earlyFinish?: string | undefined;
2114
+ lateStart?: string | undefined;
2115
+ lateFinish?: string | undefined;
2116
+ totalFloat?: number | undefined;
2117
+ freeFloat?: number | undefined;
2118
+ resourceAssignments?: {
2119
+ resourceId: string;
2120
+ units: number;
2121
+ startDate?: string | undefined;
2122
+ endDate?: string | undefined;
2123
+ }[] | undefined;
2124
+ linkedTaskIds?: string[] | undefined;
2125
+ hasChildren?: boolean | undefined;
2126
+ };
2127
+ }>;
2128
+ export declare const ScheduleResourceResourceSchema: z.ZodObject<{
2129
+ type: z.ZodLiteral<"schedule-resources">;
2130
+ id: z.ZodString;
2131
+ attributes: z.ZodObject<{
2132
+ id: z.ZodString;
2133
+ name: z.ZodString;
2134
+ type: z.ZodEnum<["LABOR", "EQUIPMENT", "MATERIAL", "SUBCONTRACTOR"]>;
2135
+ capacity: z.ZodNumber;
2136
+ cost: z.ZodOptional<z.ZodNumber>;
2137
+ availability: z.ZodDefault<z.ZodArray<z.ZodObject<{
2138
+ startDate: z.ZodString;
2139
+ endDate: z.ZodString;
2140
+ capacity: z.ZodNumber;
2141
+ }, "strip", z.ZodTypeAny, {
2142
+ startDate: string;
2143
+ endDate: string;
2144
+ capacity: number;
2145
+ }, {
2146
+ startDate: string;
2147
+ endDate: string;
2148
+ capacity: number;
2149
+ }>, "many">>;
2150
+ }, "strip", z.ZodTypeAny, {
2151
+ id: string;
2152
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
2153
+ name: string;
2154
+ availability: {
2155
+ startDate: string;
2156
+ endDate: string;
2157
+ capacity: number;
2158
+ }[];
2159
+ capacity: number;
2160
+ cost?: number | undefined;
2161
+ }, {
2162
+ id: string;
2163
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
2164
+ name: string;
2165
+ capacity: number;
2166
+ cost?: number | undefined;
2167
+ availability?: {
2168
+ startDate: string;
2169
+ endDate: string;
2170
+ capacity: number;
2171
+ }[] | undefined;
2172
+ }>;
2173
+ }, "strip", z.ZodTypeAny, {
2174
+ id: string;
2175
+ type: "schedule-resources";
2176
+ attributes: {
2177
+ id: string;
2178
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
2179
+ name: string;
2180
+ availability: {
2181
+ startDate: string;
2182
+ endDate: string;
2183
+ capacity: number;
2184
+ }[];
2185
+ capacity: number;
2186
+ cost?: number | undefined;
2187
+ };
2188
+ }, {
2189
+ id: string;
2190
+ type: "schedule-resources";
2191
+ attributes: {
2192
+ id: string;
2193
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
2194
+ name: string;
2195
+ capacity: number;
2196
+ cost?: number | undefined;
2197
+ availability?: {
2198
+ startDate: string;
2199
+ endDate: string;
2200
+ capacity: number;
2201
+ }[] | undefined;
2202
+ };
2203
+ }>;
2204
+ export declare const GanttChartResourceSchema: z.ZodObject<{
2205
+ type: z.ZodLiteral<"gantt-charts">;
2206
+ id: z.ZodString;
2207
+ attributes: z.ZodObject<{
2208
+ projectId: z.ZodString;
2209
+ items: z.ZodArray<z.ZodObject<{
2210
+ id: z.ZodString;
2211
+ name: z.ZodString;
2212
+ type: z.ZodEnum<["TASK", "MILESTONE", "PHASE", "SUMMARY"]>;
2213
+ status: z.ZodEnum<["NOT_STARTED", "IN_PROGRESS", "COMPLETED", "ON_HOLD", "CANCELLED", "DELAYED"]>;
2214
+ startDate: z.ZodString;
2215
+ endDate: z.ZodString;
2216
+ duration: z.ZodNumber;
2217
+ percentComplete: z.ZodNumber;
2218
+ isCritical: z.ZodBoolean;
2219
+ level: z.ZodNumber;
2220
+ parentId: z.ZodOptional<z.ZodString>;
2221
+ dependencies: z.ZodArray<z.ZodObject<{
2222
+ id: z.ZodString;
2223
+ type: z.ZodEnum<["FINISH_TO_START", "START_TO_START", "FINISH_TO_FINISH", "START_TO_FINISH"]>;
2224
+ predecessorId: z.ZodString;
2225
+ lag: z.ZodNumber;
2226
+ }, "strip", z.ZodTypeAny, {
2227
+ id: string;
2228
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
2229
+ predecessorId: string;
2230
+ lag: number;
2231
+ }, {
2232
+ id: string;
2233
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
2234
+ predecessorId: string;
2235
+ lag: number;
2236
+ }>, "many">;
2237
+ resources: z.ZodArray<z.ZodObject<{
2238
+ id: z.ZodString;
2239
+ name: z.ZodString;
2240
+ type: z.ZodEnum<["LABOR", "EQUIPMENT", "MATERIAL", "SUBCONTRACTOR"]>;
2241
+ units: z.ZodNumber;
2242
+ }, "strip", z.ZodTypeAny, {
2243
+ id: string;
2244
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
2245
+ name: string;
2246
+ units: number;
2247
+ }, {
2248
+ id: string;
2249
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
2250
+ name: string;
2251
+ units: number;
2252
+ }>, "many">;
2253
+ assignee: z.ZodOptional<z.ZodObject<{
2254
+ id: z.ZodString;
2255
+ name: z.ZodString;
2256
+ email: z.ZodString;
2257
+ }, "strip", z.ZodTypeAny, {
2258
+ id: string;
2259
+ name: string;
2260
+ email: string;
2261
+ }, {
2262
+ id: string;
2263
+ name: string;
2264
+ email: string;
2265
+ }>>;
2266
+ }, "strip", z.ZodTypeAny, {
2267
+ id: string;
2268
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
2269
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
2270
+ name: string;
2271
+ startDate: string;
2272
+ endDate: string;
2273
+ duration: number;
2274
+ dependencies: {
2275
+ id: string;
2276
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
2277
+ predecessorId: string;
2278
+ lag: number;
2279
+ }[];
2280
+ level: number;
2281
+ isCritical: boolean;
2282
+ resources: {
2283
+ id: string;
2284
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
2285
+ name: string;
2286
+ units: number;
2287
+ }[];
2288
+ percentComplete: number;
2289
+ assignee?: {
2290
+ id: string;
2291
+ name: string;
2292
+ email: string;
2293
+ } | undefined;
2294
+ parentId?: string | undefined;
2295
+ }, {
2296
+ id: string;
2297
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
2298
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
2299
+ name: string;
2300
+ startDate: string;
2301
+ endDate: string;
2302
+ duration: number;
2303
+ dependencies: {
2304
+ id: string;
2305
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
2306
+ predecessorId: string;
2307
+ lag: number;
2308
+ }[];
2309
+ level: number;
2310
+ isCritical: boolean;
2311
+ resources: {
2312
+ id: string;
2313
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
2314
+ name: string;
2315
+ units: number;
2316
+ }[];
2317
+ percentComplete: number;
2318
+ assignee?: {
2319
+ id: string;
2320
+ name: string;
2321
+ email: string;
2322
+ } | undefined;
2323
+ parentId?: string | undefined;
2324
+ }>, "many">;
2325
+ timeScale: z.ZodDefault<z.ZodEnum<["DAY", "WEEK", "MONTH"]>>;
2326
+ startDate: z.ZodString;
2327
+ endDate: z.ZodString;
2328
+ criticalPath: z.ZodArray<z.ZodString, "many">;
2329
+ milestones: z.ZodArray<z.ZodObject<{
2330
+ id: z.ZodString;
2331
+ name: z.ZodString;
2332
+ date: z.ZodString;
2333
+ status: z.ZodEnum<["UPCOMING", "ON_TRACK", "DELAYED", "COMPLETED"]>;
2334
+ }, "strip", z.ZodTypeAny, {
2335
+ id: string;
2336
+ status: "COMPLETED" | "DELAYED" | "UPCOMING" | "ON_TRACK";
2337
+ date: string;
2338
+ name: string;
2339
+ }, {
2340
+ id: string;
2341
+ status: "COMPLETED" | "DELAYED" | "UPCOMING" | "ON_TRACK";
2342
+ date: string;
2343
+ name: string;
2344
+ }>, "many">;
2345
+ generatedAt: z.ZodString;
2346
+ }, "strip", z.ZodTypeAny, {
2347
+ projectId: string;
2348
+ items: {
2349
+ id: string;
2350
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
2351
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
2352
+ name: string;
2353
+ startDate: string;
2354
+ endDate: string;
2355
+ duration: number;
2356
+ dependencies: {
2357
+ id: string;
2358
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
2359
+ predecessorId: string;
2360
+ lag: number;
2361
+ }[];
2362
+ level: number;
2363
+ isCritical: boolean;
2364
+ resources: {
2365
+ id: string;
2366
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
2367
+ name: string;
2368
+ units: number;
2369
+ }[];
2370
+ percentComplete: number;
2371
+ assignee?: {
2372
+ id: string;
2373
+ name: string;
2374
+ email: string;
2375
+ } | undefined;
2376
+ parentId?: string | undefined;
2377
+ }[];
2378
+ startDate: string;
2379
+ endDate: string;
2380
+ generatedAt: string;
2381
+ criticalPath: string[];
2382
+ milestones: {
2383
+ id: string;
2384
+ status: "COMPLETED" | "DELAYED" | "UPCOMING" | "ON_TRACK";
2385
+ date: string;
2386
+ name: string;
2387
+ }[];
2388
+ timeScale: "MONTH" | "DAY" | "WEEK";
2389
+ }, {
2390
+ projectId: string;
2391
+ items: {
2392
+ id: string;
2393
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
2394
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
2395
+ name: string;
2396
+ startDate: string;
2397
+ endDate: string;
2398
+ duration: number;
2399
+ dependencies: {
2400
+ id: string;
2401
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
2402
+ predecessorId: string;
2403
+ lag: number;
2404
+ }[];
2405
+ level: number;
2406
+ isCritical: boolean;
2407
+ resources: {
2408
+ id: string;
2409
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
2410
+ name: string;
2411
+ units: number;
2412
+ }[];
2413
+ percentComplete: number;
2414
+ assignee?: {
2415
+ id: string;
2416
+ name: string;
2417
+ email: string;
2418
+ } | undefined;
2419
+ parentId?: string | undefined;
2420
+ }[];
2421
+ startDate: string;
2422
+ endDate: string;
2423
+ generatedAt: string;
2424
+ criticalPath: string[];
2425
+ milestones: {
2426
+ id: string;
2427
+ status: "COMPLETED" | "DELAYED" | "UPCOMING" | "ON_TRACK";
2428
+ date: string;
2429
+ name: string;
2430
+ }[];
2431
+ timeScale?: "MONTH" | "DAY" | "WEEK" | undefined;
2432
+ }>;
2433
+ }, "strip", z.ZodTypeAny, {
2434
+ id: string;
2435
+ type: "gantt-charts";
2436
+ attributes: {
2437
+ projectId: string;
2438
+ items: {
2439
+ id: string;
2440
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
2441
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
2442
+ name: string;
2443
+ startDate: string;
2444
+ endDate: string;
2445
+ duration: number;
2446
+ dependencies: {
2447
+ id: string;
2448
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
2449
+ predecessorId: string;
2450
+ lag: number;
2451
+ }[];
2452
+ level: number;
2453
+ isCritical: boolean;
2454
+ resources: {
2455
+ id: string;
2456
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
2457
+ name: string;
2458
+ units: number;
2459
+ }[];
2460
+ percentComplete: number;
2461
+ assignee?: {
2462
+ id: string;
2463
+ name: string;
2464
+ email: string;
2465
+ } | undefined;
2466
+ parentId?: string | undefined;
2467
+ }[];
2468
+ startDate: string;
2469
+ endDate: string;
2470
+ generatedAt: string;
2471
+ criticalPath: string[];
2472
+ milestones: {
2473
+ id: string;
2474
+ status: "COMPLETED" | "DELAYED" | "UPCOMING" | "ON_TRACK";
2475
+ date: string;
2476
+ name: string;
2477
+ }[];
2478
+ timeScale: "MONTH" | "DAY" | "WEEK";
2479
+ };
2480
+ }, {
2481
+ id: string;
2482
+ type: "gantt-charts";
2483
+ attributes: {
2484
+ projectId: string;
2485
+ items: {
2486
+ id: string;
2487
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
2488
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
2489
+ name: string;
2490
+ startDate: string;
2491
+ endDate: string;
2492
+ duration: number;
2493
+ dependencies: {
2494
+ id: string;
2495
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
2496
+ predecessorId: string;
2497
+ lag: number;
2498
+ }[];
2499
+ level: number;
2500
+ isCritical: boolean;
2501
+ resources: {
2502
+ id: string;
2503
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
2504
+ name: string;
2505
+ units: number;
2506
+ }[];
2507
+ percentComplete: number;
2508
+ assignee?: {
2509
+ id: string;
2510
+ name: string;
2511
+ email: string;
2512
+ } | undefined;
2513
+ parentId?: string | undefined;
2514
+ }[];
2515
+ startDate: string;
2516
+ endDate: string;
2517
+ generatedAt: string;
2518
+ criticalPath: string[];
2519
+ milestones: {
2520
+ id: string;
2521
+ status: "COMPLETED" | "DELAYED" | "UPCOMING" | "ON_TRACK";
2522
+ date: string;
2523
+ name: string;
2524
+ }[];
2525
+ timeScale?: "MONTH" | "DAY" | "WEEK" | undefined;
2526
+ };
2527
+ }>;
2528
+ export declare const CriticalPathResourceSchema: z.ZodObject<{
2529
+ type: z.ZodLiteral<"critical-path-analysis">;
2530
+ id: z.ZodString;
2531
+ attributes: z.ZodObject<{
2532
+ projectId: z.ZodString;
2533
+ criticalPath: z.ZodArray<z.ZodObject<{
2534
+ itemId: z.ZodString;
2535
+ name: z.ZodString;
2536
+ startDate: z.ZodString;
2537
+ endDate: z.ZodString;
2538
+ duration: z.ZodNumber;
2539
+ totalFloat: z.ZodNumber;
2540
+ order: z.ZodNumber;
2541
+ }, "strip", z.ZodTypeAny, {
2542
+ name: string;
2543
+ itemId: string;
2544
+ startDate: string;
2545
+ endDate: string;
2546
+ order: number;
2547
+ duration: number;
2548
+ totalFloat: number;
2549
+ }, {
2550
+ name: string;
2551
+ itemId: string;
2552
+ startDate: string;
2553
+ endDate: string;
2554
+ order: number;
2555
+ duration: number;
2556
+ totalFloat: number;
2557
+ }>, "many">;
2558
+ projectDuration: z.ZodNumber;
2559
+ projectStartDate: z.ZodString;
2560
+ projectEndDate: z.ZodString;
2561
+ nearCriticalItems: z.ZodArray<z.ZodObject<{
2562
+ itemId: z.ZodString;
2563
+ name: z.ZodString;
2564
+ totalFloat: z.ZodNumber;
2565
+ riskLevel: z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>;
2566
+ }, "strip", z.ZodTypeAny, {
2567
+ name: string;
2568
+ itemId: string;
2569
+ riskLevel: "LOW" | "MEDIUM" | "HIGH";
2570
+ totalFloat: number;
2571
+ }, {
2572
+ name: string;
2573
+ itemId: string;
2574
+ riskLevel: "LOW" | "MEDIUM" | "HIGH";
2575
+ totalFloat: number;
2576
+ }>, "many">;
2577
+ analysisDate: z.ZodString;
2578
+ }, "strip", z.ZodTypeAny, {
2579
+ projectId: string;
2580
+ criticalPath: {
2581
+ name: string;
2582
+ itemId: string;
2583
+ startDate: string;
2584
+ endDate: string;
2585
+ order: number;
2586
+ duration: number;
2587
+ totalFloat: number;
2588
+ }[];
2589
+ projectDuration: number;
2590
+ projectStartDate: string;
2591
+ projectEndDate: string;
2592
+ nearCriticalItems: {
2593
+ name: string;
2594
+ itemId: string;
2595
+ riskLevel: "LOW" | "MEDIUM" | "HIGH";
2596
+ totalFloat: number;
2597
+ }[];
2598
+ analysisDate: string;
2599
+ }, {
2600
+ projectId: string;
2601
+ criticalPath: {
2602
+ name: string;
2603
+ itemId: string;
2604
+ startDate: string;
2605
+ endDate: string;
2606
+ order: number;
2607
+ duration: number;
2608
+ totalFloat: number;
2609
+ }[];
2610
+ projectDuration: number;
2611
+ projectStartDate: string;
2612
+ projectEndDate: string;
2613
+ nearCriticalItems: {
2614
+ name: string;
2615
+ itemId: string;
2616
+ riskLevel: "LOW" | "MEDIUM" | "HIGH";
2617
+ totalFloat: number;
2618
+ }[];
2619
+ analysisDate: string;
2620
+ }>;
2621
+ }, "strip", z.ZodTypeAny, {
2622
+ id: string;
2623
+ type: "critical-path-analysis";
2624
+ attributes: {
2625
+ projectId: string;
2626
+ criticalPath: {
2627
+ name: string;
2628
+ itemId: string;
2629
+ startDate: string;
2630
+ endDate: string;
2631
+ order: number;
2632
+ duration: number;
2633
+ totalFloat: number;
2634
+ }[];
2635
+ projectDuration: number;
2636
+ projectStartDate: string;
2637
+ projectEndDate: string;
2638
+ nearCriticalItems: {
2639
+ name: string;
2640
+ itemId: string;
2641
+ riskLevel: "LOW" | "MEDIUM" | "HIGH";
2642
+ totalFloat: number;
2643
+ }[];
2644
+ analysisDate: string;
2645
+ };
2646
+ }, {
2647
+ id: string;
2648
+ type: "critical-path-analysis";
2649
+ attributes: {
2650
+ projectId: string;
2651
+ criticalPath: {
2652
+ name: string;
2653
+ itemId: string;
2654
+ startDate: string;
2655
+ endDate: string;
2656
+ order: number;
2657
+ duration: number;
2658
+ totalFloat: number;
2659
+ }[];
2660
+ projectDuration: number;
2661
+ projectStartDate: string;
2662
+ projectEndDate: string;
2663
+ nearCriticalItems: {
2664
+ name: string;
2665
+ itemId: string;
2666
+ riskLevel: "LOW" | "MEDIUM" | "HIGH";
2667
+ totalFloat: number;
2668
+ }[];
2669
+ analysisDate: string;
2670
+ };
2671
+ }>;
2672
+ export declare const ScheduleBaselineResourceSchema: z.ZodObject<{
2673
+ type: z.ZodLiteral<"schedule-baselines">;
2674
+ id: z.ZodString;
2675
+ attributes: z.ZodObject<{
2676
+ id: z.ZodString;
2677
+ projectId: z.ZodString;
2678
+ name: z.ZodString;
2679
+ description: z.ZodOptional<z.ZodString>;
2680
+ baselineDate: z.ZodString;
2681
+ isActive: z.ZodDefault<z.ZodBoolean>;
2682
+ items: z.ZodArray<z.ZodObject<{
2683
+ itemId: z.ZodString;
2684
+ startDate: z.ZodString;
2685
+ endDate: z.ZodString;
2686
+ duration: z.ZodNumber;
2687
+ }, "strip", z.ZodTypeAny, {
2688
+ itemId: string;
2689
+ startDate: string;
2690
+ endDate: string;
2691
+ duration: number;
2692
+ }, {
2693
+ itemId: string;
2694
+ startDate: string;
2695
+ endDate: string;
2696
+ duration: number;
2697
+ }>, "many">;
2698
+ createdById: z.ZodString;
2699
+ createdAt: z.ZodString;
2700
+ }, "strip", z.ZodTypeAny, {
2701
+ id: string;
2702
+ createdAt: string;
2703
+ isActive: boolean;
2704
+ projectId: string;
2705
+ name: string;
2706
+ items: {
2707
+ itemId: string;
2708
+ startDate: string;
2709
+ endDate: string;
2710
+ duration: number;
2711
+ }[];
2712
+ createdById: string;
2713
+ baselineDate: string;
2714
+ description?: string | undefined;
2715
+ }, {
2716
+ id: string;
2717
+ createdAt: string;
2718
+ projectId: string;
2719
+ name: string;
2720
+ items: {
2721
+ itemId: string;
2722
+ startDate: string;
2723
+ endDate: string;
2724
+ duration: number;
2725
+ }[];
2726
+ createdById: string;
2727
+ baselineDate: string;
2728
+ isActive?: boolean | undefined;
2729
+ description?: string | undefined;
2730
+ }>;
2731
+ }, "strip", z.ZodTypeAny, {
2732
+ id: string;
2733
+ type: "schedule-baselines";
2734
+ attributes: {
2735
+ id: string;
2736
+ createdAt: string;
2737
+ isActive: boolean;
2738
+ projectId: string;
2739
+ name: string;
2740
+ items: {
2741
+ itemId: string;
2742
+ startDate: string;
2743
+ endDate: string;
2744
+ duration: number;
2745
+ }[];
2746
+ createdById: string;
2747
+ baselineDate: string;
2748
+ description?: string | undefined;
2749
+ };
2750
+ }, {
2751
+ id: string;
2752
+ type: "schedule-baselines";
2753
+ attributes: {
2754
+ id: string;
2755
+ createdAt: string;
2756
+ projectId: string;
2757
+ name: string;
2758
+ items: {
2759
+ itemId: string;
2760
+ startDate: string;
2761
+ endDate: string;
2762
+ duration: number;
2763
+ }[];
2764
+ createdById: string;
2765
+ baselineDate: string;
2766
+ isActive?: boolean | undefined;
2767
+ description?: string | undefined;
2768
+ };
2769
+ }>;
2770
+ export declare const ResourceUtilizationResourceSchema: z.ZodObject<{
2771
+ type: z.ZodLiteral<"resource-utilization">;
2772
+ id: z.ZodString;
2773
+ attributes: z.ZodObject<{
2774
+ resourceId: z.ZodString;
2775
+ resourceName: z.ZodString;
2776
+ resourceType: z.ZodEnum<["LABOR", "EQUIPMENT", "MATERIAL", "SUBCONTRACTOR"]>;
2777
+ totalCapacity: z.ZodNumber;
2778
+ allocatedCapacity: z.ZodNumber;
2779
+ utilizationPercentage: z.ZodNumber;
2780
+ overallocation: z.ZodNumber;
2781
+ assignments: z.ZodArray<z.ZodObject<{
2782
+ itemId: z.ZodString;
2783
+ itemName: z.ZodString;
2784
+ startDate: z.ZodString;
2785
+ endDate: z.ZodString;
2786
+ units: z.ZodNumber;
2787
+ }, "strip", z.ZodTypeAny, {
2788
+ itemId: string;
2789
+ startDate: string;
2790
+ endDate: string;
2791
+ units: number;
2792
+ itemName: string;
2793
+ }, {
2794
+ itemId: string;
2795
+ startDate: string;
2796
+ endDate: string;
2797
+ units: number;
2798
+ itemName: string;
2799
+ }>, "many">;
2800
+ }, "strip", z.ZodTypeAny, {
2801
+ utilizationPercentage: number;
2802
+ resourceType: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
2803
+ resourceId: string;
2804
+ resourceName: string;
2805
+ assignments: {
2806
+ itemId: string;
2807
+ startDate: string;
2808
+ endDate: string;
2809
+ units: number;
2810
+ itemName: string;
2811
+ }[];
2812
+ totalCapacity: number;
2813
+ allocatedCapacity: number;
2814
+ overallocation: number;
2815
+ }, {
2816
+ utilizationPercentage: number;
2817
+ resourceType: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
2818
+ resourceId: string;
2819
+ resourceName: string;
2820
+ assignments: {
2821
+ itemId: string;
2822
+ startDate: string;
2823
+ endDate: string;
2824
+ units: number;
2825
+ itemName: string;
2826
+ }[];
2827
+ totalCapacity: number;
2828
+ allocatedCapacity: number;
2829
+ overallocation: number;
2830
+ }>;
2831
+ }, "strip", z.ZodTypeAny, {
2832
+ id: string;
2833
+ type: "resource-utilization";
2834
+ attributes: {
2835
+ utilizationPercentage: number;
2836
+ resourceType: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
2837
+ resourceId: string;
2838
+ resourceName: string;
2839
+ assignments: {
2840
+ itemId: string;
2841
+ startDate: string;
2842
+ endDate: string;
2843
+ units: number;
2844
+ itemName: string;
2845
+ }[];
2846
+ totalCapacity: number;
2847
+ allocatedCapacity: number;
2848
+ overallocation: number;
2849
+ };
2850
+ }, {
2851
+ id: string;
2852
+ type: "resource-utilization";
2853
+ attributes: {
2854
+ utilizationPercentage: number;
2855
+ resourceType: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
2856
+ resourceId: string;
2857
+ resourceName: string;
2858
+ assignments: {
2859
+ itemId: string;
2860
+ startDate: string;
2861
+ endDate: string;
2862
+ units: number;
2863
+ itemName: string;
2864
+ }[];
2865
+ totalCapacity: number;
2866
+ allocatedCapacity: number;
2867
+ overallocation: number;
2868
+ };
2869
+ }>;
2870
+ export declare const ResourceLevelingResourceSchema: z.ZodObject<{
2871
+ type: z.ZodLiteral<"resource-leveling">;
2872
+ id: z.ZodString;
2873
+ attributes: z.ZodObject<{
2874
+ projectId: z.ZodString;
2875
+ conflicts: z.ZodArray<z.ZodObject<{
2876
+ resourceId: z.ZodString;
2877
+ resourceName: z.ZodString;
2878
+ conflictDate: z.ZodString;
2879
+ requiredCapacity: z.ZodNumber;
2880
+ availableCapacity: z.ZodNumber;
2881
+ overallocation: z.ZodNumber;
2882
+ affectedItems: z.ZodArray<z.ZodString, "many">;
2883
+ }, "strip", z.ZodTypeAny, {
2884
+ resourceId: string;
2885
+ resourceName: string;
2886
+ overallocation: number;
2887
+ conflictDate: string;
2888
+ requiredCapacity: number;
2889
+ availableCapacity: number;
2890
+ affectedItems: string[];
2891
+ }, {
2892
+ resourceId: string;
2893
+ resourceName: string;
2894
+ overallocation: number;
2895
+ conflictDate: string;
2896
+ requiredCapacity: number;
2897
+ availableCapacity: number;
2898
+ affectedItems: string[];
2899
+ }>, "many">;
2900
+ suggestions: z.ZodArray<z.ZodObject<{
2901
+ type: z.ZodEnum<["DELAY_TASK", "REDUCE_ALLOCATION", "ADD_RESOURCE", "SPLIT_TASK"]>;
2902
+ itemId: z.ZodString;
2903
+ description: z.ZodString;
2904
+ impact: z.ZodString;
2905
+ }, "strip", z.ZodTypeAny, {
2906
+ type: "DELAY_TASK" | "REDUCE_ALLOCATION" | "ADD_RESOURCE" | "SPLIT_TASK";
2907
+ description: string;
2908
+ itemId: string;
2909
+ impact: string;
2910
+ }, {
2911
+ type: "DELAY_TASK" | "REDUCE_ALLOCATION" | "ADD_RESOURCE" | "SPLIT_TASK";
2912
+ description: string;
2913
+ itemId: string;
2914
+ impact: string;
2915
+ }>, "many">;
2916
+ leveledSchedule: z.ZodOptional<z.ZodArray<z.ZodObject<{
2917
+ id: z.ZodString;
2918
+ name: z.ZodString;
2919
+ type: z.ZodEnum<["TASK", "MILESTONE", "PHASE", "SUMMARY"]>;
2920
+ status: z.ZodEnum<["NOT_STARTED", "IN_PROGRESS", "COMPLETED", "ON_HOLD", "CANCELLED", "DELAYED"]>;
2921
+ startDate: z.ZodString;
2922
+ endDate: z.ZodString;
2923
+ duration: z.ZodNumber;
2924
+ percentComplete: z.ZodNumber;
2925
+ isCritical: z.ZodBoolean;
2926
+ level: z.ZodNumber;
2927
+ parentId: z.ZodOptional<z.ZodString>;
2928
+ dependencies: z.ZodArray<z.ZodObject<{
2929
+ id: z.ZodString;
2930
+ type: z.ZodEnum<["FINISH_TO_START", "START_TO_START", "FINISH_TO_FINISH", "START_TO_FINISH"]>;
2931
+ predecessorId: z.ZodString;
2932
+ lag: z.ZodNumber;
2933
+ }, "strip", z.ZodTypeAny, {
2934
+ id: string;
2935
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
2936
+ predecessorId: string;
2937
+ lag: number;
2938
+ }, {
2939
+ id: string;
2940
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
2941
+ predecessorId: string;
2942
+ lag: number;
2943
+ }>, "many">;
2944
+ resources: z.ZodArray<z.ZodObject<{
2945
+ id: z.ZodString;
2946
+ name: z.ZodString;
2947
+ type: z.ZodEnum<["LABOR", "EQUIPMENT", "MATERIAL", "SUBCONTRACTOR"]>;
2948
+ units: z.ZodNumber;
2949
+ }, "strip", z.ZodTypeAny, {
2950
+ id: string;
2951
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
2952
+ name: string;
2953
+ units: number;
2954
+ }, {
2955
+ id: string;
2956
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
2957
+ name: string;
2958
+ units: number;
2959
+ }>, "many">;
2960
+ assignee: z.ZodOptional<z.ZodObject<{
2961
+ id: z.ZodString;
2962
+ name: z.ZodString;
2963
+ email: z.ZodString;
2964
+ }, "strip", z.ZodTypeAny, {
2965
+ id: string;
2966
+ name: string;
2967
+ email: string;
2968
+ }, {
2969
+ id: string;
2970
+ name: string;
2971
+ email: string;
2972
+ }>>;
2973
+ }, "strip", z.ZodTypeAny, {
2974
+ id: string;
2975
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
2976
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
2977
+ name: string;
2978
+ startDate: string;
2979
+ endDate: string;
2980
+ duration: number;
2981
+ dependencies: {
2982
+ id: string;
2983
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
2984
+ predecessorId: string;
2985
+ lag: number;
2986
+ }[];
2987
+ level: number;
2988
+ isCritical: boolean;
2989
+ resources: {
2990
+ id: string;
2991
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
2992
+ name: string;
2993
+ units: number;
2994
+ }[];
2995
+ percentComplete: number;
2996
+ assignee?: {
2997
+ id: string;
2998
+ name: string;
2999
+ email: string;
3000
+ } | undefined;
3001
+ parentId?: string | undefined;
3002
+ }, {
3003
+ id: string;
3004
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
3005
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
3006
+ name: string;
3007
+ startDate: string;
3008
+ endDate: string;
3009
+ duration: number;
3010
+ dependencies: {
3011
+ id: string;
3012
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3013
+ predecessorId: string;
3014
+ lag: number;
3015
+ }[];
3016
+ level: number;
3017
+ isCritical: boolean;
3018
+ resources: {
3019
+ id: string;
3020
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
3021
+ name: string;
3022
+ units: number;
3023
+ }[];
3024
+ percentComplete: number;
3025
+ assignee?: {
3026
+ id: string;
3027
+ name: string;
3028
+ email: string;
3029
+ } | undefined;
3030
+ parentId?: string | undefined;
3031
+ }>, "many">>;
3032
+ }, "strip", z.ZodTypeAny, {
3033
+ projectId: string;
3034
+ conflicts: {
3035
+ resourceId: string;
3036
+ resourceName: string;
3037
+ overallocation: number;
3038
+ conflictDate: string;
3039
+ requiredCapacity: number;
3040
+ availableCapacity: number;
3041
+ affectedItems: string[];
3042
+ }[];
3043
+ suggestions: {
3044
+ type: "DELAY_TASK" | "REDUCE_ALLOCATION" | "ADD_RESOURCE" | "SPLIT_TASK";
3045
+ description: string;
3046
+ itemId: string;
3047
+ impact: string;
3048
+ }[];
3049
+ leveledSchedule?: {
3050
+ id: string;
3051
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
3052
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
3053
+ name: string;
3054
+ startDate: string;
3055
+ endDate: string;
3056
+ duration: number;
3057
+ dependencies: {
3058
+ id: string;
3059
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3060
+ predecessorId: string;
3061
+ lag: number;
3062
+ }[];
3063
+ level: number;
3064
+ isCritical: boolean;
3065
+ resources: {
3066
+ id: string;
3067
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
3068
+ name: string;
3069
+ units: number;
3070
+ }[];
3071
+ percentComplete: number;
3072
+ assignee?: {
3073
+ id: string;
3074
+ name: string;
3075
+ email: string;
3076
+ } | undefined;
3077
+ parentId?: string | undefined;
3078
+ }[] | undefined;
3079
+ }, {
3080
+ projectId: string;
3081
+ conflicts: {
3082
+ resourceId: string;
3083
+ resourceName: string;
3084
+ overallocation: number;
3085
+ conflictDate: string;
3086
+ requiredCapacity: number;
3087
+ availableCapacity: number;
3088
+ affectedItems: string[];
3089
+ }[];
3090
+ suggestions: {
3091
+ type: "DELAY_TASK" | "REDUCE_ALLOCATION" | "ADD_RESOURCE" | "SPLIT_TASK";
3092
+ description: string;
3093
+ itemId: string;
3094
+ impact: string;
3095
+ }[];
3096
+ leveledSchedule?: {
3097
+ id: string;
3098
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
3099
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
3100
+ name: string;
3101
+ startDate: string;
3102
+ endDate: string;
3103
+ duration: number;
3104
+ dependencies: {
3105
+ id: string;
3106
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3107
+ predecessorId: string;
3108
+ lag: number;
3109
+ }[];
3110
+ level: number;
3111
+ isCritical: boolean;
3112
+ resources: {
3113
+ id: string;
3114
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
3115
+ name: string;
3116
+ units: number;
3117
+ }[];
3118
+ percentComplete: number;
3119
+ assignee?: {
3120
+ id: string;
3121
+ name: string;
3122
+ email: string;
3123
+ } | undefined;
3124
+ parentId?: string | undefined;
3125
+ }[] | undefined;
3126
+ }>;
3127
+ }, "strip", z.ZodTypeAny, {
3128
+ id: string;
3129
+ type: "resource-leveling";
3130
+ attributes: {
3131
+ projectId: string;
3132
+ conflicts: {
3133
+ resourceId: string;
3134
+ resourceName: string;
3135
+ overallocation: number;
3136
+ conflictDate: string;
3137
+ requiredCapacity: number;
3138
+ availableCapacity: number;
3139
+ affectedItems: string[];
3140
+ }[];
3141
+ suggestions: {
3142
+ type: "DELAY_TASK" | "REDUCE_ALLOCATION" | "ADD_RESOURCE" | "SPLIT_TASK";
3143
+ description: string;
3144
+ itemId: string;
3145
+ impact: string;
3146
+ }[];
3147
+ leveledSchedule?: {
3148
+ id: string;
3149
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
3150
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
3151
+ name: string;
3152
+ startDate: string;
3153
+ endDate: string;
3154
+ duration: number;
3155
+ dependencies: {
3156
+ id: string;
3157
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3158
+ predecessorId: string;
3159
+ lag: number;
3160
+ }[];
3161
+ level: number;
3162
+ isCritical: boolean;
3163
+ resources: {
3164
+ id: string;
3165
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
3166
+ name: string;
3167
+ units: number;
3168
+ }[];
3169
+ percentComplete: number;
3170
+ assignee?: {
3171
+ id: string;
3172
+ name: string;
3173
+ email: string;
3174
+ } | undefined;
3175
+ parentId?: string | undefined;
3176
+ }[] | undefined;
3177
+ };
3178
+ }, {
3179
+ id: string;
3180
+ type: "resource-leveling";
3181
+ attributes: {
3182
+ projectId: string;
3183
+ conflicts: {
3184
+ resourceId: string;
3185
+ resourceName: string;
3186
+ overallocation: number;
3187
+ conflictDate: string;
3188
+ requiredCapacity: number;
3189
+ availableCapacity: number;
3190
+ affectedItems: string[];
3191
+ }[];
3192
+ suggestions: {
3193
+ type: "DELAY_TASK" | "REDUCE_ALLOCATION" | "ADD_RESOURCE" | "SPLIT_TASK";
3194
+ description: string;
3195
+ itemId: string;
3196
+ impact: string;
3197
+ }[];
3198
+ leveledSchedule?: {
3199
+ id: string;
3200
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
3201
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
3202
+ name: string;
3203
+ startDate: string;
3204
+ endDate: string;
3205
+ duration: number;
3206
+ dependencies: {
3207
+ id: string;
3208
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3209
+ predecessorId: string;
3210
+ lag: number;
3211
+ }[];
3212
+ level: number;
3213
+ isCritical: boolean;
3214
+ resources: {
3215
+ id: string;
3216
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
3217
+ name: string;
3218
+ units: number;
3219
+ }[];
3220
+ percentComplete: number;
3221
+ assignee?: {
3222
+ id: string;
3223
+ name: string;
3224
+ email: string;
3225
+ } | undefined;
3226
+ parentId?: string | undefined;
3227
+ }[] | undefined;
3228
+ };
3229
+ }>;
3230
+ export declare const ScheduleItemListResponseSchema: z.ZodObject<{
3231
+ data: z.ZodArray<z.ZodObject<{
3232
+ type: z.ZodLiteral<"schedule-items">;
3233
+ id: z.ZodString;
3234
+ attributes: z.ZodObject<{
3235
+ id: z.ZodString;
3236
+ projectId: z.ZodString;
3237
+ parentId: z.ZodOptional<z.ZodString>;
3238
+ name: z.ZodString;
3239
+ description: z.ZodOptional<z.ZodString>;
3240
+ type: z.ZodEnum<["TASK", "MILESTONE", "PHASE", "SUMMARY"]>;
3241
+ status: z.ZodEnum<["NOT_STARTED", "IN_PROGRESS", "COMPLETED", "ON_HOLD", "CANCELLED", "DELAYED"]>;
3242
+ priority: z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>>;
3243
+ plannedStartDate: z.ZodString;
3244
+ plannedEndDate: z.ZodString;
3245
+ actualStartDate: z.ZodOptional<z.ZodString>;
3246
+ actualEndDate: z.ZodOptional<z.ZodString>;
3247
+ duration: z.ZodNumber;
3248
+ workDays: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
3249
+ percentComplete: z.ZodDefault<z.ZodNumber>;
3250
+ baselineStartDate: z.ZodOptional<z.ZodString>;
3251
+ baselineEndDate: z.ZodOptional<z.ZodString>;
3252
+ baselineDuration: z.ZodOptional<z.ZodNumber>;
3253
+ earlyStart: z.ZodOptional<z.ZodString>;
3254
+ earlyFinish: z.ZodOptional<z.ZodString>;
3255
+ lateStart: z.ZodOptional<z.ZodString>;
3256
+ lateFinish: z.ZodOptional<z.ZodString>;
3257
+ totalFloat: z.ZodOptional<z.ZodNumber>;
3258
+ freeFloat: z.ZodOptional<z.ZodNumber>;
3259
+ isCritical: z.ZodDefault<z.ZodBoolean>;
3260
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
3261
+ id: z.ZodString;
3262
+ predecessorId: z.ZodString;
3263
+ successorId: z.ZodString;
3264
+ type: z.ZodEnum<["FINISH_TO_START", "START_TO_START", "FINISH_TO_FINISH", "START_TO_FINISH"]>;
3265
+ lag: z.ZodDefault<z.ZodNumber>;
3266
+ description: z.ZodOptional<z.ZodString>;
3267
+ }, "strip", z.ZodTypeAny, {
3268
+ id: string;
3269
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3270
+ predecessorId: string;
3271
+ successorId: string;
3272
+ lag: number;
3273
+ description?: string | undefined;
3274
+ }, {
3275
+ id: string;
3276
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3277
+ predecessorId: string;
3278
+ successorId: string;
3279
+ description?: string | undefined;
3280
+ lag?: number | undefined;
3281
+ }>, "many">>;
3282
+ resourceAssignments: z.ZodDefault<z.ZodArray<z.ZodObject<{
3283
+ resourceId: z.ZodString;
3284
+ units: z.ZodNumber;
3285
+ startDate: z.ZodOptional<z.ZodString>;
3286
+ endDate: z.ZodOptional<z.ZodString>;
3287
+ }, "strip", z.ZodTypeAny, {
3288
+ resourceId: string;
3289
+ units: number;
3290
+ startDate?: string | undefined;
3291
+ endDate?: string | undefined;
3292
+ }, {
3293
+ resourceId: string;
3294
+ units: number;
3295
+ startDate?: string | undefined;
3296
+ endDate?: string | undefined;
3297
+ }>, "many">>;
3298
+ linkedTaskIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3299
+ level: z.ZodDefault<z.ZodNumber>;
3300
+ order: z.ZodDefault<z.ZodNumber>;
3301
+ hasChildren: z.ZodDefault<z.ZodBoolean>;
3302
+ createdById: z.ZodString;
3303
+ assignedToId: z.ZodOptional<z.ZodString>;
3304
+ notes: z.ZodOptional<z.ZodString>;
3305
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3306
+ createdAt: z.ZodString;
3307
+ updatedAt: z.ZodString;
3308
+ }, "strip", z.ZodTypeAny, {
3309
+ id: string;
3310
+ createdAt: string;
3311
+ updatedAt: string;
3312
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
3313
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
3314
+ projectId: string;
3315
+ name: string;
3316
+ createdById: string;
3317
+ priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3318
+ tags: string[];
3319
+ order: number;
3320
+ duration: number;
3321
+ dependencies: {
3322
+ id: string;
3323
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3324
+ predecessorId: string;
3325
+ successorId: string;
3326
+ lag: number;
3327
+ description?: string | undefined;
3328
+ }[];
3329
+ level: number;
3330
+ isCritical: boolean;
3331
+ plannedStartDate: string;
3332
+ plannedEndDate: string;
3333
+ workDays: number[];
3334
+ percentComplete: number;
3335
+ resourceAssignments: {
3336
+ resourceId: string;
3337
+ units: number;
3338
+ startDate?: string | undefined;
3339
+ endDate?: string | undefined;
3340
+ }[];
3341
+ linkedTaskIds: string[];
3342
+ hasChildren: boolean;
3343
+ description?: string | undefined;
3344
+ notes?: string | undefined;
3345
+ assignedToId?: string | undefined;
3346
+ parentId?: string | undefined;
3347
+ actualStartDate?: string | undefined;
3348
+ actualEndDate?: string | undefined;
3349
+ baselineStartDate?: string | undefined;
3350
+ baselineEndDate?: string | undefined;
3351
+ baselineDuration?: number | undefined;
3352
+ earlyStart?: string | undefined;
3353
+ earlyFinish?: string | undefined;
3354
+ lateStart?: string | undefined;
3355
+ lateFinish?: string | undefined;
3356
+ totalFloat?: number | undefined;
3357
+ freeFloat?: number | undefined;
3358
+ }, {
3359
+ id: string;
3360
+ createdAt: string;
3361
+ updatedAt: string;
3362
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
3363
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
3364
+ projectId: string;
3365
+ name: string;
3366
+ createdById: string;
3367
+ duration: number;
3368
+ plannedStartDate: string;
3369
+ plannedEndDate: string;
3370
+ description?: string | undefined;
3371
+ notes?: string | undefined;
3372
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
3373
+ tags?: string[] | undefined;
3374
+ assignedToId?: string | undefined;
3375
+ order?: number | undefined;
3376
+ dependencies?: {
3377
+ id: string;
3378
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3379
+ predecessorId: string;
3380
+ successorId: string;
3381
+ description?: string | undefined;
3382
+ lag?: number | undefined;
3383
+ }[] | undefined;
3384
+ level?: number | undefined;
3385
+ isCritical?: boolean | undefined;
3386
+ parentId?: string | undefined;
3387
+ actualStartDate?: string | undefined;
3388
+ actualEndDate?: string | undefined;
3389
+ workDays?: number[] | undefined;
3390
+ percentComplete?: number | undefined;
3391
+ baselineStartDate?: string | undefined;
3392
+ baselineEndDate?: string | undefined;
3393
+ baselineDuration?: number | undefined;
3394
+ earlyStart?: string | undefined;
3395
+ earlyFinish?: string | undefined;
3396
+ lateStart?: string | undefined;
3397
+ lateFinish?: string | undefined;
3398
+ totalFloat?: number | undefined;
3399
+ freeFloat?: number | undefined;
3400
+ resourceAssignments?: {
3401
+ resourceId: string;
3402
+ units: number;
3403
+ startDate?: string | undefined;
3404
+ endDate?: string | undefined;
3405
+ }[] | undefined;
3406
+ linkedTaskIds?: string[] | undefined;
3407
+ hasChildren?: boolean | undefined;
3408
+ }>;
3409
+ }, "strip", z.ZodTypeAny, {
3410
+ id: string;
3411
+ type: "schedule-items";
3412
+ attributes: {
3413
+ id: string;
3414
+ createdAt: string;
3415
+ updatedAt: string;
3416
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
3417
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
3418
+ projectId: string;
3419
+ name: string;
3420
+ createdById: string;
3421
+ priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3422
+ tags: string[];
3423
+ order: number;
3424
+ duration: number;
3425
+ dependencies: {
3426
+ id: string;
3427
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3428
+ predecessorId: string;
3429
+ successorId: string;
3430
+ lag: number;
3431
+ description?: string | undefined;
3432
+ }[];
3433
+ level: number;
3434
+ isCritical: boolean;
3435
+ plannedStartDate: string;
3436
+ plannedEndDate: string;
3437
+ workDays: number[];
3438
+ percentComplete: number;
3439
+ resourceAssignments: {
3440
+ resourceId: string;
3441
+ units: number;
3442
+ startDate?: string | undefined;
3443
+ endDate?: string | undefined;
3444
+ }[];
3445
+ linkedTaskIds: string[];
3446
+ hasChildren: boolean;
3447
+ description?: string | undefined;
3448
+ notes?: string | undefined;
3449
+ assignedToId?: string | undefined;
3450
+ parentId?: string | undefined;
3451
+ actualStartDate?: string | undefined;
3452
+ actualEndDate?: string | undefined;
3453
+ baselineStartDate?: string | undefined;
3454
+ baselineEndDate?: string | undefined;
3455
+ baselineDuration?: number | undefined;
3456
+ earlyStart?: string | undefined;
3457
+ earlyFinish?: string | undefined;
3458
+ lateStart?: string | undefined;
3459
+ lateFinish?: string | undefined;
3460
+ totalFloat?: number | undefined;
3461
+ freeFloat?: number | undefined;
3462
+ };
3463
+ }, {
3464
+ id: string;
3465
+ type: "schedule-items";
3466
+ attributes: {
3467
+ id: string;
3468
+ createdAt: string;
3469
+ updatedAt: string;
3470
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
3471
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
3472
+ projectId: string;
3473
+ name: string;
3474
+ createdById: string;
3475
+ duration: number;
3476
+ plannedStartDate: string;
3477
+ plannedEndDate: string;
3478
+ description?: string | undefined;
3479
+ notes?: string | undefined;
3480
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
3481
+ tags?: string[] | undefined;
3482
+ assignedToId?: string | undefined;
3483
+ order?: number | undefined;
3484
+ dependencies?: {
3485
+ id: string;
3486
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3487
+ predecessorId: string;
3488
+ successorId: string;
3489
+ description?: string | undefined;
3490
+ lag?: number | undefined;
3491
+ }[] | undefined;
3492
+ level?: number | undefined;
3493
+ isCritical?: boolean | undefined;
3494
+ parentId?: string | undefined;
3495
+ actualStartDate?: string | undefined;
3496
+ actualEndDate?: string | undefined;
3497
+ workDays?: number[] | undefined;
3498
+ percentComplete?: number | undefined;
3499
+ baselineStartDate?: string | undefined;
3500
+ baselineEndDate?: string | undefined;
3501
+ baselineDuration?: number | undefined;
3502
+ earlyStart?: string | undefined;
3503
+ earlyFinish?: string | undefined;
3504
+ lateStart?: string | undefined;
3505
+ lateFinish?: string | undefined;
3506
+ totalFloat?: number | undefined;
3507
+ freeFloat?: number | undefined;
3508
+ resourceAssignments?: {
3509
+ resourceId: string;
3510
+ units: number;
3511
+ startDate?: string | undefined;
3512
+ endDate?: string | undefined;
3513
+ }[] | undefined;
3514
+ linkedTaskIds?: string[] | undefined;
3515
+ hasChildren?: boolean | undefined;
3516
+ };
3517
+ }>, "many">;
3518
+ meta: z.ZodObject<{
3519
+ page: z.ZodNumber;
3520
+ limit: z.ZodNumber;
3521
+ total: z.ZodNumber;
3522
+ totalPages: z.ZodNumber;
3523
+ }, "strip", z.ZodTypeAny, {
3524
+ page: number;
3525
+ limit: number;
3526
+ total: number;
3527
+ totalPages: number;
3528
+ }, {
3529
+ page: number;
3530
+ limit: number;
3531
+ total: number;
3532
+ totalPages: number;
3533
+ }>;
3534
+ }, "strip", z.ZodTypeAny, {
3535
+ meta: {
3536
+ page: number;
3537
+ limit: number;
3538
+ total: number;
3539
+ totalPages: number;
3540
+ };
3541
+ data: {
3542
+ id: string;
3543
+ type: "schedule-items";
3544
+ attributes: {
3545
+ id: string;
3546
+ createdAt: string;
3547
+ updatedAt: string;
3548
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
3549
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
3550
+ projectId: string;
3551
+ name: string;
3552
+ createdById: string;
3553
+ priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3554
+ tags: string[];
3555
+ order: number;
3556
+ duration: number;
3557
+ dependencies: {
3558
+ id: string;
3559
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3560
+ predecessorId: string;
3561
+ successorId: string;
3562
+ lag: number;
3563
+ description?: string | undefined;
3564
+ }[];
3565
+ level: number;
3566
+ isCritical: boolean;
3567
+ plannedStartDate: string;
3568
+ plannedEndDate: string;
3569
+ workDays: number[];
3570
+ percentComplete: number;
3571
+ resourceAssignments: {
3572
+ resourceId: string;
3573
+ units: number;
3574
+ startDate?: string | undefined;
3575
+ endDate?: string | undefined;
3576
+ }[];
3577
+ linkedTaskIds: string[];
3578
+ hasChildren: boolean;
3579
+ description?: string | undefined;
3580
+ notes?: string | undefined;
3581
+ assignedToId?: string | undefined;
3582
+ parentId?: string | undefined;
3583
+ actualStartDate?: string | undefined;
3584
+ actualEndDate?: string | undefined;
3585
+ baselineStartDate?: string | undefined;
3586
+ baselineEndDate?: string | undefined;
3587
+ baselineDuration?: number | undefined;
3588
+ earlyStart?: string | undefined;
3589
+ earlyFinish?: string | undefined;
3590
+ lateStart?: string | undefined;
3591
+ lateFinish?: string | undefined;
3592
+ totalFloat?: number | undefined;
3593
+ freeFloat?: number | undefined;
3594
+ };
3595
+ }[];
3596
+ }, {
3597
+ meta: {
3598
+ page: number;
3599
+ limit: number;
3600
+ total: number;
3601
+ totalPages: number;
3602
+ };
3603
+ data: {
3604
+ id: string;
3605
+ type: "schedule-items";
3606
+ attributes: {
3607
+ id: string;
3608
+ createdAt: string;
3609
+ updatedAt: string;
3610
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
3611
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
3612
+ projectId: string;
3613
+ name: string;
3614
+ createdById: string;
3615
+ duration: number;
3616
+ plannedStartDate: string;
3617
+ plannedEndDate: string;
3618
+ description?: string | undefined;
3619
+ notes?: string | undefined;
3620
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
3621
+ tags?: string[] | undefined;
3622
+ assignedToId?: string | undefined;
3623
+ order?: number | undefined;
3624
+ dependencies?: {
3625
+ id: string;
3626
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3627
+ predecessorId: string;
3628
+ successorId: string;
3629
+ description?: string | undefined;
3630
+ lag?: number | undefined;
3631
+ }[] | undefined;
3632
+ level?: number | undefined;
3633
+ isCritical?: boolean | undefined;
3634
+ parentId?: string | undefined;
3635
+ actualStartDate?: string | undefined;
3636
+ actualEndDate?: string | undefined;
3637
+ workDays?: number[] | undefined;
3638
+ percentComplete?: number | undefined;
3639
+ baselineStartDate?: string | undefined;
3640
+ baselineEndDate?: string | undefined;
3641
+ baselineDuration?: number | undefined;
3642
+ earlyStart?: string | undefined;
3643
+ earlyFinish?: string | undefined;
3644
+ lateStart?: string | undefined;
3645
+ lateFinish?: string | undefined;
3646
+ totalFloat?: number | undefined;
3647
+ freeFloat?: number | undefined;
3648
+ resourceAssignments?: {
3649
+ resourceId: string;
3650
+ units: number;
3651
+ startDate?: string | undefined;
3652
+ endDate?: string | undefined;
3653
+ }[] | undefined;
3654
+ linkedTaskIds?: string[] | undefined;
3655
+ hasChildren?: boolean | undefined;
3656
+ };
3657
+ }[];
3658
+ }>;
3659
+ export declare const ScheduleItemResponseSchema: z.ZodObject<{
3660
+ data: z.ZodObject<{
3661
+ type: z.ZodLiteral<"schedule-items">;
3662
+ id: z.ZodString;
3663
+ attributes: z.ZodObject<{
3664
+ id: z.ZodString;
3665
+ projectId: z.ZodString;
3666
+ parentId: z.ZodOptional<z.ZodString>;
3667
+ name: z.ZodString;
3668
+ description: z.ZodOptional<z.ZodString>;
3669
+ type: z.ZodEnum<["TASK", "MILESTONE", "PHASE", "SUMMARY"]>;
3670
+ status: z.ZodEnum<["NOT_STARTED", "IN_PROGRESS", "COMPLETED", "ON_HOLD", "CANCELLED", "DELAYED"]>;
3671
+ priority: z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "CRITICAL"]>>;
3672
+ plannedStartDate: z.ZodString;
3673
+ plannedEndDate: z.ZodString;
3674
+ actualStartDate: z.ZodOptional<z.ZodString>;
3675
+ actualEndDate: z.ZodOptional<z.ZodString>;
3676
+ duration: z.ZodNumber;
3677
+ workDays: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
3678
+ percentComplete: z.ZodDefault<z.ZodNumber>;
3679
+ baselineStartDate: z.ZodOptional<z.ZodString>;
3680
+ baselineEndDate: z.ZodOptional<z.ZodString>;
3681
+ baselineDuration: z.ZodOptional<z.ZodNumber>;
3682
+ earlyStart: z.ZodOptional<z.ZodString>;
3683
+ earlyFinish: z.ZodOptional<z.ZodString>;
3684
+ lateStart: z.ZodOptional<z.ZodString>;
3685
+ lateFinish: z.ZodOptional<z.ZodString>;
3686
+ totalFloat: z.ZodOptional<z.ZodNumber>;
3687
+ freeFloat: z.ZodOptional<z.ZodNumber>;
3688
+ isCritical: z.ZodDefault<z.ZodBoolean>;
3689
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
3690
+ id: z.ZodString;
3691
+ predecessorId: z.ZodString;
3692
+ successorId: z.ZodString;
3693
+ type: z.ZodEnum<["FINISH_TO_START", "START_TO_START", "FINISH_TO_FINISH", "START_TO_FINISH"]>;
3694
+ lag: z.ZodDefault<z.ZodNumber>;
3695
+ description: z.ZodOptional<z.ZodString>;
3696
+ }, "strip", z.ZodTypeAny, {
3697
+ id: string;
3698
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3699
+ predecessorId: string;
3700
+ successorId: string;
3701
+ lag: number;
3702
+ description?: string | undefined;
3703
+ }, {
3704
+ id: string;
3705
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3706
+ predecessorId: string;
3707
+ successorId: string;
3708
+ description?: string | undefined;
3709
+ lag?: number | undefined;
3710
+ }>, "many">>;
3711
+ resourceAssignments: z.ZodDefault<z.ZodArray<z.ZodObject<{
3712
+ resourceId: z.ZodString;
3713
+ units: z.ZodNumber;
3714
+ startDate: z.ZodOptional<z.ZodString>;
3715
+ endDate: z.ZodOptional<z.ZodString>;
3716
+ }, "strip", z.ZodTypeAny, {
3717
+ resourceId: string;
3718
+ units: number;
3719
+ startDate?: string | undefined;
3720
+ endDate?: string | undefined;
3721
+ }, {
3722
+ resourceId: string;
3723
+ units: number;
3724
+ startDate?: string | undefined;
3725
+ endDate?: string | undefined;
3726
+ }>, "many">>;
3727
+ linkedTaskIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3728
+ level: z.ZodDefault<z.ZodNumber>;
3729
+ order: z.ZodDefault<z.ZodNumber>;
3730
+ hasChildren: z.ZodDefault<z.ZodBoolean>;
3731
+ createdById: z.ZodString;
3732
+ assignedToId: z.ZodOptional<z.ZodString>;
3733
+ notes: z.ZodOptional<z.ZodString>;
3734
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3735
+ createdAt: z.ZodString;
3736
+ updatedAt: z.ZodString;
3737
+ }, "strip", z.ZodTypeAny, {
3738
+ id: string;
3739
+ createdAt: string;
3740
+ updatedAt: string;
3741
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
3742
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
3743
+ projectId: string;
3744
+ name: string;
3745
+ createdById: string;
3746
+ priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3747
+ tags: string[];
3748
+ order: number;
3749
+ duration: number;
3750
+ dependencies: {
3751
+ id: string;
3752
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3753
+ predecessorId: string;
3754
+ successorId: string;
3755
+ lag: number;
3756
+ description?: string | undefined;
3757
+ }[];
3758
+ level: number;
3759
+ isCritical: boolean;
3760
+ plannedStartDate: string;
3761
+ plannedEndDate: string;
3762
+ workDays: number[];
3763
+ percentComplete: number;
3764
+ resourceAssignments: {
3765
+ resourceId: string;
3766
+ units: number;
3767
+ startDate?: string | undefined;
3768
+ endDate?: string | undefined;
3769
+ }[];
3770
+ linkedTaskIds: string[];
3771
+ hasChildren: boolean;
3772
+ description?: string | undefined;
3773
+ notes?: string | undefined;
3774
+ assignedToId?: string | undefined;
3775
+ parentId?: string | undefined;
3776
+ actualStartDate?: string | undefined;
3777
+ actualEndDate?: string | undefined;
3778
+ baselineStartDate?: string | undefined;
3779
+ baselineEndDate?: string | undefined;
3780
+ baselineDuration?: number | undefined;
3781
+ earlyStart?: string | undefined;
3782
+ earlyFinish?: string | undefined;
3783
+ lateStart?: string | undefined;
3784
+ lateFinish?: string | undefined;
3785
+ totalFloat?: number | undefined;
3786
+ freeFloat?: number | undefined;
3787
+ }, {
3788
+ id: string;
3789
+ createdAt: string;
3790
+ updatedAt: string;
3791
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
3792
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
3793
+ projectId: string;
3794
+ name: string;
3795
+ createdById: string;
3796
+ duration: number;
3797
+ plannedStartDate: string;
3798
+ plannedEndDate: string;
3799
+ description?: string | undefined;
3800
+ notes?: string | undefined;
3801
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
3802
+ tags?: string[] | undefined;
3803
+ assignedToId?: string | undefined;
3804
+ order?: number | undefined;
3805
+ dependencies?: {
3806
+ id: string;
3807
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3808
+ predecessorId: string;
3809
+ successorId: string;
3810
+ description?: string | undefined;
3811
+ lag?: number | undefined;
3812
+ }[] | undefined;
3813
+ level?: number | undefined;
3814
+ isCritical?: boolean | undefined;
3815
+ parentId?: string | undefined;
3816
+ actualStartDate?: string | undefined;
3817
+ actualEndDate?: string | undefined;
3818
+ workDays?: number[] | undefined;
3819
+ percentComplete?: number | undefined;
3820
+ baselineStartDate?: string | undefined;
3821
+ baselineEndDate?: string | undefined;
3822
+ baselineDuration?: number | undefined;
3823
+ earlyStart?: string | undefined;
3824
+ earlyFinish?: string | undefined;
3825
+ lateStart?: string | undefined;
3826
+ lateFinish?: string | undefined;
3827
+ totalFloat?: number | undefined;
3828
+ freeFloat?: number | undefined;
3829
+ resourceAssignments?: {
3830
+ resourceId: string;
3831
+ units: number;
3832
+ startDate?: string | undefined;
3833
+ endDate?: string | undefined;
3834
+ }[] | undefined;
3835
+ linkedTaskIds?: string[] | undefined;
3836
+ hasChildren?: boolean | undefined;
3837
+ }>;
3838
+ }, "strip", z.ZodTypeAny, {
3839
+ id: string;
3840
+ type: "schedule-items";
3841
+ attributes: {
3842
+ id: string;
3843
+ createdAt: string;
3844
+ updatedAt: string;
3845
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
3846
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
3847
+ projectId: string;
3848
+ name: string;
3849
+ createdById: string;
3850
+ priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3851
+ tags: string[];
3852
+ order: number;
3853
+ duration: number;
3854
+ dependencies: {
3855
+ id: string;
3856
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3857
+ predecessorId: string;
3858
+ successorId: string;
3859
+ lag: number;
3860
+ description?: string | undefined;
3861
+ }[];
3862
+ level: number;
3863
+ isCritical: boolean;
3864
+ plannedStartDate: string;
3865
+ plannedEndDate: string;
3866
+ workDays: number[];
3867
+ percentComplete: number;
3868
+ resourceAssignments: {
3869
+ resourceId: string;
3870
+ units: number;
3871
+ startDate?: string | undefined;
3872
+ endDate?: string | undefined;
3873
+ }[];
3874
+ linkedTaskIds: string[];
3875
+ hasChildren: boolean;
3876
+ description?: string | undefined;
3877
+ notes?: string | undefined;
3878
+ assignedToId?: string | undefined;
3879
+ parentId?: string | undefined;
3880
+ actualStartDate?: string | undefined;
3881
+ actualEndDate?: string | undefined;
3882
+ baselineStartDate?: string | undefined;
3883
+ baselineEndDate?: string | undefined;
3884
+ baselineDuration?: number | undefined;
3885
+ earlyStart?: string | undefined;
3886
+ earlyFinish?: string | undefined;
3887
+ lateStart?: string | undefined;
3888
+ lateFinish?: string | undefined;
3889
+ totalFloat?: number | undefined;
3890
+ freeFloat?: number | undefined;
3891
+ };
3892
+ }, {
3893
+ id: string;
3894
+ type: "schedule-items";
3895
+ attributes: {
3896
+ id: string;
3897
+ createdAt: string;
3898
+ updatedAt: string;
3899
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
3900
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
3901
+ projectId: string;
3902
+ name: string;
3903
+ createdById: string;
3904
+ duration: number;
3905
+ plannedStartDate: string;
3906
+ plannedEndDate: string;
3907
+ description?: string | undefined;
3908
+ notes?: string | undefined;
3909
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
3910
+ tags?: string[] | undefined;
3911
+ assignedToId?: string | undefined;
3912
+ order?: number | undefined;
3913
+ dependencies?: {
3914
+ id: string;
3915
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3916
+ predecessorId: string;
3917
+ successorId: string;
3918
+ description?: string | undefined;
3919
+ lag?: number | undefined;
3920
+ }[] | undefined;
3921
+ level?: number | undefined;
3922
+ isCritical?: boolean | undefined;
3923
+ parentId?: string | undefined;
3924
+ actualStartDate?: string | undefined;
3925
+ actualEndDate?: string | undefined;
3926
+ workDays?: number[] | undefined;
3927
+ percentComplete?: number | undefined;
3928
+ baselineStartDate?: string | undefined;
3929
+ baselineEndDate?: string | undefined;
3930
+ baselineDuration?: number | undefined;
3931
+ earlyStart?: string | undefined;
3932
+ earlyFinish?: string | undefined;
3933
+ lateStart?: string | undefined;
3934
+ lateFinish?: string | undefined;
3935
+ totalFloat?: number | undefined;
3936
+ freeFloat?: number | undefined;
3937
+ resourceAssignments?: {
3938
+ resourceId: string;
3939
+ units: number;
3940
+ startDate?: string | undefined;
3941
+ endDate?: string | undefined;
3942
+ }[] | undefined;
3943
+ linkedTaskIds?: string[] | undefined;
3944
+ hasChildren?: boolean | undefined;
3945
+ };
3946
+ }>;
3947
+ }, "strip", z.ZodTypeAny, {
3948
+ data: {
3949
+ id: string;
3950
+ type: "schedule-items";
3951
+ attributes: {
3952
+ id: string;
3953
+ createdAt: string;
3954
+ updatedAt: string;
3955
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
3956
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
3957
+ projectId: string;
3958
+ name: string;
3959
+ createdById: string;
3960
+ priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
3961
+ tags: string[];
3962
+ order: number;
3963
+ duration: number;
3964
+ dependencies: {
3965
+ id: string;
3966
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
3967
+ predecessorId: string;
3968
+ successorId: string;
3969
+ lag: number;
3970
+ description?: string | undefined;
3971
+ }[];
3972
+ level: number;
3973
+ isCritical: boolean;
3974
+ plannedStartDate: string;
3975
+ plannedEndDate: string;
3976
+ workDays: number[];
3977
+ percentComplete: number;
3978
+ resourceAssignments: {
3979
+ resourceId: string;
3980
+ units: number;
3981
+ startDate?: string | undefined;
3982
+ endDate?: string | undefined;
3983
+ }[];
3984
+ linkedTaskIds: string[];
3985
+ hasChildren: boolean;
3986
+ description?: string | undefined;
3987
+ notes?: string | undefined;
3988
+ assignedToId?: string | undefined;
3989
+ parentId?: string | undefined;
3990
+ actualStartDate?: string | undefined;
3991
+ actualEndDate?: string | undefined;
3992
+ baselineStartDate?: string | undefined;
3993
+ baselineEndDate?: string | undefined;
3994
+ baselineDuration?: number | undefined;
3995
+ earlyStart?: string | undefined;
3996
+ earlyFinish?: string | undefined;
3997
+ lateStart?: string | undefined;
3998
+ lateFinish?: string | undefined;
3999
+ totalFloat?: number | undefined;
4000
+ freeFloat?: number | undefined;
4001
+ };
4002
+ };
4003
+ }, {
4004
+ data: {
4005
+ id: string;
4006
+ type: "schedule-items";
4007
+ attributes: {
4008
+ id: string;
4009
+ createdAt: string;
4010
+ updatedAt: string;
4011
+ type: "TASK" | "MILESTONE" | "PHASE" | "SUMMARY";
4012
+ status: "ON_HOLD" | "COMPLETED" | "CANCELLED" | "IN_PROGRESS" | "DELAYED" | "NOT_STARTED";
4013
+ projectId: string;
4014
+ name: string;
4015
+ createdById: string;
4016
+ duration: number;
4017
+ plannedStartDate: string;
4018
+ plannedEndDate: string;
4019
+ description?: string | undefined;
4020
+ notes?: string | undefined;
4021
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
4022
+ tags?: string[] | undefined;
4023
+ assignedToId?: string | undefined;
4024
+ order?: number | undefined;
4025
+ dependencies?: {
4026
+ id: string;
4027
+ type: "FINISH_TO_START" | "START_TO_START" | "FINISH_TO_FINISH" | "START_TO_FINISH";
4028
+ predecessorId: string;
4029
+ successorId: string;
4030
+ description?: string | undefined;
4031
+ lag?: number | undefined;
4032
+ }[] | undefined;
4033
+ level?: number | undefined;
4034
+ isCritical?: boolean | undefined;
4035
+ parentId?: string | undefined;
4036
+ actualStartDate?: string | undefined;
4037
+ actualEndDate?: string | undefined;
4038
+ workDays?: number[] | undefined;
4039
+ percentComplete?: number | undefined;
4040
+ baselineStartDate?: string | undefined;
4041
+ baselineEndDate?: string | undefined;
4042
+ baselineDuration?: number | undefined;
4043
+ earlyStart?: string | undefined;
4044
+ earlyFinish?: string | undefined;
4045
+ lateStart?: string | undefined;
4046
+ lateFinish?: string | undefined;
4047
+ totalFloat?: number | undefined;
4048
+ freeFloat?: number | undefined;
4049
+ resourceAssignments?: {
4050
+ resourceId: string;
4051
+ units: number;
4052
+ startDate?: string | undefined;
4053
+ endDate?: string | undefined;
4054
+ }[] | undefined;
4055
+ linkedTaskIds?: string[] | undefined;
4056
+ hasChildren?: boolean | undefined;
4057
+ };
4058
+ };
4059
+ }>;
4060
+ export declare const ScheduleResourceListResponseSchema: z.ZodObject<{
4061
+ data: z.ZodArray<z.ZodObject<{
4062
+ type: z.ZodLiteral<"schedule-resources">;
4063
+ id: z.ZodString;
4064
+ attributes: z.ZodObject<{
4065
+ id: z.ZodString;
4066
+ name: z.ZodString;
4067
+ type: z.ZodEnum<["LABOR", "EQUIPMENT", "MATERIAL", "SUBCONTRACTOR"]>;
4068
+ capacity: z.ZodNumber;
4069
+ cost: z.ZodOptional<z.ZodNumber>;
4070
+ availability: z.ZodDefault<z.ZodArray<z.ZodObject<{
4071
+ startDate: z.ZodString;
4072
+ endDate: z.ZodString;
4073
+ capacity: z.ZodNumber;
4074
+ }, "strip", z.ZodTypeAny, {
4075
+ startDate: string;
4076
+ endDate: string;
4077
+ capacity: number;
4078
+ }, {
4079
+ startDate: string;
4080
+ endDate: string;
4081
+ capacity: number;
4082
+ }>, "many">>;
4083
+ }, "strip", z.ZodTypeAny, {
4084
+ id: string;
4085
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
4086
+ name: string;
4087
+ availability: {
4088
+ startDate: string;
4089
+ endDate: string;
4090
+ capacity: number;
4091
+ }[];
4092
+ capacity: number;
4093
+ cost?: number | undefined;
4094
+ }, {
4095
+ id: string;
4096
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
4097
+ name: string;
4098
+ capacity: number;
4099
+ cost?: number | undefined;
4100
+ availability?: {
4101
+ startDate: string;
4102
+ endDate: string;
4103
+ capacity: number;
4104
+ }[] | undefined;
4105
+ }>;
4106
+ }, "strip", z.ZodTypeAny, {
4107
+ id: string;
4108
+ type: "schedule-resources";
4109
+ attributes: {
4110
+ id: string;
4111
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
4112
+ name: string;
4113
+ availability: {
4114
+ startDate: string;
4115
+ endDate: string;
4116
+ capacity: number;
4117
+ }[];
4118
+ capacity: number;
4119
+ cost?: number | undefined;
4120
+ };
4121
+ }, {
4122
+ id: string;
4123
+ type: "schedule-resources";
4124
+ attributes: {
4125
+ id: string;
4126
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
4127
+ name: string;
4128
+ capacity: number;
4129
+ cost?: number | undefined;
4130
+ availability?: {
4131
+ startDate: string;
4132
+ endDate: string;
4133
+ capacity: number;
4134
+ }[] | undefined;
4135
+ };
4136
+ }>, "many">;
4137
+ meta: z.ZodObject<{
4138
+ page: z.ZodNumber;
4139
+ limit: z.ZodNumber;
4140
+ total: z.ZodNumber;
4141
+ totalPages: z.ZodNumber;
4142
+ }, "strip", z.ZodTypeAny, {
4143
+ page: number;
4144
+ limit: number;
4145
+ total: number;
4146
+ totalPages: number;
4147
+ }, {
4148
+ page: number;
4149
+ limit: number;
4150
+ total: number;
4151
+ totalPages: number;
4152
+ }>;
4153
+ }, "strip", z.ZodTypeAny, {
4154
+ meta: {
4155
+ page: number;
4156
+ limit: number;
4157
+ total: number;
4158
+ totalPages: number;
4159
+ };
4160
+ data: {
4161
+ id: string;
4162
+ type: "schedule-resources";
4163
+ attributes: {
4164
+ id: string;
4165
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
4166
+ name: string;
4167
+ availability: {
4168
+ startDate: string;
4169
+ endDate: string;
4170
+ capacity: number;
4171
+ }[];
4172
+ capacity: number;
4173
+ cost?: number | undefined;
4174
+ };
4175
+ }[];
4176
+ }, {
4177
+ meta: {
4178
+ page: number;
4179
+ limit: number;
4180
+ total: number;
4181
+ totalPages: number;
4182
+ };
4183
+ data: {
4184
+ id: string;
4185
+ type: "schedule-resources";
4186
+ attributes: {
4187
+ id: string;
4188
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
4189
+ name: string;
4190
+ capacity: number;
4191
+ cost?: number | undefined;
4192
+ availability?: {
4193
+ startDate: string;
4194
+ endDate: string;
4195
+ capacity: number;
4196
+ }[] | undefined;
4197
+ };
4198
+ }[];
4199
+ }>;
4200
+ export declare const ScheduleResourceResponseSchema: z.ZodObject<{
4201
+ data: z.ZodObject<{
4202
+ type: z.ZodLiteral<"schedule-resources">;
4203
+ id: z.ZodString;
4204
+ attributes: z.ZodObject<{
4205
+ id: z.ZodString;
4206
+ name: z.ZodString;
4207
+ type: z.ZodEnum<["LABOR", "EQUIPMENT", "MATERIAL", "SUBCONTRACTOR"]>;
4208
+ capacity: z.ZodNumber;
4209
+ cost: z.ZodOptional<z.ZodNumber>;
4210
+ availability: z.ZodDefault<z.ZodArray<z.ZodObject<{
4211
+ startDate: z.ZodString;
4212
+ endDate: z.ZodString;
4213
+ capacity: z.ZodNumber;
4214
+ }, "strip", z.ZodTypeAny, {
4215
+ startDate: string;
4216
+ endDate: string;
4217
+ capacity: number;
4218
+ }, {
4219
+ startDate: string;
4220
+ endDate: string;
4221
+ capacity: number;
4222
+ }>, "many">>;
4223
+ }, "strip", z.ZodTypeAny, {
4224
+ id: string;
4225
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
4226
+ name: string;
4227
+ availability: {
4228
+ startDate: string;
4229
+ endDate: string;
4230
+ capacity: number;
4231
+ }[];
4232
+ capacity: number;
4233
+ cost?: number | undefined;
4234
+ }, {
4235
+ id: string;
4236
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
4237
+ name: string;
4238
+ capacity: number;
4239
+ cost?: number | undefined;
4240
+ availability?: {
4241
+ startDate: string;
4242
+ endDate: string;
4243
+ capacity: number;
4244
+ }[] | undefined;
4245
+ }>;
4246
+ }, "strip", z.ZodTypeAny, {
4247
+ id: string;
4248
+ type: "schedule-resources";
4249
+ attributes: {
4250
+ id: string;
4251
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
4252
+ name: string;
4253
+ availability: {
4254
+ startDate: string;
4255
+ endDate: string;
4256
+ capacity: number;
4257
+ }[];
4258
+ capacity: number;
4259
+ cost?: number | undefined;
4260
+ };
4261
+ }, {
4262
+ id: string;
4263
+ type: "schedule-resources";
4264
+ attributes: {
4265
+ id: string;
4266
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
4267
+ name: string;
4268
+ capacity: number;
4269
+ cost?: number | undefined;
4270
+ availability?: {
4271
+ startDate: string;
4272
+ endDate: string;
4273
+ capacity: number;
4274
+ }[] | undefined;
4275
+ };
4276
+ }>;
4277
+ }, "strip", z.ZodTypeAny, {
4278
+ data: {
4279
+ id: string;
4280
+ type: "schedule-resources";
4281
+ attributes: {
4282
+ id: string;
4283
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
4284
+ name: string;
4285
+ availability: {
4286
+ startDate: string;
4287
+ endDate: string;
4288
+ capacity: number;
4289
+ }[];
4290
+ capacity: number;
4291
+ cost?: number | undefined;
4292
+ };
4293
+ };
4294
+ }, {
4295
+ data: {
4296
+ id: string;
4297
+ type: "schedule-resources";
4298
+ attributes: {
4299
+ id: string;
4300
+ type: "SUBCONTRACTOR" | "LABOR" | "EQUIPMENT" | "MATERIAL";
4301
+ name: string;
4302
+ capacity: number;
4303
+ cost?: number | undefined;
4304
+ availability?: {
4305
+ startDate: string;
4306
+ endDate: string;
4307
+ capacity: number;
4308
+ }[] | undefined;
4309
+ };
4310
+ };
4311
+ }>;
4312
+ export declare const ScheduleBaselineListResponseSchema: z.ZodObject<{
4313
+ data: z.ZodArray<z.ZodObject<{
4314
+ type: z.ZodLiteral<"schedule-baselines">;
4315
+ id: z.ZodString;
4316
+ attributes: z.ZodObject<{
4317
+ id: z.ZodString;
4318
+ projectId: z.ZodString;
4319
+ name: z.ZodString;
4320
+ description: z.ZodOptional<z.ZodString>;
4321
+ baselineDate: z.ZodString;
4322
+ isActive: z.ZodDefault<z.ZodBoolean>;
4323
+ items: z.ZodArray<z.ZodObject<{
4324
+ itemId: z.ZodString;
4325
+ startDate: z.ZodString;
4326
+ endDate: z.ZodString;
4327
+ duration: z.ZodNumber;
4328
+ }, "strip", z.ZodTypeAny, {
4329
+ itemId: string;
4330
+ startDate: string;
4331
+ endDate: string;
4332
+ duration: number;
4333
+ }, {
4334
+ itemId: string;
4335
+ startDate: string;
4336
+ endDate: string;
4337
+ duration: number;
4338
+ }>, "many">;
4339
+ createdById: z.ZodString;
4340
+ createdAt: z.ZodString;
4341
+ }, "strip", z.ZodTypeAny, {
4342
+ id: string;
4343
+ createdAt: string;
4344
+ isActive: boolean;
4345
+ projectId: string;
4346
+ name: string;
4347
+ items: {
4348
+ itemId: string;
4349
+ startDate: string;
4350
+ endDate: string;
4351
+ duration: number;
4352
+ }[];
4353
+ createdById: string;
4354
+ baselineDate: string;
4355
+ description?: string | undefined;
4356
+ }, {
4357
+ id: string;
4358
+ createdAt: string;
4359
+ projectId: string;
4360
+ name: string;
4361
+ items: {
4362
+ itemId: string;
4363
+ startDate: string;
4364
+ endDate: string;
4365
+ duration: number;
4366
+ }[];
4367
+ createdById: string;
4368
+ baselineDate: string;
4369
+ isActive?: boolean | undefined;
4370
+ description?: string | undefined;
4371
+ }>;
4372
+ }, "strip", z.ZodTypeAny, {
4373
+ id: string;
4374
+ type: "schedule-baselines";
4375
+ attributes: {
4376
+ id: string;
4377
+ createdAt: string;
4378
+ isActive: boolean;
4379
+ projectId: string;
4380
+ name: string;
4381
+ items: {
4382
+ itemId: string;
4383
+ startDate: string;
4384
+ endDate: string;
4385
+ duration: number;
4386
+ }[];
4387
+ createdById: string;
4388
+ baselineDate: string;
4389
+ description?: string | undefined;
4390
+ };
4391
+ }, {
4392
+ id: string;
4393
+ type: "schedule-baselines";
4394
+ attributes: {
4395
+ id: string;
4396
+ createdAt: string;
4397
+ projectId: string;
4398
+ name: string;
4399
+ items: {
4400
+ itemId: string;
4401
+ startDate: string;
4402
+ endDate: string;
4403
+ duration: number;
4404
+ }[];
4405
+ createdById: string;
4406
+ baselineDate: string;
4407
+ isActive?: boolean | undefined;
4408
+ description?: string | undefined;
4409
+ };
4410
+ }>, "many">;
4411
+ meta: z.ZodObject<{
4412
+ page: z.ZodNumber;
4413
+ limit: z.ZodNumber;
4414
+ total: z.ZodNumber;
4415
+ totalPages: z.ZodNumber;
4416
+ }, "strip", z.ZodTypeAny, {
4417
+ page: number;
4418
+ limit: number;
4419
+ total: number;
4420
+ totalPages: number;
4421
+ }, {
4422
+ page: number;
4423
+ limit: number;
4424
+ total: number;
4425
+ totalPages: number;
4426
+ }>;
4427
+ }, "strip", z.ZodTypeAny, {
4428
+ meta: {
4429
+ page: number;
4430
+ limit: number;
4431
+ total: number;
4432
+ totalPages: number;
4433
+ };
4434
+ data: {
4435
+ id: string;
4436
+ type: "schedule-baselines";
4437
+ attributes: {
4438
+ id: string;
4439
+ createdAt: string;
4440
+ isActive: boolean;
4441
+ projectId: string;
4442
+ name: string;
4443
+ items: {
4444
+ itemId: string;
4445
+ startDate: string;
4446
+ endDate: string;
4447
+ duration: number;
4448
+ }[];
4449
+ createdById: string;
4450
+ baselineDate: string;
4451
+ description?: string | undefined;
4452
+ };
4453
+ }[];
4454
+ }, {
4455
+ meta: {
4456
+ page: number;
4457
+ limit: number;
4458
+ total: number;
4459
+ totalPages: number;
4460
+ };
4461
+ data: {
4462
+ id: string;
4463
+ type: "schedule-baselines";
4464
+ attributes: {
4465
+ id: string;
4466
+ createdAt: string;
4467
+ projectId: string;
4468
+ name: string;
4469
+ items: {
4470
+ itemId: string;
4471
+ startDate: string;
4472
+ endDate: string;
4473
+ duration: number;
4474
+ }[];
4475
+ createdById: string;
4476
+ baselineDate: string;
4477
+ isActive?: boolean | undefined;
4478
+ description?: string | undefined;
4479
+ };
4480
+ }[];
4481
+ }>;
4482
+ export declare const ScheduleBaselineResponseSchema: z.ZodObject<{
4483
+ data: z.ZodObject<{
4484
+ type: z.ZodLiteral<"schedule-baselines">;
4485
+ id: z.ZodString;
4486
+ attributes: z.ZodObject<{
4487
+ id: z.ZodString;
4488
+ projectId: z.ZodString;
4489
+ name: z.ZodString;
4490
+ description: z.ZodOptional<z.ZodString>;
4491
+ baselineDate: z.ZodString;
4492
+ isActive: z.ZodDefault<z.ZodBoolean>;
4493
+ items: z.ZodArray<z.ZodObject<{
4494
+ itemId: z.ZodString;
4495
+ startDate: z.ZodString;
4496
+ endDate: z.ZodString;
4497
+ duration: z.ZodNumber;
4498
+ }, "strip", z.ZodTypeAny, {
4499
+ itemId: string;
4500
+ startDate: string;
4501
+ endDate: string;
4502
+ duration: number;
4503
+ }, {
4504
+ itemId: string;
4505
+ startDate: string;
4506
+ endDate: string;
4507
+ duration: number;
4508
+ }>, "many">;
4509
+ createdById: z.ZodString;
4510
+ createdAt: z.ZodString;
4511
+ }, "strip", z.ZodTypeAny, {
4512
+ id: string;
4513
+ createdAt: string;
4514
+ isActive: boolean;
4515
+ projectId: string;
4516
+ name: string;
4517
+ items: {
4518
+ itemId: string;
4519
+ startDate: string;
4520
+ endDate: string;
4521
+ duration: number;
4522
+ }[];
4523
+ createdById: string;
4524
+ baselineDate: string;
4525
+ description?: string | undefined;
4526
+ }, {
4527
+ id: string;
4528
+ createdAt: string;
4529
+ projectId: string;
4530
+ name: string;
4531
+ items: {
4532
+ itemId: string;
4533
+ startDate: string;
4534
+ endDate: string;
4535
+ duration: number;
4536
+ }[];
4537
+ createdById: string;
4538
+ baselineDate: string;
4539
+ isActive?: boolean | undefined;
4540
+ description?: string | undefined;
4541
+ }>;
4542
+ }, "strip", z.ZodTypeAny, {
4543
+ id: string;
4544
+ type: "schedule-baselines";
4545
+ attributes: {
4546
+ id: string;
4547
+ createdAt: string;
4548
+ isActive: boolean;
4549
+ projectId: string;
4550
+ name: string;
4551
+ items: {
4552
+ itemId: string;
4553
+ startDate: string;
4554
+ endDate: string;
4555
+ duration: number;
4556
+ }[];
4557
+ createdById: string;
4558
+ baselineDate: string;
4559
+ description?: string | undefined;
4560
+ };
4561
+ }, {
4562
+ id: string;
4563
+ type: "schedule-baselines";
4564
+ attributes: {
4565
+ id: string;
4566
+ createdAt: string;
4567
+ projectId: string;
4568
+ name: string;
4569
+ items: {
4570
+ itemId: string;
4571
+ startDate: string;
4572
+ endDate: string;
4573
+ duration: number;
4574
+ }[];
4575
+ createdById: string;
4576
+ baselineDate: string;
4577
+ isActive?: boolean | undefined;
4578
+ description?: string | undefined;
4579
+ };
4580
+ }>;
4581
+ }, "strip", z.ZodTypeAny, {
4582
+ data: {
4583
+ id: string;
4584
+ type: "schedule-baselines";
4585
+ attributes: {
4586
+ id: string;
4587
+ createdAt: string;
4588
+ isActive: boolean;
4589
+ projectId: string;
4590
+ name: string;
4591
+ items: {
4592
+ itemId: string;
4593
+ startDate: string;
4594
+ endDate: string;
4595
+ duration: number;
4596
+ }[];
4597
+ createdById: string;
4598
+ baselineDate: string;
4599
+ description?: string | undefined;
4600
+ };
4601
+ };
4602
+ }, {
4603
+ data: {
4604
+ id: string;
4605
+ type: "schedule-baselines";
4606
+ attributes: {
4607
+ id: string;
4608
+ createdAt: string;
4609
+ projectId: string;
4610
+ name: string;
4611
+ items: {
4612
+ itemId: string;
4613
+ startDate: string;
4614
+ endDate: string;
4615
+ duration: number;
4616
+ }[];
4617
+ createdById: string;
4618
+ baselineDate: string;
4619
+ isActive?: boolean | undefined;
4620
+ description?: string | undefined;
4621
+ };
4622
+ };
4623
+ }>;
4624
+ export type ScheduleItem = z.infer<typeof ScheduleItemSchema>;
4625
+ export type CreateScheduleItemRequest = z.infer<typeof CreateScheduleItemSchema>;
4626
+ export type UpdateScheduleItemRequest = z.infer<typeof UpdateScheduleItemSchema>;
4627
+ export type ScheduleFilters = z.infer<typeof ScheduleFiltersSchema>;
4628
+ export type ScheduleItemType = z.infer<typeof ScheduleItemTypeSchema>;
4629
+ export type ScheduleItemStatus = z.infer<typeof ScheduleItemStatusSchema>;
4630
+ export type SchedulePriority = z.infer<typeof SchedulePrioritySchema>;
4631
+ export type DependencyType = z.infer<typeof DependencyTypeSchema>;
4632
+ export type ResourceType = z.infer<typeof ResourceTypeSchema>;
4633
+ export type ScheduleDependency = z.infer<typeof ScheduleDependencySchema>;
4634
+ export type ScheduleResource = z.infer<typeof ScheduleResourceSchema>;
4635
+ export type CreateScheduleResourceRequest = z.infer<typeof CreateScheduleResourceSchema>;
4636
+ export type UpdateScheduleResourceRequest = z.infer<typeof UpdateScheduleResourceSchema>;
4637
+ export type ScheduleResourceAssignment = z.infer<typeof ScheduleResourceAssignmentSchema>;
4638
+ export type GanttChartItem = z.infer<typeof GanttChartItemSchema>;
4639
+ export type GanttChart = z.infer<typeof GanttChartSchema>;
4640
+ export type GanttChartQuery = z.infer<typeof GanttChartQuerySchema>;
4641
+ export type CriticalPathAnalysis = z.infer<typeof CriticalPathAnalysisSchema>;
4642
+ export type ResourceUtilization = z.infer<typeof ResourceUtilizationSchema>;
4643
+ export type ResourceLeveling = z.infer<typeof ResourceLevelingSchema>;
4644
+ export type ResourceAnalytics = z.infer<typeof ResourceAnalyticsSchema>;
4645
+ export type ScheduleBaseline = z.infer<typeof ScheduleBaselineSchema>;
4646
+ export type CreateBaselineRequest = z.infer<typeof CreateBaselineSchema>;
4647
+ export type BaselineComparison = z.infer<typeof BaselineComparisonSchema>;
4648
+ export type BulkScheduleUpdate = z.infer<typeof BulkScheduleUpdateSchema>;
4649
+ export type BulkOperationResult = z.infer<typeof BulkOperationResultSchema>;
4650
+ export type ScheduleItemResource = z.infer<typeof ScheduleItemResourceSchema>;
4651
+ export type ScheduleResourceResource = z.infer<typeof ScheduleResourceResourceSchema>;
4652
+ export type GanttChartResource = z.infer<typeof GanttChartResourceSchema>;
4653
+ export type CriticalPathResource = z.infer<typeof CriticalPathResourceSchema>;
4654
+ export type ScheduleBaselineResource = z.infer<typeof ScheduleBaselineResourceSchema>;
4655
+ export type ResourceUtilizationResource = z.infer<typeof ResourceUtilizationResourceSchema>;
4656
+ export type ResourceLevelingResource = z.infer<typeof ResourceLevelingResourceSchema>;
4657
+ //# sourceMappingURL=schedule.d.ts.map