@semics-tech/emdash-events-pro 0.0.0-stage → 1.0.0-rc.1
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/LICENSE +98 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.mjs +717 -0
- package/dist/manifest.json +727 -0
- package/dist/plugin.d.mts +7 -0
- package/dist/plugin.mjs +15 -0
- package/emdash-plugin.jsonc +357 -0
- package/package.json +47 -3
- package/README.md +0 -3
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,717 @@
|
|
|
1
|
+
// Auto-generated by emdash-plugin build. Do not edit.
|
|
2
|
+
// Source: emdash-plugin.jsonc + package.json
|
|
3
|
+
//
|
|
4
|
+
// Default-exports a sandboxed plugin descriptor. Pass it directly into
|
|
5
|
+
// emdash's `plugins:` or `sandboxed:` array — no factory call needed.
|
|
6
|
+
|
|
7
|
+
/** @type {import("emdash").PluginDescriptor} */
|
|
8
|
+
const descriptor = Object.freeze({
|
|
9
|
+
"id": "semics-events",
|
|
10
|
+
"version": "1.0.0-rc.1",
|
|
11
|
+
"format": "standard",
|
|
12
|
+
"entrypoint": "@semics-tech/emdash-events-pro/sandbox",
|
|
13
|
+
"capabilities": [
|
|
14
|
+
"content:read",
|
|
15
|
+
"schema:read",
|
|
16
|
+
"network:request",
|
|
17
|
+
"email:send"
|
|
18
|
+
],
|
|
19
|
+
"allowedHosts": [
|
|
20
|
+
"challenges.cloudflare.com",
|
|
21
|
+
"api.stripe.com"
|
|
22
|
+
],
|
|
23
|
+
"storage": {
|
|
24
|
+
"event_configs": {
|
|
25
|
+
"indexes": [
|
|
26
|
+
"status",
|
|
27
|
+
"salesEnd"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"occurrences": {
|
|
31
|
+
"indexes": [
|
|
32
|
+
[
|
|
33
|
+
"eventId",
|
|
34
|
+
"startsAt"
|
|
35
|
+
],
|
|
36
|
+
"startsAt",
|
|
37
|
+
"status"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"ticket_types": {
|
|
41
|
+
"indexes": [
|
|
42
|
+
"eventId"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"bookings": {
|
|
46
|
+
"indexes": [
|
|
47
|
+
"eventId",
|
|
48
|
+
"status",
|
|
49
|
+
"email",
|
|
50
|
+
"createdAt",
|
|
51
|
+
[
|
|
52
|
+
"status",
|
|
53
|
+
"holdExpiresAt"
|
|
54
|
+
],
|
|
55
|
+
[
|
|
56
|
+
"eventId",
|
|
57
|
+
"status"
|
|
58
|
+
],
|
|
59
|
+
[
|
|
60
|
+
"ipHash",
|
|
61
|
+
"createdAt"
|
|
62
|
+
]
|
|
63
|
+
],
|
|
64
|
+
"uniqueIndexes": [
|
|
65
|
+
"ref"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"payments": {
|
|
69
|
+
"indexes": [
|
|
70
|
+
"bookingId"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"attendees": {
|
|
74
|
+
"indexes": [
|
|
75
|
+
"bookingId",
|
|
76
|
+
"eventId",
|
|
77
|
+
"email",
|
|
78
|
+
[
|
|
79
|
+
"eventId",
|
|
80
|
+
"checkedInAt"
|
|
81
|
+
]
|
|
82
|
+
],
|
|
83
|
+
"uniqueIndexes": [
|
|
84
|
+
"code"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"waitlist": {
|
|
88
|
+
"indexes": [
|
|
89
|
+
[
|
|
90
|
+
"eventId",
|
|
91
|
+
"status"
|
|
92
|
+
],
|
|
93
|
+
"offerExpiresAt",
|
|
94
|
+
"email"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"promo_codes": {
|
|
98
|
+
"indexes": [
|
|
99
|
+
"eventId"
|
|
100
|
+
],
|
|
101
|
+
"uniqueIndexes": [
|
|
102
|
+
"code"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"outbox": {
|
|
106
|
+
"indexes": [
|
|
107
|
+
[
|
|
108
|
+
"status",
|
|
109
|
+
"nextAttemptAt"
|
|
110
|
+
],
|
|
111
|
+
"to"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
"report_events": {
|
|
115
|
+
"indexes": []
|
|
116
|
+
},
|
|
117
|
+
"report_exports": {
|
|
118
|
+
"indexes": [
|
|
119
|
+
"expiresAt"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"broadcasts": {
|
|
123
|
+
"indexes": [
|
|
124
|
+
"createdAt"
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"hooks": [
|
|
129
|
+
"plugin:activate",
|
|
130
|
+
"content:afterSave",
|
|
131
|
+
"content:afterPublish",
|
|
132
|
+
"content:afterUnpublish",
|
|
133
|
+
"content:beforeDelete",
|
|
134
|
+
"content:afterDelete",
|
|
135
|
+
"page:metadata",
|
|
136
|
+
"cron"
|
|
137
|
+
],
|
|
138
|
+
"routes": [
|
|
139
|
+
"config/get",
|
|
140
|
+
"config/save",
|
|
141
|
+
"admin",
|
|
142
|
+
{
|
|
143
|
+
"name": "attendees/export",
|
|
144
|
+
"methods": [
|
|
145
|
+
"GET"
|
|
146
|
+
],
|
|
147
|
+
"response": "raw"
|
|
148
|
+
},
|
|
149
|
+
"editor/tickets",
|
|
150
|
+
{
|
|
151
|
+
"name": "public/events",
|
|
152
|
+
"methods": [
|
|
153
|
+
"GET"
|
|
154
|
+
],
|
|
155
|
+
"public": true,
|
|
156
|
+
"cacheControl": "public, max-age=60, stale-while-revalidate=300"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "public/event",
|
|
160
|
+
"methods": [
|
|
161
|
+
"GET"
|
|
162
|
+
],
|
|
163
|
+
"public": true
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "public/checkout/reserve",
|
|
167
|
+
"methods": [
|
|
168
|
+
"POST"
|
|
169
|
+
],
|
|
170
|
+
"public": true
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "public/checkout/continue",
|
|
174
|
+
"methods": [
|
|
175
|
+
"POST"
|
|
176
|
+
],
|
|
177
|
+
"public": true
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "public/booking",
|
|
181
|
+
"methods": [
|
|
182
|
+
"POST"
|
|
183
|
+
],
|
|
184
|
+
"public": true
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "public/booking/cancel",
|
|
188
|
+
"methods": [
|
|
189
|
+
"POST"
|
|
190
|
+
],
|
|
191
|
+
"public": true
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "public/booking/redeem",
|
|
195
|
+
"methods": [
|
|
196
|
+
"POST"
|
|
197
|
+
],
|
|
198
|
+
"public": true
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "public/booking/ics",
|
|
202
|
+
"methods": [
|
|
203
|
+
"GET"
|
|
204
|
+
],
|
|
205
|
+
"response": "raw",
|
|
206
|
+
"public": true
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "public/event/ics",
|
|
210
|
+
"methods": [
|
|
211
|
+
"GET"
|
|
212
|
+
],
|
|
213
|
+
"response": "raw",
|
|
214
|
+
"public": true,
|
|
215
|
+
"cacheControl": "public, max-age=300"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "public/waitlist/join",
|
|
219
|
+
"methods": [
|
|
220
|
+
"POST"
|
|
221
|
+
],
|
|
222
|
+
"public": true
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "public/waitlist/claim",
|
|
226
|
+
"methods": [
|
|
227
|
+
"POST"
|
|
228
|
+
],
|
|
229
|
+
"public": true
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "webhooks/stripe",
|
|
233
|
+
"methods": [
|
|
234
|
+
"POST"
|
|
235
|
+
],
|
|
236
|
+
"request": {
|
|
237
|
+
"body": "text",
|
|
238
|
+
"headers": [
|
|
239
|
+
"stripe-signature"
|
|
240
|
+
]
|
|
241
|
+
},
|
|
242
|
+
"response": "raw",
|
|
243
|
+
"public": true
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "signatures/receipt",
|
|
247
|
+
"methods": [
|
|
248
|
+
"POST"
|
|
249
|
+
],
|
|
250
|
+
"public": true
|
|
251
|
+
},
|
|
252
|
+
"pro/licence",
|
|
253
|
+
{
|
|
254
|
+
"name": "esign/catalog",
|
|
255
|
+
"methods": [
|
|
256
|
+
"POST"
|
|
257
|
+
],
|
|
258
|
+
"public": true
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"name": "checkin/code",
|
|
262
|
+
"methods": [
|
|
263
|
+
"POST"
|
|
264
|
+
]
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "public/mail/opt-out",
|
|
268
|
+
"methods": [
|
|
269
|
+
"POST"
|
|
270
|
+
],
|
|
271
|
+
"public": true
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "public/booking/attendees",
|
|
275
|
+
"methods": [
|
|
276
|
+
"POST"
|
|
277
|
+
],
|
|
278
|
+
"public": true
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "public/booking/attendees/sign",
|
|
282
|
+
"methods": [
|
|
283
|
+
"POST"
|
|
284
|
+
],
|
|
285
|
+
"public": true
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"name": "public/booking/attendees/resend",
|
|
289
|
+
"methods": [
|
|
290
|
+
"POST"
|
|
291
|
+
],
|
|
292
|
+
"public": true
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"name": "pro/reports/export",
|
|
296
|
+
"methods": [
|
|
297
|
+
"GET"
|
|
298
|
+
],
|
|
299
|
+
"response": "raw"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "public/promo/check",
|
|
303
|
+
"methods": [
|
|
304
|
+
"POST"
|
|
305
|
+
],
|
|
306
|
+
"public": true
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"name": "pro/mcp/events",
|
|
310
|
+
"permission": "plugins:manage"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"name": "pro/mcp/availability",
|
|
314
|
+
"permission": "plugins:manage"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"name": "pro/mcp/booking",
|
|
318
|
+
"permission": "plugins:manage"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"name": "pro/mcp/attendees",
|
|
322
|
+
"permission": "plugins:manage"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"name": "pro/mcp/check-in",
|
|
326
|
+
"permission": "plugins:manage"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"name": "pro/mcp/cancel",
|
|
330
|
+
"permission": "plugins:manage"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"name": "pro/mcp/refund",
|
|
334
|
+
"permission": "plugins:manage"
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"mcp": {
|
|
338
|
+
"tools": [
|
|
339
|
+
{
|
|
340
|
+
"name": "listEvents",
|
|
341
|
+
"description": "List the events open for booking or listed: id, title, status, next start, venue, currency, lowest price and seats left.",
|
|
342
|
+
"route": "pro/mcp/events",
|
|
343
|
+
"permission": "plugins:manage",
|
|
344
|
+
"destructive": false,
|
|
345
|
+
"inputSchema": {
|
|
346
|
+
"type": "object",
|
|
347
|
+
"properties": {},
|
|
348
|
+
"additionalProperties": false
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "getAvailability",
|
|
353
|
+
"description": "One event's ticket types (price, seats left, order limits) and, for a recurring event, its dates.",
|
|
354
|
+
"route": "pro/mcp/availability",
|
|
355
|
+
"permission": "plugins:manage",
|
|
356
|
+
"destructive": false,
|
|
357
|
+
"inputSchema": {
|
|
358
|
+
"type": "object",
|
|
359
|
+
"properties": {
|
|
360
|
+
"eventId": {
|
|
361
|
+
"type": "string",
|
|
362
|
+
"minLength": 1,
|
|
363
|
+
"maxLength": 200,
|
|
364
|
+
"description": "The event id (from listEvents)."
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
"required": [
|
|
368
|
+
"eventId"
|
|
369
|
+
],
|
|
370
|
+
"additionalProperties": false
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "findBooking",
|
|
375
|
+
"description": "Find a booking by its reference (status, buyer, tickets, totals, attendees, whether it can be cancelled), or list a buyer's bookings by email.",
|
|
376
|
+
"route": "pro/mcp/booking",
|
|
377
|
+
"permission": "plugins:manage",
|
|
378
|
+
"destructive": false,
|
|
379
|
+
"inputSchema": {
|
|
380
|
+
"type": "object",
|
|
381
|
+
"properties": {
|
|
382
|
+
"ref": {
|
|
383
|
+
"type": "string",
|
|
384
|
+
"minLength": 1,
|
|
385
|
+
"maxLength": 200,
|
|
386
|
+
"description": "The booking reference, e.g. 7KX2M9QD4T."
|
|
387
|
+
},
|
|
388
|
+
"email": {
|
|
389
|
+
"type": "string",
|
|
390
|
+
"minLength": 1,
|
|
391
|
+
"maxLength": 200,
|
|
392
|
+
"description": "The buyer's email."
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
"additionalProperties": false
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"name": "listAttendees",
|
|
400
|
+
"description": "An event's attendees, 50 at a time: id, name, email, ticket type, status, check-in time and booking. Pass `cursor` for the next page.",
|
|
401
|
+
"route": "pro/mcp/attendees",
|
|
402
|
+
"permission": "plugins:manage",
|
|
403
|
+
"destructive": false,
|
|
404
|
+
"inputSchema": {
|
|
405
|
+
"type": "object",
|
|
406
|
+
"properties": {
|
|
407
|
+
"eventId": {
|
|
408
|
+
"type": "string",
|
|
409
|
+
"minLength": 1,
|
|
410
|
+
"maxLength": 200,
|
|
411
|
+
"description": "The event id (from listEvents)."
|
|
412
|
+
},
|
|
413
|
+
"cursor": {
|
|
414
|
+
"type": "string",
|
|
415
|
+
"minLength": 1,
|
|
416
|
+
"maxLength": 200,
|
|
417
|
+
"description": "From the previous page's nextCursor."
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"required": [
|
|
421
|
+
"eventId"
|
|
422
|
+
],
|
|
423
|
+
"additionalProperties": false
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"name": "checkInAttendee",
|
|
428
|
+
"description": "Check an attendee in by id (from listAttendees) or ticket code. Refused when the booking is not confirmed or a waiver is pending; a second check-in is told the first time.",
|
|
429
|
+
"route": "pro/mcp/check-in",
|
|
430
|
+
"permission": "plugins:manage",
|
|
431
|
+
"destructive": false,
|
|
432
|
+
"inputSchema": {
|
|
433
|
+
"type": "object",
|
|
434
|
+
"properties": {
|
|
435
|
+
"attendeeId": {
|
|
436
|
+
"type": "string",
|
|
437
|
+
"minLength": 1,
|
|
438
|
+
"maxLength": 200,
|
|
439
|
+
"description": "The attendee id."
|
|
440
|
+
},
|
|
441
|
+
"code": {
|
|
442
|
+
"type": "string",
|
|
443
|
+
"minLength": 1,
|
|
444
|
+
"maxLength": 200,
|
|
445
|
+
"description": "The ticket's check-in code."
|
|
446
|
+
},
|
|
447
|
+
"eventId": {
|
|
448
|
+
"type": "string",
|
|
449
|
+
"minLength": 1,
|
|
450
|
+
"maxLength": 200,
|
|
451
|
+
"description": "The event id (from listEvents)."
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
"additionalProperties": false
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"name": "cancelBooking",
|
|
459
|
+
"description": "Cancel a booking until its event starts: its seats are released and the buyer is emailed. A paid booking is refunded in full through Stripe first. This cannot be undone.",
|
|
460
|
+
"route": "pro/mcp/cancel",
|
|
461
|
+
"permission": "plugins:manage",
|
|
462
|
+
"destructive": true,
|
|
463
|
+
"inputSchema": {
|
|
464
|
+
"type": "object",
|
|
465
|
+
"properties": {
|
|
466
|
+
"ref": {
|
|
467
|
+
"type": "string",
|
|
468
|
+
"minLength": 1,
|
|
469
|
+
"maxLength": 200,
|
|
470
|
+
"description": "The booking reference, e.g. 7KX2M9QD4T."
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
"required": [
|
|
474
|
+
"ref"
|
|
475
|
+
],
|
|
476
|
+
"additionalProperties": false
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"name": "refundBooking",
|
|
481
|
+
"description": "Refund a confirmed paid booking in full through Stripe, at any time: it is cancelled, its seats released and the buyer emailed. This cannot be undone.",
|
|
482
|
+
"route": "pro/mcp/refund",
|
|
483
|
+
"permission": "plugins:manage",
|
|
484
|
+
"destructive": true,
|
|
485
|
+
"inputSchema": {
|
|
486
|
+
"type": "object",
|
|
487
|
+
"properties": {
|
|
488
|
+
"ref": {
|
|
489
|
+
"type": "string",
|
|
490
|
+
"minLength": 1,
|
|
491
|
+
"maxLength": 200,
|
|
492
|
+
"description": "The booking reference, e.g. 7KX2M9QD4T."
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
"required": [
|
|
496
|
+
"ref"
|
|
497
|
+
],
|
|
498
|
+
"additionalProperties": false
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
]
|
|
502
|
+
},
|
|
503
|
+
"adminPages": [
|
|
504
|
+
{
|
|
505
|
+
"path": "/bookings",
|
|
506
|
+
"label": "Bookings",
|
|
507
|
+
"icon": "ticket"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"path": "/attendees",
|
|
511
|
+
"label": "Attendees",
|
|
512
|
+
"icon": "users"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"path": "/events",
|
|
516
|
+
"label": "Event editor",
|
|
517
|
+
"icon": "calendar"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"path": "/setup",
|
|
521
|
+
"label": "Setup check",
|
|
522
|
+
"icon": "gear"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"path": "/reports",
|
|
526
|
+
"label": "Sales reports",
|
|
527
|
+
"icon": "chart"
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"path": "/promo-codes",
|
|
531
|
+
"label": "Promo codes",
|
|
532
|
+
"icon": "tag"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"path": "/broadcasts",
|
|
536
|
+
"label": "Email attendees",
|
|
537
|
+
"icon": "mail"
|
|
538
|
+
}
|
|
539
|
+
],
|
|
540
|
+
"adminWidgets": [
|
|
541
|
+
{
|
|
542
|
+
"id": "sales",
|
|
543
|
+
"title": "Ticket sales",
|
|
544
|
+
"size": "half"
|
|
545
|
+
}
|
|
546
|
+
],
|
|
547
|
+
"settingsSchema": {
|
|
548
|
+
"eventsCollection": {
|
|
549
|
+
"label": "Events collection",
|
|
550
|
+
"description": "Slug of the collection that holds your events.",
|
|
551
|
+
"type": "string",
|
|
552
|
+
"default": "events"
|
|
553
|
+
},
|
|
554
|
+
"fieldStartsAt": {
|
|
555
|
+
"label": "Start field",
|
|
556
|
+
"description": "Field that holds the start date and time.",
|
|
557
|
+
"type": "string",
|
|
558
|
+
"default": "starts_at"
|
|
559
|
+
},
|
|
560
|
+
"fieldEndsAt": {
|
|
561
|
+
"label": "End field",
|
|
562
|
+
"description": "Field that holds the end date and time.",
|
|
563
|
+
"type": "string",
|
|
564
|
+
"default": "ends_at"
|
|
565
|
+
},
|
|
566
|
+
"fieldTimezone": {
|
|
567
|
+
"label": "Timezone field",
|
|
568
|
+
"description": "Field that holds the IANA timezone, for example Europe/London.",
|
|
569
|
+
"type": "string",
|
|
570
|
+
"default": "timezone"
|
|
571
|
+
},
|
|
572
|
+
"fieldVenue": {
|
|
573
|
+
"label": "Venue field",
|
|
574
|
+
"description": "Field that holds the venue name or address.",
|
|
575
|
+
"type": "string",
|
|
576
|
+
"default": "venue"
|
|
577
|
+
},
|
|
578
|
+
"holdMinutesFree": {
|
|
579
|
+
"label": "Hold time, free tickets (minutes)",
|
|
580
|
+
"description": "How long a seat is held while a buyer completes a free checkout.",
|
|
581
|
+
"type": "number",
|
|
582
|
+
"default": 15,
|
|
583
|
+
"min": 5,
|
|
584
|
+
"max": 60
|
|
585
|
+
},
|
|
586
|
+
"holdMinutesPaid": {
|
|
587
|
+
"label": "Hold time, paid tickets (minutes)",
|
|
588
|
+
"description": "How long a seat is held during a paid checkout. Card processors need at least 30 minutes.",
|
|
589
|
+
"type": "number",
|
|
590
|
+
"default": 35,
|
|
591
|
+
"min": 30,
|
|
592
|
+
"max": 60
|
|
593
|
+
},
|
|
594
|
+
"holdCeilingMinutes": {
|
|
595
|
+
"label": "Maximum total hold (minutes)",
|
|
596
|
+
"description": "Each checkout step extends the hold, but never beyond this many minutes from the first hold.",
|
|
597
|
+
"type": "number",
|
|
598
|
+
"default": 60,
|
|
599
|
+
"min": 15,
|
|
600
|
+
"max": 120
|
|
601
|
+
},
|
|
602
|
+
"cancelCutoffHours": {
|
|
603
|
+
"label": "Self-service cancel cutoff (hours before start)",
|
|
604
|
+
"description": "Buyers can cancel a confirmed booking up to this many hours before the event starts.",
|
|
605
|
+
"type": "number",
|
|
606
|
+
"default": 24,
|
|
607
|
+
"min": 0,
|
|
608
|
+
"max": 720
|
|
609
|
+
},
|
|
610
|
+
"currency": {
|
|
611
|
+
"label": "Default currency",
|
|
612
|
+
"description": "Three-letter ISO 4217 code, for example GBP.",
|
|
613
|
+
"type": "string",
|
|
614
|
+
"default": "GBP"
|
|
615
|
+
},
|
|
616
|
+
"turnstileSiteKey": {
|
|
617
|
+
"label": "Turnstile site key",
|
|
618
|
+
"description": "Public site key of your Cloudflare Turnstile widget.",
|
|
619
|
+
"type": "string"
|
|
620
|
+
},
|
|
621
|
+
"turnstileSecretKey": {
|
|
622
|
+
"label": "Turnstile secret key",
|
|
623
|
+
"description": "Secret key used to verify bot checks. Stored encrypted.",
|
|
624
|
+
"type": "secret"
|
|
625
|
+
},
|
|
626
|
+
"esignPairing": {
|
|
627
|
+
"label": "E-sign pairing string",
|
|
628
|
+
"description": "Pairing string from the e-sign plugin, for events that require signed waivers. Stored encrypted.",
|
|
629
|
+
"type": "secret"
|
|
630
|
+
},
|
|
631
|
+
"licenceKey": {
|
|
632
|
+
"label": "Pro licence key",
|
|
633
|
+
"description": "The semics1. key from your purchase email. Not needed on local or preview hosts. Stored encrypted.",
|
|
634
|
+
"type": "secret"
|
|
635
|
+
},
|
|
636
|
+
"stripeSecretKey": {
|
|
637
|
+
"label": "Stripe secret key",
|
|
638
|
+
"description": "Your Stripe secret key (sk_live_ or sk_test_, or a restricted key that can write Checkout Sessions). Needed to sell paid tickets. Stored encrypted.",
|
|
639
|
+
"type": "secret"
|
|
640
|
+
},
|
|
641
|
+
"stripeWebhookSecret": {
|
|
642
|
+
"label": "Stripe webhook signing secret",
|
|
643
|
+
"description": "The whsec_ secret of your Stripe webhook endpoint for /_emdash/api/plugins/semics-events/webhooks/stripe (events: checkout.session.completed, checkout.session.expired, checkout.session.async_payment_succeeded, checkout.session.async_payment_failed). Paid bookings are confirmed only through it. Stored encrypted.",
|
|
644
|
+
"type": "secret"
|
|
645
|
+
},
|
|
646
|
+
"retentionDays": {
|
|
647
|
+
"label": "Keep booking data (days)",
|
|
648
|
+
"description": "Personal data of past events is erased after this many days.",
|
|
649
|
+
"type": "number",
|
|
650
|
+
"default": 365,
|
|
651
|
+
"min": 30
|
|
652
|
+
},
|
|
653
|
+
"adminNotifyEmails": {
|
|
654
|
+
"label": "Admin notification emails",
|
|
655
|
+
"description": "Up to 5 addresses, separated by commas, told about booking requests (and bookings, if chosen below).",
|
|
656
|
+
"type": "string"
|
|
657
|
+
},
|
|
658
|
+
"notifyAdminOn": {
|
|
659
|
+
"label": "Notify admins about",
|
|
660
|
+
"type": "select",
|
|
661
|
+
"options": [
|
|
662
|
+
{
|
|
663
|
+
"value": "requests",
|
|
664
|
+
"label": "Booking requests that need approval"
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"value": "all",
|
|
668
|
+
"label": "All bookings"
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
"value": "off",
|
|
672
|
+
"label": "Nothing"
|
|
673
|
+
}
|
|
674
|
+
],
|
|
675
|
+
"default": "requests"
|
|
676
|
+
},
|
|
677
|
+
"emailSenderName": {
|
|
678
|
+
"label": "Email sender name",
|
|
679
|
+
"description": "Name shown on booking emails. Defaults to the site name.",
|
|
680
|
+
"type": "string"
|
|
681
|
+
},
|
|
682
|
+
"reminderHours": {
|
|
683
|
+
"label": "Reminder emails (hours before the start)",
|
|
684
|
+
"description": "Confirmed bookings get a reminder this many hours before their event or date. Up to three, comma-separated, e.g. 168, 24. Leave empty to send none.",
|
|
685
|
+
"type": "string",
|
|
686
|
+
"default": "24"
|
|
687
|
+
},
|
|
688
|
+
"authoriseWithinDays": {
|
|
689
|
+
"label": "Hold the card for approval (days)",
|
|
690
|
+
"description": "For events that need your approval: when your decision is due within this many days, the buyer's card is authorised at checkout and charged when you approve. Later decisions save the card and charge it when you approve. 0 always saves the card; at most 6 (card authorisations last about 7 days).",
|
|
691
|
+
"type": "number",
|
|
692
|
+
"default": 6,
|
|
693
|
+
"min": 0,
|
|
694
|
+
"max": 6
|
|
695
|
+
},
|
|
696
|
+
"attendeeEditCutoffHours": {
|
|
697
|
+
"label": "Attendee changes cutoff (hours before start)",
|
|
698
|
+
"description": "On a booking with a waiver, buyers can correct the names and emails of attendees who have not signed until this many hours before the event or date starts.",
|
|
699
|
+
"type": "number",
|
|
700
|
+
"default": 24,
|
|
701
|
+
"min": 0,
|
|
702
|
+
"max": 720
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
"editorPanels": [
|
|
706
|
+
{
|
|
707
|
+
"id": "tickets",
|
|
708
|
+
"title": "Tickets & booking",
|
|
709
|
+
"route": "editor/tickets",
|
|
710
|
+
"collections": [
|
|
711
|
+
"events"
|
|
712
|
+
]
|
|
713
|
+
}
|
|
714
|
+
]
|
|
715
|
+
});
|
|
716
|
+
|
|
717
|
+
export default descriptor;
|