Skip to content

Availability bug

Availability bug #4729

Triggered via pull request July 30, 2024 18:24
Status Failure
Total duration 2m 6s
Artifacts

pull_request.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 10 warnings
Typescript compile check: src/apps/material/helper.ts#L493
Element implicitly has an 'any' type because expression of type 'BlacklistType' can't be used to index type '{ availability: string; pickup: string; }'.
Typescript compile check: src/apps/material/helper.ts#L497
Element implicitly has an 'any' type because expression of type 'BlacklistType' can't be used to index type '{ availability: string; pickup: string; }'.
Typescript compile check: src/components/availability-label/availability-label.tsx#L7
Module '"./helper"' has no exported member 'useAvailabilityData'. Did you mean to use 'import useAvailabilityData from "./helper"' instead?
Typescript compile check: src/components/availability-label/useAvailabilityData.ts#L56
Argument of type '{ enabled: boolean; accessTypes: AccessTypeCode[]; access: ("AccessUrl" | "DigitalArticleService" | "Ereol" | "InfomediaService" | "InterLibraryLoan" | undefined)[]; faustIds: string[] | null; manifestText: string; isbn: string | null; }' is not assignable to parameter of type 'UseOnlineAvailabilityDataProps'.
Typescript compile check: src/components/availability-label/useOnlineAvailabilityData.ts#L33
Property 'dataLoadingIdentifier' does not exist on type 'UseQueryResult<ProductResult | null, unknown> & { queryKey: QueryKey; }'.
Typescript compile check: src/components/availability-label/useOnlineAvailabilityData.ts#L43
Property 'isLoadingEreolData' does not exist on type 'UseQueryResult<LoanStatusResult | null, unknown> & { queryKey: QueryKey; }'.
Lint .js and .jsx
Process completed with exit code 1.
Lint .js and .jsx: src/components/availability-label/useAvailabilityData.ts#L4
'useGetV1LoanstatusIdentifier' is defined but never used
Lint .js and .jsx: src/components/availability-label/useAvailabilityData.ts#L5
'useGetV1ProductsIdentifier' is defined but never used
Lint .js and .jsx: src/components/availability-label/useAvailabilityData.ts#L14
'publizonProductStatuses' is defined but never used
Lint .js and .jsx: src/components/availability-label/useAvailabilityData.ts#L17
'UseOnlineAvailabilityDataProps' is defined but never used