File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import type { Group } from '@opendatacapture/schemas/group';
44import type { UnilingualInstrumentInfo } from '@opendatacapture/schemas/instrument' ;
55import type { UploadInstrumentRecordsData } from '@opendatacapture/schemas/instrument-records' ;
66import { encodeScopedSubjectId } from '@opendatacapture/subject-utils' ;
7- import { parse , unparse } from 'papaparse' ;
7+ import { parse } from 'papaparse' ;
88import { z } from 'zod' ;
99import { z as z4 } from 'zod/v4' ;
1010
@@ -23,12 +23,8 @@ const ZOD_TYPE_NAMES = [
2323 'ZodEffects'
2424] as const ;
2525
26- const INTERNAL_HEADERS = [ 'subjectID' , 'date' ] ;
27-
2826const MONGOLIAN_VOWEL_SEPARATOR = String . fromCharCode ( 32 , 6158 ) ;
2927
30- const INTERNAL_HEADERS_SAMPLE_DATA = [ MONGOLIAN_VOWEL_SEPARATOR + 'string' , MONGOLIAN_VOWEL_SEPARATOR + 'yyyy-mm-dd' ] ;
31-
3228const SUBJECT_ID_REGEX = / ^ [ ^ $ \s ] + $ / ;
3329
3430type ZodTypeName = Extract < `${z . ZodFirstPartyTypeKind } `, ( typeof ZOD_TYPE_NAMES ) [ number ] > ;
@@ -59,13 +55,6 @@ type UploadOperationResult<T> =
5955 value : T ;
6056 } ;
6157
62- type PropertySchema = {
63- items ?: {
64- properties ?: { [ key : string ] : unknown } ;
65- } ;
66- type : string ;
67- } ;
68-
6958type AnyZodTypeDef = z . ZodTypeDef & { typeName : ZodTypeName } ;
7059
7160type AnyZodArrayDef = z . ZodArrayDef & { type : z . AnyZodObject } ;
You can’t perform that action at this time.
0 commit comments