Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

16995 - Change Store Actions Types #519

Merged
merged 3 commits into from
Jul 26, 2023
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
36 changes: 18 additions & 18 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ import * as Views from '@/views/'
import * as Dialogs from '@/dialogs/'
import { AuthServices } from '@/services/'
import { CommonMixin, FilingTemplateMixin } from '@/mixins/'
import { ActionBindingIF, ConfirmDialogType } from '@/interfaces/'
import { AccountInformationIF, ConfirmDialogType } from '@/interfaces/'
import { BreadcrumbIF, CompletingPartyIF } from '@bcrs-shared-components/interfaces/'
import { SessionStorageKeys } from 'sbc-common-components/src/util/constants'
import { RouteNames } from '@/enums/'
import { FilingTypes, RouteNames } from '@/enums/'
import { getEntityDashboardBreadcrumb, getMyBusinessRegistryBreadcrumb, getRegistryDashboardBreadcrumb,
getStaffDashboardBreadcrumb } from '@/resources/BreadCrumbResources'
import DateUtilities from '@/services/date-utilities'
Expand Down Expand Up @@ -188,22 +188,22 @@ export default class App extends Mixins(CommonMixin, FilingTemplateMixin) {
@Getter(useStore) showFeeSummary!: boolean

// Global actions
@Action(useStore) setAccountInformation!: ActionBindingIF
@Action(useStore) setAppValidate!: ActionBindingIF
@Action(useStore) setBusinessId!: ActionBindingIF
@Action(useStore) setCompletingParty!: ActionBindingIF
@Action(useStore) setComponentValidate!: ActionBindingIF
@Action(useStore) setCurrentDate!: ActionBindingIF
@Action(useStore) setCurrentJsDate!: ActionBindingIF
@Action(useStore) setFilingId!: ActionBindingIF
@Action(useStore) setFilingType!: ActionBindingIF
@Action(useStore) setHaveUnsavedChanges!: ActionBindingIF
@Action(useStore) setIsFilingPaying!: ActionBindingIF
@Action(useStore) setIsSaving!: ActionBindingIF
@Action(useStore) setKeycloakRoles!: ActionBindingIF
@Action(useStore) setOrgInfo!: ActionBindingIF
@Action(useStore) setSummaryMode!: ActionBindingIF
@Action(useStore) setUserInfo!: ActionBindingIF
@Action(useStore) setAccountInformation!: (x: AccountInformationIF) => void
@Action(useStore) setAppValidate!: (x: boolean) => void
@Action(useStore) setBusinessId!: (x: string) => void
@Action(useStore) setCompletingParty!: (x: CompletingPartyIF) => void
@Action(useStore) setComponentValidate!: (x: boolean) => void
@Action(useStore) setCurrentDate!: (x: string) => void
@Action(useStore) setCurrentJsDate!: (x: Date) => void
@Action(useStore) setFilingId!: (x: number) => void
@Action(useStore) setFilingType!: (x: FilingTypes) => void
@Action(useStore) setHaveUnsavedChanges!: (x: boolean) => void
@Action(useStore) setIsFilingPaying!: (x: boolean) => void
@Action(useStore) setIsSaving!: (x: boolean) => void
@Action(useStore) setKeycloakRoles!: (x: string[]) => void
@Action(useStore) setOrgInfo!: (x: any) => void
@Action(useStore) setSummaryMode!: (x: boolean) => void
@Action(useStore) setUserInfo!: (x: any) => void

// Local properties
accountAuthorizationDialog = false
Expand Down
4 changes: 2 additions & 2 deletions src/components/Alteration/AlterationSummary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
<script lang="ts">
import { Component, Emit, Mixins, Prop } from 'vue-property-decorator'
import { Action, Getter } from 'pinia-class'
import { ActionBindingIF, FeesIF, FlagsReviewCertifyIF, ResolutionsIF } from '@/interfaces/'
import { FeesIF, FlagsReviewCertifyIF, ResolutionsIF } from '@/interfaces/'
import { DateMixin, FilingTemplateMixin, FeeMixin } from '@/mixins/'
import { EffectiveDateTime, NameTranslation, ShareStructures } from '@/components/common/'
import { ResolutionDates } from '@/components/Alteration/'
Expand All @@ -197,7 +197,7 @@ export default class AlterationSummary extends Mixins(DateMixin, FeeMixin, Filin
@Getter(useStore) isBusySaving!: boolean

// Global actions
@Action(useStore) setEffectiveDateValid!: ActionBindingIF
@Action(useStore) setEffectiveDateValid!: (x: boolean) => void

/** Whether to perform validation. */
@Prop() readonly validate!: boolean
Expand Down
8 changes: 4 additions & 4 deletions src/components/Alteration/Articles/Articles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import { Action, Getter } from 'pinia-class'
import CompanyProvisions from './CompanyProvisions.vue'
import ResolutionDates from './ResolutionDates.vue'
import { CommonMixin } from '@/mixins/'
import { ActionBindingIF, BusinessInformationIF, ResolutionsIF } from '@/interfaces/'
import { ActionKvIF, BusinessInformationIF, ResolutionsIF } from '@/interfaces/'
import { useStore } from '@/store/store'

@Component({
Expand All @@ -69,9 +69,9 @@ export default class Articles extends Mixins(CommonMixin) {
@Getter(useStore) isAlterationFiling!: boolean

// Global actions
@Action(useStore) setProvisionsRemoved!: ActionBindingIF
@Action(useStore) setNewResolutionDates!: ActionBindingIF
@Action(useStore) setValidComponent!: ActionBindingIF
@Action(useStore) setProvisionsRemoved!: (x: boolean) => void
@Action(useStore) setNewResolutionDates!: (x: string[]) => void
@Action(useStore) setValidComponent!: (x: ActionKvIF) => void

/** Emits Have Changes event. */
@Emit('haveChanges')
Expand Down
4 changes: 2 additions & 2 deletions src/components/Alteration/Articles/ResolutionDates.vue
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ import { Action, Getter } from 'pinia-class'
import { CommonMixin, DateMixin } from '@/mixins/'
import { DatePicker as DatePickerShared } from '@bcrs-shared-components/date-picker/'
import { cloneDeep } from 'lodash'
import { ActionBindingIF } from '@/interfaces/'
import { ActionKvIF } from '@/interfaces/'
import { useStore } from '@/store/store'

@Component({
Expand Down Expand Up @@ -205,7 +205,7 @@ export default class ResolutionDates extends Mixins(CommonMixin, DateMixin) {
@Getter(useStore) isCorrectionFiling!: boolean

// Global setter
@Action(useStore) setValidComponent!: ActionBindingIF
@Action(useStore) setValidComponent!: (x: ActionKvIF) => void

// Local properties
displayPreviousDates = false
Expand Down
6 changes: 3 additions & 3 deletions src/components/Conversion/ConversionNOB.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ import Vue from 'vue'
import { Component, Mixins, Watch } from 'vue-property-decorator'
import { Action, Getter } from 'pinia-class'
import { CommonMixin } from '@/mixins/'
import { ActionBindingIF, FlagsCompanyInfoIF } from '@/interfaces/'
import { ActionKvIF, FlagsCompanyInfoIF } from '@/interfaces/'
import { NaicsIF } from '@bcrs-shared-components/interfaces/'
import { isEqual } from 'lodash'
import { useStore } from '@/store/store'
Expand All @@ -172,8 +172,8 @@ export default class ConversionNOB extends Mixins(CommonMixin) {
@Getter(useStore) getSnapshotNaics!: NaicsIF
@Getter(useStore) hasNaicsChanged!: boolean

@Action(useStore) setNaics!: ActionBindingIF
@Action(useStore) setValidComponent!: ActionBindingIF
@Action(useStore) setNaics!: (x: NaicsIF) => void
@Action(useStore) setValidComponent!: (x: ActionKvIF) => void

// local variables
protected dropdown = false // v-model for dropdown menu
Expand Down
10 changes: 5 additions & 5 deletions src/components/Restoration/ExtendTimeLimit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import Actions from '@/components/common/Actions.vue'
import { DateMixin } from '@/mixins'
import DateUtilities from '@/services/date-utilities'
import { LimitedRestorationPanel } from '@bcrs-shared-components/limited-restoration-panel'
import { ActionBindingIF, StateFilingRestorationIF } from '@/interfaces'
import { CourtOrderIF, StateFilingRestorationIF } from '@/interfaces'
import { useStore } from '@/store/store'

@Component({
Expand All @@ -78,10 +78,10 @@ export default class ExtendTimeLimit extends Mixins(DateMixin) {
@Getter(useStore) getRestorationExpiryDate!: string
@Getter(useStore) getStateFilingRestoration!: StateFilingRestorationIF

@Action(useStore) setApprovalTypeValid!: ActionBindingIF
@Action(useStore) setExpiryValid!: ActionBindingIF
@Action(useStore) setRestorationCourtOrder!: ActionBindingIF
@Action(useStore) setRestorationExpiryDate!: ActionBindingIF
@Action(useStore) setApprovalTypeValid!: (x: boolean) => void
@Action(useStore) setExpiryValid!: (x: boolean) => void
@Action(useStore) setRestorationCourtOrder!: (x: CourtOrderIF) => void
@Action(useStore) setRestorationExpiryDate!: (x: string) => void

/** Whether to show the Approval Type component. */
get showApprovalType (): boolean {
Expand Down
8 changes: 4 additions & 4 deletions src/components/SpecialResolution/Memorandum.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
<script lang="ts">
import Vue from 'vue'
import { HelpSection } from '@/components/common/'
import { ActionBindingIF, EntitySnapshotIF, RulesMemorandumIF } from '@/interfaces'
import { EntitySnapshotIF, RulesMemorandumIF } from '@/interfaces'
import DateUtilities from '@/services/date-utilities'
import { FormIF } from '@bcrs-shared-components/interfaces'
import { Component, Watch } from 'vue-property-decorator'
Expand All @@ -276,9 +276,9 @@ export default class Memorandum extends Vue {
@Getter(useStore) getSpecialResolutionMemorandum!: RulesMemorandumIF
@Getter(useStore) hasSpecialResolutionMemorandumChanged!: boolean

@Action(useStore) setEditingMemorandum!: ActionBindingIF
@Action(useStore) setSpecialResolutionMemorandumValid!: ActionBindingIF
@Action(useStore) setSpecialResolutionMemorandum!: ActionBindingIF
@Action(useStore) setEditingMemorandum!: (x: boolean) => void
@Action(useStore) setSpecialResolutionMemorandumValid!: (x: boolean) => void
@Action(useStore) setSpecialResolutionMemorandum!: (x: RulesMemorandumIF) => void

$refs!: {
memorandumForm: FormIF
Expand Down
5 changes: 2 additions & 3 deletions src/components/SpecialResolution/Resolution.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@
import Vue from 'vue'
import { Component, Watch } from 'vue-property-decorator'
import { Action, Getter } from 'pinia-class'
import { ActionBindingIF } from '@/interfaces/'
import HelpResolution from './HelpResolution.vue'
import InstructionalText from './InstructionalText.vue'
import { DatePicker as DatePickerShared } from '@bcrs-shared-components/date-picker/'
Expand Down Expand Up @@ -198,8 +197,8 @@ export default class Resolution extends Vue {
@Getter(useStore) isSpecialResolutionFiling: boolean
@Getter(useStore) showSpecialResolutionResolution!: boolean

@Action(useStore) setEditingSpecialResolution!: ActionBindingIF
@Action(useStore) setSpecialResolution!: ActionBindingIF
@Action(useStore) setEditingSpecialResolution!: (x: boolean) => void
@Action(useStore) setSpecialResolution!: (x: SpecialResolutionIF) => void

$refs!: {
resolutionEditor: FormIF,
Expand Down
5 changes: 2 additions & 3 deletions src/components/SpecialResolution/ResolutionEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ import {
} from 'tiptap-vuetify'
import { DatePicker as DatePickerShared } from '@bcrs-shared-components/date-picker/'
import { useStore } from '@/store/store'
import { ActionBindingIF } from '@/interfaces'
import { VuetifyRuleFunction } from '@/types'
import { SpecialResolutionIF } from '@bcrs-shared-components/interfaces'
import DateUtilities from '@/services/date-utilities'
Expand All @@ -161,8 +160,8 @@ export default class ResolutionEditor extends Vue {
@Getter(useStore) getCurrentDate!: string
@Getter(useStore) getSpecialResolution!: SpecialResolutionIF

@Action(useStore) setSpecialResolution!: ActionBindingIF
@Action(useStore) setSpecialResolutionValid!: ActionBindingIF
@Action(useStore) setSpecialResolution!: (x: SpecialResolutionIF) => void
@Action(useStore) setSpecialResolutionValid!: (x: boolean) => void

@Prop({ default: false }) readonly isEditing!: boolean

Expand Down
6 changes: 3 additions & 3 deletions src/components/SpecialResolution/ResolutionSummary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
<script lang="ts">
import { Component, Mixins, Watch } from 'vue-property-decorator'
import { Action, Getter } from 'pinia-class'
import { ActionBindingIF, FormIF, EntitySnapshotIF } from '@/interfaces/'
import { FormIF, EntitySnapshotIF } from '@/interfaces/'
import { CommonMixin, DateMixin } from '@/mixins/'
import { HelpSection } from '@/components/common/'
import { DatePicker as DatePickerShared } from '@bcrs-shared-components/date-picker/'
Expand All @@ -168,8 +168,8 @@ export default class ResolutionSummary extends Mixins(CommonMixin, DateMixin) {
@Getter(useStore) getSpecialResolutionConfirmValid!: boolean
@Getter(useStore) getEntitySnapshot!: EntitySnapshotIF

@Action(useStore) setSpecialResolution!: ActionBindingIF
@Action(useStore) setSpecialResolutionConfirmStateValidity!: ActionBindingIF
@Action(useStore) setSpecialResolution!: (x: SpecialResolutionIF) => void
@Action(useStore) setSpecialResolutionConfirmStateValidity!: (x: boolean) => void

// Refs
$refs!: {
Expand Down
8 changes: 4 additions & 4 deletions src/components/SpecialResolution/Rules.vue
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@
<script lang="ts">
import Vue from 'vue'
import { HelpSection } from '@/components/common/'
import { ActionBindingIF, EntitySnapshotIF, RulesMemorandumIF } from '@/interfaces'
import { EntitySnapshotIF, RulesMemorandumIF } from '@/interfaces'
import DateUtilities from '@/services/date-utilities'
import { FormIF } from '@bcrs-shared-components/interfaces'
import { Component, Watch } from 'vue-property-decorator'
Expand All @@ -360,9 +360,9 @@ export default class Rules extends Vue {
@Getter(useStore) getNameRequestLegalName!: string
@Getter(useStore) hasSpecialResolutionRulesChanged!: boolean

@Action(useStore) setEditingRules!: ActionBindingIF
@Action(useStore) setSpecialResolutionRules!: ActionBindingIF
@Action(useStore) setSpecialResolutionRulesValid!: ActionBindingIF
@Action(useStore) setEditingRules!: (x: boolean) => void
@Action(useStore) setSpecialResolutionRules!: (x: RulesMemorandumIF) => void
@Action(useStore) setSpecialResolutionRulesValid!: (x: boolean) => void

$refs!: {
rulesForm: FormIF,
Expand Down
5 changes: 2 additions & 3 deletions src/components/SpecialResolution/SigningParty.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@
<script lang="ts">
import Vue from 'vue'
import { Action, Getter } from 'pinia-class'
import { ActionBindingIF } from '@/interfaces/'
import { useStore } from '@/store/store'
import { DatePicker as DatePickerShared } from '@bcrs-shared-components/date-picker/'
import { SpecialResolutionIF, PersonIF } from '@bcrs-shared-components/interfaces/'
Expand All @@ -131,8 +130,8 @@ export default class SigningParty extends Vue {
@Getter(useStore) getSpecialResolution!: SpecialResolutionIF
@Getter(useStore) isSpecialResolutionFiling: boolean

@Action(useStore) setSpecialResolution!: ActionBindingIF
@Action(useStore) setSpecialResolutionSignatureValid!: ActionBindingIF
@Action(useStore) setSpecialResolution!: (x: SpecialResolutionIF) => void
@Action(useStore) setSpecialResolutionSignatureValid!: (x: boolean) => void

@Prop({ default: false }) readonly isEditing!: boolean

Expand Down
4 changes: 2 additions & 2 deletions src/components/SpecialResolution/UploadRules.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
import Vue from 'vue'
import { Component, Prop } from 'vue-property-decorator'
import { Action, Getter } from 'pinia-class'
import { ActionBindingIF, FormIF, RulesMemorandumIF } from '@/interfaces'
import { FormIF, RulesMemorandumIF } from '@/interfaces'
import { PageSizes } from '@/enums/'
import FileUploadPdf from '@/components/common/FileUploadPdf.vue'
import { useStore } from '@/store/store'
Expand All @@ -61,7 +61,7 @@ export default class UploadRules extends Vue {
@Getter(useStore) getSpecialResolutionRules!: RulesMemorandumIF
@Getter(useStore) getUserInfo!: any

@Action(useStore) setSpecialResolutionRules!: ActionBindingIF
@Action(useStore) setSpecialResolutionRules!: RulesMemorandumIF

@Prop({ default: false })
readonly invalidSection: boolean
Expand Down
14 changes: 7 additions & 7 deletions src/components/ViewWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ import { Actions, EntityInfo } from '@/components/common/'
import { ConfirmDialog as ConfirmDialogShared } from '@bcrs-shared-components/confirm-dialog/'
import { LegalServices } from '@/services/'
import { CommonMixin, FilingTemplateMixin } from '@/mixins/'
import { FilingDataIF, ActionBindingIF, ConfirmDialogType, FlagsReviewCertifyIF, FlagsCompanyInfoIF,
import { FilingDataIF, ConfirmDialogType, FlagsReviewCertifyIF, FlagsCompanyInfoIF,
AlterationFilingIF, ChgRegistrationFilingIF, ConversionFilingIF, RestorationFilingIF,
SpecialResolutionFilingIF } from '@/interfaces/'
import { SessionStorageKeys } from 'sbc-common-components/src/util/constants'
Expand Down Expand Up @@ -116,12 +116,12 @@ export default class ViewWrapper extends Mixins(CommonMixin, FilingTemplateMixin
@Getter(useStore) showFeeSummary!: boolean

// Global actions
@Action(useStore) setAppValidate!: ActionBindingIF
@Action(useStore) setComponentValidate!: ActionBindingIF
@Action(useStore) setHaveUnsavedChanges!: ActionBindingIF
@Action(useStore) setIsFilingPaying!: ActionBindingIF
@Action(useStore) setIsSaving!: ActionBindingIF
@Action(useStore) setSummaryMode!: ActionBindingIF
@Action(useStore) setAppValidate!: (x: boolean) => void
@Action(useStore) setComponentValidate!: (x: boolean) => void
@Action(useStore) setHaveUnsavedChanges!: (x: boolean) => void
@Action(useStore) setIsFilingPaying!: (x: boolean) => void
@Action(useStore) setIsSaving!: (x: boolean) => void
@Action(useStore) setSummaryMode!: (x: boolean) => void

// Local properties
protected accountAuthorizationDialog = false
Expand Down
9 changes: 4 additions & 5 deletions src/components/common/Actions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
<script lang="ts">
import { Component, Mixins } from 'vue-property-decorator'
import { Getter, Action } from 'pinia-class'
import { ActionBindingIF } from '@/interfaces/'
import { DateMixin, FilingTemplateMixin, NameRequestMixin } from '@/mixins/'
import { LegalServices } from '@/services/'
import { Navigate } from '@/utils/'
Expand All @@ -86,10 +85,10 @@ export default class Actions extends Mixins(DateMixin, FilingTemplateMixin, Name
@Getter(useStore) isSavingResuming!: boolean

// Global actions
@Action(useStore) setIsSaving!: ActionBindingIF
@Action(useStore) setIsSavingResuming!: ActionBindingIF
@Action(useStore) setIsFilingPaying!: ActionBindingIF
@Action(useStore) setHaveUnsavedChanges!: ActionBindingIF
@Action(useStore) setIsSaving!: (x: boolean) => void
@Action(useStore) setIsSavingResuming!: (x: boolean) => void
@Action(useStore) setIsFilingPaying!: (x: boolean) => void
@Action(useStore) setHaveUnsavedChanges!: (x: boolean) => void

/** True if the Save button should be disabled. */
get isSaveButtonDisabled (): boolean {
Expand Down
6 changes: 3 additions & 3 deletions src/components/common/CertifySection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { Component, Mixins, Prop } from 'vue-property-decorator'
import { Action, Getter } from 'pinia-class'
import { Certify as CertifyShared } from '@bcrs-shared-components/certify/'
import { DateMixin } from '@/mixins/'
import { ActionBindingIF, CertifyIF, ResourceIF } from '@/interfaces/'
import { CertifyIF, ResourceIF } from '@/interfaces/'
import { CorpTypeCd, GetCorpFullDescription } from '@bcrs-shared-components/corp-type-module/'
import { useStore } from '@/store/store'

Expand All @@ -55,8 +55,8 @@ export default class CertifySection extends Mixins(DateMixin) {
@Getter(useStore) isRoleStaff!: boolean
@Getter(useStore) getEntityType!: CorpTypeCd

@Action(useStore) setCertifyState!: ActionBindingIF
@Action(useStore) setCertifyStateValidity!: ActionBindingIF
@Action(useStore) setCertifyState!: (x: CertifyIF) => void
@Action(useStore) setCertifyStateValidity!: (x: boolean) => void

/** Prop to provide section number. */
@Prop({ default: '' }) readonly sectionNumber!: string
Expand Down
5 changes: 2 additions & 3 deletions src/components/common/CompletingParty.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import Vue from 'vue'
import { Component, Prop } from 'vue-property-decorator'
import { Action, Getter } from 'pinia-class'
import { ActionBindingIF } from '@/interfaces/'
import { CompletingPartyIF } from '@bcrs-shared-components/interfaces/'
import { CompletingParty as CompletingPartyShared } from '@bcrs-shared-components/completing-party/'
import { DefaultAddressSchema } from '@/schemas/'
Expand All @@ -49,8 +48,8 @@ export default class CompletingParty extends Vue {
@Getter(useStore) isSbcStaff!: boolean

// store actions
@Action(useStore) setCompletingParty!: ActionBindingIF
@Action(useStore) setCompletingPartyValidity!: ActionBindingIF
@Action(useStore) setCompletingParty!: (x: CompletingPartyIF) => void
@Action(useStore) setCompletingPartyValidity!: (x: boolean) => void

// Declaration for template
readonly DefaultAddressSchema = DefaultAddressSchema
Expand Down
Loading