{"version":3,"sources":["../../src/locations-v1-location-locations.http.ts","../../src/locations-v1-location-locations.types.ts","../../src/locations-v1-location-locations.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressLocationsLocationsServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'api._api_base_domain_': [\n      {\n        srcPath: '/locations-web',\n        destPath: '',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/locations-web',\n        destPath: '',\n      },\n    ],\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/locations-web',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/locations/v1/locations',\n        destPath: '/v1/locations',\n      },\n    ],\n    'apps._base_domain_': [\n      {\n        srcPath: '/_api/locations-web',\n        destPath: '',\n      },\n    ],\n    'editor.wixapps.net': [\n      {\n        srcPath: '/_api/locations-web',\n        destPath: '',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/locations/v1/locations',\n        destPath: '/v1/locations',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_business-tools_locations';\n\n/** Creates a location. */\nexport function createLocation(payload: object): RequestOptionsFactory<any> {\n  function __createLocation({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'location.address.geocode.latitude' },\n          { path: 'location.address.geocode.longitude' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.locations.v1.location',\n      method: 'POST' as any,\n      methodFqn: 'com.wixpress.locations.LocationsService.CreateLocation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressLocationsLocationsServiceUrl({\n        protoPath: '/v1/locations',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'location.address.geocode.latitude' },\n              { path: 'location.address.geocode.longitude' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createLocation;\n}\n\n/** Creates locations in bulk. */\nexport function bulkCreateLocation(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __bulkCreateLocation({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'locations.address.geocode.latitude' },\n          { path: 'locations.address.geocode.longitude' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.locations.v1.location',\n      method: 'POST' as any,\n      methodFqn: 'com.wixpress.locations.LocationsService.BulkCreateLocation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressLocationsLocationsServiceUrl({\n        protoPath: '/v1/locations/bulk-create',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'successfulLocations.address.geocode.latitude' },\n              { path: 'successfulLocations.address.geocode.longitude' },\n              { path: 'failedLocations.location.address.geocode.latitude' },\n              { path: 'failedLocations.location.address.geocode.longitude' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __bulkCreateLocation;\n}\n\n/** Retrieves a location. */\nexport function getLocation(payload: object): RequestOptionsFactory<any> {\n  function __getLocation({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.locations.v1.location',\n      method: 'GET' as any,\n      methodFqn: 'com.wixpress.locations.LocationsService.GetLocation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressLocationsLocationsServiceUrl({\n        protoPath: '/v1/locations/{id}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'location.address.geocode.latitude' },\n              { path: 'location.address.geocode.longitude' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getLocation;\n}\n\n/** Retrieves locations, given the specified filters, sorting, and paging. */\nexport function listLocations(payload: object): RequestOptionsFactory<any> {\n  function __listLocations({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.locations.v1.location',\n      method: 'GET' as any,\n      methodFqn: 'com.wixpress.locations.LocationsService.ListLocations',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressLocationsLocationsServiceUrl({\n        protoPath: '/v1/locations',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload, true),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'locations.address.geocode.latitude' },\n              { path: 'locations.address.geocode.longitude' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __listLocations;\n}\n\n/**\n * Overrides an existing location.\n *\n *\n * > **Note:** Currently, it isn't possible to partially update a location. Therefore, you'll need to pass the full location object in the body of the call.\n */\nexport function updateLocation(payload: object): RequestOptionsFactory<any> {\n  function __updateLocation({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'location.address.geocode.latitude' },\n          { path: 'location.address.geocode.longitude' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.locations.v1.location',\n      method: 'PUT' as any,\n      methodFqn: 'com.wixpress.locations.LocationsService.UpdateLocation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressLocationsLocationsServiceUrl({\n        protoPath: '/v1/locations/{location.id}',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'location.address.geocode.latitude' },\n              { path: 'location.address.geocode.longitude' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updateLocation;\n}\n\n/**\n * Creates a query to retrieve a list of locations.\n *\n *\n * The `queryLocations()` function builds a query to retrieve a list of up to 1,000 locations and returns a `LocationsQueryBuilder` object.\n *\n * The returned object contains the query definition which is typically used to run the query using the `find()` function.\n *\n * You can refine the query by chaining `LocationsQueryBuilder` functions onto the query. `LocationsQueryBuilder` functions enable you to sort, filter, and control the results that `queryLocations()` returns. The functions that are chained to `queryLocations()` are applied in the order they are called.\n *\n * `queryLocations()` runs with the following `LocationsQueryBuilder` defaults that you can override:\n * - `skip`: `0`\n * - `limit`: `50`\n *\n * The following `QueryLocationsBuilder` functions are supported for the `queryLocations()` function. For a full description of the Locations object, see the object returned for the `items` property in `LocationsQueryResult`.\n */\nexport function queryLocations(payload: object): RequestOptionsFactory<any> {\n  function __queryLocations({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.locations.v1.location',\n      method: 'POST' as any,\n      methodFqn: 'com.wixpress.locations.LocationsService.QueryLocations',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressLocationsLocationsServiceUrl({\n        protoPath: '/v1/locations/query',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'locations.address.geocode.latitude' },\n              { path: 'locations.address.geocode.longitude' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __queryLocations;\n}\n\n/**\n * Sets a new default location.\n *\n *\n * > **Notes:**\n * > + There can only be one default location per site.\n * > + The default location can't be archived.\n */\nexport function setDefaultLocation(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __setDefaultLocation({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.locations.v1.location',\n      method: 'POST' as any,\n      methodFqn: 'com.wixpress.locations.LocationsService.SetDefaultLocation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressLocationsLocationsServiceUrl({\n        protoPath: '/v1/locations/{id}/set-default',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'location.address.geocode.latitude' },\n              { path: 'location.address.geocode.longitude' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __setDefaultLocation;\n}\n\n/**\n * Archives a location.\n *\n *\n * > **Notes:**\n * > + Changes the `archived` boolean of a location to `true`.\n * > + You can't change a location's `status` using this endpoint.\n * > + Archived locations can't be updated.\n * > + The `default` location can't be archived.\n */\nexport function archiveLocation(payload: object): RequestOptionsFactory<any> {\n  function __archiveLocation({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.locations.v1.location',\n      method: 'POST' as any,\n      methodFqn: 'com.wixpress.locations.LocationsService.ArchiveLocation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressLocationsLocationsServiceUrl({\n        protoPath: '/v1/locations/{id}/archive',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'location.address.geocode.latitude' },\n              { path: 'location.address.geocode.longitude' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __archiveLocation;\n}\n\n/** Adds a location type to the specified location. */\nexport function addTypeToLocation(payload: object): RequestOptionsFactory<any> {\n  function __addTypeToLocation({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.locations.v1.location',\n      method: 'PATCH' as any,\n      methodFqn: 'com.wixpress.locations.LocationsService.AddTypeToLocation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressLocationsLocationsServiceUrl({\n        protoPath: '/v1/locations/{id}/add-type',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'location.address.geocode.latitude' },\n              { path: 'location.address.geocode.longitude' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __addTypeToLocation;\n}\n\n/** Removes a location type from the specified location. */\nexport function removeTypeFromLocation(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __removeTypeFromLocation({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.locations.v1.location',\n      method: 'PATCH' as any,\n      methodFqn:\n        'com.wixpress.locations.LocationsService.RemoveTypeFromLocation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressLocationsLocationsServiceUrl({\n        protoPath: '/v1/locations/{id}/remove-type',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'location.address.geocode.latitude' },\n              { path: 'location.address.geocode.longitude' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __removeTypeFromLocation;\n}\n\n/**\n * Add location type to a specific location.\n *\n * > **Notes:**\n * > + Add one the location type (UNKNOWN, BRANCH, OFFICES, RECEPTION, HEADQUARTERS, INVENTORY) to a specific location by id.\n * > + This EP is deprecated - Please use AddTypeFromLocation instead.\n * @deprecated\n */\nexport function addLocationType(payload: object): RequestOptionsFactory<any> {\n  function __addLocationType({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.locations.v1.location',\n      method: 'PATCH' as any,\n      methodFqn: 'com.wixpress.locations.LocationsService.AddLocationType',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressLocationsLocationsServiceUrl({\n        protoPath: '/v1/locations/{id}/add-location-type',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'location.address.geocode.latitude' },\n              { path: 'location.address.geocode.longitude' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __addLocationType;\n}\n\n/**\n * Remove location type from a specific location.\n *\n * > **Notes:**\n * > + Remove location type (UNKNOWN, BRANCH, OFFICES, RECEPTION, HEADQUARTERS, INVENTORY) from a specific location by id.\n * > + This EP is deprecated - Please use RemoveTypeFromLocation instead.\n * @deprecated\n */\nexport function removeLocationType(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __removeLocationType({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.locations.v1.location',\n      method: 'PATCH' as any,\n      methodFqn: 'com.wixpress.locations.LocationsService.RemoveLocationType',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressLocationsLocationsServiceUrl({\n        protoPath: '/v1/locations/{id}/remove-location-type',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'location.address.geocode.latitude' },\n              { path: 'location.address.geocode.longitude' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __removeLocationType;\n}\n","export interface Location {\n  /**\n   * Location ID.\n   * @format GUID\n   * @readonly\n   */\n  id?: string | null;\n  /**\n   * Location name.\n   * @maxLength 150\n   */\n  name?: string;\n  /**\n   * Location description.\n   * @maxLength 500\n   */\n  description?: string | null;\n  /**\n   * Whether this is the default location. There can only be one default location per site. The default location can't be archived.\n   * @readonly\n   */\n  default?: boolean;\n  /**\n   * Location status. Defaults to `ACTIVE`.\n   * __Notes:__\n   * - [Archiving a location](https://dev.wix.com/api/rest/business-info/locations/archive-location)\n   * doesn't affect the location's status.\n   * - `INACTIVE` status is currently not supported.\n   */\n  status?: LocationStatusWithLiterals;\n  /**\n   * Location type.\n   *\n   * **Note:** Currently not supported.\n   * @deprecated\n   */\n  locationType?: LocationTypeWithLiterals;\n  /** Fax number. */\n  fax?: string | null;\n  /** Timezone in `America/New_York` format. */\n  timeZone?: string | null;\n  /** Email address. */\n  email?: string | null;\n  /** Phone number. */\n  phone?: string | null;\n  /** Address. */\n  address?: Address;\n  /**\n   * Business schedule. Array of weekly recurring time periods when the location is open for business. Limited to 100 time periods.\n   *\n   * __Note:__ Not supported by Wix Bookings.\n   */\n  businessSchedule?: BusinessSchedule;\n  /**\n   * Revision number, which increments by 1 each time the location is updated.\n   * To prevent conflicting changes, the existing revision must be used when updating a location.\n   */\n  revision?: string | null;\n  /**\n   * Whether the location is archived. Archived locations can't be updated.\n   * __Note:__ [Archiving a location](https://dev.wix.com/api/rest/business-info/locations/archive-location)\n   * doesn't affect its `status`.\n   * @readonly\n   */\n  archived?: boolean;\n  /**\n   * Location types.\n   * @maxSize 10\n   */\n  locationTypes?: LocationTypeWithLiterals[];\n  /** Extended fields for data extensions. */\n  extendedFields?: ExtendedFields;\n}\n\n/** For future use */\nexport enum LocationStatus {\n  ACTIVE = 'ACTIVE',\n  INACTIVE = 'INACTIVE',\n}\n\n/** @enumType */\nexport type LocationStatusWithLiterals = LocationStatus | 'ACTIVE' | 'INACTIVE';\n\n/** For future use */\nexport enum LocationType {\n  UNKNOWN = 'UNKNOWN',\n  BRANCH = 'BRANCH',\n  OFFICES = 'OFFICES',\n  RECEPTION = 'RECEPTION',\n  HEADQUARTERS = 'HEADQUARTERS',\n  INVENTORY = 'INVENTORY',\n}\n\n/** @enumType */\nexport type LocationTypeWithLiterals =\n  | LocationType\n  | 'UNKNOWN'\n  | 'BRANCH'\n  | 'OFFICES'\n  | 'RECEPTION'\n  | 'HEADQUARTERS'\n  | 'INVENTORY';\n\nexport interface Address {\n  /**\n   * 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.\n   * @format COUNTRY\n   */\n  country?: string | null;\n  /** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format. */\n  subdivision?: string | null;\n  /** City name. */\n  city?: string | null;\n  /**\n   * Postal or zip code.\n   * @maxLength 20\n   */\n  postalCode?: string | null;\n  /** Street address. Includes street name, number, and apartment number in separate fields. */\n  streetAddress?: StreetAddress;\n  /** Full address of the location. */\n  formattedAddress?: string | null;\n  /**\n   * Extra information that helps finding the location.\n   * @maxLength 500\n   */\n  hint?: string | null;\n  /** Geographic coordinates of location. */\n  geocode?: AddressLocation;\n}\n\n/** Street address. Includes street name, number, and apartment number in separate fields. */\nexport interface StreetAddress {\n  /** Street number. */\n  number?: string;\n  /** Street name. */\n  name?: string;\n  /** Apartment number. */\n  apt?: string;\n}\n\n/** Address Geolocation */\nexport interface AddressLocation {\n  /** Latitude of the location. Must be between -90 and 90. */\n  latitude?: number | null;\n  /** Longitude of the location. Must be between -180 and 180. */\n  longitude?: number | null;\n}\n\n/** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */\nexport interface BusinessSchedule {\n  /**\n   * Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods.\n   * @maxSize 100\n   */\n  periods?: TimePeriod[];\n  /**\n   * Exceptions to the business's regular hours. The business can be open or closed during the exception.\n   * @maxSize 100\n   */\n  specialHourPeriod?: SpecialHourPeriod[];\n}\n\n/** Weekly recurring time periods when the business is regularly open or the service is available. */\nexport interface TimePeriod {\n  /** Day of the week the period starts on. */\n  openDay?: DayOfWeekWithLiterals;\n  /**\n   * Time the period starts in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n   * midnight at the end of the specified day.\n   */\n  openTime?: string;\n  /** Day of the week the period ends on. */\n  closeDay?: DayOfWeekWithLiterals;\n  /**\n   * Time the period ends in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n   * midnight at the end of the specified day.\n   *\n   * __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`.\n   */\n  closeTime?: string;\n}\n\n/** Enumerates the days of the week. */\nexport enum DayOfWeek {\n  MONDAY = 'MONDAY',\n  TUESDAY = 'TUESDAY',\n  WEDNESDAY = 'WEDNESDAY',\n  THURSDAY = 'THURSDAY',\n  FRIDAY = 'FRIDAY',\n  SATURDAY = 'SATURDAY',\n  SUNDAY = 'SUNDAY',\n}\n\n/** @enumType */\nexport type DayOfWeekWithLiterals =\n  | DayOfWeek\n  | 'MONDAY'\n  | 'TUESDAY'\n  | 'WEDNESDAY'\n  | 'THURSDAY'\n  | 'FRIDAY'\n  | 'SATURDAY'\n  | 'SUNDAY';\n\n/** Exception to the business's regular hours. The business can be open or closed during the exception. */\nexport interface SpecialHourPeriod {\n  /** Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n  startDate?: string;\n  /** End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n  endDate?: string;\n  /**\n   * Whether the business is closed (or the service is not available) during the exception.\n   *\n   * Default: `true`.\n   */\n  isClosed?: boolean;\n  /** Additional info about the exception. For example, \"We close earlier on New Year's Eve.\" */\n  comment?: string;\n}\n\nexport interface ExtendedFields {\n  /**\n   * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n   * The value of each key is structured according to the schema defined when the extended fields were configured.\n   *\n   * You can only access fields for which you have the appropriate permissions.\n   *\n   * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n   */\n  namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface CreateLocationRequest {\n  /** Location to create. */\n  location: Location;\n}\n\nexport interface CreateLocationResponse {\n  /** Created location. */\n  location?: Location;\n}\n\nexport interface BulkCreateLocationRequest {\n  /**\n   * Locations to create.\n   * @minSize 1\n   * @maxSize 10\n   */\n  locations: Location[];\n}\n\nexport interface BulkCreateLocationResponse {\n  /** Locations that were created. */\n  successfulLocations?: Location[];\n  /** Locations that failed. */\n  failedLocations?: FailedCreateLocation[];\n}\n\nexport interface FailedCreateLocation {\n  /** Location that couldn't be created. */\n  location?: Location;\n  /** Error message. */\n  errorMessage?: string;\n}\n\nexport interface GetLocationRequest {\n  /**\n   * ID of the location to retrieve.\n   * @format GUID\n   */\n  id: string;\n}\n\nexport interface GetLocationResponse {\n  /** Retrieved location. */\n  location?: Location;\n  /** True if the requesting entity is permitted to manage the location */\n  locationManagementAuthorized?: boolean;\n}\n\nexport interface ListLocationsRequest {\n  /** Sort order. */\n  sort?: Sorting;\n  /**\n   * Pagination.\n   *\n   * Default values:\n   * `offset`: 0\n   * `limit`: 50 (Max: 1000)\n   */\n  paging?: Paging;\n  /**\n   * Whether to include `archived` locations in the response.\n   *\n   * Default: `false`\n   */\n  includeArchived?: boolean;\n  /** Whether to filter only authorized locations */\n  filterAuthorizedLocationEntities?: boolean;\n}\n\nexport interface Sorting {\n  /**\n   * Name of the field to sort by.\n   * @maxLength 512\n   */\n  fieldName?: string;\n  /** Sort order. */\n  order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n  ASC = 'ASC',\n  DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n  /** Number of items to load. */\n  limit?: number | null;\n  /** Number of items to skip in the current sort order. */\n  offset?: number | null;\n}\n\nexport interface ListLocationsResponse {\n  /** Retrieved locations. */\n  locations?: Location[];\n  /** Paging info. */\n  pagingMetadata?: PagingMetadata;\n  /**\n   * Ids of the locations that the requesting entity can manage\n   * @format GUID\n   * @maxSize 100\n   */\n  authorizedLocationEntities?: string[] | null;\n}\n\nexport interface PagingMetadata {\n  /** Number of items returned in the response. */\n  count?: number | null;\n  /** Offset that was requested. */\n  offset?: number | null;\n  /**\n   * Indicates if there are more results after the current page.\n   * If `true`, another page of results can be retrieved.\n   * If `false`, this is the last page.\n   */\n  hasNext?: boolean | null;\n}\n\nexport interface UpdateLocationRequest {\n  /** Location to update. */\n  location: Location;\n}\n\nexport interface UpdateLocationResponse {\n  /** Updated location. */\n  location?: Location;\n}\n\nexport interface BulkUpdateLocationRequest {\n  /**\n   * Locations to update.\n   * @minSize 1\n   * @maxSize 10\n   */\n  locations?: Location[];\n}\n\nexport interface BulkUpdateLocationResponse {\n  /** Locations that were updated. */\n  successfulLocations?: Location[];\n  /** Locations that failed. */\n  failedLocations?: FailedUpdateLocation[];\n}\n\nexport interface FailedUpdateLocation {\n  /** Location that couldn't be updated. */\n  id?: string;\n  /** Error message. */\n  errorMessage?: string;\n}\n\nexport interface QueryLocationsRequest {\n  /** Information about the filters, sorting, and paging. */\n  query?: Query;\n  /** Whether to filter only authorized locations */\n  filterAuthorizedLocationEntities?: boolean;\n}\n\nexport interface Query {\n  /**\n   * Filter object in the following format:\n   * `\"filter\" : {\n   * \"fieldName1\": \"value1\",\n   * \"fieldName2\":{\"$operator\":\"value2\"}\n   * }`\n   * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n   */\n  filter?: any;\n  /**\n   * Sort object in the following format:\n   * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n   */\n  sort?: Sorting[];\n  /** Paging options to limit and skip the number of items. */\n  paging?: Paging;\n  /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n  fields?: string[];\n  /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n  fieldsets?: string[];\n}\n\nexport interface QueryLocationsResponse {\n  /** Retrieved locations. */\n  locations?: Location[];\n  /** Paging info. */\n  pagingMetadata?: PagingMetadata;\n  /**\n   * Ids of the locations that the requesting entity can manage\n   * @format GUID\n   * @maxSize 100\n   */\n  authorizedLocationEntities?: string[] | null;\n}\n\nexport interface GetOrCreateDefaultLocationRequest {}\n\nexport interface GetOrCreateDefaultLocationResponse {\n  /** Default location (one that already exists or the one that was created) */\n  location?: Location;\n}\n\nexport interface SetDefaultLocationRequest {\n  /**\n   * ID of the location to set as the default location.\n   * @format GUID\n   */\n  id: string;\n}\n\nexport interface SetDefaultLocationResponse {\n  /** New default location. */\n  location?: Location;\n}\n\nexport interface SetDefaultLocation {\n  /**\n   * Previous default location id.\n   * @format GUID\n   */\n  prevDefaultLocationId?: string;\n  /**\n   * Current default location id.\n   * @format GUID\n   */\n  currDefaultLocationId?: string;\n}\n\nexport interface ArchiveLocationRequest {\n  /**\n   * ID of the location to archive.\n   * @format GUID\n   */\n  id: string;\n}\n\nexport interface ArchiveLocationResponse {\n  /** Archived location. */\n  location?: Location;\n}\n\nexport interface ArchiveLocation {\n  /** @format GUID */\n  id?: string;\n}\n\nexport interface UnarchiveLocationRequest {\n  /**\n   * ID of the location to unarchive.\n   * @format GUID\n   */\n  id?: string;\n}\n\nexport interface UnarchiveLocationResponse {\n  /** Unarchived location. */\n  location?: Location;\n}\n\nexport interface AddTypeToLocationRequest {\n  /**\n   * ID of the location where the type will be added.\n   * @format GUID\n   */\n  id: string;\n  /** Location type to add. */\n  locationType: LocationTypeWithLiterals;\n}\n\nexport interface AddTypeToLocationResponse {\n  /** Updated location. */\n  location?: Location;\n}\n\nexport interface RemoveTypeFromLocationRequest {\n  /**\n   * ID of the location where the type will be removed.\n   * @format GUID\n   */\n  id: string;\n  /** Location type to remove. */\n  locationType: LocationTypeWithLiterals;\n}\n\nexport interface RemoveTypeFromLocationResponse {\n  /** Updated location. */\n  location?: Location;\n}\n\nexport interface MetasiteLocationsRequest {}\n\nexport interface MetasiteLocationsResponse {}\n\nexport interface AddLocationTypeRequest {\n  /**\n   * Location id to add type\n   * @format GUID\n   */\n  id: string;\n  locationType: LocationTypeWithLiterals;\n}\n\nexport interface AddLocationTypeResponse {\n  /** Full location with the new type */\n  location?: Location;\n}\n\nexport interface RemoveLocationTypeRequest {\n  /**\n   * Location id to add type\n   * @format GUID\n   */\n  id: string;\n  locationType: LocationTypeWithLiterals;\n}\n\nexport interface RemoveLocationTypeResponse {\n  /** Full location with the new type */\n  location?: Location;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n  id?: string;\n  /**\n   * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n   * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n   */\n  entityFqdn?: string;\n  /**\n   * Event action name, placed at the top level to make it easier for users to dispatch messages.\n   * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n   * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n   */\n  entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n  entityAsJson?: string;\n  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n  restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n  deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n  /**\n   * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n   * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n   * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n   */\n  currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n  /** Entity that was deleted. */\n  deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n  bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n  /**\n   * App instance ID.\n   * @format GUID\n   */\n  instanceId?: string | null;\n  /**\n   * Event type.\n   * @maxLength 150\n   */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Stringify payload. */\n  data?: string;\n  /** Details related to the account */\n  accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n  /** @readonly */\n  identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n}\n\nexport enum WebhookIdentityType {\n  UNKNOWN = 'UNKNOWN',\n  ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n  MEMBER = 'MEMBER',\n  WIX_USER = 'WIX_USER',\n  APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n  | WebhookIdentityType\n  | 'UNKNOWN'\n  | 'ANONYMOUS_VISITOR'\n  | 'MEMBER'\n  | 'WIX_USER'\n  | 'APP';\n\nexport interface AccountInfo {\n  /**\n   * ID of the Wix account associated with the event.\n   * @format GUID\n   */\n  accountId?: string | null;\n  /**\n   * ID of the parent Wix account. Only included when accountId belongs to a child account.\n   * @format GUID\n   */\n  parentAccountId?: string | null;\n  /**\n   * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n   * @format GUID\n   */\n  siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type CreateLocationApplicationErrors = {\n  code?: 'CANNOT_PERFORM_ACTION_ON_ARCHIVED_LOCATION';\n  description?: string;\n  data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type UpdateLocationApplicationErrors =\n  | {\n      code?: 'CANNOT_PERFORM_ACTION_ON_ARCHIVED_LOCATION';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'CANNOT_ARCHIVE_DEFAULT';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'LOCATION_NOT_FOUND';\n      description?: string;\n      data?: Record<string, any>;\n    };\n/** @docsIgnore */\nexport type SetDefaultLocationApplicationErrors =\n  | {\n      code?: 'CANNOT_PERFORM_ACTION_ON_ARCHIVED_LOCATION';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'DEFAULT_NOT_CHANGED';\n      description?: string;\n      data?: Record<string, any>;\n    };\n/** @docsIgnore */\nexport type ArchiveLocationApplicationErrors = {\n  code?: 'CANNOT_ARCHIVE_DEFAULT';\n  description?: string;\n  data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type AddTypeToLocationApplicationErrors = {\n  code?: 'CANNOT_UPDATE_LOCATION_TYPES_FOR_LOCATION';\n  description?: string;\n  data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type RemoveTypeFromLocationApplicationErrors = {\n  code?: 'CANNOT_UPDATE_LOCATION_TYPES_FOR_LOCATION';\n  description?: string;\n  data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type AddLocationTypeApplicationErrors = {\n  code?: 'CANNOT_UPDATE_LOCATION_TYPES_FOR_LOCATION';\n  description?: string;\n  data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type RemoveLocationTypeApplicationErrors = {\n  code?: 'CANNOT_UPDATE_LOCATION_TYPES_FOR_LOCATION';\n  description?: string;\n  data?: Record<string, any>;\n};\n","import * as ambassadorWixLocationsV1Location from './locations-v1-location-locations.http.js';\nimport * as ambassadorWixLocationsV1LocationTypes from './locations-v1-location-locations.types.js';\nimport * as ambassadorWixLocationsV1LocationUniversalTypes from './locations-v1-location-locations.universal.js';\n\nexport type __PublicMethodMetaInfo<\n  K = string,\n  M = unknown,\n  T = unknown,\n  S = unknown,\n  Q = unknown,\n  R = unknown\n> = {\n  getUrl: (context: any) => string;\n  httpMethod: K;\n  path: string;\n  pathParams: M;\n  __requestType: T;\n  __originalRequestType: S;\n  __responseType: Q;\n  __originalResponseType: R;\n};\n\nexport function createLocation(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixLocationsV1LocationUniversalTypes.CreateLocationRequest,\n  ambassadorWixLocationsV1LocationTypes.CreateLocationRequest,\n  ambassadorWixLocationsV1LocationUniversalTypes.CreateLocationResponse,\n  ambassadorWixLocationsV1LocationTypes.CreateLocationResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixLocationsV1Location.createLocation(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/locations',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function bulkCreateLocation(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixLocationsV1LocationUniversalTypes.BulkCreateLocationRequest,\n  ambassadorWixLocationsV1LocationTypes.BulkCreateLocationRequest,\n  ambassadorWixLocationsV1LocationUniversalTypes.BulkCreateLocationResponse,\n  ambassadorWixLocationsV1LocationTypes.BulkCreateLocationResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixLocationsV1Location.bulkCreateLocation(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/locations/bulk-create',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function getLocation(): __PublicMethodMetaInfo<\n  'GET',\n  { id: string },\n  ambassadorWixLocationsV1LocationUniversalTypes.GetLocationRequest,\n  ambassadorWixLocationsV1LocationTypes.GetLocationRequest,\n  ambassadorWixLocationsV1LocationUniversalTypes.GetLocationResponse,\n  ambassadorWixLocationsV1LocationTypes.GetLocationResponse\n> {\n  const payload = { id: ':id' } as any;\n\n  const getRequestOptions =\n    ambassadorWixLocationsV1Location.getLocation(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'GET',\n    path: '/v1/locations/{id}',\n    pathParams: { id: 'id' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function listLocations(): __PublicMethodMetaInfo<\n  'GET',\n  {},\n  ambassadorWixLocationsV1LocationUniversalTypes.ListLocationsRequest,\n  ambassadorWixLocationsV1LocationTypes.ListLocationsRequest,\n  ambassadorWixLocationsV1LocationUniversalTypes.ListLocationsResponse,\n  ambassadorWixLocationsV1LocationTypes.ListLocationsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixLocationsV1Location.listLocations(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'GET',\n    path: '/v1/locations',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function updateLocation(): __PublicMethodMetaInfo<\n  'PUT',\n  { locationId: string },\n  ambassadorWixLocationsV1LocationUniversalTypes.UpdateLocationRequest,\n  ambassadorWixLocationsV1LocationTypes.UpdateLocationRequest,\n  ambassadorWixLocationsV1LocationUniversalTypes.UpdateLocationResponse,\n  ambassadorWixLocationsV1LocationTypes.UpdateLocationResponse\n> {\n  const payload = { location: { id: ':locationId' } } as any;\n\n  const getRequestOptions =\n    ambassadorWixLocationsV1Location.updateLocation(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'PUT',\n    path: '/v1/locations/{location.id}',\n    pathParams: { locationId: 'locationId' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function queryLocations(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixLocationsV1LocationUniversalTypes.QueryLocationsRequest,\n  ambassadorWixLocationsV1LocationTypes.QueryLocationsRequest,\n  ambassadorWixLocationsV1LocationUniversalTypes.QueryLocationsResponse,\n  ambassadorWixLocationsV1LocationTypes.QueryLocationsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixLocationsV1Location.queryLocations(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/locations/query',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function setDefaultLocation(): __PublicMethodMetaInfo<\n  'POST',\n  { id: string },\n  ambassadorWixLocationsV1LocationUniversalTypes.SetDefaultLocationRequest,\n  ambassadorWixLocationsV1LocationTypes.SetDefaultLocationRequest,\n  ambassadorWixLocationsV1LocationUniversalTypes.SetDefaultLocationResponse,\n  ambassadorWixLocationsV1LocationTypes.SetDefaultLocationResponse\n> {\n  const payload = { id: ':id' } as any;\n\n  const getRequestOptions =\n    ambassadorWixLocationsV1Location.setDefaultLocation(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/locations/{id}/set-default',\n    pathParams: { id: 'id' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function archiveLocation(): __PublicMethodMetaInfo<\n  'POST',\n  { id: string },\n  ambassadorWixLocationsV1LocationUniversalTypes.ArchiveLocationRequest,\n  ambassadorWixLocationsV1LocationTypes.ArchiveLocationRequest,\n  ambassadorWixLocationsV1LocationUniversalTypes.ArchiveLocationResponse,\n  ambassadorWixLocationsV1LocationTypes.ArchiveLocationResponse\n> {\n  const payload = { id: ':id' } as any;\n\n  const getRequestOptions =\n    ambassadorWixLocationsV1Location.archiveLocation(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/locations/{id}/archive',\n    pathParams: { id: 'id' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function addTypeToLocation(): __PublicMethodMetaInfo<\n  'PATCH',\n  { id: string },\n  ambassadorWixLocationsV1LocationUniversalTypes.AddTypeToLocationRequest,\n  ambassadorWixLocationsV1LocationTypes.AddTypeToLocationRequest,\n  ambassadorWixLocationsV1LocationUniversalTypes.AddTypeToLocationResponse,\n  ambassadorWixLocationsV1LocationTypes.AddTypeToLocationResponse\n> {\n  const payload = { id: ':id' } as any;\n\n  const getRequestOptions =\n    ambassadorWixLocationsV1Location.addTypeToLocation(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'PATCH',\n    path: '/v1/locations/{id}/add-type',\n    pathParams: { id: 'id' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function removeTypeFromLocation(): __PublicMethodMetaInfo<\n  'PATCH',\n  { id: string },\n  ambassadorWixLocationsV1LocationUniversalTypes.RemoveTypeFromLocationRequest,\n  ambassadorWixLocationsV1LocationTypes.RemoveTypeFromLocationRequest,\n  ambassadorWixLocationsV1LocationUniversalTypes.RemoveTypeFromLocationResponse,\n  ambassadorWixLocationsV1LocationTypes.RemoveTypeFromLocationResponse\n> {\n  const payload = { id: ':id' } as any;\n\n  const getRequestOptions =\n    ambassadorWixLocationsV1Location.removeTypeFromLocation(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'PATCH',\n    path: '/v1/locations/{id}/remove-type',\n    pathParams: { id: 'id' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function addLocationType(): __PublicMethodMetaInfo<\n  'PATCH',\n  { id: string },\n  ambassadorWixLocationsV1LocationUniversalTypes.AddLocationTypeRequest,\n  ambassadorWixLocationsV1LocationTypes.AddLocationTypeRequest,\n  ambassadorWixLocationsV1LocationUniversalTypes.AddLocationTypeResponse,\n  ambassadorWixLocationsV1LocationTypes.AddLocationTypeResponse\n> {\n  const payload = { id: ':id' } as any;\n\n  const getRequestOptions =\n    ambassadorWixLocationsV1Location.addLocationType(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'PATCH',\n    path: '/v1/locations/{id}/add-location-type',\n    pathParams: { id: 'id' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function removeLocationType(): __PublicMethodMetaInfo<\n  'PATCH',\n  { id: string },\n  ambassadorWixLocationsV1LocationUniversalTypes.RemoveLocationTypeRequest,\n  ambassadorWixLocationsV1LocationTypes.RemoveLocationTypeRequest,\n  ambassadorWixLocationsV1LocationUniversalTypes.RemoveLocationTypeResponse,\n  ambassadorWixLocationsV1LocationTypes.RemoveLocationTypeResponse\n> {\n  const payload = { id: ':id' } as any;\n\n  const getRequestOptions =\n    ambassadorWixLocationsV1Location.removeLocationType(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'PATCH',\n    path: '/v1/locations/{id}/remove-location-type',\n    pathParams: { id: 'id' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport {\n  Location as LocationOriginal,\n  LocationStatus as LocationStatusOriginal,\n  LocationStatusWithLiterals as LocationStatusWithLiteralsOriginal,\n  LocationType as LocationTypeOriginal,\n  LocationTypeWithLiterals as LocationTypeWithLiteralsOriginal,\n  Address as AddressOriginal,\n  StreetAddress as StreetAddressOriginal,\n  AddressLocation as AddressLocationOriginal,\n  BusinessSchedule as BusinessScheduleOriginal,\n  TimePeriod as TimePeriodOriginal,\n  DayOfWeek as DayOfWeekOriginal,\n  DayOfWeekWithLiterals as DayOfWeekWithLiteralsOriginal,\n  SpecialHourPeriod as SpecialHourPeriodOriginal,\n  ExtendedFields as ExtendedFieldsOriginal,\n  CreateLocationRequest as CreateLocationRequestOriginal,\n  CreateLocationResponse as CreateLocationResponseOriginal,\n  BulkCreateLocationRequest as BulkCreateLocationRequestOriginal,\n  BulkCreateLocationResponse as BulkCreateLocationResponseOriginal,\n  FailedCreateLocation as FailedCreateLocationOriginal,\n  GetLocationRequest as GetLocationRequestOriginal,\n  GetLocationResponse as GetLocationResponseOriginal,\n  ListLocationsRequest as ListLocationsRequestOriginal,\n  Sorting as SortingOriginal,\n  SortOrder as SortOrderOriginal,\n  SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n  Paging as PagingOriginal,\n  ListLocationsResponse as ListLocationsResponseOriginal,\n  PagingMetadata as PagingMetadataOriginal,\n  UpdateLocationRequest as UpdateLocationRequestOriginal,\n  UpdateLocationResponse as UpdateLocationResponseOriginal,\n  BulkUpdateLocationRequest as BulkUpdateLocationRequestOriginal,\n  BulkUpdateLocationResponse as BulkUpdateLocationResponseOriginal,\n  FailedUpdateLocation as FailedUpdateLocationOriginal,\n  QueryLocationsRequest as QueryLocationsRequestOriginal,\n  Query as QueryOriginal,\n  QueryLocationsResponse as QueryLocationsResponseOriginal,\n  GetOrCreateDefaultLocationRequest as GetOrCreateDefaultLocationRequestOriginal,\n  GetOrCreateDefaultLocationResponse as GetOrCreateDefaultLocationResponseOriginal,\n  SetDefaultLocationRequest as SetDefaultLocationRequestOriginal,\n  SetDefaultLocationResponse as SetDefaultLocationResponseOriginal,\n  SetDefaultLocation as SetDefaultLocationOriginal,\n  ArchiveLocationRequest as ArchiveLocationRequestOriginal,\n  ArchiveLocationResponse as ArchiveLocationResponseOriginal,\n  ArchiveLocation as ArchiveLocationOriginal,\n  UnarchiveLocationRequest as UnarchiveLocationRequestOriginal,\n  UnarchiveLocationResponse as UnarchiveLocationResponseOriginal,\n  AddTypeToLocationRequest as AddTypeToLocationRequestOriginal,\n  AddTypeToLocationResponse as AddTypeToLocationResponseOriginal,\n  RemoveTypeFromLocationRequest as RemoveTypeFromLocationRequestOriginal,\n  RemoveTypeFromLocationResponse as RemoveTypeFromLocationResponseOriginal,\n  MetasiteLocationsRequest as MetasiteLocationsRequestOriginal,\n  MetasiteLocationsResponse as MetasiteLocationsResponseOriginal,\n  AddLocationTypeRequest as AddLocationTypeRequestOriginal,\n  AddLocationTypeResponse as AddLocationTypeResponseOriginal,\n  RemoveLocationTypeRequest as RemoveLocationTypeRequestOriginal,\n  RemoveLocationTypeResponse as RemoveLocationTypeResponseOriginal,\n  DomainEvent as DomainEventOriginal,\n  DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n  EntityCreatedEvent as EntityCreatedEventOriginal,\n  RestoreInfo as RestoreInfoOriginal,\n  EntityUpdatedEvent as EntityUpdatedEventOriginal,\n  EntityDeletedEvent as EntityDeletedEventOriginal,\n  ActionEvent as ActionEventOriginal,\n  MessageEnvelope as MessageEnvelopeOriginal,\n  IdentificationData as IdentificationDataOriginal,\n  IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n  WebhookIdentityType as WebhookIdentityTypeOriginal,\n  WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n  AccountInfo as AccountInfoOriginal,\n  CreateLocationApplicationErrors as CreateLocationApplicationErrorsOriginal,\n  UpdateLocationApplicationErrors as UpdateLocationApplicationErrorsOriginal,\n  SetDefaultLocationApplicationErrors as SetDefaultLocationApplicationErrorsOriginal,\n  ArchiveLocationApplicationErrors as ArchiveLocationApplicationErrorsOriginal,\n  AddTypeToLocationApplicationErrors as AddTypeToLocationApplicationErrorsOriginal,\n  RemoveTypeFromLocationApplicationErrors as RemoveTypeFromLocationApplicationErrorsOriginal,\n  AddLocationTypeApplicationErrors as AddLocationTypeApplicationErrorsOriginal,\n  RemoveLocationTypeApplicationErrors as RemoveLocationTypeApplicationErrorsOriginal,\n} from './locations-v1-location-locations.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,+CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,U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,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,IAAI,KAAK;AAAA,IACvB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,sBAOd;AACA,QAAM,UAAU,EAAE,IAAI,MAAM;AAE5B,QAAM,oBAC6B,mBAAmB,OAAO;AAE7D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,IAAI,KAAK;AAAA,IACvB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","LocationStatus","LocationType","DayOfWeek","SortOrder","WebhookIdentityType","createLocation","bulkCreateLocation","getLocation","listLocations","updateLocation","queryLocations","setDefaultLocation","archiveLocation","addTypeToLocation","removeTypeFromLocation","addLocationType","removeLocationType"]}