Skip to content

Commit 9e69925

Browse files
including pnpm-lock.yaml modified by pnpm install, needed for some eslint-plugin-pipedream was missing (#18787)
Merging Ticketsauce components to master Co-authored-by: Michelle Bergeron <[email protected]>
1 parent 6da388e commit 9e69925

File tree

12 files changed

+812
-9
lines changed

12 files changed

+812
-9
lines changed

components/cronlytic/cronlytic.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export default {
88
console.log(Object.keys(this.$auth));
99
},
1010
},
11-
};
11+
};

components/deep_tagger/deep_tagger.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export default {
88
console.log(Object.keys(this.$auth));
99
},
1010
},
11-
};
11+
};
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import ticketsauce from "../../ticketsauce.app.mjs";
2+
3+
export default {
4+
key: "ticketsauce-get-event-details",
5+
name: "Get Event Details",
6+
description: "Get details for a specified event. [See documentation](https://speca.io/ticketsauce/ticketsauce-public-api?key=204000d6bda66da78315e721920f43aa#event-details)",
7+
version: "0.0.1",
8+
type: "action",
9+
annotations: {
10+
destructiveHint: false,
11+
openWorldHint: true,
12+
readOnlyHint: true,
13+
},
14+
props: {
15+
ticketsauce,
16+
partnerId: {
17+
propDefinition: [
18+
ticketsauce,
19+
"partnerId",
20+
],
21+
},
22+
organizationId: {
23+
propDefinition: [
24+
ticketsauce,
25+
"organizationId",
26+
],
27+
},
28+
eventId: {
29+
propDefinition: [
30+
ticketsauce,
31+
"eventId",
32+
(c) => ({
33+
partnerId: c.partnerId,
34+
organizationId: c.organizationId,
35+
}),
36+
],
37+
},
38+
photos: {
39+
type: "boolean",
40+
label: "Photos",
41+
description: "Whether or not to return the event's photo gallery records.",
42+
optional: true,
43+
default: false,
44+
},
45+
includePerformers: {
46+
propDefinition: [
47+
ticketsauce,
48+
"includePerformers",
49+
],
50+
},
51+
},
52+
async run({ $ }) {
53+
const params = {
54+
photos: this.photos ?
55+
1 :
56+
0,
57+
include_performers: String(this.includePerformers),
58+
};
59+
60+
const response = await this.ticketsauce.getEventDetails($, {
61+
eventId: this.eventId,
62+
params,
63+
});
64+
65+
$.export("$summary", `Successfully retrieved details for event ID: ${this.eventId}`);
66+
return response;
67+
},
68+
};
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
import ticketsauce from "../../ticketsauce.app.mjs";
2+
3+
export default {
4+
key: "ticketsauce-get-events",
5+
name: "Get Events",
6+
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)",
7+
version: "0.0.1",
8+
type: "action",
9+
annotations: {
10+
destructiveHint: false,
11+
openWorldHint: true,
12+
readOnlyHint: true,
13+
},
14+
props: {
15+
ticketsauce,
16+
partnerId: {
17+
propDefinition: [
18+
ticketsauce,
19+
"partnerId",
20+
],
21+
},
22+
organizationId: {
23+
propDefinition: [
24+
ticketsauce,
25+
"organizationId",
26+
],
27+
},
28+
startAfter: {
29+
type: "string",
30+
label: "Start After",
31+
description: "Only retrieve events that start AFTER the specified UTC date (format: `YYYY-MM-DD`).",
32+
optional: true,
33+
},
34+
endBefore: {
35+
type: "string",
36+
label: "End Before",
37+
description: "Only retrieve events that end BEFORE the specified UTC date (format: `YYYY-MM-DD`).",
38+
optional: true,
39+
},
40+
activeOnly: {
41+
type: "boolean",
42+
label: "Active Only",
43+
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.",
44+
optional: true,
45+
default: true,
46+
},
47+
privacyType: {
48+
type: "string",
49+
label: "Privacy Type",
50+
description: "Filter events by privacy type.",
51+
optional: true,
52+
default: "public",
53+
options: [
54+
{
55+
label: "Public events only",
56+
value: "public",
57+
},
58+
{
59+
label: "All events (no restriction)",
60+
value: "all",
61+
},
62+
{
63+
label: "Unlisted events only",
64+
value: "unlisted",
65+
},
66+
],
67+
},
68+
sortBy: {
69+
type: "string",
70+
label: "Sort By",
71+
description: "Field to sort events by.",
72+
optional: true,
73+
options: [
74+
{
75+
label: "Event start date",
76+
value: "date",
77+
},
78+
{
79+
label: "Event name",
80+
value: "name",
81+
},
82+
{
83+
label: "City location",
84+
value: "city",
85+
},
86+
],
87+
},
88+
sortDir: {
89+
type: "string",
90+
label: "Sort Direction",
91+
description: "Direction to sort results.",
92+
optional: true,
93+
options: [
94+
{
95+
label: "Ascending",
96+
value: "asc",
97+
},
98+
{
99+
label: "Descending",
100+
value: "desc",
101+
},
102+
],
103+
},
104+
includePerformers: {
105+
propDefinition: [
106+
ticketsauce,
107+
"includePerformers",
108+
],
109+
},
110+
},
111+
async run({ $ }) {
112+
const params = {
113+
partner_id: this.partnerId,
114+
organization_id: this.organizationId,
115+
start_after: this.startAfter,
116+
end_before: this.endBefore,
117+
active_only: String(this.activeOnly),
118+
privacy_type: this.privacyType,
119+
sort_by: this.sortBy,
120+
sort_dir: this.sortDir,
121+
include_performers: String(this.includePerformers),
122+
};
123+
return this.ticketsauce.listEvents($, {
124+
params,
125+
});
126+
},
127+
};
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
import ticketsauce from "../../ticketsauce.app.mjs";
2+
3+
export default {
4+
key: "ticketsauce-get-order-details",
5+
name: "Get Order Details",
6+
description: "Get details for the specified order. [See documentation](https://speca.io/ticketsauce/ticketsauce-public-api?key=204000d6bda66da78315e721920f43aa#order-details)",
7+
version: "0.0.1",
8+
type: "action",
9+
annotations: {
10+
destructiveHint: false,
11+
openWorldHint: true,
12+
readOnlyHint: true,
13+
},
14+
props: {
15+
ticketsauce,
16+
partnerId: {
17+
propDefinition: [
18+
ticketsauce,
19+
"partnerId",
20+
],
21+
},
22+
organizationId: {
23+
propDefinition: [
24+
ticketsauce,
25+
"organizationId",
26+
],
27+
},
28+
eventId: {
29+
propDefinition: [
30+
ticketsauce,
31+
"eventId",
32+
(c) => ({
33+
partnerId: c.partnerId,
34+
organizationId: c.organizationId,
35+
}),
36+
],
37+
},
38+
orderId: {
39+
propDefinition: [
40+
ticketsauce,
41+
"orderId",
42+
(c) => ({
43+
eventId: c.eventId,
44+
}),
45+
],
46+
},
47+
},
48+
async run({ $ }) {
49+
const response = await this.ticketsauce.getOrderDetails($, {
50+
orderId: this.orderId,
51+
});
52+
53+
$.export("$summary", `Successfully retrieved details for order ID: ${this.orderId}`);
54+
return response;
55+
},
56+
};

0 commit comments

Comments
 (0)