{"version":3,"sources":["../../src/contacts-v4-submit-contact-submitted-contact.universal.ts","../../src/contacts-v4-submit-contact-submitted-contact.http.ts","../../src/contacts-v4-submit-contact-submitted-contact.public.ts","../../src/contacts-v4-submit-contact-submitted-contact.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n  renameKeysFromSDKRequestToRESTRequest,\n  renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixContactsV4SubmitContact from './contacts-v4-submit-contact-submitted-contact.http.js';\nimport { transformSDKAddressToRESTAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** Dummy message for fqdn validation */\nexport interface SubmitContact {\n  /**\n   * Submit Contact Id\n   * @format GUID\n   */\n  _id?: string | null;\n}\n\nexport interface SubmitContactRequest {\n  /**\n   * Contact's information.\n   * To reconcile with an existing contact,\n   * a phone or email must be provided,\n   * or the current session identity must be attached to a contact or member.\n   *\n   * If no existing contact can be found,\n   * a new contact is created with the specified information.\n   *\n   * <!--ONLY:REST-->\n   * Required if there's no contextual identity or given `contactId`.\n   * <!--END:ONLY:REST-->\n   */\n  info?: ContactInfo;\n  /**\n   * The activity that triggered this request (optional).\n   * Requires permission `CONTACTS.SUBMIT_WITH_OVERRIDES`\n   * @internal\n   */\n  activity?: ContactActivity;\n  /**\n   * Pass through data, to be posted on Contact Submitted Domain Event (optional).\n   * @maxLength 300\n   */\n  passThroughData?: string | null;\n  /**\n   * Existing Contact ID (optional).\n   * Requires permission `CONTACTS.SUBMIT_WITH_OVERRIDES`\n   * @format GUID\n   */\n  contactId?: string | null;\n  /**\n   * Additional submit options\n   * @internal\n   */\n  options?: SubmitContactOptions;\n}\n\nexport interface ContactInfo {\n  /** Contact's first and last name. */\n  name?: ContactName;\n  /** Contact's email addresses. */\n  emails?: ContactEmailsWrapper;\n  /** Contact's phone numbers. */\n  phones?: ContactPhonesWrapper;\n  /** Contact's street addresses. */\n  addresses?: ContactAddressesWrapper;\n  /**\n   * Contact's company name.\n   * @maxLength 1000\n   */\n  company?: string | null;\n  /**\n   * Contact's job title.\n   * @maxLength 1000\n   */\n  jobTitle?: string | null;\n  /**\n   * Birth date in `YYYY-MM-DD` format. For example, `2020-03-15`.\n   * @format LOCAL_DATE\n   */\n  birthdate?: string | null;\n  /**\n   * Site contributors\n   * who are assigned to manage communication with the contact.\n   * @internal\n   */\n  assignedUserIds?: AssigneesWrapper;\n  /**\n   * Locale in\n   * [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.\n   * Typically, this is a lowercase 2-letter language code,\n   * followed by a hyphen, followed by an uppercase 2-letter country code.\n   * For example, `en-US` for U.S. English, and `de-DE` for Germany German.\n   * @format LANGUAGE_TAG\n   */\n  locale?: string | null;\n  /**\n   * List of contact's labels.\n   *\n   * Labels are used to organize contacts. Labels can be\n   * added and removed using Label Contact and Unlabel Contact, respectively.\n   *\n   * To view or manage contact labels, use the Labels API.\n   */\n  labelKeys?: LabelsWrapper;\n  /**\n   * Additional custom fields.\n   *\n   * Empty fields are not returned.\n   */\n  extendedFields?: ExtendedFieldsWrapper;\n  /**\n   * Contact locations.\n   * @internal\n   */\n  locations?: LocationsWrapper;\n  /** Contact's profile picture. */\n  picture?: ContactPicture;\n}\n\nexport interface ContactName {\n  /**\n   * Contact's first name.\n   * @maxLength 1000\n   */\n  first?: string | null;\n  /**\n   * Contact's last name.\n   * @maxLength 1000\n   */\n  last?: string | null;\n}\n\nexport interface ContactEmailsWrapper {\n  /**\n   * List of up to 50 email addresses.\n   * @maxSize 50\n   */\n  items?: ContactEmail[];\n}\n\nexport interface ContactEmail {\n  /**\n   * Email ID.\n   * @format GUID\n   * @readonly\n   */\n  _id?: string | null;\n  /**\n   * Email type.\n   *\n   * `UNTAGGED` is shown as \"Other\" in the Contact List.\n   */\n  tag?: EmailTagWithLiterals;\n  /**\n   * Email address.\n   * @minLength 1\n   * @maxLength 320\n   */\n  email?: string;\n  /**\n   * Indicates whether this is the contact's primary email address.\n   * When changing `primary` to `true` for an email,\n   * the contact's other emails become `false`.\n   * Changing the primary email of a contact also affects the subscription status to marketing emails that are decided based on the primary email.\n   */\n  primary?: boolean | null;\n}\n\nexport enum EmailTag {\n  UNTAGGED = 'UNTAGGED',\n  MAIN = 'MAIN',\n  HOME = 'HOME',\n  WORK = 'WORK',\n}\n\n/** @enumType */\nexport type EmailTagWithLiterals =\n  | EmailTag\n  | 'UNTAGGED'\n  | 'MAIN'\n  | 'HOME'\n  | 'WORK';\n\nexport interface ContactPhonesWrapper {\n  /**\n   * List of up to 50 phone numbers.\n   * @maxSize 50\n   */\n  items?: ContactPhone[];\n}\n\nexport interface ContactPhone {\n  /**\n   * Phone ID.\n   * @format GUID\n   * @readonly\n   */\n  _id?: string | null;\n  /**\n   * Phone type.\n   *\n   * `UNTAGGED` is shown as \"Other\" in the Contact List.\n   */\n  tag?: PhoneTagWithLiterals;\n  /**\n   * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.\n   * @format COUNTRY\n   */\n  countryCode?: string | null;\n  /**\n   * Phone number.\n   * @minLength 1\n   * @maxLength 50\n   */\n  phone?: string;\n  /**\n   * [ITU E.164-formatted](https://www.itu.int/rec/T-REC-E.164/)\n   * phone number.\n   * Automatically generated using `phone` and `countryCode`, pending both values are valid.\n   * @readonly\n   */\n  e164Phone?: string | null;\n  /**\n   * Formatted phone. Automatically generated using phone and countryCode.\n   * @internal\n   * @readonly\n   */\n  formattedPhone?: string | null;\n  /**\n   * Indicates whether this is the contact's primary phone number.\n   * When changing `primary` to `true` for a phone,\n   * the contact's `primary` field for other phones becomes `false`.\n   * Changing the primary phone number also affects the subscription status to SMS messages that are decided based on the primary phone.\n   */\n  primary?: boolean | null;\n}\n\nexport enum PhoneTag {\n  UNTAGGED = 'UNTAGGED',\n  MAIN = 'MAIN',\n  HOME = 'HOME',\n  MOBILE = 'MOBILE',\n  WORK = 'WORK',\n  FAX = 'FAX',\n}\n\n/** @enumType */\nexport type PhoneTagWithLiterals =\n  | PhoneTag\n  | 'UNTAGGED'\n  | 'MAIN'\n  | 'HOME'\n  | 'MOBILE'\n  | 'WORK'\n  | 'FAX';\n\nexport interface ContactAddressesWrapper {\n  /**\n   * List of up to 50 addresses.\n   * @maxSize 50\n   */\n  items?: ContactAddress[];\n}\n\nexport interface ContactAddress {\n  /**\n   * Street address ID.\n   * @format GUID\n   * @readonly\n   */\n  _id?: string | null;\n  /**\n   * Address type.\n   * `UNTAGGED` is shown as \"Other\" in the Contact List.\n   */\n  tag?: AddressTagWithLiterals;\n  /** Street address. */\n  address?: Address;\n}\n\nexport enum AddressTag {\n  UNTAGGED = 'UNTAGGED',\n  HOME = 'HOME',\n  WORK = 'WORK',\n  BILLING = 'BILLING',\n  SHIPPING = 'SHIPPING',\n}\n\n/** @enumType */\nexport type AddressTagWithLiterals =\n  | AddressTag\n  | 'UNTAGGED'\n  | 'HOME'\n  | 'WORK'\n  | 'BILLING'\n  | 'SHIPPING';\n\n/** Physical address */\nexport interface Address extends AddressStreetOneOf {\n  /** Street address object, with number and name in separate fields. */\n  streetAddress?: StreetAddress;\n  /**\n   * Main address line, usually street and number, as free text.\n   * @maxLength 1000\n   */\n  addressLine1?: string | null;\n  /**\n   * 2-letter country code in an\n   * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.\n   * @format COUNTRY\n   */\n  country?: string | null;\n  /**\n   * Code for a subdivision (such as state, prefecture, or province) in an\n   * [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.\n   * @maxLength 100\n   */\n  subdivision?: string | null;\n  /**\n   * City name.\n   * @maxLength 1000\n   */\n  city?: string | null;\n  /**\n   * Postal or zip code.\n   * @maxLength 100\n   */\n  postalCode?: string | null;\n  /**\n   * Free text providing more detailed address information,\n   * such as apartment, suite, or floor.\n   * @maxLength 1000\n   */\n  addressLine2?: string | null;\n  /**\n   * Human-readable address string.\n   * If not provided, the value is generated from the available address data.\n   * @internal\n   * @maxLength 2000\n   */\n  formatted?: string | null;\n  /**\n   * Instructions to help someone find the address, such as landmarks or where the entrance is.\n   * @internal\n   * @maxLength 200\n   */\n  hint?: string | null;\n  /**\n   * Coordinates of the physical address.\n   * @internal\n   */\n  location?: AddressLocation;\n  /**\n   * Full country name.\n   * @internal\n   * @readonly\n   */\n  countryFullname?: string | null;\n  /**\n   * Hierarchical list of subdivisions, where the first array item is the highest level of hierarchy, and so on.\n   * @internal\n   * @readonly\n   */\n  subdivisions?: Subdivision[];\n}\n\n/** @oneof */\nexport interface AddressStreetOneOf {\n  /** Street address object, with number and name in separate fields. */\n  streetAddress?: StreetAddress;\n  /**\n   * Main address line, usually street and number, as free text.\n   * @maxLength 1000\n   */\n  addressLine?: string | null;\n}\n\nexport interface StreetAddress {\n  /**\n   * Street number.\n   * @maxLength 100\n   */\n  number?: string;\n  /**\n   * Street name.\n   * @maxLength 1000\n   */\n  name?: string;\n  /**\n   * Apartment number.\n   * @internal\n   * @maxLength 100\n   */\n  apt?: string;\n  /**\n   * Optional address line 1\n   * @internal\n   */\n  formattedAddressLine?: string | null;\n}\n\nexport interface AddressLocation {\n  /** Address's latitude. */\n  latitude?: number | null;\n  /** Address's longitude. */\n  longitude?: number | null;\n}\n\nexport interface Subdivision {\n  /** subdivision short code */\n  code?: string;\n  /** Full subdivision name. */\n  name?: string;\n  /** @internal */\n  type?: SubdivisionTypeWithLiterals;\n  /**\n   * Free text that describes the subdivision type.\n   *\n   * Examples: `\"state\"`, `\"province\"`, `\"prefecture\"`.\n   * @internal\n   */\n  typeInfo?: string | null;\n}\n\nexport enum SubdivisionType {\n  UNKNOWN_SUBDIVISION_TYPE = 'UNKNOWN_SUBDIVISION_TYPE',\n  /** State */\n  ADMINISTRATIVE_AREA_LEVEL_1 = 'ADMINISTRATIVE_AREA_LEVEL_1',\n  /** County */\n  ADMINISTRATIVE_AREA_LEVEL_2 = 'ADMINISTRATIVE_AREA_LEVEL_2',\n  /** City/town */\n  ADMINISTRATIVE_AREA_LEVEL_3 = 'ADMINISTRATIVE_AREA_LEVEL_3',\n  /** Neighborhood/quarter */\n  ADMINISTRATIVE_AREA_LEVEL_4 = 'ADMINISTRATIVE_AREA_LEVEL_4',\n  /** Street/block */\n  ADMINISTRATIVE_AREA_LEVEL_5 = 'ADMINISTRATIVE_AREA_LEVEL_5',\n  /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */\n  COUNTRY = 'COUNTRY',\n}\n\n/** @enumType */\nexport type SubdivisionTypeWithLiterals =\n  | SubdivisionType\n  | 'UNKNOWN_SUBDIVISION_TYPE'\n  | 'ADMINISTRATIVE_AREA_LEVEL_1'\n  | 'ADMINISTRATIVE_AREA_LEVEL_2'\n  | 'ADMINISTRATIVE_AREA_LEVEL_3'\n  | 'ADMINISTRATIVE_AREA_LEVEL_4'\n  | 'ADMINISTRATIVE_AREA_LEVEL_5'\n  | 'COUNTRY';\n\nexport interface AssigneesWrapper {\n  /**\n   * List of site contributor user IDs.\n   * @format GUID\n   * @maxSize 50\n   */\n  items?: string[];\n}\n\nexport interface LabelsWrapper {\n  /**\n   * List of contact label keys.\n   *\n   * Contact labels help categorize contacts. Label keys must exist to be added to the contact.\n   * Contact labels can be created or retrieved with Find or Create Label or List Labels.\n   * @maxSize 2000\n   */\n  items?: string[];\n}\n\nexport interface ExtendedFieldsWrapper {\n  /**\n   * Contact's extended fields,\n   * where each key is the field key,\n   * and each value is the field's value for the contact.\n   *\n   * To view and manage extended fields, use the Extended Fields API.\n   */\n  items?: Record<string, any>;\n}\n\nexport interface LocationsWrapper {\n  /**\n   * List of location ids.\n   * @format GUID\n   * @maxSize 50\n   */\n  items?: string[];\n}\n\n/** TEST contact picture description */\nexport interface ContactPicture {\n  /**\n   * Image.\n   * This can contain an image URL or a Wix Media image ID.\n   */\n  image?: string;\n  /**\n   * Indicates whether the image is retrieved from Wix Media\n   * or an external provider.\n   *\n   * - `EXTERNAL`: The image is retrieved from an external provider.\n   * - `WIX_MEDIA`: The image is retrieved from Wix Media.\n   * @internal\n   * @deprecated\n   */\n  imageProvider?: ImageProviderWithLiterals;\n}\n\nexport enum ImageProvider {\n  UNKNOWN = 'UNKNOWN',\n  /** Image stored outside Wix */\n  EXTERNAL = 'EXTERNAL',\n  /** Stored in wix media platform, Must be uploaded by using `GeneratePictureUploadUrl` */\n  WIX_MEDIA = 'WIX_MEDIA',\n}\n\n/** @enumType */\nexport type ImageProviderWithLiterals =\n  | ImageProvider\n  | 'UNKNOWN'\n  | 'EXTERNAL'\n  | 'WIX_MEDIA';\n\nexport interface ContactActivity {\n  /** Date and time of the last action. */\n  activityDate?: Date | null;\n  /** Contact's last action in the site. */\n  activityType?: ContactActivityTypeWithLiterals;\n  /**\n   * Date and time of the activity.\n   * @internal\n   */\n  date?: Date | null;\n  /**\n   * Activity description. Translated.\n   * @internal\n   * @maxLength 1000\n   */\n  description?: string | null;\n  /**\n   * Activity Icon\n   * @internal\n   */\n  icon?: ActivityIcon;\n}\n\nexport enum ContactActivityType {\n  /** Visited the site. */\n  GENERAL = 'GENERAL',\n  /** Became a new contact. */\n  CONTACT_CREATED = 'CONTACT_CREATED',\n  /** Logged in. */\n  MEMBER_LOGIN = 'MEMBER_LOGIN',\n  /** Requested a site membership. */\n  MEMBER_REGISTER = 'MEMBER_REGISTER',\n  /** Was approved, blocked, or unblocked. */\n  MEMBER_STATUS_CHANGED = 'MEMBER_STATUS_CHANGED',\n  /** Submitted a form. */\n  FORM_SUBMITTED = 'FORM_SUBMITTED',\n  /** Started a chat. */\n  INBOX_FORM_SUBMITTED = 'INBOX_FORM_SUBMITTED',\n  /** Paid a payment request. */\n  INBOX_PAYMENT_REQUEST_PAID = 'INBOX_PAYMENT_REQUEST_PAID',\n  /** Received a message from the site. */\n  INBOX_MESSAGE_TO_CUSTOMER = 'INBOX_MESSAGE_TO_CUSTOMER',\n  /** Sent a new message to the site. */\n  INBOX_MESSAGE_FROM_CUSTOMER = 'INBOX_MESSAGE_FROM_CUSTOMER',\n  /** Subscribed to a site newsletter through a form. */\n  NEWSLETTER_SUBSCRIPTION_FORM_SUBMITTED = 'NEWSLETTER_SUBSCRIPTION_FORM_SUBMITTED',\n  /** Unsubscribed from a site newsletter. */\n  NEWSLETTER_SUBSCRIPTION_UNSUBSCRIBE = 'NEWSLETTER_SUBSCRIPTION_UNSUBSCRIBE',\n  /** Made a purchase. */\n  ECOM_PURCHASE = 'ECOM_PURCHASE',\n  /** Abandoned a shopping cart. */\n  ECOM_CART_ABANDON = 'ECOM_CART_ABANDON',\n  /** Checked out shopping cart and submitted buyer info (but didn’t complete the purchase yet). */\n  ECOM_CHECKOUT_BUYER = 'ECOM_CHECKOUT_BUYER',\n  /** Booked an appointment. */\n  BOOKINGS_APPOINTMENT = 'BOOKINGS_APPOINTMENT',\n  /** Made a Wix Hotels reservation. */\n  HOTELS_RESERVATION = 'HOTELS_RESERVATION',\n  /** Paid for a Wix Hotels reservation. */\n  HOTELS_PURCHASE = 'HOTELS_PURCHASE',\n  /** Confirmed a Wix Hotels reservation. */\n  HOTELS_CONFIRMATION = 'HOTELS_CONFIRMATION',\n  /** Canceled a Wix Hotels reservation. */\n  HOTELS_CANCEL = 'HOTELS_CANCEL',\n  /** Purchased a video. */\n  VIDEO_PURCHASE = 'VIDEO_PURCHASE',\n  /** Rented a video. */\n  VIDEO_RENT = 'VIDEO_RENT',\n  /** Made a purchase with a pay button. */\n  CASHIER_BUTTON_PURCHASE = 'CASHIER_BUTTON_PURCHASE',\n  /** Became a new Wix Marketplace lead. */\n  ARENA_NEW_LEAD = 'ARENA_NEW_LEAD',\n  /** RSVP'd to an event. */\n  EVENTS_RSVP = 'EVENTS_RSVP',\n  /** Paid an invoice. */\n  INVOICE_PAY = 'INVOICE_PAY',\n  /** An invoice is now overdue. */\n  INVOICE_OVERDUE = 'INVOICE_OVERDUE',\n  /** Accepted a price quote. */\n  PRICE_QUOTE_ACCEPT = 'PRICE_QUOTE_ACCEPT',\n  /** A price quote has expired. */\n  PRICE_QUOTE_EXPIRE = 'PRICE_QUOTE_EXPIRE',\n  /** Ordered food with Wix Restaurants. */\n  RESTAURANTS_ORDER = 'RESTAURANTS_ORDER',\n  /** Made a Wix Restaurants reservation. */\n  RESTAURANTS_RESERVATION = 'RESTAURANTS_RESERVATION',\n  /** Opened an email from the site. */\n  SHOUTOUT_OPEN = 'SHOUTOUT_OPEN',\n  /** Clicked a link in an email from the site. */\n  SHOUTOUT_CLICK = 'SHOUTOUT_CLICK',\n  /** Merged with another contact. */\n  CONTACT_MERGED = 'CONTACT_MERGED',\n  /** Subscribed to a site newsletter. */\n  NEWSLETTER_SUBSCRIPTION_SUBSCRIBE = 'NEWSLETTER_SUBSCRIPTION_SUBSCRIBE',\n  /** Subscription status to site newsletters is pending confirmation. */\n  NEWSLETTER_SUBSCRIPTION_PENDING = 'NEWSLETTER_SUBSCRIPTION_PENDING',\n  /** Subscription status to site newsletters is not set. */\n  NEWSLETTER_SUBSCRIPTION_NOT_SET = 'NEWSLETTER_SUBSCRIPTION_NOT_SET',\n  /** Subscribed to phone notifications. */\n  PHONE_SUBSCRIPTION_SUBSCRIBE = 'PHONE_SUBSCRIPTION_SUBSCRIBE',\n  /** Subscription to phone notificatons is pending confirmation. */\n  PHONE_SUBSCRIPTION_PENDING = 'PHONE_SUBSCRIPTION_PENDING',\n  /** Subscription to phone notificatons is not set. */\n  PHONE_SUBSCRIPTION_NOT_SET = 'PHONE_SUBSCRIPTION_NOT_SET',\n  /** Subscribed to phone notifications. */\n  PHONE_SUBSCRIPTION_UNSUBSCRIBE = 'PHONE_SUBSCRIPTION_UNSUBSCRIBE',\n}\n\n/** @enumType */\nexport type ContactActivityTypeWithLiterals =\n  | ContactActivityType\n  | 'GENERAL'\n  | 'CONTACT_CREATED'\n  | 'MEMBER_LOGIN'\n  | 'MEMBER_REGISTER'\n  | 'MEMBER_STATUS_CHANGED'\n  | 'FORM_SUBMITTED'\n  | 'INBOX_FORM_SUBMITTED'\n  | 'INBOX_PAYMENT_REQUEST_PAID'\n  | 'INBOX_MESSAGE_TO_CUSTOMER'\n  | 'INBOX_MESSAGE_FROM_CUSTOMER'\n  | 'NEWSLETTER_SUBSCRIPTION_FORM_SUBMITTED'\n  | 'NEWSLETTER_SUBSCRIPTION_UNSUBSCRIBE'\n  | 'ECOM_PURCHASE'\n  | 'ECOM_CART_ABANDON'\n  | 'ECOM_CHECKOUT_BUYER'\n  | 'BOOKINGS_APPOINTMENT'\n  | 'HOTELS_RESERVATION'\n  | 'HOTELS_PURCHASE'\n  | 'HOTELS_CONFIRMATION'\n  | 'HOTELS_CANCEL'\n  | 'VIDEO_PURCHASE'\n  | 'VIDEO_RENT'\n  | 'CASHIER_BUTTON_PURCHASE'\n  | 'ARENA_NEW_LEAD'\n  | 'EVENTS_RSVP'\n  | 'INVOICE_PAY'\n  | 'INVOICE_OVERDUE'\n  | 'PRICE_QUOTE_ACCEPT'\n  | 'PRICE_QUOTE_EXPIRE'\n  | 'RESTAURANTS_ORDER'\n  | 'RESTAURANTS_RESERVATION'\n  | 'SHOUTOUT_OPEN'\n  | 'SHOUTOUT_CLICK'\n  | 'CONTACT_MERGED'\n  | 'NEWSLETTER_SUBSCRIPTION_SUBSCRIBE'\n  | 'NEWSLETTER_SUBSCRIPTION_PENDING'\n  | 'NEWSLETTER_SUBSCRIPTION_NOT_SET'\n  | 'PHONE_SUBSCRIPTION_SUBSCRIBE'\n  | 'PHONE_SUBSCRIPTION_PENDING'\n  | 'PHONE_SUBSCRIPTION_NOT_SET'\n  | 'PHONE_SUBSCRIPTION_UNSUBSCRIBE';\n\nexport interface ActivityIcon {\n  /**\n   * Icon name\n   * @maxLength 50\n   */\n  name?: string | null;\n  /**\n   * Icon url\n   * @format WEB_URL\n   */\n  url?: string | null;\n}\n\nexport interface SubmitContactOptions {\n  /**\n   * Overrides `visitorId`\n   * Requires permission `CONTACTS.SUBMIT_WITH_OVERRIDES`\n   * @format GUID\n   */\n  overrideVisitorId?: string | null;\n  /**\n   * Overrides `memberId`\n   * Requires permission `CONTACTS.SUBMIT_WITH_OVERRIDES`\n   * @format GUID\n   */\n  overrideMemberId?: string | null;\n  /**\n   * Overrides `app_id`\n   * Requires permission `CONTACTS.SUBMIT_WITH_OVERRIDES`\n   */\n  overrideAppId?: string | null;\n  /**\n   * Indicates primary email is verified (first email on contact.emails)\n   * Requires permission `CONTACTS.SUBMIT_WITH_OVERRIDES`\n   */\n  emailVerified?: boolean | null;\n  /**\n   * Indicates primary phone is verified (first phone on contact.phones)\n   * Requires permission `CONTACTS.SUBMIT_WITH_OVERRIDES`\n   */\n  phoneVerified?: boolean | null;\n  /**\n   * Indicates if the process of creating/updating the contact should happen asynchronously.\n   * In which case, the contact referenced by the returned `contactId` will only be available after a [Contact Submitted Domain Event](https://bo.wix.com/wix-docs/rest/crm/contacts/contacts-v4/contact-submitted-domain-event)\n   * will be sent.\n   * @internal\n   */\n  async?: boolean | null;\n  /**\n   * TODO: Not implemented yet\n   * 1. Use contact type \"app:ImplicitContact\"\n   * 2. Make sure GDPR handles it.\n   * Requires permission `CONTACTS.SUBMIT_WITH_OVERRIDES`\n   * @internal\n   */\n  hideFromContactList?: boolean | null;\n}\n\nexport interface SubmitContactResponse {\n  /**\n   * ID of the contact that was found or created.\n   * @format GUID\n   */\n  contactId?: string;\n  /**\n   * Identity type of the returned contact.\n   *\n   * - `CONTACT`: The returned contact ID belongs to a new or existing contact.\n   * - `MEMBER`: The returned contact ID belongs to the currently logged-in site member.\n   * - `NOT_AUTHENTICATED_MEMBER`: The returned contact ID belongs to a site member who is not currently logged in.\n   */\n  identityType?: IdentityTypeWithLiterals;\n  /**\n   * Indicates whether the contact was just created or already existed.\n   *\n   * If the contact was just created, returns `true`.\n   * If it already existed, returns `false`.\n   */\n  newContact?: boolean;\n}\n\nexport enum IdentityType {\n  UNKNOWN = 'UNKNOWN',\n  /** Existing or new contact */\n  CONTACT = 'CONTACT',\n  /** Member is logged in, matching logic skipped */\n  MEMBER = 'MEMBER',\n  /** Matching contact is a member, Merge logic won't be applied */\n  NOT_AUTHENTICATED_MEMBER = 'NOT_AUTHENTICATED_MEMBER',\n}\n\n/** @enumType */\nexport type IdentityTypeWithLiterals =\n  | IdentityType\n  | 'UNKNOWN'\n  | 'CONTACT'\n  | 'MEMBER'\n  | 'NOT_AUTHENTICATED_MEMBER';\n\nexport interface ContactToSubmit {\n  /**\n   * reserved  6;\n   * reserved  \"raw_source\";\n   */\n  contactInfo?: ContactInfo;\n  /** Last activity */\n  activity?: ContactActivity;\n  /** Pass through data */\n  passThroughData?: string | null;\n  /**\n   * Contact Id\n   * @format GUID\n   */\n  contactId?: string;\n  /** Create/Update */\n  submitOperation?: SubmitOperationWithLiterals;\n  /**\n   * Raw source\n   * @deprecated\n   */\n  rawSource?: string | null;\n  /** Need to resolve source in allocator, because of server sign */\n  sourceType?: ContactSourceTypeWithLiterals;\n  /** Source Id */\n  sourceId?: string | null;\n  /** Hide from contact list (implicit contact) */\n  hideFromContactList?: boolean;\n}\n\nexport enum SubmitOperation {\n  UNKNOWN = 'UNKNOWN',\n  CREATE = 'CREATE',\n  UPDATE = 'UPDATE',\n}\n\n/** @enumType */\nexport type SubmitOperationWithLiterals =\n  | SubmitOperation\n  | 'UNKNOWN'\n  | 'CREATE'\n  | 'UPDATE';\n\nexport enum ContactSourceType {\n  OTHER = 'OTHER',\n  ADMIN = 'ADMIN',\n  WIX_APP = 'WIX_APP',\n  IMPORT = 'IMPORT',\n  THIRD_PARTY = 'THIRD_PARTY',\n  WIX_BOOKINGS = 'WIX_BOOKINGS',\n  WIX_CHAT = 'WIX_CHAT',\n  WIX_EMAIL_MARKETING = 'WIX_EMAIL_MARKETING',\n  WIX_EVENTS = 'WIX_EVENTS',\n  WIX_FORMS = 'WIX_FORMS',\n  WIX_GROUPS = 'WIX_GROUPS',\n  WIX_HOTELS = 'WIX_HOTELS',\n  WIX_MARKET_PLACE = 'WIX_MARKET_PLACE',\n  WIX_MUSIC = 'WIX_MUSIC',\n  WIX_RESTAURANTS = 'WIX_RESTAURANTS',\n  WIX_SITE_MEMBERS = 'WIX_SITE_MEMBERS',\n  WIX_STORES = 'WIX_STORES',\n  WIX_CODE = 'WIX_CODE',\n  HOPP = 'HOPP',\n}\n\n/** @enumType */\nexport type ContactSourceTypeWithLiterals =\n  | ContactSourceType\n  | 'OTHER'\n  | 'ADMIN'\n  | 'WIX_APP'\n  | 'IMPORT'\n  | 'THIRD_PARTY'\n  | 'WIX_BOOKINGS'\n  | 'WIX_CHAT'\n  | 'WIX_EMAIL_MARKETING'\n  | 'WIX_EVENTS'\n  | 'WIX_FORMS'\n  | 'WIX_GROUPS'\n  | 'WIX_HOTELS'\n  | 'WIX_MARKET_PLACE'\n  | 'WIX_MUSIC'\n  | 'WIX_RESTAURANTS'\n  | 'WIX_SITE_MEMBERS'\n  | 'WIX_STORES'\n  | 'WIX_CODE'\n  | 'HOPP';\n\nexport interface SubmitVisitorIdRequest {\n  /**\n   * Existing Contact ID\n   * @format GUID\n   */\n  contactId?: string;\n  /**\n   * The visitor ID to be attached to the given `contactId`\n   * @format GUID\n   */\n  visitorId?: string;\n}\n\nexport interface SubmitVisitorIdResponse {\n  /**\n   * The mapped Contact ID\n   * @format GUID\n   */\n  contactId?: string;\n  /**\n   * The mapped visitor ID\n   * @format GUID\n   */\n  visitorId?: string;\n  /** Date in the `visitorId` was attached to the given `contactId` */\n  validFrom?: Date | null;\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 AppendOrCreateContactApplicationErrors =\n  | {\n      code?: 'INSUFFICIENT_CONTACT_DATA';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'INSUFFICIENT_PERMISSION';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'CONTACT_NOT_FOUND';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'CANNOT_HAVE_MULTIPLE_PRIMARY_INFO';\n      description?: string;\n      data?: Record<string, any>;\n    };\n\n/**\n * Appends an existing contact or creates a contact if it doesn't exist.\n *\n * For internal docs, see\n * [Submit Contacts](crm.contact-submit-service.introduction).\n * @public\n * @documentationMaturity preview\n * @permissionId CONTACTS.SUBMIT\n * @applicableIdentity APP\n * @fqn com.wixpress.contacts.allocator.api.v4.ContactSubmitServiceV4.SubmitContact\n */\nexport async function appendOrCreateContact(\n  options?: AppendOrCreateContactOptions\n): Promise<\n  NonNullablePaths<\n    SubmitContactResponse,\n    `contactId` | `identityType` | `newContact`,\n    2\n  > & {\n    __applicationErrorsType?: AppendOrCreateContactApplicationErrors;\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({\n      info: options?.info,\n      passThroughData: options?.passThroughData,\n      contactId: options?.contactId,\n    }),\n    [\n      {\n        transformFn: transformSDKAddressToRESTAddress,\n        paths: [{ path: 'info.addresses.items.address' }],\n      },\n      {\n        transformFn: transformSDKImageToRESTImage,\n        paths: [{ path: 'info.picture.image' }],\n      },\n    ]\n  );\n\n  const reqOpts = ambassadorWixContactsV4SubmitContact.submitContact(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: {\n          info: '$[0].info',\n          passThroughData: '$[0].passThroughData',\n          contactId: '$[0].contactId',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface AppendOrCreateContactOptions {\n  /**\n   * Contact's information.\n   * To reconcile with an existing contact,\n   * a phone or email must be provided,\n   * or the current session identity must be attached to a contact or member.\n   *\n   * If no existing contact can be found,\n   * a new contact is created with the specified information.\n   *\n   * <!--ONLY:REST-->\n   * Required if there's no contextual identity or given `contactId`.\n   * <!--END:ONLY:REST-->\n   */\n  info?: ContactInfo;\n  /**\n   * Pass through data, to be posted on Contact Submitted Domain Event (optional).\n   * @maxLength 300\n   */\n  passThroughData?: string | null;\n  /**\n   * Existing Contact ID (optional).\n   * Requires permission `CONTACTS.SUBMIT_WITH_OVERRIDES`\n   * @format GUID\n   */\n  contactId?: string | null;\n}\n","import { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\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 resolveComWixpressContactsAllocatorApiV4ContactSubmitServiceV4Url(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'www.wixapis.com': [\n      {\n        srcPath: '/contacts/v4/contact-submit',\n        destPath: '/v4/contact-submit',\n      },\n    ],\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/contacts/v4/contact-submit',\n        destPath: '/v4/contact-submit',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/contacts/v4/contact-submit',\n        destPath: '/v4/contact-submit',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_api/contacts/v4/contact-submit',\n        destPath: '/v4/contact-submit',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/contacts/v4/contact-submit',\n        destPath: '/v4/contact-submit',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_crm_submitted-contact';\n\n/**\n * Appends an existing contact or creates a contact if it doesn't exist.\n *\n * For internal docs, see\n * [Submit Contacts](crm.contact-submit-service.introduction).\n */\nexport function submitContact(payload: object): RequestOptionsFactory<any> {\n  function __submitContact({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'info.addresses.items.address.geocode.latitude' },\n          { path: 'info.addresses.items.address.geocode.longitude' },\n        ],\n      },\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'info.picture.image.urlExpirationDate' },\n          { path: 'activity.activityDate' },\n          { path: 'activity.date' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.contacts.v4.submit_contact',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.contacts.allocator.api.v4.ContactSubmitServiceV4.SubmitContact',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressContactsAllocatorApiV4ContactSubmitServiceV4Url({\n        protoPath: '/v4/contact-submit',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n    };\n\n    return metadata;\n  }\n\n  return __submitContact;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  AppendOrCreateContactApplicationErrors,\n  AppendOrCreateContactOptions,\n  SubmitContactResponse,\n  appendOrCreateContact as universalAppendOrCreateContact,\n} from './contacts-v4-submit-contact-submitted-contact.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/crm' };\n\nexport function appendOrCreateContact(\n  httpClient: HttpClient\n): AppendOrCreateContactSignature {\n  return (options?: AppendOrCreateContactOptions) =>\n    universalAppendOrCreateContact(\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface AppendOrCreateContactSignature {\n  /**\n   * Appends an existing contact or creates a contact if it doesn't exist.\n   *\n   * For internal docs, see\n   * [Submit Contacts](crm.contact-submit-service.introduction).\n   */\n  (options?: AppendOrCreateContactOptions): Promise<\n    NonNullablePaths<\n      SubmitContactResponse,\n      `contactId` | `identityType` | `newContact`,\n      2\n    > & {\n      __applicationErrorsType?: AppendOrCreateContactApplicationErrors;\n    }\n  >;\n}\n\nexport {\n  AccountInfo,\n  ActivityIcon,\n  Address,\n  AddressLocation,\n  AddressStreetOneOf,\n  AddressTag,\n  AppendOrCreateContactOptions,\n  AssigneesWrapper,\n  ContactActivity,\n  ContactActivityType,\n  ContactAddress,\n  ContactAddressesWrapper,\n  ContactEmail,\n  ContactEmailsWrapper,\n  ContactInfo,\n  ContactName,\n  ContactPhone,\n  ContactPhonesWrapper,\n  ContactPicture,\n  ContactSourceType,\n  ContactToSubmit,\n  EmailTag,\n  ExtendedFieldsWrapper,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  IdentityType,\n  ImageProvider,\n  LabelsWrapper,\n  LocationsWrapper,\n  MessageEnvelope,\n  PhoneTag,\n  StreetAddress,\n  Subdivision,\n  SubdivisionType,\n  SubmitContact,\n  SubmitContactOptions,\n  SubmitContactRequest,\n  SubmitContactResponse,\n  SubmitOperation,\n  SubmitVisitorIdRequest,\n  SubmitVisitorIdResponse,\n  WebhookIdentityType,\n} from './contacts-v4-submit-contact-submitted-contact.universal.js';\n","import { appendOrCreateContact as publicAppendOrCreateContact } from './contacts-v4-submit-contact-submitted-contact.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const appendOrCreateContact: MaybeContext<\n  BuildRESTFunction<typeof publicAppendOrCreateContact> &\n    typeof publicAppendOrCreateContact\n> = /*#__PURE__*/ createRESTModule(publicAppendOrCreateContact);\n\nexport {\n  EmailTag,\n  PhoneTag,\n  AddressTag,\n  SubdivisionType,\n  ImageProvider,\n  ContactActivityType,\n  IdentityType,\n  SubmitOperation,\n  ContactSourceType,\n  WebhookIdentityType,\n} from './contacts-v4-submit-contact-submitted-contact.universal.js';\nexport {\n  SubmitContact,\n  SubmitContactRequest,\n  ContactInfo,\n  ContactName,\n  ContactEmailsWrapper,\n  ContactEmail,\n  ContactPhonesWrapper,\n  ContactPhone,\n  ContactAddressesWrapper,\n  ContactAddress,\n  Address,\n  AddressStreetOneOf,\n  StreetAddress,\n  AddressLocation,\n  Subdivision,\n  AssigneesWrapper,\n  LabelsWrapper,\n  ExtendedFieldsWrapper,\n  LocationsWrapper,\n  ContactPicture,\n  ContactActivity,\n  ActivityIcon,\n  SubmitContactOptions,\n  SubmitContactResponse,\n  ContactToSubmit,\n  SubmitVisitorIdRequest,\n  SubmitVisitorIdResponse,\n  MessageEnvelope,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  AccountInfo,\n  AppendOrCreateContactOptions,\n} from './contacts-v4-submit-contact-submitted-contact.universal.js';\nexport {\n  EmailTagWithLiterals,\n  PhoneTagWithLiterals,\n  AddressTagWithLiterals,\n  SubdivisionTypeWithLiterals,\n  ImageProviderWithLiterals,\n  ContactActivityTypeWithLiterals,\n  IdentityTypeWithLiterals,\n  SubmitOperationWithLiterals,\n  ContactSourceTypeWithLiterals,\n  WebhookIdentityTypeWithLiterals,\n  AppendOrCreateContactApplicationErrors,\n} from './contacts-v4-submit-contact-submitted-contact.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,kEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,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c,OAAO;AAE1E,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO,wCAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,MAAM;AAAA,UACN,iBAAiB;AAAA,UACjB,WAAW;AAAA,QACb;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS;AAAA,IACZ;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AE5jCO,SAASW,uBACd,YACgC;AAChC,SAAO,CAAC,YACN;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AClBA,SAAS,wBAAwB;AAG1B,IAAMC,yBAGK,iCAAiBA,sBAA2B;","names":["transformPaths","EmailTag","PhoneTag","AddressTag","SubdivisionType","ImageProvider","ContactActivityType","IdentityType","SubmitOperation","ContactSourceType","WebhookIdentityType","appendOrCreateContact","appendOrCreateContact"]}