{"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 { HttpClient, HttpResponse } 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';\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   * @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  /** Pickup Location Name */\n  name?: string | null;\n  /** Pickup Location Address */\n  address?: Address;\n  /** Expected delivery time in free text. For example, `\"3-5 business days\"`. */\n  deliveryTime?: string | null;\n  /** Instructions for carrier. For example, `\"Please knock on the door. If unanswered, please call contact number. Thanks.\"`. */\n  instructions?: string | null;\n  /** inactive pickup locations should not be shown in checkout */\n  active?: boolean | null;\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  rates?: ConditionalRates[];\n  /** This pickup location is active for the following delivery regions. */\n  deliveryRegionIds?: string[];\n}\n\n/** Physical address */\nexport interface Address extends AddressStreetOneOf {\n  /** Street name and number. */\n  streetAddress?: StreetAddress;\n  addressLine1?: string | null;\n  /** Country code. */\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  addressLine2?: string | null;\n}\n\n/** @oneof */\nexport interface AddressStreetOneOf {\n  /** Street name and number. */\n  streetAddress?: StreetAddress;\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   * For example: weight > 0 and weight <= 10\n   */\n  conditions?: Condition[];\n  /** The amount of the rate that will be returned if all conditions are met. */\n  amount?: string;\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?: ConditionType;\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   */\n  value?: string;\n  operator?: LogicalOperator;\n}\n\nexport enum ConditionType {\n  UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n  BY_TOTAL_WEIGHT = 'BY_TOTAL_WEIGHT',\n  BY_TOTAL_PRICE = 'BY_TOTAL_PRICE',\n  BY_TOTAL_QUANTITY = 'BY_TOTAL_QUANTITY',\n}\n\nexport enum LogicalOperator {\n  UNKNOWN_LOGICAL_OPERATOR_TYPE = 'UNKNOWN_LOGICAL_OPERATOR_TYPE',\n  EQ = 'EQ',\n  GT = 'GT',\n  GTE = 'GTE',\n  LT = 'LT',\n  LTE = 'LTE',\n}\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  /** Id of the PickupLocation to retrieve */\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  /** Id of the PickupLocation to delete */\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 skip 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 the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n   */\n  filter?: Record<string, any> | null;\n  /**\n   * Sort object.\n   *\n   * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\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 skip 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  /** Name of the field to sort by. */\n  fieldName?: string;\n  /** Sort order. */\n  order?: SortOrder;\n}\n\nexport enum SortOrder {\n  ASC = 'ASC',\n  DESC = 'DESC',\n}\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  /** Maximum number of items to return in the results. */\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   */\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  /** Cursor string pointing to the next page in the list of results. */\n  next?: string | null;\n  /** Cursor pointing to the previous page in the list of results. */\n  prev?: string | null;\n}\n\nexport interface AddDeliveryRegionRequest {\n  /** Id of the PickupLocation to add to the delivery region */\n  pickupLocationId: string;\n  /** Id of the DeliveryRegion to add the PickupLocation to */\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  /** Id of the PickupLocation to add to the delivery region */\n  pickupLocationId: string;\n  /** Id of the DeliveryRegion to add the PickupLocation to */\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  pickupLocations: PickupLocation[];\n}\n\nexport interface BulkCreatePickupLocationResponse {\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  pickupLocations: PickupLocation[];\n}\n\nexport interface BulkUpdatePickupLocationResponse {\n  pickupLocations?: PickupLocation[];\n  errors?: PickupLocationError[];\n}\n\nexport interface BulkDeletePickupLocationRequest {\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  /**\n   * Unique event ID.\n   * Allows clients to ignore duplicate webhooks.\n   */\n  _id?: string;\n  /**\n   * Assumes actions are also always typed to an entity_type\n   * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction\n   */\n  entityFqdn?: string;\n  /**\n   * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)\n   * This is although the created/updated/deleted notion is duplication of the oneof types\n   * 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 defining the order of updates to the underlying entity.\n   * For example, given that some entity was updated at 16:00 and than again at 16:01,\n   * it is guaranteed that the sequence number of the second update is strictly higher than the first.\n   * As the consumer, you can use this value to ensure that you handle messages in the correct order.\n   * To do so, you will need to persist this number on your end, and compare the sequence number from the\n   * message against the one you have stored. Given that the stored number is higher, you should ignore the message.\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  /** App instance ID. */\n  instanceId?: string | null;\n  /** Event type. */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Stringify payload. */\n  data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n  /** ID of a site visitor that has not logged in to the site. */\n  anonymousVisitorId?: string;\n  /** ID of a site visitor that has logged in to the site. */\n  memberId?: string;\n  /** ID of a Wix user (site owner, contributor, etc.). */\n  wixUserId?: string;\n  /** ID of an app. */\n  appId?: string;\n  /** @readonly */\n  identityType?: WebhookIdentityType;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n  /** ID of a site visitor that has not logged in to the site. */\n  anonymousVisitorId?: string;\n  /** ID of a site visitor that has logged in to the site. */\n  memberId?: string;\n  /** ID of a Wix user (site owner, contributor, etc.). */\n  wixUserId?: string;\n  /** ID of an app. */\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\ninterface StreetAddressNonNullableFields {\n  number: string;\n  name: string;\n  apt: string;\n}\n\ninterface AddressNonNullableFields {\n  streetAddress?: StreetAddressNonNullableFields;\n}\n\ninterface ConditionNonNullableFields {\n  type: ConditionType;\n  value: string;\n  operator: LogicalOperator;\n}\n\ninterface ConditionalRatesNonNullableFields {\n  conditions: ConditionNonNullableFields[];\n  amount: string;\n  multiplyByQuantity: boolean;\n}\n\nexport interface PickupLocationNonNullableFields {\n  address?: AddressNonNullableFields;\n  rates: ConditionalRatesNonNullableFields[];\n  deliveryRegionIds: string[];\n}\n\nexport interface CreatePickupLocationResponseNonNullableFields {\n  pickupLocation?: PickupLocationNonNullableFields;\n}\n\nexport interface GetPickupLocationResponseNonNullableFields {\n  pickupLocation?: PickupLocationNonNullableFields;\n}\n\nexport interface UpdatePickupLocationResponseNonNullableFields {\n  pickupLocation?: PickupLocationNonNullableFields;\n}\n\nexport interface QueryPickupLocationResponseNonNullableFields {\n  pickupLocations: PickupLocationNonNullableFields[];\n}\n\nexport interface AddDeliveryRegionResponseNonNullableFields {\n  pickupLocation?: PickupLocationNonNullableFields;\n}\n\nexport interface RemoveDeliveryRegionResponseNonNullableFields {\n  pickupLocation?: PickupLocationNonNullableFields;\n}\n\ninterface ApplicationErrorNonNullableFields {\n  code: string;\n  description: string;\n}\n\ninterface PickupLocationErrorNonNullableFields {\n  _id: string;\n  error?: ApplicationErrorNonNullableFields;\n}\n\nexport interface BulkCreatePickupLocationResponseNonNullableFields {\n  pickupLocations: PickupLocationNonNullableFields[];\n  errors: PickupLocationErrorNonNullableFields[];\n}\n\nexport interface BulkUpdatePickupLocationResponseNonNullableFields {\n  pickupLocations: PickupLocationNonNullableFields[];\n  errors: PickupLocationErrorNonNullableFields[];\n}\n\nexport interface BulkDeletePickupLocationResponseNonNullableFields {\n  errors: PickupLocationErrorNonNullableFields[];\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 * @returns The created PickupLocation\n * @fqn wix.ecom.v1.PickupLocations.CreatePickupLocation\n */\nexport async function createPickupLocation(\n  pickupLocation: PickupLocation\n): Promise<PickupLocation & PickupLocationNonNullableFields> {\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 * @returns The retrieved PickupLocation\n * @fqn wix.ecom.v1.PickupLocations.GetPickupLocation\n */\nexport async function getPickupLocation(\n  pickupLocationId: string\n): Promise<PickupLocation & PickupLocationNonNullableFields> {\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 * @returns The updated PickupLocation\n * @fqn wix.ecom.v1.PickupLocations.UpdatePickupLocation\n */\nexport async function updatePickupLocation(\n  _id: string | null,\n  pickupLocation: UpdatePickupLocation\n): Promise<PickupLocation & PickupLocationNonNullableFields> {\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   * @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  /** Pickup Location Name */\n  name?: string | null;\n  /** Pickup Location Address */\n  address?: Address;\n  /** Expected delivery time in free text. For example, `\"3-5 business days\"`. */\n  deliveryTime?: string | null;\n  /** Instructions for carrier. For example, `\"Please knock on the door. If unanswered, please call contact number. Thanks.\"`. */\n  instructions?: string | null;\n  /** inactive pickup locations should not be shown in checkout */\n  active?: boolean | null;\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  rates?: ConditionalRates[];\n  /** This pickup location is active for the following delivery regions. */\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 * @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 * @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: '_createdDate' | '_updatedDate',\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: '_createdDate' | '_updatedDate',\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: '_createdDate' | '_updatedDate',\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: '_createdDate' | '_updatedDate',\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 * 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 * @fqn wix.ecom.v1.PickupLocations.AddDeliveryRegion\n */\nexport async function addDeliveryRegion(\n  pickupLocationId: string,\n  deliveryRegionId: string,\n  options: AddDeliveryRegionOptions\n): Promise<\n  AddDeliveryRegionResponse & AddDeliveryRegionResponseNonNullableFields\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 * @fqn wix.ecom.v1.PickupLocations.RemoveDeliveryRegion\n */\nexport async function removeDeliveryRegion(\n  pickupLocationId: string,\n  deliveryRegionId: string,\n  options: RemoveDeliveryRegionOptions\n): Promise<\n  RemoveDeliveryRegionResponse & RemoveDeliveryRegionResponseNonNullableFields\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 * @fqn wix.ecom.v1.PickupLocations.BulkCreatePickupLocation\n */\nexport async function bulkCreatePickupLocation(\n  pickupLocations: PickupLocation[]\n): Promise<\n  BulkCreatePickupLocationResponse &\n    BulkCreatePickupLocationResponseNonNullableFields\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 * @fqn wix.ecom.v1.PickupLocations.BulkUpdatePickupLocation\n */\nexport async function bulkUpdatePickupLocation(\n  pickupLocations: PickupLocation[]\n): Promise<\n  BulkUpdatePickupLocationResponse &\n    BulkUpdatePickupLocationResponseNonNullableFields\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 * @fqn wix.ecom.v1.PickupLocations.BulkDeletePickupLocation\n */\nexport async function bulkDeletePickupLocation(\n  pickupLocationIds: string[]\n): Promise<\n  BulkDeletePickupLocationResponse &\n    BulkDeletePickupLocationResponseNonNullableFields\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      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      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      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      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      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      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      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      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      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      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 } from '@wix/sdk-types';\nimport {\n  AddDeliveryRegionOptions,\n  AddDeliveryRegionResponse,\n  AddDeliveryRegionResponseNonNullableFields,\n  BulkCreatePickupLocationResponse,\n  BulkCreatePickupLocationResponseNonNullableFields,\n  BulkDeletePickupLocationResponse,\n  BulkDeletePickupLocationResponseNonNullableFields,\n  BulkUpdatePickupLocationResponse,\n  BulkUpdatePickupLocationResponseNonNullableFields,\n  PickupLocation,\n  PickupLocationNonNullableFields,\n  PickupLocationsQueryBuilder,\n  RemoveDeliveryRegionOptions,\n  RemoveDeliveryRegionResponse,\n  RemoveDeliveryRegionResponseNonNullableFields,\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  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: PickupLocation) =>\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: PickupLocation): Promise<\n    PickupLocation & PickupLocationNonNullableFields\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    PickupLocation & PickupLocationNonNullableFields\n  >;\n}\n\nexport function updatePickupLocation(\n  httpClient: HttpClient\n): UpdatePickupLocationSignature {\n  return (_id: string | null, pickupLocation: UpdatePickupLocation) =>\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  (_id: string | null, pickupLocation: UpdatePickupLocation): Promise<\n    PickupLocation & PickupLocationNonNullableFields\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 addDeliveryRegion(\n  httpClient: HttpClient\n): AddDeliveryRegionSignature {\n  return (\n    pickupLocationId: string,\n    deliveryRegionId: string,\n    options: AddDeliveryRegionOptions\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: AddDeliveryRegionOptions\n  ): Promise<\n    AddDeliveryRegionResponse & AddDeliveryRegionResponseNonNullableFields\n  >;\n}\n\nexport function removeDeliveryRegion(\n  httpClient: HttpClient\n): RemoveDeliveryRegionSignature {\n  return (\n    pickupLocationId: string,\n    deliveryRegionId: string,\n    options: RemoveDeliveryRegionOptions\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: RemoveDeliveryRegionOptions\n  ): Promise<\n    RemoveDeliveryRegionResponse & RemoveDeliveryRegionResponseNonNullableFields\n  >;\n}\n\nexport function bulkCreatePickupLocation(\n  httpClient: HttpClient\n): BulkCreatePickupLocationSignature {\n  return (pickupLocations: PickupLocation[]) =>\n    universalBulkCreatePickupLocation(\n      pickupLocations,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface BulkCreatePickupLocationSignature {\n  /**\n   * Bulk Create for new PickupLocation\n   */\n  (pickupLocations: PickupLocation[]): Promise<\n    BulkCreatePickupLocationResponse &\n      BulkCreatePickupLocationResponseNonNullableFields\n  >;\n}\n\nexport function bulkUpdatePickupLocation(\n  httpClient: HttpClient\n): BulkUpdatePickupLocationSignature {\n  return (pickupLocations: PickupLocation[]) =>\n    universalBulkUpdatePickupLocation(\n      pickupLocations,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface BulkUpdatePickupLocationSignature {\n  /**\n   * Update a PickupLocation\n   */\n  (pickupLocations: PickupLocation[]): Promise<\n    BulkUpdatePickupLocationResponse &\n      BulkUpdatePickupLocationResponseNonNullableFields\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    BulkDeletePickupLocationResponse &\n      BulkDeletePickupLocationResponseNonNullableFields\n  >;\n}\n\nexport {\n  ActionEvent,\n  AddDeliveryRegionOptions,\n  AddDeliveryRegionRequest,\n  AddDeliveryRegionResponse,\n  AddDeliveryRegionResponseNonNullableFields,\n  Address,\n  AddressStreetOneOf,\n  ApplicationError,\n  BulkCreatePickupLocationRequest,\n  BulkCreatePickupLocationResponse,\n  BulkCreatePickupLocationResponseNonNullableFields,\n  BulkDeletePickupLocationRequest,\n  BulkDeletePickupLocationResponse,\n  BulkDeletePickupLocationResponseNonNullableFields,\n  BulkUpdatePickupLocationRequest,\n  BulkUpdatePickupLocationResponse,\n  BulkUpdatePickupLocationResponseNonNullableFields,\n  Condition,\n  ConditionType,\n  ConditionalRates,\n  CreatePickupLocationRequest,\n  CreatePickupLocationResponse,\n  CreatePickupLocationResponseNonNullableFields,\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  GetPickupLocationResponseNonNullableFields,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  LogicalOperator,\n  MessageEnvelope,\n  Paging,\n  PickupLocation,\n  PickupLocationError,\n  PickupLocationNonNullableFields,\n  PickupLocationsQueryBuilder,\n  PickupLocationsQueryResult,\n  QueryPickupLocationRequest,\n  QueryPickupLocationResponse,\n  QueryPickupLocationResponseNonNullableFields,\n  QueryV2,\n  QueryV2PagingMethodOneOf,\n  RemoveDeliveryRegionOptions,\n  RemoveDeliveryRegionRequest,\n  RemoveDeliveryRegionResponse,\n  RemoveDeliveryRegionResponseNonNullableFields,\n  RestoreInfo,\n  SortOrder,\n  Sorting,\n  StreetAddress,\n  UpdatePickupLocation,\n  UpdatePickupLocationRequest,\n  UpdatePickupLocationResponse,\n  UpdatePickupLocationResponseNonNullableFields,\n  WebhookIdentityType,\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  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';\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 queryPickupLocation: MaybeContext<\n  BuildRESTFunction<typeof publicQueryPickupLocation> &\n    typeof publicQueryPickupLocation\n> = /*#__PURE__*/ createRESTModule(publicQueryPickupLocation);\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);\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  PickupLocationNonNullableFields,\n  CreatePickupLocationResponseNonNullableFields,\n  GetPickupLocationResponseNonNullableFields,\n  UpdatePickupLocationResponseNonNullableFields,\n  QueryPickupLocationResponseNonNullableFields,\n  AddDeliveryRegionResponseNonNullableFields,\n  RemoveDeliveryRegionResponseNonNullableFields,\n  BulkCreatePickupLocationResponseNonNullableFields,\n  BulkUpdatePickupLocationResponseNonNullableFields,\n  BulkDeletePickupLocationResponseNonNullableFields,\n  UpdatePickupLocation,\n  PickupLocationsQueryResult,\n  PickupLocationsQueryBuilder,\n  AddDeliveryRegionOptions,\n  RemoveDeliveryRegionOptions,\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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BAGK,iCAAiBA,qBAA0B;AACtD,IAAMC,wBAGK,iCAAiBA,qBAA0B;AACtD,IAAMC,uBAGK,iCAAiBA,oBAAyB;AACrD,IAAMC,qBAGK,iCAAiBA,kBAAuB;AACnD,IAAMC,wBAGK,iCAAiBA,qBAA0B;AACtD,IAAMC,4BAGK,iCAAiBA,yBAA8B;AAC1D,IAAMC,4BAGK,iCAAiBA,yBAA8B;AAC1D,IAAMC,4BAGK,iCAAiBA,yBAA8B;","names":["payload","transformPaths","ConditionType","LogicalOperator","SortOrder","WebhookIdentityType","createPickupLocation","getPickupLocation","updatePickupLocation","deletePickupLocation","queryPickupLocation","addDeliveryRegion","removeDeliveryRegion","bulkCreatePickupLocation","bulkUpdatePickupLocation","bulkDeletePickupLocation","createPickupLocation","getPickupLocation","updatePickupLocation","deletePickupLocation","queryPickupLocation","addDeliveryRegion","removeDeliveryRegion","bulkCreatePickupLocation","bulkUpdatePickupLocation","bulkDeletePickupLocation","createPickupLocation","getPickupLocation","updatePickupLocation","deletePickupLocation","queryPickupLocation","addDeliveryRegion","removeDeliveryRegion","bulkCreatePickupLocation","bulkUpdatePickupLocation","bulkDeletePickupLocation"]}