@composable-os/pack-ticketing 0.0.0-stage → 0.1.0-beta.11
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 +109 -0
- package/dist/automations.d.ts +72 -0
- package/dist/automations.js +347 -0
- package/dist/blocks/ticketing-checkout/ticket-picker.d.ts +25 -0
- package/dist/blocks/ticketing-checkout/ticket-picker.js +77 -0
- package/dist/blocks/ticketing-events/event-list.d.ts +15 -0
- package/dist/blocks/ticketing-events/event-list.js +26 -0
- package/dist/blocks/ticketing-my-tickets/my-tickets.d.ts +9 -0
- package/dist/blocks/ticketing-my-tickets/my-tickets.js +13 -0
- package/dist/blocks/ticketing-native-my-tickets/my-tickets-screen.d.ts +10 -0
- package/dist/blocks/ticketing-native-my-tickets/my-tickets-screen.js +17 -0
- package/dist/blocks/ticketing-native-scanner/door-scanner-screen.d.ts +18 -0
- package/dist/blocks/ticketing-native-scanner/door-scanner-screen.js +42 -0
- package/dist/blocks/ticketing-native-ticket/ticket-screen.d.ts +21 -0
- package/dist/blocks/ticketing-native-ticket/ticket-screen.js +48 -0
- package/dist/blocks/ticketing-order/order-confirmation.d.ts +12 -0
- package/dist/blocks/ticketing-order/order-confirmation.js +11 -0
- package/dist/client/index.d.ts +804 -0
- package/dist/client/index.js +288 -0
- package/dist/dashboards.d.ts +5 -0
- package/dist/dashboards.js +91 -0
- package/dist/index.d.ts +656 -0
- package/dist/index.js +341 -0
- package/dist/tools.d.ts +184 -0
- package/dist/tools.js +591 -0
- package/package.json +31 -4
- package/README.md +0 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,656 @@
|
|
|
1
|
+
declare const _default: import("@composable-os/sdk").Extension<{
|
|
2
|
+
readonly id: "ticketing";
|
|
3
|
+
readonly version: "0.1.0";
|
|
4
|
+
readonly contractVersion: 1;
|
|
5
|
+
readonly label: "Ticketing";
|
|
6
|
+
readonly description: string;
|
|
7
|
+
readonly permissions: {
|
|
8
|
+
readonly read: ["person"];
|
|
9
|
+
readonly operations: ["order.start", "order.get", "query.sql", "public.list", "capacity.get", "extensionSettings.list", "order.settings.get"];
|
|
10
|
+
readonly modules: ["ops", "email-send"];
|
|
11
|
+
};
|
|
12
|
+
readonly objects: {
|
|
13
|
+
readonly event: {
|
|
14
|
+
readonly label: "Event";
|
|
15
|
+
readonly plural: "Events";
|
|
16
|
+
readonly icon: "calendar";
|
|
17
|
+
readonly titleField: "name";
|
|
18
|
+
readonly description: "Something tickets are sold for: a camp, a workshop, a night.";
|
|
19
|
+
readonly navigation: "main";
|
|
20
|
+
readonly navigationOrder: 10;
|
|
21
|
+
readonly fields: {
|
|
22
|
+
readonly name: {
|
|
23
|
+
readonly type: "text";
|
|
24
|
+
readonly label: "Name";
|
|
25
|
+
readonly required: true;
|
|
26
|
+
};
|
|
27
|
+
readonly startsAt: {
|
|
28
|
+
readonly type: "datetime";
|
|
29
|
+
readonly label: "Starts";
|
|
30
|
+
};
|
|
31
|
+
readonly endsAt: {
|
|
32
|
+
readonly type: "datetime";
|
|
33
|
+
readonly label: "Ends";
|
|
34
|
+
};
|
|
35
|
+
readonly timezone: {
|
|
36
|
+
readonly type: "timezone";
|
|
37
|
+
readonly label: "Time zone";
|
|
38
|
+
readonly required: true;
|
|
39
|
+
readonly description: string;
|
|
40
|
+
};
|
|
41
|
+
readonly venue: {
|
|
42
|
+
readonly type: "text";
|
|
43
|
+
readonly label: "Venue";
|
|
44
|
+
};
|
|
45
|
+
readonly taxCountry: {
|
|
46
|
+
readonly type: "text";
|
|
47
|
+
readonly label: "Country (for tax)";
|
|
48
|
+
readonly description: string;
|
|
49
|
+
};
|
|
50
|
+
readonly taxRegion: {
|
|
51
|
+
readonly type: "text";
|
|
52
|
+
readonly label: "State or region (for tax)";
|
|
53
|
+
};
|
|
54
|
+
readonly taxPostcode: {
|
|
55
|
+
readonly type: "text";
|
|
56
|
+
readonly label: "Postcode (for tax)";
|
|
57
|
+
};
|
|
58
|
+
readonly taxCity: {
|
|
59
|
+
readonly type: "text";
|
|
60
|
+
readonly label: "City (for tax)";
|
|
61
|
+
};
|
|
62
|
+
readonly taxAddress: {
|
|
63
|
+
readonly type: "text";
|
|
64
|
+
readonly label: "Street address (for tax)";
|
|
65
|
+
};
|
|
66
|
+
readonly description: {
|
|
67
|
+
readonly type: "longText";
|
|
68
|
+
readonly label: "Description";
|
|
69
|
+
};
|
|
70
|
+
readonly image: {
|
|
71
|
+
readonly type: "url";
|
|
72
|
+
readonly label: "Image";
|
|
73
|
+
};
|
|
74
|
+
readonly status: {
|
|
75
|
+
readonly type: "select";
|
|
76
|
+
readonly label: "Status";
|
|
77
|
+
readonly track: "timeline";
|
|
78
|
+
readonly options: readonly [{
|
|
79
|
+
readonly value: "draft";
|
|
80
|
+
readonly label: "Draft";
|
|
81
|
+
}, {
|
|
82
|
+
readonly value: "on_sale";
|
|
83
|
+
readonly label: "On sale";
|
|
84
|
+
}, {
|
|
85
|
+
readonly value: "ended";
|
|
86
|
+
readonly label: "Ended";
|
|
87
|
+
}, {
|
|
88
|
+
readonly value: "cancelled";
|
|
89
|
+
readonly label: "Cancelled";
|
|
90
|
+
}];
|
|
91
|
+
};
|
|
92
|
+
readonly places: {
|
|
93
|
+
readonly type: "number";
|
|
94
|
+
readonly label: "Places";
|
|
95
|
+
readonly description: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
readonly states: {
|
|
99
|
+
readonly field: "status";
|
|
100
|
+
readonly initial: "draft";
|
|
101
|
+
readonly moves: readonly [{
|
|
102
|
+
readonly from: "draft";
|
|
103
|
+
readonly to: "on_sale";
|
|
104
|
+
readonly by: readonly ["staff"];
|
|
105
|
+
}, {
|
|
106
|
+
readonly from: "on_sale";
|
|
107
|
+
readonly to: "draft";
|
|
108
|
+
readonly by: readonly ["staff"];
|
|
109
|
+
}, {
|
|
110
|
+
readonly from: "on_sale";
|
|
111
|
+
readonly to: "ended";
|
|
112
|
+
readonly by: readonly ["staff"];
|
|
113
|
+
readonly final: true;
|
|
114
|
+
}, {
|
|
115
|
+
readonly from: readonly ["draft", "on_sale"];
|
|
116
|
+
readonly to: "cancelled";
|
|
117
|
+
readonly by: readonly ["staff"];
|
|
118
|
+
readonly final: true;
|
|
119
|
+
}];
|
|
120
|
+
};
|
|
121
|
+
readonly capacity: {
|
|
122
|
+
readonly places: "places";
|
|
123
|
+
};
|
|
124
|
+
readonly public: {
|
|
125
|
+
readonly read: readonly ["name", "startsAt", "endsAt", "timezone", "venue", "description", "image", "status"];
|
|
126
|
+
readonly when: {
|
|
127
|
+
readonly field: "status";
|
|
128
|
+
readonly in: readonly ["on_sale"];
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
readonly customerVia: {
|
|
132
|
+
readonly from: "ticketing.ticket";
|
|
133
|
+
readonly field: "event";
|
|
134
|
+
readonly read: readonly ["name", "startsAt", "endsAt", "timezone", "venue", "status"];
|
|
135
|
+
};
|
|
136
|
+
readonly indexes: readonly [readonly ["status", "startsAt"], readonly ["startsAt"]];
|
|
137
|
+
};
|
|
138
|
+
readonly tickettype: {
|
|
139
|
+
readonly label: "Ticket type";
|
|
140
|
+
readonly plural: "Ticket types";
|
|
141
|
+
readonly icon: "ticket";
|
|
142
|
+
readonly titleField: "name";
|
|
143
|
+
readonly description: string;
|
|
144
|
+
readonly navigation: "settings";
|
|
145
|
+
readonly fields: {
|
|
146
|
+
readonly event: {
|
|
147
|
+
readonly type: "relation";
|
|
148
|
+
readonly label: "Event";
|
|
149
|
+
readonly to: "ticketing.event";
|
|
150
|
+
readonly required: true;
|
|
151
|
+
};
|
|
152
|
+
readonly name: {
|
|
153
|
+
readonly type: "text";
|
|
154
|
+
readonly label: "Name";
|
|
155
|
+
readonly required: true;
|
|
156
|
+
};
|
|
157
|
+
readonly description: {
|
|
158
|
+
readonly type: "longText";
|
|
159
|
+
readonly label: "Description";
|
|
160
|
+
};
|
|
161
|
+
readonly price: {
|
|
162
|
+
readonly type: "currency";
|
|
163
|
+
readonly label: "Price";
|
|
164
|
+
readonly required: true;
|
|
165
|
+
};
|
|
166
|
+
readonly places: {
|
|
167
|
+
readonly type: "number";
|
|
168
|
+
readonly label: "Places";
|
|
169
|
+
readonly description: "How many of this ticket type there are. Empty: only the event's limit.";
|
|
170
|
+
};
|
|
171
|
+
readonly onSaleFrom: {
|
|
172
|
+
readonly type: "datetime";
|
|
173
|
+
readonly label: "On sale from";
|
|
174
|
+
};
|
|
175
|
+
readonly onSaleUntil: {
|
|
176
|
+
readonly type: "datetime";
|
|
177
|
+
readonly label: "On sale until";
|
|
178
|
+
};
|
|
179
|
+
readonly maxPerOrder: {
|
|
180
|
+
readonly type: "number";
|
|
181
|
+
readonly label: "Most per order";
|
|
182
|
+
readonly description: "The most one order may hold. Empty: 10.";
|
|
183
|
+
};
|
|
184
|
+
readonly depositAmount: {
|
|
185
|
+
readonly type: "currency";
|
|
186
|
+
readonly label: "Deposit";
|
|
187
|
+
readonly description: "Set with a balance due date to let buyers pay a deposit now.";
|
|
188
|
+
};
|
|
189
|
+
readonly balanceDue: {
|
|
190
|
+
readonly type: "date";
|
|
191
|
+
readonly label: "Balance due";
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
readonly capacity: {
|
|
195
|
+
readonly places: "places";
|
|
196
|
+
readonly pool: "event";
|
|
197
|
+
readonly show: "low";
|
|
198
|
+
readonly lowAt: 10;
|
|
199
|
+
};
|
|
200
|
+
readonly sellable: {
|
|
201
|
+
readonly price: "price";
|
|
202
|
+
readonly saleWindow: {
|
|
203
|
+
readonly from: "onSaleFrom";
|
|
204
|
+
readonly until: "onSaleUntil";
|
|
205
|
+
};
|
|
206
|
+
readonly maxPerOrder: "maxPerOrder";
|
|
207
|
+
readonly deposit: {
|
|
208
|
+
readonly amount: "depositAmount";
|
|
209
|
+
readonly balanceDue: "balanceDue";
|
|
210
|
+
};
|
|
211
|
+
readonly grants: {
|
|
212
|
+
readonly object: "ticket";
|
|
213
|
+
readonly set: {
|
|
214
|
+
readonly name: "line.title";
|
|
215
|
+
readonly tickettype: "item";
|
|
216
|
+
readonly event: "item.event";
|
|
217
|
+
readonly holder: "order.person";
|
|
218
|
+
readonly order: "order";
|
|
219
|
+
readonly code: "code";
|
|
220
|
+
};
|
|
221
|
+
readonly void: "void";
|
|
222
|
+
};
|
|
223
|
+
readonly tax: {
|
|
224
|
+
readonly code: "txcd_50010001";
|
|
225
|
+
readonly place: {
|
|
226
|
+
readonly via: "event";
|
|
227
|
+
readonly country: "taxCountry";
|
|
228
|
+
readonly region: "taxRegion";
|
|
229
|
+
readonly postcode: "taxPostcode";
|
|
230
|
+
readonly city: "taxCity";
|
|
231
|
+
readonly line1: "taxAddress";
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
readonly public: {
|
|
236
|
+
readonly read: readonly ["event", "name", "description", "price", "onSaleFrom", "onSaleUntil", "maxPerOrder", "depositAmount", "balanceDue"];
|
|
237
|
+
readonly when: {
|
|
238
|
+
readonly via: "event";
|
|
239
|
+
readonly field: "status";
|
|
240
|
+
readonly in: readonly ["on_sale"];
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
readonly customerVia: {
|
|
244
|
+
readonly from: "ticketing.ticket";
|
|
245
|
+
readonly field: "tickettype";
|
|
246
|
+
readonly read: readonly ["name"];
|
|
247
|
+
};
|
|
248
|
+
readonly indexes: readonly [readonly ["event"]];
|
|
249
|
+
};
|
|
250
|
+
readonly ticket: {
|
|
251
|
+
readonly label: "Ticket";
|
|
252
|
+
readonly plural: "Tickets";
|
|
253
|
+
readonly icon: "ticket-check";
|
|
254
|
+
readonly titleField: "name";
|
|
255
|
+
readonly description: string;
|
|
256
|
+
readonly navigation: "main";
|
|
257
|
+
readonly navigationOrder: 11;
|
|
258
|
+
readonly fields: {
|
|
259
|
+
readonly name: {
|
|
260
|
+
readonly type: "text";
|
|
261
|
+
readonly label: "Name";
|
|
262
|
+
readonly required: true;
|
|
263
|
+
};
|
|
264
|
+
readonly code: {
|
|
265
|
+
readonly type: "text";
|
|
266
|
+
readonly label: "Code";
|
|
267
|
+
readonly readOnly: true;
|
|
268
|
+
readonly description: "Made by the host when the ticket is granted. The QR code carries only this.";
|
|
269
|
+
};
|
|
270
|
+
readonly tickettype: {
|
|
271
|
+
readonly type: "relation";
|
|
272
|
+
readonly label: "Ticket type";
|
|
273
|
+
readonly to: "ticketing.tickettype";
|
|
274
|
+
readonly required: true;
|
|
275
|
+
};
|
|
276
|
+
readonly event: {
|
|
277
|
+
readonly type: "relation";
|
|
278
|
+
readonly label: "Event";
|
|
279
|
+
readonly to: "ticketing.event";
|
|
280
|
+
readonly required: true;
|
|
281
|
+
};
|
|
282
|
+
readonly holder: {
|
|
283
|
+
readonly type: "relation";
|
|
284
|
+
readonly label: "Holder";
|
|
285
|
+
readonly to: "person";
|
|
286
|
+
};
|
|
287
|
+
readonly order: {
|
|
288
|
+
readonly type: "text";
|
|
289
|
+
readonly label: "Order";
|
|
290
|
+
};
|
|
291
|
+
readonly state: {
|
|
292
|
+
readonly type: "select";
|
|
293
|
+
readonly label: "State";
|
|
294
|
+
readonly track: "timeline";
|
|
295
|
+
readonly options: readonly [{
|
|
296
|
+
readonly value: "valid";
|
|
297
|
+
readonly label: "Valid";
|
|
298
|
+
}, {
|
|
299
|
+
readonly value: "used";
|
|
300
|
+
readonly label: "Used";
|
|
301
|
+
}, {
|
|
302
|
+
readonly value: "void";
|
|
303
|
+
readonly label: "Void";
|
|
304
|
+
}];
|
|
305
|
+
};
|
|
306
|
+
readonly usedAt: {
|
|
307
|
+
readonly type: "datetime";
|
|
308
|
+
readonly label: "Checked in at";
|
|
309
|
+
};
|
|
310
|
+
readonly usedBy: {
|
|
311
|
+
readonly type: "user";
|
|
312
|
+
readonly label: "Checked in by";
|
|
313
|
+
};
|
|
314
|
+
readonly usedByName: {
|
|
315
|
+
readonly type: "text";
|
|
316
|
+
readonly label: "Checked in by (name)";
|
|
317
|
+
readonly description: "The name of whoever checked the ticket in, as it was then.";
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
readonly states: {
|
|
321
|
+
readonly field: "state";
|
|
322
|
+
readonly initial: "valid";
|
|
323
|
+
readonly moves: readonly [{
|
|
324
|
+
readonly from: "valid";
|
|
325
|
+
readonly to: "used";
|
|
326
|
+
readonly by: readonly ["staff"];
|
|
327
|
+
}, {
|
|
328
|
+
readonly from: "used";
|
|
329
|
+
readonly to: "valid";
|
|
330
|
+
readonly by: readonly ["staff"];
|
|
331
|
+
}, {
|
|
332
|
+
readonly from: readonly ["valid", "used"];
|
|
333
|
+
readonly to: "void";
|
|
334
|
+
readonly by: readonly ["staff", "host"];
|
|
335
|
+
readonly final: true;
|
|
336
|
+
}];
|
|
337
|
+
};
|
|
338
|
+
readonly customer: {
|
|
339
|
+
readonly field: "holder";
|
|
340
|
+
readonly read: readonly ["event", "tickettype", "code", "state"];
|
|
341
|
+
readonly write: readonly [];
|
|
342
|
+
};
|
|
343
|
+
readonly timelineLinks: readonly ["holder"];
|
|
344
|
+
readonly indexes: readonly [readonly ["code"], readonly ["event", "state"], readonly ["holder"], readonly ["order"]];
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
readonly views: {
|
|
348
|
+
readonly onSale: {
|
|
349
|
+
readonly label: "On sale";
|
|
350
|
+
readonly object: "ticketing.event";
|
|
351
|
+
readonly filter: {
|
|
352
|
+
readonly field: "status";
|
|
353
|
+
readonly op: "eq";
|
|
354
|
+
readonly value: "on_sale";
|
|
355
|
+
};
|
|
356
|
+
readonly sort: {
|
|
357
|
+
readonly field: "startsAt";
|
|
358
|
+
readonly direction: "asc";
|
|
359
|
+
};
|
|
360
|
+
readonly columns: ["name", "startsAt", "venue", "places", "taken", "available"];
|
|
361
|
+
};
|
|
362
|
+
readonly thisWeek: {
|
|
363
|
+
readonly label: "This week's events";
|
|
364
|
+
readonly object: "ticketing.event";
|
|
365
|
+
readonly filter: {
|
|
366
|
+
readonly and: [{
|
|
367
|
+
readonly field: "startsAt";
|
|
368
|
+
readonly op: "gte";
|
|
369
|
+
readonly value: {
|
|
370
|
+
readonly $relative: "startOfWeek";
|
|
371
|
+
};
|
|
372
|
+
}, {
|
|
373
|
+
readonly field: "startsAt";
|
|
374
|
+
readonly op: "lt";
|
|
375
|
+
readonly value: {
|
|
376
|
+
readonly $relative: "startOfNextWeek";
|
|
377
|
+
};
|
|
378
|
+
}];
|
|
379
|
+
};
|
|
380
|
+
readonly sort: {
|
|
381
|
+
readonly field: "startsAt";
|
|
382
|
+
readonly direction: "asc";
|
|
383
|
+
};
|
|
384
|
+
readonly columns: ["name", "startsAt", "venue", "status", "taken"];
|
|
385
|
+
};
|
|
386
|
+
readonly unusedTickets: {
|
|
387
|
+
readonly label: "Unused tickets";
|
|
388
|
+
readonly object: "ticketing.ticket";
|
|
389
|
+
readonly filter: {
|
|
390
|
+
readonly field: "state";
|
|
391
|
+
readonly op: "eq";
|
|
392
|
+
readonly value: "valid";
|
|
393
|
+
};
|
|
394
|
+
readonly sort: {
|
|
395
|
+
readonly field: "createdAt";
|
|
396
|
+
readonly direction: "desc";
|
|
397
|
+
};
|
|
398
|
+
readonly columns: ["name", "event", "tickettype", "holder", "code", "createdAt"];
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
readonly dashboards: {
|
|
402
|
+
ticketSales: import("@composable-os/sdk").DashboardDeclaration;
|
|
403
|
+
};
|
|
404
|
+
readonly recordTabs: {
|
|
405
|
+
readonly personTickets: {
|
|
406
|
+
readonly label: "Tickets";
|
|
407
|
+
readonly on: "person";
|
|
408
|
+
readonly view: {
|
|
409
|
+
readonly type: "table";
|
|
410
|
+
readonly object: "ticketing.ticket";
|
|
411
|
+
readonly relation: "holder";
|
|
412
|
+
readonly columns: ["name", "event", "tickettype", "state", "usedAt", "code"];
|
|
413
|
+
readonly sort: {
|
|
414
|
+
readonly field: "createdAt";
|
|
415
|
+
readonly direction: "desc";
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
readonly order: 30;
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
readonly settings: {
|
|
422
|
+
readonly ticketsUrl: {
|
|
423
|
+
readonly type: "text";
|
|
424
|
+
readonly label: "Where buyers see their tickets";
|
|
425
|
+
readonly description: string;
|
|
426
|
+
};
|
|
427
|
+
readonly payUrl: {
|
|
428
|
+
readonly type: "text";
|
|
429
|
+
readonly label: "Where buyers pay a balance";
|
|
430
|
+
readonly description: string;
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
readonly automations: {
|
|
434
|
+
ticketsByEmail: import("@composable-os/sdk").AutomationSpec<{
|
|
435
|
+
readonly type: "fieldChanged";
|
|
436
|
+
readonly object: "order";
|
|
437
|
+
readonly field: "state";
|
|
438
|
+
readonly from: {
|
|
439
|
+
readonly in: readonly ["pending", "expired"];
|
|
440
|
+
};
|
|
441
|
+
readonly to: {
|
|
442
|
+
readonly in: readonly ["paid", "part_paid"];
|
|
443
|
+
};
|
|
444
|
+
}>;
|
|
445
|
+
eventReminder: import("@composable-os/sdk").AutomationSpec<{
|
|
446
|
+
readonly type: "dateRelative";
|
|
447
|
+
readonly object: "ticketing.event";
|
|
448
|
+
readonly field: "startsAt";
|
|
449
|
+
readonly offsetDays: -1;
|
|
450
|
+
readonly zoneField: "timezone";
|
|
451
|
+
}>;
|
|
452
|
+
eventEnded: import("@composable-os/sdk").AutomationSpec<{
|
|
453
|
+
readonly type: "dateRelative";
|
|
454
|
+
readonly object: "ticketing.event";
|
|
455
|
+
readonly field: "endsAt";
|
|
456
|
+
readonly offsetDays: 1;
|
|
457
|
+
readonly zoneField: "timezone";
|
|
458
|
+
}>;
|
|
459
|
+
balanceReminders: import("@composable-os/sdk").AutomationSpec<{
|
|
460
|
+
readonly type: "schedule";
|
|
461
|
+
readonly cron: "0 9 * * *";
|
|
462
|
+
}>;
|
|
463
|
+
};
|
|
464
|
+
readonly roles: {
|
|
465
|
+
readonly door: {
|
|
466
|
+
readonly label: "Door";
|
|
467
|
+
readonly description: string;
|
|
468
|
+
readonly permissions: readonly ["ticketing:checkin"];
|
|
469
|
+
readonly read: readonly ["ticketing.event", "ticketing.tickettype", "ticketing.ticket"];
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
readonly tools: {
|
|
473
|
+
readonly eventsOnSale: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
474
|
+
event: import("zod").ZodOptional<import("zod").ZodString>;
|
|
475
|
+
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
476
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
477
|
+
events: import("zod").ZodArray<import("zod").ZodObject<{
|
|
478
|
+
id: import("zod").ZodString;
|
|
479
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
480
|
+
startsAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
481
|
+
endsAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
482
|
+
timeZone: import("zod").ZodNullable<import("zod").ZodString>;
|
|
483
|
+
venue: import("zod").ZodNullable<import("zod").ZodString>;
|
|
484
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
485
|
+
image: import("zod").ZodNullable<import("zod").ZodString>;
|
|
486
|
+
availability: import("zod").ZodObject<{
|
|
487
|
+
status: import("zod").ZodEnum<{
|
|
488
|
+
available: "available";
|
|
489
|
+
low: "low";
|
|
490
|
+
sold_out: "sold_out";
|
|
491
|
+
}>;
|
|
492
|
+
available: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
493
|
+
}, import("zod/v4/core").$strip>;
|
|
494
|
+
ticketTypes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
495
|
+
id: import("zod").ZodString;
|
|
496
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
497
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
498
|
+
price: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
499
|
+
currency: import("zod").ZodNullable<import("zod").ZodString>;
|
|
500
|
+
onSaleFrom: import("zod").ZodNullable<import("zod").ZodString>;
|
|
501
|
+
onSaleUntil: import("zod").ZodNullable<import("zod").ZodString>;
|
|
502
|
+
maxPerOrder: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
503
|
+
deposit: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
504
|
+
balanceDue: import("zod").ZodNullable<import("zod").ZodString>;
|
|
505
|
+
availability: import("zod").ZodObject<{
|
|
506
|
+
status: import("zod").ZodEnum<{
|
|
507
|
+
available: "available";
|
|
508
|
+
low: "low";
|
|
509
|
+
sold_out: "sold_out";
|
|
510
|
+
}>;
|
|
511
|
+
available: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
512
|
+
}, import("zod/v4/core").$strip>;
|
|
513
|
+
}, import("zod/v4/core").$strip>>;
|
|
514
|
+
}, import("zod/v4/core").$strip>>;
|
|
515
|
+
}, import("zod/v4/core").$strip>>;
|
|
516
|
+
readonly orderStart: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
517
|
+
lines: import("zod").ZodArray<import("zod").ZodObject<{
|
|
518
|
+
ticketTypeId: import("zod").ZodString;
|
|
519
|
+
quantity: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
520
|
+
}, import("zod/v4/core").$strip>>;
|
|
521
|
+
pay: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
522
|
+
deposit: "deposit";
|
|
523
|
+
full: "full";
|
|
524
|
+
}>>;
|
|
525
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
526
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
527
|
+
id: import("zod").ZodString;
|
|
528
|
+
state: import("zod").ZodString;
|
|
529
|
+
currency: import("zod").ZodString;
|
|
530
|
+
total: import("zod").ZodNumber;
|
|
531
|
+
paid: import("zod").ZodNumber;
|
|
532
|
+
balance: import("zod").ZodNumber;
|
|
533
|
+
pay: import("zod").ZodString;
|
|
534
|
+
deposit: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
535
|
+
balanceDueAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
536
|
+
expiresAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
537
|
+
lines: import("zod").ZodArray<import("zod").ZodObject<{
|
|
538
|
+
id: import("zod").ZodString;
|
|
539
|
+
ticketTypeId: import("zod").ZodString;
|
|
540
|
+
title: import("zod").ZodString;
|
|
541
|
+
quantity: import("zod").ZodNumber;
|
|
542
|
+
unitPrice: import("zod").ZodNumber;
|
|
543
|
+
total: import("zod").ZodNumber;
|
|
544
|
+
}, import("zod/v4/core").$strip>>;
|
|
545
|
+
token: import("zod").ZodNullable<import("zod").ZodString>;
|
|
546
|
+
}, import("zod/v4/core").$strip>>;
|
|
547
|
+
readonly myTickets: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
548
|
+
event: import("zod").ZodOptional<import("zod").ZodString>;
|
|
549
|
+
code: import("zod").ZodOptional<import("zod").ZodString>;
|
|
550
|
+
state: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
551
|
+
void: "void";
|
|
552
|
+
valid: "valid";
|
|
553
|
+
used: "used";
|
|
554
|
+
}>>;
|
|
555
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
556
|
+
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
557
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
558
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
559
|
+
id: import("zod").ZodString;
|
|
560
|
+
event: import("zod").ZodNullable<import("zod").ZodString>;
|
|
561
|
+
ticketType: import("zod").ZodNullable<import("zod").ZodString>;
|
|
562
|
+
code: import("zod").ZodNullable<import("zod").ZodString>;
|
|
563
|
+
state: import("zod").ZodNullable<import("zod").ZodString>;
|
|
564
|
+
eventName: import("zod").ZodNullable<import("zod").ZodString>;
|
|
565
|
+
startsAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
566
|
+
endsAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
567
|
+
timeZone: import("zod").ZodNullable<import("zod").ZodString>;
|
|
568
|
+
venue: import("zod").ZodNullable<import("zod").ZodString>;
|
|
569
|
+
eventStatus: import("zod").ZodNullable<import("zod").ZodString>;
|
|
570
|
+
ticketTypeName: import("zod").ZodNullable<import("zod").ZodString>;
|
|
571
|
+
}, import("zod/v4/core").$strip>>;
|
|
572
|
+
nextCursor: import("zod").ZodNullable<import("zod").ZodString>;
|
|
573
|
+
}, import("zod/v4/core").$strip>>;
|
|
574
|
+
readonly salesSummary: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
575
|
+
eventId: import("zod").ZodString;
|
|
576
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
577
|
+
event: import("zod").ZodObject<{
|
|
578
|
+
id: import("zod").ZodString;
|
|
579
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
580
|
+
status: import("zod").ZodNullable<import("zod").ZodString>;
|
|
581
|
+
}, import("zod/v4/core").$strip>;
|
|
582
|
+
currency: import("zod").ZodNullable<import("zod").ZodString>;
|
|
583
|
+
ticketTypes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
584
|
+
id: import("zod").ZodString;
|
|
585
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
586
|
+
price: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
587
|
+
sold: import("zod").ZodNumber;
|
|
588
|
+
held: import("zod").ZodNumber;
|
|
589
|
+
remaining: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
590
|
+
revenue: import("zod").ZodNumber;
|
|
591
|
+
}, import("zod/v4/core").$strip>>;
|
|
592
|
+
totals: import("zod").ZodObject<{
|
|
593
|
+
sold: import("zod").ZodNumber;
|
|
594
|
+
held: import("zod").ZodNumber;
|
|
595
|
+
remaining: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
596
|
+
revenue: import("zod").ZodNumber;
|
|
597
|
+
}, import("zod/v4/core").$strip>;
|
|
598
|
+
}, import("zod/v4/core").$strip>>;
|
|
599
|
+
readonly checkIn: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
600
|
+
code: import("zod").ZodString;
|
|
601
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
602
|
+
result: import("zod").ZodEnum<{
|
|
603
|
+
void: "void";
|
|
604
|
+
unknown: "unknown";
|
|
605
|
+
accepted: "accepted";
|
|
606
|
+
already_used: "already_used";
|
|
607
|
+
}>;
|
|
608
|
+
accepted: import("zod").ZodBoolean;
|
|
609
|
+
message: import("zod").ZodString;
|
|
610
|
+
ticket: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
611
|
+
id: import("zod").ZodString;
|
|
612
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
613
|
+
event: import("zod").ZodNullable<import("zod").ZodString>;
|
|
614
|
+
ticketType: import("zod").ZodNullable<import("zod").ZodString>;
|
|
615
|
+
holder: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
616
|
+
id: import("zod").ZodString;
|
|
617
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
618
|
+
}, import("zod/v4/core").$strip>>;
|
|
619
|
+
state: import("zod").ZodNullable<import("zod").ZodString>;
|
|
620
|
+
usedAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
621
|
+
usedBy: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
622
|
+
id: import("zod").ZodString;
|
|
623
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
624
|
+
}, import("zod/v4/core").$strip>>;
|
|
625
|
+
}, import("zod/v4/core").$strip>>;
|
|
626
|
+
balanceOwing: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
627
|
+
amount: import("zod").ZodNumber;
|
|
628
|
+
currency: import("zod").ZodString;
|
|
629
|
+
dueAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
630
|
+
}, import("zod/v4/core").$strip>>;
|
|
631
|
+
}, import("zod/v4/core").$strip>>;
|
|
632
|
+
readonly undoCheckIn: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
633
|
+
ticketId: import("zod").ZodString;
|
|
634
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
635
|
+
undone: import("zod").ZodBoolean;
|
|
636
|
+
message: import("zod").ZodString;
|
|
637
|
+
ticket: import("zod").ZodObject<{
|
|
638
|
+
id: import("zod").ZodString;
|
|
639
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
640
|
+
event: import("zod").ZodNullable<import("zod").ZodString>;
|
|
641
|
+
ticketType: import("zod").ZodNullable<import("zod").ZodString>;
|
|
642
|
+
holder: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
643
|
+
id: import("zod").ZodString;
|
|
644
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
645
|
+
}, import("zod/v4/core").$strip>>;
|
|
646
|
+
state: import("zod").ZodNullable<import("zod").ZodString>;
|
|
647
|
+
usedAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
648
|
+
usedBy: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
649
|
+
id: import("zod").ZodString;
|
|
650
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
651
|
+
}, import("zod/v4/core").$strip>>;
|
|
652
|
+
}, import("zod/v4/core").$strip>;
|
|
653
|
+
}, import("zod/v4/core").$strip>>;
|
|
654
|
+
};
|
|
655
|
+
}>;
|
|
656
|
+
export default _default;
|