{"version":3,"sources":["../../src/ecom-v1-pickup-location-pickup-locations.universal.ts","../../src/ecom-v1-pickup-location-pickup-locations.http.ts","../../src/ecom-v1-pickup-location-pickup-locations.public.ts","../../src/ecom-v1-pickup-location-pickup-locations.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n  renameKeysFromSDKRequestToRESTRequest,\n  renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n  HttpClient,\n  HttpResponse,\n  NonNullablePaths,\n  QuerySpec,\n  Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixEcomV1PickupLocation from './ecom-v1-pickup-location-pickup-locations.http.js';\n// @ts-ignore\nimport { transformSDKAddressToRESTAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\n\n/** PickupLocation is the main entity of PickupLocations that can be used for lorem ipsum dolor */\nexport interface PickupLocation {\n  /**\n   * PickupLocation ID\n   * @format GUID\n   * @readonly\n   */\n  _id?: string | null;\n  /**\n   * Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * Represents the time this PickupLocation was created\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Represents the time this PickupLocation was last updated\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n  /**\n   * Pickup Location Name\n   * @minLength 1\n   * @maxLength 100\n   */\n  name?: string | null;\n  /** Pickup Location Address */\n  address?: Address;\n  /**\n   * Expected delivery time in free text. For example, `\"3-5 business days\"`.\n   * @maxLength 500\n   */\n  deliveryTime?: string | null;\n  /**\n   * Instructions for carrier. For example, `\"Please knock on the door. If unanswered, please call contact number. Thanks.\"`.\n   * @maxLength 1000\n   */\n  instructions?: string | null;\n  /** inactive pickup locations should not be shown in checkout */\n  active?: boolean | null;\n  /**\n   * at runtime for a given pickup input, up to one rate (price) should be returned in an option. If more than one rate is valid then we return the lowest one.\n   * @maxSize 50\n   */\n  rates?: ConditionalRates[];\n  /**\n   * This pickup location is active for the following delivery regions.\n   * @maxSize 50\n   * @format GUID\n   */\n  deliveryRegionIds?: string[];\n}\n\n/** Physical address */\nexport interface Address extends AddressStreetOneOf {\n  /** Street name and number. */\n  streetAddress?: StreetAddress;\n  /** @maxLength 150 */\n  addressLine1?: string | null;\n  /**\n   * Country code.\n   * @format COUNTRY\n   */\n  country?: string | null;\n  /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */\n  subdivision?: string | null;\n  city?: string | null;\n  /** Zip/postal code. */\n  postalCode?: string | null;\n  /** @maxLength 100 */\n  addressLine2?: string | null;\n}\n\n/** @oneof */\nexport interface AddressStreetOneOf {\n  /** Street name and number. */\n  streetAddress?: StreetAddress;\n  /** @maxLength 150 */\n  addressLine?: string | null;\n}\n\nexport interface StreetAddress {\n  number?: string;\n  name?: string;\n}\n\nexport interface ConditionalRates {\n  /**\n   * there is an AND logic between all the conditions. Empty conditions means true.\n   * The amount of the rate that will be returned if all conditions are met.\n   * @decimalValue options { gte:0, lte:999999999, maxScale:3 }\n   */\n  amount?: string;\n  /**\n   * For example: weight > 0 and weight <= 10\n   * @maxSize 10\n   */\n  conditions?: Condition[];\n  /** When this flag is set to true, multiply the amount by the number of line items passed on the request. */\n  multiplyByQuantity?: boolean;\n}\n\nexport interface Condition {\n  type?: ConditionTypeWithLiterals;\n  /**\n   * The value in respective to the condition type\n   * Weight values should be in the same weight units of the store: KG / LB\n   * Total price is according to the store currency\n   * Quantity of items should be integers\n   * @decimalValue options { gte:0, lte:999999999, maxScale:6 }\n   */\n  value?: string;\n  /** Logical operator. */\n  operator?: LogicalOperatorWithLiterals;\n}\n\nexport enum ConditionType {\n  BY_TOTAL_WEIGHT = 'BY_TOTAL_WEIGHT',\n  BY_TOTAL_PRICE = 'BY_TOTAL_PRICE',\n  BY_TOTAL_QUANTITY = 'BY_TOTAL_QUANTITY',\n}\n\n/** @enumType */\nexport type ConditionTypeWithLiterals =\n  | ConditionType\n  | 'BY_TOTAL_WEIGHT'\n  | 'BY_TOTAL_PRICE'\n  | 'BY_TOTAL_QUANTITY';\n\nexport enum LogicalOperator {\n  EQ = 'EQ',\n  GT = 'GT',\n  GTE = 'GTE',\n  LT = 'LT',\n  LTE = 'LTE',\n}\n\n/** @enumType */\nexport type LogicalOperatorWithLiterals =\n  | LogicalOperator\n  | 'EQ'\n  | 'GT'\n  | 'GTE'\n  | 'LT'\n  | 'LTE';\n\nexport interface DiffmatokyPayload {\n  left?: string;\n  right?: string;\n  compareChannel?: string;\n  entityId?: string;\n  errorInformation?: ErrorInformation;\n  tags?: string[];\n}\n\nexport interface ErrorInformation {\n  stackTrace?: string;\n}\n\nexport interface CreatePickupLocationRequest {\n  /** PickupLocation to be created */\n  pickupLocation: PickupLocation;\n}\n\nexport interface CreatePickupLocationResponse {\n  /** The created PickupLocation */\n  pickupLocation?: PickupLocation;\n}\n\nexport interface GetPickupLocationRequest {\n  /**\n   * Id of the PickupLocation to retrieve\n   * @format GUID\n   */\n  pickupLocationId: string;\n}\n\nexport interface GetPickupLocationResponse {\n  /** The retrieved PickupLocation */\n  pickupLocation?: PickupLocation;\n}\n\nexport interface UpdatePickupLocationRequest {\n  /** PickupLocation to be updated, may be partial */\n  pickupLocation: PickupLocation;\n}\n\nexport interface UpdatePickupLocationResponse {\n  /** The updated PickupLocation */\n  pickupLocation?: PickupLocation;\n}\n\nexport interface DeletePickupLocationRequest {\n  /**\n   * Id of the PickupLocation to delete\n   * @format GUID\n   */\n  pickupLocationId: string;\n}\n\nexport interface DeletePickupLocationResponse {}\n\nexport interface QueryPickupLocationRequest {\n  /** WQL expression */\n  query?: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n  /** Paging options to limit and offset the number of items. */\n  paging?: Paging;\n  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n  cursorPaging?: CursorPaging;\n  /**\n   * Filter object.\n   *\n   * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n   */\n  filter?: Record<string, any> | null;\n  /**\n   * Sort object.\n   *\n   * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n   */\n  sort?: Sorting[];\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\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n  /** Paging options to limit and offset the number of items. */\n  paging?: Paging;\n  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n  cursorPaging?: CursorPaging;\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 CursorPaging {\n  /**\n   * Maximum number of items to return in the results.\n   * @max 100\n   */\n  limit?: number | null;\n  /**\n   * Pointer to the next or previous page in the list of results.\n   *\n   * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n   * Not relevant for the first request.\n   * @maxLength 16000\n   */\n  cursor?: string | null;\n}\n\nexport interface QueryPickupLocationResponse {\n  /** The retrieved PickupLocations */\n  pickupLocations?: PickupLocation[];\n  /** Paging metadata */\n  pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n  /** Number of items returned in current page. */\n  count?: number | null;\n  /** Cursor strings that point to the next page, previous page, or both. */\n  cursors?: Cursors;\n  /**\n   * Whether there are more pages to retrieve following the current page.\n   *\n   * + `true`: Another page of results can be retrieved.\n   * + `false`: This is the last page.\n   */\n  hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n  /**\n   * Cursor string pointing to the next page in the list of results.\n   * @maxLength 16000\n   */\n  next?: string | null;\n  /**\n   * Cursor pointing to the previous page in the list of results.\n   * @maxLength 16000\n   */\n  prev?: string | null;\n}\n\nexport interface AddDeliveryRegionRequest {\n  /**\n   * Id of the PickupLocation to add to the delivery region\n   * @format GUID\n   */\n  pickupLocationId: string;\n  /**\n   * Id of the DeliveryRegion to add the PickupLocation to\n   * @format GUID\n   */\n  deliveryRegionId: string;\n  /** Revision of the PickupLocation */\n  revision: string | null;\n}\n\nexport interface AddDeliveryRegionResponse {\n  /** The updated PickupLocation */\n  pickupLocation?: PickupLocation;\n}\n\nexport interface RemoveDeliveryRegionRequest {\n  /**\n   * Id of the PickupLocation to add to the delivery region\n   * @format GUID\n   */\n  pickupLocationId: string;\n  /**\n   * Id of the DeliveryRegion to add the PickupLocation to\n   * @format GUID\n   */\n  deliveryRegionId: string;\n  /** Revision of the PickupLocation */\n  revision: string | null;\n}\n\nexport interface RemoveDeliveryRegionResponse {\n  /** The updated PickupLocation */\n  pickupLocation?: PickupLocation;\n}\n\nexport interface BulkCreatePickupLocationRequest {\n  /**\n   * @minSize 1\n   * @maxSize 100\n   */\n  pickupLocations: PickupLocation[];\n}\n\nexport interface BulkCreatePickupLocationResponse {\n  /** @maxSize 100 */\n  pickupLocations?: PickupLocation[];\n  errors?: PickupLocationError[];\n}\n\nexport interface PickupLocationError {\n  _id?: string;\n  error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n  /** Error code. */\n  code?: string;\n  /** Description of the error. */\n  description?: string;\n  /** Data related to the error. */\n  data?: Record<string, any> | null;\n}\n\nexport interface BulkUpdatePickupLocationRequest {\n  /**\n   * @minSize 1\n   * @maxSize 100\n   */\n  pickupLocations: PickupLocation[];\n}\n\nexport interface BulkUpdatePickupLocationResponse {\n  /** @maxSize 100 */\n  pickupLocations?: PickupLocation[];\n  errors?: PickupLocationError[];\n}\n\nexport interface BulkDeletePickupLocationRequest {\n  /**\n   * @format GUID\n   * @minSize 1\n   * @maxSize 100\n   */\n  pickupLocationIds: string[];\n}\n\nexport interface BulkDeletePickupLocationResponse {\n  errors?: PickupLocationError[];\n}\n\nexport interface Empty {}\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  entity?: string;\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  currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n  /** Entity that was deleted. */\n  deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n  body?: 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 CreatePickupLocationApplicationErrors =\n  | {\n      code?: 'LOCATIONS_IN_SHIPPING_RULE_LIMIT_EXCEEDED';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'LOCATIONS_IN_DELIVERY_REGIONS_LIMIT_EXCEEDED';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'LIMIT_OF_OPTIONS_PER_DELIVERY_REGION_EXCEEDED';\n      description?: string;\n      data?: Record<string, any>;\n    };\n/** @docsIgnore */\nexport type BulkCreatePickupLocationApplicationErrors =\n  | {\n      code?: 'LOCATIONS_IN_SHIPPING_RULE_LIMIT_EXCEEDED';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'LOCATIONS_IN_DELIVERY_REGIONS_LIMIT_EXCEEDED';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'LIMIT_OF_OPTIONS_PER_DELIVERY_REGION_EXCEEDED';\n      description?: string;\n      data?: Record<string, any>;\n    };\n\n/**\n * Creates a new PickupLocation\n * @param pickupLocation - PickupLocation to be created\n * @public\n * @documentationMaturity preview\n * @requiredField pickupLocation\n * @requiredField pickupLocation.address\n * @permissionId ECOM.PICKUP_LOCATION_CREATE\n * @applicableIdentity APP\n * @returns The created PickupLocation\n * @fqn wix.ecom.v1.PickupLocations.CreatePickupLocation\n */\nexport async function createPickupLocation(\n  pickupLocation: NonNullablePaths<PickupLocation, `address`, 2>\n): Promise<\n  NonNullablePaths<\n    PickupLocation,\n    | `address.streetAddress.number`\n    | `address.streetAddress.name`\n    | `rates`\n    | `rates.${number}.amount`\n    | `rates.${number}.multiplyByQuantity`\n    | `deliveryRegionIds`,\n    4\n  > & {\n    __applicationErrorsType?: CreatePickupLocationApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = transformPaths(\n    renameKeysFromSDKRequestToRESTRequest({ pickupLocation: pickupLocation }),\n    [\n      {\n        transformFn: transformSDKAddressToRESTAddress,\n        paths: [{ path: 'pickupLocation.address' }],\n      },\n    ]\n  );\n\n  const reqOpts =\n    ambassadorWixEcomV1PickupLocation.createPickupLocation(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [{ path: 'pickupLocation.address' }],\n        },\n      ])\n    )?.pickupLocation!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { pickupLocation: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['pickupLocation']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Get a PickupLocation by id\n * @param pickupLocationId - Id of the PickupLocation to retrieve\n * @public\n * @documentationMaturity preview\n * @requiredField pickupLocationId\n * @permissionId ECOM.PICKUP_LOCATION_READ\n * @applicableIdentity APP\n * @returns The retrieved PickupLocation\n * @fqn wix.ecom.v1.PickupLocations.GetPickupLocation\n */\nexport async function getPickupLocation(\n  pickupLocationId: string\n): Promise<\n  NonNullablePaths<\n    PickupLocation,\n    | `address.streetAddress.number`\n    | `address.streetAddress.name`\n    | `rates`\n    | `rates.${number}.amount`\n    | `rates.${number}.multiplyByQuantity`\n    | `deliveryRegionIds`,\n    4\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    pickupLocationId: pickupLocationId,\n  });\n\n  const reqOpts = ambassadorWixEcomV1PickupLocation.getPickupLocation(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [{ path: 'pickupLocation.address' }],\n        },\n      ])\n    )?.pickupLocation!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { pickupLocationId: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['pickupLocationId']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Update a PickupLocation\n * Delivery regions cannot be updated using this method, use AddDeliveryRegion and RemoveDeliveryRegion instead.\n * @param _id - PickupLocation ID\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField pickupLocation\n * @requiredField pickupLocation.revision\n * @permissionId ECOM.PICKUP_LOCATION_UPDATE\n * @applicableIdentity APP\n * @returns The updated PickupLocation\n * @fqn wix.ecom.v1.PickupLocations.UpdatePickupLocation\n */\nexport async function updatePickupLocation(\n  _id: string,\n  pickupLocation: NonNullablePaths<UpdatePickupLocation, `revision`, 2>\n): Promise<\n  NonNullablePaths<\n    PickupLocation,\n    | `address.streetAddress.number`\n    | `address.streetAddress.name`\n    | `rates`\n    | `rates.${number}.amount`\n    | `rates.${number}.multiplyByQuantity`\n    | `deliveryRegionIds`,\n    4\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = transformPaths(\n    renameKeysFromSDKRequestToRESTRequest({\n      pickupLocation: { ...pickupLocation, id: _id },\n    }),\n    [\n      {\n        transformFn: transformSDKAddressToRESTAddress,\n        paths: [{ path: 'pickupLocation.address' }],\n      },\n    ]\n  );\n\n  const reqOpts =\n    ambassadorWixEcomV1PickupLocation.updatePickupLocation(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [{ path: 'pickupLocation.address' }],\n        },\n      ])\n    )?.pickupLocation!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: { pickupLocation: '$[1]' },\n        explicitPathsToArguments: { 'pickupLocation.id': '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['_id', 'pickupLocation']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface UpdatePickupLocation {\n  /**\n   * PickupLocation ID\n   * @format GUID\n   * @readonly\n   */\n  _id?: string | null;\n  /**\n   * Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * Represents the time this PickupLocation was created\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Represents the time this PickupLocation was last updated\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n  /**\n   * Pickup Location Name\n   * @minLength 1\n   * @maxLength 100\n   */\n  name?: string | null;\n  /** Pickup Location Address */\n  address?: Address;\n  /**\n   * Expected delivery time in free text. For example, `\"3-5 business days\"`.\n   * @maxLength 500\n   */\n  deliveryTime?: string | null;\n  /**\n   * Instructions for carrier. For example, `\"Please knock on the door. If unanswered, please call contact number. Thanks.\"`.\n   * @maxLength 1000\n   */\n  instructions?: string | null;\n  /** inactive pickup locations should not be shown in checkout */\n  active?: boolean | null;\n  /**\n   * at runtime for a given pickup input, up to one rate (price) should be returned in an option. If more than one rate is valid then we return the lowest one.\n   * @maxSize 50\n   */\n  rates?: ConditionalRates[];\n  /**\n   * This pickup location is active for the following delivery regions.\n   * @maxSize 50\n   * @format GUID\n   */\n  deliveryRegionIds?: string[];\n}\n\n/**\n * Delete a PickupLocation\n * @param pickupLocationId - Id of the PickupLocation to delete\n * @public\n * @documentationMaturity preview\n * @requiredField pickupLocationId\n * @permissionId ECOM.PICKUP_LOCATION_DELETE\n * @applicableIdentity APP\n * @fqn wix.ecom.v1.PickupLocations.DeletePickupLocation\n */\nexport async function deletePickupLocation(\n  pickupLocationId: string\n): Promise<void> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    pickupLocationId: pickupLocationId,\n  });\n\n  const reqOpts =\n    ambassadorWixEcomV1PickupLocation.deletePickupLocation(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { pickupLocationId: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['pickupLocationId']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Query PickupLocations using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)\n * @public\n * @documentationMaturity preview\n * @permissionId ECOM.PICKUP_LOCATION_READ\n * @applicableIdentity APP\n * @fqn wix.ecom.v1.PickupLocations.QueryPickupLocation\n */\nexport function queryPickupLocation(): PickupLocationsQueryBuilder {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  return queryBuilder<\n    PickupLocation,\n    'CURSOR',\n    QueryPickupLocationRequest,\n    QueryPickupLocationResponse\n  >({\n    func: async (payload: QueryPickupLocationRequest) => {\n      const reqOpts =\n        ambassadorWixEcomV1PickupLocation.queryPickupLocation(payload);\n\n      sideEffects?.onSiteCall?.();\n      try {\n        const result = await httpClient.request(reqOpts);\n        sideEffects?.onSuccess?.(result);\n        return result;\n      } catch (err) {\n        sideEffects?.onError?.(err);\n        throw err;\n      }\n    },\n    requestTransformer: (query: QueryPickupLocationRequest['query']) => {\n      const args = [query, {}] as [QueryPickupLocationRequest['query'], {}];\n      return renameKeysFromSDKRequestToRESTRequest({\n        ...args?.[1],\n        query: args?.[0],\n      });\n    },\n    responseTransformer: ({\n      data,\n    }: HttpResponse<QueryPickupLocationResponse>) => {\n      const transformedData = renameKeysFromRESTResponseToSDKResponse(\n        transformPaths(data, [\n          {\n            transformFn: transformRESTAddressToSDKAddress,\n            paths: [{ path: 'pickupLocations.address' }],\n          },\n        ])\n      );\n\n      return {\n        items: transformedData?.pickupLocations,\n        pagingMetadata: transformedData?.pagingMetadata,\n      };\n    },\n    errorTransformer: (err: unknown) => {\n      const transformedError = sdkTransformError(err, {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { query: '$[0]' },\n        singleArgumentUnchanged: false,\n      });\n\n      throw transformedError;\n    },\n    pagingMethod: 'CURSOR',\n    transformationPaths: {},\n  });\n}\n\ninterface QueryCursorResult {\n  cursors: Cursors;\n  hasNext: () => boolean;\n  hasPrev: () => boolean;\n  length: number;\n  pageSize: number;\n}\n\nexport interface PickupLocationsQueryResult extends QueryCursorResult {\n  items: PickupLocation[];\n  query: PickupLocationsQueryBuilder;\n  next: () => Promise<PickupLocationsQueryResult>;\n  prev: () => Promise<PickupLocationsQueryResult>;\n}\n\nexport interface PickupLocationsQueryBuilder {\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  eq: (\n    propertyName:\n      | '_createdDate'\n      | '_updatedDate'\n      | 'name'\n      | 'address.country'\n      | 'address.subdivision'\n      | 'address.city'\n      | 'deliveryRegionIds',\n    value: any\n  ) => PickupLocationsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  ne: (\n    propertyName:\n      | '_createdDate'\n      | '_updatedDate'\n      | 'name'\n      | 'address.country'\n      | 'address.subdivision'\n      | 'address.city'\n      | 'deliveryRegionIds',\n    value: any\n  ) => PickupLocationsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  ge: (\n    propertyName:\n      | '_createdDate'\n      | '_updatedDate'\n      | 'name'\n      | 'address.country'\n      | 'address.subdivision'\n      | 'address.city',\n    value: any\n  ) => PickupLocationsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  gt: (\n    propertyName:\n      | '_createdDate'\n      | '_updatedDate'\n      | 'name'\n      | 'address.country'\n      | 'address.subdivision'\n      | 'address.city',\n    value: any\n  ) => PickupLocationsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  le: (\n    propertyName:\n      | '_createdDate'\n      | '_updatedDate'\n      | 'name'\n      | 'address.country'\n      | 'address.subdivision'\n      | 'address.city',\n    value: any\n  ) => PickupLocationsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  lt: (\n    propertyName:\n      | '_createdDate'\n      | '_updatedDate'\n      | 'name'\n      | 'address.country'\n      | 'address.subdivision'\n      | 'address.city',\n    value: any\n  ) => PickupLocationsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `string`.\n   * @param string - String to compare against. Case-insensitive.\n   * @documentationMaturity preview\n   */\n  startsWith: (\n    propertyName:\n      | 'name'\n      | 'address.country'\n      | 'address.subdivision'\n      | 'address.city',\n    value: string\n  ) => PickupLocationsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `values`.\n   * @param values - List of values to compare against.\n   * @documentationMaturity preview\n   */\n  hasSome: (\n    propertyName:\n      | '_createdDate'\n      | '_updatedDate'\n      | 'name'\n      | 'address.country'\n      | 'address.subdivision'\n      | 'address.city'\n      | 'deliveryRegionIds',\n    value: any[]\n  ) => PickupLocationsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `values`.\n   * @param values - List of values to compare against.\n   * @documentationMaturity preview\n   */\n  hasAll: (\n    propertyName: 'deliveryRegionIds',\n    value: any[]\n  ) => PickupLocationsQueryBuilder;\n  /** @documentationMaturity preview */\n  in: (\n    propertyName:\n      | '_createdDate'\n      | '_updatedDate'\n      | 'name'\n      | 'address.country'\n      | 'address.subdivision'\n      | 'address.city'\n      | 'deliveryRegionIds',\n    value: any\n  ) => PickupLocationsQueryBuilder;\n  /** @documentationMaturity preview */\n  exists: (\n    propertyName:\n      | '_createdDate'\n      | '_updatedDate'\n      | 'name'\n      | 'address.country'\n      | 'address.subdivision'\n      | 'address.city'\n      | 'deliveryRegionIds',\n    value: boolean\n  ) => PickupLocationsQueryBuilder;\n  /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n   * @documentationMaturity preview\n   */\n  limit: (limit: number) => PickupLocationsQueryBuilder;\n  /** @param cursor - A pointer to specific record\n   * @documentationMaturity preview\n   */\n  skipTo: (cursor: string) => PickupLocationsQueryBuilder;\n  /** @documentationMaturity preview */\n  find: () => Promise<PickupLocationsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.ecom.v1.PickupLocations.QueryPickupLocation\n * @requiredField query\n */\nexport async function typedQueryPickupLocation(\n  query: PickupLocationQuery\n): Promise<\n  NonNullablePaths<\n    QueryPickupLocationResponse,\n    | `pickupLocations`\n    | `pickupLocations.${number}.address.streetAddress.number`\n    | `pickupLocations.${number}.address.streetAddress.name`,\n    6\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n  const reqOpts =\n    ambassadorWixEcomV1PickupLocation.queryPickupLocation(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [{ path: 'pickupLocations.address' }],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { query: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['query']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface PickupLocationQuerySpec extends QuerySpec {\n  paging: 'cursor';\n  wql: [\n    {\n      fields: ['deliveryRegionIds'];\n      operators: ['$hasAll', '$hasSome'];\n      sort: 'NONE';\n    },\n    {\n      fields: [\n        '_createdDate',\n        '_updatedDate',\n        'address.city',\n        'address.country',\n        'address.subdivision',\n        'name'\n      ];\n      operators: '*';\n      sort: 'NONE';\n    }\n  ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n  PickupLocation,\n  PickupLocationQuerySpec\n>;\nexport type PickupLocationQuery = {\n  /** \n  Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`.  \n  */\n  cursorPaging?: {\n    /** \n  Maximum number of items to return in the results. \n  @max: 100 \n  */\n    limit?:\n      | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n      | null;\n    /** \n  Pointer to the next or previous page in the list of results.\n\n  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n  Not relevant for the first request. \n  @maxLength: 16000 \n  */\n    cursor?:\n      | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n      | null;\n  };\n  /** \n  Filter object.\n\n  Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).  \n  */\n  filter?: CommonQueryWithEntityContext['filter'] | null;\n  /** \n  Sort object.\n\n  Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).  \n  */\n  sort?: {\n    /** \n  Name of the field to sort by. \n  @maxLength: 512 \n  */\n    fieldName?: NonNullable<\n      CommonQueryWithEntityContext['sort']\n    >[number]['fieldName'];\n    /** \n  Sort order.  \n  */\n    order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n  }[];\n};\n\nexport const utils = {\n  query: {\n    ...createQueryUtils<\n      PickupLocation,\n      PickupLocationQuerySpec,\n      PickupLocationQuery\n    >(),\n  },\n};\n\n/**\n * Add a DeliveryRegion to a PickupLocation\n * @param pickupLocationId - Id of the PickupLocation to add to the delivery region\n * @param deliveryRegionId - Id of the DeliveryRegion to add the PickupLocation to\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryRegionId\n * @requiredField options\n * @requiredField options.revision\n * @requiredField pickupLocationId\n * @permissionId ECOM.PICKUP_LOCATION_UPDATE\n * @applicableIdentity APP\n * @fqn wix.ecom.v1.PickupLocations.AddDeliveryRegion\n */\nexport async function addDeliveryRegion(\n  pickupLocationId: string,\n  deliveryRegionId: string,\n  options: NonNullablePaths<AddDeliveryRegionOptions, `revision`, 2>\n): Promise<\n  NonNullablePaths<\n    AddDeliveryRegionResponse,\n    | `pickupLocation.address.streetAddress.number`\n    | `pickupLocation.address.streetAddress.name`\n    | `pickupLocation.rates`\n    | `pickupLocation.rates.${number}.amount`\n    | `pickupLocation.rates.${number}.multiplyByQuantity`\n    | `pickupLocation.deliveryRegionIds`,\n    5\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[3] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    pickupLocationId: pickupLocationId,\n    deliveryRegionId: deliveryRegionId,\n    revision: options?.revision,\n  });\n\n  const reqOpts = ambassadorWixEcomV1PickupLocation.addDeliveryRegion(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [{ path: 'pickupLocation.address' }],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          pickupLocationId: '$[0]',\n          deliveryRegionId: '$[1]',\n          revision: '$[2].revision',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['pickupLocationId', 'deliveryRegionId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface AddDeliveryRegionOptions {\n  /** Revision of the PickupLocation */\n  revision: string | null;\n}\n\n/**\n * Remove a DeliveryRegion from a PickupLocation\n * @param pickupLocationId - Id of the PickupLocation to add to the delivery region\n * @param deliveryRegionId - Id of the DeliveryRegion to add the PickupLocation to\n * @public\n * @documentationMaturity preview\n * @requiredField deliveryRegionId\n * @requiredField options\n * @requiredField options.revision\n * @requiredField pickupLocationId\n * @permissionId ECOM.PICKUP_LOCATION_UPDATE\n * @applicableIdentity APP\n * @fqn wix.ecom.v1.PickupLocations.RemoveDeliveryRegion\n */\nexport async function removeDeliveryRegion(\n  pickupLocationId: string,\n  deliveryRegionId: string,\n  options: NonNullablePaths<RemoveDeliveryRegionOptions, `revision`, 2>\n): Promise<\n  NonNullablePaths<\n    RemoveDeliveryRegionResponse,\n    | `pickupLocation.address.streetAddress.number`\n    | `pickupLocation.address.streetAddress.name`\n    | `pickupLocation.rates`\n    | `pickupLocation.rates.${number}.amount`\n    | `pickupLocation.rates.${number}.multiplyByQuantity`\n    | `pickupLocation.deliveryRegionIds`,\n    5\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[3] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    pickupLocationId: pickupLocationId,\n    deliveryRegionId: deliveryRegionId,\n    revision: options?.revision,\n  });\n\n  const reqOpts =\n    ambassadorWixEcomV1PickupLocation.removeDeliveryRegion(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [{ path: 'pickupLocation.address' }],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          pickupLocationId: '$[0]',\n          deliveryRegionId: '$[1]',\n          revision: '$[2].revision',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['pickupLocationId', 'deliveryRegionId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface RemoveDeliveryRegionOptions {\n  /** Revision of the PickupLocation */\n  revision: string | null;\n}\n\n/**\n * Bulk Create for new PickupLocation\n * @public\n * @documentationMaturity preview\n * @requiredField pickupLocations\n * @requiredField pickupLocations.address\n * @permissionId ECOM.PICKUP_LOCATION_CREATE\n * @applicableIdentity APP\n * @fqn wix.ecom.v1.PickupLocations.BulkCreatePickupLocation\n */\nexport async function bulkCreatePickupLocation(\n  pickupLocations: NonNullablePaths<PickupLocation, `address`, 2>[]\n): Promise<\n  NonNullablePaths<\n    BulkCreatePickupLocationResponse,\n    | `pickupLocations`\n    | `pickupLocations.${number}.address.streetAddress.number`\n    | `pickupLocations.${number}.address.streetAddress.name`\n    | `errors`\n    | `errors.${number}._id`\n    | `errors.${number}.error.code`\n    | `errors.${number}.error.description`,\n    6\n  > & {\n    __applicationErrorsType?: BulkCreatePickupLocationApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = transformPaths(\n    renameKeysFromSDKRequestToRESTRequest({ pickupLocations: pickupLocations }),\n    [\n      {\n        transformFn: transformSDKAddressToRESTAddress,\n        paths: [{ path: 'pickupLocations.address' }],\n      },\n    ]\n  );\n\n  const reqOpts =\n    ambassadorWixEcomV1PickupLocation.bulkCreatePickupLocation(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [{ path: 'pickupLocations.address' }],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { pickupLocations: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['pickupLocations']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Update a PickupLocation\n * @public\n * @documentationMaturity preview\n * @requiredField pickupLocations\n * @requiredField pickupLocations._id\n * @requiredField pickupLocations.revision\n * @permissionId ECOM.PICKUP_LOCATION_UPDATE\n * @applicableIdentity APP\n * @fqn wix.ecom.v1.PickupLocations.BulkUpdatePickupLocation\n */\nexport async function bulkUpdatePickupLocation(\n  pickupLocations: NonNullablePaths<PickupLocation, `_id` | `revision`, 2>[]\n): Promise<\n  NonNullablePaths<\n    BulkUpdatePickupLocationResponse,\n    | `pickupLocations`\n    | `pickupLocations.${number}.address.streetAddress.number`\n    | `pickupLocations.${number}.address.streetAddress.name`\n    | `errors`\n    | `errors.${number}._id`\n    | `errors.${number}.error.code`\n    | `errors.${number}.error.description`,\n    6\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = transformPaths(\n    renameKeysFromSDKRequestToRESTRequest({ pickupLocations: pickupLocations }),\n    [\n      {\n        transformFn: transformSDKAddressToRESTAddress,\n        paths: [{ path: 'pickupLocations.address' }],\n      },\n    ]\n  );\n\n  const reqOpts =\n    ambassadorWixEcomV1PickupLocation.bulkUpdatePickupLocation(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [{ path: 'pickupLocations.address' }],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { pickupLocations: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['pickupLocations']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Delete a PickupLocation\n * @public\n * @documentationMaturity preview\n * @requiredField pickupLocationIds\n * @permissionId ECOM.PICKUP_LOCATION_DELETE\n * @applicableIdentity APP\n * @fqn wix.ecom.v1.PickupLocations.BulkDeletePickupLocation\n */\nexport async function bulkDeletePickupLocation(\n  pickupLocationIds: string[]\n): Promise<\n  NonNullablePaths<\n    BulkDeletePickupLocationResponse,\n    | `errors`\n    | `errors.${number}._id`\n    | `errors.${number}.error.code`\n    | `errors.${number}.error.description`,\n    5\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    pickupLocationIds: pickupLocationIds,\n  });\n\n  const reqOpts =\n    ambassadorWixEcomV1PickupLocation.bulkDeletePickupLocation(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { pickupLocationIds: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['pickupLocationIds']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\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 resolveWixEcomV1PickupLocationsUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'api._api_base_domain_': [\n      {\n        srcPath: '/pickup-locations',\n        destPath: '',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/pickup-locations',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_pickup-locations';\n\n/** Creates a new PickupLocation */\nexport function createPickupLocation(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __createPickupLocation({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'pickupLocation.createdDate' },\n          { path: 'pickupLocation.updatedDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.pickup_location',\n      method: 'POST' as any,\n      methodFqn: 'wix.ecom.v1.PickupLocations.CreatePickupLocation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEcomV1PickupLocationsUrl({\n        protoPath: '/v1/pickup-locations',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'pickupLocation.createdDate' },\n              { path: 'pickupLocation.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createPickupLocation;\n}\n\n/** Get a PickupLocation by id */\nexport function getPickupLocation(payload: object): RequestOptionsFactory<any> {\n  function __getPickupLocation({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.pickup_location',\n      method: 'GET' as any,\n      methodFqn: 'wix.ecom.v1.PickupLocations.GetPickupLocation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEcomV1PickupLocationsUrl({\n        protoPath: '/v1/pickup-locations/{pickupLocationId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'pickupLocation.createdDate' },\n              { path: 'pickupLocation.updatedDate' },\n            ],\n          },\n        ]),\n      fallback: [\n        {\n          method: 'GET' as any,\n          url: resolveWixEcomV1PickupLocationsUrl({\n            protoPath: '/v1/pickup-locations/{pickupLocationId}',\n            data: payload,\n            host,\n          }),\n          params: toURLSearchParams(payload),\n        },\n      ],\n    };\n\n    return metadata;\n  }\n\n  return __getPickupLocation;\n}\n\n/**\n * Update a PickupLocation\n * Delivery regions cannot be updated using this method, use AddDeliveryRegion and RemoveDeliveryRegion instead.\n */\nexport function updatePickupLocation(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __updatePickupLocation({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFieldMaskToRESTFieldMask,\n        paths: [{ path: 'fieldMask' }],\n      },\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'pickupLocation.createdDate' },\n          { path: 'pickupLocation.updatedDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.pickup_location',\n      method: 'PATCH' as any,\n      methodFqn: 'wix.ecom.v1.PickupLocations.UpdatePickupLocation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEcomV1PickupLocationsUrl({\n        protoPath: '/v1/pickup-locations/{pickupLocation.id}',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'pickupLocation.createdDate' },\n              { path: 'pickupLocation.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updatePickupLocation;\n}\n\n/** Delete a PickupLocation */\nexport function deletePickupLocation(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __deletePickupLocation({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.pickup_location',\n      method: 'DELETE' as any,\n      methodFqn: 'wix.ecom.v1.PickupLocations.DeletePickupLocation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEcomV1PickupLocationsUrl({\n        protoPath: '/v1/pickup-locations/{pickupLocationId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __deletePickupLocation;\n}\n\n/** Query PickupLocations using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) */\nexport function queryPickupLocation(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __queryPickupLocation({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.pickup_location',\n      method: 'POST' as any,\n      methodFqn: 'wix.ecom.v1.PickupLocations.QueryPickupLocation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEcomV1PickupLocationsUrl({\n        protoPath: '/v1/pickup-locations/query',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'pickupLocations.createdDate' },\n              { path: 'pickupLocations.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __queryPickupLocation;\n}\n\n/** Add a DeliveryRegion to a PickupLocation */\nexport function addDeliveryRegion(payload: object): RequestOptionsFactory<any> {\n  function __addDeliveryRegion({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.pickup_location',\n      method: 'POST' as any,\n      methodFqn: 'wix.ecom.v1.PickupLocations.AddDeliveryRegion',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEcomV1PickupLocationsUrl({\n        protoPath:\n          '/v1/pickup-locations/{pickupLocationId}/add-delivery-region',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'pickupLocation.createdDate' },\n              { path: 'pickupLocation.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __addDeliveryRegion;\n}\n\n/** Remove a DeliveryRegion from a PickupLocation */\nexport function removeDeliveryRegion(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __removeDeliveryRegion({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.pickup_location',\n      method: 'POST' as any,\n      methodFqn: 'wix.ecom.v1.PickupLocations.RemoveDeliveryRegion',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEcomV1PickupLocationsUrl({\n        protoPath:\n          '/v1/pickup-locations/{pickupLocationId}/remove-delivery-region',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'pickupLocation.createdDate' },\n              { path: 'pickupLocation.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __removeDeliveryRegion;\n}\n\n/** Bulk Create for new PickupLocation */\nexport function bulkCreatePickupLocation(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __bulkCreatePickupLocation({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'pickupLocations.createdDate' },\n          { path: 'pickupLocations.updatedDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.pickup_location',\n      method: 'POST' as any,\n      methodFqn: 'wix.ecom.v1.PickupLocations.BulkCreatePickupLocation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEcomV1PickupLocationsUrl({\n        protoPath: '/v1/bulk/pickup-locations/create',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'pickupLocations.createdDate' },\n              { path: 'pickupLocations.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __bulkCreatePickupLocation;\n}\n\n/** Update a PickupLocation */\nexport function bulkUpdatePickupLocation(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __bulkUpdatePickupLocation({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'pickupLocations.createdDate' },\n          { path: 'pickupLocations.updatedDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.pickup_location',\n      method: 'PATCH' as any,\n      methodFqn: 'wix.ecom.v1.PickupLocations.BulkUpdatePickupLocation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEcomV1PickupLocationsUrl({\n        protoPath: '/v1/bulk/pickup-locations/update',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'pickupLocations.createdDate' },\n              { path: 'pickupLocations.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __bulkUpdatePickupLocation;\n}\n\n/** Delete a PickupLocation */\nexport function bulkDeletePickupLocation(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __bulkDeletePickupLocation({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.pickup_location',\n      method: 'DELETE' as any,\n      methodFqn: 'wix.ecom.v1.PickupLocations.BulkDeletePickupLocation',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEcomV1PickupLocationsUrl({\n        protoPath: '/v1/bulk/pickup-locations/delete',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __bulkDeletePickupLocation;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  AddDeliveryRegionOptions,\n  AddDeliveryRegionResponse,\n  BulkCreatePickupLocationApplicationErrors,\n  BulkCreatePickupLocationResponse,\n  BulkDeletePickupLocationResponse,\n  BulkUpdatePickupLocationResponse,\n  CreatePickupLocationApplicationErrors,\n  PickupLocation,\n  PickupLocationQuery,\n  PickupLocationsQueryBuilder,\n  QueryPickupLocationResponse,\n  RemoveDeliveryRegionOptions,\n  RemoveDeliveryRegionResponse,\n  UpdatePickupLocation,\n  addDeliveryRegion as universalAddDeliveryRegion,\n  bulkCreatePickupLocation as universalBulkCreatePickupLocation,\n  bulkDeletePickupLocation as universalBulkDeletePickupLocation,\n  bulkUpdatePickupLocation as universalBulkUpdatePickupLocation,\n  createPickupLocation as universalCreatePickupLocation,\n  deletePickupLocation as universalDeletePickupLocation,\n  getPickupLocation as universalGetPickupLocation,\n  queryPickupLocation as universalQueryPickupLocation,\n  removeDeliveryRegion as universalRemoveDeliveryRegion,\n  typedQueryPickupLocation as universalTypedQueryPickupLocation,\n  updatePickupLocation as universalUpdatePickupLocation,\n} from './ecom-v1-pickup-location-pickup-locations.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/ecom' };\n\nexport function createPickupLocation(\n  httpClient: HttpClient\n): CreatePickupLocationSignature {\n  return (pickupLocation: NonNullablePaths<PickupLocation, `address`, 2>) =>\n    universalCreatePickupLocation(\n      pickupLocation,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface CreatePickupLocationSignature {\n  /**\n   * Creates a new PickupLocation\n   * @param - PickupLocation to be created\n   * @returns The created PickupLocation\n   */\n  (pickupLocation: NonNullablePaths<PickupLocation, `address`, 2>): Promise<\n    NonNullablePaths<\n      PickupLocation,\n      | `address.streetAddress.number`\n      | `address.streetAddress.name`\n      | `rates`\n      | `rates.${number}.amount`\n      | `rates.${number}.multiplyByQuantity`\n      | `deliveryRegionIds`,\n      4\n    > & {\n      __applicationErrorsType?: CreatePickupLocationApplicationErrors;\n    }\n  >;\n}\n\nexport function getPickupLocation(\n  httpClient: HttpClient\n): GetPickupLocationSignature {\n  return (pickupLocationId: string) =>\n    universalGetPickupLocation(\n      pickupLocationId,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetPickupLocationSignature {\n  /**\n   * Get a PickupLocation by id\n   * @param - Id of the PickupLocation to retrieve\n   * @returns The retrieved PickupLocation\n   */\n  (pickupLocationId: string): Promise<\n    NonNullablePaths<\n      PickupLocation,\n      | `address.streetAddress.number`\n      | `address.streetAddress.name`\n      | `rates`\n      | `rates.${number}.amount`\n      | `rates.${number}.multiplyByQuantity`\n      | `deliveryRegionIds`,\n      4\n    >\n  >;\n}\n\nexport function updatePickupLocation(\n  httpClient: HttpClient\n): UpdatePickupLocationSignature {\n  return (\n    _id: string,\n    pickupLocation: NonNullablePaths<UpdatePickupLocation, `revision`, 2>\n  ) =>\n    universalUpdatePickupLocation(\n      _id,\n      pickupLocation,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface UpdatePickupLocationSignature {\n  /**\n   * Update a PickupLocation\n   * Delivery regions cannot be updated using this method, use AddDeliveryRegion and RemoveDeliveryRegion instead.\n   * @param - PickupLocation ID\n   * @returns The updated PickupLocation\n   */\n  (\n    _id: string,\n    pickupLocation: NonNullablePaths<UpdatePickupLocation, `revision`, 2>\n  ): Promise<\n    NonNullablePaths<\n      PickupLocation,\n      | `address.streetAddress.number`\n      | `address.streetAddress.name`\n      | `rates`\n      | `rates.${number}.amount`\n      | `rates.${number}.multiplyByQuantity`\n      | `deliveryRegionIds`,\n      4\n    >\n  >;\n}\n\nexport function deletePickupLocation(\n  httpClient: HttpClient\n): DeletePickupLocationSignature {\n  return (pickupLocationId: string) =>\n    universalDeletePickupLocation(\n      pickupLocationId,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface DeletePickupLocationSignature {\n  /**\n   * Delete a PickupLocation\n   * @param - Id of the PickupLocation to delete\n   */\n  (pickupLocationId: string): Promise<void>;\n}\n\nexport function queryPickupLocation(\n  httpClient: HttpClient\n): QueryPickupLocationSignature {\n  return () =>\n    universalQueryPickupLocation(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface QueryPickupLocationSignature {\n  /**\n   * Query PickupLocations using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)\n   */\n  (): PickupLocationsQueryBuilder;\n}\n\nexport function typedQueryPickupLocation(\n  httpClient: HttpClient\n): TypedQueryPickupLocationSignature {\n  return (query: PickupLocationQuery) =>\n    universalTypedQueryPickupLocation(\n      query,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface TypedQueryPickupLocationSignature {\n  /** */\n  (query: PickupLocationQuery): Promise<\n    NonNullablePaths<\n      QueryPickupLocationResponse,\n      | `pickupLocations`\n      | `pickupLocations.${number}.address.streetAddress.number`\n      | `pickupLocations.${number}.address.streetAddress.name`,\n      6\n    >\n  >;\n}\n\nexport function addDeliveryRegion(\n  httpClient: HttpClient\n): AddDeliveryRegionSignature {\n  return (\n    pickupLocationId: string,\n    deliveryRegionId: string,\n    options: NonNullablePaths<AddDeliveryRegionOptions, `revision`, 2>\n  ) =>\n    universalAddDeliveryRegion(\n      pickupLocationId,\n      deliveryRegionId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface AddDeliveryRegionSignature {\n  /**\n   * Add a DeliveryRegion to a PickupLocation\n   * @param - Id of the PickupLocation to add to the delivery region\n   * @param - Id of the DeliveryRegion to add the PickupLocation to\n   */\n  (\n    pickupLocationId: string,\n    deliveryRegionId: string,\n    options: NonNullablePaths<AddDeliveryRegionOptions, `revision`, 2>\n  ): Promise<\n    NonNullablePaths<\n      AddDeliveryRegionResponse,\n      | `pickupLocation.address.streetAddress.number`\n      | `pickupLocation.address.streetAddress.name`\n      | `pickupLocation.rates`\n      | `pickupLocation.rates.${number}.amount`\n      | `pickupLocation.rates.${number}.multiplyByQuantity`\n      | `pickupLocation.deliveryRegionIds`,\n      5\n    >\n  >;\n}\n\nexport function removeDeliveryRegion(\n  httpClient: HttpClient\n): RemoveDeliveryRegionSignature {\n  return (\n    pickupLocationId: string,\n    deliveryRegionId: string,\n    options: NonNullablePaths<RemoveDeliveryRegionOptions, `revision`, 2>\n  ) =>\n    universalRemoveDeliveryRegion(\n      pickupLocationId,\n      deliveryRegionId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface RemoveDeliveryRegionSignature {\n  /**\n   * Remove a DeliveryRegion from a PickupLocation\n   * @param - Id of the PickupLocation to add to the delivery region\n   * @param - Id of the DeliveryRegion to add the PickupLocation to\n   */\n  (\n    pickupLocationId: string,\n    deliveryRegionId: string,\n    options: NonNullablePaths<RemoveDeliveryRegionOptions, `revision`, 2>\n  ): Promise<\n    NonNullablePaths<\n      RemoveDeliveryRegionResponse,\n      | `pickupLocation.address.streetAddress.number`\n      | `pickupLocation.address.streetAddress.name`\n      | `pickupLocation.rates`\n      | `pickupLocation.rates.${number}.amount`\n      | `pickupLocation.rates.${number}.multiplyByQuantity`\n      | `pickupLocation.deliveryRegionIds`,\n      5\n    >\n  >;\n}\n\nexport function bulkCreatePickupLocation(\n  httpClient: HttpClient\n): BulkCreatePickupLocationSignature {\n  return (pickupLocations: NonNullablePaths<PickupLocation, `address`, 2>[]) =>\n    universalBulkCreatePickupLocation(\n      pickupLocations,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface BulkCreatePickupLocationSignature {\n  /**\n   * Bulk Create for new PickupLocation\n   */\n  (pickupLocations: NonNullablePaths<PickupLocation, `address`, 2>[]): Promise<\n    NonNullablePaths<\n      BulkCreatePickupLocationResponse,\n      | `pickupLocations`\n      | `pickupLocations.${number}.address.streetAddress.number`\n      | `pickupLocations.${number}.address.streetAddress.name`\n      | `errors`\n      | `errors.${number}._id`\n      | `errors.${number}.error.code`\n      | `errors.${number}.error.description`,\n      6\n    > & {\n      __applicationErrorsType?: BulkCreatePickupLocationApplicationErrors;\n    }\n  >;\n}\n\nexport function bulkUpdatePickupLocation(\n  httpClient: HttpClient\n): BulkUpdatePickupLocationSignature {\n  return (\n    pickupLocations: NonNullablePaths<PickupLocation, `_id` | `revision`, 2>[]\n  ) =>\n    universalBulkUpdatePickupLocation(\n      pickupLocations,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface BulkUpdatePickupLocationSignature {\n  /**\n   * Update a PickupLocation\n   */\n  (\n    pickupLocations: NonNullablePaths<PickupLocation, `_id` | `revision`, 2>[]\n  ): Promise<\n    NonNullablePaths<\n      BulkUpdatePickupLocationResponse,\n      | `pickupLocations`\n      | `pickupLocations.${number}.address.streetAddress.number`\n      | `pickupLocations.${number}.address.streetAddress.name`\n      | `errors`\n      | `errors.${number}._id`\n      | `errors.${number}.error.code`\n      | `errors.${number}.error.description`,\n      6\n    >\n  >;\n}\n\nexport function bulkDeletePickupLocation(\n  httpClient: HttpClient\n): BulkDeletePickupLocationSignature {\n  return (pickupLocationIds: string[]) =>\n    universalBulkDeletePickupLocation(\n      pickupLocationIds,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface BulkDeletePickupLocationSignature {\n  /**\n   * Delete a PickupLocation\n   */\n  (pickupLocationIds: string[]): Promise<\n    NonNullablePaths<\n      BulkDeletePickupLocationResponse,\n      | `errors`\n      | `errors.${number}._id`\n      | `errors.${number}.error.code`\n      | `errors.${number}.error.description`,\n      5\n    >\n  >;\n}\n\nexport {\n  AccountInfo,\n  ActionEvent,\n  AddDeliveryRegionOptions,\n  AddDeliveryRegionRequest,\n  AddDeliveryRegionResponse,\n  Address,\n  AddressStreetOneOf,\n  ApplicationError,\n  BulkCreatePickupLocationRequest,\n  BulkCreatePickupLocationResponse,\n  BulkDeletePickupLocationRequest,\n  BulkDeletePickupLocationResponse,\n  BulkUpdatePickupLocationRequest,\n  BulkUpdatePickupLocationResponse,\n  Condition,\n  ConditionType,\n  ConditionalRates,\n  CreatePickupLocationRequest,\n  CreatePickupLocationResponse,\n  CursorPaging,\n  CursorPagingMetadata,\n  Cursors,\n  DeletePickupLocationRequest,\n  DeletePickupLocationResponse,\n  DiffmatokyPayload,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  Empty,\n  EntityCreatedEvent,\n  EntityDeletedEvent,\n  EntityUpdatedEvent,\n  ErrorInformation,\n  GetPickupLocationRequest,\n  GetPickupLocationResponse,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  LogicalOperator,\n  MessageEnvelope,\n  Paging,\n  PickupLocation,\n  PickupLocationError,\n  PickupLocationQuerySpec,\n  PickupLocationsQueryBuilder,\n  PickupLocationsQueryResult,\n  QueryPickupLocationRequest,\n  QueryPickupLocationResponse,\n  QueryV2,\n  QueryV2PagingMethodOneOf,\n  RemoveDeliveryRegionOptions,\n  RemoveDeliveryRegionRequest,\n  RemoveDeliveryRegionResponse,\n  RestoreInfo,\n  SortOrder,\n  Sorting,\n  StreetAddress,\n  UpdatePickupLocation,\n  UpdatePickupLocationRequest,\n  UpdatePickupLocationResponse,\n  WebhookIdentityType,\n  utils,\n} from './ecom-v1-pickup-location-pickup-locations.universal.js';\n","import {\n  createPickupLocation as publicCreatePickupLocation,\n  getPickupLocation as publicGetPickupLocation,\n  updatePickupLocation as publicUpdatePickupLocation,\n  deletePickupLocation as publicDeletePickupLocation,\n  queryPickupLocation as publicQueryPickupLocation,\n  typedQueryPickupLocation as publicTypedQueryPickupLocation,\n  addDeliveryRegion as publicAddDeliveryRegion,\n  removeDeliveryRegion as publicRemoveDeliveryRegion,\n  bulkCreatePickupLocation as publicBulkCreatePickupLocation,\n  bulkUpdatePickupLocation as publicBulkUpdatePickupLocation,\n  bulkDeletePickupLocation as publicBulkDeletePickupLocation,\n} from './ecom-v1-pickup-location-pickup-locations.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n  PickupLocationQuery,\n  PickupLocationsQueryBuilder,\n  typedQueryPickupLocation as universalTypedQueryPickupLocation,\n} from './ecom-v1-pickup-location-pickup-locations.universal.js';\n\nfunction customQueryPickupLocation(httpClient: HttpClient) {\n  const router = createQueryOverloadRouter({\n    builderQueryFunction: () => publicQueryPickupLocation(httpClient)(),\n    typedQueryFunction: (query: PickupLocationQuery) =>\n      publicTypedQueryPickupLocation(httpClient)(query),\n    hasOptionsParameter: false,\n  });\n\n  function overloadedQuery(): PickupLocationsQueryBuilder;\n  function overloadedQuery(\n    query: PickupLocationQuery\n  ): ReturnType<typeof universalTypedQueryPickupLocation>;\n  function overloadedQuery(query?: PickupLocationQuery): any {\n    return router(...arguments);\n  }\n\n  return overloadedQuery;\n}\n\nexport const createPickupLocation: MaybeContext<\n  BuildRESTFunction<typeof publicCreatePickupLocation> &\n    typeof publicCreatePickupLocation\n> = /*#__PURE__*/ createRESTModule(publicCreatePickupLocation);\nexport const getPickupLocation: MaybeContext<\n  BuildRESTFunction<typeof publicGetPickupLocation> &\n    typeof publicGetPickupLocation\n> = /*#__PURE__*/ createRESTModule(publicGetPickupLocation);\nexport const updatePickupLocation: MaybeContext<\n  BuildRESTFunction<typeof publicUpdatePickupLocation> &\n    typeof publicUpdatePickupLocation\n> = /*#__PURE__*/ createRESTModule(publicUpdatePickupLocation);\nexport const deletePickupLocation: MaybeContext<\n  BuildRESTFunction<typeof publicDeletePickupLocation> &\n    typeof publicDeletePickupLocation\n> = /*#__PURE__*/ createRESTModule(publicDeletePickupLocation);\nexport const addDeliveryRegion: MaybeContext<\n  BuildRESTFunction<typeof publicAddDeliveryRegion> &\n    typeof publicAddDeliveryRegion\n> = /*#__PURE__*/ createRESTModule(publicAddDeliveryRegion);\nexport const removeDeliveryRegion: MaybeContext<\n  BuildRESTFunction<typeof publicRemoveDeliveryRegion> &\n    typeof publicRemoveDeliveryRegion\n> = /*#__PURE__*/ createRESTModule(publicRemoveDeliveryRegion);\nexport const bulkCreatePickupLocation: MaybeContext<\n  BuildRESTFunction<typeof publicBulkCreatePickupLocation> &\n    typeof publicBulkCreatePickupLocation\n> = /*#__PURE__*/ createRESTModule(publicBulkCreatePickupLocation);\nexport const bulkUpdatePickupLocation: MaybeContext<\n  BuildRESTFunction<typeof publicBulkUpdatePickupLocation> &\n    typeof publicBulkUpdatePickupLocation\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdatePickupLocation);\nexport const bulkDeletePickupLocation: MaybeContext<\n  BuildRESTFunction<typeof publicBulkDeletePickupLocation> &\n    typeof publicBulkDeletePickupLocation\n> = /*#__PURE__*/ createRESTModule(publicBulkDeletePickupLocation);\nexport const queryPickupLocation: MaybeContext<\n  BuildRESTFunction<typeof customQueryPickupLocation> &\n    typeof customQueryPickupLocation\n> = /*#__PURE__*/ createRESTModule(customQueryPickupLocation);\n\nexport {\n  ConditionType,\n  LogicalOperator,\n  SortOrder,\n  WebhookIdentityType,\n} from './ecom-v1-pickup-location-pickup-locations.universal.js';\nexport {\n  PickupLocation,\n  Address,\n  AddressStreetOneOf,\n  StreetAddress,\n  ConditionalRates,\n  Condition,\n  DiffmatokyPayload,\n  ErrorInformation,\n  CreatePickupLocationRequest,\n  CreatePickupLocationResponse,\n  GetPickupLocationRequest,\n  GetPickupLocationResponse,\n  UpdatePickupLocationRequest,\n  UpdatePickupLocationResponse,\n  DeletePickupLocationRequest,\n  DeletePickupLocationResponse,\n  QueryPickupLocationRequest,\n  QueryV2,\n  QueryV2PagingMethodOneOf,\n  Sorting,\n  Paging,\n  CursorPaging,\n  QueryPickupLocationResponse,\n  CursorPagingMetadata,\n  Cursors,\n  AddDeliveryRegionRequest,\n  AddDeliveryRegionResponse,\n  RemoveDeliveryRegionRequest,\n  RemoveDeliveryRegionResponse,\n  BulkCreatePickupLocationRequest,\n  BulkCreatePickupLocationResponse,\n  PickupLocationError,\n  ApplicationError,\n  BulkUpdatePickupLocationRequest,\n  BulkUpdatePickupLocationResponse,\n  BulkDeletePickupLocationRequest,\n  BulkDeletePickupLocationResponse,\n  Empty,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  RestoreInfo,\n  EntityUpdatedEvent,\n  EntityDeletedEvent,\n  ActionEvent,\n  MessageEnvelope,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  AccountInfo,\n  UpdatePickupLocation,\n  PickupLocationsQueryResult,\n  PickupLocationsQueryBuilder,\n  PickupLocationQuerySpec,\n  AddDeliveryRegionOptions,\n  RemoveDeliveryRegionOptions,\n} from './ecom-v1-pickup-location-pickup-locations.universal.js';\nexport { utils } from './ecom-v1-pickup-location-pickup-locations.universal.js';\nexport {\n  ConditionTypeWithLiterals,\n  LogicalOperatorWithLiterals,\n  SortOrderWithLiterals,\n  WebhookIdentityTypeWithLiterals,\n  CreatePickupLocationApplicationErrors,\n  BulkCreatePickupLocationApplicationErrors,\n  CommonQueryWithEntityContext,\n  PickupLocationQuery,\n} from './ecom-v1-pickup-location-pickup-locations.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,mCACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,M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BAAqB;AAAA,EACvB,CAAC;AAMD,WAAS,gBAAgB,OAAkC;AACzD,WAAO,OAAO,GAAG,SAAS;AAAA,EAC5B;AAEA,SAAO;AACT;AAEO,IAAMC,wBAGK,iCAAiBA,qBAA0B;AACtD,IAAMC,qBAGK,iCAAiBA,kBAAuB;AACnD,IAAMC,wBAGK,iCAAiBA,qBAA0B;AACtD,IAAMC,wBAGK,iCAAiBA,qBAA0B;AACtD,IAAMC,qBAGK,iCAAiBA,kBAAuB;AACnD,IAAMC,wBAGK,iCAAiBA,qBAA0B;AACtD,IAAMC,4BAGK,iCAAiBA,yBAA8B;AAC1D,IAAMC,4BAGK,iCAAiBA,yBAA8B;AAC1D,IAAMC,4BAGK,iCAAiBA,yBAA8B;AAC1D,IAAMV,uBAGK,iCAAiB,yBAAyB;","names":["payload","transformPaths","ConditionType","LogicalOperator","SortOrder","WebhookIdentityType","createPickupLocation","getPickupLocation","updatePickupLocation","deletePickupLocation","queryPickupLocation","addDeliveryRegion","removeDeliveryRegion","bulkCreatePickupLocation","bulkUpdatePickupLocation","bulkDeletePickupLocation","createPickupLocation","getPickupLocation","updatePickupLocation","deletePickupLocation","queryPickupLocation","typedQueryPickupLocation","addDeliveryRegion","removeDeliveryRegion","bulkCreatePickupLocation","bulkUpdatePickupLocation","bulkDeletePickupLocation","queryPickupLocation","typedQueryPickupLocation","createPickupLocation","getPickupLocation","updatePickupLocation","deletePickupLocation","addDeliveryRegion","removeDeliveryRegion","bulkCreatePickupLocation","bulkUpdatePickupLocation","bulkDeletePickupLocation"]}