Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/custom-functions/bcode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { bcodeV2 } from '~/custom-functions/bcode-v2'
import { bcode as bcodeV2 } from '~/custom-functions/v2/bcode'

export function castStringAsBoolean(bool: string | boolean): boolean {
return typeof bool === 'string' ? bool.toLowerCase() === 'true' : bool
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CachingBuffettCodeApiClientV2 } from '~/api/v2/caching-client'
import { bcodeIndicator } from '~/custom-functions/bcode-indicator'
import { BcodeResult } from '~/custom-functions/bcode-result'
import { bcodeIndicator } from '~/custom-functions/v2/bcode-indicator'
import { IndicatorCache } from '~/services/indicator-cache'
import { IndicatorPropertyCache } from '~/services/indicator-property-cache'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { QuarterCache } from '~/__mocks__/services/quarter-cache'
import { CachingBuffettCodeApiClientV2 } from '~/api/v2/caching-client'
import { bcodeQuarter } from '~/custom-functions/bcode-quarter'
import { BcodeResult } from '~/custom-functions/bcode-result'
import { bcodeQuarter } from '~/custom-functions/v2/bcode-quarter'
import { YearQuarter } from '~/fiscal-periods/year-quarter'
import { QuarterPropertyCache } from '~/services/quarter-property-cache'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { HttpError } from '~/api/http-error'
import { CachingBuffettCodeApiClientV2 } from '~/api/v2/caching-client'
import { CachingIndicatorProperty } from '~/api/v2/caching-indicator-property'
import { QuarterProperty } from '~/api/v2/quarter-property'
import { bcodeIndicator } from '~/custom-functions/bcode-indicator'
import { bcodeQuarter } from '~/custom-functions/bcode-quarter'
import { BcodeResult } from '~/custom-functions/bcode-result'
import {
ApiResponseError,
OndemandApiNotEnabledError,
UnsupportedTickerError
} from '~/custom-functions/error'
import { bcodeIndicator } from '~/custom-functions/v2/bcode-indicator'
import { bcodeQuarter } from '~/custom-functions/v2/bcode-quarter'
import {
InvalidLYLQError,
InvalidYearError,
Expand Down Expand Up @@ -43,7 +43,7 @@ function validate(

// TODO: エラーハンドリングの改善
// TODO: fiscalYearとfiscalQuarterの型をstringではなく'LY'と'LQ'に変更する
export function bcodeV2(
export function bcode(
ticker: string,
fiscalYear: string | number,
fiscalQuarter: string | number,
Expand Down