@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 };
@@ -33,6 +33,7 @@ __export(index_typings_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_typings_exports, {
60
61
  getLocationAttributes: () => getLocationAttributes2,
61
62
  getLocationInsights: () => getLocationInsights2,
62
63
  getLocationLodging: () => getLocationLodging2,
64
+ getNotificationSetting: () => getNotificationSetting2,
63
65
  getVerificationOptions: () => getVerificationOptions2,
64
66
  getVoiceOfMerchant: () => getVoiceOfMerchant2,
65
67
  inviteAdminToLocation: () => inviteAdminToLocation2,
@@ -83,6 +85,7 @@ __export(index_typings_exports, {
83
85
  updateLocationAttributes: () => updateLocationAttributes2,
84
86
  updateLocationFoodMenus: () => updateLocationFoodMenus2,
85
87
  updateLocationLodging: () => updateLocationLodging2,
88
+ updateNotificationSetting: () => updateNotificationSetting2,
86
89
  utils: () => utils
87
90
  });
88
91
  module.exports = __toCommonJS(index_typings_exports);
@@ -707,6 +710,54 @@ function listUnimportedLocations(payload) {
707
710
  }
708
711
  return __listUnimportedLocations;
709
712
  }
713
+ function getNotificationSetting(payload) {
714
+ function __getNotificationSetting({ host }) {
715
+ const metadata = {
716
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
717
+ method: "GET",
718
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.GetNotificationSetting",
719
+ packageName: PACKAGE_NAME,
720
+ migrationOptions: {
721
+ optInTransformResponse: true
722
+ },
723
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
724
+ protoPath: "/v1/accounts/{accountId}/notification-setting",
725
+ data: payload,
726
+ host
727
+ }),
728
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
729
+ };
730
+ return metadata;
731
+ }
732
+ return __getNotificationSetting;
733
+ }
734
+ function updateNotificationSetting(payload) {
735
+ function __updateNotificationSetting({ host }) {
736
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
737
+ {
738
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
739
+ paths: [{ path: "fieldMask" }]
740
+ }
741
+ ]);
742
+ const metadata = {
743
+ entityFqdn: "wix.gbp.location.v1.gbplocation",
744
+ method: "PATCH",
745
+ methodFqn: "wix.gbp.location.v1.GbpLocationsService.UpdateNotificationSetting",
746
+ packageName: PACKAGE_NAME,
747
+ migrationOptions: {
748
+ optInTransformResponse: true
749
+ },
750
+ url: resolveWixGbpLocationV1GbpLocationsServiceUrl({
751
+ protoPath: "/v1/accounts/{notificationSetting.accountId}/notification-setting",
752
+ data: serializedData,
753
+ host
754
+ }),
755
+ data: serializedData
756
+ };
757
+ return metadata;
758
+ }
759
+ return __updateNotificationSetting;
760
+ }
710
761
  function listReviews(payload) {
711
762
  function __listReviews({ host }) {
712
763
  const metadata = {
@@ -1383,6 +1434,15 @@ var RecommendationReason = /* @__PURE__ */ ((RecommendationReason2) => {
1383
1434
  RecommendationReason2["BUSINESS_LOCATION_DISABLED"] = "BUSINESS_LOCATION_DISABLED";
1384
1435
  return RecommendationReason2;
1385
1436
  })(RecommendationReason || {});
1437
+ var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
1438
+ NotificationType2["GOOGLE_UPDATE"] = "GOOGLE_UPDATE";
1439
+ NotificationType2["NEW_REVIEW"] = "NEW_REVIEW";
1440
+ NotificationType2["UPDATED_REVIEW"] = "UPDATED_REVIEW";
1441
+ NotificationType2["NEW_CUSTOMER_MEDIA"] = "NEW_CUSTOMER_MEDIA";
1442
+ NotificationType2["DUPLICATE_LOCATION"] = "DUPLICATE_LOCATION";
1443
+ NotificationType2["VOICE_OF_MERCHANT_UPDATED"] = "VOICE_OF_MERCHANT_UPDATED";
1444
+ return NotificationType2;
1445
+ })(NotificationType || {});
1386
1446
  var ReviewSortOrder = /* @__PURE__ */ ((ReviewSortOrder2) => {
1387
1447
  ReviewSortOrder2["NEWEST"] = "NEWEST";
1388
1448
  ReviewSortOrder2["HIGHEST_RATING"] = "HIGHEST_RATING";
@@ -1951,6 +2011,60 @@ async function listUnimportedLocations2(accountId, options) {
1951
2011
  throw transformedError;
1952
2012
  }
1953
2013
  }
2014
+ async function getNotificationSetting2(accountId) {
2015
+ const { httpClient, sideEffects } = arguments[1];
2016
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2017
+ accountId
2018
+ });
2019
+ const reqOpts = getNotificationSetting(payload);
2020
+ sideEffects?.onSiteCall?.();
2021
+ try {
2022
+ const result = await httpClient.request(reqOpts);
2023
+ sideEffects?.onSuccess?.(result);
2024
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2025
+ } catch (err) {
2026
+ const transformedError = (0, import_transform_error.transformError)(
2027
+ err,
2028
+ {
2029
+ spreadPathsToArguments: {},
2030
+ explicitPathsToArguments: { accountId: "$[0]" },
2031
+ singleArgumentUnchanged: false
2032
+ },
2033
+ ["accountId"]
2034
+ );
2035
+ sideEffects?.onError?.(err);
2036
+ throw transformedError;
2037
+ }
2038
+ }
2039
+ async function updateNotificationSetting2(accountId, notificationSetting, options) {
2040
+ const { httpClient, sideEffects } = arguments[3];
2041
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2042
+ notificationSetting: { ...notificationSetting, accountId },
2043
+ fieldMask: options?.fieldMask
2044
+ });
2045
+ const reqOpts = updateNotificationSetting(payload);
2046
+ sideEffects?.onSiteCall?.();
2047
+ try {
2048
+ const result = await httpClient.request(reqOpts);
2049
+ sideEffects?.onSuccess?.(result);
2050
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2051
+ } catch (err) {
2052
+ const transformedError = (0, import_transform_error.transformError)(
2053
+ err,
2054
+ {
2055
+ spreadPathsToArguments: { notificationSetting: "$[1]" },
2056
+ explicitPathsToArguments: {
2057
+ "notificationSetting.accountId": "$[0]",
2058
+ fieldMask: "$[2].fieldMask"
2059
+ },
2060
+ singleArgumentUnchanged: false
2061
+ },
2062
+ ["accountId", "notificationSetting", "options"]
2063
+ );
2064
+ sideEffects?.onError?.(err);
2065
+ throw transformedError;
2066
+ }
2067
+ }
1954
2068
  async function listReviews2(locationId, options) {
1955
2069
  const { httpClient, sideEffects } = arguments[2];
1956
2070
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -2707,6 +2821,7 @@ async function searchGoogleLocations2(options) {
2707
2821
  MatchStatus,
2708
2822
  MediaCategory,
2709
2823
  MediaFormat,
2824
+ NotificationType,
2710
2825
  RecommendationReason,
2711
2826
  ReviewSortOrder,
2712
2827
  Role,
@@ -2734,6 +2849,7 @@ async function searchGoogleLocations2(options) {
2734
2849
  getLocationAttributes,
2735
2850
  getLocationInsights,
2736
2851
  getLocationLodging,
2852
+ getNotificationSetting,
2737
2853
  getVerificationOptions,
2738
2854
  getVoiceOfMerchant,
2739
2855
  inviteAdminToLocation,
@@ -2757,6 +2873,7 @@ async function searchGoogleLocations2(options) {
2757
2873
  updateLocationAttributes,
2758
2874
  updateLocationFoodMenus,
2759
2875
  updateLocationLodging,
2876
+ updateNotificationSetting,
2760
2877
  utils
2761
2878
  });
2762
2879
  //# sourceMappingURL=index.typings.js.map