diff --git a/libs/integration-interface/src/index.ts b/libs/integration-interface/src/index.ts index aa88caa7..2d617036 100644 --- a/libs/integration-interface/src/index.ts +++ b/libs/integration-interface/src/index.ts @@ -38,4 +38,4 @@ export * from './lib/topics/permissions-rpc/v1/permissions-rpc.model' export * from './lib/topics/events/v1/events-topic' export * from './lib/topics/events/v1/topic-event-type' -export * from './lib/topics/events/v1/payload-navigated-event' +export * from './lib/topics/events/v1/navigated-event-payload' diff --git a/libs/integration-interface/src/lib/topics/events/v1/payload-navigated-event.ts b/libs/integration-interface/src/lib/topics/events/v1/navigated-event-payload.ts similarity index 63% rename from libs/integration-interface/src/lib/topics/events/v1/payload-navigated-event.ts rename to libs/integration-interface/src/lib/topics/events/v1/navigated-event-payload.ts index d980c723..bb386ea6 100644 --- a/libs/integration-interface/src/lib/topics/events/v1/payload-navigated-event.ts +++ b/libs/integration-interface/src/lib/topics/events/v1/navigated-event-payload.ts @@ -1,4 +1,4 @@ -export type PayloadNavigatedEvent = { +export type NavigatedEventPayload = { url: string | undefined isFirst: boolean history: string[] diff --git a/libs/ngrx-accelerator/src/lib/store-connector/onecx-reducer.ts b/libs/ngrx-accelerator/src/lib/store-connector/onecx-reducer.ts index c08a64d2..95f2a6a0 100644 --- a/libs/ngrx-accelerator/src/lib/store-connector/onecx-reducer.ts +++ b/libs/ngrx-accelerator/src/lib/store-connector/onecx-reducer.ts @@ -1,7 +1,7 @@ import { createReducer, on } from '@ngrx/store' import { OneCxActions } from './onecx-actions' import { OneCxState } from './onecx-state' -import { PayloadNavigatedEvent } from '@onecx/integration-interface' +import { NavigatedEventPayload } from '@onecx/integration-interface' export const oneCxReducer = createReducer( {}, @@ -9,7 +9,7 @@ export const oneCxReducer = createReducer( OneCxActions.navigated, (state: OneCxState, action): OneCxState => ({ ...state, - location: action.event as PayloadNavigatedEvent, + location: action.event as NavigatedEventPayload, }) ) ) diff --git a/libs/ngrx-accelerator/src/lib/store-connector/onecx-state.ts b/libs/ngrx-accelerator/src/lib/store-connector/onecx-state.ts index 1152db5a..b2374a23 100644 --- a/libs/ngrx-accelerator/src/lib/store-connector/onecx-state.ts +++ b/libs/ngrx-accelerator/src/lib/store-connector/onecx-state.ts @@ -1,6 +1,6 @@ -import { PayloadNavigatedEvent } from '@onecx/integration-interface' +import { NavigatedEventPayload } from '@onecx/integration-interface' -export type LocationState = PayloadNavigatedEvent +export type LocationState = NavigatedEventPayload export interface OneCxState { location?: LocationState | undefined }