File size: 1,890 Bytes
1e92f2d |
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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
import {
CONCIERGE_APPOINTMENT_CANCEL,
CONCIERGE_APPOINTMENT_CREATE,
CONCIERGE_APPOINTMENT_DETAILS_REQUEST,
CONCIERGE_APPOINTMENT_DETAILS_UPDATE,
CONCIERGE_APPOINTMENT_RESCHEDULE,
CONCIERGE_INITIAL_REQUEST,
CONCIERGE_INITIAL_UPDATE,
CONCIERGE_SIGNUP_FORM_UPDATE,
CONCIERGE_UPDATE_BOOKING_STATUS,
} from 'calypso/state/action-types';
import 'calypso/state/data-layer/wpcom/concierge';
import 'calypso/state/data-layer/wpcom/concierge/initial';
import 'calypso/state/concierge/init';
export const requestConciergeAppointmentDetails = ( scheduleId, appointmentId ) => ( {
type: CONCIERGE_APPOINTMENT_DETAILS_REQUEST,
scheduleId,
appointmentId,
} );
export const updateConciergeAppointmentDetails = ( appointmentId, appointmentDetails ) => ( {
type: CONCIERGE_APPOINTMENT_DETAILS_UPDATE,
appointmentId,
appointmentDetails,
} );
export const requestConciergeInitial = ( siteId ) => ( {
type: CONCIERGE_INITIAL_REQUEST,
siteId,
} );
export const updateConciergeInitial = ( initial ) => ( {
type: CONCIERGE_INITIAL_UPDATE,
initial,
} );
export const updateConciergeSignupForm = ( signupForm ) => ( {
type: CONCIERGE_SIGNUP_FORM_UPDATE,
signupForm,
} );
export const updateConciergeBookingStatus = ( status ) => ( {
type: CONCIERGE_UPDATE_BOOKING_STATUS,
status,
} );
export const bookConciergeAppointment = (
scheduleId,
beginTimestamp,
customerId,
siteId,
meta
) => ( {
type: CONCIERGE_APPOINTMENT_CREATE,
scheduleId,
beginTimestamp,
customerId,
siteId,
meta,
} );
export const rescheduleConciergeAppointment = (
scheduleId,
appointmentId,
beginTimestamp,
appointmentDetails
) => ( {
type: CONCIERGE_APPOINTMENT_RESCHEDULE,
scheduleId,
appointmentId,
beginTimestamp,
appointmentDetails,
} );
export const cancelConciergeAppointment = ( scheduleId, appointmentId ) => ( {
type: CONCIERGE_APPOINTMENT_CANCEL,
scheduleId,
appointmentId,
} );
|