Skip to content

Commit

Permalink
- imported CorpTypeCd directly from module to avoid type confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
severinbeauvais committed Nov 16, 2023
1 parent 90c2285 commit 665405f
Show file tree
Hide file tree
Showing 20 changed files with 23 additions and 36 deletions.
2 changes: 1 addition & 1 deletion src/interfaces/filing-interfaces/filing-data-interface.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FilingCodes } from '@/enums'
import { CorpTypeCd } from '@bcrs-shared-components/enums/'
import { CorpTypeCd } from '@bcrs-shared-components/corp-type-module/'

/** Filing data for SBC Fee Summary component. */
export interface FilingDataIF {
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/resource-interfaces/resource-interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
PeopleAndRolesResourceIF, StepIF, CreateRulesResourceIF, CreateMemorandumResourceIF,
CreateResolutionResourceIF, CustodianResourceIF, CompletingPartyStatementIF
} from '@/interfaces'
import { CorpTypeCd } from '@bcrs-shared-components/enums/'
import { CorpTypeCd } from '@bcrs-shared-components/corp-type-module'

/** Dissolution resource interface. */
export interface DissolutionResourceIF {
Expand Down
3 changes: 2 additions & 1 deletion src/interfaces/store-interfaces/state-interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { CorpTypeCd, CorrectNameOptions } from '@bcrs-shared-components/enums/'
import { CorrectNameOptions } from '@bcrs-shared-components/enums/'
import { CorpTypeCd } from '@bcrs-shared-components/corp-type-module'
import {
AccountInformationIF,
ContactPointIF,
Expand Down
5 changes: 2 additions & 3 deletions src/resources/BreadCrumbResource.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { FilingTypes } from '@/enums'
import { CorpTypeCd } from '@bcrs-shared-components/enums/'
import { GetCorpNumberedDescription } from '@bcrs-shared-components/corp-type-module'
import { BreadcrumbIF } from '@/interfaces'
import { createPinia, setActivePinia } from 'pinia'
import { useStore } from '@/store/store'
import { GetCorpNumberedDescription } from '@bcrs-shared-components/corp-type-module'

setActivePinia(createPinia())
const store = useStore()
Expand All @@ -24,7 +23,7 @@ function getLegalName (): string {

/** Returns numbered entity name. */
function getNumberedEntityName (): string {
const getEntityType = store.getEntityType as CorpTypeCd
const getEntityType = store.getEntityType
return GetCorpNumberedDescription(getEntityType)
}

Expand Down
3 changes: 1 addition & 2 deletions src/resources/Dissolution/BC.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { DissolutionResourceIF } from '@/interfaces'
import { BulletListTypes, FilingCodes, ItemTypes } from '@/enums'
import { CorpTypeCd } from '@bcrs-shared-components/enums/'
import { GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { CorpTypeCd, GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { DissolutionStepsCorp } from './steps'

export const DissolutionResourceBc: DissolutionResourceIF = {
Expand Down
3 changes: 1 addition & 2 deletions src/resources/Dissolution/BEN.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { DissolutionResourceIF } from '@/interfaces'
import { BulletListTypes, FilingCodes, ItemTypes } from '@/enums'
import { CorpTypeCd } from '@bcrs-shared-components/enums/'
import { GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { CorpTypeCd, GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { DissolutionStepsCorp } from './steps'

export const DissolutionResourceBen: DissolutionResourceIF = {
Expand Down
3 changes: 1 addition & 2 deletions src/resources/Dissolution/CC.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { DissolutionResourceIF } from '@/interfaces'
import { BulletListTypes, FilingCodes, ItemTypes } from '@/enums'
import { CorpTypeCd } from '@bcrs-shared-components/enums/'
import { GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { CorpTypeCd, GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { DissolutionStepsCorp } from './steps'

export const DissolutionResourceCc: DissolutionResourceIF = {
Expand Down
3 changes: 1 addition & 2 deletions src/resources/Dissolution/CP.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { DissolutionResourceIF } from '@/interfaces'
import { BulletListTypes, DissolutionStatementTypes, FilingCodes, ItemTypes } from '@/enums'
import { CorpTypeCd } from '@bcrs-shared-components/enums/'
import { GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { CorpTypeCd, GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { DissolutionStepsCoop } from './steps'

export const DissolutionResourceCp: DissolutionResourceIF = {
Expand Down
3 changes: 1 addition & 2 deletions src/resources/Dissolution/GP.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { DissolutionResourceIF } from '@/interfaces'
import { FilingCodes, ItemTypes } from '@/enums'
import { CorpTypeCd } from '@bcrs-shared-components/enums/'
import { GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { CorpTypeCd, GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { DissolutionStepsFirm } from './steps'

export const DissolutionResourceGp: DissolutionResourceIF = {
Expand Down
3 changes: 1 addition & 2 deletions src/resources/Dissolution/SP.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { DissolutionResourceIF } from '@/interfaces'
import { FilingCodes, ItemTypes } from '@/enums'
import { CorpTypeCd } from '@bcrs-shared-components/enums/'
import { GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { CorpTypeCd, GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { DissolutionStepsFirm } from './steps'

export const DissolutionResourceSp: DissolutionResourceIF = {
Expand Down
3 changes: 1 addition & 2 deletions src/resources/Dissolution/ULC.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { DissolutionResourceIF } from '@/interfaces'
import { BulletListTypes, FilingCodes, ItemTypes } from '@/enums'
import { CorpTypeCd } from '@bcrs-shared-components/enums/'
import { GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { CorpTypeCd, GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { DissolutionStepsCorp } from './steps'

export const DissolutionResourceUlc: DissolutionResourceIF = {
Expand Down
3 changes: 1 addition & 2 deletions src/resources/Incorporation/BC.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { IncorporationResourceIF } from '@/interfaces'
import { FilingCodes, RuleIds } from '@/enums'
import { CorpTypeCd } from '@bcrs-shared-components/enums/'
import { CorpTypeCd, GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { IncorporationStepsCorp } from './steps'
import { GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'

export const IncorporationResourceBc: IncorporationResourceIF = {
entityType: CorpTypeCd.BC_COMPANY,
Expand Down
3 changes: 1 addition & 2 deletions src/resources/Incorporation/BEN.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { IncorporationResourceIF } from '@/interfaces'
import { FilingCodes, RuleIds } from '@/enums'
import { CorpTypeCd } from '@bcrs-shared-components/enums/'
import { CorpTypeCd, GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { IncorporationStepsCorp } from './steps'
import { GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'

export const IncorporationResourceBen: IncorporationResourceIF = {
entityType: CorpTypeCd.BENEFIT_COMPANY,
Expand Down
3 changes: 1 addition & 2 deletions src/resources/Incorporation/CC.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { IncorporationResourceIF } from '@/interfaces'
import { FilingCodes, RuleIds } from '@/enums'
import { CorpTypeCd } from '@bcrs-shared-components/enums/'
import { CorpTypeCd, GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { IncorporationStepsCorp } from './steps'
import { GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'

export const IncorporationResourceCc: IncorporationResourceIF = {
entityType: CorpTypeCd.BC_CCC,
Expand Down
3 changes: 1 addition & 2 deletions src/resources/Incorporation/CP.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { IncorporationResourceIF } from '@/interfaces'
import { FilingCodes, RuleIds, ItemTypes } from '@/enums'
import { CorpTypeCd } from '@bcrs-shared-components/enums/'
import { GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { CorpTypeCd, GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { IncorporationStepsCoop } from '@/resources/Incorporation/steps'

export const IncorporationResourceCp: IncorporationResourceIF = {
Expand Down
3 changes: 1 addition & 2 deletions src/resources/Incorporation/ULC.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { IncorporationResourceIF } from '@/interfaces'
import { FilingCodes, RuleIds } from '@/enums'
import { CorpTypeCd } from '@bcrs-shared-components/enums/'
import { CorpTypeCd, GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { IncorporationStepsCorp } from './steps'
import { GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'

export const IncorporationResourceUlc: IncorporationResourceIF = {
entityType: CorpTypeCd.BC_ULC_COMPANY,
Expand Down
3 changes: 1 addition & 2 deletions src/resources/Registration/GP.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { RegistrationResourceIF } from '@/interfaces'
import { FilingCodes, RuleIds } from '@/enums'
import { CorpTypeCd } from '@bcrs-shared-components/enums/'
import { GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { CorpTypeCd, GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { RegistrationSteps } from './steps'

export const RegistrationResourceGp: RegistrationResourceIF = {
Expand Down
3 changes: 1 addition & 2 deletions src/resources/Registration/SP.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { RegistrationResourceIF } from '@/interfaces'
import { FilingCodes, RuleIds } from '@/enums'
import { CorpTypeCd } from '@bcrs-shared-components/enums/'
import { GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { CorpTypeCd, GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module'
import { RegistrationSteps } from './steps'

export const RegistrationResourceSp: RegistrationResourceIF = {
Expand Down
2 changes: 1 addition & 1 deletion src/services/pay-services.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AxiosInstance as axios } from '@/utils'
import { FilingCodes } from '@/enums'
import { CorpTypeCd } from '@bcrs-shared-components/enums/'
import { CorpTypeCd } from '@bcrs-shared-components/corp-type-module/'
import { FeesIF } from '@/interfaces'

/**
Expand Down
3 changes: 2 additions & 1 deletion src/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import {
RelationshipTypes,
RestorationTypes
} from '@/enums'
import { CorpTypeCd, CorrectNameOptions } from '@bcrs-shared-components/enums/'
import { CorrectNameOptions } from '@bcrs-shared-components/enums/'
import { CorpTypeCd } from '@bcrs-shared-components/corp-type-module'
import {
AccountInformationIF,
AddressIF,
Expand Down

0 comments on commit 665405f

Please sign in to comment.