-
Notifications
You must be signed in to change notification settings - Fork 5
/
UploadSeriesTable.mock.ts
69 lines (67 loc) · 1.53 KB
/
UploadSeriesTable.mock.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import type { FindUploadById } from 'types/graphql'
export const standardUpload = (): FindUploadById['upload'] => ({
id: 2,
filename: 'CPF Input Template v20240524.xlsm',
createdAt: '2024-09-05T22:02:35.736Z',
updatedAt: '2024-09-05T22:02:35.736Z',
__typename: 'Upload',
agency: {
code: 'MAUSDR',
__typename: 'Agency',
},
expenditureCategory: null,
reportingPeriod: {
name: 'First Reporting Period',
__typename: 'ReportingPeriod',
},
uploadedBy: {
id: 1,
name: 'USDR Admin',
__typename: 'User',
},
latestValidation: {
id: 28,
passed: true,
isManual: false,
results: {
errors: [],
},
createdAt: '2024-10-22T00:03:57.027Z',
__typename: 'UploadValidation',
initiatedBy: {
name: 'USDR Admin',
__typename: 'User',
},
},
})
export const standardSeriesUploads =
(): FindUploadById['upload']['seriesUploads'] => [
{
id: 10,
createdAt: '2024-10-21T23:56:49.260Z',
__typename: 'Upload',
latestValidation: {
id: 26,
passed: false,
isManual: false,
results: null,
createdAt: '2024-10-21T23:56:49.310Z',
__typename: 'UploadValidation',
},
},
{
id: 2,
createdAt: '2024-09-05T22:02:35.736Z',
__typename: 'Upload',
latestValidation: {
id: 28,
passed: true,
isManual: false,
results: {
errors: [],
},
createdAt: '2024-10-22T00:03:57.027Z',
__typename: 'UploadValidation',
},
},
]