repull 0.2.51 → 0.2.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/repull/api/listings_api.rb +63 -0
- data/lib/repull/models/apply_connection_mappings200_response_results_inner.rb +14 -4
- data/lib/repull/models/auto_map_connection_units200_response.rb +1 -1
- data/lib/repull/models/auto_map_connection_units200_response_results_inner.rb +184 -0
- data/lib/repull/models/get_listing_ical200_response.rb +298 -0
- data/lib/repull/models/get_listing_ical200_response_vrbo_inner.rb +285 -0
- data/lib/repull/models/get_usage_logs200_response_data_inner.rb +12 -1
- data/lib/repull/models/list_connection_units200_response_units_inner.rb +1 -1
- data/lib/repull/models/listing_ical_feed_changed_event.rb +282 -0
- data/lib/repull/models/listing_ical_feed_changed_payload.rb +355 -0
- data/lib/repull/models/listing_ical_feed_changed_payload_feed.rb +159 -0
- data/lib/repull/models/webhook_event.rb +2 -0
- data/lib/repull/models/webhook_event_type.rb +2 -1
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +6 -0
- data/openapi/v1.json +263 -1
- metadata +8 -2
data/openapi/v1.json
CHANGED
|
@@ -3112,6 +3112,7 @@
|
|
|
3112
3112
|
"listing.deleted",
|
|
3113
3113
|
"listing.suspended",
|
|
3114
3114
|
"listing.reactivated",
|
|
3115
|
+
"listing.ical_feed_changed",
|
|
3115
3116
|
"account.created",
|
|
3116
3117
|
"connect.session.completed",
|
|
3117
3118
|
"connect.session.abandoned",
|
|
@@ -6058,6 +6059,112 @@
|
|
|
6058
6059
|
}
|
|
6059
6060
|
}
|
|
6060
6061
|
},
|
|
6062
|
+
"ListingIcalFeedChangedPayload": {
|
|
6063
|
+
"type": "object",
|
|
6064
|
+
"description": "Payload for `listing.ical_feed_changed`: Repull changed a Vrbo unit's imported calendars, or could not. Repull imports the listing's Repull iCal backup feed into every calendar-synced Vrbo unit, and removes other tools' imported feeds while Repull is the unit's master calendar.",
|
|
6065
|
+
"required": [
|
|
6066
|
+
"object",
|
|
6067
|
+
"provider",
|
|
6068
|
+
"action",
|
|
6069
|
+
"feed",
|
|
6070
|
+
"repullFeedUrl",
|
|
6071
|
+
"trigger",
|
|
6072
|
+
"occurredAt"
|
|
6073
|
+
],
|
|
6074
|
+
"properties": {
|
|
6075
|
+
"object": {
|
|
6076
|
+
"$ref": "#/components/schemas/ListingWebhookObject"
|
|
6077
|
+
},
|
|
6078
|
+
"provider": {
|
|
6079
|
+
"type": "string"
|
|
6080
|
+
},
|
|
6081
|
+
"action": {
|
|
6082
|
+
"type": "string",
|
|
6083
|
+
"description": "`repull_feed_added`: the Repull feed is now imported (`reason: \"repull_feed_missing\"` when it had been removed on Vrbo and was put back). `repull_feed_add_failed`: Vrbo did not take it \u2014 ask the host to add `repullFeedUrl` in Vrbo \u2192 Calendar \u2192 Import calendar, named \"Repull\"; nothing else is changed on the unit until it is there. `other_feed_removed`: another tool's imported calendar (`feed`) was removed. `other_feed_remove_failed`: removing it failed \u2014 ask the host to remove it in Vrbo \u2192 Calendar \u2192 Import calendar. Repull also emails the workspace owner when an action failed."
|
|
6084
|
+
},
|
|
6085
|
+
"feed": {
|
|
6086
|
+
"type": "object",
|
|
6087
|
+
"description": "The imported calendar acted on, as Vrbo shows it.",
|
|
6088
|
+
"properties": {
|
|
6089
|
+
"name": {
|
|
6090
|
+
"type": "string",
|
|
6091
|
+
"nullable": true,
|
|
6092
|
+
"example": "Other PMS 12B"
|
|
6093
|
+
},
|
|
6094
|
+
"url": {
|
|
6095
|
+
"type": "string",
|
|
6096
|
+
"nullable": true,
|
|
6097
|
+
"example": "https://pms.example.com/ical/12b.ics"
|
|
6098
|
+
}
|
|
6099
|
+
}
|
|
6100
|
+
},
|
|
6101
|
+
"repullFeedUrl": {
|
|
6102
|
+
"type": "string",
|
|
6103
|
+
"format": "uri",
|
|
6104
|
+
"description": "The listing's Repull iCal backup feed (`GET /v1/listings/{id}/ical`)."
|
|
6105
|
+
},
|
|
6106
|
+
"reason": {
|
|
6107
|
+
"type": "string",
|
|
6108
|
+
"nullable": true,
|
|
6109
|
+
"description": "Why Repull acted."
|
|
6110
|
+
},
|
|
6111
|
+
"trigger": {
|
|
6112
|
+
"type": "string",
|
|
6113
|
+
"description": "`calendar_sync_enabled`: calendar sync was just switched on for the unit. `drift_check`: the daily Vrbo calendar check."
|
|
6114
|
+
},
|
|
6115
|
+
"error": {
|
|
6116
|
+
"type": "string",
|
|
6117
|
+
"nullable": true,
|
|
6118
|
+
"description": "Vrbo's answer, on a failed action."
|
|
6119
|
+
},
|
|
6120
|
+
"occurredAt": {
|
|
6121
|
+
"type": "string",
|
|
6122
|
+
"format": "date-time"
|
|
6123
|
+
},
|
|
6124
|
+
"docsUrl": {
|
|
6125
|
+
"type": "string",
|
|
6126
|
+
"format": "uri",
|
|
6127
|
+
"example": "https://repull.dev/docs/channels/vrbo/ical-backup"
|
|
6128
|
+
}
|
|
6129
|
+
}
|
|
6130
|
+
},
|
|
6131
|
+
"ListingIcalFeedChangedEvent": {
|
|
6132
|
+
"type": "object",
|
|
6133
|
+
"required": [
|
|
6134
|
+
"event",
|
|
6135
|
+
"eventId",
|
|
6136
|
+
"apiVersion",
|
|
6137
|
+
"timestamp",
|
|
6138
|
+
"data"
|
|
6139
|
+
],
|
|
6140
|
+
"properties": {
|
|
6141
|
+
"event": {
|
|
6142
|
+
"type": "string",
|
|
6143
|
+
"description": "The event name. This field is `event`, not `type`."
|
|
6144
|
+
},
|
|
6145
|
+
"eventId": {
|
|
6146
|
+
"type": "string",
|
|
6147
|
+
"format": "uuid",
|
|
6148
|
+
"description": "Stable across every delivery and replay of this logical event \u2014 dedupe on it."
|
|
6149
|
+
},
|
|
6150
|
+
"apiVersion": {
|
|
6151
|
+
"type": "string",
|
|
6152
|
+
"example": "2026-04"
|
|
6153
|
+
},
|
|
6154
|
+
"timestamp": {
|
|
6155
|
+
"type": "string",
|
|
6156
|
+
"format": "date-time",
|
|
6157
|
+
"description": "When this delivery was built."
|
|
6158
|
+
},
|
|
6159
|
+
"account": {
|
|
6160
|
+
"$ref": "#/components/schemas/WebhookEventAccount"
|
|
6161
|
+
},
|
|
6162
|
+
"data": {
|
|
6163
|
+
"$ref": "#/components/schemas/ListingIcalFeedChangedPayload"
|
|
6164
|
+
}
|
|
6165
|
+
},
|
|
6166
|
+
"description": "Repull added its iCal backup feed to a Vrbo unit, removed another tool's imported feed, or could not. On a `*_failed` action, show the host what to change on Vrbo."
|
|
6167
|
+
},
|
|
6061
6168
|
"ListingSuspendedEvent": {
|
|
6062
6169
|
"type": "object",
|
|
6063
6170
|
"required": [
|
|
@@ -7540,6 +7647,9 @@
|
|
|
7540
7647
|
{
|
|
7541
7648
|
"$ref": "#/components/schemas/ListingReactivatedEvent"
|
|
7542
7649
|
},
|
|
7650
|
+
{
|
|
7651
|
+
"$ref": "#/components/schemas/ListingIcalFeedChangedEvent"
|
|
7652
|
+
},
|
|
7543
7653
|
{
|
|
7544
7654
|
"$ref": "#/components/schemas/AccountCreatedEvent"
|
|
7545
7655
|
},
|
|
@@ -7631,6 +7741,7 @@
|
|
|
7631
7741
|
"listing.deleted": "#/components/schemas/ListingDeletedEvent",
|
|
7632
7742
|
"listing.suspended": "#/components/schemas/ListingSuspendedEvent",
|
|
7633
7743
|
"listing.reactivated": "#/components/schemas/ListingReactivatedEvent",
|
|
7744
|
+
"listing.ical_feed_changed": "#/components/schemas/ListingIcalFeedChangedEvent",
|
|
7634
7745
|
"account.created": "#/components/schemas/AccountCreatedEvent",
|
|
7635
7746
|
"connect.session.completed": "#/components/schemas/ConnectSessionCompletedEvent",
|
|
7636
7747
|
"connect.session.abandoned": "#/components/schemas/ConnectSessionAbandonedEvent",
|
|
@@ -31448,6 +31559,11 @@
|
|
|
31448
31559
|
"type": "string",
|
|
31449
31560
|
"nullable": true
|
|
31450
31561
|
},
|
|
31562
|
+
"dashboardSurface": {
|
|
31563
|
+
"type": "string",
|
|
31564
|
+
"nullable": true,
|
|
31565
|
+
"description": "The repull.dev dashboard page this call was run from (`keys`, `playground`, `quickstart`, `connect`, `settings/connect`), or null for a call your own code made. Dashboard calls don't count toward your plan's request quota."
|
|
31566
|
+
},
|
|
31451
31567
|
"createdAt": {
|
|
31452
31568
|
"type": "string",
|
|
31453
31569
|
"format": "date-time"
|
|
@@ -39879,6 +39995,12 @@
|
|
|
39879
39995
|
},
|
|
39880
39996
|
"error": {
|
|
39881
39997
|
"type": "string"
|
|
39998
|
+
},
|
|
39999
|
+
"ical_feed_url": {
|
|
40000
|
+
"type": "string",
|
|
40001
|
+
"format": "uri",
|
|
40002
|
+
"description": "Vrbo, for a mapped unit: the listing's Repull iCal backup feed (`GET /v1/listings/{id}/ical`). With calendar sync on, Repull imports it into the Vrbo unit by itself (Vrbo \u2192 Calendar \u2192 Import calendar, named \"Repull\") and removes other tools' imported feeds; `listing.ical_feed_changed` reports it. Only if that fails does the host add it by hand.",
|
|
40003
|
+
"example": "https://api.repull.dev/ical/4f9c2d7e1a8b3c6d5e0f9a2b7c4d1e8f3a6b9c2d5e8f1a4b7c0d3e6f9a2b5c8d.ics"
|
|
39882
40004
|
}
|
|
39883
40005
|
}
|
|
39884
40006
|
}
|
|
@@ -40069,7 +40191,7 @@
|
|
|
40069
40191
|
},
|
|
40070
40192
|
"meta": {
|
|
40071
40193
|
"type": "object",
|
|
40072
|
-
"description": "Channel details that identify the unit. Booking.com Extranet: `hotel` (property name), `hotelId` (Booking.com property ID), `roomId` (Booking.com room ID), `city`. Vrbo: `headline`, `address`, `vrboStatus`, `calendarSync` (whether the unit's prices and availability are pushed to Vrbo) and, while Vrbo says another tool manages the account's calendar, `calendarSyncBlocked: \"calendar_managed_elsewhere\"`; the Vrbo listing ID is `unit_id`."
|
|
40194
|
+
"description": "Channel details that identify the unit. Booking.com Extranet: `hotel` (property name), `hotelId` (Booking.com property ID), `roomId` (Booking.com room ID), `city`. Vrbo: `headline`, `address`, `vrboStatus`, `calendarSync` (whether the unit's prices and availability are pushed to Vrbo) and, while Vrbo says another tool manages the account's calendar, `calendarSyncBlocked: \"calendar_managed_elsewhere\"`, and for a mapped unit `icalBackup`: `{ feedUrl, status, otherFeeds }` \u2014 the listing's Repull iCal backup feed and whether Vrbo imports it (`status` as on `GET /v1/listings/{id}/ical`: `imported`, `pending`, `failed`, `not_imported`, `off`; Repull adds it itself, so only on `failed` does the host add `feedUrl` in Vrbo \u2192 Calendar \u2192 Import calendar, named \"Repull\"); the Vrbo listing ID is `unit_id`."
|
|
40073
40195
|
}
|
|
40074
40196
|
}
|
|
40075
40197
|
}
|
|
@@ -44437,6 +44559,146 @@
|
|
|
44437
44559
|
}
|
|
44438
44560
|
}
|
|
44439
44561
|
}
|
|
44562
|
+
},
|
|
44563
|
+
"/v1/listings/{id}/ical": {
|
|
44564
|
+
"get": {
|
|
44565
|
+
"operationId": "get_listing_ical",
|
|
44566
|
+
"summary": "Repull iCal backup feed",
|
|
44567
|
+
"description": "The listing's Repull iCal backup feed: an iCal calendar named \"Repull\" with the listing's bookings and blocks as all-day events, at an unguessable address on `api.repull.dev` (created on first request, one per listing). Channels that import iCal close those nights from it on their own schedule \u2014 availability only, never prices.\n\n**Vrbo:** Repull imports this feed into every calendar-synced Vrbo unit by itself, as a backup for the direct calendar push, and removes other tools' imported feeds while Repull is the unit's master calendar. `vrbo` says, per unit, whether Vrbo imports it (as last checked, once a day). When `status` is `failed`, ask the host to add `url` in Vrbo \u2192 Calendar \u2192 Import calendar, named \"Repull\". Changes arrive as `listing.ical_feed_changed`.\n\nThe address is a credential: anyone with it can read the listing's booked dates (no guest details). Returns `403 listing_inactive` for an inactive listing.",
|
|
44568
|
+
"tags": [
|
|
44569
|
+
"Listings"
|
|
44570
|
+
],
|
|
44571
|
+
"parameters": [
|
|
44572
|
+
{
|
|
44573
|
+
"name": "id",
|
|
44574
|
+
"in": "path",
|
|
44575
|
+
"required": true,
|
|
44576
|
+
"schema": {
|
|
44577
|
+
"type": "integer"
|
|
44578
|
+
},
|
|
44579
|
+
"description": "Repull listing id."
|
|
44580
|
+
}
|
|
44581
|
+
],
|
|
44582
|
+
"responses": {
|
|
44583
|
+
"200": {
|
|
44584
|
+
"description": "The feed address and its Vrbo state.",
|
|
44585
|
+
"content": {
|
|
44586
|
+
"application/json": {
|
|
44587
|
+
"schema": {
|
|
44588
|
+
"type": "object",
|
|
44589
|
+
"required": [
|
|
44590
|
+
"listingId",
|
|
44591
|
+
"url",
|
|
44592
|
+
"calendarName",
|
|
44593
|
+
"enabled",
|
|
44594
|
+
"vrbo"
|
|
44595
|
+
],
|
|
44596
|
+
"properties": {
|
|
44597
|
+
"listingId": {
|
|
44598
|
+
"type": "string",
|
|
44599
|
+
"example": "1001"
|
|
44600
|
+
},
|
|
44601
|
+
"url": {
|
|
44602
|
+
"type": "string",
|
|
44603
|
+
"format": "uri",
|
|
44604
|
+
"description": "The feed address. Import it on any channel that reads iCal.",
|
|
44605
|
+
"example": "https://api.repull.dev/ical/4f9c2d7e1a8b3c6d5e0f9a2b7c4d1e8f3a6b9c2d5e8f1a4b7c0d3e6f9a2b5c8d.ics"
|
|
44606
|
+
},
|
|
44607
|
+
"calendarName": {
|
|
44608
|
+
"type": "string",
|
|
44609
|
+
"enum": [
|
|
44610
|
+
"Repull"
|
|
44611
|
+
],
|
|
44612
|
+
"description": "The calendar name the feed carries, and the name to give it when importing it by hand."
|
|
44613
|
+
},
|
|
44614
|
+
"enabled": {
|
|
44615
|
+
"type": "boolean",
|
|
44616
|
+
"description": "False when the listing's feed was turned off; the address then answers 404."
|
|
44617
|
+
},
|
|
44618
|
+
"vrbo": {
|
|
44619
|
+
"type": "array",
|
|
44620
|
+
"description": "One entry per Vrbo unit mapped to the listing.",
|
|
44621
|
+
"items": {
|
|
44622
|
+
"type": "object",
|
|
44623
|
+
"required": [
|
|
44624
|
+
"unitId",
|
|
44625
|
+
"calendarSync",
|
|
44626
|
+
"status",
|
|
44627
|
+
"otherFeeds",
|
|
44628
|
+
"checkedAt"
|
|
44629
|
+
],
|
|
44630
|
+
"properties": {
|
|
44631
|
+
"unitId": {
|
|
44632
|
+
"type": "string",
|
|
44633
|
+
"description": "The Vrbo listing number (`unitId` on `GET /v1/connections/{id}/units`).",
|
|
44634
|
+
"example": "7001234"
|
|
44635
|
+
},
|
|
44636
|
+
"calendarSync": {
|
|
44637
|
+
"type": "boolean",
|
|
44638
|
+
"description": "Calendar sync is on for the unit."
|
|
44639
|
+
},
|
|
44640
|
+
"status": {
|
|
44641
|
+
"type": "string",
|
|
44642
|
+
"enum": [
|
|
44643
|
+
"imported",
|
|
44644
|
+
"pending",
|
|
44645
|
+
"failed",
|
|
44646
|
+
"not_imported",
|
|
44647
|
+
"off"
|
|
44648
|
+
],
|
|
44649
|
+
"description": "`imported`: Vrbo imports the feed. `pending`: calendar sync is on and Repull has not checked the unit yet \u2014 it adds the feed itself. `failed`: Vrbo did not take it; ask the host to add `url` in Vrbo \u2192 Calendar \u2192 Import calendar, named \"Repull\". `not_imported`: checked, not there, and not added (for example, the feed is turned off). `off`: calendar sync is off, so Repull leaves the unit's imported calendars alone."
|
|
44650
|
+
},
|
|
44651
|
+
"otherFeeds": {
|
|
44652
|
+
"type": "array",
|
|
44653
|
+
"items": {
|
|
44654
|
+
"type": "string"
|
|
44655
|
+
},
|
|
44656
|
+
"description": "Names of other calendars the unit still imports, as Vrbo shows them.",
|
|
44657
|
+
"example": []
|
|
44658
|
+
},
|
|
44659
|
+
"checkedAt": {
|
|
44660
|
+
"type": "string",
|
|
44661
|
+
"format": "date-time",
|
|
44662
|
+
"nullable": true,
|
|
44663
|
+
"description": "When Repull last read the unit's imported calendars."
|
|
44664
|
+
}
|
|
44665
|
+
}
|
|
44666
|
+
}
|
|
44667
|
+
}
|
|
44668
|
+
}
|
|
44669
|
+
},
|
|
44670
|
+
"example": {
|
|
44671
|
+
"listingId": "1001",
|
|
44672
|
+
"url": "https://api.repull.dev/ical/4f9c2d7e1a8b3c6d5e0f9a2b7c4d1e8f3a6b9c2d5e8f1a4b7c0d3e6f9a2b5c8d.ics",
|
|
44673
|
+
"calendarName": "Repull",
|
|
44674
|
+
"enabled": true,
|
|
44675
|
+
"vrbo": [
|
|
44676
|
+
{
|
|
44677
|
+
"unitId": "7001234",
|
|
44678
|
+
"calendarSync": true,
|
|
44679
|
+
"status": "imported",
|
|
44680
|
+
"otherFeeds": [],
|
|
44681
|
+
"checkedAt": "2026-11-19T05:12:40.000Z"
|
|
44682
|
+
}
|
|
44683
|
+
]
|
|
44684
|
+
}
|
|
44685
|
+
}
|
|
44686
|
+
}
|
|
44687
|
+
},
|
|
44688
|
+
"401": {
|
|
44689
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
44690
|
+
},
|
|
44691
|
+
"403": {
|
|
44692
|
+
"$ref": "#/components/responses/ListingInactive"
|
|
44693
|
+
},
|
|
44694
|
+
"404": {
|
|
44695
|
+
"$ref": "#/components/responses/NotFound"
|
|
44696
|
+
},
|
|
44697
|
+
"422": {
|
|
44698
|
+
"$ref": "#/components/responses/UnprocessableEntity"
|
|
44699
|
+
}
|
|
44700
|
+
}
|
|
44701
|
+
}
|
|
44440
44702
|
}
|
|
44441
44703
|
}
|
|
44442
44704
|
}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: repull
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.52
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Nikolov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -189,6 +189,7 @@ files:
|
|
|
189
189
|
- lib/repull/models/apply_connection_mappings_request.rb
|
|
190
190
|
- lib/repull/models/apply_connection_mappings_request_mappings_inner.rb
|
|
191
191
|
- lib/repull/models/auto_map_connection_units200_response.rb
|
|
192
|
+
- lib/repull/models/auto_map_connection_units200_response_results_inner.rb
|
|
192
193
|
- lib/repull/models/auto_map_connection_units_request.rb
|
|
193
194
|
- lib/repull/models/availability_batch_write_request.rb
|
|
194
195
|
- lib/repull/models/availability_write_request.rb
|
|
@@ -371,6 +372,8 @@ files:
|
|
|
371
372
|
- lib/repull/models/get_listing_calendar_sync200_response_channels_inner_problems_inner.rb
|
|
372
373
|
- lib/repull/models/get_listing_calendar_sync200_response_channels_inner_queue.rb
|
|
373
374
|
- lib/repull/models/get_listing_calendar_sync200_response_channels_inner_queue_last_push.rb
|
|
375
|
+
- lib/repull/models/get_listing_ical200_response.rb
|
|
376
|
+
- lib/repull/models/get_listing_ical200_response_vrbo_inner.rb
|
|
374
377
|
- lib/repull/models/get_listing_markups200_response.rb
|
|
375
378
|
- lib/repull/models/get_listing_markups200_response_airbnb_inner.rb
|
|
376
379
|
- lib/repull/models/get_listing_markups200_response_booking_inner.rb
|
|
@@ -504,6 +507,9 @@ files:
|
|
|
504
507
|
- lib/repull/models/listing_generate_content_request.rb
|
|
505
508
|
- lib/repull/models/listing_generate_content_response.rb
|
|
506
509
|
- lib/repull/models/listing_hotel.rb
|
|
510
|
+
- lib/repull/models/listing_ical_feed_changed_event.rb
|
|
511
|
+
- lib/repull/models/listing_ical_feed_changed_payload.rb
|
|
512
|
+
- lib/repull/models/listing_ical_feed_changed_payload_feed.rb
|
|
507
513
|
- lib/repull/models/listing_list_response.rb
|
|
508
514
|
- lib/repull/models/listing_market_state_request.rb
|
|
509
515
|
- lib/repull/models/listing_market_state_response.rb
|