All files / src/app/extensions/tacton/store/product-configuration product-configuration.actions.ts

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

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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 5516x   16x         16x         16x         16x         16x   16x         16x         16x       16x         16x   16x         16x        
import { createAction } from '@ngrx/store';
 
import { httpError, payload } from 'ish-core/utils/ngrx-creators';
 
import { TactonProductConfiguration } from '../../models/tacton-product-configuration/tacton-product-configuration.model';
import { TactonSavedConfiguration } from '../../models/tacton-saved-configuration/tacton-saved-configuration.model';
 
export const startConfigureTactonProduct = createAction(
  '[Tacton Self-Service] Start Product Configuration',
  payload<{ productPath: string }>()
);
 
export const continueConfigureTactonProduct = createAction(
  '[Tacton Self-Service API] Continue Product Configuration',
  payload<{ savedConfig: TactonSavedConfiguration }>()
);
 
export const setCurrentConfiguration = createAction(
  '[Tacton Self-Service API] Set Product Configuration',
  payload<{ configuration: TactonProductConfiguration }>()
);
 
export const clearTactonConfiguration = createAction('[Tacton Self-Service API] Clear Configuration');
 
export const commitTactonConfigurationValue = createAction(
  '[Tacton Self-Service] Commit Configuration Value',
  payload<{ valueId: string; value: string }>()
);
 
export const uncommitTactonConfigurationValue = createAction(
  '[Tacton Self-Service] Uncommit Configuration Value',
  payload<{ valueId: string }>()
);
 
export const acceptTactonConfigurationConflictResolution = createAction(
  '[Tacton Self-Service] Accept ConflictResolution'
);
 
export const changeTactonConfigurationStep = createAction(
  '[Tacton Self-Service] Change Configuration Step',
  payload<{ step: string }>()
);
 
export const submitTactonConfiguration = createAction('[Tacton Self-Service] Submit Configuration');
 
export const submitTactonConfigurationSuccess = createAction(
  '[Tacton Self-Service API] Submit Configuration Success',
  payload<{ productId: string; user: string }>()
);
 
export const submitTactonConfigurationFail = createAction(
  '[Tacton Self-Service API] Submit Configuration Failed',
  httpError<{ productId: string; user: string }>()
);