Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
04e8c2a
new ticketsauce actions and source
sergio-eliot-rodriguez Oct 16, 2025
94760df
new ticket components: catches by coderabit
sergio-eliot-rodriguez Oct 17, 2025
46e2542
new ticket components: lint fixes
sergio-eliot-rodriguez Oct 17, 2025
3418247
Update components/ticketsauce/actions/get-orders/get-orders.mjs
GTFalcao Oct 17, 2025
6039bcd
Merge remote-tracking branch 'upstream/master' into ticketsauce-compo…
sergio-eliot-rodriguez Oct 18, 2025
f12bbae
Update components/ticketsauce/actions/get-orders/get-orders.mjs
GTFalcao Oct 17, 2025
74418a1
Merge remote-tracking branch 'upstream/master' into ticketsauce-compo…
sergio-eliot-rodriguez Oct 19, 2025
3e107bc
Merge branch 'ticketsauce-components' of https://github.com/sergio-el…
sergio-eliot-rodriguez Oct 19, 2025
cf31f14
Update components/ticketsauce/actions/get-events/get-events.mjs
sergio-eliot-rodriguez Oct 19, 2025
73f21d3
Update components/ticketsauce/actions/get-events/get-events.mjs
sergio-eliot-rodriguez Oct 19, 2025
1d1cee5
Update components/ticketsauce/actions/get-event-details/get-event-det…
sergio-eliot-rodriguez Oct 19, 2025
7fbf1d0
new ticketsauce actions and source
sergio-eliot-rodriguez Oct 16, 2025
4053425
new ticket components: catches by coderabit
sergio-eliot-rodriguez Oct 17, 2025
38b7217
new ticket components: lint fixes
sergio-eliot-rodriguez Oct 17, 2025
442c587
Update components/ticketsauce/actions/get-orders/get-orders.mjs
GTFalcao Oct 17, 2025
deb15cf
Update components/ticketsauce/actions/get-events/get-events.mjs
sergio-eliot-rodriguez Oct 19, 2025
4d59e81
Update components/ticketsauce/actions/get-events/get-events.mjs
sergio-eliot-rodriguez Oct 19, 2025
59b8e40
Update components/ticketsauce/actions/get-event-details/get-event-det…
sergio-eliot-rodriguez Oct 19, 2025
bd77627
new ticketsauce components: addressing reivew comments by Guilherm
sergio-eliot-rodriguez Oct 19, 2025
92856bc
new ticketsauce components: addressing review comments by Guilherme
sergio-eliot-rodriguez Oct 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import ticketsauce from "../../ticketsauce.app.mjs";

export default {
key: "ticketsauce-get-event-details",
name: "Get Event Details",
description: "Get details for a specified event. [See documentation](https://speca.io/ticketsauce/ticketsauce-public-api?key=204000d6bda66da78315e721920f43aa#event-details)",
version: "0.0.1",
type: "action",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: true,
},
props: {
ticketsauce,
partnerId: {
propDefinition: [
ticketsauce,
"partnerId",
],
},
organizationId: {
propDefinition: [
ticketsauce,
"organizationId",
],
},
eventId: {
propDefinition: [
ticketsauce,
"eventId",
(c) => ({
partnerId: c.partnerId,
organizationId: c.organizationId,
}),
],
},
photos: {
type: "string",
label: "Photos",
description: "Whether or not to return the event's photo gallery records.",
optional: true,
default: "0",
options: [
"0",
"1",
],
},
includePerformers: {
propDefinition: [
ticketsauce,
"includePerformers",
],
},
},
async run({ $ }) {
const params = {
photos: parseInt(this.photos) === 1,
include_performers: parseInt(this.includePerformers) === 1,
};

return this.ticketsauce.getEventDetails($, {
eventId: this.eventId,
params,
});
Comment on lines +62 to +65
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the $.export("$summary", "...") here as well

},
};
132 changes: 132 additions & 0 deletions components/ticketsauce/actions/get-events/get-events.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
import ticketsauce from "../../ticketsauce.app.mjs";

export default {
key: "ticketsauce-get-events",
name: "Get Events",
description: "Get a list of all events owned by the authenticated account. [See documentation](https://speca.io/ticketsauce/ticketsauce-public-api?key=204000d6bda66da78315e721920f43aa#list-of-events)",
version: "0.0.1",
type: "action",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: true,
},
props: {
ticketsauce,
partnerId: {
propDefinition: [
ticketsauce,
"partnerId",
],
},
organizationId: {
propDefinition: [
ticketsauce,
"organizationId",
],
},
startAfter: {
type: "string",
label: "Start After",
description: "Only retrieve events that start AFTER the specified UTC date (format: `YYYY-MM-DD`).",
optional: true,
},
endBefore: {
type: "string",
label: "End Before",
description: "Only retrieve events that end BEFORE the specified UTC date (format: `YYYY-MM-DD`).",
optional: true,
},
activeOnly: {
type: "string",
label: "Active Only",
description: "Leaving this as true will restrict retrieved events to only 'active' events. Setting to false will allow the retrieval of both active and inactive events.",
optional: true,
default: "1",
options: [
"0",
"1",
],
},
privacyType: {
type: "string",
label: "Privacy Type",
description: "Filter events by privacy type.",
optional: true,
default: "public",
options: [
{
label: "Public events only",
value: "public",
},
{
label: "All events (no restriction)",
value: "all",
},
{
label: "Unlisted events only",
value: "unlisted",
},
],
},
sortBy: {
type: "string",
label: "Sort By",
description: "Field to sort events by.",
optional: true,
options: [
{
label: "Event start date",
value: "date",
},
{
label: "Event name",
value: "name",
},
{
label: "City location",
value: "city",
},
],
},
sortDir: {
type: "string",
label: "Sort Direction",
description: "Direction to sort results.",
optional: true,
options: [
{
label: "Ascending",
value: "asc",
},
{
label: "Descending",
value: "desc",
},
],
},
includePerformers: {
propDefinition: [
ticketsauce,
"includePerformers",
],
},
},
async run({ $ }) {
const params = {
partner_id: this.partnerId,
organization_id: this.organizationId,
start_after: this.startAfter,
end_before: this.endBefore,
active_only: parseInt(this.activeOnly) === 1,
privacy_type: this.privacyType,
sort_by: this.sortBy,
sort_dir: this.sortDir,
include_performers: parseInt(this.includePerformers) === 1,
};

return this.ticketsauce.listEvents($, {
params,
});
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import ticketsauce from "../../ticketsauce.app.mjs";

export default {
key: "ticketsauce-get-order-details",
name: "Get Order Details",
description: "Get details for the specified order. [See documentation](https://speca.io/ticketsauce/ticketsauce-public-api?key=204000d6bda66da78315e721920f43aa#order-details)",
version: "0.0.1",
type: "action",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: true,
},
props: {
ticketsauce,
partnerId: {
propDefinition: [
ticketsauce,
"partnerId",
],
},
organizationId: {
propDefinition: [
ticketsauce,
"organizationId",
],
},
eventId: {
propDefinition: [
ticketsauce,
"eventId",
(c) => ({
partnerId: c.partnerId,
organizationId: c.organizationId,
}),
],
},
orderId: {
propDefinition: [
ticketsauce,
"orderId",
(c) => ({
eventId: c.eventId,
}),
],
},
},
async run({ $ }) {
return this.ticketsauce.getOrderDetails($, {
orderId: this.orderId,
});
},
};
Loading
Loading