@wix/auto_sdk_gbp_locations 1.0.11 → 1.0.13

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.
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- 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, ListReviewsOptions, ListReviewsResponse, ListReviewsApplicationErrors, PutReviewReplyIdentifiers, PutReviewReplyResponse, PutReviewReplyApplicationErrors, DeleteReviewReplyIdentifiers, DeleteReviewReplyApplicationErrors, ListMediaOptions, ListMediaResponse, ListMediaApplicationErrors, CreateMediaOptions, CreateMediaResponse, CreateMediaApplicationErrors, DeleteMediaIdentifiers, DeleteMediaApplicationErrors, 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.mjs';
3
- export { Accessibility, AccountInfo, ActionEvent, 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, Category, CategoryMetadata, CategoryRegion, CategoryView, CategoryViewWithLiterals, CommonQueryWithEntityContext, CompleteVerificationRequest, Connectivity, CreateGoogleLocationRequest, CreateLocationRequest, CreateLocationResponse, CreateMediaRequest, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DailyMetric, DailyMetricValue, DailyMetricWithLiterals, DayOfWeek, DayOfWeekWithLiterals, DeleteGoogleLocationRequest, DeleteGoogleLocationResponse, 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, GetLocationAdminsRequest, GetLocationAttributesRequest, GetLocationInsightsRequest, GetLocationLodgingRequest, 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, ListMediaRequest, ListReviewsRequest, ListSearchKeywordImpressionsRequest, ListUnimportedLocationsRequest, LivingArea, LivingAreaAccessibility, LivingAreaEating, LivingAreaFeatures, LivingAreaLayout, LivingAreaSleeping, LocationAdmin, LocationDbPersistFailedError, LocationNotDeletableViaApiError, LocationWithGoogle, LocationWithGoogleGoogleResultOneOf, LocationWithGoogleVoiceOfMerchantResultOneOf, LocationsQueryResult, LodgingMetadata, LodgingTimeOfDay, MatchStatus, MatchStatusWithLiterals, MediaCategory, MediaCategoryWithLiterals, MediaFormat, MediaFormatWithLiterals, MediaItem, MediaItemAttribution, MessageEnvelope, Metadata, MinimizedContact, MoreHoursType, OpenInfo, Parking, PaymentOptions, PersonalProtection, Pets, PhysicalDistancing, PlaceInfo, Policies, Pools, PostalAddress, Profile, Property, PutReviewReplyRequest, QueryGBPLocationsRequest, QueryGBPLocationsResponse, QueryGoogleLocationsRequest, RecommendationReason, RecommendationReasonWithLiterals, RegionSuggestion, RestoreInfo, Review, ReviewMetrics, ReviewReply, ReviewSortOrder, ReviewSortOrderWithLiterals, Role, RoleWithLiterals, SearchGoogleLocationsOptionsCriteriaOneOf, SearchGoogleLocationsRequest, SearchGoogleLocationsRequestCriteriaOneOf, SearchKeywordImpression, SearchKeywordImpressionImpressionsOneOf, ServiceArea, ServiceType, Services, SortOrder, SortOrderWithLiterals, Sorting, StartVerificationRequest, State, StateWithLiterals, Status, StatusWithLiterals, SuggestEstablishmentsRequest, SuggestRegionsRequest, Sustainability, SustainabilityCertifications, SustainableSourcing, TimeOfDay, Transportation, UnimportedLocation, UnitTier, UnitTierWithLiterals, UpdateGoogleLocationRequest, UpdateLocationAttributesRequest, UpdateLocationFoodMenusApplicationErrors, UpdateLocationFoodMenusOptions, UpdateLocationFoodMenusRequest, UpdateLocationFoodMenusResponse, UpdateLocationLodgingRequest, UpdateLocationRequest, UpdateLocationResponse, VerificationMethod, VerificationOption, VerificationOptionDataOneOf, VerificationState, VerificationStateWithLiterals, ViewsFromUnit, Violation, VoiceOfMerchantState, WasteReduction, WaterConservation, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Wellness, utils } from './index.typings.mjs';
2
+ 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, 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.mjs';
3
+ export { Accessibility, AccountInfo, ActionEvent, 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, Category, CategoryMetadata, CategoryRegion, CategoryView, CategoryViewWithLiterals, CommonQueryWithEntityContext, CompleteVerificationRequest, Connectivity, CreateGoogleLocationRequest, CreateLocationRequest, CreateLocationResponse, CreateMediaRequest, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DailyMetric, DailyMetricValue, DailyMetricWithLiterals, DayOfWeek, DayOfWeekWithLiterals, DeleteGoogleLocationRequest, DeleteGoogleLocationResponse, 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, 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, ListMediaRequest, ListReviewsRequest, ListSearchKeywordImpressionsRequest, ListUnimportedLocationsRequest, LivingArea, LivingAreaAccessibility, LivingAreaEating, LivingAreaFeatures, LivingAreaLayout, LivingAreaSleeping, LocationAdmin, LocationDbPersistFailedError, LocationNotDeletableViaApiError, LocationWithGoogle, LocationWithGoogleGoogleResultOneOf, LocationWithGoogleVoiceOfMerchantResultOneOf, LocationsQueryResult, LodgingMetadata, LodgingTimeOfDay, MatchStatus, MatchStatusWithLiterals, MediaCategory, MediaCategoryWithLiterals, MediaFormat, MediaFormatWithLiterals, MediaItem, MediaItemAttribution, MessageEnvelope, Metadata, MinimizedContact, MoreHoursType, NotificationSetting, NotificationType, NotificationTypeWithLiterals, OpenInfo, Parking, PaymentOptions, PersonalProtection, Pets, PhysicalDistancing, PlaceInfo, Policies, Pools, PostalAddress, Profile, Property, PutReviewReplyRequest, QueryGBPLocationsRequest, QueryGBPLocationsResponse, QueryGoogleLocationsRequest, RecommendationReason, RecommendationReasonWithLiterals, RegionSuggestion, RestoreInfo, Review, ReviewMetrics, ReviewReply, ReviewSortOrder, ReviewSortOrderWithLiterals, Role, RoleWithLiterals, SearchGoogleLocationsOptionsCriteriaOneOf, SearchGoogleLocationsRequest, SearchGoogleLocationsRequestCriteriaOneOf, SearchKeywordImpression, SearchKeywordImpressionImpressionsOneOf, ServiceArea, ServiceType, Services, SortOrder, SortOrderWithLiterals, Sorting, StartVerificationRequest, State, StateWithLiterals, Status, StatusWithLiterals, SuggestEstablishmentsRequest, SuggestRegionsRequest, Sustainability, SustainabilityCertifications, SustainableSourcing, TimeOfDay, Transportation, UnimportedLocation, UnitTier, UnitTierWithLiterals, UpdateGoogleLocationRequest, UpdateLocationAttributesRequest, UpdateLocationFoodMenusApplicationErrors, UpdateLocationFoodMenusOptions, UpdateLocationFoodMenusRequest, UpdateLocationFoodMenusResponse, UpdateLocationLodgingRequest, UpdateLocationRequest, UpdateLocationResponse, UpdateNotificationSettingRequest, VerificationMethod, VerificationOption, VerificationOptionDataOneOf, VerificationState, VerificationStateWithLiterals, ViewsFromUnit, Violation, VoiceOfMerchantState, WasteReduction, WaterConservation, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Wellness, utils } from './index.typings.mjs';
4
4
 
5
5
  declare function getGbpLocation$1(httpClient: HttpClient): GetGbpLocationSignature;
6
6
  interface GetGbpLocationSignature {
@@ -19,7 +19,7 @@ interface GetGbpLocationSignature {
19
19
  declare function queryGoogleLocations$1(httpClient: HttpClient): QueryGoogleLocationsSignature;
20
20
  interface QueryGoogleLocationsSignature {
21
21
  /**
22
- * Retrieves a list of up to 100 GBP locations with their current Google data,
22
+ * Retrieves a list of up to 20 GBP locations with their current Google data,
23
23
  * given the provided paging, filtering, and sorting.
24
24
  *
25
25
  * Takes the same filters as Query GBP Locations, and additionally retrieves each
@@ -27,6 +27,10 @@ interface QueryGoogleLocationsSignature {
27
27
  * on. Use it when you need both the stored identifiers and the current profile
28
28
  * in one call.
29
29
  *
30
+ * The default and maximum page size is 20. Requests with a larger limit are
31
+ * rejected. While `pagingMetadata.hasNext` is true, pass `pagingMetadata.cursors.next`
32
+ * as `query.cursorPaging.cursor` to retrieve the next page.
33
+ *
30
34
  * A location whose Google data can't be retrieved is still returned, with the
31
35
  * reason in that location's `googleError`. The call as a whole succeeds and
32
36
  * paging is unaffected, so check `googleError` per location rather than relying
@@ -320,6 +324,49 @@ interface ListUnimportedLocationsSignature {
320
324
  __applicationErrorsType?: ListUnimportedLocationsApplicationErrors;
321
325
  }>;
322
326
  }
327
+ declare function getNotificationSetting$1(httpClient: HttpClient): GetNotificationSettingSignature;
328
+ interface GetNotificationSettingSignature {
329
+ /**
330
+ * Retrieves a Google Business Profile account's notification setting: the
331
+ * Pub/Sub topic Google publishes to, and which types of change it publishes.
332
+ *
333
+ * Each account has exactly one notification setting. If none was ever set, the
334
+ * setting comes back with an empty `pubsubTopic` and no `notificationTypes`.
335
+ *
336
+ * A Google account must be connected first. See the
337
+ * [Connection API](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/connection-v1).
338
+ * @param - GBP Account ID to retrieve the notification setting for.
339
+ */
340
+ (accountId: string): Promise<NonNullablePaths<GetNotificationSettingResponse, `notificationSetting.accountId` | `notificationSetting.pubsubTopic` | `notificationSetting.notificationTypes`, 1> & {
341
+ __applicationErrorsType?: GetNotificationSettingApplicationErrors;
342
+ }>;
343
+ }
344
+ declare function updateNotificationSetting$1(httpClient: HttpClient): UpdateNotificationSettingSignature;
345
+ interface UpdateNotificationSettingSignature {
346
+ /**
347
+ * Updates a Google Business Profile account's notification setting.
348
+ *
349
+ * `notificationTypes` replaces the whole list. To stop all notifications for the
350
+ * account, update it to an empty list. That also clears `pubsubTopic`, so the
351
+ * account is left with no notification setting at all.
352
+ *
353
+ * The Pub/Sub topic is set by Wix, so `pubsubTopic` can't be changed here.
354
+ *
355
+ * Errors:
356
+ * - `INVALID_NOTIFICATION_TYPE`: `notificationTypes` contains
357
+ * `NOTIFICATION_TYPE_UNKNOWN` or a value this API doesn't recognize. Google
358
+ * isn't called, so the current setting is left as it was.
359
+ * - `GOOGLE_API_CALL_FAILED`: the call to Google failed. Google's status and
360
+ * response are in the error payload.
361
+ *
362
+ * A Google account must be connected first. See the
363
+ * [Connection API](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/connection-v1).
364
+ * @param - Google GBP Account ID the setting belongs to.
365
+ */
366
+ (accountId: string, notificationSetting: UpdateNotificationSetting, options?: UpdateNotificationSettingOptions): Promise<NonNullablePaths<UpdateNotificationSettingResponse, `notificationSetting.accountId` | `notificationSetting.pubsubTopic` | `notificationSetting.notificationTypes`, 1> & {
367
+ __applicationErrorsType?: UpdateNotificationSettingApplicationErrors;
368
+ }>;
369
+ }
323
370
  declare function listReviews$1(httpClient: HttpClient): ListReviewsSignature;
324
371
  interface ListReviewsSignature {
325
372
  /**
@@ -657,7 +704,7 @@ interface GetVerificationOptionsSignature {
657
704
  * It defaults to English.
658
705
  * @param - Location ID. This is Google's location identifier.
659
706
  */
660
- (locationId: string, options?: GetVerificationOptions): Promise<NonNullablePaths<GetVerificationOptionsResponse, `options` | `options.${number}.phoneNumber` | `options.${number}.emailData.domain` | `options.${number}.emailData.user` | `options.${number}.emailData.userNameEditable` | `options.${number}.addressData.business` | `options.${number}.addressData.address.countryCode` | `options.${number}.addressData.address.postalCode` | `options.${number}.addressData.address.administrativeArea` | `options.${number}.addressData.address.locality` | `options.${number}.method` | `options.${number}.displayData`, 4> & {
707
+ (locationId: string, options?: GetVerificationOptions): Promise<NonNullablePaths<GetVerificationOptionsResponse, `options` | `options.${number}.phoneNumber` | `options.${number}.emailData.domain` | `options.${number}.emailData.user` | `options.${number}.emailData.userNameEditable` | `options.${number}.addressData.business` | `options.${number}.addressData.address.countryCode` | `options.${number}.addressData.address.postalCode` | `options.${number}.addressData.address.administrativeArea` | `options.${number}.addressData.address.locality` | `options.${number}.method`, 4> & {
661
708
  __applicationErrorsType?: GetVerificationOptionsApplicationErrors;
662
709
  }>;
663
710
  }
@@ -893,6 +940,8 @@ declare const bulkCreateLocations: MaybeContext<BuildRESTFunction<typeof bulkCre
893
940
  declare const bulkDeleteLocations: MaybeContext<BuildRESTFunction<typeof bulkDeleteLocations$1> & typeof bulkDeleteLocations$1>;
894
941
  declare const listGbpAccounts: MaybeContext<BuildRESTFunction<typeof listGbpAccounts$1> & typeof listGbpAccounts$1>;
895
942
  declare const listUnimportedLocations: MaybeContext<BuildRESTFunction<typeof listUnimportedLocations$1> & typeof listUnimportedLocations$1>;
943
+ declare const getNotificationSetting: MaybeContext<BuildRESTFunction<typeof getNotificationSetting$1> & typeof getNotificationSetting$1>;
944
+ declare const updateNotificationSetting: MaybeContext<BuildRESTFunction<typeof updateNotificationSetting$1> & typeof updateNotificationSetting$1>;
896
945
  declare const listReviews: MaybeContext<BuildRESTFunction<typeof listReviews$1> & typeof listReviews$1>;
897
946
  declare const putReviewReply: MaybeContext<BuildRESTFunction<typeof putReviewReply$1> & typeof putReviewReply$1>;
898
947
  declare const deleteReviewReply: MaybeContext<BuildRESTFunction<typeof deleteReviewReply$1> & typeof deleteReviewReply$1>;
@@ -919,4 +968,4 @@ declare const suggestEstablishments: MaybeContext<BuildRESTFunction<typeof sugge
919
968
  declare const searchGoogleLocations: MaybeContext<BuildRESTFunction<typeof searchGoogleLocations$1> & typeof searchGoogleLocations$1>;
920
969
  declare const queryGbpLocations: MaybeContext<BuildRESTFunction<typeof customQueryGbpLocations> & typeof customQueryGbpLocations>;
921
970
 
922
- export { BulkCreateLocationsApplicationErrors, BulkCreateLocationsOptions, BulkCreateLocationsResponse, BulkDeleteLocationsResponse, CompleteVerificationApplicationErrors, CompleteVerificationOptions, CompleteVerificationResponse, CreateGoogleLocationApplicationErrors, CreateGoogleLocationOptions, CreateGoogleLocationResponse, CreateLocationApplicationErrors, CreateMediaApplicationErrors, CreateMediaOptions, CreateMediaResponse, DeleteGoogleLocationApplicationErrors, DeleteMediaApplicationErrors, DeleteMediaIdentifiers, DeleteReviewReplyApplicationErrors, DeleteReviewReplyIdentifiers, GBPLocation, GBPLocationQuery, GetAddressSchemaByCountryCodeApplicationErrors, GetAddressSchemaByCountryCodeOptions, GetAddressSchemaByCountryCodeResponse, GetGoogleLocationResponse, GetLocationAdminsResponse, GetLocationAttributesApplicationErrors, GetLocationAttributesResponse, GetLocationInsightsOptions, GetLocationInsightsResponse, GetLocationLodgingApplicationErrors, GetLocationLodgingResponse, GetVerificationOptions, GetVerificationOptionsApplicationErrors, GetVerificationOptionsResponse, GetVoiceOfMerchantResponse, GoogleLocation, InsightsTimeRange, InviteAdminToLocationOptions, InviteAdminToLocationResponse, ListAttributeMetadataApplicationErrors, ListAttributeMetadataOptions, ListAttributeMetadataResponse, ListCategoriesApplicationErrors, ListCategoriesOptions, ListCategoriesResponse, ListGbpAccountsApplicationErrors, ListGbpAccountsOptions, ListGbpAccountsResponse, ListMediaApplicationErrors, ListMediaOptions, ListMediaResponse, ListReviewsApplicationErrors, ListReviewsOptions, ListReviewsResponse, ListSearchKeywordImpressionsApplicationErrors, ListSearchKeywordImpressionsOptions, ListSearchKeywordImpressionsResponse, ListUnimportedLocationsApplicationErrors, ListUnimportedLocationsOptions, ListUnimportedLocationsResponse, LocationAttribute, LocationsQueryBuilder, Lodging, MonthlyRange, PutReviewReplyApplicationErrors, PutReviewReplyIdentifiers, PutReviewReplyResponse, QueryGoogleLocationsOptions, QueryGoogleLocationsResponse, SearchGoogleLocationsApplicationErrors, SearchGoogleLocationsOptions, SearchGoogleLocationsResponse, StartVerificationApplicationErrors, StartVerificationOptions, StartVerificationResponse, SuggestEstablishmentsApplicationErrors, SuggestEstablishmentsOptions, SuggestEstablishmentsResponse, SuggestRegionsApplicationErrors, SuggestRegionsOptions, SuggestRegionsResponse, UpdateGoogleLocationApplicationErrors, UpdateGoogleLocationOptions, UpdateGoogleLocationResponse, UpdateLocation, UpdateLocationAttributesApplicationErrors, UpdateLocationAttributesResponse, UpdateLocationLodgingApplicationErrors, UpdateLocationLodgingOptions, UpdateLocationLodgingResponse, VerificationMethodWithLiterals, bulkCreateLocations, bulkDeleteLocations, completeVerification, createGoogleLocation, createLocation, createMedia, deleteGoogleLocation, deleteLocation, deleteMedia, deleteReviewReply, getAddressSchemaByCountryCode, getGbpLocation, getGoogleLocation, getLocationAdmins, getLocationAttributes, getLocationInsights, getLocationLodging, getVerificationOptions, getVoiceOfMerchant, inviteAdminToLocation, listAttributeMetadata, listCategories, listGbpAccounts, listMedia, listReviews, listSearchKeywordImpressions, listUnimportedLocations, putReviewReply, queryGbpLocations, queryGoogleLocations, searchGoogleLocations, startVerification, suggestEstablishments, suggestRegions, updateGoogleLocation, updateLocation, updateLocationAttributes, updateLocationLodging };
971
+ export { BulkCreateLocationsApplicationErrors, BulkCreateLocationsOptions, BulkCreateLocationsResponse, BulkDeleteLocationsResponse, CompleteVerificationApplicationErrors, CompleteVerificationOptions, CompleteVerificationResponse, CreateGoogleLocationApplicationErrors, CreateGoogleLocationOptions, CreateGoogleLocationResponse, CreateLocationApplicationErrors, CreateMediaApplicationErrors, CreateMediaOptions, CreateMediaResponse, DeleteGoogleLocationApplicationErrors, DeleteMediaApplicationErrors, DeleteMediaIdentifiers, DeleteReviewReplyApplicationErrors, DeleteReviewReplyIdentifiers, GBPLocation, GBPLocationQuery, GetAddressSchemaByCountryCodeApplicationErrors, GetAddressSchemaByCountryCodeOptions, GetAddressSchemaByCountryCodeResponse, GetGoogleLocationResponse, 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, ListMediaApplicationErrors, ListMediaOptions, ListMediaResponse, ListReviewsApplicationErrors, ListReviewsOptions, ListReviewsResponse, ListSearchKeywordImpressionsApplicationErrors, ListSearchKeywordImpressionsOptions, ListSearchKeywordImpressionsResponse, ListUnimportedLocationsApplicationErrors, ListUnimportedLocationsOptions, ListUnimportedLocationsResponse, LocationAttribute, LocationsQueryBuilder, Lodging, MonthlyRange, PutReviewReplyApplicationErrors, PutReviewReplyIdentifiers, PutReviewReplyResponse, QueryGoogleLocationsOptions, QueryGoogleLocationsResponse, SearchGoogleLocationsApplicationErrors, SearchGoogleLocationsOptions, SearchGoogleLocationsResponse, StartVerificationApplicationErrors, StartVerificationOptions, StartVerificationResponse, SuggestEstablishmentsApplicationErrors, SuggestEstablishmentsOptions, SuggestEstablishmentsResponse, SuggestRegionsApplicationErrors, SuggestRegionsOptions, SuggestRegionsResponse, UpdateGoogleLocationApplicationErrors, UpdateGoogleLocationOptions, UpdateGoogleLocationResponse, UpdateLocation, UpdateLocationAttributesApplicationErrors, UpdateLocationAttributesResponse, UpdateLocationLodgingApplicationErrors, UpdateLocationLodgingOptions, UpdateLocationLodgingResponse, UpdateNotificationSetting, UpdateNotificationSettingApplicationErrors, UpdateNotificationSettingOptions, UpdateNotificationSettingResponse, VerificationMethodWithLiterals, bulkCreateLocations, bulkDeleteLocations, completeVerification, createGoogleLocation, createLocation, createMedia, deleteGoogleLocation, deleteLocation, deleteMedia, deleteReviewReply, getAddressSchemaByCountryCode, getGbpLocation, getGoogleLocation, getLocationAdmins, getLocationAttributes, getLocationInsights, getLocationLodging, getNotificationSetting, getVerificationOptions, getVoiceOfMerchant, inviteAdminToLocation, listAttributeMetadata, listCategories, listGbpAccounts, listMedia, listReviews, listSearchKeywordImpressions, listUnimportedLocations, putReviewReply, queryGbpLocations, queryGoogleLocations, searchGoogleLocations, startVerification, suggestEstablishments, suggestRegions, updateGoogleLocation, updateLocation, updateLocationAttributes, updateLocationLodging, updateNotificationSetting };
@@ -621,6 +621,54 @@ function listUnimportedLocations(payload) {
621
621
  }
622
622
  return __listUnimportedLocations;
623
623
  }
624
+ function getNotificationSetting(payload) {
625
+ function __getNotificationSetting({ host }) {
626
+ const metadata = {
627
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
628
+ method: "GET",
629
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetNotificationSetting",
630
+ packageName: PACKAGE_NAME,
631
+ migrationOptions: {
632
+ optInTransformResponse: true
633
+ },
634
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
635
+ protoPath: "/v1/accounts/{accountId}/notification-setting",
636
+ data: payload,
637
+ host
638
+ }),
639
+ params: toURLSearchParams(payload)
640
+ };
641
+ return metadata;
642
+ }
643
+ return __getNotificationSetting;
644
+ }
645
+ function updateNotificationSetting(payload) {
646
+ function __updateNotificationSetting({ host }) {
647
+ const serializedData = transformPaths(payload, [
648
+ {
649
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
650
+ paths: [{ path: "fieldMask" }]
651
+ }
652
+ ]);
653
+ const metadata = {
654
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
655
+ method: "PATCH",
656
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.UpdateNotificationSetting",
657
+ packageName: PACKAGE_NAME,
658
+ migrationOptions: {
659
+ optInTransformResponse: true
660
+ },
661
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
662
+ protoPath: "/v1/accounts/{notificationSetting.accountId}/notification-setting",
663
+ data: serializedData,
664
+ host
665
+ }),
666
+ data: serializedData
667
+ };
668
+ return metadata;
669
+ }
670
+ return __updateNotificationSetting;
671
+ }
624
672
  function listReviews(payload) {
625
673
  function __listReviews({ host }) {
626
674
  const metadata = {
@@ -1297,6 +1345,15 @@ var RecommendationReason = /* @__PURE__ */ ((RecommendationReason2) => {
1297
1345
  RecommendationReason2["BUSINESS_LOCATION_DISABLED"] = "BUSINESS_LOCATION_DISABLED";
1298
1346
  return RecommendationReason2;
1299
1347
  })(RecommendationReason || {});
1348
+ var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
1349
+ NotificationType2["GOOGLE_UPDATE"] = "GOOGLE_UPDATE";
1350
+ NotificationType2["NEW_REVIEW"] = "NEW_REVIEW";
1351
+ NotificationType2["UPDATED_REVIEW"] = "UPDATED_REVIEW";
1352
+ NotificationType2["NEW_CUSTOMER_MEDIA"] = "NEW_CUSTOMER_MEDIA";
1353
+ NotificationType2["DUPLICATE_LOCATION"] = "DUPLICATE_LOCATION";
1354
+ NotificationType2["VOICE_OF_MERCHANT_UPDATED"] = "VOICE_OF_MERCHANT_UPDATED";
1355
+ return NotificationType2;
1356
+ })(NotificationType || {});
1300
1357
  var ReviewSortOrder = /* @__PURE__ */ ((ReviewSortOrder2) => {
1301
1358
  ReviewSortOrder2["NEWEST"] = "NEWEST";
1302
1359
  ReviewSortOrder2["HIGHEST_RATING"] = "HIGHEST_RATING";
@@ -1865,6 +1922,60 @@ async function listUnimportedLocations2(accountId, options) {
1865
1922
  throw transformedError;
1866
1923
  }
1867
1924
  }
1925
+ async function getNotificationSetting2(accountId) {
1926
+ const { httpClient, sideEffects } = arguments[1];
1927
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1928
+ accountId
1929
+ });
1930
+ const reqOpts = getNotificationSetting(payload);
1931
+ sideEffects?.onSiteCall?.();
1932
+ try {
1933
+ const result = await httpClient.request(reqOpts);
1934
+ sideEffects?.onSuccess?.(result);
1935
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1936
+ } catch (err) {
1937
+ const transformedError = sdkTransformError(
1938
+ err,
1939
+ {
1940
+ spreadPathsToArguments: {},
1941
+ explicitPathsToArguments: { accountId: "$[0]" },
1942
+ singleArgumentUnchanged: false
1943
+ },
1944
+ ["accountId"]
1945
+ );
1946
+ sideEffects?.onError?.(err);
1947
+ throw transformedError;
1948
+ }
1949
+ }
1950
+ async function updateNotificationSetting2(accountId, notificationSetting, options) {
1951
+ const { httpClient, sideEffects } = arguments[3];
1952
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1953
+ notificationSetting: { ...notificationSetting, accountId },
1954
+ fieldMask: options?.fieldMask
1955
+ });
1956
+ const reqOpts = updateNotificationSetting(payload);
1957
+ sideEffects?.onSiteCall?.();
1958
+ try {
1959
+ const result = await httpClient.request(reqOpts);
1960
+ sideEffects?.onSuccess?.(result);
1961
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1962
+ } catch (err) {
1963
+ const transformedError = sdkTransformError(
1964
+ err,
1965
+ {
1966
+ spreadPathsToArguments: { notificationSetting: "$[1]" },
1967
+ explicitPathsToArguments: {
1968
+ "notificationSetting.accountId": "$[0]",
1969
+ fieldMask: "$[2].fieldMask"
1970
+ },
1971
+ singleArgumentUnchanged: false
1972
+ },
1973
+ ["accountId", "notificationSetting", "options"]
1974
+ );
1975
+ sideEffects?.onError?.(err);
1976
+ throw transformedError;
1977
+ }
1978
+ }
1868
1979
  async function listReviews2(locationId, options) {
1869
1980
  const { httpClient, sideEffects } = arguments[2];
1870
1981
  const payload = renameKeysFromSDKRequestToRESTRequest({
@@ -2718,6 +2829,22 @@ function listUnimportedLocations3(httpClient) {
2718
2829
  { httpClient }
2719
2830
  );
2720
2831
  }
2832
+ function getNotificationSetting3(httpClient) {
2833
+ return (accountId) => getNotificationSetting2(
2834
+ accountId,
2835
+ // @ts-ignore
2836
+ { httpClient }
2837
+ );
2838
+ }
2839
+ function updateNotificationSetting3(httpClient) {
2840
+ return (accountId, notificationSetting, options) => updateNotificationSetting2(
2841
+ accountId,
2842
+ notificationSetting,
2843
+ options,
2844
+ // @ts-ignore
2845
+ { httpClient }
2846
+ );
2847
+ }
2721
2848
  function listReviews3(httpClient) {
2722
2849
  return (locationId, options) => listReviews2(
2723
2850
  locationId,
@@ -2945,6 +3072,8 @@ var bulkCreateLocations4 = /* @__PURE__ */ createRESTModule(bulkCreateLocations3
2945
3072
  var bulkDeleteLocations4 = /* @__PURE__ */ createRESTModule(bulkDeleteLocations3);
2946
3073
  var listGbpAccounts4 = /* @__PURE__ */ createRESTModule(listGbpAccounts3);
2947
3074
  var listUnimportedLocations4 = /* @__PURE__ */ createRESTModule(listUnimportedLocations3);
3075
+ var getNotificationSetting4 = /* @__PURE__ */ createRESTModule(getNotificationSetting3);
3076
+ var updateNotificationSetting4 = /* @__PURE__ */ createRESTModule(updateNotificationSetting3);
2948
3077
  var listReviews4 = /* @__PURE__ */ createRESTModule(listReviews3);
2949
3078
  var putReviewReply4 = /* @__PURE__ */ createRESTModule(putReviewReply3);
2950
3079
  var deleteReviewReply4 = /* @__PURE__ */ createRESTModule(deleteReviewReply3);
@@ -2985,6 +3114,7 @@ export {
2985
3114
  MatchStatus,
2986
3115
  MediaCategory,
2987
3116
  MediaFormat,
3117
+ NotificationType,
2988
3118
  RecommendationReason,
2989
3119
  ReviewSortOrder,
2990
3120
  Role,
@@ -3012,6 +3142,7 @@ export {
3012
3142
  getLocationAttributes4 as getLocationAttributes,
3013
3143
  getLocationInsights4 as getLocationInsights,
3014
3144
  getLocationLodging4 as getLocationLodging,
3145
+ getNotificationSetting4 as getNotificationSetting,
3015
3146
  getVerificationOptions4 as getVerificationOptions,
3016
3147
  getVoiceOfMerchant4 as getVoiceOfMerchant,
3017
3148
  inviteAdminToLocation4 as inviteAdminToLocation,
@@ -3034,6 +3165,7 @@ export {
3034
3165
  updateLocationAttributes4 as updateLocationAttributes,
3035
3166
  updateLocationFoodMenus4 as updateLocationFoodMenus,
3036
3167
  updateLocationLodging4 as updateLocationLodging,
3168
+ updateNotificationSetting4 as updateNotificationSetting,
3037
3169
  utils
3038
3170
  };
3039
3171
  //# sourceMappingURL=index.mjs.map