All files / src/app/extensions/punchout/store/cxml-configuration cxml-configuration.actions.ts

100% Statements 4/4
100% Branches 0/0
100% Functions 0/0
100% Lines 4/4

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 18 19 20 21 22 23 24 2514x   14x       14x                 14x                  
import { createActionGroup } from '@ngrx/store';
 
import { httpError, payload } from 'ish-core/utils/ngrx-creators';
 
import { CxmlConfiguration } from '../../models/cxml-configuration/cxml-configuration.model';
 
export const cxmlConfigurationActions = createActionGroup({
  source: 'Cxml Configuration',
  events: {
    'Load CXML Configuration': payload<void>(),
    'Update CXML Configuration': payload<{ configuration: CxmlConfiguration[] }>(),
    'Reset CXML Configuration': payload<void>(),
  },
});
 
export const cxmlConfigurationApiActions = createActionGroup({
  source: 'CXML Configuration API',
  events: {
    'Load CXML Configuration Success': payload<{ configuration: CxmlConfiguration[] }>(),
    'Load CXML Configuration Fail': httpError<{}>(),
    'Update CXML Configuration Success': payload<{ configuration: CxmlConfiguration[] }>(),
    'Update CXML Configuration Fail': httpError<{}>(),
  },
});