@mccaskie-labs/workbench-bookings 0.2.2 → 0.3.0

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/words.js CHANGED
@@ -8,6 +8,9 @@ export const BOOKING_WORD_KEYS = [
8
8
  "picker.empty",
9
9
  "picker.more",
10
10
  "picker.left",
11
+ "picker.choose",
12
+ "picker.anyone",
13
+ "with",
11
14
  "form.title",
12
15
  "form.name",
13
16
  "form.email",
@@ -70,6 +73,7 @@ export const BOOKING_WORD_KEYS = [
70
73
  "email.reminder.subject",
71
74
  "email.reminder.body",
72
75
  "email.places",
76
+ "email.with",
73
77
  "email.manage",
74
78
  "email.calendar",
75
79
  "email.owner.new.subject",
@@ -79,6 +83,87 @@ export const BOOKING_WORD_KEYS = [
79
83
  "email.owner.body",
80
84
  "email.owner.open",
81
85
  "email.owner.footer",
86
+ "error.waitlist",
87
+ "error.not_full",
88
+ "error.already_waiting",
89
+ "error.too_small",
90
+ "error.unknown_session",
91
+ "session.title",
92
+ "session.empty",
93
+ "session.left",
94
+ "session.full",
95
+ "session.cancelled",
96
+ "session.started",
97
+ "session.book",
98
+ "session.wait",
99
+ "session.map",
100
+ "session.series",
101
+ "session.form.wait_title",
102
+ "session.form.wait_body",
103
+ "session.form.submit_wait",
104
+ "session.form.back",
105
+ "session.dates",
106
+ "wait.title",
107
+ "wait.waiting",
108
+ "wait.offered",
109
+ "wait.booked",
110
+ "wait.expired",
111
+ "wait.left",
112
+ "wait.accept",
113
+ "wait.decline",
114
+ "wait.leave",
115
+ "manage.move_session",
116
+ "sessions.title",
117
+ "sessions.empty",
118
+ "sessions.add",
119
+ "sessions.booked",
120
+ "sessions.waiting",
121
+ "sessions.min",
122
+ "sessions.show_only",
123
+ "sessions.edit",
124
+ "sessions.roll",
125
+ "sessions.cancel",
126
+ "sessions.reason",
127
+ "editor.title_new",
128
+ "editor.title_edit",
129
+ "editor.service",
130
+ "editor.date",
131
+ "editor.start",
132
+ "editor.end",
133
+ "editor.place",
134
+ "editor.map",
135
+ "editor.note",
136
+ "editor.capacity",
137
+ "editor.min",
138
+ "editor.bookable",
139
+ "editor.weeks",
140
+ "editor.term",
141
+ "editor.save",
142
+ "editor.back",
143
+ "roll.title",
144
+ "roll.empty",
145
+ "roll.came",
146
+ "roll.missed",
147
+ "roll.clear",
148
+ "roll.back",
149
+ "email.where",
150
+ "email.map",
151
+ "email.session_note",
152
+ "email.dates",
153
+ "email.reason",
154
+ "email.session_cancelled.subject",
155
+ "email.session_cancelled.body",
156
+ "email.date_cancelled.subject",
157
+ "email.date_cancelled.body",
158
+ "email.waiting.subject",
159
+ "email.waiting.body",
160
+ "email.waiting.link",
161
+ "email.offer.subject",
162
+ "email.offer.body",
163
+ "email.offer.link",
164
+ "email.owner.short.subject",
165
+ "email.owner.short.body",
166
+ "email.owner.short.open",
82
167
  ];
83
168
  /** The words in Australian English, as `ui.wbbooking.<key>` would hold them. */
84
169
  export const BOOKING_WORDS = {
@@ -86,6 +171,9 @@ export const BOOKING_WORDS = {
86
171
  "picker.empty": "No free times on these days.",
87
172
  "picker.more": "Later dates",
88
173
  "picker.left": "{left} places left",
174
+ "picker.choose": "Who with",
175
+ "picker.anyone": "Anyone available",
176
+ "with": "With {who}",
89
177
  "form.title": "Your details",
90
178
  "form.name": "Your name",
91
179
  "form.email": "Email",
@@ -148,6 +236,7 @@ export const BOOKING_WORDS = {
148
236
  "email.reminder.subject": "Reminder: {service}, {when}",
149
237
  "email.reminder.body": "A reminder of your booking for {service} with {business} on {when}.",
150
238
  "email.places": "Places: {places}",
239
+ "email.with": "With: {who}",
151
240
  "email.manage": "To change or cancel it: {url}",
152
241
  "email.calendar": "Open the attached calendar file to add it to your calendar.",
153
242
  "email.owner.new.subject": "New booking: {service}, {when}",
@@ -157,4 +246,85 @@ export const BOOKING_WORDS = {
157
246
  "email.owner.body": "{name} ({email}) booked {service} on {when}.",
158
247
  "email.owner.open": "Open your bookings: {url}",
159
248
  "email.owner.footer": "Sent by your booking page.",
249
+ "error.waitlist": "Other people are waiting for a place on this one. Please join the waiting list.",
250
+ "error.not_full": "There are places free: you can book now.",
251
+ "error.already_waiting": "You're already on the waiting list for this.",
252
+ "error.too_small": "More places than that are already booked.",
253
+ "error.unknown_session": "We couldn't find that date. It may have been cancelled.",
254
+ "session.title": "Choose a date",
255
+ "session.empty": "No dates are open for booking right now.",
256
+ "session.left": "{left} places left",
257
+ "session.full": "Full",
258
+ "session.cancelled": "Cancelled",
259
+ "session.started": "Started",
260
+ "session.book": "Book",
261
+ "session.wait": "Join the waiting list",
262
+ "session.map": "Map",
263
+ "session.series": "Book the whole term ({count} dates)",
264
+ "session.form.wait_title": "Join the waiting list",
265
+ "session.form.wait_body": "We'll email you if a place comes up, and hold it for you for a while.",
266
+ "session.form.submit_wait": "Join the waiting list",
267
+ "session.form.back": "Choose another date",
268
+ "session.dates": "{count} dates, the last on {last}",
269
+ "wait.title": "Waiting list",
270
+ "wait.waiting": "You're on the waiting list. We'll email you if a place comes up.",
271
+ "wait.offered": "A place is free and we're holding it for you until {until}.",
272
+ "wait.booked": "You took the place. You're booked.",
273
+ "wait.expired": "This place on the waiting list has ended.",
274
+ "wait.left": "You've left the waiting list.",
275
+ "wait.accept": "Take the place",
276
+ "wait.decline": "No thanks",
277
+ "wait.leave": "Leave the waiting list",
278
+ "manage.move_session": "Choose another date",
279
+ "sessions.title": "Dates",
280
+ "sessions.empty": "No dates yet.",
281
+ "sessions.add": "Add a date",
282
+ "sessions.booked": "{taken} of {capacity} places booked",
283
+ "sessions.waiting": "{waiting} waiting",
284
+ "sessions.min": "Needs {min} to run",
285
+ "sessions.show_only": "Shown only, not booked online",
286
+ "sessions.edit": "Change",
287
+ "sessions.roll": "Who's coming",
288
+ "sessions.cancel": "Cancel this date",
289
+ "sessions.reason": "Reason (emailed to everyone booked)",
290
+ "editor.title_new": "Add a date",
291
+ "editor.title_edit": "Change a date",
292
+ "editor.service": "What",
293
+ "editor.date": "Date",
294
+ "editor.start": "Starts",
295
+ "editor.end": "Ends",
296
+ "editor.place": "Where (optional)",
297
+ "editor.map": "Map link (optional)",
298
+ "editor.note": "Note for customers (optional)",
299
+ "editor.capacity": "Places",
300
+ "editor.min": "Fewest places to run (optional)",
301
+ "editor.bookable": "People book this online",
302
+ "editor.weeks": "Repeat weekly, how many weeks",
303
+ "editor.term": "Booked together as one term",
304
+ "editor.save": "Save",
305
+ "editor.back": "Back to dates",
306
+ "roll.title": "Who's coming",
307
+ "roll.empty": "Nobody is booked yet.",
308
+ "roll.came": "Came",
309
+ "roll.missed": "Didn't come",
310
+ "roll.clear": "Clear",
311
+ "roll.back": "Back to dates",
312
+ "email.where": "Where: {place}",
313
+ "email.map": "Map: {url}",
314
+ "email.session_note": "Note: {note}",
315
+ "email.dates": "{count} dates, the last on {last}.",
316
+ "email.reason": "Reason: {reason}",
317
+ "email.session_cancelled.subject": "Cancelled: {service}, {when}",
318
+ "email.session_cancelled.body": "Sorry, {business} has cancelled {service} on {when}. Your booking is cancelled.",
319
+ "email.date_cancelled.subject": "One date cancelled: {service}, {when}",
320
+ "email.date_cancelled.body": "Sorry, {business} has cancelled the {service} date on {when}. The rest of your booking stands.",
321
+ "email.waiting.subject": "On the waiting list: {service}, {when}",
322
+ "email.waiting.body": "You're on the waiting list for {service} with {business} on {when}. We'll email you if a place comes up.",
323
+ "email.waiting.link": "To leave the list: {url}",
324
+ "email.offer.subject": "A place is free: {service}, {when}",
325
+ "email.offer.body": "A place has come up for {service} with {business} on {when}. We're holding it for you until {until}.",
326
+ "email.offer.link": "To take it, or to say no thanks: {url}",
327
+ "email.owner.short.subject": "Below its minimum: {service}, {when}",
328
+ "email.owner.short.body": "{service} on {when} has {taken} places booked and needs {min} to run. Run it anyway, or cancel it so everyone booked is told.",
329
+ "email.owner.short.open": "Open your dates: {url}",
160
330
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mccaskie-labs/workbench-bookings",
3
- "version": "0.2.2",
4
- "description": "A bookings calendar for Workbench apps: customers pick a free time, book it with their name and email, and get a confirmation email with a calendar file, reminders before it starts and a private link to change or cancel. The owner gets an email for each booking, a list in the app and a calendar feed. Stored in the app's own database, with tick() from the app's cron for reminders. No AI.",
3
+ "version": "0.3.0",
4
+ "description": "A bookings calendar for Workbench apps: customers pick a free time, book it with their name and email, and get a confirmation email with a calendar file, reminders before it starts and a private link to change or cancel. The owner gets an email for each booking, a list in the app and a calendar feed. Several staff, rooms and things each get their own diary, and a booking takes one of each it needs. Stored in the app's own database, with tick() from the app's cron for reminders. No AI.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
7
7
  "repository": {