import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { GBPLocation, QueryGoogleLocationsOptions, QueryGoogleLocationsResponse, GetGoogleLocationResponse, CreateLocationApplicationErrors, UpdateLocation, CreateGoogleLocationOptions, CreateGoogleLocationResponse, CreateGoogleLocationApplicationErrors, DeleteGoogleLocationApplicationErrors, GoogleLocation, UpdateGoogleLocationOptions, UpdateGoogleLocationResponse, UpdateGoogleLocationApplicationErrors, BulkCreateLocationsOptions, BulkCreateLocationsResponse, BulkCreateLocationsApplicationErrors, BulkDeleteLocationsResponse, ListGbpAccountsOptions, ListGbpAccountsResponse, ListGbpAccountsApplicationErrors, ListUnimportedLocationsOptions, ListUnimportedLocationsResponse, ListUnimportedLocationsApplicationErrors, GetNotificationSettingResponse, GetNotificationSettingApplicationErrors, UpdateNotificationSetting, UpdateNotificationSettingOptions, UpdateNotificationSettingResponse, UpdateNotificationSettingApplicationErrors, ListReviewsOptions, ListReviewsResponse, ListReviewsApplicationErrors, PutReviewReplyIdentifiers, PutReviewReplyResponse, PutReviewReplyApplicationErrors, DeleteReviewReplyIdentifiers, DeleteReviewReplyApplicationErrors, ListMediaOptions, ListMediaResponse, ListMediaApplicationErrors, CreateMediaOptions, CreateMediaResponse, CreateMediaApplicationErrors, DeleteMediaIdentifiers, DeleteMediaApplicationErrors, LocalPost, CreateLocalPostResponse, CreateLocalPostApplicationErrors, ListLocalPostsOptions, ListLocalPostsResponse, ListLocalPostsApplicationErrors, GetLocalPostIdentifiers, GetLocalPostResponse, GetLocalPostApplicationErrors, UpdateLocalPostIdentifiers, UpdateLocalPostOptions, UpdateLocalPostResponse, UpdateLocalPostApplicationErrors, DeleteLocalPostIdentifiers, DeleteLocalPostApplicationErrors, ReportLocalPostInsightsOptions, ReportLocalPostInsightsResponse, ReportLocalPostInsightsApplicationErrors, LocationAttribute, UpdateLocationAttributesResponse, UpdateLocationAttributesApplicationErrors, GetLocationAttributesResponse, GetLocationAttributesApplicationErrors, GetLocationLodgingResponse, GetLocationLodgingApplicationErrors, Lodging, UpdateLocationLodgingOptions, UpdateLocationLodgingResponse, UpdateLocationLodgingApplicationErrors, ListAttributeMetadataOptions, ListAttributeMetadataResponse, ListAttributeMetadataApplicationErrors, ListCategoriesOptions, ListCategoriesResponse, ListCategoriesApplicationErrors, GetVerificationOptions, GetVerificationOptionsResponse, GetVerificationOptionsApplicationErrors, VerificationMethodWithLiterals, StartVerificationOptions, StartVerificationResponse, StartVerificationApplicationErrors, CompleteVerificationOptions, CompleteVerificationResponse, CompleteVerificationApplicationErrors, GetVoiceOfMerchantResponse, InsightsTimeRange, GetLocationInsightsOptions, GetLocationInsightsResponse, MonthlyRange, ListSearchKeywordImpressionsOptions, ListSearchKeywordImpressionsResponse, ListSearchKeywordImpressionsApplicationErrors, InviteAdminToLocationOptions, InviteAdminToLocationResponse, GetLocationAdminsResponse, GetAddressSchemaByCountryCodeOptions, GetAddressSchemaByCountryCodeResponse, GetAddressSchemaByCountryCodeApplicationErrors, SuggestRegionsOptions, SuggestRegionsResponse, SuggestRegionsApplicationErrors, SuggestEstablishmentsOptions, SuggestEstablishmentsResponse, SuggestEstablishmentsApplicationErrors, SearchGoogleLocationsOptions, SearchGoogleLocationsResponse, SearchGoogleLocationsApplicationErrors, LocationsQueryBuilder, GBPLocationQuery, typedQueryGbpLocations } from './index.typings.js'; export { Accessibility, AccountInfo, ActionEvent, ActionType, ActionTypeWithLiterals, Activities, AddressFieldType, AddressFieldTypeWithLiterals, AddressSchema, AddressVerificationData, AmenityException, AmenityExceptionWithLiterals, ApplicationError, AttributeMetadata, AttributeValueMetadata, AttributeValueMetadataValueOneOf, AttributeValueType, AttributeValueTypeWithLiterals, BreeamCertification, BreeamCertificationWithLiterals, BulkActionMetadata, BulkCreateLocationResult, BulkCreateLocationsRequest, BulkDeleteLocationResult, BulkDeleteLocationsRequest, Business, BusinessHours, BusinessType, BusinessTypeWithLiterals, CalendarMonth, CallToAction, Category, CategoryMetadata, CategoryRegion, CategoryView, CategoryViewWithLiterals, CommonQueryWithEntityContext, CompleteVerificationRequest, Connectivity, CreateGoogleLocationRequest, CreateLocalPostRequest, CreateLocationRequest, CreateLocationResponse, CreateMediaRequest, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DailyMetric, DailyMetricValue, DailyMetricWithLiterals, DayOfWeek, DayOfWeekWithLiterals, DeleteGoogleLocationRequest, DeleteGoogleLocationResponse, DeleteLocalPostRequest, DeleteLocalPostResponse, DeleteLocationRequest, DeleteLocationResponse, DeleteMediaRequest, DeleteMediaResponse, DeleteReviewReplyRequest, DeleteReviewReplyResponse, DomainEvent, DomainEventBodyOneOf, EcoCertificate, EcoCertificateWithLiterals, EcoCertification, EmailVerificationData, Empty, EnergyEfficiency, EnhancedCleaning, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EstablishmentSuggestion, Families, FieldViolation, FoodAndDrink, FoodMenuResult, GBPLocationQuerySpec, GbpAccount, GetAddressSchemaByCountryCodeRequest, GetGBPLocationRequest, GetGBPLocationResponse, GetGoogleLocationRequest, GetLocalPostRequest, GetLocationAdminsRequest, GetLocationAttributesRequest, GetLocationInsightsRequest, GetLocationLodgingRequest, GetNotificationSettingRequest, GetVerificationOptionsRequest, GetVoiceOfMerchantRequest, GoogleApiCallFailedError, GoogleLocationMatch, GoogleLocationValidationError, GuestUnitFeatures, GuestUnitType, HealthAndSafety, Housekeeping, IdentificationData, IdentificationDataIdOneOf, IncreasedFoodSafety, InsightsMetric, InvalidUpdateMaskError, InvalidValueJsonError, InviteAdminToLocationRequest, ItemMetadata, LanguageSpoken, LatLng, LeedCertification, LeedCertificationWithLiterals, ListAttributeMetadataOptionsLookupOneOf, ListAttributeMetadataRequest, ListAttributeMetadataRequestLookupOneOf, ListCategoriesRequest, ListGbpAccountsRequest, ListLocalPostsRequest, ListMediaRequest, ListReviewsRequest, ListSearchKeywordImpressionsRequest, ListUnimportedLocationsRequest, LivingArea, LivingAreaAccessibility, LivingAreaEating, LivingAreaFeatures, LivingAreaLayout, LivingAreaSleeping, LocalPostDate, LocalPostEvent, LocalPostFieldError, LocalPostInsights, LocalPostMedia, LocalPostMetric, LocalPostMetricValue, LocalPostMetricWithLiterals, LocalPostOffer, LocalPostSchedule, LocalPostState, LocalPostStateWithLiterals, LocalPostTimeOfDay, LocalPostTopicType, LocalPostTopicTypeWithLiterals, LocationAdmin, LocationDbPersistFailedError, LocationNotDeletableViaApiError, LocationWithGoogle, LocationWithGoogleGoogleResultOneOf, LocationWithGoogleVoiceOfMerchantResultOneOf, LocationsQueryResult, LodgingMetadata, LodgingTimeOfDay, MatchStatus, MatchStatusWithLiterals, MediaCategory, MediaCategoryWithLiterals, MediaFormat, MediaFormatWithLiterals, MediaItem, MediaItemAttribution, MessageEnvelope, Metadata, MinimizedContact, MoreHoursType, NotificationSetting, NotificationType, NotificationTypeWithLiterals, OfflineVideoVerificationData, OpenInfo, Parking, PaymentOptions, PersonalProtection, Pets, PhysicalDistancing, PlaceInfo, Policies, Pools, PostalAddress, Profile, Property, PutReviewReplyRequest, QueryGBPLocationsRequest, QueryGBPLocationsResponse, QueryGoogleLocationsRequest, RecommendationReason, RecommendationReasonWithLiterals, RegionSuggestion, ReportLocalPostInsightsRequest, RestoreInfo, Review, ReviewMetrics, ReviewReply, ReviewSortOrder, ReviewSortOrderWithLiterals, Role, RoleWithLiterals, SearchGoogleLocationsOptionsCriteriaOneOf, SearchGoogleLocationsRequest, SearchGoogleLocationsRequestCriteriaOneOf, SearchKeywordImpression, SearchKeywordImpressionImpressionsOneOf, ServiceArea, ServiceType, Services, SortOrder, SortOrderWithLiterals, Sorting, SpecialHourPeriod, SpecialHoursClosureTooLongError, StartVerificationRequest, State, StateWithLiterals, Status, StatusWithLiterals, SuggestEstablishmentsRequest, SuggestRegionsRequest, Sustainability, SustainabilityCertifications, SustainableSourcing, TimeOfDay, Transportation, UnimportedLocation, UnitTier, UnitTierWithLiterals, UpdateGoogleLocationRequest, UpdateLocalPostRequest, UpdateLocationAttributesRequest, UpdateLocationFoodMenusApplicationErrors, UpdateLocationFoodMenusOptions, UpdateLocationFoodMenusRequest, UpdateLocationFoodMenusResponse, UpdateLocationLodgingRequest, UpdateLocationRequest, UpdateLocationResponse, UpdateNotificationSettingRequest, VerificationMethod, VerificationOption, VerificationOptionDataOneOf, VerificationState, VerificationStateWithLiterals, ViewsFromUnit, Violation, VoiceOfMerchantState, WasteReduction, WaterConservation, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Wellness, _Date, utils } from './index.typings.js'; declare function getGbpLocation$1(httpClient: HttpClient): GetGbpLocationSignature; interface GetGbpLocationSignature { /** * Retrieves a GBP location as it's stored for the site. * * This doesn't call Google, so it's the cheapest way to check whether a * location is recorded and to read its `accountId` or * `serviceAreaPostalAddress`. To get the live Google profile as well, call * Get Google Location. * @param - ID of the location to retrieve. This is Google's location identifier. * @returns The retrieved location. */ (locationId: string): Promise>; } declare function queryGoogleLocations$1(httpClient: HttpClient): QueryGoogleLocationsSignature; interface QueryGoogleLocationsSignature { /** * Retrieves a list of up to 20 GBP locations with their current Google data, * given the provided paging, filtering, and sorting. * * Takes the same filters as Query GBP Locations, and additionally retrieves each * location's live profile data from Google: title, address, opening hours and so * on. Use it when you need both the stored identifiers and the current profile * in one call. * * The default and maximum page size is 20. Requests with a larger limit are * rejected. While `pagingMetadata.hasNext` is true, pass `pagingMetadata.cursors.next` * as `query.cursorPaging.cursor` to retrieve the next page. * * A location whose Google data can't be retrieved is still returned, with the * reason in that location's `googleError`. The call as a whole succeeds and * paging is unaffected, so check `googleError` per location rather than relying * on the response status. * * Supported properties for filtering and sorting: `id`, `googleLocationId`, * `accountId`. * * To learn about working with Query methods, see * [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language), * [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), * and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection). */ (options?: QueryGoogleLocationsOptions): Promise>; } declare function getGoogleLocation$1(httpClient: HttpClient): GetGoogleLocationSignature; interface GetGoogleLocationSignature { /** * Retrieves a GBP location with its current Google data. * * The single-location counterpart of Query Google Locations, with the same * behavior: if the profile data can't be retrieved from Google, the location is * still returned and the reason is in `googleError`. * * If the location isn't found, the call fails and Google isn't contacted. * @param - ID of the location to retrieve. This is Google's location identifier. */ (locationId: string): Promise>; } declare function createLocation$1(httpClient: HttpClient): CreateLocationSignature; interface CreateLocationSignature { /** * Imports an existing Google Business Profile location. * * Specify the Google account ID in `accountId` and the Google location ID in * `location.id`. Both are available from List Unimported Locations. * * This doesn't create a listing in Google. It records a location the Google * account already has, so that the site can manage it. To create a new listing, * call Create Google Location. * * A Google account must be connected first, or the call fails with * `CONNECTION_NOT_FOUND`. See the * [Connection API](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/connection-v1). * @param - The location to record for this site. * * `id` is required and must be Google's location ID. `accountId` is required * too, because it identifies which Google account holds the listing. * @returns The created location. */ (location: NonNullablePaths): Promise & { __applicationErrorsType?: CreateLocationApplicationErrors; }>; } declare function updateLocation$1(httpClient: HttpClient): UpdateLocationSignature; interface UpdateLocationSignature { /** * Updates a GBP location's stored fields. * * This doesn't change anything on the Google Business Profile. Only fields the * GBP location itself stores can be updated: `serviceAreaPostalAddress`, and * `feedEntityId` if it doesn't have a value yet. Naming a Google-owned field in * `fieldMask` has no effect. To change the profile in Google, call Update Google * Location. * * List the fields to change in `fieldMask`. * @param - Google's opaque location identifier on the public API. * @returns The updated location. */ (_id: string, location: UpdateLocation): Promise>; } declare function deleteLocation$1(httpClient: HttpClient): DeleteLocationSignature; interface DeleteLocationSignature { /** * Deletes a GBP location, leaving the Google Business Profile listing in place. * * This is the recovery path, for when the listing is already gone from Google, or * is unreachable, and the stored location needs cleaning up. For the usual * delete, which removes the listing from Google too, call Delete Google Location. * @param - ID of the location to delete. This is Google's location identifier. */ (locationId: string): Promise; } declare function createGoogleLocation$1(httpClient: HttpClient): CreateGoogleLocationSignature; interface CreateGoogleLocationSignature { /** * Creates a Business Profile listing in Google and records it for the site. * * Use this to add a location the Google account doesn't have yet. To record a * listing that already exists, call Create Location instead. * * Specify at least one of `storefrontAddress` or `serviceArea`. If neither is set, * the call fails with `INVALID_LOCATION_PAYLOAD`. * * Both can be set together when `serviceArea.businessType` is * `CUSTOMER_AND_BUSINESS_LOCATION`, which is how a business that has premises and * also travels to customers is represented. * * A Google account must be connected first. See the * [Connection API](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/connection-v1). * * Set `validateOnly` to check the details without creating anything: Google * runs the same validation and returns the same errors, but no listing is * created and none is recorded for the site. On success the response has no * `location` — that absence is what "valid" looks like. * * Errors: * - `CONNECTION_NOT_FOUND`: no Google account is connected. Google isn't called. * - `TOKEN_RESOLUTION_FAILED`: the stored credentials couldn't be used. Google * isn't called and nothing is created. * - `GOOGLE_LOCATION_VALIDATION_FAILED`: Google rejected the details, for * example an invalid phone number or address, or a listing that needs a * postcard PIN. The specific reasons are in the error payload, and they're * worth surfacing: they tell the site owner what to correct. Nothing is * created. * - `GOOGLE_API_CALL_FAILED`: the call to Google failed for any other reason. * Google's status and response are in the error payload. Nothing is created. * - `LOCATION_DB_PERSIST_FAILED`: Google created the listing but it couldn't be * recorded for the site. The new Google location ID is in the error payload, * so keep it: the listing exists in Google and can be recorded with Create * Location, or removed with Delete Google Location. * @param - GBP account id (numeric, no "accounts/" prefix). The server forms the * Google resource name as "accounts/{account_id}". */ (accountId: string, options?: NonNullablePaths): Promise & { __applicationErrorsType?: CreateGoogleLocationApplicationErrors; }>; } declare function deleteGoogleLocation$1(httpClient: HttpClient): DeleteGoogleLocationSignature; interface DeleteGoogleLocationSignature { /** * Deletes a Business Profile listing from Google and removes it from the site. * * This is the usual way to delete a location. To remove a location from the site * while leaving the Google listing alone, call Delete Location. * * Google refuses to delete some listings through its API, including verified or * claimed listings, chain-managed locations, and suspended ones. Those have to be * removed by the site owner at business.google.com. * * Errors: * - `NOT_FOUND`: the location isn't recorded for this site. Google isn't called. * - `LOCATION_NOT_DELETABLE_VIA_API`: Google won't allow the delete, for one of * the reasons above. The location is left in place. Note this is checked before * the delete, and Google's answer can change in between, so a delete can still * fail after the check passed. * - `GOOGLE_API_CALL_FAILED`: the call to Google failed. The location is left in * place so the call can be retried. If Google keeps refusing, remove the * listing at business.google.com and then call Delete Location. * - `LOCATION_DB_PERSIST_FAILED`: Google deleted the listing but the site's copy * couldn't be removed. Call Delete Location to finish the job. * @param - ID of the location to delete. This is Google's location identifier. */ (locationId: string): Promise; } declare function updateGoogleLocation$1(httpClient: HttpClient): UpdateGoogleLocationSignature; interface UpdateGoogleLocationSignature { /** * Updates a location's Business Profile in Google. * * This changes the profile the public sees on Google. It doesn't change the * location stored for the site: to update `serviceAreaPostalAddress`, call Update * Location. * * `fieldMask` is required, and only these top-level fields can be updated: * `title`, `storeCode`, `primaryPhone`, `additionalPhones`, `primaryCategory`, * `additionalCategories`, `storefrontAddress`, `websiteUri`, `regularHours`, * `specialHours`, `serviceArea`, `latLng`, `openInfo`, `profile`. * * Anything else, including a nested path such as `profile.description` or an * empty mask, fails with `INVALID_UPDATE_MASK` before Google is called. * `languageCode` can't be updated: Google treats it as read-only. * * ## Categories and phone numbers replace the whole set * * Google doesn't allow categories or phone numbers to be updated one at a time, * so each pair behaves as a single value and Google replaces everything in it. * Read this before updating either, because omitting a value deletes it. * * For categories: * * - Specify `primaryCategory` and `additionalCategories` together in `fieldMask`. * A mask with only one of them fails with `INVALID_UPDATE_MASK`. * - Specify the complete set you want the location to end up with, including a * primary category. A set without one fails with `INVALID_CATEGORIES`. * - Any additional category you leave out is removed, so resend the ones you want * to keep. * * For phone numbers: * * - Specify `primaryPhone` and `additionalPhones` together in `fieldMask`. A mask * with only one of them fails with `INVALID_UPDATE_MASK`. * - Specify the complete set of numbers you want the location to end up with. Any * number you leave out is removed. * - Unlike categories, no primary is required. Masking both and specifying none * removes every phone number. * * ## Errors * * - `INVALID_UPDATE_MASK`: the mask is empty, or names a field that can't be * updated, or masks only one half of the categories or phone numbers pair. * Google isn't called. * - `SPECIAL_HOURS_CLOSURE_TOO_LONG`: `specialHours` closes the business for 7 or * more consecutive dates. Update `openInfo` with status `CLOSED_TEMPORARILY` * instead, and set it back to `OPEN` when the business reopens. The payload * names the refused run. Google isn't called. * - `GOOGLE_LOCATION_VALIDATION_FAILED`: Google rejected the details, for example * an invalid phone number or address, or a listing that needs a postcard PIN. * The specific reasons are in the error payload and are worth surfacing: they * tell the site owner what to correct. * - `GOOGLE_API_CALL_FAILED`: the call to Google failed for any other reason. * Google's status and response are in the error payload. * @param - ID of the location to update. This is Google's location identifier, without * the `locations/` prefix. * @param - The profile values to set. Only the fields named in `fieldMask` are sent to * Google, so this can be partial. */ (locationId: string, location: GoogleLocation, options: NonNullablePaths): Promise & { __applicationErrorsType?: UpdateGoogleLocationApplicationErrors; }>; } declare function bulkCreateLocations$1(httpClient: HttpClient): BulkCreateLocationsSignature; interface BulkCreateLocationsSignature { /** * Imports multiple existing Google Business Profile locations. * * Specify `id` and `accountId` on every location. This doesn't create listings in * Google, the same as Create Location. * * Locations are processed independently: one that fails doesn't stop the others, * and its reason is in that item's `itemMetadata.error`. Check the results * per item rather than relying on the response status. * * A Google account must be connected first. See the * [Connection API](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/connection-v1). * * To import a single location, call Create Location. * @param - The locations to record for this site. Set `id` and `accountId` on each. */ (locations: GBPLocation[], options?: BulkCreateLocationsOptions): Promise & { __applicationErrorsType?: BulkCreateLocationsApplicationErrors; }>; } declare function bulkDeleteLocations$1(httpClient: HttpClient): BulkDeleteLocationsSignature; interface BulkDeleteLocationsSignature { /** * Deletes multiple GBP locations, leaving their Google Business Profile * listings in place. * * The bulk counterpart of Delete Location, and the same recovery path: use it * to clean up stored locations whose listings are already gone from Google or * unreachable. To remove the listings from Google too, call Delete Google * Location once per location. * * Locations are processed independently, so one that fails doesn't stop the * others. Check the results per location rather than relying on the response * status. * @param - IDs of the locations to delete. These are Google's location identifiers. */ (locationIds: string[]): Promise>; } declare function listGbpAccounts$1(httpClient: HttpClient): ListGbpAccountsSignature; interface ListGbpAccountsSignature { /** * Retrieves the Google Business Profile accounts the connected Google account * can access. * * A Google account can have access to more than one Business Profile account, * each holding its own locations. Use this to find the account ID to specify when * importing locations. * * A Google account must be connected first. See the * [Connection API](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/connection-v1). */ (options?: ListGbpAccountsOptions): Promise & { __applicationErrorsType?: ListGbpAccountsApplicationErrors; }>; } declare function listUnimportedLocations$1(httpClient: HttpClient): ListUnimportedLocationsSignature; interface ListUnimportedLocationsSignature { /** * Retrieves the locations in a Google Business Profile account that the site * hasn't imported yet. * * Call this before Create Location or Bulk Create Locations to find what's * available to import. Locations are returned in the order Google returns them. * * A Google account must be connected first. See the * [Connection API](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/connection-v1). * @param - GBP Account ID to list locations for. */ (accountId: string, options?: ListUnimportedLocationsOptions): Promise & { __applicationErrorsType?: ListUnimportedLocationsApplicationErrors; }>; } declare function getNotificationSetting$1(httpClient: HttpClient): GetNotificationSettingSignature; interface GetNotificationSettingSignature { /** * Retrieves a Google Business Profile account's notification setting: the * Pub/Sub topic Google publishes to, and which types of change it publishes. * * Each account has exactly one notification setting. If none was ever set, the * setting comes back with an empty `pubsubTopic` and no `notificationTypes`. * * A Google account must be connected first. See the * [Connection API](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/connection-v1). * @param - GBP Account ID to retrieve the notification setting for. */ (accountId: string): Promise & { __applicationErrorsType?: GetNotificationSettingApplicationErrors; }>; } declare function updateNotificationSetting$1(httpClient: HttpClient): UpdateNotificationSettingSignature; interface UpdateNotificationSettingSignature { /** * Updates a Google Business Profile account's notification setting. * * `notificationTypes` replaces the whole list. To stop all notifications for the * account, update it to an empty list. That also clears `pubsubTopic`, so the * account is left with no notification setting at all. * * The Pub/Sub topic is set by Wix, so `pubsubTopic` can't be changed here. * * Errors: * - `INVALID_NOTIFICATION_TYPE`: `notificationTypes` contains * `NOTIFICATION_TYPE_UNKNOWN` or a value this API doesn't recognize. Google * isn't called, so the current setting is left as it was. * - `GOOGLE_API_CALL_FAILED`: the call to Google failed. Google's status and * response are in the error payload. * * A Google account must be connected first. See the * [Connection API](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/connection-v1). * @param - Google GBP Account ID the setting belongs to. */ (accountId: string, notificationSetting: UpdateNotificationSetting, options?: UpdateNotificationSettingOptions): Promise & { __applicationErrorsType?: UpdateNotificationSettingApplicationErrors; }>; } declare function listReviews$1(httpClient: HttpClient): ListReviewsSignature; interface ListReviewsSignature { /** * Retrieves a list of up to 100 reviews for a location, given the provided * paging and sorting. * * Reviews belong to Google and can't be created or edited here. You can reply * to one with Put Review Reply. * * Sort with `orderBy`: `NEWEST`, `HIGHEST_RATING` or `LOWEST_RATING`. * * `metrics` carries the location's average rating and total review count. * Those cover every review on the profile, not just the current page. * * Errors: * - `NOT_FOUND`: the location isn't recorded for this site. Google isn't called. * - `REVIEWS_LOCATION_NOT_FOUND`: Google returned 404 for this location's * reviews. The description names the location id; Google's response body * is withheld. * - `GOOGLE_API_CALL_FAILED`: the call to Google failed for any other reason. * Google's status is in the error payload; its response body is withheld. * @param - Location ID. This is Google's location identifier. */ (locationId: string, options?: ListReviewsOptions): Promise & { __applicationErrorsType?: ListReviewsApplicationErrors; }>; } declare function putReviewReply$1(httpClient: HttpClient): PutReviewReplySignature; interface PutReviewReplySignature { /** * Creates or replaces the site owner's public reply to a review. * * A review has at most one reply, so calling this again replaces the existing * text rather than adding a second one. The reply shows publicly on Google * next to the review, attributed to the business. * @param - Reply text to post or replace. */ (identifiers: NonNullablePaths, text: string): Promise & { __applicationErrorsType?: PutReviewReplyApplicationErrors; }>; } declare function deleteReviewReply$1(httpClient: HttpClient): DeleteReviewReplySignature; interface DeleteReviewReplySignature { /** * Deletes the site owner's reply to a review. * * The review itself isn't affected. Reviews belong to Google and can't be * deleted through this API. */ (identifiers: NonNullablePaths): Promise; } declare function listMedia$1(httpClient: HttpClient): ListMediaSignature; interface ListMediaSignature { /** * Retrieves a location's media items from Google. * * Each item includes the media key you need to delete it. Media isn't stored for * the site, so this always reflects what's on the Business Profile now. * * That means it lags behind anything still queued through Bulk Create Media * Uploads. If a submission is still being applied, combine this with List Media * Uploads to show what the site owner asked for. Count only changes still on * their way, since a failed addition never reached Google: * * ``` * gallery = this list * + additions still PENDING or UPLOADING * - removals still PENDING or UPLOADING * ``` * * Errors: * - `NOT_FOUND`: the location isn't recorded for this site. Google isn't called. * - `GOOGLE_API_CALL_FAILED`: the call to Google failed. Google's status and * response are in the error payload. * @param - Location ID. This is Google's location identifier. */ (locationId: string, options?: ListMediaOptions): Promise & { __applicationErrorsType?: ListMediaApplicationErrors; }>; } declare function createMedia$1(httpClient: HttpClient): CreateMediaSignature; interface CreateMediaSignature { /** * Adds a media item to a location. * * Specify `sourceUrl`, a publicly reachable URL that Google fetches the image * from. The URL has to stay reachable until Google has fetched it. Returns the * created item, including the media key needed to delete it. * * Two things to plan for: * * - Google doesn't deduplicate by URL. Calling this twice with the same * `sourceUrl` creates two media items, so track what you've already added. * - Google allows about 10 edits per minute per Business Profile, and that budget * covers every write to the profile: adding and deleting media, but also Update * Google Location and Update Location Attributes. Interleaving those with media * writes brings the 429 closer, so pace the profile as a whole rather than each * method separately. Treat a 429 as worth retrying after a delay rather than as * a rejection of the image. * * This method doesn't pace itself, so use it for single changes. To add several * photos at once, call Bulk Create Media Uploads instead. That queues the whole * set and applies it to Google gradually, which is what the per-minute budget * makes necessary. * * Errors: * - `NOT_FOUND`: the location isn't recorded for this site. Google isn't called. * - `GOOGLE_API_CALL_FAILED`: the call to Google failed. Google's status and * response are in the error payload. * @param - Location ID. This is Google's location identifier. * @param - Publicly accessible URL of the media file to add. Google fetches the bytes * from this URL server-side, so it must be reachable without auth. */ (locationId: string, sourceUrl: string, options: NonNullablePaths): Promise & { __applicationErrorsType?: CreateMediaApplicationErrors; }>; } declare function deleteMedia$1(httpClient: HttpClient): DeleteMediaSignature; interface DeleteMediaSignature { /** * Deletes a media item from a location. * * Specify the media key from List Media. Deleting an item that's already gone * succeeds, so it's safe to retry. * * Deletions draw on the same budget of about 10 edits per minute per Business * Profile as every other write to it, including Create Media, Update Google * Location and Update Location Attributes. Removing a set of images in quick * succession returns 429, so pace the profile as a whole. * * To remove several photos at once, call Bulk Create Media Uploads with removal * items instead. That queues them and applies them gradually. * * Errors: * - `NOT_FOUND`: the location isn't recorded for this site. Google isn't called. * - `GOOGLE_API_CALL_FAILED`: the call to Google failed. Google's status and * response are in the error payload. * * A malformed media key, or one belonging to a different location, also comes * back as `GOOGLE_API_CALL_FAILED` rather than `NOT_FOUND`. */ (identifiers: NonNullablePaths): Promise; } declare function createLocalPost$1(httpClient: HttpClient): CreateLocalPostSignature; interface CreateLocalPostSignature { /** * Creates a post on a location's Business Profile. * * Set `topicType` to choose the kind of post: * * - `STANDARD`: an update with `summary` and an optional photo in `media`. * Don't set `event` or `offer`. * - `EVENT`: an event. Requires `event.title` and `event.schedule`. * - `OFFER`: a promotion. Requires `event.title` and `event.schedule`, and * accepts coupon details in `offer`. * * Add a button with `callToAction`. Every `actionType` except `CALL` needs a * `url`. `CALL` dials the phone number on the Business Profile and doesn't * accept one. * * Google reviews every new post before showing it, so the returned post is * usually in the `PROCESSING` state. Call Get Local Post later to see whether * it became `LIVE` or `REJECTED`. A rejected post isn't an error: it comes * back with `state` set to `REJECTED`. * * Google doesn't deduplicate posts. Calling this twice creates two posts. * * Errors: * - `LOCAL_POST_INVALID_FOR_TOPIC`: a field doesn't fit `topicType`, for * example an `EVENT` post without `event.schedule`. The field is named in * the error payload. Google isn't called. * - `INVALID_LOCAL_POST_REQUEST`: a field is invalid regardless of the topic, * for example a `callToAction` without a `url`. Google isn't called. * - `GOOGLE_LOCATION_VALIDATION_FAILED`: Google rejected the post and said * why. The reasons are in the error payload. * - `GOOGLE_API_CALL_FAILED`: the call to Google failed for any other reason. * Google's status and response are in the error payload. * @param - Location ID. This is Google's location identifier. * @param - The post to create. */ (locationId: string, localPost: NonNullablePaths): Promise & { __applicationErrorsType?: CreateLocalPostApplicationErrors; }>; } declare function listLocalPosts$1(httpClient: HttpClient): ListLocalPostsSignature; interface ListLocalPostsSignature { /** * Retrieves a list of up to 100 posts on a location's Business Profile. * * Each post includes its current `state`, so this is also how to follow up on * posts that were `PROCESSING` when created. * * Don't rely on the order of the results. Page through with `paging.cursor`. * * Errors: * - `GOOGLE_API_CALL_FAILED`: the call to Google failed. Google's status is in * the error payload. * @param - Location ID. This is Google's location identifier. */ (locationId: string, options?: ListLocalPostsOptions): Promise & { __applicationErrorsType?: ListLocalPostsApplicationErrors; }>; } declare function getLocalPost$1(httpClient: HttpClient): GetLocalPostSignature; interface GetLocalPostSignature { /** * Retrieves a post from a location's Business Profile. * * Use it after Create Local Post or Update Local Post to see whether Google * approved the change: `state` moves from `PROCESSING` to `LIVE` or * `REJECTED`. * * Errors: * - `LOCAL_POST_NOT_FOUND`: the post doesn't exist on the location. * - `GOOGLE_API_CALL_FAILED`: the call to Google failed. Google's status is in * the error payload. */ (identifiers: NonNullablePaths): Promise & { __applicationErrorsType?: GetLocalPostApplicationErrors; }>; } declare function updateLocalPost$1(httpClient: HttpClient): UpdateLocalPostSignature; interface UpdateLocalPostSignature { /** * Updates a post on a location's Business Profile. * * Name the fields to change in `fieldMask`. Only these paths are accepted: * `summary`, `callToAction`, `event`, `offer`, `media`, `languageCode`. Each * one replaces that whole part of the post, so send the complete value you * want. `topicType` can't be changed: create a new post instead. * * Google reviews the edited post again, so the returned post is usually back * in the `PROCESSING` state. Call Get Local Post later to see the outcome. * * Errors: * - `INVALID_UPDATE_MASK`: the mask is empty or names a path that can't be * updated. Google isn't called. * - `INVALID_LOCAL_POST_REQUEST`: a masked field is invalid, for example a * `callToAction` without a `url`. Google isn't called. * - `LOCAL_POST_NOT_FOUND`: the post doesn't exist on the location. * - `GOOGLE_LOCATION_VALIDATION_FAILED`: Google rejected the change and said * why, for example a field that doesn't fit the post's `topicType`. The * reasons are in the error payload. * - `GOOGLE_API_CALL_FAILED`: the call to Google failed for any other reason. * Google's status and response are in the error payload. * @param - The values to set. Only the fields named in `fieldMask` are sent to Google, * so this can be partial. */ (identifiers: NonNullablePaths, localPost: LocalPost, options: NonNullablePaths): Promise & { __applicationErrorsType?: UpdateLocalPostApplicationErrors; }>; } declare function deleteLocalPost$1(httpClient: HttpClient): DeleteLocalPostSignature; interface DeleteLocalPostSignature { /** * Deletes a post from a location's Business Profile. * * The post is removed from Google Search and Maps, and can't be restored. * * Errors: * - `LOCAL_POST_NOT_FOUND`: the post doesn't exist on the location, for * example because it was already deleted. * - `GOOGLE_API_CALL_FAILED`: the call to Google failed for any other reason. * Google's status and response are in the error payload. */ (identifiers: NonNullablePaths): Promise; } declare function reportLocalPostInsights$1(httpClient: HttpClient): ReportLocalPostInsightsSignature; interface ReportLocalPostInsightsSignature { /** * Unavailable: Google discontinued post insights on February 20, 2023, without replacement. * * Retained for compatibility. Returns `LOCAL_POST_INSIGHTS_UNAVAILABLE` without * contacting Google. Use GetLocationInsights only for whole-location performance; * those metrics cannot be attributed to individual posts. * See https://developers.google.com/my-business/content/sunset-dates. * @param - Location ID. This is Google's location identifier. * @param - IDs of the posts to report on. Every post must belong to the location. * @deprecated */ (locationId: string, localPostIds: string[], options: NonNullablePaths): Promise & { __applicationErrorsType?: ReportLocalPostInsightsApplicationErrors; }>; } declare function updateLocationAttributes$1(httpClient: HttpClient): UpdateLocationAttributesSignature; interface UpdateLocationAttributesSignature { /** * Sets or deletes attributes on a location's Business Profile. * * Only the attributes you specify are affected. Attributes you don't mention are * left as they are, so you don't need to resend the whole set. * * Whether an attribute is set or deleted depends on `valueJson`: * * - Specify `valueJson` to set the attribute to that value. It takes Google's * attribute value JSON, for example `{"valueType":"BOOL","values":[true]}` or * `{"valueType":"URL","uriValues":[{"uri":"https://example.com"}]}`. Use the * bare attribute key in `attributeId`, such as `has_wifi`. * - Leave `valueJson` empty to delete the attribute. * * There's no flag for clearing everything: to delete several attributes, send one * entry per attribute with `valueJson` empty. To delete all of them, first * retrieve the location's attributes with Get Location Attributes, then send one * empty entry per attribute you get back. At least one entry is always required, * and a request carries at most 50, so a location with more than 50 attributes * needs more than one call. * * Call List Attribute Metadata to find which attributes a location supports and * what value type each one takes. * * Errors: * - `INVALID_VALUE_JSON`: a `valueJson` isn't valid Google attribute JSON. The * response says which entries were wrong, by index and attribute ID. This is * checked before anything else, so nothing is changed. * - `NOT_FOUND`: the location isn't recorded for this site. Google isn't called. * - `GOOGLE_API_CALL_FAILED`: the call to Google failed. Google's status and * response are in the error payload. * @param - Location ID. This is Google's location identifier. * @param - The attributes to set or delete, keyed by `attributeId`. * * Only the attributes you name are touched. Every other attribute on the * listing is left alone. An entry with a `valueJson` sets that attribute, and * an entry with an empty `valueJson` deletes it. */ (locationId: string, attributes: LocationAttribute[]): Promise & { __applicationErrorsType?: UpdateLocationAttributesApplicationErrors; }>; } declare function getLocationAttributes$1(httpClient: HttpClient): GetLocationAttributesSignature; interface GetLocationAttributesSignature { /** * Retrieves the attributes currently set on a location's Business Profile. * * Returns only the attributes that have a value. To find out which attributes the * location could have, call List Attribute Metadata. To change them, call Update * Location Attributes. * * Errors: * - `NOT_FOUND`: the location isn't recorded for this site. Google isn't called. * - `GOOGLE_API_CALL_FAILED`: the call to Google failed. Google's status and * response are in the error payload. * @param - Location ID. This is Google's location identifier. */ (locationId: string): Promise & { __applicationErrorsType?: GetLocationAttributesApplicationErrors; }>; } declare function getLocationLodging$1(httpClient: HttpClient): GetLocationLodgingSignature; interface GetLocationLodgingSignature { /** * Retrieves the hotel data on a location's Business Profile: amenities, * policies, accessibility, sustainability practices and per-guest-unit detail. * * Only meaningful for a lodging business. Every field comes back only if the * property has an answer on record, so an unset field means "not known", not * "not available" — `false` is a distinct, deliberate answer. * * Errors: * - `NOT_FOUND`: the location isn't recorded for this site. Google isn't called. * - `LODGING_NOT_OPERABLE`: the location isn't a lodging business, so Google holds * no lodging data for it. Check `metadata.canOperateLodgingData` on the location * first. Retrying won't help. * - `GOOGLE_API_CALL_FAILED`: the call to Google failed. Google's status and * response are in the error payload. * @param - Location ID. This is Google's location identifier. */ (locationId: string): Promise & { __applicationErrorsType?: GetLocationLodgingApplicationErrors; }>; } declare function updateLocationLodging$1(httpClient: HttpClient): UpdateLocationLodgingSignature; interface UpdateLocationLodgingSignature { /** * Updates the hotel data on a location's Business Profile. * * Partial update: only the fields named in `fieldMask` are touched, everything * else on the listing is left alone. Paths are the proto field paths and may be * nested, so `families` replaces that whole section while `families.kidsClub` * changes one amenity. * * A field named in the mask but left empty in `lodging` clears it — that is how * you go from "we have a pool" back to "not known". To say "no pool", send * `false` rather than clearing. * * Repeated fields can only be replaced whole, not edited item by item, so * `guestUnits` is a valid path and `guestUnits.codes` is not. * * Read-only fields (`metadata`, `allUnits`, `someUnits`, and anything Google * derives) can't be updated. They're marked read-only on the schema, so naming * one in the mask is rejected by request validation. * * Errors: * - `INVALID_UPDATE_MASK`: the mask is empty, or a path doesn't exist or reaches * into a repeated field. Google isn't called. * - `NOT_FOUND`: the location isn't recorded for this site. Google isn't called. * - `LODGING_NOT_OPERABLE`: the location isn't a lodging business, so Google holds * no lodging data for it. Check `metadata.canOperateLodgingData` on the location * first. Retrying won't help. * - `GOOGLE_API_CALL_FAILED`: the call to Google failed. Google's status and * response are in the error payload. * @param - Location ID. This is Google's location identifier. * @param - The hotel data to set. Only the fields named in `fieldMask` are read, so this * can be as sparse as the change you're making. */ (locationId: string, lodging: Lodging, options: NonNullablePaths): Promise & { __applicationErrorsType?: UpdateLocationLodgingApplicationErrors; }>; } declare function listAttributeMetadata$1(httpClient: HttpClient): ListAttributeMetadataSignature; interface ListAttributeMetadataSignature { /** * Retrieves the attributes a Business Profile can have, with each one's value * type, display name and options. * * Use it to work out what you can send to Update Location Attributes, or to build * an editor for a site owner. * * Specify exactly one of: * * - `locationId`, for the attributes available to an existing location, based on * its category and country. * - `categoryRegion`, for the attributes available to a Google category and * country. Use this before a location exists, for example while a site owner is * still choosing a category. It doesn't need a connected Google account. * * Errors: * - `INVALID_ARGUMENT`: neither or both of the two lookup fields were specified. * - `NOT_FOUND`: the location isn't recorded for this site. Google isn't called. * - `GOOGLE_API_CALL_FAILED`: the call to Google failed. Google's status and * response are in the error payload. */ (options?: ListAttributeMetadataOptions): Promise & { __applicationErrorsType?: ListAttributeMetadataApplicationErrors; }>; } declare function listCategories$1(httpClient: HttpClient): ListCategoriesSignature; interface ListCategoriesSignature { /** * Retrieves Google's catalog of business categories. * * Use it to let a site owner choose a primary or additional category before * creating or updating a location. Each returned `id` can be assigned directly * to a category on the location. * * The catalog is the same for everyone, so results don't depend on the * location. `locationId` is optional and selects whose Google credentials the * catalog is read with, not which categories come back. Send it when you * already have a location, and leave it out before one exists, for example in * a create-location flow. * * `searchTerm` matches against the category's localized display name. Pass a * plain term rather than a query expression. Leave it out to page through the * whole catalog. * * Errors: * - `NOT_FOUND`: `locationId` was set but the location isn't recorded for this * site. Google isn't called. * - `GOOGLE_API_CALL_FAILED`: Google returned an error. Its HTTP status is in * the error data. * @param - ISO 3166-1 alpha-2 country code (e.g. "US") the catalog is scoped to. * Categories differ per country, so this is required. */ (regionCode: string, options?: NonNullablePaths): Promise & { __applicationErrorsType?: ListCategoriesApplicationErrors; }>; } declare function getVerificationOptions$1(httpClient: HttpClient): GetVerificationOptionsSignature; interface GetVerificationOptionsSignature { /** * Retrieves the ways a location can be verified. * * Google decides which options a location is eligible for, and each option * says what it needs. Call this before Start Verification to find out what to * offer the site owner. * * For a service-area business, save `serviceAreaPostalAddress` on the location * first with Update Location. Google can't work out the options without it. * * Pass `languageCode` to get the option text in the site owner's language. * It defaults to English. * @param - Location ID. This is Google's location identifier. */ (locationId: string, options?: GetVerificationOptions): Promise & { __applicationErrorsType?: GetVerificationOptionsApplicationErrors; }>; } declare function startVerification$1(httpClient: HttpClient): StartVerificationSignature; interface StartVerificationSignature { /** * Starts verifying a location with Google. * * Call Get Verification Options first to find out which methods Google allows for * the location, then specify one here. * * For `ADDRESS`, `EMAIL`, `PHONE_CALL` and `SMS`, Google sends a PIN to the site * owner. Pass it to Complete Verification to finish. * * For `AUTO`, Google verifies the location itself. There's no PIN and no second * call, and `verificationState` comes back as `VERIFIED` straight away. * * `OFFLINE_VIDEO` can't be started here. The site owner records the video on * Google's page at `offlineVideoData.actionUrl`, returned by Get Verification * Options. * * `VERIFIED` is narrower than it sounds. It means the location has business * authority and has entered Google's quality review. It does not mean the profile * is live and trusted: for that, check `hasVoiceOfMerchant` with Get Voice Of * Merchant. A location can be verified and still not be publicly visible. * @param - Location ID. This is Google's location identifier. * @param - Verification method chosen by the merchant. */ (locationId: string, method: VerificationMethodWithLiterals, options?: StartVerificationOptions): Promise & { __applicationErrorsType?: StartVerificationApplicationErrors; }>; } declare function completeVerification$1(httpClient: HttpClient): CompleteVerificationSignature; interface CompleteVerificationSignature { /** * Completes a verification by submitting the PIN Google sent. * * Specify the `pendingVerificationId` from Start Verification and the `pin` * the site owner received by the method they chose. * * Verification succeeding doesn't on its own mean the profile is live on * Google. Call Get Voice Of Merchant to check that. * @param - Location ID. This is Google's location identifier. * @param - The PIN the site owner received by the method they chose. */ (locationId: string, pin: string, options: NonNullablePaths): Promise & { __applicationErrorsType?: CompleteVerificationApplicationErrors; }>; } declare function getVoiceOfMerchant$1(httpClient: HttpClient): GetVoiceOfMerchantSignature; interface GetVoiceOfMerchantSignature { /** * Retrieves whether Google considers a location's profile trusted and live. * * Google calls this Voice of Merchant. A location can be verified and still * not have it, so check this before telling a site owner their profile is * live. * * `state` says what's needed next, such as waiting, verifying, complying with * Google's guidelines, or resolving who owns the listing. * @param - Location ID. This is Google's location identifier. */ (locationId: string): Promise>; } declare function getLocationInsights$1(httpClient: HttpClient): GetLocationInsightsSignature; interface GetLocationInsightsSignature { /** * Retrieves daily performance metrics for a location. * * Covers how people found and used the profile: impressions on Google Search * and Maps split by desktop and mobile, and actions such as calls, direction * requests, website clicks, messages, and bookings. * * Specify the metrics you want in `metricTypes` and the window in * `timeRange`. Each returned metric carries its own daily series, so ask only * for the ones you'll use. * @param - Location ID. This is Google's location identifier. * @param - Time range for the insights query. */ (locationId: string, timeRange: InsightsTimeRange, options: NonNullablePaths): Promise>; } declare function listSearchKeywordImpressions$1(httpClient: HttpClient): ListSearchKeywordImpressionsSignature; interface ListSearchKeywordImpressionsSignature { /** * Retrieves a list of up to 100 search terms people used to find a location, * by calendar month. * * Each term carries either `value`, the exact number of impressions, or * `threshold`, meaning the real count is below that number and Google won't * report it precisely. Check which one is set rather than assuming a count. * * Search terms are what real people typed, so treat `searchKeyword` as * possibly containing personal information. * @param - Location ID. This is Google's location identifier. * @param - Inclusive calendar-month range to query. */ (locationId: string, monthlyRange: MonthlyRange, options?: ListSearchKeywordImpressionsOptions): Promise & { __applicationErrorsType?: ListSearchKeywordImpressionsApplicationErrors; }>; } declare function inviteAdminToLocation$1(httpClient: HttpClient): InviteAdminToLocationSignature; interface InviteAdminToLocationSignature { /** * Invites a Google account to manage a location's Business Profile. * * Specify the `email` of the Google account to invite and the `role` to grant. * The invitation has to be accepted by that account before it takes effect. * Until then it appears in Get Location Admins with `pendingInvitation` set to * `true`. * * An account that already manages the location isn't invited again, so calling * this twice is safe. * @param - Location ID (Google's opaque location id) to invite the account to manage. * @param - The email of the Google account to invite as a manager. PII. */ (locationId: string, email: string, options: NonNullablePaths): Promise; } declare function getLocationAdmins$1(httpClient: HttpClient): GetLocationAdminsSignature; interface GetLocationAdminsSignature { /** * Retrieves the accounts that manage a location's Business Profile, including * invitations that haven't been accepted yet. * * Use it to check who already has access before inviting someone, because * Google rejects an invitation for an account that already manages the * location. * @param - Location ID (Google's opaque location id) to list admins for. */ (locationId: string): Promise>; } declare function getAddressSchemaByCountryCode$1(httpClient: HttpClient): GetAddressSchemaByCountryCodeSignature; interface GetAddressSchemaByCountryCodeSignature { /** * Retrieves how to render an address form for a country. * * Tells you which address fields to show and in what order, which are * required, the administrative areas to offer such as states or provinces, and * what to label each field in that country. * * This is public reference data, so it needs no connected Google account and * no existing location. Call it before collecting an address, for example * while creating a location. * @param - ISO 3166-1 alpha-2 country code (e.g. "US", "UA", "KR"). */ (countryCode: string, options?: GetAddressSchemaByCountryCodeOptions): Promise & { __applicationErrorsType?: GetAddressSchemaByCountryCodeApplicationErrors; }>; } declare function suggestRegions$1(httpClient: HttpClient): SuggestRegionsSignature; interface SuggestRegionsSignature { /** * Retrieves region suggestions for partial text, for autocompleting a city, * state or region as someone types. * * Only places of that kind come back. Street addresses and businesses never * do, so use Suggest Establishments to autocomplete a business name. * * Needs no connected Google account and no existing location. Text shorter * than 3 characters returns an empty list rather than an error, so you can * call it on every keystroke. * @param - Partial free-text the end-user is typing (e.g. "new y"). Sent per debounced * keystroke; Google returns region/city predictions matching this prefix. * Queries shorter than 3 chars return an empty list (handled server-side), * not an error. */ (query: string, options?: NonNullablePaths): Promise & { __applicationErrorsType?: SuggestRegionsApplicationErrors; }>; } declare function suggestEstablishments$1(httpClient: HttpClient): SuggestEstablishmentsSignature; interface SuggestEstablishmentsSignature { /** * Retrieves business suggestions for partial text, for autocompleting a * business name as someone types. * * Only existing businesses come back. Regions and street addresses never do, * so use Suggest Regions for those. Use this to find and prefill the business * a site owner wants to claim. * * Needs no connected Google account and no existing location. Text shorter * than 3 characters returns an empty list rather than an error. * * `countryCode` is optional here, unlike Suggest Regions: business names are * searched worldwide unless you narrow them. * @param - Partial free-text the end-user is typing (e.g. "acme hard"). Sent per * debounced keystroke; Google returns business-name predictions matching * this prefix. Queries shorter than 3 chars return an empty list * (handled server-side), not an error. */ (query: string, options?: SuggestEstablishmentsOptions): Promise & { __applicationErrorsType?: SuggestEstablishmentsApplicationErrors; }>; } declare function searchGoogleLocations$1(httpClient: HttpClient): SearchGoogleLocationsSignature; interface SearchGoogleLocationsSignature { /** * Searches Google's Business Profile catalog for existing listings. * * Specify either a free-text query or a title and address. Each result is a real * catalog entry, and carries a `matchStatus` saying whether it can be claimed. * * This doesn't need a connected Google account, so you can call it before the * site owner connects one, for example to check whether a business already has a * listing. * * Read `matchStatus` carefully, because it's about the catalog rather than about * the site owner: * * - `CLAIMABLE`: no Google account has claimed this listing. * - `OWNED_ELSEWHERE`: some Google account has claimed it. That account may well * be the site owner's own, so don't present this as someone else's listing. * Confirm ownership by connecting their account and calling List Unimported * Locations. * * For lighter-weight suggestions while someone types, call Suggest * Establishments, which returns autocomplete hints rather than catalog entries. */ (options: SearchGoogleLocationsOptions): Promise & { __applicationErrorsType?: SearchGoogleLocationsApplicationErrors; }>; } declare function customQueryGbpLocations(httpClient: HttpClient): { (): LocationsQueryBuilder; (query: GBPLocationQuery): ReturnType; }; declare const getGbpLocation: MaybeContext & typeof getGbpLocation$1>; declare const queryGoogleLocations: MaybeContext & typeof queryGoogleLocations$1>; declare const getGoogleLocation: MaybeContext & typeof getGoogleLocation$1>; declare const createLocation: MaybeContext & typeof createLocation$1>; declare const updateLocation: MaybeContext & typeof updateLocation$1>; declare const deleteLocation: MaybeContext & typeof deleteLocation$1>; declare const createGoogleLocation: MaybeContext & typeof createGoogleLocation$1>; declare const deleteGoogleLocation: MaybeContext & typeof deleteGoogleLocation$1>; declare const updateGoogleLocation: MaybeContext & typeof updateGoogleLocation$1>; declare const bulkCreateLocations: MaybeContext & typeof bulkCreateLocations$1>; declare const bulkDeleteLocations: MaybeContext & typeof bulkDeleteLocations$1>; declare const listGbpAccounts: MaybeContext & typeof listGbpAccounts$1>; declare const listUnimportedLocations: MaybeContext & typeof listUnimportedLocations$1>; declare const getNotificationSetting: MaybeContext & typeof getNotificationSetting$1>; declare const updateNotificationSetting: MaybeContext & typeof updateNotificationSetting$1>; declare const listReviews: MaybeContext & typeof listReviews$1>; declare const putReviewReply: MaybeContext & typeof putReviewReply$1>; declare const deleteReviewReply: MaybeContext & typeof deleteReviewReply$1>; declare const listMedia: MaybeContext & typeof listMedia$1>; declare const createMedia: MaybeContext & typeof createMedia$1>; declare const deleteMedia: MaybeContext & typeof deleteMedia$1>; declare const createLocalPost: MaybeContext & typeof createLocalPost$1>; declare const listLocalPosts: MaybeContext & typeof listLocalPosts$1>; declare const getLocalPost: MaybeContext & typeof getLocalPost$1>; declare const updateLocalPost: MaybeContext & typeof updateLocalPost$1>; declare const deleteLocalPost: MaybeContext & typeof deleteLocalPost$1>; declare const reportLocalPostInsights: MaybeContext & typeof reportLocalPostInsights$1>; declare const updateLocationAttributes: MaybeContext & typeof updateLocationAttributes$1>; declare const getLocationAttributes: MaybeContext & typeof getLocationAttributes$1>; declare const getLocationLodging: MaybeContext & typeof getLocationLodging$1>; declare const updateLocationLodging: MaybeContext & typeof updateLocationLodging$1>; declare const listAttributeMetadata: MaybeContext & typeof listAttributeMetadata$1>; declare const listCategories: MaybeContext & typeof listCategories$1>; declare const getVerificationOptions: MaybeContext & typeof getVerificationOptions$1>; declare const startVerification: MaybeContext & typeof startVerification$1>; declare const completeVerification: MaybeContext & typeof completeVerification$1>; declare const getVoiceOfMerchant: MaybeContext & typeof getVoiceOfMerchant$1>; declare const getLocationInsights: MaybeContext & typeof getLocationInsights$1>; declare const listSearchKeywordImpressions: MaybeContext & typeof listSearchKeywordImpressions$1>; declare const inviteAdminToLocation: MaybeContext & typeof inviteAdminToLocation$1>; declare const getLocationAdmins: MaybeContext & typeof getLocationAdmins$1>; declare const getAddressSchemaByCountryCode: MaybeContext & typeof getAddressSchemaByCountryCode$1>; declare const suggestRegions: MaybeContext & typeof suggestRegions$1>; declare const suggestEstablishments: MaybeContext & typeof suggestEstablishments$1>; declare const searchGoogleLocations: MaybeContext & typeof searchGoogleLocations$1>; declare const queryGbpLocations: MaybeContext & typeof customQueryGbpLocations>; export { BulkCreateLocationsApplicationErrors, BulkCreateLocationsOptions, BulkCreateLocationsResponse, BulkDeleteLocationsResponse, CompleteVerificationApplicationErrors, CompleteVerificationOptions, CompleteVerificationResponse, CreateGoogleLocationApplicationErrors, CreateGoogleLocationOptions, CreateGoogleLocationResponse, CreateLocalPostApplicationErrors, CreateLocalPostResponse, CreateLocationApplicationErrors, CreateMediaApplicationErrors, CreateMediaOptions, CreateMediaResponse, DeleteGoogleLocationApplicationErrors, DeleteLocalPostApplicationErrors, DeleteLocalPostIdentifiers, DeleteMediaApplicationErrors, DeleteMediaIdentifiers, DeleteReviewReplyApplicationErrors, DeleteReviewReplyIdentifiers, GBPLocation, GBPLocationQuery, GetAddressSchemaByCountryCodeApplicationErrors, GetAddressSchemaByCountryCodeOptions, GetAddressSchemaByCountryCodeResponse, GetGoogleLocationResponse, GetLocalPostApplicationErrors, GetLocalPostIdentifiers, GetLocalPostResponse, GetLocationAdminsResponse, GetLocationAttributesApplicationErrors, GetLocationAttributesResponse, GetLocationInsightsOptions, GetLocationInsightsResponse, GetLocationLodgingApplicationErrors, GetLocationLodgingResponse, GetNotificationSettingApplicationErrors, GetNotificationSettingResponse, GetVerificationOptions, GetVerificationOptionsApplicationErrors, GetVerificationOptionsResponse, GetVoiceOfMerchantResponse, GoogleLocation, InsightsTimeRange, InviteAdminToLocationOptions, InviteAdminToLocationResponse, ListAttributeMetadataApplicationErrors, ListAttributeMetadataOptions, ListAttributeMetadataResponse, ListCategoriesApplicationErrors, ListCategoriesOptions, ListCategoriesResponse, ListGbpAccountsApplicationErrors, ListGbpAccountsOptions, ListGbpAccountsResponse, ListLocalPostsApplicationErrors, ListLocalPostsOptions, ListLocalPostsResponse, ListMediaApplicationErrors, ListMediaOptions, ListMediaResponse, ListReviewsApplicationErrors, ListReviewsOptions, ListReviewsResponse, ListSearchKeywordImpressionsApplicationErrors, ListSearchKeywordImpressionsOptions, ListSearchKeywordImpressionsResponse, ListUnimportedLocationsApplicationErrors, ListUnimportedLocationsOptions, ListUnimportedLocationsResponse, LocalPost, LocationAttribute, LocationsQueryBuilder, Lodging, MonthlyRange, PutReviewReplyApplicationErrors, PutReviewReplyIdentifiers, PutReviewReplyResponse, QueryGoogleLocationsOptions, QueryGoogleLocationsResponse, ReportLocalPostInsightsApplicationErrors, ReportLocalPostInsightsOptions, ReportLocalPostInsightsResponse, SearchGoogleLocationsApplicationErrors, SearchGoogleLocationsOptions, SearchGoogleLocationsResponse, StartVerificationApplicationErrors, StartVerificationOptions, StartVerificationResponse, SuggestEstablishmentsApplicationErrors, SuggestEstablishmentsOptions, SuggestEstablishmentsResponse, SuggestRegionsApplicationErrors, SuggestRegionsOptions, SuggestRegionsResponse, UpdateGoogleLocationApplicationErrors, UpdateGoogleLocationOptions, UpdateGoogleLocationResponse, UpdateLocalPostApplicationErrors, UpdateLocalPostIdentifiers, UpdateLocalPostOptions, UpdateLocalPostResponse, UpdateLocation, UpdateLocationAttributesApplicationErrors, UpdateLocationAttributesResponse, UpdateLocationLodgingApplicationErrors, UpdateLocationLodgingOptions, UpdateLocationLodgingResponse, UpdateNotificationSetting, UpdateNotificationSettingApplicationErrors, UpdateNotificationSettingOptions, UpdateNotificationSettingResponse, VerificationMethodWithLiterals, bulkCreateLocations, bulkDeleteLocations, completeVerification, createGoogleLocation, createLocalPost, createLocation, createMedia, deleteGoogleLocation, deleteLocalPost, deleteLocation, deleteMedia, deleteReviewReply, getAddressSchemaByCountryCode, getGbpLocation, getGoogleLocation, getLocalPost, getLocationAdmins, getLocationAttributes, getLocationInsights, getLocationLodging, getNotificationSetting, getVerificationOptions, getVoiceOfMerchant, inviteAdminToLocation, listAttributeMetadata, listCategories, listGbpAccounts, listLocalPosts, listMedia, listReviews, listSearchKeywordImpressions, listUnimportedLocations, putReviewReply, queryGbpLocations, queryGoogleLocations, reportLocalPostInsights, searchGoogleLocations, startVerification, suggestEstablishments, suggestRegions, updateGoogleLocation, updateLocalPost, updateLocation, updateLocationAttributes, updateLocationLodging, updateNotificationSetting };