Cannot import PaginationUtils in typescript file

Hi everyone I want to override some reducer functionality in client in some part I needed to add PaginationUtils to keep some similar functionality of original reducer but I couldn’t do that because of this error:

Module '"@com.mgmtp.a12.client/client-core/lib/extensions/relationship/internal/paginationUtils"' has no exported member 'PaginationUtils'.

and also it is not exported from
@com.mgmtp.a12.client\client-core\lib\extensions\relationship\index

and not here but in some other areas I also had problem importing some other modules as well

so my question is that is it even possible to use these files or I shouldn’t use them and if it’s possible how can I do that?

btw I’m new in both A12 and react topics

(also I had problem with original issue with overriding reducer)

the reducer I want to ovverride is one of RelationshipReducers.dataReducers reducers
so am I allowed to override them actually or not?

specifically I want to change the functionality of setCandidate reducer:

			reduce(dataHolders, action) {
				return RelationshipActions.Commands.setCandidates.match(action)
					? dataHolders?.map(dh =>
							Relationship.CandidateDataHolder.isInstanceById(action.payload.instanceId)(dh)
								? handleSetCandidates(dh, action.payload)
								: dh
					  )
					: dataHolders;
			}

By providing the internal annotation for that namespace, we can prevent breaking changes when introducing any changes in the namespace. That’s why the Typescript compiler will complain if someone tries to import and use the namespace (exactly in your use case). So I would say this is the intention of the codebase.

By the way, if you want to override the setCandidate reducer, I guess you need to be able to use the function reducePaginationList from PaginationUtils namespace. Since the function is not complicated, we can public it for customer project to use. If so, please create an A12 ticket for the function publication. Thanks.

thanks for the answer, btw for replacing the original reducer this is what I’m doing in appsetup:

let updatedReducers = Array.from(RelationshipReducers.dataReducers);
updatedReducers[7] = customReducer;
dataReducers: [
    updatedReducers,
    // other reducers
]

is there any better way to do that?