@semics-tech/emdash-events-pro 0.0.0-bootstrap.0 → 1.0.0-rc.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.
@@ -0,0 +1,317 @@
1
+ // Generated by scripts/generate.mjs from ../../../emdash-plugins/packages/events/emdash-plugin.jsonc + pro.json. Do not edit.
2
+ {
3
+ "$schema": "./node_modules/@emdash-cms/plugin-cli/schemas/emdash-plugin.schema.json",
4
+ "slug": "semics-events",
5
+ "publisher": "did:plc:mire6xkehfirmoj5pmpqgpvq",
6
+ "license": "LicenseRef-Semics-Pro",
7
+ "author": {
8
+ "name": "semics",
9
+ "url": "https://semics.co.uk"
10
+ },
11
+ "security": {
12
+ "email": "security@semics.co.uk"
13
+ },
14
+ "description": "Events bookings and ticketing for EmDash (Pro edition)",
15
+ "name": "semics Events",
16
+ "keywords": [
17
+ "events",
18
+ "tickets",
19
+ "bookings",
20
+ "rsvp",
21
+ "waitlist"
22
+ ],
23
+ "capabilities": [
24
+ "content:read",
25
+ "schema:read",
26
+ "email:send",
27
+ "network:request"
28
+ ],
29
+ "allowedHosts": [
30
+ "challenges.cloudflare.com",
31
+ "api.stripe.com"
32
+ ],
33
+ "storage": {
34
+ "event_configs": {
35
+ "indexes": [
36
+ "status",
37
+ "salesEnd"
38
+ ]
39
+ },
40
+ "occurrences": {
41
+ "indexes": [
42
+ [
43
+ "eventId",
44
+ "startsAt"
45
+ ],
46
+ "startsAt",
47
+ "status"
48
+ ]
49
+ },
50
+ "ticket_types": {
51
+ "indexes": [
52
+ "eventId"
53
+ ]
54
+ },
55
+ "bookings": {
56
+ "indexes": [
57
+ "eventId",
58
+ "status",
59
+ "email",
60
+ "createdAt",
61
+ [
62
+ "status",
63
+ "holdExpiresAt"
64
+ ],
65
+ [
66
+ "eventId",
67
+ "status"
68
+ ],
69
+ [
70
+ "ipHash",
71
+ "createdAt"
72
+ ]
73
+ ],
74
+ "uniqueIndexes": [
75
+ "ref"
76
+ ]
77
+ },
78
+ "payments": {
79
+ "indexes": [
80
+ "bookingId"
81
+ ]
82
+ },
83
+ "attendees": {
84
+ "indexes": [
85
+ "bookingId",
86
+ "eventId",
87
+ "email",
88
+ [
89
+ "eventId",
90
+ "checkedInAt"
91
+ ]
92
+ ],
93
+ "uniqueIndexes": [
94
+ "code"
95
+ ]
96
+ },
97
+ "waitlist": {
98
+ "indexes": [
99
+ [
100
+ "eventId",
101
+ "status"
102
+ ],
103
+ "offerExpiresAt",
104
+ "email"
105
+ ]
106
+ },
107
+ "promo_codes": {
108
+ "indexes": [
109
+ "eventId"
110
+ ],
111
+ "uniqueIndexes": [
112
+ "code"
113
+ ]
114
+ },
115
+ "outbox": {
116
+ "indexes": [
117
+ [
118
+ "status",
119
+ "nextAttemptAt"
120
+ ],
121
+ "to"
122
+ ]
123
+ },
124
+ "report_events": {
125
+ "indexes": []
126
+ },
127
+ "report_exports": {
128
+ "indexes": [
129
+ "expiresAt"
130
+ ]
131
+ },
132
+ "broadcasts": {
133
+ "indexes": [
134
+ "createdAt"
135
+ ]
136
+ }
137
+ },
138
+ "admin": {
139
+ "pages": [
140
+ {
141
+ "path": "/bookings",
142
+ "label": "Bookings",
143
+ "icon": "ticket"
144
+ },
145
+ {
146
+ "path": "/attendees",
147
+ "label": "Attendees",
148
+ "icon": "users"
149
+ },
150
+ {
151
+ "path": "/events",
152
+ "label": "Event editor",
153
+ "icon": "calendar"
154
+ },
155
+ {
156
+ "path": "/setup",
157
+ "label": "Setup check",
158
+ "icon": "gear"
159
+ },
160
+ {
161
+ "path": "/reports",
162
+ "label": "Sales reports",
163
+ "icon": "chart"
164
+ },
165
+ {
166
+ "path": "/promo-codes",
167
+ "label": "Promo codes",
168
+ "icon": "tag"
169
+ },
170
+ {
171
+ "path": "/broadcasts",
172
+ "label": "Email attendees",
173
+ "icon": "mail"
174
+ }
175
+ ],
176
+ "widgets": [
177
+ {
178
+ "id": "sales",
179
+ "title": "Ticket sales",
180
+ "size": "half"
181
+ }
182
+ ],
183
+ "editorPanels": [
184
+ {
185
+ "id": "tickets",
186
+ "title": "Tickets & booking",
187
+ "route": "editor/tickets",
188
+ "collections": [
189
+ "events"
190
+ ]
191
+ }
192
+ ],
193
+ "settingsSchema": {
194
+ "eventsCollection": {
195
+ "type": "string",
196
+ "label": "Events collection",
197
+ "description": "Slug of the collection that holds your events.",
198
+ "default": "events"
199
+ },
200
+ "fieldStartsAt": {
201
+ "type": "string",
202
+ "label": "Start field",
203
+ "description": "Field that holds the start date and time.",
204
+ "default": "starts_at"
205
+ },
206
+ "fieldEndsAt": {
207
+ "type": "string",
208
+ "label": "End field",
209
+ "description": "Field that holds the end date and time.",
210
+ "default": "ends_at"
211
+ },
212
+ "fieldTimezone": {
213
+ "type": "string",
214
+ "label": "Timezone field",
215
+ "description": "Field that holds the IANA timezone, for example Europe/London.",
216
+ "default": "timezone"
217
+ },
218
+ "fieldVenue": {
219
+ "type": "string",
220
+ "label": "Venue field",
221
+ "description": "Field that holds the venue name or address.",
222
+ "default": "venue"
223
+ },
224
+ "holdMinutesFree": {
225
+ "type": "number",
226
+ "label": "Hold time, free tickets (minutes)",
227
+ "description": "How long a seat is held while a buyer completes a free checkout.",
228
+ "default": 15,
229
+ "min": 5,
230
+ "max": 60
231
+ },
232
+ "holdMinutesPaid": {
233
+ "type": "number",
234
+ "label": "Hold time, paid tickets (minutes)",
235
+ "description": "How long a seat is held during a paid checkout. Card processors need at least 30 minutes.",
236
+ "default": 35,
237
+ "min": 30,
238
+ "max": 60
239
+ },
240
+ "holdCeilingMinutes": {
241
+ "type": "number",
242
+ "label": "Maximum total hold (minutes)",
243
+ "description": "Each checkout step extends the hold, but never beyond this many minutes from the first hold.",
244
+ "default": 60,
245
+ "min": 15,
246
+ "max": 120
247
+ },
248
+ "cancelCutoffHours": {
249
+ "type": "number",
250
+ "label": "Self-service cancel cutoff (hours before start)",
251
+ "description": "Buyers can cancel a confirmed booking up to this many hours before the event starts.",
252
+ "default": 24,
253
+ "min": 0,
254
+ "max": 720
255
+ },
256
+ "currency": {
257
+ "type": "string",
258
+ "label": "Default currency",
259
+ "description": "Three-letter ISO 4217 code, for example GBP.",
260
+ "default": "GBP"
261
+ },
262
+ "turnstileSiteKey": {
263
+ "type": "string",
264
+ "label": "Turnstile site key",
265
+ "description": "Public site key of your Cloudflare Turnstile widget."
266
+ },
267
+ "turnstileSecretKey": {
268
+ "type": "secret",
269
+ "label": "Turnstile secret key",
270
+ "description": "Secret key used to verify bot checks. Stored encrypted."
271
+ },
272
+ "esignPairing": {
273
+ "type": "secret",
274
+ "label": "E-sign pairing string",
275
+ "description": "Pairing string from the e-sign plugin, for events that require signed waivers. Stored encrypted."
276
+ },
277
+ "licenceKey": {
278
+ "type": "secret",
279
+ "label": "Pro licence key",
280
+ "description": "The semics1. key from your purchase email. Not needed on local or preview hosts. Stored encrypted."
281
+ },
282
+ "stripeSecretKey": {
283
+ "type": "secret",
284
+ "label": "Stripe secret key",
285
+ "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."
286
+ },
287
+ "stripeWebhookSecret": {
288
+ "type": "secret",
289
+ "label": "Stripe webhook signing secret",
290
+ "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."
291
+ },
292
+ "retentionDays": {
293
+ "type": "number",
294
+ "label": "Keep booking data (days)",
295
+ "description": "Personal data of past events is erased after this many days.",
296
+ "default": 365,
297
+ "min": 30
298
+ },
299
+ "emailSenderName": {
300
+ "type": "string",
301
+ "label": "Email sender name",
302
+ "description": "Name shown on booking emails. Defaults to the site name."
303
+ },
304
+ "reminderHours": {
305
+ "type": "string",
306
+ "label": "Reminder emails (hours before the start)",
307
+ "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.",
308
+ "default": "24"
309
+ }
310
+ }
311
+ },
312
+ "release": {
313
+ "requires": {
314
+ "env:emdash": ">=1.2.0 <2"
315
+ }
316
+ }
317
+ }
package/package.json CHANGED
@@ -1,11 +1,50 @@
1
1
  {
2
- "name": "@semics-tech/emdash-events-pro",
3
- "version": "0.0.0-bootstrap.0",
4
- "description": "Placeholder for @semics-tech/emdash-events-pro, published once so npm trusted publishing can be configured. No code.",
5
- "license": "SEE LICENSE IN LICENSE",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/semics-uk/emdash-plugins-pro",
9
- "directory": "packages/events-pro"
10
- }
11
- }
2
+ "name": "@semics-tech/emdash-events-pro",
3
+ "version": "1.0.0-rc.0",
4
+ "type": "module",
5
+ "description": "Events Pro: the semics-events core plus Pro features, same slug (proprietary)",
6
+ "license": "SEE LICENSE IN LICENSE",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/semics-uk/emdash-plugins-pro",
10
+ "directory": "packages/events-pro"
11
+ },
12
+ "main": "dist/index.mjs",
13
+ "exports": {
14
+ ".": {
15
+ "import": "./dist/index.mjs",
16
+ "types": "./dist/index.d.mts"
17
+ },
18
+ "./sandbox": "./dist/plugin.mjs"
19
+ },
20
+ "files": [
21
+ "dist",
22
+ "emdash-plugin.jsonc",
23
+ "LICENSE",
24
+ "!**/*.map"
25
+ ],
26
+ "peerDependencies": {
27
+ "emdash": ">=1.2.0 <2"
28
+ },
29
+ "devDependencies": {
30
+ "@emdash-cms/blocks": "1.2.0",
31
+ "@emdash-cms/plugin-cli": "0.13.3",
32
+ "@emdash-cms/plugin-test": "0.2.8",
33
+ "@semics-tech/emdash-events": "link:../../../emdash-plugins/packages/events",
34
+ "@semics-tech/shared": "link:../../../emdash-plugins/packages/shared",
35
+ "emdash": "1.2.0",
36
+ "jsqr": "1.4.0",
37
+ "typescript": "5.9.3",
38
+ "vitest": "4.1.12",
39
+ "@semics-tech/pro-kit": "0.0.0"
40
+ },
41
+ "scripts": {
42
+ "generate": "node ../../scripts/generate.mjs events-pro",
43
+ "validate": "pnpm run generate && node ../pro-kit/bin/validate-pro.ts",
44
+ "build": "pnpm run generate && emdash-plugin build",
45
+ "bundle": "pnpm run generate && emdash-plugin bundle",
46
+ "typecheck": "pnpm run generate && tsc --noEmit",
47
+ "test": "vitest run --reporter=dot",
48
+ "verify": "pnpm run validate && pnpm run typecheck && pnpm run test && pnpm run build"
49
+ }
50
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # @semics-tech/emdash-events-pro
2
-
3
- Placeholder; no code.