1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="a4a75ceb-ca90-46a2-9cc1-31691b86d2ed",t._sentryDebugIdIdentifier="sentry-dbid-a4a75ceb-ca90-46a2-9cc1-31691b86d2ed")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8314],{28314:function(t,e,s){s.d(e,{h:function(){return a}});let a=(0,s(6516).Um)({baseUrl:"https://api.ojamaker.com/api/v1"})},6516:function(t,e,s){s.d(e,{Um:function(){return M},Lr:function(){return c},Qq:function(){return b}});var a=s(57373);let i={ACCESS_TOKEN:"access_token",REFRESH_TOKEN:"refresh_token",CUSTOMER_ACCESS_TOKEN:"customer_access_token",CUSTOMER_REFRESH_TOKEN:"customer_refresh_token",CURRENT_STORE_ID:"current_store_id",CURRENT_STORE_SLUG:"current_store_slug",CURRENT_STORE_ROLE:"current_store_role",CURRENT_LOGISTICS_COMPANY_ID:"current_logistics_company_id",CURRENT_LOGISTICS_COMPANY_SLUG:"current_logistics_company_slug",REDIRECT_AFTER_LOGIN:"redirectAfterLogin"};function o(){try{return"undefined"!=typeof localStorage}catch(t){return!1}}function r(){try{return"undefined"!=typeof sessionStorage}catch(t){return!1}}let n={getItem:t=>o()?localStorage.getItem(t):null,setItem(t,e){o()&&localStorage.setItem(t,e)},removeItem(t){o()&&localStorage.removeItem(t)},getSecureItem:t=>o()?localStorage.getItem(t):null,setSecureItem(t,e){o()&&localStorage.setItem(t,e)},removeSecureItem(t){o()&&localStorage.removeItem(t)}},d={redirect(t){window.location.href=t},getCurrentPath:()=>window.location.pathname+window.location.search,getSessionItem:t=>r()?sessionStorage.getItem(t):null,setSessionItem(t,e){r()&&sessionStorage.setItem(t,e)}};class h{async initialize(){if(this.initialized)return;let t=Object.values(i);await Promise.all(t.map(async t=>{try{let e=await this.resolveValue(this.getStorageMethod(t,"get")(t));this.cache.set(t,"string"==typeof e?e:null)}catch(e){this.cache.set(t,null)}})),this.initialized=!0}getStorageMethod(t,e){let s=this.isSecureKey(t);return"get"===e?s?t=>this.storage.getSecureItem(t):t=>this.storage.getItem(t):"set"===e?s?(t,e)=>this.storage.setSecureItem(t,e):(t,e)=>this.storage.setItem(t,e):s?t=>this.storage.removeSecureItem(t):t=>this.storage.removeItem(t)}isSecureKey(t){return t===i.ACCESS_TOKEN||t===i.REFRESH_TOKEN||t===i.CUSTOMER_ACCESS_TOKEN||t===i.CUSTOMER_REFRESH_TOKEN}async resolveValue(t){return t}getSync(t){if(this.cache.has(t)){var e;return null!==(e=this.cache.get(t))&&void 0!==e?e:null}let s=this.storage.getItem(t);return"string"==typeof s||null===s?(this.cache.set(t,s),s):null}async get(t){let e=this.getStorageMethod(t,"get"),s=await this.resolveValue(e(t));return this.cache.set(t,s),s}async set(t,e){this.cache.set(t,e);let s=this.getStorageMethod(t,"set");await this.resolveValue(s(t,e))}async remove(t){this.cache.set(t,null);let e=this.getStorageMethod(t,"remove");await this.resolveValue(e(t))}async setMany(t){await Promise.all(Object.entries(t).map(t=>{let[e,s]=t;return this.set(e,s)}))}async removeMany(t){await Promise.all(t.map(t=>this.remove(t)))}async clearTokens(){await this.removeMany([i.ACCESS_TOKEN,i.REFRESH_TOKEN,i.CUSTOMER_ACCESS_TOKEN,i.CUSTOMER_REFRESH_TOKEN])}getAccessToken(){return this.getSync(i.ACCESS_TOKEN)}getCustomerAccessToken(){let t=this.storage.getSecureItem(i.CUSTOMER_ACCESS_TOKEN);return"string"==typeof t||null===t?t:null}async getCustomerRefreshToken(){return this.get(i.CUSTOMER_REFRESH_TOKEN)}async setCustomerAuthTokens(t,e){await this.setMany({[i.CUSTOMER_ACCESS_TOKEN]:t,[i.CUSTOMER_REFRESH_TOKEN]:e})}async clearCustomerTokens(){await this.removeMany([i.CUSTOMER_ACCESS_TOKEN,i.CUSTOMER_REFRESH_TOKEN])}async getRefreshToken(){return this.get(i.REFRESH_TOKEN)}async setAuthTokens(t,e){await this.setMany({[i.ACCESS_TOKEN]:t,[i.REFRESH_TOKEN]:e})}getCurrentStoreId(){return this.getSync(i.CURRENT_STORE_ID)}async setStoreContext(t,e){await this.setMany({[i.CURRENT_STORE_ID]:t,[i.CURRENT_STORE_SLUG]:e})}redirect(t){this.navigation.redirect(t)}getCurrentPath(){return this.navigation.getCurrentPath()}getSessionItem(t){var e,s,a;return null!==(a=null===(e=(s=this.navigation).getSessionItem)||void 0===e?void 0:e.call(s,t))&&void 0!==a?a:null}setSessionItem(t,e){var s,a;null===(s=(a=this.navigation).setSessionItem)||void 0===s||s.call(a,t,e)}constructor(t){var e,s;this.cache=new Map,this.initialized=!1,this.storage=null!==(e=null==t?void 0:t.storage)&&void 0!==e?e:n,this.navigation=null!==(s=null==t?void 0:t.navigation)&&void 0!==s?s:d}}function c(t){var e,s,a,i;if("object"==typeof t&&null!==t&&"isAxiosError"in t&&!0===t.isAxiosError){let o,r;let n=null===(e=t.response)||void 0===e?void 0:e.status,d=null===(s=t.response)||void 0===s?void 0:s.data;if(!d)return{message:l(n)||"Network error. Please check your connection.",statusCode:n};if("string"==typeof d)return{message:l(n)||"Server error. Please try again later.",statusCode:n};if("object"==typeof d&&null!==d&&"error"in d&&!0===d.error){let t=null===(a=d.details)||void 0===a?void 0:a.errors;if(t){let e=Object.keys(t)[0];return{message:(null===(i=t[e])||void 0===i?void 0:i[0])||d.message||"An error occurred",code:d.code,field:e,errors:t,statusCode:n}}return{message:d.message||"An error occurred",code:d.code,statusCode:n}}if("detail"in d&&"string"==typeof d.detail)return{message:d.detail,statusCode:n};if("error"in d&&"string"==typeof d.error)return{message:d.error,code:"limit_reached"in d&&d.limit_reached?"AI_LIMIT_REACHED":void 0,statusCode:n};let h={};for(let[t,e]of Object.entries(d))if("detail"!==t&&"error"!==t&&"code"!==t&&"message"!==t){if(Array.isArray(e)){if(h[t]=e.map(t=>"object"==typeof t&&null!==t?t.message||JSON.stringify(t):String(t)),!o){let s=e[0];o="object"==typeof s&&null!==s?s.message||JSON.stringify(s):String(s),r=t}}else if("string"==typeof e)h[t]=[e],o||(o=e,r=t);else if("object"==typeof e&&null!==e){let s=e.message||(e.non_field_errors?e.non_field_errors[0]:JSON.stringify(e));h[t]=[s],o||(o=s,r=t)}}return o?{message:o,field:r,errors:h,statusCode:n}:{message:l(n)||"An error occurred",statusCode:n}}return t instanceof Error?{message:t.message}
1:"string"==typeof t?{message:t}:{message:"An unexpected error occurred"}}function l(t){switch(t){case 400:return"Invalid request. Please check your input.";case 401:return"Please log in to continue.";case 403:return"You do not have permission to perform this action.";case 404:return"The requested resource was not found.";case 409:return"This action conflicts with existing data.";case 422:return"The provided data is invalid.";case 429:return"Too many requests. Please wait a moment.";case 500:return"Server error. Please try again later.";case 502:case 503:case 504:return"Service temporarily unavailable. Please try again later.";default:return}}let p={PRODUCT_LIMIT:"MAX_PRODUCTS_LIMIT_EXCEEDED",STORAGE_LIMIT:"MAX_STORAGE_MB_LIMIT_EXCEEDED",IMAGE_LIMIT:"MAX_IMAGES_PER_PRODUCT_LIMIT_EXCEEDED",TEAM_LIMIT:"MAX_TEAM_MEMBERS_LIMIT_EXCEEDED",VENDOR_LIMIT:"MAX_VENDORS_LIMIT_EXCEEDED",STORE_LIMIT:"MAX_STORES_LIMIT_EXCEEDED",MULTIVENDOR_STORE_LIMIT:"MAX_MULTIVENDOR_STORES_LIMIT_EXCEEDED",AI_LIMIT_REACHED:"AI_LIMIT_REACHED",FEATURE_NOT_AVAILABLE:"FEATURE_NOT_AVAILABLE"};p.PRODUCT_LIMIT,p.STORAGE_LIMIT,p.IMAGE_LIMIT,p.TEAM_LIMIT,p.VENDOR_LIMIT,p.STORE_LIMIT,p.MULTIVENDOR_STORE_LIMIT,p.AI_LIMIT_REACHED,p.FEATURE_NOT_AVAILABLE;let m={IMAGE_TIMEOUT:12e4,VIDEO_TIMEOUT:6e5,MAX_RETRIES:3,INITIAL_RETRY_DELAY:2e3,MAX_RETRY_DELAY:3e4};async function g(t){var e;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null!==(e=s.maxRetries)&&void 0!==e?e:m.MAX_RETRIES,i=null;for(let e=0;e<=a;e++)try{return await t()}catch(o){if(i=o,!function(t){if(!t.response||"ECONNABORTED"===t.code||"ETIMEDOUT"===t.code)return!0;let e=t.response.status;return e>=500&&e<600||429===e}(o)||e>=a)throw o;let t=Math.min(m.INITIAL_RETRY_DELAY*Math.pow(2,e),m.MAX_RETRY_DELAY);s.onRetry&&s.onRetry(e+1,i),await function(t){return new Promise(e=>setTimeout(e,t))}(t)}throw i}function u(t){if(!t.response)return"ECONNABORTED"===t.code||"ETIMEDOUT"===t.code?"Upload timed out. Please check your internet connection and try again.":"Network error. Please check your internet connection and try again.";switch(t.response.status){case 413:return"File is too large. Please reduce the file size and try again.";case 415:return"File type not supported. Please use a supported format.";case 429:return"Too many uploads. Please wait a moment and try again.";case 500:case 502:case 503:case 504:return"Server is temporarily unavailable. Please try again in a few moments.";default:return"Upload failed. Please try again."}}class f{getToken(){return this.storageHelper.getAccessToken()}getCustomerToken(){return this.storageHelper.getCustomerAccessToken()}getStoreIdFromStorage(){return this.storageHelper.getCurrentStoreId()}clearToken(){this.storageHelper.clearTokens()}async initializeStorage(){await this.storageHelper.initialize()}getStorageHelper(){return this.storageHelper}setStoreId(t){t&&"undefined"!==t&&"null"!==t&&this.storageHelper.set(i.CURRENT_STORE_ID,t)}hasStoreContext(){let t=this.getStoreIdFromStorage();return!!(t&&"undefined"!==t&&"null"!==t)}getCurrentStoreId(){return this.getStoreIdFromStorage()}async request(t){return(await this.client.request(t)).data}constructor(t){var e,s,o,r,n,d,l,p,f,M,y,b,w;this.isRefreshing=!1,this.refreshSubscribers=[],this.storageHelper=new h(t.platformConfig);let P={"Content-Type":"application/json"};t.platformConfig&&(P["X-Client-Type"]=t.platformConfig.clientType,t.platformConfig.clientVersion&&(P["X-Client-Version"]=t.platformConfig.clientVersion),t.platformConfig.deviceId&&(P["X-Device-ID"]=t.platformConfig.deviceId));let S=null!==(e=t.timeout)&&void 0!==e?e:3e4;this.client=a.Z.create({baseURL:t.baseUrl,headers:P,timeout:S});let v=t.baseUrl.replace(/\/api\/v\d+\/?$/,"");this.storefrontClient=a.Z.create({baseURL:v,headers:P,timeout:S});let C=["/auth/check-email","/auth/register","/auth/login","/auth/google","/auth/password-reset","/auth/verify-email","/auth/token/refresh","/stores/check-slug/"],D=t=>!!t&&C.some(e=>t.includes(e)),T=t=>{this.refreshSubscribers.push(t)},L=t=>{this.refreshSubscribers.forEach(e=>e(t)),this.refreshSubscribers=[]},A=async()=>{let e=await this.storageHelper.getRefreshToken();if(!e)return null;try{let s=await a.Z.post("".concat(t.baseUrl,"/auth/token/refresh/"),{refresh:e}),i=s.data.access,o=s.data.refresh;return await this.storageHelper.setAuthTokens(i,o||e),i}catch(t){return null}},_=async t=>{var e;let s=t.config,a=null==s?void 0:s.url;if((null===(e=t.response)||void 0===e?void 0:e.status)===401&&!D(a)&&!s._retry){if(s._retry=!0,this.isRefreshing)return new Promise(t=>{T(e=>{s.headers.Authorization="Bearer ".concat(e),t(this.client(s))})});this.isRefreshing=!0;try{let t=await A();if(t)return s.headers.Authorization="Bearer ".concat(t),L(t),this.isRefreshing=!1,this.client(s)}catch(t){}if(this.isRefreshing=!1,this.clearToken(),!(null==a?void 0:a.includes("/storefront/"))){let t=this.storageHelper.getCurrentPath();t&&!t.startsWith("/login")&&(this.storageHelper.setSessionItem(i.REDIRECT_AFTER_LOGIN,t),this.storageHelper.redirect("/login?session_expired=true"))}}return Promise.reject(t)};this.client.interceptors.request.use(t=>{let e=this.getToken();return e&&!D(t.url)&&(t.headers.Authorization="Bearer ".concat(e)),t}),this.client.interceptors.response.use(t=>t,_),this.storefrontClient.interceptors.request.use(t=>{let e=this.getCustomerToken(),s=this.getToken(),a=e||s;return a&&!D(t.url)&&(t.headers.Authorization="Bearer ".concat(a)),t}),this.storefrontClient.interceptors.response.use(t=>t,_),this.authMethods=function(t,e,s){let a=async t=>{t.access&&t.refresh&&(s?(await s.setAuthTokens(t.access,t.refresh),t.store_id&&await s.set(i.CURRENT_STORE_ID,t.store_id),t.store_slug&&await s.set(i.CURRENT_STORE_SLUG,t.store_slug),void 0!==t.is_owner&&await s.set(i.CURRENT_STORE_ROLE,JSON.stringify({is_owner:t.is_owner,team_role:t.team_role,team_permissions:t.team_permissions,is_vendor:t.is_vendor,vendor_status:t.vendor_status,vendor_id:t.vendor_id}))):(localStorage.setItem("access_token",t.access),localStorage.setItem("refresh_token",t.refresh),t.store_id&&localStorage.setItem("current_store_id",t.store_id),t.store_slug&&localStorage.setItem("current_store_slug",t.store_slug),void 0!==t.is_owner&&localStorage.setItem("current_store_role",JSON.stringify({is_owner:t.is_owner,team_role:t.team_role,team_permissions:t.team_permissions,is_vendor:t.is_vendor,vendor_status:t.vendor_status,vendor_id:t.vendor_id}))))};return{async login(e,s,i){let o=await t.post("/auth/login/",{email:e,password:s,store_id:i});return await a(o.data),o.data},async googleAuth(e,s,i){let o=await t.post("/auth/google/",{id_token:e,store_id:s,referral_code:i});return await a(o.data),o.data},async switchStore(e){let s=await t.post("/auth/switch-store/",{store_id:e});return await a(s.data),s.data},register:async e=>(await t.post("/auth/register/",e)).data,async logout(){try{await t.post("/auth/logout/")}catch(t){}finally{e()}},async exchangeImpersonationCode(e){let s=await t.post("/auth/impersonate/exchange/",{code:e});return await a(s.data),s.data},async endImpersonation(s){try{await t.post("/auth/impersonate/end/",{grant_id:s})}finally{e()}},requestPasswordReset:async e=>(await t.post("/auth/password-reset/",{email:e})).data,confirmPasswordReset:async(e,s,a)=>(await t.post("/auth/password-reset/confirm/",{token:e,password:s,password_confirm:a})).data,verifyEmail:async e=>(await t.post("/auth/verify-email/",{token:e}
1)).data,resendVerificationEmail:async e=>(await t.post("/auth/verify-email/resend/",{email:e})).data,getAuthSettings:async()=>(await t.get("/auth/settings/")).data,checkEmailAvailability:async e=>(await t.post("/auth/check-email/",{email:e})).data,changePassword:async(e,s,a)=>(await t.post("/auth/password/change/",{current_password:e,new_password:s,new_password_confirm:a})).data,getCurrentUser:async()=>(await t.get("/users/me/")).data,updateCurrentUser:async e=>(await t.patch("/users/me/",e)).data,getUserContexts:async()=>(await t.get("/users/me/contexts/")).data,requestEmailChange:async(e,s)=>(await t.post("/users/me/email/change/",{new_email:e,password:s})).data,verifyEmailChange:async e=>(await t.post("/users/email/change/verify/",{token:e})).data,cancelEmailChange:async()=>(await t.post("/users/me/email/change/cancel/")).data,async getEmailChangeStatus(){try{return(await t.get("/users/me/email/change/status/")).data}catch(t){if(404===c(t).statusCode)return null;throw t}},listSessions:async()=>(await t.get("/users/me/sessions/")).data,async revokeSession(e){await t.delete("/users/me/sessions/".concat(e,"/"))},revokeOtherSessions:async()=>(await t.post("/users/me/sessions/revoke-others/")).data,getLoginHistory:async()=>(await t.get("/users/me/login-history/")).data}}(this.client,this.clearToken.bind(this),this.storageHelper),this.storeMethods=(s=this.client,{getStores:async()=>(await s.get("/stores/")).data,getStore:async t=>(await s.get("/stores/".concat(t,"/"))).data,createStore:async t=>(await s.post("/stores/",t)).data,checkSlugAvailability:async(t,e)=>(await s.get("/stores/check-slug/".concat(t,"/"),{params:e?{exclude_store_id:e}:void 0})).data,updateStore:async(t,e)=>(await s.patch("/stores/".concat(t,"/"),e)).data,updateStoreSlug:async(t,e,a)=>(await s.patch("/stores/".concat(t,"/slug/"),{slug:e,...a?{reason:a}:{}})).data,async deleteStore(t){await s.delete("/stores/".concat(t,"/"))},reactivateStore:async t=>(await s.post("/stores/".concat(t,"/reactivate/"))).data,getOnboardingStatus:async t=>(await s.get("/stores/".concat(t,"/onboarding/status/"))).data,completeOnboardingStep:async t=>(await s.post("/stores/".concat(t,"/onboarding/complete/"))).data,saveSurveyData:async(t,e)=>(await s.post("/stores/".concat(t,"/onboarding/save-survey/"),{survey_data:e})).data,generateCategories:async(t,e)=>(await s.post("/stores/".concat(t,"/onboarding/generate-categories/"),{survey_data:e})).data,getVendorSettings:async t=>(await s.get("/stores/".concat(t,"/vendor-settings/"))).data,updateVendorSettings:async(t,e)=>(await s.patch("/stores/".concat(t,"/vendor-settings/"),e)).data,async getStoreRoles(t){var e;let a=await s.get("/stores/".concat(t,"/roles/"));return null!==(e=a.data.results)&&void 0!==e?e:a.data},createStoreRole:async(t,e)=>(await s.post("/stores/".concat(t,"/roles/"),e)).data,getStoreRole:async(t,e)=>(await s.get("/stores/".concat(t,"/roles/").concat(e,"/"))).data,updateStoreRole:async(t,e,a)=>(await s.patch("/stores/".concat(t,"/roles/").concat(e,"/"),a)).data,async deleteStoreRole(t,e,a){await s.delete("/stores/".concat(t,"/roles/").concat(e,"/"),{data:a?{fallback_role_id:a}:void 0})},async getAvailablePermissions(t){var e;let a=await s.get("/stores/".concat(t,"/permissions/"));return null!==(e=a.data.results)&&void 0!==e?e:a.data},async getStoreInvitations(t){var e;let a=await s.get("/stores/".concat(t,"/invitations/"));return null!==(e=a.data.results)&&void 0!==e?e:a.data},createStoreInvitation:async(t,e)=>(await s.post("/stores/".concat(t,"/invitations/"),e)).data,async cancelStoreInvitation(t,e){await s.delete("/stores/".concat(t,"/invitations/").concat(e,"/"))},resendStoreInvitation:async(t,e)=>(await s.post("/stores/".concat(t,"/invitations/").concat(e,"/resend/"))).data,validateInvitation:async t=>(await s.get("/stores/invitations/validate/".concat(t,"/"))).data,acceptInvitation:async t=>(await s.post("/stores/invitations/accept/",{token:t})).data,async getStoreMembers(t){var e;let a=await s.get("/stores/".concat(t,"/members/"));return null!==(e=a.data.results)&&void 0!==e?e:a.data},updateMemberRole:async(t,e,a)=>(await s.patch("/stores/".concat(t,"/members/").concat(e,"/role/"),{custom_role_id:a})).data,async removeMember(t,e){await s.delete("/stores/".concat(t,"/members/").concat(e,"/"))},updateStoreTheme:async(t,e,a)=>(await s.patch("/stores/".concat(t,"/theme/"),{theme_id:e,config:a})).data,getNotificationPreferences:async t=>(await s.get("/stores/".concat(t,"/notifications/"))).data,updateNotificationPreferences:async(t,e)=>(await s.put("/stores/".concat(t,"/notifications/"),e)).data,getDomain:async t=>(await s.get("/stores/".concat(t,"/domain/"))).data,setDomain:async(t,e)=>(await s.put("/stores/".concat(t,"/domain/"),{domain:e})).data,getCustomDomains:async t=>
1(await s.get("/stores/".concat(t,"/custom-domains/"))).data,createCustomDomain:async(t,e)=>(await s.post("/stores/".concat(t,"/custom-domains/"),{domain:e})).data,async deleteCustomDomain(t,e){await s.delete("/stores/".concat(t,"/custom-domains/").concat(e,"/"))},verifyCustomDomain:async(t,e)=>(await s.post("/stores/".concat(t,"/custom-domains/").concat(e,"/verify/"))).data,checkCustomDomainDNS:async(t,e)=>(await s.post("/stores/".concat(t,"/custom-domains/").concat(e,"/check-dns/"))).data,setCustomDomainPrimary:async(t,e)=>(await s.post("/stores/".concat(t,"/custom-domains/").concat(e,"/set-primary/"))).data,getTaxSettings:async t=>(await s.get("/stores/".concat(t,"/tax-settings/"))).data,updateTaxSettings:async(t,e)=>(await s.patch("/stores/".concat(t,"/tax-settings/"),e)).data,calculateTax:async(t,e)=>(await s.post("/stores/".concat(t,"/tax-calculator/"),e)).data,getPublicDomainSettings:async()=>(await s.get("/stores/settings/domain-features/")).data,generateSEO:async t=>(await s.post("/ai/generate-seo/",t)).data}),this.productMethods=(o=this.client,{getProducts:async t=>(await o.get("/products/",{params:t})).data,getProduct:async t=>(await o.get("/products/".concat(t,"/"))).data,createProduct:async t=>(await o.post("/products/",t)).data,updateProduct:async(t,e)=>(await o.patch("/products/".concat(t,"/"),e)).data,async deleteProduct(t){await o.delete("/products/".concat(t,"/"))},analyzeProductImages:async t=>(await o.post("/products/".concat(t,"/images/analyze/"))).data,getCategories:async()=>(await o.get("/products/categories/")).data,createCategory:async t=>(await o.post("/products/categories/",t)).data,getCategory:async t=>(await o.get("/products/categories/".concat(t,"/"))).data,updateCategory:async(t,e)=>(await o.patch("/products/categories/".concat(t,"/"),e)).data,async deleteCategory(t){await o.delete("/products/categories/".concat(t,"/"))},async generateDescription(t,e,s,a){let i=!(arguments.length>4)||void 0===arguments[4]||arguments[4],r=new FormData;return t.forEach(t=>{r.append("images",t)}),e.forEach(t=>{r.append("image_urls",t)}),s&&r.append("product_name",s),a&&a.length>0&&r.append("categories",JSON.stringify(a)),r.append("enable_web_search",String(i)),(await o.post("/ai/generate-description/",r,{headers:{"Content-Type":"multipart/form-data"}})).data},getDigitalFiles:async t=>(await o.get("/products/".concat(t,"/digital-files/"))).data,async uploadDigitalFile(t,e,s,a,i){let r=new FormData;return r.append("file",e),s&&r.append("name",s),a&&r.append("description",a),(await o.post("/products/".concat(t,"/digital-files/"),r,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:t=>{i&&t.total&&i(Math.round(100*t.loaded/t.total))}})).data},updateDigitalFile:async(t,e,s)=>(await o.patch("/products/".concat(t,"/digital-files/").concat(e,"/"),s)).data,async deleteDigitalFile(t,e){await o.delete("/products/".concat(t,"/digital-files/").concat(e,"/"))}}),this.orderMethods=(r=this.client,{getOrders:async t=>(await r.get("/orders/",{params:t})).data,getOrder:async t=>(await r.get("/orders/".concat(t,"/"))).data,updateOrderStatus:async(t,e)=>(await r.patch("/orders/".concat(t,"/"),{status:e})).data,updateOrder:async(t,e)=>(await r.patch("/orders/".concat(t,"/"),e)).data,fulfillOrder:async(t,e)=>(await r.post("/orders/".concat(t,"/fulfill/"),e)).data,cancelOrder:async(t,e)=>(await r.post("/orders/".concat(t,"/cancel/"),e)).data,getOrderInvoice:async t=>(await r.get("/orders/".concat(t,"/invoice/"))).data,regenerateOrderInvoice:async t=>(await r.post("/orders/".concat(t,"/invoice/"))).data,sendOrderInvoice:async(t,e)=>(await r.post("/orders/".concat(t,"/invoice/send/"),{email:e})).data,generatePaymentLink:async t=>(await r.post("/orders/".concat(t,"/payment-link/"))).data,getCustomers:async t=>(await r.get("/orders/customers/",{params:t})).data,getCustomer:async t=>(await r.get("/orders/customers/".concat(t,"/"))).data,getOrdersByCustomer:async(t,e)=>(await r.get("/orders/",{params:{...e,customer:t}})).data,getOrdersByEmail:async(t,e)=>(await r.get("/orders/",{params:{...e,email:t}})).data,getAdminShippingMethods:async()=>(await r.get("/orders/shipping-methods/")).data,createShippingMethod:async t=>(await r.post("/orders/shipping-methods/",t)).data,getShippingMethod:async t=>(await r.get("/orders/shipping-methods/".concat(t,"/"))).data,updateShippingMethod:async(t,e)=>(await r.patch("/orders/shipping-methods/".concat(t,"/"),e)).data,async deleteShippingMethod(t){await r.delete("/orders/shipping-methods/".concat(t,"/"))},getAdminPaymentMethods:async()=>
1(await r.get("/payments/payment-methods/")).data,createPaymentMethod:async t=>(await r.post("/payments/payment-methods/",t)).data,getPaymentMethod:async t=>(await r.get("/payments/payment-methods/".concat(t,"/"))).data,updatePaymentMethod:async(t,e)=>(await r.patch("/payments/payment-methods/".concat(t,"/"),e)).data,async deletePaymentMethod(t){await r.delete("/payments/payment-methods/".concat(t,"/"))},getDiscountCodes:async t=>(await r.get("/orders/discount-codes/",{params:t})).data,getDiscountCode:async t=>(await r.get("/orders/discount-codes/".concat(t,"/"))).data,createDiscountCode:async t=>(await r.post("/orders/discount-codes/",t)).data,updateDiscountCode:async(t,e)=>(await r.patch("/orders/discount-codes/".concat(t,"/"),e)).data,async deleteDiscountCode(t){await r.delete("/orders/discount-codes/".concat(t,"/"))},generateDiscountCode:async t=>(await r.post("/orders/discount-codes/generate/",t||{})).data,getAdminCarts:async t=>(await r.get("/orders/carts/",{params:t})).data,getAdminCartStats:async()=>(await r.get("/orders/carts/stats/")).data,getAdminCartDetail:async t=>(await r.get("/orders/carts/".concat(t,"/"))).data,async deleteAdminCart(t){await r.delete("/orders/carts/".concat(t,"/"))},getOrderDigitalFiles:async t=>(await r.get("/orders/".concat(t,"/digital-files/"))).data,resendDigitalDelivery:async t=>(await r.post("/orders/".concat(t,"/resend-digital-delivery/"))).data,issueDigitalDelivery:async(t,e)=>(await r.post("/orders/".concat(t,"/issue-digital-delivery/"),e||{})).data,recoverCart:async(t,e)=>(await r.post("/orders/carts/".concat(t,"/recover/"),e)).data,recoverOrder:async(t,e)=>(await r.post("/orders/".concat(t,"/recover/"),e)).data,getUnpaidOrders:async t=>(await r.get("/orders/unpaid/",{params:t})).data,getRecoveryAttempts:async t=>(await r.get("/orders/recovery/",{params:t})).data,getRecoveryStats:async()=>(await r.get("/orders/recovery/stats/")).data}),this.vendorMethods=(n=this.client,{getVendors:async t=>(await n.get("/vendors/",{params:t})).data,getVendor:async t=>(await n.get("/vendors/".concat(t,"/"))).data,getVendorProducts:async(t,e)=>(await n.get("/vendors/".concat(t,"/products/"),{params:e})).data,getVendorPayouts:async(t,e)=>t?(await n.get("/vendors/".concat(t,"/payouts/"),{params:e})).data:(await n.get("/vendors/payouts/",{params:e})).data,updateVendorStatus:async(t,e)=>(await n.patch("/vendors/".concat(t,"/"),{status:e})).data,getVendorContext:async()=>(await n.get("/vendors/me/context/")).data,getVendorSelf:async()=>(await n.get("/vendors/me/")).data,updateVendorSelf:async t=>(await n.patch("/vendors/me/",t)).data,getVendorSelfProducts:async t=>(await n.get("/vendors/me/products/",{params:t})).data,getVendorSelfOrders:async t=>(await n.get("/vendors/me/orders/",{params:t})).data,getVendorSelfEarnings:async()=>(await n.get("/vendors/me/earnings/")).data,getVendorSelfStats:async()=>(await n.get("/vendors/me/stats/")).data,async approveVendor(t,e){let s={};return e&&(s.commission_rate=e),(await n.post("/vendors/".concat(t,"/approve/"),s)).data},rejectVendor:async(t,e)=>(await n.post("/vendors/".concat(t,"/reject/"),{reason:e})).data,async suspendVendor(t,e){let s={};return e&&(s.reason=e),(await n.post("/vendors/".concat(t,"/suspend/"),s)).data},reinstateVendor:async t=>(await n.post("/vendors/".concat(t,"/reinstate/"))).data,getVendorInvitations:async t=>(await n.get("/vendors/invitations/",{params:t})).data,createVendorInvitation:async t=>(await n.post("/vendors/invitations/",t)).data,async cancelVendorInvitation(t){await n.delete("/vendors/invitations/".concat(t,"/"))},validateVendorInvitation:async t=>(await n.get("/vendors/invitations/".concat(t,"/validate/"))).data,acceptVendorInvitation:async(t,e)=>(await n.post("/vendors/invitations/".concat(t,"/accept/"),e)).data,getCommissionRules:async t=>(await n.get("/vendors/commissions/",{params:t})).data,createCommissionRule:async t=>(await n.post("/vendors/commissions/",t)).data,updateCommissionRule:async(t,e)=>(await n.patch("/vendors/commissions/".concat(t,"/"),e)).data,async deleteCommissionRule(t){await n.delete("/vendors/commissions/".concat(t,"/"))},createPayoutBatch:async t=>(await n.post("/vendors/payouts/create-batch/",t)).data,processPayout:async(t,e)=>(await n.post("/vendors/payouts/".concat(t,"/process/"),e)).data}),this.subscriptionMethods=(d=this.client,{getPlans:async()=>(await d.get("/subscriptions/plans/")).data,getSubscriptionPlans:async()=>(await d.get("/subscriptions/plans/")).data,async getPlan(t){var e;let s=(await d.get("/subscriptions/plans/")).data;return Array.isArray(s)?s.find(e=>e.id===t):null===(e=s.results)||void 0===e?void 0:e.find(e=>e.id===t)},getMyAvailableDiscounts:async()=>(await d.get("/subscriptions/discounts/")).data,validateDiscountCode:async(t,e,s)=>(await d.post("/subscriptions/discounts/validate/",{code:t,plan_id:e,billing_interval:s})).data,getFeaturedPromo:async()=>(await d.get("/subscriptions/featured-promo/")).data,getPublicPlatformStats:async()=>(await d.get("/subscriptions/public-stats/")).data,getStoreSubscription:async t=>(await d.get("/subscriptions/current/")).data,createSubscription:async(t,e)=>(await d.post("/payments/subscriptions/change-plan/",{plan_id:e.plan_id,billing_interval:e.billing_cycle})).data,changeSubscription:async(t,e)=>(await d.post("/payments/subscriptions/change-plan/",{plan_id:e.plan_id,billing_interval:e.billing_cycle||"MONTHLY"})).data,cancelSubscription:async t=>"boolean"==typeof t?(await d.post("/subscriptions/current/cancel/",{cancel_at_period_end:t})).data:(await d.post("/subscriptions/current/cancel/")).data,reactivateSubscription:async t=>({success:!1,message:"Please contact support to reactivate your subscription"}),initializeCheckout:async(t,e)=>(await d.post("/payments/subscriptions/change-plan/",{plan_id:e.plan_id,billing_interval:e.billing_cycle,callback_url:e.callback_url})).data,verifyCheckout:async(t,e)=>(await d.post("/payments/subscriptions/verify/",{reference:e})).data,getStoreLimits:async t=>(await d.get("/subscriptions/usage/")).data,async checkFeatureAccess(t,e){let s=(await d.get("/subscriptions/over-limit/")).data;return{allowed:!s.is_over_limit,reason:s.message}},getBillingHistory:async(t,e)=>(await d.get("/payments/subscriptions/billing-history/",{params:"string"==typeof t?e:t})).data,getCurrentSubscription:async()=>(await d.get("/subscriptions/current/")).data,getSubscriptionUsage:async()=>(await d.get("/subscriptions/usage/")).data,getSubscriptionOverLimit:async()=>(await d.get("/subscriptions/over-limit/")).data,getLimitStatus:async()=>(await d.get("/subscriptions/limit-status/")).data,getFeatureDescriptions:async()=>(await d.get("/subscriptions/features/")).data,getSubscriptionManageLink:async()=>(await d.get("/payments/subscriptions/manage-link/")).data,verifySub
1scriptionPayment:async(t,e,s)=>(await d.post("/payments/subscriptions/verify/",{reference:t,provider:e,transaction_id:s})).data,initiateSubscriptionUpgrade:async t=>(await d.post("/payments/subscriptions/change-plan/",t)).data,getAvailableSubscriptionPaymentProviders:async()=>(await d.get("/subscriptions/payment-providers/")).data,getMyReferralCode:async()=>(await d.get("/referrals/my-code/")).data,getMyReferrals:async()=>(await d.get("/referrals/my-referrals/")).data,getMyCredits:async()=>(await d.get("/referrals/my-credits/")).data,getMyCreditTransactions:async t=>(await d.get("/referrals/my-credits/transactions/",{params:t})).data,getMyWithdrawals:async()=>(await d.get("/referrals/withdrawals/")).data,requestWithdrawal:async t=>(await d.post("/referrals/withdrawals/",t)).data,getReferralBanks:async()=>(await d.get("/referrals/banks/")).data,resolveReferralBankAccount:async t=>(await d.post("/referrals/resolve-account/",t)).data,applyCreditsToSubscription:async t=>(await d.post("/referrals/apply-to-subscription/",t)).data}),this.themeMethods=(l=this.client,{getThemes:async t=>(await l.get("/themes/",{params:t})).data,getTheme:async t=>(await l.get("/themes/".concat(t,"/"))).data,getThemePreview:async t=>(await l.get("/themes/".concat(t,"/preview/"))).data,setStoreTheme:async(t,e,s)=>(await l.put("/stores/".concat(t,"/theme/"),{theme_id:e,theme_config:s})).data,getStoreTheme:async t=>(await l.get("/stores/".concat(t,"/theme/"))).data,async updateStoreThemeConfig(t,e){var s;let a=null===(s=(await l.get("/stores/".concat(t,"/theme/"))).data.theme)||void 0===s?void 0:s.id;if(!a)throw Error("No theme assigned to store");return(await l.put("/stores/".concat(t,"/theme/"),{theme_id:a,theme_config:e})).data},validateTheme:async t=>(await l.post("/themes/validate/",t,{headers:{"Content-Type":"multipart/form-data"}})).data,uploadTheme:async t=>(await l.post("/themes/upload/",t,{headers:{"Content-Type":"multipart/form-data"}})).data,async updateTheme(t,e){let s=e instanceof FormData;return(await l.patch("/themes/".concat(t,"/update/"),e,{headers:s?{"Content-Type":"multipart/form-data"}:void 0})).data},async deleteTheme(t){await l.delete("/themes/".concat(t,"/delete/"))},exportTheme:async t=>(await l.get("/themes/".concat(t,"/export/"),{responseType:"blob"})).data,activateTheme:async(t,e)=>(await l.post("/themes/".concat(t,"/activate/"),{activate:e})).data,featureTheme:async(t,e)=>(await l.patch("/themes/".concat(t,"/update/"),{is_featured:e})).data,getThemeDeleteInfo:async t=>(await l.get("/themes/".concat(t,"/delete-info/"))).data}),this.analyticsMethods=(p=this.client,{getStoreMetrics:async(t,e)=>(await p.get("/analytics/store/",{params:e})).data,getDashboardStats:async t=>(await p.get("/analytics/store/")).data,getSalesReport:async(t,e)=>(await p.get("/analytics/store/",{params:e})).data,getStoreAnalytics:async t=>(await p.get("/analytics/store/",{params:t})).data,getVisitorAnalytics:async(t,e)=>(await p.get("/analytics/visitors/",{params:"string"==typeof t?e:t})).data,getPageAnalytics:async(t,e)=>(await p.get("/analytics/pages/",{params:"string"==typeof t?e:t})).data,async getGeographicAnalytics(t,e){let s,a;return"string"==typeof t?(s="/analytics/geographic/",a=e):(s="/analytics/geographic/",a=t),(await p.get(s,{params:a})).data},getTaxReport:async t=>(await p.get("/analytics/tax-report/",{params:t})).data,async trackEvent(t,e,s){let a=(null==s?void 0:s.baseUrl)||"",i={};return(null==s?void 0:s.sessionId)&&(i["X-Session-ID"]=s.sessionId),(await p.post("".concat(a,"/storefront/api/v1/").concat(t,"/analytics/track/"),e,{headers:i})).data}}),this.platformMethods=(f=this.client,{getPlatformMetrics:async t=>(await f.get("/platform/metrics/",{params:t})).data,getPlatformDashboard:async()=>(await f.get("/platform/dashboard/")).data,getPlatformRealtime:async()=>(await f.get("/platform/realtime/")).data,getPlatformMrr:async t=>(await f.get("/platform/mrr/",{params:(null==t?void 0:t.refresh)?{refresh:"1"}:void 0})).data,getPlatformTopStores:async t=>(await f.get("/platform/top-stores/",{params:{period:null==t?void 0:t.period,sort:null==t?void 0:t.sort,...(null==t?void 0:t.refresh)?{refresh:"1"}:{}}})).data,getPlatformEventsFeed:async t=>(await f.get("/platform/events/",{params:t})).data,getPlatformFunnel:async t=>(await f.get("/platform/funnel/",{params:t})).data,getPlatformCountryStats:async()=>(await f.get("/platform/country-stats/")).data,getAdminSubscriptionPlans:async t=>(await f.get("/subscriptions/admin/plans/",{params:t})).data,createAdminSubscriptionPlan:async t=>(await f.post("/subscriptions/admin/plans/",t)).data,updateAdminSubscriptionPlan:async(t,e)=>(await f.patch("/subscriptions/admin/plans/".concat(t,"/"),e)).data,async deleteAdminSubscriptionPlan(t){await f.delete("/subscriptions/admin/plans/".concat(t,"/"))},setSubscriptionExpiry:async(t,e)=>(await f.post("/platform/subscriptions/".concat(t,"/set-expiry/"),e)).data,getAdminStoreSubscriptions:async t=>(await f.get("/platform/subscriptions/",{params:t})).data,getPlatformExpiringSubscriptions:async t=>(await f.get("/platform/subscriptions/expiring/",{params:t})).data,syncSubscriptionPlans:async()=>(await f.post("/platform/subscriptions/sync-plans/")).data,updateAdminStoreSubscription:async(t,e)=>(await f.patch("/platform/subscriptions/".concat(t,"/"),e)).data,manualUpgradeSubscription:async(t,e)=>(await f.post("/platform/subscriptions/".concat(t,"/manual-upgrade/"),e)).data,setSubscriptionStatus:async(t,e)=>(await f.post("/platform/subscriptions/".concat(t,"/set-status/"),e)).data,getAdminSubscriptionStats:async()=>(await f.get("/subscriptions/admin/stats/")).data,getAdminFeatureDescriptions:async()=>(await f.get("/subscriptions/admin/features/")).data,updateAdminFeatureDescription:async(t,e)=>(await f.patch("/subscriptions/admin/features/".concat(t,"/"),e)).data,getPlatformStores:async t=>(await f.get("/platform/stores/",{params:t})).data,getPlatformStore:async t=>(await f.get("/platform/stores/".concat(t,"/"))).data,getPlatformStorePaymentMethods:async t=>(await f.get("/platform/stores/".concat(t,"/payment-methods/"))).data,suspendStore:async(t,e)=>(await f.post("/platform/stores/".concat(t,"/suspend/"),{reason:e})).data,activateStore:async t=>(await f.delete("/platform/stores/".concat(t,"/suspend/"))).data,reactivateStore:async t=>(await f.post("/platform/stores/".concat(t,"/reactivate/"))).data,impersonateStoreOwner:async(t,e)=>(await f.post("/platform/stores/".concat(t,"/impersonate/"),e)).data,runStoreAI:async(t,e)=>(await f.post("/platform/stores/".concat(t,"/run-ai/"),e)).data,updatePlatformStore:async(t,e)=>(await f.patch("/platform/stores/".concat(t,"/"),e)).data,getPlatformUsers:async t=>(await f.get("/platform/users/",{params:t})).data,exportPlatformUsersCSV:async t=>
1(await f.get("/platform/users/",{params:{...t,export:"csv"},responseType:"blob"})).data,exportPlatformUsersMetaAudience:async(t,e)=>(await f.get("/platform/users/",{params:{...e,export:"meta_audience",columns:t.join(",")},responseType:"blob"})).data,getPlatformUser:async t=>(await f.get("/platform/users/".concat(t,"/"))).data,updatePlatformUser:async(t,e)=>(await f.patch("/platform/users/".concat(t,"/"),e)).data,getUsersFollowUp:async t=>(await f.get("/platform/users/follow-up/",{params:t})).data,exportUsersFollowUpCSV:async t=>(await f.get("/platform/users/follow-up/",{params:{...t,export:"csv"},responseType:"blob"})).data,getPlatformPlans:async()=>(await f.get("/platform/plans/")).data,createPlatformPlan:async t=>(await f.post("/platform/plans/",t)).data,updatePlatformPlan:async(t,e)=>(await f.patch("/platform/plans/".concat(t,"/"),e)).data,async deletePlatformPlan(t){await f.delete("/platform/plans/".concat(t,"/"))},getAdminDiscounts:async t=>(await f.get("/platform/discounts/",{params:t})).data,getAdminDiscount:async t=>(await f.get("/platform/discounts/".concat(t,"/"))).data,createAdminDiscount:async t=>(await f.post("/platform/discounts/",t)).data,updateAdminDiscount:async(t,e)=>(await f.patch("/platform/discounts/".concat(t,"/"),e)).data,async deleteAdminDiscount(t){await f.delete("/platform/discounts/".concat(t,"/"))},revokeAdminDiscount:async(t,e)=>(await f.post("/platform/discounts/".concat(t,"/revoke/"),{reason:e})).data,getPlatformThemes:async t=>(await f.get("/themes/",{params:t})).data,createPlatformTheme:async t=>(await f.post("/platform/themes/",t)).data,updatePlatformTheme:async(t,e)=>(await f.patch("/platform/themes/".concat(t,"/"),e)).data,async deletePlatformTheme(t){await f.delete("/platform/themes/".concat(t,"/"))},getPlatformSettings:async()=>(await f.get("/platform/settings/")).data,getPlatformDefaultTheme:async()=>(await f.get("/platform/settings/default-theme/")).data,setPlatformDefaultTheme:async t=>(await f.post("/platform/settings/default-theme/",{theme_id:t})).data,getPlatformEmailVerificationSetting:async()=>(await f.get("/platform/settings/email-verification/")).data,setPlatformEmailVerificationSetting:async t=>(await f.post("/platform/settings/email-verification/",{require_email_verification:t})).data,getPlatformCustomDomainsSetting:async()=>(await f.get("/platform/settings/custom-domains/")).data,setPlatformCustomDomainsSetting:async t=>(await f.post("/platform/settings/custom-domains/",t)).data,getPlatformNotificationSettings:async()=>(await f.get("/platform/settings/notifications/")).data,updatePlatformNotificationSettings:async t=>(await f.patch("/platform/settings/notifications/",t)).data,getPlanCatalog:async()=>(await f.get("/platform/plan-catalog/")).data,getBillingSettings:async()=>(await f.get("/platform/settings/billing/")).data,updateBillingSettings:async t=>(await f.post("/platform/settings/billing/",t)).data,getPlatformHeaderTags:async()=>(await f.get("/platform/settings/header-tags/")).data,setPlatformHeaderTags:async(t,e)=>(await f.post("/platform/settings/header-tags/".concat(t,"/"),{head_tags:e})).data,getPublicHeaderTags:async t=>(await f.get("/public/header-tags/".concat(t,"/"))).data,getPlatformTransactions:async t=>(await f.get("/platform/transactions/",{params:t})).data,getPlatformTransactionStats:async()=>(await f.get("/platform/transactions/stats/")).data,getPlatformTransactionDetail:async t=>(await f.get("/platform/transactions/".concat(t,"/"))).data,verifyPlatformTransaction:async t=>(await f.post("/platform/transactions/".concat(t,"/verify/"))).data,retryPlatformTransaction:async t=>(await f.post("/platform/transactions/".concat(t,"/retry/"))).data,getPlatformWebhookEvents:async t=>(await f.get("/platform/webhooks/",{params:t})).data,retryPlatformWebhook:async t=>(await f.post("/platform/webhooks/".concat(t,"/retry/"))).data,getPlatformStoreDetail:async t=>(await f.get("/platform/stores/".concat(t,"/"))).data,async deletePlatformStore(t,e){await f.post("/platform/stores/".concat(t,"/delete/"),e)},getPlatformStoreProducts:async(t,e)=>(await f.get("/platform/stores/".concat(t,"/products/"),{params:e})).data,updatePlatformStoreProduct:async(t,e,s)=>(await f.patch("/platform/stores/".concat(t,"/products/").concat(e,"/"),s)).data,getPlatformStoreDeletionPreview:async t=>(await f.get("/platform/stores/".concat(t,"/delete/preview/"))).data,updateStoreLimitOverrides:async(t,e)=>(await f.patch("/platform/stores/".concat(t,"/limits/"),e)).data,reinstateStore:async t=>({message:"Store reinstated successfully",store:(await f.patch("/platform/stores/".concat(t,"/"),{is_active:!0,is_suspended:!1})).data}),toggleStoreCustomDomain:async(t,e)=>(await f.post("/platform/stores/".concat(t,"/toggle-custom-domain/"),{enabled:e})).data,getPlatformCustomDomains:async t=>(await f.get("/platform/custom-domains/",{params:t})).data,getPlatformCustomDomainDetail:async t=>(await f.get("/platform/custom-domains/".concat(t,"/"))).data,deletePlatformCustomDomain:async t=>(await f.delete("/platform/custom-domains/".concat(t,"/delete/"))).data,refreshPlatformCustomDomainStatus:async t=>(await f.post("/platform/custom-domains/".concat(t,"/refresh/"))).data,createPlatformCustomDomain:async(t,e)=>
1(await f.post("/platform/stores/".concat(t,"/custom-domains/"),{domain:e})).data,getPlatformUserDashboard:async()=>(await f.get("/platform/users/dashboard/")).data,getPlatformUserDetail:async t=>(await f.get("/platform/users/".concat(t,"/"))).data,deletePlatformUser:async(t,e)=>(await f.post("/platform/users/".concat(t,"/delete/"),e)).data,getPlatformUserDeletionPreview:async t=>(await f.get("/platform/users/".concat(t,"/delete/preview/"))).data,getScheduledDeletions:async t=>(await f.get("/platform/deletions/",{params:t})).data,cancelScheduledDeletion:async(t,e)=>(await f.post("/platform/deletions/".concat(t,"/cancel/"),{reason:e})).data,getPlatformUserActivity:async(t,e)=>(await f.get("/platform/users/".concat(t,"/activity/"),{params:e})).data,getPlatformUserLoginHistory:async(t,e)=>(await f.get("/platform/users/".concat(t,"/logins/"),{params:e})).data,getPlatformUserTransactions:async(t,e)=>(await f.get("/platform/users/".concat(t,"/transactions/"),{params:e})).data,getPlatformUserSubscriptionHistory:async(t,e)=>(await f.get("/platform/users/".concat(t,"/subscriptions/"),{params:e})).data,getPaymentProviders:async()=>(await f.get("/platform/payment-providers/")).data,getPaymentProvider:async t=>(await f.get("/platform/payment-providers/".concat(t,"/"))).data,updatePaymentProvider:async(t,e)=>(await f.patch("/platform/payment-providers/".concat(t,"/"),e)).data,togglePaymentProvider:async(t,e)=>(await f.post("/platform/payment-providers/".concat(t,"/toggle/"),{is_enabled:e})).data,testPaymentProvider:async t=>(await f.post("/platform/payment-providers/".concat(t,"/test/"))).data,getPaymentKeyAccessLogs:async t=>(await f.get("/platform/payment-providers/access-logs/",{params:t})).data,getTestUsers:async t=>(await f.get("/platform/test/users/",{params:t})).data,getTestStores:async t=>(await f.get("/platform/test/stores/",{params:t})).data,getTestStats:async()=>(await f.get("/platform/test/stats/")).data,async runTestCleanup(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return(await f.post("/platform/test/cleanup/",{dry_run:t})).data},bulkDeleteTestUsers:async t=>(await f.post("/platform/test/users/bulk-delete/",{user_ids:t})).data,bulkDeleteTestStores:async t=>(await f.post("/platform/test/stores/bulk-delete/",{store_ids:t})).data,getTestAccountConfig:async()=>(await f.get("/platform/test/config/")).data,updateTestAccountConfig:async t=>(await f.patch("/platform/test/config/",t)).data,getPlatformUserPlatformAccess:async t=>(await f.get("/platform/users/".concat(t,"/platform-access/"))).data,removeUserFromPlatform:async(t,e)=>(await f.post("/platform/users/".concat(t,"/remove-from-platform/"),e)).data,transferCompanyOwnership:async(t,e)=>(await f.post("/platform/users/".concat(t,"/transfer-company-ownership/"),e)).data,transferStoreOwnership:async(t,e)=>(await f.post("/platform/users/".concat(t,"/transfer-store-ownership/"),e)).data,getPlatformUserLogisticsMemberships:async t=>(await f.get("/platform/users/".concat(t,"/logistics-memberships/"))).data,fullDeleteUser:async(t,e)=>(await f.delete("/platform/users/".concat(t,"/full-delete/"),{data:e})).data,cascadeDeleteUser:async(t,e)=>(await f.delete("/platform/users/".concat(t,"/cascade-delete/"),{data:e})).data,getPlatformReferralConfig:async()=>(await f.get("/platform/referrals/config/")).data,updatePlatformReferralConfig:async t=>(await f.put("/platform/referrals/config/",t)).data,getPlatformReferralOverview:async()=>(await f.get("/platform/referrals/overview/")).data,getPlatformReferrers:async t=>(await f.get("/platform/referrals/referrers/",{params:t})).data,toggleReferrerStatus:async t=>(await f.post("/platform/referrals/referrers/".concat(t,"/toggle-status/"))).data,getPlatformReferrals:async t=>(await f.get("/platform/referrals/referrals/",{params:t})).data,getPlatformWithdrawals:async t=>(await f.get("/platform/referrals/withdrawals/",{params:t})).data,approveWithdrawal:async t=>(await f.post("/platform/referrals/withdrawals/".concat(t,"/approve/"))).data,rejectWithdrawal:async(t,e)=>(await f.post("/platform/referrals/withdrawals/".concat(t,"/reject/"),{reason:e})).data,processWithdrawal:async t=>(await f.post("/platform/referrals/withdrawals/".concat(t,"/process/"))).data,getSupportStats:async()=>(await f.get("/platform/support/conversations/stats/")).data,getSupportUnreadCount:async()=>(await f.get("/platform/support/conversations/unread_count/")).data,getSupportConversations:async t=>(await f.get("/platform/support/conversations/",{params:t})).data,getSupportConversation:async t=>(await f.get("/platform/support/conversations/".concat(t,"/"))).data,sendSupportReply:async(t,e)=>(await f.post("/platform/support/conversations/".concat(t,"/send_reply/"),e)).data,async uploadSupportMedia(t,e){let s=new FormData;return s.append("file",e),(await f.post("/platform/support/conversations/".concat(t,"/upload_media/"),s,{headers:{"Content-Type":"multipart/form-data"}})).data},sendSupportTemplate:async t=>(await f.post("/platform/support/conversations/".concat(t,"/send_template/"))).data,resolveSupportConversation:async(t,e)=>(await f.post("/platform/support/conversations/".concat(t,"/resolve/"),e)).data,assignSupportConversation:async(t,e)=>(await f.post("/platform/support/conversations/".concat(t,"/assign/"),e)).data,handoffSupportToAI:async(t,e)=>(await f.post("/platform/support/conversations/".concat(t,"/handoff_to_ai/"),null!=e?e:{})).data,handoffSupportToHuman:async t=>(await f.post("/platform/support/conversations/".concat(t,"/handoff_to_human/"))).data,toggleSupportHumanLock:async t=>(await f.post("/platform/support/conversations/".concat(t,"/toggle_human_lock/"))).data,getSupportEscalations:async t=>(await f.get("/platform/support/conversations/escalations/",{params:t})).data,searchSupportCustomers:async t=>(await f.get("/platform/support/conversations/search_customers/",{params:t})).data,startSupportConversation:async t=>(await f.post("/platform/support/conversations/start_conversation/",t)).data,rephraseSupportText:async t=>(await f.post("/platform/support/conversations/rephrase_text/",t)).data,snoozeSupportConversation:async(t,e)=>(await f.post("/platform/support/conversations/".concat(t,"/snooze/"),e)).data,archiveSupportConversation:async(t,e)=>(await f.post("/platform/support/conversations/".concat(t,"/archive/"),e)).data,setSupportConversationLabels:async(t,e)=>(await f.post("/platform/support/conversations/".concat(t,"/labels/"),e)).data,suggestSupportReplies:async t=>(await f.post("/platform/support/conversations/".concat(t,"/suggest_replies/"))).data,generateSupportSummary:async t=>(await f.post("/platform/support/conversations/".concat(t,"/summary/"))).data,getSupportQuickReplyTemplates:async t=>(await f.get("/platform/support/templates/",{params:t})).data,createSupportQuickReplyTemplate:async t=>(await f.post("/platform/support/templates/",t)).data,updateSupportQuickReplyTemplate:async(t,e)=>(await f.patch("/platform/support/templates/".concat(t,"/"),e)).data,async deleteSupportQuickReplyTemplate(t){await f.delete("/platform/support/templates/".concat(t,"/"))},reorderSupportQuickReplyTemplates:async t=>(await f.post("/platform/support/templates/reorder/",{orders:t})).data,async uploadSupportTemplateMedia(t,e){let s=new FormData;return s.append("file",e),(await f.post("/platform/support/templates/".concat(t,"/upload-media/"),s,{headers:{"Content-Type":"multipart/form-data"}})).data},async deleteSupportTemplateMedia(t){await f.delete("/platform/support/templates/".concat(t,"/media/"))},getSupportTemplateMediaDownloadUrl:async t=>(await f.get("/platform/support/templates/".concat(t,"/download-media/"))).data,getAIAuditLogs:async t=>(await f.get("/platform/ai-audit/",{params:t})).data,getAIAuditStats:async()=>(await f.get("/platform/ai-audit/stats/")).data,getPlatformPromoCodes:async t=>(await f.get("/platform/promo-codes/",{params:t})).data,getPlatformPromoCodeStats:async()=>(await f.get("/platform/promo-codes/stats/")).data,createPlatformPromoCode:async t=>(await f.post("/platform/promo-codes/",t)).data,updatePlatformPromoCode:async(t,e)=>(await f.patch("/platform/promo-codes/".concat(t,"/"),e)).data,getPlatformPromoCodeDetail
1:async t=>(await f.get("/platform/promo-codes/".concat(t,"/"))).data,async deletePlatformPromoCode(t){await f.delete("/platform/promo-codes/".concat(t,"/"))},togglePlatformPromoCodePause:async(t,e)=>(await f.post("/platform/promo-codes/".concat(t,"/pause/"),{pause:e})).data,generatePlatformPromoCode:async t=>(await f.post("/platform/promo-codes/generate/",{prefix:t})).data,getPlatformPromoCodeUsage:async t=>(await f.get("/platform/promo-codes/usage/",{params:t})).data,getWhatsAppLogs:async t=>(await f.get("/platform/whatsapp/logs/",{params:t})).data,getWhatsAppLog:async t=>(await f.get("/platform/whatsapp/logs/".concat(t,"/"))).data,getWhatsAppLogStats:async t=>(await f.get("/platform/whatsapp/logs/stats/",{params:t})).data,getWhatsAppMessageTypes:async()=>(await f.get("/platform/whatsapp/logs/message-types/")).data,getRecipientsWithoutConversation:async()=>(await f.get("/platform/whatsapp/logs/recipients-without-conversation/")).data,getWhatsAppTemplates:async t=>(await f.get("/platform/whatsapp/templates/",{params:t})).data,generateThemeContent:async(t,e)=>(await f.post("/ai/theme-content/regenerate/",{store_id:t,...e})).data,getThemeContent:async t=>(await f.get("/ai/theme-content/".concat(t,"/"))).data,startBulkImageEnhancement:async(t,e)=>(await f.post("/platform/stores/bulk-image-enhance/",{store_id:t,...e})).data,getBulkImageEnhancementStatus:async t=>(await f.get("/platform/stores/bulk-image-enhance/",{params:{job_id:t}})).data,applyBulkImageEnhancements:async t=>(await f.post("/platform/stores/bulk-image-apply/",{enhancements:t})).data,listPlatformWhatsAppTemplates:async t=>(await f.get("/platform/whatsapp/templates/",{params:t})).data,createPlatformWhatsAppTemplate:async t=>(await f.post("/platform/whatsapp/templates/",t)).data,updatePlatformWhatsAppTemplate:async(t,e)=>(await f.patch("/platform/whatsapp/templates/".concat(t,"/"),e)).data,async deletePlatformWhatsAppTemplate(t){await f.delete("/platform/whatsapp/templates/".concat(t,"/"))},listPlatformCampaigns:async t=>(await f.get("/platform/marketing/whatsapp/campaigns/",{params:t})).data,getPlatformCampaign:async t=>(await f.get("/platform/marketing/whatsapp/campaigns/".concat(t,"/"))).data,createPlatformCampaign:async t=>(await f.post("/platform/marketing/whatsapp/campaigns/",t)).data,updatePlatformCampaign:async(t,e)=>(await f.patch("/platform/marketing/whatsapp/campaigns/".concat(t,"/"),e)).data,async deletePlatformCampaign(t){await f.delete("/platform/marketing/whatsapp/campaigns/".concat(t,"/"))},launchPlatformCampaign:async t=>(await f.post("/platform/marketing/whatsapp/campaigns/".concat(t,"/launch/"))).data,pausePlatformCampaign:async t=>(await f.post("/platform/marketing/whatsapp/campaigns/".concat(t,"/pause/"))).data,resumePlatformCampaign:async t=>(await f.post("/platform/marketing/whatsapp/campaigns/".concat(t,"/resume/"))).data,cancelPlatformCampaign:async t=>(await f.post("/platform/marketing/whatsapp/campaigns/".concat(t,"/cancel/"))).data,getPlatformCampaignProgress:async t=>(await f.get("/platform/marketing/whatsapp/campaigns/".concat(t,"/progress/"))).data,listPlatformCampaignRecipients:async(t,e)=>(await f.get("/platform/marketing/whatsapp/campaigns/".concat(t,"/recipients/"),{params:e})).data,previewMarketingAudience:async t=>(await f.post("/platform/marketing/whatsapp/audience/preview/",{filter_json:t})).data,searchMarketingUsers:async t=>(await f.get("/platform/marketing/whatsapp/users/search/",{params:{q:t}})).data,lookupMarketingUsers:async t=>0===t.length?{results:[]}:(await f.get("/platform/marketing/whatsapp/users/search/",{params:{ids:t.join(",")}})).data,listPlatformSuppressions:async t=>(await f.get("/platform/marketing/whatsapp/suppressions/",{params:t})).data,addPlatformSuppression:async t=>(await f.post("/platform/marketing/whatsapp/suppressions/",t)).data,async deletePlatformSuppression(t){await f.delete("/platform/marketing/whatsapp/suppressions/".concat(t,"/"))},listMarketingTokens:async()=>(await f.get("/platform/marketing/whatsapp/tokens/")).data,previewMarketingRender:async t=>(await f.post("/platform/marketing/whatsapp/render-preview/",t)).data,listContentFlags:async t=>(await f.get("/platform/moderation/flags/",{params:t})).data,getContentFlag:async t=>(await f.get("/platform/moderation/flags/".concat(t,"/"))).data,reviewContentFlag:async(t,e)=>(await f.post("/platform/moderation/flags/".concat(t,"/review/"),e)).data,reinstateContentFlagProduct:async t=>(await f.post("/platform/moderation/flags/".concat(t,"/reinstate-product/"))).data,listBlocklistTerms:async t=>(await f.get("/platform/moderation/blocklist/",{params:t})).data,createBlocklistTerm:async t=>(await f.post("/platform/moderation/blocklist/",t)).data,updateBlocklistTerm:async(t,e)=>(await f.patch("/platform/moderation/blocklist/".concat(t,"/"),e)).data,async deleteBlocklistTerm(t){await f.delete("/platform/moderation/blocklist/".concat(t,"/"))},scanProduct:async t=>(await f.post("/platform/moderation/scan/product/".concat(t,"/"))).data,getModerationStats:async()=>(await f.get("/platform/moderation/stats/")).data,getKnowledgeArticles:async t=>(await f.get("/knowledge-base/articles/",{params:t})).data,getKnowledgeArticle:async t=>(await f.get("/knowledge-base/articles/".concat(t,"/"))).data,createKnowledgeArticle:async t=>(await f.post("/knowledge-base/articles/",t)).data,updateKnowledgeArticle:async(t,e)=>(await f.patch("/knowledge-base/articles/".concat(t,"/"),e)).data,async deleteKnowledgeArticle(t){await f.delete("/knowledge-base/articles/".concat(t,"/"))},generateKnowledgeArticleEmbedding:async t=>(await f.post("/knowledge-base/articles/".concat(t,"/generate_embedding/"))).data,reindexKnowledgeArticles:async()=>(await f.post("/knowledge-base/articles/reindex-all/")).data,seedKnowledgeBaseline:async t=>(await f.post("/knowledge-base/articles/seed-baseline/",null!=t?t:{})).data,exportKnowledgeBase:async t=>(await f.get("/knowledge-base/articles/export/",{params:t,responseType:"blob"}
1)).data,async importKnowledgeBase(t,e){var s;let a=new FormData;return a.append("file",t),a.append("mode",e.mode),a.append("skip_embed",String(null!==(s=e.skip_embed)&&void 0!==s&&s)),(await f.post("/knowledge-base/articles/import/",a,{headers:{"Content-Type":"multipart/form-data"}})).data},getKnowledgeDocuments:async t=>(await f.get("/knowledge-base/documents/",{params:t})).data,getKnowledgeDocument:async t=>(await f.get("/knowledge-base/documents/".concat(t,"/"))).data,async uploadKnowledgeDocument(t,e){let s=new FormData;return s.append("file",t),s.append("title",e.title),s.append("default_category",e.default_category),(await f.post("/knowledge-base/documents/",s,{headers:{"Content-Type":"multipart/form-data"}})).data},reprocessKnowledgeDocument:async t=>(await f.post("/knowledge-base/documents/".concat(t,"/reprocess/"))).data,getKnowledgeStats:async()=>(await f.get("/knowledge-base/stats/")).data,getKnowledgeRetrievalMetrics:async()=>(await f.get("/knowledge-base/retrieval-metrics/")).data,testKnowledgeRetrieval:async t=>(await f.post("/knowledge-base/test-retrieval/",t)).data,getStoreCustomers:async(t,e)=>(await f.get("/platform/stores/".concat(t,"/customers/"),{params:e})).data,sendStoreCustomerPasswordReset:async(t,e)=>(await f.post("/platform/stores/".concat(t,"/customers/").concat(e,"/send-password-reset/"))).data,testKnowledgeAgent:async t=>(await f.post("/knowledge-base/test-agent/",t)).data}),this.storefrontMethods=(this.client,M=this.storefrontClient,{getStorefrontStore:async t=>(await M.get("/storefront/api/v1/".concat(t,"/store/"))).data,getStorefrontStoreByDomain:async t=>(await M.get("/storefront/api/v1/domain/".concat(t,"/store/"))).data,getStorefrontProducts:async(t,e)=>(await M.get("/storefront/api/v1/".concat(t,"/products/"),{params:e})).data,getStorefrontProduct:async(t,e)=>(await M.get("/storefront/api/v1/".concat(t,"/products/").concat(e,"/"))).data,getStorefrontFeaturedProducts:async t=>(await M.get("/storefront/api/v1/".concat(t,"/products/featured/"))).data,getStorefrontCategories:async t=>(await M.get("/storefront/api/v1/".concat(t,"/categories/"))).data,getStorefrontCategory:async(t,e)=>(await M.get("/storefront/api/v1/".concat(t,"/categories/").concat(e,"/"))).data,async getStorefrontCart(t,e){let s={};return e&&(s["X-Session-ID"]=e),(await M.get("/storefront/api/v1/".concat(t,"/cart/"),{headers:s})).data},async getCart(t,e){let s={};return e&&(s["X-Session-ID"]=e),(await M.get("/storefront/api/v1/".concat(t,"/cart/"),{headers:s})).data},async addToCart(t,e,s){let a,i;"string"==typeof e?(a=e,i=s):(i=e,a=s);let o={};return a&&(o["X-Session-ID"]=a),(await M.post("/storefront/api/v1/".concat(t,"/cart/add/"),i,{headers:o})).data},async updateCartItem(t,e,s,a){let i,o,r;"string"==typeof s?(i=e,o=s,r="number"==typeof a?{quantity:a}:{quantity:a.quantity}):(o=e,r=s,i=a);let n={};return i&&(n["X-Session-ID"]=i),(await M.patch("/storefront/api/v1/".concat(t,"/cart/items/").concat(o,"/"),r,{headers:n})).data},async removeFromCart(t,e,s){let a={};return s&&(a["X-Session-ID"]=s),(await M.delete("/storefront/api/v1/".concat(t,"/cart/items/").concat(e,"/"),{headers:a})).data},async removeCartItem(t,e,s){let a={};return e&&(a["X-Session-ID"]=e),(await M.delete("/storefront/api/v1/".concat(t,"/cart/items/").concat(s,"/"),{headers:a})).data},async clearCart(t,e){let s={};return e&&(s["X-Session-ID"]=e),(await M.delete("/storefront/api/v1/".concat(t,"/cart/"),{headers:s})).data},async applyDiscountCode(t,e,s){let a,i;void 0!==s?(a=e,i=s):i=e;let o={};return a&&(o["X-Session-ID"]=a),(await M.post("/storefront/api/v1/".concat(t,"/cart/apply-discount/"),{code:i},{headers:o})).data},async removeDiscountCode(t,e){let s={};return e&&(s["X-Session-ID"]=e),(await M.post("/storefront/api/v1/".concat(t,"/cart/remove-discount/"),{},{headers:s})).data},async checkout(t,e,s){let a={};return e&&(a["X-Session-ID"]=e),(await M.post("/storefront/api/v1/".concat(t,"/checkout/"),s,{headers:a})).data},getShippingMethods:async t=>(await M.get("/storefront/api/v1/".concat(t,"/checkout/shipping-methods/"))).data,getPaymentMethods:async t=>(await M.get("/storefront/api/v1/".concat(t,"/checkout/payment-methods/"))).data,async createOrder(t,e,s){let a={};return s&&(a["X-Session-ID"]=s),(await M.post("/storefront/api/v1/".concat(t,"/checkout/"),e,{headers:a})).data},initializePayment:async(t,e,s)=>(await M.post("/storefront/api/v1/".concat(t,"/checkout/").concat(e,"/pay/"),s)).data,verifyPayment:async(t,e,s)=>(await M.get("/storefront/api/v1/".concat(t,"/checkout/").concat(e,"/verify/?reference=").concat(s))).data,trackOrder:async(t,e)=>(await M.get("/storefront/api/v1/".concat(t,"/orders/").concat(e,"/track/"))).data,getPublicPaymentOrder:
1async(t,e,s)=>(await M.get("/storefront/api/v1/".concat(t,"/orders/").concat(e,"/pay/").concat(s,"/"))).data,initializePublicPayment:async(t,e,s,a)=>(await M.post("/storefront/api/v1/".concat(t,"/orders/").concat(e,"/pay/").concat(s,"/"),a)).data,async uploadPaymentProof(t,e,s,a){let i=new FormData;return i.append("file",a),i.append("order_number",e),i.append("token",s),(await M.post("/storefront/api/v1/".concat(t,"/orders/").concat(e,"/pay/").concat(s,"/upload-proof/"),i,{headers:{"Content-Type":"multipart/form-data"}})).data},getPaymentInfo:async(t,e,s)=>(await M.get("/storefront/api/v1/".concat(t,"/orders/").concat(e,"/pay/").concat(s,"/upload-proof/"))).data,getStorefrontVendors:async(t,e)=>(await M.get("/storefront/api/v1/".concat(t,"/vendors/"),{params:e})).data,getStorefrontVendor:async(t,e)=>(await M.get("/storefront/api/v1/".concat(t,"/vendors/").concat(e,"/"))).data,getStorefrontVendorProducts:async(t,e,s)=>(await M.get("/storefront/api/v1/".concat(t,"/vendors/").concat(e,"/products/"),{params:s})).data,async getWishlist(t,e){let s={};return e&&(s["X-Session-ID"]=e),(await M.get("/storefront/api/v1/".concat(t,"/wishlist/"),{headers:s})).data},async addToWishlist(t,e,s){let a={};return s&&(a["X-Session-ID"]=s),(await M.post("/storefront/api/v1/".concat(t,"/wishlist/add/"),{product_id:e},{headers:a})).data},async removeFromWishlist(t,e,s){let a={};return s&&(a["X-Session-ID"]=s),(await M.delete("/storefront/api/v1/".concat(t,"/wishlist/").concat(e,"/"),{headers:a})).data},async checkWishlistItem(t,e,s){let a={};return s&&(a["X-Session-ID"]=s),(await M.get("/storefront/api/v1/".concat(t,"/wishlist/check/").concat(e,"/"),{headers:a})).data},mergeWishlist:async(t,e)=>(await M.post("/storefront/api/v1/".concat(t,"/wishlist/merge/"),{session_id:e})).data,async getCustomerWishlist(t,e){let s={};return e&&(s["X-Session-ID"]=e),(await M.get("/storefront/api/v1/".concat(t,"/wishlist/"),{headers:s})).data},async customerLogin(t,e,s,a){let i={};return a&&(i["X-Session-ID"]=a),(await M.post("/storefront/api/v1/".concat(t,"/auth/login/"),{email:e,password:s},{headers:i})).data},customerLogout:async t=>(await M.post("/storefront/api/v1/".concat(t,"/auth/logout/"))).data,async customerRegister(t,e,s){let a={};return s&&(a["X-Session-ID"]=s),(await M.post("/storefront/api/v1/".concat(t,"/auth/register/"),e,{headers:a})).data},getCustomerProfile:async t=>(await M.get("/storefront/api/v1/".concat(t,"/account/"))).data,updateCustomerProfile:async(t,e)=>(await M.patch("/storefront/api/v1/".concat(t,"/account/"),e)).data,getCustomerOrders:async(t,e)=>(await M.get("/storefront/api/v1/".concat(t,"/account/orders/"),{params:e})).data,getCustomerOrder:async(t,e)=>(await M.get("/storefront/api/v1/".concat(t,"/account/orders/").concat(e,"/"))).data,getCustomerAddresses:async t=>(await M.get("/storefront/api/v1/".concat(t,"/account/addresses/"))).data,createCustomerAddress:async(t,e)=>(await M.post("/storefront/api/v1/".concat(t,"/account/addresses/"),e)).data,updateCustomerAddress:async(t,e,s)=>(await M.patch("/storefront/api/v1/".concat(t,"/account/addresses/").concat(e,"/"),s)).data,async deleteCustomerAddress(t,e){await M.delete("/storefront/api/v1/".concat(t,"/account/addresses/").concat(e,"/"))},setDefaultAddress:async(t,e,s)=>(await M.post("/storefront/api/v1/".concat(t,"/account/addresses/").concat(e,"/set-default/"),{type:s})).data,getCustomerInvoices:async(t,e)=>(await M.get("/storefront/api/v1/".concat(t,"/account/invoices/"),{params:e})).data,downloadCustomerInvoice:async(t,e)=>(await M.get("/storefront/api/v1/".concat(t,"/account/invoices/").concat(e,"/download/"))).data,sendCustomerInvoice:async(t,e,s)=>(await M.post("/storefront/api/v1/".concat(t,"/account/invoices/").concat(e,"/send/"),{email:s})).data,getVendorProgramInfo:async t=>(await M.get("/storefront/api/v1/".concat(t,"/vendors/program/"))).data,submitVendorApplication:async(t,e)=>(await M.post("/storefront/api/v1/".concat(t,"/vendors/program/apply/"),e)).data,submitContactForm:async(t,e)=>(await M.post("/storefront/api/v1/".concat(t,"/contact/"),e)).data,customerCheckEmail:async(t,e)=>(await M.post("/storefront/api/v1/".concat(t,"/auth/check-email/"),{email:e})).data,customerRequestPasswordReset:async(t,e)=>(await M.post("/storefront/api/v1/".concat(t,"/auth/password-reset/"),{email:e})).data,customerResetPassword:async(t,e,s)=>(await M.post("/storefront/api/v1/".concat(t,"/auth/password-reset/confirm/"),{token:e,password:s})).data,customerConfirmPasswordReset:async(t,e,s,a)=>(await M.post("/storefront/api/v1/".concat(t,"/auth/password-reset/confirm/"),{token:e,password:s,password_confirm:a})).data,getDigitalLibrary:async t=>(await M.get("/storefront/api/v1/".concat(t,"/digital-library/"))).data,getDigitalDownloadUrl:async(t,e)=>(await M.get("/storefront/api/v1/".concat(t,"/digital-library/").concat(e,"/download/"))).data,getGuestDigitalDownload:async(t,e)=>(await M.get("/storefront/api/v1/".concat(t,"/download/").concat(e,"/"))).data,resendDigitalDeliveryEmail:async(t,e,s)=>(await M.post("/storefront/api/v1/".concat(t,"/orders/").concat(e,"/resend-digital-delivery/"),{email:s})).data,getOrderDigitalFiles:async(t,e)=>(await M.get("/storefront/api/v1/".concat(t,"/orders/").concat(e,"/digital-files/"))).data,validateCartRecoveryToken:async(t,e)=>(await M.get("/storefront/api/v1/".concat(t,"/cart/recover/"),{params:{token:e}})).data,async updateCartCheckoutInfo(t,e,s){let a={};e&&(a["X-Session-ID"]=e),await M.patch("/storefront/api/v1/".concat(t,"/cart/checkout-info/"),s,{headers:a})}}),this.uploadMethods=function(t,e){let s={"Content-Type":"multipart/form-data"};return{async uploadFile(e,a){let i="video"===a?m.VIDEO_TIMEOUT:m.IMAGE_TIMEOUT;return g(async()=>{var o,r,n,d;let h=new FormData;h.append("file",e);let c="/uploads/files/";"image"===a?c="/uploads/images/":"video"===a&&(c="/uploads/products/videos/");let l=(await t.post(c,h,{timeout:i,headers:s})).data;return{url:l.url||(null===(o=l.original)||void 0===o?void 0:o.url),filename:l.filename||(null===(r=l.original)||void 0===r?void 0:r.filename),size:l.size||(null===(n=l.original)||void 0===n?void 0:n.size),content_type:l.content_type||(null===(d=l.original)||void 0===d?void 0:d.content_type)}})},uploadImage:async(e,a,i)=>g(async()=>{var o,r;let n=new FormData;n.append("file",e),a&&n.append("category",a),i&&n.append("image_type",i);let d=(await t.post("/uploads/images/",n,{timeout:m.IMAGE_TIMEOUT,headers:s})).data;return{success:!0,url:(null===(o=d.original)||void 0===o?void 0:o.url)||d.url,original:d.original,filename:(null===(r=d.original)||void 0===r?void 0:r.filename)||d.filename}}),uploadBrandingImage:async(e,a)=>g(async()=>{let i=new FormData;return i.append("file",e),i.append("type",a),{success:!0,url:(await t.post("/uploads/branding/",i,{timeout:m.IMAGE_TIMEOUT,headers:s})).data.url}}),uploadStoreImage:async(e,a,i)=>g(async()=>{let o=new FormData;return o.append("file",a),o.append("type",i),(await t.post("/stores/".concat(e,"/upload/"),o,{timeout:m.IMAGE_TIMEOUT,headers:s})).data}),uploadProductImage:async(e,a,i)=>g(async()=>{let o=new FormData;if(!(e instanceof File))return o.append("file",a),void 0!==i&&o.append("is_primary",String(i)),(await t.post("/products/".concat(e,"/images/"),o,{timeout:m.IMAGE_TIMEOUT,headers:s})).data;{var r;o.append("file",e);let a=(await t.post("/uploads/products/images/",o,{timeout:m.IMAGE_TIMEOUT,headers:s})).data;return{success:!0,url:(null===(r=a.original)||void 0===r?void 0:r.url)||a.url}}}),async deleteProductImage(e,s){await t.delete("/products/".concat(e,"/images/").concat(s,"/"))},uploadProductVideo:async e=>g(async()=>{let a=new FormData;return a.append("file",e),(await t.post("/uploads/products/videos/",a,{timeout:m.VIDEO_TIMEOUT,headers:s})).data}),async reorderProductImages(e,s){await t.post("/products/".concat(e,"/images/reorder/"),{image_ids:s})},async setProductImagePrimary(e,s){await t.post("/products/".concat(e,"/images/").concat(s,"/set-primary/"))},uploadCategoryImage:async(e,a)=>g(async()=>{let i=new FormData;return i.append("file",a),(await t.post("/products/categories/".concat(e,"/upload/"),i,{timeout:m.IMAGE_TIMEOUT,headers:s})).data}),uploadVendorImage:async(e,a,i)=>g(async()=>{let o=new FormData;return o.append("file",a),o.append("type",i),(await t.post("/vendors/".concat(e,"/upload/"),o,{timeout:m.IMAGE_TIMEOUT,headers:s})).data}),visualSearch:async(a,i)=>g(async()=>{let o=new FormData;o.append("image",i);let r=e?"/storefront/api/v1/".concat(a,"/ai/visual-search/"):"/storefront/api/v1/".concat(a,"/ai/visual-search/").replace("/api/v1","");return(await (e||t).post(r,o,{timeout:m.IMAGE_TIMEOUT,headers:s})).data}),async visualSearchByUrl(s,a){let i=e?"/storefront/api/v1/".concat(s,"/ai/visual-search/"):"/storefront/api/v1/".concat(s,"/ai/visual-search/").replace("/api/v1","");return(await (e||t).post(i,{image_url:a})).data},getUploadErrorMessage:u,getImageEnhancePresets:async()=>(await t.get("/uploads/image-enhance/presets/")).data,enhanceImage:async e=>g(async()=>{try{return(await t.post("/uploads/image-enhance/",e,{timeout:2*m.IMAGE_TIMEOUT})).data}catch(e){var s,a,i,o,r,n,d,h;let t=null===(s=e.response)||void 0===s?void 0:s.data;if((null===(a=e.response)||void 0===a?void 0:a.status)===403&&(null==t?void 0:t.error_type)==="subscription_limit")return{success:!1,error:String(null!==(i=t.error)&&void 0!==i?i:"Limit reached"),limit:{limit_type:String(null!==(o=t.limit_type)&&void 0!==o?o:"unknown"),limit:null!==(r=t.limit)&&void 0!==r?r:null,current_usage:null!==(n=t.current_usage)&&void 0!==n?n:null,retry_after_seconds:null!==(d=t.retry_after_seconds)&&void 0!==d?d:null,retry_at:null!==(h=t.retry_at)&&void 0!==h?h:null}};throw e}}
1),removeBackground:async e=>g(async()=>(await t.post("/uploads/image-enhance/",{image_url:e,preset:"transparent"},{timeout:m.IMAGE_TIMEOUT})).data),applyBackgroundRemoval:async(e,s)=>g(async()=>(await t.post("/products/images/".concat(e,"/apply-bg-removal/"),{processed_url:s})).data),revertImage:async e=>g(async()=>(await t.post("/products/images/".concat(e,"/revert/"))).data)}}(this.client,this.storefrontClient),this.logisticsMethods=function(t,e){let s=async t=>{e?(await e.setAuthTokens(t.access,t.refresh),t.logistics_company_id&&await e.set(i.CURRENT_LOGISTICS_COMPANY_ID,t.logistics_company_id),t.logistics_company_slug&&await e.set(i.CURRENT_LOGISTICS_COMPANY_SLUG,t.logistics_company_slug)):(localStorage.setItem("access_token",t.access),localStorage.setItem("refresh_token",t.refresh),t.logistics_company_id&&localStorage.setItem("current_logistics_company_id",t.logistics_company_id),t.logistics_company_slug&&localStorage.setItem("current_logistics_company_slug",t.logistics_company_slug))};return{async logisticsLogin(e,a,i){let o=await t.post("/logistics/auth/login/",{email:e,password:a,company_id:i});return await s(o.data),o.data},async logisticsRefreshToken(e){let a=await t.post("/logistics/auth/refresh/",{refresh:e});return await s(a.data),a.data},async switchLogisticsCompany(e){let a=await t.post("/logistics/auth/switch-company/",{company_id:e});return await s(a.data),a.data},getLogisticsCompanies:async()=>(await t.get("/logistics/companies/")).data,createLogisticsCompany:async e=>(await t.post("/logistics/companies/",e)).data,getLogisticsCompany:async e=>(await t.get("/logistics/companies/".concat(e,"/"))).data,updateLogisticsCompany:async(e,s)=>(await t.patch("/logistics/companies/".concat(e,"/"),s)).data,submitLogisticsApplication:async e=>(await t.post("/logistics/companies/".concat(e,"/submit/"))).data,getLogisticsCompanyLimits:async e=>(await t.get("/logistics/companies/".concat(e,"/limits/"))).data,async getAddressAutocomplete(e,s){let a=new URLSearchParams({query:e});return(null==s?void 0:s.country)&&a.append("country",s.country),(null==s?void 0:s.limit)&&a.append("limit",String(s.limit)),(await t.get("/logistics/geocoding/autocomplete/?".concat(a))).data},geocodeAddress:async e=>(await t.post("/logistics/geocoding/geocode/",e)).data,reverseGeocode:async(e,s)=>(await t.get("/logistics/geocoding/reverse/?lat=".concat(e,"&lng=").concat(s))).data,getLogisticsMembers:async()=>(await t.get("/logistics/members/")).data,inviteLogisticsMember:async e=>(await t.post("/logistics/members/",e)).data,validateLogisticsInvitation:async e=>(await t.get("/logistics/public/invitations/".concat(e,"/validate/"))).data,acceptLogisticsInvitation:async(e,s)=>(await t.post("/logistics/public/invitations/".concat(e,"/accept/"),s)).data,getLogisticsInvitations:async()=>(await t.get("/logistics/invitations/")).data,async resendLogisticsInvitation(e){await t.post("/logistics/invitations/".concat(e,"/resend/"))},async cancelLogisticsInvitation(e){await t.delete("/logistics/invitations/".concat(e,"/"))},getLogisticsMember:async e=>(await t.get("/logistics/members/".concat(e,"/"))).data,updateLogisticsMember:async(e,s)=>(await t.patch("/logistics/members/".concat(e,"/"),s)).data,async removeLogisticsMember(e){await t.delete("/logistics/members/".concat(e,"/"))},getLogisticsRiders:async e=>(await t.get("/logistics/members/riders/",{params:e})).data,getLogisticsCoverageAreas:async()=>(await t.get("/logistics/coverage/")).data,createLogisticsCoverageArea:async e=>(await t.post("/logistics/coverage/",e)).data,updateLogisticsCoverageArea:async(e,s)=>(await t.patch("/logistics/coverage/".concat(e,"/"),s)).data,async deleteLogisticsCoverageArea(e){await t.delete("/logistics/coverage/".concat(e,"/"))},getLogisticsPricingRules:async()=>(await t.get("/logistics/pricing/")).data,createLogisticsPricingRule:async e=>(await t.post("/logistics/pricing/",e)).data,updateLogisticsPricingRule:async(e,s)=>(await t.patch("/logistics/pricing/".concat(e,"/"),s)).data,async deleteLogisticsPricingRule(e){await t.delete("/logistics/pricing/".concat(e,"/"))},async calculateLogisticsRate(e){let s=await t.post("/logistics/pricing/calculate/",e);return Array.isArray(s.data)?s.data:[s.data]},getLogisticsShipments:async e=>(await t.get("/logistics/shipments/",{params:e})).data,createLogisticsShipment:async e=>(await t.post("/logistics/shipments/",e)).data,getLogisticsShipment:async e=>(await t.get("/logistics/shipments/".concat(e,"/"))).data,updateLogisticsShipmentStatus:async(e,s)=>(await t.post("/logistics/shipments/".concat(e,"/status-update/"),s)).data,assignLogisticsRider:async(e,s)=>(await t.post("/logistics/shipments/".concat(e,"/assign/"),{rider_id:s})).data,getLogisticsShipmentStats:async()=>(await t.get("/logistics/shipments/stats/")).data,getLogisticsFinanceAnalytics:async e=>(await t.get("/logistics/finance/analytics/",{params:e?{days:e}:{}})).data,getLogisticsDeliveryRequests:async e=>(await t.get("/logistics/delivery-requests/",{params:e})).data,quoteLogisticsDeliveryRequest:async(e,s)=>(await t.post("/logistics/delivery-requests/".concat(e,"/quote/"),s)).data,acceptLogisticsDeliveryRequest:async(e,s)=>(await t.post("/logistics/delivery-requests/".concat(e,"/accept/"),{notes:s})).data,rejectLogisticsDeliveryRequest:async(e,s)=>(await t.post("/logistics/delivery-requests/".concat(e,"/reject/"),{reason:s})).data,getLogisticsSubscription:async()=>(await t.get("/logistics/companies/subscription/")).data,getLogisticsPlans:async()=>(await t.get("/logistics/platform/plans/public/")).data,getLogisticsSubscriptionPlans:async()=>(await t.get("/logistics/subscriptions/plans/")).data,logisticsSubscriptionCheckout:async(e,s,a)=>(await t.post("/logistics/subscriptions/checkout/",{plan_id:e,billing_cycle:s,callback_url:a})).data,logisticsSubscriptionCallback:async e=>(await t.get("/logistics/subscriptions/callback/",{params:{reference:e}})).data,getLogisticsCurrentSubscription:async()=>(await t.get("/logistics/subscriptions/current/")).data,async cancelLogisticsSubscription(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return(await t.post("/logistics/subscriptions/cancel/",{at_period_end:e})).data},reactivateLogisticsSubscription:async()=>(await t.post("/logistics/subscriptions/reactivate/")).data,changeLogisticsSubscriptionPlan:async(e,s)=>(await t.post("/logistics/subscriptions/change-plan/",{plan_id:e,billing_cycle:s})).data,getLogisticsSubscriptionManageLink:async()=>(await t.get("/logistics/subscriptions/manage-link/")).data,getLogisticsCompanyBranding:async e=>(await t.get("/logistics/companies/".concat(e,"/branding/"))).data,updateLogisticsCompanyBranding:async(e,s)=>(await t.patch("/logistics/companies/".concat(e,"/branding/"),s)).data,async uploadLogisticsCompanyImage(e,s,a){let i=new FormData;return i.append("file",s),i.append("type",a),(await t.post("/logistics/companies/".concat(e,"/upload-image/"),i,{headers:{"Content-Type":"multipart/form-data"}})).data},getLogisticsThemes:async()=>(await t.get("/logistics/themes/")).data,getLogisticsPickupPoints:async e=>(await t.get("/logistics/pickup-points/",{params:e})).data,getLogisticsPickupPoint:async e=>(await t.get("/logistics/pickup-points/".concat(e,"/"))).data,createLogisticsPickupPoint:async e=>(await t.post("/logistics/pickup-points/",e)).data,updateLogisticsPickupPoint:async(e,s)=>(await t.patch("/logistics/pickup-points/".concat(e,"/"),s)).data,async deleteLogisticsPickupPoint(e){await t.delete("/logistics/pickup-points/".concat(e,"/"))},toggleLogisticsPickupPointActive:async e=>(await t.post("/logistics/pickup-points/".concat(e,"/toggle-active/"))).data,getLogisticsPaymentMethods:async e=>(await t.get("/logistics/payment-methods/",{params:e})).data,getLogisticsPaymentMethod:async e=>(await t.get("/logistics/payment-methods/".concat(e,"/"))).data,createLogisticsPaymentMethod:async e=>(await t.post("/logistics/payment-methods/",e)).data,updateLogisticsPaymentMethod:async(e,s)=>(await t.patch("/logistics/payment-methods/".concat(e,"/"),s)).data,async deleteLogisticsPaymentMethod(e){await t.delete("/logistics/payment-methods/".concat(e,"/"))},toggleLogisticsPaymentMethodActive:async e=>(await t.post("/logistics/payment-methods/".concat(e,"/toggle-active/"))).data,reorderLogisticsPaymentMethods:async e=>(await t.post("/logistics/payment-methods/reorder/",{method_ids:e})).data,getLogisticsPaymentMethodTypes:async()=>(await t.get("/logistics/payment-methods/types/")).data,setupDefaultPaymentMethods:async()=>(await t.post("/logistics/payment-methods/setup-defaults/")).data,verifyLogisticsShipmentPayment:async(e,s)=>(await t.post("/logistics/shipments/".concat(e,"/verify-payment/"),s)).data,updateLogisticsPaymentStatus:async(e,s)=>(await t.post("/logistics/shipments/".concat(e,"/update-payment-status/"),s)).data,sendLogisticsInvoice:async(e,s)=>(await t.post("/logistics/shipments/".concat(e,"/send-invoice/"),s||{})).data,getPendingPaymentShipments:async()=>(await t.get("/logistics/shipments/pending-payments/")).data,trackLogisticsShipment:async e=>(await t.get("/logistics/public/track/".concat(e,"/"))).data,getPublicLogisticsCompany:async e=>(await t.get("/logistics/public/companies/".concat(e,"/"))).data,getPublicLogisticsRates:async(e,s)=>(await t.post("/logistics/public/companies/".concat(e,"/rates/"),s)).data,getPublicLogisticsCoverage:async e=>(await t.get("/logistics/public/companies/".concat(e,"/coverage/"))).data,getPublicLogisticsPickupPoints:async(e,s)=>(await t.get("/logistics/public/companies/".concat(e,"/pickup-points/"),{params:s})).data,getPublicLogisticsPaymentMethods:async e=>(await t.get("/logistics/public/companies/".concat(e,"/payment-methods/"))).data,getPlatformLogisticsDashboard:async()=>(await t.get("/logistics/platform/dashboard/")).data,getPlatformLogisticsCompanies:async e=>(await t.get("/logistics/platform/companies/",{params:e})).data,getPlatformLogisticsCompany:async e=>(await t.get("/logistics/platform/companies/".concat(e,"/"))).data,approveLogisticsCompany:async(e,s)=>(await t.post("/logistics/platform/companies/".concat(e,"/review/"),{action:"approve",reason:s})).data,rejectLogisticsCompany:async(e,s)=>(await t.post("/logistics/platform/companies/".concat(e,"/review/"),{action:"reject",reason:s})).data,suspendLogisticsCompany:async(e,s)=>(await t.post("/logistics/platform/companies/".concat(e,"/suspend/"),{reason:s})).data,reinstateLogisticsCompany:async(e,s)=>(await t.post("/logistics/platform/companies/".concat(e,"/unsuspend/"))).data,getPlatformLogisticsRiders:async e=>(await t.get("/logistics/platform/riders/",{params:e})).data,getPlatformLogisticsPlans:async()=>(await t.get("/logistics/platform/plans/")).data,createPlatformLogisticsPlan:async e=>(await t.post("/logistics/platform/plans/",e)).data,updatePlatformLogisticsPlan:async(e,s)=>(await t.patch("/logistics/platform/plans/".concat(e,"/"),s)).data,async deletePlatformLogisticsPlan(e){await t.delete("/logistics/platform/plans/".concat(e,"/"))},duplicatePlatformLogisticsPlan:async e=>
1(await t.post("/logistics/platform/plans/".concat(e,"/duplicate/"))).data,togglePlatformLogisticsPlanActive:async e=>(await t.post("/logistics/platform/plans/".concat(e,"/toggle-active/"))).data,togglePlatformLogisticsPlanFeatured:async e=>(await t.post("/logistics/platform/plans/".concat(e,"/toggle-featured/"))).data,getPlatformLogisticsThemes:async e=>(await t.get("/logistics/platform/themes/",{params:e})).data,getPlatformLogisticsTheme:async e=>(await t.get("/logistics/platform/themes/".concat(e,"/"))).data,createPlatformLogisticsTheme:async e=>(await t.post("/logistics/platform/themes/",e)).data,updatePlatformLogisticsTheme:async(e,s)=>(await t.patch("/logistics/platform/themes/".concat(e,"/"),s)).data,async deletePlatformLogisticsTheme(e){await t.delete("/logistics/platform/themes/".concat(e,"/"))},getPlatformLogisticsFronts:async e=>(await t.get("/logistics/platform/fronts/",{params:e})).data,async riderLogin(e,a){let i=await t.post("/logistics/rider/login/",{email:e,password:a});return await s(i.data),i.data},getRiderProfile:async()=>(await t.get("/logistics/rider/profile/")).data,updateRiderAvailability:async e=>(await t.post("/logistics/rider/availability/",{is_available:e})).data,updateRiderLocation:async e=>(await t.post("/logistics/rider/location/",e)).data,getRiderShipments:async e=>(await t.get("/logistics/rider/deliveries/",{params:e?{status:e}:{}})).data,getRiderShipment:async e=>(await t.get("/logistics/rider/deliveries/".concat(e,"/"))).data,getShipmentEvents:async e=>(await t.get("/logistics/rider/deliveries/".concat(e,"/events/"))).data,updateRiderShipmentStatus:async(e,s,a)=>(await t.post("/logistics/rider/deliveries/".concat(e,"/update-status/"),{status:s,...a})).data,submitProofOfDelivery:async(e,s)=>(await t.post("/logistics/rider/deliveries/".concat(e,"/proof-of-delivery/"),s)).data,getRiderDeliveryHistory:async()=>(await t.get("/logistics/rider/deliveries/history/")).data,customerSignup:async(e,s)=>(await t.post("/logistics/public/companies/".concat(e,"/customers/signup/"),s)).data,logisticsCustomerLogin:async(e,s,a)=>(await t.post("/logistics/public/companies/".concat(e,"/customers/login/"),{email:s,password:a})).data,async logisticsGetCustomerProfile(e){let s=localStorage.getItem("customer_access_token");return(await t.get("/logistics/public/companies/".concat(e,"/customers/me/"),{headers:s?{Authorization:"Bearer ".concat(s)}:void 0})).data},async logisticsUpdateCustomerProfile(e,s){let a=localStorage.getItem("customer_access_token");return(await t.patch("/logistics/public/companies/".concat(e,"/customers/me/"),s,{headers:a?{Authorization:"Bearer ".concat(a)}:void 0})).data},async logisticsGetCustomerOrders(e){let s=localStorage.getItem("customer_access_token");return(await t.get("/logistics/public/companies/".concat(e,"/customers/orders/"),{headers:s?{Authorization:"Bearer ".concat(s)}:void 0})).data},async addCustomerAddress(e,s){let a=localStorage.getItem("customer_access_token");return(await t.post("/logistics/public/companies/".concat(e,"/customers/addresses/"),s,{headers:a?{Authorization:"Bearer ".concat(a)}:void 0})).data},async removeCustomerAddress(e,s){let a=localStorage.getItem("customer_access_token");return(await t.delete("/logistics/public/companies/".concat(e,"/customers/addresses/").concat(s,"/"),{headers:a?{Authorization:"Bearer ".concat(a)}:void 0})).data},initializeShipmentPayment:async(e,s)=>(await t.post("/logistics/public/companies/".concat(e,"/initialize-payment/"),s)).data,verifyShipmentPayment:async(e,s)=>(await t.get("/logistics/public/companies/".concat(e,"/verify-payment/"),{params:{reference:s}})).data,createPublicShipment:async(e,s)=>(await t.post("/logistics/public/companies/".concat(e,"/create-shipment/"),s)).data}}(this.client,this.storageHelper),this.domainMethods=(y=this.client,{searchDomains:async t=>(await y.get("/domains/search/",{params:{q:t}})).data,checkDomainAvailability:async t=>(await y.get("/domains/check/".concat(t,"/"))).data,getDomainSuggestions:async(t,e)=>(await y.get("/domains/suggestions/",{params:{keyword:t,max:e}})).data,getDomainPricing:async()=>(await y.get("/domains/pricing/")).data,initiateDomainPurchase:async t=>(await y.post("/domains/purchases/",t)).data,async completeDomainPurchase(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"PAYSTACK";return(await y.post("/domains/purchases/".concat(t,"/complete/"),{reference:e,provider:s})).data},getDomainPurchases:async t=>(await y.get("/domains/purchases/",{params:t})).data,getDomainPurchase:async t=>
1(await y.get("/domains/purchases/".concat(t,"/"))).data,async initiateDomainRenewal(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;return(await y.post("/domains/purchases/".concat(t,"/renew/"),{years:e,callback_url:s})).data},async completeDomainRenewal(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"PAYSTACK";return(await y.post("/domains/purchases/".concat(t,"/complete-renewal/"),{reference:e,provider:s})).data},configureDomainDNS:async t=>(await y.post("/domains/purchases/".concat(t,"/configure-dns/"))).data,toggleDomainAutoRenew:async t=>(await y.patch("/domains/purchases/".concat(t,"/toggle-auto-renew/"))).data,getDomainAdminDashboard:async()=>(await y.get("/platform/domains/dashboard/")).data,getDomainAdminSettings:async()=>(await y.get("/platform/domains/settings/")).data,updateDomainAdminSettings:async t=>(await y.patch("/platform/domains/settings/",t)).data,async updateDomainExchangeRate(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(await y.post("/platform/domains/settings/exchange-rate/",{usd_to_ngn_rate:t,recalculate_prices:e})).data},syncExchangeRateOnline:async()=>(await y.post("/platform/domains/settings/sync-rate/")).data,async updateDomainMarkup(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(await y.post("/platform/domains/settings/markup/",{markup_percent:t,recalculate_prices:e})).data},checkProviderBalance:async()=>(await y.get("/platform/domains/settings/balance/")).data,getDomainAdminPricing:async()=>(await y.get("/platform/domains/pricing/")).data,createDomainPricing:async t=>(await y.post("/platform/domains/pricing/",t)).data,updateDomainPricing:async(t,e)=>(await y.patch("/platform/domains/pricing/".concat(t,"/"),e)).data,async deleteDomainPricing(t){await y.delete("/platform/domains/pricing/".concat(t,"/"))},recalculateAllDomainPrices:async()=>(await y.post("/platform/domains/pricing/recalculate-all/")).data,syncDomainPricingFromProvider:async()=>(await y.post("/platform/domains/pricing/sync-from-provider/")).data,async uploadDomainPricingCSV(t){let e=new FormData;return e.append("file",t),(await y.post("/platform/domains/pricing/upload-csv/",e,{headers:{"Content-Type":"multipart/form-data"}})).data},getDomainAdminTransactions:async t=>(await y.get("/platform/domains/transactions/",{params:t})).data,completeDomainTransaction:async t=>(await y.post("/platform/domains/transactions/".concat(t,"/complete/"))).data,verifyDomainPayment:async(t,e)=>(await y.post("/platform/domains/transactions/".concat(t,"/verify-payment/"),{reference:e})).data,getDomainAdminPurchases:async t=>(await y.get("/platform/domains/all-purchases/",{params:t})).data,retryDomainRegistration:async t=>(await y.post("/platform/domains/all-purchases/".concat(t,"/retry/"))).data,configureDomainDns:async t=>(await y.post("/platform/domains/all-purchases/".concat(t,"/configure-dns/"))).data,adminPurchaseDomain:async t=>(await y.post("/platform/domains/admin-purchase/",t)).data,getDomainAdminPurchaseDetail:async t=>(await y.get("/platform/domains/all-purchases/".concat(t,"/"))).data,getDomainNameservers:async t=>(await y.get("/platform/domains/all-purchases/".concat(t,"/nameservers/"))).data,updateDomainNameservers:async(t,e)=>(await y.post("/platform/domains/all-purchases/".concat(t,"/nameservers/"),{nameservers:e})).data,getDomainContact:async t=>(await y.get("/platform/domains/all-purchases/".concat(t,"/contact/"))).data,updateDomainContact:async(t,e)=>(await y.post("/platform/domains/all-purchases/".concat(t,"/contact/"),e)).data,getDomainEppCode:async t=>(await y.get("/platform/domains/all-purchases/".concat(t,"/epp-code/"))).data,getDomainLockStatus:async t=>(await y.get("/platform/domains/all-purchases/".concat(t,"/lock/"))).data,updateDomainLockStatus:async(t,e)=>(await y.post("/platform/domains/all-purchases/".concat(t,"/lock/"),{locked:e})).data,syncDomainWithRegistry:async t=>(await y.post("/platform/domains/all-purchases/".concat(t,"/sync/"))).data}),this.posMethods=(b=this.client,{searchProducts:async t=>(await b.get("/pos/products/",{params:t})).data,getCategories:async()=>(await b.get("/pos/categories/")).data,searchCustomers:async t=>(await b.get("/pos/customers/",{params:t})).data,createOrder:async t=>(await b.post("/pos/orders/",t)).data,sendReceipt:async(t,e)=>(await b.post("/orders/".concat(t,"/invoice/send/"),{email:e})).data,generatePaymentLink:async t=>(await b.post("/orders/".concat(t,"/payment-link/"))).data}),this.paymentMethods=(w=this.client,{getStorePaymentConfigs:async()=>(await w.get("/payments/store-payment-configs/")).data,getAvailablePaymentProviders:async()=>(await w.get("/payments/store-payment-configs/available-providers/")).data,createStorePaymentConfig:async t=>(await w.post("/payments/store-payment-configs/",t)).data,updateStorePaymentConfig:async(t,e)=>(await w.patch("/payments/store-payment-configs/".concat(t,"/"),e)).data,async deleteStorePaymentConfig(t){await w.delete("/payments/store-payment-configs/".concat(t,"/"))},testStorePaymentCredentials:async t=>(await w.post("/payments/store-payment-configs/".concat(t,"/test-credentials/"))).data,getStripeConnectStatus:async()=>(await w.get("/payments/stripe-connect/")).data,startStripeOnboarding:async()=>(await w.post("/payments/stripe-connect/")).data,toggleStripeConnect:async t=>(await w.patch("/payments/stripe-connect/",{is_enabled:t})).data,getStripeDashboard:async()=>(await w.get("/payments/stripe-connect/dashboard/")).data,syncStripeStatus:async()=>(await w.post("/payments/stripe-connect/sync/")).data}),this.login=this.authMethods.login.bind(this.authMethods),this.googleAuth=this.authMethods.googleAuth.bind(this.authMethods),this.switchStore=this.authMethods.switchStore.bind(this.authMethods),this.register=this.authMethods.register.bind(this.authMethods),this.logout=this.authMethods.logout.bind(this.authMethods),this.exchangeImpersonationCode=this.authMethods.exchangeImpersonationCode.bind(this.authMethods),this.endImpersonation=this.authMethods.endImpersonation.bind(this.authMethods),this.requestPasswordReset=this.authMethods.requestPasswordReset.bind(this.authMethods),this.confirmPasswordReset=this.authMethods.confirmPasswordReset.bind(this.authMethods),this.verifyEmail=this.authMethods.verifyEmail.bind(this.authMethods),this.resendVerificationEmail=this.authMethods.resendVerificationEmail.bind(this.authMethods),this.getAuthSettings=this.authMethods.getAuthSettings.bind(this.authMethods),this.checkEmailAvailability=this.authMethods.checkEmailAvailability.bind(this.authMethods),this.changePassword=this.authMethods.changePassword.bind(this.authMethods),this.getCurrentUser=this.authMethods.getCurrentUser.bind(this.authMethods),this.updateCurrentUser=this.authMethods.updateCurrentUser.bind(this.authMethods),this.getUserContexts=this.authMethods.getUserContexts.bind(this.authMethods),this.requestEmailChange=this.authMethods.requestEmailChange.bind(this.authMethods),this.verifyEmailChange=this.authMethods.verifyEmailChange.bind(this.authMethods),this.cancelEmailChange=this.authMethods.cancelEmailChange.bind(this.authMethods),this.getEmailChangeStatus=this.authMethods.getEmailChangeStatus.bind(this.authMethods),this.listSessions=this.authMethods.listSessions.bind(this.authMethods),this.revokeSession=this.authMethods.revokeSession.bind(this.authMethods),this.revokeOtherSessions=this.authMethods.revokeOtherSessions.bind(this.authMethods),this.getLoginHistory=this.authMethods.getL
1oginHistory.bind(this.authMethods),this.getStores=this.storeMethods.getStores.bind(this.storeMethods),this.getStore=this.storeMethods.getStore.bind(this.storeMethods),this.createStore=this.storeMethods.createStore.bind(this.storeMethods),this.checkSlugAvailability=this.storeMethods.checkSlugAvailability.bind(this.storeMethods),this.updateStore=this.storeMethods.updateStore.bind(this.storeMethods),this.updateStoreSlug=this.storeMethods.updateStoreSlug.bind(this.storeMethods),this.deleteStore=this.storeMethods.deleteStore.bind(this.storeMethods),this.reactivateStore=this.storeMethods.reactivateStore.bind(this.storeMethods),this.getOnboardingStatus=this.storeMethods.getOnboardingStatus.bind(this.storeMethods),this.completeOnboardingStep=this.storeMethods.completeOnboardingStep.bind(this.storeMethods),this.saveSurveyData=this.storeMethods.saveSurveyData.bind(this.storeMethods),this.generateCategories=this.storeMethods.generateCategories.bind(this.storeMethods),this.getVendorSettings=this.storeMethods.getVendorSettings.bind(this.storeMethods),this.updateVendorSettings=this.storeMethods.updateVendorSettings.bind(this.storeMethods),this.get
1StoreRoles=this.storeMethods.getStoreRoles.bind(this.storeMethods),this.createStoreRole=this.storeMethods.createStoreRole.bind(this.storeMethods),this.getStoreRole=this.storeMethods.getStoreRole.bind(this.storeMethods),this.updateStoreRole=this.storeMethods.updateStoreRole.bind(this.storeMethods),this.deleteStoreRole=this.storeMethods.deleteStoreRole.bind(this.storeMethods),this.getAvailablePermissions=this.storeMethods.getAvailablePermissions.bind(this.storeMethods),this.getStoreInvitations=this.storeMethods.getStoreInvitations.bind(this.storeMethods),this.createStoreInvitation=this.storeMethods.createStoreInvitation.bind(this.storeMethods),this.cancelStoreInvitation=this.storeMethods.cancelStoreInvitation.bind(this.storeMethods),this.resendStoreInvitation=this.storeMethods.resendStoreInvitation.bind(this.storeMethods),this.validateInvitation=this.storeMethods.validateInvitation.bind(this.storeMethods),this.acceptInvitation=this.storeMethods.acceptInvitation.bind(this.storeMethods),this.getStoreMembers=this.storeMethods.getStoreMembers.bind(this.storeMethods),this.updateMemberRole=this.storeMethods.updateMemberRole.bind(this.storeMethods),this.removeMember=this.storeMethods.removeMember.bind(this.storeMethods),this.updateStoreTheme=this.storeMethods.updateStoreTheme.bind(this.storeMethods),this.getNotificationPreferences=this.storeMethods.getNotificationPreferences.bind(this.storeMethods),this.updateNotificationPreferences=this.storeMethods.updateNotificationPreferences.bind(this.storeMethods),this.getDomain=this.storeMethods.getDomain.bind(this.storeMethods),this.setDomain=this.storeMethods.setDomain.bind(this.storeMethods),this.getCustomDomains=this.storeMethods.getCustomDomains.bind(this.storeMethods),this.createCustomDomain=this.storeMethods.createCustomDomain.bind(this.storeMethods),this.deleteCustomDomain=this.storeMethods.deleteCustomDomain.bind(this.storeMethods),this.verifyCustomDomain=this.storeMethods.verifyCustomDomain.bind(this.storeMethods),this.checkCustomDomainDNS=this.storeMethods.checkCustomDomainDNS.bind(this.storeMethods),this.setCustomDomainPrimary=this.storeMethods.setCustomDomainPrimary.bind(this.storeMethods),this.getTaxSettings=this.storeMethods.getTaxSettings.bind(this.storeMethods),this.updateTaxSettings=this.storeMethods.updateTaxSettings.bind(this.storeMethods),this.calculateTax=this.storeMethods.calculateTax.bind(this.storeMethods),this.getPublicDomainSettings=this.storeMethods.getPublicDomainSettings.bind(this.storeMethods),this.generateSEO=this.storeMethods.generateSEO.bind(this.storeMethods),this.getProducts=this.productMethods.getProducts.bind(this.productMethods),this.getProduct=this.productMethods.getProduct.bind(this.productMethods),this.createProduct=this.productMethods.createProduct.bind(this.productMethods),this.updateProduct=this.productMethods.updateProduct.bind(this.productMethods),this.deleteProduct=this.productMethods.deleteProduct.bind(this.productMethods),this.analyzeProductImages=this.productMethods.analyzeProductImages.bind(this.productMethods),this.generateDescription=this.productMethods.generateDescription.bind(this.productMethods),this.getDigitalFiles=this.productMethods.getDigitalFiles.bind(this.productMethods),this.uploadDigitalFile=this.productMethods.uploadDigitalFile.bind(this.productMethods),this.updateDigitalFile=this.productMethods.updateDigitalFile.bind(this.productMethods),this.deleteDigitalFile=this.productMethods.deleteDigitalFile.bind(this.productMethods),this.getCategories=this.productMethods.getCategories.bind(this.productMethods),this.createCategory=this.productMethods.createCategory.bind(this.productMethods),this.getCategory=this.productMethods.getCategory.bind(this.productMethods),this.updateCategory=this.productMethods.updateCategory.bind(this.productMethods),this.deleteCategory=this.productMethods.deleteCategory.bind(this.productMethods),this.getOrders=this.orderMethods.getOrders.bind(this.orderMethods),this.getOrder=this.orderMethods.getOrder.bind(this.orderMethods),this.updateOrderStatus=this.orderMethods.updateOrderStatus.bind(this.orderMethods),this.updateOrder=this.orderMethods.updateOrder.bind(this.orderMethods),this.fulfillOrder=this.orderMethods.fulfillOrder.bind(this.orderMethods),this.cancelOrder=this.orderMethods.cancelOrder.bind(this.orderMethods),this.getOrderInvoice=this.orderMethods.getOrderInvoice.b
1ind(this.orderMethods),this.regenerateOrderInvoice=this.orderMethods.regenerateOrderInvoice.bind(this.orderMethods),this.sendOrderInvoice=this.orderMethods.sendOrderInvoice.bind(this.orderMethods),this.generatePaymentLink=this.orderMethods.generatePaymentLink.bind(this.orderMethods),this.getCustomers=this.orderMethods.getCustomers.bind(this.orderMethods),this.getCustomer=this.orderMethods.getCustomer.bind(this.orderMethods),this.getOrdersByCustomer=this.orderMethods.getOrdersByCustomer.bind(this.orderMethods),this.getOrdersByEmail=this.orderMethods.getOrdersByEmail.bind(this.orderMethods),this.getAdminShippingMethods=this.orderMethods.getAdminShippingMethods.bind(this.orderMethods),this.createShippingMethod=this.orderMethods.createShippingMethod.bind(this.orderMethods),this.getShippingMethod=this.orderMethods.getShippingMethod.bind(this.orderMethods),this.updateShippingMethod=this.orderMethods.updateShippingMethod.bind(this.orderMethods),this.deleteShippingMethod=this.orderMethods.deleteShippingMethod.bind(this.orderMethods),this.getAdminPaymentMethods=this.orderMethods.getAdminPaymentMethods.bind(this.orderMethods),this.createPaymentMethod=this.orderMethods.createPaymentMethod.bind(this.orderMethods),this.getPaymentMethod=this.orderMethods.getPaymentMethod.bind(this.orderMethods),this.updatePaymentMethod=this.orderMethods.updatePaymentMethod.bind(this.orderMethods),this.deletePaymentMethod=this.orderMethods.deletePaymentMethod.bind(this.orderMethods),this.getDiscountCodes=this.orderMethods.getDiscountCodes.bind(this.orderMethods),this.getDiscountCode=this.orderMethods.getDiscountCode.bind(this.orderMethods),this.createDiscountCode=this.orderMethods.createDiscountCode.bind(this.orderMethods),this.updateDiscountCode=this.orderMethods.updateDiscountCode.bind(this.orderMethods),this.deleteDiscountCode=this.orderMethods.deleteDiscountCode.bind(this.orderMethods),this.generateDiscountCode=this.orderMethods.generateDiscountCode.bind(this.orderMethods),this.getAdminCarts=this.orderMethods.getAdminCarts.bind(this.orderMethods),this.getAdminCartStats=this.orderMethods.getAdminCartStats.bind(this.orderMethods),this.getAdminCartDetail=this.orderMethods.getAdminCartDetail.bind(this.orderMethods),this.deleteAdminCart=this.orderMethods.deleteAdminCart.bind(this.orderMethods),this.getAdminOrderDigitalFiles=this.orderMethods.getOrderDigitalFiles.bind(this.orderMethods),this.resendAdminDigitalDelivery=this.orderMethods.resendDigitalDelivery.bind(this.orderMethods),this.issueDigitalDelivery=this.orderMethods.issueDigitalDelivery.bind(this.orderMethods),this.recoverCart=this.orderMethods.recoverCart.bind(this.orderMethods),this.recoverOrder=this.orderMethods.recoverOrder.bind(this.orderMethods),this.getUnpaidOrders=this.orderMethods.getUnpaidOrders.bind(this.orderMethods),this.getRecoveryAttempts=this.orderMethods.getRecoveryAttempts.bind(this.orderMethods),this.getRecoveryStats=this.orderMethods.getRecoveryStats.bind(this.orderMethods),this.getVendors=this.vendorMethods.getVendors.bind(this.vendorMethods),this.getVendor=this.vendorMethods.getVendor.bind(this.vendorMethods),this.getVendorProducts=this.vendorMethods.getVendorProducts.bind(this.vendorMethods),this.getVendorPayouts=this.vendorMethods.getVendorPayouts.bind(this.vendorMethods),this.updateVendorStatus=this.vendorMethods.updateVendorStatus.bind(this.vendorMethods),this.getVendorContext=this.vendorMethods.getVendorContext.bind(this.vendorMethods),this.getVendorSelf=this.vendorMethods.getVendorSelf.bind(this.vendorMethods),this.updateVendorSelf=this.vendorMethods.updateVendorSelf.bind(this.vendorMethods),this.getVendorSelfProducts=this.vendorMethods.getVendorSelfProducts.bind(this.vendorMethods),this.getVendorSelfOrders=this.vendorMethods.getVendorSelfOrders.bind(this.vendorMethods),this.getVendorSelfEarnings=this.vendorMethods.getVendorSelfEarnings.bind(this.vendorMethods),this.getVendorSelfStats=this.vendorMethods.getVendorSelfStats.bind(this.vendorMethods),this.approveVendor=this.vendorMethods.approveVendor.bind(this.vendorMethods),this.rejectVendor=this.vendorMethods.rejectVendor.bind(this.vendorMethods),this.suspendVendor=this.vendorMethods.suspendVendor.bind(this.vendorMethods),this.reinstateVendor=this.vendorMethods.reinstateVendor.bind(this.vendorMethods),this.getVendorInvitations=this.vendorMethods.getVendorInvitations.bind(this.vendorMethods),this.createVendorInvitation=this.vendorMethods.createVendorInvitation.bind(this.vendorMethods),this.cancelVendorInvitation=this.vendorMethods.cancelVendorInvitation.bind(this.vendorMethods),this.validateVendorInvitation=this.vendorMethods.validateVendorInvitation.bind(this.vendorMethods),this.acceptVendorInvitation=this.vendorMethods.acceptVendorInvitation.bind(this.vendorMethods),this.getCommissionRules=this.vendorMethods.getCommissionRules.bind(this.vendorMethods),this.createCommissionRule=this.vendorMethods.createCommissionRule.bind(this.vendorMethods),this.updateCommissionRule=this.vendorMethods.updateCommissionRule.bind(this.vendorMethods),this.deleteCommissionRule=this.vendorMethods.deleteCommissionRule.bind(this.vendorMethods),this.createPayoutBatch=this.vendorMethods.createPayoutBatch.bind(this.vendorMethods),this.processPayout=this.vendorMethods.processPayout.bind(this.vendorMethods),this.getPlans=this.subscriptionMethods.getPlans.bind(this.subscriptionMethods),this.getPlan=this.subscriptionMethods.getPlan.bind(this.subscriptionMethods),this.get
1StoreSubscription=this.subscriptionMethods.getStoreSubscription.bind(this.subscriptionMethods),this.createSubscription=this.subscriptionMethods.createSubscription.bind(this.subscriptionMethods),this.changeSubscription=this.subscriptionMethods.changeSubscription.bind(this.subscriptionMethods),this.cancelSubscription=this.subscriptionMethods.cancelSubscription.bind(this.subscriptionMethods),this.reactivateSubscription=this.subscriptionMethods.reactivateSubscription.bind(this.subscriptionMethods),this.initializeCheckout=this.subscriptionMethods.initializeCheckout.bind(this.subscriptionMethods),this.verifyCheckout=this.subscriptionMethods.verifyCheckout.bind(this.subscriptionMethods),this.getStoreLimits=this.subscriptionMethods.getStoreLimits.bind(this.subscriptionMethods),this.checkFeatureAccess=this.subscriptionMethods.checkFeatureAccess.bind(this.subscriptionMethods),this.getBillingHistory=this.subscriptionMethods.getBillingHistory.bind(this.subscriptionMethods),this.getCurrentSubscription=this.subscriptionMethods.getCurrentSubscription.bind(this.subscriptionMethods),this.get
1SubscriptionUsage=this.subscriptionMethods.getSubscriptionUsage.bind(this.subscriptionMethods),this.getSubscriptionOverLimit=this.subscriptionMethods.getSubscriptionOverLimit.bind(this.subscriptionMethods),this.getLimitStatus=this.subscriptionMethods.getLimitStatus.bind(this.subscriptionMethods),this.getFeatureDescriptions=this.subscriptionMethods.getFeatureDescriptions.bind(this.subscriptionMethods),this.getSubscriptionManageLink=this.subscriptionMethods.getSubscriptionManageLink.bind(this.subscriptionMethods),this.verifySubscriptionPayment=this.subscriptionMethods.verifySubscriptionPayment.bind(this.subscriptionMethods),this.getSubscriptionPlans=this.subscriptionMethods.getSubscriptionPlans.bind(this.subscriptionMethods),this.getMyAvailableDiscounts=this.subscriptionMethods.getMyAvailableDiscounts.bind(this.subscriptionMethods),this.validateDiscountCode=this.subscriptionMethods.validateDiscountCode.bind(this.subscriptionMethods),this.getFeaturedPromo=this.subscriptionMethods.getFeaturedPromo.bind(this.subscriptionMethods),this.getPublicPlatformStats=this.subscriptionMethods.getPublicPlatformStats.bind(this.subscriptionMethods),this.initiateSubscriptionUpgrade=this.subscriptionMethods.initiateSubscriptionUpgrade.bind(this.subscriptionMethods),this.getAvailableSubscriptionPaymentProviders=this.subscriptionMethods.getAvailableSubscriptionPaymentProviders.bind(this.subscriptionMethods),this.getMyReferralCode=this.subscriptionMethods.getMyReferralCode.bind(this.subscriptionMethods),this.getMyReferrals=this.subscriptionMethods.getMyReferrals.bind(this.subscriptionMethods),this.getMyCredits=this.subscriptionMethods.getMyCredits.bind(this.subscriptionMethods),this.getMyCreditTransactions=this.subscriptionMethods.getMyCreditTransactions.bind(this.subscriptionMethods),this.getMyWithdrawals=this.subscriptionMethods.getMyWithdrawals.bind(this.subscriptionMethods),this.requestWithdrawal=this.subscriptionMethods.requestWithdrawal.bind(this.subscriptionMethods),this.getReferralBanks=this.subscriptionMethods.getReferralBanks.bind(this.subscriptionMethods),this.resolveReferralBankAccount=this.subscriptionMethods.resolveReferralBankAccount.bind(this.subscriptionMethods),this.applyCreditsToSubscription=this.subscriptionMethods.applyCreditsToSubscription.bind(this.subscriptionMethods),this.get
1StorePaymentConfigs=this.paymentMethods.getStorePaymentConfigs.bind(this.paymentMethods),this.getAvailablePaymentProviders=this.paymentMethods.getAvailablePaymentProviders.bind(this.paymentMethods),this.createStorePaymentConfig=this.paymentMethods.createStorePaymentConfig.bind(this.paymentMethods),this.updateStorePaymentConfig=this.paymentMethods.updateStorePaymentConfig.bind(this.paymentMethods),this.deleteStorePaymentConfig=this.paymentMethods.deleteStorePaymentConfig.bind(this.paymentMethods),this.testStorePaymentCredentials=this.paymentMethods.testStorePaymentCredentials.bind(this.paymentMethods),this.getStripeConnectStatus=this.paymentMethods.getStripeConnectStatus.bind(this.paymentMethods),this.startStripeOnboarding=this.paymentMethods.startStripeOnboarding.bind(this.paymentMethods),this.toggleStripeConnect=this.paymentMethods.toggleStripeConnect.bind(this.paymentMethods),this.getStripeDashboard=this.paymentMethods.getStripeDashboard.bind(this.paymentMethods),this.syncStripeStatus=this.paymentMethods.syncStripeStatus.bind(this.paymentMethods),this.getThemes=this.themeMethods.getThemes.bind(this.themeMethods),this.getTheme=this.themeMethods.getTheme.bind(this.themeMethods),this.getThemePreview=this.themeMethods.getThemePreview.bind(this.themeMethods),this.setStoreTheme=this.themeMethods.setStoreTheme.bind(this.themeMethods),this.get
1StoreTheme=this.themeMethods.getStoreTheme.bind(this.themeMethods),this.updateStoreThemeConfig=this.themeMethods.updateStoreThemeConfig.bind(this.themeMethods),this.validateTheme=this.themeMethods.validateTheme.bind(this.themeMethods),this.uploadTheme=this.themeMethods.uploadTheme.bind(this.themeMethods),this.updateTheme=this.themeMethods.updateTheme.bind(this.themeMethods),this.deleteTheme=this.themeMethods.deleteTheme.bind(this.themeMethods),this.exportTheme=this.themeMethods.exportTheme.bind(this.themeMethods),this.activateTheme=this.themeMethods.activateTheme.bind(this.themeMethods),this.featureTheme=this.themeMethods.featureTheme.bind(this.themeMethods),this.getThemeDeleteInfo=this.themeMethods.getThemeDeleteInfo.bind(this.themeMethods),this.getStoreMetrics=this.analyticsMethods.getStoreMetrics.bind(this.analyticsMethods),this.getStoreAnalytics=this.analyticsMethods.getStoreAnalytics.bind(this.analyticsMethods),this.getDashboardStats=this.analyticsMethods.getDashboardStats.bind(this.analyticsMethods),this.getSalesReport=this.analyticsMethods.getSalesReport.bind(this.analyticsMethods),this.getVisitorAnalytics=this.analyticsMethods.getVisitorAnalytics.bind(this.analyticsMethods),this.getPageAnalytics=this.analyticsMethods.getPageAnalytics.bind(this.analyticsMethods),this.getGeographicAnalytics=this.analyticsMethods.getGeographicAnalytics.bind(this.analyticsMethods),this.trackEvent=this.analyticsMethods.trackEvent.bind(this.analyticsMethods),this.getTaxReport=this.analyticsMethods.getTaxReport.bind(this.analyticsMethods),this.getPlatformMetrics=this.platformMethods.getPlatformMetrics.bind(this.platformMethods),this.getPlatformDashboard=this.platformMethods.getPlatformDashboard.bind(this.platformMethods),this.getPlatformCountryStats=this.platformMethods.getPlatformCountryStats.bind(this.platformMethods),this.getPlatformRealtime=this.platformMethods.getPlatformRealtime.bind(this.platformMethods),this.getPlatformMrr=this.platformMethods.getPlatformMrr.bind(this.platformMethods),this.getPlatformTopStores=this.platformMethods.getPlatformTopStores.bind(this.platformMethods),this.getPlatformEventsFeed=this.platformMethods.getPlatformEventsFeed.bind(this.platformMethods),this.getPlatformFunnel=this.platformMethods.getPlatformFunnel.bind(this.platformMethods),this.getAdminSubscriptionPlans=this.platformMethods.getAdminSubscriptionPlans.bind(this.platformMethods),this.createAdminSubscriptionPlan=this.platformMethods.createAdminSubscriptionPlan.bind(this.platformMethods),this.updateAdminSubscriptionPlan=this.platformMethods.updateAdminSubscriptionPlan.bind(this.platformMethods),this.deleteAdminSubscriptionPlan=this.platformMethods.deleteAdminSubscriptionPlan.bind(this.platformMethods),this.setSubscriptionExpiry=this.platformMethods.setSubscriptionExpiry.bind(this.platformMethods),this.getAdminStoreSubscriptions=this.platformMethods.getAdminStoreSubscriptions.bind(this.platformMethods),this.syncSubscriptionPlans=this.platformMethods.syncSubscriptionPlans.bind(this.platformMethods),this.getPlatformExpiringSubscriptions=this.platformMethods.getPlatformExpiringSubscriptions.bind(this.platformMethods),this.updateAdminStoreSubscription=this.platformMethods.updateAdminStoreSubscription.bind(this.platformMethods),this.manualUpgradeSubscription=this.platformMethods.manualUpgradeSubscription.bind(this.platformMethods),this.setSubscriptionStatus=this.platformMethods.setSubscriptionStatus.bind(this.platformMethods),this.getAdminSubscriptionStats=this.platformMethods.getAdminSubscriptionStats.bind(this.platformMethods),this.getPlanCatalog=this.platformMethods.getPlanCatalog.bind(this.platformMethods),this.getAdminFeatureDescriptions=this.platformMethods.getAdminFeatureDescriptions.bind(this.platformMethods),this.updateAdminFeatureDescription=this.platformMethods.updateAdminFeatureDescription.bind(this.platformMethods),this.getPlatformStores=this.platformMethods.getPlatformStores.bind(this.platformMethods),this.getPlatformStore=this.platformMethods.getPlatformStore.bind(this.platformMethods),this.getPlatformStorePaymentMethods=this.platformMethods.getPlatformStorePaymentMethods.bind(this.platformMethods),this.suspendStore=this.platformMethods.suspendStore.bind(this.platformMethods),this.activateStore=this.platformMethods.activateStore.bind(this.platformMethods),this.impersonateStoreOwner=this.platformMethods.impersonateStoreOwner.bind(this.platformMethods),this.runStoreAI=this.platformMethods.runStoreAI.bind(this.platformMethods),this.getPlatformUsers=this.platformMethods.getPlatformUsers.bind(this.platformMethods),this.exportPlatformUsersCSV=this.platformMethods.exportPlatformUsersCSV.bind(this.platformMethods),this.exportPlatformUsersMetaAudience=this.platformMethods.exportPlatformUsersMetaAudience.bind(this.platformMethods),this.getPlatformUser=this.platformMethods.getPlatformUser.bind(this.platformMethods),this.updatePlatformUser=this.platformMethods.updatePlatformUser.bind(this.platformMethods),this.getPlatformPlans=this.platformMethods.getPlatformPlans.bind(this.platformMethods),this.createPlatformPlan=this.platformMethods.createPlatformPlan.bind(this.platformMethods),this.updatePlatformPlan=this.platformMethods.updatePlatformPlan.bind(this.platformMethods),this.deletePlatformPlan=this.platformMethods.deletePlatformPlan.bind(this.platformMethods),this.getAdminDiscounts=this.platformMethods.getAdminDiscounts.bind(this.platformMethods),this.getAdminDiscount=this.platformMethods.getAdminDiscount.bind(this.platformMethods),this.createAdminDiscount=this.platformMethods.createAdminDiscount.bind(this.platformMethods),this.updateAdminDiscount=this.platformMethods.updateAdminDiscount.bind(this.platformMethods),this.deleteAdminDiscount=this.platformMethods.deleteAdminDiscount.bind(this.platformMethods),this.revokeAdminDiscount=this.platformMethods.revokeAdminDiscount.bind(this.platformMethods),this.getPlatformThemes=this.platformMethods.getPlatformThemes.bind(this.platformMethods),this.createPlatformTheme=this.platformMethods.createPlatformTheme.bind(this.platformMethods),this.updatePlatformTheme=this.platformMethods.updatePlatformTheme.bind(this.platformMethods),this.deletePlatformTheme=this.platformMethods.deletePlatformTheme.bind(this.platformMethods),this.getPlatformSettings=this.platformMethods.getPlatformSettings.bind(this.platformMethods),this.getPlatformDefaultTheme=this.platformMethods.getPlatformDefaultTheme.bind(this.platformMethods),this.setPlatformDefaultTheme=this.platformMethods.setPlatformDefaultTheme.bind(this.platformMethods),this.getPlatformEmailVerificationSetting=this.platformMethods.getPlatformEmailVerificationSetting.bind(this.platformMethods),this.setPlatformEmailVerificationSetting=this.platformMethods.setPlatformEmailVerificationSetting.bind(this.platformMethods),this.getPlatformCustomDomainsSetting=this.platformMethods.getPlatformCustomDomainsSetting.bind(this.platformMethods),this.setPlatformCustomDomainsSetting=this.platformMethods.setPlatformCustomDomainsSetting.bind(this.platformMethods),this.getPlatformHeaderTags=this.platformMethods.getPlatformHeaderTags.bind(this.platformMethods),this.setPlatformHeaderTags=this.platformMethods.setPlatformHeaderTags.bind(this.platformMethods),this.getPublicHeaderTags=this.platformMethods.getPublicHeaderTags.bind(this.platformMethods),this.getPlatformTransactions=this.platformMethods.getPlatformTransactions.bind(this.platformMethods),this.getPlatformTransactionStats=this.platformMethods.getPlatformTransactionStats.bind(this.platformMethods),this.getPlatformTransactionDetail=this.platformMethods.getPlatformTransactionDetail.bind(this.platformMethods),this.verifyPlatformTransaction=this.platformMethods.verifyPlatformTransaction.bind(this.platformMethods),this.retryPlatformTransaction=this.platformMethods.retryPlatformTransaction.bind(this.platformMethods),this.getPlatformWebhookEvents=this.platformMethods.getPlatformWebhookEvents.bind(this.platformMethods),this.retryPlatformWebhook=this.platformMethods.retryPlatformWebhook.bind(this.platformMethods),this.getPlatformStoreDetail=this.platformMethods.getPlatformStoreDetail.bind(this.platformMethods),this.deletePlatformStore=this.platformMethods.deletePlatformStore.bind(this.platformMethods),this.getPlatformStoreDeletionPreview=this.platformMethods.getPlatformStoreDeletionPreview.bind(this.platformMethods),this.getPlatformStoreProducts=this.platformMethods.getPlatformStoreProducts.bind(this.platformMethods),this.updatePlatformStoreProduct=this.platformMethods.updatePlatformStoreProduct.bind(this.platformMethods),this.updateStoreLimitOverrides=this.platformMethods.updateStoreLimitOverrides.bind(this.platformMethods),this.reinstateStore=this.platformMethods.reinstateStore.bind(this.platformMethods),this.platformReactivateStore=this.platformMethods.reactivateStore.bind(this.platformMethods),this.toggleStoreCustomDomain=this.platformMethods.toggleStoreCustomDomain.bind(this.platformMethods),this.getPlatformCustomDomains=this.platformMethods.getPlatformCustomDomains.bind(this.platformMethods),this.getPlatformCustomDomainDetail
1=this.platformMethods.getPlatformCustomDomainDetail.bind(this.platformMethods),this.deletePlatformCustomDomain=this.platformMethods.deletePlatformCustomDomain.bind(this.platformMethods),this.refreshPlatformCustomDomainStatus=this.platformMethods.refreshPlatformCustomDomainStatus.bind(this.platformMethods),this.createPlatformCustomDomain=this.platformMethods.createPlatformCustomDomain.bind(this.platformMethods),this.updatePlatformStore=this.platformMethods.updatePlatformStore.bind(this.platformMethods),this.getPlatformUserDashboard=this.platformMethods.getPlatformUserDashboard.bind(this.platformMethods),this.getPlatformUserDetail=this.platformMethods.getPlatformUserDetail.bind(this.platformMethods),this.deletePlatformUser=this.platformMethods.deletePlatformUser.bind(this.platformMethods),this.getPlatformUserDeletionPreview=this.platformMethods.getPlatformUserDeletionPreview.bind(this.platformMethods),this.getPlatformUserActivity=this.platformMethods.getPlatformUserActivity.bind(this.platformMethods),this.getScheduledDeletions=this.platformMethods.getScheduledDeletions.bind(this.platformMethods),this.cancelScheduledDeletion=this.platformMethods.cancelScheduledDeletion.bind(this.platformMethods),this.getPlatformUserLoginHistory=this.platformMethods.getPlatformUserLoginHistory.bind(this.platformMethods),this.getPlatformUserTransactions=this.platformMethods.getPlatformUserTransactions.bind(this.platformMethods),this.getPlatformUserSubscriptionHistory=this.platformMethods.getPlatformUserSubscriptionHistory.bind(this.platformMethods),this.getPlatformUserPlatformAccess=this.platformMethods.getPlatformUserPlatformAccess.bind(this.platformMethods),this.removeUserFromPlatform=this.platformMethods.removeUserFromPlatform.bind(this.platformMethods),this.transferCompanyOwnership=this.platformMethods.transferCompanyOwnership.bind(this.platformMethods),this.transferStoreOwnership=this.platformMethods.transferStoreOwnership.bind(this.platformMethods),this.getPlatformUserLogisticsMemberships=this.platformMethods.getPlatformUserLogisticsMemberships.bind(this.platformMethods),this.fullDeleteUser=this.platformMethods.fullDeleteUser.bind(this.platformMethods),this.cascadeDeleteUser=this.platformMethods.cascadeDeleteUser.bind(this.platformMethods),this.getPaymentProviders=this.platformMethods.getPaymentProviders.bind(this.platformMethods),this.getPaymentProvider=this.platformMethods.getPaymentProvider.bind(this.platformMethods),this.updatePaymentProvider=this.platformMethods.updatePaymentProvider.bind(this.platformMethods),this.togglePaymentProvider=this.platformMethods.togglePaymentProvider.bind(this.platformMethods),this.testPaymentProvider=this.platformMethods.testPaymentProvider.bind(this.platformMethods),this.getPaymentKeyAccessLogs=this.platformMethods.getPaymentKeyAccessLogs.bind(this.platformMethods),this.getTestUsers=this.platformMethods.getTestUsers.bind(this.platformMethods),this.getTestStores=this.platformMethods.getTestStores.bind(this.platformMethods),this.getTestStats=this.platformMethods.getTestStats.bind(this.platformMethods),this.runTestCleanup=this.platformMethods.runTestCleanup.bind(this.platformMethods),this.getTestAccountConfig=this.platformMethods.getTestAccountConfig.bind(this.platformMethods),this.updateTestAccountConfig=this.platformMethods.updateTestAccountConfig.bind(this.platformMethods),this.bulkDeleteTestUsers=this.platformMethods.bulkDeleteTestUsers.bind(this.platformMethods),this.bulkDeleteTestStores=this.platformMethods.bulkDeleteTestStores.bind(this.platformMethods),this.getPlatformReferralConfig=this.platformMethods.getPlatformReferralConfig.bind(this.platformMethods),this.updatePlatformReferralConfig=this.platformMethods.updatePlatformReferralConfig.bind(this.platformMethods),this.getPlatformReferralOverview=this.platformMethods.getPlatformReferralOverview.bind(this.platformMethods),this.getPlatformReferrers=this.platformMethods.getPlatformReferrers.bind(this.platformMethods),this.toggleReferrerStatus=this.platformMethods.toggleReferrerStatus.bind(this.platformMethods),this.getPlatformReferrals=this.platformMethods.getPlatformReferrals.bind(this.platformMethods),this.getPlatformWithdrawals=this.platformMethods.getPlatformWithdrawals.bind(this.platformMethods),this.approveWithdrawal=this.platformMethods.approveWithdrawal.bind(this.platformMethods),this.rejectWithdrawal=this.platformMethods.rejectWithdrawal.bind(this.platformMethods),this.processWithdrawal=this.platformMethods.processWithdrawal.bind(this.platformMethods),this.get
1SupportStats=this.platformMethods.getSupportStats.bind(this.platformMethods),this.getSupportUnreadCount=this.platformMethods.getSupportUnreadCount.bind(this.platformMethods),this.getSupportConversations=this.platformMethods.getSupportConversations.bind(this.platformMethods),this.getSupportConversation=this.platformMethods.getSupportConversation.bind(this.platformMethods),this.sendSupportReply=this.platformMethods.sendSupportReply.bind(this.platformMethods),this.uploadSupportMedia=this.platformMethods.uploadSupportMedia.bind(this.platformMethods),this.sendSupportTemplate=this.platformMethods.sendSupportTemplate.bind(this.platformMethods),this.resolveSupportConversation=this.platformMethods.resolveSupportConversation.bind(this.platformMethods),this.assignSupportConversation=this.platformMethods.assignSupportConversation.bind(this.platformMethods),this.handoffSupportToAI=this.platformMethods.handoffSupportToAI.bind(this.platformMethods),this.handoffSupportToHuman=this.platformMethods.handoffSupportToHuman.bind(this.platformMethods),this.toggleSupportHumanLock=this.platformMethods.toggleSupportHumanLock.bind(this.platformMethods),this.get
1SupportEscalations=this.platformMethods.getSupportEscalations.bind(this.platformMethods),this.searchSupportCustomers=this.platformMethods.searchSupportCustomers.bind(this.platformMethods),this.startSupportConversation=this.platformMethods.startSupportConversation.bind(this.platformMethods),this.rephraseSupportText=this.platformMethods.rephraseSupportText.bind(this.platformMethods),this.snoozeSupportConversation=this.platformMethods.snoozeSupportConversation.bind(this.platformMethods),this.archiveSupportConversation=this.platformMethods.archiveSupportConversation.bind(this.platformMethods),this.setSupportConversationLabels=this.platformMethods.setSupportConversationLabels.bind(this.platformMethods),this.suggestSupportReplies=this.platformMethods.suggestSupportReplies.bind(this.platformMethods),this.generateSupportSummary=this.platformMethods.generateSupportSummary.bind(this.platformMethods),this.getSupportQuickReplyTemplates=this.platformMethods.getSupportQuickReplyTemplates.bind(this.platformMethods),this.createSupportQuickReplyTemplate=this.platformMethods.createSupportQuickReplyTemplate.bind(this.platformMethods),this.updateSupportQuickReplyTemplate=this.platformMethods.updateSupportQuickReplyTemplate.bind(this.platformMethods),this.deleteSupportQuickReplyTemplate=this.platformMethods.deleteSupportQuickReplyTemplate.bind(this.platformMethods),this.reorderSupportQuickReplyTemplates=this.platformMethods.reorderSupportQuickReplyTemplates.bind(this.platformMethods),this.uploadSupportTemplateMedia=this.platformMethods.uploadSupportTemplateMedia.bind(this.platformMethods),this.deleteSupportTemplateMedia=this.platformMethods.deleteSupportTemplateMedia.bind(this.platformMethods),this.get
1SupportTemplateMediaDownloadUrl=this.platformMethods.getSupportTemplateMediaDownloadUrl.bind(this.platformMethods),this.getKnowledgeArticles=this.platformMethods.getKnowledgeArticles.bind(this.platformMethods),this.getKnowledgeArticle=this.platformMethods.getKnowledgeArticle.bind(this.platformMethods),this.createKnowledgeArticle=this.platformMethods.createKnowledgeArticle.bind(this.platformMethods),this.updateKnowledgeArticle=this.platformMethods.updateKnowledgeArticle.bind(this.platformMethods),this.deleteKnowledgeArticle=this.platformMethods.deleteKnowledgeArticle.bind(this.platformMethods),this.generateKnowledgeArticleEmbedding=this.platformMethods.generateKnowledgeArticleEmbedding.bind(this.platformMethods),this.reindexKnowledgeArticles=this.platformMethods.reindexKnowledgeArticles.bind(this.platformMethods),this.seedKnowledgeBaseline=this.platformMethods.seedKnowledgeBaseline.bind(this.platformMethods),this.exportKnowledgeBase=this.platformMethods.exportKnowledgeBase.bind(this.platformMethods),this.importKnowledgeBase=this.platformMethods.importKnowledgeBase.bind(this.platformMethods),this.getKnowledgeDocuments=this.platformMethods.getKnowledgeDocuments.bind(this.platformMethods),this.getKnowledgeDocument=this.platformMethods.getKnowledgeDocument.bind(this.platformMethods),this.uploadKnowledgeDocument=this.platformMethods.uploadKnowledgeDocument.bind(this.platformMethods),this.reprocessKnowledgeDocument=this.platformMethods.reprocessKnowledgeDocument.bind(this.platformMethods),this.getKnowledgeStats=this.platformMethods.getKnowledgeStats.bind(this.platformMethods),this.getKnowledgeRetrievalMetrics=this.platformMethods.getKnowledgeRetrievalMetrics.bind(this.platformMethods),this.testKnowledgeRetrieval=this.platformMethods.testKnowledgeRetrieval.bind(this.platformMethods),this.testKnowledgeAgent=this.platformMethods.testKnowledgeAgent.bind(this.platformMethods),this.get
1StoreCustomers=this.platformMethods.getStoreCustomers.bind(this.platformMethods),this.sendStoreCustomerPasswordReset=this.platformMethods.sendStoreCustomerPasswordReset.bind(this.platformMethods),this.getAIAuditLogs=this.platformMethods.getAIAuditLogs.bind(this.platformMethods),this.getAIAuditStats=this.platformMethods.getAIAuditStats.bind(this.platformMethods),this.getPlatformPromoCodes=this.platformMethods.getPlatformPromoCodes.bind(this.platformMethods),this.getPlatformPromoCodeStats=this.platformMethods.getPlatformPromoCodeStats.bind(this.platformMethods),this.createPlatformPromoCode=this.platformMethods.createPlatformPromoCode.bind(this.platformMethods),this.updatePlatformPromoCode=this.platformMethods.updatePlatformPromoCode.bind(this.platformMethods),this.getPlatformPromoCodeDetail=this.platformMethods.getPlatformPromoCodeDetail.bind(this.platformMethods),this.deletePlatformPromoCode=this.platformMethods.deletePlatformPromoCode.bind(this.platformMethods),this.togglePlatformPromoCodePause=this.platformMethods.togglePlatformPromoCodePause.bind(this.platformMethods),this.generatePlatformPromoCode=this.platformMethods.generatePlatformPromoCode.bind(this.platformMethods),this.getPlatformPromoCodeUsage=this.platformMethods.getPlatformPromoCodeUsage.bind(this.platformMethods),this.generateThemeContent=this.platformMethods.generateThemeContent.bind(this.platformMethods),this.getThemeContent=this.platformMethods.getThemeContent.bind(this.platformMethods),this.getUsersFollowUp=this.platformMethods.getUsersFollowUp.bind(this.platformMethods),this.exportUsersFollowUpCSV=this.platformMethods.exportUsersFollowUpCSV.bind(this.platformMethods),this.getPlatformNotificationSettings=this.platformMethods.getPlatformNotificationSettings.bind(this.platformMethods),this.updatePlatformNotificationSettings=this.platformMethods.updatePlatformNotificationSettings.bind(this.platformMethods),this.getBillingSettings=this.platformMethods.getBillingSettings.bind(this.platformMethods),this.updateBillingSettings=this.platformMethods.updateBillingSettings.bind(this.platformMethods),this.startBulkImageEnhancement=this.platformMethods.startBulkImageEnhancement.bind(this.platformMethods),this.getBulkImageEnhancementStatus=this.platformMethods.getBulkImageEnhancementStatus.bind(this.platformMethods),this.applyBulkImageEnhancements=this.platformMethods.applyBulkImageEnhancements.bind(this.platformMethods),this.getWhatsAppLogs=this.platformMethods.getWhatsAppLogs.bind(this.platformMethods),this.getWhatsAppLog=this.platformMethods.getWhatsAppLog.bind(this.platformMethods),this.getWhatsAppLogStats=this.platformMethods.getWhatsAppLogStats.bind(this.platformMethods),this.getWhatsAppMessageTypes=this.platformMethods.getWhatsAppMessageTypes.bind(this.platformMethods),this.getRecipientsWithoutConversation=this.platformMethods.getRecipientsWithoutConversation.bind(this.platformMethods),this.getWhatsAppTemplates=this.platformMethods.getWhatsAppTemplates.bind(this.platformMethods),this.listPlatformWhatsAppTemplates=this.platformMethods.listPlatformWhatsAppTemplates.bind(this.platformMethods),this.createPlatformWhatsAppTemplate=this.platformMethods.createPlatformWhatsAppTemplate.bind(this.platformMethods),this.updatePlatformWhatsAppTemplate=this.platformMethods.updatePlatformWhatsAppTemplate.bind(this.platformMethods),this.deletePlatformWhatsAppTemplate=this.platformMethods.deletePlatformWhatsAppTemplate.bind(this.platformMethods),this.listPlatformCampaigns=this.platformMethods.listPlatformCampaigns.bind(this.platformMethods),this.getPlatformCampaign=this.platformMethods.getPlatformCampaign.bind(this.platformMethods),this.createPlatformCampaign=this.platformMethods.createPlatformCampaign.bind(this.platformMethods),this.updatePlatformCampaign=this.platformMethods.updatePlatformCampaign.bind(this.platformMethods),this.deletePlatformCampaign=this.platformMethods.deletePlatformCampaign.bind(this.platformMethods),this.launchPlatformCampaign=this.platformMethods.launchPlatformCampaign.bind(this.platformMethods),this.pausePlatformCampaign=this.platformMethods.pausePlatformCampaign.bind(this.platformMethods),this.resumePlatformCampaign=this.platformMethods.resumePlatformCampaign.bind(this.platformMethods),this.cancelPlatformCampaign=this.platformMethods.cancelPlatformCampaign.bind(this.platformMethods),this.getPlatformCampaignProgress=this.platformMethods.getPlatformCampaignProgress.bind(this.platformMethods),this.listPlatformCampaignRecipients=this.platformMethods.listPlatformCampaignRecipients.bind(this.platformMethods),this.previewMarketingAudience=this.platformMethods.previewMarketingAudience.bind(this.platformMethods),this.searchMarketingUsers=this.platformMethods.searchMarketingUsers.bind(this.platformMethods),this.lookupMarketingUsers=this.platformMethods.lookupMarketingUsers.bind(this.platformMethods),this.listPlatformSuppressions=this.platformMethods.listPlatformSuppressions.bind(this.platformMethods),this.addPlatformSuppression=this.platformMethods.addPlatformSuppression.bind(this.platformMethods),this.deletePlatformSuppression=this.platformMethods.deletePlatformSuppression.bind(this.platformMethods),this.listMarketingTokens=this.platformMethods.listMarketingTokens.bind(this.platformMethods),this.previewMarketingRender=this.platformMethods.previewMarketingRender.bind(this.platformMethods),this.listContentFlags=this.platformMethods.listContentFlags.bind(this.platformMethods),this.getContentFlag=this.platformMethods.getContentFlag.bind(this.platformMethods),this.reviewContentFlag=this.platformMethods.reviewContentFlag.bind(this.platformMethods),this.reinstateContentFlagProduct=this.platformMethods.reinstateContentFlagProduct.bind(this.platformMethods),this.listBlocklistTerms=this.platformMethods.listBlocklistTerms.bind(this.platformMethods),this.createBlocklistTerm=this.platformMethods.createBlocklistTerm.bind(this.platformMethods),this.updateBlocklistTerm=this.platformMethods.updateBlocklistTerm.bind(this.platformMethods),this.deleteBlocklistTerm=this.platformMethods.deleteBlocklistTerm.bind(this.platformMethods),this.scanProduct=this.platformMethods.scanProduct.bind(this.platformMethods),this.getModerationStats=this.platformMethods.getModerationStats.bind(this.platformMethods),this.get
1StorefrontStore=this.storefrontMethods.getStorefrontStore.bind(this.storefrontMethods),this.getStorefrontStoreByDomain=this.storefrontMethods.getStorefrontStoreByDomain.bind(this.storefrontMethods),this.getStorefrontProducts=this.storefrontMethods.getStorefrontProducts.bind(this.storefrontMethods),this.getStorefrontProduct=this.storefrontMethods.getStorefrontProduct.bind(this.storefrontMethods),this.getStorefrontFeaturedProducts=this.storefrontMethods.getStorefrontFeaturedProducts.bind(this.storefrontMethods),this.getStorefrontCategories=this.storefrontMethods.getStorefrontCategories.bind(this.storefrontMethods),this.getStorefrontCategory=this.storefrontMethods.getStorefrontCategory.bind(this.storefrontMethods),this.getStorefrontCart=this.storefrontMethods.getStorefrontCart.bind(this.storefrontMethods),this.getCart=this.storefrontMethods.getCart.bind(this.storefrontMethods),this.addToCart=this.storefrontMethods.addToCart.bind(this.storefrontMethods),this.updateCartItem=this.storefrontMethods.updateCartItem.bind(this.storefrontMethods),this.removeFromCart=this.storefrontMethods.removeFromCart.bind(this.storefrontMethods),this.removeCartItem=this.storefrontMethods.removeCartItem.bind(this.storefrontMethods),this.clearCart=this.storefrontMethods.clearCart.bind(this.storefrontMethods),this.applyDiscountCode=this.storefrontMethods.applyDiscountCode.bind(this.storefrontMethods),this.removeDiscountCode=this.storefrontMethods.removeDiscountCode.bind(this.storefrontMethods),this.checkout=this.storefrontMethods.checkout.bind(this.storefrontMethods),this.get
1ShippingMethods=this.storefrontMethods.getShippingMethods.bind(this.storefrontMethods),this.getPaymentMethods=this.storefrontMethods.getPaymentMethods.bind(this.storefrontMethods),this.createOrder=this.storefrontMethods.createOrder.bind(this.storefrontMethods),this.initializePayment=this.storefrontMethods.initializePayment.bind(this.storefrontMethods),this.verifyPayment=this.storefrontMethods.verifyPayment.bind(this.storefrontMethods),this.trackOrder=this.storefrontMethods.trackOrder.bind(this.storefrontMethods),this.getPublicPaymentOrder=this.storefrontMethods.getPublicPaymentOrder.bind(this.storefrontMethods),this.initializePublicPayment=this.storefrontMethods.initializePublicPayment.bind(this.storefrontMethods),this.getStorefrontVendors=this.storefrontMethods.getStorefrontVendors.bind(this.storefrontMethods),this.getStorefrontVendor=this.storefrontMethods.getStorefrontVendor.bind(this.storefrontMethods),this.getStorefrontVendorProducts=this.storefrontMethods.getStorefrontVendorProducts.bind(this.storefrontMethods),this.getWishlist=this.storefrontMethods.getWishlist.bind(this.storefrontMethods),this.addToWishlist=this.storefrontMethods.addToWishlist.bind(this.storefrontMethods),this.removeFromWishlist=this.storefrontMethods.removeFromWishlist.bind(this.storefrontMethods),this.checkWishlistItem=this.storefrontMethods.checkWishlistItem.bind(this.storefrontMethods),this.getCustomerWishlist=this.storefrontMethods.getCustomerWishlist.bind(this.storefrontMethods),this.customerLogin=this.storefrontMethods.customerLogin.bind(this.storefrontMethods),this.customerLogout=this.storefrontMethods.customerLogout.bind(this.storefrontMethods),this.customerCheckEmail=this.storefrontMethods.customerCheckEmail.bind(this.storefrontMethods),this.customerRegister=this.storefrontMethods.customerRegister.bind(this.storefrontMethods),this.getCustomerProfile=this.storefrontMethods.getCustomerProfile.bind(this.storefrontMethods),this.updateCustomerProfile=this.storefrontMethods.updateCustomerProfile.bind(this.storefrontMethods),this.getCustomerOrders=this.storefrontMethods.getCustomerOrders.bind(this.storefrontMethods),this.getCustomerOrder=this.storefrontMethods.getCustomerOrder.bind(this.storefrontMethods),this.getCustomerAddresses=this.storefrontMethods.getCustomerAddresses.bind(this.storefrontMethods),this.createCustomerAddress=this.storefrontMethods.createCustomerAddress.bind(this.storefrontMethods),this.updateCustomerAddress=this.storefrontMethods.updateCustomerAddress.bind(this.storefrontMethods),this.deleteCustomerAddress=this.storefrontMethods.deleteCustomerAddress.bind(this.storefrontMethods),this.setDefaultAddress=this.storefrontMethods.setDefaultAddress.bind(this.storefrontMethods),this.getCustomerInvoices=this.storefrontMethods.getCustomerInvoices.bind(this.storefrontMethods),this.downloadCustomerInvoice=this.storefrontMethods.downloadCustomerInvoice.bind(this.storefrontMethods),this.sendCustomerInvoice=this.storefrontMethods.sendCustomerInvoice.bind(this.storefrontMethods),this.getVendorProgramInfo=this.storefrontMethods.getVendorProgramInfo.bind(this.storefrontMethods),this.submitVendorApplication=this.storefrontMethods.submitVendorApplication.bind(this.storefrontMethods),this.submitContactForm=this.storefrontMethods.submitContactForm.bind(this.storefrontMethods),this.customerRequestPasswordReset=this.storefrontMethods.customerRequestPasswordReset.bind(this.storefrontMethods),this.customerResetPassword=this.storefrontMethods.customerResetPassword.bind(this.storefrontMethods),this.customerConfirmPasswordReset=this.storefrontMethods.customerConfirmPasswordReset.bind(this.storefrontMethods),this.getDigitalLibrary=this.storefrontMethods.getDigitalLibrary.bind(this.storefrontMethods),this.getDigitalDownloadUrl=this.storefrontMethods.getDigitalDownloadUrl.bind(this.storefrontMethods),this.getGuestDigitalDownload=this.storefrontMethods.getGuestDigitalDownload.bind(this.storefrontMethods),this.resendDigitalDeliveryEmail=this.storefrontMethods.resendDigitalDeliveryEmail.bind(this.storefrontMethods),this.getOrderDigitalFiles=this.storefrontMethods.getOrderDigitalFiles.bind(this.storefrontMethods),this.validateCartRecoveryToken=this.storefrontMethods.validateCartRecoveryToken.bind(this.storefrontMethods),this.updateCartCheckoutInfo=this.storefrontMethods.updateCartCheckoutInfo.bind(this.storefrontMethods),this.uploadPaymentProof=this.storefrontMethods.uploadPaymentProof.bind(this.storefrontMethods),this.getPaymentInfo=this.storefrontMethods.getPaymentInfo.bind(this.storefrontMethods),this.uploadFile=this.uploadMethods.uploadFile.bind(this.uploadMethods),this.uploadImage=this.uploadMethods.uploadImage.bind(this.uploadMethods),this.uploadBrandingImage=this.uploadMethods.uploadBrandingImage.bind(this.uploadMethods),this.uploadStoreImage=this.uploadMethods.uploadStoreImage.bind(this.uploadMethods),this.uploadProductImage=this.uploadMethods.uploadProductImage.bind(this.uploadMethods),this.uploadProductVideo=this.uploadMethods.uploadProductVideo.bind(this.uploadMethods),this.deleteProductImage=this.uploadMethods.deleteProductImage.bind(this.uploadMethods),this.reorderProductImages=this.uploadMethods.reorderProductImages.bind(this.uploadMethods),this.setProductImagePrimary=this.uploadMethods.setProductImagePrimary.bind(this.uploadMethods),this.uploadCategoryImage=this.uploadMethods.uploadCategoryImage.bind(this.uploadMethods),this.uploadVendorImage=this.uploadMethods.uploadVendorImage.bind(this.uploadMethods),this.visualSearch=this.uploadMethods.visualSearch.bind(this.uploadMethods),this.visualSearchByUrl=this.uploadMethods.visualSearchByUrl.bind(this.uploadMethods),this.getImageEnhancePresets=this.uploadMethods.getImageEnhancePresets.bind(this.uploadMethods),this.enhanceImage=this.uploadMethods.enhanceImage.bind(this.uploadMethods),this.removeBackgroun
1d=this.uploadMethods.removeBackground.bind(this.uploadMethods),this.applyBackgroundRemoval=this.uploadMethods.applyBackgroundRemoval.bind(this.uploadMethods),this.revertImage=this.uploadMethods.revertImage.bind(this.uploadMethods),this.logisticsLogin=this.logisticsMethods.logisticsLogin.bind(this.logisticsMethods),this.logisticsRefreshToken=this.logisticsMethods.logisticsRefreshToken.bind(this.logisticsMethods),this.switchLogisticsCompany=this.logisticsMethods.switchLogisticsCompany.bind(this.logisticsMethods),this.getLogisticsCompanies=this.logisticsMethods.getLogisticsCompanies.bind(this.logisticsMethods),this.createLogisticsCompany=this.logisticsMethods.createLogisticsCompany.bind(this.logisticsMethods),this.getLogisticsCompany=this.logisticsMethods.getLogisticsCompany.bind(this.logisticsMethods),this.updateLogisticsCompany=this.logisticsMethods.updateLogisticsCompany.bind(this.logisticsMethods),this.submitLogisticsApplication=this.logisticsMethods.submitLogisticsApplication.bind(this.logisticsMethods),this.getLogisticsCompanyLimits=this.logisticsMethods.getLogisticsCompanyLimits.bind(this.logisticsMethods),this.getAddressAutocomplete=this.logisticsMethods.getAddressAutocomplete.bind(this.logisticsMethods),this.geocodeAddress=this.logisticsMethods.geocodeAddress.bind(this.logisticsMethods),this.reverseGeocode=this.logisticsMethods.reverseGeocode.bind(this.logisticsMethods),this.getLogisticsMembers=this.logisticsMethods.getLogisticsMembers.bind(this.logisticsMethods),this.inviteLogisticsMember=this.logisticsMethods.inviteLogisticsMember.bind(this.logisticsMethods),this.validateLogisticsInvitation=this.logisticsMethods.validateLogisticsInvitation.bind(this.logisticsMethods),this.acceptLogisticsInvitation=this.logisticsMethods.acceptLogisticsInvitation.bind(this.logisticsMethods),this.getLogisticsInvitations=this.logisticsMethods.getLogisticsInvitations.bind(this.logisticsMethods),this.resendLogisticsInvitation=this.logisticsMethods.resendLogisticsInvitation.bind(this.logisticsMethods),this.cancelLogisticsInvitation=this.logisticsMethods.cancelLogisticsInvitation.bind(this.logisticsMethods),this.getLogisticsMember=this.logisticsMethods.getLogisticsMember.bind(this.logisticsMethods),this.updateLogisticsMember=this.logisticsMethods.updateLogisticsMember.bind(this.logisticsMethods),this.removeLogisticsMember=this.logisticsMethods.removeLogisticsMember.bind(this.logisticsMethods),this.getLogisticsRiders=this.logisticsMethods.getLogisticsRiders.bind(this.logisticsMethods),this.getLogisticsCoverageAreas=this.logisticsMethods.getLogisticsCoverageAreas.bind(this.logisticsMethods),this.createLogisticsCoverageArea=this.logisticsMethods.createLogisticsCoverageArea.bind(this.logisticsMethods),this.updateLogisticsCoverageArea=this.logisticsMethods.updateLogisticsCoverageArea.bind(this.logisticsMethods),this.deleteLogisticsCoverageArea=this.logisticsMethods.deleteLogisticsCoverageArea.bind(this.logisticsMethods),this.getLogisticsPricingRules=this.logisticsMethods.getLogisticsPricingRules.bind(this.logisticsMethods),this.createLogisticsPricingRule=this.logisticsMethods.createLogisticsPricingRule.bind(this.logisticsMethods),this.updateLogisticsPricingRule=this.logisticsMethods.updateLogisticsPricingRule.bind(this.logisticsMethods),this.deleteLogisticsPricingRule=this.logisticsMethods.deleteLogisticsPricingRule.bind(this.logisticsMethods),this.calculateLogisticsRate=this.logisticsMethods.calculateLogisticsRate.bind(this.logisticsMethods),this.getLogisticsShipments=this.logisticsMethods.getLogisticsShipments.bind(this.logisticsMethods),this.createLogisticsShipment=this.logisticsMethods.createLogisticsShipment.bind(this.logisticsMethods),this.getLogisticsShipment=this.logisticsMethods.getLogisticsShipment.bind(this.logisticsMethods),this.updateLogisticsShipmentStatus=this.logisticsMethods.updateLogisticsShipmentStatus.bind(this.logisticsMethods),this.assignLogisticsRider=this.logisticsMethods.assignLogisticsRider.bind(this.logisticsMethods),this.getLogisticsShipmentStats=this.logisticsMethods.getLogisticsShipmentStats.bind(this.logisticsMethods),this.getLogisticsFinanceAnalytics=this.logisticsMethods.getL
1ogisticsFinanceAnalytics.bind(this.logisticsMethods),this.getLogisticsDeliveryRequests=this.logisticsMethods.getLogisticsDeliveryRequests.bind(this.logisticsMethods),this.quoteLogisticsDeliveryRequest=this.logisticsMethods.quoteLogisticsDeliveryRequest.bind(this.logisticsMethods),this.acceptLogisticsDeliveryRequest=this.logisticsMethods.acceptLogisticsDeliveryRequest.bind(this.logisticsMethods),this.rejectLogisticsDeliveryRequest=this.logisticsMethods.rejectLogisticsDeliveryRequest.bind(this.logisticsMethods),this.getLogisticsSubscription=this.logisticsMethods.getLogisticsSubscription.bind(this.logisticsMethods),this.getLogisticsPlans=this.logisticsMethods.getLogisticsPlans.bind(this.logisticsMethods),this.getLogisticsSubscriptionPlans=this.logisticsMethods.getLogisticsSubscriptionPlans.bind(this.logisticsMethods),this.logisticsSubscriptionCheckout=this.logisticsMethods.logisticsSubscriptionCheckout.bind(this.logisticsMethods),this.logisticsSubscriptionCallback=this.logisticsMethods.logisticsSubscriptionCallback.bind(this.logisticsMethods),this.getLogisticsCurrentSubscription=this.logisticsMethods.getLogisticsCurrentSubscription.bind(this.logisticsMethods),this.cancelLogisticsSubscription=this.logisticsMethods.cancelLogisticsSubscription.bind(this.logisticsMethods),this.reactivateLogisticsSubscription=this.logisticsMethods.reactivateLogisticsSubscription.bind(this.logisticsMethods),this.changeLogisticsSubscriptionPlan=this.logisticsMethods.changeLogisticsSubscriptionPlan.bind(this.logisticsMethods),this.getLogisticsSubscriptionManageLink=this.logisticsMethods.getLogisticsSubscriptionManageLink.bind(this.logisticsMethods),this.getLogisticsCompanyBranding=this.logisticsMethods.getLogisticsCompanyBranding.bind(this.logisticsMethods),this.updateLogisticsCompanyBranding=this.logisticsMethods.updateLogisticsCompanyBranding.bind(this.logisticsMethods),this.uploadLogisticsCompanyImage=this.logisticsMethods.uploadLogisticsCompanyImage.bind(this.logisticsMethods),this.getLogisticsThemes=this.logisticsMethods.getLogisticsThemes.bind(this.logisticsMethods),this.getLogisticsPickupPoints=this.logisticsMethods.getLogisticsPickupPoints.bind(this.logisticsMethods),this.getLogisticsPickupPoint=this.logisticsMethods.getLogisticsPickupPoint.bind(this.logisticsMethods),this.createLogisticsPickupPoint=this.logisticsMethods.createLogisticsPickupPoint.bind(this.logisticsMethods),this.updateLogisticsPickupPoint=this.logisticsMethods.updateLogisticsPickupPoint.bind(this.logisticsMethods),this.deleteLogisticsPickupPoint=this.logisticsMethods.deleteLogisticsPickupPoint.bind(this.logisticsMethods),this.toggleLogisticsPickupPointActive=this.logisticsMethods.toggleLogisticsPickupPointActive.bind(this.logisticsMethods),this.getLogisticsPaymentMethods=this.logisticsMethods.getLogisticsPaymentMethods.bind(this.logisticsMethods),this.getLogisticsPaymentMethod=this.logisticsMethods.getLogisticsPaymentMethod.bind(this.logisticsMethods),this.createLogisticsPaymentMethod=this.logisticsMethods.createLogisticsPaymentMethod.bind(this.logisticsMethods),this.updateLogisticsPaymentMethod=this.logisticsMethods.updateLogisticsPaymentMethod.bind(this.logisticsMethods),this.deleteLogisticsPaymentMethod=this.logisticsMethods.deleteLogisticsPaymentMethod.bind(this.logisticsMethods),this.toggleLogisticsPaymentMethodActive=this.logisticsMethods.toggleLogisticsPaymentMethodActive.bind(this.logisticsMethods),this.reorderLogisticsPaymentMethods=this.logisticsMethods.reorderLogisticsPaymentMethods.bind(this.logisticsMethods),this.getLogisticsPaymentMethodTypes=this.logisticsMethods.getLogisticsPaymentMethodTypes.bind(this.logisticsMethods),this.setupDefaultPaymentMethods=this.logisticsMethods.setupDefaultPaymentMethods.bind(this.logisticsMethods),this.verifyLogisticsShipmentPayment=this.logisticsMethods.verifyLogisticsShipmentPayment.bind(this.logisticsMethods),this.updateLogisticsPaymentStatus=this.logisticsMethods.updateLogisticsPaymentStatus.bind(this.logisticsMethods),this.sendLogisticsInvoice=this.logisticsMethods.sendLogisticsInvoice.b
1ind(this.logisticsMethods),this.getPendingPaymentShipments=this.logisticsMethods.getPendingPaymentShipments.bind(this.logisticsMethods),this.trackLogisticsShipment=this.logisticsMethods.trackLogisticsShipment.bind(this.logisticsMethods),this.getPublicLogisticsCompany=this.logisticsMethods.getPublicLogisticsCompany.bind(this.logisticsMethods),this.getPublicLogisticsRates=this.logisticsMethods.getPublicLogisticsRates.bind(this.logisticsMethods),this.getPublicLogisticsCoverage=this.logisticsMethods.getPublicLogisticsCoverage.bind(this.logisticsMethods),this.getPublicLogisticsPickupPoints=this.logisticsMethods.getPublicLogisticsPickupPoints.bind(this.logisticsMethods),this.getPublicLogisticsPaymentMethods=this.logisticsMethods.getPublicLogisticsPaymentMethods.bind(this.logisticsMethods),this.getPlatformLogisticsDashboard=this.logisticsMethods.getPlatformLogisticsDashboard.bind(this.logisticsMethods),this.getPlatformLogisticsCompanies=this.logisticsMethods.getPlatformLogisticsCompanies.bind(this.logisticsMethods),this.getPlatformLogisticsCompany=this.logisticsMethods.getPlatformLogisticsCompany.bind(this.logisticsMethods),this.approveLogisticsCompany=this.logisticsMethods.approveLogisticsCompany.bind(this.logisticsMethods),this.rejectLogisticsCompany=this.logisticsMethods.rejectLogisticsCompany.bind(this.logisticsMethods),this.suspendLogisticsCompany=this.logisticsMethods.suspendLogisticsCompany.bind(this.logisticsMethods),this.reinstateLogisticsCompany=this.logisticsMethods.reinstateLogisticsCompany.bind(this.logisticsMethods),this.getPlatformLogisticsRiders=this.logisticsMethods.getPlatformLogisticsRiders.bind(this.logisticsMethods),this.getPlatformLogisticsPlans=this.logisticsMethods.getPlatformLogisticsPlans.bind(this.logisticsMethods),this.createPlatformLogisticsPlan=this.logisticsMethods.createPlatformLogisticsPlan.bind(this.logisticsMethods),this.updatePlatformLogisticsPlan=this.logisticsMethods.updatePlatformLogisticsPlan.bind(this.logisticsMethods),this.deletePlatformLogisticsPlan=this.logisticsMethods.deletePlatformLogisticsPlan.bind(this.logisticsMethods),this.duplicatePlatformLogisticsPlan=this.logisticsMethods.duplicatePlatformLogisticsPlan.bind(this.logisticsMethods),this.togglePlatformLogisticsPlanActive=this.logisticsMethods.togglePlatformLogisticsPlanActive.bind(this.logisticsMethods),this.togglePlatformLogisticsPlanFeatured=this.logisticsMethods.togglePlatformLogisticsPlanFeatured.bind(this.logisticsMethods),this.getPlatformLogisticsThemes=this.logisticsMethods.getPlatformLogisticsThemes.bind(this.logisticsMethods),this.getPlatformLogisticsTheme=this.logisticsMethods.getPlatformLogisticsTheme.bind(this.logisticsMethods),this.createPlatformLogisticsTheme=this.logisticsMethods.createPlatformLogisticsTheme.bind(this.logisticsMethods),this.updatePlatformLogisticsTheme=this.logisticsMethods.updatePlatformLogisticsTheme.bind(this.logisticsMethods),this.deletePlatformLogisticsTheme=this.logisticsMethods.deletePlatformLogisticsTheme.bind(this.logisticsMethods),this.getPlatformLogisticsFronts=this.logisticsMethods.getPlatformLogisticsFronts.bind(this.logisticsMethods),this.riderLogin=this.logisticsMethods.riderLogin.bind(this.logisticsMethods),this.getRiderProfile=this.logisticsMethods.getRiderProfile.bind(this.logisticsMethods),this.updateRiderAvailability=this.logisticsMethods.updateRiderAvailability.bind(this.logisticsMethods),this.updateRiderLocation=this.logisticsMethods.updateRiderLocation.bind(this.logisticsMethods),this.getRiderShipments=this.logisticsMethods.getRiderShipments.bind(this.logisticsMethods),this.getRiderShipment=this.logisticsMethods.getRiderShipment.bind(this.logisticsMethods),this.get
1ShipmentEvents=this.logisticsMethods.getShipmentEvents.bind(this.logisticsMethods),this.updateRiderShipmentStatus=this.logisticsMethods.updateRiderShipmentStatus.bind(this.logisticsMethods),this.submitProofOfDelivery=this.logisticsMethods.submitProofOfDelivery.bind(this.logisticsMethods),this.getRiderDeliveryHistory=this.logisticsMethods.getRiderDeliveryHistory.bind(this.logisticsMethods),this.customerSignup=this.logisticsMethods.customerSignup.bind(this.logisticsMethods),this.logisticsCustomerLogin=this.logisticsMethods.logisticsCustomerLogin.bind(this.logisticsMethods),this.logisticsGetCustomerProfile=this.logisticsMethods.logisticsGetCustomerProfile.bind(this.logisticsMethods),this.logisticsUpdateCustomerProfile=this.logisticsMethods.logisticsUpdateCustomerProfile.bind(this.logisticsMethods),this.logisticsGetCustomerOrders=this.logisticsMethods.logisticsGetCustomerOrders.bind(this.logisticsMethods),this.addCustomerAddress=this.logisticsMethods.addCustomerAddress.bind(this.logisticsMethods),this.removeCustomerAddress=this.logisticsMethods.removeCustomerAddress.bind(this.logisticsMethods),this.initializeShipmentPayment=this.logisticsMethods.initializeShipmentPayment.bind(this.logisticsMethods),this.verifyShipmentPayment=this.logisticsMethods.verifyShipmentPayment.bind(this.logisticsMethods),this.createPublicShipment=this.logisticsMethods.createPublicShipment.bind(this.logisticsMethods),this.searchDomains=this.domainMethods.searchDomains.bind(this.domainMethods),this.checkDomainAvailability=this.domainMethods.checkDomainAvailability.bind(this.domainMethods),this.getDomainSuggestions=this.domainMethods.getDomainSuggestions.bind(this.domainMethods),this.getDomainPricing=this.domainMethods.getDomainPricing.bind(this.domainMethods),this.initiateDomainPurchase=this.domainMethods.initiateDomainPurchase.bind(this.domainMethods),this.completeDomainPurchase=this.domainMethods.completeDomainPurchase.bind(this.domainMethods),this.getDomainPurchases=this.domainMethods.getDomainPurchases.bind(this.domainMethods),this.getDomainPurchase=this.domainMethods.getDomainPurchase.bind(this.domainMethods),this.initiateDomainRenewal=this.domainMethods.initiateDomainRenewal.bind(this.domainMethods),this.completeDomainRenewal=this.domainMethods.completeDomainRenewal.bind(this.domainMethods),this.configureDomainDNS=this.domainMethods.configureDomainDNS.bind(this.domainMethods),this.toggleDomainAutoRenew=this.domainMethods.toggleDomainAutoRenew.bind(this.domainMethods),this.getDomainAdminDashboard=this.domainMethods.getDomainAdminDashboard.bind(this.domainMethods),this.getDomainAdminSettings=this.domainMethods.getDomainAdminSettings.bind(this.domainMethods),this.updateDomainAdminSettings=this.domainMethods.updateDomainAdminSettings.bind(this.domainMethods),this.updateDomainExchangeRate=this.domainMethods.updateDomainExchangeRate.bind(this.domainMethods),this.syncExchangeRateOnline=this.domainMethods.syncExchangeRateOnline.bind(this.domainMethods),this.updateDomainMarkup=this.domainMethods.updateDomainMarkup.bind(this.domainMethods),this.checkProviderBalance=this.domainMethods.checkProviderBalance.bind(this.domainMethods),this.getDomainAdminPricing=this.domainMethods.getDomainAdminPricing.bind(this.domainMethods),this.createDomainPricing=this.domainMethods.createDomainPricing.bind(this.domainMethods),this.updateDomainPricing=this.domainMethods.updateDomainPricing.bind(this.domainMethods),this.deleteDomainPricing=this.domainMethods.deleteDomainPricing.bind(this.domainMethods),this.recalculateAllDomainPrices=this.domainMethods.recalculateAllDomainPrices.bind(this.domainMethods),this.syncDomainPricingFromProvider=this.domainMethods.syncDomainPricingFromProvider.bind(this.domainMethods),this.uploadDomainPricingCSV=this.domainMethods.uploadDomainPricingCSV.bind(this.domainMethods),this.getDomainAdminTransactions=this.domainMethods.getDomainAdminTransactions.bind(this.domainMethods),this.completeDomainTransaction=this.domainMethods.completeDomainTransaction.bind(this.domainMethods),this.verifyDomainPayment=this.domainMethods.verifyDomainPayment.bind(this.domainMethods),this.getDomainAdminPurchases=this.domainMethods.getDomainAdminPurchases.bind(this.domainMethods),this.retryDomainRegistration=this.domainMethods.retryDomainRegistration.bind(this.domainMethods),this.configureDomainDns=this.domainMethods.configureDomainDns.bind(this.domainMethods),this.adminPurchaseDomain=this.domainMethods.adminPurchaseDomain.bind(this.domainMethods),this.getDomainAdminPurchaseDetail=this.domainMethods.getDomainAdminPurchaseDetail.bind(this.domainMethods),this.getDomainNameservers=this.domainMethods.getDomainNameservers.bind(this.domainMethods),this.updateDomainNameservers=this.domainMethods.updateDomainNameservers.bind(this.domainMethods),this.getDomainContact=this.domainMethods.getDomainContact.bind(this.domainMethods),this.updateDomainContact=this.domainMethods.updateDomainContact.bind(this.domainMethods),this.getDomainEppCode=this.domainMethods.getDomainEppCode.bind(this.domainMethods),this.getDomainLockStatus=this.domainMethods.getDomainLockStatus.bind(this.domainMethods),this.updateDomainLockStatus=this.domainMethods.updateDomainLockStatus.bind(this.domainMethods),this.syncDomainWithRegistry=this.domainMethods.syncDomainWithRegistry.bind(this.domainMethods),this.posSearchProducts=this.posMethods.searchProducts.bind(this.posMethods),this.posGetCategories=this.posMethods.getCategories.bind(this.posMethods),this.posSearchCustomers=this.posMethods.searchCustomers.bind(this.posMethods),this.posCreateOrder=this.posMethods.createOrder.bind(this.posMethods),this.posSendReceipt=this.posMethods.send
1Receipt.bind(this.posMethods),this.posGeneratePaymentLink=this.posMethods.generatePaymentLink.bind(this.posMethods)}}function M(t){return new f({baseUrl:(null==t?void 0:t.baseUrl)||"https://api.ojamaker.com/api/v1"})}let y={non_field_errors:"__root__",detail:"__root__"};function b(t,e){let s=c(e);if(s.errors&&Object.keys(s.errors).length>0){let e=!1;for(let[a,i]of Object.entries(s.errors)){let s=a in y?y[a]:a.replace(/_([a-z])/g,(t,e)=>e.toUpperCase()),o=i[0];if("__root__"!==s)try{t(s,{type:"server",message:o}),e=!0}catch(t){}}if(e)return null}return s.message}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.