File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
web/src/views/SubmissionPortal/store Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change
1
+ import { AxiosResponse } from 'axios' ;
1
2
import { client , SearchParams , User } from '@/data/api' ;
2
3
import { HARMONIZER_TEMPLATES } from '../harmonizerApi' ;
3
4
@@ -45,6 +46,7 @@ interface MetadataSubmissionRecord {
45
46
locked_by : User ;
46
47
lock_updated : string ;
47
48
permission_level : string | null ;
49
+ source_client : 'submission_portal' | 'field_notes' | null ;
48
50
}
49
51
50
52
interface PaginatedResponse < T > {
@@ -53,8 +55,13 @@ interface PaginatedResponse<T> {
53
55
}
54
56
55
57
async function createRecord ( record : MetadataSubmission ) {
56
- const resp = await client . post < MetadataSubmissionRecord > ( 'metadata_submission' , {
58
+ const resp = await client . post <
59
+ MetadataSubmissionRecord ,
60
+ AxiosResponse < MetadataSubmissionRecord > ,
61
+ Partial < MetadataSubmissionRecord >
62
+ > ( 'metadata_submission' , {
57
63
metadata_submission : record ,
64
+ source_client : 'submission_portal' ,
58
65
} ) ;
59
66
return resp . data ;
60
67
}
You can’t perform that action at this time.
0 commit comments