@deepintel-ltd/buildlink-api-contracts 0.2.29 → 0.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/contracts/auth.d.ts +68 -68
- package/contracts/boq.d.ts +18 -18
- package/contracts/budget.d.ts +1969 -173
- package/contracts/budget.d.ts.map +1 -1
- package/contracts/budget.js +36 -1
- package/contracts/budget.js.map +1 -1
- package/contracts/communication.d.ts +560 -0
- package/contracts/communication.d.ts.map +1 -1
- package/contracts/contractor-ledger.d.ts +508 -12
- package/contracts/contractor-ledger.d.ts.map +1 -1
- package/contracts/contractor-ledger.js +29 -1
- package/contracts/contractor-ledger.js.map +1 -1
- package/contracts/daily-logs.d.ts +1362 -74
- package/contracts/daily-logs.d.ts.map +1 -1
- package/contracts/deficiencies.d.ts +4516 -436
- package/contracts/deficiencies.d.ts.map +1 -1
- package/contracts/deficiencies.js +99 -1
- package/contracts/deficiencies.js.map +1 -1
- package/contracts/directory.d.ts +48 -48
- package/contracts/documents.d.ts +149 -149
- package/contracts/drawings.d.ts +246 -246
- package/contracts/hub.d.ts +18 -18
- package/contracts/index.d.ts +3 -2
- package/contracts/index.d.ts.map +1 -1
- package/contracts/index.js +2 -2
- package/contracts/index.js.map +1 -1
- package/contracts/maps.d.ts +42 -42
- package/contracts/packages.d.ts +24 -24
- package/contracts/projects.d.ts +610 -50
- package/contracts/projects.d.ts.map +1 -1
- package/contracts/proof.d.ts +694 -0
- package/contracts/proof.d.ts.map +1 -1
- package/contracts/proof.js +41 -1
- package/contracts/proof.js.map +1 -1
- package/contracts/qaqc.d.ts +546 -0
- package/contracts/qaqc.d.ts.map +1 -1
- package/contracts/qaqc.js +15 -1
- package/contracts/qaqc.js.map +1 -1
- package/contracts/rbac.d.ts +6 -6
- package/contracts/resources.d.ts +60 -60
- package/contracts/rfi-submittal.d.ts +128 -128
- package/contracts/safety.d.ts +2156 -162
- package/contracts/safety.d.ts.map +1 -1
- package/contracts/safety.js +44 -1
- package/contracts/safety.js.map +1 -1
- package/contracts/schedule.d.ts +84 -84
- package/contracts/specifications.d.ts +156 -156
- package/contracts/tasks.d.ts +2312 -229
- package/contracts/tasks.d.ts.map +1 -1
- package/contracts/tasks.js +55 -1
- package/contracts/tasks.js.map +1 -1
- package/contracts/timecards.d.ts +32 -32
- package/contracts/valuations.d.ts +64 -64
- package/package.json +1 -1
- package/schemas/auth.d.ts +36 -36
- package/schemas/boq.d.ts +6 -6
- package/schemas/budget.d.ts +168 -4
- package/schemas/budget.d.ts.map +1 -1
- package/schemas/budget.js +31 -1
- package/schemas/budget.js.map +1 -1
- package/schemas/common.d.ts +37 -0
- package/schemas/common.d.ts.map +1 -1
- package/schemas/common.js +34 -0
- package/schemas/common.js.map +1 -1
- package/schemas/common.person-summary.spec.d.ts +2 -0
- package/schemas/common.person-summary.spec.d.ts.map +1 -0
- package/schemas/common.person-summary.spec.js +33 -0
- package/schemas/common.person-summary.spec.js.map +1 -0
- package/schemas/communication.d.ts +94 -0
- package/schemas/communication.d.ts.map +1 -1
- package/schemas/communication.js +3 -1
- package/schemas/communication.js.map +1 -1
- package/schemas/contractor-ledger.d.ts +77 -6
- package/schemas/contractor-ledger.d.ts.map +1 -1
- package/schemas/contractor-ledger.js +13 -0
- package/schemas/contractor-ledger.js.map +1 -1
- package/schemas/daily-logs.d.ts +232 -22
- package/schemas/daily-logs.d.ts.map +1 -1
- package/schemas/daily-logs.js +7 -1
- package/schemas/daily-logs.js.map +1 -1
- package/schemas/deficiencies.d.ts +793 -100
- package/schemas/deficiencies.d.ts.map +1 -1
- package/schemas/deficiencies.js +79 -6
- package/schemas/deficiencies.js.map +1 -1
- package/schemas/directory.d.ts +20 -20
- package/schemas/documents.d.ts +3 -3
- package/schemas/drawings.d.ts +74 -74
- package/schemas/hub.d.ts +6 -6
- package/schemas/maps.d.ts +6 -6
- package/schemas/packages.d.ts +6 -6
- package/schemas/projects.d.ts +8 -8
- package/schemas/proof.d.ts +20 -0
- package/schemas/proof.d.ts.map +1 -1
- package/schemas/proof.js +7 -0
- package/schemas/proof.js.map +1 -1
- package/schemas/qaqc.d.ts +74 -0
- package/schemas/qaqc.d.ts.map +1 -1
- package/schemas/qaqc.js +26 -1
- package/schemas/qaqc.js.map +1 -1
- package/schemas/resources.d.ts +18 -18
- package/schemas/rfi.d.ts +52 -52
- package/schemas/safety.d.ts +491 -0
- package/schemas/safety.d.ts.map +1 -1
- package/schemas/safety.js +54 -1
- package/schemas/safety.js.map +1 -1
- package/schemas/schedule.d.ts +68 -68
- package/schemas/specifications.d.ts +134 -134
- package/schemas/submittal.d.ts +52 -52
- package/schemas/tasks.d.ts +111 -23
- package/schemas/tasks.d.ts.map +1 -1
- package/schemas/tasks.js +11 -2
- package/schemas/tasks.js.map +1 -1
- package/schemas/timecards.d.ts +6 -6
- package/schemas/valuations.d.ts +12 -12
|
@@ -44,40 +44,495 @@ export declare const DeficiencyLocationSchema: z.ZodObject<{
|
|
|
44
44
|
export declare const DeficiencyPhotoSchema: z.ZodObject<{
|
|
45
45
|
url: z.ZodString;
|
|
46
46
|
caption: z.ZodOptional<z.ZodString>;
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
objectKey: z.ZodOptional<z.ZodString>;
|
|
48
|
+
addedBy: z.ZodOptional<z.ZodString>;
|
|
49
|
+
addedAt: z.ZodOptional<z.ZodString>;
|
|
49
50
|
}, "strip", z.ZodTypeAny, {
|
|
50
51
|
url: string;
|
|
51
|
-
addedBy: string;
|
|
52
|
-
addedAt: string;
|
|
53
52
|
caption?: string | undefined;
|
|
53
|
+
objectKey?: string | undefined;
|
|
54
|
+
addedBy?: string | undefined;
|
|
55
|
+
addedAt?: string | undefined;
|
|
54
56
|
}, {
|
|
55
57
|
url: string;
|
|
56
|
-
addedBy: string;
|
|
57
|
-
addedAt: string;
|
|
58
58
|
caption?: string | undefined;
|
|
59
|
+
objectKey?: string | undefined;
|
|
60
|
+
addedBy?: string | undefined;
|
|
61
|
+
addedAt?: string | undefined;
|
|
59
62
|
}>;
|
|
60
63
|
export declare const DeficiencyAttachmentSchema: z.ZodObject<{
|
|
61
64
|
url: z.ZodString;
|
|
62
65
|
filename: z.ZodString;
|
|
63
66
|
fileSize: z.ZodNumber;
|
|
64
67
|
mimeType: z.ZodString;
|
|
65
|
-
|
|
66
|
-
|
|
68
|
+
objectKey: z.ZodOptional<z.ZodString>;
|
|
69
|
+
addedBy: z.ZodOptional<z.ZodString>;
|
|
70
|
+
addedAt: z.ZodOptional<z.ZodString>;
|
|
67
71
|
}, "strip", z.ZodTypeAny, {
|
|
68
72
|
url: string;
|
|
69
73
|
filename: string;
|
|
70
|
-
addedBy: string;
|
|
71
|
-
addedAt: string;
|
|
72
74
|
fileSize: number;
|
|
73
75
|
mimeType: string;
|
|
76
|
+
objectKey?: string | undefined;
|
|
77
|
+
addedBy?: string | undefined;
|
|
78
|
+
addedAt?: string | undefined;
|
|
74
79
|
}, {
|
|
75
80
|
url: string;
|
|
76
81
|
filename: string;
|
|
77
|
-
addedBy: string;
|
|
78
|
-
addedAt: string;
|
|
79
82
|
fileSize: number;
|
|
80
83
|
mimeType: string;
|
|
84
|
+
objectKey?: string | undefined;
|
|
85
|
+
addedBy?: string | undefined;
|
|
86
|
+
addedAt?: string | undefined;
|
|
87
|
+
}>;
|
|
88
|
+
export declare const DeficiencyMediaKindSchema: z.ZodEnum<["photo", "attachment"]>;
|
|
89
|
+
export declare const PresignDeficiencyMediaRequestSchema: z.ZodObject<{
|
|
90
|
+
filename: z.ZodString;
|
|
91
|
+
contentType: z.ZodString;
|
|
92
|
+
kind: z.ZodEnum<["photo", "attachment"]>;
|
|
93
|
+
fileSize: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
contentType: string;
|
|
96
|
+
filename: string;
|
|
97
|
+
kind: "photo" | "attachment";
|
|
98
|
+
fileSize?: number | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
contentType: string;
|
|
101
|
+
filename: string;
|
|
102
|
+
kind: "photo" | "attachment";
|
|
103
|
+
fileSize?: number | undefined;
|
|
104
|
+
}>;
|
|
105
|
+
export declare const PresignDeficiencyMediaResponseSchema: z.ZodObject<{
|
|
106
|
+
uploadUrl: z.ZodString;
|
|
107
|
+
objectKey: z.ZodString;
|
|
108
|
+
fileUrl: z.ZodString;
|
|
109
|
+
publicUrl: z.ZodOptional<z.ZodString>;
|
|
110
|
+
expiresIn: z.ZodNumber;
|
|
111
|
+
kind: z.ZodEnum<["photo", "attachment"]>;
|
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
expiresIn: number;
|
|
114
|
+
kind: "photo" | "attachment";
|
|
115
|
+
objectKey: string;
|
|
116
|
+
uploadUrl: string;
|
|
117
|
+
fileUrl: string;
|
|
118
|
+
publicUrl?: string | undefined;
|
|
119
|
+
}, {
|
|
120
|
+
expiresIn: number;
|
|
121
|
+
kind: "photo" | "attachment";
|
|
122
|
+
objectKey: string;
|
|
123
|
+
uploadUrl: string;
|
|
124
|
+
fileUrl: string;
|
|
125
|
+
publicUrl?: string | undefined;
|
|
126
|
+
}>;
|
|
127
|
+
export declare const ConfirmDeficiencyMediaRequestSchema: z.ZodObject<{
|
|
128
|
+
objectKey: z.ZodString;
|
|
129
|
+
kind: z.ZodEnum<["photo", "attachment"]>;
|
|
130
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
131
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
132
|
+
fileSize: z.ZodOptional<z.ZodNumber>;
|
|
133
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
kind: "photo" | "attachment";
|
|
136
|
+
objectKey: string;
|
|
137
|
+
caption?: string | undefined;
|
|
138
|
+
filename?: string | undefined;
|
|
139
|
+
fileSize?: number | undefined;
|
|
140
|
+
mimeType?: string | undefined;
|
|
141
|
+
}, {
|
|
142
|
+
kind: "photo" | "attachment";
|
|
143
|
+
objectKey: string;
|
|
144
|
+
caption?: string | undefined;
|
|
145
|
+
filename?: string | undefined;
|
|
146
|
+
fileSize?: number | undefined;
|
|
147
|
+
mimeType?: string | undefined;
|
|
148
|
+
}>;
|
|
149
|
+
export declare const DeficiencyActivityTypeSchema: z.ZodEnum<["CREATED", "STATUS_CHANGED", "ASSIGNED", "COMMENT_ADDED", "MEDIA_ADDED", "UPDATED"]>;
|
|
150
|
+
export declare const DeficiencyCommentSchema: z.ZodObject<{
|
|
151
|
+
id: z.ZodString;
|
|
152
|
+
deficiencyId: z.ZodString;
|
|
153
|
+
authorId: z.ZodString;
|
|
154
|
+
content: z.ZodString;
|
|
155
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
156
|
+
id: z.ZodString;
|
|
157
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
158
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
159
|
+
email: z.ZodOptional<z.ZodString>;
|
|
160
|
+
name: z.ZodOptional<z.ZodString>;
|
|
161
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
163
|
+
id: string;
|
|
164
|
+
firstName?: string | null | undefined;
|
|
165
|
+
lastName?: string | null | undefined;
|
|
166
|
+
email?: string | undefined;
|
|
167
|
+
name?: string | undefined;
|
|
168
|
+
avatar?: string | null | undefined;
|
|
169
|
+
}, {
|
|
170
|
+
id: string;
|
|
171
|
+
firstName?: string | null | undefined;
|
|
172
|
+
lastName?: string | null | undefined;
|
|
173
|
+
email?: string | undefined;
|
|
174
|
+
name?: string | undefined;
|
|
175
|
+
avatar?: string | null | undefined;
|
|
176
|
+
}>>;
|
|
177
|
+
createdAt: z.ZodString;
|
|
178
|
+
updatedAt: z.ZodString;
|
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
id: string;
|
|
181
|
+
createdAt: string;
|
|
182
|
+
updatedAt: string;
|
|
183
|
+
content: string;
|
|
184
|
+
authorId: string;
|
|
185
|
+
deficiencyId: string;
|
|
186
|
+
author?: {
|
|
187
|
+
id: string;
|
|
188
|
+
firstName?: string | null | undefined;
|
|
189
|
+
lastName?: string | null | undefined;
|
|
190
|
+
email?: string | undefined;
|
|
191
|
+
name?: string | undefined;
|
|
192
|
+
avatar?: string | null | undefined;
|
|
193
|
+
} | undefined;
|
|
194
|
+
}, {
|
|
195
|
+
id: string;
|
|
196
|
+
createdAt: string;
|
|
197
|
+
updatedAt: string;
|
|
198
|
+
content: string;
|
|
199
|
+
authorId: string;
|
|
200
|
+
deficiencyId: string;
|
|
201
|
+
author?: {
|
|
202
|
+
id: string;
|
|
203
|
+
firstName?: string | null | undefined;
|
|
204
|
+
lastName?: string | null | undefined;
|
|
205
|
+
email?: string | undefined;
|
|
206
|
+
name?: string | undefined;
|
|
207
|
+
avatar?: string | null | undefined;
|
|
208
|
+
} | undefined;
|
|
209
|
+
}>;
|
|
210
|
+
export declare const CreateDeficiencyCommentRequestSchema: z.ZodObject<{
|
|
211
|
+
content: z.ZodString;
|
|
212
|
+
}, "strip", z.ZodTypeAny, {
|
|
213
|
+
content: string;
|
|
214
|
+
}, {
|
|
215
|
+
content: string;
|
|
216
|
+
}>;
|
|
217
|
+
export declare const DeficiencyActivitySchema: z.ZodObject<{
|
|
218
|
+
id: z.ZodString;
|
|
219
|
+
deficiencyId: z.ZodString;
|
|
220
|
+
actorId: z.ZodString;
|
|
221
|
+
type: z.ZodEnum<["CREATED", "STATUS_CHANGED", "ASSIGNED", "COMMENT_ADDED", "MEDIA_ADDED", "UPDATED"]>;
|
|
222
|
+
message: z.ZodOptional<z.ZodString>;
|
|
223
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
224
|
+
actor: z.ZodOptional<z.ZodObject<{
|
|
225
|
+
id: z.ZodString;
|
|
226
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
227
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
228
|
+
email: z.ZodOptional<z.ZodString>;
|
|
229
|
+
name: z.ZodOptional<z.ZodString>;
|
|
230
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
231
|
+
}, "strip", z.ZodTypeAny, {
|
|
232
|
+
id: string;
|
|
233
|
+
firstName?: string | null | undefined;
|
|
234
|
+
lastName?: string | null | undefined;
|
|
235
|
+
email?: string | undefined;
|
|
236
|
+
name?: string | undefined;
|
|
237
|
+
avatar?: string | null | undefined;
|
|
238
|
+
}, {
|
|
239
|
+
id: string;
|
|
240
|
+
firstName?: string | null | undefined;
|
|
241
|
+
lastName?: string | null | undefined;
|
|
242
|
+
email?: string | undefined;
|
|
243
|
+
name?: string | undefined;
|
|
244
|
+
avatar?: string | null | undefined;
|
|
245
|
+
}>>;
|
|
246
|
+
createdAt: z.ZodString;
|
|
247
|
+
}, "strip", z.ZodTypeAny, {
|
|
248
|
+
id: string;
|
|
249
|
+
createdAt: string;
|
|
250
|
+
type: "CREATED" | "STATUS_CHANGED" | "ASSIGNED" | "COMMENT_ADDED" | "MEDIA_ADDED" | "UPDATED";
|
|
251
|
+
actorId: string;
|
|
252
|
+
deficiencyId: string;
|
|
253
|
+
message?: string | undefined;
|
|
254
|
+
metadata?: Record<string, unknown> | undefined;
|
|
255
|
+
actor?: {
|
|
256
|
+
id: string;
|
|
257
|
+
firstName?: string | null | undefined;
|
|
258
|
+
lastName?: string | null | undefined;
|
|
259
|
+
email?: string | undefined;
|
|
260
|
+
name?: string | undefined;
|
|
261
|
+
avatar?: string | null | undefined;
|
|
262
|
+
} | undefined;
|
|
263
|
+
}, {
|
|
264
|
+
id: string;
|
|
265
|
+
createdAt: string;
|
|
266
|
+
type: "CREATED" | "STATUS_CHANGED" | "ASSIGNED" | "COMMENT_ADDED" | "MEDIA_ADDED" | "UPDATED";
|
|
267
|
+
actorId: string;
|
|
268
|
+
deficiencyId: string;
|
|
269
|
+
message?: string | undefined;
|
|
270
|
+
metadata?: Record<string, unknown> | undefined;
|
|
271
|
+
actor?: {
|
|
272
|
+
id: string;
|
|
273
|
+
firstName?: string | null | undefined;
|
|
274
|
+
lastName?: string | null | undefined;
|
|
275
|
+
email?: string | undefined;
|
|
276
|
+
name?: string | undefined;
|
|
277
|
+
avatar?: string | null | undefined;
|
|
278
|
+
} | undefined;
|
|
279
|
+
}>;
|
|
280
|
+
export declare const DeficiencyCommentResourceSchema: z.ZodObject<{
|
|
281
|
+
type: z.ZodLiteral<"deficiency-comments">;
|
|
282
|
+
id: z.ZodString;
|
|
283
|
+
attributes: z.ZodObject<{
|
|
284
|
+
id: z.ZodString;
|
|
285
|
+
deficiencyId: z.ZodString;
|
|
286
|
+
authorId: z.ZodString;
|
|
287
|
+
content: z.ZodString;
|
|
288
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
289
|
+
id: z.ZodString;
|
|
290
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
291
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
292
|
+
email: z.ZodOptional<z.ZodString>;
|
|
293
|
+
name: z.ZodOptional<z.ZodString>;
|
|
294
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
295
|
+
}, "strip", z.ZodTypeAny, {
|
|
296
|
+
id: string;
|
|
297
|
+
firstName?: string | null | undefined;
|
|
298
|
+
lastName?: string | null | undefined;
|
|
299
|
+
email?: string | undefined;
|
|
300
|
+
name?: string | undefined;
|
|
301
|
+
avatar?: string | null | undefined;
|
|
302
|
+
}, {
|
|
303
|
+
id: string;
|
|
304
|
+
firstName?: string | null | undefined;
|
|
305
|
+
lastName?: string | null | undefined;
|
|
306
|
+
email?: string | undefined;
|
|
307
|
+
name?: string | undefined;
|
|
308
|
+
avatar?: string | null | undefined;
|
|
309
|
+
}>>;
|
|
310
|
+
createdAt: z.ZodString;
|
|
311
|
+
updatedAt: z.ZodString;
|
|
312
|
+
}, "strip", z.ZodTypeAny, {
|
|
313
|
+
id: string;
|
|
314
|
+
createdAt: string;
|
|
315
|
+
updatedAt: string;
|
|
316
|
+
content: string;
|
|
317
|
+
authorId: string;
|
|
318
|
+
deficiencyId: string;
|
|
319
|
+
author?: {
|
|
320
|
+
id: string;
|
|
321
|
+
firstName?: string | null | undefined;
|
|
322
|
+
lastName?: string | null | undefined;
|
|
323
|
+
email?: string | undefined;
|
|
324
|
+
name?: string | undefined;
|
|
325
|
+
avatar?: string | null | undefined;
|
|
326
|
+
} | undefined;
|
|
327
|
+
}, {
|
|
328
|
+
id: string;
|
|
329
|
+
createdAt: string;
|
|
330
|
+
updatedAt: string;
|
|
331
|
+
content: string;
|
|
332
|
+
authorId: string;
|
|
333
|
+
deficiencyId: string;
|
|
334
|
+
author?: {
|
|
335
|
+
id: string;
|
|
336
|
+
firstName?: string | null | undefined;
|
|
337
|
+
lastName?: string | null | undefined;
|
|
338
|
+
email?: string | undefined;
|
|
339
|
+
name?: string | undefined;
|
|
340
|
+
avatar?: string | null | undefined;
|
|
341
|
+
} | undefined;
|
|
342
|
+
}>;
|
|
343
|
+
}, "strip", z.ZodTypeAny, {
|
|
344
|
+
id: string;
|
|
345
|
+
type: "deficiency-comments";
|
|
346
|
+
attributes: {
|
|
347
|
+
id: string;
|
|
348
|
+
createdAt: string;
|
|
349
|
+
updatedAt: string;
|
|
350
|
+
content: string;
|
|
351
|
+
authorId: string;
|
|
352
|
+
deficiencyId: string;
|
|
353
|
+
author?: {
|
|
354
|
+
id: string;
|
|
355
|
+
firstName?: string | null | undefined;
|
|
356
|
+
lastName?: string | null | undefined;
|
|
357
|
+
email?: string | undefined;
|
|
358
|
+
name?: string | undefined;
|
|
359
|
+
avatar?: string | null | undefined;
|
|
360
|
+
} | undefined;
|
|
361
|
+
};
|
|
362
|
+
}, {
|
|
363
|
+
id: string;
|
|
364
|
+
type: "deficiency-comments";
|
|
365
|
+
attributes: {
|
|
366
|
+
id: string;
|
|
367
|
+
createdAt: string;
|
|
368
|
+
updatedAt: string;
|
|
369
|
+
content: string;
|
|
370
|
+
authorId: string;
|
|
371
|
+
deficiencyId: string;
|
|
372
|
+
author?: {
|
|
373
|
+
id: string;
|
|
374
|
+
firstName?: string | null | undefined;
|
|
375
|
+
lastName?: string | null | undefined;
|
|
376
|
+
email?: string | undefined;
|
|
377
|
+
name?: string | undefined;
|
|
378
|
+
avatar?: string | null | undefined;
|
|
379
|
+
} | undefined;
|
|
380
|
+
};
|
|
381
|
+
}>;
|
|
382
|
+
export declare const DeficiencyActivityResourceSchema: z.ZodObject<{
|
|
383
|
+
type: z.ZodLiteral<"deficiency-activities">;
|
|
384
|
+
id: z.ZodString;
|
|
385
|
+
attributes: z.ZodObject<{
|
|
386
|
+
id: z.ZodString;
|
|
387
|
+
deficiencyId: z.ZodString;
|
|
388
|
+
actorId: z.ZodString;
|
|
389
|
+
type: z.ZodEnum<["CREATED", "STATUS_CHANGED", "ASSIGNED", "COMMENT_ADDED", "MEDIA_ADDED", "UPDATED"]>;
|
|
390
|
+
message: z.ZodOptional<z.ZodString>;
|
|
391
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
392
|
+
actor: z.ZodOptional<z.ZodObject<{
|
|
393
|
+
id: z.ZodString;
|
|
394
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
395
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
396
|
+
email: z.ZodOptional<z.ZodString>;
|
|
397
|
+
name: z.ZodOptional<z.ZodString>;
|
|
398
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
399
|
+
}, "strip", z.ZodTypeAny, {
|
|
400
|
+
id: string;
|
|
401
|
+
firstName?: string | null | undefined;
|
|
402
|
+
lastName?: string | null | undefined;
|
|
403
|
+
email?: string | undefined;
|
|
404
|
+
name?: string | undefined;
|
|
405
|
+
avatar?: string | null | undefined;
|
|
406
|
+
}, {
|
|
407
|
+
id: string;
|
|
408
|
+
firstName?: string | null | undefined;
|
|
409
|
+
lastName?: string | null | undefined;
|
|
410
|
+
email?: string | undefined;
|
|
411
|
+
name?: string | undefined;
|
|
412
|
+
avatar?: string | null | undefined;
|
|
413
|
+
}>>;
|
|
414
|
+
createdAt: z.ZodString;
|
|
415
|
+
}, "strip", z.ZodTypeAny, {
|
|
416
|
+
id: string;
|
|
417
|
+
createdAt: string;
|
|
418
|
+
type: "CREATED" | "STATUS_CHANGED" | "ASSIGNED" | "COMMENT_ADDED" | "MEDIA_ADDED" | "UPDATED";
|
|
419
|
+
actorId: string;
|
|
420
|
+
deficiencyId: string;
|
|
421
|
+
message?: string | undefined;
|
|
422
|
+
metadata?: Record<string, unknown> | undefined;
|
|
423
|
+
actor?: {
|
|
424
|
+
id: string;
|
|
425
|
+
firstName?: string | null | undefined;
|
|
426
|
+
lastName?: string | null | undefined;
|
|
427
|
+
email?: string | undefined;
|
|
428
|
+
name?: string | undefined;
|
|
429
|
+
avatar?: string | null | undefined;
|
|
430
|
+
} | undefined;
|
|
431
|
+
}, {
|
|
432
|
+
id: string;
|
|
433
|
+
createdAt: string;
|
|
434
|
+
type: "CREATED" | "STATUS_CHANGED" | "ASSIGNED" | "COMMENT_ADDED" | "MEDIA_ADDED" | "UPDATED";
|
|
435
|
+
actorId: string;
|
|
436
|
+
deficiencyId: string;
|
|
437
|
+
message?: string | undefined;
|
|
438
|
+
metadata?: Record<string, unknown> | undefined;
|
|
439
|
+
actor?: {
|
|
440
|
+
id: string;
|
|
441
|
+
firstName?: string | null | undefined;
|
|
442
|
+
lastName?: string | null | undefined;
|
|
443
|
+
email?: string | undefined;
|
|
444
|
+
name?: string | undefined;
|
|
445
|
+
avatar?: string | null | undefined;
|
|
446
|
+
} | undefined;
|
|
447
|
+
}>;
|
|
448
|
+
}, "strip", z.ZodTypeAny, {
|
|
449
|
+
id: string;
|
|
450
|
+
type: "deficiency-activities";
|
|
451
|
+
attributes: {
|
|
452
|
+
id: string;
|
|
453
|
+
createdAt: string;
|
|
454
|
+
type: "CREATED" | "STATUS_CHANGED" | "ASSIGNED" | "COMMENT_ADDED" | "MEDIA_ADDED" | "UPDATED";
|
|
455
|
+
actorId: string;
|
|
456
|
+
deficiencyId: string;
|
|
457
|
+
message?: string | undefined;
|
|
458
|
+
metadata?: Record<string, unknown> | undefined;
|
|
459
|
+
actor?: {
|
|
460
|
+
id: string;
|
|
461
|
+
firstName?: string | null | undefined;
|
|
462
|
+
lastName?: string | null | undefined;
|
|
463
|
+
email?: string | undefined;
|
|
464
|
+
name?: string | undefined;
|
|
465
|
+
avatar?: string | null | undefined;
|
|
466
|
+
} | undefined;
|
|
467
|
+
};
|
|
468
|
+
}, {
|
|
469
|
+
id: string;
|
|
470
|
+
type: "deficiency-activities";
|
|
471
|
+
attributes: {
|
|
472
|
+
id: string;
|
|
473
|
+
createdAt: string;
|
|
474
|
+
type: "CREATED" | "STATUS_CHANGED" | "ASSIGNED" | "COMMENT_ADDED" | "MEDIA_ADDED" | "UPDATED";
|
|
475
|
+
actorId: string;
|
|
476
|
+
deficiencyId: string;
|
|
477
|
+
message?: string | undefined;
|
|
478
|
+
metadata?: Record<string, unknown> | undefined;
|
|
479
|
+
actor?: {
|
|
480
|
+
id: string;
|
|
481
|
+
firstName?: string | null | undefined;
|
|
482
|
+
lastName?: string | null | undefined;
|
|
483
|
+
email?: string | undefined;
|
|
484
|
+
name?: string | undefined;
|
|
485
|
+
avatar?: string | null | undefined;
|
|
486
|
+
} | undefined;
|
|
487
|
+
};
|
|
488
|
+
}>;
|
|
489
|
+
export declare const DeficiencyMediaPresignResourceSchema: z.ZodObject<{
|
|
490
|
+
type: z.ZodLiteral<"deficiency-media-presign">;
|
|
491
|
+
id: z.ZodString;
|
|
492
|
+
attributes: z.ZodObject<{
|
|
493
|
+
uploadUrl: z.ZodString;
|
|
494
|
+
objectKey: z.ZodString;
|
|
495
|
+
fileUrl: z.ZodString;
|
|
496
|
+
publicUrl: z.ZodOptional<z.ZodString>;
|
|
497
|
+
expiresIn: z.ZodNumber;
|
|
498
|
+
kind: z.ZodEnum<["photo", "attachment"]>;
|
|
499
|
+
}, "strip", z.ZodTypeAny, {
|
|
500
|
+
expiresIn: number;
|
|
501
|
+
kind: "photo" | "attachment";
|
|
502
|
+
objectKey: string;
|
|
503
|
+
uploadUrl: string;
|
|
504
|
+
fileUrl: string;
|
|
505
|
+
publicUrl?: string | undefined;
|
|
506
|
+
}, {
|
|
507
|
+
expiresIn: number;
|
|
508
|
+
kind: "photo" | "attachment";
|
|
509
|
+
objectKey: string;
|
|
510
|
+
uploadUrl: string;
|
|
511
|
+
fileUrl: string;
|
|
512
|
+
publicUrl?: string | undefined;
|
|
513
|
+
}>;
|
|
514
|
+
}, "strip", z.ZodTypeAny, {
|
|
515
|
+
id: string;
|
|
516
|
+
type: "deficiency-media-presign";
|
|
517
|
+
attributes: {
|
|
518
|
+
expiresIn: number;
|
|
519
|
+
kind: "photo" | "attachment";
|
|
520
|
+
objectKey: string;
|
|
521
|
+
uploadUrl: string;
|
|
522
|
+
fileUrl: string;
|
|
523
|
+
publicUrl?: string | undefined;
|
|
524
|
+
};
|
|
525
|
+
}, {
|
|
526
|
+
id: string;
|
|
527
|
+
type: "deficiency-media-presign";
|
|
528
|
+
attributes: {
|
|
529
|
+
expiresIn: number;
|
|
530
|
+
kind: "photo" | "attachment";
|
|
531
|
+
objectKey: string;
|
|
532
|
+
uploadUrl: string;
|
|
533
|
+
fileUrl: string;
|
|
534
|
+
publicUrl?: string | undefined;
|
|
535
|
+
};
|
|
81
536
|
}>;
|
|
82
537
|
export declare const DeficiencyWorkOrderSchema: z.ZodObject<{
|
|
83
538
|
workOrderNumber: z.ZodOptional<z.ZodString>;
|
|
@@ -174,6 +629,51 @@ export declare const DeficiencySchema: z.ZodObject<{
|
|
|
174
629
|
reportedBy: z.ZodString;
|
|
175
630
|
reportedAt: z.ZodString;
|
|
176
631
|
assignedTo: z.ZodOptional<z.ZodString>;
|
|
632
|
+
/** Nested people for UI display (additive; keep assignedTo/reportedBy ids). */
|
|
633
|
+
assignee: z.ZodOptional<z.ZodObject<{
|
|
634
|
+
id: z.ZodString;
|
|
635
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
636
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
637
|
+
email: z.ZodOptional<z.ZodString>;
|
|
638
|
+
name: z.ZodOptional<z.ZodString>;
|
|
639
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
640
|
+
}, "strip", z.ZodTypeAny, {
|
|
641
|
+
id: string;
|
|
642
|
+
firstName?: string | null | undefined;
|
|
643
|
+
lastName?: string | null | undefined;
|
|
644
|
+
email?: string | undefined;
|
|
645
|
+
name?: string | undefined;
|
|
646
|
+
avatar?: string | null | undefined;
|
|
647
|
+
}, {
|
|
648
|
+
id: string;
|
|
649
|
+
firstName?: string | null | undefined;
|
|
650
|
+
lastName?: string | null | undefined;
|
|
651
|
+
email?: string | undefined;
|
|
652
|
+
name?: string | undefined;
|
|
653
|
+
avatar?: string | null | undefined;
|
|
654
|
+
}>>;
|
|
655
|
+
reporter: z.ZodOptional<z.ZodObject<{
|
|
656
|
+
id: z.ZodString;
|
|
657
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
658
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
659
|
+
email: z.ZodOptional<z.ZodString>;
|
|
660
|
+
name: z.ZodOptional<z.ZodString>;
|
|
661
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
662
|
+
}, "strip", z.ZodTypeAny, {
|
|
663
|
+
id: string;
|
|
664
|
+
firstName?: string | null | undefined;
|
|
665
|
+
lastName?: string | null | undefined;
|
|
666
|
+
email?: string | undefined;
|
|
667
|
+
name?: string | undefined;
|
|
668
|
+
avatar?: string | null | undefined;
|
|
669
|
+
}, {
|
|
670
|
+
id: string;
|
|
671
|
+
firstName?: string | null | undefined;
|
|
672
|
+
lastName?: string | null | undefined;
|
|
673
|
+
email?: string | undefined;
|
|
674
|
+
name?: string | undefined;
|
|
675
|
+
avatar?: string | null | undefined;
|
|
676
|
+
}>>;
|
|
177
677
|
assignedAt: z.ZodOptional<z.ZodString>;
|
|
178
678
|
dueDate: z.ZodOptional<z.ZodString>;
|
|
179
679
|
inspectionDate: z.ZodOptional<z.ZodString>;
|
|
@@ -185,40 +685,46 @@ export declare const DeficiencySchema: z.ZodObject<{
|
|
|
185
685
|
photos: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
186
686
|
url: z.ZodString;
|
|
187
687
|
caption: z.ZodOptional<z.ZodString>;
|
|
188
|
-
|
|
189
|
-
|
|
688
|
+
objectKey: z.ZodOptional<z.ZodString>;
|
|
689
|
+
addedBy: z.ZodOptional<z.ZodString>;
|
|
690
|
+
addedAt: z.ZodOptional<z.ZodString>;
|
|
190
691
|
}, "strip", z.ZodTypeAny, {
|
|
191
692
|
url: string;
|
|
192
|
-
addedBy: string;
|
|
193
|
-
addedAt: string;
|
|
194
693
|
caption?: string | undefined;
|
|
694
|
+
objectKey?: string | undefined;
|
|
695
|
+
addedBy?: string | undefined;
|
|
696
|
+
addedAt?: string | undefined;
|
|
195
697
|
}, {
|
|
196
698
|
url: string;
|
|
197
|
-
addedBy: string;
|
|
198
|
-
addedAt: string;
|
|
199
699
|
caption?: string | undefined;
|
|
700
|
+
objectKey?: string | undefined;
|
|
701
|
+
addedBy?: string | undefined;
|
|
702
|
+
addedAt?: string | undefined;
|
|
200
703
|
}>, "many">>;
|
|
201
704
|
attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
202
705
|
url: z.ZodString;
|
|
203
706
|
filename: z.ZodString;
|
|
204
707
|
fileSize: z.ZodNumber;
|
|
205
708
|
mimeType: z.ZodString;
|
|
206
|
-
|
|
207
|
-
|
|
709
|
+
objectKey: z.ZodOptional<z.ZodString>;
|
|
710
|
+
addedBy: z.ZodOptional<z.ZodString>;
|
|
711
|
+
addedAt: z.ZodOptional<z.ZodString>;
|
|
208
712
|
}, "strip", z.ZodTypeAny, {
|
|
209
713
|
url: string;
|
|
210
714
|
filename: string;
|
|
211
|
-
addedBy: string;
|
|
212
|
-
addedAt: string;
|
|
213
715
|
fileSize: number;
|
|
214
716
|
mimeType: string;
|
|
717
|
+
objectKey?: string | undefined;
|
|
718
|
+
addedBy?: string | undefined;
|
|
719
|
+
addedAt?: string | undefined;
|
|
215
720
|
}, {
|
|
216
721
|
url: string;
|
|
217
722
|
filename: string;
|
|
218
|
-
addedBy: string;
|
|
219
|
-
addedAt: string;
|
|
220
723
|
fileSize: number;
|
|
221
724
|
mimeType: string;
|
|
725
|
+
objectKey?: string | undefined;
|
|
726
|
+
addedBy?: string | undefined;
|
|
727
|
+
addedAt?: string | undefined;
|
|
222
728
|
}>, "many">>;
|
|
223
729
|
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
224
730
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -284,10 +790,11 @@ export declare const DeficiencySchema: z.ZodObject<{
|
|
|
284
790
|
attachments: {
|
|
285
791
|
url: string;
|
|
286
792
|
filename: string;
|
|
287
|
-
addedBy: string;
|
|
288
|
-
addedAt: string;
|
|
289
793
|
fileSize: number;
|
|
290
794
|
mimeType: string;
|
|
795
|
+
objectKey?: string | undefined;
|
|
796
|
+
addedBy?: string | undefined;
|
|
797
|
+
addedAt?: string | undefined;
|
|
291
798
|
}[];
|
|
292
799
|
priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
293
800
|
location: {
|
|
@@ -303,9 +810,10 @@ export declare const DeficiencySchema: z.ZodObject<{
|
|
|
303
810
|
};
|
|
304
811
|
photos: {
|
|
305
812
|
url: string;
|
|
306
|
-
addedBy: string;
|
|
307
|
-
addedAt: string;
|
|
308
813
|
caption?: string | undefined;
|
|
814
|
+
objectKey?: string | undefined;
|
|
815
|
+
addedBy?: string | undefined;
|
|
816
|
+
addedAt?: string | undefined;
|
|
309
817
|
}[];
|
|
310
818
|
trade: "GENERAL" | "ELECTRICAL" | "PLUMBING" | "HVAC" | "CONCRETE" | "MASONRY" | "STEEL" | "CARPENTRY" | "ROOFING" | "INSULATION" | "DRYWALL" | "FLOORING" | "LANDSCAPING";
|
|
311
819
|
reportedBy: string;
|
|
@@ -321,6 +829,22 @@ export declare const DeficiencySchema: z.ZodObject<{
|
|
|
321
829
|
estimatedHours?: number | undefined;
|
|
322
830
|
actualHours?: number | undefined;
|
|
323
831
|
assignedTo?: string | undefined;
|
|
832
|
+
assignee?: {
|
|
833
|
+
id: string;
|
|
834
|
+
firstName?: string | null | undefined;
|
|
835
|
+
lastName?: string | null | undefined;
|
|
836
|
+
email?: string | undefined;
|
|
837
|
+
name?: string | undefined;
|
|
838
|
+
avatar?: string | null | undefined;
|
|
839
|
+
} | undefined;
|
|
840
|
+
reporter?: {
|
|
841
|
+
id: string;
|
|
842
|
+
firstName?: string | null | undefined;
|
|
843
|
+
lastName?: string | null | undefined;
|
|
844
|
+
email?: string | undefined;
|
|
845
|
+
name?: string | undefined;
|
|
846
|
+
avatar?: string | null | undefined;
|
|
847
|
+
} | undefined;
|
|
324
848
|
inspectionDate?: string | undefined;
|
|
325
849
|
completionDate?: string | undefined;
|
|
326
850
|
workOrder?: {
|
|
@@ -369,23 +893,41 @@ export declare const DeficiencySchema: z.ZodObject<{
|
|
|
369
893
|
attachments?: {
|
|
370
894
|
url: string;
|
|
371
895
|
filename: string;
|
|
372
|
-
addedBy: string;
|
|
373
|
-
addedAt: string;
|
|
374
896
|
fileSize: number;
|
|
375
897
|
mimeType: string;
|
|
898
|
+
objectKey?: string | undefined;
|
|
899
|
+
addedBy?: string | undefined;
|
|
900
|
+
addedAt?: string | undefined;
|
|
376
901
|
}[] | undefined;
|
|
377
902
|
notes?: string | undefined;
|
|
378
903
|
photos?: {
|
|
379
904
|
url: string;
|
|
380
|
-
addedBy: string;
|
|
381
|
-
addedAt: string;
|
|
382
905
|
caption?: string | undefined;
|
|
906
|
+
objectKey?: string | undefined;
|
|
907
|
+
addedBy?: string | undefined;
|
|
908
|
+
addedAt?: string | undefined;
|
|
383
909
|
}[] | undefined;
|
|
384
910
|
estimatedCost?: number | undefined;
|
|
385
911
|
actualCost?: number | undefined;
|
|
386
912
|
estimatedHours?: number | undefined;
|
|
387
913
|
actualHours?: number | undefined;
|
|
388
914
|
assignedTo?: string | undefined;
|
|
915
|
+
assignee?: {
|
|
916
|
+
id: string;
|
|
917
|
+
firstName?: string | null | undefined;
|
|
918
|
+
lastName?: string | null | undefined;
|
|
919
|
+
email?: string | undefined;
|
|
920
|
+
name?: string | undefined;
|
|
921
|
+
avatar?: string | null | undefined;
|
|
922
|
+
} | undefined;
|
|
923
|
+
reporter?: {
|
|
924
|
+
id: string;
|
|
925
|
+
firstName?: string | null | undefined;
|
|
926
|
+
lastName?: string | null | undefined;
|
|
927
|
+
email?: string | undefined;
|
|
928
|
+
name?: string | undefined;
|
|
929
|
+
avatar?: string | null | undefined;
|
|
930
|
+
} | undefined;
|
|
389
931
|
inspectionDate?: string | undefined;
|
|
390
932
|
completionDate?: string | undefined;
|
|
391
933
|
tags?: string[] | undefined;
|
|
@@ -461,40 +1003,46 @@ export declare const CreateDeficiencyRequestSchema: z.ZodObject<{
|
|
|
461
1003
|
photos: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
462
1004
|
url: z.ZodString;
|
|
463
1005
|
caption: z.ZodOptional<z.ZodString>;
|
|
464
|
-
|
|
465
|
-
|
|
1006
|
+
objectKey: z.ZodOptional<z.ZodString>;
|
|
1007
|
+
addedBy: z.ZodOptional<z.ZodString>;
|
|
1008
|
+
addedAt: z.ZodOptional<z.ZodString>;
|
|
466
1009
|
}, "strip", z.ZodTypeAny, {
|
|
467
1010
|
url: string;
|
|
468
|
-
addedBy: string;
|
|
469
|
-
addedAt: string;
|
|
470
1011
|
caption?: string | undefined;
|
|
1012
|
+
objectKey?: string | undefined;
|
|
1013
|
+
addedBy?: string | undefined;
|
|
1014
|
+
addedAt?: string | undefined;
|
|
471
1015
|
}, {
|
|
472
1016
|
url: string;
|
|
473
|
-
addedBy: string;
|
|
474
|
-
addedAt: string;
|
|
475
1017
|
caption?: string | undefined;
|
|
1018
|
+
objectKey?: string | undefined;
|
|
1019
|
+
addedBy?: string | undefined;
|
|
1020
|
+
addedAt?: string | undefined;
|
|
476
1021
|
}>, "many">>;
|
|
477
1022
|
attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
478
1023
|
url: z.ZodString;
|
|
479
1024
|
filename: z.ZodString;
|
|
480
1025
|
fileSize: z.ZodNumber;
|
|
481
1026
|
mimeType: z.ZodString;
|
|
482
|
-
|
|
483
|
-
|
|
1027
|
+
objectKey: z.ZodOptional<z.ZodString>;
|
|
1028
|
+
addedBy: z.ZodOptional<z.ZodString>;
|
|
1029
|
+
addedAt: z.ZodOptional<z.ZodString>;
|
|
484
1030
|
}, "strip", z.ZodTypeAny, {
|
|
485
1031
|
url: string;
|
|
486
1032
|
filename: string;
|
|
487
|
-
addedBy: string;
|
|
488
|
-
addedAt: string;
|
|
489
1033
|
fileSize: number;
|
|
490
1034
|
mimeType: string;
|
|
1035
|
+
objectKey?: string | undefined;
|
|
1036
|
+
addedBy?: string | undefined;
|
|
1037
|
+
addedAt?: string | undefined;
|
|
491
1038
|
}, {
|
|
492
1039
|
url: string;
|
|
493
1040
|
filename: string;
|
|
494
|
-
addedBy: string;
|
|
495
|
-
addedAt: string;
|
|
496
1041
|
fileSize: number;
|
|
497
1042
|
mimeType: string;
|
|
1043
|
+
objectKey?: string | undefined;
|
|
1044
|
+
addedBy?: string | undefined;
|
|
1045
|
+
addedAt?: string | undefined;
|
|
498
1046
|
}>, "many">>;
|
|
499
1047
|
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
500
1048
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -529,10 +1077,11 @@ export declare const CreateDeficiencyRequestSchema: z.ZodObject<{
|
|
|
529
1077
|
attachments: {
|
|
530
1078
|
url: string;
|
|
531
1079
|
filename: string;
|
|
532
|
-
addedBy: string;
|
|
533
|
-
addedAt: string;
|
|
534
1080
|
fileSize: number;
|
|
535
1081
|
mimeType: string;
|
|
1082
|
+
objectKey?: string | undefined;
|
|
1083
|
+
addedBy?: string | undefined;
|
|
1084
|
+
addedAt?: string | undefined;
|
|
536
1085
|
}[];
|
|
537
1086
|
priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
538
1087
|
location: {
|
|
@@ -548,9 +1097,10 @@ export declare const CreateDeficiencyRequestSchema: z.ZodObject<{
|
|
|
548
1097
|
};
|
|
549
1098
|
photos: {
|
|
550
1099
|
url: string;
|
|
551
|
-
addedBy: string;
|
|
552
|
-
addedAt: string;
|
|
553
1100
|
caption?: string | undefined;
|
|
1101
|
+
objectKey?: string | undefined;
|
|
1102
|
+
addedBy?: string | undefined;
|
|
1103
|
+
addedAt?: string | undefined;
|
|
554
1104
|
}[];
|
|
555
1105
|
trade: "GENERAL" | "ELECTRICAL" | "PLUMBING" | "HVAC" | "CONCRETE" | "MASONRY" | "STEEL" | "CARPENTRY" | "ROOFING" | "INSULATION" | "DRYWALL" | "FLOORING" | "LANDSCAPING";
|
|
556
1106
|
tags: string[];
|
|
@@ -589,18 +1139,20 @@ export declare const CreateDeficiencyRequestSchema: z.ZodObject<{
|
|
|
589
1139
|
attachments?: {
|
|
590
1140
|
url: string;
|
|
591
1141
|
filename: string;
|
|
592
|
-
addedBy: string;
|
|
593
|
-
addedAt: string;
|
|
594
1142
|
fileSize: number;
|
|
595
1143
|
mimeType: string;
|
|
1144
|
+
objectKey?: string | undefined;
|
|
1145
|
+
addedBy?: string | undefined;
|
|
1146
|
+
addedAt?: string | undefined;
|
|
596
1147
|
}[] | undefined;
|
|
597
1148
|
notes?: string | undefined;
|
|
598
1149
|
priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
|
|
599
1150
|
photos?: {
|
|
600
1151
|
url: string;
|
|
601
|
-
addedBy: string;
|
|
602
|
-
addedAt: string;
|
|
603
1152
|
caption?: string | undefined;
|
|
1153
|
+
objectKey?: string | undefined;
|
|
1154
|
+
addedBy?: string | undefined;
|
|
1155
|
+
addedAt?: string | undefined;
|
|
604
1156
|
}[] | undefined;
|
|
605
1157
|
estimatedCost?: number | undefined;
|
|
606
1158
|
estimatedHours?: number | undefined;
|
|
@@ -672,40 +1224,46 @@ export declare const UpdateDeficiencyRequestSchema: z.ZodObject<{
|
|
|
672
1224
|
photos: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
673
1225
|
url: z.ZodString;
|
|
674
1226
|
caption: z.ZodOptional<z.ZodString>;
|
|
675
|
-
|
|
676
|
-
|
|
1227
|
+
objectKey: z.ZodOptional<z.ZodString>;
|
|
1228
|
+
addedBy: z.ZodOptional<z.ZodString>;
|
|
1229
|
+
addedAt: z.ZodOptional<z.ZodString>;
|
|
677
1230
|
}, "strip", z.ZodTypeAny, {
|
|
678
1231
|
url: string;
|
|
679
|
-
addedBy: string;
|
|
680
|
-
addedAt: string;
|
|
681
1232
|
caption?: string | undefined;
|
|
1233
|
+
objectKey?: string | undefined;
|
|
1234
|
+
addedBy?: string | undefined;
|
|
1235
|
+
addedAt?: string | undefined;
|
|
682
1236
|
}, {
|
|
683
1237
|
url: string;
|
|
684
|
-
addedBy: string;
|
|
685
|
-
addedAt: string;
|
|
686
1238
|
caption?: string | undefined;
|
|
1239
|
+
objectKey?: string | undefined;
|
|
1240
|
+
addedBy?: string | undefined;
|
|
1241
|
+
addedAt?: string | undefined;
|
|
687
1242
|
}>, "many">>>;
|
|
688
1243
|
attachments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
689
1244
|
url: z.ZodString;
|
|
690
1245
|
filename: z.ZodString;
|
|
691
1246
|
fileSize: z.ZodNumber;
|
|
692
1247
|
mimeType: z.ZodString;
|
|
693
|
-
|
|
694
|
-
|
|
1248
|
+
objectKey: z.ZodOptional<z.ZodString>;
|
|
1249
|
+
addedBy: z.ZodOptional<z.ZodString>;
|
|
1250
|
+
addedAt: z.ZodOptional<z.ZodString>;
|
|
695
1251
|
}, "strip", z.ZodTypeAny, {
|
|
696
1252
|
url: string;
|
|
697
1253
|
filename: string;
|
|
698
|
-
addedBy: string;
|
|
699
|
-
addedAt: string;
|
|
700
1254
|
fileSize: number;
|
|
701
1255
|
mimeType: string;
|
|
1256
|
+
objectKey?: string | undefined;
|
|
1257
|
+
addedBy?: string | undefined;
|
|
1258
|
+
addedAt?: string | undefined;
|
|
702
1259
|
}, {
|
|
703
1260
|
url: string;
|
|
704
1261
|
filename: string;
|
|
705
|
-
addedBy: string;
|
|
706
|
-
addedAt: string;
|
|
707
1262
|
fileSize: number;
|
|
708
1263
|
mimeType: string;
|
|
1264
|
+
objectKey?: string | undefined;
|
|
1265
|
+
addedBy?: string | undefined;
|
|
1266
|
+
addedAt?: string | undefined;
|
|
709
1267
|
}>, "many">>>;
|
|
710
1268
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
711
1269
|
notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -744,10 +1302,11 @@ export declare const UpdateDeficiencyRequestSchema: z.ZodObject<{
|
|
|
744
1302
|
attachments?: {
|
|
745
1303
|
url: string;
|
|
746
1304
|
filename: string;
|
|
747
|
-
addedBy: string;
|
|
748
|
-
addedAt: string;
|
|
749
1305
|
fileSize: number;
|
|
750
1306
|
mimeType: string;
|
|
1307
|
+
objectKey?: string | undefined;
|
|
1308
|
+
addedBy?: string | undefined;
|
|
1309
|
+
addedAt?: string | undefined;
|
|
751
1310
|
}[] | undefined;
|
|
752
1311
|
notes?: string | undefined;
|
|
753
1312
|
priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
|
|
@@ -764,9 +1323,10 @@ export declare const UpdateDeficiencyRequestSchema: z.ZodObject<{
|
|
|
764
1323
|
} | undefined;
|
|
765
1324
|
photos?: {
|
|
766
1325
|
url: string;
|
|
767
|
-
addedBy: string;
|
|
768
|
-
addedAt: string;
|
|
769
1326
|
caption?: string | undefined;
|
|
1327
|
+
objectKey?: string | undefined;
|
|
1328
|
+
addedBy?: string | undefined;
|
|
1329
|
+
addedAt?: string | undefined;
|
|
770
1330
|
}[] | undefined;
|
|
771
1331
|
estimatedCost?: number | undefined;
|
|
772
1332
|
estimatedHours?: number | undefined;
|
|
@@ -793,10 +1353,11 @@ export declare const UpdateDeficiencyRequestSchema: z.ZodObject<{
|
|
|
793
1353
|
attachments?: {
|
|
794
1354
|
url: string;
|
|
795
1355
|
filename: string;
|
|
796
|
-
addedBy: string;
|
|
797
|
-
addedAt: string;
|
|
798
1356
|
fileSize: number;
|
|
799
1357
|
mimeType: string;
|
|
1358
|
+
objectKey?: string | undefined;
|
|
1359
|
+
addedBy?: string | undefined;
|
|
1360
|
+
addedAt?: string | undefined;
|
|
800
1361
|
}[] | undefined;
|
|
801
1362
|
notes?: string | undefined;
|
|
802
1363
|
priority?: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL" | undefined;
|
|
@@ -813,9 +1374,10 @@ export declare const UpdateDeficiencyRequestSchema: z.ZodObject<{
|
|
|
813
1374
|
} | undefined;
|
|
814
1375
|
photos?: {
|
|
815
1376
|
url: string;
|
|
816
|
-
addedBy: string;
|
|
817
|
-
addedAt: string;
|
|
818
1377
|
caption?: string | undefined;
|
|
1378
|
+
objectKey?: string | undefined;
|
|
1379
|
+
addedBy?: string | undefined;
|
|
1380
|
+
addedAt?: string | undefined;
|
|
819
1381
|
}[] | undefined;
|
|
820
1382
|
estimatedCost?: number | undefined;
|
|
821
1383
|
estimatedHours?: number | undefined;
|
|
@@ -1646,6 +2208,51 @@ export declare const DeficiencyResourceSchema: z.ZodObject<{
|
|
|
1646
2208
|
reportedBy: z.ZodString;
|
|
1647
2209
|
reportedAt: z.ZodString;
|
|
1648
2210
|
assignedTo: z.ZodOptional<z.ZodString>;
|
|
2211
|
+
/** Nested people for UI display (additive; keep assignedTo/reportedBy ids). */
|
|
2212
|
+
assignee: z.ZodOptional<z.ZodObject<{
|
|
2213
|
+
id: z.ZodString;
|
|
2214
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2215
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2216
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2217
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2218
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2219
|
+
}, "strip", z.ZodTypeAny, {
|
|
2220
|
+
id: string;
|
|
2221
|
+
firstName?: string | null | undefined;
|
|
2222
|
+
lastName?: string | null | undefined;
|
|
2223
|
+
email?: string | undefined;
|
|
2224
|
+
name?: string | undefined;
|
|
2225
|
+
avatar?: string | null | undefined;
|
|
2226
|
+
}, {
|
|
2227
|
+
id: string;
|
|
2228
|
+
firstName?: string | null | undefined;
|
|
2229
|
+
lastName?: string | null | undefined;
|
|
2230
|
+
email?: string | undefined;
|
|
2231
|
+
name?: string | undefined;
|
|
2232
|
+
avatar?: string | null | undefined;
|
|
2233
|
+
}>>;
|
|
2234
|
+
reporter: z.ZodOptional<z.ZodObject<{
|
|
2235
|
+
id: z.ZodString;
|
|
2236
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2237
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2238
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2239
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2240
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2241
|
+
}, "strip", z.ZodTypeAny, {
|
|
2242
|
+
id: string;
|
|
2243
|
+
firstName?: string | null | undefined;
|
|
2244
|
+
lastName?: string | null | undefined;
|
|
2245
|
+
email?: string | undefined;
|
|
2246
|
+
name?: string | undefined;
|
|
2247
|
+
avatar?: string | null | undefined;
|
|
2248
|
+
}, {
|
|
2249
|
+
id: string;
|
|
2250
|
+
firstName?: string | null | undefined;
|
|
2251
|
+
lastName?: string | null | undefined;
|
|
2252
|
+
email?: string | undefined;
|
|
2253
|
+
name?: string | undefined;
|
|
2254
|
+
avatar?: string | null | undefined;
|
|
2255
|
+
}>>;
|
|
1649
2256
|
assignedAt: z.ZodOptional<z.ZodString>;
|
|
1650
2257
|
dueDate: z.ZodOptional<z.ZodString>;
|
|
1651
2258
|
inspectionDate: z.ZodOptional<z.ZodString>;
|
|
@@ -1657,40 +2264,46 @@ export declare const DeficiencyResourceSchema: z.ZodObject<{
|
|
|
1657
2264
|
photos: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1658
2265
|
url: z.ZodString;
|
|
1659
2266
|
caption: z.ZodOptional<z.ZodString>;
|
|
1660
|
-
|
|
1661
|
-
|
|
2267
|
+
objectKey: z.ZodOptional<z.ZodString>;
|
|
2268
|
+
addedBy: z.ZodOptional<z.ZodString>;
|
|
2269
|
+
addedAt: z.ZodOptional<z.ZodString>;
|
|
1662
2270
|
}, "strip", z.ZodTypeAny, {
|
|
1663
2271
|
url: string;
|
|
1664
|
-
addedBy: string;
|
|
1665
|
-
addedAt: string;
|
|
1666
2272
|
caption?: string | undefined;
|
|
2273
|
+
objectKey?: string | undefined;
|
|
2274
|
+
addedBy?: string | undefined;
|
|
2275
|
+
addedAt?: string | undefined;
|
|
1667
2276
|
}, {
|
|
1668
2277
|
url: string;
|
|
1669
|
-
addedBy: string;
|
|
1670
|
-
addedAt: string;
|
|
1671
2278
|
caption?: string | undefined;
|
|
2279
|
+
objectKey?: string | undefined;
|
|
2280
|
+
addedBy?: string | undefined;
|
|
2281
|
+
addedAt?: string | undefined;
|
|
1672
2282
|
}>, "many">>;
|
|
1673
2283
|
attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1674
2284
|
url: z.ZodString;
|
|
1675
2285
|
filename: z.ZodString;
|
|
1676
2286
|
fileSize: z.ZodNumber;
|
|
1677
2287
|
mimeType: z.ZodString;
|
|
1678
|
-
|
|
1679
|
-
|
|
2288
|
+
objectKey: z.ZodOptional<z.ZodString>;
|
|
2289
|
+
addedBy: z.ZodOptional<z.ZodString>;
|
|
2290
|
+
addedAt: z.ZodOptional<z.ZodString>;
|
|
1680
2291
|
}, "strip", z.ZodTypeAny, {
|
|
1681
2292
|
url: string;
|
|
1682
2293
|
filename: string;
|
|
1683
|
-
addedBy: string;
|
|
1684
|
-
addedAt: string;
|
|
1685
2294
|
fileSize: number;
|
|
1686
2295
|
mimeType: string;
|
|
2296
|
+
objectKey?: string | undefined;
|
|
2297
|
+
addedBy?: string | undefined;
|
|
2298
|
+
addedAt?: string | undefined;
|
|
1687
2299
|
}, {
|
|
1688
2300
|
url: string;
|
|
1689
2301
|
filename: string;
|
|
1690
|
-
addedBy: string;
|
|
1691
|
-
addedAt: string;
|
|
1692
2302
|
fileSize: number;
|
|
1693
2303
|
mimeType: string;
|
|
2304
|
+
objectKey?: string | undefined;
|
|
2305
|
+
addedBy?: string | undefined;
|
|
2306
|
+
addedAt?: string | undefined;
|
|
1694
2307
|
}>, "many">>;
|
|
1695
2308
|
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1696
2309
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -1756,10 +2369,11 @@ export declare const DeficiencyResourceSchema: z.ZodObject<{
|
|
|
1756
2369
|
attachments: {
|
|
1757
2370
|
url: string;
|
|
1758
2371
|
filename: string;
|
|
1759
|
-
addedBy: string;
|
|
1760
|
-
addedAt: string;
|
|
1761
2372
|
fileSize: number;
|
|
1762
2373
|
mimeType: string;
|
|
2374
|
+
objectKey?: string | undefined;
|
|
2375
|
+
addedBy?: string | undefined;
|
|
2376
|
+
addedAt?: string | undefined;
|
|
1763
2377
|
}[];
|
|
1764
2378
|
priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
1765
2379
|
location: {
|
|
@@ -1775,9 +2389,10 @@ export declare const DeficiencyResourceSchema: z.ZodObject<{
|
|
|
1775
2389
|
};
|
|
1776
2390
|
photos: {
|
|
1777
2391
|
url: string;
|
|
1778
|
-
addedBy: string;
|
|
1779
|
-
addedAt: string;
|
|
1780
2392
|
caption?: string | undefined;
|
|
2393
|
+
objectKey?: string | undefined;
|
|
2394
|
+
addedBy?: string | undefined;
|
|
2395
|
+
addedAt?: string | undefined;
|
|
1781
2396
|
}[];
|
|
1782
2397
|
trade: "GENERAL" | "ELECTRICAL" | "PLUMBING" | "HVAC" | "CONCRETE" | "MASONRY" | "STEEL" | "CARPENTRY" | "ROOFING" | "INSULATION" | "DRYWALL" | "FLOORING" | "LANDSCAPING";
|
|
1783
2398
|
reportedBy: string;
|
|
@@ -1793,6 +2408,22 @@ export declare const DeficiencyResourceSchema: z.ZodObject<{
|
|
|
1793
2408
|
estimatedHours?: number | undefined;
|
|
1794
2409
|
actualHours?: number | undefined;
|
|
1795
2410
|
assignedTo?: string | undefined;
|
|
2411
|
+
assignee?: {
|
|
2412
|
+
id: string;
|
|
2413
|
+
firstName?: string | null | undefined;
|
|
2414
|
+
lastName?: string | null | undefined;
|
|
2415
|
+
email?: string | undefined;
|
|
2416
|
+
name?: string | undefined;
|
|
2417
|
+
avatar?: string | null | undefined;
|
|
2418
|
+
} | undefined;
|
|
2419
|
+
reporter?: {
|
|
2420
|
+
id: string;
|
|
2421
|
+
firstName?: string | null | undefined;
|
|
2422
|
+
lastName?: string | null | undefined;
|
|
2423
|
+
email?: string | undefined;
|
|
2424
|
+
name?: string | undefined;
|
|
2425
|
+
avatar?: string | null | undefined;
|
|
2426
|
+
} | undefined;
|
|
1796
2427
|
inspectionDate?: string | undefined;
|
|
1797
2428
|
completionDate?: string | undefined;
|
|
1798
2429
|
workOrder?: {
|
|
@@ -1841,23 +2472,41 @@ export declare const DeficiencyResourceSchema: z.ZodObject<{
|
|
|
1841
2472
|
attachments?: {
|
|
1842
2473
|
url: string;
|
|
1843
2474
|
filename: string;
|
|
1844
|
-
addedBy: string;
|
|
1845
|
-
addedAt: string;
|
|
1846
2475
|
fileSize: number;
|
|
1847
2476
|
mimeType: string;
|
|
2477
|
+
objectKey?: string | undefined;
|
|
2478
|
+
addedBy?: string | undefined;
|
|
2479
|
+
addedAt?: string | undefined;
|
|
1848
2480
|
}[] | undefined;
|
|
1849
2481
|
notes?: string | undefined;
|
|
1850
2482
|
photos?: {
|
|
1851
2483
|
url: string;
|
|
1852
|
-
addedBy: string;
|
|
1853
|
-
addedAt: string;
|
|
1854
2484
|
caption?: string | undefined;
|
|
2485
|
+
objectKey?: string | undefined;
|
|
2486
|
+
addedBy?: string | undefined;
|
|
2487
|
+
addedAt?: string | undefined;
|
|
1855
2488
|
}[] | undefined;
|
|
1856
2489
|
estimatedCost?: number | undefined;
|
|
1857
2490
|
actualCost?: number | undefined;
|
|
1858
2491
|
estimatedHours?: number | undefined;
|
|
1859
2492
|
actualHours?: number | undefined;
|
|
1860
2493
|
assignedTo?: string | undefined;
|
|
2494
|
+
assignee?: {
|
|
2495
|
+
id: string;
|
|
2496
|
+
firstName?: string | null | undefined;
|
|
2497
|
+
lastName?: string | null | undefined;
|
|
2498
|
+
email?: string | undefined;
|
|
2499
|
+
name?: string | undefined;
|
|
2500
|
+
avatar?: string | null | undefined;
|
|
2501
|
+
} | undefined;
|
|
2502
|
+
reporter?: {
|
|
2503
|
+
id: string;
|
|
2504
|
+
firstName?: string | null | undefined;
|
|
2505
|
+
lastName?: string | null | undefined;
|
|
2506
|
+
email?: string | undefined;
|
|
2507
|
+
name?: string | undefined;
|
|
2508
|
+
avatar?: string | null | undefined;
|
|
2509
|
+
} | undefined;
|
|
1861
2510
|
inspectionDate?: string | undefined;
|
|
1862
2511
|
completionDate?: string | undefined;
|
|
1863
2512
|
tags?: string[] | undefined;
|
|
@@ -1896,10 +2545,11 @@ export declare const DeficiencyResourceSchema: z.ZodObject<{
|
|
|
1896
2545
|
attachments: {
|
|
1897
2546
|
url: string;
|
|
1898
2547
|
filename: string;
|
|
1899
|
-
addedBy: string;
|
|
1900
|
-
addedAt: string;
|
|
1901
2548
|
fileSize: number;
|
|
1902
2549
|
mimeType: string;
|
|
2550
|
+
objectKey?: string | undefined;
|
|
2551
|
+
addedBy?: string | undefined;
|
|
2552
|
+
addedAt?: string | undefined;
|
|
1903
2553
|
}[];
|
|
1904
2554
|
priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
|
|
1905
2555
|
location: {
|
|
@@ -1915,9 +2565,10 @@ export declare const DeficiencyResourceSchema: z.ZodObject<{
|
|
|
1915
2565
|
};
|
|
1916
2566
|
photos: {
|
|
1917
2567
|
url: string;
|
|
1918
|
-
addedBy: string;
|
|
1919
|
-
addedAt: string;
|
|
1920
2568
|
caption?: string | undefined;
|
|
2569
|
+
objectKey?: string | undefined;
|
|
2570
|
+
addedBy?: string | undefined;
|
|
2571
|
+
addedAt?: string | undefined;
|
|
1921
2572
|
}[];
|
|
1922
2573
|
trade: "GENERAL" | "ELECTRICAL" | "PLUMBING" | "HVAC" | "CONCRETE" | "MASONRY" | "STEEL" | "CARPENTRY" | "ROOFING" | "INSULATION" | "DRYWALL" | "FLOORING" | "LANDSCAPING";
|
|
1923
2574
|
reportedBy: string;
|
|
@@ -1933,6 +2584,22 @@ export declare const DeficiencyResourceSchema: z.ZodObject<{
|
|
|
1933
2584
|
estimatedHours?: number | undefined;
|
|
1934
2585
|
actualHours?: number | undefined;
|
|
1935
2586
|
assignedTo?: string | undefined;
|
|
2587
|
+
assignee?: {
|
|
2588
|
+
id: string;
|
|
2589
|
+
firstName?: string | null | undefined;
|
|
2590
|
+
lastName?: string | null | undefined;
|
|
2591
|
+
email?: string | undefined;
|
|
2592
|
+
name?: string | undefined;
|
|
2593
|
+
avatar?: string | null | undefined;
|
|
2594
|
+
} | undefined;
|
|
2595
|
+
reporter?: {
|
|
2596
|
+
id: string;
|
|
2597
|
+
firstName?: string | null | undefined;
|
|
2598
|
+
lastName?: string | null | undefined;
|
|
2599
|
+
email?: string | undefined;
|
|
2600
|
+
name?: string | undefined;
|
|
2601
|
+
avatar?: string | null | undefined;
|
|
2602
|
+
} | undefined;
|
|
1936
2603
|
inspectionDate?: string | undefined;
|
|
1937
2604
|
completionDate?: string | undefined;
|
|
1938
2605
|
workOrder?: {
|
|
@@ -1985,23 +2652,41 @@ export declare const DeficiencyResourceSchema: z.ZodObject<{
|
|
|
1985
2652
|
attachments?: {
|
|
1986
2653
|
url: string;
|
|
1987
2654
|
filename: string;
|
|
1988
|
-
addedBy: string;
|
|
1989
|
-
addedAt: string;
|
|
1990
2655
|
fileSize: number;
|
|
1991
2656
|
mimeType: string;
|
|
2657
|
+
objectKey?: string | undefined;
|
|
2658
|
+
addedBy?: string | undefined;
|
|
2659
|
+
addedAt?: string | undefined;
|
|
1992
2660
|
}[] | undefined;
|
|
1993
2661
|
notes?: string | undefined;
|
|
1994
2662
|
photos?: {
|
|
1995
2663
|
url: string;
|
|
1996
|
-
addedBy: string;
|
|
1997
|
-
addedAt: string;
|
|
1998
2664
|
caption?: string | undefined;
|
|
2665
|
+
objectKey?: string | undefined;
|
|
2666
|
+
addedBy?: string | undefined;
|
|
2667
|
+
addedAt?: string | undefined;
|
|
1999
2668
|
}[] | undefined;
|
|
2000
2669
|
estimatedCost?: number | undefined;
|
|
2001
2670
|
actualCost?: number | undefined;
|
|
2002
2671
|
estimatedHours?: number | undefined;
|
|
2003
2672
|
actualHours?: number | undefined;
|
|
2004
2673
|
assignedTo?: string | undefined;
|
|
2674
|
+
assignee?: {
|
|
2675
|
+
id: string;
|
|
2676
|
+
firstName?: string | null | undefined;
|
|
2677
|
+
lastName?: string | null | undefined;
|
|
2678
|
+
email?: string | undefined;
|
|
2679
|
+
name?: string | undefined;
|
|
2680
|
+
avatar?: string | null | undefined;
|
|
2681
|
+
} | undefined;
|
|
2682
|
+
reporter?: {
|
|
2683
|
+
id: string;
|
|
2684
|
+
firstName?: string | null | undefined;
|
|
2685
|
+
lastName?: string | null | undefined;
|
|
2686
|
+
email?: string | undefined;
|
|
2687
|
+
name?: string | undefined;
|
|
2688
|
+
avatar?: string | null | undefined;
|
|
2689
|
+
} | undefined;
|
|
2005
2690
|
inspectionDate?: string | undefined;
|
|
2006
2691
|
completionDate?: string | undefined;
|
|
2007
2692
|
tags?: string[] | undefined;
|
|
@@ -2490,6 +3175,14 @@ export type DeficiencyPhoto = z.infer<typeof DeficiencyPhotoSchema>;
|
|
|
2490
3175
|
export type DeficiencyAttachment = z.infer<typeof DeficiencyAttachmentSchema>;
|
|
2491
3176
|
export type DeficiencyWorkOrder = z.infer<typeof DeficiencyWorkOrderSchema>;
|
|
2492
3177
|
export type DeficiencyResolution = z.infer<typeof DeficiencyResolutionSchema>;
|
|
3178
|
+
export type DeficiencyComment = z.infer<typeof DeficiencyCommentSchema>;
|
|
3179
|
+
export type DeficiencyActivity = z.infer<typeof DeficiencyActivitySchema>;
|
|
3180
|
+
export type CreateDeficiencyCommentRequest = z.infer<typeof CreateDeficiencyCommentRequestSchema>;
|
|
3181
|
+
export type PresignDeficiencyMediaRequest = z.infer<typeof PresignDeficiencyMediaRequestSchema>;
|
|
3182
|
+
export type PresignDeficiencyMediaResponse = z.infer<typeof PresignDeficiencyMediaResponseSchema>;
|
|
3183
|
+
export type ConfirmDeficiencyMediaRequest = z.infer<typeof ConfirmDeficiencyMediaRequestSchema>;
|
|
3184
|
+
export type DeficiencyMediaKind = z.infer<typeof DeficiencyMediaKindSchema>;
|
|
3185
|
+
export type DeficiencyActivityType = z.infer<typeof DeficiencyActivityTypeSchema>;
|
|
2493
3186
|
export type DeficiencyCategory = z.infer<typeof DeficiencyCategorySchema>;
|
|
2494
3187
|
export type DeficiencyStatus = z.infer<typeof DeficiencyStatusSchema>;
|
|
2495
3188
|
export type DeficiencyTrade = z.infer<typeof DeficiencyTradeSchema>;
|