forked from openmrs/openmrs-esm-admin-tools
/
openconceptlab.mock.ts
90 lines (88 loc) · 2.9 KB
/
openconceptlab.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
export const mockSubscription = {
url: 'https://api.openconceptlab.org/orgs/openmrs/collections/DemoQueueConcepts/1',
token: 'Cff4906d8f4890fb08E287f6179781F6165C',
subscribedToSnapshot: false,
validationType: 'FULL',
};
export const mockPreviousImports = [
{
uuid: 'f8f8f8f8-f8f8-f8f8-f8f8-f8f8f8f8f8f8',
localDateStarted: new Date('2022-08-08T13:51:54.000+0000'),
localDateStopped: new Date('2022-08-08T13:55:54.000+0000'),
importTime: '8 seconds',
importProgress: 100,
errorMessage: null,
allItemsCount: 0,
addedItemsCount: 0,
errorItemsCount: 0,
ignoredErrorsCount: 0,
updatedItemsCount: 0,
upToDateItemsCount: 0,
retiredItemsCount: 0,
unretiredItemsCount: 0,
status: '0 items fetched',
},
{
uuid: 'c053762d-e4d5-4433-a0f4-30aad91e12ca',
localDateStarted: new Date('2022-08-09T13:51:54.000+0000'),
localDateStopped: new Date('2022-08-09T13:52:31.000+0000'),
importTime: '37 seconds',
importProgress: 100,
errorMessage: 'Errors found',
allItemsCount: 1016,
addedItemsCount: 970,
errorItemsCount: 44,
ignoredErrorsCount: 0,
updatedItemsCount: 0,
upToDateItemsCount: 0,
retiredItemsCount: 2,
unretiredItemsCount: 0,
status: 'Errors found',
},
{
uuid: 'b8f8f8f8-f8f8-f8f8-f8f8-f8f8f8f8f8f8',
localDateStarted: new Date('2022-08-10T13:51:54.000+0000'),
localDateStopped: new Date('2022-08-10T13:52:31.000+0000'),
importTime: '10 seconds',
importProgress: 100,
errorMessage: null,
allItemsCount: 10,
addedItemsCount: 9,
errorItemsCount: 0,
ignoredErrorsCount: 0,
updatedItemsCount: 0,
upToDateItemsCount: 0,
retiredItemsCount: 1,
unretiredItemsCount: 0,
status: '9 items fetched',
},
];
export const mockImportItems = [
{
uuid: 'f8f8f8f8-f8f8-f8f8-f8f8-f8f8f8f8f8f8',
errorMessage: 'Cannot save mapping /orgs/CIEL/sources/CIEL/mappings/234354',
type: 'MAPPING',
versionUrl:
'https://api.openconceptlab.org/orgs/openmrs/collections/DemoQueueConcepts/1/items/f8f8f8f8-f8f8-f8f8-f8f8-f8f8f8f8f8f8',
updatedOn: new Date('2022-08-07T13:51:54.000+0000'),
state: 'ERROR',
},
{
uuid: 'c053762d-e4d5-4433-a0f4-30aad91e12ca',
errorMessage: 'Cannot save mapping /orgs/CIEL/sources/CIEL/mappings/345278',
type: 'MAPPING',
versionUrl:
'https://api.openconceptlab.org/orgs/openmrs/collections/DemoQueueConcepts/1/items/c053762d-e4d5-4433-a0f4-30aad91e12ca',
updatedOn: new Date('2022-08-07T13:51:54.000+0000'),
state: 'ERROR',
},
{
uuid: 'b8f8f8f8-f8f8-f8f8-f8f8-f8f8f8f8f8f8',
errorMessage: 'Cannot save mapping /orgs/CIEL/sources/CIEL/mappings/338345',
type: 'MAPPING',
versionUrl:
'https://api.openconceptlab.org/orgs/openmrs/collections/DemoQueueConcepts/1/items/b8f8f8f8-f8f8-f8f8-f8f8-f8f8f8f8f8f8',
updatedOn: new Date('2022-08-07T13:51:54.000+0000'),
state: 'ERROR',
},
];