Skip to content

Feat implement birth v2 #563

Feat implement birth v2

Feat implement birth v2 #563

Triggered via pull request January 9, 2025 14:40
Status Failure
Total duration 58s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
test: src/form/V2/birth.ts#L15
Module '"@opencrvs/toolkit/events"' has no exported member 'SelectOption'.
test: src/form/V2/birth.ts#L320
Type '"BULLET_LIST"' is not assignable to type '"TEXT" | "DATE" | "PARAGRAPH" | "RADIO_GROUP" | "FILE"'.
test: src/form/V2/birth.ts#L387
Type '"SELECT"' is not assignable to type '"TEXT" | "DATE" | "PARAGRAPH" | "RADIO_GROUP" | "FILE"'.
test: src/form/V2/birth.ts#L418
Type '"SELECT"' is not assignable to type '"TEXT" | "DATE" | "PARAGRAPH" | "RADIO_GROUP" | "FILE"'.
test: src/form/V2/birth.ts#L438
Type '"HIDE"' is not assignable to type '"SHOW" | "ENABLE"'.
test: src/form/V2/birth.ts#L439
Property 'isUndefinedOrNotInArray' does not exist on type '{ isBeforeNow: () => { type: string; properties: { $form: { type: string; properties: { [x: string]: { type: string; format: string; formatMaximum: { $data: string; }; }; }; required: string[]; }; $now: { type: string; format: string; }; }; required: string[]; }; }'.
test: src/form/V2/birth.ts#L445
Type '{ id: string; type: "SELECT"; required: false; label: { defaultMessage: string; description: string; id: string; }; options: SelectOption[]; }' is not assignable to type '{ id: string; type: "TEXT"; label: { id: string; defaultMessage: string; description: string; }; options?: { maxLength?: number | undefined; } | undefined; validation?: { message: { id: string; defaultMessage: string; description: string; }; validator: any; }[] | undefined; ... 6 more ...; placeholder?: { ...; } | u...'.
test: src/form/V2/birth.ts#L450
Property 'isUndefinedOrNotInArray' does not exist on type '{ isBeforeNow: () => { type: string; properties: { $form: { type: string; properties: { [x: string]: { type: string; format: string; formatMaximum: { $data: string; }; }; }; required: string[]; }; $now: { type: string; format: string; }; }; required: string[]; }; }'.
test: src/form/V2/birth.ts#L456
Type '{ id: string; type: "TEXT"; label: { id: string; defaultMessage: string; description: string; }; conditionals: ({ type: "SHOW"; conditional: JSONSchema; } | { type: "ENABLE"; conditional: JSONSchema; })[]; ... 7 more ...; placeholder?: { ...; } | undefined; } | ... 6 more ... | { ...; }' is not assignable to type '{ id: string; type: "TEXT"; label: { id: string; defaultMessage: string; description: string; }; options?: { maxLength?: number | undefined; } | undefined; validation?: { message: { id: string; defaultMessage: string; description: string; }; validator: any; }[] | undefined; ... 6 more ...; placeholder?: { ...; } | u...'.
test: src/form/V2/birth.ts#L461
Property 'isUndefinedOrNotInArray' does not exist on type '{ isBeforeNow: () => { type: string; properties: { $form: { type: string; properties: { [x: string]: { type: string; format: string; formatMaximum: { $data: string; }; }; }; required: string[]; }; $now: { type: string; format: string; }; }; required: string[]; }; }'.