Skip to content

fix(common): yarn check #446

fix(common): yarn check

fix(common): yarn check #446

GitHub Actions / TypeCheck failed Jan 14, 2025

Errors 37

Found 37 errors

Annotations

Check failure on line 18 in .yarn/__virtual__/@booking-telegram-bot-api-application-module-virtual-29043f5131/1/booking-telegram-bot/contexts/api/application-module/src/use-cases/write-booking-data.use-case.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Argument of type 'object' is not assignable to parameter of type 'Record<string, unknown>'.

Argument of type 'object' is not assignable to parameter of type 'Record<string, unknown>'.
Raw output
  16 |     if (typeof body === 'string') {
  17 |       const parsedBody: object = await JSON.parse(body)
> 18 |       const checkedBody = checkBookingDataHelper(parsedBody)
     |                                                  ^
  19 |       await this.appointmentEntityRepository.writeData(checkedBody)
  20 |       return HttpStatus.OK
  21 |     }

Check failure on line 25 in .yarn/__virtual__/@booking-telegram-bot-apollo-adapter-virtual-e43c627421/1/booking-telegram-bot/adapters/apollo-adapter/src/services/get-car-body-titles.service.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Property 'carBodyItems' does not exist on type 'DocumentNode'.

Property 'carBodyItems' does not exist on type 'DocumentNode'.
Raw output
  23 |   private async getCarBodiesData(): ReturnDataType {
  24 |     const queryData = await this.apolloAdapterService.runQuery(GET_CAR_BODIES)
> 25 |     const carBodiesQueryData: Awaited<ReturnDataType> = queryData.data.carBodyItems
     |                                                                        ^
  26 |       .nodes as Awaited<ReturnDataType>
  27 |     checkArrayLength({ carBodiesQueryData })
  28 |     return carBodiesQueryData

Check failure on line 25 in .yarn/__virtual__/@booking-telegram-bot-apollo-adapter-virtual-e43c627421/1/booking-telegram-bot/adapters/apollo-adapter/src/services/get-radii-titles.service.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Property 'availableRadiusItems' does not exist on type 'DocumentNode'.

Property 'availableRadiusItems' does not exist on type 'DocumentNode'.
Raw output
  23 |   private async getRadiiData(): ReturnDataType {
  24 |     const queryData = await this.apolloAdapterService.runQuery(GET_AVAILABLE_RADII)
> 25 |     const radiiQueryData: Awaited<ReturnDataType> = queryData.data.availableRadiusItems
     |                                                                    ^
  26 |       .nodes as Awaited<ReturnDataType>
  27 |     checkArrayLength({ radiiQueryData })
  28 |     return radiiQueryData

Check failure on line 22 in .yarn/__virtual__/@booking-telegram-bot-apollo-adapter-virtual-e43c627421/1/booking-telegram-bot/adapters/apollo-adapter/src/services/get-service-titles.service.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Property 'services' does not exist on type 'DocumentNode'.

Property 'services' does not exist on type 'DocumentNode'.
Raw output
  20 |   private async getServicesData(): ReturnServicesDataType {
  21 |     const queryData = await this.apolloAdapterService.runQuery(GET_SERVICES)
> 22 |     const servicesQueryData = queryData.data.services.nodes
     |                                              ^
  23 |     checkArrayLength({ servicesQueryData })
  24 |     // eslint-disable-next-line @typescript-eslint/no-unsafe-return
  25 |     return servicesQueryData

Check failure on line 20 in .yarn/__virtual__/@booking-telegram-bot-apollo-adapter-virtual-e43c627421/1/booking-telegram-bot/adapters/apollo-adapter/src/services/get-work-time-raw-string.service.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Property 'contactItems' does not exist on type 'DocumentNode'.

Property 'contactItems' does not exist on type 'DocumentNode'.
Raw output
  18 |   private async getWorkTimeQueryData(): ReturnWorkTimeDataType {
  19 |     const queryData = await this.apolloAdapterService.runQuery(GET_CONTACTS)
> 20 |     const workTimeData: Awaited<ReturnWorkTimeDataType> = queryData.data.contactItems
     |                                                                          ^
  21 |       .nodes as Awaited<ReturnWorkTimeDataType>
  22 |     return workTimeData
  23 |   }

Check failure on line 19 in .yarn/__virtual__/@booking-telegram-bot-tgsnake-adapter-virtual-665230af63/1/booking-telegram-bot/adapters/tgsnake-adapter/src/getters/get-formatted-context.getter.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Argument of type 'Record<keyof TelegramBotFormattedContextType, any>' is not assignable to parameter of type 'Record<keyof TelegramBotFormattedContextType, never>'.

Argument of type 'Record<keyof TelegramBotFormattedContextType, any>' is not assignable to parameter of type 'Record<keyof TelegramBotFormattedContextType, never>'.
  Types of property 'userId' are incompatible.
    Type 'any' is not assignable to type 'never'.
Raw output
  17 |   }
  18 |
> 19 |   const formattedContextChecked = checkFormattedContextHelper(formattedContext)
     |                                                               ^
  20 |   return formattedContextChecked
  21 | }
  22 |

Check failure on line 78 in .yarn/__virtual__/@globals-data-virtual-44e28f67e7/1/globals/data/src/getters/aqsi-data-getter/format-output-data-helper/format-output-data.helper.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Type '({ service: string; radii: string; carBody: string; price: number; } | { service: string; radii: string; carBody: { wpVariant: string; aqsiVariant: string; }; price: number; })[]' is not assignable to type 'ServicesDataToReplaceType'.

Type '({ service: string; radii: string; carBody: string; price: number; } | { service: string; radii: string; carBody: { wpVariant: string; aqsiVariant: string; }; price: number; })[]' is not assignable to type 'ServicesDataToReplaceType'.
  Type '{ service: string; radii: string; carBody: string; price: number; } | { service: string; radii: string; carBody: { wpVariant: string; aqsiVariant: string; }; price: number; }' is not assignable to type '{ service: string; carBody: string; radii: string; price: number; }'.
    Type '{ service: string; radii: string; carBody: { wpVariant: string; aqsiVariant: string; }; price: number; }' is not assignable to type '{ service: string; carBody: string; radii: string; price: number; }'.
      Types of property 'carBody' are incompatible.
        Type '{ wpVariant: string; aqsiVariant: string; }' is not assignable to type 'string'.
Raw output
  76 |   }
  77 |
> 78 |   return output
     |   ^
  79 | }
  80 |

Check failure on line 78 in .yarn/__virtual__/@globals-data-virtual-d8255fbbef/1/globals/data/src/getters/aqsi-data-getter/format-output-data-helper/format-output-data.helper.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Type '({ service: string; radii: string; carBody: string; price: number; } | { service: string; radii: string; carBody: { wpVariant: string; aqsiVariant: string; }; price: number; })[]' is not assignable to type 'ServicesDataToReplaceType'.

Type '({ service: string; radii: string; carBody: string; price: number; } | { service: string; radii: string; carBody: { wpVariant: string; aqsiVariant: string; }; price: number; })[]' is not assignable to type 'ServicesDataToReplaceType'.
  Type '{ service: string; radii: string; carBody: string; price: number; } | { service: string; radii: string; carBody: { wpVariant: string; aqsiVariant: string; }; price: number; }' is not assignable to type '{ service: string; carBody: string; radii: string; price: number; }'.
    Type '{ service: string; radii: string; carBody: { wpVariant: string; aqsiVariant: string; }; price: number; }' is not assignable to type '{ service: string; carBody: string; radii: string; price: number; }'.
      Types of property 'carBody' are incompatible.
        Type '{ wpVariant: string; aqsiVariant: string; }' is not assignable to type 'string'.
Raw output
  76 |   }
  77 |
> 78 |   return output
     |   ^
  79 | }
  80 |

Check failure on line 14 in .yarn/__virtual__/@prices-prices-application-module-virtual-8210af6e28/1/prices/contexts/prices/application-module/src/mappers/2gis-goods-category-data.mapper.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Property 'parent' does not exist on type '{ id: string; name: string; }'.

Property 'parent' does not exist on type '{ id: string; name: string; }'.
Raw output
  12 |
  13 |       if (children) {
> 14 |         children.forEach(({ id: childrenId, parent }) => {
     |                                             ^
  15 |           categoriesSpecification[childrenId] = parent
  16 |         })
  17 |       }

Check failure on line 10 in .yarn/__virtual__/@telegram-bot-application-module-virtual-46abbb83d2/1/booking-telegram-bot/contexts/telegram-bot/application-module/src/getters/get-formatted-appointment-data.getter.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Property 'carBody' does not exist on type '{}'.

Property 'carBody' does not exist on type '{}'.
Raw output
   8 |   telegramFullName
   9 | ) => {
> 10 |   const { carBody, radii, service, commentary } = rawAppointmentData
     |           ^
  11 |   const timeSlotStart = BigInt(rawAppointmentData.timeSlot.milliseconds as number)
  12 |   const timeSlotEnd = BigInt(Number(rawAppointmentData.timeSlot.milliseconds) + TIME_SLOT_STEP_MS)
  13 |

Check failure on line 10 in .yarn/__virtual__/@telegram-bot-application-module-virtual-46abbb83d2/1/booking-telegram-bot/contexts/telegram-bot/application-module/src/getters/get-formatted-appointment-data.getter.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Property 'radii' does not exist on type '{}'.

Property 'radii' does not exist on type '{}'.
Raw output
   8 |   telegramFullName
   9 | ) => {
> 10 |   const { carBody, radii, service, commentary } = rawAppointmentData
     |                    ^
  11 |   const timeSlotStart = BigInt(rawAppointmentData.timeSlot.milliseconds as number)
  12 |   const timeSlotEnd = BigInt(Number(rawAppointmentData.timeSlot.milliseconds) + TIME_SLOT_STEP_MS)
  13 |

Check failure on line 10 in .yarn/__virtual__/@telegram-bot-application-module-virtual-46abbb83d2/1/booking-telegram-bot/contexts/telegram-bot/application-module/src/getters/get-formatted-appointment-data.getter.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Property 'service' does not exist on type '{}'.

Property 'service' does not exist on type '{}'.
Raw output
   8 |   telegramFullName
   9 | ) => {
> 10 |   const { carBody, radii, service, commentary } = rawAppointmentData
     |                           ^
  11 |   const timeSlotStart = BigInt(rawAppointmentData.timeSlot.milliseconds as number)
  12 |   const timeSlotEnd = BigInt(Number(rawAppointmentData.timeSlot.milliseconds) + TIME_SLOT_STEP_MS)
  13 |

Check failure on line 10 in .yarn/__virtual__/@telegram-bot-application-module-virtual-46abbb83d2/1/booking-telegram-bot/contexts/telegram-bot/application-module/src/getters/get-formatted-appointment-data.getter.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Property 'commentary' does not exist on type '{}'.

Property 'commentary' does not exist on type '{}'.
Raw output
   8 |   telegramFullName
   9 | ) => {
> 10 |   const { carBody, radii, service, commentary } = rawAppointmentData
     |                                    ^
  11 |   const timeSlotStart = BigInt(rawAppointmentData.timeSlot.milliseconds as number)
  12 |   const timeSlotEnd = BigInt(Number(rawAppointmentData.timeSlot.milliseconds) + TIME_SLOT_STEP_MS)
  13 |

Check failure on line 11 in .yarn/__virtual__/@telegram-bot-application-module-virtual-46abbb83d2/1/booking-telegram-bot/contexts/telegram-bot/application-module/src/getters/get-formatted-appointment-data.getter.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Property 'timeSlot' does not exist on type 'object'.

Property 'timeSlot' does not exist on type 'object'.
Raw output
   9 | ) => {
  10 |   const { carBody, radii, service, commentary } = rawAppointmentData
> 11 |   const timeSlotStart = BigInt(rawAppointmentData.timeSlot.milliseconds as number)
     |                                                   ^
  12 |   const timeSlotEnd = BigInt(Number(rawAppointmentData.timeSlot.milliseconds) + TIME_SLOT_STEP_MS)
  13 |
  14 |   return {

Check failure on line 12 in .yarn/__virtual__/@telegram-bot-application-module-virtual-46abbb83d2/1/booking-telegram-bot/contexts/telegram-bot/application-module/src/getters/get-formatted-appointment-data.getter.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Property 'timeSlot' does not exist on type 'object'.

Property 'timeSlot' does not exist on type 'object'.
Raw output
  10 |   const { carBody, radii, service, commentary } = rawAppointmentData
  11 |   const timeSlotStart = BigInt(rawAppointmentData.timeSlot.milliseconds as number)
> 12 |   const timeSlotEnd = BigInt(Number(rawAppointmentData.timeSlot.milliseconds) + TIME_SLOT_STEP_MS)
     |                                                        ^
  13 |
  14 |   return {
  15 |     telegramUserId,

Check failure on line 42 in .yarn/__virtual__/@telegram-bot-application-module-virtual-46abbb83d2/1/booking-telegram-bot/contexts/telegram-bot/application-module/src/interfaces/question-answer-pair.abstract-class.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.

Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.
  No index signature with a parameter of type 'string' was found on type '{}'.
Raw output
  40 |       if (this.checkWriteConversationDataCondition(checkAnswerResult)) {
  41 |         // eslint-disable-next-line no-param-reassign
> 42 |         conversation.data[this.questionAnswerPairName] = checkAnswerResult
     |         ^
  43 |       }
  44 |
  45 |       outputData = checkAnswerResult

Check failure on line 14 in .yarn/__virtual__/@ui-radio-virtual-5803a417d0/1/ui/radio/src/radio.component.tsx

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

'Container' cannot be used as a value because it was exported using 'export type'.

'Container' cannot be used as a value because it was exported using 'export type'.
Raw output
  12 | const Radio = memo(({ children, checked, textTransform = 'lowercase' }: RadioProps) => (
  13 |   <Column width='100%'>
> 14 |     <Container checked={checked}>
     |      ^
  15 |       <Checkmark checked={checked} textTransform={textTransform}>
  16 |         {children}
  17 |       </Checkmark>

Check failure on line 18 in .yarn/__virtual__/@ui-radio-virtual-5803a417d0/1/ui/radio/src/radio.component.tsx

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

'Container' cannot be used as a value because it was exported using 'export type'.

'Container' cannot be used as a value because it was exported using 'export type'.
Raw output
  16 |         {children}
  17 |       </Checkmark>
> 18 |     </Container>
     |       ^
  19 |   </Column>
  20 | ))
  21 |

Check failure on line 49 in .yarn/__virtual__/@ui-select-virtual-9eecbd438b/1/ui/select/src/select.component.tsx

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

'Arrow' cannot be used as a value because it was exported using 'export type'.

'Arrow' cannot be used as a value because it was exported using 'export type'.
Raw output
  47 |         </TextEllipsis>
  48 |         <Layout flexGrow={1} />
> 49 |         <Arrow isOpen={isOpen} />
     |          ^
  50 |       </Button>
  51 |       {renderMenu(
  52 |         <Menu {...menuProps}>

Check failure on line 25 in booking-telegram-bot/adapters/apollo-adapter/src/services/get-car-body-titles.service.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Property 'carBodyItems' does not exist on type 'DocumentNode'.

Property 'carBodyItems' does not exist on type 'DocumentNode'.
Raw output
  23 |   private async getCarBodiesData(): ReturnDataType {
  24 |     const queryData = await this.apolloAdapterService.runQuery(GET_CAR_BODIES)
> 25 |     const carBodiesQueryData: Awaited<ReturnDataType> = queryData.data.carBodyItems
     |                                                                        ^
  26 |       .nodes as Awaited<ReturnDataType>
  27 |     checkArrayLength({ carBodiesQueryData })
  28 |     return carBodiesQueryData

Check failure on line 25 in booking-telegram-bot/adapters/apollo-adapter/src/services/get-radii-titles.service.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Property 'availableRadiusItems' does not exist on type 'DocumentNode'.

Property 'availableRadiusItems' does not exist on type 'DocumentNode'.
Raw output
  23 |   private async getRadiiData(): ReturnDataType {
  24 |     const queryData = await this.apolloAdapterService.runQuery(GET_AVAILABLE_RADII)
> 25 |     const radiiQueryData: Awaited<ReturnDataType> = queryData.data.availableRadiusItems
     |                                                                    ^
  26 |       .nodes as Awaited<ReturnDataType>
  27 |     checkArrayLength({ radiiQueryData })
  28 |     return radiiQueryData

Check failure on line 22 in booking-telegram-bot/adapters/apollo-adapter/src/services/get-service-titles.service.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Property 'services' does not exist on type 'DocumentNode'.

Property 'services' does not exist on type 'DocumentNode'.
Raw output
  20 |   private async getServicesData(): ReturnServicesDataType {
  21 |     const queryData = await this.apolloAdapterService.runQuery(GET_SERVICES)
> 22 |     const servicesQueryData = queryData.data.services.nodes
     |                                              ^
  23 |     checkArrayLength({ servicesQueryData })
  24 |     // eslint-disable-next-line @typescript-eslint/no-unsafe-return
  25 |     return servicesQueryData

Check failure on line 20 in booking-telegram-bot/adapters/apollo-adapter/src/services/get-work-time-raw-string.service.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Property 'contactItems' does not exist on type 'DocumentNode'.

Property 'contactItems' does not exist on type 'DocumentNode'.
Raw output
  18 |   private async getWorkTimeQueryData(): ReturnWorkTimeDataType {
  19 |     const queryData = await this.apolloAdapterService.runQuery(GET_CONTACTS)
> 20 |     const workTimeData: Awaited<ReturnWorkTimeDataType> = queryData.data.contactItems
     |                                                                          ^
  21 |       .nodes as Awaited<ReturnWorkTimeDataType>
  22 |     return workTimeData
  23 |   }

Check failure on line 19 in booking-telegram-bot/adapters/tgsnake-adapter/src/getters/get-formatted-context.getter.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Argument of type 'Record<keyof TelegramBotFormattedContextType, any>' is not assignable to parameter of type 'Record<keyof TelegramBotFormattedContextType, never>'.

Argument of type 'Record<keyof TelegramBotFormattedContextType, any>' is not assignable to parameter of type 'Record<keyof TelegramBotFormattedContextType, never>'.
  Types of property 'userId' are incompatible.
    Type 'any' is not assignable to type 'never'.
Raw output
  17 |   }
  18 |
> 19 |   const formattedContextChecked = checkFormattedContextHelper(formattedContext)
     |                                                               ^
  20 |   return formattedContextChecked
  21 | }
  22 |

Check failure on line 18 in booking-telegram-bot/contexts/api/application-module/src/use-cases/write-booking-data.use-case.ts

See this annotation in the file changed.

@github-actions github-actions / TypeCheck

Argument of type 'object' is not assignable to parameter of type 'Record<string, unknown>'.

Argument of type 'object' is not assignable to parameter of type 'Record<string, unknown>'.
  Index signature for type 'string' is missing in type '{}'.
Raw output
  16 |     if (typeof body === 'string') {
  17 |       const parsedBody: object = await JSON.parse(body)
> 18 |       const checkedBody = checkBookingDataHelper(parsedBody)
     |                                                  ^
  19 |       await this.appointmentEntityRepository.writeData(checkedBody)
  20 |       return HttpStatus.OK
  21 |     }