All files / src/app/extensions/contact-us/store/contact contact.actions.ts

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

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 204x     4x   4x   4x         4x   4x   4x   4x  
import { createAction } from '@ngrx/store';
 
import { Contact } from 'ish-core/models/contact/contact.model';
import { httpError, payload } from 'ish-core/utils/ngrx-creators';
 
export const loadContact = createAction('[Contact] Load Contact Subjects');
 
export const loadContactSuccess = createAction(
  '[Contact API] Load Contact Subjects Success',
  payload<{ subjects: string[] }>()
);
 
export const loadContactFail = createAction('[Contact API] Load Contact Subjects Fail', httpError());
 
export const createContact = createAction('[Contact] Create Contact Us Request', payload<{ contact: Contact }>());
 
export const createContactFail = createAction('[Contact API] Create Contact Us Request Fail', httpError());
 
export const createContactSuccess = createAction('[Contact API] Create Contact Us Request Success');