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 40d31aa
Show file tree
Hide file tree
Showing 22 changed files with 30 additions and 41 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
9 changes: 5 additions & 4 deletions src/interfaces/filing-interfaces/filing-interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { BusinessAddressIF, CourtOrderIF, RegisteredRecordsAddressesIF, NaicsIF,
OfficeAddressIF, PartyIF, ShareClassIF, SpecialResolutionIF } from '@/interfaces'
import { ApprovalTypes, BusinessTypes, DissolutionStatementTypes, DissolutionTypes, FilingTypes,
RestorationTypes, RelationshipTypes } 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 { ContactPointIF } from '@bcrs-shared-components/interfaces'

/**
Expand Down Expand Up @@ -78,7 +79,7 @@ export interface IncorporationFilingIF {
/** Interface for registration filing data saved to the Legal API. */
export interface RegistrationFilingIF {
header: {
name: string
name: FilingTypes
certifiedBy: string
date: string
effectiveDate?: string // not saved by UI but may be provided by API
Expand Down Expand Up @@ -118,7 +119,7 @@ export interface RegistrationFilingIF {
/** Interface for dissolution filing data saved to the Legal API. */
export interface DissolutionFilingIF {
header: {
name: string
name: FilingTypes
certifiedBy: string
date: string
effectiveDate?: string // Optional and should be set only for future effective filings
Expand Down Expand Up @@ -168,7 +169,7 @@ export interface DissolutionFilingIF {
/** Interface for restoration filing data saved to the Legal API. */
export interface RestorationFilingIF {
header: {
name: string
name: FilingTypes
certifiedBy: string
date: string
effectiveDate?: string // not saved by UI but may be provided by API
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
3 changes: 2 additions & 1 deletion src/mixins/filing-template-mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import {
import { ApprovalTypes, BusinessTypes, CoopTypes, DissolutionTypes, EffectOfOrders, FilingTypes,
PartyTypes, RelationshipTypes, RestorationTypes, RoleTypes, StaffPaymentOptions
} 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/'

/**
* Mixin that provides the integration with the Legal API.
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 40d31aa

Please sign in to comment.