PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / trunk
Booking for Appointments and Events Calendar – Amelia vtrunk
2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / v3 / src / store / modules / employee.js
ameliabooking / v3 / src / store / modules Last commit date
appointment.js 1 week ago appointmentWaitingListOptions.js 1 week ago attendee.js 1 week ago auth.js 1 week ago bookableType.js 1 week ago booking.js 1 week ago cabinet.js 1 week ago cabinetFilters.js 1 week ago coupon.js 1 week ago customFields.js 1 week ago customerInfo.js 1 week ago employee.js 1 week ago entities.js 1 week ago event.js 1 week ago eventBooking.js 1 week ago eventEntities.js 1 week ago eventWaitingListOptions.js 1 week ago pagination.js 1 week ago params.js 1 week ago payment.js 1 week ago persons.js 1 week ago recurring.js 1 week ago shortcodeParams.js 1 week ago stepByStepFilters.js 1 week ago tickets.js 1 week ago
employee.js
282 lines
1 export default {
2 namespaced: true,
3
4 state: {
5 id: null,
6 firstName: '',
7 lastName: '',
8 email: '',
9 phone: '',
10 locationId: '',
11 serviceList: {},
12 outlookCalendar: {
13 id: null,
14 calendarId: '',
15 token: null,
16 accounts: [],
17 blockedCalendars: [],
18 calendarList: [],
19 },
20 googleCalendar: {
21 id: null,
22 calendarId: '',
23 token: null,
24 accounts: [],
25 blockedCalendars: [],
26 calendarList: [],
27 },
28 appleCalendarId: '',
29 googleCalendarId: '',
30 outlookCalendarId: '',
31 employeeAppleCalendar: {
32 iCloudId: null,
33 appSpecificPassword: null,
34 },
35 stripeConnect: null,
36 zoomUserId: '',
37 description: '',
38 descriptionMode: 'html',
39 weekDayList: [],
40 specialDayList: [],
41 savedSpecialDayList: [],
42 dayOffList: [],
43 savedDayOffList: [],
44 badgeId: null,
45 },
46
47 getters: {
48 getEmployee(state) {
49 return state
50 },
51
52 getId(state) {
53 return state.id
54 },
55
56 getFirstName(state) {
57 return state.firstName
58 },
59
60 getLastName(state) {
61 return state.lastName
62 },
63
64 getEmail(state) {
65 return state.email
66 },
67
68 getPhone(state) {
69 return state.phone
70 },
71
72 getLocationId(state) {
73 return state.locationId
74 },
75
76 getServiceList(state) {
77 return state.serviceList
78 },
79
80 getZoomUserId(state) {
81 return state.zoomUserId
82 },
83
84 getOutlookCalendarId(state) {
85 return state.outlookCalendar.calendarId
86 },
87
88 getOutlookToken(state) {
89 return state.outlookCalendar.token
90 },
91
92 getOutlookCalendarAccounts(state) {
93 return state.outlookCalendar.accounts
94 },
95
96 getOutlookCalendarBlockedCalendars(state) {
97 return state.outlookCalendar.blockedCalendars
98 },
99
100 getGoogleCalendarId(state) {
101 return state.googleCalendar.calendarId
102 },
103
104 getGoogleToken(state) {
105 return state.googleCalendar.token
106 },
107
108 getGoogleCalendarAccounts(state) {
109 return state.googleCalendar.accounts
110 },
111
112 getGoogleCalendarBlockedCalendars(state) {
113 return state.googleCalendar.blockedCalendars
114 },
115
116 getAppleCalendarId(state) {
117 return state.appleCalendarId
118 },
119
120 getUserTableGoogleCalendarId(state) {
121 return state.googleCalendarId
122 },
123
124 getUserTableOutlookCalendarId(state) {
125 return state.outlookCalendarId
126 },
127
128 getEmployeeAppleCalendarICloudId(state) {
129 return state.employeeAppleCalendar.iCloudId
130 },
131
132 getEmployeeAppleCalendarAppSpecificPassword(state) {
133 return state.employeeAppleCalendar.appSpecificPassword
134 },
135
136 getStripeConnect(state) {
137 return state.stripeConnect
138 },
139
140 getDescription(state) {
141 return state.description
142 },
143
144 getDescriptionMode(state) {
145 return state.descriptionMode
146 },
147
148 getSavedSpecialDayList(state) {
149 return state.savedSpecialDayList
150 },
151
152 getSavedDayOffList(state) {
153 return state.savedDayOffList
154 },
155 },
156
157 mutations: {
158 setEmployee(state, payload) {
159 Object.assign(state, payload)
160 },
161
162 setId(state, payload) {
163 state.id = payload
164 },
165
166 setFirstName(state, payload) {
167 state.firstName = payload
168 },
169
170 setLastName(state, payload) {
171 state.lastName = payload
172 },
173
174 setEmail(state, payload) {
175 state.email = payload
176 },
177
178 setPhone(state, payload) {
179 state.phone = payload
180 },
181
182 setLocationId(state, payload) {
183 state.locationId = payload
184 },
185
186 setServiceList(state, payload) {
187 state.serviceList = payload
188 },
189
190 setZoomUserId(state, payload) {
191 state.zoomUserId = payload
192 },
193
194 setOutlookId(state, payload) {
195 state.outlookCalendar.id = payload
196 },
197
198 setOutlookCalendarId(state, payload) {
199 state.outlookCalendar.calendarId = payload
200 },
201
202 setOutlookToken(state, payload) {
203 state.outlookCalendar.token = payload
204 },
205
206 setOutlookCalendarAccounts(state, payload) {
207 state.outlookCalendar.accounts = payload
208 },
209
210 setOutlookCalendarBlockedCalendars(state, payload) {
211 state.outlookCalendar.blockedCalendars = payload
212 },
213
214 setGoogleId(state, payload) {
215 state.googleCalendar.id = payload
216 },
217
218 setGoogleCalendarId(state, payload) {
219 state.googleCalendar.calendarId = payload
220 },
221
222 setGoogleToken(state, payload) {
223 state.googleCalendar.token = payload
224 },
225
226 setGoogleCalendarAccounts(state, payload) {
227 state.googleCalendar.accounts = payload
228 },
229
230 setGoogleCalendarBlockedCalendars(state, payload) {
231 state.googleCalendar.blockedCalendars = payload
232 },
233
234 setEmployeeOutlookCalendarId(state, payload) {
235 state.outlookCalendarId = payload
236 },
237
238 setAppleCalendarId(state, payload) {
239 state.appleCalendarId = payload
240 },
241
242 setEmployeeGoogleCalendarId(state, payload) {
243 state.googleCalendarId = payload
244 },
245
246 setEmployeeAppleCalendarICloudId(state, payload) {
247 state.employeeAppleCalendar.iCloudId = payload
248 },
249
250 setEmployeeAppleCalendarAppSpecificPassword(state, payload) {
251 state.employeeAppleCalendar.appSpecificPassword = payload
252 },
253
254 setStripeConnect(state, payload) {
255 state.stripeConnect = payload
256 },
257
258 setDescription(state, payload) {
259 state.description = payload
260 },
261
262 setDescriptionMode(state, payload) {
263 state.descriptionMode = payload
264 },
265
266 setServiceEnabled(state, payload) {
267 let { serviceId, categoryId, value } = payload
268 state.serviceList[categoryId][serviceId].enabled = value
269 },
270
271 setSavedSpecialDayList(state, payload) {
272 state.savedSpecialDayList = payload
273 },
274
275 setSavedDayOffList(state, payload) {
276 state.savedDayOffList = payload
277 },
278 },
279
280 actions: {},
281 }
282