Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Add Guest to Reservation",
description:
"Add a guest to a reservation. [See the documentation](https://developers.bookingexperts.com/reference/administration-reservation-guests-create)",
version: "0.0.7",
version: "0.0.8",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "booking_experts-create-agenda-period",
name: "Create Agenda Period",
description: "Creates a new agenda period. [See the documentation](https://developers.bookingexperts.com/reference/administration-maintenance-agenda-periods-create)",
version: "0.0.6",
version: "0.0.7",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
key: "booking_experts-delete-guest",
name: "Delete Guest",
description: "Delete a guest for a reservation. [See the documentation](https://developers.bookingexperts.com/reference/administration-reservation-guests-delete)",
version: "0.0.4",
version: "0.0.5",
annotations: {
destructiveHint: true,
openWorldHint: true,
Expand All @@ -28,7 +28,7 @@
}),
],
},
info: {

Check warning on line 31 in components/booking_experts/actions/delete-guest/delete-guest.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop info must have a description. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 31 in components/booking_experts/actions/delete-guest/delete-guest.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop info must have a label. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "warning",
content: "**The API will only list guests created through the Booking Experts API.**",
Expand Down
32 changes: 32 additions & 0 deletions components/booking_experts/actions/get-amenity/get-amenity.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import bookingExperts from "../../booking_experts.app.mjs";

export default {
key: "booking_experts-get-amenity",
name: "Get Amenity",
description: "Retrieve a single amenity by ID. [See the documentation](https://developers.bookingexperts.com/reference/amenities-show)",
version: "0.0.1",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: true,
},
type: "action",
props: {
bookingExperts,
amenityId: {
propDefinition: [
bookingExperts,
"amenityId",
],
},
},
async run({ $ }) {
const { data } = await this.bookingExperts.getAmenity({
$,
amenityId: this.amenityId,
});

$.export("$summary", `Successfully retrieved amenity ${this.amenityId}`);
return data;
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "booking_experts-get-booking",
name: "Get Booking",
description: "Returns a booking. [See the documentation](https://developers.bookingexperts.com/reference/administration-bookings-show)",
version: "0.0.4",
version: "0.0.5",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "booking_experts-get-complex-prices",
name: "Get Complex Prices",
description: "Returns all complex prices of a master price list. [See the documentation](https://developers.bookingexperts.com/reference/administration-masterpricelist-complexprices-index)",
version: "0.0.6",
version: "0.0.7",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
name: "Get Reservation",
description: "Fetches a reservation by ID from Booking Experts. [See the documentation](https://developers.bookingexperts.com/reference/reservations-show)",
key: "booking_experts-get-reservation",
version: "0.0.3",
version: "0.0.4",
type: "action",
annotations: {
destructiveHint: false,
Expand Down
108 changes: 108 additions & 0 deletions components/booking_experts/actions/list-amenities/list-amenities.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
import bookingExperts from "../../booking_experts.app.mjs";

export default {
key: "booking_experts-list-amenities",
name: "List Amenities",
description: "List amenities from BookingExperts. [See the documentation](https://developers.bookingexperts.com/reference/amenities-index)",
version: "0.0.1",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: true,
},
type: "action",
props: {
bookingExperts,
page: {
propDefinition: [
bookingExperts,
"page",
],
},
perPage: {
propDefinition: [
bookingExperts,
"perPage",
],
},
sort: {
propDefinition: [
bookingExperts,
"sort",
],
},
fields: {
propDefinition: [
bookingExperts,
"fields",
],
},
include: {
propDefinition: [
bookingExperts,
"include",
],
},
name: {
type: "string",
label: "Name",
description: "Filter by name",
optional: true,
},
type: {
type: "string",
label: "Type",
description: "Filter by type",
optional: true,
},
position: {
type: "string",
label: "Position",
description: "Filter by position",
optional: true,
},
semanticAmenityType: {
type: "string",
label: "Semantic Amenity Type",
description: "Filter by semantic amenity type",
optional: true,
},
amenityGroup: {
propDefinition: [
bookingExperts,
"amenityGroupId",
],
optional: true,
},
amenityOptions: {
type: "string",
label: "Amenity Options",
description: "Filter on amenity_options. Specify a comma separated list of IDs to filter on.",
optional: true,
},
},
async run({ $ }) {
const params = {
"page[number]": this.page,
"page[size]": this.perPage,
"sort": this.sort,
"fields[amenity]": this.fields,
"include": this.include,
"filter[name]": this.name,
"filter[type]": this.type,
"filter[position]": this.position,
"filter[semantic_amenity_type]": this.semanticAmenityType,
"filter[amenity_group]": this.amenityGroup,
"filter[amenity_options]": this.amenityOptions,
};

const { data } = await this.bookingExperts.listAmenities({
$,
params,
});

$.export("$summary", `Successfully retrieved ${data?.length ?? 0} amenities`);

return data;
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
key: "booking_experts-list-availabilities",
name: "List Availabilities",
description: "List availabilities of a channel you have access to. [See the documentation](https://developers.bookingexperts.com/reference/availabilities-index)",
version: "0.0.4",
version: "0.0.5",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand All @@ -19,7 +19,7 @@
type: "action",
props: {
bookingExperts,
info: {

Check warning on line 22 in components/booking_experts/actions/list-availabilities/list-availabilities.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop info must have a description. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 22 in components/booking_experts/actions/list-availabilities/list-availabilities.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop info must have a label. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "warning",
content: "**You must have at least one channel created through the Booking Experts API.**",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "booking_experts-list-bookings",
name: "List Bookings",
description: "Returns a list of bookings for an administration. [See the documentation](https://developers.bookingexperts.com/reference/administration-bookings-index)",
version: "0.0.6",
version: "0.0.7",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "booking_experts-list-inventory-objects",
name: "List Inventory Objects",
description: "Returns inventory objects of the administration. [See the documentation](https://developers.bookingexperts.com/reference/administration-inventoryobjects-index)",
version: "0.0.6",
version: "0.0.7",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
import bookingExperts from "../../booking_experts.app.mjs";
import { parseObject } from "../../common/utils.mjs";

export default {
key: "booking_experts-list-rentable-types",
name: "List Rentable Types",
description: "List all rentable types for a given administration. [See the documentation](https://developers.bookingexperts.com/reference/administration-rentabletypes-index)",
version: "0.0.1",
type: "action",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: true,
},
props: {
bookingExperts,
administrationId: {
propDefinition: [
bookingExperts,
"administrationId",
],
},
page: {
propDefinition: [
bookingExperts,
"page",
],
},
perPage: {
propDefinition: [
bookingExperts,
"perPage",
],
},
sort: {
propDefinition: [
bookingExperts,
"sort",
],
},
fields: {
propDefinition: [
bookingExperts,
"fields",
],
},
include: {
propDefinition: [
bookingExperts,
"include",
],
},
filters: {
type: "object",
label: "Filters",
description: "Additional query params to filter rentable types. Example: `filter[name]=My Rentable Type` [See the documentation](https://developers.bookingexperts.com/reference/administration-rentabletypes-index) for available filters.",
optional: true,
},
},
async run({ $ }) {
const { data } = await this.bookingExperts.listRentableTypesForAdmin({
$,
administrationId: this.administrationId,
params: {
"page[number]": this.page,
"page[size]": this.perPage,
"sort": this.sort,
"fields[rentable_type]": this.fields,
"include": this.include,
...parseObject(this.filters),
},
});

$.export("$summary", `Successfully retrieved ${data?.length ?? 0} rentable types for Administration ${this.administrationId}`);

return data;
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
key: "booking_experts-list-rentabletype-availabilities",
name: "List RentableType Availabilities",
description: "List availabilities of a RentableType you have access to. [See the documentation](https://developers.bookingexperts.com/reference/channel-rentabletype-availabilities-index)",
version: "0.0.4",
version: "0.0.5",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand All @@ -16,7 +16,7 @@
type: "action",
props: {
bookingExperts,
info: {

Check warning on line 19 in components/booking_experts/actions/list-rentabletype-availabilities/list-rentabletype-availabilities.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop info must have a description. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 19 in components/booking_experts/actions/list-rentabletype-availabilities/list-rentabletype-availabilities.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop info must have a label. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "warning",
content: "**The API will only list channels created through the Booking Experts API.**",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
name: "List Reservations",
description: "Lists all reservations for the current organization from Booking Experts. [See the documentation](https://developers.bookingexperts.com/reference/reservations-index)",
key: "booking_experts-list-reservations",
version: "0.0.3",
version: "0.0.4",
type: "action",
annotations: {
destructiveHint: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "booking_experts-search-contacts",
name: "Search Contacts",
description: "Search for contacts by email or phone. [See the documentation](https://developers.bookingexperts.com/reference/contact-search-first)",
version: "0.0.6",
version: "0.0.7",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
name: "Update Guest",
description:
"Update a guest for a reservation. [See the documentation](https://developers.bookingexperts.com/reference/administration-reservation-guests-update)",
version: "0.0.5",
version: "0.0.6",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand All @@ -29,7 +29,7 @@
}),
],
},
info: {

Check warning on line 32 in components/booking_experts/actions/update-guest/update-guest.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop info must have a description. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 32 in components/booking_experts/actions/update-guest/update-guest.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop info must have a label. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "warning",
content:
Expand Down
Loading
Loading