@wix/auto_sdk_gbp_locations 1.0.8 → 1.0.9

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,5 +1,5 @@
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, 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';
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
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';
4
4
 
5
5
  declare function getGbpLocation$1(httpClient: HttpClient): GetGbpLocationSignature;
@@ -646,9 +646,12 @@ interface GetVerificationOptionsSignature {
646
646
  *
647
647
  * For a service-area business, save `serviceAreaPostalAddress` on the location
648
648
  * first with Update Location. Google can't work out the options without it.
649
+ *
650
+ * Pass `languageCode` to get the option text in the site owner's language.
651
+ * It defaults to English.
649
652
  * @param - Location ID. This is Google's location identifier.
650
653
  */
651
- (locationId: string): 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`, 6> & {
654
+ (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`, 6> & {
652
655
  __applicationErrorsType?: GetVerificationOptionsApplicationErrors;
653
656
  }>;
654
657
  }
@@ -910,4 +913,4 @@ declare const suggestEstablishments: MaybeContext<BuildRESTFunction<typeof sugge
910
913
  declare const searchGoogleLocations: MaybeContext<BuildRESTFunction<typeof searchGoogleLocations$1> & typeof searchGoogleLocations$1>;
911
914
  declare const queryGbpLocations: MaybeContext<BuildRESTFunction<typeof customQueryGbpLocations> & typeof customQueryGbpLocations>;
912
915
 
913
- 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, 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 };
916
+ 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 };
@@ -2335,10 +2335,11 @@ async function listCategories2(regionCode, options) {
2335
2335
  throw transformedError;
2336
2336
  }
2337
2337
  }
2338
- async function getVerificationOptions2(locationId) {
2339
- const { httpClient, sideEffects } = arguments[1];
2338
+ async function getVerificationOptions2(locationId, options) {
2339
+ const { httpClient, sideEffects } = arguments[2];
2340
2340
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2341
- locationId
2341
+ locationId,
2342
+ languageCode: options?.languageCode
2342
2343
  });
2343
2344
  const reqOpts = getVerificationOptions(payload);
2344
2345
  sideEffects?.onSiteCall?.();
@@ -2351,10 +2352,13 @@ async function getVerificationOptions2(locationId) {
2351
2352
  err,
2352
2353
  {
2353
2354
  spreadPathsToArguments: {},
2354
- explicitPathsToArguments: { locationId: "$[0]" },
2355
+ explicitPathsToArguments: {
2356
+ locationId: "$[0]",
2357
+ languageCode: "$[1].languageCode"
2358
+ },
2355
2359
  singleArgumentUnchanged: false
2356
2360
  },
2357
- ["locationId"]
2361
+ ["locationId", "options"]
2358
2362
  );
2359
2363
  sideEffects?.onError?.(err);
2360
2364
  throw transformedError;
@@ -2901,8 +2905,9 @@ function listCategories3(httpClient) {
2901
2905
  );
2902
2906
  }
2903
2907
  function getVerificationOptions3(httpClient) {
2904
- return (locationId) => getVerificationOptions2(
2908
+ return (locationId, options) => getVerificationOptions2(
2905
2909
  locationId,
2910
+ options,
2906
2911
  // @ts-ignore
2907
2912
  { httpClient }
2908
2913
  );