@wix/auto_sdk_gbp_locations 1.0.12 → 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.js';
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.js';
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.js';
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.js';
4
4
 
5
5
  declare function getGbpLocation$1(httpClient: HttpClient): GetGbpLocationSignature;
6
6
  interface GetGbpLocationSignature {
@@ -324,6 +324,49 @@ interface ListUnimportedLocationsSignature {
324
324
  __applicationErrorsType?: ListUnimportedLocationsApplicationErrors;
325
325
  }>;
326
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
+ }
327
370
  declare function listReviews$1(httpClient: HttpClient): ListReviewsSignature;
328
371
  interface ListReviewsSignature {
329
372
  /**
@@ -661,7 +704,7 @@ interface GetVerificationOptionsSignature {
661
704
  * It defaults to English.
662
705
  * @param - Location ID. This is Google's location identifier.
663
706
  */
664
- (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> & {
665
708
  __applicationErrorsType?: GetVerificationOptionsApplicationErrors;
666
709
  }>;
667
710
  }
@@ -897,6 +940,8 @@ declare const bulkCreateLocations: MaybeContext<BuildRESTFunction<typeof bulkCre
897
940
  declare const bulkDeleteLocations: MaybeContext<BuildRESTFunction<typeof bulkDeleteLocations$1> & typeof bulkDeleteLocations$1>;
898
941
  declare const listGbpAccounts: MaybeContext<BuildRESTFunction<typeof listGbpAccounts$1> & typeof listGbpAccounts$1>;
899
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>;
900
945
  declare const listReviews: MaybeContext<BuildRESTFunction<typeof listReviews$1> & typeof listReviews$1>;
901
946
  declare const putReviewReply: MaybeContext<BuildRESTFunction<typeof putReviewReply$1> & typeof putReviewReply$1>;
902
947
  declare const deleteReviewReply: MaybeContext<BuildRESTFunction<typeof deleteReviewReply$1> & typeof deleteReviewReply$1>;
@@ -923,4 +968,4 @@ declare const suggestEstablishments: MaybeContext<BuildRESTFunction<typeof sugge
923
968
  declare const searchGoogleLocations: MaybeContext<BuildRESTFunction<typeof searchGoogleLocations$1> & typeof searchGoogleLocations$1>;
924
969
  declare const queryGbpLocations: MaybeContext<BuildRESTFunction<typeof customQueryGbpLocations> & typeof customQueryGbpLocations>;
925
970
 
926
- 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 };
@@ -33,6 +33,7 @@ __export(index_exports, {
33
33
  MatchStatus: () => MatchStatus,
34
34
  MediaCategory: () => MediaCategory,
35
35
  MediaFormat: () => MediaFormat,
36
+ NotificationType: () => NotificationType,
36
37
  RecommendationReason: () => RecommendationReason,
37
38
  ReviewSortOrder: () => ReviewSortOrder,
38
39
  Role: () => Role,
@@ -60,6 +61,7 @@ __export(index_exports, {
60
61
  getLocationAttributes: () => getLocationAttributes4,
61
62
  getLocationInsights: () => getLocationInsights4,
62
63
  getLocationLodging: () => getLocationLodging4,
64
+ getNotificationSetting: () => getNotificationSetting4,
63
65
  getVerificationOptions: () => getVerificationOptions4,
64
66
  getVoiceOfMerchant: () => getVoiceOfMerchant4,
65
67
  inviteAdminToLocation: () => inviteAdminToLocation4,
@@ -82,6 +84,7 @@ __export(index_exports, {
82
84
  updateLocationAttributes: () => updateLocationAttributes4,
83
85
  updateLocationFoodMenus: () => updateLocationFoodMenus4,
84
86
  updateLocationLodging: () => updateLocationLodging4,
87
+ updateNotificationSetting: () => updateNotificationSetting4,
85
88
  utils: () => utils
86
89
  });
87
90
  module.exports = __toCommonJS(index_exports);
@@ -706,6 +709,54 @@ function listUnimportedLocations(payload) {
706
709
  }
707
710
  return __listUnimportedLocations;
708
711
  }
712
+ function getNotificationSetting(payload) {
713
+ function __getNotificationSetting({ host }) {
714
+ const metadata = {
715
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
716
+ method: "GET",
717
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetNotificationSetting",
718
+ packageName: PACKAGE_NAME,
719
+ migrationOptions: {
720
+ optInTransformResponse: true
721
+ },
722
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
723
+ protoPath: "/v1/accounts/{accountId}/notification-setting",
724
+ data: payload,
725
+ host
726
+ }),
727
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
728
+ };
729
+ return metadata;
730
+ }
731
+ return __getNotificationSetting;
732
+ }
733
+ function updateNotificationSetting(payload) {
734
+ function __updateNotificationSetting({ host }) {
735
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
736
+ {
737
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
738
+ paths: [{ path: "fieldMask" }]
739
+ }
740
+ ]);
741
+ const metadata = {
742
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
743
+ method: "PATCH",
744
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.UpdateNotificationSetting",
745
+ packageName: PACKAGE_NAME,
746
+ migrationOptions: {
747
+ optInTransformResponse: true
748
+ },
749
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
750
+ protoPath: "/v1/accounts/{notificationSetting.accountId}/notification-setting",
751
+ data: serializedData,
752
+ host
753
+ }),
754
+ data: serializedData
755
+ };
756
+ return metadata;
757
+ }
758
+ return __updateNotificationSetting;
759
+ }
709
760
  function listReviews(payload) {
710
761
  function __listReviews({ host }) {
711
762
  const metadata = {
@@ -1382,6 +1433,15 @@ var RecommendationReason = /* @__PURE__ */ ((RecommendationReason2) => {
1382
1433
  RecommendationReason2["BUSINESS_LOCATION_DISABLED"] = "BUSINESS_LOCATION_DISABLED";
1383
1434
  return RecommendationReason2;
1384
1435
  })(RecommendationReason || {});
1436
+ var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
1437
+ NotificationType2["GOOGLE_UPDATE"] = "GOOGLE_UPDATE";
1438
+ NotificationType2["NEW_REVIEW"] = "NEW_REVIEW";
1439
+ NotificationType2["UPDATED_REVIEW"] = "UPDATED_REVIEW";
1440
+ NotificationType2["NEW_CUSTOMER_MEDIA"] = "NEW_CUSTOMER_MEDIA";
1441
+ NotificationType2["DUPLICATE_LOCATION"] = "DUPLICATE_LOCATION";
1442
+ NotificationType2["VOICE_OF_MERCHANT_UPDATED"] = "VOICE_OF_MERCHANT_UPDATED";
1443
+ return NotificationType2;
1444
+ })(NotificationType || {});
1385
1445
  var ReviewSortOrder = /* @__PURE__ */ ((ReviewSortOrder2) => {
1386
1446
  ReviewSortOrder2["NEWEST"] = "NEWEST";
1387
1447
  ReviewSortOrder2["HIGHEST_RATING"] = "HIGHEST_RATING";
@@ -1950,6 +2010,60 @@ async function listUnimportedLocations2(accountId, options) {
1950
2010
  throw transformedError;
1951
2011
  }
1952
2012
  }
2013
+ async function getNotificationSetting2(accountId) {
2014
+ const { httpClient, sideEffects } = arguments[1];
2015
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2016
+ accountId
2017
+ });
2018
+ const reqOpts = getNotificationSetting(payload);
2019
+ sideEffects?.onSiteCall?.();
2020
+ try {
2021
+ const result = await httpClient.request(reqOpts);
2022
+ sideEffects?.onSuccess?.(result);
2023
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2024
+ } catch (err) {
2025
+ const transformedError = (0, import_transform_error.transformError)(
2026
+ err,
2027
+ {
2028
+ spreadPathsToArguments: {},
2029
+ explicitPathsToArguments: { accountId: "$[0]" },
2030
+ singleArgumentUnchanged: false
2031
+ },
2032
+ ["accountId"]
2033
+ );
2034
+ sideEffects?.onError?.(err);
2035
+ throw transformedError;
2036
+ }
2037
+ }
2038
+ async function updateNotificationSetting2(accountId, notificationSetting, options) {
2039
+ const { httpClient, sideEffects } = arguments[3];
2040
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2041
+ notificationSetting: { ...notificationSetting, accountId },
2042
+ fieldMask: options?.fieldMask
2043
+ });
2044
+ const reqOpts = updateNotificationSetting(payload);
2045
+ sideEffects?.onSiteCall?.();
2046
+ try {
2047
+ const result = await httpClient.request(reqOpts);
2048
+ sideEffects?.onSuccess?.(result);
2049
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2050
+ } catch (err) {
2051
+ const transformedError = (0, import_transform_error.transformError)(
2052
+ err,
2053
+ {
2054
+ spreadPathsToArguments: { notificationSetting: "$[1]" },
2055
+ explicitPathsToArguments: {
2056
+ "notificationSetting.accountId": "$[0]",
2057
+ fieldMask: "$[2].fieldMask"
2058
+ },
2059
+ singleArgumentUnchanged: false
2060
+ },
2061
+ ["accountId", "notificationSetting", "options"]
2062
+ );
2063
+ sideEffects?.onError?.(err);
2064
+ throw transformedError;
2065
+ }
2066
+ }
1953
2067
  async function listReviews2(locationId, options) {
1954
2068
  const { httpClient, sideEffects } = arguments[2];
1955
2069
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -2803,6 +2917,22 @@ function listUnimportedLocations3(httpClient) {
2803
2917
  { httpClient }
2804
2918
  );
2805
2919
  }
2920
+ function getNotificationSetting3(httpClient) {
2921
+ return (accountId) => getNotificationSetting2(
2922
+ accountId,
2923
+ // @ts-ignore
2924
+ { httpClient }
2925
+ );
2926
+ }
2927
+ function updateNotificationSetting3(httpClient) {
2928
+ return (accountId, notificationSetting, options) => updateNotificationSetting2(
2929
+ accountId,
2930
+ notificationSetting,
2931
+ options,
2932
+ // @ts-ignore
2933
+ { httpClient }
2934
+ );
2935
+ }
2806
2936
  function listReviews3(httpClient) {
2807
2937
  return (locationId, options) => listReviews2(
2808
2938
  locationId,
@@ -3030,6 +3160,8 @@ var bulkCreateLocations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTMo
3030
3160
  var bulkDeleteLocations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkDeleteLocations3);
3031
3161
  var listGbpAccounts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listGbpAccounts3);
3032
3162
  var listUnimportedLocations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listUnimportedLocations3);
3163
+ var getNotificationSetting4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getNotificationSetting3);
3164
+ var updateNotificationSetting4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateNotificationSetting3);
3033
3165
  var listReviews4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listReviews3);
3034
3166
  var putReviewReply4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(putReviewReply3);
3035
3167
  var deleteReviewReply4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteReviewReply3);
@@ -3071,6 +3203,7 @@ var queryGbpLocations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModu
3071
3203
  MatchStatus,
3072
3204
  MediaCategory,
3073
3205
  MediaFormat,
3206
+ NotificationType,
3074
3207
  RecommendationReason,
3075
3208
  ReviewSortOrder,
3076
3209
  Role,
@@ -3098,6 +3231,7 @@ var queryGbpLocations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModu
3098
3231
  getLocationAttributes,
3099
3232
  getLocationInsights,
3100
3233
  getLocationLodging,
3234
+ getNotificationSetting,
3101
3235
  getVerificationOptions,
3102
3236
  getVoiceOfMerchant,
3103
3237
  inviteAdminToLocation,
@@ -3120,6 +3254,7 @@ var queryGbpLocations4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModu
3120
3254
  updateLocationAttributes,
3121
3255
  updateLocationFoodMenus,
3122
3256
  updateLocationLodging,
3257
+ updateNotificationSetting,
3123
3258
  utils
3124
3259
  });
3125
3260
  //# sourceMappingURL=index.js.map