@composable-os/pack-bookings 0.1.0-beta.11 → 0.1.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/automations.d.ts +146 -0
- package/dist/automations.js +612 -0
- package/dist/blocks/bookings-class-list/class-list.d.ts +9 -0
- package/dist/blocks/bookings-class-list/class-list.js +27 -2
- package/dist/blocks/bookings-desk/desk.d.ts +7 -0
- package/dist/blocks/bookings-desk/desk.js +13 -1
- package/dist/blocks/bookings-drop-in/drop-in.d.ts +7 -1
- package/dist/blocks/bookings-drop-in/drop-in.js +105 -22
- package/dist/blocks/bookings-native-class-list/class-list-screen.d.ts +12 -0
- package/dist/blocks/bookings-native-class-list/class-list-screen.js +59 -0
- package/dist/blocks/bookings-native-timetable/timetable-screen.d.ts +6 -1
- package/dist/blocks/bookings-native-timetable/timetable-screen.js +82 -22
- package/dist/blocks/bookings-timetable/timetable.d.ts +6 -1
- package/dist/blocks/bookings-timetable/timetable.js +88 -30
- package/dist/client/index.d.ts +84 -44
- package/dist/client/index.js +32 -5
- package/dist/dashboards.d.ts +5 -0
- package/dist/dashboards.js +157 -0
- package/dist/index.d.ts +1769 -102
- package/dist/index.js +801 -40
- package/dist/routine-mail.d.ts +577 -0
- package/dist/routine-mail.js +443 -0
- package/dist/tools.d.ts +261 -2
- package/dist/tools.js +836 -135
- package/package.json +3 -3
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
/** What every message reads of the booking's class, and the link to the member's bookings. */
|
|
2
|
+
const CLASS_SLOTS = {
|
|
3
|
+
class: { field: "class.title" },
|
|
4
|
+
when: { field: "class.startsAt", format: "datetime", zone: "class.timezone" },
|
|
5
|
+
room: { field: "class.room.name", optional: true },
|
|
6
|
+
link: { link: "bookingsUrl" },
|
|
7
|
+
// For texts and pushes, which have less room: the day, the time, and a title of at most 40
|
|
8
|
+
// characters (a longer one holds only the text or push that shows it).
|
|
9
|
+
day: { field: "class.startsAt", format: "date", zone: "class.timezone" },
|
|
10
|
+
time: { field: "class.startsAt", format: "time", zone: "class.timezone" },
|
|
11
|
+
short: { field: "class.title", max: 40 },
|
|
12
|
+
};
|
|
13
|
+
/** What every booking kind says of its text and push (ADR 0670). */
|
|
14
|
+
const PHONE = {
|
|
15
|
+
channels: ["email", "text", "push"],
|
|
16
|
+
until: "class.startsAt",
|
|
17
|
+
open: { screen: "timetable" },
|
|
18
|
+
};
|
|
19
|
+
/** The last line of every email. */
|
|
20
|
+
const SIGN_IN = "You can see your bookings when you sign in[: {link}].";
|
|
21
|
+
/** The booking's class on the member's calendar. */
|
|
22
|
+
const CALENDAR = {
|
|
23
|
+
start: "class.startsAt",
|
|
24
|
+
end: "class.endsAt",
|
|
25
|
+
title: "class.title",
|
|
26
|
+
location: "class.room.name",
|
|
27
|
+
link: "link",
|
|
28
|
+
};
|
|
29
|
+
export const bookingsRoutineMail = {
|
|
30
|
+
confirmation: {
|
|
31
|
+
label: "Booking confirmations",
|
|
32
|
+
description: "When a booking becomes booked: made by the member, a parent or staff, a drop-in paid " +
|
|
33
|
+
"for, moved in from the waiting list, or moved by staff to another class. To the member " +
|
|
34
|
+
"and their parents or guardians, with an add-to-calendar file.",
|
|
35
|
+
about: "booking",
|
|
36
|
+
...PHONE,
|
|
37
|
+
slots: {
|
|
38
|
+
...CLASS_SLOTS,
|
|
39
|
+
oldClass: { field: "movedFrom.class.title", optional: true },
|
|
40
|
+
oldWhen: {
|
|
41
|
+
field: "movedFrom.class.startsAt",
|
|
42
|
+
format: "datetime",
|
|
43
|
+
zone: "movedFrom.class.timezone",
|
|
44
|
+
optional: true,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
messages: {
|
|
48
|
+
booked: {
|
|
49
|
+
subject: "Booked: {class}",
|
|
50
|
+
text: [
|
|
51
|
+
"You are booked into {class} on {when}[, in {room}].",
|
|
52
|
+
"",
|
|
53
|
+
"The attached file adds it to your calendar.",
|
|
54
|
+
SIGN_IN,
|
|
55
|
+
].join("\n"),
|
|
56
|
+
textMessage: "Booked: {class}, {day} at {time}.",
|
|
57
|
+
push: { title: "Booked for {day}", body: "{class} at {time}." },
|
|
58
|
+
guardian: {
|
|
59
|
+
subject: "Booked: {class} ({member})",
|
|
60
|
+
text: [
|
|
61
|
+
"{member} is booked into {class} on {when}[, in {room}].",
|
|
62
|
+
"",
|
|
63
|
+
"The attached file adds it to your calendar.",
|
|
64
|
+
SIGN_IN,
|
|
65
|
+
].join("\n"),
|
|
66
|
+
textMessage: "{member} is booked into {class}, {day} at {time}.",
|
|
67
|
+
push: { title: "Booked for {day}", body: "{member}: {short} at {time}." },
|
|
68
|
+
},
|
|
69
|
+
calendar: CALENDAR,
|
|
70
|
+
},
|
|
71
|
+
paid: {
|
|
72
|
+
subject: "Booked and paid: {class}",
|
|
73
|
+
text: [
|
|
74
|
+
"Payment received: you are booked into {class} on {when}[, in {room}].",
|
|
75
|
+
"",
|
|
76
|
+
"The attached file adds it to your calendar.",
|
|
77
|
+
SIGN_IN,
|
|
78
|
+
].join("\n"),
|
|
79
|
+
textMessage: "Paid and booked: {class}, {day} at {time}.",
|
|
80
|
+
push: { title: "Paid and booked for {day}", body: "{class} at {time}." },
|
|
81
|
+
guardian: {
|
|
82
|
+
subject: "Booked and paid: {class} ({member})",
|
|
83
|
+
text: [
|
|
84
|
+
"Payment received: {member} is booked into {class} on {when}[, in {room}].",
|
|
85
|
+
"",
|
|
86
|
+
"The attached file adds it to your calendar.",
|
|
87
|
+
SIGN_IN,
|
|
88
|
+
].join("\n"),
|
|
89
|
+
textMessage: "Paid: {member} is booked into {short}, {day} at {time}.",
|
|
90
|
+
push: { title: "Paid and booked for {day}", body: "{member}: {short} at {time}." },
|
|
91
|
+
},
|
|
92
|
+
calendar: CALENDAR,
|
|
93
|
+
},
|
|
94
|
+
promoted: {
|
|
95
|
+
subject: "You're in: {class}",
|
|
96
|
+
text: [
|
|
97
|
+
"A place came free and you are now booked into {class} on {when}[, in {room}], moved in from the waiting list. It used one class from your membership or pass.",
|
|
98
|
+
"",
|
|
99
|
+
"The attached file adds it to your calendar.",
|
|
100
|
+
SIGN_IN,
|
|
101
|
+
].join("\n"),
|
|
102
|
+
textMessage: "A place came free: you are booked into {class}, {day} at {time}.",
|
|
103
|
+
push: { title: "You're in, {day}", body: "{class} at {time}." },
|
|
104
|
+
guardian: {
|
|
105
|
+
subject: "You're in: {class} ({member})",
|
|
106
|
+
text: [
|
|
107
|
+
"A place came free and {member} is now booked into {class} on {when}[, in {room}], moved in from the waiting list. It used one class from their membership or pass.",
|
|
108
|
+
"",
|
|
109
|
+
"The attached file adds it to your calendar.",
|
|
110
|
+
SIGN_IN,
|
|
111
|
+
].join("\n"),
|
|
112
|
+
textMessage: "A place came free: {member} is booked into {short}, {day} at {time}.",
|
|
113
|
+
push: { title: "In from the waiting list", body: "{member}: {short} at {time}." },
|
|
114
|
+
},
|
|
115
|
+
calendar: CALENDAR,
|
|
116
|
+
},
|
|
117
|
+
moved: {
|
|
118
|
+
subject: "Booking moved: {class}",
|
|
119
|
+
text: [
|
|
120
|
+
"The gym moved your booking[ from {oldClass}][ on {oldWhen}] to {class} on {when}[, in {room}].",
|
|
121
|
+
"",
|
|
122
|
+
"The attached files take the old class off your calendar and add the new one.",
|
|
123
|
+
SIGN_IN,
|
|
124
|
+
].join("\n"),
|
|
125
|
+
textMessage: "Your booking moved to {class}, {day} at {time}.",
|
|
126
|
+
push: { title: "Booking moved to {day}", body: "{class} at {time}." },
|
|
127
|
+
guardian: {
|
|
128
|
+
subject: "Booking moved: {class} ({member})",
|
|
129
|
+
text: [
|
|
130
|
+
"The gym moved {member}'s booking[ from {oldClass}][ on {oldWhen}] to {class} on {when}[, in {room}].",
|
|
131
|
+
"",
|
|
132
|
+
"The attached files take the old class off your calendar and add the new one.",
|
|
133
|
+
SIGN_IN,
|
|
134
|
+
].join("\n"),
|
|
135
|
+
textMessage: "{member}'s booking moved to {short}, {day} at {time}.",
|
|
136
|
+
push: { title: "Booking moved to {day}", body: "{member}: {short} at {time}." },
|
|
137
|
+
},
|
|
138
|
+
calendar: [
|
|
139
|
+
{
|
|
140
|
+
uid: "movedFrom",
|
|
141
|
+
start: "movedFrom.class.startsAt",
|
|
142
|
+
end: "movedFrom.class.endsAt",
|
|
143
|
+
title: "movedFrom.class.title",
|
|
144
|
+
location: "movedFrom.class.room.name",
|
|
145
|
+
cancelled: true,
|
|
146
|
+
update: true,
|
|
147
|
+
},
|
|
148
|
+
{ ...CALENDAR, update: true },
|
|
149
|
+
],
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
waitingList: {
|
|
154
|
+
label: "Waiting list news",
|
|
155
|
+
description: "When a place came free but the first person waiting could not be moved in (nothing they " +
|
|
156
|
+
"hold could pay for it), and when a place is given back after the waiting list has " +
|
|
157
|
+
"stopped. To each person waiting and their parents or guardians.",
|
|
158
|
+
about: "booking",
|
|
159
|
+
essential: false,
|
|
160
|
+
...PHONE,
|
|
161
|
+
slots: {
|
|
162
|
+
...CLASS_SLOTS,
|
|
163
|
+
why: {
|
|
164
|
+
choice: {
|
|
165
|
+
noUsesLeft: "there are no classes left on the membership or pass for that week",
|
|
166
|
+
notLive: "no membership or pass covers the class's date (ended, or paused)",
|
|
167
|
+
notCovered: "the membership or pass does not cover this class",
|
|
168
|
+
other: "nothing held could pay for it",
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
messages: {
|
|
173
|
+
passedOver: {
|
|
174
|
+
subject: "A place came free: {class}",
|
|
175
|
+
text: [
|
|
176
|
+
"A place came free on {class} on {when}, but we could not move you in: {why}.",
|
|
177
|
+
"You are still on the waiting list, and will be moved in when the next place comes free if it can be paid for then.",
|
|
178
|
+
"",
|
|
179
|
+
SIGN_IN,
|
|
180
|
+
].join("\n"),
|
|
181
|
+
textMessage: "A place came free on {short}, {day} at {time}, but we could not move you in: {why}.",
|
|
182
|
+
push: { title: "A place came free", body: "{short} at {time}: we could not move you in." },
|
|
183
|
+
guardian: {
|
|
184
|
+
subject: "A place came free: {class} ({member})",
|
|
185
|
+
text: [
|
|
186
|
+
"A place came free on {class} on {when}, but we could not move {member} in: {why}.",
|
|
187
|
+
"{member} is still on the waiting list, and will be moved in when the next place comes free if it can be paid for then.",
|
|
188
|
+
"",
|
|
189
|
+
SIGN_IN,
|
|
190
|
+
].join("\n"),
|
|
191
|
+
textMessage: "A place came free on {short}, {day} at {time}, but we could not move {member} in. The email says why.",
|
|
192
|
+
push: { title: "A place came free", body: "{member}: we could not move them in." },
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
placeFree: {
|
|
196
|
+
subject: "A place is free: {class}",
|
|
197
|
+
text: [
|
|
198
|
+
"A place is free on {class} on {when}. The waiting list has stopped for this class, so whoever books it first gets it.",
|
|
199
|
+
"Book it now if you still want it.",
|
|
200
|
+
"",
|
|
201
|
+
SIGN_IN,
|
|
202
|
+
].join("\n"),
|
|
203
|
+
textMessage: "A place is free on {class}, {day} at {time}. Whoever books it first gets it.",
|
|
204
|
+
push: { title: "A place is free", body: "{short} at {time}: whoever books first gets it." },
|
|
205
|
+
guardian: {
|
|
206
|
+
subject: "A place is free: {class} ({member})",
|
|
207
|
+
text: [
|
|
208
|
+
"A place is free on {class} on {when}. The waiting list has stopped for this class, so whoever books it first gets it.",
|
|
209
|
+
"Book it for {member} now if they still want it.",
|
|
210
|
+
"",
|
|
211
|
+
SIGN_IN,
|
|
212
|
+
].join("\n"),
|
|
213
|
+
textMessage: "A place is free on {short}, {day} at {time}. Book it for {member} if they still want it.",
|
|
214
|
+
push: { title: "A place is free", body: "{short} at {time}, for {member}." },
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
change: {
|
|
220
|
+
label: "Class changes",
|
|
221
|
+
description: "When staff change a scheduled class's time, day, end or room (a coach swap sends " +
|
|
222
|
+
"nothing). To everyone booked or waiting and their parents or guardians, with an updated " +
|
|
223
|
+
"add-to-calendar file for those booked.",
|
|
224
|
+
about: "booking",
|
|
225
|
+
...PHONE,
|
|
226
|
+
slots: {
|
|
227
|
+
...CLASS_SLOTS,
|
|
228
|
+
before: { at: true, zone: "class.timezone", optional: true },
|
|
229
|
+
ends: { field: "class.endsAt", format: "time", zone: "class.timezone", optional: true },
|
|
230
|
+
stays: {
|
|
231
|
+
choice: {
|
|
232
|
+
booking: "booking stays",
|
|
233
|
+
waiting: "place on the waiting list stays",
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
moved: { flag: true },
|
|
237
|
+
notMoved: { flag: true },
|
|
238
|
+
endChanged: { flag: true },
|
|
239
|
+
roomChanged: { flag: true },
|
|
240
|
+
keep: { flag: true },
|
|
241
|
+
},
|
|
242
|
+
messages: {
|
|
243
|
+
changed: {
|
|
244
|
+
subject: "Class changed: {class}",
|
|
245
|
+
text: [
|
|
246
|
+
"[{moved}{class}][{moved} on {before}][{moved} has moved to {when}.][{notMoved}{class} on {when} has changed.]",
|
|
247
|
+
"[{endChanged}It now ends at {ends}.]",
|
|
248
|
+
"[{roomChanged}It is now in {room}.]",
|
|
249
|
+
"Your {stays} as it is. If the change does not suit, cancel it when you sign in.",
|
|
250
|
+
"",
|
|
251
|
+
"[{keep}The attached file updates it in your calendar.]",
|
|
252
|
+
SIGN_IN,
|
|
253
|
+
].join("\n"),
|
|
254
|
+
textMessage: "Class changed: {class}, now {day} at {time}. The email has the details.",
|
|
255
|
+
push: { title: "Class changed", body: "{short}: now {day} at {time}." },
|
|
256
|
+
guardian: {
|
|
257
|
+
subject: "Class changed: {class} ({member})",
|
|
258
|
+
text: [
|
|
259
|
+
"[{moved}{class}][{moved} on {before}][{moved} has moved to {when}.][{notMoved}{class} on {when} has changed.]",
|
|
260
|
+
"[{endChanged}It now ends at {ends}.]",
|
|
261
|
+
"[{roomChanged}It is now in {room}.]",
|
|
262
|
+
"{member}'s {stays} as it is. If the change does not suit, cancel it when you sign in.",
|
|
263
|
+
"",
|
|
264
|
+
"[{keep}The attached file updates it in your calendar.]",
|
|
265
|
+
SIGN_IN,
|
|
266
|
+
].join("\n"),
|
|
267
|
+
textMessage: "{member}'s class changed: {short}, now {day} at {time}. The email has the details.",
|
|
268
|
+
push: { title: "Class changed", body: "{member}: {short} has changed." },
|
|
269
|
+
},
|
|
270
|
+
calendar: { ...CALENDAR, update: true, if: "keep" },
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
},
|
|
274
|
+
cancellation: {
|
|
275
|
+
label: "Class cancellations",
|
|
276
|
+
description: "When the gym cancels a class (staff, a closure, or a series ended). To everyone whose " +
|
|
277
|
+
"booking it cancelled and their parents or guardians: the reason, that nothing was used " +
|
|
278
|
+
"or that a paid drop-in's money goes back once approved, with a file that takes it off " +
|
|
279
|
+
"their calendar.",
|
|
280
|
+
about: "booking",
|
|
281
|
+
// A cancellation close to the class may go during quiet hours (ADR 0676).
|
|
282
|
+
urgent: true,
|
|
283
|
+
...PHONE,
|
|
284
|
+
slots: {
|
|
285
|
+
...CLASS_SLOTS,
|
|
286
|
+
reason: { field: "class.cancelledReason", max: 200, optional: true },
|
|
287
|
+
money: {
|
|
288
|
+
choice: {
|
|
289
|
+
refund: "The money paid for it goes back to the card it was paid with, once the gym approves the refund: you will get an email when it has been made.",
|
|
290
|
+
unpaid: "Nothing was charged.",
|
|
291
|
+
membership: "Nothing was used from your membership or pass.",
|
|
292
|
+
},
|
|
293
|
+
guardian: {
|
|
294
|
+
refund: "The money paid for it goes back to the card it was paid with, once the gym approves the refund.",
|
|
295
|
+
membership: "Nothing was used from their membership or pass.",
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
},
|
|
299
|
+
messages: {
|
|
300
|
+
cancelled: {
|
|
301
|
+
subject: "Cancelled by the gym: {class}",
|
|
302
|
+
text: [
|
|
303
|
+
"The gym has cancelled {class} on {when}.",
|
|
304
|
+
"[The reason: {reason}]",
|
|
305
|
+
"{money}",
|
|
306
|
+
"",
|
|
307
|
+
"The attached file takes it off your calendar.",
|
|
308
|
+
SIGN_IN,
|
|
309
|
+
].join("\n"),
|
|
310
|
+
textMessage: "Cancelled by the gym: {class}, {day} at {time}. The email has the details.",
|
|
311
|
+
push: { title: "Class cancelled", body: "{short}, {day} at {time}." },
|
|
312
|
+
guardian: {
|
|
313
|
+
subject: "Cancelled by the gym: {class} ({member})",
|
|
314
|
+
text: [
|
|
315
|
+
"The gym has cancelled {class} on {when}, which {member} was booked into.",
|
|
316
|
+
"[The reason: {reason}]",
|
|
317
|
+
"{money}",
|
|
318
|
+
"",
|
|
319
|
+
"The attached file takes it off your calendar.",
|
|
320
|
+
SIGN_IN,
|
|
321
|
+
].join("\n"),
|
|
322
|
+
textMessage: "Cancelled by the gym: {short}, {day} at {time}, which {member} was booked into.",
|
|
323
|
+
push: { title: "Class cancelled", body: "{member}: {short} at {time}." },
|
|
324
|
+
},
|
|
325
|
+
calendar: { ...CALENDAR, cancelled: true, update: true },
|
|
326
|
+
},
|
|
327
|
+
},
|
|
328
|
+
},
|
|
329
|
+
reminder: {
|
|
330
|
+
label: "Class reminders",
|
|
331
|
+
description: "Before each scheduled class (3 hours by default: the class type's reminder, else the " +
|
|
332
|
+
"organisation's). To everyone booked and their parents or guardians, and a visitor who " +
|
|
333
|
+
"paid for a place staff have not yet confirmed.",
|
|
334
|
+
about: "booking",
|
|
335
|
+
essential: false,
|
|
336
|
+
...PHONE,
|
|
337
|
+
slots: CLASS_SLOTS,
|
|
338
|
+
messages: {
|
|
339
|
+
reminder: {
|
|
340
|
+
subject: "Reminder: {class}",
|
|
341
|
+
text: [
|
|
342
|
+
"A reminder: you are booked into {class} on {when}[, in {room}].",
|
|
343
|
+
"If you cannot come, cancel when you sign in, so someone waiting can have the place.",
|
|
344
|
+
"",
|
|
345
|
+
SIGN_IN,
|
|
346
|
+
].join("\n"),
|
|
347
|
+
textMessage: "Reminder: {class}, {day} at {time}. Can't come? Cancel when you sign in, so someone waiting gets the place.",
|
|
348
|
+
push: { title: "Reminder for {day}", body: "{class} at {time}." },
|
|
349
|
+
guardian: {
|
|
350
|
+
subject: "Reminder: {class} ({member})",
|
|
351
|
+
text: [
|
|
352
|
+
"A reminder: {member} is booked into {class} on {when}[, in {room}].",
|
|
353
|
+
"If they cannot come, cancel when you sign in, so someone waiting can have the place.",
|
|
354
|
+
"",
|
|
355
|
+
SIGN_IN,
|
|
356
|
+
].join("\n"),
|
|
357
|
+
textMessage: "Reminder: {member} is booked into {short}, {day} at {time}.",
|
|
358
|
+
push: { title: "Reminder for {day}", body: "{member}: {short} at {time}." },
|
|
359
|
+
},
|
|
360
|
+
},
|
|
361
|
+
},
|
|
362
|
+
},
|
|
363
|
+
dropIn: {
|
|
364
|
+
label: "Drop-in payments and refunds",
|
|
365
|
+
description: "When a visitor pays for a class that staff still have to confirm, and when a paid " +
|
|
366
|
+
"drop-in's refund has been made. About the order: to the address that paid it, never " +
|
|
367
|
+
"anyone else.",
|
|
368
|
+
// About the order (the coordinator's D3): a payer's notice goes to the address that paid.
|
|
369
|
+
about: "order",
|
|
370
|
+
slots: {
|
|
371
|
+
what: {
|
|
372
|
+
each: {
|
|
373
|
+
object: "booking",
|
|
374
|
+
via: "dropInOrder",
|
|
375
|
+
max: 1,
|
|
376
|
+
line: "{class} on {when}",
|
|
377
|
+
slots: {
|
|
378
|
+
class: { field: "class.title" },
|
|
379
|
+
when: { field: "class.startsAt", format: "datetime", zone: "class.timezone" },
|
|
380
|
+
},
|
|
381
|
+
},
|
|
382
|
+
},
|
|
383
|
+
link: { link: "bookingsUrl" },
|
|
384
|
+
},
|
|
385
|
+
messages: {
|
|
386
|
+
held: {
|
|
387
|
+
subject: "Payment received",
|
|
388
|
+
text: [
|
|
389
|
+
"Payment received for {what}. Your place is held: the gym confirms it shortly, and you will get an email when it has.",
|
|
390
|
+
"",
|
|
391
|
+
SIGN_IN,
|
|
392
|
+
].join("\n"),
|
|
393
|
+
},
|
|
394
|
+
refunded: {
|
|
395
|
+
subject: "Refund made",
|
|
396
|
+
text: [
|
|
397
|
+
"Your refund for {what} has been made to the card you paid with. Banks can take a few days to show it.",
|
|
398
|
+
"",
|
|
399
|
+
SIGN_IN,
|
|
400
|
+
].join("\n"),
|
|
401
|
+
},
|
|
402
|
+
},
|
|
403
|
+
},
|
|
404
|
+
// Feedback after a class (stage 29 step 5, decision 4; ADR 0723): a follow-up, which a member
|
|
405
|
+
// may stop with one tap (ADR 0675), carrying a personal link to the form the gym chose
|
|
406
|
+
// (`feedbackForm`). The host makes the link for the booking's Person about this booking, good
|
|
407
|
+
// for a week, and sends it at most once a month to a member; a child's goes to their guardian,
|
|
408
|
+
// never to the child's own address. The same link is "Needs your attention" in the app.
|
|
409
|
+
feedback: {
|
|
410
|
+
label: "Feedback after a class",
|
|
411
|
+
description: "A few hours after a member is ticked as come (3 by default), when a feedback form is " +
|
|
412
|
+
"chosen in the settings: a short email asking how the class was, with a link to the form " +
|
|
413
|
+
"that works once and for a week. At most once a month to a member; a child's goes to their " +
|
|
414
|
+
"parent or guardian. Members can stop these emails with one tap.",
|
|
415
|
+
about: "booking",
|
|
416
|
+
purpose: "follow_up",
|
|
417
|
+
slots: {
|
|
418
|
+
class: { field: "class.title" },
|
|
419
|
+
day: { field: "class.startsAt", format: "date", zone: "class.timezone" },
|
|
420
|
+
form: { formLink: { object: "forms.form", setting: "feedbackForm", days: 7, once: 30 } },
|
|
421
|
+
},
|
|
422
|
+
messages: {
|
|
423
|
+
ask: {
|
|
424
|
+
subject: "How was {class}?",
|
|
425
|
+
text: [
|
|
426
|
+
"Thank you for coming to {class} on {day}. How was it?",
|
|
427
|
+
"",
|
|
428
|
+
"Tell us here (it takes a minute; the link works once, for a week):",
|
|
429
|
+
"{form}",
|
|
430
|
+
].join("\n"),
|
|
431
|
+
guardian: {
|
|
432
|
+
subject: "How was {class}? ({member})",
|
|
433
|
+
text: [
|
|
434
|
+
"Thank you for bringing {member} to {class} on {day}. How was it?",
|
|
435
|
+
"",
|
|
436
|
+
"Tell us here (it takes a minute; the link works once, for a week):",
|
|
437
|
+
"{form}",
|
|
438
|
+
].join("\n"),
|
|
439
|
+
},
|
|
440
|
+
},
|
|
441
|
+
},
|
|
442
|
+
},
|
|
443
|
+
};
|