{"version":3,"sources":["../../src/emails-transmissions-v1-email-transmission-email-transmissions.universal.ts","../../src/emails-transmissions-v1-email-transmission-email-transmissions.http.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n  renameKeysFromSDKRequestToRESTRequest,\n  renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n  HttpClient,\n  HttpResponse,\n  NonNullablePaths,\n  QuerySpec,\n  Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixEmailsTransmissionsV1EmailTransmission from './emails-transmissions-v1-email-transmission-email-transmissions.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\n\n/**\n * An email transmission represents a single email send request,\n * including its recipients, HTML content, sender information, type, and delivery status.\n * Creating an email transmission triggers the email to be sent asynchronously to all specified recipients.\n */\nexport interface EmailTransmission\n  extends EmailTransmissionTypeOptionsOneOf,\n    EmailTransmissionStatusOptionsOneOf {\n  /**\n   * Options for marketing emails.\n   *\n   * Used only when `type` is `MARKETING`.\n   */\n  marketingOptions?: MarketingOptions;\n  /**\n   * Details about why the email transmission was rejected.\n   *\n   * Returned only when `status` is `REJECTED`.\n   * @readonly\n   */\n  rejectedOptions?: RejectedOptions;\n  /**\n   * Email transmission ID.\n   * @format GUID\n   * @readonly\n   */\n  _id?: string;\n  /**\n   * Date and time the email transmission was created.\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Date and time the email transmission was last updated.\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n  /**\n   * Revision number, which increments by 1 each time the email transmission is updated.\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * Subject line of the email.\n   * @maxLength 200\n   */\n  emailSubject?: string;\n  /**\n   * Full HTML content of the email.\n   *\n   * Not returned in `queryEmailTransmissions`. Use `getEmailTransmission` to retrieve the HTML content of a specific transmission.\n   *\n   * Stored for 30 days after the transmission is created. After that, this field returns `\"<expired>\"`.\n   * @maxLength 1000000\n   */\n  emailHtmlContent?: string;\n  /**\n   * Custom key-value pairs attached to the transmission to identify the context in which the email was sent.\n   * These values are passed to the email service provider and included in domain event payloads.\n   * Keys and values support alphanumeric characters only (letters and numbers, no spaces or special characters).\n   *\n   * Default: `{}`\n   * @maxSize 10\n   */\n  metadata?: Record<string, string>;\n  /**\n   * Display name shown as the sender.\n   *\n   * Default: None (no display name is set).\n   * @minLength 1\n   * @maxLength 50\n   */\n  senderName?: string | null;\n  /**\n   * Sender email address. Must be verified using the Sender Emails API before use.\n   *\n   * If the provided address can't be used as a FROM address (for example, addresses from free email providers\n   * such as gmail.com), the email is sent from `no-reply@wixsitemail.com` and the provided address is\n   * automatically used as the reply-to address instead.\n   *\n   * Default: `no-reply@wixsitemail.com`\n   * @format EMAIL\n   */\n  senderEmailAddress?: string | null;\n  /**\n   * Recipient that receives replies to this email. When a recipient replies, the reply is directed to this\n   * address instead of the sender address.\n   *\n   * Default: When `senderEmailAddress` is provided and the email is sent from the Wix shared sender address,\n   * replies are automatically directed to `senderEmailAddress`.\n   */\n  replyTo?: Recipient;\n  /**\n   * List of recipients the email is sent to.\n   * @minSize 1\n   * @maxSize 100\n   */\n  toRecipients?: Recipient[];\n  /** Email type. */\n  type?: TypeWithLiterals;\n  /**\n   * Current status of the email transmission.\n   * @readonly\n   */\n  status?: StatusWithLiterals;\n}\n\n/** @oneof */\nexport interface EmailTransmissionTypeOptionsOneOf {\n  /**\n   * Options for marketing emails.\n   *\n   * Used only when `type` is `MARKETING`.\n   */\n  marketingOptions?: MarketingOptions;\n}\n\n/** @oneof */\nexport interface EmailTransmissionStatusOptionsOneOf {\n  /**\n   * Details about why the email transmission was rejected.\n   *\n   * Returned only when `status` is `REJECTED`.\n   * @readonly\n   */\n  rejectedOptions?: RejectedOptions;\n}\n\n/**\n * A recipient identifies a single addressee for an email transmission.\n * A recipient can be specified by contact ID, user ID, or raw email address.\n */\nexport interface Recipient extends RecipientValueOneOf {\n  /**\n   * ID of the contact to send the email to. The contact's email address is retrieved from the Contacts API.\n   * @format GUID\n   */\n  contactId?: string;\n  /**\n   * ID of the Wix user to send the email to. The user must be a site collaborator.\n   *\n   * The user's email address is retrieved from the Users API.\n   * @format GUID\n   */\n  userId?: string;\n  /**\n   * Email address to send the email to. A contact is created with this address if one doesn't already exist.\n   * @format EMAIL\n   */\n  emailAddress?: string;\n  /**\n   * Display name of the recipient.\n   * @minLength 1\n   * @maxLength 50\n   */\n  name?: string | null;\n  /**\n   * Status of this particular recipient.\n   * @readonly\n   */\n  status?: RecipientStatusWithLiterals;\n  /**\n   * Reason why the email couldn't be delivered to this recipient. `NONE` means the email was successfully sent.\n   *\n   * Returned once the transmission reaches `PROCESSED` status.\n   * @readonly\n   */\n  failureReason?: FailureReasonWithLiterals;\n}\n\n/** @oneof */\nexport interface RecipientValueOneOf {\n  /**\n   * ID of the contact to send the email to. The contact's email address is retrieved from the Contacts API.\n   * @format GUID\n   */\n  contactId?: string;\n  /**\n   * ID of the Wix user to send the email to. The user must be a site collaborator.\n   *\n   * The user's email address is retrieved from the Users API.\n   * @format GUID\n   */\n  userId?: string;\n  /**\n   * Email address to send the email to. A contact is created with this address if one doesn't already exist.\n   * @format EMAIL\n   */\n  emailAddress?: string;\n}\n\nexport enum RecipientStatus {\n  /** Recipient is still waiting to be processed. */\n  PENDING = 'PENDING',\n  /** Email for this recipient was sent (it's not the same as \"delivered\" because it can still bounce). */\n  SENT = 'SENT',\n  /** Recipient was excluded (see \"failureReason\" for more details). */\n  FAILED = 'FAILED',\n}\n\n/** @enumType */\nexport type RecipientStatusWithLiterals =\n  | RecipientStatus\n  | 'PENDING'\n  | 'SENT'\n  | 'FAILED';\n\nexport enum FailureReason {\n  /** Email was successfully sent to this recipient. */\n  NONE = 'NONE',\n  /** Contact or user wasn't found by the provided ID. */\n  RECIPIENT_NOT_FOUND = 'RECIPIENT_NOT_FOUND',\n  /** Contact or user doesn't have an email address. */\n  EMAIL_ADDRESS_MISSING = 'EMAIL_ADDRESS_MISSING',\n  /** Email address doesn't exist or is invalid. */\n  EMAIL_ADDRESS_INVALID = 'EMAIL_ADDRESS_INVALID',\n  /** Email address has previously bounced and can't be sent to. */\n  EMAIL_ADDRESS_BOUNCED = 'EMAIL_ADDRESS_BOUNCED',\n  /** Recipient hasn't given consent to receive marketing emails. */\n  MARKETING_CONSENT_NOT_GIVEN = 'MARKETING_CONSENT_NOT_GIVEN',\n  /** User isn't a collaborator on this site. Only site collaborators can be specified as recipients by user ID. */\n  NOT_SITE_COLLABORATOR = 'NOT_SITE_COLLABORATOR',\n}\n\n/** @enumType */\nexport type FailureReasonWithLiterals =\n  | FailureReason\n  | 'NONE'\n  | 'RECIPIENT_NOT_FOUND'\n  | 'EMAIL_ADDRESS_MISSING'\n  | 'EMAIL_ADDRESS_INVALID'\n  | 'EMAIL_ADDRESS_BOUNCED'\n  | 'MARKETING_CONSENT_NOT_GIVEN'\n  | 'NOT_SITE_COLLABORATOR';\n\nexport enum Type {\n  /** Email triggered by a specific action, such as an order confirmation or booking reminder. No unsubscribe link is added. */\n  TRANSACTIONAL = 'TRANSACTIONAL',\n  /** Email sent to multiple recipients as part of a campaign, such as a newsletter or promotion. An unsubscribe link is automatically added. */\n  MARKETING = 'MARKETING',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'TRANSACTIONAL' | 'MARKETING';\n\n/** Options for marketing email transmissions. */\nexport interface MarketingOptions {\n  /**\n   * Placeholder in `emailHtmlContent` that gets replaced with a recipient-specific unsubscribe URL before the email is sent. Case-sensitive.\n   * For example, `{{unsubscribe_url}}` or `[UNSUBSCRIBE_URL]`. The placeholder must be unique within the HTML content.\n   *\n   * If not set, an unsubscribe link in the site's default language is appended to the bottom of the email.\n   * @minLength 4\n   * @maxLength 100\n   */\n  unsubscribeUrlPlaceholder?: string | null;\n}\n\nexport enum Status {\n  /** Email transmission was accepted and is queued for processing. */\n  ACCEPTED = 'ACCEPTED',\n  /** Email transmission is being processed. The content is being checked, recipients are being resolved, and emails are being sent. */\n  IN_PROGRESS = 'IN_PROGRESS',\n  /** Email transmission has been fully processed. Per-recipient delivery information is available in `toRecipients`. */\n  PROCESSED = 'PROCESSED',\n  /** Email transmission failed an abuse check. No emails were sent. See `rejectedOptions` for details. */\n  REJECTED = 'REJECTED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n  | Status\n  | 'ACCEPTED'\n  | 'IN_PROGRESS'\n  | 'PROCESSED'\n  | 'REJECTED';\n\n/** Details about a rejected email transmission. */\nexport interface RejectedOptions {\n  /**\n   * Reasons why the email transmission was rejected.\n   * The blacklists are managed by Wix and aren't queryable.\n   * If you believe your content was flagged incorrectly, contact Wix support.\n   * @minSize 1\n   * @maxSize 10\n   * @readonly\n   */\n  rejectionReasons?: RejectionReasonWithLiterals[];\n}\n\nexport enum RejectionReason {\n  /** Sender email address is on the Wix blacklist. */\n  BLACKLISTED_SENDER_EMAIL = 'BLACKLISTED_SENDER_EMAIL',\n  /** Sender display name is on the Wix blacklist. */\n  BLACKLISTED_SENDER_NAME = 'BLACKLISTED_SENDER_NAME',\n  /** Reply-to email address is on the Wix blacklist. */\n  BLACKLISTED_REPLY_TO_EMAIL = 'BLACKLISTED_REPLY_TO_EMAIL',\n  /** Reply-to display name is on the Wix blacklist. */\n  BLACKLISTED_REPLY_TO_NAME = 'BLACKLISTED_REPLY_TO_NAME',\n  /** Email content contains a link that is on the Wix blacklist. */\n  BLACKLISTED_LINK = 'BLACKLISTED_LINK',\n  /** Email content contains text that is on the Wix blacklist. */\n  BLACKLISTED_TEXT = 'BLACKLISTED_TEXT',\n  /** Email content was identified as fraudulent, such as phishing or a scam. */\n  FRAUDULENT_CONTENT = 'FRAUDULENT_CONTENT',\n}\n\n/** @enumType */\nexport type RejectionReasonWithLiterals =\n  | RejectionReason\n  | 'BLACKLISTED_SENDER_EMAIL'\n  | 'BLACKLISTED_SENDER_NAME'\n  | 'BLACKLISTED_REPLY_TO_EMAIL'\n  | 'BLACKLISTED_REPLY_TO_NAME'\n  | 'BLACKLISTED_LINK'\n  | 'BLACKLISTED_TEXT'\n  | 'FRAUDULENT_CONTENT';\n\nexport interface GetLiveEmailTransmissionRequest {\n  /**\n   * MetaSite ID that the email transmission belongs to.\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /**\n   * Email transmission ID.\n   * @format GUID\n   */\n  emailTransmissionId?: string;\n}\n\nexport interface GetLiveEmailTransmissionResponse {\n  /** Retrieved email transmission. */\n  emailTransmission?: EmailTransmission;\n}\n\nexport interface GetDeletedEmailTransmissionRequest {\n  /**\n   * MetaSite ID that the deleted email transmission belongs to.\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /**\n   * Email transmission ID.\n   * @format GUID\n   */\n  emailTransmissionId?: string;\n}\n\nexport interface GetDeletedEmailTransmissionResponse {\n  /** Retrieved deleted email transmission. */\n  emailTransmission?: EmailTransmission;\n}\n\nexport interface QueryLiveEmailTransmissionsRequest {\n  /**\n   * MetaSite ID to query email transmissions from.\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /** Query options, including filter, sorting, and pagination. */\n  query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\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 in the following format:\n   * `\"filter\" : {\n   * \"fieldName1\": \"value1\",\n   * \"fieldName2\":{\"$operator\":\"value2\"}\n   * }`\n   * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n   */\n  filter?: Record<string, any> | null;\n  /**\n   * Sort object in the following format:\n   * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n   * @maxSize 4\n   */\n  sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n  cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n  /**\n   * Name of the field to sort by.\n   * @minLength 1\n   * @maxLength 50\n   */\n  fieldName?: string;\n  /** Sort order. */\n  order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n  ASC = 'ASC',\n  DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n  /**\n   * Number of items to load.\n   * @max 100\n   */\n  limit?: number | null;\n  /**\n   * Pointer to the next or previous page in the list of results.\n   *\n   * You can get the relevant cursor token\n   * from the `pagingMetadata` object in the previous call's response.\n   * Not relevant for the first request.\n   * @maxLength 1000\n   */\n  cursor?: string | null;\n}\n\nexport interface QueryLiveEmailTransmissionsResponse {\n  /**\n   * Retrieved email transmissions.\n   * @maxSize 100\n   */\n  emailTransmissions?: EmailTransmission[];\n  /** Paging metadata. */\n  pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n  /** Number of items returned in the response. */\n  count?: number | null;\n  /** Offset that was requested. */\n  cursors?: Cursors;\n  /**\n   * Indicates if there are more results after the current page.\n   * If `true`, another page of results can be retrieved.\n   * If `false`, this is the last page.\n   */\n  hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n  /**\n   * Cursor pointing to next page in the list of results.\n   * @maxLength 1000\n   */\n  next?: string | null;\n  /**\n   * Cursor pointing to previous page in the list of results.\n   * @maxLength 1000\n   */\n  prev?: string | null;\n}\n\nexport interface QueryDeletedEmailTransmissionsRequest {\n  /**\n   * MetaSite ID to query deleted email transmissions from.\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /** Query options, including filter, sorting, and pagination. */\n  query?: CursorQuery;\n}\n\nexport interface QueryDeletedEmailTransmissionsResponse {\n  /**\n   * Retrieved deleted email transmissions.\n   * @maxSize 100\n   */\n  emailTransmissions?: EmailTransmission[];\n  /** Paging metadata. */\n  pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n  _id?: string;\n  /**\n   * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n   * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n   */\n  entityFqdn?: string;\n  /**\n   * Event action name, placed at the top level to make it easier for users to dispatch messages.\n   * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n   * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n   */\n  entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n  entity?: string;\n}\n\nexport interface RestoreInfo {\n  deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n  /**\n   * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n   * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n   * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n   */\n  currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n  /** Entity that was deleted. */\n  deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n  body?: string;\n}\n\nexport interface MessageEnvelope {\n  /**\n   * App instance ID.\n   * @format GUID\n   */\n  instanceId?: string | null;\n  /**\n   * Event type.\n   * @maxLength 150\n   */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Stringify payload. */\n  data?: string;\n  /** Details related to the account */\n  accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n  /** @readonly */\n  identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n}\n\nexport enum WebhookIdentityType {\n  UNKNOWN = 'UNKNOWN',\n  ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n  MEMBER = 'MEMBER',\n  WIX_USER = 'WIX_USER',\n  APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n  | WebhookIdentityType\n  | 'UNKNOWN'\n  | 'ANONYMOUS_VISITOR'\n  | 'MEMBER'\n  | 'WIX_USER'\n  | 'APP';\n\nexport interface AccountInfo {\n  /**\n   * ID of the Wix account associated with the event.\n   * @format GUID\n   */\n  accountId?: string | null;\n  /**\n   * ID of the parent Wix account. Only included when accountId belongs to a child account.\n   * @format GUID\n   */\n  parentAccountId?: string | null;\n  /**\n   * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n   * @format GUID\n   */\n  siteId?: string | null;\n}\n\nexport interface SendEmailTransmissionRequest {\n  /** Email transmission to send. */\n  emailTransmission: EmailTransmission;\n  /**\n   * Unique key used to prevent duplicate transmissions. If a request with the same idempotency key is received,\n   * the original response is returned without creating a new transmission.\n   * @format GUID\n   */\n  idempotencyKey?: string | null;\n}\n\nexport interface SendEmailTransmissionResponse {\n  /** Sent email transmission. */\n  emailTransmission?: EmailTransmission;\n}\n\nexport interface AccountSuspendedErrorDetails {\n  /**\n   * URL of the page where the site owner can contact support or learn more about the account suspension.\n   * @format WEB_URL\n   */\n  termsOfServicePageUrl?: string;\n}\n\nexport interface OutOfQuotaErrorDetails {\n  /**\n   * URL of the page where the site owner can upgrade their Email Marketing plan.\n   * @format WEB_URL\n   */\n  packagePickerUrl?: string;\n}\n\nexport interface GetEmailTransmissionRequest {\n  /**\n   * Email transmission ID.\n   * @format GUID\n   */\n  emailTransmissionId: string;\n}\n\nexport interface GetEmailTransmissionResponse {\n  /** Retrieved email transmission. */\n  emailTransmission?: EmailTransmission;\n}\n\nexport interface QueryEmailTransmissionsRequest {\n  /** Query options, including filter, sorting, and pagination. */\n  query?: CursorQuery;\n}\n\nexport interface QueryEmailTransmissionsResponse {\n  /** Retrieved email transmissions. */\n  emailTransmissions?: EmailTransmission[];\n  /** Paging metadata. */\n  pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface DeleteEmailTransmissionRequest {\n  /**\n   * Email transmission ID.\n   * @format GUID\n   */\n  emailTransmissionId: string;\n}\n\nexport interface DeleteEmailTransmissionResponse {}\n\nexport interface Empty {}\n\n/** @docsIgnore */\nexport type SendEmailTransmissionApplicationErrors =\n  | {\n      code?: 'ACCOUNT_SUSPENDED';\n      description?: string;\n      data?: AccountSuspendedErrorDetails;\n    }\n  | {\n      code?: 'UNVERIFIED_SENDER_EMAIL';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'OUT_OF_QUOTA';\n      description?: string;\n      data?: OutOfQuotaErrorDetails;\n    };\n/** @docsIgnore */\nexport type SendEmailTransmissionValidationErrors = {\n  ruleName?: 'INVALID_METADATA';\n};\n/** @docsIgnore */\nexport type DeleteEmailTransmissionApplicationErrors = {\n  code?: 'EMAIL_TRANSMISSION_IS_IN_PROGRESS';\n  description?: string;\n  data?: Record<string, any>;\n};\n\nexport interface BaseEventMetadata {\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  /** Details related to the account */\n  accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n  _id?: string;\n  /**\n   * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n   * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n   */\n  entityFqdn?: string;\n  /**\n   * Event action name, placed at the top level to make it easier for users to dispatch messages.\n   * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n   * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n   */\n  entityEventSequence?: string | null;\n  accountInfo?: AccountInfoMetadata;\n}\n\nexport interface AccountInfoMetadata {\n  /** ID of the Wix account associated with the event */\n  accountId: string;\n  /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n  siteId?: string;\n  /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n  parentAccountId?: string;\n}\n\nexport interface EmailTransmissionCreatedEnvelope {\n  entity: EmailTransmission;\n  metadata: EventMetadata;\n}\n\n/**\n * Triggered when an email transmission is created.\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Access Verticals by Automations\n * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS\n * @permissionScope Set Up Automations\n * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS\n * @permissionScope Manage Email Marketing\n * @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING\n * @permissionId shoutout.manage\n * @webhook\n * @eventType wix.emails.transmissions.v1.email_transmission_created\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onEmailTransmissionCreated(\n  handler: (event: EmailTransmissionCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface EmailTransmissionDeletedEnvelope {\n  metadata: EventMetadata;\n}\n\n/**\n * Triggered when an email transmission is deleted.\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Access Verticals by Automations\n * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS\n * @permissionScope Set Up Automations\n * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS\n * @permissionScope Manage Email Marketing\n * @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING\n * @permissionId shoutout.manage\n * @webhook\n * @eventType wix.emails.transmissions.v1.email_transmission_deleted\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onEmailTransmissionDeleted(\n  handler: (event: EmailTransmissionDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface EmailTransmissionUpdatedEnvelope {\n  entity: EmailTransmission;\n  metadata: EventMetadata;\n  /** @hidden */\n  modifiedFields: Record<string, any>;\n}\n\n/**\n * Triggered when an email transmission is updated.\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Access Verticals by Automations\n * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS\n * @permissionScope Set Up Automations\n * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS\n * @permissionScope Manage Email Marketing\n * @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING\n * @permissionId shoutout.manage\n * @webhook\n * @eventType wix.emails.transmissions.v1.email_transmission_updated\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onEmailTransmissionUpdated(\n  handler: (event: EmailTransmissionUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Creates and sends an email transmission to one or more recipients.\n *\n * The email is sent asynchronously. The returned transmission has `ACCEPTED` status.\n * Call [Get Email Transmission](https://dev.wix.com/docs/api-reference/business-management/marketing/emails/email-transmission-v1/get-email-transmission) or listen for the `EmailTransmissionCreated` webhook to track delivery status.\n * @param emailTransmission - Email transmission to send.\n * @public\n * @documentationMaturity preview\n * @requiredField emailTransmission\n * @requiredField emailTransmission.emailHtmlContent\n * @requiredField emailTransmission.emailSubject\n * @requiredField emailTransmission.toRecipients\n * @requiredField emailTransmission.type\n * @permissionId shoutout.manage\n * @applicableIdentity APP\n * @fqn wix.emails.transmissions.v1.EmailTransmissionService.SendEmailTransmission\n */\nexport async function sendEmailTransmission(\n  emailTransmission: NonNullablePaths<\n    EmailTransmission,\n    `emailHtmlContent` | `emailSubject` | `toRecipients` | `type`,\n    2\n  >,\n  options?: SendEmailTransmissionOptions\n): Promise<\n  NonNullablePaths<\n    SendEmailTransmissionResponse,\n    | `emailTransmission.rejectedOptions.rejectionReasons`\n    | `emailTransmission._id`\n    | `emailTransmission.emailSubject`\n    | `emailTransmission.emailHtmlContent`\n    | `emailTransmission.replyTo.contactId`\n    | `emailTransmission.replyTo.userId`\n    | `emailTransmission.replyTo.emailAddress`\n    | `emailTransmission.replyTo.status`\n    | `emailTransmission.replyTo.failureReason`\n    | `emailTransmission.toRecipients`\n    | `emailTransmission.type`\n    | `emailTransmission.status`,\n    4\n  > & {\n    __applicationErrorsType?: SendEmailTransmissionApplicationErrors;\n    __validationErrorsType?: SendEmailTransmissionValidationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    emailTransmission: emailTransmission,\n    idempotencyKey: options?.idempotencyKey,\n  });\n\n  const reqOpts =\n    ambassadorWixEmailsTransmissionsV1EmailTransmission.sendEmailTransmission(\n      payload\n    );\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          emailTransmission: '$[0]',\n          idempotencyKey: '$[1].idempotencyKey',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['emailTransmission', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface SendEmailTransmissionOptions {\n  /**\n   * Unique key used to prevent duplicate transmissions. If a request with the same idempotency key is received,\n   * the original response is returned without creating a new transmission.\n   * @format GUID\n   */\n  idempotencyKey?: string | null;\n}\n\n/**\n * Retrieves an email transmission by ID.\n * @param emailTransmissionId - Email transmission ID.\n * @public\n * @documentationMaturity preview\n * @requiredField emailTransmissionId\n * @permissionId shoutout.read\n * @applicableIdentity APP\n * @returns Retrieved email transmission.\n * @fqn wix.emails.transmissions.v1.EmailTransmissionService.GetEmailTransmission\n */\nexport async function getEmailTransmission(\n  emailTransmissionId: string\n): Promise<\n  NonNullablePaths<\n    EmailTransmission,\n    | `rejectedOptions.rejectionReasons`\n    | `_id`\n    | `emailSubject`\n    | `emailHtmlContent`\n    | `replyTo.contactId`\n    | `replyTo.userId`\n    | `replyTo.emailAddress`\n    | `replyTo.status`\n    | `replyTo.failureReason`\n    | `toRecipients`\n    | `type`\n    | `status`,\n    3\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    emailTransmissionId: emailTransmissionId,\n  });\n\n  const reqOpts =\n    ambassadorWixEmailsTransmissionsV1EmailTransmission.getEmailTransmission(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)\n      ?.emailTransmission!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { emailTransmissionId: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['emailTransmissionId']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Retrieves a list of up to 100 email transmissions, given the provided paging, filtering, and sorting.\n *\n * `emailHtmlContent` is not returned in the results. To retrieve the full HTML content of a specific transmission,\n * call [Get Email Transmission](https://dev.wix.com/docs/api-reference/business-management/marketing/emails/email-transmission-v1/get-email-transmission).\n *\n * Query Email Transmissions runs with these defaults, which you can override:\n *\n * - `updatedDate` is sorted in `DESC` order\n * - `paging.limit` is `50`\n *\n * To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language),\n * [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging),\n * and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n * @public\n * @documentationMaturity preview\n * @permissionId shoutout.read\n * @applicableIdentity APP\n * @fqn wix.emails.transmissions.v1.EmailTransmissionService.QueryEmailTransmissions\n */\nexport function queryEmailTransmissions(): EmailTransmissionsQueryBuilder {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  return queryBuilder<\n    EmailTransmission,\n    'CURSOR',\n    QueryEmailTransmissionsRequest,\n    QueryEmailTransmissionsResponse\n  >({\n    func: async (payload: QueryEmailTransmissionsRequest) => {\n      const reqOpts =\n        ambassadorWixEmailsTransmissionsV1EmailTransmission.queryEmailTransmissions(\n          payload\n        );\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: QueryEmailTransmissionsRequest['query']) => {\n      const args = [query, {}] as [QueryEmailTransmissionsRequest['query'], {}];\n      return renameKeysFromSDKRequestToRESTRequest({\n        ...args?.[1],\n        query: args?.[0],\n      });\n    },\n    responseTransformer: ({\n      data,\n    }: HttpResponse<QueryEmailTransmissionsResponse>) => {\n      const transformedData = renameKeysFromRESTResponseToSDKResponse(\n        transformPaths(data, [])\n      );\n\n      return {\n        items: transformedData?.emailTransmissions,\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 EmailTransmissionsQueryResult extends QueryCursorResult {\n  items: EmailTransmission[];\n  query: EmailTransmissionsQueryBuilder;\n  next: () => Promise<EmailTransmissionsQueryResult>;\n  prev: () => Promise<EmailTransmissionsQueryResult>;\n}\n\nexport interface EmailTransmissionsQueryBuilder {\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: '_id' | '_updatedDate' | 'emailSubject' | 'type' | 'status',\n    value: any\n  ) => EmailTransmissionsQueryBuilder;\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: '_id' | '_updatedDate' | 'emailSubject' | 'type' | 'status',\n    value: any\n  ) => EmailTransmissionsQueryBuilder;\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: '_updatedDate' | 'emailSubject',\n    value: any\n  ) => EmailTransmissionsQueryBuilder;\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: '_updatedDate' | 'emailSubject',\n    value: any\n  ) => EmailTransmissionsQueryBuilder;\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: '_updatedDate' | 'emailSubject',\n    value: any\n  ) => EmailTransmissionsQueryBuilder;\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: '_updatedDate' | 'emailSubject',\n    value: any\n  ) => EmailTransmissionsQueryBuilder;\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: 'emailSubject',\n    value: string\n  ) => EmailTransmissionsQueryBuilder;\n  /** @documentationMaturity preview */\n  in: (\n    propertyName: '_id' | '_updatedDate' | 'emailSubject' | 'type' | 'status',\n    value: any\n  ) => EmailTransmissionsQueryBuilder;\n  /** @documentationMaturity preview */\n  exists: (\n    propertyName: '_updatedDate' | 'emailSubject',\n    value: boolean\n  ) => EmailTransmissionsQueryBuilder;\n  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n   * @documentationMaturity preview\n   */\n  ascending: (\n    ...propertyNames: Array<\n      '_id' | '_updatedDate' | 'emailSubject' | 'type' | 'status'\n    >\n  ) => EmailTransmissionsQueryBuilder;\n  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n   * @documentationMaturity preview\n   */\n  descending: (\n    ...propertyNames: Array<\n      '_id' | '_updatedDate' | 'emailSubject' | 'type' | 'status'\n    >\n  ) => EmailTransmissionsQueryBuilder;\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) => EmailTransmissionsQueryBuilder;\n  /** @param cursor - A pointer to specific record\n   * @documentationMaturity preview\n   */\n  skipTo: (cursor: string) => EmailTransmissionsQueryBuilder;\n  /** @documentationMaturity preview */\n  find: () => Promise<EmailTransmissionsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.emails.transmissions.v1.EmailTransmissionService.QueryEmailTransmissions\n * @requiredField query\n */\nexport async function typedQueryEmailTransmissions(\n  query: EmailTransmissionQuery\n): Promise<\n  NonNullablePaths<\n    QueryEmailTransmissionsResponse,\n    | `emailTransmissions`\n    | `emailTransmissions.${number}._id`\n    | `emailTransmissions.${number}.emailSubject`\n    | `emailTransmissions.${number}.emailHtmlContent`\n    | `emailTransmissions.${number}.replyTo.contactId`\n    | `emailTransmissions.${number}.replyTo.userId`\n    | `emailTransmissions.${number}.replyTo.emailAddress`\n    | `emailTransmissions.${number}.replyTo.status`\n    | `emailTransmissions.${number}.replyTo.failureReason`\n    | `emailTransmissions.${number}.type`\n    | `emailTransmissions.${number}.status`,\n    5\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n  const reqOpts =\n    ambassadorWixEmailsTransmissionsV1EmailTransmission.queryEmailTransmissions(\n      payload\n    );\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: { query: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['query']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface EmailTransmissionQuerySpec extends QuerySpec {\n  paging: 'cursor';\n  wql: [\n    {\n      fields: ['_id', 'status', 'type'];\n      operators: ['$eq', '$in', '$ne'];\n      sort: 'BOTH';\n    },\n    {\n      fields: ['_updatedDate', 'emailSubject'];\n      operators: '*';\n      sort: 'BOTH';\n    }\n  ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n  EmailTransmission,\n  EmailTransmissionQuerySpec\n>;\nexport type EmailTransmissionQuery = {\n  /** \n  Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`.  \n  */\n  cursorPaging?: {\n    /** \n  Number of items to load. \n  @max: 100 \n  */\n    limit?:\n      | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n      | null;\n    /** \n  Pointer to the next or previous page in the list of results.\n\n  You can get the relevant cursor token\n  from the `pagingMetadata` object in the previous call's response.\n  Not relevant for the first request. \n  @maxLength: 1000 \n  */\n    cursor?:\n      | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n      | null;\n  };\n  /** \n  Filter object in the following format:\n  `\"filter\" : {\n  \"fieldName1\": \"value1\",\n  \"fieldName2\":{\"$operator\":\"value2\"}\n  }`\n  Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`  \n  */\n  filter?: CommonQueryWithEntityContext['filter'] | null;\n  /** \n  Sort object in the following format:\n  `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]` \n  @maxSize: 4 \n  */\n  sort?: {\n    /** \n  Name of the field to sort by. \n  @minLength: 1,\n  @maxLength: 50 \n  */\n    fieldName?: NonNullable<\n      CommonQueryWithEntityContext['sort']\n    >[number]['fieldName'];\n    /** \n  Sort order.  \n  */\n    order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n  }[];\n};\n\nexport const utils = {\n  query: /*#__PURE__*/ createQueryUtils<\n    EmailTransmission,\n    EmailTransmissionQuerySpec,\n    EmailTransmissionQuery\n  >(),\n};\n\n/**\n * Deletes an email transmission by ID.\n *\n * Deletion is only allowed for transmissions with `PROCESSED` or `REJECTED` status.\n * @param emailTransmissionId - Email transmission ID.\n * @public\n * @documentationMaturity preview\n * @requiredField emailTransmissionId\n * @permissionId shoutout.manage\n * @applicableIdentity APP\n * @fqn wix.emails.transmissions.v1.EmailTransmissionService.DeleteEmailTransmission\n */\nexport async function deleteEmailTransmission(\n  emailTransmissionId: string\n): Promise<\n  void & {\n    __applicationErrorsType?: DeleteEmailTransmissionApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    emailTransmissionId: emailTransmissionId,\n  });\n\n  const reqOpts =\n    ambassadorWixEmailsTransmissionsV1EmailTransmission.deleteEmailTransmission(\n      payload\n    );\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: { emailTransmissionId: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['emailTransmissionId']\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 { 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 resolveWixEmailsTransmissionsV1EmailTransmissionServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'www.wixapis.com': [\n      {\n        srcPath: '/email-transmissions/v1',\n        destPath: '/v1',\n      },\n      {\n        srcPath: '/emails/transmissions/v1/email-transmissions',\n        destPath: '/v1/email-transmissions',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/email-transmissions/v1',\n        destPath: '/v1',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/emails/transmissions/v1/email-transmissions',\n        destPath: '/v1/email-transmissions',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/emails/transmissions/v1/email-transmissions',\n        destPath: '/v1/email-transmissions',\n      },\n    ],\n    'api._api_base_domain_': [\n      {\n        srcPath: '/transmissions',\n        destPath: '',\n      },\n    ],\n    'bo._base_domain_': [\n      {\n        srcPath: '/backoffice/v1/email-transmissions',\n        destPath: '/v1/backoffice/email-transmissions',\n      },\n    ],\n    'wixbo.ai': [\n      {\n        srcPath: '/backoffice/v1/email-transmissions',\n        destPath: '/v1/backoffice/email-transmissions',\n      },\n    ],\n    'wix-bo.com': [\n      {\n        srcPath: '/backoffice/v1/email-transmissions',\n        destPath: '/v1/backoffice/email-transmissions',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_email-transmissions_email-transmissions';\n\n/**\n * Creates and sends an email transmission to one or more recipients.\n *\n * The email is sent asynchronously. The returned transmission has `ACCEPTED` status.\n * Call [Get Email Transmission](https://dev.wix.com/docs/api-reference/business-management/marketing/emails/email-transmission-v1/get-email-transmission) or listen for the `EmailTransmissionCreated` webhook to track delivery status.\n */\nexport function sendEmailTransmission(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __sendEmailTransmission({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'emailTransmission.createdDate' },\n          { path: 'emailTransmission.updatedDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.emails.transmissions.v1.email_transmission',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.emails.transmissions.v1.EmailTransmissionService.SendEmailTransmission',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEmailsTransmissionsV1EmailTransmissionServiceUrl({\n        protoPath: '/v1/email-transmissions/send',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'emailTransmission.createdDate' },\n              { path: 'emailTransmission.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __sendEmailTransmission;\n}\n\n/** Retrieves an email transmission by ID. */\nexport function getEmailTransmission(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getEmailTransmission({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.emails.transmissions.v1.email_transmission',\n      method: 'GET' as any,\n      methodFqn:\n        'wix.emails.transmissions.v1.EmailTransmissionService.GetEmailTransmission',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEmailsTransmissionsV1EmailTransmissionServiceUrl({\n        protoPath: '/v1/email-transmissions/{emailTransmissionId}',\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: 'emailTransmission.createdDate' },\n              { path: 'emailTransmission.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getEmailTransmission;\n}\n\n/**\n * Retrieves a list of up to 100 email transmissions, given the provided paging, filtering, and sorting.\n *\n * `emailHtmlContent` is not returned in the results. To retrieve the full HTML content of a specific transmission,\n * call [Get Email Transmission](https://dev.wix.com/docs/api-reference/business-management/marketing/emails/email-transmission-v1/get-email-transmission).\n *\n * Query Email Transmissions runs with these defaults, which you can override:\n *\n * - `updatedDate` is sorted in `DESC` order\n * - `paging.limit` is `50`\n *\n * To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language),\n * [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging),\n * and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n */\nexport function queryEmailTransmissions(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __queryEmailTransmissions({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.emails.transmissions.v1.email_transmission',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.emails.transmissions.v1.EmailTransmissionService.QueryEmailTransmissions',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEmailsTransmissionsV1EmailTransmissionServiceUrl({\n        protoPath: '/v1/email-transmissions/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: 'emailTransmissions.createdDate' },\n              { path: 'emailTransmissions.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __queryEmailTransmissions;\n}\n\n/**\n * Deletes an email transmission by ID.\n *\n * Deletion is only allowed for transmissions with `PROCESSED` or `REJECTED` status.\n */\nexport function deleteEmailTransmission(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __deleteEmailTransmission({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.emails.transmissions.v1.email_transmission',\n      method: 'DELETE' as any,\n      methodFqn:\n        'wix.emails.transmissions.v1.EmailTransmissionService.DeleteEmailTransmission',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEmailsTransmissionsV1EmailTransmissionServiceUrl({\n        protoPath: '/v1/email-transmissions/{emailTransmissionId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __deleteEmailTransmission;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD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AI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC;AAAA,IACpD;AAAA,EACF,CAAC;AAED,QAAM,UACgD;AAAA,IAClD;AAAA,EACF;AAEF,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,EAAE,qBAAqB,OAAO;AAAA,QACxD,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,qBAAqB;AAAA,IACxB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["payload","transformPaths","RecipientStatus","FailureReason","Type","Status","RejectionReason","SortOrder","WebhookIdentityType","sendEmailTransmission","getEmailTransmission","queryEmailTransmissions","deleteEmailTransmission"]}