@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.
@@ -242,7 +242,9 @@ interface Cursors {
242
242
  interface QueryGoogleLocationsRequest {
243
243
  /**
244
244
  * Query to filter, sort and page the results. Takes the same properties as
245
- * Query GBP Locations.
245
+ * Query GBP Locations. The default and maximum `cursorPaging.limit` is 20;
246
+ * larger limits are rejected. Set `cursorPaging.cursor` to the previous
247
+ * response's `pagingMetadata.cursors.next` while `pagingMetadata.hasNext` is true.
246
248
  *
247
249
  * Supported properties: `id`, `googleLocationId`, `accountId`.
248
250
  */
@@ -1135,6 +1137,100 @@ interface UnimportedLocation {
1135
1137
  */
1136
1138
  serviceArea?: ServiceArea;
1137
1139
  }
1140
+ interface GetNotificationSettingRequest {
1141
+ /**
1142
+ * GBP Account ID to retrieve the notification setting for.
1143
+ * @minLength 1
1144
+ * @maxLength 255
1145
+ */
1146
+ accountId: string;
1147
+ }
1148
+ interface GetNotificationSettingResponse {
1149
+ /** The account's notification setting, as Google holds it. */
1150
+ notificationSetting?: NotificationSetting;
1151
+ }
1152
+ /**
1153
+ * Which Google Business Profile events Google publishes to a Pub/Sub topic for
1154
+ * the locations in an account. Mirrors Google's `NotificationSetting`. Each
1155
+ * account has exactly one.
1156
+ */
1157
+ interface NotificationSetting {
1158
+ /**
1159
+ * Google GBP Account ID the setting belongs to.
1160
+ * @maxLength 255
1161
+ */
1162
+ accountId?: string;
1163
+ /**
1164
+ * Google Cloud Pub/Sub topic that receives notifications when locations managed
1165
+ * by this account are updated, in the format
1166
+ * `projects/{project_id}/topics/{topic_id}`. When empty, no notifications are
1167
+ * posted.
1168
+ *
1169
+ * Set by Wix on every update; any value you send is ignored.
1170
+ * @maxLength 512
1171
+ * @readonly
1172
+ */
1173
+ pubsubTopic?: string;
1174
+ /**
1175
+ * Types of notifications sent to the Pub/Sub topic. Updating to an empty list
1176
+ * stops all notifications for the account and clears `pubsubTopic`.
1177
+ * @maxSize 10
1178
+ */
1179
+ notificationTypes?: NotificationTypeWithLiterals[];
1180
+ }
1181
+ /**
1182
+ * A kind of Google Business Profile change that can be published to Pub/Sub.
1183
+ * Values match Google's `NotificationType`. Google's deprecated values (the
1184
+ * discontinued Q&A notifications and `LOSS_OF_MERCHANT_VOICE`) aren't supported.
1185
+ */
1186
+ declare enum NotificationType {
1187
+ /**
1188
+ * The location has Google updates for review. The notification carries the
1189
+ * location's resource name.
1190
+ */
1191
+ GOOGLE_UPDATE = "GOOGLE_UPDATE",
1192
+ /**
1193
+ * A new review was added to the location. The notification carries the review
1194
+ * and location resource names.
1195
+ */
1196
+ NEW_REVIEW = "NEW_REVIEW",
1197
+ /**
1198
+ * A review on the location was updated. The notification carries the review and
1199
+ * location resource names.
1200
+ */
1201
+ UPDATED_REVIEW = "UPDATED_REVIEW",
1202
+ /**
1203
+ * A Google Maps user added new media to the location. The notification carries
1204
+ * the new media's resource name.
1205
+ */
1206
+ NEW_CUSTOMER_MEDIA = "NEW_CUSTOMER_MEDIA",
1207
+ /** The duplicate-location field in the location's metadata changed. */
1208
+ DUPLICATE_LOCATION = "DUPLICATE_LOCATION",
1209
+ /**
1210
+ * The location's Voice of Merchant status changed. Voice of Merchant says whether
1211
+ * the location is in good standing and the merchant controls the business on
1212
+ * Google.
1213
+ */
1214
+ VOICE_OF_MERCHANT_UPDATED = "VOICE_OF_MERCHANT_UPDATED"
1215
+ }
1216
+ /** @enumType */
1217
+ type NotificationTypeWithLiterals = NotificationType | 'GOOGLE_UPDATE' | 'NEW_REVIEW' | 'UPDATED_REVIEW' | 'NEW_CUSTOMER_MEDIA' | 'DUPLICATE_LOCATION' | 'VOICE_OF_MERCHANT_UPDATED';
1218
+ interface UpdateNotificationSettingRequest {
1219
+ /**
1220
+ * The notification setting to apply. `accountId` identifies the account and
1221
+ * `notificationTypes` is the complete list to set.
1222
+ */
1223
+ notificationSetting: NotificationSetting;
1224
+ /**
1225
+ * Not used yet: every update is a full update, applying `notificationTypes`
1226
+ * as given. Reserved for future partial updates.
1227
+ */
1228
+ fieldMask?: string[];
1229
+ }
1230
+ interface UpdateNotificationSettingResponse {
1231
+ /** The account's notification setting after the update, as Google returned it. */
1232
+ notificationSetting?: NotificationSetting;
1233
+ }
1138
1234
  interface ListReviewsRequest {
1139
1235
  /**
1140
1236
  * Location ID. This is Google's location identifier.
@@ -4164,18 +4260,6 @@ interface VerificationOption extends VerificationOptionDataOneOf {
4164
4260
  addressData?: AddressVerificationData;
4165
4261
  /** The verification method. */
4166
4262
  method?: VerificationMethodWithLiterals;
4167
- /**
4168
- * Deprecated: read the method-specific `data` fields instead.
4169
- * Flattened display string: the phone number (PHONE_CALL/SMS), the email
4170
- * address (EMAIL), or a single-line postal address (ADDRESS). Empty for AUTO.
4171
- * @maxLength 255
4172
- * @deprecated Deprecated: read the method-specific `data` fields instead.
4173
- * Flattened display string: the phone number (PHONE_CALL/SMS), the email
4174
- * address (EMAIL), or a single-line postal address (ADDRESS). Empty for AUTO.
4175
- * @replacedBy data
4176
- * @targetRemovalDate 2026-11-30
4177
- */
4178
- displayData?: string;
4179
4263
  }
4180
4264
  /** @oneof */
4181
4265
  interface VerificationOptionDataOneOf {
@@ -5043,6 +5127,30 @@ type ListUnimportedLocationsApplicationErrors = {
5043
5127
  data?: Record<string, any>;
5044
5128
  };
5045
5129
  /** @docsIgnore */
5130
+ type GetNotificationSettingApplicationErrors = {
5131
+ code?: 'CONNECTION_NOT_FOUND';
5132
+ description?: string;
5133
+ data?: Record<string, any>;
5134
+ } | {
5135
+ code?: 'GOOGLE_API_CALL_FAILED';
5136
+ description?: string;
5137
+ data?: GoogleApiCallFailedError;
5138
+ };
5139
+ /** @docsIgnore */
5140
+ type UpdateNotificationSettingApplicationErrors = {
5141
+ code?: 'CONNECTION_NOT_FOUND';
5142
+ description?: string;
5143
+ data?: Record<string, any>;
5144
+ } | {
5145
+ code?: 'INVALID_NOTIFICATION_TYPE';
5146
+ description?: string;
5147
+ data?: Record<string, any>;
5148
+ } | {
5149
+ code?: 'GOOGLE_API_CALL_FAILED';
5150
+ description?: string;
5151
+ data?: GoogleApiCallFailedError;
5152
+ };
5153
+ /** @docsIgnore */
5046
5154
  type ListReviewsApplicationErrors = {
5047
5155
  code?: 'GOOGLE_API_CALL_FAILED';
5048
5156
  description?: string;
@@ -5394,7 +5502,7 @@ declare const utils: {
5394
5502
  query: _wix_sdk_types.QueryHelpers<GBPLocation, GBPLocationQuerySpec, GBPLocationQuery>;
5395
5503
  };
5396
5504
  /**
5397
- * Retrieves a list of up to 100 GBP locations with their current Google data,
5505
+ * Retrieves a list of up to 20 GBP locations with their current Google data,
5398
5506
  * given the provided paging, filtering, and sorting.
5399
5507
  *
5400
5508
  * Takes the same filters as Query GBP Locations, and additionally retrieves each
@@ -5402,6 +5510,10 @@ declare const utils: {
5402
5510
  * on. Use it when you need both the stored identifiers and the current profile
5403
5511
  * in one call.
5404
5512
  *
5513
+ * The default and maximum page size is 20. Requests with a larger limit are
5514
+ * rejected. While `pagingMetadata.hasNext` is true, pass `pagingMetadata.cursors.next`
5515
+ * as `query.cursorPaging.cursor` to retrieve the next page.
5516
+ *
5405
5517
  * A location whose Google data can't be retrieved is still returned, with the
5406
5518
  * reason in that location's `googleError`. The call as a whole succeeds and
5407
5519
  * paging is unaffected, so check `googleError` per location rather than relying
@@ -5424,7 +5536,9 @@ declare function queryGoogleLocations(options?: QueryGoogleLocationsOptions): Pr
5424
5536
  interface QueryGoogleLocationsOptions {
5425
5537
  /**
5426
5538
  * Query to filter, sort and page the results. Takes the same properties as
5427
- * Query GBP Locations.
5539
+ * Query GBP Locations. The default and maximum `cursorPaging.limit` is 20;
5540
+ * larger limits are rejected. Set `cursorPaging.cursor` to the previous
5541
+ * response's `pagingMetadata.cursors.next` while `pagingMetadata.hasNext` is true.
5428
5542
  *
5429
5543
  * Supported properties: `id`, `googleLocationId`, `accountId`.
5430
5544
  */
@@ -5895,6 +6009,82 @@ interface ListUnimportedLocationsOptions {
5895
6009
  */
5896
6010
  paging?: CursorPaging;
5897
6011
  }
6012
+ /**
6013
+ * Retrieves a Google Business Profile account's notification setting: the
6014
+ * Pub/Sub topic Google publishes to, and which types of change it publishes.
6015
+ *
6016
+ * Each account has exactly one notification setting. If none was ever set, the
6017
+ * setting comes back with an empty `pubsubTopic` and no `notificationTypes`.
6018
+ *
6019
+ * A Google account must be connected first. See the
6020
+ * [Connection API](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/connection-v1).
6021
+ * @param accountId - GBP Account ID to retrieve the notification setting for.
6022
+ * @public
6023
+ * @documentationMaturity preview
6024
+ * @requiredField accountId
6025
+ * @permissionId gbp:location:v1:gbplocation:get_notification_setting
6026
+ * @applicableIdentity APP
6027
+ * @fqn wix.gbp.location.v1.GbpLocationsService.GetNotificationSetting
6028
+ */
6029
+ declare function getNotificationSetting(accountId: string): Promise<NonNullablePaths<GetNotificationSettingResponse, `notificationSetting.accountId` | `notificationSetting.pubsubTopic` | `notificationSetting.notificationTypes`, 1> & {
6030
+ __applicationErrorsType?: GetNotificationSettingApplicationErrors;
6031
+ }>;
6032
+ /**
6033
+ * Updates a Google Business Profile account's notification setting.
6034
+ *
6035
+ * `notificationTypes` replaces the whole list. To stop all notifications for the
6036
+ * account, update it to an empty list. That also clears `pubsubTopic`, so the
6037
+ * account is left with no notification setting at all.
6038
+ *
6039
+ * The Pub/Sub topic is set by Wix, so `pubsubTopic` can't be changed here.
6040
+ *
6041
+ * Errors:
6042
+ * - `INVALID_NOTIFICATION_TYPE`: `notificationTypes` contains
6043
+ * `NOTIFICATION_TYPE_UNKNOWN` or a value this API doesn't recognize. Google
6044
+ * isn't called, so the current setting is left as it was.
6045
+ * - `GOOGLE_API_CALL_FAILED`: the call to Google failed. Google's status and
6046
+ * response are in the error payload.
6047
+ *
6048
+ * A Google account must be connected first. See the
6049
+ * [Connection API](https://dev.wix.com/docs/api-reference/business-management/google-business-profile/connection-v1).
6050
+ * @param accountId - Google GBP Account ID the setting belongs to.
6051
+ * @public
6052
+ * @documentationMaturity preview
6053
+ * @requiredField accountId
6054
+ * @requiredField notificationSetting
6055
+ * @permissionId gbp:location:v1:gbplocation:update_notification_setting
6056
+ * @applicableIdentity APP
6057
+ * @fqn wix.gbp.location.v1.GbpLocationsService.UpdateNotificationSetting
6058
+ */
6059
+ declare function updateNotificationSetting(accountId: string, notificationSetting: UpdateNotificationSetting, options?: UpdateNotificationSettingOptions): Promise<NonNullablePaths<UpdateNotificationSettingResponse, `notificationSetting.accountId` | `notificationSetting.pubsubTopic` | `notificationSetting.notificationTypes`, 1> & {
6060
+ __applicationErrorsType?: UpdateNotificationSettingApplicationErrors;
6061
+ }>;
6062
+ interface UpdateNotificationSetting {
6063
+ /**
6064
+ * Google Cloud Pub/Sub topic that receives notifications when locations managed
6065
+ * by this account are updated, in the format
6066
+ * `projects/{project_id}/topics/{topic_id}`. When empty, no notifications are
6067
+ * posted.
6068
+ *
6069
+ * Set by Wix on every update; any value you send is ignored.
6070
+ * @maxLength 512
6071
+ * @readonly
6072
+ */
6073
+ pubsubTopic?: string;
6074
+ /**
6075
+ * Types of notifications sent to the Pub/Sub topic. Updating to an empty list
6076
+ * stops all notifications for the account and clears `pubsubTopic`.
6077
+ * @maxSize 10
6078
+ */
6079
+ notificationTypes?: NotificationTypeWithLiterals[];
6080
+ }
6081
+ interface UpdateNotificationSettingOptions {
6082
+ /**
6083
+ * Not used yet: every update is a full update, applying `notificationTypes`
6084
+ * as given. Reserved for future partial updates.
6085
+ */
6086
+ fieldMask?: string[];
6087
+ }
5898
6088
  /**
5899
6089
  * Retrieves a list of up to 100 reviews for a location, given the provided
5900
6090
  * paging and sorting.
@@ -6449,7 +6639,7 @@ interface ListCategoriesOptions {
6449
6639
  * @applicableIdentity APP
6450
6640
  * @fqn wix.gbp.location.v1.GbpLocationsService.GetVerificationOptions
6451
6641
  */
6452
- declare function getVerificationOptions(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> & {
6642
+ declare function getVerificationOptions(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> & {
6453
6643
  __applicationErrorsType?: GetVerificationOptionsApplicationErrors;
6454
6644
  }>;
6455
6645
  interface GetVerificationOptions {
@@ -6828,4 +7018,4 @@ interface SearchGoogleLocationsOptionsCriteriaOneOf {
6828
7018
  location?: GoogleLocation;
6829
7019
  }
6830
7020
 
6831
- export { type Accessibility, type AccountInfo, type ActionEvent, type Activities, AddressFieldType, type AddressFieldTypeWithLiterals, type AddressSchema, type AddressVerificationData, AmenityException, type AmenityExceptionWithLiterals, type ApplicationError, type AttributeMetadata, type AttributeValueMetadata, type AttributeValueMetadataValueOneOf, AttributeValueType, type AttributeValueTypeWithLiterals, BreeamCertification, type BreeamCertificationWithLiterals, type BulkActionMetadata, type BulkCreateLocationResult, type BulkCreateLocationsApplicationErrors, type BulkCreateLocationsOptions, type BulkCreateLocationsRequest, type BulkCreateLocationsResponse, type BulkDeleteLocationResult, type BulkDeleteLocationsRequest, type BulkDeleteLocationsResponse, type Business, type BusinessHours, BusinessType, type BusinessTypeWithLiterals, type CalendarMonth, type Category, type CategoryMetadata, type CategoryRegion, CategoryView, type CategoryViewWithLiterals, type CommonQueryWithEntityContext, type CompleteVerificationApplicationErrors, type CompleteVerificationOptions, type CompleteVerificationRequest, type CompleteVerificationResponse, type Connectivity, type CreateGoogleLocationApplicationErrors, type CreateGoogleLocationOptions, type CreateGoogleLocationRequest, type CreateGoogleLocationResponse, type CreateLocationApplicationErrors, type CreateLocationRequest, type CreateLocationResponse, type CreateMediaApplicationErrors, type CreateMediaOptions, type CreateMediaRequest, type CreateMediaResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, DailyMetric, type DailyMetricValue, type DailyMetricWithLiterals, DayOfWeek, type DayOfWeekWithLiterals, type DeleteGoogleLocationApplicationErrors, type DeleteGoogleLocationRequest, type DeleteGoogleLocationResponse, type DeleteLocationRequest, type DeleteLocationResponse, type DeleteMediaApplicationErrors, type DeleteMediaIdentifiers, type DeleteMediaRequest, type DeleteMediaResponse, type DeleteReviewReplyApplicationErrors, type DeleteReviewReplyIdentifiers, type DeleteReviewReplyRequest, type DeleteReviewReplyResponse, type DomainEvent, type DomainEventBodyOneOf, EcoCertificate, type EcoCertificateWithLiterals, type EcoCertification, type EmailVerificationData, type Empty, type EnergyEfficiency, type EnhancedCleaning, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EstablishmentSuggestion, type Families, type FieldViolation, type FoodAndDrink, type FoodMenuResult, type GBPLocation, type GBPLocationQuery, type GBPLocationQuerySpec, type GbpAccount, type GetAddressSchemaByCountryCodeApplicationErrors, type GetAddressSchemaByCountryCodeOptions, type GetAddressSchemaByCountryCodeRequest, type GetAddressSchemaByCountryCodeResponse, type GetGBPLocationRequest, type GetGBPLocationResponse, type GetGoogleLocationRequest, type GetGoogleLocationResponse, type GetLocationAdminsRequest, type GetLocationAdminsResponse, type GetLocationAttributesApplicationErrors, type GetLocationAttributesRequest, type GetLocationAttributesResponse, type GetLocationInsightsOptions, type GetLocationInsightsRequest, type GetLocationInsightsResponse, type GetLocationLodgingApplicationErrors, type GetLocationLodgingRequest, type GetLocationLodgingResponse, type GetVerificationOptions, type GetVerificationOptionsApplicationErrors, type GetVerificationOptionsRequest, type GetVerificationOptionsResponse, type GetVoiceOfMerchantRequest, type GetVoiceOfMerchantResponse, type GoogleApiCallFailedError, type GoogleLocation, type GoogleLocationMatch, type GoogleLocationValidationError, type GuestUnitFeatures, type GuestUnitType, type HealthAndSafety, type Housekeeping, type IdentificationData, type IdentificationDataIdOneOf, type IncreasedFoodSafety, type InsightsMetric, type InsightsTimeRange, type InvalidUpdateMaskError, type InvalidValueJsonError, type InviteAdminToLocationOptions, type InviteAdminToLocationRequest, type InviteAdminToLocationResponse, type ItemMetadata, type LanguageSpoken, type LatLng, LeedCertification, type LeedCertificationWithLiterals, type ListAttributeMetadataApplicationErrors, type ListAttributeMetadataOptions, type ListAttributeMetadataOptionsLookupOneOf, type ListAttributeMetadataRequest, type ListAttributeMetadataRequestLookupOneOf, type ListAttributeMetadataResponse, type ListCategoriesApplicationErrors, type ListCategoriesOptions, type ListCategoriesRequest, type ListCategoriesResponse, type ListGbpAccountsApplicationErrors, type ListGbpAccountsOptions, type ListGbpAccountsRequest, type ListGbpAccountsResponse, type ListMediaApplicationErrors, type ListMediaOptions, type ListMediaRequest, type ListMediaResponse, type ListReviewsApplicationErrors, type ListReviewsOptions, type ListReviewsRequest, type ListReviewsResponse, type ListSearchKeywordImpressionsApplicationErrors, type ListSearchKeywordImpressionsOptions, type ListSearchKeywordImpressionsRequest, type ListSearchKeywordImpressionsResponse, type ListUnimportedLocationsApplicationErrors, type ListUnimportedLocationsOptions, type ListUnimportedLocationsRequest, type ListUnimportedLocationsResponse, type LivingArea, type LivingAreaAccessibility, type LivingAreaEating, type LivingAreaFeatures, type LivingAreaLayout, type LivingAreaSleeping, type LocationAdmin, type LocationAttribute, type LocationDbPersistFailedError, type LocationNotDeletableViaApiError, type LocationWithGoogle, type LocationWithGoogleGoogleResultOneOf, type LocationWithGoogleVoiceOfMerchantResultOneOf, type LocationsQueryBuilder, type LocationsQueryResult, type Lodging, type LodgingMetadata, type LodgingTimeOfDay, MatchStatus, type MatchStatusWithLiterals, MediaCategory, type MediaCategoryWithLiterals, MediaFormat, type MediaFormatWithLiterals, type MediaItem, type MediaItemAttribution, type MessageEnvelope, type Metadata, type MinimizedContact, type MonthlyRange, type MoreHoursType, type OpenInfo, type Parking, type PaymentOptions, type PersonalProtection, type Pets, type PhysicalDistancing, type PlaceInfo, type Policies, type Pools, type PostalAddress, type Profile, type Property, type PutReviewReplyApplicationErrors, type PutReviewReplyIdentifiers, type PutReviewReplyRequest, type PutReviewReplyResponse, type QueryGBPLocationsRequest, type QueryGBPLocationsResponse, type QueryGoogleLocationsOptions, type QueryGoogleLocationsRequest, type QueryGoogleLocationsResponse, RecommendationReason, type RecommendationReasonWithLiterals, type RegionSuggestion, type RestoreInfo, type Review, type ReviewMetrics, type ReviewReply, ReviewSortOrder, type ReviewSortOrderWithLiterals, Role, type RoleWithLiterals, type SearchGoogleLocationsApplicationErrors, type SearchGoogleLocationsOptions, type SearchGoogleLocationsOptionsCriteriaOneOf, type SearchGoogleLocationsRequest, type SearchGoogleLocationsRequestCriteriaOneOf, type SearchGoogleLocationsResponse, type SearchKeywordImpression, type SearchKeywordImpressionImpressionsOneOf, type ServiceArea, type ServiceType, type Services, SortOrder, type SortOrderWithLiterals, type Sorting, type StartVerificationApplicationErrors, type StartVerificationOptions, type StartVerificationRequest, type StartVerificationResponse, State, type StateWithLiterals, Status, type StatusWithLiterals, type SuggestEstablishmentsApplicationErrors, type SuggestEstablishmentsOptions, type SuggestEstablishmentsRequest, type SuggestEstablishmentsResponse, type SuggestRegionsApplicationErrors, type SuggestRegionsOptions, type SuggestRegionsRequest, type SuggestRegionsResponse, type Sustainability, type SustainabilityCertifications, type SustainableSourcing, type TimeOfDay, type Transportation, type UnimportedLocation, UnitTier, type UnitTierWithLiterals, type UpdateGoogleLocationApplicationErrors, type UpdateGoogleLocationOptions, type UpdateGoogleLocationRequest, type UpdateGoogleLocationResponse, type UpdateLocation, type UpdateLocationAttributesApplicationErrors, type UpdateLocationAttributesRequest, type UpdateLocationAttributesResponse, type UpdateLocationFoodMenusApplicationErrors, type UpdateLocationFoodMenusOptions, type UpdateLocationFoodMenusRequest, type UpdateLocationFoodMenusResponse, type UpdateLocationLodgingApplicationErrors, type UpdateLocationLodgingOptions, type UpdateLocationLodgingRequest, type UpdateLocationLodgingResponse, type UpdateLocationRequest, type UpdateLocationResponse, VerificationMethod, type VerificationMethodWithLiterals, type VerificationOption, type VerificationOptionDataOneOf, VerificationState, type VerificationStateWithLiterals, type ViewsFromUnit, type Violation, type VoiceOfMerchantState, type WasteReduction, type WaterConservation, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type Wellness, 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, typedQueryGbpLocations, updateGoogleLocation, updateLocation, updateLocationAttributes, updateLocationLodging, utils };
7021
+ export { type Accessibility, type AccountInfo, type ActionEvent, type Activities, AddressFieldType, type AddressFieldTypeWithLiterals, type AddressSchema, type AddressVerificationData, AmenityException, type AmenityExceptionWithLiterals, type ApplicationError, type AttributeMetadata, type AttributeValueMetadata, type AttributeValueMetadataValueOneOf, AttributeValueType, type AttributeValueTypeWithLiterals, BreeamCertification, type BreeamCertificationWithLiterals, type BulkActionMetadata, type BulkCreateLocationResult, type BulkCreateLocationsApplicationErrors, type BulkCreateLocationsOptions, type BulkCreateLocationsRequest, type BulkCreateLocationsResponse, type BulkDeleteLocationResult, type BulkDeleteLocationsRequest, type BulkDeleteLocationsResponse, type Business, type BusinessHours, BusinessType, type BusinessTypeWithLiterals, type CalendarMonth, type Category, type CategoryMetadata, type CategoryRegion, CategoryView, type CategoryViewWithLiterals, type CommonQueryWithEntityContext, type CompleteVerificationApplicationErrors, type CompleteVerificationOptions, type CompleteVerificationRequest, type CompleteVerificationResponse, type Connectivity, type CreateGoogleLocationApplicationErrors, type CreateGoogleLocationOptions, type CreateGoogleLocationRequest, type CreateGoogleLocationResponse, type CreateLocationApplicationErrors, type CreateLocationRequest, type CreateLocationResponse, type CreateMediaApplicationErrors, type CreateMediaOptions, type CreateMediaRequest, type CreateMediaResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, DailyMetric, type DailyMetricValue, type DailyMetricWithLiterals, DayOfWeek, type DayOfWeekWithLiterals, type DeleteGoogleLocationApplicationErrors, type DeleteGoogleLocationRequest, type DeleteGoogleLocationResponse, type DeleteLocationRequest, type DeleteLocationResponse, type DeleteMediaApplicationErrors, type DeleteMediaIdentifiers, type DeleteMediaRequest, type DeleteMediaResponse, type DeleteReviewReplyApplicationErrors, type DeleteReviewReplyIdentifiers, type DeleteReviewReplyRequest, type DeleteReviewReplyResponse, type DomainEvent, type DomainEventBodyOneOf, EcoCertificate, type EcoCertificateWithLiterals, type EcoCertification, type EmailVerificationData, type Empty, type EnergyEfficiency, type EnhancedCleaning, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EstablishmentSuggestion, type Families, type FieldViolation, type FoodAndDrink, type FoodMenuResult, type GBPLocation, type GBPLocationQuery, type GBPLocationQuerySpec, type GbpAccount, type GetAddressSchemaByCountryCodeApplicationErrors, type GetAddressSchemaByCountryCodeOptions, type GetAddressSchemaByCountryCodeRequest, type GetAddressSchemaByCountryCodeResponse, type GetGBPLocationRequest, type GetGBPLocationResponse, type GetGoogleLocationRequest, type GetGoogleLocationResponse, type GetLocationAdminsRequest, type GetLocationAdminsResponse, type GetLocationAttributesApplicationErrors, type GetLocationAttributesRequest, type GetLocationAttributesResponse, type GetLocationInsightsOptions, type GetLocationInsightsRequest, type GetLocationInsightsResponse, type GetLocationLodgingApplicationErrors, type GetLocationLodgingRequest, type GetLocationLodgingResponse, type GetNotificationSettingApplicationErrors, type GetNotificationSettingRequest, type GetNotificationSettingResponse, type GetVerificationOptions, type GetVerificationOptionsApplicationErrors, type GetVerificationOptionsRequest, type GetVerificationOptionsResponse, type GetVoiceOfMerchantRequest, type GetVoiceOfMerchantResponse, type GoogleApiCallFailedError, type GoogleLocation, type GoogleLocationMatch, type GoogleLocationValidationError, type GuestUnitFeatures, type GuestUnitType, type HealthAndSafety, type Housekeeping, type IdentificationData, type IdentificationDataIdOneOf, type IncreasedFoodSafety, type InsightsMetric, type InsightsTimeRange, type InvalidUpdateMaskError, type InvalidValueJsonError, type InviteAdminToLocationOptions, type InviteAdminToLocationRequest, type InviteAdminToLocationResponse, type ItemMetadata, type LanguageSpoken, type LatLng, LeedCertification, type LeedCertificationWithLiterals, type ListAttributeMetadataApplicationErrors, type ListAttributeMetadataOptions, type ListAttributeMetadataOptionsLookupOneOf, type ListAttributeMetadataRequest, type ListAttributeMetadataRequestLookupOneOf, type ListAttributeMetadataResponse, type ListCategoriesApplicationErrors, type ListCategoriesOptions, type ListCategoriesRequest, type ListCategoriesResponse, type ListGbpAccountsApplicationErrors, type ListGbpAccountsOptions, type ListGbpAccountsRequest, type ListGbpAccountsResponse, type ListMediaApplicationErrors, type ListMediaOptions, type ListMediaRequest, type ListMediaResponse, type ListReviewsApplicationErrors, type ListReviewsOptions, type ListReviewsRequest, type ListReviewsResponse, type ListSearchKeywordImpressionsApplicationErrors, type ListSearchKeywordImpressionsOptions, type ListSearchKeywordImpressionsRequest, type ListSearchKeywordImpressionsResponse, type ListUnimportedLocationsApplicationErrors, type ListUnimportedLocationsOptions, type ListUnimportedLocationsRequest, type ListUnimportedLocationsResponse, type LivingArea, type LivingAreaAccessibility, type LivingAreaEating, type LivingAreaFeatures, type LivingAreaLayout, type LivingAreaSleeping, type LocationAdmin, type LocationAttribute, type LocationDbPersistFailedError, type LocationNotDeletableViaApiError, type LocationWithGoogle, type LocationWithGoogleGoogleResultOneOf, type LocationWithGoogleVoiceOfMerchantResultOneOf, type LocationsQueryBuilder, type LocationsQueryResult, type Lodging, type LodgingMetadata, type LodgingTimeOfDay, MatchStatus, type MatchStatusWithLiterals, MediaCategory, type MediaCategoryWithLiterals, MediaFormat, type MediaFormatWithLiterals, type MediaItem, type MediaItemAttribution, type MessageEnvelope, type Metadata, type MinimizedContact, type MonthlyRange, type MoreHoursType, type NotificationSetting, NotificationType, type NotificationTypeWithLiterals, type OpenInfo, type Parking, type PaymentOptions, type PersonalProtection, type Pets, type PhysicalDistancing, type PlaceInfo, type Policies, type Pools, type PostalAddress, type Profile, type Property, type PutReviewReplyApplicationErrors, type PutReviewReplyIdentifiers, type PutReviewReplyRequest, type PutReviewReplyResponse, type QueryGBPLocationsRequest, type QueryGBPLocationsResponse, type QueryGoogleLocationsOptions, type QueryGoogleLocationsRequest, type QueryGoogleLocationsResponse, RecommendationReason, type RecommendationReasonWithLiterals, type RegionSuggestion, type RestoreInfo, type Review, type ReviewMetrics, type ReviewReply, ReviewSortOrder, type ReviewSortOrderWithLiterals, Role, type RoleWithLiterals, type SearchGoogleLocationsApplicationErrors, type SearchGoogleLocationsOptions, type SearchGoogleLocationsOptionsCriteriaOneOf, type SearchGoogleLocationsRequest, type SearchGoogleLocationsRequestCriteriaOneOf, type SearchGoogleLocationsResponse, type SearchKeywordImpression, type SearchKeywordImpressionImpressionsOneOf, type ServiceArea, type ServiceType, type Services, SortOrder, type SortOrderWithLiterals, type Sorting, type StartVerificationApplicationErrors, type StartVerificationOptions, type StartVerificationRequest, type StartVerificationResponse, State, type StateWithLiterals, Status, type StatusWithLiterals, type SuggestEstablishmentsApplicationErrors, type SuggestEstablishmentsOptions, type SuggestEstablishmentsRequest, type SuggestEstablishmentsResponse, type SuggestRegionsApplicationErrors, type SuggestRegionsOptions, type SuggestRegionsRequest, type SuggestRegionsResponse, type Sustainability, type SustainabilityCertifications, type SustainableSourcing, type TimeOfDay, type Transportation, type UnimportedLocation, UnitTier, type UnitTierWithLiterals, type UpdateGoogleLocationApplicationErrors, type UpdateGoogleLocationOptions, type UpdateGoogleLocationRequest, type UpdateGoogleLocationResponse, type UpdateLocation, type UpdateLocationAttributesApplicationErrors, type UpdateLocationAttributesRequest, type UpdateLocationAttributesResponse, type UpdateLocationFoodMenusApplicationErrors, type UpdateLocationFoodMenusOptions, type UpdateLocationFoodMenusRequest, type UpdateLocationFoodMenusResponse, type UpdateLocationLodgingApplicationErrors, type UpdateLocationLodgingOptions, type UpdateLocationLodgingRequest, type UpdateLocationLodgingResponse, type UpdateLocationRequest, type UpdateLocationResponse, type UpdateNotificationSetting, type UpdateNotificationSettingApplicationErrors, type UpdateNotificationSettingOptions, type UpdateNotificationSettingRequest, type UpdateNotificationSettingResponse, VerificationMethod, type VerificationMethodWithLiterals, type VerificationOption, type VerificationOptionDataOneOf, VerificationState, type VerificationStateWithLiterals, type ViewsFromUnit, type Violation, type VoiceOfMerchantState, type WasteReduction, type WaterConservation, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type Wellness, 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, typedQueryGbpLocations, updateGoogleLocation, updateLocation, updateLocationAttributes, updateLocationLodging, updateNotificationSetting, utils };
@@ -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({
@@ -2620,6 +2731,7 @@ export {
2620
2731
  MatchStatus,
2621
2732
  MediaCategory,
2622
2733
  MediaFormat,
2734
+ NotificationType,
2623
2735
  RecommendationReason,
2624
2736
  ReviewSortOrder,
2625
2737
  Role,
@@ -2647,6 +2759,7 @@ export {
2647
2759
  getLocationAttributes2 as getLocationAttributes,
2648
2760
  getLocationInsights2 as getLocationInsights,
2649
2761
  getLocationLodging2 as getLocationLodging,
2762
+ getNotificationSetting2 as getNotificationSetting,
2650
2763
  getVerificationOptions2 as getVerificationOptions,
2651
2764
  getVoiceOfMerchant2 as getVoiceOfMerchant,
2652
2765
  inviteAdminToLocation2 as inviteAdminToLocation,
@@ -2670,6 +2783,7 @@ export {
2670
2783
  updateLocationAttributes2 as updateLocationAttributes,
2671
2784
  updateLocationFoodMenus2 as updateLocationFoodMenus,
2672
2785
  updateLocationLodging2 as updateLocationLodging,
2786
+ updateNotificationSetting2 as updateNotificationSetting,
2673
2787
  utils
2674
2788
  };
2675
2789
  //# sourceMappingURL=index.typings.mjs.map