repull 0.2.17 → 0.2.18

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.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/lib/repull/api/airbnb_api.rb +4 -4
  3. data/lib/repull/api/health_api.rb +0 -57
  4. data/lib/repull/api/migrate_api.rb +552 -0
  5. data/lib/repull/api/reservations_api.rb +2 -2
  6. data/lib/repull/models/airbnb_permits_response.rb +1 -1
  7. data/lib/repull/models/airbnb_permits_write_request.rb +1 -1
  8. data/lib/repull/models/airbnb_permits_write_request_permits_inner.rb +43 -4
  9. data/lib/repull/models/{airbnb_permits_write_request_permits_inner_answers_inner.rb → airbnb_permits_write_request_permits_inner_answers_value.rb} +22 -34
  10. data/lib/repull/models/check_migration_cutover200_response.rb +147 -0
  11. data/lib/repull/models/check_migration_cutover_request.rb +175 -0
  12. data/lib/repull/models/check_migration_cutover_request_reservations_inner.rb +216 -0
  13. data/lib/repull/models/connect_provider.rb +18 -5
  14. data/lib/repull/models/connect_session.rb +25 -5
  15. data/lib/repull/models/create_connect_session_request.rb +81 -5
  16. data/lib/repull/models/create_connect_session_request_copy.rb +251 -0
  17. data/lib/repull/models/create_connect_session_request_workspace.rb +196 -0
  18. data/lib/repull/models/delete_migration200_response.rb +147 -0
  19. data/lib/repull/models/delete_migration200_response_data.rb +165 -0
  20. data/lib/repull/models/get_migration200_response.rb +147 -0
  21. data/lib/repull/models/get_migration_channel_map200_response.rb +147 -0
  22. data/lib/repull/models/get_migration_report200_response.rb +147 -0
  23. data/lib/repull/models/list_migrations200_response.rb +158 -0
  24. data/lib/repull/models/listing_content_update_request.rb +10 -1
  25. data/lib/repull/models/listing_content_update_request_pricing.rb +235 -0
  26. data/lib/repull/models/listing_content_update_response.rb +1 -1
  27. data/lib/repull/models/listing_create_request.rb +24 -1
  28. data/lib/repull/models/listing_create_response.rb +14 -4
  29. data/lib/repull/models/migration.rb +303 -0
  30. data/lib/repull/models/migration_channel_map.rb +169 -0
  31. data/lib/repull/models/migration_channel_map_listings_inner.rb +208 -0
  32. data/lib/repull/models/migration_channel_map_listings_inner_airbnb.rb +156 -0
  33. data/lib/repull/models/migration_channel_map_listings_inner_booking.rb +156 -0
  34. data/lib/repull/models/migration_channel_map_sources_inner.rb +167 -0
  35. data/lib/repull/models/migration_completed_event.rb +309 -0
  36. data/lib/repull/models/migration_connections_inner.rb +195 -0
  37. data/lib/repull/models/migration_counts.rb +183 -0
  38. data/lib/repull/models/migration_cutover_check.rb +200 -0
  39. data/lib/repull/models/migration_cutover_check_mismatched_inner.rb +156 -0
  40. data/lib/repull/models/migration_failed_event.rb +309 -0
  41. data/lib/repull/models/migration_import_payload.rb +225 -0
  42. data/lib/repull/models/migration_import_payload_results_inner.rb +165 -0
  43. data/lib/repull/models/migration_import_run.rb +202 -0
  44. data/lib/repull/models/migration_import_run_results_inner.rb +165 -0
  45. data/lib/repull/models/migration_report.rb +179 -0
  46. data/lib/repull/models/migration_report_issues_inner.rb +229 -0
  47. data/lib/repull/models/migration_reservation_ref.rb +184 -0
  48. data/lib/repull/models/reservation.rb +12 -2
  49. data/lib/repull/models/run_migration_import202_response.rb +147 -0
  50. data/lib/repull/models/run_migration_import202_response_data.rb +158 -0
  51. data/lib/repull/models/run_migration_import202_response_data_queued_inner.rb +174 -0
  52. data/lib/repull/models/run_migration_import_request.rb +182 -0
  53. data/lib/repull/models/webhook_event.rb +4 -0
  54. data/lib/repull/models/webhook_event_type.rb +3 -1
  55. data/lib/repull/version.rb +1 -1
  56. data/lib/repull.rb +37 -1
  57. data/openapi/v1.json +3426 -2244
  58. metadata +39 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8c1a1ee1a3f6eb45bcac298a3159badc5ae43b74d643adf5e0783902be12081
4
- data.tar.gz: c3f27c746ed0590a53605a7ed437cb28d978caedb1ed64ecc963fa7b845313d2
3
+ metadata.gz: db31d9b9fe03869bb22646bfd0c6b8c31e28359e22f601380c94d036d1b060e4
4
+ data.tar.gz: 95baad96e6eb93f6c759d646cb9140492c47831f991165469e13ddad65ee9444
5
5
  SHA512:
6
- metadata.gz: 58f92b020009b918f1c6a03f75a9ed18b41ee1ce6484e6d3db89221b0b158bf7aae20b5a32c57af92060389d8ca5d64b1f15ce56bef8dbb9378cb3de9467833e
7
- data.tar.gz: c16ec7aba994999a88c1d9b65e1393f574c5e5a0c2eee17b054e8c8182fc075d6aee5e75ff776bba7aa7b209e108ff176d6d7c1f3bc6374efa6ce985edd07982
6
+ metadata.gz: d7027f2ef9616d8f190542d959b0ca97abb74046618d2eaf801bd74c183c1cb8389304295bd560e0924b2d9709647328200bb255fb2cb34d949965e5fc8b0913
7
+ data.tar.gz: 902507f20e5e3121e1231ee19c42947e60f756c563d18d24346b618464dc2ae994e454914e8d1ffb41cf15084314e4e0072881ff5c6cfc29d4781e41a790a126
@@ -1918,7 +1918,7 @@ module Repull
1918
1918
  end
1919
1919
 
1920
1920
  # List Airbnb permits and licences
1921
- # The regulatory permits, licences and registration numbers attached to an Airbnb listing. **DB-only by default.** `?source=cache` (the default) returns the permits as last mirrored by the sync worker — regulatory body, regulation type, status, permit number — with no upstream call. **`?source=live` also returns the QUESTIONS.** The mirror stores the RESULT of a permit, not what Airbnb asks for it, so a caller that is about to write needs `?source=live` once: it returns each permit flow with the `question_key`, `answer_type` and `options` of every question, and the answers already on file. Airbnb refuses a `question_key` it did not ask for on this listing, so this is not optional guesswork you can skip. Returns `404` when the listing has no Airbnb connection in this workspace, and `403 listing_inactive` when the listing is inactive.
1921
+ # The regulatory permits, licences and registration numbers attached to an Airbnb listing. **DB-only by default.** `?source=cache` (the default) returns the permits as last mirrored by the sync worker — regulatory body, regulation type, status, permit number — with no upstream call. **`?source=live` also returns the QUESTIONS.** The mirror stores the RESULT of a permit, not what Airbnb asks for it, so a caller that is about to write needs `?source=live` once: it returns each permit's `flows[]` with the `answer_key`, `type` and `choices` of every question, and the answers already on file. Airbnb refuses an `answer_key` it did not ask for on this listing, so this is not optional guesswork you can skip. Returns `404` when the listing has no Airbnb connection in this workspace, and `403 listing_inactive` when the listing is inactive.
1922
1922
  # @param id [String] Repull listing id (numeric string).
1923
1923
  # @param [Hash] opts the optional parameters
1924
1924
  # @option opts [String] :source `cache` (default) reads the local mirror only. `live` additionally asks Airbnb for the permit questions. (default to 'cache')
@@ -1929,7 +1929,7 @@ module Repull
1929
1929
  end
1930
1930
 
1931
1931
  # List Airbnb permits and licences
1932
- # The regulatory permits, licences and registration numbers attached to an Airbnb listing. **DB-only by default.** `?source=cache` (the default) returns the permits as last mirrored by the sync worker — regulatory body, regulation type, status, permit number — with no upstream call. **`?source=live` also returns the QUESTIONS.** The mirror stores the RESULT of a permit, not what Airbnb asks for it, so a caller that is about to write needs `?source=live` once: it returns each permit flow with the `question_key`, `answer_type` and `options` of every question, and the answers already on file. Airbnb refuses a `question_key` it did not ask for on this listing, so this is not optional guesswork you can skip. Returns `404` when the listing has no Airbnb connection in this workspace, and `403 listing_inactive` when the listing is inactive.
1932
+ # The regulatory permits, licences and registration numbers attached to an Airbnb listing. **DB-only by default.** `?source=cache` (the default) returns the permits as last mirrored by the sync worker — regulatory body, regulation type, status, permit number — with no upstream call. **`?source=live` also returns the QUESTIONS.** The mirror stores the RESULT of a permit, not what Airbnb asks for it, so a caller that is about to write needs `?source=live` once: it returns each permit's `flows[]` with the `answer_key`, `type` and `choices` of every question, and the answers already on file. Airbnb refuses an `answer_key` it did not ask for on this listing, so this is not optional guesswork you can skip. Returns `404` when the listing has no Airbnb connection in this workspace, and `403 listing_inactive` when the listing is inactive.
1933
1933
  # @param id [String] Repull listing id (numeric string).
1934
1934
  # @param [Hash] opts the optional parameters
1935
1935
  # @option opts [String] :source `cache` (default) reads the local mirror only. `live` additionally asks Airbnb for the permit questions. (default to 'cache')
@@ -3528,7 +3528,7 @@ module Repull
3528
3528
  end
3529
3529
 
3530
3530
  # Answer Airbnb permit questions
3531
- # Answer the regulatory permit questions for a listing — the licence or registration number a city requires to keep the listing up. Read the questions first with `GET …/permits?source=live`: every answer is keyed by a `question_key` Airbnb asks for THIS listing, and the question's `answer_type` decides which value field applies (`text_value`, `date_value`, or `selected_options_value`). Answers are forwarded verbatim — nothing is defaulted or inferred, because a wrong licence number can take a listing down in a regulated city. Send `Idempotency-Key`: a timeout here leaves you unable to tell \"never arrived\" from \"arrived, response lost\", and this is a compliance filing. Airbnb refusing the answers (an unknown question key, a malformed licence number) is `422 airbnb_rejected` carrying Airbnb's own reason. An expired or revoked Airbnb connection is `403 connection_reauth_required`.
3531
+ # Answer the regulatory permit questions for a listing — the licence or registration number a city requires to keep the listing up. Read the questions first with `GET …/permits?source=live`. For each permit, pick one of its `flows[]` and send its `slug` as `flow_slug`; key every answer by the question's `answer_key`, and let the question's `type` decide the value field (`text_value`, `attestation_value`, `radio_value`, `date_value` or `selected_options_value`). Answers are forwarded verbatim — nothing is defaulted or inferred, because a wrong licence number can take a listing down in a regulated city. Send `Idempotency-Key`: a timeout here leaves you unable to tell \"never arrived\" from \"arrived, response lost\", and this is a compliance filing. Airbnb refusing the answers (an unknown `answer_key`, a malformed licence number) is `422 airbnb_rejected` carrying Airbnb's own reason. An expired or revoked Airbnb connection is `403 connection_reauth_required`.
3532
3532
  # @param id [String] Repull listing id (numeric string).
3533
3533
  # @param airbnb_permits_write_request [AirbnbPermitsWriteRequest]
3534
3534
  # @param [Hash] opts the optional parameters
@@ -3540,7 +3540,7 @@ module Repull
3540
3540
  end
3541
3541
 
3542
3542
  # Answer Airbnb permit questions
3543
- # Answer the regulatory permit questions for a listing — the licence or registration number a city requires to keep the listing up. Read the questions first with `GET …/permits?source=live`: every answer is keyed by a `question_key` Airbnb asks for THIS listing, and the question's `answer_type` decides which value field applies (`text_value`, `date_value`, or `selected_options_value`). Answers are forwarded verbatim — nothing is defaulted or inferred, because a wrong licence number can take a listing down in a regulated city. Send `Idempotency-Key`: a timeout here leaves you unable to tell \"never arrived\" from \"arrived, response lost\", and this is a compliance filing. Airbnb refusing the answers (an unknown question key, a malformed licence number) is `422 airbnb_rejected` carrying Airbnb's own reason. An expired or revoked Airbnb connection is `403 connection_reauth_required`.
3543
+ # Answer the regulatory permit questions for a listing — the licence or registration number a city requires to keep the listing up. Read the questions first with `GET …/permits?source=live`. For each permit, pick one of its `flows[]` and send its `slug` as `flow_slug`; key every answer by the question's `answer_key`, and let the question's `type` decide the value field (`text_value`, `attestation_value`, `radio_value`, `date_value` or `selected_options_value`). Answers are forwarded verbatim — nothing is defaulted or inferred, because a wrong licence number can take a listing down in a regulated city. Send `Idempotency-Key`: a timeout here leaves you unable to tell \"never arrived\" from \"arrived, response lost\", and this is a compliance filing. Airbnb refusing the answers (an unknown `answer_key`, a malformed licence number) is `422 airbnb_rejected` carrying Airbnb's own reason. An expired or revoked Airbnb connection is `403 connection_reauth_required`.
3544
3544
  # @param id [String] Repull listing id (numeric string).
3545
3545
  # @param airbnb_permits_write_request [AirbnbPermitsWriteRequest]
3546
3546
  # @param [Hash] opts the optional parameters
@@ -19,63 +19,6 @@ module Repull
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Atlas market-intelligence backend health
23
- # Component-level probe. `GET /v1/health` reports the API as a whole; this reports one dependency so an incident can be localised without guessing.
24
- # @param [Hash] opts the optional parameters
25
- # @return [Hash<String, Object>]
26
- def get_atlas_health(opts = {})
27
- data, _status_code, _headers = get_atlas_health_with_http_info(opts)
28
- data
29
- end
30
-
31
- # Atlas market-intelligence backend health
32
- # Component-level probe. &#x60;GET /v1/health&#x60; reports the API as a whole; this reports one dependency so an incident can be localised without guessing.
33
- # @param [Hash] opts the optional parameters
34
- # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
35
- def get_atlas_health_with_http_info(opts = {})
36
- if @api_client.config.debugging
37
- @api_client.config.logger.debug 'Calling API: HealthApi.get_atlas_health ...'
38
- end
39
- # resource path
40
- local_var_path = '/v1/health/atlas'
41
-
42
- # query parameters
43
- query_params = opts[:query_params] || {}
44
-
45
- # header parameters
46
- header_params = opts[:header_params] || {}
47
- # HTTP header 'Accept' (if needed)
48
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
49
-
50
- # form parameters
51
- form_params = opts[:form_params] || {}
52
-
53
- # http body (model)
54
- post_body = opts[:debug_body]
55
-
56
- # return_type
57
- return_type = opts[:debug_return_type] || 'Hash<String, Object>'
58
-
59
- # auth_names
60
- auth_names = opts[:debug_auth_names] || []
61
-
62
- new_options = opts.merge(
63
- :operation => :"HealthApi.get_atlas_health",
64
- :header_params => header_params,
65
- :query_params => query_params,
66
- :form_params => form_params,
67
- :body => post_body,
68
- :auth_names => auth_names,
69
- :return_type => return_type
70
- )
71
-
72
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
73
- if @api_client.config.debugging
74
- @api_client.config.logger.debug "API called: HealthApi#get_atlas_health\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
75
- end
76
- return data, status_code, headers
77
- end
78
-
79
22
  # API-key authentication path health
80
23
  # Component-level probe. `GET /v1/health` reports the API as a whole; this reports one dependency so an incident can be localised without guessing.
81
24
  # @param [Hash] opts the optional parameters