klaviyo-api-fetch
Version:
A native fetch API using hey-api ts codegen
1 lines • 74.8 kB
JavaScript
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var l=Object.defineProperty,p=Object.defineProperties;var u=Object.getOwnPropertyDescriptors;var n=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var i=(e,r,s)=>r in e?l(e,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[r]=s,t=(e,r)=>{for(var s in r||(r={}))g.call(r,s)&&i(e,s,r[s]);if(n)for(var s of n(r))d.call(r,s)&&i(e,s,r[s]);return e},a=(e,r)=>p(e,u(r));var _clientfetch = require('@hey-api/client-fetch');var o=_clientfetch.createClient.call(void 0, _clientfetch.createConfig.call(void 0, {baseUrl:"https://a.klaviyo.com"}));var O=e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/accounts"},e))},G= exports.getAccount =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/accounts/{id}"},e))},F= exports.getCampaigns =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/campaigns"},e))},f= exports.createCampaign =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/campaigns"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},b= exports.deleteCampaign =e=>{var r;return((r=e.client)!=null?r:o).delete(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/campaigns/{id}"},e))},D= exports.getCampaign =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/campaigns/{id}"},e))},x= exports.updateCampaign =e=>{var r;return((r=e.client)!=null?r:o).patch(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/campaigns/{id}"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},R= exports.getCampaignMessage =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/campaign-messages/{id}"},e))},I= exports.updateCampaignMessage =e=>{var r;return((r=e.client)!=null?r:o).patch(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/campaign-messages/{id}"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},k= exports.getCampaignSendJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/campaign-send-jobs/{id}"},e))},z= exports.cancelCampaignSend =e=>{var r;return((r=e.client)!=null?r:o).patch(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/campaign-send-jobs/{id}"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},A= exports.getCampaignRecipientEstimationJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/campaign-recipient-estimation-jobs/{id}"},e))},P= exports.getCampaignRecipientEstimation =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/campaign-recipient-estimations/{id}"},e))},S= exports.createCampaignClone =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/campaign-clone"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},B= exports.assignTemplateToCampaignMessage =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/campaign-message-assign-template"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},v= exports.sendCampaign =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/campaign-send-jobs"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},M= exports.refreshCampaignRecipientEstimation =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/campaign-recipient-estimation-jobs"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},U= exports.getCampaignForCampaignMessage =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/campaign-messages/{id}/campaign"},e))},K= exports.getCampaignIdForCampaignMessage =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/campaign-messages/{id}/relationships/campaign"},e))},J= exports.getTemplateForCampaignMessage =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/campaign-messages/{id}/template"},e))},V= exports.getTemplateIdForCampaignMessage =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/campaign-messages/{id}/relationships/template"},e))},j= exports.getImageForCampaignMessage =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/campaign-messages/{id}/image"},e))},q= exports.getImageIdForCampaignMessage =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/campaign-messages/{id}/relationships/image"},e))},L= exports.updateImageForCampaignMessage =e=>{var r;return((r=e.client)!=null?r:o).patch(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/campaign-messages/{id}/relationships/image"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},W= exports.getTagsForCampaign =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/campaigns/{id}/tags"},e))},Q= exports.getTagIdsForCampaign =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/campaigns/{id}/relationships/tags"},e))},_= exports.getMessagesForCampaign =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/campaigns/{id}/campaign-messages"},e))},H= exports.getMessageIdsForCampaign =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/campaigns/{id}/relationships/campaign-messages"},e))},N= exports.getCatalogItems =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-items"},e))},X= exports.createCatalogItem =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-items"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Y= exports.deleteCatalogItem =e=>{var r;return((r=e.client)!=null?r:o).delete(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-items/{id}"},e))},Z= exports.getCatalogItem =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-items/{id}"},e))},$= exports.updateCatalogItem =e=>{var r;return((r=e.client)!=null?r:o).patch(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-items/{id}"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},ee= exports.getCatalogVariants =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-variants"},e))},re= exports.createCatalogVariant =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-variants"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},te= exports.deleteCatalogVariant =e=>{var r;return((r=e.client)!=null?r:o).delete(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-variants/{id}"},e))},oe= exports.getCatalogVariant =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-variants/{id}"},e))},ae= exports.updateCatalogVariant =e=>{var r;return((r=e.client)!=null?r:o).patch(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-variants/{id}"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},se= exports.getCatalogCategories =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-categories"},e))},ne= exports.createCatalogCategory =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-categories"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},ie= exports.deleteCatalogCategory =e=>{var r;return((r=e.client)!=null?r:o).delete(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-categories/{id}"},e))},le= exports.getCatalogCategory =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-categories/{id}"},e))},pe= exports.updateCatalogCategory =e=>{var r;return((r=e.client)!=null?r:o).patch(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-categories/{id}"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},ue= exports.getBulkCreateCatalogItemsJobs =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-item-bulk-create-jobs"},e))},ge= exports.bulkCreateCatalogItems =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-item-bulk-create-jobs"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},de= exports.getBulkCreateCatalogItemsJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-item-bulk-create-jobs/{job_id}"},e))},ce= exports.getBulkUpdateCatalogItemsJobs =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-item-bulk-update-jobs"},e))},me= exports.bulkUpdateCatalogItems =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-item-bulk-update-jobs"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},he= exports.getBulkUpdateCatalogItemsJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-item-bulk-update-jobs/{job_id}"},e))},ye= exports.getBulkDeleteCatalogItemsJobs =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-item-bulk-delete-jobs"},e))},Ee= exports.bulkDeleteCatalogItems =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-item-bulk-delete-jobs"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Te= exports.getBulkDeleteCatalogItemsJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-item-bulk-delete-jobs/{job_id}"},e))},Ce= exports.getBulkCreateVariantsJobs =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-variant-bulk-create-jobs"},e))},we= exports.bulkCreateCatalogVariants =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-variant-bulk-create-jobs"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Oe= exports.getBulkCreateVariantsJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-variant-bulk-create-jobs/{job_id}"},e))},Ge= exports.getBulkUpdateVariantsJobs =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-variant-bulk-update-jobs"},e))},Fe= exports.bulkUpdateCatalogVariants =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-variant-bulk-update-jobs"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},fe= exports.getBulkUpdateVariantsJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-variant-bulk-update-jobs/{job_id}"},e))},be= exports.getBulkDeleteVariantsJobs =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-variant-bulk-delete-jobs"},e))},De= exports.bulkDeleteCatalogVariants =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-variant-bulk-delete-jobs"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},xe= exports.getBulkDeleteVariantsJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-variant-bulk-delete-jobs/{job_id}"},e))},Re= exports.getBulkCreateCategoriesJobs =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-category-bulk-create-jobs"},e))},Ie= exports.bulkCreateCatalogCategories =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-category-bulk-create-jobs"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},ke= exports.getBulkCreateCategoriesJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-category-bulk-create-jobs/{job_id}"},e))},ze= exports.getBulkUpdateCategoriesJobs =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-category-bulk-update-jobs"},e))},Ae= exports.bulkUpdateCatalogCategories =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-category-bulk-update-jobs"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Pe= exports.getBulkUpdateCategoriesJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-category-bulk-update-jobs/{job_id}"},e))},Se= exports.getBulkDeleteCategoriesJobs =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-category-bulk-delete-jobs"},e))},Be= exports.bulkDeleteCatalogCategories =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-category-bulk-delete-jobs"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},ve= exports.getBulkDeleteCategoriesJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-category-bulk-delete-jobs/{job_id}"},e))},Me= exports.createBackInStockSubscription =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/back-in-stock-subscriptions"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Ue= exports.getItemsForCatalogCategory =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-categories/{id}/items"},e))},Ke= exports.removeItemsFromCatalogCategory =e=>{var r;return((r=e.client)!=null?r:o).delete(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-categories/{id}/relationships/items"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Je= exports.getItemIdsForCatalogCategory =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-categories/{id}/relationships/items"},e))},Ve= exports.updateItemsForCatalogCategory =e=>{var r;return((r=e.client)!=null?r:o).patch(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-categories/{id}/relationships/items"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},je= exports.addItemsToCatalogCategory =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-categories/{id}/relationships/items"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},qe= exports.getVariantsForCatalogItem =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-items/{id}/variants"},e))},Le= exports.getVariantIdsForCatalogItem =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-items/{id}/relationships/variants"},e))},We= exports.getCategoriesForCatalogItem =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/catalog-items/{id}/categories"},e))},Qe= exports.removeCategoriesFromCatalogItem =e=>{var r;return((r=e.client)!=null?r:o).delete(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-items/{id}/relationships/categories"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},_e= exports.getCategoryIdsForCatalogItem =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-items/{id}/relationships/categories"},e))},He= exports.updateCategoriesForCatalogItem =e=>{var r;return((r=e.client)!=null?r:o).patch(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-items/{id}/relationships/categories"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Ne= exports.addCategoriesToCatalogItem =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/catalog-items/{id}/relationships/categories"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Xe= exports.getCoupons =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/coupons"},e))},Ye= exports.createCoupon =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/coupons"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Ze= exports.deleteCoupon =e=>{var r;return((r=e.client)!=null?r:o).delete(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/coupons/{id}"},e))},$e= exports.getCoupon =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/coupons/{id}"},e))},er= exports.updateCoupon =e=>{var r;return((r=e.client)!=null?r:o).patch(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/coupons/{id}"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},rr= exports.getCouponCodes =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/coupon-codes"},e))},tr= exports.createCouponCode =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/coupon-codes"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},or= exports.deleteCouponCode =e=>{var r;return((r=e.client)!=null?r:o).delete(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/coupon-codes/{id}"},e))},ar= exports.getCouponCode =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/coupon-codes/{id}"},e))},sr= exports.updateCouponCode =e=>{var r;return((r=e.client)!=null?r:o).patch(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/coupon-codes/{id}"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},nr= exports.getBulkCreateCouponCodeJobs =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/coupon-code-bulk-create-jobs"},e))},ir= exports.bulkCreateCouponCodes =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/coupon-code-bulk-create-jobs"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},lr= exports.getBulkCreateCouponCodesJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/coupon-code-bulk-create-jobs/{job_id}"},e))},pr= exports.getCouponForCouponCode =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/coupon-codes/{id}/coupon"},e))},ur= exports.getCouponIdForCouponCode =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/coupon-codes/{id}/relationships/coupon"},e))},gr= exports.getCouponCodesForCoupon =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/coupons/{id}/coupon-codes"},e))},dr= exports.getCouponCodeIdsForCoupon =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/coupons/{id}/relationships/coupon-codes"},e))},cr= exports.requestProfileDeletion =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/data-privacy-deletion-jobs"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},mr= exports.getEvents =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/events"},e))},hr= exports.createEvent =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/events"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},yr= exports.getEvent =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/events/{id}"},e))},Er= exports.bulkCreateEvents =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/event-bulk-create-jobs"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Tr= exports.getMetricForEvent =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/events/{id}/metric"},e))},Cr= exports.getMetricIdForEvent =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/events/{id}/relationships/metric"},e))},wr= exports.getProfileForEvent =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/events/{id}/profile"},e))},Or= exports.getProfileIdForEvent =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/events/{id}/relationships/profile"},e))},Gr= exports.getFlows =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/flows"},e))},Fr= exports.createFlow =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/flows"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},fr= exports.deleteFlow =e=>{var r;return((r=e.client)!=null?r:o).delete(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/flows/{id}"},e))},br= exports.getFlow =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/flows/{id}"},e))},Dr= exports.updateFlow =e=>{var r;return((r=e.client)!=null?r:o).patch(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/flows/{id}"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},xr= exports.getFlowAction =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/flow-actions/{id}"},e))},Rr= exports.getFlowMessage =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/flow-messages/{id}"},e))},Ir= exports.getActionsForFlow =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/flows/{id}/flow-actions"},e))},kr= exports.getActionIdsForFlow =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/flows/{id}/relationships/flow-actions"},e))},zr= exports.getTagsForFlow =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/flows/{id}/tags"},e))},Ar= exports.getTagIdsForFlow =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/flows/{id}/relationships/tags"},e))},Pr= exports.getFlowForFlowAction =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/flow-actions/{id}/flow"},e))},Sr= exports.getFlowIdForFlowAction =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/flow-actions/{id}/relationships/flow"},e))},Br= exports.getFlowActionMessages =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/flow-actions/{id}/flow-messages"},e))},vr= exports.getMessageIdsForFlowAction =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/flow-actions/{id}/relationships/flow-messages"},e))},Mr= exports.getActionForFlowMessage =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/flow-messages/{id}/flow-action"},e))},Ur= exports.getActionIdForFlowMessage =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/flow-messages/{id}/relationships/flow-action"},e))},Kr= exports.getTemplateForFlowMessage =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/flow-messages/{id}/template"},e))},Jr= exports.getTemplateIdForFlowMessage =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/flow-messages/{id}/relationships/template"},e))},Vr= exports.getForms =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/forms"},e))},jr= exports.deleteForm =e=>{var r;return((r=e.client)!=null?r:o).delete(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/forms/{id}"},e))},qr= exports.getForm =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/forms/{id}"},e))},Lr= exports.getFormVersion =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/form-versions/{id}"},e))},Wr= exports.getVersionsForForm =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/forms/{id}/form-versions"},e))},Qr= exports.getVersionIdsForForm =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/forms/{id}/relationships/form-versions"},e))},_r= exports.getFormForFormVersion =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/form-versions/{id}/form"},e))},Hr= exports.getFormIdForFormVersion =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/form-versions/{id}/relationships/form"},e))},Nr= exports.getImages =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/images"},e))},Xr= exports.uploadImageFromUrl =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/images"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Yr= exports.getImage =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/images/{id}"},e))},Zr= exports.updateImage =e=>{var r;return((r=e.client)!=null?r:o).patch(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/images/{id}"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},$r= exports.uploadImageFromFile =e=>{var r;return((r=e.client)!=null?r:o).post(a(t(a(t({},_clientfetch.formDataBodySerializer),{security:[{name:"Authorization",type:"apiKey"}],url:"/api/image-upload"}),e),{headers:t({"Content-Type":null},e==null?void 0:e.headers)}))},et= exports.getLists =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/lists"},e))},rt= exports.createList =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/lists"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},tt= exports.deleteList =e=>{var r;return((r=e.client)!=null?r:o).delete(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/lists/{id}"},e))},ot= exports.getList =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/lists/{id}"},e))},at= exports.updateList =e=>{var r;return((r=e.client)!=null?r:o).patch(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/lists/{id}"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},st= exports.getTagsForList =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/lists/{id}/tags"},e))},nt= exports.getTagIdsForList =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/lists/{id}/relationships/tags"},e))},it= exports.getProfilesForList =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/lists/{id}/profiles"},e))},lt= exports.removeProfilesFromList =e=>{var r;return((r=e.client)!=null?r:o).delete(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/lists/{id}/relationships/profiles"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},pt= exports.getProfileIdsForList =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/lists/{id}/relationships/profiles"},e))},ut= exports.addProfilesToList =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/lists/{id}/relationships/profiles"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},gt= exports.getFlowsTriggeredByList =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/lists/{id}/flow-triggers"},e))},dt= exports.getIdsForFlowsTriggeredByList =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/lists/{id}/relationships/flow-triggers"},e))},ct= exports.getMetrics =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/metrics"},e))},mt= exports.getMetric =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/metrics/{id}"},e))},ht= exports.getMetricProperty =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/metric-properties/{id}"},e))},yt= exports.getCustomMetrics =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/custom-metrics"},e))},Et= exports.createCustomMetric =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/custom-metrics"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Tt= exports.deleteCustomMetric =e=>{var r;return((r=e.client)!=null?r:o).delete(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/custom-metrics/{id}"},e))},Ct= exports.getCustomMetric =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/custom-metrics/{id}"},e))},wt= exports.updateCustomMetric =e=>{var r;return((r=e.client)!=null?r:o).patch(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/custom-metrics/{id}"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Ot= exports.queryMetricAggregates =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/metric-aggregates"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Gt= exports.getFlowsTriggeredByMetric =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/metrics/{id}/flow-triggers"},e))},Ft= exports.getIdsForFlowsTriggeredByMetric =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/metrics/{id}/relationships/flow-triggers"},e))},ft= exports.getPropertiesForMetric =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/metrics/{id}/metric-properties"},e))},bt= exports.getPropertyIdsForMetric =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/metrics/{id}/relationships/metric-properties"},e))},Dt= exports.getMetricForMetricProperty =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/metric-properties/{id}/metric"},e))},xt= exports.getMetricIdForMetricProperty =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/metric-properties/{id}/relationships/metric"},e))},Rt= exports.getMetricsForCustomMetric =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/custom-metrics/{id}/metrics"},e))},It= exports.getMetricIdsForCustomMetric =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/custom-metrics/{id}/relationships/metrics"},e))},kt= exports.getProfiles =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/profiles"},e))},zt= exports.createProfile =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/profiles"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},At= exports.getProfile =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/profiles/{id}"},e))},Pt= exports.updateProfile =e=>{var r;return((r=e.client)!=null?r:o).patch(a(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/profiles/{id}"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},St= exports.getBulkImportProfilesJobs =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/profile-bulk-import-jobs"},e))},Bt= exports.bulkImportProfiles =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/profile-bulk-import-jobs"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},vt= exports.getBulkImportProfilesJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/profile-bulk-import-jobs/{job_id}"},e))},Mt= exports.getBulkSuppressProfilesJobs =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/profile-suppression-bulk-create-jobs"},e))},Ut= exports.bulkSuppressProfiles =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/profile-suppression-bulk-create-jobs"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Kt= exports.getBulkSuppressProfilesJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/profile-suppression-bulk-create-jobs/{job_id}"},e))},Jt= exports.getBulkUnsuppressProfilesJobs =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/profile-suppression-bulk-delete-jobs"},e))},Vt= exports.bulkUnsuppressProfiles =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/profile-suppression-bulk-delete-jobs"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},jt= exports.getBulkUnsuppressProfilesJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/profile-suppression-bulk-delete-jobs/{job_id}"},e))},qt= exports.getPushTokens =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/push-tokens"},e))},Lt= exports.createPushToken =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/push-tokens"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Wt= exports.deletePushToken =e=>{var r;return((r=e.client)!=null?r:o).delete(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/push-tokens/{id}"},e))},Qt= exports.getPushToken =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/push-tokens/{id}"},e))},_t= exports.createOrUpdateProfile =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/profile-import"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Ht= exports.mergeProfiles =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/profile-merge"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Nt= exports.bulkSubscribeProfiles =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/profile-subscription-bulk-create-jobs"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Xt= exports.bulkUnsubscribeProfiles =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/profile-subscription-bulk-delete-jobs"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Yt= exports.getPushTokensForProfile =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/profiles/{id}/push-tokens"},e))},Zt= exports.getPushTokenIdsForProfile =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/profiles/{id}/relationships/push-tokens"},e))},$t= exports.getListsForProfile =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/profiles/{id}/lists"},e))},eo= exports.getListIdsForProfile =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/profiles/{id}/relationships/lists"},e))},ro= exports.getSegmentsForProfile =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/profiles/{id}/segments"},e))},to= exports.getSegmentIdsForProfile =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/profiles/{id}/relationships/segments"},e))},oo= exports.getListForBulkImportProfilesJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/profile-bulk-import-jobs/{id}/lists"},e))},ao= exports.getListIdsForBulkImportProfilesJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/profile-bulk-import-jobs/{id}/relationships/lists"},e))},so= exports.getProfilesForBulkImportProfilesJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/profile-bulk-import-jobs/{id}/profiles"},e))},no= exports.getProfileIdsForBulkImportProfilesJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/profile-bulk-import-jobs/{id}/relationships/profiles"},e))},io= exports.getErrorsForBulkImportProfilesJob =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/profile-bulk-import-jobs/{id}/import-errors"},e))},lo= exports.getProfileForPushToken =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/push-tokens/{id}/profile"},e))},po= exports.getProfileIdForPushToken =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/push-tokens/{id}/relationships/profile"},e))},uo= exports.queryCampaignValues =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/campaign-values-reports"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},go= exports.queryFlowValues =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/flow-values-reports"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},co= exports.queryFlowSeries =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/flow-series-reports"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},mo= exports.queryFormValues =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/form-values-reports"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},ho= exports.queryFormSeries =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/form-series-reports"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},yo= exports.querySegmentValues =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/segment-values-reports"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Eo= exports.querySegmentSeries =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/segment-series-reports"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},To= exports.getReviews =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/reviews"},e))},Co= exports.getReview =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/reviews/{id}"},e))},wo= exports.updateReview =e=>{var r;return((r=e.client)!=null?r:o).patch(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/reviews/{id}"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Oo= exports.getSegments =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form"}},url:"/api/segments"},e))},Go= exports.createSegment =e=>{var r;return((r=e.client)!=null?r:o).post(a(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/segments"},e),{headers:t({"Content-Type":"application/vnd.api+json"},e==null?void 0:e.headers)}))},Fo= exports.deleteSegment =e=>{var r;return((r=e.client)!=null?r:o).delete(t({security:[{name:"Authorization",type:"apiKey"}],url:"/api/segments/{id}"},e))},fo= exports.getSegment =e=>{var r;return((r=e.client)!=null?r:o).get(t({security:[{name:"Authorization",type:"apiKey"}],querySerializer:{array:{explode:!1,style:"form