Skip to content

Commit 62a7d62

Browse files
authored
Add guest gender dob (#19348)
* Booking experts - update guests * chore(ci): commit lockfile changes required by pre-push hook * chore: bump version to 1.2.2
1 parent 17afb0a commit 62a7d62

File tree

5 files changed

+62
-12
lines changed

5 files changed

+62
-12
lines changed

components/booking_experts/actions/add-guest-to-reservation/add-guest-to-reservation.mjs

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import bookingExperts from "../../booking_experts.app.mjs";
33
export default {
44
key: "booking_experts-add-guest-to-reservation",
55
name: "Add Guest to Reservation",
6-
description: "Add a guest to a reservation. [See the documentation](https://developers.bookingexperts.com/reference/administration-reservation-guests-create)",
7-
version: "0.0.5",
6+
description:
7+
"Add a guest to a reservation. [See the documentation](https://developers.bookingexperts.com/reference/administration-reservation-guests-create)",
8+
version: "0.0.6",
89
annotations: {
910
destructiveHint: false,
1011
openWorldHint: true,
@@ -74,6 +75,23 @@ export default {
7475
description: "The country code of the guest",
7576
optional: true,
7677
},
78+
gender: {
79+
type: "string",
80+
label: "Gender",
81+
description: "The gender of the guest",
82+
optional: true,
83+
options: [
84+
"male",
85+
"female",
86+
"other",
87+
],
88+
},
89+
dateOfBirth: {
90+
type: "string",
91+
label: "Date of Birth",
92+
description: "The date of birth of the guest in YYYY-MM-DD format",
93+
optional: true,
94+
},
7795
},
7896
async run({ $ }) {
7997
const { data } = await this.bookingExperts.addGuestToReservation({
@@ -92,6 +110,8 @@ export default {
92110
city: this.city,
93111
postal_code: this.postalCode,
94112
country_code: this.countryCode,
113+
gender: this.gender,
114+
date_of_birth: this.dateOfBirth,
95115
},
96116
},
97117
},

components/booking_experts/actions/update-guest/update-guest.mjs

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import bookingExperts from "../../booking_experts.app.mjs";
33
export default {
44
key: "booking_experts-update-guest",
55
name: "Update Guest",
6-
description: "Update a guest for a reservation. [See the documentation](https://developers.bookingexperts.com/reference/administration-reservation-guests-update)",
7-
version: "0.0.3",
6+
description:
7+
"Update a guest for a reservation. [See the documentation](https://developers.bookingexperts.com/reference/administration-reservation-guests-update)",
8+
version: "0.0.4",
89
annotations: {
910
destructiveHint: false,
1011
openWorldHint: true,
@@ -31,7 +32,8 @@ export default {
3132
info: {
3233
type: "alert",
3334
alertType: "warning",
34-
content: "**The API will only list guests created through the Booking Experts API.**",
35+
content:
36+
"**The API will only list guests created through the Booking Experts API.**",
3537
},
3638
guestId: {
3739
propDefinition: [
@@ -93,6 +95,23 @@ export default {
9395
description: "The country code of the guest",
9496
optional: true,
9597
},
98+
gender: {
99+
type: "string",
100+
label: "Gender",
101+
description: "The gender of the guest",
102+
optional: true,
103+
options: [
104+
"male",
105+
"female",
106+
"other",
107+
],
108+
},
109+
dateOfBirth: {
110+
type: "string",
111+
label: "Date of Birth",
112+
description: "The date of birth of the guest in YYYY-MM-DD format",
113+
optional: true,
114+
},
96115
},
97116
async run({ $ }) {
98117
const { data } = await this.bookingExperts.updateGuest({
@@ -113,6 +132,8 @@ export default {
113132
city: this.city,
114133
postal_code: this.postalCode,
115134
country_code: this.countryCode,
135+
gender: this.gender,
136+
date_of_birth: this.dateOfBirth,
116137
},
117138
},
118139
},

components/booking_experts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/booking_experts",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"description": "Pipedream Booking Experts Components",
55
"main": "booking_experts.app.mjs",
66
"keywords": [

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"@pipedream/eslint-plugin-pipedream": "0.3.0",
5050
"@pipedream/types": "0.1.4",
5151
"@tsconfig/node14": "^1.0.1",
52+
"@types/glob": "^8.1.0",
5253
"@types/jest": "^27.4.1",
5354
"@typescript-eslint/eslint-plugin": "^8",
5455
"@typescript-eslint/parser": "^8",

pnpm-lock.yaml

Lines changed: 14 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)