@homefile/components-v2 2.11.1 → 2.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helpers/homeBoard/FolderSharing.helper.js +6 -0
- package/dist/helpers/rooms/GroupItems.js +81 -0
- package/dist/interfaces/homeBoard/FolderDetail.interface.d.ts +2 -2
- package/package.json +1 -1
- package/src/components/rooms/GroupCard.tsx +1 -1
- package/src/helpers/homeBoard/FolderSharing.helper.ts +6 -0
- package/src/helpers/rooms/GroupItems.ts +81 -0
- package/src/interfaces/homeBoard/FolderDetail.interface.ts +2 -1
|
@@ -218,6 +218,7 @@ export const fileDB = [
|
|
|
218
218
|
description: '',
|
|
219
219
|
report: [
|
|
220
220
|
{
|
|
221
|
+
id: "test1",
|
|
221
222
|
name: 'Weekly Update',
|
|
222
223
|
description: '',
|
|
223
224
|
comments: '',
|
|
@@ -225,6 +226,7 @@ export const fileDB = [
|
|
|
225
226
|
type: 'string',
|
|
226
227
|
},
|
|
227
228
|
{
|
|
229
|
+
id: "test2",
|
|
228
230
|
name: 'Two week look ahead',
|
|
229
231
|
description: '',
|
|
230
232
|
comments: '',
|
|
@@ -232,6 +234,7 @@ export const fileDB = [
|
|
|
232
234
|
type: 'string',
|
|
233
235
|
},
|
|
234
236
|
{
|
|
237
|
+
id: "test3",
|
|
235
238
|
name: 'Items outstanding/owner clarifications',
|
|
236
239
|
description: '',
|
|
237
240
|
comments: '',
|
|
@@ -239,6 +242,7 @@ export const fileDB = [
|
|
|
239
242
|
type: 'string',
|
|
240
243
|
},
|
|
241
244
|
{
|
|
245
|
+
id: "test4",
|
|
242
246
|
name: 'Milestone goals-per construction schedule',
|
|
243
247
|
description: '',
|
|
244
248
|
comments: '',
|
|
@@ -246,6 +250,7 @@ export const fileDB = [
|
|
|
246
250
|
type: 'string',
|
|
247
251
|
},
|
|
248
252
|
{
|
|
253
|
+
id: "test5",
|
|
249
254
|
name: 'Supply updates',
|
|
250
255
|
description: '',
|
|
251
256
|
comments: 'Can be used as placeholder or something else',
|
|
@@ -253,6 +258,7 @@ export const fileDB = [
|
|
|
253
258
|
type: 'string',
|
|
254
259
|
},
|
|
255
260
|
{
|
|
261
|
+
id: "test6",
|
|
256
262
|
name: 'Project manager comments',
|
|
257
263
|
description: '',
|
|
258
264
|
comments: '',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { faker } from '@faker-js/faker';
|
|
1
2
|
export const PaintItems = [
|
|
2
3
|
{
|
|
3
4
|
_id: '62aa4c6db225dd3957d09b26',
|
|
@@ -6,6 +7,7 @@ export const PaintItems = [
|
|
|
6
7
|
title: 'Wall color',
|
|
7
8
|
report: [
|
|
8
9
|
{
|
|
10
|
+
id: faker.database.mongodbObjectId(),
|
|
9
11
|
name: 'Item Name',
|
|
10
12
|
description: '',
|
|
11
13
|
comments: '',
|
|
@@ -13,6 +15,7 @@ export const PaintItems = [
|
|
|
13
15
|
type: 'string',
|
|
14
16
|
},
|
|
15
17
|
{
|
|
18
|
+
id: faker.database.mongodbObjectId(),
|
|
16
19
|
name: 'Brand/Manufacturer',
|
|
17
20
|
description: '',
|
|
18
21
|
comments: '',
|
|
@@ -20,6 +23,7 @@ export const PaintItems = [
|
|
|
20
23
|
type: 'string',
|
|
21
24
|
},
|
|
22
25
|
{
|
|
26
|
+
id: faker.database.mongodbObjectId(),
|
|
23
27
|
name: 'Model Number',
|
|
24
28
|
description: '',
|
|
25
29
|
comments: '',
|
|
@@ -27,6 +31,7 @@ export const PaintItems = [
|
|
|
27
31
|
type: 'string',
|
|
28
32
|
},
|
|
29
33
|
{
|
|
34
|
+
id: faker.database.mongodbObjectId(),
|
|
30
35
|
name: 'Serial Number',
|
|
31
36
|
description: '',
|
|
32
37
|
comments: '',
|
|
@@ -34,6 +39,7 @@ export const PaintItems = [
|
|
|
34
39
|
type: 'string',
|
|
35
40
|
},
|
|
36
41
|
{
|
|
42
|
+
id: faker.database.mongodbObjectId(),
|
|
37
43
|
name: 'SKU',
|
|
38
44
|
description: '',
|
|
39
45
|
comments: '',
|
|
@@ -41,6 +47,7 @@ export const PaintItems = [
|
|
|
41
47
|
type: 'string',
|
|
42
48
|
},
|
|
43
49
|
{
|
|
50
|
+
id: faker.database.mongodbObjectId(),
|
|
44
51
|
name: 'Color/Finish',
|
|
45
52
|
description: '',
|
|
46
53
|
comments: '',
|
|
@@ -48,6 +55,7 @@ export const PaintItems = [
|
|
|
48
55
|
type: 'string',
|
|
49
56
|
},
|
|
50
57
|
{
|
|
58
|
+
id: faker.database.mongodbObjectId(),
|
|
51
59
|
name: 'Notes',
|
|
52
60
|
description: '',
|
|
53
61
|
comments: '',
|
|
@@ -55,6 +63,7 @@ export const PaintItems = [
|
|
|
55
63
|
type: 'textarea',
|
|
56
64
|
},
|
|
57
65
|
{
|
|
66
|
+
id: faker.database.mongodbObjectId(),
|
|
58
67
|
name: 'Purchase Date',
|
|
59
68
|
description: '',
|
|
60
69
|
comments: '',
|
|
@@ -62,6 +71,7 @@ export const PaintItems = [
|
|
|
62
71
|
type: 'date',
|
|
63
72
|
},
|
|
64
73
|
{
|
|
74
|
+
id: faker.database.mongodbObjectId(),
|
|
65
75
|
name: 'Retailer/Company Name',
|
|
66
76
|
description: '',
|
|
67
77
|
comments: '',
|
|
@@ -69,6 +79,7 @@ export const PaintItems = [
|
|
|
69
79
|
type: 'string',
|
|
70
80
|
},
|
|
71
81
|
{
|
|
82
|
+
id: faker.database.mongodbObjectId(),
|
|
72
83
|
name: 'Amount Paid for Item',
|
|
73
84
|
description: '',
|
|
74
85
|
comments: '',
|
|
@@ -128,6 +139,7 @@ export const PaintItems = [
|
|
|
128
139
|
title: 'Cabinets-Bottom',
|
|
129
140
|
report: [
|
|
130
141
|
{
|
|
142
|
+
id: faker.database.mongodbObjectId(),
|
|
131
143
|
name: 'Item Name',
|
|
132
144
|
description: '',
|
|
133
145
|
comments: '',
|
|
@@ -135,6 +147,7 @@ export const PaintItems = [
|
|
|
135
147
|
type: 'string',
|
|
136
148
|
},
|
|
137
149
|
{
|
|
150
|
+
id: faker.database.mongodbObjectId(),
|
|
138
151
|
name: 'Brand/Manufacturer',
|
|
139
152
|
description: '',
|
|
140
153
|
comments: '',
|
|
@@ -142,6 +155,7 @@ export const PaintItems = [
|
|
|
142
155
|
type: 'string',
|
|
143
156
|
},
|
|
144
157
|
{
|
|
158
|
+
id: faker.database.mongodbObjectId(),
|
|
145
159
|
name: 'Model Number',
|
|
146
160
|
description: '',
|
|
147
161
|
comments: '',
|
|
@@ -149,6 +163,7 @@ export const PaintItems = [
|
|
|
149
163
|
type: 'string',
|
|
150
164
|
},
|
|
151
165
|
{
|
|
166
|
+
id: faker.database.mongodbObjectId(),
|
|
152
167
|
name: 'Serial Number',
|
|
153
168
|
description: '',
|
|
154
169
|
comments: '',
|
|
@@ -156,6 +171,7 @@ export const PaintItems = [
|
|
|
156
171
|
type: 'string',
|
|
157
172
|
},
|
|
158
173
|
{
|
|
174
|
+
id: faker.database.mongodbObjectId(),
|
|
159
175
|
name: 'SKU',
|
|
160
176
|
description: '',
|
|
161
177
|
comments: '',
|
|
@@ -163,6 +179,7 @@ export const PaintItems = [
|
|
|
163
179
|
type: 'string',
|
|
164
180
|
},
|
|
165
181
|
{
|
|
182
|
+
id: faker.database.mongodbObjectId(),
|
|
166
183
|
name: 'Color/Finish',
|
|
167
184
|
description: '',
|
|
168
185
|
comments: '',
|
|
@@ -170,6 +187,7 @@ export const PaintItems = [
|
|
|
170
187
|
type: 'string',
|
|
171
188
|
},
|
|
172
189
|
{
|
|
190
|
+
id: faker.database.mongodbObjectId(),
|
|
173
191
|
name: 'Notes',
|
|
174
192
|
description: '',
|
|
175
193
|
comments: '',
|
|
@@ -177,6 +195,7 @@ export const PaintItems = [
|
|
|
177
195
|
type: 'textarea',
|
|
178
196
|
},
|
|
179
197
|
{
|
|
198
|
+
id: faker.database.mongodbObjectId(),
|
|
180
199
|
name: 'Purchase Date',
|
|
181
200
|
description: '',
|
|
182
201
|
comments: '',
|
|
@@ -184,6 +203,7 @@ export const PaintItems = [
|
|
|
184
203
|
type: 'date',
|
|
185
204
|
},
|
|
186
205
|
{
|
|
206
|
+
id: faker.database.mongodbObjectId(),
|
|
187
207
|
name: 'Retailer/Company Name',
|
|
188
208
|
description: '',
|
|
189
209
|
comments: '',
|
|
@@ -191,6 +211,7 @@ export const PaintItems = [
|
|
|
191
211
|
type: 'string',
|
|
192
212
|
},
|
|
193
213
|
{
|
|
214
|
+
id: faker.database.mongodbObjectId(),
|
|
194
215
|
name: 'Amount Paid for Item',
|
|
195
216
|
description: '',
|
|
196
217
|
comments: '',
|
|
@@ -243,6 +264,7 @@ export const PaintItems = [
|
|
|
243
264
|
description: '',
|
|
244
265
|
report: [
|
|
245
266
|
{
|
|
267
|
+
id: faker.database.mongodbObjectId(),
|
|
246
268
|
name: 'Item Name',
|
|
247
269
|
description: '',
|
|
248
270
|
comments: '',
|
|
@@ -250,6 +272,7 @@ export const PaintItems = [
|
|
|
250
272
|
type: 'string',
|
|
251
273
|
},
|
|
252
274
|
{
|
|
275
|
+
id: faker.database.mongodbObjectId(),
|
|
253
276
|
name: 'Brand/Manufacturer',
|
|
254
277
|
description: '',
|
|
255
278
|
comments: '',
|
|
@@ -257,6 +280,7 @@ export const PaintItems = [
|
|
|
257
280
|
type: 'string',
|
|
258
281
|
},
|
|
259
282
|
{
|
|
283
|
+
id: faker.database.mongodbObjectId(),
|
|
260
284
|
name: 'Model Number',
|
|
261
285
|
description: '',
|
|
262
286
|
comments: '',
|
|
@@ -264,6 +288,7 @@ export const PaintItems = [
|
|
|
264
288
|
type: 'string',
|
|
265
289
|
},
|
|
266
290
|
{
|
|
291
|
+
id: faker.database.mongodbObjectId(),
|
|
267
292
|
name: 'Serial Number',
|
|
268
293
|
description: '',
|
|
269
294
|
comments: '',
|
|
@@ -271,6 +296,7 @@ export const PaintItems = [
|
|
|
271
296
|
type: 'string',
|
|
272
297
|
},
|
|
273
298
|
{
|
|
299
|
+
id: faker.database.mongodbObjectId(),
|
|
274
300
|
name: 'SKU',
|
|
275
301
|
description: '',
|
|
276
302
|
comments: '',
|
|
@@ -278,6 +304,7 @@ export const PaintItems = [
|
|
|
278
304
|
type: 'string',
|
|
279
305
|
},
|
|
280
306
|
{
|
|
307
|
+
id: faker.database.mongodbObjectId(),
|
|
281
308
|
name: 'Color/Finish',
|
|
282
309
|
description: '',
|
|
283
310
|
comments: '',
|
|
@@ -285,6 +312,7 @@ export const PaintItems = [
|
|
|
285
312
|
type: 'string',
|
|
286
313
|
},
|
|
287
314
|
{
|
|
315
|
+
id: faker.database.mongodbObjectId(),
|
|
288
316
|
name: 'Notes',
|
|
289
317
|
description: '',
|
|
290
318
|
comments: '',
|
|
@@ -292,6 +320,7 @@ export const PaintItems = [
|
|
|
292
320
|
type: 'textarea',
|
|
293
321
|
},
|
|
294
322
|
{
|
|
323
|
+
id: faker.database.mongodbObjectId(),
|
|
295
324
|
name: 'Purchase Date',
|
|
296
325
|
description: '',
|
|
297
326
|
comments: '',
|
|
@@ -299,6 +328,7 @@ export const PaintItems = [
|
|
|
299
328
|
type: 'date',
|
|
300
329
|
},
|
|
301
330
|
{
|
|
331
|
+
id: faker.database.mongodbObjectId(),
|
|
302
332
|
name: 'Retailer/Company Name',
|
|
303
333
|
description: '',
|
|
304
334
|
comments: '',
|
|
@@ -306,6 +336,7 @@ export const PaintItems = [
|
|
|
306
336
|
type: 'string',
|
|
307
337
|
},
|
|
308
338
|
{
|
|
339
|
+
id: faker.database.mongodbObjectId(),
|
|
309
340
|
name: 'Amount Paid for Item',
|
|
310
341
|
description: '',
|
|
311
342
|
comments: '',
|
|
@@ -342,6 +373,7 @@ export const PaintItems = [
|
|
|
342
373
|
description: '',
|
|
343
374
|
report: [
|
|
344
375
|
{
|
|
376
|
+
id: faker.database.mongodbObjectId(),
|
|
345
377
|
name: 'Item Name',
|
|
346
378
|
description: '',
|
|
347
379
|
comments: '',
|
|
@@ -349,6 +381,7 @@ export const PaintItems = [
|
|
|
349
381
|
type: 'string',
|
|
350
382
|
},
|
|
351
383
|
{
|
|
384
|
+
id: faker.database.mongodbObjectId(),
|
|
352
385
|
name: 'Brand/Manufacturer',
|
|
353
386
|
description: '',
|
|
354
387
|
comments: '',
|
|
@@ -356,6 +389,7 @@ export const PaintItems = [
|
|
|
356
389
|
type: 'string',
|
|
357
390
|
},
|
|
358
391
|
{
|
|
392
|
+
id: faker.database.mongodbObjectId(),
|
|
359
393
|
name: 'Model Number',
|
|
360
394
|
description: '',
|
|
361
395
|
comments: '',
|
|
@@ -363,6 +397,7 @@ export const PaintItems = [
|
|
|
363
397
|
type: 'string',
|
|
364
398
|
},
|
|
365
399
|
{
|
|
400
|
+
id: faker.database.mongodbObjectId(),
|
|
366
401
|
name: 'Serial Number',
|
|
367
402
|
description: '',
|
|
368
403
|
comments: '',
|
|
@@ -370,6 +405,7 @@ export const PaintItems = [
|
|
|
370
405
|
type: 'string',
|
|
371
406
|
},
|
|
372
407
|
{
|
|
408
|
+
id: faker.database.mongodbObjectId(),
|
|
373
409
|
name: 'SKU',
|
|
374
410
|
description: '',
|
|
375
411
|
comments: '',
|
|
@@ -377,6 +413,7 @@ export const PaintItems = [
|
|
|
377
413
|
type: 'string',
|
|
378
414
|
},
|
|
379
415
|
{
|
|
416
|
+
id: faker.database.mongodbObjectId(),
|
|
380
417
|
name: 'Color/Finish',
|
|
381
418
|
description: '',
|
|
382
419
|
comments: '',
|
|
@@ -384,6 +421,7 @@ export const PaintItems = [
|
|
|
384
421
|
type: 'string',
|
|
385
422
|
},
|
|
386
423
|
{
|
|
424
|
+
id: faker.database.mongodbObjectId(),
|
|
387
425
|
name: 'Notes',
|
|
388
426
|
description: '',
|
|
389
427
|
comments: '',
|
|
@@ -391,6 +429,7 @@ export const PaintItems = [
|
|
|
391
429
|
type: 'textarea',
|
|
392
430
|
},
|
|
393
431
|
{
|
|
432
|
+
id: faker.database.mongodbObjectId(),
|
|
394
433
|
name: 'Purchase Date',
|
|
395
434
|
description: '',
|
|
396
435
|
comments: '',
|
|
@@ -398,6 +437,7 @@ export const PaintItems = [
|
|
|
398
437
|
type: 'date',
|
|
399
438
|
},
|
|
400
439
|
{
|
|
440
|
+
id: faker.database.mongodbObjectId(),
|
|
401
441
|
name: 'Retailer/Company Name',
|
|
402
442
|
description: '',
|
|
403
443
|
comments: '',
|
|
@@ -405,6 +445,7 @@ export const PaintItems = [
|
|
|
405
445
|
type: 'string',
|
|
406
446
|
},
|
|
407
447
|
{
|
|
448
|
+
id: faker.database.mongodbObjectId(),
|
|
408
449
|
name: 'Amount Paid for Item',
|
|
409
450
|
description: '',
|
|
410
451
|
comments: '',
|
|
@@ -438,6 +479,7 @@ export const PaintItems = [
|
|
|
438
479
|
description: '',
|
|
439
480
|
report: [
|
|
440
481
|
{
|
|
482
|
+
id: faker.database.mongodbObjectId(),
|
|
441
483
|
name: 'Item Name',
|
|
442
484
|
description: '',
|
|
443
485
|
comments: '',
|
|
@@ -445,6 +487,7 @@ export const PaintItems = [
|
|
|
445
487
|
type: 'string',
|
|
446
488
|
},
|
|
447
489
|
{
|
|
490
|
+
id: faker.database.mongodbObjectId(),
|
|
448
491
|
name: 'Brand/Manufacturer',
|
|
449
492
|
description: '',
|
|
450
493
|
comments: '',
|
|
@@ -452,6 +495,7 @@ export const PaintItems = [
|
|
|
452
495
|
type: 'string',
|
|
453
496
|
},
|
|
454
497
|
{
|
|
498
|
+
id: faker.database.mongodbObjectId(),
|
|
455
499
|
name: 'Model Number',
|
|
456
500
|
description: '',
|
|
457
501
|
comments: '',
|
|
@@ -459,6 +503,7 @@ export const PaintItems = [
|
|
|
459
503
|
type: 'string',
|
|
460
504
|
},
|
|
461
505
|
{
|
|
506
|
+
id: faker.database.mongodbObjectId(),
|
|
462
507
|
name: 'Serial Number',
|
|
463
508
|
description: '',
|
|
464
509
|
comments: '',
|
|
@@ -466,6 +511,7 @@ export const PaintItems = [
|
|
|
466
511
|
type: 'string',
|
|
467
512
|
},
|
|
468
513
|
{
|
|
514
|
+
id: faker.database.mongodbObjectId(),
|
|
469
515
|
name: 'SKU',
|
|
470
516
|
description: '',
|
|
471
517
|
comments: '',
|
|
@@ -473,6 +519,7 @@ export const PaintItems = [
|
|
|
473
519
|
type: 'string',
|
|
474
520
|
},
|
|
475
521
|
{
|
|
522
|
+
id: faker.database.mongodbObjectId(),
|
|
476
523
|
name: 'Color/Finish',
|
|
477
524
|
description: '',
|
|
478
525
|
comments: '',
|
|
@@ -480,6 +527,7 @@ export const PaintItems = [
|
|
|
480
527
|
type: 'string',
|
|
481
528
|
},
|
|
482
529
|
{
|
|
530
|
+
id: faker.database.mongodbObjectId(),
|
|
483
531
|
name: 'Notes',
|
|
484
532
|
description: '',
|
|
485
533
|
comments: '',
|
|
@@ -487,6 +535,7 @@ export const PaintItems = [
|
|
|
487
535
|
type: 'textarea',
|
|
488
536
|
},
|
|
489
537
|
{
|
|
538
|
+
id: faker.database.mongodbObjectId(),
|
|
490
539
|
name: 'Purchase Date',
|
|
491
540
|
description: '',
|
|
492
541
|
comments: '',
|
|
@@ -494,6 +543,7 @@ export const PaintItems = [
|
|
|
494
543
|
type: 'date',
|
|
495
544
|
},
|
|
496
545
|
{
|
|
546
|
+
id: faker.database.mongodbObjectId(),
|
|
497
547
|
name: 'Retailer/Company Name',
|
|
498
548
|
description: '',
|
|
499
549
|
comments: '',
|
|
@@ -501,6 +551,7 @@ export const PaintItems = [
|
|
|
501
551
|
type: 'string',
|
|
502
552
|
},
|
|
503
553
|
{
|
|
554
|
+
id: faker.database.mongodbObjectId(),
|
|
504
555
|
name: 'Amount Paid for Item',
|
|
505
556
|
description: '',
|
|
506
557
|
comments: '',
|
|
@@ -534,6 +585,7 @@ export const PaintItems = [
|
|
|
534
585
|
description: '',
|
|
535
586
|
report: [
|
|
536
587
|
{
|
|
588
|
+
id: faker.database.mongodbObjectId(),
|
|
537
589
|
name: 'Item Name',
|
|
538
590
|
description: '',
|
|
539
591
|
comments: '',
|
|
@@ -541,6 +593,7 @@ export const PaintItems = [
|
|
|
541
593
|
type: 'string',
|
|
542
594
|
},
|
|
543
595
|
{
|
|
596
|
+
id: faker.database.mongodbObjectId(),
|
|
544
597
|
name: 'Brand/Manufacturer',
|
|
545
598
|
description: '',
|
|
546
599
|
comments: '',
|
|
@@ -548,6 +601,7 @@ export const PaintItems = [
|
|
|
548
601
|
type: 'string',
|
|
549
602
|
},
|
|
550
603
|
{
|
|
604
|
+
id: faker.database.mongodbObjectId(),
|
|
551
605
|
name: 'Model Number',
|
|
552
606
|
description: '',
|
|
553
607
|
comments: '',
|
|
@@ -555,6 +609,7 @@ export const PaintItems = [
|
|
|
555
609
|
type: 'string',
|
|
556
610
|
},
|
|
557
611
|
{
|
|
612
|
+
id: faker.database.mongodbObjectId(),
|
|
558
613
|
name: 'Serial Number',
|
|
559
614
|
description: '',
|
|
560
615
|
comments: '',
|
|
@@ -562,6 +617,7 @@ export const PaintItems = [
|
|
|
562
617
|
type: 'string',
|
|
563
618
|
},
|
|
564
619
|
{
|
|
620
|
+
id: faker.database.mongodbObjectId(),
|
|
565
621
|
name: 'SKU',
|
|
566
622
|
description: '',
|
|
567
623
|
comments: '',
|
|
@@ -569,6 +625,7 @@ export const PaintItems = [
|
|
|
569
625
|
type: 'string',
|
|
570
626
|
},
|
|
571
627
|
{
|
|
628
|
+
id: faker.database.mongodbObjectId(),
|
|
572
629
|
name: 'Color/Finish',
|
|
573
630
|
description: '',
|
|
574
631
|
comments: '',
|
|
@@ -576,6 +633,7 @@ export const PaintItems = [
|
|
|
576
633
|
type: 'string',
|
|
577
634
|
},
|
|
578
635
|
{
|
|
636
|
+
id: faker.database.mongodbObjectId(),
|
|
579
637
|
name: 'Notes',
|
|
580
638
|
description: '',
|
|
581
639
|
comments: '',
|
|
@@ -583,6 +641,7 @@ export const PaintItems = [
|
|
|
583
641
|
type: 'textarea',
|
|
584
642
|
},
|
|
585
643
|
{
|
|
644
|
+
id: faker.database.mongodbObjectId(),
|
|
586
645
|
name: 'Purchase Date',
|
|
587
646
|
description: '',
|
|
588
647
|
comments: '',
|
|
@@ -590,6 +649,7 @@ export const PaintItems = [
|
|
|
590
649
|
type: 'date',
|
|
591
650
|
},
|
|
592
651
|
{
|
|
652
|
+
id: faker.database.mongodbObjectId(),
|
|
593
653
|
name: 'Retailer/Company Name',
|
|
594
654
|
description: '',
|
|
595
655
|
comments: '',
|
|
@@ -597,6 +657,7 @@ export const PaintItems = [
|
|
|
597
657
|
type: 'string',
|
|
598
658
|
},
|
|
599
659
|
{
|
|
660
|
+
id: faker.database.mongodbObjectId(),
|
|
600
661
|
name: 'Amount Paid for Item',
|
|
601
662
|
description: '',
|
|
602
663
|
comments: '',
|
|
@@ -630,6 +691,7 @@ export const PaintItems = [
|
|
|
630
691
|
description: '',
|
|
631
692
|
report: [
|
|
632
693
|
{
|
|
694
|
+
id: faker.database.mongodbObjectId(),
|
|
633
695
|
name: 'Item Name',
|
|
634
696
|
description: '',
|
|
635
697
|
comments: '',
|
|
@@ -637,6 +699,7 @@ export const PaintItems = [
|
|
|
637
699
|
type: 'string',
|
|
638
700
|
},
|
|
639
701
|
{
|
|
702
|
+
id: faker.database.mongodbObjectId(),
|
|
640
703
|
name: 'Brand/Manufacturer',
|
|
641
704
|
description: '',
|
|
642
705
|
comments: '',
|
|
@@ -644,6 +707,7 @@ export const PaintItems = [
|
|
|
644
707
|
type: 'string',
|
|
645
708
|
},
|
|
646
709
|
{
|
|
710
|
+
id: faker.database.mongodbObjectId(),
|
|
647
711
|
name: 'Model Number',
|
|
648
712
|
description: '',
|
|
649
713
|
comments: '',
|
|
@@ -651,6 +715,7 @@ export const PaintItems = [
|
|
|
651
715
|
type: 'string',
|
|
652
716
|
},
|
|
653
717
|
{
|
|
718
|
+
id: faker.database.mongodbObjectId(),
|
|
654
719
|
name: 'Serial Number',
|
|
655
720
|
description: '',
|
|
656
721
|
comments: '',
|
|
@@ -658,6 +723,7 @@ export const PaintItems = [
|
|
|
658
723
|
type: 'string',
|
|
659
724
|
},
|
|
660
725
|
{
|
|
726
|
+
id: faker.database.mongodbObjectId(),
|
|
661
727
|
name: 'SKU',
|
|
662
728
|
description: '',
|
|
663
729
|
comments: '',
|
|
@@ -665,6 +731,7 @@ export const PaintItems = [
|
|
|
665
731
|
type: 'string',
|
|
666
732
|
},
|
|
667
733
|
{
|
|
734
|
+
id: faker.database.mongodbObjectId(),
|
|
668
735
|
name: 'Color/Finish',
|
|
669
736
|
description: '',
|
|
670
737
|
comments: '',
|
|
@@ -672,6 +739,7 @@ export const PaintItems = [
|
|
|
672
739
|
type: 'string',
|
|
673
740
|
},
|
|
674
741
|
{
|
|
742
|
+
id: faker.database.mongodbObjectId(),
|
|
675
743
|
name: 'Notes',
|
|
676
744
|
description: '',
|
|
677
745
|
comments: '',
|
|
@@ -679,6 +747,7 @@ export const PaintItems = [
|
|
|
679
747
|
type: 'textarea',
|
|
680
748
|
},
|
|
681
749
|
{
|
|
750
|
+
id: faker.database.mongodbObjectId(),
|
|
682
751
|
name: 'Purchase Date',
|
|
683
752
|
description: '',
|
|
684
753
|
comments: '',
|
|
@@ -686,6 +755,7 @@ export const PaintItems = [
|
|
|
686
755
|
type: 'date',
|
|
687
756
|
},
|
|
688
757
|
{
|
|
758
|
+
id: faker.database.mongodbObjectId(),
|
|
689
759
|
name: 'Retailer/Company Name',
|
|
690
760
|
description: '',
|
|
691
761
|
comments: '',
|
|
@@ -693,6 +763,7 @@ export const PaintItems = [
|
|
|
693
763
|
type: 'string',
|
|
694
764
|
},
|
|
695
765
|
{
|
|
766
|
+
id: faker.database.mongodbObjectId(),
|
|
696
767
|
name: 'Amount Paid for Item',
|
|
697
768
|
description: '',
|
|
698
769
|
comments: '',
|
|
@@ -726,6 +797,7 @@ export const PaintItems = [
|
|
|
726
797
|
description: '',
|
|
727
798
|
report: [
|
|
728
799
|
{
|
|
800
|
+
id: faker.database.mongodbObjectId(),
|
|
729
801
|
name: 'Item Name',
|
|
730
802
|
description: '',
|
|
731
803
|
comments: '',
|
|
@@ -733,6 +805,7 @@ export const PaintItems = [
|
|
|
733
805
|
type: 'string',
|
|
734
806
|
},
|
|
735
807
|
{
|
|
808
|
+
id: faker.database.mongodbObjectId(),
|
|
736
809
|
name: 'Brand/Manufacturer',
|
|
737
810
|
description: '',
|
|
738
811
|
comments: '',
|
|
@@ -740,6 +813,7 @@ export const PaintItems = [
|
|
|
740
813
|
type: 'string',
|
|
741
814
|
},
|
|
742
815
|
{
|
|
816
|
+
id: faker.database.mongodbObjectId(),
|
|
743
817
|
name: 'Model Number',
|
|
744
818
|
description: '',
|
|
745
819
|
comments: '',
|
|
@@ -747,6 +821,7 @@ export const PaintItems = [
|
|
|
747
821
|
type: 'string',
|
|
748
822
|
},
|
|
749
823
|
{
|
|
824
|
+
id: faker.database.mongodbObjectId(),
|
|
750
825
|
name: 'Serial Number',
|
|
751
826
|
description: '',
|
|
752
827
|
comments: '',
|
|
@@ -754,6 +829,7 @@ export const PaintItems = [
|
|
|
754
829
|
type: 'string',
|
|
755
830
|
},
|
|
756
831
|
{
|
|
832
|
+
id: faker.database.mongodbObjectId(),
|
|
757
833
|
name: 'SKU',
|
|
758
834
|
description: '',
|
|
759
835
|
comments: '',
|
|
@@ -761,6 +837,7 @@ export const PaintItems = [
|
|
|
761
837
|
type: 'string',
|
|
762
838
|
},
|
|
763
839
|
{
|
|
840
|
+
id: faker.database.mongodbObjectId(),
|
|
764
841
|
name: 'Color/Finish',
|
|
765
842
|
description: '',
|
|
766
843
|
comments: '',
|
|
@@ -768,6 +845,7 @@ export const PaintItems = [
|
|
|
768
845
|
type: 'string',
|
|
769
846
|
},
|
|
770
847
|
{
|
|
848
|
+
id: faker.database.mongodbObjectId(),
|
|
771
849
|
name: 'Notes',
|
|
772
850
|
description: '',
|
|
773
851
|
comments: '',
|
|
@@ -775,6 +853,7 @@ export const PaintItems = [
|
|
|
775
853
|
type: 'textarea',
|
|
776
854
|
},
|
|
777
855
|
{
|
|
856
|
+
id: faker.database.mongodbObjectId(),
|
|
778
857
|
name: 'Purchase Date',
|
|
779
858
|
description: '',
|
|
780
859
|
comments: '',
|
|
@@ -782,6 +861,7 @@ export const PaintItems = [
|
|
|
782
861
|
type: 'date',
|
|
783
862
|
},
|
|
784
863
|
{
|
|
864
|
+
id: faker.database.mongodbObjectId(),
|
|
785
865
|
name: 'Retailer/Company Name',
|
|
786
866
|
description: '',
|
|
787
867
|
comments: '',
|
|
@@ -789,6 +869,7 @@ export const PaintItems = [
|
|
|
789
869
|
type: 'string',
|
|
790
870
|
},
|
|
791
871
|
{
|
|
872
|
+
id: faker.database.mongodbObjectId(),
|
|
792
873
|
name: 'Amount Paid for Item',
|
|
793
874
|
description: '',
|
|
794
875
|
comments: '',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FileI, FolderI, ImageDBI, SelectItemI, AssociatedAccountI, RoomItemI, FileInfoI, ReceiptOrigintProps } from '..';
|
|
1
|
+
import { FileI, FolderI, ImageDBI, SelectItemI, AssociatedAccountI, RoomItemI, FileInfoI, ReceiptOrigintProps, ReportI } from '..';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
export interface FolderDetailI {
|
|
4
4
|
addedBy: string;
|
|
@@ -59,7 +59,7 @@ export interface ReportsI {
|
|
|
59
59
|
images: ImageDBI[];
|
|
60
60
|
metadata?: ReportMetadataI;
|
|
61
61
|
needsReview: boolean;
|
|
62
|
-
report:
|
|
62
|
+
report: ReportI[];
|
|
63
63
|
reviewed: boolean;
|
|
64
64
|
room: RoomItemI;
|
|
65
65
|
status: string;
|
package/package.json
CHANGED
|
@@ -224,6 +224,7 @@ export const fileDB: ReportsI[] = [
|
|
|
224
224
|
description: '',
|
|
225
225
|
report: [
|
|
226
226
|
{
|
|
227
|
+
id: "test1",
|
|
227
228
|
name: 'Weekly Update',
|
|
228
229
|
description: '',
|
|
229
230
|
comments: '',
|
|
@@ -231,6 +232,7 @@ export const fileDB: ReportsI[] = [
|
|
|
231
232
|
type: 'string',
|
|
232
233
|
},
|
|
233
234
|
{
|
|
235
|
+
id: "test2",
|
|
234
236
|
name: 'Two week look ahead',
|
|
235
237
|
description: '',
|
|
236
238
|
comments: '',
|
|
@@ -238,6 +240,7 @@ export const fileDB: ReportsI[] = [
|
|
|
238
240
|
type: 'string',
|
|
239
241
|
},
|
|
240
242
|
{
|
|
243
|
+
id: "test3",
|
|
241
244
|
name: 'Items outstanding/owner clarifications',
|
|
242
245
|
description: '',
|
|
243
246
|
comments: '',
|
|
@@ -245,6 +248,7 @@ export const fileDB: ReportsI[] = [
|
|
|
245
248
|
type: 'string',
|
|
246
249
|
},
|
|
247
250
|
{
|
|
251
|
+
id: "test4",
|
|
248
252
|
name: 'Milestone goals-per construction schedule',
|
|
249
253
|
description: '',
|
|
250
254
|
comments: '',
|
|
@@ -252,6 +256,7 @@ export const fileDB: ReportsI[] = [
|
|
|
252
256
|
type: 'string',
|
|
253
257
|
},
|
|
254
258
|
{
|
|
259
|
+
id: "test5",
|
|
255
260
|
name: 'Supply updates',
|
|
256
261
|
description: '',
|
|
257
262
|
comments: 'Can be used as placeholder or something else',
|
|
@@ -259,6 +264,7 @@ export const fileDB: ReportsI[] = [
|
|
|
259
264
|
type: 'string',
|
|
260
265
|
},
|
|
261
266
|
{
|
|
267
|
+
id: "test6",
|
|
262
268
|
name: 'Project manager comments',
|
|
263
269
|
description: '',
|
|
264
270
|
comments: '',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { faker } from '@faker-js/faker'
|
|
1
2
|
import { ReportsI } from '@/interfaces'
|
|
2
3
|
|
|
3
4
|
export const PaintItems: ReportsI[] = [
|
|
@@ -8,6 +9,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
8
9
|
title: 'Wall color',
|
|
9
10
|
report: [
|
|
10
11
|
{
|
|
12
|
+
id: faker.database.mongodbObjectId(),
|
|
11
13
|
name: 'Item Name',
|
|
12
14
|
description: '',
|
|
13
15
|
comments: '',
|
|
@@ -15,6 +17,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
15
17
|
type: 'string',
|
|
16
18
|
},
|
|
17
19
|
{
|
|
20
|
+
id: faker.database.mongodbObjectId(),
|
|
18
21
|
name: 'Brand/Manufacturer',
|
|
19
22
|
description: '',
|
|
20
23
|
comments: '',
|
|
@@ -22,6 +25,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
22
25
|
type: 'string',
|
|
23
26
|
},
|
|
24
27
|
{
|
|
28
|
+
id: faker.database.mongodbObjectId(),
|
|
25
29
|
name: 'Model Number',
|
|
26
30
|
description: '',
|
|
27
31
|
comments: '',
|
|
@@ -29,6 +33,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
29
33
|
type: 'string',
|
|
30
34
|
},
|
|
31
35
|
{
|
|
36
|
+
id: faker.database.mongodbObjectId(),
|
|
32
37
|
name: 'Serial Number',
|
|
33
38
|
description: '',
|
|
34
39
|
comments: '',
|
|
@@ -36,6 +41,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
36
41
|
type: 'string',
|
|
37
42
|
},
|
|
38
43
|
{
|
|
44
|
+
id: faker.database.mongodbObjectId(),
|
|
39
45
|
name: 'SKU',
|
|
40
46
|
description: '',
|
|
41
47
|
comments: '',
|
|
@@ -43,6 +49,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
43
49
|
type: 'string',
|
|
44
50
|
},
|
|
45
51
|
{
|
|
52
|
+
id: faker.database.mongodbObjectId(),
|
|
46
53
|
name: 'Color/Finish',
|
|
47
54
|
description: '',
|
|
48
55
|
comments: '',
|
|
@@ -50,6 +57,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
50
57
|
type: 'string',
|
|
51
58
|
},
|
|
52
59
|
{
|
|
60
|
+
id: faker.database.mongodbObjectId(),
|
|
53
61
|
name: 'Notes',
|
|
54
62
|
description: '',
|
|
55
63
|
comments: '',
|
|
@@ -57,6 +65,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
57
65
|
type: 'textarea',
|
|
58
66
|
},
|
|
59
67
|
{
|
|
68
|
+
id: faker.database.mongodbObjectId(),
|
|
60
69
|
name: 'Purchase Date',
|
|
61
70
|
description: '',
|
|
62
71
|
comments: '',
|
|
@@ -64,6 +73,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
64
73
|
type: 'date',
|
|
65
74
|
},
|
|
66
75
|
{
|
|
76
|
+
id: faker.database.mongodbObjectId(),
|
|
67
77
|
name: 'Retailer/Company Name',
|
|
68
78
|
description: '',
|
|
69
79
|
comments: '',
|
|
@@ -71,6 +81,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
71
81
|
type: 'string',
|
|
72
82
|
},
|
|
73
83
|
{
|
|
84
|
+
id: faker.database.mongodbObjectId(),
|
|
74
85
|
name: 'Amount Paid for Item',
|
|
75
86
|
description: '',
|
|
76
87
|
comments: '',
|
|
@@ -130,6 +141,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
130
141
|
title: 'Cabinets-Bottom',
|
|
131
142
|
report: [
|
|
132
143
|
{
|
|
144
|
+
id: faker.database.mongodbObjectId(),
|
|
133
145
|
name: 'Item Name',
|
|
134
146
|
description: '',
|
|
135
147
|
comments: '',
|
|
@@ -137,6 +149,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
137
149
|
type: 'string',
|
|
138
150
|
},
|
|
139
151
|
{
|
|
152
|
+
id: faker.database.mongodbObjectId(),
|
|
140
153
|
name: 'Brand/Manufacturer',
|
|
141
154
|
description: '',
|
|
142
155
|
comments: '',
|
|
@@ -144,6 +157,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
144
157
|
type: 'string',
|
|
145
158
|
},
|
|
146
159
|
{
|
|
160
|
+
id: faker.database.mongodbObjectId(),
|
|
147
161
|
name: 'Model Number',
|
|
148
162
|
description: '',
|
|
149
163
|
comments: '',
|
|
@@ -151,6 +165,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
151
165
|
type: 'string',
|
|
152
166
|
},
|
|
153
167
|
{
|
|
168
|
+
id: faker.database.mongodbObjectId(),
|
|
154
169
|
name: 'Serial Number',
|
|
155
170
|
description: '',
|
|
156
171
|
comments: '',
|
|
@@ -158,6 +173,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
158
173
|
type: 'string',
|
|
159
174
|
},
|
|
160
175
|
{
|
|
176
|
+
id: faker.database.mongodbObjectId(),
|
|
161
177
|
name: 'SKU',
|
|
162
178
|
description: '',
|
|
163
179
|
comments: '',
|
|
@@ -165,6 +181,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
165
181
|
type: 'string',
|
|
166
182
|
},
|
|
167
183
|
{
|
|
184
|
+
id: faker.database.mongodbObjectId(),
|
|
168
185
|
name: 'Color/Finish',
|
|
169
186
|
description: '',
|
|
170
187
|
comments: '',
|
|
@@ -172,6 +189,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
172
189
|
type: 'string',
|
|
173
190
|
},
|
|
174
191
|
{
|
|
192
|
+
id: faker.database.mongodbObjectId(),
|
|
175
193
|
name: 'Notes',
|
|
176
194
|
description: '',
|
|
177
195
|
comments: '',
|
|
@@ -179,6 +197,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
179
197
|
type: 'textarea',
|
|
180
198
|
},
|
|
181
199
|
{
|
|
200
|
+
id: faker.database.mongodbObjectId(),
|
|
182
201
|
name: 'Purchase Date',
|
|
183
202
|
description: '',
|
|
184
203
|
comments: '',
|
|
@@ -186,6 +205,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
186
205
|
type: 'date',
|
|
187
206
|
},
|
|
188
207
|
{
|
|
208
|
+
id: faker.database.mongodbObjectId(),
|
|
189
209
|
name: 'Retailer/Company Name',
|
|
190
210
|
description: '',
|
|
191
211
|
comments: '',
|
|
@@ -193,6 +213,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
193
213
|
type: 'string',
|
|
194
214
|
},
|
|
195
215
|
{
|
|
216
|
+
id: faker.database.mongodbObjectId(),
|
|
196
217
|
name: 'Amount Paid for Item',
|
|
197
218
|
description: '',
|
|
198
219
|
comments: '',
|
|
@@ -245,6 +266,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
245
266
|
description: '',
|
|
246
267
|
report: [
|
|
247
268
|
{
|
|
269
|
+
id: faker.database.mongodbObjectId(),
|
|
248
270
|
name: 'Item Name',
|
|
249
271
|
description: '',
|
|
250
272
|
comments: '',
|
|
@@ -252,6 +274,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
252
274
|
type: 'string',
|
|
253
275
|
},
|
|
254
276
|
{
|
|
277
|
+
id: faker.database.mongodbObjectId(),
|
|
255
278
|
name: 'Brand/Manufacturer',
|
|
256
279
|
description: '',
|
|
257
280
|
comments: '',
|
|
@@ -259,6 +282,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
259
282
|
type: 'string',
|
|
260
283
|
},
|
|
261
284
|
{
|
|
285
|
+
id: faker.database.mongodbObjectId(),
|
|
262
286
|
name: 'Model Number',
|
|
263
287
|
description: '',
|
|
264
288
|
comments: '',
|
|
@@ -266,6 +290,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
266
290
|
type: 'string',
|
|
267
291
|
},
|
|
268
292
|
{
|
|
293
|
+
id: faker.database.mongodbObjectId(),
|
|
269
294
|
name: 'Serial Number',
|
|
270
295
|
description: '',
|
|
271
296
|
comments: '',
|
|
@@ -273,6 +298,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
273
298
|
type: 'string',
|
|
274
299
|
},
|
|
275
300
|
{
|
|
301
|
+
id: faker.database.mongodbObjectId(),
|
|
276
302
|
name: 'SKU',
|
|
277
303
|
description: '',
|
|
278
304
|
comments: '',
|
|
@@ -280,6 +306,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
280
306
|
type: 'string',
|
|
281
307
|
},
|
|
282
308
|
{
|
|
309
|
+
id: faker.database.mongodbObjectId(),
|
|
283
310
|
name: 'Color/Finish',
|
|
284
311
|
description: '',
|
|
285
312
|
comments: '',
|
|
@@ -287,6 +314,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
287
314
|
type: 'string',
|
|
288
315
|
},
|
|
289
316
|
{
|
|
317
|
+
id: faker.database.mongodbObjectId(),
|
|
290
318
|
name: 'Notes',
|
|
291
319
|
description: '',
|
|
292
320
|
comments: '',
|
|
@@ -294,6 +322,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
294
322
|
type: 'textarea',
|
|
295
323
|
},
|
|
296
324
|
{
|
|
325
|
+
id: faker.database.mongodbObjectId(),
|
|
297
326
|
name: 'Purchase Date',
|
|
298
327
|
description: '',
|
|
299
328
|
comments: '',
|
|
@@ -301,6 +330,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
301
330
|
type: 'date',
|
|
302
331
|
},
|
|
303
332
|
{
|
|
333
|
+
id: faker.database.mongodbObjectId(),
|
|
304
334
|
name: 'Retailer/Company Name',
|
|
305
335
|
description: '',
|
|
306
336
|
comments: '',
|
|
@@ -308,6 +338,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
308
338
|
type: 'string',
|
|
309
339
|
},
|
|
310
340
|
{
|
|
341
|
+
id: faker.database.mongodbObjectId(),
|
|
311
342
|
name: 'Amount Paid for Item',
|
|
312
343
|
description: '',
|
|
313
344
|
comments: '',
|
|
@@ -344,6 +375,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
344
375
|
description: '',
|
|
345
376
|
report: [
|
|
346
377
|
{
|
|
378
|
+
id: faker.database.mongodbObjectId(),
|
|
347
379
|
name: 'Item Name',
|
|
348
380
|
description: '',
|
|
349
381
|
comments: '',
|
|
@@ -351,6 +383,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
351
383
|
type: 'string',
|
|
352
384
|
},
|
|
353
385
|
{
|
|
386
|
+
id: faker.database.mongodbObjectId(),
|
|
354
387
|
name: 'Brand/Manufacturer',
|
|
355
388
|
description: '',
|
|
356
389
|
comments: '',
|
|
@@ -358,6 +391,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
358
391
|
type: 'string',
|
|
359
392
|
},
|
|
360
393
|
{
|
|
394
|
+
id: faker.database.mongodbObjectId(),
|
|
361
395
|
name: 'Model Number',
|
|
362
396
|
description: '',
|
|
363
397
|
comments: '',
|
|
@@ -365,6 +399,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
365
399
|
type: 'string',
|
|
366
400
|
},
|
|
367
401
|
{
|
|
402
|
+
id: faker.database.mongodbObjectId(),
|
|
368
403
|
name: 'Serial Number',
|
|
369
404
|
description: '',
|
|
370
405
|
comments: '',
|
|
@@ -372,6 +407,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
372
407
|
type: 'string',
|
|
373
408
|
},
|
|
374
409
|
{
|
|
410
|
+
id: faker.database.mongodbObjectId(),
|
|
375
411
|
name: 'SKU',
|
|
376
412
|
description: '',
|
|
377
413
|
comments: '',
|
|
@@ -379,6 +415,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
379
415
|
type: 'string',
|
|
380
416
|
},
|
|
381
417
|
{
|
|
418
|
+
id: faker.database.mongodbObjectId(),
|
|
382
419
|
name: 'Color/Finish',
|
|
383
420
|
description: '',
|
|
384
421
|
comments: '',
|
|
@@ -386,6 +423,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
386
423
|
type: 'string',
|
|
387
424
|
},
|
|
388
425
|
{
|
|
426
|
+
id: faker.database.mongodbObjectId(),
|
|
389
427
|
name: 'Notes',
|
|
390
428
|
description: '',
|
|
391
429
|
comments: '',
|
|
@@ -393,6 +431,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
393
431
|
type: 'textarea',
|
|
394
432
|
},
|
|
395
433
|
{
|
|
434
|
+
id: faker.database.mongodbObjectId(),
|
|
396
435
|
name: 'Purchase Date',
|
|
397
436
|
description: '',
|
|
398
437
|
comments: '',
|
|
@@ -400,6 +439,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
400
439
|
type: 'date',
|
|
401
440
|
},
|
|
402
441
|
{
|
|
442
|
+
id: faker.database.mongodbObjectId(),
|
|
403
443
|
name: 'Retailer/Company Name',
|
|
404
444
|
description: '',
|
|
405
445
|
comments: '',
|
|
@@ -407,6 +447,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
407
447
|
type: 'string',
|
|
408
448
|
},
|
|
409
449
|
{
|
|
450
|
+
id: faker.database.mongodbObjectId(),
|
|
410
451
|
name: 'Amount Paid for Item',
|
|
411
452
|
description: '',
|
|
412
453
|
comments: '',
|
|
@@ -440,6 +481,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
440
481
|
description: '',
|
|
441
482
|
report: [
|
|
442
483
|
{
|
|
484
|
+
id: faker.database.mongodbObjectId(),
|
|
443
485
|
name: 'Item Name',
|
|
444
486
|
description: '',
|
|
445
487
|
comments: '',
|
|
@@ -447,6 +489,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
447
489
|
type: 'string',
|
|
448
490
|
},
|
|
449
491
|
{
|
|
492
|
+
id: faker.database.mongodbObjectId(),
|
|
450
493
|
name: 'Brand/Manufacturer',
|
|
451
494
|
description: '',
|
|
452
495
|
comments: '',
|
|
@@ -454,6 +497,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
454
497
|
type: 'string',
|
|
455
498
|
},
|
|
456
499
|
{
|
|
500
|
+
id: faker.database.mongodbObjectId(),
|
|
457
501
|
name: 'Model Number',
|
|
458
502
|
description: '',
|
|
459
503
|
comments: '',
|
|
@@ -461,6 +505,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
461
505
|
type: 'string',
|
|
462
506
|
},
|
|
463
507
|
{
|
|
508
|
+
id: faker.database.mongodbObjectId(),
|
|
464
509
|
name: 'Serial Number',
|
|
465
510
|
description: '',
|
|
466
511
|
comments: '',
|
|
@@ -468,6 +513,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
468
513
|
type: 'string',
|
|
469
514
|
},
|
|
470
515
|
{
|
|
516
|
+
id: faker.database.mongodbObjectId(),
|
|
471
517
|
name: 'SKU',
|
|
472
518
|
description: '',
|
|
473
519
|
comments: '',
|
|
@@ -475,6 +521,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
475
521
|
type: 'string',
|
|
476
522
|
},
|
|
477
523
|
{
|
|
524
|
+
id: faker.database.mongodbObjectId(),
|
|
478
525
|
name: 'Color/Finish',
|
|
479
526
|
description: '',
|
|
480
527
|
comments: '',
|
|
@@ -482,6 +529,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
482
529
|
type: 'string',
|
|
483
530
|
},
|
|
484
531
|
{
|
|
532
|
+
id: faker.database.mongodbObjectId(),
|
|
485
533
|
name: 'Notes',
|
|
486
534
|
description: '',
|
|
487
535
|
comments: '',
|
|
@@ -489,6 +537,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
489
537
|
type: 'textarea',
|
|
490
538
|
},
|
|
491
539
|
{
|
|
540
|
+
id: faker.database.mongodbObjectId(),
|
|
492
541
|
name: 'Purchase Date',
|
|
493
542
|
description: '',
|
|
494
543
|
comments: '',
|
|
@@ -496,6 +545,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
496
545
|
type: 'date',
|
|
497
546
|
},
|
|
498
547
|
{
|
|
548
|
+
id: faker.database.mongodbObjectId(),
|
|
499
549
|
name: 'Retailer/Company Name',
|
|
500
550
|
description: '',
|
|
501
551
|
comments: '',
|
|
@@ -503,6 +553,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
503
553
|
type: 'string',
|
|
504
554
|
},
|
|
505
555
|
{
|
|
556
|
+
id: faker.database.mongodbObjectId(),
|
|
506
557
|
name: 'Amount Paid for Item',
|
|
507
558
|
description: '',
|
|
508
559
|
comments: '',
|
|
@@ -536,6 +587,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
536
587
|
description: '',
|
|
537
588
|
report: [
|
|
538
589
|
{
|
|
590
|
+
id: faker.database.mongodbObjectId(),
|
|
539
591
|
name: 'Item Name',
|
|
540
592
|
description: '',
|
|
541
593
|
comments: '',
|
|
@@ -543,6 +595,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
543
595
|
type: 'string',
|
|
544
596
|
},
|
|
545
597
|
{
|
|
598
|
+
id: faker.database.mongodbObjectId(),
|
|
546
599
|
name: 'Brand/Manufacturer',
|
|
547
600
|
description: '',
|
|
548
601
|
comments: '',
|
|
@@ -550,6 +603,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
550
603
|
type: 'string',
|
|
551
604
|
},
|
|
552
605
|
{
|
|
606
|
+
id: faker.database.mongodbObjectId(),
|
|
553
607
|
name: 'Model Number',
|
|
554
608
|
description: '',
|
|
555
609
|
comments: '',
|
|
@@ -557,6 +611,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
557
611
|
type: 'string',
|
|
558
612
|
},
|
|
559
613
|
{
|
|
614
|
+
id: faker.database.mongodbObjectId(),
|
|
560
615
|
name: 'Serial Number',
|
|
561
616
|
description: '',
|
|
562
617
|
comments: '',
|
|
@@ -564,6 +619,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
564
619
|
type: 'string',
|
|
565
620
|
},
|
|
566
621
|
{
|
|
622
|
+
id: faker.database.mongodbObjectId(),
|
|
567
623
|
name: 'SKU',
|
|
568
624
|
description: '',
|
|
569
625
|
comments: '',
|
|
@@ -571,6 +627,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
571
627
|
type: 'string',
|
|
572
628
|
},
|
|
573
629
|
{
|
|
630
|
+
id: faker.database.mongodbObjectId(),
|
|
574
631
|
name: 'Color/Finish',
|
|
575
632
|
description: '',
|
|
576
633
|
comments: '',
|
|
@@ -578,6 +635,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
578
635
|
type: 'string',
|
|
579
636
|
},
|
|
580
637
|
{
|
|
638
|
+
id: faker.database.mongodbObjectId(),
|
|
581
639
|
name: 'Notes',
|
|
582
640
|
description: '',
|
|
583
641
|
comments: '',
|
|
@@ -585,6 +643,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
585
643
|
type: 'textarea',
|
|
586
644
|
},
|
|
587
645
|
{
|
|
646
|
+
id: faker.database.mongodbObjectId(),
|
|
588
647
|
name: 'Purchase Date',
|
|
589
648
|
description: '',
|
|
590
649
|
comments: '',
|
|
@@ -592,6 +651,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
592
651
|
type: 'date',
|
|
593
652
|
},
|
|
594
653
|
{
|
|
654
|
+
id: faker.database.mongodbObjectId(),
|
|
595
655
|
name: 'Retailer/Company Name',
|
|
596
656
|
description: '',
|
|
597
657
|
comments: '',
|
|
@@ -599,6 +659,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
599
659
|
type: 'string',
|
|
600
660
|
},
|
|
601
661
|
{
|
|
662
|
+
id: faker.database.mongodbObjectId(),
|
|
602
663
|
name: 'Amount Paid for Item',
|
|
603
664
|
description: '',
|
|
604
665
|
comments: '',
|
|
@@ -632,6 +693,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
632
693
|
description: '',
|
|
633
694
|
report: [
|
|
634
695
|
{
|
|
696
|
+
id: faker.database.mongodbObjectId(),
|
|
635
697
|
name: 'Item Name',
|
|
636
698
|
description: '',
|
|
637
699
|
comments: '',
|
|
@@ -639,6 +701,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
639
701
|
type: 'string',
|
|
640
702
|
},
|
|
641
703
|
{
|
|
704
|
+
id: faker.database.mongodbObjectId(),
|
|
642
705
|
name: 'Brand/Manufacturer',
|
|
643
706
|
description: '',
|
|
644
707
|
comments: '',
|
|
@@ -646,6 +709,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
646
709
|
type: 'string',
|
|
647
710
|
},
|
|
648
711
|
{
|
|
712
|
+
id: faker.database.mongodbObjectId(),
|
|
649
713
|
name: 'Model Number',
|
|
650
714
|
description: '',
|
|
651
715
|
comments: '',
|
|
@@ -653,6 +717,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
653
717
|
type: 'string',
|
|
654
718
|
},
|
|
655
719
|
{
|
|
720
|
+
id: faker.database.mongodbObjectId(),
|
|
656
721
|
name: 'Serial Number',
|
|
657
722
|
description: '',
|
|
658
723
|
comments: '',
|
|
@@ -660,6 +725,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
660
725
|
type: 'string',
|
|
661
726
|
},
|
|
662
727
|
{
|
|
728
|
+
id: faker.database.mongodbObjectId(),
|
|
663
729
|
name: 'SKU',
|
|
664
730
|
description: '',
|
|
665
731
|
comments: '',
|
|
@@ -667,6 +733,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
667
733
|
type: 'string',
|
|
668
734
|
},
|
|
669
735
|
{
|
|
736
|
+
id: faker.database.mongodbObjectId(),
|
|
670
737
|
name: 'Color/Finish',
|
|
671
738
|
description: '',
|
|
672
739
|
comments: '',
|
|
@@ -674,6 +741,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
674
741
|
type: 'string',
|
|
675
742
|
},
|
|
676
743
|
{
|
|
744
|
+
id: faker.database.mongodbObjectId(),
|
|
677
745
|
name: 'Notes',
|
|
678
746
|
description: '',
|
|
679
747
|
comments: '',
|
|
@@ -681,6 +749,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
681
749
|
type: 'textarea',
|
|
682
750
|
},
|
|
683
751
|
{
|
|
752
|
+
id: faker.database.mongodbObjectId(),
|
|
684
753
|
name: 'Purchase Date',
|
|
685
754
|
description: '',
|
|
686
755
|
comments: '',
|
|
@@ -688,6 +757,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
688
757
|
type: 'date',
|
|
689
758
|
},
|
|
690
759
|
{
|
|
760
|
+
id: faker.database.mongodbObjectId(),
|
|
691
761
|
name: 'Retailer/Company Name',
|
|
692
762
|
description: '',
|
|
693
763
|
comments: '',
|
|
@@ -695,6 +765,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
695
765
|
type: 'string',
|
|
696
766
|
},
|
|
697
767
|
{
|
|
768
|
+
id: faker.database.mongodbObjectId(),
|
|
698
769
|
name: 'Amount Paid for Item',
|
|
699
770
|
description: '',
|
|
700
771
|
comments: '',
|
|
@@ -728,6 +799,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
728
799
|
description: '',
|
|
729
800
|
report: [
|
|
730
801
|
{
|
|
802
|
+
id: faker.database.mongodbObjectId(),
|
|
731
803
|
name: 'Item Name',
|
|
732
804
|
description: '',
|
|
733
805
|
comments: '',
|
|
@@ -735,6 +807,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
735
807
|
type: 'string',
|
|
736
808
|
},
|
|
737
809
|
{
|
|
810
|
+
id: faker.database.mongodbObjectId(),
|
|
738
811
|
name: 'Brand/Manufacturer',
|
|
739
812
|
description: '',
|
|
740
813
|
comments: '',
|
|
@@ -742,6 +815,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
742
815
|
type: 'string',
|
|
743
816
|
},
|
|
744
817
|
{
|
|
818
|
+
id: faker.database.mongodbObjectId(),
|
|
745
819
|
name: 'Model Number',
|
|
746
820
|
description: '',
|
|
747
821
|
comments: '',
|
|
@@ -749,6 +823,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
749
823
|
type: 'string',
|
|
750
824
|
},
|
|
751
825
|
{
|
|
826
|
+
id: faker.database.mongodbObjectId(),
|
|
752
827
|
name: 'Serial Number',
|
|
753
828
|
description: '',
|
|
754
829
|
comments: '',
|
|
@@ -756,6 +831,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
756
831
|
type: 'string',
|
|
757
832
|
},
|
|
758
833
|
{
|
|
834
|
+
id: faker.database.mongodbObjectId(),
|
|
759
835
|
name: 'SKU',
|
|
760
836
|
description: '',
|
|
761
837
|
comments: '',
|
|
@@ -763,6 +839,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
763
839
|
type: 'string',
|
|
764
840
|
},
|
|
765
841
|
{
|
|
842
|
+
id: faker.database.mongodbObjectId(),
|
|
766
843
|
name: 'Color/Finish',
|
|
767
844
|
description: '',
|
|
768
845
|
comments: '',
|
|
@@ -770,6 +847,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
770
847
|
type: 'string',
|
|
771
848
|
},
|
|
772
849
|
{
|
|
850
|
+
id: faker.database.mongodbObjectId(),
|
|
773
851
|
name: 'Notes',
|
|
774
852
|
description: '',
|
|
775
853
|
comments: '',
|
|
@@ -777,6 +855,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
777
855
|
type: 'textarea',
|
|
778
856
|
},
|
|
779
857
|
{
|
|
858
|
+
id: faker.database.mongodbObjectId(),
|
|
780
859
|
name: 'Purchase Date',
|
|
781
860
|
description: '',
|
|
782
861
|
comments: '',
|
|
@@ -784,6 +863,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
784
863
|
type: 'date',
|
|
785
864
|
},
|
|
786
865
|
{
|
|
866
|
+
id: faker.database.mongodbObjectId(),
|
|
787
867
|
name: 'Retailer/Company Name',
|
|
788
868
|
description: '',
|
|
789
869
|
comments: '',
|
|
@@ -791,6 +871,7 @@ export const PaintItems: ReportsI[] = [
|
|
|
791
871
|
type: 'string',
|
|
792
872
|
},
|
|
793
873
|
{
|
|
874
|
+
id: faker.database.mongodbObjectId(),
|
|
794
875
|
name: 'Amount Paid for Item',
|
|
795
876
|
description: '',
|
|
796
877
|
comments: '',
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
RoomItemI,
|
|
8
8
|
FileInfoI,
|
|
9
9
|
ReceiptOrigintProps,
|
|
10
|
+
ReportI
|
|
10
11
|
} from '@/interfaces'
|
|
11
12
|
import { ReactNode } from 'react'
|
|
12
13
|
|
|
@@ -73,7 +74,7 @@ export interface ReportsI {
|
|
|
73
74
|
images: ImageDBI[]
|
|
74
75
|
metadata?: ReportMetadataI
|
|
75
76
|
needsReview: boolean
|
|
76
|
-
report:
|
|
77
|
+
report: ReportI[]
|
|
77
78
|
reviewed: boolean
|
|
78
79
|
room: RoomItemI
|
|
79
80
|
status: string
|