Skip to content

Commit

Permalink
- app version = 5.6.1
Browse files Browse the repository at this point in the history
- added route names to enum
- added views to enum
- added filing interface
- added resource interface
- updated state interface
- added amalgamation state interface
- updated filing template mixin
- added initial amalgamation resources
- added amalgamation steps
- added amalgamation routes
- added/updated getters/actions to  store
- updated state model
- added initial amalgamation views
  • Loading branch information
severinbeauvais committed Nov 16, 2023
1 parent 700a8b4 commit b3e6512
Show file tree
Hide file tree
Showing 29 changed files with 2,567 additions and 30 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "business-create-ui",
"version": "5.6.0",
"version": "5.6.1",
"private": true,
"appName": "Create UI",
"sbcName": "SBC Common Components",
Expand Down
6 changes: 5 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ export default class App extends Mixins(CommonMixin, DateMixin, FilingTemplateMi
@Getter(useStore) getUserLastName!: string
@Getter(useStore) getUserEmail!: string
@Getter(useStore) getUserPhone!: string
@Getter(useStore) isAmalgamationFiling!: boolean
@Getter(useStore) isDissolutionFiling!: boolean
@Getter(useStore) isIncorporationFiling!: boolean
@Getter(useStore) isMobile!: boolean
Expand Down Expand Up @@ -361,7 +362,7 @@ export default class App extends Mixins(CommonMixin, DateMixin, FilingTemplateMi
readonly window = window
/** The Update Current JS Date timer id. */
private updateCurrentJsDateId = 0
private updateCurrentJsDateId = null // may be number or NodeJS.Timeout
/** The route breadcrumbs list. */
get breadcrumbs (): Array<BreadcrumbIF> {
Expand Down Expand Up @@ -733,6 +734,9 @@ export default class App extends Mixins(CommonMixin, DateMixin, FilingTemplateMi
// then try to re-route them
if (this.$route.meta.filingType !== this.getFilingType) {
switch (this.getFilingType) {
case FilingTypes.AMALGAMATION:
this.$router.push(RouteNames.AMALGAMATION_REG_INFORMATION).catch(() => {})
return
case FilingTypes.DISSOLUTION:
if (this.isTypeFirm) {
this.$router.push(RouteNames.DISSOLUTION_FIRM).catch(() => {})
Expand Down
1 change: 1 addition & 0 deletions src/enums/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export { CorpTypeCd } from '@bcrs-shared-components/corp-type-module'
export {
AccountTypes,
ApprovalTypes,
AmalgamationTypes,
CorrectNameOptions,
EffectiveDateTypes,
EntityStates,
Expand Down
7 changes: 7 additions & 0 deletions src/enums/routeNames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,11 @@ export enum RouteNames {
RESTORATION_BUSINESS_INFORMATION = 'restoration-business-information',
RESTORATION_BUSINESS_NAME = 'restoration-business-name',
RESTORATION_REVIEW_CONFIRM = 'restoration-review-confirm',

// Amalgamation (regular) route names
AMALGAMATION_REG_BUSINESS_INFO = 'amalgamation-reg-business-info',
AMALGAMATION_REG_INFORMATION = 'amalgamation-reg-information',
AMALGAMATION_REG_PEOPLE_ROLES = 'amalgamation-reg-people-roles',
AMALGAMATION_REG_REVIEW_CONFIRM = 'amalgamation-reg-review-confirm',
AMALGAMATION_REG_SHARE_STRUCTURE = 'amalgamation-reg-share-structure',
}
7 changes: 7 additions & 0 deletions src/enums/views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ export enum Views {
SIGN_IN = 'signin',
SIGN_OUT = 'signout',

// Amalgamation views
AMALGAMATION_REG_BUSINESS_INFO = 'amalgamation-reg-business-info',
AMALGAMATION_REG_INFORMATION = 'amalgamation-reg-information',
AMALGAMATION_REG_PEOPLE_ROLES = 'amalgamation-reg-people-roles',
AMALGAMATION_REG_REVIEW_CONFIRM = 'amalgamation-reg-review-confirm',
AMALGAMATION_REG_SHARE_STRUCTURE = 'amalgamation-reg-share-structure',

// Dissolution views
DISSOLUTION_AFFIDAVIT = 'dissolution-affidavit',
DISSOLUTION_DEFINE_DISSOLUTION = 'dissolution-define-dissolution',
Expand Down
46 changes: 44 additions & 2 deletions src/interfaces/filing-interfaces/filing-interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BusinessAddressIF, CourtOrderIF, RegisteredRecordsAddressesIF, NaicsIF, NameTranslationIF,
OfficeAddressIF, PartyIF, ShareClassIF, SpecialResolutionIF } from '@/interfaces'
import { ApprovalTypes, BusinessTypes, DissolutionStatementTypes, DissolutionTypes, FilingTypes,
RestorationTypes, RelationshipTypes } from '@/enums'
import { AmalgamationTypes, ApprovalTypes, BusinessTypes, DissolutionStatementTypes, DissolutionTypes,
FilingTypes, RestorationTypes, RelationshipTypes } from '@/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 All @@ -18,6 +18,48 @@ export interface NameRequestFilingIF {
correctNameOption?: CorrectNameOptions // only used by UI for save and resume
}

/** Interface for amalgamation filing data saved to the Legal API. */
export interface AmalgamationFilingIF {
header: {
name: FilingTypes
certifiedBy: string
date: string
effectiveDate?: string // should be set only for future effective filings
filingId?: number // for existing filings (not used when building a new filing)
folioNumber?: string // only displayed for certain account types
isFutureEffective: boolean

// staff payment properties:
routingSlipNumber?: string
bcolAccountNumber?: string
datNumber?: string
waiveFees?: boolean
priority?: boolean
}
business: {
legalType: CorpTypeCd
identifier: string
}
amalgamation: {
amalgamationType: AmalgamationTypes
nameRequest: NameRequestFilingIF
nameTranslations: NameTranslationIF[]
offices: RegisteredRecordsAddressesIF | object
contactPoint: ContactPointIF
parties: PartyIF[]

// BEN / CC / BC / ULC only:
shareStructure?: {
shareClasses: ShareClassIF[]
}
incorporationAgreement?: {
agreementType: string
}
// ULC only:
courtOrder?: CourtOrderIF
}
}

/** Interface for incorporation filing data saved to the Legal API. */
export interface IncorporationFilingIF {
header: {
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export * from './stepper-interfaces/ReviewConfirm/certify-interface'

// Store interfaces
export * from './store-interfaces/state-interfaces/account-information-interface'
export * from './store-interfaces/state-interfaces/amalgamation-state-interface'
export * from './store-interfaces/state-interfaces/auth-information-interface'
export * from './store-interfaces/state-interfaces/business-interface'
export * from './store-interfaces/state-interfaces/dissolution-state-interface'
Expand Down
31 changes: 29 additions & 2 deletions src/interfaces/resource-interfaces/resource-interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,33 @@ import {
} from '@/interfaces'
import { CorpTypeCd } from '@bcrs-shared-components/corp-type-module'

/** Amalgamation (regular) resource interface. */
export interface AmalgamationRegResourceIF {
entityType: CorpTypeCd
displayName: string
steps: Array<StepIF>
filingData: Array<FilingDataIF>
peopleAndRoles: PeopleAndRolesResourceIF
reviewAndConfirm: {
completingPartyStatement: CompletingPartyStatementIF
}

shareClasses?: {
countMinimum: number
}
incorporationArticles?: {
articles: string,
articlesTooltip: string,
provisions?: string,
provisionTooltip?: string
}
incorporationAgreement?: {
helpSection: Array<HelpSectionIF>
article: string
documents: Array<IncorporationAgreementTypeIF>
}
}

/** Dissolution resource interface. */
export interface DissolutionResourceIF {
entityType: CorpTypeCd
Expand Down Expand Up @@ -79,5 +106,5 @@ export interface RestorationResourceIF {
}
}

export interface ResourceIF extends DissolutionResourceIF, IncorporationResourceIF, RegistrationResourceIF,
RestorationResourceIF {}
export interface ResourceIF extends AmalgamationRegResourceIF, DissolutionResourceIF,
IncorporationResourceIF, RegistrationResourceIF, RestorationResourceIF {}
2 changes: 2 additions & 0 deletions src/interfaces/store-interfaces/state-interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { CorrectNameOptions } from '@bcrs-shared-components/enums/'
import { CorpTypeCd } from '@bcrs-shared-components/corp-type-module'
import {
AccountInformationIF,
AmalgamationStateIF,
ContactPointIF,
BusinessIF,
CertifyIF,
Expand Down Expand Up @@ -71,6 +72,7 @@ export interface StateModelIF {
registration: RegistrationStateIF
completingParty?: CompletingPartyIF
parties?: Array<PartyIF>
amalgamation: AmalgamationStateIF
restoration: RestorationStateIF

// staffPaymentStep and courtOrder are common and for now are only used in dissolution
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { AmalgamationTypes, ApprovalTypes, RelationshipTypes } from '@/enums'
import { CourtOrderIF } from '@/interfaces'

export interface AmalgamationStateIF {
applicationDate?: string // YYYY-MM-DD
approvalType: ApprovalTypes
approvalTypeValid: boolean
businessNameValid: boolean
courtOrder?: CourtOrderIF
expiry?: string // YYYY-MM-DD
noticeDate?: string // YYYY-MM-DD
relationships?: RelationshipTypes[]
restorationTypeValid: boolean
type: AmalgamationTypes
}
Loading

0 comments on commit b3e6512

Please sign in to comment.