-
Notifications
You must be signed in to change notification settings - Fork 5.5k
new ticketsauce actions and source #18787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sergio-eliot-rodriguez
wants to merge
20
commits into
PipedreamHQ:master
Choose a base branch
from
sergio-eliot-rodriguez:ticketsauce-components
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+983
−36
Open
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 94760df
new ticket components: catches by coderabit
sergio-eliot-rodriguez 46e2542
new ticket components: lint fixes
sergio-eliot-rodriguez 3418247
Update components/ticketsauce/actions/get-orders/get-orders.mjs
GTFalcao 6039bcd
Merge remote-tracking branch 'upstream/master' into ticketsauce-compo…
sergio-eliot-rodriguez f12bbae
Update components/ticketsauce/actions/get-orders/get-orders.mjs
GTFalcao 74418a1
Merge remote-tracking branch 'upstream/master' into ticketsauce-compo…
sergio-eliot-rodriguez 3e107bc
Merge branch 'ticketsauce-components' of https://github.com/sergio-el…
sergio-eliot-rodriguez cf31f14
Update components/ticketsauce/actions/get-events/get-events.mjs
sergio-eliot-rodriguez 73f21d3
Update components/ticketsauce/actions/get-events/get-events.mjs
sergio-eliot-rodriguez 1d1cee5
Update components/ticketsauce/actions/get-event-details/get-event-det…
sergio-eliot-rodriguez 7fbf1d0
new ticketsauce actions and source
sergio-eliot-rodriguez 4053425
new ticket components: catches by coderabit
sergio-eliot-rodriguez 38b7217
new ticket components: lint fixes
sergio-eliot-rodriguez 442c587
Update components/ticketsauce/actions/get-orders/get-orders.mjs
GTFalcao deb15cf
Update components/ticketsauce/actions/get-events/get-events.mjs
sergio-eliot-rodriguez 4d59e81
Update components/ticketsauce/actions/get-events/get-events.mjs
sergio-eliot-rodriguez 59b8e40
Update components/ticketsauce/actions/get-event-details/get-event-det…
sergio-eliot-rodriguez bd77627
new ticketsauce components: addressing reivew comments by Guilherm
sergio-eliot-rodriguez 92856bc
new ticketsauce components: addressing review comments by Guilherme
sergio-eliot-rodriguez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
67 changes: 67 additions & 0 deletions
67
components/ticketsauce/actions/get-event-details/get-event-details.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add the |
||
}, | ||
}; |
132 changes: 132 additions & 0 deletions
132
components/ticketsauce/actions/get-events/get-events.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}); | ||
}, | ||
}; |
53 changes: 53 additions & 0 deletions
53
components/ticketsauce/actions/get-order-details/get-order-details.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}); | ||
}, | ||
}; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.