All files / src/app/extensions/punchout/store/oci-configuration oci-configuration.selectors.ts

100% Statements 16/16
100% Branches 0/0
100% Functions 7/7
100% Lines 9/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 189x   9x   26x   9x   10x   9x   9x   9x   9x  
import { createSelector } from '@ngrx/store';
 
import { getPunchoutState } from '../punchout-store';
 
const getOciConfigurationState = createSelector(getPunchoutState, state => state.ociConfiguration);
 
export const getOciConfiguration = createSelector(getOciConfigurationState, state => state.configuration);
 
export const getOciConfigurationLoading = createSelector(getOciConfigurationState, state => state.loading);
 
export const getOciConfigurationError = createSelector(getOciConfigurationState, state => state.error);
 
const getOciConfigurationOptions = createSelector(getOciConfigurationState, state => state.options);
 
export const getOciFormatters = createSelector(getOciConfigurationOptions, options => options?.availableFormatters);
 
export const getOciPlaceholders = createSelector(getOciConfigurationOptions, options => options?.availablePlaceholders);