/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@wix/auto_sdk_email-marketing_account-details@1.0.40/build/cjs/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(t,e)=>{for(var r in e)__defProp(t,r,{get:e[r],enumerable:!0})},__copyProps=(t,e,r,o)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let a of __getOwnPropNames(e))__hasOwnProp.call(t,a)||a===r||__defProp(t,a,{get:()=>e[a],enumerable:!(o=__getOwnPropDesc(e,a))||o.enumerable});return t},__toCommonJS=t=>__copyProps(__defProp({},"__esModule",{value:!0}),t),index_exports={};__export(index_exports,{Action:()=>Action,BillingCycle:()=>BillingCycle,Content:()=>Content,Enum:()=>Enum,Product:()=>Product,Rank:()=>Rank,SenderReputation:()=>SenderReputation,Statistics:()=>Statistics,getAccountDetails:()=>getAccountDetails3}),module.exports=__toCommonJS(index_exports);var import_transform_error=require("@wix/sdk-runtime/transform-error"),import_rename_all_nested_keys=require("@wix/sdk-runtime/rename-all-nested-keys"),import_rest_modules=require("@wix/sdk-runtime/rest-modules"),import_timestamp=require("@wix/sdk-runtime/transformations/timestamp"),import_transform_paths=require("@wix/sdk-runtime/transformations/transform-paths"),import_rest_modules2=require("@wix/sdk-runtime/rest-modules");function resolveWixEmailmarketingApiV1AccountDetailsServiceUrl(t){return(0,import_rest_modules2.resolveUrl)(Object.assign(t,{domainToMappings:{"manage._base_domain_":[{srcPath:"/_api/shoutout/v1/account-details",destPath:"/v1/account-details"}],"www.wixapis.com":[{srcPath:"/email-marketing/v1/account-details",destPath:"/v1/account-details"}],"*.dev.wix-code.com":[{srcPath:"/email-marketing/v1/account-details",destPath:"/v1/account-details"}],_:[{srcPath:"/email-marketing/v1/account-details",destPath:"/v1/account-details"}],"payments.base44.com":[{srcPath:"/_api/shoutout/v1/account-details",destPath:"/v1/account-details"}]}}))}var PACKAGE_NAME="@wix/auto_sdk_email-marketing_account-details";function get(t){return function({host:e}){return{entityFqdn:"wix.email_marketing.v1.account_details",method:"GET",methodFqn:"wix.emailmarketing.api.v1.AccountDetailsService.Get",packageName:PACKAGE_NAME,migrationOptions:{optInTransformResponse:!0},url:resolveWixEmailmarketingApiV1AccountDetailsServiceUrl({protoPath:"/v1/account-details",data:t,host:e}),params:(0,import_rest_modules.toURLSearchParams)(t),transformResponse:t=>(0,import_transform_paths.transformPaths)(t,[{transformFn:import_timestamp.transformRESTTimestampToSDKTimestamp,paths:[{path:"accountDetails.quotaPeriod.dateFrom"},{path:"accountDetails.quotaPeriod.dateTo"}]}])}}}var Enum=(t=>(t.ACTIVE="ACTIVE",t.WARNED="WARNED",t.SUSPENDED="SUSPENDED",t.BANNED="BANNED",t.SUSPENDED_AUTOLIFT="SUSPENDED_AUTOLIFT",t))(Enum||{}),BillingCycle=(t=>(t.UNKNOWN="UNKNOWN",t.TWO_YEARS="TWO_YEARS",t.YEARLY="YEARLY",t.MONTHLY="MONTHLY",t))(BillingCycle||{}),Rank=(t=>(t.NEW="NEW",t.GOOD="GOOD",t.BAD="BAD",t))(Rank||{}),Product=(t=>(t.UNSPECIFIED="UNSPECIFIED",t.EMAIL_MARKETING="EMAIL_MARKETING",t.AUTOMATION="AUTOMATION",t))(Product||{}),Content=(t=>(t.TEXT="TEXT",t.LINK="LINK",t.IMAGE="IMAGE",t.EMAIL_SUBJECT="EMAIL_SUBJECT",t.SENDER_NAME="SENDER_NAME",t.SENDER_EMAIL="SENDER_EMAIL",t))(Content||{}),SenderReputation=(t=>(t.DOMAIN_BLOCKLISTED="DOMAIN_BLOCKLISTED",t.SENDER_EMAIL_PATTERN="SENDER_EMAIL_PATTERN",t.SENDER_EMAIL_DISPOSABLE="SENDER_EMAIL_DISPOSABLE",t.SENDER_EMAIL_UNDELIVERABLE="SENDER_EMAIL_UNDELIVERABLE",t.DNS_RECORDS_INCOMPLETE="DNS_RECORDS_INCOMPLETE",t.OTHER="OTHER",t))(SenderReputation||{}),Statistics=(t=>(t.SPAM_COMPLAINTS="SPAM_COMPLAINTS",t.BOUNCES="BOUNCES",t.LOW_ENGAGEMENT="LOW_ENGAGEMENT",t.SPAM_TRAPS="SPAM_TRAPS",t))(Statistics||{}),Action=(t=>(t.AGREE_TO_TERMS="AGREE_TO_TERMS",t.OPEN_TICKET="OPEN_TICKET",t.FILL_FORM="FILL_FORM",t.ANSWER_QUESTIONS="ANSWER_QUESTIONS",t.FILL_AUTOLIFT_FORM="FILL_AUTOLIFT_FORM",t.FILL_SHORT_FORM="FILL_SHORT_FORM",t.FILL_SHORT_AUTOLIFT_FORM="FILL_SHORT_AUTOLIFT_FORM",t))(Action||{});async function getAccountDetails(){const{httpClient:t,sideEffects:e}=arguments[0],r=get((0,import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({}));e?.onSiteCall?.();try{const o=await t.request(r);return e?.onSuccess?.(o),(0,import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(o.data)}catch(t){const r=(0,import_transform_error.transformError)(t,{spreadPathsToArguments:{},explicitPathsToArguments:{},singleArgumentUnchanged:!1},[]);throw e?.onError?.(t),r}}function getAccountDetails2(t){return()=>getAccountDetails({httpClient:t})}var import_rest_modules3=require("@wix/sdk-runtime/rest-modules"),getAccountDetails3=(0,import_rest_modules3.createRESTModule)(getAccountDetails2);
//# sourceMappingURL=/sm/048b822f6667ca4d456aaf7c9ec3ebd95e38545a05106abf6bde8764d0bbba29.map